OSDN Git Service

2006-06-21 Frank Ch. Eigler <fche@redhat.com>
[pf3gnuchains/gcc-fork.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 target_noncanonical INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT multi_basedir CC ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CFLAGS CPP CPPFLAGS EGREP 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 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   _g_switchUse thread-local storage
854                           [default=yes]
855
856 Optional Packages:
857   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
858   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
859   --with-gnu-ld           assume the C compiler uses GNU ld default=no
860   --with-pic              try to use only PIC/non-PIC objects default=use both
861
862 Some influential environment variables:
863   CC          C compiler command
864   CFLAGS      C compiler flags
865   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
866               nonstandard directory <lib dir>
867   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
868               headers in a nonstandard directory <include dir>
869   CPP         C preprocessor
870
871 Use these variables to override the choices made by `configure' or to help
872 it to find libraries and programs with nonstandard names/locations.
873
874 _ACEOF
875 fi
876
877 if test "$ac_init_help" = "recursive"; then
878   # If there are subdirs, report their specific --help.
879   ac_popdir=`pwd`
880   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
881     test -d $ac_dir || continue
882     ac_builddir=.
883
884 if test "$ac_dir" != .; then
885   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
886   # A "../" for each directory in $ac_dir_suffix.
887   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
888 else
889   ac_dir_suffix= ac_top_builddir=
890 fi
891
892 case $srcdir in
893   .)  # No --srcdir option.  We are building in place.
894     ac_srcdir=.
895     if test -z "$ac_top_builddir"; then
896        ac_top_srcdir=.
897     else
898        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
899     fi ;;
900   [\\/]* | ?:[\\/]* )  # Absolute path.
901     ac_srcdir=$srcdir$ac_dir_suffix;
902     ac_top_srcdir=$srcdir ;;
903   *) # Relative path.
904     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
905     ac_top_srcdir=$ac_top_builddir$srcdir ;;
906 esac
907
908 # Do not use `cd foo && pwd` to compute absolute paths, because
909 # the directories may not exist.
910 case `pwd` in
911 .) ac_abs_builddir="$ac_dir";;
912 *)
913   case "$ac_dir" in
914   .) ac_abs_builddir=`pwd`;;
915   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
916   *) ac_abs_builddir=`pwd`/"$ac_dir";;
917   esac;;
918 esac
919 case $ac_abs_builddir in
920 .) ac_abs_top_builddir=${ac_top_builddir}.;;
921 *)
922   case ${ac_top_builddir}. in
923   .) ac_abs_top_builddir=$ac_abs_builddir;;
924   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
925   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
926   esac;;
927 esac
928 case $ac_abs_builddir in
929 .) ac_abs_srcdir=$ac_srcdir;;
930 *)
931   case $ac_srcdir in
932   .) ac_abs_srcdir=$ac_abs_builddir;;
933   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
934   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
935   esac;;
936 esac
937 case $ac_abs_builddir in
938 .) ac_abs_top_srcdir=$ac_top_srcdir;;
939 *)
940   case $ac_top_srcdir in
941   .) ac_abs_top_srcdir=$ac_abs_builddir;;
942   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
943   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
944   esac;;
945 esac
946
947     cd $ac_dir
948     # Check for guested configure; otherwise get Cygnus style configure.
949     if test -f $ac_srcdir/configure.gnu; then
950       echo
951       $SHELL $ac_srcdir/configure.gnu  --help=recursive
952     elif test -f $ac_srcdir/configure; then
953       echo
954       $SHELL $ac_srcdir/configure  --help=recursive
955     elif test -f $ac_srcdir/configure.ac ||
956            test -f $ac_srcdir/configure.in; then
957       echo
958       $ac_configure --help
959     else
960       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
961     fi
962     cd $ac_popdir
963   done
964 fi
965
966 test -n "$ac_init_help" && exit 0
967 if $ac_init_version; then
968   cat <<\_ACEOF
969 libmudflap configure 1.0
970 generated by GNU Autoconf 2.59
971
972 Copyright (C) 2003 Free Software Foundation, Inc.
973 This configure script is free software; the Free Software Foundation
974 gives unlimited permission to copy, distribute and modify it.
975 _ACEOF
976   exit 0
977 fi
978 exec 5>config.log
979 cat >&5 <<_ACEOF
980 This file contains any messages produced by compilers while
981 running configure, to aid debugging if configure makes a mistake.
982
983 It was created by libmudflap $as_me 1.0, which was
984 generated by GNU Autoconf 2.59.  Invocation command line was
985
986   $ $0 $@
987
988 _ACEOF
989 {
990 cat <<_ASUNAME
991 ## --------- ##
992 ## Platform. ##
993 ## --------- ##
994
995 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
996 uname -m = `(uname -m) 2>/dev/null || echo unknown`
997 uname -r = `(uname -r) 2>/dev/null || echo unknown`
998 uname -s = `(uname -s) 2>/dev/null || echo unknown`
999 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1000
1001 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1002 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1003
1004 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1005 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1006 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1007 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1008 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1009 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1010 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1011
1012 _ASUNAME
1013
1014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1015 for as_dir in $PATH
1016 do
1017   IFS=$as_save_IFS
1018   test -z "$as_dir" && as_dir=.
1019   echo "PATH: $as_dir"
1020 done
1021
1022 } >&5
1023
1024 cat >&5 <<_ACEOF
1025
1026
1027 ## ----------- ##
1028 ## Core tests. ##
1029 ## ----------- ##
1030
1031 _ACEOF
1032
1033
1034 # Keep a trace of the command line.
1035 # Strip out --no-create and --no-recursion so they do not pile up.
1036 # Strip out --silent because we don't want to record it for future runs.
1037 # Also quote any args containing shell meta-characters.
1038 # Make two passes to allow for proper duplicate-argument suppression.
1039 ac_configure_args=
1040 ac_configure_args0=
1041 ac_configure_args1=
1042 ac_sep=
1043 ac_must_keep_next=false
1044 for ac_pass in 1 2
1045 do
1046   for ac_arg
1047   do
1048     case $ac_arg in
1049     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1050     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1051     | -silent | --silent | --silen | --sile | --sil)
1052       continue ;;
1053     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1054       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1055     esac
1056     case $ac_pass in
1057     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1058     2)
1059       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1060       if test $ac_must_keep_next = true; then
1061         ac_must_keep_next=false # Got value, back to normal.
1062       else
1063         case $ac_arg in
1064           *=* | --config-cache | -C | -disable-* | --disable-* \
1065           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1066           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1067           | -with-* | --with-* | -without-* | --without-* | --x)
1068             case "$ac_configure_args0 " in
1069               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1070             esac
1071             ;;
1072           -* ) ac_must_keep_next=true ;;
1073         esac
1074       fi
1075       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1076       # Get rid of the leading space.
1077       ac_sep=" "
1078       ;;
1079     esac
1080   done
1081 done
1082 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1083 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1084
1085 # When interrupted or exit'd, cleanup temporary files, and complete
1086 # config.log.  We remove comments because anyway the quotes in there
1087 # would cause problems or look ugly.
1088 # WARNING: Be sure not to use single quotes in there, as some shells,
1089 # such as our DU 5.0 friend, will then `close' the trap.
1090 trap 'exit_status=$?
1091   # Save into config.log some information that might help in debugging.
1092   {
1093     echo
1094
1095     cat <<\_ASBOX
1096 ## ---------------- ##
1097 ## Cache variables. ##
1098 ## ---------------- ##
1099 _ASBOX
1100     echo
1101     # The following way of writing the cache mishandles newlines in values,
1102 {
1103   (set) 2>&1 |
1104     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1105     *ac_space=\ *)
1106       sed -n \
1107         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1108           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1109       ;;
1110     *)
1111       sed -n \
1112         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1113       ;;
1114     esac;
1115 }
1116     echo
1117
1118     cat <<\_ASBOX
1119 ## ----------------- ##
1120 ## Output variables. ##
1121 ## ----------------- ##
1122 _ASBOX
1123     echo
1124     for ac_var in $ac_subst_vars
1125     do
1126       eval ac_val=$`echo $ac_var`
1127       echo "$ac_var='"'"'$ac_val'"'"'"
1128     done | sort
1129     echo
1130
1131     if test -n "$ac_subst_files"; then
1132       cat <<\_ASBOX
1133 ## ------------- ##
1134 ## Output files. ##
1135 ## ------------- ##
1136 _ASBOX
1137       echo
1138       for ac_var in $ac_subst_files
1139       do
1140         eval ac_val=$`echo $ac_var`
1141         echo "$ac_var='"'"'$ac_val'"'"'"
1142       done | sort
1143       echo
1144     fi
1145
1146     if test -s confdefs.h; then
1147       cat <<\_ASBOX
1148 ## ----------- ##
1149 ## confdefs.h. ##
1150 ## ----------- ##
1151 _ASBOX
1152       echo
1153       sed "/^$/d" confdefs.h | sort
1154       echo
1155     fi
1156     test "$ac_signal" != 0 &&
1157       echo "$as_me: caught signal $ac_signal"
1158     echo "$as_me: exit $exit_status"
1159   } >&5
1160   rm -f core *.core &&
1161   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1162     exit $exit_status
1163      ' 0
1164 for ac_signal in 1 2 13 15; do
1165   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1166 done
1167 ac_signal=0
1168
1169 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1170 rm -rf conftest* confdefs.h
1171 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1172 echo >confdefs.h
1173
1174 # Predefined preprocessor variables.
1175
1176 cat >>confdefs.h <<_ACEOF
1177 #define PACKAGE_NAME "$PACKAGE_NAME"
1178 _ACEOF
1179
1180
1181 cat >>confdefs.h <<_ACEOF
1182 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1183 _ACEOF
1184
1185
1186 cat >>confdefs.h <<_ACEOF
1187 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1188 _ACEOF
1189
1190
1191 cat >>confdefs.h <<_ACEOF
1192 #define PACKAGE_STRING "$PACKAGE_STRING"
1193 _ACEOF
1194
1195
1196 cat >>confdefs.h <<_ACEOF
1197 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1198 _ACEOF
1199
1200
1201 # Let the site file select an alternate cache file if it wants to.
1202 # Prefer explicitly selected file to automatically selected ones.
1203 if test -z "$CONFIG_SITE"; then
1204   if test "x$prefix" != xNONE; then
1205     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1206   else
1207     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1208   fi
1209 fi
1210 for ac_site_file in $CONFIG_SITE; do
1211   if test -r "$ac_site_file"; then
1212     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1213 echo "$as_me: loading site script $ac_site_file" >&6;}
1214     sed 's/^/| /' "$ac_site_file" >&5
1215     . "$ac_site_file"
1216   fi
1217 done
1218
1219 if test -r "$cache_file"; then
1220   # Some versions of bash will fail to source /dev/null (special
1221   # files actually), so we avoid doing that.
1222   if test -f "$cache_file"; then
1223     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1224 echo "$as_me: loading cache $cache_file" >&6;}
1225     case $cache_file in
1226       [\\/]* | ?:[\\/]* ) . $cache_file;;
1227       *)                      . ./$cache_file;;
1228     esac
1229   fi
1230 else
1231   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1232 echo "$as_me: creating cache $cache_file" >&6;}
1233   >$cache_file
1234 fi
1235
1236 # Check that the precious variables saved in the cache have kept the same
1237 # value.
1238 ac_cache_corrupted=false
1239 for ac_var in `(set) 2>&1 |
1240                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1241   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1242   eval ac_new_set=\$ac_env_${ac_var}_set
1243   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1244   eval ac_new_val="\$ac_env_${ac_var}_value"
1245   case $ac_old_set,$ac_new_set in
1246     set,)
1247       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1248 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1249       ac_cache_corrupted=: ;;
1250     ,set)
1251       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1252 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1253       ac_cache_corrupted=: ;;
1254     ,);;
1255     *)
1256       if test "x$ac_old_val" != "x$ac_new_val"; then
1257         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1258 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1259         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1260 echo "$as_me:   former value:  $ac_old_val" >&2;}
1261         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1262 echo "$as_me:   current value: $ac_new_val" >&2;}
1263         ac_cache_corrupted=:
1264       fi;;
1265   esac
1266   # Pass precious variables to config.status.
1267   if test "$ac_new_set" = set; then
1268     case $ac_new_val in
1269     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1270       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1271     *) ac_arg=$ac_var=$ac_new_val ;;
1272     esac
1273     case " $ac_configure_args " in
1274       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1275       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1276     esac
1277   fi
1278 done
1279 if $ac_cache_corrupted; then
1280   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1281 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1282   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1283 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1284    { (exit 1); exit 1; }; }
1285 fi
1286
1287 ac_ext=c
1288 ac_cpp='$CPP $CPPFLAGS'
1289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
1319
1320 ac_aux_dir=
1321 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1322   if test -f $ac_dir/install-sh; then
1323     ac_aux_dir=$ac_dir
1324     ac_install_sh="$ac_aux_dir/install-sh -c"
1325     break
1326   elif test -f $ac_dir/install.sh; then
1327     ac_aux_dir=$ac_dir
1328     ac_install_sh="$ac_aux_dir/install.sh -c"
1329     break
1330   elif test -f $ac_dir/shtool; then
1331     ac_aux_dir=$ac_dir
1332     ac_install_sh="$ac_aux_dir/shtool install -c"
1333     break
1334   fi
1335 done
1336 if test -z "$ac_aux_dir"; then
1337   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1338 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1339    { (exit 1); exit 1; }; }
1340 fi
1341 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1342 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1343 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1344
1345 # Make sure we can run config.sub.
1346 $ac_config_sub sun4 >/dev/null 2>&1 ||
1347   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1348 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1349    { (exit 1); exit 1; }; }
1350
1351 echo "$as_me:$LINENO: checking build system type" >&5
1352 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1353 if test "${ac_cv_build+set}" = set; then
1354   echo $ECHO_N "(cached) $ECHO_C" >&6
1355 else
1356   ac_cv_build_alias=$build_alias
1357 test -z "$ac_cv_build_alias" &&
1358   ac_cv_build_alias=`$ac_config_guess`
1359 test -z "$ac_cv_build_alias" &&
1360   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1361 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1362    { (exit 1); exit 1; }; }
1363 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1364   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1365 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1366    { (exit 1); exit 1; }; }
1367
1368 fi
1369 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1370 echo "${ECHO_T}$ac_cv_build" >&6
1371 build=$ac_cv_build
1372 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1373 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1374 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1375
1376
1377 echo "$as_me:$LINENO: checking host system type" >&5
1378 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1379 if test "${ac_cv_host+set}" = set; then
1380   echo $ECHO_N "(cached) $ECHO_C" >&6
1381 else
1382   ac_cv_host_alias=$host_alias
1383 test -z "$ac_cv_host_alias" &&
1384   ac_cv_host_alias=$ac_cv_build_alias
1385 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1386   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1387 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1388    { (exit 1); exit 1; }; }
1389
1390 fi
1391 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1392 echo "${ECHO_T}$ac_cv_host" >&6
1393 host=$ac_cv_host
1394 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1395 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1396 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1397
1398
1399 echo "$as_me:$LINENO: checking target system type" >&5
1400 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1401 if test "${ac_cv_target+set}" = set; then
1402   echo $ECHO_N "(cached) $ECHO_C" >&6
1403 else
1404   ac_cv_target_alias=$target_alias
1405 test "x$ac_cv_target_alias" = "x" &&
1406   ac_cv_target_alias=$ac_cv_host_alias
1407 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1408   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1409 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1410    { (exit 1); exit 1; }; }
1411
1412 fi
1413 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1414 echo "${ECHO_T}$ac_cv_target" >&6
1415 target=$ac_cv_target
1416 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1417 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1418 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1419
1420
1421 # The aliases save the names the user supplied, while $host etc.
1422 # will get canonicalized.
1423 test -n "$target_alias" &&
1424   test "$program_prefix$program_suffix$program_transform_name" = \
1425     NONENONEs,x,x, &&
1426   program_prefix=${target_alias}-
1427  case ${build_alias} in
1428   "") build_noncanonical=${build} ;;
1429   *) build_noncanonical=${build_alias} ;;
1430 esac
1431
1432  case ${host_alias} in
1433   "") host_noncanonical=${build_noncanonical} ;;
1434   *) host_noncanonical=${host_alias} ;;
1435 esac
1436
1437  case ${target_alias} in
1438   "") target_noncanonical=${host_noncanonical} ;;
1439   *) target_noncanonical=${target_alias} ;;
1440 esac
1441
1442
1443
1444
1445 am__api_version="1.9"
1446 # Find a good install program.  We prefer a C program (faster),
1447 # so one script is as good as another.  But avoid the broken or
1448 # incompatible versions:
1449 # SysV /etc/install, /usr/sbin/install
1450 # SunOS /usr/etc/install
1451 # IRIX /sbin/install
1452 # AIX /bin/install
1453 # AmigaOS /C/install, which installs bootblocks on floppy discs
1454 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1455 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1456 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1457 # OS/2's system install, which has a completely different semantic
1458 # ./install, which can be erroneously created by make from ./install.sh.
1459 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1460 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1461 if test -z "$INSTALL"; then
1462 if test "${ac_cv_path_install+set}" = set; then
1463   echo $ECHO_N "(cached) $ECHO_C" >&6
1464 else
1465   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1466 for as_dir in $PATH
1467 do
1468   IFS=$as_save_IFS
1469   test -z "$as_dir" && as_dir=.
1470   # Account for people who put trailing slashes in PATH elements.
1471 case $as_dir/ in
1472   ./ | .// | /cC/* | \
1473   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1474   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1475   /usr/ucb/* ) ;;
1476   *)
1477     # OSF1 and SCO ODT 3.0 have their own names for install.
1478     # Don't use installbsd from OSF since it installs stuff as root
1479     # by default.
1480     for ac_prog in ginstall scoinst install; do
1481       for ac_exec_ext in '' $ac_executable_extensions; do
1482         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1483           if test $ac_prog = install &&
1484             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1485             # AIX install.  It has an incompatible calling convention.
1486             :
1487           elif test $ac_prog = install &&
1488             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1489             # program-specific install script used by HP pwplus--don't use.
1490             :
1491           else
1492             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1493             break 3
1494           fi
1495         fi
1496       done
1497     done
1498     ;;
1499 esac
1500 done
1501
1502
1503 fi
1504   if test "${ac_cv_path_install+set}" = set; then
1505     INSTALL=$ac_cv_path_install
1506   else
1507     # As a last resort, use the slow shell script.  We don't cache a
1508     # path for INSTALL within a source directory, because that will
1509     # break other packages using the cache if that directory is
1510     # removed, or if the path is relative.
1511     INSTALL=$ac_install_sh
1512   fi
1513 fi
1514 echo "$as_me:$LINENO: result: $INSTALL" >&5
1515 echo "${ECHO_T}$INSTALL" >&6
1516
1517 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1518 # It thinks the first close brace ends the variable substitution.
1519 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1520
1521 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1522
1523 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1524
1525 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1526 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1527 # Just in case
1528 sleep 1
1529 echo timestamp > conftest.file
1530 # Do `set' in a subshell so we don't clobber the current shell's
1531 # arguments.  Must try -L first in case configure is actually a
1532 # symlink; some systems play weird games with the mod time of symlinks
1533 # (eg FreeBSD returns the mod time of the symlink's containing
1534 # directory).
1535 if (
1536    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1537    if test "$*" = "X"; then
1538       # -L didn't work.
1539       set X `ls -t $srcdir/configure conftest.file`
1540    fi
1541    rm -f conftest.file
1542    if test "$*" != "X $srcdir/configure conftest.file" \
1543       && test "$*" != "X conftest.file $srcdir/configure"; then
1544
1545       # If neither matched, then we have a broken ls.  This can happen
1546       # if, for instance, CONFIG_SHELL is bash and it inherits a
1547       # broken ls alias from the environment.  This has actually
1548       # happened.  Such a system could not be considered "sane".
1549       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1550 alias in your environment" >&5
1551 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1552 alias in your environment" >&2;}
1553    { (exit 1); exit 1; }; }
1554    fi
1555
1556    test "$2" = conftest.file
1557    )
1558 then
1559    # Ok.
1560    :
1561 else
1562    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1563 Check your system clock" >&5
1564 echo "$as_me: error: newly created file is older than distributed files!
1565 Check your system clock" >&2;}
1566    { (exit 1); exit 1; }; }
1567 fi
1568 echo "$as_me:$LINENO: result: yes" >&5
1569 echo "${ECHO_T}yes" >&6
1570 test "$program_prefix" != NONE &&
1571   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1572 # Use a double $ so make ignores it.
1573 test "$program_suffix" != NONE &&
1574   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1575 # Double any \ or $.  echo might interpret backslashes.
1576 # By default was `s,x,x', remove it if useless.
1577 cat <<\_ACEOF >conftest.sed
1578 s/[\\$]/&&/g;s/;s,x,x,$//
1579 _ACEOF
1580 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1581 rm conftest.sed
1582
1583 # expand $ac_aux_dir to an absolute path
1584 am_aux_dir=`cd $ac_aux_dir && pwd`
1585
1586 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1587 # Use eval to expand $SHELL
1588 if eval "$MISSING --run true"; then
1589   am_missing_run="$MISSING --run "
1590 else
1591   am_missing_run=
1592   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1593 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1594 fi
1595
1596 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1597   # We used to keeping the `.' as first argument, in order to
1598   # allow $(mkdir_p) to be used without argument.  As in
1599   #   $(mkdir_p) $(somedir)
1600   # where $(somedir) is conditionally defined.  However this is wrong
1601   # for two reasons:
1602   #  1. if the package is installed by a user who cannot write `.'
1603   #     make install will fail,
1604   #  2. the above comment should most certainly read
1605   #     $(mkdir_p) $(DESTDIR)$(somedir)
1606   #     so it does not work when $(somedir) is undefined and
1607   #     $(DESTDIR) is not.
1608   #  To support the latter case, we have to write
1609   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1610   #  so the `.' trick is pointless.
1611   mkdir_p='mkdir -p --'
1612 else
1613   # On NextStep and OpenStep, the `mkdir' command does not
1614   # recognize any option.  It will interpret all options as
1615   # directories to create, and then abort because `.' already
1616   # exists.
1617   for d in ./-p ./--version;
1618   do
1619     test -d $d && rmdir $d
1620   done
1621   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1622   if test -f "$ac_aux_dir/mkinstalldirs"; then
1623     mkdir_p='$(mkinstalldirs)'
1624   else
1625     mkdir_p='$(install_sh) -d'
1626   fi
1627 fi
1628
1629 for ac_prog in gawk mawk nawk awk
1630 do
1631   # Extract the first word of "$ac_prog", so it can be a program name with args.
1632 set dummy $ac_prog; ac_word=$2
1633 echo "$as_me:$LINENO: checking for $ac_word" >&5
1634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1635 if test "${ac_cv_prog_AWK+set}" = set; then
1636   echo $ECHO_N "(cached) $ECHO_C" >&6
1637 else
1638   if test -n "$AWK"; then
1639   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1640 else
1641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1642 for as_dir in $PATH
1643 do
1644   IFS=$as_save_IFS
1645   test -z "$as_dir" && as_dir=.
1646   for ac_exec_ext in '' $ac_executable_extensions; do
1647   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1648     ac_cv_prog_AWK="$ac_prog"
1649     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1650     break 2
1651   fi
1652 done
1653 done
1654
1655 fi
1656 fi
1657 AWK=$ac_cv_prog_AWK
1658 if test -n "$AWK"; then
1659   echo "$as_me:$LINENO: result: $AWK" >&5
1660 echo "${ECHO_T}$AWK" >&6
1661 else
1662   echo "$as_me:$LINENO: result: no" >&5
1663 echo "${ECHO_T}no" >&6
1664 fi
1665
1666   test -n "$AWK" && break
1667 done
1668
1669 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1670 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1671 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1672 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1673   echo $ECHO_N "(cached) $ECHO_C" >&6
1674 else
1675   cat >conftest.make <<\_ACEOF
1676 all:
1677         @echo 'ac_maketemp="$(MAKE)"'
1678 _ACEOF
1679 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1680 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1681 if test -n "$ac_maketemp"; then
1682   eval ac_cv_prog_make_${ac_make}_set=yes
1683 else
1684   eval ac_cv_prog_make_${ac_make}_set=no
1685 fi
1686 rm -f conftest.make
1687 fi
1688 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1689   echo "$as_me:$LINENO: result: yes" >&5
1690 echo "${ECHO_T}yes" >&6
1691   SET_MAKE=
1692 else
1693   echo "$as_me:$LINENO: result: no" >&5
1694 echo "${ECHO_T}no" >&6
1695   SET_MAKE="MAKE=${MAKE-make}"
1696 fi
1697
1698 rm -rf .tst 2>/dev/null
1699 mkdir .tst 2>/dev/null
1700 if test -d .tst; then
1701   am__leading_dot=.
1702 else
1703   am__leading_dot=_
1704 fi
1705 rmdir .tst 2>/dev/null
1706
1707 # test to see if srcdir already configured
1708 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1709    test -f $srcdir/config.status; then
1710   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1711 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1712    { (exit 1); exit 1; }; }
1713 fi
1714
1715 # test whether we have cygpath
1716 if test -z "$CYGPATH_W"; then
1717   if (cygpath --version) >/dev/null 2>/dev/null; then
1718     CYGPATH_W='cygpath -w'
1719   else
1720     CYGPATH_W=echo
1721   fi
1722 fi
1723
1724
1725 # Define the identity of the package.
1726  PACKAGE='libmudflap'
1727  VERSION='1.0'
1728
1729
1730 cat >>confdefs.h <<_ACEOF
1731 #define PACKAGE "$PACKAGE"
1732 _ACEOF
1733
1734
1735 cat >>confdefs.h <<_ACEOF
1736 #define VERSION "$VERSION"
1737 _ACEOF
1738
1739 # Some tools Automake needs.
1740
1741 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1742
1743
1744 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1745
1746
1747 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1748
1749
1750 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1751
1752
1753 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1754
1755 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1756
1757 # Installed binaries are usually stripped using `strip' when the user
1758 # run `make install-strip'.  However `strip' might not be the right
1759 # tool to use in cross-compilation environments, therefore Automake
1760 # will honor the `STRIP' environment variable to overrule this program.
1761 if test "$cross_compiling" != no; then
1762   if test -n "$ac_tool_prefix"; then
1763   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1764 set dummy ${ac_tool_prefix}strip; ac_word=$2
1765 echo "$as_me:$LINENO: checking for $ac_word" >&5
1766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1767 if test "${ac_cv_prog_STRIP+set}" = set; then
1768   echo $ECHO_N "(cached) $ECHO_C" >&6
1769 else
1770   if test -n "$STRIP"; then
1771   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1772 else
1773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1774 for as_dir in $PATH
1775 do
1776   IFS=$as_save_IFS
1777   test -z "$as_dir" && as_dir=.
1778   for ac_exec_ext in '' $ac_executable_extensions; do
1779   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1780     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1781     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1782     break 2
1783   fi
1784 done
1785 done
1786
1787 fi
1788 fi
1789 STRIP=$ac_cv_prog_STRIP
1790 if test -n "$STRIP"; then
1791   echo "$as_me:$LINENO: result: $STRIP" >&5
1792 echo "${ECHO_T}$STRIP" >&6
1793 else
1794   echo "$as_me:$LINENO: result: no" >&5
1795 echo "${ECHO_T}no" >&6
1796 fi
1797
1798 fi
1799 if test -z "$ac_cv_prog_STRIP"; then
1800   ac_ct_STRIP=$STRIP
1801   # Extract the first word of "strip", so it can be a program name with args.
1802 set dummy strip; ac_word=$2
1803 echo "$as_me:$LINENO: checking for $ac_word" >&5
1804 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1805 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1806   echo $ECHO_N "(cached) $ECHO_C" >&6
1807 else
1808   if test -n "$ac_ct_STRIP"; then
1809   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1810 else
1811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1812 for as_dir in $PATH
1813 do
1814   IFS=$as_save_IFS
1815   test -z "$as_dir" && as_dir=.
1816   for ac_exec_ext in '' $ac_executable_extensions; do
1817   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1818     ac_cv_prog_ac_ct_STRIP="strip"
1819     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1820     break 2
1821   fi
1822 done
1823 done
1824
1825   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1826 fi
1827 fi
1828 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1829 if test -n "$ac_ct_STRIP"; then
1830   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1831 echo "${ECHO_T}$ac_ct_STRIP" >&6
1832 else
1833   echo "$as_me:$LINENO: result: no" >&5
1834 echo "${ECHO_T}no" >&6
1835 fi
1836
1837   STRIP=$ac_ct_STRIP
1838 else
1839   STRIP="$ac_cv_prog_STRIP"
1840 fi
1841
1842 fi
1843 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1844
1845 # We need awk for the "check" target.  The system "awk" is bad on
1846 # some platforms.
1847 # Always define AMTAR for backward compatibility.
1848
1849 AMTAR=${AMTAR-"${am_missing_run}tar"}
1850
1851 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1852
1853
1854
1855
1856
1857
1858 echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5
1859 echo $ECHO_N "checking for --enable-version-specific-runtime-libs... $ECHO_C" >&6
1860 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1861 if test "${enable_version_specific_runtime_libs+set}" = set; then
1862   enableval="$enable_version_specific_runtime_libs"
1863   case "$enableval" in
1864  yes) version_specific_libs=yes ;;
1865  no)  version_specific_libs=no ;;
1866  *)   { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
1867 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1868    { (exit 1); exit 1; }; };;
1869  esac
1870 else
1871   version_specific_libs=no
1872 fi;
1873 echo "$as_me:$LINENO: result: $version_specific_libs" >&5
1874 echo "${ECHO_T}$version_specific_libs" >&6
1875
1876 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1877 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1878     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1879 if test "${enable_maintainer_mode+set}" = set; then
1880   enableval="$enable_maintainer_mode"
1881   USE_MAINTAINER_MODE=$enableval
1882 else
1883   USE_MAINTAINER_MODE=no
1884 fi;
1885   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1886 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1887
1888
1889 if test $USE_MAINTAINER_MODE = yes; then
1890   MAINTAINER_MODE_TRUE=
1891   MAINTAINER_MODE_FALSE='#'
1892 else
1893   MAINTAINER_MODE_TRUE='#'
1894   MAINTAINER_MODE_FALSE=
1895 fi
1896
1897   MAINT=$MAINTAINER_MODE_TRUE
1898
1899
1900
1901
1902 # Default to --enable-multilib
1903 # Check whether --enable-multilib or --disable-multilib was given.
1904 if test "${enable_multilib+set}" = set; then
1905   enableval="$enable_multilib"
1906   case "$enableval" in
1907   yes) multilib=yes ;;
1908   no)  multilib=no ;;
1909   *)   { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1910 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1911    { (exit 1); exit 1; }; } ;;
1912  esac
1913 else
1914   multilib=yes
1915 fi;
1916
1917 # We may get other options which we leave undocumented:
1918 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1919 # See config-ml.in if you want the gory details.
1920
1921 if test "$srcdir" = "."; then
1922   if test "$with_target_subdir" != "."; then
1923     multi_basedir="$srcdir/$with_multisrctop../.."
1924   else
1925     multi_basedir="$srcdir/$with_multisrctop.."
1926   fi
1927 else
1928   multi_basedir="$srcdir/.."
1929 fi
1930
1931
1932           ac_config_commands="$ac_config_commands default-1"
1933
1934
1935 target_alias=${target_alias-$host_alias}
1936
1937
1938           ac_config_headers="$ac_config_headers config.h"
1939
1940
1941 ac_ext=c
1942 ac_cpp='$CPP $CPPFLAGS'
1943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1946
1947 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
1948 # We must force CC to /not/ be precious variables; otherwise
1949 # the wrong, non-multilib-adjusted value will be used in multilibs.
1950 # As a side effect, we have to subst CFLAGS ourselves.
1951
1952
1953
1954 ac_ext=c
1955 ac_cpp='$CPP $CPPFLAGS'
1956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1959 if test -n "$ac_tool_prefix"; then
1960   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1961 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1962 echo "$as_me:$LINENO: checking for $ac_word" >&5
1963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1964 if test "${ac_cv_prog_CC+set}" = set; then
1965   echo $ECHO_N "(cached) $ECHO_C" >&6
1966 else
1967   if test -n "$CC"; then
1968   ac_cv_prog_CC="$CC" # Let the user override the test.
1969 else
1970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1971 for as_dir in $PATH
1972 do
1973   IFS=$as_save_IFS
1974   test -z "$as_dir" && as_dir=.
1975   for ac_exec_ext in '' $ac_executable_extensions; do
1976   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1977     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1978     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1979     break 2
1980   fi
1981 done
1982 done
1983
1984 fi
1985 fi
1986 CC=$ac_cv_prog_CC
1987 if test -n "$CC"; then
1988   echo "$as_me:$LINENO: result: $CC" >&5
1989 echo "${ECHO_T}$CC" >&6
1990 else
1991   echo "$as_me:$LINENO: result: no" >&5
1992 echo "${ECHO_T}no" >&6
1993 fi
1994
1995 fi
1996 if test -z "$ac_cv_prog_CC"; then
1997   ac_ct_CC=$CC
1998   # Extract the first word of "gcc", so it can be a program name with args.
1999 set dummy gcc; ac_word=$2
2000 echo "$as_me:$LINENO: checking for $ac_word" >&5
2001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2002 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2003   echo $ECHO_N "(cached) $ECHO_C" >&6
2004 else
2005   if test -n "$ac_ct_CC"; then
2006   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2007 else
2008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2009 for as_dir in $PATH
2010 do
2011   IFS=$as_save_IFS
2012   test -z "$as_dir" && as_dir=.
2013   for ac_exec_ext in '' $ac_executable_extensions; do
2014   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2015     ac_cv_prog_ac_ct_CC="gcc"
2016     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2017     break 2
2018   fi
2019 done
2020 done
2021
2022 fi
2023 fi
2024 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2025 if test -n "$ac_ct_CC"; then
2026   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2027 echo "${ECHO_T}$ac_ct_CC" >&6
2028 else
2029   echo "$as_me:$LINENO: result: no" >&5
2030 echo "${ECHO_T}no" >&6
2031 fi
2032
2033   CC=$ac_ct_CC
2034 else
2035   CC="$ac_cv_prog_CC"
2036 fi
2037
2038 if test -z "$CC"; then
2039   if test -n "$ac_tool_prefix"; then
2040   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2041 set dummy ${ac_tool_prefix}cc; ac_word=$2
2042 echo "$as_me:$LINENO: checking for $ac_word" >&5
2043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2044 if test "${ac_cv_prog_CC+set}" = set; then
2045   echo $ECHO_N "(cached) $ECHO_C" >&6
2046 else
2047   if test -n "$CC"; then
2048   ac_cv_prog_CC="$CC" # Let the user override the test.
2049 else
2050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2051 for as_dir in $PATH
2052 do
2053   IFS=$as_save_IFS
2054   test -z "$as_dir" && as_dir=.
2055   for ac_exec_ext in '' $ac_executable_extensions; do
2056   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2057     ac_cv_prog_CC="${ac_tool_prefix}cc"
2058     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2059     break 2
2060   fi
2061 done
2062 done
2063
2064 fi
2065 fi
2066 CC=$ac_cv_prog_CC
2067 if test -n "$CC"; then
2068   echo "$as_me:$LINENO: result: $CC" >&5
2069 echo "${ECHO_T}$CC" >&6
2070 else
2071   echo "$as_me:$LINENO: result: no" >&5
2072 echo "${ECHO_T}no" >&6
2073 fi
2074
2075 fi
2076 if test -z "$ac_cv_prog_CC"; then
2077   ac_ct_CC=$CC
2078   # Extract the first word of "cc", so it can be a program name with args.
2079 set dummy cc; ac_word=$2
2080 echo "$as_me:$LINENO: checking for $ac_word" >&5
2081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2082 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2083   echo $ECHO_N "(cached) $ECHO_C" >&6
2084 else
2085   if test -n "$ac_ct_CC"; then
2086   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2087 else
2088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2089 for as_dir in $PATH
2090 do
2091   IFS=$as_save_IFS
2092   test -z "$as_dir" && as_dir=.
2093   for ac_exec_ext in '' $ac_executable_extensions; do
2094   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2095     ac_cv_prog_ac_ct_CC="cc"
2096     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2097     break 2
2098   fi
2099 done
2100 done
2101
2102 fi
2103 fi
2104 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2105 if test -n "$ac_ct_CC"; then
2106   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2107 echo "${ECHO_T}$ac_ct_CC" >&6
2108 else
2109   echo "$as_me:$LINENO: result: no" >&5
2110 echo "${ECHO_T}no" >&6
2111 fi
2112
2113   CC=$ac_ct_CC
2114 else
2115   CC="$ac_cv_prog_CC"
2116 fi
2117
2118 fi
2119 if test -z "$CC"; then
2120   # Extract the first word of "cc", so it can be a program name with args.
2121 set dummy cc; ac_word=$2
2122 echo "$as_me:$LINENO: checking for $ac_word" >&5
2123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2124 if test "${ac_cv_prog_CC+set}" = set; then
2125   echo $ECHO_N "(cached) $ECHO_C" >&6
2126 else
2127   if test -n "$CC"; then
2128   ac_cv_prog_CC="$CC" # Let the user override the test.
2129 else
2130   ac_prog_rejected=no
2131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2132 for as_dir in $PATH
2133 do
2134   IFS=$as_save_IFS
2135   test -z "$as_dir" && as_dir=.
2136   for ac_exec_ext in '' $ac_executable_extensions; do
2137   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2138     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2139        ac_prog_rejected=yes
2140        continue
2141      fi
2142     ac_cv_prog_CC="cc"
2143     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2144     break 2
2145   fi
2146 done
2147 done
2148
2149 if test $ac_prog_rejected = yes; then
2150   # We found a bogon in the path, so make sure we never use it.
2151   set dummy $ac_cv_prog_CC
2152   shift
2153   if test $# != 0; then
2154     # We chose a different compiler from the bogus one.
2155     # However, it has the same basename, so the bogon will be chosen
2156     # first if we set CC to just the basename; use the full file name.
2157     shift
2158     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2159   fi
2160 fi
2161 fi
2162 fi
2163 CC=$ac_cv_prog_CC
2164 if test -n "$CC"; then
2165   echo "$as_me:$LINENO: result: $CC" >&5
2166 echo "${ECHO_T}$CC" >&6
2167 else
2168   echo "$as_me:$LINENO: result: no" >&5
2169 echo "${ECHO_T}no" >&6
2170 fi
2171
2172 fi
2173 if test -z "$CC"; then
2174   if test -n "$ac_tool_prefix"; then
2175   for ac_prog in cl
2176   do
2177     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2178 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2179 echo "$as_me:$LINENO: checking for $ac_word" >&5
2180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2181 if test "${ac_cv_prog_CC+set}" = set; then
2182   echo $ECHO_N "(cached) $ECHO_C" >&6
2183 else
2184   if test -n "$CC"; then
2185   ac_cv_prog_CC="$CC" # Let the user override the test.
2186 else
2187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2188 for as_dir in $PATH
2189 do
2190   IFS=$as_save_IFS
2191   test -z "$as_dir" && as_dir=.
2192   for ac_exec_ext in '' $ac_executable_extensions; do
2193   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2194     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2195     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2196     break 2
2197   fi
2198 done
2199 done
2200
2201 fi
2202 fi
2203 CC=$ac_cv_prog_CC
2204 if test -n "$CC"; then
2205   echo "$as_me:$LINENO: result: $CC" >&5
2206 echo "${ECHO_T}$CC" >&6
2207 else
2208   echo "$as_me:$LINENO: result: no" >&5
2209 echo "${ECHO_T}no" >&6
2210 fi
2211
2212     test -n "$CC" && break
2213   done
2214 fi
2215 if test -z "$CC"; then
2216   ac_ct_CC=$CC
2217   for ac_prog in cl
2218 do
2219   # Extract the first word of "$ac_prog", so it can be a program name with args.
2220 set dummy $ac_prog; ac_word=$2
2221 echo "$as_me:$LINENO: checking for $ac_word" >&5
2222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2223 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2224   echo $ECHO_N "(cached) $ECHO_C" >&6
2225 else
2226   if test -n "$ac_ct_CC"; then
2227   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2228 else
2229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2230 for as_dir in $PATH
2231 do
2232   IFS=$as_save_IFS
2233   test -z "$as_dir" && as_dir=.
2234   for ac_exec_ext in '' $ac_executable_extensions; do
2235   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2236     ac_cv_prog_ac_ct_CC="$ac_prog"
2237     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2238     break 2
2239   fi
2240 done
2241 done
2242
2243 fi
2244 fi
2245 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2246 if test -n "$ac_ct_CC"; then
2247   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2248 echo "${ECHO_T}$ac_ct_CC" >&6
2249 else
2250   echo "$as_me:$LINENO: result: no" >&5
2251 echo "${ECHO_T}no" >&6
2252 fi
2253
2254   test -n "$ac_ct_CC" && break
2255 done
2256
2257   CC=$ac_ct_CC
2258 fi
2259
2260 fi
2261
2262
2263 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2264 See \`config.log' for more details." >&5
2265 echo "$as_me: error: no acceptable C compiler found in \$PATH
2266 See \`config.log' for more details." >&2;}
2267    { (exit 1); exit 1; }; }
2268
2269 # Provide some information about the compiler.
2270 echo "$as_me:$LINENO:" \
2271      "checking for C compiler version" >&5
2272 ac_compiler=`set X $ac_compile; echo $2`
2273 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2274   (eval $ac_compiler --version </dev/null >&5) 2>&5
2275   ac_status=$?
2276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277   (exit $ac_status); }
2278 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2279   (eval $ac_compiler -v </dev/null >&5) 2>&5
2280   ac_status=$?
2281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282   (exit $ac_status); }
2283 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2284   (eval $ac_compiler -V </dev/null >&5) 2>&5
2285   ac_status=$?
2286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2287   (exit $ac_status); }
2288
2289 cat >conftest.$ac_ext <<_ACEOF
2290 /* confdefs.h.  */
2291 _ACEOF
2292 cat confdefs.h >>conftest.$ac_ext
2293 cat >>conftest.$ac_ext <<_ACEOF
2294 /* end confdefs.h.  */
2295
2296 int
2297 main ()
2298 {
2299
2300   ;
2301   return 0;
2302 }
2303 _ACEOF
2304 ac_clean_files_save=$ac_clean_files
2305 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2306 # Try to create an executable without -o first, disregard a.out.
2307 # It will help us diagnose broken compilers, and finding out an intuition
2308 # of exeext.
2309 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2310 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2311 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2312 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2313   (eval $ac_link_default) 2>&5
2314   ac_status=$?
2315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2316   (exit $ac_status); }; then
2317   # Find the output, starting from the most likely.  This scheme is
2318 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2319 # resort.
2320
2321 # Be careful to initialize this variable, since it used to be cached.
2322 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2323 ac_cv_exeext=
2324 # b.out is created by i960 compilers.
2325 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2326 do
2327   test -f "$ac_file" || continue
2328   case $ac_file in
2329     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2330         ;;
2331     conftest.$ac_ext )
2332         # This is the source file.
2333         ;;
2334     [ab].out )
2335         # We found the default executable, but exeext='' is most
2336         # certainly right.
2337         break;;
2338     *.* )
2339         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2340         # FIXME: I believe we export ac_cv_exeext for Libtool,
2341         # but it would be cool to find out if it's true.  Does anybody
2342         # maintain Libtool? --akim.
2343         export ac_cv_exeext
2344         break;;
2345     * )
2346         break;;
2347   esac
2348 done
2349 else
2350   echo "$as_me: failed program was:" >&5
2351 sed 's/^/| /' conftest.$ac_ext >&5
2352
2353 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2354 See \`config.log' for more details." >&5
2355 echo "$as_me: error: C compiler cannot create executables
2356 See \`config.log' for more details." >&2;}
2357    { (exit 77); exit 77; }; }
2358 fi
2359
2360 ac_exeext=$ac_cv_exeext
2361 echo "$as_me:$LINENO: result: $ac_file" >&5
2362 echo "${ECHO_T}$ac_file" >&6
2363
2364 # Check the compiler produces executables we can run.  If not, either
2365 # the compiler is broken, or we cross compile.
2366 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2367 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2368 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2369 # If not cross compiling, check that we can run a simple program.
2370 if test "$cross_compiling" != yes; then
2371   if { ac_try='./$ac_file'
2372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2373   (eval $ac_try) 2>&5
2374   ac_status=$?
2375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376   (exit $ac_status); }; }; then
2377     cross_compiling=no
2378   else
2379     if test "$cross_compiling" = maybe; then
2380         cross_compiling=yes
2381     else
2382         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2383 If you meant to cross compile, use \`--host'.
2384 See \`config.log' for more details." >&5
2385 echo "$as_me: error: cannot run C compiled programs.
2386 If you meant to cross compile, use \`--host'.
2387 See \`config.log' for more details." >&2;}
2388    { (exit 1); exit 1; }; }
2389     fi
2390   fi
2391 fi
2392 echo "$as_me:$LINENO: result: yes" >&5
2393 echo "${ECHO_T}yes" >&6
2394
2395 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2396 ac_clean_files=$ac_clean_files_save
2397 # Check the compiler produces executables we can run.  If not, either
2398 # the compiler is broken, or we cross compile.
2399 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2400 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2401 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2402 echo "${ECHO_T}$cross_compiling" >&6
2403
2404 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2405 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2407   (eval $ac_link) 2>&5
2408   ac_status=$?
2409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410   (exit $ac_status); }; then
2411   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2412 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2413 # work properly (i.e., refer to `conftest.exe'), while it won't with
2414 # `rm'.
2415 for ac_file in conftest.exe conftest conftest.*; do
2416   test -f "$ac_file" || continue
2417   case $ac_file in
2418     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2419     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2420           export ac_cv_exeext
2421           break;;
2422     * ) break;;
2423   esac
2424 done
2425 else
2426   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2427 See \`config.log' for more details." >&5
2428 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2429 See \`config.log' for more details." >&2;}
2430    { (exit 1); exit 1; }; }
2431 fi
2432
2433 rm -f conftest$ac_cv_exeext
2434 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2435 echo "${ECHO_T}$ac_cv_exeext" >&6
2436
2437 rm -f conftest.$ac_ext
2438 EXEEXT=$ac_cv_exeext
2439 ac_exeext=$EXEEXT
2440 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2441 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2442 if test "${ac_cv_objext+set}" = set; then
2443   echo $ECHO_N "(cached) $ECHO_C" >&6
2444 else
2445   cat >conftest.$ac_ext <<_ACEOF
2446 /* confdefs.h.  */
2447 _ACEOF
2448 cat confdefs.h >>conftest.$ac_ext
2449 cat >>conftest.$ac_ext <<_ACEOF
2450 /* end confdefs.h.  */
2451
2452 int
2453 main ()
2454 {
2455
2456   ;
2457   return 0;
2458 }
2459 _ACEOF
2460 rm -f conftest.o conftest.obj
2461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2462   (eval $ac_compile) 2>&5
2463   ac_status=$?
2464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465   (exit $ac_status); }; then
2466   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2467   case $ac_file in
2468     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2469     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2470        break;;
2471   esac
2472 done
2473 else
2474   echo "$as_me: failed program was:" >&5
2475 sed 's/^/| /' conftest.$ac_ext >&5
2476
2477 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2478 See \`config.log' for more details." >&5
2479 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2480 See \`config.log' for more details." >&2;}
2481    { (exit 1); exit 1; }; }
2482 fi
2483
2484 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2485 fi
2486 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2487 echo "${ECHO_T}$ac_cv_objext" >&6
2488 OBJEXT=$ac_cv_objext
2489 ac_objext=$OBJEXT
2490 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2491 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2492 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2493   echo $ECHO_N "(cached) $ECHO_C" >&6
2494 else
2495   cat >conftest.$ac_ext <<_ACEOF
2496 /* confdefs.h.  */
2497 _ACEOF
2498 cat confdefs.h >>conftest.$ac_ext
2499 cat >>conftest.$ac_ext <<_ACEOF
2500 /* end confdefs.h.  */
2501
2502 int
2503 main ()
2504 {
2505 #ifndef __GNUC__
2506        choke me
2507 #endif
2508
2509   ;
2510   return 0;
2511 }
2512 _ACEOF
2513 rm -f conftest.$ac_objext
2514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2515   (eval $ac_compile) 2>conftest.er1
2516   ac_status=$?
2517   grep -v '^ *+' conftest.er1 >conftest.err
2518   rm -f conftest.er1
2519   cat conftest.err >&5
2520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521   (exit $ac_status); } &&
2522          { ac_try='test -z "$ac_c_werror_flag"
2523                          || test ! -s conftest.err'
2524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2525   (eval $ac_try) 2>&5
2526   ac_status=$?
2527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528   (exit $ac_status); }; } &&
2529          { ac_try='test -s conftest.$ac_objext'
2530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2531   (eval $ac_try) 2>&5
2532   ac_status=$?
2533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534   (exit $ac_status); }; }; then
2535   ac_compiler_gnu=yes
2536 else
2537   echo "$as_me: failed program was:" >&5
2538 sed 's/^/| /' conftest.$ac_ext >&5
2539
2540 ac_compiler_gnu=no
2541 fi
2542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2543 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2544
2545 fi
2546 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2547 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2548 GCC=`test $ac_compiler_gnu = yes && echo yes`
2549 ac_test_CFLAGS=${CFLAGS+set}
2550 ac_save_CFLAGS=$CFLAGS
2551 CFLAGS="-g"
2552 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2553 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2554 if test "${ac_cv_prog_cc_g+set}" = set; then
2555   echo $ECHO_N "(cached) $ECHO_C" >&6
2556 else
2557   cat >conftest.$ac_ext <<_ACEOF
2558 /* confdefs.h.  */
2559 _ACEOF
2560 cat confdefs.h >>conftest.$ac_ext
2561 cat >>conftest.$ac_ext <<_ACEOF
2562 /* end confdefs.h.  */
2563
2564 int
2565 main ()
2566 {
2567
2568   ;
2569   return 0;
2570 }
2571 _ACEOF
2572 rm -f conftest.$ac_objext
2573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2574   (eval $ac_compile) 2>conftest.er1
2575   ac_status=$?
2576   grep -v '^ *+' conftest.er1 >conftest.err
2577   rm -f conftest.er1
2578   cat conftest.err >&5
2579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580   (exit $ac_status); } &&
2581          { ac_try='test -z "$ac_c_werror_flag"
2582                          || test ! -s conftest.err'
2583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2584   (eval $ac_try) 2>&5
2585   ac_status=$?
2586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587   (exit $ac_status); }; } &&
2588          { ac_try='test -s conftest.$ac_objext'
2589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2590   (eval $ac_try) 2>&5
2591   ac_status=$?
2592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593   (exit $ac_status); }; }; then
2594   ac_cv_prog_cc_g=yes
2595 else
2596   echo "$as_me: failed program was:" >&5
2597 sed 's/^/| /' conftest.$ac_ext >&5
2598
2599 ac_cv_prog_cc_g=no
2600 fi
2601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2602 fi
2603 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2604 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2605 if test "$ac_test_CFLAGS" = set; then
2606   CFLAGS=$ac_save_CFLAGS
2607 elif test $ac_cv_prog_cc_g = yes; then
2608   if test "$GCC" = yes; then
2609     CFLAGS="-g -O2"
2610   else
2611     CFLAGS="-g"
2612   fi
2613 else
2614   if test "$GCC" = yes; then
2615     CFLAGS="-O2"
2616   else
2617     CFLAGS=
2618   fi
2619 fi
2620 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2621 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2622 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2623   echo $ECHO_N "(cached) $ECHO_C" >&6
2624 else
2625   ac_cv_prog_cc_stdc=no
2626 ac_save_CC=$CC
2627 cat >conftest.$ac_ext <<_ACEOF
2628 /* confdefs.h.  */
2629 _ACEOF
2630 cat confdefs.h >>conftest.$ac_ext
2631 cat >>conftest.$ac_ext <<_ACEOF
2632 /* end confdefs.h.  */
2633 #include <stdarg.h>
2634 #include <stdio.h>
2635 #include <sys/types.h>
2636 #include <sys/stat.h>
2637 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2638 struct buf { int x; };
2639 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2640 static char *e (p, i)
2641      char **p;
2642      int i;
2643 {
2644   return p[i];
2645 }
2646 static char *f (char * (*g) (char **, int), char **p, ...)
2647 {
2648   char *s;
2649   va_list v;
2650   va_start (v,p);
2651   s = g (p, va_arg (v,int));
2652   va_end (v);
2653   return s;
2654 }
2655
2656 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2657    function prototypes and stuff, but not '\xHH' hex character constants.
2658    These don't provoke an error unfortunately, instead are silently treated
2659    as 'x'.  The following induces an error, until -std1 is added to get
2660    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2661    array size at least.  It's necessary to write '\x00'==0 to get something
2662    that's true only with -std1.  */
2663 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2664
2665 int test (int i, double x);
2666 struct s1 {int (*f) (int a);};
2667 struct s2 {int (*f) (double a);};
2668 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2669 int argc;
2670 char **argv;
2671 int
2672 main ()
2673 {
2674 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2675   ;
2676   return 0;
2677 }
2678 _ACEOF
2679 # Don't try gcc -ansi; that turns off useful extensions and
2680 # breaks some systems' header files.
2681 # AIX                   -qlanglvl=ansi
2682 # Ultrix and OSF/1      -std1
2683 # HP-UX 10.20 and later -Ae
2684 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2685 # SVR4                  -Xc -D__EXTENSIONS__
2686 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2687 do
2688   CC="$ac_save_CC $ac_arg"
2689   rm -f conftest.$ac_objext
2690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2691   (eval $ac_compile) 2>conftest.er1
2692   ac_status=$?
2693   grep -v '^ *+' conftest.er1 >conftest.err
2694   rm -f conftest.er1
2695   cat conftest.err >&5
2696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697   (exit $ac_status); } &&
2698          { ac_try='test -z "$ac_c_werror_flag"
2699                          || test ! -s conftest.err'
2700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2701   (eval $ac_try) 2>&5
2702   ac_status=$?
2703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704   (exit $ac_status); }; } &&
2705          { ac_try='test -s conftest.$ac_objext'
2706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2707   (eval $ac_try) 2>&5
2708   ac_status=$?
2709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710   (exit $ac_status); }; }; then
2711   ac_cv_prog_cc_stdc=$ac_arg
2712 break
2713 else
2714   echo "$as_me: failed program was:" >&5
2715 sed 's/^/| /' conftest.$ac_ext >&5
2716
2717 fi
2718 rm -f conftest.err conftest.$ac_objext
2719 done
2720 rm -f conftest.$ac_ext conftest.$ac_objext
2721 CC=$ac_save_CC
2722
2723 fi
2724
2725 case "x$ac_cv_prog_cc_stdc" in
2726   x|xno)
2727     echo "$as_me:$LINENO: result: none needed" >&5
2728 echo "${ECHO_T}none needed" >&6 ;;
2729   *)
2730     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2731 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2732     CC="$CC $ac_cv_prog_cc_stdc" ;;
2733 esac
2734
2735 # Some people use a C++ compiler to compile C.  Since we use `exit',
2736 # in C++ we need to declare it.  In case someone uses the same compiler
2737 # for both compiling C and C++ we need to have the C++ compiler decide
2738 # the declaration of exit, since it's the most demanding environment.
2739 cat >conftest.$ac_ext <<_ACEOF
2740 #ifndef __cplusplus
2741   choke me
2742 #endif
2743 _ACEOF
2744 rm -f conftest.$ac_objext
2745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2746   (eval $ac_compile) 2>conftest.er1
2747   ac_status=$?
2748   grep -v '^ *+' conftest.er1 >conftest.err
2749   rm -f conftest.er1
2750   cat conftest.err >&5
2751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752   (exit $ac_status); } &&
2753          { ac_try='test -z "$ac_c_werror_flag"
2754                          || test ! -s conftest.err'
2755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2756   (eval $ac_try) 2>&5
2757   ac_status=$?
2758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759   (exit $ac_status); }; } &&
2760          { ac_try='test -s conftest.$ac_objext'
2761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2762   (eval $ac_try) 2>&5
2763   ac_status=$?
2764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765   (exit $ac_status); }; }; then
2766   for ac_declaration in \
2767    '' \
2768    'extern "C" void std::exit (int) throw (); using std::exit;' \
2769    'extern "C" void std::exit (int); using std::exit;' \
2770    'extern "C" void exit (int) throw ();' \
2771    'extern "C" void exit (int);' \
2772    'void exit (int);'
2773 do
2774   cat >conftest.$ac_ext <<_ACEOF
2775 /* confdefs.h.  */
2776 _ACEOF
2777 cat confdefs.h >>conftest.$ac_ext
2778 cat >>conftest.$ac_ext <<_ACEOF
2779 /* end confdefs.h.  */
2780 $ac_declaration
2781 #include <stdlib.h>
2782 int
2783 main ()
2784 {
2785 exit (42);
2786   ;
2787   return 0;
2788 }
2789 _ACEOF
2790 rm -f conftest.$ac_objext
2791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2792   (eval $ac_compile) 2>conftest.er1
2793   ac_status=$?
2794   grep -v '^ *+' conftest.er1 >conftest.err
2795   rm -f conftest.er1
2796   cat conftest.err >&5
2797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798   (exit $ac_status); } &&
2799          { ac_try='test -z "$ac_c_werror_flag"
2800                          || test ! -s conftest.err'
2801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2802   (eval $ac_try) 2>&5
2803   ac_status=$?
2804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805   (exit $ac_status); }; } &&
2806          { ac_try='test -s conftest.$ac_objext'
2807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2808   (eval $ac_try) 2>&5
2809   ac_status=$?
2810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811   (exit $ac_status); }; }; then
2812   :
2813 else
2814   echo "$as_me: failed program was:" >&5
2815 sed 's/^/| /' conftest.$ac_ext >&5
2816
2817 continue
2818 fi
2819 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2820   cat >conftest.$ac_ext <<_ACEOF
2821 /* confdefs.h.  */
2822 _ACEOF
2823 cat confdefs.h >>conftest.$ac_ext
2824 cat >>conftest.$ac_ext <<_ACEOF
2825 /* end confdefs.h.  */
2826 $ac_declaration
2827 int
2828 main ()
2829 {
2830 exit (42);
2831   ;
2832   return 0;
2833 }
2834 _ACEOF
2835 rm -f conftest.$ac_objext
2836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2837   (eval $ac_compile) 2>conftest.er1
2838   ac_status=$?
2839   grep -v '^ *+' conftest.er1 >conftest.err
2840   rm -f conftest.er1
2841   cat conftest.err >&5
2842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843   (exit $ac_status); } &&
2844          { ac_try='test -z "$ac_c_werror_flag"
2845                          || test ! -s conftest.err'
2846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2847   (eval $ac_try) 2>&5
2848   ac_status=$?
2849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850   (exit $ac_status); }; } &&
2851          { ac_try='test -s conftest.$ac_objext'
2852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2853   (eval $ac_try) 2>&5
2854   ac_status=$?
2855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856   (exit $ac_status); }; }; then
2857   break
2858 else
2859   echo "$as_me: failed program was:" >&5
2860 sed 's/^/| /' conftest.$ac_ext >&5
2861
2862 fi
2863 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2864 done
2865 rm -f conftest*
2866 if test -n "$ac_declaration"; then
2867   echo '#ifdef __cplusplus' >>confdefs.h
2868   echo $ac_declaration      >>confdefs.h
2869   echo '#endif'             >>confdefs.h
2870 fi
2871
2872 else
2873   echo "$as_me: failed program was:" >&5
2874 sed 's/^/| /' conftest.$ac_ext >&5
2875
2876 fi
2877 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2878 ac_ext=c
2879 ac_cpp='$CPP $CPPFLAGS'
2880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2883 DEPDIR="${am__leading_dot}deps"
2884
2885           ac_config_commands="$ac_config_commands depfiles"
2886
2887
2888 am_make=${MAKE-make}
2889 cat > confinc << 'END'
2890 am__doit:
2891         @echo done
2892 .PHONY: am__doit
2893 END
2894 # If we don't find an include directive, just comment out the code.
2895 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2896 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2897 am__include="#"
2898 am__quote=
2899 _am_result=none
2900 # First try GNU make style include.
2901 echo "include confinc" > confmf
2902 # We grep out `Entering directory' and `Leaving directory'
2903 # messages which can occur if `w' ends up in MAKEFLAGS.
2904 # In particular we don't look at `^make:' because GNU make might
2905 # be invoked under some other name (usually "gmake"), in which
2906 # case it prints its new name instead of `make'.
2907 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2908    am__include=include
2909    am__quote=
2910    _am_result=GNU
2911 fi
2912 # Now try BSD make style include.
2913 if test "$am__include" = "#"; then
2914    echo '.include "confinc"' > confmf
2915    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2916       am__include=.include
2917       am__quote="\""
2918       _am_result=BSD
2919    fi
2920 fi
2921
2922
2923 echo "$as_me:$LINENO: result: $_am_result" >&5
2924 echo "${ECHO_T}$_am_result" >&6
2925 rm -f confinc confmf
2926
2927 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2928 if test "${enable_dependency_tracking+set}" = set; then
2929   enableval="$enable_dependency_tracking"
2930
2931 fi;
2932 if test "x$enable_dependency_tracking" != xno; then
2933   am_depcomp="$ac_aux_dir/depcomp"
2934   AMDEPBACKSLASH='\'
2935 fi
2936
2937
2938 if test "x$enable_dependency_tracking" != xno; then
2939   AMDEP_TRUE=
2940   AMDEP_FALSE='#'
2941 else
2942   AMDEP_TRUE='#'
2943   AMDEP_FALSE=
2944 fi
2945
2946
2947
2948
2949 depcc="$CC"   am_compiler_list=
2950
2951 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2952 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2953 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2954   echo $ECHO_N "(cached) $ECHO_C" >&6
2955 else
2956   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2957   # We make a subdir and do the tests there.  Otherwise we can end up
2958   # making bogus files that we don't know about and never remove.  For
2959   # instance it was reported that on HP-UX the gcc test will end up
2960   # making a dummy file named `D' -- because `-MD' means `put the output
2961   # in D'.
2962   mkdir conftest.dir
2963   # Copy depcomp to subdir because otherwise we won't find it if we're
2964   # using a relative directory.
2965   cp "$am_depcomp" conftest.dir
2966   cd conftest.dir
2967   # We will build objects and dependencies in a subdirectory because
2968   # it helps to detect inapplicable dependency modes.  For instance
2969   # both Tru64's cc and ICC support -MD to output dependencies as a
2970   # side effect of compilation, but ICC will put the dependencies in
2971   # the current directory while Tru64 will put them in the object
2972   # directory.
2973   mkdir sub
2974
2975   am_cv_CC_dependencies_compiler_type=none
2976   if test "$am_compiler_list" = ""; then
2977      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2978   fi
2979   for depmode in $am_compiler_list; do
2980     # Setup a source with many dependencies, because some compilers
2981     # like to wrap large dependency lists on column 80 (with \), and
2982     # we should not choose a depcomp mode which is confused by this.
2983     #
2984     # We need to recreate these files for each test, as the compiler may
2985     # overwrite some of them when testing with obscure command lines.
2986     # This happens at least with the AIX C compiler.
2987     : > sub/conftest.c
2988     for i in 1 2 3 4 5 6; do
2989       echo '#include "conftst'$i'.h"' >> sub/conftest.c
2990       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2991       # Solaris 8's {/usr,}/bin/sh.
2992       touch sub/conftst$i.h
2993     done
2994     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2995
2996     case $depmode in
2997     nosideeffect)
2998       # after this tag, mechanisms are not by side-effect, so they'll
2999       # only be used when explicitly requested
3000       if test "x$enable_dependency_tracking" = xyes; then
3001         continue
3002       else
3003         break
3004       fi
3005       ;;
3006     none) break ;;
3007     esac
3008     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3009     # mode.  It turns out that the SunPro C++ compiler does not properly
3010     # handle `-M -o', and we need to detect this.
3011     if depmode=$depmode \
3012        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3013        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3014        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3015          >/dev/null 2>conftest.err &&
3016        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3017        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3018        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3019       # icc doesn't choke on unknown options, it will just issue warnings
3020       # or remarks (even with -Werror).  So we grep stderr for any message
3021       # that says an option was ignored or not supported.
3022       # When given -MP, icc 7.0 and 7.1 complain thusly:
3023       #   icc: Command line warning: ignoring option '-M'; no argument required
3024       # The diagnosis changed in icc 8.0:
3025       #   icc: Command line remark: option '-MP' not supported
3026       if (grep 'ignoring option' conftest.err ||
3027           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3028         am_cv_CC_dependencies_compiler_type=$depmode
3029         break
3030       fi
3031     fi
3032   done
3033
3034   cd ..
3035   rm -rf conftest.dir
3036 else
3037   am_cv_CC_dependencies_compiler_type=none
3038 fi
3039
3040 fi
3041 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3042 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3043 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3044
3045
3046
3047 if
3048   test "x$enable_dependency_tracking" != xno \
3049   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3050   am__fastdepCC_TRUE=
3051   am__fastdepCC_FALSE='#'
3052 else
3053   am__fastdepCC_TRUE='#'
3054   am__fastdepCC_FALSE=
3055 fi
3056
3057
3058
3059
3060
3061
3062 if test "x$GCC" != "xyes"; then
3063   { { echo "$as_me:$LINENO: error: libmudflap must be built with GCC" >&5
3064 echo "$as_me: error: libmudflap must be built with GCC" >&2;}
3065    { (exit 1); exit 1; }; }
3066 fi
3067 ac_ext=c
3068 ac_cpp='$CPP $CPPFLAGS'
3069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3072 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3073 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3074 # On Suns, sometimes $CPP names a directory.
3075 if test -n "$CPP" && test -d "$CPP"; then
3076   CPP=
3077 fi
3078 if test -z "$CPP"; then
3079   if test "${ac_cv_prog_CPP+set}" = set; then
3080   echo $ECHO_N "(cached) $ECHO_C" >&6
3081 else
3082       # Double quotes because CPP needs to be expanded
3083     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3084     do
3085       ac_preproc_ok=false
3086 for ac_c_preproc_warn_flag in '' yes
3087 do
3088   # Use a header file that comes with gcc, so configuring glibc
3089   # with a fresh cross-compiler works.
3090   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3091   # <limits.h> exists even on freestanding compilers.
3092   # On the NeXT, cc -E runs the code through the compiler's parser,
3093   # not just through cpp. "Syntax error" is here to catch this case.
3094   cat >conftest.$ac_ext <<_ACEOF
3095 /* confdefs.h.  */
3096 _ACEOF
3097 cat confdefs.h >>conftest.$ac_ext
3098 cat >>conftest.$ac_ext <<_ACEOF
3099 /* end confdefs.h.  */
3100 #ifdef __STDC__
3101 # include <limits.h>
3102 #else
3103 # include <assert.h>
3104 #endif
3105                      Syntax error
3106 _ACEOF
3107 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3108   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3109   ac_status=$?
3110   grep -v '^ *+' conftest.er1 >conftest.err
3111   rm -f conftest.er1
3112   cat conftest.err >&5
3113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114   (exit $ac_status); } >/dev/null; then
3115   if test -s conftest.err; then
3116     ac_cpp_err=$ac_c_preproc_warn_flag
3117     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3118   else
3119     ac_cpp_err=
3120   fi
3121 else
3122   ac_cpp_err=yes
3123 fi
3124 if test -z "$ac_cpp_err"; then
3125   :
3126 else
3127   echo "$as_me: failed program was:" >&5
3128 sed 's/^/| /' conftest.$ac_ext >&5
3129
3130   # Broken: fails on valid input.
3131 continue
3132 fi
3133 rm -f conftest.err conftest.$ac_ext
3134
3135   # OK, works on sane cases.  Now check whether non-existent headers
3136   # can be detected and how.
3137   cat >conftest.$ac_ext <<_ACEOF
3138 /* confdefs.h.  */
3139 _ACEOF
3140 cat confdefs.h >>conftest.$ac_ext
3141 cat >>conftest.$ac_ext <<_ACEOF
3142 /* end confdefs.h.  */
3143 #include <ac_nonexistent.h>
3144 _ACEOF
3145 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3146   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3147   ac_status=$?
3148   grep -v '^ *+' conftest.er1 >conftest.err
3149   rm -f conftest.er1
3150   cat conftest.err >&5
3151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152   (exit $ac_status); } >/dev/null; then
3153   if test -s conftest.err; then
3154     ac_cpp_err=$ac_c_preproc_warn_flag
3155     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3156   else
3157     ac_cpp_err=
3158   fi
3159 else
3160   ac_cpp_err=yes
3161 fi
3162 if test -z "$ac_cpp_err"; then
3163   # Broken: success on invalid input.
3164 continue
3165 else
3166   echo "$as_me: failed program was:" >&5
3167 sed 's/^/| /' conftest.$ac_ext >&5
3168
3169   # Passes both tests.
3170 ac_preproc_ok=:
3171 break
3172 fi
3173 rm -f conftest.err conftest.$ac_ext
3174
3175 done
3176 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3177 rm -f conftest.err conftest.$ac_ext
3178 if $ac_preproc_ok; then
3179   break
3180 fi
3181
3182     done
3183     ac_cv_prog_CPP=$CPP
3184
3185 fi
3186   CPP=$ac_cv_prog_CPP
3187 else
3188   ac_cv_prog_CPP=$CPP
3189 fi
3190 echo "$as_me:$LINENO: result: $CPP" >&5
3191 echo "${ECHO_T}$CPP" >&6
3192 ac_preproc_ok=false
3193 for ac_c_preproc_warn_flag in '' yes
3194 do
3195   # Use a header file that comes with gcc, so configuring glibc
3196   # with a fresh cross-compiler works.
3197   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3198   # <limits.h> exists even on freestanding compilers.
3199   # On the NeXT, cc -E runs the code through the compiler's parser,
3200   # not just through cpp. "Syntax error" is here to catch this case.
3201   cat >conftest.$ac_ext <<_ACEOF
3202 /* confdefs.h.  */
3203 _ACEOF
3204 cat confdefs.h >>conftest.$ac_ext
3205 cat >>conftest.$ac_ext <<_ACEOF
3206 /* end confdefs.h.  */
3207 #ifdef __STDC__
3208 # include <limits.h>
3209 #else
3210 # include <assert.h>
3211 #endif
3212                      Syntax error
3213 _ACEOF
3214 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3215   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3216   ac_status=$?
3217   grep -v '^ *+' conftest.er1 >conftest.err
3218   rm -f conftest.er1
3219   cat conftest.err >&5
3220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3221   (exit $ac_status); } >/dev/null; then
3222   if test -s conftest.err; then
3223     ac_cpp_err=$ac_c_preproc_warn_flag
3224     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3225   else
3226     ac_cpp_err=
3227   fi
3228 else
3229   ac_cpp_err=yes
3230 fi
3231 if test -z "$ac_cpp_err"; then
3232   :
3233 else
3234   echo "$as_me: failed program was:" >&5
3235 sed 's/^/| /' conftest.$ac_ext >&5
3236
3237   # Broken: fails on valid input.
3238 continue
3239 fi
3240 rm -f conftest.err conftest.$ac_ext
3241
3242   # OK, works on sane cases.  Now check whether non-existent headers
3243   # can be detected and how.
3244   cat >conftest.$ac_ext <<_ACEOF
3245 /* confdefs.h.  */
3246 _ACEOF
3247 cat confdefs.h >>conftest.$ac_ext
3248 cat >>conftest.$ac_ext <<_ACEOF
3249 /* end confdefs.h.  */
3250 #include <ac_nonexistent.h>
3251 _ACEOF
3252 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3253   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3254   ac_status=$?
3255   grep -v '^ *+' conftest.er1 >conftest.err
3256   rm -f conftest.er1
3257   cat conftest.err >&5
3258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259   (exit $ac_status); } >/dev/null; then
3260   if test -s conftest.err; then
3261     ac_cpp_err=$ac_c_preproc_warn_flag
3262     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3263   else
3264     ac_cpp_err=
3265   fi
3266 else
3267   ac_cpp_err=yes
3268 fi
3269 if test -z "$ac_cpp_err"; then
3270   # Broken: success on invalid input.
3271 continue
3272 else
3273   echo "$as_me: failed program was:" >&5
3274 sed 's/^/| /' conftest.$ac_ext >&5
3275
3276   # Passes both tests.
3277 ac_preproc_ok=:
3278 break
3279 fi
3280 rm -f conftest.err conftest.$ac_ext
3281
3282 done
3283 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3284 rm -f conftest.err conftest.$ac_ext
3285 if $ac_preproc_ok; then
3286   :
3287 else
3288   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3289 See \`config.log' for more details." >&5
3290 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3291 See \`config.log' for more details." >&2;}
3292    { (exit 1); exit 1; }; }
3293 fi
3294
3295 ac_ext=c
3296 ac_cpp='$CPP $CPPFLAGS'
3297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3300
3301
3302 # Some hosts don't have dlsym(RTLD_NEXT, "symbol") for use in
3303 # symbol interposition.  We disable shared libraries for these.
3304 echo "$as_me:$LINENO: checking whether dlsym(RTLD_NEXT,...) is available" >&5
3305 echo $ECHO_N "checking whether dlsym(RTLD_NEXT,...) is available... $ECHO_C" >&6
3306
3307 cat >conftest.$ac_ext <<_ACEOF
3308 /* confdefs.h.  */
3309 _ACEOF
3310 cat confdefs.h >>conftest.$ac_ext
3311 cat >>conftest.$ac_ext <<_ACEOF
3312 /* end confdefs.h.  */
3313
3314 #define _GNU_SOURCE
3315 #include <dlfcn.h>
3316
3317 int
3318 main ()
3319 {
3320 void *foo = dlsym (RTLD_NEXT, "exit");
3321   ;
3322   return 0;
3323 }
3324 _ACEOF
3325 rm -f conftest.$ac_objext
3326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3327   (eval $ac_compile) 2>conftest.er1
3328   ac_status=$?
3329   grep -v '^ *+' conftest.er1 >conftest.err
3330   rm -f conftest.er1
3331   cat conftest.err >&5
3332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333   (exit $ac_status); } &&
3334          { ac_try='test -z "$ac_c_werror_flag"
3335                          || test ! -s conftest.err'
3336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3337   (eval $ac_try) 2>&5
3338   ac_status=$?
3339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340   (exit $ac_status); }; } &&
3341          { ac_try='test -s conftest.$ac_objext'
3342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3343   (eval $ac_try) 2>&5
3344   ac_status=$?
3345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346   (exit $ac_status); }; }; then
3347   echo "$as_me:$LINENO: result: yes" >&5
3348 echo "${ECHO_T}yes" >&6
3349 else
3350   echo "$as_me: failed program was:" >&5
3351 sed 's/^/| /' conftest.$ac_ext >&5
3352
3353 echo "$as_me:$LINENO: result: no" >&5
3354 echo "${ECHO_T}no" >&6
3355 enable_shared=no
3356 fi
3357 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3358
3359
3360 echo "$as_me:$LINENO: checking for egrep" >&5
3361 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3362 if test "${ac_cv_prog_egrep+set}" = set; then
3363   echo $ECHO_N "(cached) $ECHO_C" >&6
3364 else
3365   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3366     then ac_cv_prog_egrep='grep -E'
3367     else ac_cv_prog_egrep='egrep'
3368     fi
3369 fi
3370 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3371 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3372  EGREP=$ac_cv_prog_egrep
3373
3374
3375 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3376 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3377 if test "${ac_cv_header_stdc+set}" = set; then
3378   echo $ECHO_N "(cached) $ECHO_C" >&6
3379 else
3380   cat >conftest.$ac_ext <<_ACEOF
3381 /* confdefs.h.  */
3382 _ACEOF
3383 cat confdefs.h >>conftest.$ac_ext
3384 cat >>conftest.$ac_ext <<_ACEOF
3385 /* end confdefs.h.  */
3386 #include <stdlib.h>
3387 #include <stdarg.h>
3388 #include <string.h>
3389 #include <float.h>
3390
3391 int
3392 main ()
3393 {
3394
3395   ;
3396   return 0;
3397 }
3398 _ACEOF
3399 rm -f conftest.$ac_objext
3400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3401   (eval $ac_compile) 2>conftest.er1
3402   ac_status=$?
3403   grep -v '^ *+' conftest.er1 >conftest.err
3404   rm -f conftest.er1
3405   cat conftest.err >&5
3406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3407   (exit $ac_status); } &&
3408          { ac_try='test -z "$ac_c_werror_flag"
3409                          || test ! -s conftest.err'
3410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3411   (eval $ac_try) 2>&5
3412   ac_status=$?
3413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414   (exit $ac_status); }; } &&
3415          { ac_try='test -s conftest.$ac_objext'
3416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3417   (eval $ac_try) 2>&5
3418   ac_status=$?
3419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420   (exit $ac_status); }; }; then
3421   ac_cv_header_stdc=yes
3422 else
3423   echo "$as_me: failed program was:" >&5
3424 sed 's/^/| /' conftest.$ac_ext >&5
3425
3426 ac_cv_header_stdc=no
3427 fi
3428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3429
3430 if test $ac_cv_header_stdc = yes; then
3431   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3432   cat >conftest.$ac_ext <<_ACEOF
3433 /* confdefs.h.  */
3434 _ACEOF
3435 cat confdefs.h >>conftest.$ac_ext
3436 cat >>conftest.$ac_ext <<_ACEOF
3437 /* end confdefs.h.  */
3438 #include <string.h>
3439
3440 _ACEOF
3441 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3442   $EGREP "memchr" >/dev/null 2>&1; then
3443   :
3444 else
3445   ac_cv_header_stdc=no
3446 fi
3447 rm -f conftest*
3448
3449 fi
3450
3451 if test $ac_cv_header_stdc = yes; then
3452   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3453   cat >conftest.$ac_ext <<_ACEOF
3454 /* confdefs.h.  */
3455 _ACEOF
3456 cat confdefs.h >>conftest.$ac_ext
3457 cat >>conftest.$ac_ext <<_ACEOF
3458 /* end confdefs.h.  */
3459 #include <stdlib.h>
3460
3461 _ACEOF
3462 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3463   $EGREP "free" >/dev/null 2>&1; then
3464   :
3465 else
3466   ac_cv_header_stdc=no
3467 fi
3468 rm -f conftest*
3469
3470 fi
3471
3472 if test $ac_cv_header_stdc = yes; then
3473   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3474   if test "$cross_compiling" = yes; then
3475   :
3476 else
3477   cat >conftest.$ac_ext <<_ACEOF
3478 /* confdefs.h.  */
3479 _ACEOF
3480 cat confdefs.h >>conftest.$ac_ext
3481 cat >>conftest.$ac_ext <<_ACEOF
3482 /* end confdefs.h.  */
3483 #include <ctype.h>
3484 #if ((' ' & 0x0FF) == 0x020)
3485 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3486 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3487 #else
3488 # define ISLOWER(c) \
3489                    (('a' <= (c) && (c) <= 'i') \
3490                      || ('j' <= (c) && (c) <= 'r') \
3491                      || ('s' <= (c) && (c) <= 'z'))
3492 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3493 #endif
3494
3495 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3496 int
3497 main ()
3498 {
3499   int i;
3500   for (i = 0; i < 256; i++)
3501     if (XOR (islower (i), ISLOWER (i))
3502         || toupper (i) != TOUPPER (i))
3503       exit(2);
3504   exit (0);
3505 }
3506 _ACEOF
3507 rm -f conftest$ac_exeext
3508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3509   (eval $ac_link) 2>&5
3510   ac_status=$?
3511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3512   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3514   (eval $ac_try) 2>&5
3515   ac_status=$?
3516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3517   (exit $ac_status); }; }; then
3518   :
3519 else
3520   echo "$as_me: program exited with status $ac_status" >&5
3521 echo "$as_me: failed program was:" >&5
3522 sed 's/^/| /' conftest.$ac_ext >&5
3523
3524 ( exit $ac_status )
3525 ac_cv_header_stdc=no
3526 fi
3527 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3528 fi
3529 fi
3530 fi
3531 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3532 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3533 if test $ac_cv_header_stdc = yes; then
3534
3535 cat >>confdefs.h <<\_ACEOF
3536 #define STDC_HEADERS 1
3537 _ACEOF
3538
3539 fi
3540
3541 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3552                   inttypes.h stdint.h unistd.h
3553 do
3554 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3555 echo "$as_me:$LINENO: checking for $ac_header" >&5
3556 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3557 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3558   echo $ECHO_N "(cached) $ECHO_C" >&6
3559 else
3560   cat >conftest.$ac_ext <<_ACEOF
3561 /* confdefs.h.  */
3562 _ACEOF
3563 cat confdefs.h >>conftest.$ac_ext
3564 cat >>conftest.$ac_ext <<_ACEOF
3565 /* end confdefs.h.  */
3566 $ac_includes_default
3567
3568 #include <$ac_header>
3569 _ACEOF
3570 rm -f conftest.$ac_objext
3571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3572   (eval $ac_compile) 2>conftest.er1
3573   ac_status=$?
3574   grep -v '^ *+' conftest.er1 >conftest.err
3575   rm -f conftest.er1
3576   cat conftest.err >&5
3577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578   (exit $ac_status); } &&
3579          { ac_try='test -z "$ac_c_werror_flag"
3580                          || test ! -s conftest.err'
3581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3582   (eval $ac_try) 2>&5
3583   ac_status=$?
3584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585   (exit $ac_status); }; } &&
3586          { ac_try='test -s conftest.$ac_objext'
3587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3588   (eval $ac_try) 2>&5
3589   ac_status=$?
3590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3591   (exit $ac_status); }; }; then
3592   eval "$as_ac_Header=yes"
3593 else
3594   echo "$as_me: failed program was:" >&5
3595 sed 's/^/| /' conftest.$ac_ext >&5
3596
3597 eval "$as_ac_Header=no"
3598 fi
3599 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3600 fi
3601 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3602 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3603 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3604   cat >>confdefs.h <<_ACEOF
3605 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3606 _ACEOF
3607
3608 fi
3609
3610 done
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632 for ac_header in stdint.h execinfo.h signal.h dlfcn.h dirent.h pwd.h grp.h \
3633   netdb.h sys/ipc.h sys/sem.h sys/shm.h sys/wait.h ctype.h mntent.h \
3634   sys/socket.h netinet/in.h arpa/inet.h dlfcn.h sys/mman.h
3635 do
3636 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3637 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3638   echo "$as_me:$LINENO: checking for $ac_header" >&5
3639 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3640 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3641   echo $ECHO_N "(cached) $ECHO_C" >&6
3642 fi
3643 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3644 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3645 else
3646   # Is the header compilable?
3647 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3648 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3649 cat >conftest.$ac_ext <<_ACEOF
3650 /* confdefs.h.  */
3651 _ACEOF
3652 cat confdefs.h >>conftest.$ac_ext
3653 cat >>conftest.$ac_ext <<_ACEOF
3654 /* end confdefs.h.  */
3655 $ac_includes_default
3656 #include <$ac_header>
3657 _ACEOF
3658 rm -f conftest.$ac_objext
3659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3660   (eval $ac_compile) 2>conftest.er1
3661   ac_status=$?
3662   grep -v '^ *+' conftest.er1 >conftest.err
3663   rm -f conftest.er1
3664   cat conftest.err >&5
3665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666   (exit $ac_status); } &&
3667          { ac_try='test -z "$ac_c_werror_flag"
3668                          || test ! -s conftest.err'
3669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3670   (eval $ac_try) 2>&5
3671   ac_status=$?
3672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673   (exit $ac_status); }; } &&
3674          { ac_try='test -s conftest.$ac_objext'
3675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3676   (eval $ac_try) 2>&5
3677   ac_status=$?
3678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3679   (exit $ac_status); }; }; then
3680   ac_header_compiler=yes
3681 else
3682   echo "$as_me: failed program was:" >&5
3683 sed 's/^/| /' conftest.$ac_ext >&5
3684
3685 ac_header_compiler=no
3686 fi
3687 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3688 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3689 echo "${ECHO_T}$ac_header_compiler" >&6
3690
3691 # Is the header present?
3692 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3693 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3694 cat >conftest.$ac_ext <<_ACEOF
3695 /* confdefs.h.  */
3696 _ACEOF
3697 cat confdefs.h >>conftest.$ac_ext
3698 cat >>conftest.$ac_ext <<_ACEOF
3699 /* end confdefs.h.  */
3700 #include <$ac_header>
3701 _ACEOF
3702 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3703   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3704   ac_status=$?
3705   grep -v '^ *+' conftest.er1 >conftest.err
3706   rm -f conftest.er1
3707   cat conftest.err >&5
3708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709   (exit $ac_status); } >/dev/null; then
3710   if test -s conftest.err; then
3711     ac_cpp_err=$ac_c_preproc_warn_flag
3712     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3713   else
3714     ac_cpp_err=
3715   fi
3716 else
3717   ac_cpp_err=yes
3718 fi
3719 if test -z "$ac_cpp_err"; then
3720   ac_header_preproc=yes
3721 else
3722   echo "$as_me: failed program was:" >&5
3723 sed 's/^/| /' conftest.$ac_ext >&5
3724
3725   ac_header_preproc=no
3726 fi
3727 rm -f conftest.err conftest.$ac_ext
3728 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3729 echo "${ECHO_T}$ac_header_preproc" >&6
3730
3731 # So?  What about this header?
3732 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3733   yes:no: )
3734     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3735 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3736     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3737 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3738     ac_header_preproc=yes
3739     ;;
3740   no:yes:* )
3741     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3742 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3743     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3744 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3745     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3746 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3747     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3748 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3749     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3750 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3751     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3752 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3753     (
3754       cat <<\_ASBOX
3755 ## ------------------------------------- ##
3756 ## Report this to the libmudflap lists.  ##
3757 ## ------------------------------------- ##
3758 _ASBOX
3759     ) |
3760       sed "s/^/$as_me: WARNING:     /" >&2
3761     ;;
3762 esac
3763 echo "$as_me:$LINENO: checking for $ac_header" >&5
3764 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3765 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3766   echo $ECHO_N "(cached) $ECHO_C" >&6
3767 else
3768   eval "$as_ac_Header=\$ac_header_preproc"
3769 fi
3770 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3771 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3772
3773 fi
3774 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3775   cat >>confdefs.h <<_ACEOF
3776 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3777 _ACEOF
3778
3779 fi
3780
3781 done
3782
3783
3784
3785
3786
3787
3788 for ac_func in backtrace backtrace_symbols gettimeofday signal
3789 do
3790 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3791 echo "$as_me:$LINENO: checking for $ac_func" >&5
3792 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3793 if eval "test \"\${$as_ac_var+set}\" = set"; then
3794   echo $ECHO_N "(cached) $ECHO_C" >&6
3795 else
3796   cat >conftest.$ac_ext <<_ACEOF
3797 /* confdefs.h.  */
3798 _ACEOF
3799 cat confdefs.h >>conftest.$ac_ext
3800 cat >>conftest.$ac_ext <<_ACEOF
3801 /* end confdefs.h.  */
3802 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3803    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3804 #define $ac_func innocuous_$ac_func
3805
3806 /* System header to define __stub macros and hopefully few prototypes,
3807     which can conflict with char $ac_func (); below.
3808     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3809     <limits.h> exists even on freestanding compilers.  */
3810
3811 #ifdef __STDC__
3812 # include <limits.h>
3813 #else
3814 # include <assert.h>
3815 #endif
3816
3817 #undef $ac_func
3818
3819 /* Override any gcc2 internal prototype to avoid an error.  */
3820 #ifdef __cplusplus
3821 extern "C"
3822 {
3823 #endif
3824 /* We use char because int might match the return type of a gcc2
3825    builtin and then its argument prototype would still apply.  */
3826 char $ac_func ();
3827 /* The GNU C library defines this for functions which it implements
3828     to always fail with ENOSYS.  Some functions are actually named
3829     something starting with __ and the normal name is an alias.  */
3830 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3831 choke me
3832 #else
3833 char (*f) () = $ac_func;
3834 #endif
3835 #ifdef __cplusplus
3836 }
3837 #endif
3838
3839 int
3840 main ()
3841 {
3842 return f != $ac_func;
3843   ;
3844   return 0;
3845 }
3846 _ACEOF
3847 rm -f conftest.$ac_objext conftest$ac_exeext
3848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3849   (eval $ac_link) 2>conftest.er1
3850   ac_status=$?
3851   grep -v '^ *+' conftest.er1 >conftest.err
3852   rm -f conftest.er1
3853   cat conftest.err >&5
3854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855   (exit $ac_status); } &&
3856          { ac_try='test -z "$ac_c_werror_flag"
3857                          || test ! -s conftest.err'
3858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3859   (eval $ac_try) 2>&5
3860   ac_status=$?
3861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3862   (exit $ac_status); }; } &&
3863          { ac_try='test -s conftest$ac_exeext'
3864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3865   (eval $ac_try) 2>&5
3866   ac_status=$?
3867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868   (exit $ac_status); }; }; then
3869   eval "$as_ac_var=yes"
3870 else
3871   echo "$as_me: failed program was:" >&5
3872 sed 's/^/| /' conftest.$ac_ext >&5
3873
3874 eval "$as_ac_var=no"
3875 fi
3876 rm -f conftest.err conftest.$ac_objext \
3877       conftest$ac_exeext conftest.$ac_ext
3878 fi
3879 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3880 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3881 if test `eval echo '${'$as_ac_var'}'` = yes; then
3882   cat >>confdefs.h <<_ACEOF
3883 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3884 _ACEOF
3885
3886 fi
3887 done
3888
3889
3890
3891
3892
3893
3894 for ac_func in fopen64 fseeko64 ftello64 stat64 freopen64
3895 do
3896 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3897 echo "$as_me:$LINENO: checking for $ac_func" >&5
3898 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3899 if eval "test \"\${$as_ac_var+set}\" = set"; then
3900   echo $ECHO_N "(cached) $ECHO_C" >&6
3901 else
3902   cat >conftest.$ac_ext <<_ACEOF
3903 /* confdefs.h.  */
3904 _ACEOF
3905 cat confdefs.h >>conftest.$ac_ext
3906 cat >>conftest.$ac_ext <<_ACEOF
3907 /* end confdefs.h.  */
3908 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3909    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3910 #define $ac_func innocuous_$ac_func
3911
3912 /* System header to define __stub macros and hopefully few prototypes,
3913     which can conflict with char $ac_func (); below.
3914     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3915     <limits.h> exists even on freestanding compilers.  */
3916
3917 #ifdef __STDC__
3918 # include <limits.h>
3919 #else
3920 # include <assert.h>
3921 #endif
3922
3923 #undef $ac_func
3924
3925 /* Override any gcc2 internal prototype to avoid an error.  */
3926 #ifdef __cplusplus
3927 extern "C"
3928 {
3929 #endif
3930 /* We use char because int might match the return type of a gcc2
3931    builtin and then its argument prototype would still apply.  */
3932 char $ac_func ();
3933 /* The GNU C library defines this for functions which it implements
3934     to always fail with ENOSYS.  Some functions are actually named
3935     something starting with __ and the normal name is an alias.  */
3936 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3937 choke me
3938 #else
3939 char (*f) () = $ac_func;
3940 #endif
3941 #ifdef __cplusplus
3942 }
3943 #endif
3944
3945 int
3946 main ()
3947 {
3948 return f != $ac_func;
3949   ;
3950   return 0;
3951 }
3952 _ACEOF
3953 rm -f conftest.$ac_objext conftest$ac_exeext
3954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3955   (eval $ac_link) 2>conftest.er1
3956   ac_status=$?
3957   grep -v '^ *+' conftest.er1 >conftest.err
3958   rm -f conftest.er1
3959   cat conftest.err >&5
3960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3961   (exit $ac_status); } &&
3962          { ac_try='test -z "$ac_c_werror_flag"
3963                          || test ! -s conftest.err'
3964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3965   (eval $ac_try) 2>&5
3966   ac_status=$?
3967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3968   (exit $ac_status); }; } &&
3969          { ac_try='test -s conftest$ac_exeext'
3970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3971   (eval $ac_try) 2>&5
3972   ac_status=$?
3973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974   (exit $ac_status); }; }; then
3975   eval "$as_ac_var=yes"
3976 else
3977   echo "$as_me: failed program was:" >&5
3978 sed 's/^/| /' conftest.$ac_ext >&5
3979
3980 eval "$as_ac_var=no"
3981 fi
3982 rm -f conftest.err conftest.$ac_objext \
3983       conftest$ac_exeext conftest.$ac_ext
3984 fi
3985 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3986 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3987 if test `eval echo '${'$as_ac_var'}'` = yes; then
3988   cat >>confdefs.h <<_ACEOF
3989 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3990 _ACEOF
3991
3992 fi
3993 done
3994
3995
3996
3997
3998
3999 for ac_func in setbuf setbuffer setlinebuf setvbuf
4000 do
4001 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4002 echo "$as_me:$LINENO: checking for $ac_func" >&5
4003 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4004 if eval "test \"\${$as_ac_var+set}\" = set"; then
4005   echo $ECHO_N "(cached) $ECHO_C" >&6
4006 else
4007   cat >conftest.$ac_ext <<_ACEOF
4008 /* confdefs.h.  */
4009 _ACEOF
4010 cat confdefs.h >>conftest.$ac_ext
4011 cat >>conftest.$ac_ext <<_ACEOF
4012 /* end confdefs.h.  */
4013 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4014    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4015 #define $ac_func innocuous_$ac_func
4016
4017 /* System header to define __stub macros and hopefully few prototypes,
4018     which can conflict with char $ac_func (); below.
4019     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4020     <limits.h> exists even on freestanding compilers.  */
4021
4022 #ifdef __STDC__
4023 # include <limits.h>
4024 #else
4025 # include <assert.h>
4026 #endif
4027
4028 #undef $ac_func
4029
4030 /* Override any gcc2 internal prototype to avoid an error.  */
4031 #ifdef __cplusplus
4032 extern "C"
4033 {
4034 #endif
4035 /* We use char because int might match the return type of a gcc2
4036    builtin and then its argument prototype would still apply.  */
4037 char $ac_func ();
4038 /* The GNU C library defines this for functions which it implements
4039     to always fail with ENOSYS.  Some functions are actually named
4040     something starting with __ and the normal name is an alias.  */
4041 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4042 choke me
4043 #else
4044 char (*f) () = $ac_func;
4045 #endif
4046 #ifdef __cplusplus
4047 }
4048 #endif
4049
4050 int
4051 main ()
4052 {
4053 return f != $ac_func;
4054   ;
4055   return 0;
4056 }
4057 _ACEOF
4058 rm -f conftest.$ac_objext conftest$ac_exeext
4059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4060   (eval $ac_link) 2>conftest.er1
4061   ac_status=$?
4062   grep -v '^ *+' conftest.er1 >conftest.err
4063   rm -f conftest.er1
4064   cat conftest.err >&5
4065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066   (exit $ac_status); } &&
4067          { ac_try='test -z "$ac_c_werror_flag"
4068                          || test ! -s conftest.err'
4069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4070   (eval $ac_try) 2>&5
4071   ac_status=$?
4072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073   (exit $ac_status); }; } &&
4074          { ac_try='test -s conftest$ac_exeext'
4075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4076   (eval $ac_try) 2>&5
4077   ac_status=$?
4078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079   (exit $ac_status); }; }; then
4080   eval "$as_ac_var=yes"
4081 else
4082   echo "$as_me: failed program was:" >&5
4083 sed 's/^/| /' conftest.$ac_ext >&5
4084
4085 eval "$as_ac_var=no"
4086 fi
4087 rm -f conftest.err conftest.$ac_objext \
4088       conftest$ac_exeext conftest.$ac_ext
4089 fi
4090 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4091 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4092 if test `eval echo '${'$as_ac_var'}'` = yes; then
4093   cat >>confdefs.h <<_ACEOF
4094 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4095 _ACEOF
4096
4097 fi
4098 done
4099
4100
4101
4102
4103
4104
4105 for ac_func in strnlen memrchr strncpy memmem sethostname
4106 do
4107 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4108 echo "$as_me:$LINENO: checking for $ac_func" >&5
4109 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4110 if eval "test \"\${$as_ac_var+set}\" = set"; then
4111   echo $ECHO_N "(cached) $ECHO_C" >&6
4112 else
4113   cat >conftest.$ac_ext <<_ACEOF
4114 /* confdefs.h.  */
4115 _ACEOF
4116 cat confdefs.h >>conftest.$ac_ext
4117 cat >>conftest.$ac_ext <<_ACEOF
4118 /* end confdefs.h.  */
4119 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4120    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4121 #define $ac_func innocuous_$ac_func
4122
4123 /* System header to define __stub macros and hopefully few prototypes,
4124     which can conflict with char $ac_func (); below.
4125     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4126     <limits.h> exists even on freestanding compilers.  */
4127
4128 #ifdef __STDC__
4129 # include <limits.h>
4130 #else
4131 # include <assert.h>
4132 #endif
4133
4134 #undef $ac_func
4135
4136 /* Override any gcc2 internal prototype to avoid an error.  */
4137 #ifdef __cplusplus
4138 extern "C"
4139 {
4140 #endif
4141 /* We use char because int might match the return type of a gcc2
4142    builtin and then its argument prototype would still apply.  */
4143 char $ac_func ();
4144 /* The GNU C library defines this for functions which it implements
4145     to always fail with ENOSYS.  Some functions are actually named
4146     something starting with __ and the normal name is an alias.  */
4147 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4148 choke me
4149 #else
4150 char (*f) () = $ac_func;
4151 #endif
4152 #ifdef __cplusplus
4153 }
4154 #endif
4155
4156 int
4157 main ()
4158 {
4159 return f != $ac_func;
4160   ;
4161   return 0;
4162 }
4163 _ACEOF
4164 rm -f conftest.$ac_objext conftest$ac_exeext
4165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4166   (eval $ac_link) 2>conftest.er1
4167   ac_status=$?
4168   grep -v '^ *+' conftest.er1 >conftest.err
4169   rm -f conftest.er1
4170   cat conftest.err >&5
4171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172   (exit $ac_status); } &&
4173          { ac_try='test -z "$ac_c_werror_flag"
4174                          || test ! -s conftest.err'
4175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4176   (eval $ac_try) 2>&5
4177   ac_status=$?
4178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4179   (exit $ac_status); }; } &&
4180          { ac_try='test -s conftest$ac_exeext'
4181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4182   (eval $ac_try) 2>&5
4183   ac_status=$?
4184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4185   (exit $ac_status); }; }; then
4186   eval "$as_ac_var=yes"
4187 else
4188   echo "$as_me: failed program was:" >&5
4189 sed 's/^/| /' conftest.$ac_ext >&5
4190
4191 eval "$as_ac_var=no"
4192 fi
4193 rm -f conftest.err conftest.$ac_objext \
4194       conftest$ac_exeext conftest.$ac_ext
4195 fi
4196 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4197 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4198 if test `eval echo '${'$as_ac_var'}'` = yes; then
4199   cat >>confdefs.h <<_ACEOF
4200 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4201 _ACEOF
4202
4203 fi
4204 done
4205
4206
4207
4208
4209 for ac_func in __ctype_b_loc __ctype_tolower_loc __ctype_toupper_loc
4210 do
4211 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4212 echo "$as_me:$LINENO: checking for $ac_func" >&5
4213 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4214 if eval "test \"\${$as_ac_var+set}\" = set"; then
4215   echo $ECHO_N "(cached) $ECHO_C" >&6
4216 else
4217   cat >conftest.$ac_ext <<_ACEOF
4218 /* confdefs.h.  */
4219 _ACEOF
4220 cat confdefs.h >>conftest.$ac_ext
4221 cat >>conftest.$ac_ext <<_ACEOF
4222 /* end confdefs.h.  */
4223 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4224    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4225 #define $ac_func innocuous_$ac_func
4226
4227 /* System header to define __stub macros and hopefully few prototypes,
4228     which can conflict with char $ac_func (); below.
4229     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4230     <limits.h> exists even on freestanding compilers.  */
4231
4232 #ifdef __STDC__
4233 # include <limits.h>
4234 #else
4235 # include <assert.h>
4236 #endif
4237
4238 #undef $ac_func
4239
4240 /* Override any gcc2 internal prototype to avoid an error.  */
4241 #ifdef __cplusplus
4242 extern "C"
4243 {
4244 #endif
4245 /* We use char because int might match the return type of a gcc2
4246    builtin and then its argument prototype would still apply.  */
4247 char $ac_func ();
4248 /* The GNU C library defines this for functions which it implements
4249     to always fail with ENOSYS.  Some functions are actually named
4250     something starting with __ and the normal name is an alias.  */
4251 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4252 choke me
4253 #else
4254 char (*f) () = $ac_func;
4255 #endif
4256 #ifdef __cplusplus
4257 }
4258 #endif
4259
4260 int
4261 main ()
4262 {
4263 return f != $ac_func;
4264   ;
4265   return 0;
4266 }
4267 _ACEOF
4268 rm -f conftest.$ac_objext conftest$ac_exeext
4269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4270   (eval $ac_link) 2>conftest.er1
4271   ac_status=$?
4272   grep -v '^ *+' conftest.er1 >conftest.err
4273   rm -f conftest.er1
4274   cat conftest.err >&5
4275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276   (exit $ac_status); } &&
4277          { ac_try='test -z "$ac_c_werror_flag"
4278                          || test ! -s conftest.err'
4279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4280   (eval $ac_try) 2>&5
4281   ac_status=$?
4282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4283   (exit $ac_status); }; } &&
4284          { ac_try='test -s conftest$ac_exeext'
4285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4286   (eval $ac_try) 2>&5
4287   ac_status=$?
4288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289   (exit $ac_status); }; }; then
4290   eval "$as_ac_var=yes"
4291 else
4292   echo "$as_me: failed program was:" >&5
4293 sed 's/^/| /' conftest.$ac_ext >&5
4294
4295 eval "$as_ac_var=no"
4296 fi
4297 rm -f conftest.err conftest.$ac_objext \
4298       conftest$ac_exeext conftest.$ac_ext
4299 fi
4300 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4301 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4302 if test `eval echo '${'$as_ac_var'}'` = yes; then
4303   cat >>confdefs.h <<_ACEOF
4304 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4305 _ACEOF
4306
4307 fi
4308 done
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318 for ac_func in getlogin cuserid getpwnam getpwuid getpwent getgrnam getgrgid getgrent
4319 do
4320 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4321 echo "$as_me:$LINENO: checking for $ac_func" >&5
4322 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4323 if eval "test \"\${$as_ac_var+set}\" = set"; then
4324   echo $ECHO_N "(cached) $ECHO_C" >&6
4325 else
4326   cat >conftest.$ac_ext <<_ACEOF
4327 /* confdefs.h.  */
4328 _ACEOF
4329 cat confdefs.h >>conftest.$ac_ext
4330 cat >>conftest.$ac_ext <<_ACEOF
4331 /* end confdefs.h.  */
4332 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4333    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4334 #define $ac_func innocuous_$ac_func
4335
4336 /* System header to define __stub macros and hopefully few prototypes,
4337     which can conflict with char $ac_func (); below.
4338     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4339     <limits.h> exists even on freestanding compilers.  */
4340
4341 #ifdef __STDC__
4342 # include <limits.h>
4343 #else
4344 # include <assert.h>
4345 #endif
4346
4347 #undef $ac_func
4348
4349 /* Override any gcc2 internal prototype to avoid an error.  */
4350 #ifdef __cplusplus
4351 extern "C"
4352 {
4353 #endif
4354 /* We use char because int might match the return type of a gcc2
4355    builtin and then its argument prototype would still apply.  */
4356 char $ac_func ();
4357 /* The GNU C library defines this for functions which it implements
4358     to always fail with ENOSYS.  Some functions are actually named
4359     something starting with __ and the normal name is an alias.  */
4360 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4361 choke me
4362 #else
4363 char (*f) () = $ac_func;
4364 #endif
4365 #ifdef __cplusplus
4366 }
4367 #endif
4368
4369 int
4370 main ()
4371 {
4372 return f != $ac_func;
4373   ;
4374   return 0;
4375 }
4376 _ACEOF
4377 rm -f conftest.$ac_objext conftest$ac_exeext
4378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4379   (eval $ac_link) 2>conftest.er1
4380   ac_status=$?
4381   grep -v '^ *+' conftest.er1 >conftest.err
4382   rm -f conftest.er1
4383   cat conftest.err >&5
4384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385   (exit $ac_status); } &&
4386          { ac_try='test -z "$ac_c_werror_flag"
4387                          || test ! -s conftest.err'
4388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4389   (eval $ac_try) 2>&5
4390   ac_status=$?
4391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392   (exit $ac_status); }; } &&
4393          { ac_try='test -s conftest$ac_exeext'
4394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4395   (eval $ac_try) 2>&5
4396   ac_status=$?
4397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398   (exit $ac_status); }; }; then
4399   eval "$as_ac_var=yes"
4400 else
4401   echo "$as_me: failed program was:" >&5
4402 sed 's/^/| /' conftest.$ac_ext >&5
4403
4404 eval "$as_ac_var=no"
4405 fi
4406 rm -f conftest.err conftest.$ac_objext \
4407       conftest$ac_exeext conftest.$ac_ext
4408 fi
4409 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4410 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4411 if test `eval echo '${'$as_ac_var'}'` = yes; then
4412   cat >>confdefs.h <<_ACEOF
4413 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4414 _ACEOF
4415
4416 fi
4417 done
4418
4419
4420
4421
4422
4423
4424 for ac_func in getlogin_r getpwnam_r getpwuid_r getgrnam_r getgrgid_r
4425 do
4426 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4427 echo "$as_me:$LINENO: checking for $ac_func" >&5
4428 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4429 if eval "test \"\${$as_ac_var+set}\" = set"; then
4430   echo $ECHO_N "(cached) $ECHO_C" >&6
4431 else
4432   cat >conftest.$ac_ext <<_ACEOF
4433 /* confdefs.h.  */
4434 _ACEOF
4435 cat confdefs.h >>conftest.$ac_ext
4436 cat >>conftest.$ac_ext <<_ACEOF
4437 /* end confdefs.h.  */
4438 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4439    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4440 #define $ac_func innocuous_$ac_func
4441
4442 /* System header to define __stub macros and hopefully few prototypes,
4443     which can conflict with char $ac_func (); below.
4444     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4445     <limits.h> exists even on freestanding compilers.  */
4446
4447 #ifdef __STDC__
4448 # include <limits.h>
4449 #else
4450 # include <assert.h>
4451 #endif
4452
4453 #undef $ac_func
4454
4455 /* Override any gcc2 internal prototype to avoid an error.  */
4456 #ifdef __cplusplus
4457 extern "C"
4458 {
4459 #endif
4460 /* We use char because int might match the return type of a gcc2
4461    builtin and then its argument prototype would still apply.  */
4462 char $ac_func ();
4463 /* The GNU C library defines this for functions which it implements
4464     to always fail with ENOSYS.  Some functions are actually named
4465     something starting with __ and the normal name is an alias.  */
4466 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4467 choke me
4468 #else
4469 char (*f) () = $ac_func;
4470 #endif
4471 #ifdef __cplusplus
4472 }
4473 #endif
4474
4475 int
4476 main ()
4477 {
4478 return f != $ac_func;
4479   ;
4480   return 0;
4481 }
4482 _ACEOF
4483 rm -f conftest.$ac_objext conftest$ac_exeext
4484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4485   (eval $ac_link) 2>conftest.er1
4486   ac_status=$?
4487   grep -v '^ *+' conftest.er1 >conftest.err
4488   rm -f conftest.er1
4489   cat conftest.err >&5
4490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4491   (exit $ac_status); } &&
4492          { ac_try='test -z "$ac_c_werror_flag"
4493                          || test ! -s conftest.err'
4494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4495   (eval $ac_try) 2>&5
4496   ac_status=$?
4497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498   (exit $ac_status); }; } &&
4499          { ac_try='test -s conftest$ac_exeext'
4500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4501   (eval $ac_try) 2>&5
4502   ac_status=$?
4503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504   (exit $ac_status); }; }; then
4505   eval "$as_ac_var=yes"
4506 else
4507   echo "$as_me: failed program was:" >&5
4508 sed 's/^/| /' conftest.$ac_ext >&5
4509
4510 eval "$as_ac_var=no"
4511 fi
4512 rm -f conftest.err conftest.$ac_objext \
4513       conftest$ac_exeext conftest.$ac_ext
4514 fi
4515 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4516 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4517 if test `eval echo '${'$as_ac_var'}'` = yes; then
4518   cat >>confdefs.h <<_ACEOF
4519 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4520 _ACEOF
4521
4522 fi
4523 done
4524
4525
4526
4527
4528
4529
4530 for ac_func in getservent getservbyname getservbyport getaddrinfo gai_strerror
4531 do
4532 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4533 echo "$as_me:$LINENO: checking for $ac_func" >&5
4534 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4535 if eval "test \"\${$as_ac_var+set}\" = set"; then
4536   echo $ECHO_N "(cached) $ECHO_C" >&6
4537 else
4538   cat >conftest.$ac_ext <<_ACEOF
4539 /* confdefs.h.  */
4540 _ACEOF
4541 cat confdefs.h >>conftest.$ac_ext
4542 cat >>conftest.$ac_ext <<_ACEOF
4543 /* end confdefs.h.  */
4544 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4545    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4546 #define $ac_func innocuous_$ac_func
4547
4548 /* System header to define __stub macros and hopefully few prototypes,
4549     which can conflict with char $ac_func (); below.
4550     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4551     <limits.h> exists even on freestanding compilers.  */
4552
4553 #ifdef __STDC__
4554 # include <limits.h>
4555 #else
4556 # include <assert.h>
4557 #endif
4558
4559 #undef $ac_func
4560
4561 /* Override any gcc2 internal prototype to avoid an error.  */
4562 #ifdef __cplusplus
4563 extern "C"
4564 {
4565 #endif
4566 /* We use char because int might match the return type of a gcc2
4567    builtin and then its argument prototype would still apply.  */
4568 char $ac_func ();
4569 /* The GNU C library defines this for functions which it implements
4570     to always fail with ENOSYS.  Some functions are actually named
4571     something starting with __ and the normal name is an alias.  */
4572 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4573 choke me
4574 #else
4575 char (*f) () = $ac_func;
4576 #endif
4577 #ifdef __cplusplus
4578 }
4579 #endif
4580
4581 int
4582 main ()
4583 {
4584 return f != $ac_func;
4585   ;
4586   return 0;
4587 }
4588 _ACEOF
4589 rm -f conftest.$ac_objext conftest$ac_exeext
4590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4591   (eval $ac_link) 2>conftest.er1
4592   ac_status=$?
4593   grep -v '^ *+' conftest.er1 >conftest.err
4594   rm -f conftest.er1
4595   cat conftest.err >&5
4596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4597   (exit $ac_status); } &&
4598          { ac_try='test -z "$ac_c_werror_flag"
4599                          || test ! -s conftest.err'
4600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4601   (eval $ac_try) 2>&5
4602   ac_status=$?
4603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604   (exit $ac_status); }; } &&
4605          { ac_try='test -s conftest$ac_exeext'
4606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4607   (eval $ac_try) 2>&5
4608   ac_status=$?
4609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610   (exit $ac_status); }; }; then
4611   eval "$as_ac_var=yes"
4612 else
4613   echo "$as_me: failed program was:" >&5
4614 sed 's/^/| /' conftest.$ac_ext >&5
4615
4616 eval "$as_ac_var=no"
4617 fi
4618 rm -f conftest.err conftest.$ac_objext \
4619       conftest$ac_exeext conftest.$ac_ext
4620 fi
4621 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4622 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4623 if test `eval echo '${'$as_ac_var'}'` = yes; then
4624   cat >>confdefs.h <<_ACEOF
4625 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4626 _ACEOF
4627
4628 fi
4629 done
4630
4631
4632
4633
4634 for ac_func in getprotoent getprotobyname getprotobynumber
4635 do
4636 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4637 echo "$as_me:$LINENO: checking for $ac_func" >&5
4638 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4639 if eval "test \"\${$as_ac_var+set}\" = set"; then
4640   echo $ECHO_N "(cached) $ECHO_C" >&6
4641 else
4642   cat >conftest.$ac_ext <<_ACEOF
4643 /* confdefs.h.  */
4644 _ACEOF
4645 cat confdefs.h >>conftest.$ac_ext
4646 cat >>conftest.$ac_ext <<_ACEOF
4647 /* end confdefs.h.  */
4648 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4649    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4650 #define $ac_func innocuous_$ac_func
4651
4652 /* System header to define __stub macros and hopefully few prototypes,
4653     which can conflict with char $ac_func (); below.
4654     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4655     <limits.h> exists even on freestanding compilers.  */
4656
4657 #ifdef __STDC__
4658 # include <limits.h>
4659 #else
4660 # include <assert.h>
4661 #endif
4662
4663 #undef $ac_func
4664
4665 /* Override any gcc2 internal prototype to avoid an error.  */
4666 #ifdef __cplusplus
4667 extern "C"
4668 {
4669 #endif
4670 /* We use char because int might match the return type of a gcc2
4671    builtin and then its argument prototype would still apply.  */
4672 char $ac_func ();
4673 /* The GNU C library defines this for functions which it implements
4674     to always fail with ENOSYS.  Some functions are actually named
4675     something starting with __ and the normal name is an alias.  */
4676 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4677 choke me
4678 #else
4679 char (*f) () = $ac_func;
4680 #endif
4681 #ifdef __cplusplus
4682 }
4683 #endif
4684
4685 int
4686 main ()
4687 {
4688 return f != $ac_func;
4689   ;
4690   return 0;
4691 }
4692 _ACEOF
4693 rm -f conftest.$ac_objext conftest$ac_exeext
4694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4695   (eval $ac_link) 2>conftest.er1
4696   ac_status=$?
4697   grep -v '^ *+' conftest.er1 >conftest.err
4698   rm -f conftest.er1
4699   cat conftest.err >&5
4700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4701   (exit $ac_status); } &&
4702          { ac_try='test -z "$ac_c_werror_flag"
4703                          || test ! -s conftest.err'
4704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4705   (eval $ac_try) 2>&5
4706   ac_status=$?
4707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708   (exit $ac_status); }; } &&
4709          { ac_try='test -s conftest$ac_exeext'
4710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4711   (eval $ac_try) 2>&5
4712   ac_status=$?
4713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4714   (exit $ac_status); }; }; then
4715   eval "$as_ac_var=yes"
4716 else
4717   echo "$as_me: failed program was:" >&5
4718 sed 's/^/| /' conftest.$ac_ext >&5
4719
4720 eval "$as_ac_var=no"
4721 fi
4722 rm -f conftest.err conftest.$ac_objext \
4723       conftest$ac_exeext conftest.$ac_ext
4724 fi
4725 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4726 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4727 if test `eval echo '${'$as_ac_var'}'` = yes; then
4728   cat >>confdefs.h <<_ACEOF
4729 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4730 _ACEOF
4731
4732 fi
4733 done
4734
4735
4736
4737
4738 for ac_func in getmntent setmntent addmntent
4739 do
4740 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4741 echo "$as_me:$LINENO: checking for $ac_func" >&5
4742 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4743 if eval "test \"\${$as_ac_var+set}\" = set"; then
4744   echo $ECHO_N "(cached) $ECHO_C" >&6
4745 else
4746   cat >conftest.$ac_ext <<_ACEOF
4747 /* confdefs.h.  */
4748 _ACEOF
4749 cat confdefs.h >>conftest.$ac_ext
4750 cat >>conftest.$ac_ext <<_ACEOF
4751 /* end confdefs.h.  */
4752 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4753    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4754 #define $ac_func innocuous_$ac_func
4755
4756 /* System header to define __stub macros and hopefully few prototypes,
4757     which can conflict with char $ac_func (); below.
4758     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4759     <limits.h> exists even on freestanding compilers.  */
4760
4761 #ifdef __STDC__
4762 # include <limits.h>
4763 #else
4764 # include <assert.h>
4765 #endif
4766
4767 #undef $ac_func
4768
4769 /* Override any gcc2 internal prototype to avoid an error.  */
4770 #ifdef __cplusplus
4771 extern "C"
4772 {
4773 #endif
4774 /* We use char because int might match the return type of a gcc2
4775    builtin and then its argument prototype would still apply.  */
4776 char $ac_func ();
4777 /* The GNU C library defines this for functions which it implements
4778     to always fail with ENOSYS.  Some functions are actually named
4779     something starting with __ and the normal name is an alias.  */
4780 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4781 choke me
4782 #else
4783 char (*f) () = $ac_func;
4784 #endif
4785 #ifdef __cplusplus
4786 }
4787 #endif
4788
4789 int
4790 main ()
4791 {
4792 return f != $ac_func;
4793   ;
4794   return 0;
4795 }
4796 _ACEOF
4797 rm -f conftest.$ac_objext conftest$ac_exeext
4798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4799   (eval $ac_link) 2>conftest.er1
4800   ac_status=$?
4801   grep -v '^ *+' conftest.er1 >conftest.err
4802   rm -f conftest.er1
4803   cat conftest.err >&5
4804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4805   (exit $ac_status); } &&
4806          { ac_try='test -z "$ac_c_werror_flag"
4807                          || test ! -s conftest.err'
4808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4809   (eval $ac_try) 2>&5
4810   ac_status=$?
4811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4812   (exit $ac_status); }; } &&
4813          { ac_try='test -s conftest$ac_exeext'
4814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4815   (eval $ac_try) 2>&5
4816   ac_status=$?
4817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4818   (exit $ac_status); }; }; then
4819   eval "$as_ac_var=yes"
4820 else
4821   echo "$as_me: failed program was:" >&5
4822 sed 's/^/| /' conftest.$ac_ext >&5
4823
4824 eval "$as_ac_var=no"
4825 fi
4826 rm -f conftest.err conftest.$ac_objext \
4827       conftest$ac_exeext conftest.$ac_ext
4828 fi
4829 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4830 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4831 if test `eval echo '${'$as_ac_var'}'` = yes; then
4832   cat >>confdefs.h <<_ACEOF
4833 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4834 _ACEOF
4835
4836 fi
4837 done
4838
4839
4840
4841
4842 for ac_func in inet_ntoa mmap munmap
4843 do
4844 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4845 echo "$as_me:$LINENO: checking for $ac_func" >&5
4846 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4847 if eval "test \"\${$as_ac_var+set}\" = set"; then
4848   echo $ECHO_N "(cached) $ECHO_C" >&6
4849 else
4850   cat >conftest.$ac_ext <<_ACEOF
4851 /* confdefs.h.  */
4852 _ACEOF
4853 cat confdefs.h >>conftest.$ac_ext
4854 cat >>conftest.$ac_ext <<_ACEOF
4855 /* end confdefs.h.  */
4856 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4857    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4858 #define $ac_func innocuous_$ac_func
4859
4860 /* System header to define __stub macros and hopefully few prototypes,
4861     which can conflict with char $ac_func (); below.
4862     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4863     <limits.h> exists even on freestanding compilers.  */
4864
4865 #ifdef __STDC__
4866 # include <limits.h>
4867 #else
4868 # include <assert.h>
4869 #endif
4870
4871 #undef $ac_func
4872
4873 /* Override any gcc2 internal prototype to avoid an error.  */
4874 #ifdef __cplusplus
4875 extern "C"
4876 {
4877 #endif
4878 /* We use char because int might match the return type of a gcc2
4879    builtin and then its argument prototype would still apply.  */
4880 char $ac_func ();
4881 /* The GNU C library defines this for functions which it implements
4882     to always fail with ENOSYS.  Some functions are actually named
4883     something starting with __ and the normal name is an alias.  */
4884 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4885 choke me
4886 #else
4887 char (*f) () = $ac_func;
4888 #endif
4889 #ifdef __cplusplus
4890 }
4891 #endif
4892
4893 int
4894 main ()
4895 {
4896 return f != $ac_func;
4897   ;
4898   return 0;
4899 }
4900 _ACEOF
4901 rm -f conftest.$ac_objext conftest$ac_exeext
4902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4903   (eval $ac_link) 2>conftest.er1
4904   ac_status=$?
4905   grep -v '^ *+' conftest.er1 >conftest.err
4906   rm -f conftest.er1
4907   cat conftest.err >&5
4908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909   (exit $ac_status); } &&
4910          { ac_try='test -z "$ac_c_werror_flag"
4911                          || test ! -s conftest.err'
4912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4913   (eval $ac_try) 2>&5
4914   ac_status=$?
4915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916   (exit $ac_status); }; } &&
4917          { ac_try='test -s conftest$ac_exeext'
4918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4919   (eval $ac_try) 2>&5
4920   ac_status=$?
4921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4922   (exit $ac_status); }; }; then
4923   eval "$as_ac_var=yes"
4924 else
4925   echo "$as_me: failed program was:" >&5
4926 sed 's/^/| /' conftest.$ac_ext >&5
4927
4928 eval "$as_ac_var=no"
4929 fi
4930 rm -f conftest.err conftest.$ac_objext \
4931       conftest$ac_exeext conftest.$ac_ext
4932 fi
4933 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4934 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4935 if test `eval echo '${'$as_ac_var'}'` = yes; then
4936   cat >>confdefs.h <<_ACEOF
4937 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4938 _ACEOF
4939
4940 fi
4941 done
4942
4943
4944 cat >conftest.$ac_ext <<_ACEOF
4945 /* confdefs.h.  */
4946 _ACEOF
4947 cat confdefs.h >>conftest.$ac_ext
4948 cat >>conftest.$ac_ext <<_ACEOF
4949 /* end confdefs.h.  */
4950 #include <sys/types.h>
4951 #include <sys/ipc.h>
4952 #include <sys/sem.h>
4953 int
4954 main ()
4955 {
4956 union semun foo;
4957   ;
4958   return 0;
4959 }
4960 _ACEOF
4961 rm -f conftest.$ac_objext
4962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4963   (eval $ac_compile) 2>conftest.er1
4964   ac_status=$?
4965   grep -v '^ *+' conftest.er1 >conftest.err
4966   rm -f conftest.er1
4967   cat conftest.err >&5
4968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4969   (exit $ac_status); } &&
4970          { ac_try='test -z "$ac_c_werror_flag"
4971                          || test ! -s conftest.err'
4972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4973   (eval $ac_try) 2>&5
4974   ac_status=$?
4975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976   (exit $ac_status); }; } &&
4977          { ac_try='test -s conftest.$ac_objext'
4978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4979   (eval $ac_try) 2>&5
4980   ac_status=$?
4981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4982   (exit $ac_status); }; }; then
4983   mf_have_semun=1
4984 else
4985   echo "$as_me: failed program was:" >&5
4986 sed 's/^/| /' conftest.$ac_ext >&5
4987
4988 mf_have_semun=0
4989 fi
4990 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4991 if test $mf_have_semun = 1
4992 then
4993
4994 cat >>confdefs.h <<\_ACEOF
4995 #define HAVE_UNION_SEMUN 1
4996 _ACEOF
4997
4998 fi
4999
5000
5001 echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
5002 echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
5003 cat >conftest.$ac_ext <<_ACEOF
5004 /* confdefs.h.  */
5005 _ACEOF
5006 cat confdefs.h >>conftest.$ac_ext
5007 cat >>conftest.$ac_ext <<_ACEOF
5008 /* end confdefs.h.  */
5009 #define _POSIX_PII_SOCKET
5010 #include <sys/types.h>
5011 #include <sys/socket.h>
5012 int
5013 main ()
5014 {
5015 socklen_t x = 5;
5016   ;
5017   return 0;
5018 }
5019 _ACEOF
5020 rm -f conftest.$ac_objext
5021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5022   (eval $ac_compile) 2>conftest.er1
5023   ac_status=$?
5024   grep -v '^ *+' conftest.er1 >conftest.err
5025   rm -f conftest.er1
5026   cat conftest.err >&5
5027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028   (exit $ac_status); } &&
5029          { ac_try='test -z "$ac_c_werror_flag"
5030                          || test ! -s conftest.err'
5031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5032   (eval $ac_try) 2>&5
5033   ac_status=$?
5034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035   (exit $ac_status); }; } &&
5036          { ac_try='test -s conftest.$ac_objext'
5037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5038   (eval $ac_try) 2>&5
5039   ac_status=$?
5040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041   (exit $ac_status); }; }; then
5042
5043 cat >>confdefs.h <<\_ACEOF
5044 #define HAVE_SOCKLEN_T 1
5045 _ACEOF
5046
5047    echo "$as_me:$LINENO: result: yes" >&5
5048 echo "${ECHO_T}yes" >&6
5049 else
5050   echo "$as_me: failed program was:" >&5
5051 sed 's/^/| /' conftest.$ac_ext >&5
5052
5053 echo "$as_me:$LINENO: result: no" >&5
5054 echo "${ECHO_T}no" >&6
5055 fi
5056 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5057
5058
5059 # Check whether --enable-shared or --disable-shared was given.
5060 if test "${enable_shared+set}" = set; then
5061   enableval="$enable_shared"
5062   p=${PACKAGE-default}
5063 case $enableval in
5064 yes) enable_shared=yes ;;
5065 no) enable_shared=no ;;
5066 *)
5067   enable_shared=no
5068   # Look at the argument we got.  We use all the common list separators.
5069   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
5070   for pkg in $enableval; do
5071     if test "X$pkg" = "X$p"; then
5072       enable_shared=yes
5073     fi
5074   done
5075   IFS="$ac_save_ifs"
5076   ;;
5077 esac
5078 else
5079   enable_shared=yes
5080 fi;
5081 # Check whether --enable-static or --disable-static was given.
5082 if test "${enable_static+set}" = set; then
5083   enableval="$enable_static"
5084   p=${PACKAGE-default}
5085 case $enableval in
5086 yes) enable_static=yes ;;
5087 no) enable_static=no ;;
5088 *)
5089   enable_static=no
5090   # Look at the argument we got.  We use all the common list separators.
5091   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
5092   for pkg in $enableval; do
5093     if test "X$pkg" = "X$p"; then
5094       enable_static=yes
5095     fi
5096   done
5097   IFS="$ac_save_ifs"
5098   ;;
5099 esac
5100 else
5101   enable_static=yes
5102 fi;
5103 # Check whether --enable-fast-install or --disable-fast-install was given.
5104 if test "${enable_fast_install+set}" = set; then
5105   enableval="$enable_fast_install"
5106   p=${PACKAGE-default}
5107 case $enableval in
5108 yes) enable_fast_install=yes ;;
5109 no) enable_fast_install=no ;;
5110 *)
5111   enable_fast_install=no
5112   # Look at the argument we got.  We use all the common list separators.
5113   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
5114   for pkg in $enableval; do
5115     if test "X$pkg" = "X$p"; then
5116       enable_fast_install=yes
5117     fi
5118   done
5119   IFS="$ac_save_ifs"
5120   ;;
5121 esac
5122 else
5123   enable_fast_install=yes
5124 fi;
5125
5126 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5127 if test "${with_gnu_ld+set}" = set; then
5128   withval="$with_gnu_ld"
5129   test "$withval" = no || with_gnu_ld=yes
5130 else
5131   with_gnu_ld=no
5132 fi;
5133 ac_prog=ld
5134 if test "$GCC" = yes; then
5135   # Check if gcc -print-prog-name=ld gives a path.
5136   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5137 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
5138   case $host in
5139   *-*-mingw*)
5140     # gcc leaves a trailing carriage return which upsets mingw
5141     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5142   *)
5143     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5144   esac
5145   case $ac_prog in
5146     # Accept absolute paths.
5147     [\\/]* | [A-Za-z]:[\\/]*)
5148       re_direlt='/[^/][^/]*/\.\./'
5149       # Canonicalize the path of ld
5150       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5151       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5152         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5153       done
5154       test -z "$LD" && LD="$ac_prog"
5155       ;;
5156   "")
5157     # If it fails, then pretend we aren't using GCC.
5158     ac_prog=ld
5159     ;;
5160   *)
5161     # If it is relative, then search for the first ld in PATH.
5162     with_gnu_ld=unknown
5163     ;;
5164   esac
5165 elif test "$with_gnu_ld" = yes; then
5166   echo "$as_me:$LINENO: checking for GNU ld" >&5
5167 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5168 else
5169   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5170 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5171 fi
5172 if test "${lt_cv_path_LD+set}" = set; then
5173   echo $ECHO_N "(cached) $ECHO_C" >&6
5174 else
5175   if test -z "$LD"; then
5176   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5177   for ac_dir in $PATH; do
5178     test -z "$ac_dir" && ac_dir=.
5179     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5180       lt_cv_path_LD="$ac_dir/$ac_prog"
5181       # Check to see if the program is GNU ld.  I'd rather use --version,
5182       # but apparently some GNU ld's only accept -v.
5183       # Break only if it was the GNU/non-GNU ld that we prefer.
5184       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5185         test "$with_gnu_ld" != no && break
5186       else
5187         test "$with_gnu_ld" != yes && break
5188       fi
5189     fi
5190   done
5191   IFS="$ac_save_ifs"
5192 else
5193   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5194 fi
5195 fi
5196
5197 LD="$lt_cv_path_LD"
5198 if test -n "$LD"; then
5199   echo "$as_me:$LINENO: result: $LD" >&5
5200 echo "${ECHO_T}$LD" >&6
5201 else
5202   echo "$as_me:$LINENO: result: no" >&5
5203 echo "${ECHO_T}no" >&6
5204 fi
5205 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5206 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5207    { (exit 1); exit 1; }; }
5208 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5209 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5210 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5211   echo $ECHO_N "(cached) $ECHO_C" >&6
5212 else
5213   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5214 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5215   lt_cv_prog_gnu_ld=yes
5216 else
5217   lt_cv_prog_gnu_ld=no
5218 fi
5219 fi
5220 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5221 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5222 with_gnu_ld=$lt_cv_prog_gnu_ld
5223
5224
5225 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5226 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5227 if test "${lt_cv_ld_reload_flag+set}" = set; then
5228   echo $ECHO_N "(cached) $ECHO_C" >&6
5229 else
5230   lt_cv_ld_reload_flag='-r'
5231 fi
5232 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5233 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5234 reload_flag=$lt_cv_ld_reload_flag
5235 test -n "$reload_flag" && reload_flag=" $reload_flag"
5236
5237 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5238 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5239 if test "${lt_cv_path_NM+set}" = set; then
5240   echo $ECHO_N "(cached) $ECHO_C" >&6
5241 else
5242   if test -n "$NM"; then
5243   # Let the user override the test.
5244   lt_cv_path_NM="$NM"
5245 else
5246   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5247   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5248     test -z "$ac_dir" && ac_dir=.
5249     tmp_nm=$ac_dir/${ac_tool_prefix}nm
5250     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
5251       # Check to see if the nm accepts a BSD-compat flag.
5252       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5253       #   nm: unknown option "B" ignored
5254       # Tru64's nm complains that /dev/null is an invalid object file
5255       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
5256         lt_cv_path_NM="$tmp_nm -B"
5257         break
5258       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
5259         lt_cv_path_NM="$tmp_nm -p"
5260         break
5261       else
5262         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5263         continue # so that we can try to find one that supports BSD flags
5264       fi
5265     fi
5266   done
5267   IFS="$ac_save_ifs"
5268   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5269 fi
5270 fi
5271
5272 NM="$lt_cv_path_NM"
5273 echo "$as_me:$LINENO: result: $NM" >&5
5274 echo "${ECHO_T}$NM" >&6
5275
5276 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5277 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5278 LN_S=$as_ln_s
5279 if test "$LN_S" = "ln -s"; then
5280   echo "$as_me:$LINENO: result: yes" >&5
5281 echo "${ECHO_T}yes" >&6
5282 else
5283   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5284 echo "${ECHO_T}no, using $LN_S" >&6
5285 fi
5286
5287 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
5288 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
5289 if test "${lt_cv_deplibs_check_method+set}" = set; then
5290   echo $ECHO_N "(cached) $ECHO_C" >&6
5291 else
5292   lt_cv_file_magic_cmd='$MAGIC_CMD'
5293 lt_cv_file_magic_test_file=
5294 lt_cv_deplibs_check_method='unknown'
5295 # Need to set the preceding variable on all platforms that support
5296 # interlibrary dependencies.
5297 # 'none' -- dependencies not supported.
5298 # `unknown' -- same as none, but documents that we really don't know.
5299 # 'pass_all' -- all dependencies passed with no checks.
5300 # 'test_compile' -- check by making test program.
5301 # 'file_magic [regex]' -- check by looking for files in library path
5302 # which responds to the $file_magic_cmd with a given egrep regex.
5303 # If you have `file' or equivalent on your system and you're not sure
5304 # whether `pass_all' will *always* work, you probably want this one.
5305
5306 case $host_os in
5307 aix*)
5308   lt_cv_deplibs_check_method=pass_all
5309   ;;
5310
5311 beos*)
5312   lt_cv_deplibs_check_method=pass_all
5313   ;;
5314
5315 bsdi4*)
5316   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5317   lt_cv_file_magic_cmd='/usr/bin/file -L'
5318   lt_cv_file_magic_test_file=/shlib/libc.so
5319   ;;
5320
5321 cygwin* | mingw* |pw32*)
5322   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5323   lt_cv_file_magic_cmd='$OBJDUMP -f'
5324   ;;
5325
5326 darwin* | rhapsody*)
5327   # this will be overwritten by pass_all, but leave it in just in case
5328   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
5329   lt_cv_file_magic_cmd='/usr/bin/file -L'
5330   case "$host_os" in
5331   rhapsody* | darwin1.012)
5332     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
5333     ;;
5334   *) # Darwin 1.3 on
5335     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
5336     ;;
5337   esac
5338   lt_cv_deplibs_check_method=pass_all
5339   ;;
5340
5341 freebsd* | kfreebsd*-gnu)
5342   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5343     case $host_cpu in
5344     i*86 )
5345       # Not sure whether the presence of OpenBSD here was a mistake.
5346       # Let's accept both of them until this is cleared up.
5347       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
5348       lt_cv_file_magic_cmd=/usr/bin/file
5349       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5350       ;;
5351     esac
5352   else
5353     lt_cv_deplibs_check_method=pass_all
5354   fi
5355   ;;
5356
5357 gnu*)
5358   lt_cv_deplibs_check_method=pass_all
5359   ;;
5360
5361 hpux10.20*|hpux11*)
5362   case $host_cpu in
5363   hppa*)
5364     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5365     lt_cv_file_magic_cmd=/usr/bin/file
5366     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5367     ;;
5368   ia64*)
5369     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5370     lt_cv_file_magic_cmd=/usr/bin/file
5371     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5372     ;;
5373   esac
5374   ;;
5375
5376 irix5* | irix6*)
5377   case $host_os in
5378   irix5*)
5379     # this will be overridden with pass_all, but let us keep it just in case
5380     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
5381     ;;
5382   *)
5383     case $LD in
5384     *-32|*"-32 ") libmagic=32-bit;;
5385     *-n32|*"-n32 ") libmagic=N32;;
5386     *-64|*"-64 ") libmagic=64-bit;;
5387     *) libmagic=never-match;;
5388     esac
5389     # this will be overridden with pass_all, but let us keep it just in case
5390     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
5391     ;;
5392   esac
5393   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
5394   lt_cv_deplibs_check_method=pass_all
5395   ;;
5396
5397 # This must be Linux ELF.
5398 linux-gnu*)
5399   lt_cv_deplibs_check_method=pass_all
5400   ;;
5401
5402 netbsd* | knetbsd*-gnu)
5403   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5404     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
5405   else
5406     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
5407   fi
5408   ;;
5409
5410 newsos6)
5411   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5412   lt_cv_file_magic_cmd=/usr/bin/file
5413   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5414   ;;
5415
5416 osf3* | osf4* | osf5*)
5417   # this will be overridden with pass_all, but let us keep it just in case
5418   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
5419   lt_cv_file_magic_test_file=/shlib/libc.so
5420   lt_cv_deplibs_check_method=pass_all
5421   ;;
5422
5423 sco3.2v5*)
5424   lt_cv_deplibs_check_method=pass_all
5425   ;;
5426
5427 solaris*)
5428   lt_cv_deplibs_check_method=pass_all
5429   lt_cv_file_magic_test_file=/lib/libc.so
5430   ;;
5431
5432 sysv5uw[78]* | sysv4*uw2*)
5433   lt_cv_deplibs_check_method=pass_all
5434   ;;
5435
5436 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5437   case $host_vendor in
5438   ncr)
5439     lt_cv_deplibs_check_method=pass_all
5440     ;;
5441   motorola)
5442     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]'
5443     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5444     ;;
5445   esac
5446   ;;
5447 esac
5448
5449 fi
5450 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5451 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5452 file_magic_cmd=$lt_cv_file_magic_cmd
5453 deplibs_check_method=$lt_cv_deplibs_check_method
5454
5455
5456
5457 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5458
5459 # find the maximum length of command line arguments
5460 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5461 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5462 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5463   echo $ECHO_N "(cached) $ECHO_C" >&6
5464 else
5465     i=0
5466   teststring="ABCD"
5467
5468   case $build_os in
5469   msdosdjgpp*)
5470     # On DJGPP, this test can blow up pretty badly due to problems in libc
5471     # (any single argument exceeding 2000 bytes causes a buffer overrun
5472     # during glob expansion).  Even if it were fixed, the result of this
5473     # check would be larger than it should be.
5474     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5475     ;;
5476
5477   cygwin* | mingw*)
5478     # On Win9x/ME, this test blows up -- it succeeds, but takes
5479     # about 5 minutes as the teststring grows exponentially.
5480     # Worse, since 9x/ME are not pre-emptively multitasking,
5481     # you end up with a "frozen" computer, even though with patience
5482     # the test eventually succeeds (with a max line length of 256k).
5483     # Instead, let's just punt: use the minimum linelength reported by
5484     # all of the supported platforms: 8192 (on NT/2K/XP).
5485     lt_cv_sys_max_cmd_len=8192;
5486     ;;
5487
5488   amigaos*)
5489     # On AmigaOS with pdksh, this test takes hours, literally.
5490     # So we just punt and use a minimum line length of 8192.
5491     lt_cv_sys_max_cmd_len=8192;
5492     ;;
5493
5494   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5495     # This has been around since 386BSD, at least.  Likely further.
5496     if test -x /sbin/sysctl; then
5497       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5498     elif test -x /usr/sbin/sysctl; then
5499       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5500     else
5501       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
5502     fi
5503     # And add a safety zone
5504     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5505     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5506     ;;
5507   esac
5508
5509 fi
5510
5511 if test -n "$lt_cv_sys_max_cmd_len" ; then
5512   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5513 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5514 else
5515   echo "$as_me:$LINENO: result: none" >&5
5516 echo "${ECHO_T}none" >&6
5517 fi
5518
5519
5520 # Only perform the check for file, if the check method requires it
5521 case $deplibs_check_method in
5522 file_magic*)
5523   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5524     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5525 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5526 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5527   echo $ECHO_N "(cached) $ECHO_C" >&6
5528 else
5529   case $MAGIC_CMD in
5530   /*)
5531   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5532   ;;
5533   ?:/*)
5534   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5535   ;;
5536   *)
5537   ac_save_MAGIC_CMD="$MAGIC_CMD"
5538   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
5539   ac_dummy="/usr/bin:$PATH"
5540   for ac_dir in $ac_dummy; do
5541     test -z "$ac_dir" && ac_dir=.
5542     if test -f $ac_dir/${ac_tool_prefix}file; then
5543       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5544       if test -n "$file_magic_test_file"; then
5545         case $deplibs_check_method in
5546         "file_magic "*)
5547           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5548           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5549           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5550             egrep "$file_magic_regex" > /dev/null; then
5551             :
5552           else
5553             cat <<EOF 1>&2
5554
5555 *** Warning: the command libtool uses to detect shared libraries,
5556 *** $file_magic_cmd, produces output that libtool cannot recognize.
5557 *** The result is that libtool may fail to recognize shared libraries
5558 *** as such.  This will affect the creation of libtool libraries that
5559 *** depend on shared libraries, but programs linked with such libtool
5560 *** libraries will work regardless of this problem.  Nevertheless, you
5561 *** may want to report the problem to your system manager and/or to
5562 *** bug-libtool@gnu.org
5563
5564 EOF
5565           fi ;;
5566         esac
5567       fi
5568       break
5569     fi
5570   done
5571   IFS="$ac_save_ifs"
5572   MAGIC_CMD="$ac_save_MAGIC_CMD"
5573   ;;
5574 esac
5575 fi
5576
5577 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5578 if test -n "$MAGIC_CMD"; then
5579   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5580 echo "${ECHO_T}$MAGIC_CMD" >&6
5581 else
5582   echo "$as_me:$LINENO: result: no" >&5
5583 echo "${ECHO_T}no" >&6
5584 fi
5585
5586 if test -z "$lt_cv_path_MAGIC_CMD"; then
5587   if test -n "$ac_tool_prefix"; then
5588     echo "$as_me:$LINENO: checking for file" >&5
5589 echo $ECHO_N "checking for file... $ECHO_C" >&6
5590 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5591   echo $ECHO_N "(cached) $ECHO_C" >&6
5592 else
5593   case $MAGIC_CMD in
5594   /*)
5595   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5596   ;;
5597   ?:/*)
5598   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5599   ;;
5600   *)
5601   ac_save_MAGIC_CMD="$MAGIC_CMD"
5602   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
5603   ac_dummy="/usr/bin:$PATH"
5604   for ac_dir in $ac_dummy; do
5605     test -z "$ac_dir" && ac_dir=.
5606     if test -f $ac_dir/file; then
5607       lt_cv_path_MAGIC_CMD="$ac_dir/file"
5608       if test -n "$file_magic_test_file"; then
5609         case $deplibs_check_method in
5610         "file_magic "*)
5611           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5612           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5613           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5614             egrep "$file_magic_regex" > /dev/null; then
5615             :
5616           else
5617             cat <<EOF 1>&2
5618
5619 *** Warning: the command libtool uses to detect shared libraries,
5620 *** $file_magic_cmd, produces output that libtool cannot recognize.
5621 *** The result is that libtool may fail to recognize shared libraries
5622 *** as such.  This will affect the creation of libtool libraries that
5623 *** depend on shared libraries, but programs linked with such libtool
5624 *** libraries will work regardless of this problem.  Nevertheless, you
5625 *** may want to report the problem to your system manager and/or to
5626 *** bug-libtool@gnu.org
5627
5628 EOF
5629           fi ;;
5630         esac
5631       fi
5632       break
5633     fi
5634   done
5635   IFS="$ac_save_ifs"
5636   MAGIC_CMD="$ac_save_MAGIC_CMD"
5637   ;;
5638 esac
5639 fi
5640
5641 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5642 if test -n "$MAGIC_CMD"; then
5643   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5644 echo "${ECHO_T}$MAGIC_CMD" >&6
5645 else
5646   echo "$as_me:$LINENO: result: no" >&5
5647 echo "${ECHO_T}no" >&6
5648 fi
5649
5650   else
5651     MAGIC_CMD=:
5652   fi
5653 fi
5654
5655   fi
5656   ;;
5657 esac
5658
5659 if test -n "$ac_tool_prefix"; then
5660   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5661 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5662 echo "$as_me:$LINENO: checking for $ac_word" >&5
5663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5664 if test "${ac_cv_prog_RANLIB+set}" = set; then
5665   echo $ECHO_N "(cached) $ECHO_C" >&6
5666 else
5667   if test -n "$RANLIB"; then
5668   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5669 else
5670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5671 for as_dir in $PATH
5672 do
5673   IFS=$as_save_IFS
5674   test -z "$as_dir" && as_dir=.
5675   for ac_exec_ext in '' $ac_executable_extensions; do
5676   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5677     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5678     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5679     break 2
5680   fi
5681 done
5682 done
5683
5684 fi
5685 fi
5686 RANLIB=$ac_cv_prog_RANLIB
5687 if test -n "$RANLIB"; then
5688   echo "$as_me:$LINENO: result: $RANLIB" >&5
5689 echo "${ECHO_T}$RANLIB" >&6
5690 else
5691   echo "$as_me:$LINENO: result: no" >&5
5692 echo "${ECHO_T}no" >&6
5693 fi
5694
5695 fi
5696 if test -z "$ac_cv_prog_RANLIB"; then
5697   ac_ct_RANLIB=$RANLIB
5698   # Extract the first word of "ranlib", so it can be a program name with args.
5699 set dummy ranlib; ac_word=$2
5700 echo "$as_me:$LINENO: checking for $ac_word" >&5
5701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5702 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5703   echo $ECHO_N "(cached) $ECHO_C" >&6
5704 else
5705   if test -n "$ac_ct_RANLIB"; then
5706   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5707 else
5708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5709 for as_dir in $PATH
5710 do
5711   IFS=$as_save_IFS
5712   test -z "$as_dir" && as_dir=.
5713   for ac_exec_ext in '' $ac_executable_extensions; do
5714   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5715     ac_cv_prog_ac_ct_RANLIB="ranlib"
5716     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5717     break 2
5718   fi
5719 done
5720 done
5721
5722   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5723 fi
5724 fi
5725 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5726 if test -n "$ac_ct_RANLIB"; then
5727   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5728 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5729 else
5730   echo "$as_me:$LINENO: result: no" >&5
5731 echo "${ECHO_T}no" >&6
5732 fi
5733
5734   RANLIB=$ac_ct_RANLIB
5735 else
5736   RANLIB="$ac_cv_prog_RANLIB"
5737 fi
5738
5739 if test -n "$ac_tool_prefix"; then
5740   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5741 set dummy ${ac_tool_prefix}strip; ac_word=$2
5742 echo "$as_me:$LINENO: checking for $ac_word" >&5
5743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5744 if test "${ac_cv_prog_STRIP+set}" = set; then
5745   echo $ECHO_N "(cached) $ECHO_C" >&6
5746 else
5747   if test -n "$STRIP"; then
5748   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5749 else
5750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5751 for as_dir in $PATH
5752 do
5753   IFS=$as_save_IFS
5754   test -z "$as_dir" && as_dir=.
5755   for ac_exec_ext in '' $ac_executable_extensions; do
5756   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5757     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5758     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5759     break 2
5760   fi
5761 done
5762 done
5763
5764 fi
5765 fi
5766 STRIP=$ac_cv_prog_STRIP
5767 if test -n "$STRIP"; then
5768   echo "$as_me:$LINENO: result: $STRIP" >&5
5769 echo "${ECHO_T}$STRIP" >&6
5770 else
5771   echo "$as_me:$LINENO: result: no" >&5
5772 echo "${ECHO_T}no" >&6
5773 fi
5774
5775 fi
5776 if test -z "$ac_cv_prog_STRIP"; then
5777   ac_ct_STRIP=$STRIP
5778   # Extract the first word of "strip", so it can be a program name with args.
5779 set dummy strip; ac_word=$2
5780 echo "$as_me:$LINENO: checking for $ac_word" >&5
5781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5782 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5783   echo $ECHO_N "(cached) $ECHO_C" >&6
5784 else
5785   if test -n "$ac_ct_STRIP"; then
5786   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5787 else
5788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5789 for as_dir in $PATH
5790 do
5791   IFS=$as_save_IFS
5792   test -z "$as_dir" && as_dir=.
5793   for ac_exec_ext in '' $ac_executable_extensions; do
5794   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5795     ac_cv_prog_ac_ct_STRIP="strip"
5796     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5797     break 2
5798   fi
5799 done
5800 done
5801
5802   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5803 fi
5804 fi
5805 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5806 if test -n "$ac_ct_STRIP"; then
5807   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5808 echo "${ECHO_T}$ac_ct_STRIP" >&6
5809 else
5810   echo "$as_me:$LINENO: result: no" >&5
5811 echo "${ECHO_T}no" >&6
5812 fi
5813
5814   STRIP=$ac_ct_STRIP
5815 else
5816   STRIP="$ac_cv_prog_STRIP"
5817 fi
5818
5819
5820 # Check for any special flags to pass to ltconfig.
5821 libtool_flags="--cache-file=$cache_file"
5822 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
5823 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
5824 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
5825 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
5826 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
5827
5828
5829 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5830 if test "${enable_libtool_lock+set}" = set; then
5831   enableval="$enable_libtool_lock"
5832
5833 fi;
5834 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
5835 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
5836
5837
5838 # Check whether --with-pic or --without-pic was given.
5839 if test "${with_pic+set}" = set; then
5840   withval="$with_pic"
5841   pic_mode="$withval"
5842 else
5843   pic_mode=default
5844 fi;
5845 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
5846 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
5847
5848 # Some flags need to be propagated to the compiler or linker for good
5849 # libtool support.
5850 case $host in
5851 *-*-irix6*)
5852   # Find out which ABI we are using.
5853   echo '#line 5853 "configure"' > conftest.$ac_ext
5854   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5855   (eval $ac_compile) 2>&5
5856   ac_status=$?
5857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5858   (exit $ac_status); }; then
5859    if test "$lt_cv_prog_gnu_ld" = yes; then
5860     case `/usr/bin/file conftest.$ac_objext` in
5861     *32-bit*)
5862       LD="${LD-ld} -melf32bsmip"
5863       ;;
5864     *N32*)
5865       LD="${LD-ld} -melf32bmipn32"
5866       ;;
5867     *64-bit*)
5868       LD="${LD-ld} -melf64bmip"
5869       ;;
5870     esac
5871    else
5872     case `/usr/bin/file conftest.$ac_objext` in
5873     *32-bit*)
5874       LD="${LD-ld} -32"
5875       ;;
5876     *N32*)
5877       LD="${LD-ld} -n32"
5878       ;;
5879     *64-bit*)
5880       LD="${LD-ld} -64"
5881       ;;
5882     esac
5883    fi
5884   fi
5885   rm -rf conftest*
5886   ;;
5887
5888 ia64-*-hpux*)
5889   # Find out which ABI we are using.
5890   echo 'int i;' > conftest.$ac_ext
5891   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5892   (eval $ac_compile) 2>&5
5893   ac_status=$?
5894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5895   (exit $ac_status); }; then
5896     case "`/usr/bin/file conftest.o`" in
5897     *ELF-32*)
5898       HPUX_IA64_MODE="32"
5899       ;;
5900     *ELF-64*)
5901       HPUX_IA64_MODE="64"
5902       ;;
5903     esac
5904   fi
5905   rm -rf conftest*
5906   ;;
5907
5908 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5909   # Find out which ABI we are using.
5910   echo 'int i;' > conftest.$ac_ext
5911   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5912   (eval $ac_compile) 2>&5
5913   ac_status=$?
5914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915   (exit $ac_status); }; then
5916     case "`/usr/bin/file conftest.o`" in
5917     *32-bit*)
5918       case $host in
5919         x86_64-*linux*)
5920           LD="${LD-ld} -m elf_i386"
5921           ;;
5922         ppc64-*linux*|powerpc64-*linux*)
5923           LD="${LD-ld} -m elf32ppclinux"
5924           ;;
5925         s390x-*linux*)
5926           LD="${LD-ld} -m elf_s390"
5927           ;;
5928         sparc64-*linux*)
5929           LD="${LD-ld} -m elf32_sparc"
5930           ;;
5931       esac
5932       ;;
5933     *64-bit*)
5934       case $host in
5935         x86_64-*linux*)
5936           LD="${LD-ld} -m elf_x86_64"
5937           ;;
5938         ppc*-*linux*|powerpc*-*linux*)
5939           LD="${LD-ld} -m elf64ppc"
5940           ;;
5941         s390*-*linux*)
5942           LD="${LD-ld} -m elf64_s390"
5943           ;;
5944         sparc*-*linux*)
5945           LD="${LD-ld} -m elf64_sparc"
5946           ;;
5947       esac
5948       ;;
5949     esac
5950   fi
5951   rm -rf conftest*
5952   ;;
5953
5954 *-*-sco3.2v5*)
5955   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5956   SAVE_CFLAGS="$CFLAGS"
5957   CFLAGS="$CFLAGS -belf"
5958   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5959 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5960 if test "${lt_cv_cc_needs_belf+set}" = set; then
5961   echo $ECHO_N "(cached) $ECHO_C" >&6
5962 else
5963
5964
5965      ac_ext=c
5966 ac_cpp='$CPP $CPPFLAGS'
5967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5970
5971      cat >conftest.$ac_ext <<_ACEOF
5972 /* confdefs.h.  */
5973 _ACEOF
5974 cat confdefs.h >>conftest.$ac_ext
5975 cat >>conftest.$ac_ext <<_ACEOF
5976 /* end confdefs.h.  */
5977
5978 int
5979 main ()
5980 {
5981
5982   ;
5983   return 0;
5984 }
5985 _ACEOF
5986 rm -f conftest.$ac_objext conftest$ac_exeext
5987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5988   (eval $ac_link) 2>conftest.er1
5989   ac_status=$?
5990   grep -v '^ *+' conftest.er1 >conftest.err
5991   rm -f conftest.er1
5992   cat conftest.err >&5
5993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994   (exit $ac_status); } &&
5995          { ac_try='test -z "$ac_c_werror_flag"
5996                          || test ! -s conftest.err'
5997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5998   (eval $ac_try) 2>&5
5999   ac_status=$?
6000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6001   (exit $ac_status); }; } &&
6002          { ac_try='test -s conftest$ac_exeext'
6003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6004   (eval $ac_try) 2>&5
6005   ac_status=$?
6006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007   (exit $ac_status); }; }; then
6008   lt_cv_cc_needs_belf=yes
6009 else
6010   echo "$as_me: failed program was:" >&5
6011 sed 's/^/| /' conftest.$ac_ext >&5
6012
6013 lt_cv_cc_needs_belf=no
6014 fi
6015 rm -f conftest.err conftest.$ac_objext \
6016       conftest$ac_exeext conftest.$ac_ext
6017      ac_ext=c
6018 ac_cpp='$CPP $CPPFLAGS'
6019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6022
6023 fi
6024 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6025 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6026   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6027     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6028     CFLAGS="$SAVE_CFLAGS"
6029   fi
6030   ;;
6031
6032
6033 esac
6034
6035
6036 # Save cache, so that ltconfig can load it
6037 cat >confcache <<\_ACEOF
6038 # This file is a shell script that caches the results of configure
6039 # tests run on this system so they can be shared between configure
6040 # scripts and configure runs, see configure's option --config-cache.
6041 # It is not useful on other systems.  If it contains results you don't
6042 # want to keep, you may remove or edit it.
6043 #
6044 # config.status only pays attention to the cache file if you give it
6045 # the --recheck option to rerun configure.
6046 #
6047 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6048 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6049 # following values.
6050
6051 _ACEOF
6052
6053 # The following way of writing the cache mishandles newlines in values,
6054 # but we know of no workaround that is simple, portable, and efficient.
6055 # So, don't put newlines in cache variables' values.
6056 # Ultrix sh set writes to stderr and can't be redirected directly,
6057 # and sets the high bit in the cache file unless we assign to the vars.
6058 {
6059   (set) 2>&1 |
6060     case `(ac_space=' '; set | grep ac_space) 2>&1` in
6061     *ac_space=\ *)
6062       # `set' does not quote correctly, so add quotes (double-quote
6063       # substitution turns \\\\ into \\, and sed turns \\ into \).
6064       sed -n \
6065         "s/'/'\\\\''/g;
6066           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6067       ;;
6068     *)
6069       # `set' quotes correctly as required by POSIX, so do not add quotes.
6070       sed -n \
6071         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6072       ;;
6073     esac;
6074 } |
6075   sed '
6076      t clear
6077      : clear
6078      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6079      t end
6080      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6081      : end' >>confcache
6082 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6083   if test -w $cache_file; then
6084     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6085     cat confcache >$cache_file
6086   else
6087     echo "not updating unwritable cache $cache_file"
6088   fi
6089 fi
6090 rm -f confcache
6091
6092 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
6093 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
6094 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
6095 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
6096 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
6097 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
6098 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
6099 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
6100 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
6101 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
6102 echo "$as_me: error: libtool configure failed" >&2;}
6103    { (exit 1); exit 1; }; }
6104
6105 # Reload cache, that may have been modified by ltconfig
6106 if test -r "$cache_file"; then
6107   # Some versions of bash will fail to source /dev/null (special
6108   # files actually), so we avoid doing that.
6109   if test -f "$cache_file"; then
6110     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
6111 echo "$as_me: loading cache $cache_file" >&6;}
6112     case $cache_file in
6113       [\\/]* | ?:[\\/]* ) . $cache_file;;
6114       *)                      . ./$cache_file;;
6115     esac
6116   fi
6117 else
6118   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
6119 echo "$as_me: creating cache $cache_file" >&6;}
6120   >$cache_file
6121 fi
6122
6123
6124 # This can be used to rebuild libtool when needed
6125 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
6126
6127 # Always use our own libtool.
6128 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6129
6130 # Redirect the config.log output again, so that the ltconfig log is not
6131 # clobbered by the next message.
6132 exec 5>>./config.log
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142 if test "${ac_cv_header_stdint_h+set}" = set; then
6143   echo "$as_me:$LINENO: checking for stdint.h" >&5
6144 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
6145 if test "${ac_cv_header_stdint_h+set}" = set; then
6146   echo $ECHO_N "(cached) $ECHO_C" >&6
6147 fi
6148 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
6149 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
6150 else
6151   # Is the header compilable?
6152 echo "$as_me:$LINENO: checking stdint.h usability" >&5
6153 echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6
6154 cat >conftest.$ac_ext <<_ACEOF
6155 /* confdefs.h.  */
6156 _ACEOF
6157 cat confdefs.h >>conftest.$ac_ext
6158 cat >>conftest.$ac_ext <<_ACEOF
6159 /* end confdefs.h.  */
6160 $ac_includes_default
6161 #include <stdint.h>
6162 _ACEOF
6163 rm -f conftest.$ac_objext
6164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6165   (eval $ac_compile) 2>conftest.er1
6166   ac_status=$?
6167   grep -v '^ *+' conftest.er1 >conftest.err
6168   rm -f conftest.er1
6169   cat conftest.err >&5
6170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6171   (exit $ac_status); } &&
6172          { ac_try='test -z "$ac_c_werror_flag"
6173                          || test ! -s conftest.err'
6174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6175   (eval $ac_try) 2>&5
6176   ac_status=$?
6177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178   (exit $ac_status); }; } &&
6179          { ac_try='test -s conftest.$ac_objext'
6180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6181   (eval $ac_try) 2>&5
6182   ac_status=$?
6183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184   (exit $ac_status); }; }; then
6185   ac_header_compiler=yes
6186 else
6187   echo "$as_me: failed program was:" >&5
6188 sed 's/^/| /' conftest.$ac_ext >&5
6189
6190 ac_header_compiler=no
6191 fi
6192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6193 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6194 echo "${ECHO_T}$ac_header_compiler" >&6
6195
6196 # Is the header present?
6197 echo "$as_me:$LINENO: checking stdint.h presence" >&5
6198 echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6
6199 cat >conftest.$ac_ext <<_ACEOF
6200 /* confdefs.h.  */
6201 _ACEOF
6202 cat confdefs.h >>conftest.$ac_ext
6203 cat >>conftest.$ac_ext <<_ACEOF
6204 /* end confdefs.h.  */
6205 #include <stdint.h>
6206 _ACEOF
6207 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6208   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6209   ac_status=$?
6210   grep -v '^ *+' conftest.er1 >conftest.err
6211   rm -f conftest.er1
6212   cat conftest.err >&5
6213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6214   (exit $ac_status); } >/dev/null; then
6215   if test -s conftest.err; then
6216     ac_cpp_err=$ac_c_preproc_warn_flag
6217     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6218   else
6219     ac_cpp_err=
6220   fi
6221 else
6222   ac_cpp_err=yes
6223 fi
6224 if test -z "$ac_cpp_err"; then
6225   ac_header_preproc=yes
6226 else
6227   echo "$as_me: failed program was:" >&5
6228 sed 's/^/| /' conftest.$ac_ext >&5
6229
6230   ac_header_preproc=no
6231 fi
6232 rm -f conftest.err conftest.$ac_ext
6233 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6234 echo "${ECHO_T}$ac_header_preproc" >&6
6235
6236 # So?  What about this header?
6237 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6238   yes:no: )
6239     { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
6240 echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6241     { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
6242 echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
6243     ac_header_preproc=yes
6244     ;;
6245   no:yes:* )
6246     { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
6247 echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
6248     { echo "$as_me:$LINENO: WARNING: stdint.h:     check for missing prerequisite headers?" >&5
6249 echo "$as_me: WARNING: stdint.h:     check for missing prerequisite headers?" >&2;}
6250     { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
6251 echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
6252     { echo "$as_me:$LINENO: WARNING: stdint.h:     section \"Present But Cannot Be Compiled\"" >&5
6253 echo "$as_me: WARNING: stdint.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6254     { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
6255 echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
6256     { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
6257 echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
6258     (
6259       cat <<\_ASBOX
6260 ## ------------------------------------- ##
6261 ## Report this to the libmudflap lists.  ##
6262 ## ------------------------------------- ##
6263 _ASBOX
6264     ) |
6265       sed "s/^/$as_me: WARNING:     /" >&2
6266     ;;
6267 esac
6268 echo "$as_me:$LINENO: checking for stdint.h" >&5
6269 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
6270 if test "${ac_cv_header_stdint_h+set}" = set; then
6271   echo $ECHO_N "(cached) $ECHO_C" >&6
6272 else
6273   ac_cv_header_stdint_h=$ac_header_preproc
6274 fi
6275 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
6276 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
6277
6278 fi
6279 if test $ac_cv_header_stdint_h = yes; then
6280   MF_HAVE_STDINT_H=1
6281 else
6282   MF_HAVE_STDINT_H=0
6283 fi
6284
6285
6286
6287 if test $MF_HAVE_STDINT_H = 1
6288 then
6289    MF_HAVE_UINTPTR_T=1
6290 else
6291    cat >conftest.$ac_ext <<_ACEOF
6292 /* confdefs.h.  */
6293 _ACEOF
6294 cat confdefs.h >>conftest.$ac_ext
6295 cat >>conftest.$ac_ext <<_ACEOF
6296 /* end confdefs.h.  */
6297 #include <sys/types.h>
6298 int
6299 main ()
6300 {
6301 uintptr_t k = 0;
6302   ;
6303   return 0;
6304 }
6305 _ACEOF
6306 rm -f conftest.$ac_objext
6307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6308   (eval $ac_compile) 2>conftest.er1
6309   ac_status=$?
6310   grep -v '^ *+' conftest.er1 >conftest.err
6311   rm -f conftest.er1
6312   cat conftest.err >&5
6313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314   (exit $ac_status); } &&
6315          { ac_try='test -z "$ac_c_werror_flag"
6316                          || test ! -s conftest.err'
6317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6318   (eval $ac_try) 2>&5
6319   ac_status=$?
6320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321   (exit $ac_status); }; } &&
6322          { ac_try='test -s conftest.$ac_objext'
6323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6324   (eval $ac_try) 2>&5
6325   ac_status=$?
6326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6327   (exit $ac_status); }; }; then
6328   MF_HAVE_UINTPTR_T=1
6329 else
6330   echo "$as_me: failed program was:" >&5
6331 sed 's/^/| /' conftest.$ac_ext >&5
6332
6333 MF_HAVE_UINTPTR_T=0
6334 fi
6335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6336 fi
6337
6338
6339 if test ! -d pth
6340 then
6341   # libmudflapth objects are built in this subdirectory
6342   mkdir pth
6343 fi
6344
6345
6346 for ac_header in pthread.h
6347 do
6348 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6349 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6350   echo "$as_me:$LINENO: checking for $ac_header" >&5
6351 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6352 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6353   echo $ECHO_N "(cached) $ECHO_C" >&6
6354 fi
6355 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6356 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6357 else
6358   # Is the header compilable?
6359 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6360 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6361 cat >conftest.$ac_ext <<_ACEOF
6362 /* confdefs.h.  */
6363 _ACEOF
6364 cat confdefs.h >>conftest.$ac_ext
6365 cat >>conftest.$ac_ext <<_ACEOF
6366 /* end confdefs.h.  */
6367 $ac_includes_default
6368 #include <$ac_header>
6369 _ACEOF
6370 rm -f conftest.$ac_objext
6371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6372   (eval $ac_compile) 2>conftest.er1
6373   ac_status=$?
6374   grep -v '^ *+' conftest.er1 >conftest.err
6375   rm -f conftest.er1
6376   cat conftest.err >&5
6377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6378   (exit $ac_status); } &&
6379          { ac_try='test -z "$ac_c_werror_flag"
6380                          || test ! -s conftest.err'
6381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6382   (eval $ac_try) 2>&5
6383   ac_status=$?
6384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6385   (exit $ac_status); }; } &&
6386          { ac_try='test -s conftest.$ac_objext'
6387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6388   (eval $ac_try) 2>&5
6389   ac_status=$?
6390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391   (exit $ac_status); }; }; then
6392   ac_header_compiler=yes
6393 else
6394   echo "$as_me: failed program was:" >&5
6395 sed 's/^/| /' conftest.$ac_ext >&5
6396
6397 ac_header_compiler=no
6398 fi
6399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6400 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6401 echo "${ECHO_T}$ac_header_compiler" >&6
6402
6403 # Is the header present?
6404 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6405 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6406 cat >conftest.$ac_ext <<_ACEOF
6407 /* confdefs.h.  */
6408 _ACEOF
6409 cat confdefs.h >>conftest.$ac_ext
6410 cat >>conftest.$ac_ext <<_ACEOF
6411 /* end confdefs.h.  */
6412 #include <$ac_header>
6413 _ACEOF
6414 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6415   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6416   ac_status=$?
6417   grep -v '^ *+' conftest.er1 >conftest.err
6418   rm -f conftest.er1
6419   cat conftest.err >&5
6420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6421   (exit $ac_status); } >/dev/null; then
6422   if test -s conftest.err; then
6423     ac_cpp_err=$ac_c_preproc_warn_flag
6424     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6425   else
6426     ac_cpp_err=
6427   fi
6428 else
6429   ac_cpp_err=yes
6430 fi
6431 if test -z "$ac_cpp_err"; then
6432   ac_header_preproc=yes
6433 else
6434   echo "$as_me: failed program was:" >&5
6435 sed 's/^/| /' conftest.$ac_ext >&5
6436
6437   ac_header_preproc=no
6438 fi
6439 rm -f conftest.err conftest.$ac_ext
6440 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6441 echo "${ECHO_T}$ac_header_preproc" >&6
6442
6443 # So?  What about this header?
6444 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6445   yes:no: )
6446     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6447 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6448     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6449 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6450     ac_header_preproc=yes
6451     ;;
6452   no:yes:* )
6453     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6454 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6455     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6456 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6457     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6458 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6459     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6460 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6461     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6462 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6463     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6464 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6465     (
6466       cat <<\_ASBOX
6467 ## ------------------------------------- ##
6468 ## Report this to the libmudflap lists.  ##
6469 ## ------------------------------------- ##
6470 _ASBOX
6471     ) |
6472       sed "s/^/$as_me: WARNING:     /" >&2
6473     ;;
6474 esac
6475 echo "$as_me:$LINENO: checking for $ac_header" >&5
6476 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6477 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6478   echo $ECHO_N "(cached) $ECHO_C" >&6
6479 else
6480   eval "$as_ac_Header=\$ac_header_preproc"
6481 fi
6482 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6483 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6484
6485 fi
6486 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6487   cat >>confdefs.h <<_ACEOF
6488 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6489 _ACEOF
6490
6491 fi
6492
6493 done
6494
6495
6496 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
6497 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
6498 target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
6499 echo "$as_me:$LINENO: result: $target_thread_file" >&5
6500 echo "${ECHO_T}$target_thread_file" >&6
6501
6502 # We only support posix threads, or no threads at all.
6503 posix_threads=
6504 case ${target_thread_file} in
6505   posix)
6506     posix_threads=yes
6507     ;;
6508   single)
6509     ;;
6510   *)
6511     echo "${target_thread_file} is an unsupported thread package" 1>&2
6512     exit 1
6513     ;;
6514 esac
6515
6516
6517
6518 if test "x$posix_threads" != "x"; then
6519   LIBMUDFLAPTH_TRUE=
6520   LIBMUDFLAPTH_FALSE='#'
6521 else
6522   LIBMUDFLAPTH_TRUE='#'
6523   LIBMUDFLAPTH_FALSE=
6524 fi
6525
6526 if test "x$posix_threads" != "x"
6527 then
6528         build_libmudflapth=1
6529 else
6530         build_libmudflapth=0
6531 fi
6532
6533
6534
6535 echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
6536 echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
6537 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
6538   echo $ECHO_N "(cached) $ECHO_C" >&6
6539 else
6540   ac_check_lib_save_LIBS=$LIBS
6541 LIBS="-ldl  $LIBS"
6542 cat >conftest.$ac_ext <<_ACEOF
6543 /* confdefs.h.  */
6544 _ACEOF
6545 cat confdefs.h >>conftest.$ac_ext
6546 cat >>conftest.$ac_ext <<_ACEOF
6547 /* end confdefs.h.  */
6548
6549 /* Override any gcc2 internal prototype to avoid an error.  */
6550 #ifdef __cplusplus
6551 extern "C"
6552 #endif
6553 /* We use char because int might match the return type of a gcc2
6554    builtin and then its argument prototype would still apply.  */
6555 char dlsym ();
6556 int
6557 main ()
6558 {
6559 dlsym ();
6560   ;
6561   return 0;
6562 }
6563 _ACEOF
6564 rm -f conftest.$ac_objext conftest$ac_exeext
6565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6566   (eval $ac_link) 2>conftest.er1
6567   ac_status=$?
6568   grep -v '^ *+' conftest.er1 >conftest.err
6569   rm -f conftest.er1
6570   cat conftest.err >&5
6571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6572   (exit $ac_status); } &&
6573          { ac_try='test -z "$ac_c_werror_flag"
6574                          || test ! -s conftest.err'
6575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6576   (eval $ac_try) 2>&5
6577   ac_status=$?
6578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6579   (exit $ac_status); }; } &&
6580          { ac_try='test -s conftest$ac_exeext'
6581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6582   (eval $ac_try) 2>&5
6583   ac_status=$?
6584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6585   (exit $ac_status); }; }; then
6586   ac_cv_lib_dl_dlsym=yes
6587 else
6588   echo "$as_me: failed program was:" >&5
6589 sed 's/^/| /' conftest.$ac_ext >&5
6590
6591 ac_cv_lib_dl_dlsym=no
6592 fi
6593 rm -f conftest.err conftest.$ac_objext \
6594       conftest$ac_exeext conftest.$ac_ext
6595 LIBS=$ac_check_lib_save_LIBS
6596 fi
6597 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
6598 echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
6599 if test $ac_cv_lib_dl_dlsym = yes; then
6600   cat >>confdefs.h <<_ACEOF
6601 #define HAVE_LIBDL 1
6602 _ACEOF
6603
6604   LIBS="-ldl $LIBS"
6605
6606 fi
6607
6608
6609 # Calculate toolexeclibdir
6610 # Also toolexecdir, though it's only used in toolexeclibdir
6611 case ${version_specific_libs} in
6612   yes)
6613     # Need the gcc compiler version to know where to install libraries
6614     # and header files if --enable-version-specific-runtime-libs option
6615     # is selected.
6616     toolexecdir='$(libdir)/gcc/$(target_alias)'
6617     toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
6618     ;;
6619   no)
6620     if test -n "$with_cross_host" &&
6621        test x"$with_cross_host" != x"no"; then
6622       # Install a library built with a cross compiler in tooldir, not libdir.
6623       toolexecdir='$(exec_prefix)/$(target_alias)'
6624       toolexeclibdir='$(toolexecdir)/lib'
6625     else
6626       toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
6627       toolexeclibdir='$(libdir)'
6628     fi
6629     multi_os_directory=`$CC -print-multi-os-directory`
6630     case $multi_os_directory in
6631       .) ;; # Avoid trailing /.
6632       *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
6633     esac
6634     ;;
6635 esac
6636
6637
6638
6639 includedir=${toolexecdir}/include
6640
6641
6642 pthread_create_version='""'
6643 if test "x$enable_shared" = "xyes" && test "x$posix_threads" != "x"; then
6644   # NB: don't check for -lpthread here, because then it would be
6645   # added to LIBS.  For the thread-unaware libmudflap.la, we don't
6646   # want it there.
6647
6648   # glibc-related hacks.  dlsym() may pick the wrong version of
6649   # interposed functions like pthread_create on modern glibc.
6650   # We need to find the proper symbol version string, and use
6651   # the nonstandard dlvsym().
6652
6653 for ac_func in dlvsym
6654 do
6655 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6656 echo "$as_me:$LINENO: checking for $ac_func" >&5
6657 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6658 if eval "test \"\${$as_ac_var+set}\" = set"; then
6659   echo $ECHO_N "(cached) $ECHO_C" >&6
6660 else
6661   cat >conftest.$ac_ext <<_ACEOF
6662 /* confdefs.h.  */
6663 _ACEOF
6664 cat confdefs.h >>conftest.$ac_ext
6665 cat >>conftest.$ac_ext <<_ACEOF
6666 /* end confdefs.h.  */
6667 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6668    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6669 #define $ac_func innocuous_$ac_func
6670
6671 /* System header to define __stub macros and hopefully few prototypes,
6672     which can conflict with char $ac_func (); below.
6673     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6674     <limits.h> exists even on freestanding compilers.  */
6675
6676 #ifdef __STDC__
6677 # include <limits.h>
6678 #else
6679 # include <assert.h>
6680 #endif
6681
6682 #undef $ac_func
6683
6684 /* Override any gcc2 internal prototype to avoid an error.  */
6685 #ifdef __cplusplus
6686 extern "C"
6687 {
6688 #endif
6689 /* We use char because int might match the return type of a gcc2
6690    builtin and then its argument prototype would still apply.  */
6691 char $ac_func ();
6692 /* The GNU C library defines this for functions which it implements
6693     to always fail with ENOSYS.  Some functions are actually named
6694     something starting with __ and the normal name is an alias.  */
6695 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6696 choke me
6697 #else
6698 char (*f) () = $ac_func;
6699 #endif
6700 #ifdef __cplusplus
6701 }
6702 #endif
6703
6704 int
6705 main ()
6706 {
6707 return f != $ac_func;
6708   ;
6709   return 0;
6710 }
6711 _ACEOF
6712 rm -f conftest.$ac_objext conftest$ac_exeext
6713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6714   (eval $ac_link) 2>conftest.er1
6715   ac_status=$?
6716   grep -v '^ *+' conftest.er1 >conftest.err
6717   rm -f conftest.er1
6718   cat conftest.err >&5
6719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6720   (exit $ac_status); } &&
6721          { ac_try='test -z "$ac_c_werror_flag"
6722                          || test ! -s conftest.err'
6723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6724   (eval $ac_try) 2>&5
6725   ac_status=$?
6726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6727   (exit $ac_status); }; } &&
6728          { ac_try='test -s conftest$ac_exeext'
6729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6730   (eval $ac_try) 2>&5
6731   ac_status=$?
6732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6733   (exit $ac_status); }; }; then
6734   eval "$as_ac_var=yes"
6735 else
6736   echo "$as_me: failed program was:" >&5
6737 sed 's/^/| /' conftest.$ac_ext >&5
6738
6739 eval "$as_ac_var=no"
6740 fi
6741 rm -f conftest.err conftest.$ac_objext \
6742       conftest$ac_exeext conftest.$ac_ext
6743 fi
6744 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6745 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6746 if test `eval echo '${'$as_ac_var'}'` = yes; then
6747   cat >>confdefs.h <<_ACEOF
6748 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6749 _ACEOF
6750
6751 fi
6752 done
6753
6754   if test -n "$ac_tool_prefix"; then
6755   # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
6756 set dummy ${ac_tool_prefix}nm; ac_word=$2
6757 echo "$as_me:$LINENO: checking for $ac_word" >&5
6758 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6759 if test "${ac_cv_prog_NM+set}" = set; then
6760   echo $ECHO_N "(cached) $ECHO_C" >&6
6761 else
6762   if test -n "$NM"; then
6763   ac_cv_prog_NM="$NM" # Let the user override the test.
6764 else
6765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6766 for as_dir in $PATH
6767 do
6768   IFS=$as_save_IFS
6769   test -z "$as_dir" && as_dir=.
6770   for ac_exec_ext in '' $ac_executable_extensions; do
6771   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6772     ac_cv_prog_NM="${ac_tool_prefix}nm"
6773     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6774     break 2
6775   fi
6776 done
6777 done
6778
6779 fi
6780 fi
6781 NM=$ac_cv_prog_NM
6782 if test -n "$NM"; then
6783   echo "$as_me:$LINENO: result: $NM" >&5
6784 echo "${ECHO_T}$NM" >&6
6785 else
6786   echo "$as_me:$LINENO: result: no" >&5
6787 echo "${ECHO_T}no" >&6
6788 fi
6789
6790 fi
6791 if test -z "$ac_cv_prog_NM"; then
6792   ac_ct_NM=$NM
6793   # Extract the first word of "nm", so it can be a program name with args.
6794 set dummy nm; ac_word=$2
6795 echo "$as_me:$LINENO: checking for $ac_word" >&5
6796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6797 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
6798   echo $ECHO_N "(cached) $ECHO_C" >&6
6799 else
6800   if test -n "$ac_ct_NM"; then
6801   ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
6802 else
6803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6804 for as_dir in $PATH
6805 do
6806   IFS=$as_save_IFS
6807   test -z "$as_dir" && as_dir=.
6808   for ac_exec_ext in '' $ac_executable_extensions; do
6809   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6810     ac_cv_prog_ac_ct_NM="nm"
6811     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6812     break 2
6813   fi
6814 done
6815 done
6816
6817 fi
6818 fi
6819 ac_ct_NM=$ac_cv_prog_ac_ct_NM
6820 if test -n "$ac_ct_NM"; then
6821   echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
6822 echo "${ECHO_T}$ac_ct_NM" >&6
6823 else
6824   echo "$as_me:$LINENO: result: no" >&5
6825 echo "${ECHO_T}no" >&6
6826 fi
6827
6828   NM=$ac_ct_NM
6829 else
6830   NM="$ac_cv_prog_NM"
6831 fi
6832
6833   if test "x$ac_cv_have_dlvsym" != "x"; then
6834     # Try compiling a simple pthreads program.  Find the shared libraries it
6835     # ends up with.  Then use "nm" on those libraries to extract the
6836     # default symbol versioning suffix ("@@"), if any.  But that's tricky.
6837     # Rather, run nm on the resulting executable.  Unfortunately, autoconf
6838     # doesn't appear to have a macro that builds a test executable for
6839     # subsequent analysis ... so we do it by hand here.
6840     cat >> conftest.c << EOF
6841 #include <pthread.h>
6842 int main () { void *p = (void *) & pthread_create; return (int) p; }
6843 EOF
6844     oldLIBS="$LIBS"
6845     LIBS="$LIBS -lpthread"
6846     pthread_create_version="\"\""
6847     echo "$as_me:$LINENO: checking pthread_create symbol version" >&5
6848 echo $ECHO_N "checking pthread_create symbol version... $ECHO_C" >&6
6849     if eval $ac_link 2>&5 && test -s conftest${ac_exeext}; then
6850       version=`$NM conftest${ac_exeect} | grep 'pthread_create@@' | sed -e 's/^.*@@//'`
6851       if test "x$version" != "x"; then
6852         pthread_create_version="\"$version\""
6853       fi
6854     fi
6855     echo "$as_me:$LINENO: result: $pthread_create_version" >&5
6856 echo "${ECHO_T}$pthread_create_version" >&6
6857     LIBS="$oldLIBS"
6858   fi
6859 fi
6860
6861 cat >>confdefs.h <<_ACEOF
6862 #define PTHREAD_CREATE_VERSION $pthread_create_version
6863 _ACEOF
6864
6865
6866
6867 # Figure out whether the compiler supports "-ffunction-sections -fdata-sections",
6868 # similarly to how libstdc++ does it
6869 ac_test_CFLAGS="${CFLAGS+set}"
6870 ac_save_CFLAGS="$CFLAGS"
6871
6872 # Check for -ffunction-sections -fdata-sections
6873 echo "$as_me:$LINENO: checking for gcc that supports -ffunction-sections -fdata-sections" >&5
6874 echo $ECHO_N "checking for gcc that supports -ffunction-sections -fdata-sections... $ECHO_C" >&6
6875 CFLAGS='-Werror -ffunction-sections -fdata-sections'
6876 cat >conftest.$ac_ext <<_ACEOF
6877 /* confdefs.h.  */
6878 _ACEOF
6879 cat confdefs.h >>conftest.$ac_ext
6880 cat >>conftest.$ac_ext <<_ACEOF
6881 /* end confdefs.h.  */
6882
6883 int
6884 main ()
6885 {
6886 int foo;
6887   ;
6888   return 0;
6889 }
6890 _ACEOF
6891 rm -f conftest.$ac_objext
6892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6893   (eval $ac_compile) 2>conftest.er1
6894   ac_status=$?
6895   grep -v '^ *+' conftest.er1 >conftest.err
6896   rm -f conftest.er1
6897   cat conftest.err >&5
6898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6899   (exit $ac_status); } &&
6900          { ac_try='test -z "$ac_c_werror_flag"
6901                          || test ! -s conftest.err'
6902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6903   (eval $ac_try) 2>&5
6904   ac_status=$?
6905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6906   (exit $ac_status); }; } &&
6907          { ac_try='test -s conftest.$ac_objext'
6908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6909   (eval $ac_try) 2>&5
6910   ac_status=$?
6911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6912   (exit $ac_status); }; }; then
6913   ac_fdsections=yes
6914 else
6915   echo "$as_me: failed program was:" >&5
6916 sed 's/^/| /' conftest.$ac_ext >&5
6917
6918 ac_fdsections=no
6919 fi
6920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6921 if test "$ac_test_CFLAGS" = set; then
6922   CFLAGS="$ac_save_CFLAGS"
6923 else
6924   # this is the suspicious part
6925   CFLAGS=""
6926 fi
6927 if test x"$ac_fdsections" = x"yes"; then
6928   SECTION_FLAGS='-ffunction-sections -fdata-sections'
6929 fi
6930 echo "$as_me:$LINENO: result: $ac_fdsections" >&5
6931 echo "${ECHO_T}$ac_fdsections" >&6
6932
6933
6934
6935 # Check for the name of the symbol used for the entry point.
6936 echo "$as_me:$LINENO: checking for the name of the symbol used for the entry point" >&5
6937 echo $ECHO_N "checking for the name of the symbol used for the entry point... $ECHO_C" >&6
6938 if test "${mudflap_cv_entry_point+set}" = set; then
6939   echo $ECHO_N "(cached) $ECHO_C" >&6
6940 else
6941
6942 for name in _start __start unknown; do
6943   cat >conftest.$ac_ext <<_ACEOF
6944 /* confdefs.h.  */
6945 _ACEOF
6946 cat confdefs.h >>conftest.$ac_ext
6947 cat >>conftest.$ac_ext <<_ACEOF
6948 /* end confdefs.h.  */
6949 extern char $name[];
6950 int
6951 main ()
6952 {
6953 $name[0] = 0;
6954   ;
6955   return 0;
6956 }
6957 _ACEOF
6958 rm -f conftest.$ac_objext conftest$ac_exeext
6959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6960   (eval $ac_link) 2>conftest.er1
6961   ac_status=$?
6962   grep -v '^ *+' conftest.er1 >conftest.err
6963   rm -f conftest.er1
6964   cat conftest.err >&5
6965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6966   (exit $ac_status); } &&
6967          { ac_try='test -z "$ac_c_werror_flag"
6968                          || test ! -s conftest.err'
6969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6970   (eval $ac_try) 2>&5
6971   ac_status=$?
6972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6973   (exit $ac_status); }; } &&
6974          { ac_try='test -s conftest$ac_exeext'
6975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6976   (eval $ac_try) 2>&5
6977   ac_status=$?
6978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6979   (exit $ac_status); }; }; then
6980   break
6981 else
6982   echo "$as_me: failed program was:" >&5
6983 sed 's/^/| /' conftest.$ac_ext >&5
6984
6985 fi
6986 rm -f conftest.err conftest.$ac_objext \
6987       conftest$ac_exeext conftest.$ac_ext
6988 done
6989 mudflap_cv_entry_point="$name"
6990 fi
6991 echo "$as_me:$LINENO: result: $mudflap_cv_entry_point" >&5
6992 echo "${ECHO_T}$mudflap_cv_entry_point" >&6
6993 if test "$mudflap_cv_entry_point" = unknown; then
6994   { { echo "$as_me:$LINENO: error: none of the known symbol names works" >&5
6995 echo "$as_me: error: none of the known symbol names works" >&2;}
6996    { (exit 1); exit 1; }; }
6997 fi
6998
6999 cat >>confdefs.h <<_ACEOF
7000 #define ENTRY_POINT $mudflap_cv_entry_point
7001 _ACEOF
7002
7003
7004
7005 if test ${multilib} = yes; then
7006   multilib_arg="--enable-multilib"
7007 else
7008   multilib_arg=
7009 fi
7010
7011 # See if we support thread-local storage.
7012
7013    # Check whether --enable-tls or --disable-tls was given.
7014 if test "${enable_tls+set}" = set; then
7015   enableval="$enable_tls"
7016
7017       case "$enableval" in
7018        yes|no) ;;
7019        *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5
7020 echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;}
7021    { (exit 1); exit 1; }; } ;;
7022       esac
7023
7024 else
7025   enable_tls=yes
7026 fi;
7027
7028   echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5
7029 echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6
7030 if test "${have_tls+set}" = set; then
7031   echo $ECHO_N "(cached) $ECHO_C" >&6
7032 else
7033
7034     if test "$cross_compiling" = yes; then
7035   cat >conftest.$ac_ext <<_ACEOF
7036 __thread int foo;
7037 _ACEOF
7038 rm -f conftest.$ac_objext
7039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7040   (eval $ac_compile) 2>conftest.er1
7041   ac_status=$?
7042   grep -v '^ *+' conftest.er1 >conftest.err
7043   rm -f conftest.er1
7044   cat conftest.err >&5
7045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046   (exit $ac_status); } &&
7047          { ac_try='test -z "$ac_c_werror_flag"
7048                          || test ! -s conftest.err'
7049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7050   (eval $ac_try) 2>&5
7051   ac_status=$?
7052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7053   (exit $ac_status); }; } &&
7054          { ac_try='test -s conftest.$ac_objext'
7055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7056   (eval $ac_try) 2>&5
7057   ac_status=$?
7058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7059   (exit $ac_status); }; }; then
7060   have_tls=yes
7061 else
7062   echo "$as_me: failed program was:" >&5
7063 sed 's/^/| /' conftest.$ac_ext >&5
7064
7065 have_tls=no
7066 fi
7067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7068
7069 else
7070   cat >conftest.$ac_ext <<_ACEOF
7071 __thread int a; int b; int main() { return a = b; }
7072 _ACEOF
7073 rm -f conftest$ac_exeext
7074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7075   (eval $ac_link) 2>&5
7076   ac_status=$?
7077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7078   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7080   (eval $ac_try) 2>&5
7081   ac_status=$?
7082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7083   (exit $ac_status); }; }; then
7084                     save_LDFLAGS="$LDFLAGS"
7085       LDFLAGS="-static $LDFLAGS"
7086       if test "$cross_compiling" = yes; then
7087   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7088 See \`config.log' for more details." >&5
7089 echo "$as_me: error: cannot run test program while cross compiling
7090 See \`config.log' for more details." >&2;}
7091    { (exit 1); exit 1; }; }
7092 else
7093   cat >conftest.$ac_ext <<_ACEOF
7094 __thread int a; int b; int main() { return a = b; }
7095 _ACEOF
7096 rm -f conftest$ac_exeext
7097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7098   (eval $ac_link) 2>&5
7099   ac_status=$?
7100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7101   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7103   (eval $ac_try) 2>&5
7104   ac_status=$?
7105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7106   (exit $ac_status); }; }; then
7107   have_tls=yes
7108 else
7109   echo "$as_me: program exited with status $ac_status" >&5
7110 echo "$as_me: failed program was:" >&5
7111 sed 's/^/| /' conftest.$ac_ext >&5
7112
7113 ( exit $ac_status )
7114 have_tls=no
7115 fi
7116 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7117 fi
7118       LDFLAGS="$save_LDFLAGS"
7119 else
7120   echo "$as_me: program exited with status $ac_status" >&5
7121 echo "$as_me: failed program was:" >&5
7122 sed 's/^/| /' conftest.$ac_ext >&5
7123
7124 ( exit $ac_status )
7125 have_tls=no
7126 fi
7127 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7128 fi
7129 fi
7130 echo "$as_me:$LINENO: result: $have_tls" >&5
7131 echo "${ECHO_T}$have_tls" >&6
7132   if test "$enable_tls $have_tls" = "yes yes"; then
7133
7134 cat >>confdefs.h <<\_ACEOF
7135 #define HAVE_TLS 1
7136 _ACEOF
7137
7138   fi
7139
7140                               ac_config_files="$ac_config_files Makefile testsuite/Makefile testsuite/mfconfig.exp"
7141
7142 cat >confcache <<\_ACEOF
7143 # This file is a shell script that caches the results of configure
7144 # tests run on this system so they can be shared between configure
7145 # scripts and configure runs, see configure's option --config-cache.
7146 # It is not useful on other systems.  If it contains results you don't
7147 # want to keep, you may remove or edit it.
7148 #
7149 # config.status only pays attention to the cache file if you give it
7150 # the --recheck option to rerun configure.
7151 #
7152 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7153 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7154 # following values.
7155
7156 _ACEOF
7157
7158 # The following way of writing the cache mishandles newlines in values,
7159 # but we know of no workaround that is simple, portable, and efficient.
7160 # So, don't put newlines in cache variables' values.
7161 # Ultrix sh set writes to stderr and can't be redirected directly,
7162 # and sets the high bit in the cache file unless we assign to the vars.
7163 {
7164   (set) 2>&1 |
7165     case `(ac_space=' '; set | grep ac_space) 2>&1` in
7166     *ac_space=\ *)
7167       # `set' does not quote correctly, so add quotes (double-quote
7168       # substitution turns \\\\ into \\, and sed turns \\ into \).
7169       sed -n \
7170         "s/'/'\\\\''/g;
7171           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7172       ;;
7173     *)
7174       # `set' quotes correctly as required by POSIX, so do not add quotes.
7175       sed -n \
7176         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7177       ;;
7178     esac;
7179 } |
7180   sed '
7181      t clear
7182      : clear
7183      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7184      t end
7185      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7186      : end' >>confcache
7187 if diff $cache_file confcache >/dev/null 2>&1; then :; else
7188   if test -w $cache_file; then
7189     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7190     cat confcache >$cache_file
7191   else
7192     echo "not updating unwritable cache $cache_file"
7193   fi
7194 fi
7195 rm -f confcache
7196
7197 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7198 # Let make expand exec_prefix.
7199 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7200
7201 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7202 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7203 # trailing colons and then remove the whole line if VPATH becomes empty
7204 # (actually we leave an empty line to preserve line numbers).
7205 if test "x$srcdir" = x.; then
7206   ac_vpsub='/^[  ]*VPATH[        ]*=/{
7207 s/:*\$(srcdir):*/:/;
7208 s/:*\${srcdir}:*/:/;
7209 s/:*@srcdir@:*/:/;
7210 s/^\([^=]*=[     ]*\):*/\1/;
7211 s/:*$//;
7212 s/^[^=]*=[       ]*$//;
7213 }'
7214 fi
7215
7216 DEFS=-DHAVE_CONFIG_H
7217
7218 ac_libobjs=
7219 ac_ltlibobjs=
7220 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7221   # 1. Remove the extension, and $U if already installed.
7222   ac_i=`echo "$ac_i" |
7223          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7224   # 2. Add them.
7225   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7226   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7227 done
7228 LIBOBJS=$ac_libobjs
7229
7230 LTLIBOBJS=$ac_ltlibobjs
7231
7232
7233 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
7234   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
7235 Usually this means the macro was only invoked conditionally." >&5
7236 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
7237 Usually this means the macro was only invoked conditionally." >&2;}
7238    { (exit 1); exit 1; }; }
7239 fi
7240 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
7241   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
7242 Usually this means the macro was only invoked conditionally." >&5
7243 echo "$as_me: error: conditional \"AMDEP\" was never defined.
7244 Usually this means the macro was only invoked conditionally." >&2;}
7245    { (exit 1); exit 1; }; }
7246 fi
7247 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7248   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
7249 Usually this means the macro was only invoked conditionally." >&5
7250 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
7251 Usually this means the macro was only invoked conditionally." >&2;}
7252    { (exit 1); exit 1; }; }
7253 fi
7254 if test -z "${LIBMUDFLAPTH_TRUE}" && test -z "${LIBMUDFLAPTH_FALSE}"; then
7255   { { echo "$as_me:$LINENO: error: conditional \"LIBMUDFLAPTH\" was never defined.
7256 Usually this means the macro was only invoked conditionally." >&5
7257 echo "$as_me: error: conditional \"LIBMUDFLAPTH\" was never defined.
7258 Usually this means the macro was only invoked conditionally." >&2;}
7259    { (exit 1); exit 1; }; }
7260 fi
7261
7262 : ${CONFIG_STATUS=./config.status}
7263 ac_clean_files_save=$ac_clean_files
7264 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7265 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7266 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7267 cat >$CONFIG_STATUS <<_ACEOF
7268 #! $SHELL
7269 # Generated by $as_me.
7270 # Run this file to recreate the current configuration.
7271 # Compiler output produced by configure, useful for debugging
7272 # configure, is in config.log if it exists.
7273
7274 debug=false
7275 ac_cs_recheck=false
7276 ac_cs_silent=false
7277 SHELL=\${CONFIG_SHELL-$SHELL}
7278 _ACEOF
7279
7280 cat >>$CONFIG_STATUS <<\_ACEOF
7281 ## --------------------- ##
7282 ## M4sh Initialization.  ##
7283 ## --------------------- ##
7284
7285 # Be Bourne compatible
7286 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7287   emulate sh
7288   NULLCMD=:
7289   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7290   # is contrary to our usage.  Disable this feature.
7291   alias -g '${1+"$@"}'='"$@"'
7292 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7293   set -o posix
7294 fi
7295 DUALCASE=1; export DUALCASE # for MKS sh
7296
7297 # Support unset when possible.
7298 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7299   as_unset=unset
7300 else
7301   as_unset=false
7302 fi
7303
7304
7305 # Work around bugs in pre-3.0 UWIN ksh.
7306 $as_unset ENV MAIL MAILPATH
7307 PS1='$ '
7308 PS2='> '
7309 PS4='+ '
7310
7311 # NLS nuisances.
7312 for as_var in \
7313   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7314   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7315   LC_TELEPHONE LC_TIME
7316 do
7317   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7318     eval $as_var=C; export $as_var
7319   else
7320     $as_unset $as_var
7321   fi
7322 done
7323
7324 # Required to use basename.
7325 if expr a : '\(a\)' >/dev/null 2>&1; then
7326   as_expr=expr
7327 else
7328   as_expr=false
7329 fi
7330
7331 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7332   as_basename=basename
7333 else
7334   as_basename=false
7335 fi
7336
7337
7338 # Name of the executable.
7339 as_me=`$as_basename "$0" ||
7340 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7341          X"$0" : 'X\(//\)$' \| \
7342          X"$0" : 'X\(/\)$' \| \
7343          .     : '\(.\)' 2>/dev/null ||
7344 echo X/"$0" |
7345     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7346           /^X\/\(\/\/\)$/{ s//\1/; q; }
7347           /^X\/\(\/\).*/{ s//\1/; q; }
7348           s/.*/./; q'`
7349
7350
7351 # PATH needs CR, and LINENO needs CR and PATH.
7352 # Avoid depending upon Character Ranges.
7353 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7354 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7355 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7356 as_cr_digits='0123456789'
7357 as_cr_alnum=$as_cr_Letters$as_cr_digits
7358
7359 # The user is always right.
7360 if test "${PATH_SEPARATOR+set}" != set; then
7361   echo "#! /bin/sh" >conf$$.sh
7362   echo  "exit 0"   >>conf$$.sh
7363   chmod +x conf$$.sh
7364   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7365     PATH_SEPARATOR=';'
7366   else
7367     PATH_SEPARATOR=:
7368   fi
7369   rm -f conf$$.sh
7370 fi
7371
7372
7373   as_lineno_1=$LINENO
7374   as_lineno_2=$LINENO
7375   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7376   test "x$as_lineno_1" != "x$as_lineno_2" &&
7377   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
7378   # Find who we are.  Look in the path if we contain no path at all
7379   # relative or not.
7380   case $0 in
7381     *[\\/]* ) as_myself=$0 ;;
7382     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7383 for as_dir in $PATH
7384 do
7385   IFS=$as_save_IFS
7386   test -z "$as_dir" && as_dir=.
7387   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7388 done
7389
7390        ;;
7391   esac
7392   # We did not find ourselves, most probably we were run as `sh COMMAND'
7393   # in which case we are not to be found in the path.
7394   if test "x$as_myself" = x; then
7395     as_myself=$0
7396   fi
7397   if test ! -f "$as_myself"; then
7398     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7399 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7400    { (exit 1); exit 1; }; }
7401   fi
7402   case $CONFIG_SHELL in
7403   '')
7404     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7405 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7406 do
7407   IFS=$as_save_IFS
7408   test -z "$as_dir" && as_dir=.
7409   for as_base in sh bash ksh sh5; do
7410          case $as_dir in
7411          /*)
7412            if ("$as_dir/$as_base" -c '
7413   as_lineno_1=$LINENO
7414   as_lineno_2=$LINENO
7415   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7416   test "x$as_lineno_1" != "x$as_lineno_2" &&
7417   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
7418              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7419              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7420              CONFIG_SHELL=$as_dir/$as_base
7421              export CONFIG_SHELL
7422              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7423            fi;;
7424          esac
7425        done
7426 done
7427 ;;
7428   esac
7429
7430   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7431   # uniformly replaced by the line number.  The first 'sed' inserts a
7432   # line-number line before each line; the second 'sed' does the real
7433   # work.  The second script uses 'N' to pair each line-number line
7434   # with the numbered line, and appends trailing '-' during
7435   # substitution so that $LINENO is not a special case at line end.
7436   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7437   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
7438   sed '=' <$as_myself |
7439     sed '
7440       N
7441       s,$,-,
7442       : loop
7443       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7444       t loop
7445       s,-$,,
7446       s,^['$as_cr_digits']*\n,,
7447     ' >$as_me.lineno &&
7448   chmod +x $as_me.lineno ||
7449     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7450 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7451    { (exit 1); exit 1; }; }
7452
7453   # Don't try to exec as it changes $[0], causing all sort of problems
7454   # (the dirname of $[0] is not the place where we might find the
7455   # original and so on.  Autoconf is especially sensible to this).
7456   . ./$as_me.lineno
7457   # Exit status is that of the last command.
7458   exit
7459 }
7460
7461
7462 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7463   *c*,-n*) ECHO_N= ECHO_C='
7464 ' ECHO_T='      ' ;;
7465   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7466   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
7467 esac
7468
7469 if expr a : '\(a\)' >/dev/null 2>&1; then
7470   as_expr=expr
7471 else
7472   as_expr=false
7473 fi
7474
7475 rm -f conf$$ conf$$.exe conf$$.file
7476 echo >conf$$.file
7477 if ln -s conf$$.file conf$$ 2>/dev/null; then
7478   # We could just check for DJGPP; but this test a) works b) is more generic
7479   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7480   if test -f conf$$.exe; then
7481     # Don't use ln at all; we don't have any links
7482     as_ln_s='cp -p'
7483   else
7484     as_ln_s='ln -s'
7485   fi
7486 elif ln conf$$.file conf$$ 2>/dev/null; then
7487   as_ln_s=ln
7488 else
7489   as_ln_s='cp -p'
7490 fi
7491 rm -f conf$$ conf$$.exe conf$$.file
7492
7493 if mkdir -p . 2>/dev/null; then
7494   as_mkdir_p=:
7495 else
7496   test -d ./-p && rmdir ./-p
7497   as_mkdir_p=false
7498 fi
7499
7500 as_executable_p="test -f"
7501
7502 # Sed expression to map a string onto a valid CPP name.
7503 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7504
7505 # Sed expression to map a string onto a valid variable name.
7506 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7507
7508
7509 # IFS
7510 # We need space, tab and new line, in precisely that order.
7511 as_nl='
7512 '
7513 IFS="   $as_nl"
7514
7515 # CDPATH.
7516 $as_unset CDPATH
7517
7518 exec 6>&1
7519
7520 # Open the log real soon, to keep \$[0] and so on meaningful, and to
7521 # report actual input values of CONFIG_FILES etc. instead of their
7522 # values after options handling.  Logging --version etc. is OK.
7523 exec 5>>config.log
7524 {
7525   echo
7526   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7527 ## Running $as_me. ##
7528 _ASBOX
7529 } >&5
7530 cat >&5 <<_CSEOF
7531
7532 This file was extended by libmudflap $as_me 1.0, which was
7533 generated by GNU Autoconf 2.59.  Invocation command line was
7534
7535   CONFIG_FILES    = $CONFIG_FILES
7536   CONFIG_HEADERS  = $CONFIG_HEADERS
7537   CONFIG_LINKS    = $CONFIG_LINKS
7538   CONFIG_COMMANDS = $CONFIG_COMMANDS
7539   $ $0 $@
7540
7541 _CSEOF
7542 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7543 echo >&5
7544 _ACEOF
7545
7546 # Files that config.status was made for.
7547 if test -n "$ac_config_files"; then
7548   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7549 fi
7550
7551 if test -n "$ac_config_headers"; then
7552   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7553 fi
7554
7555 if test -n "$ac_config_links"; then
7556   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7557 fi
7558
7559 if test -n "$ac_config_commands"; then
7560   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7561 fi
7562
7563 cat >>$CONFIG_STATUS <<\_ACEOF
7564
7565 ac_cs_usage="\
7566 \`$as_me' instantiates files from templates according to the
7567 current configuration.
7568
7569 Usage: $0 [OPTIONS] [FILE]...
7570
7571   -h, --help       print this help, then exit
7572   -V, --version    print version number, then exit
7573   -q, --quiet      do not print progress messages
7574   -d, --debug      don't remove temporary files
7575       --recheck    update $as_me by reconfiguring in the same conditions
7576   --file=FILE[:TEMPLATE]
7577                    instantiate the configuration file FILE
7578   --header=FILE[:TEMPLATE]
7579                    instantiate the configuration header FILE
7580
7581 Configuration files:
7582 $config_files
7583
7584 Configuration headers:
7585 $config_headers
7586
7587 Configuration commands:
7588 $config_commands
7589
7590 Report bugs to <bug-autoconf@gnu.org>."
7591 _ACEOF
7592
7593 cat >>$CONFIG_STATUS <<_ACEOF
7594 ac_cs_version="\\
7595 libmudflap config.status 1.0
7596 configured by $0, generated by GNU Autoconf 2.59,
7597   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7598
7599 Copyright (C) 2003 Free Software Foundation, Inc.
7600 This config.status script is free software; the Free Software Foundation
7601 gives unlimited permission to copy, distribute and modify it."
7602 srcdir=$srcdir
7603 INSTALL="$INSTALL"
7604 _ACEOF
7605
7606 cat >>$CONFIG_STATUS <<\_ACEOF
7607 # If no file are specified by the user, then we need to provide default
7608 # value.  By we need to know if files were specified by the user.
7609 ac_need_defaults=:
7610 while test $# != 0
7611 do
7612   case $1 in
7613   --*=*)
7614     ac_option=`expr "x$1" : 'x\([^=]*\)='`
7615     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7616     ac_shift=:
7617     ;;
7618   -*)
7619     ac_option=$1
7620     ac_optarg=$2
7621     ac_shift=shift
7622     ;;
7623   *) # This is not an option, so the user has probably given explicit
7624      # arguments.
7625      ac_option=$1
7626      ac_need_defaults=false;;
7627   esac
7628
7629   case $ac_option in
7630   # Handling of the options.
7631 _ACEOF
7632 cat >>$CONFIG_STATUS <<\_ACEOF
7633   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7634     ac_cs_recheck=: ;;
7635   --version | --vers* | -V )
7636     echo "$ac_cs_version"; exit 0 ;;
7637   --he | --h)
7638     # Conflict between --help and --header
7639     { { echo "$as_me:$LINENO: error: ambiguous option: $1
7640 Try \`$0 --help' for more information." >&5
7641 echo "$as_me: error: ambiguous option: $1
7642 Try \`$0 --help' for more information." >&2;}
7643    { (exit 1); exit 1; }; };;
7644   --help | --hel | -h )
7645     echo "$ac_cs_usage"; exit 0 ;;
7646   --debug | --d* | -d )
7647     debug=: ;;
7648   --file | --fil | --fi | --f )
7649     $ac_shift
7650     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7651     ac_need_defaults=false;;
7652   --header | --heade | --head | --hea )
7653     $ac_shift
7654     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7655     ac_need_defaults=false;;
7656   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7657   | -silent | --silent | --silen | --sile | --sil | --si | --s)
7658     ac_cs_silent=: ;;
7659
7660   # This is an error.
7661   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7662 Try \`$0 --help' for more information." >&5
7663 echo "$as_me: error: unrecognized option: $1
7664 Try \`$0 --help' for more information." >&2;}
7665    { (exit 1); exit 1; }; } ;;
7666
7667   *) ac_config_targets="$ac_config_targets $1" ;;
7668
7669   esac
7670   shift
7671 done
7672
7673 ac_configure_extra_args=
7674
7675 if $ac_cs_silent; then
7676   exec 6>/dev/null
7677   ac_configure_extra_args="$ac_configure_extra_args --silent"
7678 fi
7679
7680 _ACEOF
7681 cat >>$CONFIG_STATUS <<_ACEOF
7682 if \$ac_cs_recheck; then
7683   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7684   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7685 fi
7686
7687 _ACEOF
7688
7689 cat >>$CONFIG_STATUS <<_ACEOF
7690 #
7691 # INIT-COMMANDS section.
7692 #
7693
7694
7695 srcdir="$srcdir"
7696 host="$host"
7697 target="$target"
7698 with_multisubdir="$with_multisubdir"
7699 with_multisrctop="$with_multisrctop"
7700 with_target_subdir="$with_target_subdir"
7701 ac_configure_args="${multilib_arg} ${ac_configure_args}"
7702 multi_basedir="$multi_basedir"
7703 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
7704 CC="$CC"
7705 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
7706
7707 _ACEOF
7708
7709
7710
7711 cat >>$CONFIG_STATUS <<\_ACEOF
7712 for ac_config_target in $ac_config_targets
7713 do
7714   case "$ac_config_target" in
7715   # Handling of arguments.
7716   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7717   "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
7718   "testsuite/mfconfig.exp" ) CONFIG_FILES="$CONFIG_FILES testsuite/mfconfig.exp" ;;
7719   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
7720   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
7721   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7722   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7723 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7724    { (exit 1); exit 1; }; };;
7725   esac
7726 done
7727
7728 # If the user did not use the arguments to specify the items to instantiate,
7729 # then the envvar interface is used.  Set only those that are not.
7730 # We use the long form for the default assignment because of an extremely
7731 # bizarre bug on SunOS 4.1.3.
7732 if $ac_need_defaults; then
7733   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7734   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7735   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7736 fi
7737
7738 # Have a temporary directory for convenience.  Make it in the build tree
7739 # simply because there is no reason to put it here, and in addition,
7740 # creating and moving files from /tmp can sometimes cause problems.
7741 # Create a temporary directory, and hook for its removal unless debugging.
7742 $debug ||
7743 {
7744   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7745   trap '{ (exit 1); exit 1; }' 1 2 13 15
7746 }
7747
7748 # Create a (secure) tmp directory for tmp files.
7749
7750 {
7751   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7752   test -n "$tmp" && test -d "$tmp"
7753 }  ||
7754 {
7755   tmp=./confstat$$-$RANDOM
7756   (umask 077 && mkdir $tmp)
7757 } ||
7758 {
7759    echo "$me: cannot create a temporary directory in ." >&2
7760    { (exit 1); exit 1; }
7761 }
7762
7763 _ACEOF
7764
7765 cat >>$CONFIG_STATUS <<_ACEOF
7766
7767 #
7768 # CONFIG_FILES section.
7769 #
7770
7771 # No need to generate the scripts if there are no CONFIG_FILES.
7772 # This happens for instance when ./config.status config.h
7773 if test -n "\$CONFIG_FILES"; then
7774   # Protect against being on the right side of a sed subst in config.status.
7775   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7776    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7777 s,@SHELL@,$SHELL,;t t
7778 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7779 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7780 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7781 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7782 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7783 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7784 s,@exec_prefix@,$exec_prefix,;t t
7785 s,@prefix@,$prefix,;t t
7786 s,@program_transform_name@,$program_transform_name,;t t
7787 s,@bindir@,$bindir,;t t
7788 s,@sbindir@,$sbindir,;t t
7789 s,@libexecdir@,$libexecdir,;t t
7790 s,@datadir@,$datadir,;t t
7791 s,@sysconfdir@,$sysconfdir,;t t
7792 s,@sharedstatedir@,$sharedstatedir,;t t
7793 s,@localstatedir@,$localstatedir,;t t
7794 s,@libdir@,$libdir,;t t
7795 s,@includedir@,$includedir,;t t
7796 s,@oldincludedir@,$oldincludedir,;t t
7797 s,@infodir@,$infodir,;t t
7798 s,@mandir@,$mandir,;t t
7799 s,@build_alias@,$build_alias,;t t
7800 s,@host_alias@,$host_alias,;t t
7801 s,@target_alias@,$target_alias,;t t
7802 s,@DEFS@,$DEFS,;t t
7803 s,@ECHO_C@,$ECHO_C,;t t
7804 s,@ECHO_N@,$ECHO_N,;t t
7805 s,@ECHO_T@,$ECHO_T,;t t
7806 s,@LIBS@,$LIBS,;t t
7807 s,@build@,$build,;t t
7808 s,@build_cpu@,$build_cpu,;t t
7809 s,@build_vendor@,$build_vendor,;t t
7810 s,@build_os@,$build_os,;t t
7811 s,@host@,$host,;t t
7812 s,@host_cpu@,$host_cpu,;t t
7813 s,@host_vendor@,$host_vendor,;t t
7814 s,@host_os@,$host_os,;t t
7815 s,@target@,$target,;t t
7816 s,@target_cpu@,$target_cpu,;t t
7817 s,@target_vendor@,$target_vendor,;t t
7818 s,@target_os@,$target_os,;t t
7819 s,@target_noncanonical@,$target_noncanonical,;t t
7820 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7821 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7822 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7823 s,@CYGPATH_W@,$CYGPATH_W,;t t
7824 s,@PACKAGE@,$PACKAGE,;t t
7825 s,@VERSION@,$VERSION,;t t
7826 s,@ACLOCAL@,$ACLOCAL,;t t
7827 s,@AUTOCONF@,$AUTOCONF,;t t
7828 s,@AUTOMAKE@,$AUTOMAKE,;t t
7829 s,@AUTOHEADER@,$AUTOHEADER,;t t
7830 s,@MAKEINFO@,$MAKEINFO,;t t
7831 s,@install_sh@,$install_sh,;t t
7832 s,@STRIP@,$STRIP,;t t
7833 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
7834 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
7835 s,@mkdir_p@,$mkdir_p,;t t
7836 s,@AWK@,$AWK,;t t
7837 s,@SET_MAKE@,$SET_MAKE,;t t
7838 s,@am__leading_dot@,$am__leading_dot,;t t
7839 s,@AMTAR@,$AMTAR,;t t
7840 s,@am__tar@,$am__tar,;t t
7841 s,@am__untar@,$am__untar,;t t
7842 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
7843 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
7844 s,@MAINT@,$MAINT,;t t
7845 s,@multi_basedir@,$multi_basedir,;t t
7846 s,@CC@,$CC,;t t
7847 s,@ac_ct_CC@,$ac_ct_CC,;t t
7848 s,@EXEEXT@,$EXEEXT,;t t
7849 s,@OBJEXT@,$OBJEXT,;t t
7850 s,@DEPDIR@,$DEPDIR,;t t
7851 s,@am__include@,$am__include,;t t
7852 s,@am__quote@,$am__quote,;t t
7853 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
7854 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
7855 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
7856 s,@CCDEPMODE@,$CCDEPMODE,;t t
7857 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
7858 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
7859 s,@CFLAGS@,$CFLAGS,;t t
7860 s,@CPP@,$CPP,;t t
7861 s,@CPPFLAGS@,$CPPFLAGS,;t t
7862 s,@EGREP@,$EGREP,;t t
7863 s,@LN_S@,$LN_S,;t t
7864 s,@RANLIB@,$RANLIB,;t t
7865 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7866 s,@LIBTOOL@,$LIBTOOL,;t t
7867 s,@enable_shared@,$enable_shared,;t t
7868 s,@enable_static@,$enable_static,;t t
7869 s,@MF_HAVE_STDINT_H@,$MF_HAVE_STDINT_H,;t t
7870 s,@MF_HAVE_UINTPTR_T@,$MF_HAVE_UINTPTR_T,;t t
7871 s,@LIBMUDFLAPTH_TRUE@,$LIBMUDFLAPTH_TRUE,;t t
7872 s,@LIBMUDFLAPTH_FALSE@,$LIBMUDFLAPTH_FALSE,;t t
7873 s,@build_libmudflapth@,$build_libmudflapth,;t t
7874 s,@toolexecdir@,$toolexecdir,;t t
7875 s,@toolexeclibdir@,$toolexeclibdir,;t t
7876 s,@NM@,$NM,;t t
7877 s,@ac_ct_NM@,$ac_ct_NM,;t t
7878 s,@SECTION_FLAGS@,$SECTION_FLAGS,;t t
7879 s,@LIBOBJS@,$LIBOBJS,;t t
7880 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7881 CEOF
7882
7883 _ACEOF
7884
7885   cat >>$CONFIG_STATUS <<\_ACEOF
7886   # Split the substitutions into bite-sized pieces for seds with
7887   # small command number limits, like on Digital OSF/1 and HP-UX.
7888   ac_max_sed_lines=48
7889   ac_sed_frag=1 # Number of current file.
7890   ac_beg=1 # First line for current file.
7891   ac_end=$ac_max_sed_lines # Line after last line for current file.
7892   ac_more_lines=:
7893   ac_sed_cmds=
7894   while $ac_more_lines; do
7895     if test $ac_beg -gt 1; then
7896       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7897     else
7898       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7899     fi
7900     if test ! -s $tmp/subs.frag; then
7901       ac_more_lines=false
7902     else
7903       # The purpose of the label and of the branching condition is to
7904       # speed up the sed processing (if there are no `@' at all, there
7905       # is no need to browse any of the substitutions).
7906       # These are the two extra sed commands mentioned above.
7907       (echo ':t
7908   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7909       if test -z "$ac_sed_cmds"; then
7910         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7911       else
7912         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7913       fi
7914       ac_sed_frag=`expr $ac_sed_frag + 1`
7915       ac_beg=$ac_end
7916       ac_end=`expr $ac_end + $ac_max_sed_lines`
7917     fi
7918   done
7919   if test -z "$ac_sed_cmds"; then
7920     ac_sed_cmds=cat
7921   fi
7922 fi # test -n "$CONFIG_FILES"
7923
7924 _ACEOF
7925 cat >>$CONFIG_STATUS <<\_ACEOF
7926 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7927   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7928   case $ac_file in
7929   - | *:- | *:-:* ) # input from stdin
7930         cat >$tmp/stdin
7931         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7932         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7933   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7934         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7935   * )   ac_file_in=$ac_file.in ;;
7936   esac
7937
7938   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7939   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7940 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7941          X"$ac_file" : 'X\(//\)[^/]' \| \
7942          X"$ac_file" : 'X\(//\)$' \| \
7943          X"$ac_file" : 'X\(/\)' \| \
7944          .     : '\(.\)' 2>/dev/null ||
7945 echo X"$ac_file" |
7946     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7947           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7948           /^X\(\/\/\)$/{ s//\1/; q; }
7949           /^X\(\/\).*/{ s//\1/; q; }
7950           s/.*/./; q'`
7951   { if $as_mkdir_p; then
7952     mkdir -p "$ac_dir"
7953   else
7954     as_dir="$ac_dir"
7955     as_dirs=
7956     while test ! -d "$as_dir"; do
7957       as_dirs="$as_dir $as_dirs"
7958       as_dir=`(dirname "$as_dir") 2>/dev/null ||
7959 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7960          X"$as_dir" : 'X\(//\)[^/]' \| \
7961          X"$as_dir" : 'X\(//\)$' \| \
7962          X"$as_dir" : 'X\(/\)' \| \
7963          .     : '\(.\)' 2>/dev/null ||
7964 echo X"$as_dir" |
7965     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7966           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7967           /^X\(\/\/\)$/{ s//\1/; q; }
7968           /^X\(\/\).*/{ s//\1/; q; }
7969           s/.*/./; q'`
7970     done
7971     test ! -n "$as_dirs" || mkdir $as_dirs
7972   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7973 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7974    { (exit 1); exit 1; }; }; }
7975
7976   ac_builddir=.
7977
7978 if test "$ac_dir" != .; then
7979   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7980   # A "../" for each directory in $ac_dir_suffix.
7981   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7982 else
7983   ac_dir_suffix= ac_top_builddir=
7984 fi
7985
7986 case $srcdir in
7987   .)  # No --srcdir option.  We are building in place.
7988     ac_srcdir=.
7989     if test -z "$ac_top_builddir"; then
7990        ac_top_srcdir=.
7991     else
7992        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7993     fi ;;
7994   [\\/]* | ?:[\\/]* )  # Absolute path.
7995     ac_srcdir=$srcdir$ac_dir_suffix;
7996     ac_top_srcdir=$srcdir ;;
7997   *) # Relative path.
7998     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7999     ac_top_srcdir=$ac_top_builddir$srcdir ;;
8000 esac
8001
8002 # Do not use `cd foo && pwd` to compute absolute paths, because
8003 # the directories may not exist.
8004 case `pwd` in
8005 .) ac_abs_builddir="$ac_dir";;
8006 *)
8007   case "$ac_dir" in
8008   .) ac_abs_builddir=`pwd`;;
8009   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8010   *) ac_abs_builddir=`pwd`/"$ac_dir";;
8011   esac;;
8012 esac
8013 case $ac_abs_builddir in
8014 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8015 *)
8016   case ${ac_top_builddir}. in
8017   .) ac_abs_top_builddir=$ac_abs_builddir;;
8018   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8019   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8020   esac;;
8021 esac
8022 case $ac_abs_builddir in
8023 .) ac_abs_srcdir=$ac_srcdir;;
8024 *)
8025   case $ac_srcdir in
8026   .) ac_abs_srcdir=$ac_abs_builddir;;
8027   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8028   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8029   esac;;
8030 esac
8031 case $ac_abs_builddir in
8032 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8033 *)
8034   case $ac_top_srcdir in
8035   .) ac_abs_top_srcdir=$ac_abs_builddir;;
8036   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8037   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8038   esac;;
8039 esac
8040
8041
8042   case $INSTALL in
8043   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8044   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
8045   esac
8046
8047   if test x"$ac_file" != x-; then
8048     { echo "$as_me:$LINENO: creating $ac_file" >&5
8049 echo "$as_me: creating $ac_file" >&6;}
8050     rm -f "$ac_file"
8051   fi
8052   # Let's still pretend it is `configure' which instantiates (i.e., don't
8053   # use $as_me), people would be surprised to read:
8054   #    /* config.h.  Generated by config.status.  */
8055   if test x"$ac_file" = x-; then
8056     configure_input=
8057   else
8058     configure_input="$ac_file.  "
8059   fi
8060   configure_input=$configure_input"Generated from `echo $ac_file_in |
8061                                      sed 's,.*/,,'` by configure."
8062
8063   # First look for the input files in the build tree, otherwise in the
8064   # src tree.
8065   ac_file_inputs=`IFS=:
8066     for f in $ac_file_in; do
8067       case $f in
8068       -) echo $tmp/stdin ;;
8069       [\\/$]*)
8070          # Absolute (can't be DOS-style, as IFS=:)
8071          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8072 echo "$as_me: error: cannot find input file: $f" >&2;}
8073    { (exit 1); exit 1; }; }
8074          echo "$f";;
8075       *) # Relative
8076          if test -f "$f"; then
8077            # Build tree
8078            echo "$f"
8079          elif test -f "$srcdir/$f"; then
8080            # Source tree
8081            echo "$srcdir/$f"
8082          else
8083            # /dev/null tree
8084            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8085 echo "$as_me: error: cannot find input file: $f" >&2;}
8086    { (exit 1); exit 1; }; }
8087          fi;;
8088       esac
8089     done` || { (exit 1); exit 1; }
8090 _ACEOF
8091 cat >>$CONFIG_STATUS <<_ACEOF
8092   sed "$ac_vpsub
8093 $extrasub
8094 _ACEOF
8095 cat >>$CONFIG_STATUS <<\_ACEOF
8096 :t
8097 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8098 s,@configure_input@,$configure_input,;t t
8099 s,@srcdir@,$ac_srcdir,;t t
8100 s,@abs_srcdir@,$ac_abs_srcdir,;t t
8101 s,@top_srcdir@,$ac_top_srcdir,;t t
8102 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
8103 s,@builddir@,$ac_builddir,;t t
8104 s,@abs_builddir@,$ac_abs_builddir,;t t
8105 s,@top_builddir@,$ac_top_builddir,;t t
8106 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
8107 s,@INSTALL@,$ac_INSTALL,;t t
8108 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8109   rm -f $tmp/stdin
8110   if test x"$ac_file" != x-; then
8111     mv $tmp/out $ac_file
8112   else
8113     cat $tmp/out
8114     rm -f $tmp/out
8115   fi
8116
8117 done
8118 _ACEOF
8119 cat >>$CONFIG_STATUS <<\_ACEOF
8120
8121 #
8122 # CONFIG_HEADER section.
8123 #
8124
8125 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8126 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8127 #
8128 # ac_d sets the value in "#define NAME VALUE" lines.
8129 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
8130 ac_dB='[         ].*$,\1#\2'
8131 ac_dC=' '
8132 ac_dD=',;t'
8133 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8134 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
8135 ac_uB='$,\1#\2define\3'
8136 ac_uC=' '
8137 ac_uD=',;t'
8138
8139 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
8140   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8141   case $ac_file in
8142   - | *:- | *:-:* ) # input from stdin
8143         cat >$tmp/stdin
8144         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8145         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8146   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8147         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8148   * )   ac_file_in=$ac_file.in ;;
8149   esac
8150
8151   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
8152 echo "$as_me: creating $ac_file" >&6;}
8153
8154   # First look for the input files in the build tree, otherwise in the
8155   # src tree.
8156   ac_file_inputs=`IFS=:
8157     for f in $ac_file_in; do
8158       case $f in
8159       -) echo $tmp/stdin ;;
8160       [\\/$]*)
8161          # Absolute (can't be DOS-style, as IFS=:)
8162          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8163 echo "$as_me: error: cannot find input file: $f" >&2;}
8164    { (exit 1); exit 1; }; }
8165          # Do quote $f, to prevent DOS paths from being IFS'd.
8166          echo "$f";;
8167       *) # Relative
8168          if test -f "$f"; then
8169            # Build tree
8170            echo "$f"
8171          elif test -f "$srcdir/$f"; then
8172            # Source tree
8173            echo "$srcdir/$f"
8174          else
8175            # /dev/null tree
8176            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8177 echo "$as_me: error: cannot find input file: $f" >&2;}
8178    { (exit 1); exit 1; }; }
8179          fi;;
8180       esac
8181     done` || { (exit 1); exit 1; }
8182   # Remove the trailing spaces.
8183   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
8184
8185 _ACEOF
8186
8187 # Transform confdefs.h into two sed scripts, `conftest.defines' and
8188 # `conftest.undefs', that substitutes the proper values into
8189 # config.h.in to produce config.h.  The first handles `#define'
8190 # templates, and the second `#undef' templates.
8191 # And first: Protect against being on the right side of a sed subst in
8192 # config.status.  Protect against being in an unquoted here document
8193 # in config.status.
8194 rm -f conftest.defines conftest.undefs
8195 # Using a here document instead of a string reduces the quoting nightmare.
8196 # Putting comments in sed scripts is not portable.
8197 #
8198 # `end' is used to avoid that the second main sed command (meant for
8199 # 0-ary CPP macros) applies to n-ary macro definitions.
8200 # See the Autoconf documentation for `clear'.
8201 cat >confdef2sed.sed <<\_ACEOF
8202 s/[\\&,]/\\&/g
8203 s,[\\$`],\\&,g
8204 t clear
8205 : clear
8206 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8207 t end
8208 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8209 : end
8210 _ACEOF
8211 # If some macros were called several times there might be several times
8212 # the same #defines, which is useless.  Nevertheless, we may not want to
8213 # sort them, since we want the *last* AC-DEFINE to be honored.
8214 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8215 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8216 rm -f confdef2sed.sed
8217
8218 # This sed command replaces #undef with comments.  This is necessary, for
8219 # example, in the case of _POSIX_SOURCE, which is predefined and required
8220 # on some systems where configure will not decide to define it.
8221 cat >>conftest.undefs <<\_ACEOF
8222 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8223 _ACEOF
8224
8225 # Break up conftest.defines because some shells have a limit on the size
8226 # of here documents, and old seds have small limits too (100 cmds).
8227 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8228 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8229 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8230 echo '  :' >>$CONFIG_STATUS
8231 rm -f conftest.tail
8232 while grep . conftest.defines >/dev/null
8233 do
8234   # Write a limited-size here document to $tmp/defines.sed.
8235   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8236   # Speed up: don't consider the non `#define' lines.
8237   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
8238   # Work around the forget-to-reset-the-flag bug.
8239   echo 't clr' >>$CONFIG_STATUS
8240   echo ': clr' >>$CONFIG_STATUS
8241   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
8242   echo 'CEOF
8243   sed -f $tmp/defines.sed $tmp/in >$tmp/out
8244   rm -f $tmp/in
8245   mv $tmp/out $tmp/in
8246 ' >>$CONFIG_STATUS
8247   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
8248   rm -f conftest.defines
8249   mv conftest.tail conftest.defines
8250 done
8251 rm -f conftest.defines
8252 echo '  fi # grep' >>$CONFIG_STATUS
8253 echo >>$CONFIG_STATUS
8254
8255 # Break up conftest.undefs because some shells have a limit on the size
8256 # of here documents, and old seds have small limits too (100 cmds).
8257 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
8258 rm -f conftest.tail
8259 while grep . conftest.undefs >/dev/null
8260 do
8261   # Write a limited-size here document to $tmp/undefs.sed.
8262   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8263   # Speed up: don't consider the non `#undef'
8264   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
8265   # Work around the forget-to-reset-the-flag bug.
8266   echo 't clr' >>$CONFIG_STATUS
8267   echo ': clr' >>$CONFIG_STATUS
8268   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8269   echo 'CEOF
8270   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8271   rm -f $tmp/in
8272   mv $tmp/out $tmp/in
8273 ' >>$CONFIG_STATUS
8274   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8275   rm -f conftest.undefs
8276   mv conftest.tail conftest.undefs
8277 done
8278 rm -f conftest.undefs
8279
8280 cat >>$CONFIG_STATUS <<\_ACEOF
8281   # Let's still pretend it is `configure' which instantiates (i.e., don't
8282   # use $as_me), people would be surprised to read:
8283   #    /* config.h.  Generated by config.status.  */
8284   if test x"$ac_file" = x-; then
8285     echo "/* Generated by configure.  */" >$tmp/config.h
8286   else
8287     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
8288   fi
8289   cat $tmp/in >>$tmp/config.h
8290   rm -f $tmp/in
8291   if test x"$ac_file" != x-; then
8292     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
8293       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8294 echo "$as_me: $ac_file is unchanged" >&6;}
8295     else
8296       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8297 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8298          X"$ac_file" : 'X\(//\)[^/]' \| \
8299          X"$ac_file" : 'X\(//\)$' \| \
8300          X"$ac_file" : 'X\(/\)' \| \
8301          .     : '\(.\)' 2>/dev/null ||
8302 echo X"$ac_file" |
8303     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8304           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8305           /^X\(\/\/\)$/{ s//\1/; q; }
8306           /^X\(\/\).*/{ s//\1/; q; }
8307           s/.*/./; q'`
8308       { if $as_mkdir_p; then
8309     mkdir -p "$ac_dir"
8310   else
8311     as_dir="$ac_dir"
8312     as_dirs=
8313     while test ! -d "$as_dir"; do
8314       as_dirs="$as_dir $as_dirs"
8315       as_dir=`(dirname "$as_dir") 2>/dev/null ||
8316 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8317          X"$as_dir" : 'X\(//\)[^/]' \| \
8318          X"$as_dir" : 'X\(//\)$' \| \
8319          X"$as_dir" : 'X\(/\)' \| \
8320          .     : '\(.\)' 2>/dev/null ||
8321 echo X"$as_dir" |
8322     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8323           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8324           /^X\(\/\/\)$/{ s//\1/; q; }
8325           /^X\(\/\).*/{ s//\1/; q; }
8326           s/.*/./; q'`
8327     done
8328     test ! -n "$as_dirs" || mkdir $as_dirs
8329   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8330 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8331    { (exit 1); exit 1; }; }; }
8332
8333       rm -f $ac_file
8334       mv $tmp/config.h $ac_file
8335     fi
8336   else
8337     cat $tmp/config.h
8338     rm -f $tmp/config.h
8339   fi
8340 # Compute $ac_file's index in $config_headers.
8341 _am_stamp_count=1
8342 for _am_header in $config_headers :; do
8343   case $_am_header in
8344     $ac_file | $ac_file:* )
8345       break ;;
8346     * )
8347       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
8348   esac
8349 done
8350 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
8351 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8352          X$ac_file : 'X\(//\)[^/]' \| \
8353          X$ac_file : 'X\(//\)$' \| \
8354          X$ac_file : 'X\(/\)' \| \
8355          .     : '\(.\)' 2>/dev/null ||
8356 echo X$ac_file |
8357     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8358           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8359           /^X\(\/\/\)$/{ s//\1/; q; }
8360           /^X\(\/\).*/{ s//\1/; q; }
8361           s/.*/./; q'`/stamp-h$_am_stamp_count
8362 done
8363 _ACEOF
8364 cat >>$CONFIG_STATUS <<\_ACEOF
8365
8366 #
8367 # CONFIG_COMMANDS section.
8368 #
8369 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
8370   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
8371   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
8372   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
8373 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8374          X"$ac_dest" : 'X\(//\)[^/]' \| \
8375          X"$ac_dest" : 'X\(//\)$' \| \
8376          X"$ac_dest" : 'X\(/\)' \| \
8377          .     : '\(.\)' 2>/dev/null ||
8378 echo X"$ac_dest" |
8379     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8380           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8381           /^X\(\/\/\)$/{ s//\1/; q; }
8382           /^X\(\/\).*/{ s//\1/; q; }
8383           s/.*/./; q'`
8384   { if $as_mkdir_p; then
8385     mkdir -p "$ac_dir"
8386   else
8387     as_dir="$ac_dir"
8388     as_dirs=
8389     while test ! -d "$as_dir"; do
8390       as_dirs="$as_dir $as_dirs"
8391       as_dir=`(dirname "$as_dir") 2>/dev/null ||
8392 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8393          X"$as_dir" : 'X\(//\)[^/]' \| \
8394          X"$as_dir" : 'X\(//\)$' \| \
8395          X"$as_dir" : 'X\(/\)' \| \
8396          .     : '\(.\)' 2>/dev/null ||
8397 echo X"$as_dir" |
8398     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8399           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8400           /^X\(\/\/\)$/{ s//\1/; q; }
8401           /^X\(\/\).*/{ s//\1/; q; }
8402           s/.*/./; q'`
8403     done
8404     test ! -n "$as_dirs" || mkdir $as_dirs
8405   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8406 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8407    { (exit 1); exit 1; }; }; }
8408
8409   ac_builddir=.
8410
8411 if test "$ac_dir" != .; then
8412   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8413   # A "../" for each directory in $ac_dir_suffix.
8414   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8415 else
8416   ac_dir_suffix= ac_top_builddir=
8417 fi
8418
8419 case $srcdir in
8420   .)  # No --srcdir option.  We are building in place.
8421     ac_srcdir=.
8422     if test -z "$ac_top_builddir"; then
8423        ac_top_srcdir=.
8424     else
8425        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8426     fi ;;
8427   [\\/]* | ?:[\\/]* )  # Absolute path.
8428     ac_srcdir=$srcdir$ac_dir_suffix;
8429     ac_top_srcdir=$srcdir ;;
8430   *) # Relative path.
8431     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8432     ac_top_srcdir=$ac_top_builddir$srcdir ;;
8433 esac
8434
8435 # Do not use `cd foo && pwd` to compute absolute paths, because
8436 # the directories may not exist.
8437 case `pwd` in
8438 .) ac_abs_builddir="$ac_dir";;
8439 *)
8440   case "$ac_dir" in
8441   .) ac_abs_builddir=`pwd`;;
8442   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8443   *) ac_abs_builddir=`pwd`/"$ac_dir";;
8444   esac;;
8445 esac
8446 case $ac_abs_builddir in
8447 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8448 *)
8449   case ${ac_top_builddir}. in
8450   .) ac_abs_top_builddir=$ac_abs_builddir;;
8451   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8452   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8453   esac;;
8454 esac
8455 case $ac_abs_builddir in
8456 .) ac_abs_srcdir=$ac_srcdir;;
8457 *)
8458   case $ac_srcdir in
8459   .) ac_abs_srcdir=$ac_abs_builddir;;
8460   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8461   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8462   esac;;
8463 esac
8464 case $ac_abs_builddir in
8465 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8466 *)
8467   case $ac_top_srcdir in
8468   .) ac_abs_top_srcdir=$ac_abs_builddir;;
8469   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8470   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8471   esac;;
8472 esac
8473
8474
8475   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
8476 echo "$as_me: executing $ac_dest commands" >&6;}
8477   case $ac_dest in
8478     default-1 )
8479 # Only add multilib support code if we just rebuilt the top-level
8480 # Makefile.
8481 case " $CONFIG_FILES " in
8482  *" Makefile "*)
8483    ac_file=Makefile . ${multi_basedir}/config-ml.in
8484    ;;
8485 esac ;;
8486     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
8487   # Strip MF so we end up with the name of the file.
8488   mf=`echo "$mf" | sed -e 's/:.*$//'`
8489   # Check whether this is an Automake generated Makefile or not.
8490   # We used to match only the files named `Makefile.in', but
8491   # some people rename them; so instead we look at the file content.
8492   # Grep'ing the first line is not enough: some people post-process
8493   # each Makefile.in and add a new line on top of each file to say so.
8494   # So let's grep whole file.
8495   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
8496     dirpart=`(dirname "$mf") 2>/dev/null ||
8497 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8498          X"$mf" : 'X\(//\)[^/]' \| \
8499          X"$mf" : 'X\(//\)$' \| \
8500          X"$mf" : 'X\(/\)' \| \
8501          .     : '\(.\)' 2>/dev/null ||
8502 echo X"$mf" |
8503     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8504           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8505           /^X\(\/\/\)$/{ s//\1/; q; }
8506           /^X\(\/\).*/{ s//\1/; q; }
8507           s/.*/./; q'`
8508   else
8509     continue
8510   fi
8511   # Extract the definition of DEPDIR, am__include, and am__quote
8512   # from the Makefile without running `make'.
8513   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
8514   test -z "$DEPDIR" && continue
8515   am__include=`sed -n 's/^am__include = //p' < "$mf"`
8516   test -z "am__include" && continue
8517   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8518   # When using ansi2knr, U may be empty or an underscore; expand it
8519   U=`sed -n 's/^U = //p' < "$mf"`
8520   # Find all dependency output files, they are included files with
8521   # $(DEPDIR) in their names.  We invoke sed twice because it is the
8522   # simplest approach to changing $(DEPDIR) to its actual value in the
8523   # expansion.
8524   for file in `sed -n "
8525     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
8526        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
8527     # Make sure the directory exists.
8528     test -f "$dirpart/$file" && continue
8529     fdir=`(dirname "$file") 2>/dev/null ||
8530 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8531          X"$file" : 'X\(//\)[^/]' \| \
8532          X"$file" : 'X\(//\)$' \| \
8533          X"$file" : 'X\(/\)' \| \
8534          .     : '\(.\)' 2>/dev/null ||
8535 echo X"$file" |
8536     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8537           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8538           /^X\(\/\/\)$/{ s//\1/; q; }
8539           /^X\(\/\).*/{ s//\1/; q; }
8540           s/.*/./; q'`
8541     { if $as_mkdir_p; then
8542     mkdir -p $dirpart/$fdir
8543   else
8544     as_dir=$dirpart/$fdir
8545     as_dirs=
8546     while test ! -d "$as_dir"; do
8547       as_dirs="$as_dir $as_dirs"
8548       as_dir=`(dirname "$as_dir") 2>/dev/null ||
8549 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8550          X"$as_dir" : 'X\(//\)[^/]' \| \
8551          X"$as_dir" : 'X\(//\)$' \| \
8552          X"$as_dir" : 'X\(/\)' \| \
8553          .     : '\(.\)' 2>/dev/null ||
8554 echo X"$as_dir" |
8555     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8556           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8557           /^X\(\/\/\)$/{ s//\1/; q; }
8558           /^X\(\/\).*/{ s//\1/; q; }
8559           s/.*/./; q'`
8560     done
8561     test ! -n "$as_dirs" || mkdir $as_dirs
8562   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
8563 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
8564    { (exit 1); exit 1; }; }; }
8565
8566     # echo "creating $dirpart/$file"
8567     echo '# dummy' > "$dirpart/$file"
8568   done
8569 done
8570  ;;
8571   esac
8572 done
8573 _ACEOF
8574
8575 cat >>$CONFIG_STATUS <<\_ACEOF
8576
8577 { (exit 0); exit 0; }
8578 _ACEOF
8579 chmod +x $CONFIG_STATUS
8580 ac_clean_files=$ac_clean_files_save
8581
8582
8583 # configure is writing to config.log, and then calls config.status.
8584 # config.status does its own redirection, appending to config.log.
8585 # Unfortunately, on DOS this fails, as config.log is still kept open
8586 # by configure, so config.status won't be able to write to it; its
8587 # output is simply discarded.  So we exec the FD to /dev/null,
8588 # effectively closing config.log, so it can be properly (re)opened and
8589 # appended to by config.status.  When coming back to configure, we
8590 # need to make the FD available again.
8591 if test "$no_create" != yes; then
8592   ac_cs_success=:
8593   ac_config_status_args=
8594   test "$silent" = yes &&
8595     ac_config_status_args="$ac_config_status_args --quiet"
8596   exec 5>/dev/null
8597   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8598   exec 5>>config.log
8599   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8600   # would make configure fail if this is the last instruction.
8601   $ac_cs_success || { (exit 1); exit 1; }
8602 fi
8603