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