OSDN Git Service

Daily bump.
[pf3gnuchains/gcc-fork.git] / libgomp / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for GNU OpenMP Runtime Library 1.0.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete.  It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME='GNU OpenMP Runtime Library'
269 PACKAGE_TARNAME='libgomp'
270 PACKAGE_VERSION='1.0'
271 PACKAGE_STRING='GNU OpenMP Runtime Library 1.0'
272 PACKAGE_BUGREPORT=''
273
274 # Factoring default headers for most tests.
275 ac_includes_default="\
276 #include <stdio.h>
277 #if HAVE_SYS_TYPES_H
278 # include <sys/types.h>
279 #endif
280 #if HAVE_SYS_STAT_H
281 # include <sys/stat.h>
282 #endif
283 #if STDC_HEADERS
284 # include <stdlib.h>
285 # include <stddef.h>
286 #else
287 # if HAVE_STDLIB_H
288 #  include <stdlib.h>
289 # endif
290 #endif
291 #if HAVE_STRING_H
292 # if !STDC_HEADERS && HAVE_MEMORY_H
293 #  include <memory.h>
294 # endif
295 # include <string.h>
296 #endif
297 #if HAVE_STRINGS_H
298 # include <strings.h>
299 #endif
300 #if HAVE_INTTYPES_H
301 # include <inttypes.h>
302 #else
303 # if HAVE_STDINT_H
304 #  include <stdint.h>
305 # endif
306 #endif
307 #if HAVE_UNISTD_H
308 # include <unistd.h>
309 #endif"
310
311 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar multi_basedir toolexecdir toolexeclibdir CC ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CFLAGS AR ac_ct_AR RANLIB ac_ct_RANLIB PERL LN_S LIBTOOL enable_shared enable_static MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT FC FCFLAGS LDFLAGS ac_ct_FC libtool_VERSION CPP CPPFLAGS EGREP SECTION_LDFLAGS OPT_LDFLAGS LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE config_path XCFLAGS XLDFLAGS link_gomp USE_FORTRAN_TRUE USE_FORTRAN_FALSE OMP_LOCK_SIZE OMP_LOCK_ALIGN OMP_NEST_LOCK_SIZE OMP_NEST_LOCK_ALIGN OMP_LOCK_KIND OMP_NEST_LOCK_KIND LIBOBJS LTLIBOBJS'
312 ac_subst_files=''
313
314 # Initialize some variables set by options.
315 ac_init_help=
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
319 cache_file=/dev/null
320 exec_prefix=NONE
321 no_create=
322 no_recursion=
323 prefix=NONE
324 program_prefix=NONE
325 program_suffix=NONE
326 program_transform_name=s,x,x,
327 silent=
328 site=
329 srcdir=
330 verbose=
331 x_includes=NONE
332 x_libraries=NONE
333
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
351
352 ac_prev=
353 for ac_option
354 do
355   # If the previous option needs an argument, assign it.
356   if test -n "$ac_prev"; then
357     eval "$ac_prev=\$ac_option"
358     ac_prev=
359     continue
360   fi
361
362   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
363
364   # Accept the important Cygnus configure options, so we can diagnose typos.
365
366   case $ac_option in
367
368   -bindir | --bindir | --bindi | --bind | --bin | --bi)
369     ac_prev=bindir ;;
370   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371     bindir=$ac_optarg ;;
372
373   -build | --build | --buil | --bui | --bu)
374     ac_prev=build_alias ;;
375   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376     build_alias=$ac_optarg ;;
377
378   -cache-file | --cache-file | --cache-fil | --cache-fi \
379   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380     ac_prev=cache_file ;;
381   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383     cache_file=$ac_optarg ;;
384
385   --config-cache | -C)
386     cache_file=config.cache ;;
387
388   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389     ac_prev=datadir ;;
390   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391   | --da=*)
392     datadir=$ac_optarg ;;
393
394   -disable-* | --disable-*)
395     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396     # Reject names that are not valid shell variable names.
397     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399    { (exit 1); exit 1; }; }
400     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401     eval "enable_$ac_feature=no" ;;
402
403   -enable-* | --enable-*)
404     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405     # Reject names that are not valid shell variable names.
406     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408    { (exit 1); exit 1; }; }
409     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410     case $ac_option in
411       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412       *) ac_optarg=yes ;;
413     esac
414     eval "enable_$ac_feature='$ac_optarg'" ;;
415
416   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418   | --exec | --exe | --ex)
419     ac_prev=exec_prefix ;;
420   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422   | --exec=* | --exe=* | --ex=*)
423     exec_prefix=$ac_optarg ;;
424
425   -gas | --gas | --ga | --g)
426     # Obsolete; use --with-gas.
427     with_gas=yes ;;
428
429   -help | --help | --hel | --he | -h)
430     ac_init_help=long ;;
431   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432     ac_init_help=recursive ;;
433   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434     ac_init_help=short ;;
435
436   -host | --host | --hos | --ho)
437     ac_prev=host_alias ;;
438   -host=* | --host=* | --hos=* | --ho=*)
439     host_alias=$ac_optarg ;;
440
441   -includedir | --includedir | --includedi | --included | --include \
442   | --includ | --inclu | --incl | --inc)
443     ac_prev=includedir ;;
444   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445   | --includ=* | --inclu=* | --incl=* | --inc=*)
446     includedir=$ac_optarg ;;
447
448   -infodir | --infodir | --infodi | --infod | --info | --inf)
449     ac_prev=infodir ;;
450   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451     infodir=$ac_optarg ;;
452
453   -libdir | --libdir | --libdi | --libd)
454     ac_prev=libdir ;;
455   -libdir=* | --libdir=* | --libdi=* | --libd=*)
456     libdir=$ac_optarg ;;
457
458   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459   | --libexe | --libex | --libe)
460     ac_prev=libexecdir ;;
461   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462   | --libexe=* | --libex=* | --libe=*)
463     libexecdir=$ac_optarg ;;
464
465   -localstatedir | --localstatedir | --localstatedi | --localstated \
466   | --localstate | --localstat | --localsta | --localst \
467   | --locals | --local | --loca | --loc | --lo)
468     ac_prev=localstatedir ;;
469   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472     localstatedir=$ac_optarg ;;
473
474   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475     ac_prev=mandir ;;
476   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477     mandir=$ac_optarg ;;
478
479   -nfp | --nfp | --nf)
480     # Obsolete; use --without-fp.
481     with_fp=no ;;
482
483   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484   | --no-cr | --no-c | -n)
485     no_create=yes ;;
486
487   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489     no_recursion=yes ;;
490
491   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493   | --oldin | --oldi | --old | --ol | --o)
494     ac_prev=oldincludedir ;;
495   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498     oldincludedir=$ac_optarg ;;
499
500   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501     ac_prev=prefix ;;
502   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503     prefix=$ac_optarg ;;
504
505   -program-prefix | --program-prefix | --program-prefi | --program-pref \
506   | --program-pre | --program-pr | --program-p)
507     ac_prev=program_prefix ;;
508   -program-prefix=* | --program-prefix=* | --program-prefi=* \
509   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510     program_prefix=$ac_optarg ;;
511
512   -program-suffix | --program-suffix | --program-suffi | --program-suff \
513   | --program-suf | --program-su | --program-s)
514     ac_prev=program_suffix ;;
515   -program-suffix=* | --program-suffix=* | --program-suffi=* \
516   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517     program_suffix=$ac_optarg ;;
518
519   -program-transform-name | --program-transform-name \
520   | --program-transform-nam | --program-transform-na \
521   | --program-transform-n | --program-transform- \
522   | --program-transform | --program-transfor \
523   | --program-transfo | --program-transf \
524   | --program-trans | --program-tran \
525   | --progr-tra | --program-tr | --program-t)
526     ac_prev=program_transform_name ;;
527   -program-transform-name=* | --program-transform-name=* \
528   | --program-transform-nam=* | --program-transform-na=* \
529   | --program-transform-n=* | --program-transform-=* \
530   | --program-transform=* | --program-transfor=* \
531   | --program-transfo=* | --program-transf=* \
532   | --program-trans=* | --program-tran=* \
533   | --progr-tra=* | --program-tr=* | --program-t=*)
534     program_transform_name=$ac_optarg ;;
535
536   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537   | -silent | --silent | --silen | --sile | --sil)
538     silent=yes ;;
539
540   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541     ac_prev=sbindir ;;
542   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543   | --sbi=* | --sb=*)
544     sbindir=$ac_optarg ;;
545
546   -sharedstatedir | --sharedstatedir | --sharedstatedi \
547   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548   | --sharedst | --shareds | --shared | --share | --shar \
549   | --sha | --sh)
550     ac_prev=sharedstatedir ;;
551   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554   | --sha=* | --sh=*)
555     sharedstatedir=$ac_optarg ;;
556
557   -site | --site | --sit)
558     ac_prev=site ;;
559   -site=* | --site=* | --sit=*)
560     site=$ac_optarg ;;
561
562   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563     ac_prev=srcdir ;;
564   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565     srcdir=$ac_optarg ;;
566
567   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568   | --syscon | --sysco | --sysc | --sys | --sy)
569     ac_prev=sysconfdir ;;
570   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572     sysconfdir=$ac_optarg ;;
573
574   -target | --target | --targe | --targ | --tar | --ta | --t)
575     ac_prev=target_alias ;;
576   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577     target_alias=$ac_optarg ;;
578
579   -v | -verbose | --verbose | --verbos | --verbo | --verb)
580     verbose=yes ;;
581
582   -version | --version | --versio | --versi | --vers | -V)
583     ac_init_version=: ;;
584
585   -with-* | --with-*)
586     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587     # Reject names that are not valid shell variable names.
588     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589       { echo "$as_me: error: invalid package name: $ac_package" >&2
590    { (exit 1); exit 1; }; }
591     ac_package=`echo $ac_package| sed 's/-/_/g'`
592     case $ac_option in
593       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594       *) ac_optarg=yes ;;
595     esac
596     eval "with_$ac_package='$ac_optarg'" ;;
597
598   -without-* | --without-*)
599     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600     # Reject names that are not valid shell variable names.
601     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602       { echo "$as_me: error: invalid package name: $ac_package" >&2
603    { (exit 1); exit 1; }; }
604     ac_package=`echo $ac_package | sed 's/-/_/g'`
605     eval "with_$ac_package=no" ;;
606
607   --x)
608     # Obsolete; use --with-x.
609     with_x=yes ;;
610
611   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612   | --x-incl | --x-inc | --x-in | --x-i)
613     ac_prev=x_includes ;;
614   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616     x_includes=$ac_optarg ;;
617
618   -x-libraries | --x-libraries | --x-librarie | --x-librari \
619   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620     ac_prev=x_libraries ;;
621   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623     x_libraries=$ac_optarg ;;
624
625   -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627    { (exit 1); exit 1; }; }
628     ;;
629
630   *=*)
631     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632     # Reject names that are not valid shell variable names.
633     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635    { (exit 1); exit 1; }; }
636     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637     eval "$ac_envvar='$ac_optarg'"
638     export $ac_envvar ;;
639
640   *)
641     # FIXME: should be removed in autoconf 3.0.
642     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
646     ;;
647
648   esac
649 done
650
651 if test -n "$ac_prev"; then
652   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653   { echo "$as_me: error: missing argument to $ac_option" >&2
654    { (exit 1); exit 1; }; }
655 fi
656
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
659 do
660   eval ac_val=$`echo $ac_var`
661   case $ac_val in
662     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664    { (exit 1); exit 1; }; };;
665   esac
666 done
667
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670               localstatedir libdir includedir oldincludedir infodir mandir
671 do
672   eval ac_val=$`echo $ac_var`
673   case $ac_val in
674     [\\/$]* | ?:[\\/]* ) ;;
675     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676    { (exit 1); exit 1; }; };;
677   esac
678 done
679
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
683 build=$build_alias
684 host=$host_alias
685 target=$target_alias
686
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689   if test "x$build_alias" = x; then
690     cross_compiling=maybe
691     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692     If a cross compiler is detected then cross compile mode will be used." >&2
693   elif test "x$build_alias" != "x$host_alias"; then
694     cross_compiling=yes
695   fi
696 fi
697
698 ac_tool_prefix=
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
700
701 test "$silent" = yes && exec 6>/dev/null
702
703
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706   ac_srcdir_defaulted=yes
707   # Try the directory containing this script, then its parent.
708   ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710          X"$0" : 'X\(//\)[^/]' \| \
711          X"$0" : 'X\(//\)$' \| \
712          X"$0" : 'X\(/\)' \| \
713          .     : '\(.\)' 2>/dev/null ||
714 echo X"$0" |
715     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717           /^X\(\/\/\)$/{ s//\1/; q; }
718           /^X\(\/\).*/{ s//\1/; q; }
719           s/.*/./; q'`
720   srcdir=$ac_confdir
721   if test ! -r $srcdir/$ac_unique_file; then
722     srcdir=..
723   fi
724 else
725   ac_srcdir_defaulted=no
726 fi
727 if test ! -r $srcdir/$ac_unique_file; then
728   if test "$ac_srcdir_defaulted" = yes; then
729     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730    { (exit 1); exit 1; }; }
731   else
732     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733    { (exit 1); exit 1; }; }
734   fi
735 fi
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738    { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_FC_set=${FC+set}
753 ac_env_FC_value=$FC
754 ac_cv_env_FC_set=${FC+set}
755 ac_cv_env_FC_value=$FC
756 ac_env_FCFLAGS_set=${FCFLAGS+set}
757 ac_env_FCFLAGS_value=$FCFLAGS
758 ac_cv_env_FCFLAGS_set=${FCFLAGS+set}
759 ac_cv_env_FCFLAGS_value=$FCFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPP_set=${CPP+set}
765 ac_env_CPP_value=$CPP
766 ac_cv_env_CPP_set=${CPP+set}
767 ac_cv_env_CPP_value=$CPP
768 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_env_CPPFLAGS_value=$CPPFLAGS
770 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
771 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
772
773 #
774 # Report the --help message.
775 #
776 if test "$ac_init_help" = "long"; then
777   # Omit some internal or obsolete options to make the list less imposing.
778   # This message is too long to be a string in the A/UX 3.1 sh.
779   cat <<_ACEOF
780 \`configure' configures GNU OpenMP Runtime Library 1.0 to adapt to many kinds of systems.
781
782 Usage: $0 [OPTION]... [VAR=VALUE]...
783
784 To assign environment variables (e.g., CC, CFLAGS...), specify them as
785 VAR=VALUE.  See below for descriptions of some of the useful variables.
786
787 Defaults for the options are specified in brackets.
788
789 Configuration:
790   -h, --help              display this help and exit
791       --help=short        display options specific to this package
792       --help=recursive    display the short help of all the included packages
793   -V, --version           display version information and exit
794   -q, --quiet, --silent   do not print \`checking...' messages
795       --cache-file=FILE   cache test results in FILE [disabled]
796   -C, --config-cache      alias for \`--cache-file=config.cache'
797   -n, --no-create         do not create output files
798       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
799
800 _ACEOF
801
802   cat <<_ACEOF
803 Installation directories:
804   --prefix=PREFIX         install architecture-independent files in PREFIX
805                           [$ac_default_prefix]
806   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
807                           [PREFIX]
808
809 By default, \`make install' will install all the files in
810 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
811 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812 for instance \`--prefix=\$HOME'.
813
814 For better control, use the options below.
815
816 Fine tuning of the installation directories:
817   --bindir=DIR           user executables [EPREFIX/bin]
818   --sbindir=DIR          system admin executables [EPREFIX/sbin]
819   --libexecdir=DIR       program executables [EPREFIX/libexec]
820   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
821   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
822   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
823   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
824   --libdir=DIR           object code libraries [EPREFIX/lib]
825   --includedir=DIR       C header files [PREFIX/include]
826   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
827   --infodir=DIR          info documentation [PREFIX/info]
828   --mandir=DIR           man documentation [PREFIX/man]
829 _ACEOF
830
831   cat <<\_ACEOF
832
833 Program names:
834   --program-prefix=PREFIX            prepend PREFIX to installed program names
835   --program-suffix=SUFFIX            append SUFFIX to installed program names
836   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
837
838 System types:
839   --build=BUILD     configure for building on BUILD [guessed]
840   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
841   --target=TARGET   configure for building compilers for TARGET [HOST]
842 _ACEOF
843 fi
844
845 if test -n "$ac_init_help"; then
846   case $ac_init_help in
847      short | recursive ) echo "Configuration of GNU OpenMP Runtime Library 1.0:";;
848    esac
849   cat <<\_ACEOF
850
851 Optional Features:
852   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
853   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
854   --enable-version-specific-runtime-libs
855                           Specify that runtime libraries should be installed
856                           in a compiler-specific directory [default=no]
857   --enable-linux-futex    Use the Linux futex system call
858                           [default=default]
859   --enable-multilib       build many library versions (default)
860   --disable-dependency-tracking  speeds up one-time build
861   --enable-dependency-tracking   do not reject slow dependency extractors
862   --enable-shared=PKGS  build shared libraries default=yes
863   --enable-static=PKGS  build static libraries default=yes
864   --enable-fast-install=PKGS  optimize for fast installation default=yes
865   --disable-libtool-lock  avoid locking (might break parallel builds)
866   --enable-maintainer-mode  enable make rules and dependencies not useful
867                           (and sometimes confusing) to the casual installer
868   --enable-tls            Use thread-local storage [default=yes]
869   --enable-symvers=STYLE  enables symbol versioning of the shared library
870                           [default=yes]
871
872 Optional Packages:
873   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
874   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
875   --with-gnu-ld           assume the C compiler uses GNU ld default=no
876   --with-pic              try to use only PIC/non-PIC objects default=use both
877
878 Some influential environment variables:
879   CC          C compiler command
880   CFLAGS      C compiler flags
881   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
882               nonstandard directory <lib dir>
883   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
884               headers in a nonstandard directory <include dir>
885   FC          Fortran compiler command
886   FCFLAGS     Fortran compiler flags
887   CPP         C preprocessor
888
889 Use these variables to override the choices made by `configure' or to help
890 it to find libraries and programs with nonstandard names/locations.
891
892 _ACEOF
893 fi
894
895 if test "$ac_init_help" = "recursive"; then
896   # If there are subdirs, report their specific --help.
897   ac_popdir=`pwd`
898   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
899     test -d $ac_dir || continue
900     ac_builddir=.
901
902 if test "$ac_dir" != .; then
903   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
904   # A "../" for each directory in $ac_dir_suffix.
905   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
906 else
907   ac_dir_suffix= ac_top_builddir=
908 fi
909
910 case $srcdir in
911   .)  # No --srcdir option.  We are building in place.
912     ac_srcdir=.
913     if test -z "$ac_top_builddir"; then
914        ac_top_srcdir=.
915     else
916        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
917     fi ;;
918   [\\/]* | ?:[\\/]* )  # Absolute path.
919     ac_srcdir=$srcdir$ac_dir_suffix;
920     ac_top_srcdir=$srcdir ;;
921   *) # Relative path.
922     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
923     ac_top_srcdir=$ac_top_builddir$srcdir ;;
924 esac
925
926 # Do not use `cd foo && pwd` to compute absolute paths, because
927 # the directories may not exist.
928 case `pwd` in
929 .) ac_abs_builddir="$ac_dir";;
930 *)
931   case "$ac_dir" in
932   .) ac_abs_builddir=`pwd`;;
933   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
934   *) ac_abs_builddir=`pwd`/"$ac_dir";;
935   esac;;
936 esac
937 case $ac_abs_builddir in
938 .) ac_abs_top_builddir=${ac_top_builddir}.;;
939 *)
940   case ${ac_top_builddir}. in
941   .) ac_abs_top_builddir=$ac_abs_builddir;;
942   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
943   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
944   esac;;
945 esac
946 case $ac_abs_builddir in
947 .) ac_abs_srcdir=$ac_srcdir;;
948 *)
949   case $ac_srcdir in
950   .) ac_abs_srcdir=$ac_abs_builddir;;
951   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
952   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
953   esac;;
954 esac
955 case $ac_abs_builddir in
956 .) ac_abs_top_srcdir=$ac_top_srcdir;;
957 *)
958   case $ac_top_srcdir in
959   .) ac_abs_top_srcdir=$ac_abs_builddir;;
960   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
961   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
962   esac;;
963 esac
964
965     cd $ac_dir
966     # Check for guested configure; otherwise get Cygnus style configure.
967     if test -f $ac_srcdir/configure.gnu; then
968       echo
969       $SHELL $ac_srcdir/configure.gnu  --help=recursive
970     elif test -f $ac_srcdir/configure; then
971       echo
972       $SHELL $ac_srcdir/configure  --help=recursive
973     elif test -f $ac_srcdir/configure.ac ||
974            test -f $ac_srcdir/configure.in; then
975       echo
976       $ac_configure --help
977     else
978       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
979     fi
980     cd $ac_popdir
981   done
982 fi
983
984 test -n "$ac_init_help" && exit 0
985 if $ac_init_version; then
986   cat <<\_ACEOF
987 GNU OpenMP Runtime Library configure 1.0
988 generated by GNU Autoconf 2.59
989
990 Copyright (C) 2003 Free Software Foundation, Inc.
991 This configure script is free software; the Free Software Foundation
992 gives unlimited permission to copy, distribute and modify it.
993 _ACEOF
994   exit 0
995 fi
996 exec 5>config.log
997 cat >&5 <<_ACEOF
998 This file contains any messages produced by compilers while
999 running configure, to aid debugging if configure makes a mistake.
1000
1001 It was created by GNU OpenMP Runtime Library $as_me 1.0, which was
1002 generated by GNU Autoconf 2.59.  Invocation command line was
1003
1004   $ $0 $@
1005
1006 _ACEOF
1007 {
1008 cat <<_ASUNAME
1009 ## --------- ##
1010 ## Platform. ##
1011 ## --------- ##
1012
1013 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1014 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1015 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1016 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1017 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1018
1019 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1020 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1021
1022 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1023 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1024 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1025 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1026 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1027 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1028 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1029
1030 _ASUNAME
1031
1032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1033 for as_dir in $PATH
1034 do
1035   IFS=$as_save_IFS
1036   test -z "$as_dir" && as_dir=.
1037   echo "PATH: $as_dir"
1038 done
1039
1040 } >&5
1041
1042 cat >&5 <<_ACEOF
1043
1044
1045 ## ----------- ##
1046 ## Core tests. ##
1047 ## ----------- ##
1048
1049 _ACEOF
1050
1051
1052 # Keep a trace of the command line.
1053 # Strip out --no-create and --no-recursion so they do not pile up.
1054 # Strip out --silent because we don't want to record it for future runs.
1055 # Also quote any args containing shell meta-characters.
1056 # Make two passes to allow for proper duplicate-argument suppression.
1057 ac_configure_args=
1058 ac_configure_args0=
1059 ac_configure_args1=
1060 ac_sep=
1061 ac_must_keep_next=false
1062 for ac_pass in 1 2
1063 do
1064   for ac_arg
1065   do
1066     case $ac_arg in
1067     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1068     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1069     | -silent | --silent | --silen | --sile | --sil)
1070       continue ;;
1071     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1072       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1073     esac
1074     case $ac_pass in
1075     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1076     2)
1077       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1078       if test $ac_must_keep_next = true; then
1079         ac_must_keep_next=false # Got value, back to normal.
1080       else
1081         case $ac_arg in
1082           *=* | --config-cache | -C | -disable-* | --disable-* \
1083           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1084           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1085           | -with-* | --with-* | -without-* | --without-* | --x)
1086             case "$ac_configure_args0 " in
1087               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1088             esac
1089             ;;
1090           -* ) ac_must_keep_next=true ;;
1091         esac
1092       fi
1093       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1094       # Get rid of the leading space.
1095       ac_sep=" "
1096       ;;
1097     esac
1098   done
1099 done
1100 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1101 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1102
1103 # When interrupted or exit'd, cleanup temporary files, and complete
1104 # config.log.  We remove comments because anyway the quotes in there
1105 # would cause problems or look ugly.
1106 # WARNING: Be sure not to use single quotes in there, as some shells,
1107 # such as our DU 5.0 friend, will then `close' the trap.
1108 trap 'exit_status=$?
1109   # Save into config.log some information that might help in debugging.
1110   {
1111     echo
1112
1113     cat <<\_ASBOX
1114 ## ---------------- ##
1115 ## Cache variables. ##
1116 ## ---------------- ##
1117 _ASBOX
1118     echo
1119     # The following way of writing the cache mishandles newlines in values,
1120 {
1121   (set) 2>&1 |
1122     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1123     *ac_space=\ *)
1124       sed -n \
1125         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1126           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1127       ;;
1128     *)
1129       sed -n \
1130         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1131       ;;
1132     esac;
1133 }
1134     echo
1135
1136     cat <<\_ASBOX
1137 ## ----------------- ##
1138 ## Output variables. ##
1139 ## ----------------- ##
1140 _ASBOX
1141     echo
1142     for ac_var in $ac_subst_vars
1143     do
1144       eval ac_val=$`echo $ac_var`
1145       echo "$ac_var='"'"'$ac_val'"'"'"
1146     done | sort
1147     echo
1148
1149     if test -n "$ac_subst_files"; then
1150       cat <<\_ASBOX
1151 ## ------------- ##
1152 ## Output files. ##
1153 ## ------------- ##
1154 _ASBOX
1155       echo
1156       for ac_var in $ac_subst_files
1157       do
1158         eval ac_val=$`echo $ac_var`
1159         echo "$ac_var='"'"'$ac_val'"'"'"
1160       done | sort
1161       echo
1162     fi
1163
1164     if test -s confdefs.h; then
1165       cat <<\_ASBOX
1166 ## ----------- ##
1167 ## confdefs.h. ##
1168 ## ----------- ##
1169 _ASBOX
1170       echo
1171       sed "/^$/d" confdefs.h | sort
1172       echo
1173     fi
1174     test "$ac_signal" != 0 &&
1175       echo "$as_me: caught signal $ac_signal"
1176     echo "$as_me: exit $exit_status"
1177   } >&5
1178   rm -f core *.core &&
1179   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1180     exit $exit_status
1181      ' 0
1182 for ac_signal in 1 2 13 15; do
1183   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1184 done
1185 ac_signal=0
1186
1187 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1188 rm -rf conftest* confdefs.h
1189 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1190 echo >confdefs.h
1191
1192 # Predefined preprocessor variables.
1193
1194 cat >>confdefs.h <<_ACEOF
1195 #define PACKAGE_NAME "$PACKAGE_NAME"
1196 _ACEOF
1197
1198
1199 cat >>confdefs.h <<_ACEOF
1200 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1201 _ACEOF
1202
1203
1204 cat >>confdefs.h <<_ACEOF
1205 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1206 _ACEOF
1207
1208
1209 cat >>confdefs.h <<_ACEOF
1210 #define PACKAGE_STRING "$PACKAGE_STRING"
1211 _ACEOF
1212
1213
1214 cat >>confdefs.h <<_ACEOF
1215 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1216 _ACEOF
1217
1218
1219 # Let the site file select an alternate cache file if it wants to.
1220 # Prefer explicitly selected file to automatically selected ones.
1221 if test -z "$CONFIG_SITE"; then
1222   if test "x$prefix" != xNONE; then
1223     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1224   else
1225     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1226   fi
1227 fi
1228 for ac_site_file in $CONFIG_SITE; do
1229   if test -r "$ac_site_file"; then
1230     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1231 echo "$as_me: loading site script $ac_site_file" >&6;}
1232     sed 's/^/| /' "$ac_site_file" >&5
1233     . "$ac_site_file"
1234   fi
1235 done
1236
1237 if test -r "$cache_file"; then
1238   # Some versions of bash will fail to source /dev/null (special
1239   # files actually), so we avoid doing that.
1240   if test -f "$cache_file"; then
1241     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1242 echo "$as_me: loading cache $cache_file" >&6;}
1243     case $cache_file in
1244       [\\/]* | ?:[\\/]* ) . $cache_file;;
1245       *)                      . ./$cache_file;;
1246     esac
1247   fi
1248 else
1249   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1250 echo "$as_me: creating cache $cache_file" >&6;}
1251   >$cache_file
1252 fi
1253
1254 # Check that the precious variables saved in the cache have kept the same
1255 # value.
1256 ac_cache_corrupted=false
1257 for ac_var in `(set) 2>&1 |
1258                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1259   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1260   eval ac_new_set=\$ac_env_${ac_var}_set
1261   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1262   eval ac_new_val="\$ac_env_${ac_var}_value"
1263   case $ac_old_set,$ac_new_set in
1264     set,)
1265       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1266 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1267       ac_cache_corrupted=: ;;
1268     ,set)
1269       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1270 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1271       ac_cache_corrupted=: ;;
1272     ,);;
1273     *)
1274       if test "x$ac_old_val" != "x$ac_new_val"; then
1275         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1276 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1277         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1278 echo "$as_me:   former value:  $ac_old_val" >&2;}
1279         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1280 echo "$as_me:   current value: $ac_new_val" >&2;}
1281         ac_cache_corrupted=:
1282       fi;;
1283   esac
1284   # Pass precious variables to config.status.
1285   if test "$ac_new_set" = set; then
1286     case $ac_new_val in
1287     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1288       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1289     *) ac_arg=$ac_var=$ac_new_val ;;
1290     esac
1291     case " $ac_configure_args " in
1292       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1293       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1294     esac
1295   fi
1296 done
1297 if $ac_cache_corrupted; then
1298   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1299 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1300   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1301 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1302    { (exit 1); exit 1; }; }
1303 fi
1304
1305 ac_ext=c
1306 ac_cpp='$CPP $CPPFLAGS'
1307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337           ac_config_headers="$ac_config_headers config.h"
1338
1339
1340 # -------
1341 # Options
1342 # -------
1343
1344 echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5
1345 echo $ECHO_N "checking for --enable-version-specific-runtime-libs... $ECHO_C" >&6
1346  # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1347 if test "${enable_version_specific_runtime_libs+set}" = set; then
1348   enableval="$enable_version_specific_runtime_libs"
1349
1350       case "$enableval" in
1351        yes|no) ;;
1352        *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific-runtime-libs" >&5
1353 echo "$as_me: error: Unknown argument to enable/disable version-specific-runtime-libs" >&2;}
1354    { (exit 1); exit 1; }; } ;;
1355                           esac
1356
1357 else
1358   enable_version_specific_runtime_libs=no
1359 fi;
1360
1361 echo "$as_me:$LINENO: result: $enable_version_specific_runtime_libs" >&5
1362 echo "${ECHO_T}$enable_version_specific_runtime_libs" >&6
1363
1364 echo "$as_me:$LINENO: checking for --enable-linux-futex" >&5
1365 echo $ECHO_N "checking for --enable-linux-futex... $ECHO_C" >&6
1366  # Check whether --enable-linux-futex or --disable-linux-futex was given.
1367 if test "${enable_linux_futex+set}" = set; then
1368   enableval="$enable_linux_futex"
1369
1370       case "$enableval" in
1371        yes|no|default) ;;
1372        *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable linux-futex" >&5
1373 echo "$as_me: error: Unknown argument to enable/disable linux-futex" >&2;}
1374    { (exit 1); exit 1; }; } ;;
1375                           esac
1376
1377 else
1378   enable_linux_futex=default
1379 fi;
1380
1381 echo "$as_me:$LINENO: result: $enable_linux_futex" >&5
1382 echo "${ECHO_T}$enable_linux_futex" >&6
1383
1384 # -------
1385 # -------
1386
1387 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
1388 #
1389 # You will slowly go insane if you do not grok the following fact:  when
1390 # building this library, the top-level /target/ becomes the library's /host/.
1391 #
1392 # configure then causes --target to default to --host, exactly like any
1393 # other package using autoconf.  Therefore, 'target' and 'host' will
1394 # always be the same.  This makes sense both for native and cross compilers
1395 # just think about it for a little while.  :-)
1396 #
1397 # Also, if this library is being configured as part of a cross compiler, the
1398 # top-level configure script will pass the "real" host as $with_cross_host.
1399 #
1400 # Do not delete or change the following two lines.  For why, see
1401 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
1402 ac_aux_dir=
1403 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1404   if test -f $ac_dir/install-sh; then
1405     ac_aux_dir=$ac_dir
1406     ac_install_sh="$ac_aux_dir/install-sh -c"
1407     break
1408   elif test -f $ac_dir/install.sh; then
1409     ac_aux_dir=$ac_dir
1410     ac_install_sh="$ac_aux_dir/install.sh -c"
1411     break
1412   elif test -f $ac_dir/shtool; then
1413     ac_aux_dir=$ac_dir
1414     ac_install_sh="$ac_aux_dir/shtool install -c"
1415     break
1416   fi
1417 done
1418 if test -z "$ac_aux_dir"; then
1419   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1420 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1421    { (exit 1); exit 1; }; }
1422 fi
1423 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1424 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1425 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1426
1427 # Make sure we can run config.sub.
1428 $ac_config_sub sun4 >/dev/null 2>&1 ||
1429   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1430 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1431    { (exit 1); exit 1; }; }
1432
1433 echo "$as_me:$LINENO: checking build system type" >&5
1434 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1435 if test "${ac_cv_build+set}" = set; then
1436   echo $ECHO_N "(cached) $ECHO_C" >&6
1437 else
1438   ac_cv_build_alias=$build_alias
1439 test -z "$ac_cv_build_alias" &&
1440   ac_cv_build_alias=`$ac_config_guess`
1441 test -z "$ac_cv_build_alias" &&
1442   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1443 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1444    { (exit 1); exit 1; }; }
1445 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1446   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1447 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1448    { (exit 1); exit 1; }; }
1449
1450 fi
1451 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1452 echo "${ECHO_T}$ac_cv_build" >&6
1453 build=$ac_cv_build
1454 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1455 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1456 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1457
1458
1459 echo "$as_me:$LINENO: checking host system type" >&5
1460 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1461 if test "${ac_cv_host+set}" = set; then
1462   echo $ECHO_N "(cached) $ECHO_C" >&6
1463 else
1464   ac_cv_host_alias=$host_alias
1465 test -z "$ac_cv_host_alias" &&
1466   ac_cv_host_alias=$ac_cv_build_alias
1467 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1468   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1469 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1470    { (exit 1); exit 1; }; }
1471
1472 fi
1473 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1474 echo "${ECHO_T}$ac_cv_host" >&6
1475 host=$ac_cv_host
1476 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1477 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1478 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1479
1480
1481 echo "$as_me:$LINENO: checking target system type" >&5
1482 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1483 if test "${ac_cv_target+set}" = set; then
1484   echo $ECHO_N "(cached) $ECHO_C" >&6
1485 else
1486   ac_cv_target_alias=$target_alias
1487 test "x$ac_cv_target_alias" = "x" &&
1488   ac_cv_target_alias=$ac_cv_host_alias
1489 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1490   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1491 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1492    { (exit 1); exit 1; }; }
1493
1494 fi
1495 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1496 echo "${ECHO_T}$ac_cv_target" >&6
1497 target=$ac_cv_target
1498 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1499 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1500 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1501
1502
1503 # The aliases save the names the user supplied, while $host etc.
1504 # will get canonicalized.
1505 test -n "$target_alias" &&
1506   test "$program_prefix$program_suffix$program_transform_name" = \
1507     NONENONEs,x,x, &&
1508   program_prefix=${target_alias}-
1509 target_alias=${target_alias-$host_alias}
1510
1511 # Sets up automake.  Must come after AC_CANONICAL_SYSTEM.  Each of the
1512 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
1513 #  1.9.0:  minimum required version
1514 #  no-define:  PACKAGE and VERSION will not be #define'd in config.h (a bunch
1515 #              of other PACKAGE_* variables will, however, and there's nothing
1516 #              we can do about that; they come from AC_INIT).
1517 #  foreign:  we don't follow the normal rules for GNU packages (no COPYING
1518 #            file in the top srcdir, etc, etc), so stop complaining.
1519 #  no-dependencies:  turns off auto dependency generation (just for now)
1520 #  -Wall:  turns on all automake warnings...
1521 #  -Wno-portability:  ...except this one, since GNU make is required.
1522 #  -Wno-override: ... and this one, since we do want this in testsuite.
1523 am__api_version="1.9"
1524 # Find a good install program.  We prefer a C program (faster),
1525 # so one script is as good as another.  But avoid the broken or
1526 # incompatible versions:
1527 # SysV /etc/install, /usr/sbin/install
1528 # SunOS /usr/etc/install
1529 # IRIX /sbin/install
1530 # AIX /bin/install
1531 # AmigaOS /C/install, which installs bootblocks on floppy discs
1532 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1533 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1534 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1535 # OS/2's system install, which has a completely different semantic
1536 # ./install, which can be erroneously created by make from ./install.sh.
1537 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1538 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1539 if test -z "$INSTALL"; then
1540 if test "${ac_cv_path_install+set}" = set; then
1541   echo $ECHO_N "(cached) $ECHO_C" >&6
1542 else
1543   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1544 for as_dir in $PATH
1545 do
1546   IFS=$as_save_IFS
1547   test -z "$as_dir" && as_dir=.
1548   # Account for people who put trailing slashes in PATH elements.
1549 case $as_dir/ in
1550   ./ | .// | /cC/* | \
1551   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1552   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1553   /usr/ucb/* ) ;;
1554   *)
1555     # OSF1 and SCO ODT 3.0 have their own names for install.
1556     # Don't use installbsd from OSF since it installs stuff as root
1557     # by default.
1558     for ac_prog in ginstall scoinst install; do
1559       for ac_exec_ext in '' $ac_executable_extensions; do
1560         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1561           if test $ac_prog = install &&
1562             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1563             # AIX install.  It has an incompatible calling convention.
1564             :
1565           elif test $ac_prog = install &&
1566             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1567             # program-specific install script used by HP pwplus--don't use.
1568             :
1569           else
1570             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1571             break 3
1572           fi
1573         fi
1574       done
1575     done
1576     ;;
1577 esac
1578 done
1579
1580
1581 fi
1582   if test "${ac_cv_path_install+set}" = set; then
1583     INSTALL=$ac_cv_path_install
1584   else
1585     # As a last resort, use the slow shell script.  We don't cache a
1586     # path for INSTALL within a source directory, because that will
1587     # break other packages using the cache if that directory is
1588     # removed, or if the path is relative.
1589     INSTALL=$ac_install_sh
1590   fi
1591 fi
1592 echo "$as_me:$LINENO: result: $INSTALL" >&5
1593 echo "${ECHO_T}$INSTALL" >&6
1594
1595 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1596 # It thinks the first close brace ends the variable substitution.
1597 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1598
1599 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1600
1601 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1602
1603 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1604 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1605 # Just in case
1606 sleep 1
1607 echo timestamp > conftest.file
1608 # Do `set' in a subshell so we don't clobber the current shell's
1609 # arguments.  Must try -L first in case configure is actually a
1610 # symlink; some systems play weird games with the mod time of symlinks
1611 # (eg FreeBSD returns the mod time of the symlink's containing
1612 # directory).
1613 if (
1614    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1615    if test "$*" = "X"; then
1616       # -L didn't work.
1617       set X `ls -t $srcdir/configure conftest.file`
1618    fi
1619    rm -f conftest.file
1620    if test "$*" != "X $srcdir/configure conftest.file" \
1621       && test "$*" != "X conftest.file $srcdir/configure"; then
1622
1623       # If neither matched, then we have a broken ls.  This can happen
1624       # if, for instance, CONFIG_SHELL is bash and it inherits a
1625       # broken ls alias from the environment.  This has actually
1626       # happened.  Such a system could not be considered "sane".
1627       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1628 alias in your environment" >&5
1629 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1630 alias in your environment" >&2;}
1631    { (exit 1); exit 1; }; }
1632    fi
1633
1634    test "$2" = conftest.file
1635    )
1636 then
1637    # Ok.
1638    :
1639 else
1640    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1641 Check your system clock" >&5
1642 echo "$as_me: error: newly created file is older than distributed files!
1643 Check your system clock" >&2;}
1644    { (exit 1); exit 1; }; }
1645 fi
1646 echo "$as_me:$LINENO: result: yes" >&5
1647 echo "${ECHO_T}yes" >&6
1648 test "$program_prefix" != NONE &&
1649   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1650 # Use a double $ so make ignores it.
1651 test "$program_suffix" != NONE &&
1652   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1653 # Double any \ or $.  echo might interpret backslashes.
1654 # By default was `s,x,x', remove it if useless.
1655 cat <<\_ACEOF >conftest.sed
1656 s/[\\$]/&&/g;s/;s,x,x,$//
1657 _ACEOF
1658 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1659 rm conftest.sed
1660
1661 # expand $ac_aux_dir to an absolute path
1662 am_aux_dir=`cd $ac_aux_dir && pwd`
1663
1664 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1665 # Use eval to expand $SHELL
1666 if eval "$MISSING --run true"; then
1667   am_missing_run="$MISSING --run "
1668 else
1669   am_missing_run=
1670   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1671 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1672 fi
1673
1674 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1675   # We used to keeping the `.' as first argument, in order to
1676   # allow $(mkdir_p) to be used without argument.  As in
1677   #   $(mkdir_p) $(somedir)
1678   # where $(somedir) is conditionally defined.  However this is wrong
1679   # for two reasons:
1680   #  1. if the package is installed by a user who cannot write `.'
1681   #     make install will fail,
1682   #  2. the above comment should most certainly read
1683   #     $(mkdir_p) $(DESTDIR)$(somedir)
1684   #     so it does not work when $(somedir) is undefined and
1685   #     $(DESTDIR) is not.
1686   #  To support the latter case, we have to write
1687   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1688   #  so the `.' trick is pointless.
1689   mkdir_p='mkdir -p --'
1690 else
1691   # On NextStep and OpenStep, the `mkdir' command does not
1692   # recognize any option.  It will interpret all options as
1693   # directories to create, and then abort because `.' already
1694   # exists.
1695   for d in ./-p ./--version;
1696   do
1697     test -d $d && rmdir $d
1698   done
1699   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1700   if test -f "$ac_aux_dir/mkinstalldirs"; then
1701     mkdir_p='$(mkinstalldirs)'
1702   else
1703     mkdir_p='$(install_sh) -d'
1704   fi
1705 fi
1706
1707 for ac_prog in gawk mawk nawk awk
1708 do
1709   # Extract the first word of "$ac_prog", so it can be a program name with args.
1710 set dummy $ac_prog; ac_word=$2
1711 echo "$as_me:$LINENO: checking for $ac_word" >&5
1712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1713 if test "${ac_cv_prog_AWK+set}" = set; then
1714   echo $ECHO_N "(cached) $ECHO_C" >&6
1715 else
1716   if test -n "$AWK"; then
1717   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1718 else
1719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1720 for as_dir in $PATH
1721 do
1722   IFS=$as_save_IFS
1723   test -z "$as_dir" && as_dir=.
1724   for ac_exec_ext in '' $ac_executable_extensions; do
1725   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1726     ac_cv_prog_AWK="$ac_prog"
1727     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1728     break 2
1729   fi
1730 done
1731 done
1732
1733 fi
1734 fi
1735 AWK=$ac_cv_prog_AWK
1736 if test -n "$AWK"; then
1737   echo "$as_me:$LINENO: result: $AWK" >&5
1738 echo "${ECHO_T}$AWK" >&6
1739 else
1740   echo "$as_me:$LINENO: result: no" >&5
1741 echo "${ECHO_T}no" >&6
1742 fi
1743
1744   test -n "$AWK" && break
1745 done
1746
1747 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1748 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1749 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1750 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1751   echo $ECHO_N "(cached) $ECHO_C" >&6
1752 else
1753   cat >conftest.make <<\_ACEOF
1754 all:
1755         @echo 'ac_maketemp="$(MAKE)"'
1756 _ACEOF
1757 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1758 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1759 if test -n "$ac_maketemp"; then
1760   eval ac_cv_prog_make_${ac_make}_set=yes
1761 else
1762   eval ac_cv_prog_make_${ac_make}_set=no
1763 fi
1764 rm -f conftest.make
1765 fi
1766 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1767   echo "$as_me:$LINENO: result: yes" >&5
1768 echo "${ECHO_T}yes" >&6
1769   SET_MAKE=
1770 else
1771   echo "$as_me:$LINENO: result: no" >&5
1772 echo "${ECHO_T}no" >&6
1773   SET_MAKE="MAKE=${MAKE-make}"
1774 fi
1775
1776 rm -rf .tst 2>/dev/null
1777 mkdir .tst 2>/dev/null
1778 if test -d .tst; then
1779   am__leading_dot=.
1780 else
1781   am__leading_dot=_
1782 fi
1783 rmdir .tst 2>/dev/null
1784
1785 # test to see if srcdir already configured
1786 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1787    test -f $srcdir/config.status; then
1788   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1789 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1790    { (exit 1); exit 1; }; }
1791 fi
1792
1793 # test whether we have cygpath
1794 if test -z "$CYGPATH_W"; then
1795   if (cygpath --version) >/dev/null 2>/dev/null; then
1796     CYGPATH_W='cygpath -w'
1797   else
1798     CYGPATH_W=echo
1799   fi
1800 fi
1801
1802
1803 # Define the identity of the package.
1804  PACKAGE='libgomp'
1805  VERSION='1.0'
1806
1807
1808 cat >>confdefs.h <<_ACEOF
1809 #define PACKAGE "$PACKAGE"
1810 _ACEOF
1811
1812
1813 cat >>confdefs.h <<_ACEOF
1814 #define VERSION "$VERSION"
1815 _ACEOF
1816
1817 # Some tools Automake needs.
1818
1819 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1820
1821
1822 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1823
1824
1825 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1826
1827
1828 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1829
1830
1831 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1832
1833 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1834
1835 # Installed binaries are usually stripped using `strip' when the user
1836 # run `make install-strip'.  However `strip' might not be the right
1837 # tool to use in cross-compilation environments, therefore Automake
1838 # will honor the `STRIP' environment variable to overrule this program.
1839 if test "$cross_compiling" != no; then
1840   if test -n "$ac_tool_prefix"; then
1841   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1842 set dummy ${ac_tool_prefix}strip; ac_word=$2
1843 echo "$as_me:$LINENO: checking for $ac_word" >&5
1844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1845 if test "${ac_cv_prog_STRIP+set}" = set; then
1846   echo $ECHO_N "(cached) $ECHO_C" >&6
1847 else
1848   if test -n "$STRIP"; then
1849   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1850 else
1851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1852 for as_dir in $PATH
1853 do
1854   IFS=$as_save_IFS
1855   test -z "$as_dir" && as_dir=.
1856   for ac_exec_ext in '' $ac_executable_extensions; do
1857   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1858     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1859     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1860     break 2
1861   fi
1862 done
1863 done
1864
1865 fi
1866 fi
1867 STRIP=$ac_cv_prog_STRIP
1868 if test -n "$STRIP"; then
1869   echo "$as_me:$LINENO: result: $STRIP" >&5
1870 echo "${ECHO_T}$STRIP" >&6
1871 else
1872   echo "$as_me:$LINENO: result: no" >&5
1873 echo "${ECHO_T}no" >&6
1874 fi
1875
1876 fi
1877 if test -z "$ac_cv_prog_STRIP"; then
1878   ac_ct_STRIP=$STRIP
1879   # Extract the first word of "strip", so it can be a program name with args.
1880 set dummy strip; ac_word=$2
1881 echo "$as_me:$LINENO: checking for $ac_word" >&5
1882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1883 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1884   echo $ECHO_N "(cached) $ECHO_C" >&6
1885 else
1886   if test -n "$ac_ct_STRIP"; then
1887   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1888 else
1889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1890 for as_dir in $PATH
1891 do
1892   IFS=$as_save_IFS
1893   test -z "$as_dir" && as_dir=.
1894   for ac_exec_ext in '' $ac_executable_extensions; do
1895   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1896     ac_cv_prog_ac_ct_STRIP="strip"
1897     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1898     break 2
1899   fi
1900 done
1901 done
1902
1903   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1904 fi
1905 fi
1906 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1907 if test -n "$ac_ct_STRIP"; then
1908   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1909 echo "${ECHO_T}$ac_ct_STRIP" >&6
1910 else
1911   echo "$as_me:$LINENO: result: no" >&5
1912 echo "${ECHO_T}no" >&6
1913 fi
1914
1915   STRIP=$ac_ct_STRIP
1916 else
1917   STRIP="$ac_cv_prog_STRIP"
1918 fi
1919
1920 fi
1921 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1922
1923 # We need awk for the "check" target.  The system "awk" is bad on
1924 # some platforms.
1925 # Always define AMTAR for backward compatibility.
1926
1927 AMTAR=${AMTAR-"${am_missing_run}tar"}
1928
1929 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1930
1931
1932
1933
1934
1935 # Default to --enable-multilib
1936 # Check whether --enable-multilib or --disable-multilib was given.
1937 if test "${enable_multilib+set}" = set; then
1938   enableval="$enable_multilib"
1939   case "$enableval" in
1940   yes) multilib=yes ;;
1941   no)  multilib=no ;;
1942   *)   { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1943 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1944    { (exit 1); exit 1; }; } ;;
1945  esac
1946 else
1947   multilib=yes
1948 fi;
1949
1950 # We may get other options which we leave undocumented:
1951 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1952 # See config-ml.in if you want the gory details.
1953
1954 if test "$srcdir" = "."; then
1955   if test "$with_target_subdir" != "."; then
1956     multi_basedir="$srcdir/$with_multisrctop../.."
1957   else
1958     multi_basedir="$srcdir/$with_multisrctop.."
1959   fi
1960 else
1961   multi_basedir="$srcdir/.."
1962 fi
1963
1964
1965           ac_config_commands="$ac_config_commands default-1"
1966
1967
1968 # Calculate toolexeclibdir
1969 # Also toolexecdir, though it's only used in toolexeclibdir
1970 case ${enable_version_specific_runtime_libs} in
1971   yes)
1972     # Need the gcc compiler version to know where to install libraries
1973     # and header files if --enable-version-specific-runtime-libs option
1974     # is selected.
1975     toolexecdir='$(libdir)/gcc/$(target_alias)'
1976     toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
1977     ;;
1978   no)
1979     if test -n "$with_cross_host" &&
1980        test x"$with_cross_host" != x"no"; then
1981       # Install a library built with a cross compiler in tooldir, not libdir.
1982       toolexecdir='$(exec_prefix)/$(target_alias)'
1983       toolexeclibdir='$(toolexecdir)/lib'
1984     else
1985       toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
1986       toolexeclibdir='$(libdir)'
1987     fi
1988     multi_os_directory=`$CC -print-multi-os-directory`
1989     case $multi_os_directory in
1990       .) ;; # Avoid trailing /.
1991       *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
1992     esac
1993     ;;
1994 esac
1995
1996
1997
1998 # Check the compiler.
1999 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
2000 # We must force CC to /not/ be precious variables; otherwise
2001 # the wrong, non-multilib-adjusted value will be used in multilibs.
2002 # As a side effect, we have to subst CFLAGS ourselves.
2003
2004
2005
2006 ac_ext=c
2007 ac_cpp='$CPP $CPPFLAGS'
2008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2011 if test -n "$ac_tool_prefix"; then
2012   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2013 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2014 echo "$as_me:$LINENO: checking for $ac_word" >&5
2015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2016 if test "${ac_cv_prog_CC+set}" = set; then
2017   echo $ECHO_N "(cached) $ECHO_C" >&6
2018 else
2019   if test -n "$CC"; then
2020   ac_cv_prog_CC="$CC" # Let the user override the test.
2021 else
2022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2023 for as_dir in $PATH
2024 do
2025   IFS=$as_save_IFS
2026   test -z "$as_dir" && as_dir=.
2027   for ac_exec_ext in '' $ac_executable_extensions; do
2028   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2029     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2030     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2031     break 2
2032   fi
2033 done
2034 done
2035
2036 fi
2037 fi
2038 CC=$ac_cv_prog_CC
2039 if test -n "$CC"; then
2040   echo "$as_me:$LINENO: result: $CC" >&5
2041 echo "${ECHO_T}$CC" >&6
2042 else
2043   echo "$as_me:$LINENO: result: no" >&5
2044 echo "${ECHO_T}no" >&6
2045 fi
2046
2047 fi
2048 if test -z "$ac_cv_prog_CC"; then
2049   ac_ct_CC=$CC
2050   # Extract the first word of "gcc", so it can be a program name with args.
2051 set dummy gcc; ac_word=$2
2052 echo "$as_me:$LINENO: checking for $ac_word" >&5
2053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2054 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2055   echo $ECHO_N "(cached) $ECHO_C" >&6
2056 else
2057   if test -n "$ac_ct_CC"; then
2058   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2059 else
2060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2061 for as_dir in $PATH
2062 do
2063   IFS=$as_save_IFS
2064   test -z "$as_dir" && as_dir=.
2065   for ac_exec_ext in '' $ac_executable_extensions; do
2066   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2067     ac_cv_prog_ac_ct_CC="gcc"
2068     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2069     break 2
2070   fi
2071 done
2072 done
2073
2074 fi
2075 fi
2076 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2077 if test -n "$ac_ct_CC"; then
2078   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2079 echo "${ECHO_T}$ac_ct_CC" >&6
2080 else
2081   echo "$as_me:$LINENO: result: no" >&5
2082 echo "${ECHO_T}no" >&6
2083 fi
2084
2085   CC=$ac_ct_CC
2086 else
2087   CC="$ac_cv_prog_CC"
2088 fi
2089
2090 if test -z "$CC"; then
2091   if test -n "$ac_tool_prefix"; then
2092   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2093 set dummy ${ac_tool_prefix}cc; ac_word=$2
2094 echo "$as_me:$LINENO: checking for $ac_word" >&5
2095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2096 if test "${ac_cv_prog_CC+set}" = set; then
2097   echo $ECHO_N "(cached) $ECHO_C" >&6
2098 else
2099   if test -n "$CC"; then
2100   ac_cv_prog_CC="$CC" # Let the user override the test.
2101 else
2102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2103 for as_dir in $PATH
2104 do
2105   IFS=$as_save_IFS
2106   test -z "$as_dir" && as_dir=.
2107   for ac_exec_ext in '' $ac_executable_extensions; do
2108   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2109     ac_cv_prog_CC="${ac_tool_prefix}cc"
2110     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2111     break 2
2112   fi
2113 done
2114 done
2115
2116 fi
2117 fi
2118 CC=$ac_cv_prog_CC
2119 if test -n "$CC"; then
2120   echo "$as_me:$LINENO: result: $CC" >&5
2121 echo "${ECHO_T}$CC" >&6
2122 else
2123   echo "$as_me:$LINENO: result: no" >&5
2124 echo "${ECHO_T}no" >&6
2125 fi
2126
2127 fi
2128 if test -z "$ac_cv_prog_CC"; then
2129   ac_ct_CC=$CC
2130   # Extract the first word of "cc", so it can be a program name with args.
2131 set dummy cc; ac_word=$2
2132 echo "$as_me:$LINENO: checking for $ac_word" >&5
2133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2134 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2135   echo $ECHO_N "(cached) $ECHO_C" >&6
2136 else
2137   if test -n "$ac_ct_CC"; then
2138   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2139 else
2140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2141 for as_dir in $PATH
2142 do
2143   IFS=$as_save_IFS
2144   test -z "$as_dir" && as_dir=.
2145   for ac_exec_ext in '' $ac_executable_extensions; do
2146   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2147     ac_cv_prog_ac_ct_CC="cc"
2148     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2149     break 2
2150   fi
2151 done
2152 done
2153
2154 fi
2155 fi
2156 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2157 if test -n "$ac_ct_CC"; then
2158   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2159 echo "${ECHO_T}$ac_ct_CC" >&6
2160 else
2161   echo "$as_me:$LINENO: result: no" >&5
2162 echo "${ECHO_T}no" >&6
2163 fi
2164
2165   CC=$ac_ct_CC
2166 else
2167   CC="$ac_cv_prog_CC"
2168 fi
2169
2170 fi
2171 if test -z "$CC"; then
2172   # Extract the first word of "cc", so it can be a program name with args.
2173 set dummy cc; ac_word=$2
2174 echo "$as_me:$LINENO: checking for $ac_word" >&5
2175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2176 if test "${ac_cv_prog_CC+set}" = set; then
2177   echo $ECHO_N "(cached) $ECHO_C" >&6
2178 else
2179   if test -n "$CC"; then
2180   ac_cv_prog_CC="$CC" # Let the user override the test.
2181 else
2182   ac_prog_rejected=no
2183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2184 for as_dir in $PATH
2185 do
2186   IFS=$as_save_IFS
2187   test -z "$as_dir" && as_dir=.
2188   for ac_exec_ext in '' $ac_executable_extensions; do
2189   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2190     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2191        ac_prog_rejected=yes
2192        continue
2193      fi
2194     ac_cv_prog_CC="cc"
2195     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2196     break 2
2197   fi
2198 done
2199 done
2200
2201 if test $ac_prog_rejected = yes; then
2202   # We found a bogon in the path, so make sure we never use it.
2203   set dummy $ac_cv_prog_CC
2204   shift
2205   if test $# != 0; then
2206     # We chose a different compiler from the bogus one.
2207     # However, it has the same basename, so the bogon will be chosen
2208     # first if we set CC to just the basename; use the full file name.
2209     shift
2210     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2211   fi
2212 fi
2213 fi
2214 fi
2215 CC=$ac_cv_prog_CC
2216 if test -n "$CC"; then
2217   echo "$as_me:$LINENO: result: $CC" >&5
2218 echo "${ECHO_T}$CC" >&6
2219 else
2220   echo "$as_me:$LINENO: result: no" >&5
2221 echo "${ECHO_T}no" >&6
2222 fi
2223
2224 fi
2225 if test -z "$CC"; then
2226   if test -n "$ac_tool_prefix"; then
2227   for ac_prog in cl
2228   do
2229     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2230 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2231 echo "$as_me:$LINENO: checking for $ac_word" >&5
2232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2233 if test "${ac_cv_prog_CC+set}" = set; then
2234   echo $ECHO_N "(cached) $ECHO_C" >&6
2235 else
2236   if test -n "$CC"; then
2237   ac_cv_prog_CC="$CC" # Let the user override the test.
2238 else
2239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2240 for as_dir in $PATH
2241 do
2242   IFS=$as_save_IFS
2243   test -z "$as_dir" && as_dir=.
2244   for ac_exec_ext in '' $ac_executable_extensions; do
2245   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2246     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2247     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2248     break 2
2249   fi
2250 done
2251 done
2252
2253 fi
2254 fi
2255 CC=$ac_cv_prog_CC
2256 if test -n "$CC"; then
2257   echo "$as_me:$LINENO: result: $CC" >&5
2258 echo "${ECHO_T}$CC" >&6
2259 else
2260   echo "$as_me:$LINENO: result: no" >&5
2261 echo "${ECHO_T}no" >&6
2262 fi
2263
2264     test -n "$CC" && break
2265   done
2266 fi
2267 if test -z "$CC"; then
2268   ac_ct_CC=$CC
2269   for ac_prog in cl
2270 do
2271   # Extract the first word of "$ac_prog", so it can be a program name with args.
2272 set dummy $ac_prog; ac_word=$2
2273 echo "$as_me:$LINENO: checking for $ac_word" >&5
2274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2275 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2276   echo $ECHO_N "(cached) $ECHO_C" >&6
2277 else
2278   if test -n "$ac_ct_CC"; then
2279   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2280 else
2281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2282 for as_dir in $PATH
2283 do
2284   IFS=$as_save_IFS
2285   test -z "$as_dir" && as_dir=.
2286   for ac_exec_ext in '' $ac_executable_extensions; do
2287   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2288     ac_cv_prog_ac_ct_CC="$ac_prog"
2289     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2290     break 2
2291   fi
2292 done
2293 done
2294
2295 fi
2296 fi
2297 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2298 if test -n "$ac_ct_CC"; then
2299   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2300 echo "${ECHO_T}$ac_ct_CC" >&6
2301 else
2302   echo "$as_me:$LINENO: result: no" >&5
2303 echo "${ECHO_T}no" >&6
2304 fi
2305
2306   test -n "$ac_ct_CC" && break
2307 done
2308
2309   CC=$ac_ct_CC
2310 fi
2311
2312 fi
2313
2314
2315 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2316 See \`config.log' for more details." >&5
2317 echo "$as_me: error: no acceptable C compiler found in \$PATH
2318 See \`config.log' for more details." >&2;}
2319    { (exit 1); exit 1; }; }
2320
2321 # Provide some information about the compiler.
2322 echo "$as_me:$LINENO:" \
2323      "checking for C compiler version" >&5
2324 ac_compiler=`set X $ac_compile; echo $2`
2325 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2326   (eval $ac_compiler --version </dev/null >&5) 2>&5
2327   ac_status=$?
2328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2329   (exit $ac_status); }
2330 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2331   (eval $ac_compiler -v </dev/null >&5) 2>&5
2332   ac_status=$?
2333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2334   (exit $ac_status); }
2335 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2336   (eval $ac_compiler -V </dev/null >&5) 2>&5
2337   ac_status=$?
2338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339   (exit $ac_status); }
2340
2341 cat >conftest.$ac_ext <<_ACEOF
2342 /* confdefs.h.  */
2343 _ACEOF
2344 cat confdefs.h >>conftest.$ac_ext
2345 cat >>conftest.$ac_ext <<_ACEOF
2346 /* end confdefs.h.  */
2347
2348 int
2349 main ()
2350 {
2351
2352   ;
2353   return 0;
2354 }
2355 _ACEOF
2356 ac_clean_files_save=$ac_clean_files
2357 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2358 # Try to create an executable without -o first, disregard a.out.
2359 # It will help us diagnose broken compilers, and finding out an intuition
2360 # of exeext.
2361 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2362 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2363 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2364 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2365   (eval $ac_link_default) 2>&5
2366   ac_status=$?
2367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368   (exit $ac_status); }; then
2369   # Find the output, starting from the most likely.  This scheme is
2370 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2371 # resort.
2372
2373 # Be careful to initialize this variable, since it used to be cached.
2374 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2375 ac_cv_exeext=
2376 # b.out is created by i960 compilers.
2377 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2378 do
2379   test -f "$ac_file" || continue
2380   case $ac_file in
2381     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2382         ;;
2383     conftest.$ac_ext )
2384         # This is the source file.
2385         ;;
2386     [ab].out )
2387         # We found the default executable, but exeext='' is most
2388         # certainly right.
2389         break;;
2390     *.* )
2391         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2392         # FIXME: I believe we export ac_cv_exeext for Libtool,
2393         # but it would be cool to find out if it's true.  Does anybody
2394         # maintain Libtool? --akim.
2395         export ac_cv_exeext
2396         break;;
2397     * )
2398         break;;
2399   esac
2400 done
2401 else
2402   echo "$as_me: failed program was:" >&5
2403 sed 's/^/| /' conftest.$ac_ext >&5
2404
2405 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2406 See \`config.log' for more details." >&5
2407 echo "$as_me: error: C compiler cannot create executables
2408 See \`config.log' for more details." >&2;}
2409    { (exit 77); exit 77; }; }
2410 fi
2411
2412 ac_exeext=$ac_cv_exeext
2413 echo "$as_me:$LINENO: result: $ac_file" >&5
2414 echo "${ECHO_T}$ac_file" >&6
2415
2416 # Check the compiler produces executables we can run.  If not, either
2417 # the compiler is broken, or we cross compile.
2418 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2419 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2420 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2421 # If not cross compiling, check that we can run a simple program.
2422 if test "$cross_compiling" != yes; then
2423   if { ac_try='./$ac_file'
2424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2425   (eval $ac_try) 2>&5
2426   ac_status=$?
2427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428   (exit $ac_status); }; }; then
2429     cross_compiling=no
2430   else
2431     if test "$cross_compiling" = maybe; then
2432         cross_compiling=yes
2433     else
2434         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2435 If you meant to cross compile, use \`--host'.
2436 See \`config.log' for more details." >&5
2437 echo "$as_me: error: cannot run C compiled programs.
2438 If you meant to cross compile, use \`--host'.
2439 See \`config.log' for more details." >&2;}
2440    { (exit 1); exit 1; }; }
2441     fi
2442   fi
2443 fi
2444 echo "$as_me:$LINENO: result: yes" >&5
2445 echo "${ECHO_T}yes" >&6
2446
2447 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2448 ac_clean_files=$ac_clean_files_save
2449 # Check the compiler produces executables we can run.  If not, either
2450 # the compiler is broken, or we cross compile.
2451 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2452 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2453 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2454 echo "${ECHO_T}$cross_compiling" >&6
2455
2456 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2457 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2459   (eval $ac_link) 2>&5
2460   ac_status=$?
2461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462   (exit $ac_status); }; then
2463   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2464 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2465 # work properly (i.e., refer to `conftest.exe'), while it won't with
2466 # `rm'.
2467 for ac_file in conftest.exe conftest conftest.*; do
2468   test -f "$ac_file" || continue
2469   case $ac_file in
2470     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2471     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2472           export ac_cv_exeext
2473           break;;
2474     * ) break;;
2475   esac
2476 done
2477 else
2478   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2479 See \`config.log' for more details." >&5
2480 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2481 See \`config.log' for more details." >&2;}
2482    { (exit 1); exit 1; }; }
2483 fi
2484
2485 rm -f conftest$ac_cv_exeext
2486 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2487 echo "${ECHO_T}$ac_cv_exeext" >&6
2488
2489 rm -f conftest.$ac_ext
2490 EXEEXT=$ac_cv_exeext
2491 ac_exeext=$EXEEXT
2492 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2493 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2494 if test "${ac_cv_objext+set}" = set; then
2495   echo $ECHO_N "(cached) $ECHO_C" >&6
2496 else
2497   cat >conftest.$ac_ext <<_ACEOF
2498 /* confdefs.h.  */
2499 _ACEOF
2500 cat confdefs.h >>conftest.$ac_ext
2501 cat >>conftest.$ac_ext <<_ACEOF
2502 /* end confdefs.h.  */
2503
2504 int
2505 main ()
2506 {
2507
2508   ;
2509   return 0;
2510 }
2511 _ACEOF
2512 rm -f conftest.o conftest.obj
2513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2514   (eval $ac_compile) 2>&5
2515   ac_status=$?
2516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2517   (exit $ac_status); }; then
2518   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2519   case $ac_file in
2520     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2521     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2522        break;;
2523   esac
2524 done
2525 else
2526   echo "$as_me: failed program was:" >&5
2527 sed 's/^/| /' conftest.$ac_ext >&5
2528
2529 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2530 See \`config.log' for more details." >&5
2531 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2532 See \`config.log' for more details." >&2;}
2533    { (exit 1); exit 1; }; }
2534 fi
2535
2536 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2537 fi
2538 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2539 echo "${ECHO_T}$ac_cv_objext" >&6
2540 OBJEXT=$ac_cv_objext
2541 ac_objext=$OBJEXT
2542 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2543 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2544 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2545   echo $ECHO_N "(cached) $ECHO_C" >&6
2546 else
2547   cat >conftest.$ac_ext <<_ACEOF
2548 /* confdefs.h.  */
2549 _ACEOF
2550 cat confdefs.h >>conftest.$ac_ext
2551 cat >>conftest.$ac_ext <<_ACEOF
2552 /* end confdefs.h.  */
2553
2554 int
2555 main ()
2556 {
2557 #ifndef __GNUC__
2558        choke me
2559 #endif
2560
2561   ;
2562   return 0;
2563 }
2564 _ACEOF
2565 rm -f conftest.$ac_objext
2566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2567   (eval $ac_compile) 2>conftest.er1
2568   ac_status=$?
2569   grep -v '^ *+' conftest.er1 >conftest.err
2570   rm -f conftest.er1
2571   cat conftest.err >&5
2572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573   (exit $ac_status); } &&
2574          { ac_try='test -z "$ac_c_werror_flag"
2575                          || test ! -s conftest.err'
2576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2577   (eval $ac_try) 2>&5
2578   ac_status=$?
2579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580   (exit $ac_status); }; } &&
2581          { ac_try='test -s conftest.$ac_objext'
2582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2583   (eval $ac_try) 2>&5
2584   ac_status=$?
2585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586   (exit $ac_status); }; }; then
2587   ac_compiler_gnu=yes
2588 else
2589   echo "$as_me: failed program was:" >&5
2590 sed 's/^/| /' conftest.$ac_ext >&5
2591
2592 ac_compiler_gnu=no
2593 fi
2594 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2595 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2596
2597 fi
2598 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2599 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2600 GCC=`test $ac_compiler_gnu = yes && echo yes`
2601 ac_test_CFLAGS=${CFLAGS+set}
2602 ac_save_CFLAGS=$CFLAGS
2603 CFLAGS="-g"
2604 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2605 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2606 if test "${ac_cv_prog_cc_g+set}" = set; then
2607   echo $ECHO_N "(cached) $ECHO_C" >&6
2608 else
2609   cat >conftest.$ac_ext <<_ACEOF
2610 /* confdefs.h.  */
2611 _ACEOF
2612 cat confdefs.h >>conftest.$ac_ext
2613 cat >>conftest.$ac_ext <<_ACEOF
2614 /* end confdefs.h.  */
2615
2616 int
2617 main ()
2618 {
2619
2620   ;
2621   return 0;
2622 }
2623 _ACEOF
2624 rm -f conftest.$ac_objext
2625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2626   (eval $ac_compile) 2>conftest.er1
2627   ac_status=$?
2628   grep -v '^ *+' conftest.er1 >conftest.err
2629   rm -f conftest.er1
2630   cat conftest.err >&5
2631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632   (exit $ac_status); } &&
2633          { ac_try='test -z "$ac_c_werror_flag"
2634                          || test ! -s conftest.err'
2635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2636   (eval $ac_try) 2>&5
2637   ac_status=$?
2638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2639   (exit $ac_status); }; } &&
2640          { ac_try='test -s conftest.$ac_objext'
2641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2642   (eval $ac_try) 2>&5
2643   ac_status=$?
2644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2645   (exit $ac_status); }; }; then
2646   ac_cv_prog_cc_g=yes
2647 else
2648   echo "$as_me: failed program was:" >&5
2649 sed 's/^/| /' conftest.$ac_ext >&5
2650
2651 ac_cv_prog_cc_g=no
2652 fi
2653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2654 fi
2655 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2656 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2657 if test "$ac_test_CFLAGS" = set; then
2658   CFLAGS=$ac_save_CFLAGS
2659 elif test $ac_cv_prog_cc_g = yes; then
2660   if test "$GCC" = yes; then
2661     CFLAGS="-g -O2"
2662   else
2663     CFLAGS="-g"
2664   fi
2665 else
2666   if test "$GCC" = yes; then
2667     CFLAGS="-O2"
2668   else
2669     CFLAGS=
2670   fi
2671 fi
2672 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2673 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2674 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2675   echo $ECHO_N "(cached) $ECHO_C" >&6
2676 else
2677   ac_cv_prog_cc_stdc=no
2678 ac_save_CC=$CC
2679 cat >conftest.$ac_ext <<_ACEOF
2680 /* confdefs.h.  */
2681 _ACEOF
2682 cat confdefs.h >>conftest.$ac_ext
2683 cat >>conftest.$ac_ext <<_ACEOF
2684 /* end confdefs.h.  */
2685 #include <stdarg.h>
2686 #include <stdio.h>
2687 #include <sys/types.h>
2688 #include <sys/stat.h>
2689 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2690 struct buf { int x; };
2691 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2692 static char *e (p, i)
2693      char **p;
2694      int i;
2695 {
2696   return p[i];
2697 }
2698 static char *f (char * (*g) (char **, int), char **p, ...)
2699 {
2700   char *s;
2701   va_list v;
2702   va_start (v,p);
2703   s = g (p, va_arg (v,int));
2704   va_end (v);
2705   return s;
2706 }
2707
2708 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2709    function prototypes and stuff, but not '\xHH' hex character constants.
2710    These don't provoke an error unfortunately, instead are silently treated
2711    as 'x'.  The following induces an error, until -std1 is added to get
2712    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2713    array size at least.  It's necessary to write '\x00'==0 to get something
2714    that's true only with -std1.  */
2715 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2716
2717 int test (int i, double x);
2718 struct s1 {int (*f) (int a);};
2719 struct s2 {int (*f) (double a);};
2720 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2721 int argc;
2722 char **argv;
2723 int
2724 main ()
2725 {
2726 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2727   ;
2728   return 0;
2729 }
2730 _ACEOF
2731 # Don't try gcc -ansi; that turns off useful extensions and
2732 # breaks some systems' header files.
2733 # AIX                   -qlanglvl=ansi
2734 # Ultrix and OSF/1      -std1
2735 # HP-UX 10.20 and later -Ae
2736 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2737 # SVR4                  -Xc -D__EXTENSIONS__
2738 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2739 do
2740   CC="$ac_save_CC $ac_arg"
2741   rm -f conftest.$ac_objext
2742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2743   (eval $ac_compile) 2>conftest.er1
2744   ac_status=$?
2745   grep -v '^ *+' conftest.er1 >conftest.err
2746   rm -f conftest.er1
2747   cat conftest.err >&5
2748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749   (exit $ac_status); } &&
2750          { ac_try='test -z "$ac_c_werror_flag"
2751                          || test ! -s conftest.err'
2752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2753   (eval $ac_try) 2>&5
2754   ac_status=$?
2755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2756   (exit $ac_status); }; } &&
2757          { ac_try='test -s conftest.$ac_objext'
2758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2759   (eval $ac_try) 2>&5
2760   ac_status=$?
2761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762   (exit $ac_status); }; }; then
2763   ac_cv_prog_cc_stdc=$ac_arg
2764 break
2765 else
2766   echo "$as_me: failed program was:" >&5
2767 sed 's/^/| /' conftest.$ac_ext >&5
2768
2769 fi
2770 rm -f conftest.err conftest.$ac_objext
2771 done
2772 rm -f conftest.$ac_ext conftest.$ac_objext
2773 CC=$ac_save_CC
2774
2775 fi
2776
2777 case "x$ac_cv_prog_cc_stdc" in
2778   x|xno)
2779     echo "$as_me:$LINENO: result: none needed" >&5
2780 echo "${ECHO_T}none needed" >&6 ;;
2781   *)
2782     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2783 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2784     CC="$CC $ac_cv_prog_cc_stdc" ;;
2785 esac
2786
2787 # Some people use a C++ compiler to compile C.  Since we use `exit',
2788 # in C++ we need to declare it.  In case someone uses the same compiler
2789 # for both compiling C and C++ we need to have the C++ compiler decide
2790 # the declaration of exit, since it's the most demanding environment.
2791 cat >conftest.$ac_ext <<_ACEOF
2792 #ifndef __cplusplus
2793   choke me
2794 #endif
2795 _ACEOF
2796 rm -f conftest.$ac_objext
2797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2798   (eval $ac_compile) 2>conftest.er1
2799   ac_status=$?
2800   grep -v '^ *+' conftest.er1 >conftest.err
2801   rm -f conftest.er1
2802   cat conftest.err >&5
2803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804   (exit $ac_status); } &&
2805          { ac_try='test -z "$ac_c_werror_flag"
2806                          || test ! -s conftest.err'
2807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2808   (eval $ac_try) 2>&5
2809   ac_status=$?
2810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811   (exit $ac_status); }; } &&
2812          { ac_try='test -s conftest.$ac_objext'
2813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2814   (eval $ac_try) 2>&5
2815   ac_status=$?
2816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2817   (exit $ac_status); }; }; then
2818   for ac_declaration in \
2819    '' \
2820    'extern "C" void std::exit (int) throw (); using std::exit;' \
2821    'extern "C" void std::exit (int); using std::exit;' \
2822    'extern "C" void exit (int) throw ();' \
2823    'extern "C" void exit (int);' \
2824    'void exit (int);'
2825 do
2826   cat >conftest.$ac_ext <<_ACEOF
2827 /* confdefs.h.  */
2828 _ACEOF
2829 cat confdefs.h >>conftest.$ac_ext
2830 cat >>conftest.$ac_ext <<_ACEOF
2831 /* end confdefs.h.  */
2832 $ac_declaration
2833 #include <stdlib.h>
2834 int
2835 main ()
2836 {
2837 exit (42);
2838   ;
2839   return 0;
2840 }
2841 _ACEOF
2842 rm -f conftest.$ac_objext
2843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2844   (eval $ac_compile) 2>conftest.er1
2845   ac_status=$?
2846   grep -v '^ *+' conftest.er1 >conftest.err
2847   rm -f conftest.er1
2848   cat conftest.err >&5
2849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850   (exit $ac_status); } &&
2851          { ac_try='test -z "$ac_c_werror_flag"
2852                          || test ! -s conftest.err'
2853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2854   (eval $ac_try) 2>&5
2855   ac_status=$?
2856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857   (exit $ac_status); }; } &&
2858          { ac_try='test -s conftest.$ac_objext'
2859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2860   (eval $ac_try) 2>&5
2861   ac_status=$?
2862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2863   (exit $ac_status); }; }; then
2864   :
2865 else
2866   echo "$as_me: failed program was:" >&5
2867 sed 's/^/| /' conftest.$ac_ext >&5
2868
2869 continue
2870 fi
2871 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2872   cat >conftest.$ac_ext <<_ACEOF
2873 /* confdefs.h.  */
2874 _ACEOF
2875 cat confdefs.h >>conftest.$ac_ext
2876 cat >>conftest.$ac_ext <<_ACEOF
2877 /* end confdefs.h.  */
2878 $ac_declaration
2879 int
2880 main ()
2881 {
2882 exit (42);
2883   ;
2884   return 0;
2885 }
2886 _ACEOF
2887 rm -f conftest.$ac_objext
2888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2889   (eval $ac_compile) 2>conftest.er1
2890   ac_status=$?
2891   grep -v '^ *+' conftest.er1 >conftest.err
2892   rm -f conftest.er1
2893   cat conftest.err >&5
2894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895   (exit $ac_status); } &&
2896          { ac_try='test -z "$ac_c_werror_flag"
2897                          || test ! -s conftest.err'
2898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2899   (eval $ac_try) 2>&5
2900   ac_status=$?
2901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902   (exit $ac_status); }; } &&
2903          { ac_try='test -s conftest.$ac_objext'
2904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2905   (eval $ac_try) 2>&5
2906   ac_status=$?
2907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908   (exit $ac_status); }; }; then
2909   break
2910 else
2911   echo "$as_me: failed program was:" >&5
2912 sed 's/^/| /' conftest.$ac_ext >&5
2913
2914 fi
2915 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2916 done
2917 rm -f conftest*
2918 if test -n "$ac_declaration"; then
2919   echo '#ifdef __cplusplus' >>confdefs.h
2920   echo $ac_declaration      >>confdefs.h
2921   echo '#endif'             >>confdefs.h
2922 fi
2923
2924 else
2925   echo "$as_me: failed program was:" >&5
2926 sed 's/^/| /' conftest.$ac_ext >&5
2927
2928 fi
2929 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2930 ac_ext=c
2931 ac_cpp='$CPP $CPPFLAGS'
2932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2935 DEPDIR="${am__leading_dot}deps"
2936
2937           ac_config_commands="$ac_config_commands depfiles"
2938
2939
2940 am_make=${MAKE-make}
2941 cat > confinc << 'END'
2942 am__doit:
2943         @echo done
2944 .PHONY: am__doit
2945 END
2946 # If we don't find an include directive, just comment out the code.
2947 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2948 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2949 am__include="#"
2950 am__quote=
2951 _am_result=none
2952 # First try GNU make style include.
2953 echo "include confinc" > confmf
2954 # We grep out `Entering directory' and `Leaving directory'
2955 # messages which can occur if `w' ends up in MAKEFLAGS.
2956 # In particular we don't look at `^make:' because GNU make might
2957 # be invoked under some other name (usually "gmake"), in which
2958 # case it prints its new name instead of `make'.
2959 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2960    am__include=include
2961    am__quote=
2962    _am_result=GNU
2963 fi
2964 # Now try BSD make style include.
2965 if test "$am__include" = "#"; then
2966    echo '.include "confinc"' > confmf
2967    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2968       am__include=.include
2969       am__quote="\""
2970       _am_result=BSD
2971    fi
2972 fi
2973
2974
2975 echo "$as_me:$LINENO: result: $_am_result" >&5
2976 echo "${ECHO_T}$_am_result" >&6
2977 rm -f confinc confmf
2978
2979 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2980 if test "${enable_dependency_tracking+set}" = set; then
2981   enableval="$enable_dependency_tracking"
2982
2983 fi;
2984 if test "x$enable_dependency_tracking" != xno; then
2985   am_depcomp="$ac_aux_dir/depcomp"
2986   AMDEPBACKSLASH='\'
2987 fi
2988
2989
2990 if test "x$enable_dependency_tracking" != xno; then
2991   AMDEP_TRUE=
2992   AMDEP_FALSE='#'
2993 else
2994   AMDEP_TRUE='#'
2995   AMDEP_FALSE=
2996 fi
2997
2998
2999
3000
3001 depcc="$CC"   am_compiler_list=
3002
3003 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3004 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3005 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3006   echo $ECHO_N "(cached) $ECHO_C" >&6
3007 else
3008   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3009   # We make a subdir and do the tests there.  Otherwise we can end up
3010   # making bogus files that we don't know about and never remove.  For
3011   # instance it was reported that on HP-UX the gcc test will end up
3012   # making a dummy file named `D' -- because `-MD' means `put the output
3013   # in D'.
3014   mkdir conftest.dir
3015   # Copy depcomp to subdir because otherwise we won't find it if we're
3016   # using a relative directory.
3017   cp "$am_depcomp" conftest.dir
3018   cd conftest.dir
3019   # We will build objects and dependencies in a subdirectory because
3020   # it helps to detect inapplicable dependency modes.  For instance
3021   # both Tru64's cc and ICC support -MD to output dependencies as a
3022   # side effect of compilation, but ICC will put the dependencies in
3023   # the current directory while Tru64 will put them in the object
3024   # directory.
3025   mkdir sub
3026
3027   am_cv_CC_dependencies_compiler_type=none
3028   if test "$am_compiler_list" = ""; then
3029      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3030   fi
3031   for depmode in $am_compiler_list; do
3032     # Setup a source with many dependencies, because some compilers
3033     # like to wrap large dependency lists on column 80 (with \), and
3034     # we should not choose a depcomp mode which is confused by this.
3035     #
3036     # We need to recreate these files for each test, as the compiler may
3037     # overwrite some of them when testing with obscure command lines.
3038     # This happens at least with the AIX C compiler.
3039     : > sub/conftest.c
3040     for i in 1 2 3 4 5 6; do
3041       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3042       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3043       # Solaris 8's {/usr,}/bin/sh.
3044       touch sub/conftst$i.h
3045     done
3046     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3047
3048     case $depmode in
3049     nosideeffect)
3050       # after this tag, mechanisms are not by side-effect, so they'll
3051       # only be used when explicitly requested
3052       if test "x$enable_dependency_tracking" = xyes; then
3053         continue
3054       else
3055         break
3056       fi
3057       ;;
3058     none) break ;;
3059     esac
3060     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3061     # mode.  It turns out that the SunPro C++ compiler does not properly
3062     # handle `-M -o', and we need to detect this.
3063     if depmode=$depmode \
3064        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3065        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3066        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3067          >/dev/null 2>conftest.err &&
3068        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3069        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3070        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3071       # icc doesn't choke on unknown options, it will just issue warnings
3072       # or remarks (even with -Werror).  So we grep stderr for any message
3073       # that says an option was ignored or not supported.
3074       # When given -MP, icc 7.0 and 7.1 complain thusly:
3075       #   icc: Command line warning: ignoring option '-M'; no argument required
3076       # The diagnosis changed in icc 8.0:
3077       #   icc: Command line remark: option '-MP' not supported
3078       if (grep 'ignoring option' conftest.err ||
3079           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3080         am_cv_CC_dependencies_compiler_type=$depmode
3081         break
3082       fi
3083     fi
3084   done
3085
3086   cd ..
3087   rm -rf conftest.dir
3088 else
3089   am_cv_CC_dependencies_compiler_type=none
3090 fi
3091
3092 fi
3093 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3094 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3095 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3096
3097
3098
3099 if
3100   test "x$enable_dependency_tracking" != xno \
3101   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3102   am__fastdepCC_TRUE=
3103   am__fastdepCC_FALSE='#'
3104 else
3105   am__fastdepCC_TRUE='#'
3106   am__fastdepCC_FALSE=
3107 fi
3108
3109
3110
3111
3112
3113
3114 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
3115 # in XCFLAGS.  But we need them in CFLAGS during configury.  So put them
3116 # in both places for now and restore CFLAGS at the end of config.
3117 save_CFLAGS="$CFLAGS"
3118
3119 # Add -Wall -Werror if we are using GCC.
3120 if test "x$GCC" = "xyes"; then
3121   XCFLAGS="$XCFLAGS -Wall -Werror"
3122 fi
3123
3124 # Find other programs we need.
3125 if test -n "$ac_tool_prefix"; then
3126   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3127 set dummy ${ac_tool_prefix}ar; ac_word=$2
3128 echo "$as_me:$LINENO: checking for $ac_word" >&5
3129 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3130 if test "${ac_cv_prog_AR+set}" = set; then
3131   echo $ECHO_N "(cached) $ECHO_C" >&6
3132 else
3133   if test -n "$AR"; then
3134   ac_cv_prog_AR="$AR" # Let the user override the test.
3135 else
3136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3137 for as_dir in $PATH
3138 do
3139   IFS=$as_save_IFS
3140   test -z "$as_dir" && as_dir=.
3141   for ac_exec_ext in '' $ac_executable_extensions; do
3142   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3143     ac_cv_prog_AR="${ac_tool_prefix}ar"
3144     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3145     break 2
3146   fi
3147 done
3148 done
3149
3150 fi
3151 fi
3152 AR=$ac_cv_prog_AR
3153 if test -n "$AR"; then
3154   echo "$as_me:$LINENO: result: $AR" >&5
3155 echo "${ECHO_T}$AR" >&6
3156 else
3157   echo "$as_me:$LINENO: result: no" >&5
3158 echo "${ECHO_T}no" >&6
3159 fi
3160
3161 fi
3162 if test -z "$ac_cv_prog_AR"; then
3163   ac_ct_AR=$AR
3164   # Extract the first word of "ar", so it can be a program name with args.
3165 set dummy ar; ac_word=$2
3166 echo "$as_me:$LINENO: checking for $ac_word" >&5
3167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3168 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3169   echo $ECHO_N "(cached) $ECHO_C" >&6
3170 else
3171   if test -n "$ac_ct_AR"; then
3172   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3173 else
3174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3175 for as_dir in $PATH
3176 do
3177   IFS=$as_save_IFS
3178   test -z "$as_dir" && as_dir=.
3179   for ac_exec_ext in '' $ac_executable_extensions; do
3180   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3181     ac_cv_prog_ac_ct_AR="ar"
3182     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3183     break 2
3184   fi
3185 done
3186 done
3187
3188 fi
3189 fi
3190 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3191 if test -n "$ac_ct_AR"; then
3192   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3193 echo "${ECHO_T}$ac_ct_AR" >&6
3194 else
3195   echo "$as_me:$LINENO: result: no" >&5
3196 echo "${ECHO_T}no" >&6
3197 fi
3198
3199   AR=$ac_ct_AR
3200 else
3201   AR="$ac_cv_prog_AR"
3202 fi
3203
3204 if test -n "$ac_tool_prefix"; then
3205   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3206 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3207 echo "$as_me:$LINENO: checking for $ac_word" >&5
3208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3209 if test "${ac_cv_prog_RANLIB+set}" = set; then
3210   echo $ECHO_N "(cached) $ECHO_C" >&6
3211 else
3212   if test -n "$RANLIB"; then
3213   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3214 else
3215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3216 for as_dir in $PATH
3217 do
3218   IFS=$as_save_IFS
3219   test -z "$as_dir" && as_dir=.
3220   for ac_exec_ext in '' $ac_executable_extensions; do
3221   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3222     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3223     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3224     break 2
3225   fi
3226 done
3227 done
3228
3229 fi
3230 fi
3231 RANLIB=$ac_cv_prog_RANLIB
3232 if test -n "$RANLIB"; then
3233   echo "$as_me:$LINENO: result: $RANLIB" >&5
3234 echo "${ECHO_T}$RANLIB" >&6
3235 else
3236   echo "$as_me:$LINENO: result: no" >&5
3237 echo "${ECHO_T}no" >&6
3238 fi
3239
3240 fi
3241 if test -z "$ac_cv_prog_RANLIB"; then
3242   ac_ct_RANLIB=$RANLIB
3243   # Extract the first word of "ranlib", so it can be a program name with args.
3244 set dummy ranlib; ac_word=$2
3245 echo "$as_me:$LINENO: checking for $ac_word" >&5
3246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3247 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3248   echo $ECHO_N "(cached) $ECHO_C" >&6
3249 else
3250   if test -n "$ac_ct_RANLIB"; then
3251   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3252 else
3253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3254 for as_dir in $PATH
3255 do
3256   IFS=$as_save_IFS
3257   test -z "$as_dir" && as_dir=.
3258   for ac_exec_ext in '' $ac_executable_extensions; do
3259   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3260     ac_cv_prog_ac_ct_RANLIB="ranlib"
3261     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3262     break 2
3263   fi
3264 done
3265 done
3266
3267   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="ranlib-not-found-in-path-error"
3268 fi
3269 fi
3270 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3271 if test -n "$ac_ct_RANLIB"; then
3272   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3273 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3274 else
3275   echo "$as_me:$LINENO: result: no" >&5
3276 echo "${ECHO_T}no" >&6
3277 fi
3278
3279   RANLIB=$ac_ct_RANLIB
3280 else
3281   RANLIB="$ac_cv_prog_RANLIB"
3282 fi
3283
3284 # Extract the first word of "perl", so it can be a program name with args.
3285 set dummy perl; ac_word=$2
3286 echo "$as_me:$LINENO: checking for $ac_word" >&5
3287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3288 if test "${ac_cv_path_PERL+set}" = set; then
3289   echo $ECHO_N "(cached) $ECHO_C" >&6
3290 else
3291   case $PERL in
3292   [\\/]* | ?:[\\/]*)
3293   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3294   ;;
3295   *)
3296   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3297 for as_dir in $PATH
3298 do
3299   IFS=$as_save_IFS
3300   test -z "$as_dir" && as_dir=.
3301   for ac_exec_ext in '' $ac_executable_extensions; do
3302   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3303     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
3304     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3305     break 2
3306   fi
3307 done
3308 done
3309
3310   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
3311   ;;
3312 esac
3313 fi
3314 PERL=$ac_cv_path_PERL
3315
3316 if test -n "$PERL"; then
3317   echo "$as_me:$LINENO: result: $PERL" >&5
3318 echo "${ECHO_T}$PERL" >&6
3319 else
3320   echo "$as_me:$LINENO: result: no" >&5
3321 echo "${ECHO_T}no" >&6
3322 fi
3323
3324 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3325 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3326 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3327 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3328   echo $ECHO_N "(cached) $ECHO_C" >&6
3329 else
3330   cat >conftest.make <<\_ACEOF
3331 all:
3332         @echo 'ac_maketemp="$(MAKE)"'
3333 _ACEOF
3334 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3335 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3336 if test -n "$ac_maketemp"; then
3337   eval ac_cv_prog_make_${ac_make}_set=yes
3338 else
3339   eval ac_cv_prog_make_${ac_make}_set=no
3340 fi
3341 rm -f conftest.make
3342 fi
3343 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3344   echo "$as_me:$LINENO: result: yes" >&5
3345 echo "${ECHO_T}yes" >&6
3346   SET_MAKE=
3347 else
3348   echo "$as_me:$LINENO: result: no" >&5
3349 echo "${ECHO_T}no" >&6
3350   SET_MAKE="MAKE=${MAKE-make}"
3351 fi
3352
3353 # Find a good install program.  We prefer a C program (faster),
3354 # so one script is as good as another.  But avoid the broken or
3355 # incompatible versions:
3356 # SysV /etc/install, /usr/sbin/install
3357 # SunOS /usr/etc/install
3358 # IRIX /sbin/install
3359 # AIX /bin/install
3360 # AmigaOS /C/install, which installs bootblocks on floppy discs
3361 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3362 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3363 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3364 # OS/2's system install, which has a completely different semantic
3365 # ./install, which can be erroneously created by make from ./install.sh.
3366 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3367 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3368 if test -z "$INSTALL"; then
3369 if test "${ac_cv_path_install+set}" = set; then
3370   echo $ECHO_N "(cached) $ECHO_C" >&6
3371 else
3372   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3373 for as_dir in $PATH
3374 do
3375   IFS=$as_save_IFS
3376   test -z "$as_dir" && as_dir=.
3377   # Account for people who put trailing slashes in PATH elements.
3378 case $as_dir/ in
3379   ./ | .// | /cC/* | \
3380   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3381   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3382   /usr/ucb/* ) ;;
3383   *)
3384     # OSF1 and SCO ODT 3.0 have their own names for install.
3385     # Don't use installbsd from OSF since it installs stuff as root
3386     # by default.
3387     for ac_prog in ginstall scoinst install; do
3388       for ac_exec_ext in '' $ac_executable_extensions; do
3389         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3390           if test $ac_prog = install &&
3391             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3392             # AIX install.  It has an incompatible calling convention.
3393             :
3394           elif test $ac_prog = install &&
3395             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3396             # program-specific install script used by HP pwplus--don't use.
3397             :
3398           else
3399             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3400             break 3
3401           fi
3402         fi
3403       done
3404     done
3405     ;;
3406 esac
3407 done
3408
3409
3410 fi
3411   if test "${ac_cv_path_install+set}" = set; then
3412     INSTALL=$ac_cv_path_install
3413   else
3414     # As a last resort, use the slow shell script.  We don't cache a
3415     # path for INSTALL within a source directory, because that will
3416     # break other packages using the cache if that directory is
3417     # removed, or if the path is relative.
3418     INSTALL=$ac_install_sh
3419   fi
3420 fi
3421 echo "$as_me:$LINENO: result: $INSTALL" >&5
3422 echo "${ECHO_T}$INSTALL" >&6
3423
3424 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3425 # It thinks the first close brace ends the variable substitution.
3426 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3427
3428 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3429
3430 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3431
3432
3433 # Configure libtool
3434 # Check whether --enable-shared or --disable-shared was given.
3435 if test "${enable_shared+set}" = set; then
3436   enableval="$enable_shared"
3437   p=${PACKAGE-default}
3438 case $enableval in
3439 yes) enable_shared=yes ;;
3440 no) enable_shared=no ;;
3441 *)
3442   enable_shared=no
3443   # Look at the argument we got.  We use all the common list separators.
3444   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3445   for pkg in $enableval; do
3446     if test "X$pkg" = "X$p"; then
3447       enable_shared=yes
3448     fi
3449   done
3450   IFS="$ac_save_ifs"
3451   ;;
3452 esac
3453 else
3454   enable_shared=yes
3455 fi;
3456 # Check whether --enable-static or --disable-static was given.
3457 if test "${enable_static+set}" = set; then
3458   enableval="$enable_static"
3459   p=${PACKAGE-default}
3460 case $enableval in
3461 yes) enable_static=yes ;;
3462 no) enable_static=no ;;
3463 *)
3464   enable_static=no
3465   # Look at the argument we got.  We use all the common list separators.
3466   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3467   for pkg in $enableval; do
3468     if test "X$pkg" = "X$p"; then
3469       enable_static=yes
3470     fi
3471   done
3472   IFS="$ac_save_ifs"
3473   ;;
3474 esac
3475 else
3476   enable_static=yes
3477 fi;
3478 # Check whether --enable-fast-install or --disable-fast-install was given.
3479 if test "${enable_fast_install+set}" = set; then
3480   enableval="$enable_fast_install"
3481   p=${PACKAGE-default}
3482 case $enableval in
3483 yes) enable_fast_install=yes ;;
3484 no) enable_fast_install=no ;;
3485 *)
3486   enable_fast_install=no
3487   # Look at the argument we got.  We use all the common list separators.
3488   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3489   for pkg in $enableval; do
3490     if test "X$pkg" = "X$p"; then
3491       enable_fast_install=yes
3492     fi
3493   done
3494   IFS="$ac_save_ifs"
3495   ;;
3496 esac
3497 else
3498   enable_fast_install=yes
3499 fi;
3500
3501 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3502 if test "${with_gnu_ld+set}" = set; then
3503   withval="$with_gnu_ld"
3504   test "$withval" = no || with_gnu_ld=yes
3505 else
3506   with_gnu_ld=no
3507 fi;
3508 ac_prog=ld
3509 if test "$GCC" = yes; then
3510   # Check if gcc -print-prog-name=ld gives a path.
3511   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3512 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3513   case $host in
3514   *-*-mingw*)
3515     # gcc leaves a trailing carriage return which upsets mingw
3516     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3517   *)
3518     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3519   esac
3520   case $ac_prog in
3521     # Accept absolute paths.
3522     [\\/]* | [A-Za-z]:[\\/]*)
3523       re_direlt='/[^/][^/]*/\.\./'
3524       # Canonicalize the path of ld
3525       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3526       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3527         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3528       done
3529       test -z "$LD" && LD="$ac_prog"
3530       ;;
3531   "")
3532     # If it fails, then pretend we aren't using GCC.
3533     ac_prog=ld
3534     ;;
3535   *)
3536     # If it is relative, then search for the first ld in PATH.
3537     with_gnu_ld=unknown
3538     ;;
3539   esac
3540 elif test "$with_gnu_ld" = yes; then
3541   echo "$as_me:$LINENO: checking for GNU ld" >&5
3542 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3543 else
3544   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3545 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3546 fi
3547 if test "${lt_cv_path_LD+set}" = set; then
3548   echo $ECHO_N "(cached) $ECHO_C" >&6
3549 else
3550   if test -z "$LD"; then
3551   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3552   for ac_dir in $PATH; do
3553     test -z "$ac_dir" && ac_dir=.
3554     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3555       lt_cv_path_LD="$ac_dir/$ac_prog"
3556       # Check to see if the program is GNU ld.  I'd rather use --version,
3557       # but apparently some GNU ld's only accept -v.
3558       # Break only if it was the GNU/non-GNU ld that we prefer.
3559       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3560         test "$with_gnu_ld" != no && break
3561       else
3562         test "$with_gnu_ld" != yes && break
3563       fi
3564     fi
3565   done
3566   IFS="$ac_save_ifs"
3567 else
3568   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3569 fi
3570 fi
3571
3572 LD="$lt_cv_path_LD"
3573 if test -n "$LD"; then
3574   echo "$as_me:$LINENO: result: $LD" >&5
3575 echo "${ECHO_T}$LD" >&6
3576 else
3577   echo "$as_me:$LINENO: result: no" >&5
3578 echo "${ECHO_T}no" >&6
3579 fi
3580 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3581 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3582    { (exit 1); exit 1; }; }
3583 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3584 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3585 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3586   echo $ECHO_N "(cached) $ECHO_C" >&6
3587 else
3588   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3589 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3590   lt_cv_prog_gnu_ld=yes
3591 else
3592   lt_cv_prog_gnu_ld=no
3593 fi
3594 fi
3595 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3596 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3597 with_gnu_ld=$lt_cv_prog_gnu_ld
3598
3599
3600 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3601 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3602 if test "${lt_cv_ld_reload_flag+set}" = set; then
3603   echo $ECHO_N "(cached) $ECHO_C" >&6
3604 else
3605   lt_cv_ld_reload_flag='-r'
3606 fi
3607 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3608 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3609 reload_flag=$lt_cv_ld_reload_flag
3610 test -n "$reload_flag" && reload_flag=" $reload_flag"
3611
3612 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3613 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3614 if test "${lt_cv_path_NM+set}" = set; then
3615   echo $ECHO_N "(cached) $ECHO_C" >&6
3616 else
3617   if test -n "$NM"; then
3618   # Let the user override the test.
3619   lt_cv_path_NM="$NM"
3620 else
3621   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3622   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3623     test -z "$ac_dir" && ac_dir=.
3624     tmp_nm=$ac_dir/${ac_tool_prefix}nm
3625     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3626       # Check to see if the nm accepts a BSD-compat flag.
3627       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3628       #   nm: unknown option "B" ignored
3629       # Tru64's nm complains that /dev/null is an invalid object file
3630       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3631         lt_cv_path_NM="$tmp_nm -B"
3632         break
3633       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3634         lt_cv_path_NM="$tmp_nm -p"
3635         break
3636       else
3637         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3638         continue # so that we can try to find one that supports BSD flags
3639       fi
3640     fi
3641   done
3642   IFS="$ac_save_ifs"
3643   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3644 fi
3645 fi
3646
3647 NM="$lt_cv_path_NM"
3648 echo "$as_me:$LINENO: result: $NM" >&5
3649 echo "${ECHO_T}$NM" >&6
3650
3651 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3652 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3653 LN_S=$as_ln_s
3654 if test "$LN_S" = "ln -s"; then
3655   echo "$as_me:$LINENO: result: yes" >&5
3656 echo "${ECHO_T}yes" >&6
3657 else
3658   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3659 echo "${ECHO_T}no, using $LN_S" >&6
3660 fi
3661
3662 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3663 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3664 if test "${lt_cv_deplibs_check_method+set}" = set; then
3665   echo $ECHO_N "(cached) $ECHO_C" >&6
3666 else
3667   lt_cv_file_magic_cmd='$MAGIC_CMD'
3668 lt_cv_file_magic_test_file=
3669 lt_cv_deplibs_check_method='unknown'
3670 # Need to set the preceding variable on all platforms that support
3671 # interlibrary dependencies.
3672 # 'none' -- dependencies not supported.
3673 # `unknown' -- same as none, but documents that we really don't know.
3674 # 'pass_all' -- all dependencies passed with no checks.
3675 # 'test_compile' -- check by making test program.
3676 # 'file_magic [regex]' -- check by looking for files in library path
3677 # which responds to the $file_magic_cmd with a given egrep regex.
3678 # If you have `file' or equivalent on your system and you're not sure
3679 # whether `pass_all' will *always* work, you probably want this one.
3680
3681 case $host_os in
3682 aix*)
3683   lt_cv_deplibs_check_method=pass_all
3684   ;;
3685
3686 beos*)
3687   lt_cv_deplibs_check_method=pass_all
3688   ;;
3689
3690 bsdi4*)
3691   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3692   lt_cv_file_magic_cmd='/usr/bin/file -L'
3693   lt_cv_file_magic_test_file=/shlib/libc.so
3694   ;;
3695
3696 cygwin* | mingw* |pw32*)
3697   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3698   lt_cv_file_magic_cmd='$OBJDUMP -f'
3699   ;;
3700
3701 darwin* | rhapsody*)
3702   # this will be overwritten by pass_all, but leave it in just in case
3703   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3704   lt_cv_file_magic_cmd='/usr/bin/file -L'
3705   case "$host_os" in
3706   rhapsody* | darwin1.012)
3707     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3708     ;;
3709   *) # Darwin 1.3 on
3710     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3711     ;;
3712   esac
3713   lt_cv_deplibs_check_method=pass_all
3714   ;;
3715
3716 freebsd* | kfreebsd*-gnu)
3717   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3718     case $host_cpu in
3719     i*86 )
3720       # Not sure whether the presence of OpenBSD here was a mistake.
3721       # Let's accept both of them until this is cleared up.
3722       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3723       lt_cv_file_magic_cmd=/usr/bin/file
3724       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3725       ;;
3726     esac
3727   else
3728     lt_cv_deplibs_check_method=pass_all
3729   fi
3730   ;;
3731
3732 gnu*)
3733   lt_cv_deplibs_check_method=pass_all
3734   ;;
3735
3736 hpux10.20*|hpux11*)
3737   case $host_cpu in
3738   hppa*)
3739     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3740     lt_cv_file_magic_cmd=/usr/bin/file
3741     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3742     ;;
3743   ia64*)
3744     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3745     lt_cv_file_magic_cmd=/usr/bin/file
3746     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3747     ;;
3748   esac
3749   ;;
3750
3751 irix5* | irix6*)
3752   case $host_os in
3753   irix5*)
3754     # this will be overridden with pass_all, but let us keep it just in case
3755     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3756     ;;
3757   *)
3758     case $LD in
3759     *-32|*"-32 ") libmagic=32-bit;;
3760     *-n32|*"-n32 ") libmagic=N32;;
3761     *-64|*"-64 ") libmagic=64-bit;;
3762     *) libmagic=never-match;;
3763     esac
3764     # this will be overridden with pass_all, but let us keep it just in case
3765     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3766     ;;
3767   esac
3768   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3769   lt_cv_deplibs_check_method=pass_all
3770   ;;
3771
3772 # This must be Linux ELF.
3773 linux-gnu*)
3774   lt_cv_deplibs_check_method=pass_all
3775   ;;
3776
3777 netbsd* | knetbsd*-gnu)
3778   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3779     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3780   else
3781     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3782   fi
3783   ;;
3784
3785 newsos6)
3786   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3787   lt_cv_file_magic_cmd=/usr/bin/file
3788   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3789   ;;
3790
3791 osf3* | osf4* | osf5*)
3792   # this will be overridden with pass_all, but let us keep it just in case
3793   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3794   lt_cv_file_magic_test_file=/shlib/libc.so
3795   lt_cv_deplibs_check_method=pass_all
3796   ;;
3797
3798 sco3.2v5*)
3799   lt_cv_deplibs_check_method=pass_all
3800   ;;
3801
3802 solaris*)
3803   lt_cv_deplibs_check_method=pass_all
3804   lt_cv_file_magic_test_file=/lib/libc.so
3805   ;;
3806
3807 sysv5uw[78]* | sysv4*uw2*)
3808   lt_cv_deplibs_check_method=pass_all
3809   ;;
3810
3811 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3812   case $host_vendor in
3813   ncr)
3814     lt_cv_deplibs_check_method=pass_all
3815     ;;
3816   motorola)
3817     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
3818     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3819     ;;
3820   esac
3821   ;;
3822 esac
3823
3824 fi
3825 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3826 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3827 file_magic_cmd=$lt_cv_file_magic_cmd
3828 deplibs_check_method=$lt_cv_deplibs_check_method
3829
3830
3831
3832
3833
3834 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3835
3836 # find the maximum length of command line arguments
3837 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3838 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3839 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3840   echo $ECHO_N "(cached) $ECHO_C" >&6
3841 else
3842     i=0
3843   teststring="ABCD"
3844
3845   case $build_os in
3846   msdosdjgpp*)
3847     # On DJGPP, this test can blow up pretty badly due to problems in libc
3848     # (any single argument exceeding 2000 bytes causes a buffer overrun
3849     # during glob expansion).  Even if it were fixed, the result of this
3850     # check would be larger than it should be.
3851     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
3852     ;;
3853
3854   cygwin* | mingw*)
3855     # On Win9x/ME, this test blows up -- it succeeds, but takes
3856     # about 5 minutes as the teststring grows exponentially.
3857     # Worse, since 9x/ME are not pre-emptively multitasking,
3858     # you end up with a "frozen" computer, even though with patience
3859     # the test eventually succeeds (with a max line length of 256k).
3860     # Instead, let's just punt: use the minimum linelength reported by
3861     # all of the supported platforms: 8192 (on NT/2K/XP).
3862     lt_cv_sys_max_cmd_len=8192;
3863     ;;
3864
3865   amigaos*)
3866     # On AmigaOS with pdksh, this test takes hours, literally.
3867     # So we just punt and use a minimum line length of 8192.
3868     lt_cv_sys_max_cmd_len=8192;
3869     ;;
3870
3871   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3872     # This has been around since 386BSD, at least.  Likely further.
3873     if test -x /sbin/sysctl; then
3874       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3875     elif test -x /usr/sbin/sysctl; then
3876       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3877     else
3878       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
3879     fi
3880     # And add a safety zone
3881     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3882     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3883     ;;
3884   esac
3885
3886 fi
3887
3888 if test -n "$lt_cv_sys_max_cmd_len" ; then
3889   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3890 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
3891 else
3892   echo "$as_me:$LINENO: result: none" >&5
3893 echo "${ECHO_T}none" >&6
3894 fi
3895
3896
3897 # Only perform the check for file, if the check method requires it
3898 case $deplibs_check_method in
3899 file_magic*)
3900   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3901     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3902 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3903 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3904   echo $ECHO_N "(cached) $ECHO_C" >&6
3905 else
3906   case $MAGIC_CMD in
3907   /*)
3908   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3909   ;;
3910   ?:/*)
3911   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3912   ;;
3913   *)
3914   ac_save_MAGIC_CMD="$MAGIC_CMD"
3915   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3916   ac_dummy="/usr/bin:$PATH"
3917   for ac_dir in $ac_dummy; do
3918     test -z "$ac_dir" && ac_dir=.
3919     if test -f $ac_dir/${ac_tool_prefix}file; then
3920       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3921       if test -n "$file_magic_test_file"; then
3922         case $deplibs_check_method in
3923         "file_magic "*)
3924           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3925           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3926           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3927             egrep "$file_magic_regex" > /dev/null; then
3928             :
3929           else
3930             cat <<EOF 1>&2
3931
3932 *** Warning: the command libtool uses to detect shared libraries,
3933 *** $file_magic_cmd, produces output that libtool cannot recognize.
3934 *** The result is that libtool may fail to recognize shared libraries
3935 *** as such.  This will affect the creation of libtool libraries that
3936 *** depend on shared libraries, but programs linked with such libtool
3937 *** libraries will work regardless of this problem.  Nevertheless, you
3938 *** may want to report the problem to your system manager and/or to
3939 *** bug-libtool@gnu.org
3940
3941 EOF
3942           fi ;;
3943         esac
3944       fi
3945       break
3946     fi
3947   done
3948   IFS="$ac_save_ifs"
3949   MAGIC_CMD="$ac_save_MAGIC_CMD"
3950   ;;
3951 esac
3952 fi
3953
3954 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3955 if test -n "$MAGIC_CMD"; then
3956   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3957 echo "${ECHO_T}$MAGIC_CMD" >&6
3958 else
3959   echo "$as_me:$LINENO: result: no" >&5
3960 echo "${ECHO_T}no" >&6
3961 fi
3962
3963 if test -z "$lt_cv_path_MAGIC_CMD"; then
3964   if test -n "$ac_tool_prefix"; then
3965     echo "$as_me:$LINENO: checking for file" >&5
3966 echo $ECHO_N "checking for file... $ECHO_C" >&6
3967 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3968   echo $ECHO_N "(cached) $ECHO_C" >&6
3969 else
3970   case $MAGIC_CMD in
3971   /*)
3972   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3973   ;;
3974   ?:/*)
3975   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3976   ;;
3977   *)
3978   ac_save_MAGIC_CMD="$MAGIC_CMD"
3979   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3980   ac_dummy="/usr/bin:$PATH"
3981   for ac_dir in $ac_dummy; do
3982     test -z "$ac_dir" && ac_dir=.
3983     if test -f $ac_dir/file; then
3984       lt_cv_path_MAGIC_CMD="$ac_dir/file"
3985       if test -n "$file_magic_test_file"; then
3986         case $deplibs_check_method in
3987         "file_magic "*)
3988           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3989           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3990           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3991             egrep "$file_magic_regex" > /dev/null; then
3992             :
3993           else
3994             cat <<EOF 1>&2
3995
3996 *** Warning: the command libtool uses to detect shared libraries,
3997 *** $file_magic_cmd, produces output that libtool cannot recognize.
3998 *** The result is that libtool may fail to recognize shared libraries
3999 *** as such.  This will affect the creation of libtool libraries that
4000 *** depend on shared libraries, but programs linked with such libtool
4001 *** libraries will work regardless of this problem.  Nevertheless, you
4002 *** may want to report the problem to your system manager and/or to
4003 *** bug-libtool@gnu.org
4004
4005 EOF
4006           fi ;;
4007         esac
4008       fi
4009       break
4010     fi
4011   done
4012   IFS="$ac_save_ifs"
4013   MAGIC_CMD="$ac_save_MAGIC_CMD"
4014   ;;
4015 esac
4016 fi
4017
4018 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4019 if test -n "$MAGIC_CMD"; then
4020   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4021 echo "${ECHO_T}$MAGIC_CMD" >&6
4022 else
4023   echo "$as_me:$LINENO: result: no" >&5
4024 echo "${ECHO_T}no" >&6
4025 fi
4026
4027   else
4028     MAGIC_CMD=:
4029   fi
4030 fi
4031
4032   fi
4033   ;;
4034 esac
4035
4036 if test -n "$ac_tool_prefix"; then
4037   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4038 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4039 echo "$as_me:$LINENO: checking for $ac_word" >&5
4040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4041 if test "${ac_cv_prog_RANLIB+set}" = set; then
4042   echo $ECHO_N "(cached) $ECHO_C" >&6
4043 else
4044   if test -n "$RANLIB"; then
4045   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4046 else
4047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4048 for as_dir in $PATH
4049 do
4050   IFS=$as_save_IFS
4051   test -z "$as_dir" && as_dir=.
4052   for ac_exec_ext in '' $ac_executable_extensions; do
4053   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4054     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4055     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4056     break 2
4057   fi
4058 done
4059 done
4060
4061 fi
4062 fi
4063 RANLIB=$ac_cv_prog_RANLIB
4064 if test -n "$RANLIB"; then
4065   echo "$as_me:$LINENO: result: $RANLIB" >&5
4066 echo "${ECHO_T}$RANLIB" >&6
4067 else
4068   echo "$as_me:$LINENO: result: no" >&5
4069 echo "${ECHO_T}no" >&6
4070 fi
4071
4072 fi
4073 if test -z "$ac_cv_prog_RANLIB"; then
4074   ac_ct_RANLIB=$RANLIB
4075   # Extract the first word of "ranlib", so it can be a program name with args.
4076 set dummy ranlib; ac_word=$2
4077 echo "$as_me:$LINENO: checking for $ac_word" >&5
4078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4079 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4080   echo $ECHO_N "(cached) $ECHO_C" >&6
4081 else
4082   if test -n "$ac_ct_RANLIB"; then
4083   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4084 else
4085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4086 for as_dir in $PATH
4087 do
4088   IFS=$as_save_IFS
4089   test -z "$as_dir" && as_dir=.
4090   for ac_exec_ext in '' $ac_executable_extensions; do
4091   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4092     ac_cv_prog_ac_ct_RANLIB="ranlib"
4093     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4094     break 2
4095   fi
4096 done
4097 done
4098
4099   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4100 fi
4101 fi
4102 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4103 if test -n "$ac_ct_RANLIB"; then
4104   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4105 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4106 else
4107   echo "$as_me:$LINENO: result: no" >&5
4108 echo "${ECHO_T}no" >&6
4109 fi
4110
4111   RANLIB=$ac_ct_RANLIB
4112 else
4113   RANLIB="$ac_cv_prog_RANLIB"
4114 fi
4115
4116 if test -n "$ac_tool_prefix"; then
4117   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4118 set dummy ${ac_tool_prefix}strip; ac_word=$2
4119 echo "$as_me:$LINENO: checking for $ac_word" >&5
4120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4121 if test "${ac_cv_prog_STRIP+set}" = set; then
4122   echo $ECHO_N "(cached) $ECHO_C" >&6
4123 else
4124   if test -n "$STRIP"; then
4125   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4126 else
4127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4128 for as_dir in $PATH
4129 do
4130   IFS=$as_save_IFS
4131   test -z "$as_dir" && as_dir=.
4132   for ac_exec_ext in '' $ac_executable_extensions; do
4133   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4134     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4135     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4136     break 2
4137   fi
4138 done
4139 done
4140
4141 fi
4142 fi
4143 STRIP=$ac_cv_prog_STRIP
4144 if test -n "$STRIP"; then
4145   echo "$as_me:$LINENO: result: $STRIP" >&5
4146 echo "${ECHO_T}$STRIP" >&6
4147 else
4148   echo "$as_me:$LINENO: result: no" >&5
4149 echo "${ECHO_T}no" >&6
4150 fi
4151
4152 fi
4153 if test -z "$ac_cv_prog_STRIP"; then
4154   ac_ct_STRIP=$STRIP
4155   # Extract the first word of "strip", so it can be a program name with args.
4156 set dummy strip; ac_word=$2
4157 echo "$as_me:$LINENO: checking for $ac_word" >&5
4158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4159 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4160   echo $ECHO_N "(cached) $ECHO_C" >&6
4161 else
4162   if test -n "$ac_ct_STRIP"; then
4163   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4164 else
4165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4166 for as_dir in $PATH
4167 do
4168   IFS=$as_save_IFS
4169   test -z "$as_dir" && as_dir=.
4170   for ac_exec_ext in '' $ac_executable_extensions; do
4171   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4172     ac_cv_prog_ac_ct_STRIP="strip"
4173     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4174     break 2
4175   fi
4176 done
4177 done
4178
4179   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4180 fi
4181 fi
4182 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4183 if test -n "$ac_ct_STRIP"; then
4184   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4185 echo "${ECHO_T}$ac_ct_STRIP" >&6
4186 else
4187   echo "$as_me:$LINENO: result: no" >&5
4188 echo "${ECHO_T}no" >&6
4189 fi
4190
4191   STRIP=$ac_ct_STRIP
4192 else
4193   STRIP="$ac_cv_prog_STRIP"
4194 fi
4195
4196
4197 # Check for any special flags to pass to ltconfig.
4198 libtool_flags="--cache-file=$cache_file"
4199 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4200 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4201 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4202 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4203 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4204
4205
4206 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4207 if test "${enable_libtool_lock+set}" = set; then
4208   enableval="$enable_libtool_lock"
4209
4210 fi;
4211 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4212 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4213
4214
4215 # Check whether --with-pic or --without-pic was given.
4216 if test "${with_pic+set}" = set; then
4217   withval="$with_pic"
4218   pic_mode="$withval"
4219 else
4220   pic_mode=default
4221 fi;
4222 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4223 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4224
4225 # Some flags need to be propagated to the compiler or linker for good
4226 # libtool support.
4227 case $host in
4228 *-*-irix6*)
4229   # Find out which ABI we are using.
4230   echo '#line 4230 "configure"' > conftest.$ac_ext
4231   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4232   (eval $ac_compile) 2>&5
4233   ac_status=$?
4234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235   (exit $ac_status); }; then
4236    if test "$lt_cv_prog_gnu_ld" = yes; then
4237     case `/usr/bin/file conftest.$ac_objext` in
4238     *32-bit*)
4239       LD="${LD-ld} -melf32bsmip"
4240       ;;
4241     *N32*)
4242       LD="${LD-ld} -melf32bmipn32"
4243       ;;
4244     *64-bit*)
4245       LD="${LD-ld} -melf64bmip"
4246       ;;
4247     esac
4248    else
4249     case `/usr/bin/file conftest.$ac_objext` in
4250     *32-bit*)
4251       LD="${LD-ld} -32"
4252       ;;
4253     *N32*)
4254       LD="${LD-ld} -n32"
4255       ;;
4256     *64-bit*)
4257       LD="${LD-ld} -64"
4258       ;;
4259     esac
4260    fi
4261   fi
4262   rm -rf conftest*
4263   ;;
4264
4265 ia64-*-hpux*)
4266   # Find out which ABI we are using.
4267   echo 'int i;' > conftest.$ac_ext
4268   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4269   (eval $ac_compile) 2>&5
4270   ac_status=$?
4271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272   (exit $ac_status); }; then
4273     case "`/usr/bin/file conftest.o`" in
4274     *ELF-32*)
4275       HPUX_IA64_MODE="32"
4276       ;;
4277     *ELF-64*)
4278       HPUX_IA64_MODE="64"
4279       ;;
4280     esac
4281   fi
4282   rm -rf conftest*
4283   ;;
4284
4285 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4286   # Find out which ABI we are using.
4287   echo 'int i;' > conftest.$ac_ext
4288   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4289   (eval $ac_compile) 2>&5
4290   ac_status=$?
4291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4292   (exit $ac_status); }; then
4293     case "`/usr/bin/file conftest.o`" in
4294     *32-bit*)
4295       case $host in
4296         x86_64-*linux*)
4297           LD="${LD-ld} -m elf_i386"
4298           ;;
4299         ppc64-*linux*|powerpc64-*linux*)
4300           LD="${LD-ld} -m elf32ppclinux"
4301           ;;
4302         s390x-*linux*)
4303           LD="${LD-ld} -m elf_s390"
4304           ;;
4305         sparc64-*linux*)
4306           LD="${LD-ld} -m elf32_sparc"
4307           ;;
4308       esac
4309       ;;
4310     *64-bit*)
4311       case $host in
4312         x86_64-*linux*)
4313           LD="${LD-ld} -m elf_x86_64"
4314           ;;
4315         ppc*-*linux*|powerpc*-*linux*)
4316           LD="${LD-ld} -m elf64ppc"
4317           ;;
4318         s390*-*linux*)
4319           LD="${LD-ld} -m elf64_s390"
4320           ;;
4321         sparc*-*linux*)
4322           LD="${LD-ld} -m elf64_sparc"
4323           ;;
4324       esac
4325       ;;
4326     esac
4327   fi
4328   rm -rf conftest*
4329   ;;
4330
4331 *-*-sco3.2v5*)
4332   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4333   SAVE_CFLAGS="$CFLAGS"
4334   CFLAGS="$CFLAGS -belf"
4335   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4336 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4337 if test "${lt_cv_cc_needs_belf+set}" = set; then
4338   echo $ECHO_N "(cached) $ECHO_C" >&6
4339 else
4340
4341
4342      ac_ext=c
4343 ac_cpp='$CPP $CPPFLAGS'
4344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4347
4348      cat >conftest.$ac_ext <<_ACEOF
4349 /* confdefs.h.  */
4350 _ACEOF
4351 cat confdefs.h >>conftest.$ac_ext
4352 cat >>conftest.$ac_ext <<_ACEOF
4353 /* end confdefs.h.  */
4354
4355 int
4356 main ()
4357 {
4358
4359   ;
4360   return 0;
4361 }
4362 _ACEOF
4363 rm -f conftest.$ac_objext conftest$ac_exeext
4364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4365   (eval $ac_link) 2>conftest.er1
4366   ac_status=$?
4367   grep -v '^ *+' conftest.er1 >conftest.err
4368   rm -f conftest.er1
4369   cat conftest.err >&5
4370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371   (exit $ac_status); } &&
4372          { ac_try='test -z "$ac_c_werror_flag"
4373                          || test ! -s conftest.err'
4374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4375   (eval $ac_try) 2>&5
4376   ac_status=$?
4377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378   (exit $ac_status); }; } &&
4379          { ac_try='test -s conftest$ac_exeext'
4380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4381   (eval $ac_try) 2>&5
4382   ac_status=$?
4383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4384   (exit $ac_status); }; }; then
4385   lt_cv_cc_needs_belf=yes
4386 else
4387   echo "$as_me: failed program was:" >&5
4388 sed 's/^/| /' conftest.$ac_ext >&5
4389
4390 lt_cv_cc_needs_belf=no
4391 fi
4392 rm -f conftest.err conftest.$ac_objext \
4393       conftest$ac_exeext conftest.$ac_ext
4394      ac_ext=c
4395 ac_cpp='$CPP $CPPFLAGS'
4396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4399
4400 fi
4401 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4402 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4403   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4404     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4405     CFLAGS="$SAVE_CFLAGS"
4406   fi
4407   ;;
4408
4409
4410 esac
4411
4412
4413 # Save cache, so that ltconfig can load it
4414 cat >confcache <<\_ACEOF
4415 # This file is a shell script that caches the results of configure
4416 # tests run on this system so they can be shared between configure
4417 # scripts and configure runs, see configure's option --config-cache.
4418 # It is not useful on other systems.  If it contains results you don't
4419 # want to keep, you may remove or edit it.
4420 #
4421 # config.status only pays attention to the cache file if you give it
4422 # the --recheck option to rerun configure.
4423 #
4424 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4425 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4426 # following values.
4427
4428 _ACEOF
4429
4430 # The following way of writing the cache mishandles newlines in values,
4431 # but we know of no workaround that is simple, portable, and efficient.
4432 # So, don't put newlines in cache variables' values.
4433 # Ultrix sh set writes to stderr and can't be redirected directly,
4434 # and sets the high bit in the cache file unless we assign to the vars.
4435 {
4436   (set) 2>&1 |
4437     case `(ac_space=' '; set | grep ac_space) 2>&1` in
4438     *ac_space=\ *)
4439       # `set' does not quote correctly, so add quotes (double-quote
4440       # substitution turns \\\\ into \\, and sed turns \\ into \).
4441       sed -n \
4442         "s/'/'\\\\''/g;
4443           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4444       ;;
4445     *)
4446       # `set' quotes correctly as required by POSIX, so do not add quotes.
4447       sed -n \
4448         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4449       ;;
4450     esac;
4451 } |
4452   sed '
4453      t clear
4454      : clear
4455      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4456      t end
4457      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4458      : end' >>confcache
4459 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4460   if test -w $cache_file; then
4461     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4462     cat confcache >$cache_file
4463   else
4464     echo "not updating unwritable cache $cache_file"
4465   fi
4466 fi
4467 rm -f confcache
4468
4469 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
4470 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4471 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4472 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4473 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4474 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4475 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4476 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4477 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4478 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4479 echo "$as_me: error: libtool configure failed" >&2;}
4480    { (exit 1); exit 1; }; }
4481
4482 # Reload cache, that may have been modified by ltconfig
4483 if test -r "$cache_file"; then
4484   # Some versions of bash will fail to source /dev/null (special
4485   # files actually), so we avoid doing that.
4486   if test -f "$cache_file"; then
4487     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4488 echo "$as_me: loading cache $cache_file" >&6;}
4489     case $cache_file in
4490       [\\/]* | ?:[\\/]* ) . $cache_file;;
4491       *)                      . ./$cache_file;;
4492     esac
4493   fi
4494 else
4495   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4496 echo "$as_me: creating cache $cache_file" >&6;}
4497   >$cache_file
4498 fi
4499
4500
4501 # This can be used to rebuild libtool when needed
4502 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4503
4504 # Always use our own libtool.
4505 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4506
4507 # Redirect the config.log output again, so that the ltconfig log is not
4508 # clobbered by the next message.
4509 exec 5>>./config.log
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4520 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4521     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4522 if test "${enable_maintainer_mode+set}" = set; then
4523   enableval="$enable_maintainer_mode"
4524   USE_MAINTAINER_MODE=$enableval
4525 else
4526   USE_MAINTAINER_MODE=no
4527 fi;
4528   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4529 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4530
4531
4532 if test $USE_MAINTAINER_MODE = yes; then
4533   MAINTAINER_MODE_TRUE=
4534   MAINTAINER_MODE_FALSE='#'
4535 else
4536   MAINTAINER_MODE_TRUE='#'
4537   MAINTAINER_MODE_FALSE=
4538 fi
4539
4540   MAINT=$MAINTAINER_MODE_TRUE
4541
4542
4543
4544 # We need gfortran to compile parts of the library
4545 # We can't use AC_PROG_FC because it expects a fully working gfortran.
4546 #AC_PROG_FC(gfortran)
4547 FC="$GFORTRAN"
4548 ac_ext=${FC_SRCEXT-f}
4549 ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
4550 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
4551 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4552 if test -n "$ac_tool_prefix"; then
4553   for ac_prog in gfortran
4554   do
4555     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4556 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4557 echo "$as_me:$LINENO: checking for $ac_word" >&5
4558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4559 if test "${ac_cv_prog_FC+set}" = set; then
4560   echo $ECHO_N "(cached) $ECHO_C" >&6
4561 else
4562   if test -n "$FC"; then
4563   ac_cv_prog_FC="$FC" # Let the user override the test.
4564 else
4565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4566 for as_dir in $PATH
4567 do
4568   IFS=$as_save_IFS
4569   test -z "$as_dir" && as_dir=.
4570   for ac_exec_ext in '' $ac_executable_extensions; do
4571   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4572     ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
4573     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4574     break 2
4575   fi
4576 done
4577 done
4578
4579 fi
4580 fi
4581 FC=$ac_cv_prog_FC
4582 if test -n "$FC"; then
4583   echo "$as_me:$LINENO: result: $FC" >&5
4584 echo "${ECHO_T}$FC" >&6
4585 else
4586   echo "$as_me:$LINENO: result: no" >&5
4587 echo "${ECHO_T}no" >&6
4588 fi
4589
4590     test -n "$FC" && break
4591   done
4592 fi
4593 if test -z "$FC"; then
4594   ac_ct_FC=$FC
4595   for ac_prog in gfortran
4596 do
4597   # Extract the first word of "$ac_prog", so it can be a program name with args.
4598 set dummy $ac_prog; ac_word=$2
4599 echo "$as_me:$LINENO: checking for $ac_word" >&5
4600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4601 if test "${ac_cv_prog_ac_ct_FC+set}" = set; then
4602   echo $ECHO_N "(cached) $ECHO_C" >&6
4603 else
4604   if test -n "$ac_ct_FC"; then
4605   ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
4606 else
4607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4608 for as_dir in $PATH
4609 do
4610   IFS=$as_save_IFS
4611   test -z "$as_dir" && as_dir=.
4612   for ac_exec_ext in '' $ac_executable_extensions; do
4613   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4614     ac_cv_prog_ac_ct_FC="$ac_prog"
4615     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4616     break 2
4617   fi
4618 done
4619 done
4620
4621 fi
4622 fi
4623 ac_ct_FC=$ac_cv_prog_ac_ct_FC
4624 if test -n "$ac_ct_FC"; then
4625   echo "$as_me:$LINENO: result: $ac_ct_FC" >&5
4626 echo "${ECHO_T}$ac_ct_FC" >&6
4627 else
4628   echo "$as_me:$LINENO: result: no" >&5
4629 echo "${ECHO_T}no" >&6
4630 fi
4631
4632   test -n "$ac_ct_FC" && break
4633 done
4634
4635   FC=$ac_ct_FC
4636 fi
4637
4638
4639 # Provide some information about the compiler.
4640 echo "$as_me:4640:" \
4641      "checking for Fortran compiler version" >&5
4642 ac_compiler=`set X $ac_compile; echo $2`
4643 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4644   (eval $ac_compiler --version </dev/null >&5) 2>&5
4645   ac_status=$?
4646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4647   (exit $ac_status); }
4648 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4649   (eval $ac_compiler -v </dev/null >&5) 2>&5
4650   ac_status=$?
4651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652   (exit $ac_status); }
4653 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4654   (eval $ac_compiler -V </dev/null >&5) 2>&5
4655   ac_status=$?
4656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657   (exit $ac_status); }
4658 rm -f a.out
4659
4660 # If we don't use `.F' as extension, the preprocessor is not run on the
4661 # input file.  (Note that this only needs to work for GNU compilers.)
4662 ac_save_ext=$ac_ext
4663 ac_ext=F
4664 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5
4665 echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6
4666 if test "${ac_cv_fc_compiler_gnu+set}" = set; then
4667   echo $ECHO_N "(cached) $ECHO_C" >&6
4668 else
4669   cat >conftest.$ac_ext <<_ACEOF
4670       program main
4671 #ifndef __GNUC__
4672        choke me
4673 #endif
4674
4675       end
4676 _ACEOF
4677 rm -f conftest.$ac_objext
4678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4679   (eval $ac_compile) 2>conftest.er1
4680   ac_status=$?
4681   grep -v '^ *+' conftest.er1 >conftest.err
4682   rm -f conftest.er1
4683   cat conftest.err >&5
4684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685   (exit $ac_status); } &&
4686          { ac_try='test -z "$ac_fc_werror_flag"
4687                          || test ! -s conftest.err'
4688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4689   (eval $ac_try) 2>&5
4690   ac_status=$?
4691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4692   (exit $ac_status); }; } &&
4693          { ac_try='test -s conftest.$ac_objext'
4694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4695   (eval $ac_try) 2>&5
4696   ac_status=$?
4697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698   (exit $ac_status); }; }; then
4699   ac_compiler_gnu=yes
4700 else
4701   echo "$as_me: failed program was:" >&5
4702 sed 's/^/| /' conftest.$ac_ext >&5
4703
4704 ac_compiler_gnu=no
4705 fi
4706 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4707 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
4708
4709 fi
4710 echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5
4711 echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6
4712 ac_ext=$ac_save_ext
4713 ac_test_FFLAGS=${FCFLAGS+set}
4714 ac_save_FFLAGS=$FCFLAGS
4715 FCFLAGS=
4716 echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5
4717 echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6
4718 if test "${ac_cv_prog_fc_g+set}" = set; then
4719   echo $ECHO_N "(cached) $ECHO_C" >&6
4720 else
4721   FCFLAGS=-g
4722 cat >conftest.$ac_ext <<_ACEOF
4723       program main
4724
4725       end
4726 _ACEOF
4727 rm -f conftest.$ac_objext
4728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4729   (eval $ac_compile) 2>conftest.er1
4730   ac_status=$?
4731   grep -v '^ *+' conftest.er1 >conftest.err
4732   rm -f conftest.er1
4733   cat conftest.err >&5
4734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4735   (exit $ac_status); } &&
4736          { ac_try='test -z "$ac_fc_werror_flag"
4737                          || test ! -s conftest.err'
4738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4739   (eval $ac_try) 2>&5
4740   ac_status=$?
4741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742   (exit $ac_status); }; } &&
4743          { ac_try='test -s conftest.$ac_objext'
4744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4745   (eval $ac_try) 2>&5
4746   ac_status=$?
4747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4748   (exit $ac_status); }; }; then
4749   ac_cv_prog_fc_g=yes
4750 else
4751   echo "$as_me: failed program was:" >&5
4752 sed 's/^/| /' conftest.$ac_ext >&5
4753
4754 ac_cv_prog_fc_g=no
4755 fi
4756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4757
4758 fi
4759 echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5
4760 echo "${ECHO_T}$ac_cv_prog_fc_g" >&6
4761 if test "$ac_test_FFLAGS" = set; then
4762   FCFLAGS=$ac_save_FFLAGS
4763 elif test $ac_cv_prog_fc_g = yes; then
4764   if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4765     FCFLAGS="-g -O2"
4766   else
4767     FCFLAGS="-g"
4768   fi
4769 else
4770   if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4771     FCFLAGS="-O2"
4772   else
4773     FCFLAGS=
4774   fi
4775 fi
4776
4777 ac_ext=c
4778 ac_cpp='$CPP $CPPFLAGS'
4779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4782
4783 FCFLAGS="$FCFLAGS -Wall"
4784
4785 # For libtool versioning info, format is CURRENT:REVISION:AGE
4786 libtool_VERSION=1:0:0
4787
4788
4789 # Check header files.
4790 ac_ext=c
4791 ac_cpp='$CPP $CPPFLAGS'
4792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4795 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4796 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4797 # On Suns, sometimes $CPP names a directory.
4798 if test -n "$CPP" && test -d "$CPP"; then
4799   CPP=
4800 fi
4801 if test -z "$CPP"; then
4802   if test "${ac_cv_prog_CPP+set}" = set; then
4803   echo $ECHO_N "(cached) $ECHO_C" >&6
4804 else
4805       # Double quotes because CPP needs to be expanded
4806     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4807     do
4808       ac_preproc_ok=false
4809 for ac_c_preproc_warn_flag in '' yes
4810 do
4811   # Use a header file that comes with gcc, so configuring glibc
4812   # with a fresh cross-compiler works.
4813   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4814   # <limits.h> exists even on freestanding compilers.
4815   # On the NeXT, cc -E runs the code through the compiler's parser,
4816   # not just through cpp. "Syntax error" is here to catch this case.
4817   cat >conftest.$ac_ext <<_ACEOF
4818 /* confdefs.h.  */
4819 _ACEOF
4820 cat confdefs.h >>conftest.$ac_ext
4821 cat >>conftest.$ac_ext <<_ACEOF
4822 /* end confdefs.h.  */
4823 #ifdef __STDC__
4824 # include <limits.h>
4825 #else
4826 # include <assert.h>
4827 #endif
4828                      Syntax error
4829 _ACEOF
4830 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4831   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4832   ac_status=$?
4833   grep -v '^ *+' conftest.er1 >conftest.err
4834   rm -f conftest.er1
4835   cat conftest.err >&5
4836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4837   (exit $ac_status); } >/dev/null; then
4838   if test -s conftest.err; then
4839     ac_cpp_err=$ac_c_preproc_warn_flag
4840     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4841   else
4842     ac_cpp_err=
4843   fi
4844 else
4845   ac_cpp_err=yes
4846 fi
4847 if test -z "$ac_cpp_err"; then
4848   :
4849 else
4850   echo "$as_me: failed program was:" >&5
4851 sed 's/^/| /' conftest.$ac_ext >&5
4852
4853   # Broken: fails on valid input.
4854 continue
4855 fi
4856 rm -f conftest.err conftest.$ac_ext
4857
4858   # OK, works on sane cases.  Now check whether non-existent headers
4859   # can be detected and how.
4860   cat >conftest.$ac_ext <<_ACEOF
4861 /* confdefs.h.  */
4862 _ACEOF
4863 cat confdefs.h >>conftest.$ac_ext
4864 cat >>conftest.$ac_ext <<_ACEOF
4865 /* end confdefs.h.  */
4866 #include <ac_nonexistent.h>
4867 _ACEOF
4868 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4869   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4870   ac_status=$?
4871   grep -v '^ *+' conftest.er1 >conftest.err
4872   rm -f conftest.er1
4873   cat conftest.err >&5
4874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875   (exit $ac_status); } >/dev/null; then
4876   if test -s conftest.err; then
4877     ac_cpp_err=$ac_c_preproc_warn_flag
4878     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4879   else
4880     ac_cpp_err=
4881   fi
4882 else
4883   ac_cpp_err=yes
4884 fi
4885 if test -z "$ac_cpp_err"; then
4886   # Broken: success on invalid input.
4887 continue
4888 else
4889   echo "$as_me: failed program was:" >&5
4890 sed 's/^/| /' conftest.$ac_ext >&5
4891
4892   # Passes both tests.
4893 ac_preproc_ok=:
4894 break
4895 fi
4896 rm -f conftest.err conftest.$ac_ext
4897
4898 done
4899 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4900 rm -f conftest.err conftest.$ac_ext
4901 if $ac_preproc_ok; then
4902   break
4903 fi
4904
4905     done
4906     ac_cv_prog_CPP=$CPP
4907
4908 fi
4909   CPP=$ac_cv_prog_CPP
4910 else
4911   ac_cv_prog_CPP=$CPP
4912 fi
4913 echo "$as_me:$LINENO: result: $CPP" >&5
4914 echo "${ECHO_T}$CPP" >&6
4915 ac_preproc_ok=false
4916 for ac_c_preproc_warn_flag in '' yes
4917 do
4918   # Use a header file that comes with gcc, so configuring glibc
4919   # with a fresh cross-compiler works.
4920   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4921   # <limits.h> exists even on freestanding compilers.
4922   # On the NeXT, cc -E runs the code through the compiler's parser,
4923   # not just through cpp. "Syntax error" is here to catch this case.
4924   cat >conftest.$ac_ext <<_ACEOF
4925 /* confdefs.h.  */
4926 _ACEOF
4927 cat confdefs.h >>conftest.$ac_ext
4928 cat >>conftest.$ac_ext <<_ACEOF
4929 /* end confdefs.h.  */
4930 #ifdef __STDC__
4931 # include <limits.h>
4932 #else
4933 # include <assert.h>
4934 #endif
4935                      Syntax error
4936 _ACEOF
4937 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4938   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4939   ac_status=$?
4940   grep -v '^ *+' conftest.er1 >conftest.err
4941   rm -f conftest.er1
4942   cat conftest.err >&5
4943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944   (exit $ac_status); } >/dev/null; then
4945   if test -s conftest.err; then
4946     ac_cpp_err=$ac_c_preproc_warn_flag
4947     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4948   else
4949     ac_cpp_err=
4950   fi
4951 else
4952   ac_cpp_err=yes
4953 fi
4954 if test -z "$ac_cpp_err"; then
4955   :
4956 else
4957   echo "$as_me: failed program was:" >&5
4958 sed 's/^/| /' conftest.$ac_ext >&5
4959
4960   # Broken: fails on valid input.
4961 continue
4962 fi
4963 rm -f conftest.err conftest.$ac_ext
4964
4965   # OK, works on sane cases.  Now check whether non-existent headers
4966   # can be detected and how.
4967   cat >conftest.$ac_ext <<_ACEOF
4968 /* confdefs.h.  */
4969 _ACEOF
4970 cat confdefs.h >>conftest.$ac_ext
4971 cat >>conftest.$ac_ext <<_ACEOF
4972 /* end confdefs.h.  */
4973 #include <ac_nonexistent.h>
4974 _ACEOF
4975 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4976   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4977   ac_status=$?
4978   grep -v '^ *+' conftest.er1 >conftest.err
4979   rm -f conftest.er1
4980   cat conftest.err >&5
4981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4982   (exit $ac_status); } >/dev/null; then
4983   if test -s conftest.err; then
4984     ac_cpp_err=$ac_c_preproc_warn_flag
4985     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4986   else
4987     ac_cpp_err=
4988   fi
4989 else
4990   ac_cpp_err=yes
4991 fi
4992 if test -z "$ac_cpp_err"; then
4993   # Broken: success on invalid input.
4994 continue
4995 else
4996   echo "$as_me: failed program was:" >&5
4997 sed 's/^/| /' conftest.$ac_ext >&5
4998
4999   # Passes both tests.
5000 ac_preproc_ok=:
5001 break
5002 fi
5003 rm -f conftest.err conftest.$ac_ext
5004
5005 done
5006 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5007 rm -f conftest.err conftest.$ac_ext
5008 if $ac_preproc_ok; then
5009   :
5010 else
5011   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5012 See \`config.log' for more details." >&5
5013 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5014 See \`config.log' for more details." >&2;}
5015    { (exit 1); exit 1; }; }
5016 fi
5017
5018 ac_ext=c
5019 ac_cpp='$CPP $CPPFLAGS'
5020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5023
5024
5025 echo "$as_me:$LINENO: checking for egrep" >&5
5026 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5027 if test "${ac_cv_prog_egrep+set}" = set; then
5028   echo $ECHO_N "(cached) $ECHO_C" >&6
5029 else
5030   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5031     then ac_cv_prog_egrep='grep -E'
5032     else ac_cv_prog_egrep='egrep'
5033     fi
5034 fi
5035 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5036 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5037  EGREP=$ac_cv_prog_egrep
5038
5039
5040 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5041 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5042 if test "${ac_cv_header_stdc+set}" = set; then
5043   echo $ECHO_N "(cached) $ECHO_C" >&6
5044 else
5045   cat >conftest.$ac_ext <<_ACEOF
5046 /* confdefs.h.  */
5047 _ACEOF
5048 cat confdefs.h >>conftest.$ac_ext
5049 cat >>conftest.$ac_ext <<_ACEOF
5050 /* end confdefs.h.  */
5051 #include <stdlib.h>
5052 #include <stdarg.h>
5053 #include <string.h>
5054 #include <float.h>
5055
5056 int
5057 main ()
5058 {
5059
5060   ;
5061   return 0;
5062 }
5063 _ACEOF
5064 rm -f conftest.$ac_objext
5065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5066   (eval $ac_compile) 2>conftest.er1
5067   ac_status=$?
5068   grep -v '^ *+' conftest.er1 >conftest.err
5069   rm -f conftest.er1
5070   cat conftest.err >&5
5071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072   (exit $ac_status); } &&
5073          { ac_try='test -z "$ac_c_werror_flag"
5074                          || test ! -s conftest.err'
5075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5076   (eval $ac_try) 2>&5
5077   ac_status=$?
5078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5079   (exit $ac_status); }; } &&
5080          { ac_try='test -s conftest.$ac_objext'
5081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5082   (eval $ac_try) 2>&5
5083   ac_status=$?
5084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5085   (exit $ac_status); }; }; then
5086   ac_cv_header_stdc=yes
5087 else
5088   echo "$as_me: failed program was:" >&5
5089 sed 's/^/| /' conftest.$ac_ext >&5
5090
5091 ac_cv_header_stdc=no
5092 fi
5093 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5094
5095 if test $ac_cv_header_stdc = yes; then
5096   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5097   cat >conftest.$ac_ext <<_ACEOF
5098 /* confdefs.h.  */
5099 _ACEOF
5100 cat confdefs.h >>conftest.$ac_ext
5101 cat >>conftest.$ac_ext <<_ACEOF
5102 /* end confdefs.h.  */
5103 #include <string.h>
5104
5105 _ACEOF
5106 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5107   $EGREP "memchr" >/dev/null 2>&1; then
5108   :
5109 else
5110   ac_cv_header_stdc=no
5111 fi
5112 rm -f conftest*
5113
5114 fi
5115
5116 if test $ac_cv_header_stdc = yes; then
5117   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5118   cat >conftest.$ac_ext <<_ACEOF
5119 /* confdefs.h.  */
5120 _ACEOF
5121 cat confdefs.h >>conftest.$ac_ext
5122 cat >>conftest.$ac_ext <<_ACEOF
5123 /* end confdefs.h.  */
5124 #include <stdlib.h>
5125
5126 _ACEOF
5127 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5128   $EGREP "free" >/dev/null 2>&1; then
5129   :
5130 else
5131   ac_cv_header_stdc=no
5132 fi
5133 rm -f conftest*
5134
5135 fi
5136
5137 if test $ac_cv_header_stdc = yes; then
5138   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5139   if test "$cross_compiling" = yes; then
5140   :
5141 else
5142   cat >conftest.$ac_ext <<_ACEOF
5143 /* confdefs.h.  */
5144 _ACEOF
5145 cat confdefs.h >>conftest.$ac_ext
5146 cat >>conftest.$ac_ext <<_ACEOF
5147 /* end confdefs.h.  */
5148 #include <ctype.h>
5149 #if ((' ' & 0x0FF) == 0x020)
5150 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5151 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5152 #else
5153 # define ISLOWER(c) \
5154                    (('a' <= (c) && (c) <= 'i') \
5155                      || ('j' <= (c) && (c) <= 'r') \
5156                      || ('s' <= (c) && (c) <= 'z'))
5157 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5158 #endif
5159
5160 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5161 int
5162 main ()
5163 {
5164   int i;
5165   for (i = 0; i < 256; i++)
5166     if (XOR (islower (i), ISLOWER (i))
5167         || toupper (i) != TOUPPER (i))
5168       exit(2);
5169   exit (0);
5170 }
5171 _ACEOF
5172 rm -f conftest$ac_exeext
5173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5174   (eval $ac_link) 2>&5
5175   ac_status=$?
5176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5177   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5179   (eval $ac_try) 2>&5
5180   ac_status=$?
5181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5182   (exit $ac_status); }; }; then
5183   :
5184 else
5185   echo "$as_me: program exited with status $ac_status" >&5
5186 echo "$as_me: failed program was:" >&5
5187 sed 's/^/| /' conftest.$ac_ext >&5
5188
5189 ( exit $ac_status )
5190 ac_cv_header_stdc=no
5191 fi
5192 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5193 fi
5194 fi
5195 fi
5196 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5197 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5198 if test $ac_cv_header_stdc = yes; then
5199
5200 cat >>confdefs.h <<\_ACEOF
5201 #define STDC_HEADERS 1
5202 _ACEOF
5203
5204 fi
5205
5206 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5207 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5208 if test "${ac_cv_header_time+set}" = set; then
5209   echo $ECHO_N "(cached) $ECHO_C" >&6
5210 else
5211   cat >conftest.$ac_ext <<_ACEOF
5212 /* confdefs.h.  */
5213 _ACEOF
5214 cat confdefs.h >>conftest.$ac_ext
5215 cat >>conftest.$ac_ext <<_ACEOF
5216 /* end confdefs.h.  */
5217 #include <sys/types.h>
5218 #include <sys/time.h>
5219 #include <time.h>
5220
5221 int
5222 main ()
5223 {
5224 if ((struct tm *) 0)
5225 return 0;
5226   ;
5227   return 0;
5228 }
5229 _ACEOF
5230 rm -f conftest.$ac_objext
5231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5232   (eval $ac_compile) 2>conftest.er1
5233   ac_status=$?
5234   grep -v '^ *+' conftest.er1 >conftest.err
5235   rm -f conftest.er1
5236   cat conftest.err >&5
5237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238   (exit $ac_status); } &&
5239          { ac_try='test -z "$ac_c_werror_flag"
5240                          || test ! -s conftest.err'
5241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5242   (eval $ac_try) 2>&5
5243   ac_status=$?
5244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5245   (exit $ac_status); }; } &&
5246          { ac_try='test -s conftest.$ac_objext'
5247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5248   (eval $ac_try) 2>&5
5249   ac_status=$?
5250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5251   (exit $ac_status); }; }; then
5252   ac_cv_header_time=yes
5253 else
5254   echo "$as_me: failed program was:" >&5
5255 sed 's/^/| /' conftest.$ac_ext >&5
5256
5257 ac_cv_header_time=no
5258 fi
5259 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5260 fi
5261 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5262 echo "${ECHO_T}$ac_cv_header_time" >&6
5263 if test $ac_cv_header_time = yes; then
5264
5265 cat >>confdefs.h <<\_ACEOF
5266 #define TIME_WITH_SYS_TIME 1
5267 _ACEOF
5268
5269 fi
5270
5271 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5282                   inttypes.h stdint.h unistd.h
5283 do
5284 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5285 echo "$as_me:$LINENO: checking for $ac_header" >&5
5286 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5287 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5288   echo $ECHO_N "(cached) $ECHO_C" >&6
5289 else
5290   cat >conftest.$ac_ext <<_ACEOF
5291 /* confdefs.h.  */
5292 _ACEOF
5293 cat confdefs.h >>conftest.$ac_ext
5294 cat >>conftest.$ac_ext <<_ACEOF
5295 /* end confdefs.h.  */
5296 $ac_includes_default
5297
5298 #include <$ac_header>
5299 _ACEOF
5300 rm -f conftest.$ac_objext
5301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5302   (eval $ac_compile) 2>conftest.er1
5303   ac_status=$?
5304   grep -v '^ *+' conftest.er1 >conftest.err
5305   rm -f conftest.er1
5306   cat conftest.err >&5
5307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5308   (exit $ac_status); } &&
5309          { ac_try='test -z "$ac_c_werror_flag"
5310                          || test ! -s conftest.err'
5311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5312   (eval $ac_try) 2>&5
5313   ac_status=$?
5314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5315   (exit $ac_status); }; } &&
5316          { ac_try='test -s conftest.$ac_objext'
5317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5318   (eval $ac_try) 2>&5
5319   ac_status=$?
5320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5321   (exit $ac_status); }; }; then
5322   eval "$as_ac_Header=yes"
5323 else
5324   echo "$as_me: failed program was:" >&5
5325 sed 's/^/| /' conftest.$ac_ext >&5
5326
5327 eval "$as_ac_Header=no"
5328 fi
5329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5330 fi
5331 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5332 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5333 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5334   cat >>confdefs.h <<_ACEOF
5335 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5336 _ACEOF
5337
5338 fi
5339
5340 done
5341
5342
5343
5344
5345
5346
5347 for ac_header in unistd.h semaphore.h sys/loadavg.h sys/time.h
5348 do
5349 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5350 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5351   echo "$as_me:$LINENO: checking for $ac_header" >&5
5352 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5353 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5354   echo $ECHO_N "(cached) $ECHO_C" >&6
5355 fi
5356 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5357 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5358 else
5359   # Is the header compilable?
5360 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5361 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5362 cat >conftest.$ac_ext <<_ACEOF
5363 /* confdefs.h.  */
5364 _ACEOF
5365 cat confdefs.h >>conftest.$ac_ext
5366 cat >>conftest.$ac_ext <<_ACEOF
5367 /* end confdefs.h.  */
5368 $ac_includes_default
5369 #include <$ac_header>
5370 _ACEOF
5371 rm -f conftest.$ac_objext
5372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5373   (eval $ac_compile) 2>conftest.er1
5374   ac_status=$?
5375   grep -v '^ *+' conftest.er1 >conftest.err
5376   rm -f conftest.er1
5377   cat conftest.err >&5
5378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5379   (exit $ac_status); } &&
5380          { ac_try='test -z "$ac_c_werror_flag"
5381                          || test ! -s conftest.err'
5382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5383   (eval $ac_try) 2>&5
5384   ac_status=$?
5385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386   (exit $ac_status); }; } &&
5387          { ac_try='test -s conftest.$ac_objext'
5388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5389   (eval $ac_try) 2>&5
5390   ac_status=$?
5391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392   (exit $ac_status); }; }; then
5393   ac_header_compiler=yes
5394 else
5395   echo "$as_me: failed program was:" >&5
5396 sed 's/^/| /' conftest.$ac_ext >&5
5397
5398 ac_header_compiler=no
5399 fi
5400 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5401 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5402 echo "${ECHO_T}$ac_header_compiler" >&6
5403
5404 # Is the header present?
5405 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5406 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5407 cat >conftest.$ac_ext <<_ACEOF
5408 /* confdefs.h.  */
5409 _ACEOF
5410 cat confdefs.h >>conftest.$ac_ext
5411 cat >>conftest.$ac_ext <<_ACEOF
5412 /* end confdefs.h.  */
5413 #include <$ac_header>
5414 _ACEOF
5415 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5416   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5417   ac_status=$?
5418   grep -v '^ *+' conftest.er1 >conftest.err
5419   rm -f conftest.er1
5420   cat conftest.err >&5
5421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422   (exit $ac_status); } >/dev/null; then
5423   if test -s conftest.err; then
5424     ac_cpp_err=$ac_c_preproc_warn_flag
5425     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5426   else
5427     ac_cpp_err=
5428   fi
5429 else
5430   ac_cpp_err=yes
5431 fi
5432 if test -z "$ac_cpp_err"; then
5433   ac_header_preproc=yes
5434 else
5435   echo "$as_me: failed program was:" >&5
5436 sed 's/^/| /' conftest.$ac_ext >&5
5437
5438   ac_header_preproc=no
5439 fi
5440 rm -f conftest.err conftest.$ac_ext
5441 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5442 echo "${ECHO_T}$ac_header_preproc" >&6
5443
5444 # So?  What about this header?
5445 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5446   yes:no: )
5447     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5448 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5449     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5450 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5451     ac_header_preproc=yes
5452     ;;
5453   no:yes:* )
5454     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5455 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5456     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5457 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5458     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5459 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5460     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5461 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5462     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5463 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5464     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5465 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5466     (
5467       cat <<\_ASBOX
5468 ## ----------------------------------------------------- ##
5469 ## Report this to the GNU OpenMP Runtime Library lists.  ##
5470 ## ----------------------------------------------------- ##
5471 _ASBOX
5472     ) |
5473       sed "s/^/$as_me: WARNING:     /" >&2
5474     ;;
5475 esac
5476 echo "$as_me:$LINENO: checking for $ac_header" >&5
5477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5478 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5479   echo $ECHO_N "(cached) $ECHO_C" >&6
5480 else
5481   eval "$as_ac_Header=\$ac_header_preproc"
5482 fi
5483 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5484 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5485
5486 fi
5487 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5488   cat >>confdefs.h <<_ACEOF
5489 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5490 _ACEOF
5491
5492 fi
5493
5494 done
5495
5496
5497
5498
5499 inttype_headers=`echo inttypes.h sys/inttypes.h  | sed -e 's/,/ /g'`
5500
5501 acx_cv_header_stdint=stddef.h
5502 acx_cv_header_stdint_kind="(already complete)"
5503 for i in stdint.h $inttype_headers; do
5504   unset ac_cv_type_uintptr_t
5505   unset ac_cv_type_uintmax_t
5506   unset ac_cv_type_int_least32_t
5507   unset ac_cv_type_int_fast32_t
5508   unset ac_cv_type_uint64_t
5509   echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
5510   echo "$as_me:$LINENO: checking for uintmax_t" >&5
5511 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
5512 if test "${ac_cv_type_uintmax_t+set}" = set; then
5513   echo $ECHO_N "(cached) $ECHO_C" >&6
5514 else
5515   cat >conftest.$ac_ext <<_ACEOF
5516 /* confdefs.h.  */
5517 _ACEOF
5518 cat confdefs.h >>conftest.$ac_ext
5519 cat >>conftest.$ac_ext <<_ACEOF
5520 /* end confdefs.h.  */
5521 #include <sys/types.h>
5522 #include <$i>
5523
5524 int
5525 main ()
5526 {
5527 if ((uintmax_t *) 0)
5528   return 0;
5529 if (sizeof (uintmax_t))
5530   return 0;
5531   ;
5532   return 0;
5533 }
5534 _ACEOF
5535 rm -f conftest.$ac_objext
5536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5537   (eval $ac_compile) 2>conftest.er1
5538   ac_status=$?
5539   grep -v '^ *+' conftest.er1 >conftest.err
5540   rm -f conftest.er1
5541   cat conftest.err >&5
5542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5543   (exit $ac_status); } &&
5544          { ac_try='test -z "$ac_c_werror_flag"
5545                          || test ! -s conftest.err'
5546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5547   (eval $ac_try) 2>&5
5548   ac_status=$?
5549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5550   (exit $ac_status); }; } &&
5551          { ac_try='test -s conftest.$ac_objext'
5552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5553   (eval $ac_try) 2>&5
5554   ac_status=$?
5555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5556   (exit $ac_status); }; }; then
5557   ac_cv_type_uintmax_t=yes
5558 else
5559   echo "$as_me: failed program was:" >&5
5560 sed 's/^/| /' conftest.$ac_ext >&5
5561
5562 ac_cv_type_uintmax_t=no
5563 fi
5564 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5565 fi
5566 echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
5567 echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
5568 if test $ac_cv_type_uintmax_t = yes; then
5569   acx_cv_header_stdint=$i
5570 else
5571   continue
5572 fi
5573
5574   echo "$as_me:$LINENO: checking for uintptr_t" >&5
5575 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
5576 if test "${ac_cv_type_uintptr_t+set}" = set; then
5577   echo $ECHO_N "(cached) $ECHO_C" >&6
5578 else
5579   cat >conftest.$ac_ext <<_ACEOF
5580 /* confdefs.h.  */
5581 _ACEOF
5582 cat confdefs.h >>conftest.$ac_ext
5583 cat >>conftest.$ac_ext <<_ACEOF
5584 /* end confdefs.h.  */
5585 #include <sys/types.h>
5586 #include <$i>
5587
5588 int
5589 main ()
5590 {
5591 if ((uintptr_t *) 0)
5592   return 0;
5593 if (sizeof (uintptr_t))
5594   return 0;
5595   ;
5596   return 0;
5597 }
5598 _ACEOF
5599 rm -f conftest.$ac_objext
5600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5601   (eval $ac_compile) 2>conftest.er1
5602   ac_status=$?
5603   grep -v '^ *+' conftest.er1 >conftest.err
5604   rm -f conftest.er1
5605   cat conftest.err >&5
5606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5607   (exit $ac_status); } &&
5608          { ac_try='test -z "$ac_c_werror_flag"
5609                          || test ! -s conftest.err'
5610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5611   (eval $ac_try) 2>&5
5612   ac_status=$?
5613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614   (exit $ac_status); }; } &&
5615          { ac_try='test -s conftest.$ac_objext'
5616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5617   (eval $ac_try) 2>&5
5618   ac_status=$?
5619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620   (exit $ac_status); }; }; then
5621   ac_cv_type_uintptr_t=yes
5622 else
5623   echo "$as_me: failed program was:" >&5
5624 sed 's/^/| /' conftest.$ac_ext >&5
5625
5626 ac_cv_type_uintptr_t=no
5627 fi
5628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5629 fi
5630 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
5631 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
5632 if test $ac_cv_type_uintptr_t = yes; then
5633   :
5634 else
5635   acx_cv_header_stdint_kind="(mostly complete)"
5636 fi
5637
5638   echo "$as_me:$LINENO: checking for int_least32_t" >&5
5639 echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
5640 if test "${ac_cv_type_int_least32_t+set}" = set; then
5641   echo $ECHO_N "(cached) $ECHO_C" >&6
5642 else
5643   cat >conftest.$ac_ext <<_ACEOF
5644 /* confdefs.h.  */
5645 _ACEOF
5646 cat confdefs.h >>conftest.$ac_ext
5647 cat >>conftest.$ac_ext <<_ACEOF
5648 /* end confdefs.h.  */
5649 #include <sys/types.h>
5650 #include <$i>
5651
5652 int
5653 main ()
5654 {
5655 if ((int_least32_t *) 0)
5656   return 0;
5657 if (sizeof (int_least32_t))
5658   return 0;
5659   ;
5660   return 0;
5661 }
5662 _ACEOF
5663 rm -f conftest.$ac_objext
5664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5665   (eval $ac_compile) 2>conftest.er1
5666   ac_status=$?
5667   grep -v '^ *+' conftest.er1 >conftest.err
5668   rm -f conftest.er1
5669   cat conftest.err >&5
5670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5671   (exit $ac_status); } &&
5672          { ac_try='test -z "$ac_c_werror_flag"
5673                          || test ! -s conftest.err'
5674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5675   (eval $ac_try) 2>&5
5676   ac_status=$?
5677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678   (exit $ac_status); }; } &&
5679          { ac_try='test -s conftest.$ac_objext'
5680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5681   (eval $ac_try) 2>&5
5682   ac_status=$?
5683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684   (exit $ac_status); }; }; then
5685   ac_cv_type_int_least32_t=yes
5686 else
5687   echo "$as_me: failed program was:" >&5
5688 sed 's/^/| /' conftest.$ac_ext >&5
5689
5690 ac_cv_type_int_least32_t=no
5691 fi
5692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5693 fi
5694 echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
5695 echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
5696 if test $ac_cv_type_int_least32_t = yes; then
5697   :
5698 else
5699   acx_cv_header_stdint_kind="(mostly complete)"
5700 fi
5701
5702   echo "$as_me:$LINENO: checking for int_fast32_t" >&5
5703 echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
5704 if test "${ac_cv_type_int_fast32_t+set}" = set; then
5705   echo $ECHO_N "(cached) $ECHO_C" >&6
5706 else
5707   cat >conftest.$ac_ext <<_ACEOF
5708 /* confdefs.h.  */
5709 _ACEOF
5710 cat confdefs.h >>conftest.$ac_ext
5711 cat >>conftest.$ac_ext <<_ACEOF
5712 /* end confdefs.h.  */
5713 #include <sys/types.h>
5714 #include <$i>
5715
5716 int
5717 main ()
5718 {
5719 if ((int_fast32_t *) 0)
5720   return 0;
5721 if (sizeof (int_fast32_t))
5722   return 0;
5723   ;
5724   return 0;
5725 }
5726 _ACEOF
5727 rm -f conftest.$ac_objext
5728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5729   (eval $ac_compile) 2>conftest.er1
5730   ac_status=$?
5731   grep -v '^ *+' conftest.er1 >conftest.err
5732   rm -f conftest.er1
5733   cat conftest.err >&5
5734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735   (exit $ac_status); } &&
5736          { ac_try='test -z "$ac_c_werror_flag"
5737                          || test ! -s conftest.err'
5738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5739   (eval $ac_try) 2>&5
5740   ac_status=$?
5741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742   (exit $ac_status); }; } &&
5743          { ac_try='test -s conftest.$ac_objext'
5744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5745   (eval $ac_try) 2>&5
5746   ac_status=$?
5747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748   (exit $ac_status); }; }; then
5749   ac_cv_type_int_fast32_t=yes
5750 else
5751   echo "$as_me: failed program was:" >&5
5752 sed 's/^/| /' conftest.$ac_ext >&5
5753
5754 ac_cv_type_int_fast32_t=no
5755 fi
5756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5757 fi
5758 echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
5759 echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
5760 if test $ac_cv_type_int_fast32_t = yes; then
5761   :
5762 else
5763   acx_cv_header_stdint_kind="(mostly complete)"
5764 fi
5765
5766   echo "$as_me:$LINENO: checking for uint64_t" >&5
5767 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
5768 if test "${ac_cv_type_uint64_t+set}" = set; then
5769   echo $ECHO_N "(cached) $ECHO_C" >&6
5770 else
5771   cat >conftest.$ac_ext <<_ACEOF
5772 /* confdefs.h.  */
5773 _ACEOF
5774 cat confdefs.h >>conftest.$ac_ext
5775 cat >>conftest.$ac_ext <<_ACEOF
5776 /* end confdefs.h.  */
5777 #include <sys/types.h>
5778 #include <$i>
5779
5780 int
5781 main ()
5782 {
5783 if ((uint64_t *) 0)
5784   return 0;
5785 if (sizeof (uint64_t))
5786   return 0;
5787   ;
5788   return 0;
5789 }
5790 _ACEOF
5791 rm -f conftest.$ac_objext
5792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5793   (eval $ac_compile) 2>conftest.er1
5794   ac_status=$?
5795   grep -v '^ *+' conftest.er1 >conftest.err
5796   rm -f conftest.er1
5797   cat conftest.err >&5
5798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799   (exit $ac_status); } &&
5800          { ac_try='test -z "$ac_c_werror_flag"
5801                          || test ! -s conftest.err'
5802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5803   (eval $ac_try) 2>&5
5804   ac_status=$?
5805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5806   (exit $ac_status); }; } &&
5807          { ac_try='test -s conftest.$ac_objext'
5808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5809   (eval $ac_try) 2>&5
5810   ac_status=$?
5811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812   (exit $ac_status); }; }; then
5813   ac_cv_type_uint64_t=yes
5814 else
5815   echo "$as_me: failed program was:" >&5
5816 sed 's/^/| /' conftest.$ac_ext >&5
5817
5818 ac_cv_type_uint64_t=no
5819 fi
5820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5821 fi
5822 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
5823 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
5824 if test $ac_cv_type_uint64_t = yes; then
5825   :
5826 else
5827   acx_cv_header_stdint_kind="(lacks uint64_t)"
5828 fi
5829
5830   break
5831 done
5832 if test "$acx_cv_header_stdint" = stddef.h; then
5833   acx_cv_header_stdint_kind="(lacks uintmax_t)"
5834   for i in stdint.h $inttype_headers; do
5835     unset ac_cv_type_uintptr_t
5836     unset ac_cv_type_uint32_t
5837     unset ac_cv_type_uint64_t
5838     echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
5839     echo "$as_me:$LINENO: checking for uint32_t" >&5
5840 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
5841 if test "${ac_cv_type_uint32_t+set}" = set; then
5842   echo $ECHO_N "(cached) $ECHO_C" >&6
5843 else
5844   cat >conftest.$ac_ext <<_ACEOF
5845 /* confdefs.h.  */
5846 _ACEOF
5847 cat confdefs.h >>conftest.$ac_ext
5848 cat >>conftest.$ac_ext <<_ACEOF
5849 /* end confdefs.h.  */
5850 #include <sys/types.h>
5851 #include <$i>
5852
5853 int
5854 main ()
5855 {
5856 if ((uint32_t *) 0)
5857   return 0;
5858 if (sizeof (uint32_t))
5859   return 0;
5860   ;
5861   return 0;
5862 }
5863 _ACEOF
5864 rm -f conftest.$ac_objext
5865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5866   (eval $ac_compile) 2>conftest.er1
5867   ac_status=$?
5868   grep -v '^ *+' conftest.er1 >conftest.err
5869   rm -f conftest.er1
5870   cat conftest.err >&5
5871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872   (exit $ac_status); } &&
5873          { ac_try='test -z "$ac_c_werror_flag"
5874                          || test ! -s conftest.err'
5875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5876   (eval $ac_try) 2>&5
5877   ac_status=$?
5878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879   (exit $ac_status); }; } &&
5880          { ac_try='test -s conftest.$ac_objext'
5881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5882   (eval $ac_try) 2>&5
5883   ac_status=$?
5884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5885   (exit $ac_status); }; }; then
5886   ac_cv_type_uint32_t=yes
5887 else
5888   echo "$as_me: failed program was:" >&5
5889 sed 's/^/| /' conftest.$ac_ext >&5
5890
5891 ac_cv_type_uint32_t=no
5892 fi
5893 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5894 fi
5895 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
5896 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
5897 if test $ac_cv_type_uint32_t = yes; then
5898   acx_cv_header_stdint=$i
5899 else
5900   continue
5901 fi
5902
5903     echo "$as_me:$LINENO: checking for uint64_t" >&5
5904 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
5905 if test "${ac_cv_type_uint64_t+set}" = set; then
5906   echo $ECHO_N "(cached) $ECHO_C" >&6
5907 else
5908   cat >conftest.$ac_ext <<_ACEOF
5909 /* confdefs.h.  */
5910 _ACEOF
5911 cat confdefs.h >>conftest.$ac_ext
5912 cat >>conftest.$ac_ext <<_ACEOF
5913 /* end confdefs.h.  */
5914 #include <sys/types.h>
5915 #include <$i>
5916
5917 int
5918 main ()
5919 {
5920 if ((uint64_t *) 0)
5921   return 0;
5922 if (sizeof (uint64_t))
5923   return 0;
5924   ;
5925   return 0;
5926 }
5927 _ACEOF
5928 rm -f conftest.$ac_objext
5929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5930   (eval $ac_compile) 2>conftest.er1
5931   ac_status=$?
5932   grep -v '^ *+' conftest.er1 >conftest.err
5933   rm -f conftest.er1
5934   cat conftest.err >&5
5935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936   (exit $ac_status); } &&
5937          { ac_try='test -z "$ac_c_werror_flag"
5938                          || test ! -s conftest.err'
5939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5940   (eval $ac_try) 2>&5
5941   ac_status=$?
5942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943   (exit $ac_status); }; } &&
5944          { ac_try='test -s conftest.$ac_objext'
5945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5946   (eval $ac_try) 2>&5
5947   ac_status=$?
5948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949   (exit $ac_status); }; }; then
5950   ac_cv_type_uint64_t=yes
5951 else
5952   echo "$as_me: failed program was:" >&5
5953 sed 's/^/| /' conftest.$ac_ext >&5
5954
5955 ac_cv_type_uint64_t=no
5956 fi
5957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5958 fi
5959 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
5960 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
5961
5962     echo "$as_me:$LINENO: checking for uintptr_t" >&5
5963 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
5964 if test "${ac_cv_type_uintptr_t+set}" = set; then
5965   echo $ECHO_N "(cached) $ECHO_C" >&6
5966 else
5967   cat >conftest.$ac_ext <<_ACEOF
5968 /* confdefs.h.  */
5969 _ACEOF
5970 cat confdefs.h >>conftest.$ac_ext
5971 cat >>conftest.$ac_ext <<_ACEOF
5972 /* end confdefs.h.  */
5973 #include <sys/types.h>
5974 #include <$i>
5975
5976 int
5977 main ()
5978 {
5979 if ((uintptr_t *) 0)
5980   return 0;
5981 if (sizeof (uintptr_t))
5982   return 0;
5983   ;
5984   return 0;
5985 }
5986 _ACEOF
5987 rm -f conftest.$ac_objext
5988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5989   (eval $ac_compile) 2>conftest.er1
5990   ac_status=$?
5991   grep -v '^ *+' conftest.er1 >conftest.err
5992   rm -f conftest.er1
5993   cat conftest.err >&5
5994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995   (exit $ac_status); } &&
5996          { ac_try='test -z "$ac_c_werror_flag"
5997                          || test ! -s conftest.err'
5998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5999   (eval $ac_try) 2>&5
6000   ac_status=$?
6001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002   (exit $ac_status); }; } &&
6003          { ac_try='test -s conftest.$ac_objext'
6004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6005   (eval $ac_try) 2>&5
6006   ac_status=$?
6007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008   (exit $ac_status); }; }; then
6009   ac_cv_type_uintptr_t=yes
6010 else
6011   echo "$as_me: failed program was:" >&5
6012 sed 's/^/| /' conftest.$ac_ext >&5
6013
6014 ac_cv_type_uintptr_t=no
6015 fi
6016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6017 fi
6018 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
6019 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
6020
6021     break
6022   done
6023 fi
6024 if test "$acx_cv_header_stdint" = stddef.h; then
6025   acx_cv_header_stdint_kind="(u_intXX_t style)"
6026   for i in sys/types.h $inttype_headers; do
6027     unset ac_cv_type_u_int32_t
6028     unset ac_cv_type_u_int64_t
6029     echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
6030     echo "$as_me:$LINENO: checking for u_int32_t" >&5
6031 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
6032 if test "${ac_cv_type_u_int32_t+set}" = set; then
6033   echo $ECHO_N "(cached) $ECHO_C" >&6
6034 else
6035   cat >conftest.$ac_ext <<_ACEOF
6036 /* confdefs.h.  */
6037 _ACEOF
6038 cat confdefs.h >>conftest.$ac_ext
6039 cat >>conftest.$ac_ext <<_ACEOF
6040 /* end confdefs.h.  */
6041 #include <sys/types.h>
6042 #include <$i>
6043
6044 int
6045 main ()
6046 {
6047 if ((u_int32_t *) 0)
6048   return 0;
6049 if (sizeof (u_int32_t))
6050   return 0;
6051   ;
6052   return 0;
6053 }
6054 _ACEOF
6055 rm -f conftest.$ac_objext
6056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6057   (eval $ac_compile) 2>conftest.er1
6058   ac_status=$?
6059   grep -v '^ *+' conftest.er1 >conftest.err
6060   rm -f conftest.er1
6061   cat conftest.err >&5
6062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6063   (exit $ac_status); } &&
6064          { ac_try='test -z "$ac_c_werror_flag"
6065                          || test ! -s conftest.err'
6066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6067   (eval $ac_try) 2>&5
6068   ac_status=$?
6069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6070   (exit $ac_status); }; } &&
6071          { ac_try='test -s conftest.$ac_objext'
6072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6073   (eval $ac_try) 2>&5
6074   ac_status=$?
6075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6076   (exit $ac_status); }; }; then
6077   ac_cv_type_u_int32_t=yes
6078 else
6079   echo "$as_me: failed program was:" >&5
6080 sed 's/^/| /' conftest.$ac_ext >&5
6081
6082 ac_cv_type_u_int32_t=no
6083 fi
6084 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6085 fi
6086 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
6087 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
6088 if test $ac_cv_type_u_int32_t = yes; then
6089   acx_cv_header_stdint=$i
6090 else
6091   continue
6092 fi
6093
6094     echo "$as_me:$LINENO: checking for u_int64_t" >&5
6095 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
6096 if test "${ac_cv_type_u_int64_t+set}" = set; then
6097   echo $ECHO_N "(cached) $ECHO_C" >&6
6098 else
6099   cat >conftest.$ac_ext <<_ACEOF
6100 /* confdefs.h.  */
6101 _ACEOF
6102 cat confdefs.h >>conftest.$ac_ext
6103 cat >>conftest.$ac_ext <<_ACEOF
6104 /* end confdefs.h.  */
6105 #include <sys/types.h>
6106 #include <$i>
6107
6108 int
6109 main ()
6110 {
6111 if ((u_int64_t *) 0)
6112   return 0;
6113 if (sizeof (u_int64_t))
6114   return 0;
6115   ;
6116   return 0;
6117 }
6118 _ACEOF
6119 rm -f conftest.$ac_objext
6120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6121   (eval $ac_compile) 2>conftest.er1
6122   ac_status=$?
6123   grep -v '^ *+' conftest.er1 >conftest.err
6124   rm -f conftest.er1
6125   cat conftest.err >&5
6126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6127   (exit $ac_status); } &&
6128          { ac_try='test -z "$ac_c_werror_flag"
6129                          || test ! -s conftest.err'
6130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6131   (eval $ac_try) 2>&5
6132   ac_status=$?
6133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6134   (exit $ac_status); }; } &&
6135          { ac_try='test -s conftest.$ac_objext'
6136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6137   (eval $ac_try) 2>&5
6138   ac_status=$?
6139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140   (exit $ac_status); }; }; then
6141   ac_cv_type_u_int64_t=yes
6142 else
6143   echo "$as_me: failed program was:" >&5
6144 sed 's/^/| /' conftest.$ac_ext >&5
6145
6146 ac_cv_type_u_int64_t=no
6147 fi
6148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6149 fi
6150 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
6151 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
6152
6153     break
6154   done
6155 fi
6156 if test "$acx_cv_header_stdint" = stddef.h; then
6157   acx_cv_header_stdint_kind="(using manual detection)"
6158 fi
6159
6160 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
6161 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
6162 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
6163 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
6164 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
6165
6166 # ----------------- Summarize what we found so far
6167
6168 echo "$as_me:$LINENO: checking what to include in gstdint.h" >&5
6169 echo $ECHO_N "checking what to include in gstdint.h... $ECHO_C" >&6
6170
6171 case `$as_basename gstdint.h ||
6172 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
6173          Xgstdint.h : 'X\(//\)$' \| \
6174          Xgstdint.h : 'X\(/\)$' \| \
6175          .     : '\(.\)' 2>/dev/null ||
6176 echo X/gstdint.h |
6177     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6178           /^X\/\(\/\/\)$/{ s//\1/; q; }
6179           /^X\/\(\/\).*/{ s//\1/; q; }
6180           s/.*/./; q'` in
6181   stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
6182 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
6183   inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
6184 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
6185   *) ;;
6186 esac
6187
6188 echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
6189 echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
6190
6191 # ----------------- done included file, check C basic types --------
6192
6193 # Lacking an uintptr_t?  Test size of void *
6194 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
6195   stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
6196 echo $ECHO_N "checking for void *... $ECHO_C" >&6
6197 if test "${ac_cv_type_void_p+set}" = set; then
6198   echo $ECHO_N "(cached) $ECHO_C" >&6
6199 else
6200   cat >conftest.$ac_ext <<_ACEOF
6201 /* confdefs.h.  */
6202 _ACEOF
6203 cat confdefs.h >>conftest.$ac_ext
6204 cat >>conftest.$ac_ext <<_ACEOF
6205 /* end confdefs.h.  */
6206 $ac_includes_default
6207 int
6208 main ()
6209 {
6210 if ((void * *) 0)
6211   return 0;
6212 if (sizeof (void *))
6213   return 0;
6214   ;
6215   return 0;
6216 }
6217 _ACEOF
6218 rm -f conftest.$ac_objext
6219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6220   (eval $ac_compile) 2>conftest.er1
6221   ac_status=$?
6222   grep -v '^ *+' conftest.er1 >conftest.err
6223   rm -f conftest.er1
6224   cat conftest.err >&5
6225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6226   (exit $ac_status); } &&
6227          { ac_try='test -z "$ac_c_werror_flag"
6228                          || test ! -s conftest.err'
6229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6230   (eval $ac_try) 2>&5
6231   ac_status=$?
6232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6233   (exit $ac_status); }; } &&
6234          { ac_try='test -s conftest.$ac_objext'
6235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6236   (eval $ac_try) 2>&5
6237   ac_status=$?
6238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6239   (exit $ac_status); }; }; then
6240   ac_cv_type_void_p=yes
6241 else
6242   echo "$as_me: failed program was:" >&5
6243 sed 's/^/| /' conftest.$ac_ext >&5
6244
6245 ac_cv_type_void_p=no
6246 fi
6247 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6248 fi
6249 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
6250 echo "${ECHO_T}$ac_cv_type_void_p" >&6
6251
6252 echo "$as_me:$LINENO: checking size of void *" >&5
6253 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
6254 if test "${ac_cv_sizeof_void_p+set}" = set; then
6255   echo $ECHO_N "(cached) $ECHO_C" >&6
6256 else
6257   if test "$ac_cv_type_void_p" = yes; then
6258   # The cast to unsigned long works around a bug in the HP C Compiler
6259   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6260   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6261   # This bug is HP SR number 8606223364.
6262   if test "$cross_compiling" = yes; then
6263   # Depending upon the size, compute the lo and hi bounds.
6264 cat >conftest.$ac_ext <<_ACEOF
6265 /* confdefs.h.  */
6266 _ACEOF
6267 cat confdefs.h >>conftest.$ac_ext
6268 cat >>conftest.$ac_ext <<_ACEOF
6269 /* end confdefs.h.  */
6270 $ac_includes_default
6271 int
6272 main ()
6273 {
6274 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
6275 test_array [0] = 0
6276
6277   ;
6278   return 0;
6279 }
6280 _ACEOF
6281 rm -f conftest.$ac_objext
6282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6283   (eval $ac_compile) 2>conftest.er1
6284   ac_status=$?
6285   grep -v '^ *+' conftest.er1 >conftest.err
6286   rm -f conftest.er1
6287   cat conftest.err >&5
6288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289   (exit $ac_status); } &&
6290          { ac_try='test -z "$ac_c_werror_flag"
6291                          || test ! -s conftest.err'
6292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6293   (eval $ac_try) 2>&5
6294   ac_status=$?
6295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296   (exit $ac_status); }; } &&
6297          { ac_try='test -s conftest.$ac_objext'
6298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6299   (eval $ac_try) 2>&5
6300   ac_status=$?
6301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302   (exit $ac_status); }; }; then
6303   ac_lo=0 ac_mid=0
6304   while :; do
6305     cat >conftest.$ac_ext <<_ACEOF
6306 /* confdefs.h.  */
6307 _ACEOF
6308 cat confdefs.h >>conftest.$ac_ext
6309 cat >>conftest.$ac_ext <<_ACEOF
6310 /* end confdefs.h.  */
6311 $ac_includes_default
6312 int
6313 main ()
6314 {
6315 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
6316 test_array [0] = 0
6317
6318   ;
6319   return 0;
6320 }
6321 _ACEOF
6322 rm -f conftest.$ac_objext
6323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6324   (eval $ac_compile) 2>conftest.er1
6325   ac_status=$?
6326   grep -v '^ *+' conftest.er1 >conftest.err
6327   rm -f conftest.er1
6328   cat conftest.err >&5
6329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6330   (exit $ac_status); } &&
6331          { ac_try='test -z "$ac_c_werror_flag"
6332                          || test ! -s conftest.err'
6333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6334   (eval $ac_try) 2>&5
6335   ac_status=$?
6336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6337   (exit $ac_status); }; } &&
6338          { ac_try='test -s conftest.$ac_objext'
6339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6340   (eval $ac_try) 2>&5
6341   ac_status=$?
6342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6343   (exit $ac_status); }; }; then
6344   ac_hi=$ac_mid; break
6345 else
6346   echo "$as_me: failed program was:" >&5
6347 sed 's/^/| /' conftest.$ac_ext >&5
6348
6349 ac_lo=`expr $ac_mid + 1`
6350                     if test $ac_lo -le $ac_mid; then
6351                       ac_lo= ac_hi=
6352                       break
6353                     fi
6354                     ac_mid=`expr 2 '*' $ac_mid + 1`
6355 fi
6356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6357   done
6358 else
6359   echo "$as_me: failed program was:" >&5
6360 sed 's/^/| /' conftest.$ac_ext >&5
6361
6362 cat >conftest.$ac_ext <<_ACEOF
6363 /* confdefs.h.  */
6364 _ACEOF
6365 cat confdefs.h >>conftest.$ac_ext
6366 cat >>conftest.$ac_ext <<_ACEOF
6367 /* end confdefs.h.  */
6368 $ac_includes_default
6369 int
6370 main ()
6371 {
6372 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
6373 test_array [0] = 0
6374
6375   ;
6376   return 0;
6377 }
6378 _ACEOF
6379 rm -f conftest.$ac_objext
6380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6381   (eval $ac_compile) 2>conftest.er1
6382   ac_status=$?
6383   grep -v '^ *+' conftest.er1 >conftest.err
6384   rm -f conftest.er1
6385   cat conftest.err >&5
6386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6387   (exit $ac_status); } &&
6388          { ac_try='test -z "$ac_c_werror_flag"
6389                          || test ! -s conftest.err'
6390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6391   (eval $ac_try) 2>&5
6392   ac_status=$?
6393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6394   (exit $ac_status); }; } &&
6395          { ac_try='test -s conftest.$ac_objext'
6396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6397   (eval $ac_try) 2>&5
6398   ac_status=$?
6399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400   (exit $ac_status); }; }; then
6401   ac_hi=-1 ac_mid=-1
6402   while :; do
6403     cat >conftest.$ac_ext <<_ACEOF
6404 /* confdefs.h.  */
6405 _ACEOF
6406 cat confdefs.h >>conftest.$ac_ext
6407 cat >>conftest.$ac_ext <<_ACEOF
6408 /* end confdefs.h.  */
6409 $ac_includes_default
6410 int
6411 main ()
6412 {
6413 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
6414 test_array [0] = 0
6415
6416   ;
6417   return 0;
6418 }
6419 _ACEOF
6420 rm -f conftest.$ac_objext
6421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6422   (eval $ac_compile) 2>conftest.er1
6423   ac_status=$?
6424   grep -v '^ *+' conftest.er1 >conftest.err
6425   rm -f conftest.er1
6426   cat conftest.err >&5
6427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6428   (exit $ac_status); } &&
6429          { ac_try='test -z "$ac_c_werror_flag"
6430                          || test ! -s conftest.err'
6431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6432   (eval $ac_try) 2>&5
6433   ac_status=$?
6434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6435   (exit $ac_status); }; } &&
6436          { ac_try='test -s conftest.$ac_objext'
6437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6438   (eval $ac_try) 2>&5
6439   ac_status=$?
6440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6441   (exit $ac_status); }; }; then
6442   ac_lo=$ac_mid; break
6443 else
6444   echo "$as_me: failed program was:" >&5
6445 sed 's/^/| /' conftest.$ac_ext >&5
6446
6447 ac_hi=`expr '(' $ac_mid ')' - 1`
6448                        if test $ac_mid -le $ac_hi; then
6449                          ac_lo= ac_hi=
6450                          break
6451                        fi
6452                        ac_mid=`expr 2 '*' $ac_mid`
6453 fi
6454 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6455   done
6456 else
6457   echo "$as_me: failed program was:" >&5
6458 sed 's/^/| /' conftest.$ac_ext >&5
6459
6460 ac_lo= ac_hi=
6461 fi
6462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6463 fi
6464 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6465 # Binary search between lo and hi bounds.
6466 while test "x$ac_lo" != "x$ac_hi"; do
6467   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6468   cat >conftest.$ac_ext <<_ACEOF
6469 /* confdefs.h.  */
6470 _ACEOF
6471 cat confdefs.h >>conftest.$ac_ext
6472 cat >>conftest.$ac_ext <<_ACEOF
6473 /* end confdefs.h.  */
6474 $ac_includes_default
6475 int
6476 main ()
6477 {
6478 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
6479 test_array [0] = 0
6480
6481   ;
6482   return 0;
6483 }
6484 _ACEOF
6485 rm -f conftest.$ac_objext
6486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6487   (eval $ac_compile) 2>conftest.er1
6488   ac_status=$?
6489   grep -v '^ *+' conftest.er1 >conftest.err
6490   rm -f conftest.er1
6491   cat conftest.err >&5
6492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6493   (exit $ac_status); } &&
6494          { ac_try='test -z "$ac_c_werror_flag"
6495                          || test ! -s conftest.err'
6496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6497   (eval $ac_try) 2>&5
6498   ac_status=$?
6499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6500   (exit $ac_status); }; } &&
6501          { ac_try='test -s conftest.$ac_objext'
6502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6503   (eval $ac_try) 2>&5
6504   ac_status=$?
6505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6506   (exit $ac_status); }; }; then
6507   ac_hi=$ac_mid
6508 else
6509   echo "$as_me: failed program was:" >&5
6510 sed 's/^/| /' conftest.$ac_ext >&5
6511
6512 ac_lo=`expr '(' $ac_mid ')' + 1`
6513 fi
6514 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6515 done
6516 case $ac_lo in
6517 ?*) ac_cv_sizeof_void_p=$ac_lo;;
6518 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
6519 See \`config.log' for more details." >&5
6520 echo "$as_me: error: cannot compute sizeof (void *), 77
6521 See \`config.log' for more details." >&2;}
6522    { (exit 1); exit 1; }; } ;;
6523 esac
6524 else
6525   if test "$cross_compiling" = yes; then
6526   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6527 See \`config.log' for more details." >&5
6528 echo "$as_me: error: cannot run test program while cross compiling
6529 See \`config.log' for more details." >&2;}
6530    { (exit 1); exit 1; }; }
6531 else
6532   cat >conftest.$ac_ext <<_ACEOF
6533 /* confdefs.h.  */
6534 _ACEOF
6535 cat confdefs.h >>conftest.$ac_ext
6536 cat >>conftest.$ac_ext <<_ACEOF
6537 /* end confdefs.h.  */
6538 $ac_includes_default
6539 long longval () { return (long) (sizeof (void *)); }
6540 unsigned long ulongval () { return (long) (sizeof (void *)); }
6541 #include <stdio.h>
6542 #include <stdlib.h>
6543 int
6544 main ()
6545 {
6546
6547   FILE *f = fopen ("conftest.val", "w");
6548   if (! f)
6549     exit (1);
6550   if (((long) (sizeof (void *))) < 0)
6551     {
6552       long i = longval ();
6553       if (i != ((long) (sizeof (void *))))
6554         exit (1);
6555       fprintf (f, "%ld\n", i);
6556     }
6557   else
6558     {
6559       unsigned long i = ulongval ();
6560       if (i != ((long) (sizeof (void *))))
6561         exit (1);
6562       fprintf (f, "%lu\n", i);
6563     }
6564   exit (ferror (f) || fclose (f) != 0);
6565
6566   ;
6567   return 0;
6568 }
6569 _ACEOF
6570 rm -f conftest$ac_exeext
6571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6572   (eval $ac_link) 2>&5
6573   ac_status=$?
6574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6575   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6577   (eval $ac_try) 2>&5
6578   ac_status=$?
6579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6580   (exit $ac_status); }; }; then
6581   ac_cv_sizeof_void_p=`cat conftest.val`
6582 else
6583   echo "$as_me: program exited with status $ac_status" >&5
6584 echo "$as_me: failed program was:" >&5
6585 sed 's/^/| /' conftest.$ac_ext >&5
6586
6587 ( exit $ac_status )
6588 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
6589 See \`config.log' for more details." >&5
6590 echo "$as_me: error: cannot compute sizeof (void *), 77
6591 See \`config.log' for more details." >&2;}
6592    { (exit 1); exit 1; }; }
6593 fi
6594 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6595 fi
6596 fi
6597 rm -f conftest.val
6598 else
6599   ac_cv_sizeof_void_p=0
6600 fi
6601 fi
6602 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
6603 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
6604 cat >>confdefs.h <<_ACEOF
6605 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6606 _ACEOF
6607
6608  ;;
6609 esac
6610
6611 # Lacking an uint64_t?  Test size of long
6612 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
6613   stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
6614 echo $ECHO_N "checking for long... $ECHO_C" >&6
6615 if test "${ac_cv_type_long+set}" = set; then
6616   echo $ECHO_N "(cached) $ECHO_C" >&6
6617 else
6618   cat >conftest.$ac_ext <<_ACEOF
6619 /* confdefs.h.  */
6620 _ACEOF
6621 cat confdefs.h >>conftest.$ac_ext
6622 cat >>conftest.$ac_ext <<_ACEOF
6623 /* end confdefs.h.  */
6624 $ac_includes_default
6625 int
6626 main ()
6627 {
6628 if ((long *) 0)
6629   return 0;
6630 if (sizeof (long))
6631   return 0;
6632   ;
6633   return 0;
6634 }
6635 _ACEOF
6636 rm -f conftest.$ac_objext
6637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6638   (eval $ac_compile) 2>conftest.er1
6639   ac_status=$?
6640   grep -v '^ *+' conftest.er1 >conftest.err
6641   rm -f conftest.er1
6642   cat conftest.err >&5
6643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6644   (exit $ac_status); } &&
6645          { ac_try='test -z "$ac_c_werror_flag"
6646                          || test ! -s conftest.err'
6647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6648   (eval $ac_try) 2>&5
6649   ac_status=$?
6650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6651   (exit $ac_status); }; } &&
6652          { ac_try='test -s conftest.$ac_objext'
6653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6654   (eval $ac_try) 2>&5
6655   ac_status=$?
6656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6657   (exit $ac_status); }; }; then
6658   ac_cv_type_long=yes
6659 else
6660   echo "$as_me: failed program was:" >&5
6661 sed 's/^/| /' conftest.$ac_ext >&5
6662
6663 ac_cv_type_long=no
6664 fi
6665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6666 fi
6667 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6668 echo "${ECHO_T}$ac_cv_type_long" >&6
6669
6670 echo "$as_me:$LINENO: checking size of long" >&5
6671 echo $ECHO_N "checking size of long... $ECHO_C" >&6
6672 if test "${ac_cv_sizeof_long+set}" = set; then
6673   echo $ECHO_N "(cached) $ECHO_C" >&6
6674 else
6675   if test "$ac_cv_type_long" = yes; then
6676   # The cast to unsigned long works around a bug in the HP C Compiler
6677   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6678   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6679   # This bug is HP SR number 8606223364.
6680   if test "$cross_compiling" = yes; then
6681   # Depending upon the size, compute the lo and hi bounds.
6682 cat >conftest.$ac_ext <<_ACEOF
6683 /* confdefs.h.  */
6684 _ACEOF
6685 cat confdefs.h >>conftest.$ac_ext
6686 cat >>conftest.$ac_ext <<_ACEOF
6687 /* end confdefs.h.  */
6688 $ac_includes_default
6689 int
6690 main ()
6691 {
6692 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6693 test_array [0] = 0
6694
6695   ;
6696   return 0;
6697 }
6698 _ACEOF
6699 rm -f conftest.$ac_objext
6700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6701   (eval $ac_compile) 2>conftest.er1
6702   ac_status=$?
6703   grep -v '^ *+' conftest.er1 >conftest.err
6704   rm -f conftest.er1
6705   cat conftest.err >&5
6706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6707   (exit $ac_status); } &&
6708          { ac_try='test -z "$ac_c_werror_flag"
6709                          || test ! -s conftest.err'
6710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6711   (eval $ac_try) 2>&5
6712   ac_status=$?
6713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714   (exit $ac_status); }; } &&
6715          { ac_try='test -s conftest.$ac_objext'
6716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6717   (eval $ac_try) 2>&5
6718   ac_status=$?
6719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6720   (exit $ac_status); }; }; then
6721   ac_lo=0 ac_mid=0
6722   while :; do
6723     cat >conftest.$ac_ext <<_ACEOF
6724 /* confdefs.h.  */
6725 _ACEOF
6726 cat confdefs.h >>conftest.$ac_ext
6727 cat >>conftest.$ac_ext <<_ACEOF
6728 /* end confdefs.h.  */
6729 $ac_includes_default
6730 int
6731 main ()
6732 {
6733 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6734 test_array [0] = 0
6735
6736   ;
6737   return 0;
6738 }
6739 _ACEOF
6740 rm -f conftest.$ac_objext
6741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6742   (eval $ac_compile) 2>conftest.er1
6743   ac_status=$?
6744   grep -v '^ *+' conftest.er1 >conftest.err
6745   rm -f conftest.er1
6746   cat conftest.err >&5
6747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6748   (exit $ac_status); } &&
6749          { ac_try='test -z "$ac_c_werror_flag"
6750                          || test ! -s conftest.err'
6751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6752   (eval $ac_try) 2>&5
6753   ac_status=$?
6754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6755   (exit $ac_status); }; } &&
6756          { ac_try='test -s conftest.$ac_objext'
6757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6758   (eval $ac_try) 2>&5
6759   ac_status=$?
6760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6761   (exit $ac_status); }; }; then
6762   ac_hi=$ac_mid; break
6763 else
6764   echo "$as_me: failed program was:" >&5
6765 sed 's/^/| /' conftest.$ac_ext >&5
6766
6767 ac_lo=`expr $ac_mid + 1`
6768                     if test $ac_lo -le $ac_mid; then
6769                       ac_lo= ac_hi=
6770                       break
6771                     fi
6772                     ac_mid=`expr 2 '*' $ac_mid + 1`
6773 fi
6774 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6775   done
6776 else
6777   echo "$as_me: failed program was:" >&5
6778 sed 's/^/| /' conftest.$ac_ext >&5
6779
6780 cat >conftest.$ac_ext <<_ACEOF
6781 /* confdefs.h.  */
6782 _ACEOF
6783 cat confdefs.h >>conftest.$ac_ext
6784 cat >>conftest.$ac_ext <<_ACEOF
6785 /* end confdefs.h.  */
6786 $ac_includes_default
6787 int
6788 main ()
6789 {
6790 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6791 test_array [0] = 0
6792
6793   ;
6794   return 0;
6795 }
6796 _ACEOF
6797 rm -f conftest.$ac_objext
6798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6799   (eval $ac_compile) 2>conftest.er1
6800   ac_status=$?
6801   grep -v '^ *+' conftest.er1 >conftest.err
6802   rm -f conftest.er1
6803   cat conftest.err >&5
6804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6805   (exit $ac_status); } &&
6806          { ac_try='test -z "$ac_c_werror_flag"
6807                          || test ! -s conftest.err'
6808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6809   (eval $ac_try) 2>&5
6810   ac_status=$?
6811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6812   (exit $ac_status); }; } &&
6813          { ac_try='test -s conftest.$ac_objext'
6814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6815   (eval $ac_try) 2>&5
6816   ac_status=$?
6817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6818   (exit $ac_status); }; }; then
6819   ac_hi=-1 ac_mid=-1
6820   while :; do
6821     cat >conftest.$ac_ext <<_ACEOF
6822 /* confdefs.h.  */
6823 _ACEOF
6824 cat confdefs.h >>conftest.$ac_ext
6825 cat >>conftest.$ac_ext <<_ACEOF
6826 /* end confdefs.h.  */
6827 $ac_includes_default
6828 int
6829 main ()
6830 {
6831 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6832 test_array [0] = 0
6833
6834   ;
6835   return 0;
6836 }
6837 _ACEOF
6838 rm -f conftest.$ac_objext
6839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6840   (eval $ac_compile) 2>conftest.er1
6841   ac_status=$?
6842   grep -v '^ *+' conftest.er1 >conftest.err
6843   rm -f conftest.er1
6844   cat conftest.err >&5
6845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6846   (exit $ac_status); } &&
6847          { ac_try='test -z "$ac_c_werror_flag"
6848                          || test ! -s conftest.err'
6849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6850   (eval $ac_try) 2>&5
6851   ac_status=$?
6852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6853   (exit $ac_status); }; } &&
6854          { ac_try='test -s conftest.$ac_objext'
6855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6856   (eval $ac_try) 2>&5
6857   ac_status=$?
6858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6859   (exit $ac_status); }; }; then
6860   ac_lo=$ac_mid; break
6861 else
6862   echo "$as_me: failed program was:" >&5
6863 sed 's/^/| /' conftest.$ac_ext >&5
6864
6865 ac_hi=`expr '(' $ac_mid ')' - 1`
6866                        if test $ac_mid -le $ac_hi; then
6867                          ac_lo= ac_hi=
6868                          break
6869                        fi
6870                        ac_mid=`expr 2 '*' $ac_mid`
6871 fi
6872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6873   done
6874 else
6875   echo "$as_me: failed program was:" >&5
6876 sed 's/^/| /' conftest.$ac_ext >&5
6877
6878 ac_lo= ac_hi=
6879 fi
6880 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6881 fi
6882 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6883 # Binary search between lo and hi bounds.
6884 while test "x$ac_lo" != "x$ac_hi"; do
6885   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6886   cat >conftest.$ac_ext <<_ACEOF
6887 /* confdefs.h.  */
6888 _ACEOF
6889 cat confdefs.h >>conftest.$ac_ext
6890 cat >>conftest.$ac_ext <<_ACEOF
6891 /* end confdefs.h.  */
6892 $ac_includes_default
6893 int
6894 main ()
6895 {
6896 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6897 test_array [0] = 0
6898
6899   ;
6900   return 0;
6901 }
6902 _ACEOF
6903 rm -f conftest.$ac_objext
6904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6905   (eval $ac_compile) 2>conftest.er1
6906   ac_status=$?
6907   grep -v '^ *+' conftest.er1 >conftest.err
6908   rm -f conftest.er1
6909   cat conftest.err >&5
6910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6911   (exit $ac_status); } &&
6912          { ac_try='test -z "$ac_c_werror_flag"
6913                          || test ! -s conftest.err'
6914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6915   (eval $ac_try) 2>&5
6916   ac_status=$?
6917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6918   (exit $ac_status); }; } &&
6919          { ac_try='test -s conftest.$ac_objext'
6920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6921   (eval $ac_try) 2>&5
6922   ac_status=$?
6923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6924   (exit $ac_status); }; }; then
6925   ac_hi=$ac_mid
6926 else
6927   echo "$as_me: failed program was:" >&5
6928 sed 's/^/| /' conftest.$ac_ext >&5
6929
6930 ac_lo=`expr '(' $ac_mid ')' + 1`
6931 fi
6932 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6933 done
6934 case $ac_lo in
6935 ?*) ac_cv_sizeof_long=$ac_lo;;
6936 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6937 See \`config.log' for more details." >&5
6938 echo "$as_me: error: cannot compute sizeof (long), 77
6939 See \`config.log' for more details." >&2;}
6940    { (exit 1); exit 1; }; } ;;
6941 esac
6942 else
6943   if test "$cross_compiling" = yes; then
6944   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6945 See \`config.log' for more details." >&5
6946 echo "$as_me: error: cannot run test program while cross compiling
6947 See \`config.log' for more details." >&2;}
6948    { (exit 1); exit 1; }; }
6949 else
6950   cat >conftest.$ac_ext <<_ACEOF
6951 /* confdefs.h.  */
6952 _ACEOF
6953 cat confdefs.h >>conftest.$ac_ext
6954 cat >>conftest.$ac_ext <<_ACEOF
6955 /* end confdefs.h.  */
6956 $ac_includes_default
6957 long longval () { return (long) (sizeof (long)); }
6958 unsigned long ulongval () { return (long) (sizeof (long)); }
6959 #include <stdio.h>
6960 #include <stdlib.h>
6961 int
6962 main ()
6963 {
6964
6965   FILE *f = fopen ("conftest.val", "w");
6966   if (! f)
6967     exit (1);
6968   if (((long) (sizeof (long))) < 0)
6969     {
6970       long i = longval ();
6971       if (i != ((long) (sizeof (long))))
6972         exit (1);
6973       fprintf (f, "%ld\n", i);
6974     }
6975   else
6976     {
6977       unsigned long i = ulongval ();
6978       if (i != ((long) (sizeof (long))))
6979         exit (1);
6980       fprintf (f, "%lu\n", i);
6981     }
6982   exit (ferror (f) || fclose (f) != 0);
6983
6984   ;
6985   return 0;
6986 }
6987 _ACEOF
6988 rm -f conftest$ac_exeext
6989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6990   (eval $ac_link) 2>&5
6991   ac_status=$?
6992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6993   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6995   (eval $ac_try) 2>&5
6996   ac_status=$?
6997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6998   (exit $ac_status); }; }; then
6999   ac_cv_sizeof_long=`cat conftest.val`
7000 else
7001   echo "$as_me: program exited with status $ac_status" >&5
7002 echo "$as_me: failed program was:" >&5
7003 sed 's/^/| /' conftest.$ac_ext >&5
7004
7005 ( exit $ac_status )
7006 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7007 See \`config.log' for more details." >&5
7008 echo "$as_me: error: cannot compute sizeof (long), 77
7009 See \`config.log' for more details." >&2;}
7010    { (exit 1); exit 1; }; }
7011 fi
7012 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7013 fi
7014 fi
7015 rm -f conftest.val
7016 else
7017   ac_cv_sizeof_long=0
7018 fi
7019 fi
7020 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7021 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7022 cat >>confdefs.h <<_ACEOF
7023 #define SIZEOF_LONG $ac_cv_sizeof_long
7024 _ACEOF
7025
7026  ;;
7027 esac
7028
7029 if test $acx_cv_header_stdint = stddef.h; then
7030   # Lacking a good header?  Test size of everything and deduce all types.
7031   echo "$as_me:$LINENO: checking for int" >&5
7032 echo $ECHO_N "checking for int... $ECHO_C" >&6
7033 if test "${ac_cv_type_int+set}" = set; then
7034   echo $ECHO_N "(cached) $ECHO_C" >&6
7035 else
7036   cat >conftest.$ac_ext <<_ACEOF
7037 /* confdefs.h.  */
7038 _ACEOF
7039 cat confdefs.h >>conftest.$ac_ext
7040 cat >>conftest.$ac_ext <<_ACEOF
7041 /* end confdefs.h.  */
7042 $ac_includes_default
7043 int
7044 main ()
7045 {
7046 if ((int *) 0)
7047   return 0;
7048 if (sizeof (int))
7049   return 0;
7050   ;
7051   return 0;
7052 }
7053 _ACEOF
7054 rm -f conftest.$ac_objext
7055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7056   (eval $ac_compile) 2>conftest.er1
7057   ac_status=$?
7058   grep -v '^ *+' conftest.er1 >conftest.err
7059   rm -f conftest.er1
7060   cat conftest.err >&5
7061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7062   (exit $ac_status); } &&
7063          { ac_try='test -z "$ac_c_werror_flag"
7064                          || test ! -s conftest.err'
7065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7066   (eval $ac_try) 2>&5
7067   ac_status=$?
7068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7069   (exit $ac_status); }; } &&
7070          { ac_try='test -s conftest.$ac_objext'
7071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7072   (eval $ac_try) 2>&5
7073   ac_status=$?
7074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7075   (exit $ac_status); }; }; then
7076   ac_cv_type_int=yes
7077 else
7078   echo "$as_me: failed program was:" >&5
7079 sed 's/^/| /' conftest.$ac_ext >&5
7080
7081 ac_cv_type_int=no
7082 fi
7083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7084 fi
7085 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
7086 echo "${ECHO_T}$ac_cv_type_int" >&6
7087
7088 echo "$as_me:$LINENO: checking size of int" >&5
7089 echo $ECHO_N "checking size of int... $ECHO_C" >&6
7090 if test "${ac_cv_sizeof_int+set}" = set; then
7091   echo $ECHO_N "(cached) $ECHO_C" >&6
7092 else
7093   if test "$ac_cv_type_int" = yes; then
7094   # The cast to unsigned long works around a bug in the HP C Compiler
7095   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7096   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7097   # This bug is HP SR number 8606223364.
7098   if test "$cross_compiling" = yes; then
7099   # Depending upon the size, compute the lo and hi bounds.
7100 cat >conftest.$ac_ext <<_ACEOF
7101 /* confdefs.h.  */
7102 _ACEOF
7103 cat confdefs.h >>conftest.$ac_ext
7104 cat >>conftest.$ac_ext <<_ACEOF
7105 /* end confdefs.h.  */
7106 $ac_includes_default
7107 int
7108 main ()
7109 {
7110 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
7111 test_array [0] = 0
7112
7113   ;
7114   return 0;
7115 }
7116 _ACEOF
7117 rm -f conftest.$ac_objext
7118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7119   (eval $ac_compile) 2>conftest.er1
7120   ac_status=$?
7121   grep -v '^ *+' conftest.er1 >conftest.err
7122   rm -f conftest.er1
7123   cat conftest.err >&5
7124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7125   (exit $ac_status); } &&
7126          { ac_try='test -z "$ac_c_werror_flag"
7127                          || test ! -s conftest.err'
7128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7129   (eval $ac_try) 2>&5
7130   ac_status=$?
7131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7132   (exit $ac_status); }; } &&
7133          { ac_try='test -s conftest.$ac_objext'
7134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7135   (eval $ac_try) 2>&5
7136   ac_status=$?
7137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7138   (exit $ac_status); }; }; then
7139   ac_lo=0 ac_mid=0
7140   while :; do
7141     cat >conftest.$ac_ext <<_ACEOF
7142 /* confdefs.h.  */
7143 _ACEOF
7144 cat confdefs.h >>conftest.$ac_ext
7145 cat >>conftest.$ac_ext <<_ACEOF
7146 /* end confdefs.h.  */
7147 $ac_includes_default
7148 int
7149 main ()
7150 {
7151 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
7152 test_array [0] = 0
7153
7154   ;
7155   return 0;
7156 }
7157 _ACEOF
7158 rm -f conftest.$ac_objext
7159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7160   (eval $ac_compile) 2>conftest.er1
7161   ac_status=$?
7162   grep -v '^ *+' conftest.er1 >conftest.err
7163   rm -f conftest.er1
7164   cat conftest.err >&5
7165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7166   (exit $ac_status); } &&
7167          { ac_try='test -z "$ac_c_werror_flag"
7168                          || test ! -s conftest.err'
7169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7170   (eval $ac_try) 2>&5
7171   ac_status=$?
7172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7173   (exit $ac_status); }; } &&
7174          { ac_try='test -s conftest.$ac_objext'
7175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7176   (eval $ac_try) 2>&5
7177   ac_status=$?
7178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7179   (exit $ac_status); }; }; then
7180   ac_hi=$ac_mid; break
7181 else
7182   echo "$as_me: failed program was:" >&5
7183 sed 's/^/| /' conftest.$ac_ext >&5
7184
7185 ac_lo=`expr $ac_mid + 1`
7186                     if test $ac_lo -le $ac_mid; then
7187                       ac_lo= ac_hi=
7188                       break
7189                     fi
7190                     ac_mid=`expr 2 '*' $ac_mid + 1`
7191 fi
7192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7193   done
7194 else
7195   echo "$as_me: failed program was:" >&5
7196 sed 's/^/| /' conftest.$ac_ext >&5
7197
7198 cat >conftest.$ac_ext <<_ACEOF
7199 /* confdefs.h.  */
7200 _ACEOF
7201 cat confdefs.h >>conftest.$ac_ext
7202 cat >>conftest.$ac_ext <<_ACEOF
7203 /* end confdefs.h.  */
7204 $ac_includes_default
7205 int
7206 main ()
7207 {
7208 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
7209 test_array [0] = 0
7210
7211   ;
7212   return 0;
7213 }
7214 _ACEOF
7215 rm -f conftest.$ac_objext
7216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7217   (eval $ac_compile) 2>conftest.er1
7218   ac_status=$?
7219   grep -v '^ *+' conftest.er1 >conftest.err
7220   rm -f conftest.er1
7221   cat conftest.err >&5
7222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7223   (exit $ac_status); } &&
7224          { ac_try='test -z "$ac_c_werror_flag"
7225                          || test ! -s conftest.err'
7226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7227   (eval $ac_try) 2>&5
7228   ac_status=$?
7229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7230   (exit $ac_status); }; } &&
7231          { ac_try='test -s conftest.$ac_objext'
7232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7233   (eval $ac_try) 2>&5
7234   ac_status=$?
7235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7236   (exit $ac_status); }; }; then
7237   ac_hi=-1 ac_mid=-1
7238   while :; do
7239     cat >conftest.$ac_ext <<_ACEOF
7240 /* confdefs.h.  */
7241 _ACEOF
7242 cat confdefs.h >>conftest.$ac_ext
7243 cat >>conftest.$ac_ext <<_ACEOF
7244 /* end confdefs.h.  */
7245 $ac_includes_default
7246 int
7247 main ()
7248 {
7249 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
7250 test_array [0] = 0
7251
7252   ;
7253   return 0;
7254 }
7255 _ACEOF
7256 rm -f conftest.$ac_objext
7257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7258   (eval $ac_compile) 2>conftest.er1
7259   ac_status=$?
7260   grep -v '^ *+' conftest.er1 >conftest.err
7261   rm -f conftest.er1
7262   cat conftest.err >&5
7263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7264   (exit $ac_status); } &&
7265          { ac_try='test -z "$ac_c_werror_flag"
7266                          || test ! -s conftest.err'
7267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7268   (eval $ac_try) 2>&5
7269   ac_status=$?
7270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7271   (exit $ac_status); }; } &&
7272          { ac_try='test -s conftest.$ac_objext'
7273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7274   (eval $ac_try) 2>&5
7275   ac_status=$?
7276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7277   (exit $ac_status); }; }; then
7278   ac_lo=$ac_mid; break
7279 else
7280   echo "$as_me: failed program was:" >&5
7281 sed 's/^/| /' conftest.$ac_ext >&5
7282
7283 ac_hi=`expr '(' $ac_mid ')' - 1`
7284                        if test $ac_mid -le $ac_hi; then
7285                          ac_lo= ac_hi=
7286                          break
7287                        fi
7288                        ac_mid=`expr 2 '*' $ac_mid`
7289 fi
7290 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7291   done
7292 else
7293   echo "$as_me: failed program was:" >&5
7294 sed 's/^/| /' conftest.$ac_ext >&5
7295
7296 ac_lo= ac_hi=
7297 fi
7298 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7299 fi
7300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7301 # Binary search between lo and hi bounds.
7302 while test "x$ac_lo" != "x$ac_hi"; do
7303   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7304   cat >conftest.$ac_ext <<_ACEOF
7305 /* confdefs.h.  */
7306 _ACEOF
7307 cat confdefs.h >>conftest.$ac_ext
7308 cat >>conftest.$ac_ext <<_ACEOF
7309 /* end confdefs.h.  */
7310 $ac_includes_default
7311 int
7312 main ()
7313 {
7314 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
7315 test_array [0] = 0
7316
7317   ;
7318   return 0;
7319 }
7320 _ACEOF
7321 rm -f conftest.$ac_objext
7322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7323   (eval $ac_compile) 2>conftest.er1
7324   ac_status=$?
7325   grep -v '^ *+' conftest.er1 >conftest.err
7326   rm -f conftest.er1
7327   cat conftest.err >&5
7328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7329   (exit $ac_status); } &&
7330          { ac_try='test -z "$ac_c_werror_flag"
7331                          || test ! -s conftest.err'
7332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7333   (eval $ac_try) 2>&5
7334   ac_status=$?
7335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7336   (exit $ac_status); }; } &&
7337          { ac_try='test -s conftest.$ac_objext'
7338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7339   (eval $ac_try) 2>&5
7340   ac_status=$?
7341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7342   (exit $ac_status); }; }; then
7343   ac_hi=$ac_mid
7344 else
7345   echo "$as_me: failed program was:" >&5
7346 sed 's/^/| /' conftest.$ac_ext >&5
7347
7348 ac_lo=`expr '(' $ac_mid ')' + 1`
7349 fi
7350 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7351 done
7352 case $ac_lo in
7353 ?*) ac_cv_sizeof_int=$ac_lo;;
7354 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
7355 See \`config.log' for more details." >&5
7356 echo "$as_me: error: cannot compute sizeof (int), 77
7357 See \`config.log' for more details." >&2;}
7358    { (exit 1); exit 1; }; } ;;
7359 esac
7360 else
7361   if test "$cross_compiling" = yes; then
7362   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7363 See \`config.log' for more details." >&5
7364 echo "$as_me: error: cannot run test program while cross compiling
7365 See \`config.log' for more details." >&2;}
7366    { (exit 1); exit 1; }; }
7367 else
7368   cat >conftest.$ac_ext <<_ACEOF
7369 /* confdefs.h.  */
7370 _ACEOF
7371 cat confdefs.h >>conftest.$ac_ext
7372 cat >>conftest.$ac_ext <<_ACEOF
7373 /* end confdefs.h.  */
7374 $ac_includes_default
7375 long longval () { return (long) (sizeof (int)); }
7376 unsigned long ulongval () { return (long) (sizeof (int)); }
7377 #include <stdio.h>
7378 #include <stdlib.h>
7379 int
7380 main ()
7381 {
7382
7383   FILE *f = fopen ("conftest.val", "w");
7384   if (! f)
7385     exit (1);
7386   if (((long) (sizeof (int))) < 0)
7387     {
7388       long i = longval ();
7389       if (i != ((long) (sizeof (int))))
7390         exit (1);
7391       fprintf (f, "%ld\n", i);
7392     }
7393   else
7394     {
7395       unsigned long i = ulongval ();
7396       if (i != ((long) (sizeof (int))))
7397         exit (1);
7398       fprintf (f, "%lu\n", i);
7399     }
7400   exit (ferror (f) || fclose (f) != 0);
7401
7402   ;
7403   return 0;
7404 }
7405 _ACEOF
7406 rm -f conftest$ac_exeext
7407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7408   (eval $ac_link) 2>&5
7409   ac_status=$?
7410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7411   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7413   (eval $ac_try) 2>&5
7414   ac_status=$?
7415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7416   (exit $ac_status); }; }; then
7417   ac_cv_sizeof_int=`cat conftest.val`
7418 else
7419   echo "$as_me: program exited with status $ac_status" >&5
7420 echo "$as_me: failed program was:" >&5
7421 sed 's/^/| /' conftest.$ac_ext >&5
7422
7423 ( exit $ac_status )
7424 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
7425 See \`config.log' for more details." >&5
7426 echo "$as_me: error: cannot compute sizeof (int), 77
7427 See \`config.log' for more details." >&2;}
7428    { (exit 1); exit 1; }; }
7429 fi
7430 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7431 fi
7432 fi
7433 rm -f conftest.val
7434 else
7435   ac_cv_sizeof_int=0
7436 fi
7437 fi
7438 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
7439 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
7440 cat >>confdefs.h <<_ACEOF
7441 #define SIZEOF_INT $ac_cv_sizeof_int
7442 _ACEOF
7443
7444
7445   echo "$as_me:$LINENO: checking for short" >&5
7446 echo $ECHO_N "checking for short... $ECHO_C" >&6
7447 if test "${ac_cv_type_short+set}" = set; then
7448   echo $ECHO_N "(cached) $ECHO_C" >&6
7449 else
7450   cat >conftest.$ac_ext <<_ACEOF
7451 /* confdefs.h.  */
7452 _ACEOF
7453 cat confdefs.h >>conftest.$ac_ext
7454 cat >>conftest.$ac_ext <<_ACEOF
7455 /* end confdefs.h.  */
7456 $ac_includes_default
7457 int
7458 main ()
7459 {
7460 if ((short *) 0)
7461   return 0;
7462 if (sizeof (short))
7463   return 0;
7464   ;
7465   return 0;
7466 }
7467 _ACEOF
7468 rm -f conftest.$ac_objext
7469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7470   (eval $ac_compile) 2>conftest.er1
7471   ac_status=$?
7472   grep -v '^ *+' conftest.er1 >conftest.err
7473   rm -f conftest.er1
7474   cat conftest.err >&5
7475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7476   (exit $ac_status); } &&
7477          { ac_try='test -z "$ac_c_werror_flag"
7478                          || test ! -s conftest.err'
7479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7480   (eval $ac_try) 2>&5
7481   ac_status=$?
7482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7483   (exit $ac_status); }; } &&
7484          { ac_try='test -s conftest.$ac_objext'
7485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7486   (eval $ac_try) 2>&5
7487   ac_status=$?
7488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7489   (exit $ac_status); }; }; then
7490   ac_cv_type_short=yes
7491 else
7492   echo "$as_me: failed program was:" >&5
7493 sed 's/^/| /' conftest.$ac_ext >&5
7494
7495 ac_cv_type_short=no
7496 fi
7497 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7498 fi
7499 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
7500 echo "${ECHO_T}$ac_cv_type_short" >&6
7501
7502 echo "$as_me:$LINENO: checking size of short" >&5
7503 echo $ECHO_N "checking size of short... $ECHO_C" >&6
7504 if test "${ac_cv_sizeof_short+set}" = set; then
7505   echo $ECHO_N "(cached) $ECHO_C" >&6
7506 else
7507   if test "$ac_cv_type_short" = yes; then
7508   # The cast to unsigned long works around a bug in the HP C Compiler
7509   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7510   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7511   # This bug is HP SR number 8606223364.
7512   if test "$cross_compiling" = yes; then
7513   # Depending upon the size, compute the lo and hi bounds.
7514 cat >conftest.$ac_ext <<_ACEOF
7515 /* confdefs.h.  */
7516 _ACEOF
7517 cat confdefs.h >>conftest.$ac_ext
7518 cat >>conftest.$ac_ext <<_ACEOF
7519 /* end confdefs.h.  */
7520 $ac_includes_default
7521 int
7522 main ()
7523 {
7524 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
7525 test_array [0] = 0
7526
7527   ;
7528   return 0;
7529 }
7530 _ACEOF
7531 rm -f conftest.$ac_objext
7532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7533   (eval $ac_compile) 2>conftest.er1
7534   ac_status=$?
7535   grep -v '^ *+' conftest.er1 >conftest.err
7536   rm -f conftest.er1
7537   cat conftest.err >&5
7538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7539   (exit $ac_status); } &&
7540          { ac_try='test -z "$ac_c_werror_flag"
7541                          || test ! -s conftest.err'
7542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7543   (eval $ac_try) 2>&5
7544   ac_status=$?
7545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7546   (exit $ac_status); }; } &&
7547          { ac_try='test -s conftest.$ac_objext'
7548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7549   (eval $ac_try) 2>&5
7550   ac_status=$?
7551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7552   (exit $ac_status); }; }; then
7553   ac_lo=0 ac_mid=0
7554   while :; do
7555     cat >conftest.$ac_ext <<_ACEOF
7556 /* confdefs.h.  */
7557 _ACEOF
7558 cat confdefs.h >>conftest.$ac_ext
7559 cat >>conftest.$ac_ext <<_ACEOF
7560 /* end confdefs.h.  */
7561 $ac_includes_default
7562 int
7563 main ()
7564 {
7565 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7566 test_array [0] = 0
7567
7568   ;
7569   return 0;
7570 }
7571 _ACEOF
7572 rm -f conftest.$ac_objext
7573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7574   (eval $ac_compile) 2>conftest.er1
7575   ac_status=$?
7576   grep -v '^ *+' conftest.er1 >conftest.err
7577   rm -f conftest.er1
7578   cat conftest.err >&5
7579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7580   (exit $ac_status); } &&
7581          { ac_try='test -z "$ac_c_werror_flag"
7582                          || test ! -s conftest.err'
7583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7584   (eval $ac_try) 2>&5
7585   ac_status=$?
7586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7587   (exit $ac_status); }; } &&
7588          { ac_try='test -s conftest.$ac_objext'
7589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7590   (eval $ac_try) 2>&5
7591   ac_status=$?
7592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7593   (exit $ac_status); }; }; then
7594   ac_hi=$ac_mid; break
7595 else
7596   echo "$as_me: failed program was:" >&5
7597 sed 's/^/| /' conftest.$ac_ext >&5
7598
7599 ac_lo=`expr $ac_mid + 1`
7600                     if test $ac_lo -le $ac_mid; then
7601                       ac_lo= ac_hi=
7602                       break
7603                     fi
7604                     ac_mid=`expr 2 '*' $ac_mid + 1`
7605 fi
7606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7607   done
7608 else
7609   echo "$as_me: failed program was:" >&5
7610 sed 's/^/| /' conftest.$ac_ext >&5
7611
7612 cat >conftest.$ac_ext <<_ACEOF
7613 /* confdefs.h.  */
7614 _ACEOF
7615 cat confdefs.h >>conftest.$ac_ext
7616 cat >>conftest.$ac_ext <<_ACEOF
7617 /* end confdefs.h.  */
7618 $ac_includes_default
7619 int
7620 main ()
7621 {
7622 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
7623 test_array [0] = 0
7624
7625   ;
7626   return 0;
7627 }
7628 _ACEOF
7629 rm -f conftest.$ac_objext
7630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7631   (eval $ac_compile) 2>conftest.er1
7632   ac_status=$?
7633   grep -v '^ *+' conftest.er1 >conftest.err
7634   rm -f conftest.er1
7635   cat conftest.err >&5
7636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7637   (exit $ac_status); } &&
7638          { ac_try='test -z "$ac_c_werror_flag"
7639                          || test ! -s conftest.err'
7640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7641   (eval $ac_try) 2>&5
7642   ac_status=$?
7643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7644   (exit $ac_status); }; } &&
7645          { ac_try='test -s conftest.$ac_objext'
7646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7647   (eval $ac_try) 2>&5
7648   ac_status=$?
7649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7650   (exit $ac_status); }; }; then
7651   ac_hi=-1 ac_mid=-1
7652   while :; do
7653     cat >conftest.$ac_ext <<_ACEOF
7654 /* confdefs.h.  */
7655 _ACEOF
7656 cat confdefs.h >>conftest.$ac_ext
7657 cat >>conftest.$ac_ext <<_ACEOF
7658 /* end confdefs.h.  */
7659 $ac_includes_default
7660 int
7661 main ()
7662 {
7663 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
7664 test_array [0] = 0
7665
7666   ;
7667   return 0;
7668 }
7669 _ACEOF
7670 rm -f conftest.$ac_objext
7671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7672   (eval $ac_compile) 2>conftest.er1
7673   ac_status=$?
7674   grep -v '^ *+' conftest.er1 >conftest.err
7675   rm -f conftest.er1
7676   cat conftest.err >&5
7677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7678   (exit $ac_status); } &&
7679          { ac_try='test -z "$ac_c_werror_flag"
7680                          || test ! -s conftest.err'
7681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7682   (eval $ac_try) 2>&5
7683   ac_status=$?
7684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7685   (exit $ac_status); }; } &&
7686          { ac_try='test -s conftest.$ac_objext'
7687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7688   (eval $ac_try) 2>&5
7689   ac_status=$?
7690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7691   (exit $ac_status); }; }; then
7692   ac_lo=$ac_mid; break
7693 else
7694   echo "$as_me: failed program was:" >&5
7695 sed 's/^/| /' conftest.$ac_ext >&5
7696
7697 ac_hi=`expr '(' $ac_mid ')' - 1`
7698                        if test $ac_mid -le $ac_hi; then
7699                          ac_lo= ac_hi=
7700                          break
7701                        fi
7702                        ac_mid=`expr 2 '*' $ac_mid`
7703 fi
7704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7705   done
7706 else
7707   echo "$as_me: failed program was:" >&5
7708 sed 's/^/| /' conftest.$ac_ext >&5
7709
7710 ac_lo= ac_hi=
7711 fi
7712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7713 fi
7714 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7715 # Binary search between lo and hi bounds.
7716 while test "x$ac_lo" != "x$ac_hi"; do
7717   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7718   cat >conftest.$ac_ext <<_ACEOF
7719 /* confdefs.h.  */
7720 _ACEOF
7721 cat confdefs.h >>conftest.$ac_ext
7722 cat >>conftest.$ac_ext <<_ACEOF
7723 /* end confdefs.h.  */
7724 $ac_includes_default
7725 int
7726 main ()
7727 {
7728 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7729 test_array [0] = 0
7730
7731   ;
7732   return 0;
7733 }
7734 _ACEOF
7735 rm -f conftest.$ac_objext
7736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7737   (eval $ac_compile) 2>conftest.er1
7738   ac_status=$?
7739   grep -v '^ *+' conftest.er1 >conftest.err
7740   rm -f conftest.er1
7741   cat conftest.err >&5
7742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7743   (exit $ac_status); } &&
7744          { ac_try='test -z "$ac_c_werror_flag"
7745                          || test ! -s conftest.err'
7746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7747   (eval $ac_try) 2>&5
7748   ac_status=$?
7749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7750   (exit $ac_status); }; } &&
7751          { ac_try='test -s conftest.$ac_objext'
7752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7753   (eval $ac_try) 2>&5
7754   ac_status=$?
7755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7756   (exit $ac_status); }; }; then
7757   ac_hi=$ac_mid
7758 else
7759   echo "$as_me: failed program was:" >&5
7760 sed 's/^/| /' conftest.$ac_ext >&5
7761
7762 ac_lo=`expr '(' $ac_mid ')' + 1`
7763 fi
7764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7765 done
7766 case $ac_lo in
7767 ?*) ac_cv_sizeof_short=$ac_lo;;
7768 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7769 See \`config.log' for more details." >&5
7770 echo "$as_me: error: cannot compute sizeof (short), 77
7771 See \`config.log' for more details." >&2;}
7772    { (exit 1); exit 1; }; } ;;
7773 esac
7774 else
7775   if test "$cross_compiling" = yes; then
7776   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7777 See \`config.log' for more details." >&5
7778 echo "$as_me: error: cannot run test program while cross compiling
7779 See \`config.log' for more details." >&2;}
7780    { (exit 1); exit 1; }; }
7781 else
7782   cat >conftest.$ac_ext <<_ACEOF
7783 /* confdefs.h.  */
7784 _ACEOF
7785 cat confdefs.h >>conftest.$ac_ext
7786 cat >>conftest.$ac_ext <<_ACEOF
7787 /* end confdefs.h.  */
7788 $ac_includes_default
7789 long longval () { return (long) (sizeof (short)); }
7790 unsigned long ulongval () { return (long) (sizeof (short)); }
7791 #include <stdio.h>
7792 #include <stdlib.h>
7793 int
7794 main ()
7795 {
7796
7797   FILE *f = fopen ("conftest.val", "w");
7798   if (! f)
7799     exit (1);
7800   if (((long) (sizeof (short))) < 0)
7801     {
7802       long i = longval ();
7803       if (i != ((long) (sizeof (short))))
7804         exit (1);
7805       fprintf (f, "%ld\n", i);
7806     }
7807   else
7808     {
7809       unsigned long i = ulongval ();
7810       if (i != ((long) (sizeof (short))))
7811         exit (1);
7812       fprintf (f, "%lu\n", i);
7813     }
7814   exit (ferror (f) || fclose (f) != 0);
7815
7816   ;
7817   return 0;
7818 }
7819 _ACEOF
7820 rm -f conftest$ac_exeext
7821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7822   (eval $ac_link) 2>&5
7823   ac_status=$?
7824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7827   (eval $ac_try) 2>&5
7828   ac_status=$?
7829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7830   (exit $ac_status); }; }; then
7831   ac_cv_sizeof_short=`cat conftest.val`
7832 else
7833   echo "$as_me: program exited with status $ac_status" >&5
7834 echo "$as_me: failed program was:" >&5
7835 sed 's/^/| /' conftest.$ac_ext >&5
7836
7837 ( exit $ac_status )
7838 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7839 See \`config.log' for more details." >&5
7840 echo "$as_me: error: cannot compute sizeof (short), 77
7841 See \`config.log' for more details." >&2;}
7842    { (exit 1); exit 1; }; }
7843 fi
7844 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7845 fi
7846 fi
7847 rm -f conftest.val
7848 else
7849   ac_cv_sizeof_short=0
7850 fi
7851 fi
7852 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
7853 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
7854 cat >>confdefs.h <<_ACEOF
7855 #define SIZEOF_SHORT $ac_cv_sizeof_short
7856 _ACEOF
7857
7858
7859   echo "$as_me:$LINENO: checking for char" >&5
7860 echo $ECHO_N "checking for char... $ECHO_C" >&6
7861 if test "${ac_cv_type_char+set}" = set; then
7862   echo $ECHO_N "(cached) $ECHO_C" >&6
7863 else
7864   cat >conftest.$ac_ext <<_ACEOF
7865 /* confdefs.h.  */
7866 _ACEOF
7867 cat confdefs.h >>conftest.$ac_ext
7868 cat >>conftest.$ac_ext <<_ACEOF
7869 /* end confdefs.h.  */
7870 $ac_includes_default
7871 int
7872 main ()
7873 {
7874 if ((char *) 0)
7875   return 0;
7876 if (sizeof (char))
7877   return 0;
7878   ;
7879   return 0;
7880 }
7881 _ACEOF
7882 rm -f conftest.$ac_objext
7883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7884   (eval $ac_compile) 2>conftest.er1
7885   ac_status=$?
7886   grep -v '^ *+' conftest.er1 >conftest.err
7887   rm -f conftest.er1
7888   cat conftest.err >&5
7889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7890   (exit $ac_status); } &&
7891          { ac_try='test -z "$ac_c_werror_flag"
7892                          || test ! -s conftest.err'
7893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7894   (eval $ac_try) 2>&5
7895   ac_status=$?
7896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7897   (exit $ac_status); }; } &&
7898          { ac_try='test -s conftest.$ac_objext'
7899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7900   (eval $ac_try) 2>&5
7901   ac_status=$?
7902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7903   (exit $ac_status); }; }; then
7904   ac_cv_type_char=yes
7905 else
7906   echo "$as_me: failed program was:" >&5
7907 sed 's/^/| /' conftest.$ac_ext >&5
7908
7909 ac_cv_type_char=no
7910 fi
7911 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7912 fi
7913 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
7914 echo "${ECHO_T}$ac_cv_type_char" >&6
7915
7916 echo "$as_me:$LINENO: checking size of char" >&5
7917 echo $ECHO_N "checking size of char... $ECHO_C" >&6
7918 if test "${ac_cv_sizeof_char+set}" = set; then
7919   echo $ECHO_N "(cached) $ECHO_C" >&6
7920 else
7921   if test "$ac_cv_type_char" = yes; then
7922   # The cast to unsigned long works around a bug in the HP C Compiler
7923   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7924   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7925   # This bug is HP SR number 8606223364.
7926   if test "$cross_compiling" = yes; then
7927   # Depending upon the size, compute the lo and hi bounds.
7928 cat >conftest.$ac_ext <<_ACEOF
7929 /* confdefs.h.  */
7930 _ACEOF
7931 cat confdefs.h >>conftest.$ac_ext
7932 cat >>conftest.$ac_ext <<_ACEOF
7933 /* end confdefs.h.  */
7934 $ac_includes_default
7935 int
7936 main ()
7937 {
7938 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
7939 test_array [0] = 0
7940
7941   ;
7942   return 0;
7943 }
7944 _ACEOF
7945 rm -f conftest.$ac_objext
7946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7947   (eval $ac_compile) 2>conftest.er1
7948   ac_status=$?
7949   grep -v '^ *+' conftest.er1 >conftest.err
7950   rm -f conftest.er1
7951   cat conftest.err >&5
7952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7953   (exit $ac_status); } &&
7954          { ac_try='test -z "$ac_c_werror_flag"
7955                          || test ! -s conftest.err'
7956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7957   (eval $ac_try) 2>&5
7958   ac_status=$?
7959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7960   (exit $ac_status); }; } &&
7961          { ac_try='test -s conftest.$ac_objext'
7962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7963   (eval $ac_try) 2>&5
7964   ac_status=$?
7965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7966   (exit $ac_status); }; }; then
7967   ac_lo=0 ac_mid=0
7968   while :; do
7969     cat >conftest.$ac_ext <<_ACEOF
7970 /* confdefs.h.  */
7971 _ACEOF
7972 cat confdefs.h >>conftest.$ac_ext
7973 cat >>conftest.$ac_ext <<_ACEOF
7974 /* end confdefs.h.  */
7975 $ac_includes_default
7976 int
7977 main ()
7978 {
7979 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
7980 test_array [0] = 0
7981
7982   ;
7983   return 0;
7984 }
7985 _ACEOF
7986 rm -f conftest.$ac_objext
7987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7988   (eval $ac_compile) 2>conftest.er1
7989   ac_status=$?
7990   grep -v '^ *+' conftest.er1 >conftest.err
7991   rm -f conftest.er1
7992   cat conftest.err >&5
7993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7994   (exit $ac_status); } &&
7995          { ac_try='test -z "$ac_c_werror_flag"
7996                          || test ! -s conftest.err'
7997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7998   (eval $ac_try) 2>&5
7999   ac_status=$?
8000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8001   (exit $ac_status); }; } &&
8002          { ac_try='test -s conftest.$ac_objext'
8003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8004   (eval $ac_try) 2>&5
8005   ac_status=$?
8006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007   (exit $ac_status); }; }; then
8008   ac_hi=$ac_mid; break
8009 else
8010   echo "$as_me: failed program was:" >&5
8011 sed 's/^/| /' conftest.$ac_ext >&5
8012
8013 ac_lo=`expr $ac_mid + 1`
8014                     if test $ac_lo -le $ac_mid; then
8015                       ac_lo= ac_hi=
8016                       break
8017                     fi
8018                     ac_mid=`expr 2 '*' $ac_mid + 1`
8019 fi
8020 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8021   done
8022 else
8023   echo "$as_me: failed program was:" >&5
8024 sed 's/^/| /' conftest.$ac_ext >&5
8025
8026 cat >conftest.$ac_ext <<_ACEOF
8027 /* confdefs.h.  */
8028 _ACEOF
8029 cat confdefs.h >>conftest.$ac_ext
8030 cat >>conftest.$ac_ext <<_ACEOF
8031 /* end confdefs.h.  */
8032 $ac_includes_default
8033 int
8034 main ()
8035 {
8036 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
8037 test_array [0] = 0
8038
8039   ;
8040   return 0;
8041 }
8042 _ACEOF
8043 rm -f conftest.$ac_objext
8044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8045   (eval $ac_compile) 2>conftest.er1
8046   ac_status=$?
8047   grep -v '^ *+' conftest.er1 >conftest.err
8048   rm -f conftest.er1
8049   cat conftest.err >&5
8050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051   (exit $ac_status); } &&
8052          { ac_try='test -z "$ac_c_werror_flag"
8053                          || test ! -s conftest.err'
8054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8055   (eval $ac_try) 2>&5
8056   ac_status=$?
8057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8058   (exit $ac_status); }; } &&
8059          { ac_try='test -s conftest.$ac_objext'
8060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8061   (eval $ac_try) 2>&5
8062   ac_status=$?
8063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8064   (exit $ac_status); }; }; then
8065   ac_hi=-1 ac_mid=-1
8066   while :; do
8067     cat >conftest.$ac_ext <<_ACEOF
8068 /* confdefs.h.  */
8069 _ACEOF
8070 cat confdefs.h >>conftest.$ac_ext
8071 cat >>conftest.$ac_ext <<_ACEOF
8072 /* end confdefs.h.  */
8073 $ac_includes_default
8074 int
8075 main ()
8076 {
8077 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
8078 test_array [0] = 0
8079
8080   ;
8081   return 0;
8082 }
8083 _ACEOF
8084 rm -f conftest.$ac_objext
8085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8086   (eval $ac_compile) 2>conftest.er1
8087   ac_status=$?
8088   grep -v '^ *+' conftest.er1 >conftest.err
8089   rm -f conftest.er1
8090   cat conftest.err >&5
8091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8092   (exit $ac_status); } &&
8093          { ac_try='test -z "$ac_c_werror_flag"
8094                          || test ! -s conftest.err'
8095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8096   (eval $ac_try) 2>&5
8097   ac_status=$?
8098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8099   (exit $ac_status); }; } &&
8100          { ac_try='test -s conftest.$ac_objext'
8101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8102   (eval $ac_try) 2>&5
8103   ac_status=$?
8104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8105   (exit $ac_status); }; }; then
8106   ac_lo=$ac_mid; break
8107 else
8108   echo "$as_me: failed program was:" >&5
8109 sed 's/^/| /' conftest.$ac_ext >&5
8110
8111 ac_hi=`expr '(' $ac_mid ')' - 1`
8112                        if test $ac_mid -le $ac_hi; then
8113                          ac_lo= ac_hi=
8114                          break
8115                        fi
8116                        ac_mid=`expr 2 '*' $ac_mid`
8117 fi
8118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8119   done
8120 else
8121   echo "$as_me: failed program was:" >&5
8122 sed 's/^/| /' conftest.$ac_ext >&5
8123
8124 ac_lo= ac_hi=
8125 fi
8126 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8127 fi
8128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8129 # Binary search between lo and hi bounds.
8130 while test "x$ac_lo" != "x$ac_hi"; do
8131   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8132   cat >conftest.$ac_ext <<_ACEOF
8133 /* confdefs.h.  */
8134 _ACEOF
8135 cat confdefs.h >>conftest.$ac_ext
8136 cat >>conftest.$ac_ext <<_ACEOF
8137 /* end confdefs.h.  */
8138 $ac_includes_default
8139 int
8140 main ()
8141 {
8142 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
8143 test_array [0] = 0
8144
8145   ;
8146   return 0;
8147 }
8148 _ACEOF
8149 rm -f conftest.$ac_objext
8150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8151   (eval $ac_compile) 2>conftest.er1
8152   ac_status=$?
8153   grep -v '^ *+' conftest.er1 >conftest.err
8154   rm -f conftest.er1
8155   cat conftest.err >&5
8156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8157   (exit $ac_status); } &&
8158          { ac_try='test -z "$ac_c_werror_flag"
8159                          || test ! -s conftest.err'
8160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8161   (eval $ac_try) 2>&5
8162   ac_status=$?
8163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8164   (exit $ac_status); }; } &&
8165          { ac_try='test -s conftest.$ac_objext'
8166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8167   (eval $ac_try) 2>&5
8168   ac_status=$?
8169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8170   (exit $ac_status); }; }; then
8171   ac_hi=$ac_mid
8172 else
8173   echo "$as_me: failed program was:" >&5
8174 sed 's/^/| /' conftest.$ac_ext >&5
8175
8176 ac_lo=`expr '(' $ac_mid ')' + 1`
8177 fi
8178 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8179 done
8180 case $ac_lo in
8181 ?*) ac_cv_sizeof_char=$ac_lo;;
8182 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
8183 See \`config.log' for more details." >&5
8184 echo "$as_me: error: cannot compute sizeof (char), 77
8185 See \`config.log' for more details." >&2;}
8186    { (exit 1); exit 1; }; } ;;
8187 esac
8188 else
8189   if test "$cross_compiling" = yes; then
8190   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8191 See \`config.log' for more details." >&5
8192 echo "$as_me: error: cannot run test program while cross compiling
8193 See \`config.log' for more details." >&2;}
8194    { (exit 1); exit 1; }; }
8195 else
8196   cat >conftest.$ac_ext <<_ACEOF
8197 /* confdefs.h.  */
8198 _ACEOF
8199 cat confdefs.h >>conftest.$ac_ext
8200 cat >>conftest.$ac_ext <<_ACEOF
8201 /* end confdefs.h.  */
8202 $ac_includes_default
8203 long longval () { return (long) (sizeof (char)); }
8204 unsigned long ulongval () { return (long) (sizeof (char)); }
8205 #include <stdio.h>
8206 #include <stdlib.h>
8207 int
8208 main ()
8209 {
8210
8211   FILE *f = fopen ("conftest.val", "w");
8212   if (! f)
8213     exit (1);
8214   if (((long) (sizeof (char))) < 0)
8215     {
8216       long i = longval ();
8217       if (i != ((long) (sizeof (char))))
8218         exit (1);
8219       fprintf (f, "%ld\n", i);
8220     }
8221   else
8222     {
8223       unsigned long i = ulongval ();
8224       if (i != ((long) (sizeof (char))))
8225         exit (1);
8226       fprintf (f, "%lu\n", i);
8227     }
8228   exit (ferror (f) || fclose (f) != 0);
8229
8230   ;
8231   return 0;
8232 }
8233 _ACEOF
8234 rm -f conftest$ac_exeext
8235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8236   (eval $ac_link) 2>&5
8237   ac_status=$?
8238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8239   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8241   (eval $ac_try) 2>&5
8242   ac_status=$?
8243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8244   (exit $ac_status); }; }; then
8245   ac_cv_sizeof_char=`cat conftest.val`
8246 else
8247   echo "$as_me: program exited with status $ac_status" >&5
8248 echo "$as_me: failed program was:" >&5
8249 sed 's/^/| /' conftest.$ac_ext >&5
8250
8251 ( exit $ac_status )
8252 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
8253 See \`config.log' for more details." >&5
8254 echo "$as_me: error: cannot compute sizeof (char), 77
8255 See \`config.log' for more details." >&2;}
8256    { (exit 1); exit 1; }; }
8257 fi
8258 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8259 fi
8260 fi
8261 rm -f conftest.val
8262 else
8263   ac_cv_sizeof_char=0
8264 fi
8265 fi
8266 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
8267 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
8268 cat >>confdefs.h <<_ACEOF
8269 #define SIZEOF_CHAR $ac_cv_sizeof_char
8270 _ACEOF
8271
8272
8273
8274   echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
8275 echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
8276   case "$ac_cv_sizeof_char" in
8277     1) acx_cv_type_int8_t=char ;;
8278     *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
8279 echo "$as_me: error: no 8-bit type" >&2;}
8280    { (exit please report a bug); exit please report a bug; }; }
8281   esac
8282   echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
8283 echo "${ECHO_T}$acx_cv_type_int8_t" >&6
8284
8285   echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
8286 echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
8287   case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
8288     2:*) acx_cv_type_int16_t=int ;;
8289     *:2) acx_cv_type_int16_t=short ;;
8290     *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
8291 echo "$as_me: error: no 16-bit type" >&2;}
8292    { (exit please report a bug); exit please report a bug; }; }
8293   esac
8294   echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
8295 echo "${ECHO_T}$acx_cv_type_int16_t" >&6
8296
8297   echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
8298 echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
8299   case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
8300     4:*) acx_cv_type_int32_t=int ;;
8301     *:4) acx_cv_type_int32_t=long ;;
8302     *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
8303 echo "$as_me: error: no 32-bit type" >&2;}
8304    { (exit please report a bug); exit please report a bug; }; }
8305   esac
8306   echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
8307 echo "${ECHO_T}$acx_cv_type_int32_t" >&6
8308 fi
8309
8310 # These tests are here to make the output prettier
8311
8312 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
8313   case "$ac_cv_sizeof_long" in
8314     8) acx_cv_type_int64_t=long ;;
8315   esac
8316   echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
8317 echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
8318   echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
8319 echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
8320 fi
8321
8322 # Now we can use the above types
8323
8324 if test "$ac_cv_type_uintptr_t" != yes; then
8325   echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
8326 echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
8327   case $ac_cv_sizeof_void_p in
8328     2) acx_cv_type_intptr_t=int16_t ;;
8329     4) acx_cv_type_intptr_t=int32_t ;;
8330     8) acx_cv_type_intptr_t=int64_t ;;
8331     *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
8332 echo "$as_me: error: no equivalent for intptr_t" >&2;}
8333    { (exit please report a bug); exit please report a bug; }; }
8334   esac
8335   echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
8336 echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
8337 fi
8338
8339 # ----------------- done all checks, emit header -------------
8340           ac_config_commands="$ac_config_commands gstdint.h"
8341
8342
8343
8344
8345 # Check to see if -pthread or -lpthread is needed.  Prefer the former.
8346 # In case the pthread.h system header is not found, this test will fail.
8347 XPCFLAGS=""
8348
8349 # Darwin doesn't need the -pthread option since threads are in libSystem
8350 cat >conftest.$ac_ext <<_ACEOF
8351 /* confdefs.h.  */
8352 _ACEOF
8353 cat confdefs.h >>conftest.$ac_ext
8354 cat >>conftest.$ac_ext <<_ACEOF
8355 /* end confdefs.h.  */
8356 #include <pthread.h>
8357    void *g(void *d) { return NULL; }
8358 int
8359 main ()
8360 {
8361 pthread_t t; pthread_create(&t,NULL,g,NULL);
8362   ;
8363   return 0;
8364 }
8365 _ACEOF
8366 rm -f conftest.$ac_objext conftest$ac_exeext
8367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8368   (eval $ac_link) 2>conftest.er1
8369   ac_status=$?
8370   grep -v '^ *+' conftest.er1 >conftest.err
8371   rm -f conftest.er1
8372   cat conftest.err >&5
8373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8374   (exit $ac_status); } &&
8375          { ac_try='test -z "$ac_c_werror_flag"
8376                          || test ! -s conftest.err'
8377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8378   (eval $ac_try) 2>&5
8379   ac_status=$?
8380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381   (exit $ac_status); }; } &&
8382          { ac_try='test -s conftest$ac_exeext'
8383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8384   (eval $ac_try) 2>&5
8385   ac_status=$?
8386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387   (exit $ac_status); }; }; then
8388   case $host in
8389    *-darwin*)
8390      ;;
8391    default)
8392      XPCFLAGS=" -Wc,-pthread"
8393      ;;
8394      esac
8395 else
8396   echo "$as_me: failed program was:" >&5
8397 sed 's/^/| /' conftest.$ac_ext >&5
8398
8399 CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
8400   cat >conftest.$ac_ext <<_ACEOF
8401 /* confdefs.h.  */
8402 _ACEOF
8403 cat confdefs.h >>conftest.$ac_ext
8404 cat >>conftest.$ac_ext <<_ACEOF
8405 /* end confdefs.h.  */
8406 #include <pthread.h>
8407      void *g(void *d) { return NULL; }
8408 int
8409 main ()
8410 {
8411 pthread_t t; pthread_create(&t,NULL,g,NULL);
8412   ;
8413   return 0;
8414 }
8415 _ACEOF
8416 rm -f conftest.$ac_objext conftest$ac_exeext
8417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8418   (eval $ac_link) 2>conftest.er1
8419   ac_status=$?
8420   grep -v '^ *+' conftest.er1 >conftest.err
8421   rm -f conftest.er1
8422   cat conftest.err >&5
8423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8424   (exit $ac_status); } &&
8425          { ac_try='test -z "$ac_c_werror_flag"
8426                          || test ! -s conftest.err'
8427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8428   (eval $ac_try) 2>&5
8429   ac_status=$?
8430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8431   (exit $ac_status); }; } &&
8432          { ac_try='test -s conftest$ac_exeext'
8433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8434   (eval $ac_try) 2>&5
8435   ac_status=$?
8436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437   (exit $ac_status); }; }; then
8438   :
8439 else
8440   echo "$as_me: failed program was:" >&5
8441 sed 's/^/| /' conftest.$ac_ext >&5
8442
8443 { { echo "$as_me:$LINENO: error: Pthreads are required to build libgomp" >&5
8444 echo "$as_me: error: Pthreads are required to build libgomp" >&2;}
8445    { (exit 1); exit 1; }; }
8446 fi
8447 rm -f conftest.err conftest.$ac_objext \
8448       conftest$ac_exeext conftest.$ac_ext
8449 fi
8450 rm -f conftest.err conftest.$ac_objext \
8451       conftest$ac_exeext conftest.$ac_ext
8452
8453 # Check for functions needed.
8454
8455
8456 for ac_func in getloadavg clock_gettime
8457 do
8458 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8459 echo "$as_me:$LINENO: checking for $ac_func" >&5
8460 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8461 if eval "test \"\${$as_ac_var+set}\" = set"; then
8462   echo $ECHO_N "(cached) $ECHO_C" >&6
8463 else
8464   cat >conftest.$ac_ext <<_ACEOF
8465 /* confdefs.h.  */
8466 _ACEOF
8467 cat confdefs.h >>conftest.$ac_ext
8468 cat >>conftest.$ac_ext <<_ACEOF
8469 /* end confdefs.h.  */
8470 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8471    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8472 #define $ac_func innocuous_$ac_func
8473
8474 /* System header to define __stub macros and hopefully few prototypes,
8475     which can conflict with char $ac_func (); below.
8476     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8477     <limits.h> exists even on freestanding compilers.  */
8478
8479 #ifdef __STDC__
8480 # include <limits.h>
8481 #else
8482 # include <assert.h>
8483 #endif
8484
8485 #undef $ac_func
8486
8487 /* Override any gcc2 internal prototype to avoid an error.  */
8488 #ifdef __cplusplus
8489 extern "C"
8490 {
8491 #endif
8492 /* We use char because int might match the return type of a gcc2
8493    builtin and then its argument prototype would still apply.  */
8494 char $ac_func ();
8495 /* The GNU C library defines this for functions which it implements
8496     to always fail with ENOSYS.  Some functions are actually named
8497     something starting with __ and the normal name is an alias.  */
8498 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8499 choke me
8500 #else
8501 char (*f) () = $ac_func;
8502 #endif
8503 #ifdef __cplusplus
8504 }
8505 #endif
8506
8507 int
8508 main ()
8509 {
8510 return f != $ac_func;
8511   ;
8512   return 0;
8513 }
8514 _ACEOF
8515 rm -f conftest.$ac_objext conftest$ac_exeext
8516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8517   (eval $ac_link) 2>conftest.er1
8518   ac_status=$?
8519   grep -v '^ *+' conftest.er1 >conftest.err
8520   rm -f conftest.er1
8521   cat conftest.err >&5
8522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523   (exit $ac_status); } &&
8524          { ac_try='test -z "$ac_c_werror_flag"
8525                          || test ! -s conftest.err'
8526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8527   (eval $ac_try) 2>&5
8528   ac_status=$?
8529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8530   (exit $ac_status); }; } &&
8531          { ac_try='test -s conftest$ac_exeext'
8532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8533   (eval $ac_try) 2>&5
8534   ac_status=$?
8535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536   (exit $ac_status); }; }; then
8537   eval "$as_ac_var=yes"
8538 else
8539   echo "$as_me: failed program was:" >&5
8540 sed 's/^/| /' conftest.$ac_ext >&5
8541
8542 eval "$as_ac_var=no"
8543 fi
8544 rm -f conftest.err conftest.$ac_objext \
8545       conftest$ac_exeext conftest.$ac_ext
8546 fi
8547 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8548 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8549 if test `eval echo '${'$as_ac_var'}'` = yes; then
8550   cat >>confdefs.h <<_ACEOF
8551 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8552 _ACEOF
8553
8554 fi
8555 done
8556
8557
8558 # Check for broken semaphore implementation on darwin.
8559 # sem_init returns: sem_init error: Function not implemented.
8560 case "$host" in
8561   *-darwin*)
8562
8563 cat >>confdefs.h <<\_ACEOF
8564 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
8565 _ACEOF
8566
8567     ;;
8568   *-linux*)
8569     case "$enable_linux_futex" in
8570       default)
8571         # If headers don't have gettid/futex syscalls definition, then
8572         # default to no, otherwise there will be compile time failures.
8573         # Otherwise, default to yes.  If we don't detect we are
8574         # compiled/linked against NPTL and not cross-compiling, check
8575         # if programs are run by default against NPTL and if not, issue
8576         # a warning.
8577         enable_linux_futex=no
8578         cat >conftest.$ac_ext <<_ACEOF
8579 /* confdefs.h.  */
8580 _ACEOF
8581 cat confdefs.h >>conftest.$ac_ext
8582 cat >>conftest.$ac_ext <<_ACEOF
8583 /* end confdefs.h.  */
8584 #include <sys/syscall.h>
8585            int lk;
8586 int
8587 main ()
8588 {
8589 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
8590   ;
8591   return 0;
8592 }
8593 _ACEOF
8594 rm -f conftest.$ac_objext conftest$ac_exeext
8595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8596   (eval $ac_link) 2>conftest.er1
8597   ac_status=$?
8598   grep -v '^ *+' conftest.er1 >conftest.err
8599   rm -f conftest.er1
8600   cat conftest.err >&5
8601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8602   (exit $ac_status); } &&
8603          { ac_try='test -z "$ac_c_werror_flag"
8604                          || test ! -s conftest.err'
8605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8606   (eval $ac_try) 2>&5
8607   ac_status=$?
8608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8609   (exit $ac_status); }; } &&
8610          { ac_try='test -s conftest$ac_exeext'
8611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8612   (eval $ac_try) 2>&5
8613   ac_status=$?
8614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8615   (exit $ac_status); }; }; then
8616   cat >conftest.$ac_ext <<_ACEOF
8617 /* confdefs.h.  */
8618 _ACEOF
8619 cat confdefs.h >>conftest.$ac_ext
8620 cat >>conftest.$ac_ext <<_ACEOF
8621 /* end confdefs.h.  */
8622 #ifndef _GNU_SOURCE
8623              #define _GNU_SOURCE 1
8624              #endif
8625              #include <pthread.h>
8626              pthread_t th; void *status;
8627 int
8628 main ()
8629 {
8630 pthread_tryjoin_np (th, &status);
8631   ;
8632   return 0;
8633 }
8634 _ACEOF
8635 rm -f conftest.$ac_objext conftest$ac_exeext
8636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8637   (eval $ac_link) 2>conftest.er1
8638   ac_status=$?
8639   grep -v '^ *+' conftest.er1 >conftest.err
8640   rm -f conftest.er1
8641   cat conftest.err >&5
8642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8643   (exit $ac_status); } &&
8644          { ac_try='test -z "$ac_c_werror_flag"
8645                          || test ! -s conftest.err'
8646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8647   (eval $ac_try) 2>&5
8648   ac_status=$?
8649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8650   (exit $ac_status); }; } &&
8651          { ac_try='test -s conftest$ac_exeext'
8652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8653   (eval $ac_try) 2>&5
8654   ac_status=$?
8655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8656   (exit $ac_status); }; }; then
8657   enable_linux_futex=yes
8658 else
8659   echo "$as_me: failed program was:" >&5
8660 sed 's/^/| /' conftest.$ac_ext >&5
8661
8662 if test x$cross_compiling = xno; then
8663                if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \
8664                   | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then
8665                  { echo "$as_me:$LINENO: WARNING: The kernel might not support futex or gettid syscalls.
8666 If so, please configure with --disable-linux-futex" >&5
8667 echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
8668 If so, please configure with --disable-linux-futex" >&2;}
8669                fi
8670              fi
8671              enable_linux_futex=yes
8672 fi
8673 rm -f conftest.err conftest.$ac_objext \
8674       conftest$ac_exeext conftest.$ac_ext
8675 else
8676   echo "$as_me: failed program was:" >&5
8677 sed 's/^/| /' conftest.$ac_ext >&5
8678
8679 fi
8680 rm -f conftest.err conftest.$ac_objext \
8681       conftest$ac_exeext conftest.$ac_ext
8682         ;;
8683       yes)
8684         cat >conftest.$ac_ext <<_ACEOF
8685 /* confdefs.h.  */
8686 _ACEOF
8687 cat confdefs.h >>conftest.$ac_ext
8688 cat >>conftest.$ac_ext <<_ACEOF
8689 /* end confdefs.h.  */
8690 #include <sys/syscall.h>
8691            int lk;
8692 int
8693 main ()
8694 {
8695 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
8696   ;
8697   return 0;
8698 }
8699 _ACEOF
8700 rm -f conftest.$ac_objext conftest$ac_exeext
8701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8702   (eval $ac_link) 2>conftest.er1
8703   ac_status=$?
8704   grep -v '^ *+' conftest.er1 >conftest.err
8705   rm -f conftest.er1
8706   cat conftest.err >&5
8707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8708   (exit $ac_status); } &&
8709          { ac_try='test -z "$ac_c_werror_flag"
8710                          || test ! -s conftest.err'
8711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8712   (eval $ac_try) 2>&5
8713   ac_status=$?
8714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8715   (exit $ac_status); }; } &&
8716          { ac_try='test -s conftest$ac_exeext'
8717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8718   (eval $ac_try) 2>&5
8719   ac_status=$?
8720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8721   (exit $ac_status); }; }; then
8722   :
8723 else
8724   echo "$as_me: failed program was:" >&5
8725 sed 's/^/| /' conftest.$ac_ext >&5
8726
8727 { { echo "$as_me:$LINENO: error: SYS_gettid and SYS_futex required for --enable-linux-futex" >&5
8728 echo "$as_me: error: SYS_gettid and SYS_futex required for --enable-linux-futex" >&2;}
8729    { (exit 1); exit 1; }; }
8730 fi
8731 rm -f conftest.err conftest.$ac_objext \
8732       conftest$ac_exeext conftest.$ac_ext
8733         ;;
8734     esac
8735     ;;
8736 esac
8737
8738 # At least for glibc, clock_gettime is in librt.  But don't pull that
8739 # in if it still doesn't give us the function we want.
8740 if test $ac_cv_func_clock_gettime = no; then
8741   echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
8742 echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6
8743 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
8744   echo $ECHO_N "(cached) $ECHO_C" >&6
8745 else
8746   ac_check_lib_save_LIBS=$LIBS
8747 LIBS="-lrt  $LIBS"
8748 cat >conftest.$ac_ext <<_ACEOF
8749 /* confdefs.h.  */
8750 _ACEOF
8751 cat confdefs.h >>conftest.$ac_ext
8752 cat >>conftest.$ac_ext <<_ACEOF
8753 /* end confdefs.h.  */
8754
8755 /* Override any gcc2 internal prototype to avoid an error.  */
8756 #ifdef __cplusplus
8757 extern "C"
8758 #endif
8759 /* We use char because int might match the return type of a gcc2
8760    builtin and then its argument prototype would still apply.  */
8761 char clock_gettime ();
8762 int
8763 main ()
8764 {
8765 clock_gettime ();
8766   ;
8767   return 0;
8768 }
8769 _ACEOF
8770 rm -f conftest.$ac_objext conftest$ac_exeext
8771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8772   (eval $ac_link) 2>conftest.er1
8773   ac_status=$?
8774   grep -v '^ *+' conftest.er1 >conftest.err
8775   rm -f conftest.er1
8776   cat conftest.err >&5
8777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8778   (exit $ac_status); } &&
8779          { ac_try='test -z "$ac_c_werror_flag"
8780                          || test ! -s conftest.err'
8781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8782   (eval $ac_try) 2>&5
8783   ac_status=$?
8784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8785   (exit $ac_status); }; } &&
8786          { ac_try='test -s conftest$ac_exeext'
8787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8788   (eval $ac_try) 2>&5
8789   ac_status=$?
8790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8791   (exit $ac_status); }; }; then
8792   ac_cv_lib_rt_clock_gettime=yes
8793 else
8794   echo "$as_me: failed program was:" >&5
8795 sed 's/^/| /' conftest.$ac_ext >&5
8796
8797 ac_cv_lib_rt_clock_gettime=no
8798 fi
8799 rm -f conftest.err conftest.$ac_objext \
8800       conftest$ac_exeext conftest.$ac_ext
8801 LIBS=$ac_check_lib_save_LIBS
8802 fi
8803 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
8804 echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6
8805 if test $ac_cv_lib_rt_clock_gettime = yes; then
8806   LIBS="-lrt $LIBS"
8807
8808 cat >>confdefs.h <<\_ACEOF
8809 #define HAVE_CLOCK_GETTIME 1
8810 _ACEOF
8811
8812 fi
8813
8814 fi
8815
8816 # See if we support thread-local storage.
8817
8818    # Check whether --enable-tls or --disable-tls was given.
8819 if test "${enable_tls+set}" = set; then
8820   enableval="$enable_tls"
8821
8822       case "$enableval" in
8823        yes|no) ;;
8824        *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5
8825 echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;}
8826    { (exit 1); exit 1; }; } ;;
8827       esac
8828
8829 else
8830   enable_tls=yes
8831 fi;
8832
8833   echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5
8834 echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6
8835 if test "${have_tls+set}" = set; then
8836   echo $ECHO_N "(cached) $ECHO_C" >&6
8837 else
8838
8839     if test "$cross_compiling" = yes; then
8840   cat >conftest.$ac_ext <<_ACEOF
8841 __thread int foo;
8842 _ACEOF
8843 rm -f conftest.$ac_objext
8844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8845   (eval $ac_compile) 2>conftest.er1
8846   ac_status=$?
8847   grep -v '^ *+' conftest.er1 >conftest.err
8848   rm -f conftest.er1
8849   cat conftest.err >&5
8850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8851   (exit $ac_status); } &&
8852          { ac_try='test -z "$ac_c_werror_flag"
8853                          || test ! -s conftest.err'
8854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8855   (eval $ac_try) 2>&5
8856   ac_status=$?
8857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858   (exit $ac_status); }; } &&
8859          { ac_try='test -s conftest.$ac_objext'
8860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8861   (eval $ac_try) 2>&5
8862   ac_status=$?
8863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864   (exit $ac_status); }; }; then
8865   have_tls=yes
8866 else
8867   echo "$as_me: failed program was:" >&5
8868 sed 's/^/| /' conftest.$ac_ext >&5
8869
8870 have_tls=no
8871 fi
8872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8873
8874 else
8875   cat >conftest.$ac_ext <<_ACEOF
8876 __thread int a; int b; int main() { return a = b; }
8877 _ACEOF
8878 rm -f conftest$ac_exeext
8879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8880   (eval $ac_link) 2>&5
8881   ac_status=$?
8882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8883   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8885   (eval $ac_try) 2>&5
8886   ac_status=$?
8887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8888   (exit $ac_status); }; }; then
8889                     save_LDFLAGS="$LDFLAGS"
8890       LDFLAGS="-static $LDFLAGS"
8891       if test "$cross_compiling" = yes; then
8892   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8893 See \`config.log' for more details." >&5
8894 echo "$as_me: error: cannot run test program while cross compiling
8895 See \`config.log' for more details." >&2;}
8896    { (exit 1); exit 1; }; }
8897 else
8898   cat >conftest.$ac_ext <<_ACEOF
8899 __thread int a; int b; int main() { return a = b; }
8900 _ACEOF
8901 rm -f conftest$ac_exeext
8902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8903   (eval $ac_link) 2>&5
8904   ac_status=$?
8905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8906   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8908   (eval $ac_try) 2>&5
8909   ac_status=$?
8910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8911   (exit $ac_status); }; }; then
8912   have_tls=yes
8913 else
8914   echo "$as_me: program exited with status $ac_status" >&5
8915 echo "$as_me: failed program was:" >&5
8916 sed 's/^/| /' conftest.$ac_ext >&5
8917
8918 ( exit $ac_status )
8919 have_tls=no
8920 fi
8921 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8922 fi
8923       LDFLAGS="$save_LDFLAGS"
8924 else
8925   echo "$as_me: program exited with status $ac_status" >&5
8926 echo "$as_me: failed program was:" >&5
8927 sed 's/^/| /' conftest.$ac_ext >&5
8928
8929 ( exit $ac_status )
8930 have_tls=no
8931 fi
8932 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8933 fi
8934 fi
8935 echo "$as_me:$LINENO: result: $have_tls" >&5
8936 echo "${ECHO_T}$have_tls" >&6
8937   if test "$enable_tls $have_tls" = "yes yes"; then
8938
8939 cat >>confdefs.h <<\_ACEOF
8940 #define HAVE_TLS 1
8941 _ACEOF
8942
8943   fi
8944
8945 # See what sort of export controls are availible.
8946
8947   echo "$as_me:$LINENO: checking whether the target supports hidden visibility" >&5
8948 echo $ECHO_N "checking whether the target supports hidden visibility... $ECHO_C" >&6
8949 if test "${have_attribute_visibility+set}" = set; then
8950   echo $ECHO_N "(cached) $ECHO_C" >&6
8951 else
8952
8953   save_CFLAGS="$CFLAGS"
8954   CFLAGS="$CFLAGS -Werror"
8955   cat >conftest.$ac_ext <<_ACEOF
8956 /* confdefs.h.  */
8957 _ACEOF
8958 cat confdefs.h >>conftest.$ac_ext
8959 cat >>conftest.$ac_ext <<_ACEOF
8960 /* end confdefs.h.  */
8961 void __attribute__((visibility("hidden"))) foo(void) { }
8962 int
8963 main ()
8964 {
8965
8966   ;
8967   return 0;
8968 }
8969 _ACEOF
8970 rm -f conftest.$ac_objext
8971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8972   (eval $ac_compile) 2>conftest.er1
8973   ac_status=$?
8974   grep -v '^ *+' conftest.er1 >conftest.err
8975   rm -f conftest.er1
8976   cat conftest.err >&5
8977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8978   (exit $ac_status); } &&
8979          { ac_try='test -z "$ac_c_werror_flag"
8980                          || test ! -s conftest.err'
8981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8982   (eval $ac_try) 2>&5
8983   ac_status=$?
8984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985   (exit $ac_status); }; } &&
8986          { ac_try='test -s conftest.$ac_objext'
8987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8988   (eval $ac_try) 2>&5
8989   ac_status=$?
8990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8991   (exit $ac_status); }; }; then
8992   have_attribute_visibility=yes
8993 else
8994   echo "$as_me: failed program was:" >&5
8995 sed 's/^/| /' conftest.$ac_ext >&5
8996
8997 have_attribute_visibility=no
8998 fi
8999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9000   CFLAGS="$save_CFLAGS"
9001 fi
9002 echo "$as_me:$LINENO: result: $have_attribute_visibility" >&5
9003 echo "${ECHO_T}$have_attribute_visibility" >&6
9004   if test $have_attribute_visibility = yes; then
9005
9006 cat >>confdefs.h <<\_ACEOF
9007 #define HAVE_ATTRIBUTE_VISIBILITY 1
9008 _ACEOF
9009
9010   fi
9011
9012   echo "$as_me:$LINENO: checking whether the target supports dllexport" >&5
9013 echo $ECHO_N "checking whether the target supports dllexport... $ECHO_C" >&6
9014 if test "${have_attribute_dllexport+set}" = set; then
9015   echo $ECHO_N "(cached) $ECHO_C" >&6
9016 else
9017
9018   save_CFLAGS="$CFLAGS"
9019   CFLAGS="$CFLAGS -Werror"
9020   cat >conftest.$ac_ext <<_ACEOF
9021 /* confdefs.h.  */
9022 _ACEOF
9023 cat confdefs.h >>conftest.$ac_ext
9024 cat >>conftest.$ac_ext <<_ACEOF
9025 /* end confdefs.h.  */
9026 void __attribute__((dllexport)) foo(void) { }
9027 int
9028 main ()
9029 {
9030
9031   ;
9032   return 0;
9033 }
9034 _ACEOF
9035 rm -f conftest.$ac_objext
9036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9037   (eval $ac_compile) 2>conftest.er1
9038   ac_status=$?
9039   grep -v '^ *+' conftest.er1 >conftest.err
9040   rm -f conftest.er1
9041   cat conftest.err >&5
9042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9043   (exit $ac_status); } &&
9044          { ac_try='test -z "$ac_c_werror_flag"
9045                          || test ! -s conftest.err'
9046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9047   (eval $ac_try) 2>&5
9048   ac_status=$?
9049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9050   (exit $ac_status); }; } &&
9051          { ac_try='test -s conftest.$ac_objext'
9052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9053   (eval $ac_try) 2>&5
9054   ac_status=$?
9055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9056   (exit $ac_status); }; }; then
9057   have_attribute_dllexport=yes
9058 else
9059   echo "$as_me: failed program was:" >&5
9060 sed 's/^/| /' conftest.$ac_ext >&5
9061
9062 have_attribute_dllexport=no
9063 fi
9064 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9065   CFLAGS="$save_CFLAGS"
9066 fi
9067 echo "$as_me:$LINENO: result: $have_attribute_dllexport" >&5
9068 echo "${ECHO_T}$have_attribute_dllexport" >&6
9069   if test $have_attribute_dllexport = yes; then
9070
9071 cat >>confdefs.h <<\_ACEOF
9072 #define HAVE_ATTRIBUTE_DLLEXPORT 1
9073 _ACEOF
9074
9075   fi
9076
9077   echo "$as_me:$LINENO: checking whether the target supports symbol aliases" >&5
9078 echo $ECHO_N "checking whether the target supports symbol aliases... $ECHO_C" >&6
9079 if test "${have_attribute_alias+set}" = set; then
9080   echo $ECHO_N "(cached) $ECHO_C" >&6
9081 else
9082
9083   cat >conftest.$ac_ext <<_ACEOF
9084 /* confdefs.h.  */
9085 _ACEOF
9086 cat confdefs.h >>conftest.$ac_ext
9087 cat >>conftest.$ac_ext <<_ACEOF
9088 /* end confdefs.h.  */
9089
9090 #define ULP     STR1(__USER_LABEL_PREFIX__)
9091 #define STR1(x) STR2(x)
9092 #define STR2(x) #x
9093 void foo(void) { }
9094 extern void bar(void) __attribute__((alias(ULP "foo")));
9095 int
9096 main ()
9097 {
9098 bar();
9099   ;
9100   return 0;
9101 }
9102 _ACEOF
9103 rm -f conftest.$ac_objext conftest$ac_exeext
9104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9105   (eval $ac_link) 2>conftest.er1
9106   ac_status=$?
9107   grep -v '^ *+' conftest.er1 >conftest.err
9108   rm -f conftest.er1
9109   cat conftest.err >&5
9110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9111   (exit $ac_status); } &&
9112          { ac_try='test -z "$ac_c_werror_flag"
9113                          || test ! -s conftest.err'
9114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9115   (eval $ac_try) 2>&5
9116   ac_status=$?
9117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9118   (exit $ac_status); }; } &&
9119          { ac_try='test -s conftest$ac_exeext'
9120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9121   (eval $ac_try) 2>&5
9122   ac_status=$?
9123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124   (exit $ac_status); }; }; then
9125   have_attribute_alias=yes
9126 else
9127   echo "$as_me: failed program was:" >&5
9128 sed 's/^/| /' conftest.$ac_ext >&5
9129
9130 have_attribute_alias=no
9131 fi
9132 rm -f conftest.err conftest.$ac_objext \
9133       conftest$ac_exeext conftest.$ac_ext
9134 fi
9135 echo "$as_me:$LINENO: result: $have_attribute_alias" >&5
9136 echo "${ECHO_T}$have_attribute_alias" >&6
9137   if test $have_attribute_alias = yes; then
9138
9139 cat >>confdefs.h <<\_ACEOF
9140 #define HAVE_ATTRIBUTE_ALIAS 1
9141 _ACEOF
9142
9143   fi
9144
9145   # If we're not using GNU ld, then there's no point in even trying these
9146   # tests.  Check for that first.  We should have already tested for gld
9147   # by now (in libtool), but require it now just to be safe...
9148   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
9149   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
9150
9151
9152
9153   # The name set by libtool depends on the version of libtool.  Shame on us
9154   # for depending on an impl detail, but c'est la vie.  Older versions used
9155   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
9156   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
9157   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
9158   # set (hence we're using an older libtool), then set it.
9159   if test x${with_gnu_ld+set} != xset; then
9160     if test x${ac_cv_prog_gnu_ld+set} != xset; then
9161       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
9162       with_gnu_ld=no
9163     else
9164       with_gnu_ld=$ac_cv_prog_gnu_ld
9165     fi
9166   fi
9167
9168   # Start by getting the version number.  I think the libtool test already
9169   # does some of this, but throws away the result.
9170
9171   ldver=`$LD --version 2>/dev/null | head -1 | \
9172          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
9173
9174   libgomp_gnu_ld_version=`echo $ldver | \
9175          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
9176
9177   # Set --gc-sections.
9178   if test "$with_gnu_ld" = "notbroken"; then
9179     # GNU ld it is!  Joy and bunny rabbits!
9180
9181     # All these tests are for C++; save the language and the compiler flags.
9182     # Need to do this so that g++ won't try to link in libstdc++
9183     ac_test_CFLAGS="${CFLAGS+set}"
9184     ac_save_CFLAGS="$CFLAGS"
9185     CFLAGS='-x c++  -Wl,--gc-sections'
9186
9187     # Check for -Wl,--gc-sections
9188     # XXX This test is broken at the moment, as symbols required for linking
9189     # are now in libsupc++ (not built yet).  In addition, this test has
9190     # cored on solaris in the past.  In addition, --gc-sections doesn't
9191     # really work at the moment (keeps on discarding used sections, first
9192     # .eh_frame and now some of the glibc sections for iconv).
9193     # Bzzzzt.  Thanks for playing, maybe next time.
9194     echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
9195 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
9196     if test "$cross_compiling" = yes; then
9197   ac_sectionLDflags=yes
9198 else
9199   cat >conftest.$ac_ext <<_ACEOF
9200 /* confdefs.h.  */
9201 _ACEOF
9202 cat confdefs.h >>conftest.$ac_ext
9203 cat >>conftest.$ac_ext <<_ACEOF
9204 /* end confdefs.h.  */
9205
9206      int main(void)
9207      {
9208        try { throw 1; }
9209        catch (...) { };
9210        return 0;
9211      }
9212
9213 _ACEOF
9214 rm -f conftest$ac_exeext
9215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9216   (eval $ac_link) 2>&5
9217   ac_status=$?
9218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9219   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9221   (eval $ac_try) 2>&5
9222   ac_status=$?
9223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9224   (exit $ac_status); }; }; then
9225   ac_sectionLDflags=yes
9226 else
9227   echo "$as_me: program exited with status $ac_status" >&5
9228 echo "$as_me: failed program was:" >&5
9229 sed 's/^/| /' conftest.$ac_ext >&5
9230
9231 ( exit $ac_status )
9232 ac_sectionLDflags=no
9233 fi
9234 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9235 fi
9236     if test "$ac_test_CFLAGS" = set; then
9237       CFLAGS="$ac_save_CFLAGS"
9238     else
9239       # this is the suspicious part
9240       CFLAGS=''
9241     fi
9242     if test "$ac_sectionLDflags" = "yes"; then
9243       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
9244     fi
9245     echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
9246 echo "${ECHO_T}$ac_sectionLDflags" >&6
9247   fi
9248
9249   # Set linker optimization flags.
9250   if test x"$with_gnu_ld" = x"yes"; then
9251     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
9252   fi
9253
9254
9255
9256
9257
9258
9259  # Check whether --enable-symvers or --disable-symvers was given.
9260 if test "${enable_symvers+set}" = set; then
9261   enableval="$enable_symvers"
9262
9263       case "$enableval" in
9264        yes|no|gnu) ;;
9265        *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable symvers" >&5
9266 echo "$as_me: error: Unknown argument to enable/disable symvers" >&2;}
9267    { (exit 1); exit 1; }; } ;;
9268                           esac
9269
9270 else
9271   enable_symvers=yes
9272 fi;
9273
9274
9275 # If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we
9276 # don't know enough about $LD to do tricks...
9277
9278 # FIXME  The following test is too strict, in theory.
9279 if test $enable_shared = no ||
9280         test "x$LD" = x ||
9281         test x$libgomp_gnu_ld_version = x; then
9282   enable_symvers=no
9283 fi
9284
9285 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
9286 if test $enable_symvers != no; then
9287   echo "$as_me:$LINENO: checking for shared libgcc" >&5
9288 echo $ECHO_N "checking for shared libgcc... $ECHO_C" >&6
9289   ac_save_CFLAGS="$CFLAGS"
9290   CFLAGS=' -lgcc_s'
9291   cat >conftest.$ac_ext <<_ACEOF
9292 /* confdefs.h.  */
9293 _ACEOF
9294 cat confdefs.h >>conftest.$ac_ext
9295 cat >>conftest.$ac_ext <<_ACEOF
9296 /* end confdefs.h.  */
9297
9298 int
9299 main ()
9300 {
9301 return 0;
9302   ;
9303   return 0;
9304 }
9305 _ACEOF
9306 rm -f conftest.$ac_objext conftest$ac_exeext
9307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9308   (eval $ac_link) 2>conftest.er1
9309   ac_status=$?
9310   grep -v '^ *+' conftest.er1 >conftest.err
9311   rm -f conftest.er1
9312   cat conftest.err >&5
9313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9314   (exit $ac_status); } &&
9315          { ac_try='test -z "$ac_c_werror_flag"
9316                          || test ! -s conftest.err'
9317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9318   (eval $ac_try) 2>&5
9319   ac_status=$?
9320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9321   (exit $ac_status); }; } &&
9322          { ac_try='test -s conftest$ac_exeext'
9323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9324   (eval $ac_try) 2>&5
9325   ac_status=$?
9326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9327   (exit $ac_status); }; }; then
9328   libgomp_shared_libgcc=yes
9329 else
9330   echo "$as_me: failed program was:" >&5
9331 sed 's/^/| /' conftest.$ac_ext >&5
9332
9333 libgomp_shared_libgcc=no
9334 fi
9335 rm -f conftest.err conftest.$ac_objext \
9336       conftest$ac_exeext conftest.$ac_ext
9337   CFLAGS="$ac_save_CFLAGS"
9338   if test $libgomp_shared_libgcc = no; then
9339     cat > conftest.c <<EOF
9340 int main (void) { return 0; }
9341 EOF
9342     libgomp_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
9343                              -shared -shared-libgcc -o conftest.so \
9344                              conftest.c -v 2>&1 >/dev/null \
9345                              | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
9346     rm -f conftest.c conftest.so
9347     if test x${libgomp_libgcc_s_suffix+set} = xset; then
9348       CFLAGS=" -lgcc_s$libgomp_libgcc_s_suffix"
9349       cat >conftest.$ac_ext <<_ACEOF
9350 /* confdefs.h.  */
9351 _ACEOF
9352 cat confdefs.h >>conftest.$ac_ext
9353 cat >>conftest.$ac_ext <<_ACEOF
9354 /* end confdefs.h.  */
9355
9356 int
9357 main ()
9358 {
9359 return 0;
9360   ;
9361   return 0;
9362 }
9363 _ACEOF
9364 rm -f conftest.$ac_objext conftest$ac_exeext
9365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9366   (eval $ac_link) 2>conftest.er1
9367   ac_status=$?
9368   grep -v '^ *+' conftest.er1 >conftest.err
9369   rm -f conftest.er1
9370   cat conftest.err >&5
9371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9372   (exit $ac_status); } &&
9373          { ac_try='test -z "$ac_c_werror_flag"
9374                          || test ! -s conftest.err'
9375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9376   (eval $ac_try) 2>&5
9377   ac_status=$?
9378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9379   (exit $ac_status); }; } &&
9380          { ac_try='test -s conftest$ac_exeext'
9381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9382   (eval $ac_try) 2>&5
9383   ac_status=$?
9384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9385   (exit $ac_status); }; }; then
9386   libgomp_shared_libgcc=yes
9387 else
9388   echo "$as_me: failed program was:" >&5
9389 sed 's/^/| /' conftest.$ac_ext >&5
9390
9391 fi
9392 rm -f conftest.err conftest.$ac_objext \
9393       conftest$ac_exeext conftest.$ac_ext
9394       CFLAGS="$ac_save_CFLAGS"
9395     fi
9396   fi
9397   echo "$as_me:$LINENO: result: $libgomp_shared_libgcc" >&5
9398 echo "${ECHO_T}$libgomp_shared_libgcc" >&6
9399 fi
9400
9401 # For GNU ld, we need at least this version.  The format is described in
9402 # LIBGOMP_CHECK_LINKER_FEATURES above.
9403 libgomp_min_gnu_ld_version=21400
9404 # XXXXXXXXXXX libgomp_gnu_ld_version=21390
9405
9406 # Check to see if unspecified "yes" value can win, given results above.
9407 # Change "yes" into either "no" or a style name.
9408 if test $enable_symvers = yes; then
9409   if test $with_gnu_ld = yes &&
9410      test $libgomp_shared_libgcc = yes;
9411   then
9412     if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then
9413       enable_symvers=gnu
9414     else
9415       # The right tools, the right setup, but too old.  Fallbacks?
9416       { echo "$as_me:$LINENO: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5
9417 echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;}
9418       { echo "$as_me:$LINENO: WARNING: === full symbol versioning support in this release of GCC." >&5
9419 echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
9420       { echo "$as_me:$LINENO: WARNING: === You would need to upgrade your binutils to version" >&5
9421 echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
9422       { echo "$as_me:$LINENO: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5
9423 echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;}
9424       if test $libgomp_gnu_ld_version -ge 21200 ; then
9425         # Globbing fix is present, proper block support is not.
9426                         { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
9427 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
9428         enable_symvers=no
9429       else
9430         # 2.11 or older.
9431         { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
9432 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
9433         enable_symvers=no
9434       fi
9435     fi
9436   else
9437     # just fail for now
9438     { echo "$as_me:$LINENO: WARNING: === You have requested some kind of symbol versioning, but" >&5
9439 echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
9440     { echo "$as_me:$LINENO: WARNING: === either you are not using a supported linker, or you are" >&5
9441 echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
9442     { echo "$as_me:$LINENO: WARNING: === not building a shared libgcc_s (which is required)." >&5
9443 echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
9444     { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
9445 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
9446     enable_symvers=no
9447   fi
9448 fi
9449
9450
9451
9452 if test $enable_symvers != no; then
9453   LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE=
9454   LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE='#'
9455 else
9456   LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE='#'
9457   LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE=
9458 fi
9459
9460 { echo "$as_me:$LINENO: versioning on shared library symbols is $enable_symvers" >&5
9461 echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
9462
9463
9464 # Get target configury.
9465 . ${srcdir}/configure.tgt
9466 CFLAGS="$save_CFLAGS $XCFLAGS"
9467
9468 # Check for __sync_val_compare_and_swap, but only after the target has
9469 # had a chance to set XCFLAGS.
9470
9471   echo "$as_me:$LINENO: checking whether the target supports __sync_*_compare_and_swap" >&5
9472 echo $ECHO_N "checking whether the target supports __sync_*_compare_and_swap... $ECHO_C" >&6
9473 if test "${have_sync_builtins+set}" = set; then
9474   echo $ECHO_N "(cached) $ECHO_C" >&6
9475 else
9476
9477   cat >conftest.$ac_ext <<_ACEOF
9478 /* confdefs.h.  */
9479 _ACEOF
9480 cat confdefs.h >>conftest.$ac_ext
9481 cat >>conftest.$ac_ext <<_ACEOF
9482 /* end confdefs.h.  */
9483
9484 int
9485 main ()
9486 {
9487 int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
9488   ;
9489   return 0;
9490 }
9491 _ACEOF
9492 rm -f conftest.$ac_objext conftest$ac_exeext
9493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9494   (eval $ac_link) 2>conftest.er1
9495   ac_status=$?
9496   grep -v '^ *+' conftest.er1 >conftest.err
9497   rm -f conftest.er1
9498   cat conftest.err >&5
9499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9500   (exit $ac_status); } &&
9501          { ac_try='test -z "$ac_c_werror_flag"
9502                          || test ! -s conftest.err'
9503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9504   (eval $ac_try) 2>&5
9505   ac_status=$?
9506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507   (exit $ac_status); }; } &&
9508          { ac_try='test -s conftest$ac_exeext'
9509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9510   (eval $ac_try) 2>&5
9511   ac_status=$?
9512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9513   (exit $ac_status); }; }; then
9514   have_sync_builtins=yes
9515 else
9516   echo "$as_me: failed program was:" >&5
9517 sed 's/^/| /' conftest.$ac_ext >&5
9518
9519 have_sync_builtins=no
9520 fi
9521 rm -f conftest.err conftest.$ac_objext \
9522       conftest$ac_exeext conftest.$ac_ext
9523 fi
9524 echo "$as_me:$LINENO: result: $have_sync_builtins" >&5
9525 echo "${ECHO_T}$have_sync_builtins" >&6
9526   if test $have_sync_builtins = yes; then
9527
9528 cat >>confdefs.h <<\_ACEOF
9529 #define HAVE_SYNC_BUILTINS 1
9530 _ACEOF
9531
9532   fi
9533
9534 XCFLAGS="$XCFLAGS$XPCFLAGS"
9535
9536
9537
9538
9539
9540 # Cleanup and exit.
9541 CFLAGS="$save_CFLAGS"
9542 cat >confcache <<\_ACEOF
9543 # This file is a shell script that caches the results of configure
9544 # tests run on this system so they can be shared between configure
9545 # scripts and configure runs, see configure's option --config-cache.
9546 # It is not useful on other systems.  If it contains results you don't
9547 # want to keep, you may remove or edit it.
9548 #
9549 # config.status only pays attention to the cache file if you give it
9550 # the --recheck option to rerun configure.
9551 #
9552 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9553 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9554 # following values.
9555
9556 _ACEOF
9557
9558 # The following way of writing the cache mishandles newlines in values,
9559 # but we know of no workaround that is simple, portable, and efficient.
9560 # So, don't put newlines in cache variables' values.
9561 # Ultrix sh set writes to stderr and can't be redirected directly,
9562 # and sets the high bit in the cache file unless we assign to the vars.
9563 {
9564   (set) 2>&1 |
9565     case `(ac_space=' '; set | grep ac_space) 2>&1` in
9566     *ac_space=\ *)
9567       # `set' does not quote correctly, so add quotes (double-quote
9568       # substitution turns \\\\ into \\, and sed turns \\ into \).
9569       sed -n \
9570         "s/'/'\\\\''/g;
9571           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9572       ;;
9573     *)
9574       # `set' quotes correctly as required by POSIX, so do not add quotes.
9575       sed -n \
9576         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9577       ;;
9578     esac;
9579 } |
9580   sed '
9581      t clear
9582      : clear
9583      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9584      t end
9585      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9586      : end' >>confcache
9587 if diff $cache_file confcache >/dev/null 2>&1; then :; else
9588   if test -w $cache_file; then
9589     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9590     cat confcache >$cache_file
9591   else
9592     echo "not updating unwritable cache $cache_file"
9593   fi
9594 fi
9595 rm -f confcache
9596
9597 if test ${multilib} = yes; then
9598   multilib_arg="--enable-multilib"
9599 else
9600   multilib_arg=
9601 fi
9602
9603 # Set up the set of libraries that we need to link against for libgomp.
9604 # Note that the GOMP_SELF_SPEC in gcc.c will force -pthread for -fopenmp,
9605 # which will force linkage against -lpthread (or equivalent for the system).
9606 # That's not 100% ideal, but about the best we can do easily.
9607 if test $enable_shared = yes; then
9608   link_gomp="-lgomp %{static: $LIBS}"
9609 else
9610   link_gomp="-lgomp $LIBS"
9611 fi
9612
9613
9614
9615
9616 if test "$ac_cv_fc_compiler_gnu" = yes; then
9617   USE_FORTRAN_TRUE=
9618   USE_FORTRAN_FALSE='#'
9619 else
9620   USE_FORTRAN_TRUE='#'
9621   USE_FORTRAN_FALSE=
9622 fi
9623
9624
9625 # ??? 2006-01-24: Paulo committed to asking autoconf folk to document
9626 # and export AC_COMPUTE_INT.  If that happens, then we'll need to remove
9627 # the underscore here and update the PREREQ.  If it doesn't, then we'll
9628 # need to copy this macro to our acinclude.m4.
9629 save_CFLAGS="$CFLAGS"
9630 for i in $config_path; do
9631   if test -f $srcdir/config/$i/omp-lock.h; then
9632     CFLAGS="$CFLAGS -include $srcdir/config/$i/omp-lock.h"
9633     break
9634   fi
9635 done
9636
9637 if test "$cross_compiling" = yes; then
9638   # Depending upon the size, compute the lo and hi bounds.
9639 cat >conftest.$ac_ext <<_ACEOF
9640 /* confdefs.h.  */
9641 _ACEOF
9642 cat confdefs.h >>conftest.$ac_ext
9643 cat >>conftest.$ac_ext <<_ACEOF
9644 /* end confdefs.h.  */
9645
9646 int
9647 main ()
9648 {
9649 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) >= 0)];
9650 test_array [0] = 0
9651
9652   ;
9653   return 0;
9654 }
9655 _ACEOF
9656 rm -f conftest.$ac_objext
9657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9658   (eval $ac_compile) 2>conftest.er1
9659   ac_status=$?
9660   grep -v '^ *+' conftest.er1 >conftest.err
9661   rm -f conftest.er1
9662   cat conftest.err >&5
9663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9664   (exit $ac_status); } &&
9665          { ac_try='test -z "$ac_c_werror_flag"
9666                          || test ! -s conftest.err'
9667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9668   (eval $ac_try) 2>&5
9669   ac_status=$?
9670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9671   (exit $ac_status); }; } &&
9672          { ac_try='test -s conftest.$ac_objext'
9673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9674   (eval $ac_try) 2>&5
9675   ac_status=$?
9676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9677   (exit $ac_status); }; }; then
9678   ac_lo=0 ac_mid=0
9679   while :; do
9680     cat >conftest.$ac_ext <<_ACEOF
9681 /* confdefs.h.  */
9682 _ACEOF
9683 cat confdefs.h >>conftest.$ac_ext
9684 cat >>conftest.$ac_ext <<_ACEOF
9685 /* end confdefs.h.  */
9686
9687 int
9688 main ()
9689 {
9690 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) <= $ac_mid)];
9691 test_array [0] = 0
9692
9693   ;
9694   return 0;
9695 }
9696 _ACEOF
9697 rm -f conftest.$ac_objext
9698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9699   (eval $ac_compile) 2>conftest.er1
9700   ac_status=$?
9701   grep -v '^ *+' conftest.er1 >conftest.err
9702   rm -f conftest.er1
9703   cat conftest.err >&5
9704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705   (exit $ac_status); } &&
9706          { ac_try='test -z "$ac_c_werror_flag"
9707                          || test ! -s conftest.err'
9708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9709   (eval $ac_try) 2>&5
9710   ac_status=$?
9711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9712   (exit $ac_status); }; } &&
9713          { ac_try='test -s conftest.$ac_objext'
9714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9715   (eval $ac_try) 2>&5
9716   ac_status=$?
9717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9718   (exit $ac_status); }; }; then
9719   ac_hi=$ac_mid; break
9720 else
9721   echo "$as_me: failed program was:" >&5
9722 sed 's/^/| /' conftest.$ac_ext >&5
9723
9724 ac_lo=`expr $ac_mid + 1`
9725                     if test $ac_lo -le $ac_mid; then
9726                       ac_lo= ac_hi=
9727                       break
9728                     fi
9729                     ac_mid=`expr 2 '*' $ac_mid + 1`
9730 fi
9731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9732   done
9733 else
9734   echo "$as_me: failed program was:" >&5
9735 sed 's/^/| /' conftest.$ac_ext >&5
9736
9737 cat >conftest.$ac_ext <<_ACEOF
9738 /* confdefs.h.  */
9739 _ACEOF
9740 cat confdefs.h >>conftest.$ac_ext
9741 cat >>conftest.$ac_ext <<_ACEOF
9742 /* end confdefs.h.  */
9743
9744 int
9745 main ()
9746 {
9747 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) < 0)];
9748 test_array [0] = 0
9749
9750   ;
9751   return 0;
9752 }
9753 _ACEOF
9754 rm -f conftest.$ac_objext
9755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9756   (eval $ac_compile) 2>conftest.er1
9757   ac_status=$?
9758   grep -v '^ *+' conftest.er1 >conftest.err
9759   rm -f conftest.er1
9760   cat conftest.err >&5
9761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762   (exit $ac_status); } &&
9763          { ac_try='test -z "$ac_c_werror_flag"
9764                          || test ! -s conftest.err'
9765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9766   (eval $ac_try) 2>&5
9767   ac_status=$?
9768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769   (exit $ac_status); }; } &&
9770          { ac_try='test -s conftest.$ac_objext'
9771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9772   (eval $ac_try) 2>&5
9773   ac_status=$?
9774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775   (exit $ac_status); }; }; then
9776   ac_hi=-1 ac_mid=-1
9777   while :; do
9778     cat >conftest.$ac_ext <<_ACEOF
9779 /* confdefs.h.  */
9780 _ACEOF
9781 cat confdefs.h >>conftest.$ac_ext
9782 cat >>conftest.$ac_ext <<_ACEOF
9783 /* end confdefs.h.  */
9784
9785 int
9786 main ()
9787 {
9788 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) >= $ac_mid)];
9789 test_array [0] = 0
9790
9791   ;
9792   return 0;
9793 }
9794 _ACEOF
9795 rm -f conftest.$ac_objext
9796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9797   (eval $ac_compile) 2>conftest.er1
9798   ac_status=$?
9799   grep -v '^ *+' conftest.er1 >conftest.err
9800   rm -f conftest.er1
9801   cat conftest.err >&5
9802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9803   (exit $ac_status); } &&
9804          { ac_try='test -z "$ac_c_werror_flag"
9805                          || test ! -s conftest.err'
9806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9807   (eval $ac_try) 2>&5
9808   ac_status=$?
9809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9810   (exit $ac_status); }; } &&
9811          { ac_try='test -s conftest.$ac_objext'
9812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9813   (eval $ac_try) 2>&5
9814   ac_status=$?
9815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9816   (exit $ac_status); }; }; then
9817   ac_lo=$ac_mid; break
9818 else
9819   echo "$as_me: failed program was:" >&5
9820 sed 's/^/| /' conftest.$ac_ext >&5
9821
9822 ac_hi=`expr '(' $ac_mid ')' - 1`
9823                        if test $ac_mid -le $ac_hi; then
9824                          ac_lo= ac_hi=
9825                          break
9826                        fi
9827                        ac_mid=`expr 2 '*' $ac_mid`
9828 fi
9829 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9830   done
9831 else
9832   echo "$as_me: failed program was:" >&5
9833 sed 's/^/| /' conftest.$ac_ext >&5
9834
9835 ac_lo= ac_hi=
9836 fi
9837 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9838 fi
9839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9840 # Binary search between lo and hi bounds.
9841 while test "x$ac_lo" != "x$ac_hi"; do
9842   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9843   cat >conftest.$ac_ext <<_ACEOF
9844 /* confdefs.h.  */
9845 _ACEOF
9846 cat confdefs.h >>conftest.$ac_ext
9847 cat >>conftest.$ac_ext <<_ACEOF
9848 /* end confdefs.h.  */
9849
9850 int
9851 main ()
9852 {
9853 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) <= $ac_mid)];
9854 test_array [0] = 0
9855
9856   ;
9857   return 0;
9858 }
9859 _ACEOF
9860 rm -f conftest.$ac_objext
9861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9862   (eval $ac_compile) 2>conftest.er1
9863   ac_status=$?
9864   grep -v '^ *+' conftest.er1 >conftest.err
9865   rm -f conftest.er1
9866   cat conftest.err >&5
9867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9868   (exit $ac_status); } &&
9869          { ac_try='test -z "$ac_c_werror_flag"
9870                          || test ! -s conftest.err'
9871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9872   (eval $ac_try) 2>&5
9873   ac_status=$?
9874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9875   (exit $ac_status); }; } &&
9876          { ac_try='test -s conftest.$ac_objext'
9877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9878   (eval $ac_try) 2>&5
9879   ac_status=$?
9880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9881   (exit $ac_status); }; }; then
9882   ac_hi=$ac_mid
9883 else
9884   echo "$as_me: failed program was:" >&5
9885 sed 's/^/| /' conftest.$ac_ext >&5
9886
9887 ac_lo=`expr '(' $ac_mid ')' + 1`
9888 fi
9889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9890 done
9891 case $ac_lo in
9892 ?*) OMP_LOCK_SIZE=$ac_lo;;
9893 '') { { echo "$as_me:$LINENO: error: unsupported system, cannot find sizeof (omp_lock_t)" >&5
9894 echo "$as_me: error: unsupported system, cannot find sizeof (omp_lock_t)" >&2;}
9895    { (exit 1); exit 1; }; } ;;
9896 esac
9897 else
9898   if test "$cross_compiling" = yes; then
9899   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9900 See \`config.log' for more details." >&5
9901 echo "$as_me: error: cannot run test program while cross compiling
9902 See \`config.log' for more details." >&2;}
9903    { (exit 1); exit 1; }; }
9904 else
9905   cat >conftest.$ac_ext <<_ACEOF
9906 /* confdefs.h.  */
9907 _ACEOF
9908 cat confdefs.h >>conftest.$ac_ext
9909 cat >>conftest.$ac_ext <<_ACEOF
9910 /* end confdefs.h.  */
9911
9912 long longval () { return sizeof (omp_lock_t); }
9913 unsigned long ulongval () { return sizeof (omp_lock_t); }
9914 #include <stdio.h>
9915 #include <stdlib.h>
9916 int
9917 main ()
9918 {
9919
9920   FILE *f = fopen ("conftest.val", "w");
9921   if (! f)
9922     exit (1);
9923   if ((sizeof (omp_lock_t)) < 0)
9924     {
9925       long i = longval ();
9926       if (i != (sizeof (omp_lock_t)))
9927         exit (1);
9928       fprintf (f, "%ld\n", i);
9929     }
9930   else
9931     {
9932       unsigned long i = ulongval ();
9933       if (i != (sizeof (omp_lock_t)))
9934         exit (1);
9935       fprintf (f, "%lu\n", i);
9936     }
9937   exit (ferror (f) || fclose (f) != 0);
9938
9939   ;
9940   return 0;
9941 }
9942 _ACEOF
9943 rm -f conftest$ac_exeext
9944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9945   (eval $ac_link) 2>&5
9946   ac_status=$?
9947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9950   (eval $ac_try) 2>&5
9951   ac_status=$?
9952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953   (exit $ac_status); }; }; then
9954   OMP_LOCK_SIZE=`cat conftest.val`
9955 else
9956   echo "$as_me: program exited with status $ac_status" >&5
9957 echo "$as_me: failed program was:" >&5
9958 sed 's/^/| /' conftest.$ac_ext >&5
9959
9960 ( exit $ac_status )
9961 { { echo "$as_me:$LINENO: error: unsupported system, cannot find sizeof (omp_lock_t)" >&5
9962 echo "$as_me: error: unsupported system, cannot find sizeof (omp_lock_t)" >&2;}
9963    { (exit 1); exit 1; }; }
9964 fi
9965 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9966 fi
9967 fi
9968 rm -f conftest.val
9969 if test "$cross_compiling" = yes; then
9970   # Depending upon the size, compute the lo and hi bounds.
9971 cat >conftest.$ac_ext <<_ACEOF
9972 /* confdefs.h.  */
9973 _ACEOF
9974 cat confdefs.h >>conftest.$ac_ext
9975 cat >>conftest.$ac_ext <<_ACEOF
9976 /* end confdefs.h.  */
9977
9978 int
9979 main ()
9980 {
9981 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) >= 0)];
9982 test_array [0] = 0
9983
9984   ;
9985   return 0;
9986 }
9987 _ACEOF
9988 rm -f conftest.$ac_objext
9989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9990   (eval $ac_compile) 2>conftest.er1
9991   ac_status=$?
9992   grep -v '^ *+' conftest.er1 >conftest.err
9993   rm -f conftest.er1
9994   cat conftest.err >&5
9995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9996   (exit $ac_status); } &&
9997          { ac_try='test -z "$ac_c_werror_flag"
9998                          || test ! -s conftest.err'
9999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10000   (eval $ac_try) 2>&5
10001   ac_status=$?
10002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10003   (exit $ac_status); }; } &&
10004          { ac_try='test -s conftest.$ac_objext'
10005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10006   (eval $ac_try) 2>&5
10007   ac_status=$?
10008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10009   (exit $ac_status); }; }; then
10010   ac_lo=0 ac_mid=0
10011   while :; do
10012     cat >conftest.$ac_ext <<_ACEOF
10013 /* confdefs.h.  */
10014 _ACEOF
10015 cat confdefs.h >>conftest.$ac_ext
10016 cat >>conftest.$ac_ext <<_ACEOF
10017 /* end confdefs.h.  */
10018
10019 int
10020 main ()
10021 {
10022 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) <= $ac_mid)];
10023 test_array [0] = 0
10024
10025   ;
10026   return 0;
10027 }
10028 _ACEOF
10029 rm -f conftest.$ac_objext
10030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10031   (eval $ac_compile) 2>conftest.er1
10032   ac_status=$?
10033   grep -v '^ *+' conftest.er1 >conftest.err
10034   rm -f conftest.er1
10035   cat conftest.err >&5
10036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10037   (exit $ac_status); } &&
10038          { ac_try='test -z "$ac_c_werror_flag"
10039                          || test ! -s conftest.err'
10040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10041   (eval $ac_try) 2>&5
10042   ac_status=$?
10043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044   (exit $ac_status); }; } &&
10045          { ac_try='test -s conftest.$ac_objext'
10046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10047   (eval $ac_try) 2>&5
10048   ac_status=$?
10049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050   (exit $ac_status); }; }; then
10051   ac_hi=$ac_mid; break
10052 else
10053   echo "$as_me: failed program was:" >&5
10054 sed 's/^/| /' conftest.$ac_ext >&5
10055
10056 ac_lo=`expr $ac_mid + 1`
10057                     if test $ac_lo -le $ac_mid; then
10058                       ac_lo= ac_hi=
10059                       break
10060                     fi
10061                     ac_mid=`expr 2 '*' $ac_mid + 1`
10062 fi
10063 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10064   done
10065 else
10066   echo "$as_me: failed program was:" >&5
10067 sed 's/^/| /' conftest.$ac_ext >&5
10068
10069 cat >conftest.$ac_ext <<_ACEOF
10070 /* confdefs.h.  */
10071 _ACEOF
10072 cat confdefs.h >>conftest.$ac_ext
10073 cat >>conftest.$ac_ext <<_ACEOF
10074 /* end confdefs.h.  */
10075
10076 int
10077 main ()
10078 {
10079 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) < 0)];
10080 test_array [0] = 0
10081
10082   ;
10083   return 0;
10084 }
10085 _ACEOF
10086 rm -f conftest.$ac_objext
10087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10088   (eval $ac_compile) 2>conftest.er1
10089   ac_status=$?
10090   grep -v '^ *+' conftest.er1 >conftest.err
10091   rm -f conftest.er1
10092   cat conftest.err >&5
10093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094   (exit $ac_status); } &&
10095          { ac_try='test -z "$ac_c_werror_flag"
10096                          || test ! -s conftest.err'
10097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10098   (eval $ac_try) 2>&5
10099   ac_status=$?
10100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10101   (exit $ac_status); }; } &&
10102          { ac_try='test -s conftest.$ac_objext'
10103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10104   (eval $ac_try) 2>&5
10105   ac_status=$?
10106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107   (exit $ac_status); }; }; then
10108   ac_hi=-1 ac_mid=-1
10109   while :; do
10110     cat >conftest.$ac_ext <<_ACEOF
10111 /* confdefs.h.  */
10112 _ACEOF
10113 cat confdefs.h >>conftest.$ac_ext
10114 cat >>conftest.$ac_ext <<_ACEOF
10115 /* end confdefs.h.  */
10116
10117 int
10118 main ()
10119 {
10120 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) >= $ac_mid)];
10121 test_array [0] = 0
10122
10123   ;
10124   return 0;
10125 }
10126 _ACEOF
10127 rm -f conftest.$ac_objext
10128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10129   (eval $ac_compile) 2>conftest.er1
10130   ac_status=$?
10131   grep -v '^ *+' conftest.er1 >conftest.err
10132   rm -f conftest.er1
10133   cat conftest.err >&5
10134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10135   (exit $ac_status); } &&
10136          { ac_try='test -z "$ac_c_werror_flag"
10137                          || test ! -s conftest.err'
10138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10139   (eval $ac_try) 2>&5
10140   ac_status=$?
10141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10142   (exit $ac_status); }; } &&
10143          { ac_try='test -s conftest.$ac_objext'
10144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10145   (eval $ac_try) 2>&5
10146   ac_status=$?
10147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10148   (exit $ac_status); }; }; then
10149   ac_lo=$ac_mid; break
10150 else
10151   echo "$as_me: failed program was:" >&5
10152 sed 's/^/| /' conftest.$ac_ext >&5
10153
10154 ac_hi=`expr '(' $ac_mid ')' - 1`
10155                        if test $ac_mid -le $ac_hi; then
10156                          ac_lo= ac_hi=
10157                          break
10158                        fi
10159                        ac_mid=`expr 2 '*' $ac_mid`
10160 fi
10161 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10162   done
10163 else
10164   echo "$as_me: failed program was:" >&5
10165 sed 's/^/| /' conftest.$ac_ext >&5
10166
10167 ac_lo= ac_hi=
10168 fi
10169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10170 fi
10171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10172 # Binary search between lo and hi bounds.
10173 while test "x$ac_lo" != "x$ac_hi"; do
10174   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10175   cat >conftest.$ac_ext <<_ACEOF
10176 /* confdefs.h.  */
10177 _ACEOF
10178 cat confdefs.h >>conftest.$ac_ext
10179 cat >>conftest.$ac_ext <<_ACEOF
10180 /* end confdefs.h.  */
10181
10182 int
10183 main ()
10184 {
10185 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) <= $ac_mid)];
10186 test_array [0] = 0
10187
10188   ;
10189   return 0;
10190 }
10191 _ACEOF
10192 rm -f conftest.$ac_objext
10193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10194   (eval $ac_compile) 2>conftest.er1
10195   ac_status=$?
10196   grep -v '^ *+' conftest.er1 >conftest.err
10197   rm -f conftest.er1
10198   cat conftest.err >&5
10199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200   (exit $ac_status); } &&
10201          { ac_try='test -z "$ac_c_werror_flag"
10202                          || test ! -s conftest.err'
10203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10204   (eval $ac_try) 2>&5
10205   ac_status=$?
10206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207   (exit $ac_status); }; } &&
10208          { ac_try='test -s conftest.$ac_objext'
10209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10210   (eval $ac_try) 2>&5
10211   ac_status=$?
10212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213   (exit $ac_status); }; }; then
10214   ac_hi=$ac_mid
10215 else
10216   echo "$as_me: failed program was:" >&5
10217 sed 's/^/| /' conftest.$ac_ext >&5
10218
10219 ac_lo=`expr '(' $ac_mid ')' + 1`
10220 fi
10221 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10222 done
10223 case $ac_lo in
10224 ?*) OMP_LOCK_ALIGN=$ac_lo;;
10225 '')  ;;
10226 esac
10227 else
10228   if test "$cross_compiling" = yes; then
10229   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10230 See \`config.log' for more details." >&5
10231 echo "$as_me: error: cannot run test program while cross compiling
10232 See \`config.log' for more details." >&2;}
10233    { (exit 1); exit 1; }; }
10234 else
10235   cat >conftest.$ac_ext <<_ACEOF
10236 /* confdefs.h.  */
10237 _ACEOF
10238 cat confdefs.h >>conftest.$ac_ext
10239 cat >>conftest.$ac_ext <<_ACEOF
10240 /* end confdefs.h.  */
10241
10242 long longval () { return __alignof (omp_lock_t); }
10243 unsigned long ulongval () { return __alignof (omp_lock_t); }
10244 #include <stdio.h>
10245 #include <stdlib.h>
10246 int
10247 main ()
10248 {
10249
10250   FILE *f = fopen ("conftest.val", "w");
10251   if (! f)
10252     exit (1);
10253   if ((__alignof (omp_lock_t)) < 0)
10254     {
10255       long i = longval ();
10256       if (i != (__alignof (omp_lock_t)))
10257         exit (1);
10258       fprintf (f, "%ld\n", i);
10259     }
10260   else
10261     {
10262       unsigned long i = ulongval ();
10263       if (i != (__alignof (omp_lock_t)))
10264         exit (1);
10265       fprintf (f, "%lu\n", i);
10266     }
10267   exit (ferror (f) || fclose (f) != 0);
10268
10269   ;
10270   return 0;
10271 }
10272 _ACEOF
10273 rm -f conftest$ac_exeext
10274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10275   (eval $ac_link) 2>&5
10276   ac_status=$?
10277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10278   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10280   (eval $ac_try) 2>&5
10281   ac_status=$?
10282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10283   (exit $ac_status); }; }; then
10284   OMP_LOCK_ALIGN=`cat conftest.val`
10285 else
10286   echo "$as_me: program exited with status $ac_status" >&5
10287 echo "$as_me: failed program was:" >&5
10288 sed 's/^/| /' conftest.$ac_ext >&5
10289
10290 fi
10291 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10292 fi
10293 fi
10294 rm -f conftest.val
10295 if test "$cross_compiling" = yes; then
10296   # Depending upon the size, compute the lo and hi bounds.
10297 cat >conftest.$ac_ext <<_ACEOF
10298 /* confdefs.h.  */
10299 _ACEOF
10300 cat confdefs.h >>conftest.$ac_ext
10301 cat >>conftest.$ac_ext <<_ACEOF
10302 /* end confdefs.h.  */
10303
10304 int
10305 main ()
10306 {
10307 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) >= 0)];
10308 test_array [0] = 0
10309
10310   ;
10311   return 0;
10312 }
10313 _ACEOF
10314 rm -f conftest.$ac_objext
10315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10316   (eval $ac_compile) 2>conftest.er1
10317   ac_status=$?
10318   grep -v '^ *+' conftest.er1 >conftest.err
10319   rm -f conftest.er1
10320   cat conftest.err >&5
10321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322   (exit $ac_status); } &&
10323          { ac_try='test -z "$ac_c_werror_flag"
10324                          || test ! -s conftest.err'
10325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10326   (eval $ac_try) 2>&5
10327   ac_status=$?
10328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10329   (exit $ac_status); }; } &&
10330          { ac_try='test -s conftest.$ac_objext'
10331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10332   (eval $ac_try) 2>&5
10333   ac_status=$?
10334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10335   (exit $ac_status); }; }; then
10336   ac_lo=0 ac_mid=0
10337   while :; do
10338     cat >conftest.$ac_ext <<_ACEOF
10339 /* confdefs.h.  */
10340 _ACEOF
10341 cat confdefs.h >>conftest.$ac_ext
10342 cat >>conftest.$ac_ext <<_ACEOF
10343 /* end confdefs.h.  */
10344
10345 int
10346 main ()
10347 {
10348 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) <= $ac_mid)];
10349 test_array [0] = 0
10350
10351   ;
10352   return 0;
10353 }
10354 _ACEOF
10355 rm -f conftest.$ac_objext
10356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10357   (eval $ac_compile) 2>conftest.er1
10358   ac_status=$?
10359   grep -v '^ *+' conftest.er1 >conftest.err
10360   rm -f conftest.er1
10361   cat conftest.err >&5
10362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10363   (exit $ac_status); } &&
10364          { ac_try='test -z "$ac_c_werror_flag"
10365                          || test ! -s conftest.err'
10366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10367   (eval $ac_try) 2>&5
10368   ac_status=$?
10369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370   (exit $ac_status); }; } &&
10371          { ac_try='test -s conftest.$ac_objext'
10372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10373   (eval $ac_try) 2>&5
10374   ac_status=$?
10375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10376   (exit $ac_status); }; }; then
10377   ac_hi=$ac_mid; break
10378 else
10379   echo "$as_me: failed program was:" >&5
10380 sed 's/^/| /' conftest.$ac_ext >&5
10381
10382 ac_lo=`expr $ac_mid + 1`
10383                     if test $ac_lo -le $ac_mid; then
10384                       ac_lo= ac_hi=
10385                       break
10386                     fi
10387                     ac_mid=`expr 2 '*' $ac_mid + 1`
10388 fi
10389 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10390   done
10391 else
10392   echo "$as_me: failed program was:" >&5
10393 sed 's/^/| /' conftest.$ac_ext >&5
10394
10395 cat >conftest.$ac_ext <<_ACEOF
10396 /* confdefs.h.  */
10397 _ACEOF
10398 cat confdefs.h >>conftest.$ac_ext
10399 cat >>conftest.$ac_ext <<_ACEOF
10400 /* end confdefs.h.  */
10401
10402 int
10403 main ()
10404 {
10405 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) < 0)];
10406 test_array [0] = 0
10407
10408   ;
10409   return 0;
10410 }
10411 _ACEOF
10412 rm -f conftest.$ac_objext
10413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10414   (eval $ac_compile) 2>conftest.er1
10415   ac_status=$?
10416   grep -v '^ *+' conftest.er1 >conftest.err
10417   rm -f conftest.er1
10418   cat conftest.err >&5
10419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10420   (exit $ac_status); } &&
10421          { ac_try='test -z "$ac_c_werror_flag"
10422                          || test ! -s conftest.err'
10423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10424   (eval $ac_try) 2>&5
10425   ac_status=$?
10426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10427   (exit $ac_status); }; } &&
10428          { ac_try='test -s conftest.$ac_objext'
10429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10430   (eval $ac_try) 2>&5
10431   ac_status=$?
10432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10433   (exit $ac_status); }; }; then
10434   ac_hi=-1 ac_mid=-1
10435   while :; do
10436     cat >conftest.$ac_ext <<_ACEOF
10437 /* confdefs.h.  */
10438 _ACEOF
10439 cat confdefs.h >>conftest.$ac_ext
10440 cat >>conftest.$ac_ext <<_ACEOF
10441 /* end confdefs.h.  */
10442
10443 int
10444 main ()
10445 {
10446 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) >= $ac_mid)];
10447 test_array [0] = 0
10448
10449   ;
10450   return 0;
10451 }
10452 _ACEOF
10453 rm -f conftest.$ac_objext
10454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10455   (eval $ac_compile) 2>conftest.er1
10456   ac_status=$?
10457   grep -v '^ *+' conftest.er1 >conftest.err
10458   rm -f conftest.er1
10459   cat conftest.err >&5
10460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10461   (exit $ac_status); } &&
10462          { ac_try='test -z "$ac_c_werror_flag"
10463                          || test ! -s conftest.err'
10464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10465   (eval $ac_try) 2>&5
10466   ac_status=$?
10467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10468   (exit $ac_status); }; } &&
10469          { ac_try='test -s conftest.$ac_objext'
10470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10471   (eval $ac_try) 2>&5
10472   ac_status=$?
10473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10474   (exit $ac_status); }; }; then
10475   ac_lo=$ac_mid; break
10476 else
10477   echo "$as_me: failed program was:" >&5
10478 sed 's/^/| /' conftest.$ac_ext >&5
10479
10480 ac_hi=`expr '(' $ac_mid ')' - 1`
10481                        if test $ac_mid -le $ac_hi; then
10482                          ac_lo= ac_hi=
10483                          break
10484                        fi
10485                        ac_mid=`expr 2 '*' $ac_mid`
10486 fi
10487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10488   done
10489 else
10490   echo "$as_me: failed program was:" >&5
10491 sed 's/^/| /' conftest.$ac_ext >&5
10492
10493 ac_lo= ac_hi=
10494 fi
10495 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10496 fi
10497 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10498 # Binary search between lo and hi bounds.
10499 while test "x$ac_lo" != "x$ac_hi"; do
10500   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10501   cat >conftest.$ac_ext <<_ACEOF
10502 /* confdefs.h.  */
10503 _ACEOF
10504 cat confdefs.h >>conftest.$ac_ext
10505 cat >>conftest.$ac_ext <<_ACEOF
10506 /* end confdefs.h.  */
10507
10508 int
10509 main ()
10510 {
10511 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) <= $ac_mid)];
10512 test_array [0] = 0
10513
10514   ;
10515   return 0;
10516 }
10517 _ACEOF
10518 rm -f conftest.$ac_objext
10519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10520   (eval $ac_compile) 2>conftest.er1
10521   ac_status=$?
10522   grep -v '^ *+' conftest.er1 >conftest.err
10523   rm -f conftest.er1
10524   cat conftest.err >&5
10525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10526   (exit $ac_status); } &&
10527          { ac_try='test -z "$ac_c_werror_flag"
10528                          || test ! -s conftest.err'
10529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10530   (eval $ac_try) 2>&5
10531   ac_status=$?
10532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10533   (exit $ac_status); }; } &&
10534          { ac_try='test -s conftest.$ac_objext'
10535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10536   (eval $ac_try) 2>&5
10537   ac_status=$?
10538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10539   (exit $ac_status); }; }; then
10540   ac_hi=$ac_mid
10541 else
10542   echo "$as_me: failed program was:" >&5
10543 sed 's/^/| /' conftest.$ac_ext >&5
10544
10545 ac_lo=`expr '(' $ac_mid ')' + 1`
10546 fi
10547 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10548 done
10549 case $ac_lo in
10550 ?*) OMP_NEST_LOCK_SIZE=$ac_lo;;
10551 '')  ;;
10552 esac
10553 else
10554   if test "$cross_compiling" = yes; then
10555   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10556 See \`config.log' for more details." >&5
10557 echo "$as_me: error: cannot run test program while cross compiling
10558 See \`config.log' for more details." >&2;}
10559    { (exit 1); exit 1; }; }
10560 else
10561   cat >conftest.$ac_ext <<_ACEOF
10562 /* confdefs.h.  */
10563 _ACEOF
10564 cat confdefs.h >>conftest.$ac_ext
10565 cat >>conftest.$ac_ext <<_ACEOF
10566 /* end confdefs.h.  */
10567
10568 long longval () { return sizeof (omp_nest_lock_t); }
10569 unsigned long ulongval () { return sizeof (omp_nest_lock_t); }
10570 #include <stdio.h>
10571 #include <stdlib.h>
10572 int
10573 main ()
10574 {
10575
10576   FILE *f = fopen ("conftest.val", "w");
10577   if (! f)
10578     exit (1);
10579   if ((sizeof (omp_nest_lock_t)) < 0)
10580     {
10581       long i = longval ();
10582       if (i != (sizeof (omp_nest_lock_t)))
10583         exit (1);
10584       fprintf (f, "%ld\n", i);
10585     }
10586   else
10587     {
10588       unsigned long i = ulongval ();
10589       if (i != (sizeof (omp_nest_lock_t)))
10590         exit (1);
10591       fprintf (f, "%lu\n", i);
10592     }
10593   exit (ferror (f) || fclose (f) != 0);
10594
10595   ;
10596   return 0;
10597 }
10598 _ACEOF
10599 rm -f conftest$ac_exeext
10600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10601   (eval $ac_link) 2>&5
10602   ac_status=$?
10603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10604   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10606   (eval $ac_try) 2>&5
10607   ac_status=$?
10608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10609   (exit $ac_status); }; }; then
10610   OMP_NEST_LOCK_SIZE=`cat conftest.val`
10611 else
10612   echo "$as_me: program exited with status $ac_status" >&5
10613 echo "$as_me: failed program was:" >&5
10614 sed 's/^/| /' conftest.$ac_ext >&5
10615
10616 fi
10617 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10618 fi
10619 fi
10620 rm -f conftest.val
10621 if test "$cross_compiling" = yes; then
10622   # Depending upon the size, compute the lo and hi bounds.
10623 cat >conftest.$ac_ext <<_ACEOF
10624 /* confdefs.h.  */
10625 _ACEOF
10626 cat confdefs.h >>conftest.$ac_ext
10627 cat >>conftest.$ac_ext <<_ACEOF
10628 /* end confdefs.h.  */
10629
10630 int
10631 main ()
10632 {
10633 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) >= 0)];
10634 test_array [0] = 0
10635
10636   ;
10637   return 0;
10638 }
10639 _ACEOF
10640 rm -f conftest.$ac_objext
10641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10642   (eval $ac_compile) 2>conftest.er1
10643   ac_status=$?
10644   grep -v '^ *+' conftest.er1 >conftest.err
10645   rm -f conftest.er1
10646   cat conftest.err >&5
10647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10648   (exit $ac_status); } &&
10649          { ac_try='test -z "$ac_c_werror_flag"
10650                          || test ! -s conftest.err'
10651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10652   (eval $ac_try) 2>&5
10653   ac_status=$?
10654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10655   (exit $ac_status); }; } &&
10656          { ac_try='test -s conftest.$ac_objext'
10657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10658   (eval $ac_try) 2>&5
10659   ac_status=$?
10660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661   (exit $ac_status); }; }; then
10662   ac_lo=0 ac_mid=0
10663   while :; do
10664     cat >conftest.$ac_ext <<_ACEOF
10665 /* confdefs.h.  */
10666 _ACEOF
10667 cat confdefs.h >>conftest.$ac_ext
10668 cat >>conftest.$ac_ext <<_ACEOF
10669 /* end confdefs.h.  */
10670
10671 int
10672 main ()
10673 {
10674 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) <= $ac_mid)];
10675 test_array [0] = 0
10676
10677   ;
10678   return 0;
10679 }
10680 _ACEOF
10681 rm -f conftest.$ac_objext
10682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10683   (eval $ac_compile) 2>conftest.er1
10684   ac_status=$?
10685   grep -v '^ *+' conftest.er1 >conftest.err
10686   rm -f conftest.er1
10687   cat conftest.err >&5
10688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10689   (exit $ac_status); } &&
10690          { ac_try='test -z "$ac_c_werror_flag"
10691                          || test ! -s conftest.err'
10692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10693   (eval $ac_try) 2>&5
10694   ac_status=$?
10695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10696   (exit $ac_status); }; } &&
10697          { ac_try='test -s conftest.$ac_objext'
10698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10699   (eval $ac_try) 2>&5
10700   ac_status=$?
10701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10702   (exit $ac_status); }; }; then
10703   ac_hi=$ac_mid; break
10704 else
10705   echo "$as_me: failed program was:" >&5
10706 sed 's/^/| /' conftest.$ac_ext >&5
10707
10708 ac_lo=`expr $ac_mid + 1`
10709                     if test $ac_lo -le $ac_mid; then
10710                       ac_lo= ac_hi=
10711                       break
10712                     fi
10713                     ac_mid=`expr 2 '*' $ac_mid + 1`
10714 fi
10715 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10716   done
10717 else
10718   echo "$as_me: failed program was:" >&5
10719 sed 's/^/| /' conftest.$ac_ext >&5
10720
10721 cat >conftest.$ac_ext <<_ACEOF
10722 /* confdefs.h.  */
10723 _ACEOF
10724 cat confdefs.h >>conftest.$ac_ext
10725 cat >>conftest.$ac_ext <<_ACEOF
10726 /* end confdefs.h.  */
10727
10728 int
10729 main ()
10730 {
10731 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) < 0)];
10732 test_array [0] = 0
10733
10734   ;
10735   return 0;
10736 }
10737 _ACEOF
10738 rm -f conftest.$ac_objext
10739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10740   (eval $ac_compile) 2>conftest.er1
10741   ac_status=$?
10742   grep -v '^ *+' conftest.er1 >conftest.err
10743   rm -f conftest.er1
10744   cat conftest.err >&5
10745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10746   (exit $ac_status); } &&
10747          { ac_try='test -z "$ac_c_werror_flag"
10748                          || test ! -s conftest.err'
10749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10750   (eval $ac_try) 2>&5
10751   ac_status=$?
10752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10753   (exit $ac_status); }; } &&
10754          { ac_try='test -s conftest.$ac_objext'
10755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10756   (eval $ac_try) 2>&5
10757   ac_status=$?
10758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10759   (exit $ac_status); }; }; then
10760   ac_hi=-1 ac_mid=-1
10761   while :; do
10762     cat >conftest.$ac_ext <<_ACEOF
10763 /* confdefs.h.  */
10764 _ACEOF
10765 cat confdefs.h >>conftest.$ac_ext
10766 cat >>conftest.$ac_ext <<_ACEOF
10767 /* end confdefs.h.  */
10768
10769 int
10770 main ()
10771 {
10772 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) >= $ac_mid)];
10773 test_array [0] = 0
10774
10775   ;
10776   return 0;
10777 }
10778 _ACEOF
10779 rm -f conftest.$ac_objext
10780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10781   (eval $ac_compile) 2>conftest.er1
10782   ac_status=$?
10783   grep -v '^ *+' conftest.er1 >conftest.err
10784   rm -f conftest.er1
10785   cat conftest.err >&5
10786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10787   (exit $ac_status); } &&
10788          { ac_try='test -z "$ac_c_werror_flag"
10789                          || test ! -s conftest.err'
10790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10791   (eval $ac_try) 2>&5
10792   ac_status=$?
10793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10794   (exit $ac_status); }; } &&
10795          { ac_try='test -s conftest.$ac_objext'
10796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10797   (eval $ac_try) 2>&5
10798   ac_status=$?
10799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10800   (exit $ac_status); }; }; then
10801   ac_lo=$ac_mid; break
10802 else
10803   echo "$as_me: failed program was:" >&5
10804 sed 's/^/| /' conftest.$ac_ext >&5
10805
10806 ac_hi=`expr '(' $ac_mid ')' - 1`
10807                        if test $ac_mid -le $ac_hi; then
10808                          ac_lo= ac_hi=
10809                          break
10810                        fi
10811                        ac_mid=`expr 2 '*' $ac_mid`
10812 fi
10813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10814   done
10815 else
10816   echo "$as_me: failed program was:" >&5
10817 sed 's/^/| /' conftest.$ac_ext >&5
10818
10819 ac_lo= ac_hi=
10820 fi
10821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10822 fi
10823 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10824 # Binary search between lo and hi bounds.
10825 while test "x$ac_lo" != "x$ac_hi"; do
10826   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10827   cat >conftest.$ac_ext <<_ACEOF
10828 /* confdefs.h.  */
10829 _ACEOF
10830 cat confdefs.h >>conftest.$ac_ext
10831 cat >>conftest.$ac_ext <<_ACEOF
10832 /* end confdefs.h.  */
10833
10834 int
10835 main ()
10836 {
10837 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) <= $ac_mid)];
10838 test_array [0] = 0
10839
10840   ;
10841   return 0;
10842 }
10843 _ACEOF
10844 rm -f conftest.$ac_objext
10845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10846   (eval $ac_compile) 2>conftest.er1
10847   ac_status=$?
10848   grep -v '^ *+' conftest.er1 >conftest.err
10849   rm -f conftest.er1
10850   cat conftest.err >&5
10851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10852   (exit $ac_status); } &&
10853          { ac_try='test -z "$ac_c_werror_flag"
10854                          || test ! -s conftest.err'
10855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10856   (eval $ac_try) 2>&5
10857   ac_status=$?
10858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10859   (exit $ac_status); }; } &&
10860          { ac_try='test -s conftest.$ac_objext'
10861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10862   (eval $ac_try) 2>&5
10863   ac_status=$?
10864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10865   (exit $ac_status); }; }; then
10866   ac_hi=$ac_mid
10867 else
10868   echo "$as_me: failed program was:" >&5
10869 sed 's/^/| /' conftest.$ac_ext >&5
10870
10871 ac_lo=`expr '(' $ac_mid ')' + 1`
10872 fi
10873 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10874 done
10875 case $ac_lo in
10876 ?*) OMP_NEST_LOCK_ALIGN=$ac_lo;;
10877 '')  ;;
10878 esac
10879 else
10880   if test "$cross_compiling" = yes; then
10881   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10882 See \`config.log' for more details." >&5
10883 echo "$as_me: error: cannot run test program while cross compiling
10884 See \`config.log' for more details." >&2;}
10885    { (exit 1); exit 1; }; }
10886 else
10887   cat >conftest.$ac_ext <<_ACEOF
10888 /* confdefs.h.  */
10889 _ACEOF
10890 cat confdefs.h >>conftest.$ac_ext
10891 cat >>conftest.$ac_ext <<_ACEOF
10892 /* end confdefs.h.  */
10893
10894 long longval () { return __alignof (omp_nest_lock_t); }
10895 unsigned long ulongval () { return __alignof (omp_nest_lock_t); }
10896 #include <stdio.h>
10897 #include <stdlib.h>
10898 int
10899 main ()
10900 {
10901
10902   FILE *f = fopen ("conftest.val", "w");
10903   if (! f)
10904     exit (1);
10905   if ((__alignof (omp_nest_lock_t)) < 0)
10906     {
10907       long i = longval ();
10908       if (i != (__alignof (omp_nest_lock_t)))
10909         exit (1);
10910       fprintf (f, "%ld\n", i);
10911     }
10912   else
10913     {
10914       unsigned long i = ulongval ();
10915       if (i != (__alignof (omp_nest_lock_t)))
10916         exit (1);
10917       fprintf (f, "%lu\n", i);
10918     }
10919   exit (ferror (f) || fclose (f) != 0);
10920
10921   ;
10922   return 0;
10923 }
10924 _ACEOF
10925 rm -f conftest$ac_exeext
10926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10927   (eval $ac_link) 2>&5
10928   ac_status=$?
10929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10930   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10932   (eval $ac_try) 2>&5
10933   ac_status=$?
10934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10935   (exit $ac_status); }; }; then
10936   OMP_NEST_LOCK_ALIGN=`cat conftest.val`
10937 else
10938   echo "$as_me: program exited with status $ac_status" >&5
10939 echo "$as_me: failed program was:" >&5
10940 sed 's/^/| /' conftest.$ac_ext >&5
10941
10942 fi
10943 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10944 fi
10945 fi
10946 rm -f conftest.val
10947
10948 # If the lock fits in an integer, then arrange for Fortran to use that
10949 # integer.  If it doesn't, then arrange for Fortran to use a pointer.
10950 # Except that we don't have a way at present to multi-lib the installed
10951 # Fortran modules, so we assume 8 bytes for pointers, regardless of the
10952 # actual target.
10953 OMP_LOCK_KIND=$OMP_LOCK_SIZE
10954 OMP_NEST_LOCK_KIND=$OMP_NEST_LOCK_SIZE
10955 if test $OMP_LOCK_SIZE -gt 8 || test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then
10956   OMP_LOCK_KIND=8
10957 fi
10958 if test $OMP_NEST_LOCK_SIZE -gt 8 || test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then
10959   OMP_NEST_LOCK_KIND=8
10960 fi
10961
10962
10963
10964
10965
10966
10967
10968 CFLAGS="$save_CFLAGS"
10969
10970                                         ac_config_files="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h"
10971
10972                               ac_config_files="$ac_config_files Makefile testsuite/Makefile libgomp.spec"
10973
10974 cat >confcache <<\_ACEOF
10975 # This file is a shell script that caches the results of configure
10976 # tests run on this system so they can be shared between configure
10977 # scripts and configure runs, see configure's option --config-cache.
10978 # It is not useful on other systems.  If it contains results you don't
10979 # want to keep, you may remove or edit it.
10980 #
10981 # config.status only pays attention to the cache file if you give it
10982 # the --recheck option to rerun configure.
10983 #
10984 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10985 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10986 # following values.
10987
10988 _ACEOF
10989
10990 # The following way of writing the cache mishandles newlines in values,
10991 # but we know of no workaround that is simple, portable, and efficient.
10992 # So, don't put newlines in cache variables' values.
10993 # Ultrix sh set writes to stderr and can't be redirected directly,
10994 # and sets the high bit in the cache file unless we assign to the vars.
10995 {
10996   (set) 2>&1 |
10997     case `(ac_space=' '; set | grep ac_space) 2>&1` in
10998     *ac_space=\ *)
10999       # `set' does not quote correctly, so add quotes (double-quote
11000       # substitution turns \\\\ into \\, and sed turns \\ into \).
11001       sed -n \
11002         "s/'/'\\\\''/g;
11003           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11004       ;;
11005     *)
11006       # `set' quotes correctly as required by POSIX, so do not add quotes.
11007       sed -n \
11008         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11009       ;;
11010     esac;
11011 } |
11012   sed '
11013      t clear
11014      : clear
11015      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11016      t end
11017      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11018      : end' >>confcache
11019 if diff $cache_file confcache >/dev/null 2>&1; then :; else
11020   if test -w $cache_file; then
11021     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11022     cat confcache >$cache_file
11023   else
11024     echo "not updating unwritable cache $cache_file"
11025   fi
11026 fi
11027 rm -f confcache
11028
11029 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11030 # Let make expand exec_prefix.
11031 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11032
11033 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11034 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11035 # trailing colons and then remove the whole line if VPATH becomes empty
11036 # (actually we leave an empty line to preserve line numbers).
11037 if test "x$srcdir" = x.; then
11038   ac_vpsub='/^[  ]*VPATH[        ]*=/{
11039 s/:*\$(srcdir):*/:/;
11040 s/:*\${srcdir}:*/:/;
11041 s/:*@srcdir@:*/:/;
11042 s/^\([^=]*=[     ]*\):*/\1/;
11043 s/:*$//;
11044 s/^[^=]*=[       ]*$//;
11045 }'
11046 fi
11047
11048 DEFS=-DHAVE_CONFIG_H
11049
11050 ac_libobjs=
11051 ac_ltlibobjs=
11052 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11053   # 1. Remove the extension, and $U if already installed.
11054   ac_i=`echo "$ac_i" |
11055          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11056   # 2. Add them.
11057   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11058   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11059 done
11060 LIBOBJS=$ac_libobjs
11061
11062 LTLIBOBJS=$ac_ltlibobjs
11063
11064
11065 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11066   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11067 Usually this means the macro was only invoked conditionally." >&5
11068 echo "$as_me: error: conditional \"AMDEP\" was never defined.
11069 Usually this means the macro was only invoked conditionally." >&2;}
11070    { (exit 1); exit 1; }; }
11071 fi
11072 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11073   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11074 Usually this means the macro was only invoked conditionally." >&5
11075 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11076 Usually this means the macro was only invoked conditionally." >&2;}
11077    { (exit 1); exit 1; }; }
11078 fi
11079 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11080   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
11081 Usually this means the macro was only invoked conditionally." >&5
11082 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
11083 Usually this means the macro was only invoked conditionally." >&2;}
11084    { (exit 1); exit 1; }; }
11085 fi
11086 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then
11087   { { echo "$as_me:$LINENO: error: conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
11088 Usually this means the macro was only invoked conditionally." >&5
11089 echo "$as_me: error: conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
11090 Usually this means the macro was only invoked conditionally." >&2;}
11091    { (exit 1); exit 1; }; }
11092 fi
11093 if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then
11094   { { echo "$as_me:$LINENO: error: conditional \"USE_FORTRAN\" was never defined.
11095 Usually this means the macro was only invoked conditionally." >&5
11096 echo "$as_me: error: conditional \"USE_FORTRAN\" was never defined.
11097 Usually this means the macro was only invoked conditionally." >&2;}
11098    { (exit 1); exit 1; }; }
11099 fi
11100
11101 : ${CONFIG_STATUS=./config.status}
11102 ac_clean_files_save=$ac_clean_files
11103 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11104 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11105 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11106 cat >$CONFIG_STATUS <<_ACEOF
11107 #! $SHELL
11108 # Generated by $as_me.
11109 # Run this file to recreate the current configuration.
11110 # Compiler output produced by configure, useful for debugging
11111 # configure, is in config.log if it exists.
11112
11113 debug=false
11114 ac_cs_recheck=false
11115 ac_cs_silent=false
11116 SHELL=\${CONFIG_SHELL-$SHELL}
11117 _ACEOF
11118
11119 cat >>$CONFIG_STATUS <<\_ACEOF
11120 ## --------------------- ##
11121 ## M4sh Initialization.  ##
11122 ## --------------------- ##
11123
11124 # Be Bourne compatible
11125 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11126   emulate sh
11127   NULLCMD=:
11128   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11129   # is contrary to our usage.  Disable this feature.
11130   alias -g '${1+"$@"}'='"$@"'
11131 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11132   set -o posix
11133 fi
11134 DUALCASE=1; export DUALCASE # for MKS sh
11135
11136 # Support unset when possible.
11137 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11138   as_unset=unset
11139 else
11140   as_unset=false
11141 fi
11142
11143
11144 # Work around bugs in pre-3.0 UWIN ksh.
11145 $as_unset ENV MAIL MAILPATH
11146 PS1='$ '
11147 PS2='> '
11148 PS4='+ '
11149
11150 # NLS nuisances.
11151 for as_var in \
11152   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11153   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11154   LC_TELEPHONE LC_TIME
11155 do
11156   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11157     eval $as_var=C; export $as_var
11158   else
11159     $as_unset $as_var
11160   fi
11161 done
11162
11163 # Required to use basename.
11164 if expr a : '\(a\)' >/dev/null 2>&1; then
11165   as_expr=expr
11166 else
11167   as_expr=false
11168 fi
11169
11170 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11171   as_basename=basename
11172 else
11173   as_basename=false
11174 fi
11175
11176
11177 # Name of the executable.
11178 as_me=`$as_basename "$0" ||
11179 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11180          X"$0" : 'X\(//\)$' \| \
11181          X"$0" : 'X\(/\)$' \| \
11182          .     : '\(.\)' 2>/dev/null ||
11183 echo X/"$0" |
11184     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11185           /^X\/\(\/\/\)$/{ s//\1/; q; }
11186           /^X\/\(\/\).*/{ s//\1/; q; }
11187           s/.*/./; q'`
11188
11189
11190 # PATH needs CR, and LINENO needs CR and PATH.
11191 # Avoid depending upon Character Ranges.
11192 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11193 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11194 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11195 as_cr_digits='0123456789'
11196 as_cr_alnum=$as_cr_Letters$as_cr_digits
11197
11198 # The user is always right.
11199 if test "${PATH_SEPARATOR+set}" != set; then
11200   echo "#! /bin/sh" >conf$$.sh
11201   echo  "exit 0"   >>conf$$.sh
11202   chmod +x conf$$.sh
11203   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11204     PATH_SEPARATOR=';'
11205   else
11206     PATH_SEPARATOR=:
11207   fi
11208   rm -f conf$$.sh
11209 fi
11210
11211
11212   as_lineno_1=$LINENO
11213   as_lineno_2=$LINENO
11214   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11215   test "x$as_lineno_1" != "x$as_lineno_2" &&
11216   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
11217   # Find who we are.  Look in the path if we contain no path at all
11218   # relative or not.
11219   case $0 in
11220     *[\\/]* ) as_myself=$0 ;;
11221     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11222 for as_dir in $PATH
11223 do
11224   IFS=$as_save_IFS
11225   test -z "$as_dir" && as_dir=.
11226   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11227 done
11228
11229        ;;
11230   esac
11231   # We did not find ourselves, most probably we were run as `sh COMMAND'
11232   # in which case we are not to be found in the path.
11233   if test "x$as_myself" = x; then
11234     as_myself=$0
11235   fi
11236   if test ! -f "$as_myself"; then
11237     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11238 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11239    { (exit 1); exit 1; }; }
11240   fi
11241   case $CONFIG_SHELL in
11242   '')
11243     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11244 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11245 do
11246   IFS=$as_save_IFS
11247   test -z "$as_dir" && as_dir=.
11248   for as_base in sh bash ksh sh5; do
11249          case $as_dir in
11250          /*)
11251            if ("$as_dir/$as_base" -c '
11252   as_lineno_1=$LINENO
11253   as_lineno_2=$LINENO
11254   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11255   test "x$as_lineno_1" != "x$as_lineno_2" &&
11256   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
11257              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11258              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11259              CONFIG_SHELL=$as_dir/$as_base
11260              export CONFIG_SHELL
11261              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11262            fi;;
11263          esac
11264        done
11265 done
11266 ;;
11267   esac
11268
11269   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11270   # uniformly replaced by the line number.  The first 'sed' inserts a
11271   # line-number line before each line; the second 'sed' does the real
11272   # work.  The second script uses 'N' to pair each line-number line
11273   # with the numbered line, and appends trailing '-' during
11274   # substitution so that $LINENO is not a special case at line end.
11275   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11276   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
11277   sed '=' <$as_myself |
11278     sed '
11279       N
11280       s,$,-,
11281       : loop
11282       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11283       t loop
11284       s,-$,,
11285       s,^['$as_cr_digits']*\n,,
11286     ' >$as_me.lineno &&
11287   chmod +x $as_me.lineno ||
11288     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11289 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11290    { (exit 1); exit 1; }; }
11291
11292   # Don't try to exec as it changes $[0], causing all sort of problems
11293   # (the dirname of $[0] is not the place where we might find the
11294   # original and so on.  Autoconf is especially sensible to this).
11295   . ./$as_me.lineno
11296   # Exit status is that of the last command.
11297   exit
11298 }
11299
11300
11301 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11302   *c*,-n*) ECHO_N= ECHO_C='
11303 ' ECHO_T='      ' ;;
11304   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11305   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
11306 esac
11307
11308 if expr a : '\(a\)' >/dev/null 2>&1; then
11309   as_expr=expr
11310 else
11311   as_expr=false
11312 fi
11313
11314 rm -f conf$$ conf$$.exe conf$$.file
11315 echo >conf$$.file
11316 if ln -s conf$$.file conf$$ 2>/dev/null; then
11317   # We could just check for DJGPP; but this test a) works b) is more generic
11318   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11319   if test -f conf$$.exe; then
11320     # Don't use ln at all; we don't have any links
11321     as_ln_s='cp -p'
11322   else
11323     as_ln_s='ln -s'
11324   fi
11325 elif ln conf$$.file conf$$ 2>/dev/null; then
11326   as_ln_s=ln
11327 else
11328   as_ln_s='cp -p'
11329 fi
11330 rm -f conf$$ conf$$.exe conf$$.file
11331
11332 if mkdir -p . 2>/dev/null; then
11333   as_mkdir_p=:
11334 else
11335   test -d ./-p && rmdir ./-p
11336   as_mkdir_p=false
11337 fi
11338
11339 as_executable_p="test -f"
11340
11341 # Sed expression to map a string onto a valid CPP name.
11342 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11343
11344 # Sed expression to map a string onto a valid variable name.
11345 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11346
11347
11348 # IFS
11349 # We need space, tab and new line, in precisely that order.
11350 as_nl='
11351 '
11352 IFS="   $as_nl"
11353
11354 # CDPATH.
11355 $as_unset CDPATH
11356
11357 exec 6>&1
11358
11359 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11360 # report actual input values of CONFIG_FILES etc. instead of their
11361 # values after options handling.  Logging --version etc. is OK.
11362 exec 5>>config.log
11363 {
11364   echo
11365   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11366 ## Running $as_me. ##
11367 _ASBOX
11368 } >&5
11369 cat >&5 <<_CSEOF
11370
11371 This file was extended by GNU OpenMP Runtime Library $as_me 1.0, which was
11372 generated by GNU Autoconf 2.59.  Invocation command line was
11373
11374   CONFIG_FILES    = $CONFIG_FILES
11375   CONFIG_HEADERS  = $CONFIG_HEADERS
11376   CONFIG_LINKS    = $CONFIG_LINKS
11377   CONFIG_COMMANDS = $CONFIG_COMMANDS
11378   $ $0 $@
11379
11380 _CSEOF
11381 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11382 echo >&5
11383 _ACEOF
11384
11385 # Files that config.status was made for.
11386 if test -n "$ac_config_files"; then
11387   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11388 fi
11389
11390 if test -n "$ac_config_headers"; then
11391   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11392 fi
11393
11394 if test -n "$ac_config_links"; then
11395   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11396 fi
11397
11398 if test -n "$ac_config_commands"; then
11399   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11400 fi
11401
11402 cat >>$CONFIG_STATUS <<\_ACEOF
11403
11404 ac_cs_usage="\
11405 \`$as_me' instantiates files from templates according to the
11406 current configuration.
11407
11408 Usage: $0 [OPTIONS] [FILE]...
11409
11410   -h, --help       print this help, then exit
11411   -V, --version    print version number, then exit
11412   -q, --quiet      do not print progress messages
11413   -d, --debug      don't remove temporary files
11414       --recheck    update $as_me by reconfiguring in the same conditions
11415   --file=FILE[:TEMPLATE]
11416                    instantiate the configuration file FILE
11417   --header=FILE[:TEMPLATE]
11418                    instantiate the configuration header FILE
11419
11420 Configuration files:
11421 $config_files
11422
11423 Configuration headers:
11424 $config_headers
11425
11426 Configuration commands:
11427 $config_commands
11428
11429 Report bugs to <bug-autoconf@gnu.org>."
11430 _ACEOF
11431
11432 cat >>$CONFIG_STATUS <<_ACEOF
11433 ac_cs_version="\\
11434 GNU OpenMP Runtime Library config.status 1.0
11435 configured by $0, generated by GNU Autoconf 2.59,
11436   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11437
11438 Copyright (C) 2003 Free Software Foundation, Inc.
11439 This config.status script is free software; the Free Software Foundation
11440 gives unlimited permission to copy, distribute and modify it."
11441 srcdir=$srcdir
11442 INSTALL="$INSTALL"
11443 _ACEOF
11444
11445 cat >>$CONFIG_STATUS <<\_ACEOF
11446 # If no file are specified by the user, then we need to provide default
11447 # value.  By we need to know if files were specified by the user.
11448 ac_need_defaults=:
11449 while test $# != 0
11450 do
11451   case $1 in
11452   --*=*)
11453     ac_option=`expr "x$1" : 'x\([^=]*\)='`
11454     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11455     ac_shift=:
11456     ;;
11457   -*)
11458     ac_option=$1
11459     ac_optarg=$2
11460     ac_shift=shift
11461     ;;
11462   *) # This is not an option, so the user has probably given explicit
11463      # arguments.
11464      ac_option=$1
11465      ac_need_defaults=false;;
11466   esac
11467
11468   case $ac_option in
11469   # Handling of the options.
11470 _ACEOF
11471 cat >>$CONFIG_STATUS <<\_ACEOF
11472   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11473     ac_cs_recheck=: ;;
11474   --version | --vers* | -V )
11475     echo "$ac_cs_version"; exit 0 ;;
11476   --he | --h)
11477     # Conflict between --help and --header
11478     { { echo "$as_me:$LINENO: error: ambiguous option: $1
11479 Try \`$0 --help' for more information." >&5
11480 echo "$as_me: error: ambiguous option: $1
11481 Try \`$0 --help' for more information." >&2;}
11482    { (exit 1); exit 1; }; };;
11483   --help | --hel | -h )
11484     echo "$ac_cs_usage"; exit 0 ;;
11485   --debug | --d* | -d )
11486     debug=: ;;
11487   --file | --fil | --fi | --f )
11488     $ac_shift
11489     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11490     ac_need_defaults=false;;
11491   --header | --heade | --head | --hea )
11492     $ac_shift
11493     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11494     ac_need_defaults=false;;
11495   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11496   | -silent | --silent | --silen | --sile | --sil | --si | --s)
11497     ac_cs_silent=: ;;
11498
11499   # This is an error.
11500   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11501 Try \`$0 --help' for more information." >&5
11502 echo "$as_me: error: unrecognized option: $1
11503 Try \`$0 --help' for more information." >&2;}
11504    { (exit 1); exit 1; }; } ;;
11505
11506   *) ac_config_targets="$ac_config_targets $1" ;;
11507
11508   esac
11509   shift
11510 done
11511
11512 ac_configure_extra_args=
11513
11514 if $ac_cs_silent; then
11515   exec 6>/dev/null
11516   ac_configure_extra_args="$ac_configure_extra_args --silent"
11517 fi
11518
11519 _ACEOF
11520 cat >>$CONFIG_STATUS <<_ACEOF
11521 if \$ac_cs_recheck; then
11522   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11523   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11524 fi
11525
11526 _ACEOF
11527
11528 cat >>$CONFIG_STATUS <<_ACEOF
11529 #
11530 # INIT-COMMANDS section.
11531 #
11532
11533
11534 srcdir="$srcdir"
11535 host="$host"
11536 target="$target"
11537 with_multisubdir="$with_multisubdir"
11538 with_multisrctop="$with_multisrctop"
11539 with_target_subdir="$with_target_subdir"
11540 ac_configure_args="${multilib_arg} ${ac_configure_args}"
11541 multi_basedir="$multi_basedir"
11542 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
11543 CC="$CC"
11544 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11545
11546 GCC="$GCC"
11547 CC="$CC"
11548 acx_cv_header_stdint="$acx_cv_header_stdint"
11549 acx_cv_type_int8_t="$acx_cv_type_int8_t"
11550 acx_cv_type_int16_t="$acx_cv_type_int16_t"
11551 acx_cv_type_int32_t="$acx_cv_type_int32_t"
11552 acx_cv_type_int64_t="$acx_cv_type_int64_t"
11553 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
11554 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
11555 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
11556 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
11557 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
11558 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
11559 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
11560 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
11561 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
11562
11563
11564 _ACEOF
11565
11566
11567
11568 cat >>$CONFIG_STATUS <<\_ACEOF
11569 for ac_config_target in $ac_config_targets
11570 do
11571   case "$ac_config_target" in
11572   # Handling of arguments.
11573   "omp.h" ) CONFIG_FILES="$CONFIG_FILES omp.h" ;;
11574   "omp_lib.h" ) CONFIG_FILES="$CONFIG_FILES omp_lib.h" ;;
11575   "omp_lib.f90" ) CONFIG_FILES="$CONFIG_FILES omp_lib.f90" ;;
11576   "libgomp_f.h" ) CONFIG_FILES="$CONFIG_FILES libgomp_f.h" ;;
11577   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11578   "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
11579   "libgomp.spec" ) CONFIG_FILES="$CONFIG_FILES libgomp.spec" ;;
11580   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
11581   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11582   "gstdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
11583   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11584   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11585 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11586    { (exit 1); exit 1; }; };;
11587   esac
11588 done
11589
11590 # If the user did not use the arguments to specify the items to instantiate,
11591 # then the envvar interface is used.  Set only those that are not.
11592 # We use the long form for the default assignment because of an extremely
11593 # bizarre bug on SunOS 4.1.3.
11594 if $ac_need_defaults; then
11595   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11596   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11597   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11598 fi
11599
11600 # Have a temporary directory for convenience.  Make it in the build tree
11601 # simply because there is no reason to put it here, and in addition,
11602 # creating and moving files from /tmp can sometimes cause problems.
11603 # Create a temporary directory, and hook for its removal unless debugging.
11604 $debug ||
11605 {
11606   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11607   trap '{ (exit 1); exit 1; }' 1 2 13 15
11608 }
11609
11610 # Create a (secure) tmp directory for tmp files.
11611
11612 {
11613   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11614   test -n "$tmp" && test -d "$tmp"
11615 }  ||
11616 {
11617   tmp=./confstat$$-$RANDOM
11618   (umask 077 && mkdir $tmp)
11619 } ||
11620 {
11621    echo "$me: cannot create a temporary directory in ." >&2
11622    { (exit 1); exit 1; }
11623 }
11624
11625 _ACEOF
11626
11627 cat >>$CONFIG_STATUS <<_ACEOF
11628
11629 #
11630 # CONFIG_FILES section.
11631 #
11632
11633 # No need to generate the scripts if there are no CONFIG_FILES.
11634 # This happens for instance when ./config.status config.h
11635 if test -n "\$CONFIG_FILES"; then
11636   # Protect against being on the right side of a sed subst in config.status.
11637   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11638    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11639 s,@SHELL@,$SHELL,;t t
11640 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11641 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11642 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11643 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11644 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11645 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11646 s,@exec_prefix@,$exec_prefix,;t t
11647 s,@prefix@,$prefix,;t t
11648 s,@program_transform_name@,$program_transform_name,;t t
11649 s,@bindir@,$bindir,;t t
11650 s,@sbindir@,$sbindir,;t t
11651 s,@libexecdir@,$libexecdir,;t t
11652 s,@datadir@,$datadir,;t t
11653 s,@sysconfdir@,$sysconfdir,;t t
11654 s,@sharedstatedir@,$sharedstatedir,;t t
11655 s,@localstatedir@,$localstatedir,;t t
11656 s,@libdir@,$libdir,;t t
11657 s,@includedir@,$includedir,;t t
11658 s,@oldincludedir@,$oldincludedir,;t t
11659 s,@infodir@,$infodir,;t t
11660 s,@mandir@,$mandir,;t t
11661 s,@build_alias@,$build_alias,;t t
11662 s,@host_alias@,$host_alias,;t t
11663 s,@target_alias@,$target_alias,;t t
11664 s,@DEFS@,$DEFS,;t t
11665 s,@ECHO_C@,$ECHO_C,;t t
11666 s,@ECHO_N@,$ECHO_N,;t t
11667 s,@ECHO_T@,$ECHO_T,;t t
11668 s,@LIBS@,$LIBS,;t t
11669 s,@build@,$build,;t t
11670 s,@build_cpu@,$build_cpu,;t t
11671 s,@build_vendor@,$build_vendor,;t t
11672 s,@build_os@,$build_os,;t t
11673 s,@host@,$host,;t t
11674 s,@host_cpu@,$host_cpu,;t t
11675 s,@host_vendor@,$host_vendor,;t t
11676 s,@host_os@,$host_os,;t t
11677 s,@target@,$target,;t t
11678 s,@target_cpu@,$target_cpu,;t t
11679 s,@target_vendor@,$target_vendor,;t t
11680 s,@target_os@,$target_os,;t t
11681 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11682 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11683 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11684 s,@CYGPATH_W@,$CYGPATH_W,;t t
11685 s,@PACKAGE@,$PACKAGE,;t t
11686 s,@VERSION@,$VERSION,;t t
11687 s,@ACLOCAL@,$ACLOCAL,;t t
11688 s,@AUTOCONF@,$AUTOCONF,;t t
11689 s,@AUTOMAKE@,$AUTOMAKE,;t t
11690 s,@AUTOHEADER@,$AUTOHEADER,;t t
11691 s,@MAKEINFO@,$MAKEINFO,;t t
11692 s,@install_sh@,$install_sh,;t t
11693 s,@STRIP@,$STRIP,;t t
11694 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
11695 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
11696 s,@mkdir_p@,$mkdir_p,;t t
11697 s,@AWK@,$AWK,;t t
11698 s,@SET_MAKE@,$SET_MAKE,;t t
11699 s,@am__leading_dot@,$am__leading_dot,;t t
11700 s,@AMTAR@,$AMTAR,;t t
11701 s,@am__tar@,$am__tar,;t t
11702 s,@am__untar@,$am__untar,;t t
11703 s,@multi_basedir@,$multi_basedir,;t t
11704 s,@toolexecdir@,$toolexecdir,;t t
11705 s,@toolexeclibdir@,$toolexeclibdir,;t t
11706 s,@CC@,$CC,;t t
11707 s,@ac_ct_CC@,$ac_ct_CC,;t t
11708 s,@EXEEXT@,$EXEEXT,;t t
11709 s,@OBJEXT@,$OBJEXT,;t t
11710 s,@DEPDIR@,$DEPDIR,;t t
11711 s,@am__include@,$am__include,;t t
11712 s,@am__quote@,$am__quote,;t t
11713 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
11714 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
11715 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
11716 s,@CCDEPMODE@,$CCDEPMODE,;t t
11717 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
11718 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
11719 s,@CFLAGS@,$CFLAGS,;t t
11720 s,@AR@,$AR,;t t
11721 s,@ac_ct_AR@,$ac_ct_AR,;t t
11722 s,@RANLIB@,$RANLIB,;t t
11723 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11724 s,@PERL@,$PERL,;t t
11725 s,@LN_S@,$LN_S,;t t
11726 s,@LIBTOOL@,$LIBTOOL,;t t
11727 s,@enable_shared@,$enable_shared,;t t
11728 s,@enable_static@,$enable_static,;t t
11729 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
11730 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
11731 s,@MAINT@,$MAINT,;t t
11732 s,@FC@,$FC,;t t
11733 s,@FCFLAGS@,$FCFLAGS,;t t
11734 s,@LDFLAGS@,$LDFLAGS,;t t
11735 s,@ac_ct_FC@,$ac_ct_FC,;t t
11736 s,@libtool_VERSION@,$libtool_VERSION,;t t
11737 s,@CPP@,$CPP,;t t
11738 s,@CPPFLAGS@,$CPPFLAGS,;t t
11739 s,@EGREP@,$EGREP,;t t
11740 s,@SECTION_LDFLAGS@,$SECTION_LDFLAGS,;t t
11741 s,@OPT_LDFLAGS@,$OPT_LDFLAGS,;t t
11742 s,@LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE@,$LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE,;t t
11743 s,@LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE@,$LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE,;t t
11744 s,@config_path@,$config_path,;t t
11745 s,@XCFLAGS@,$XCFLAGS,;t t
11746 s,@XLDFLAGS@,$XLDFLAGS,;t t
11747 s,@link_gomp@,$link_gomp,;t t
11748 s,@USE_FORTRAN_TRUE@,$USE_FORTRAN_TRUE,;t t
11749 s,@USE_FORTRAN_FALSE@,$USE_FORTRAN_FALSE,;t t
11750 s,@OMP_LOCK_SIZE@,$OMP_LOCK_SIZE,;t t
11751 s,@OMP_LOCK_ALIGN@,$OMP_LOCK_ALIGN,;t t
11752 s,@OMP_NEST_LOCK_SIZE@,$OMP_NEST_LOCK_SIZE,;t t
11753 s,@OMP_NEST_LOCK_ALIGN@,$OMP_NEST_LOCK_ALIGN,;t t
11754 s,@OMP_LOCK_KIND@,$OMP_LOCK_KIND,;t t
11755 s,@OMP_NEST_LOCK_KIND@,$OMP_NEST_LOCK_KIND,;t t
11756 s,@LIBOBJS@,$LIBOBJS,;t t
11757 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11758 CEOF
11759
11760 _ACEOF
11761
11762   cat >>$CONFIG_STATUS <<\_ACEOF
11763   # Split the substitutions into bite-sized pieces for seds with
11764   # small command number limits, like on Digital OSF/1 and HP-UX.
11765   ac_max_sed_lines=48
11766   ac_sed_frag=1 # Number of current file.
11767   ac_beg=1 # First line for current file.
11768   ac_end=$ac_max_sed_lines # Line after last line for current file.
11769   ac_more_lines=:
11770   ac_sed_cmds=
11771   while $ac_more_lines; do
11772     if test $ac_beg -gt 1; then
11773       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11774     else
11775       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11776     fi
11777     if test ! -s $tmp/subs.frag; then
11778       ac_more_lines=false
11779     else
11780       # The purpose of the label and of the branching condition is to
11781       # speed up the sed processing (if there are no `@' at all, there
11782       # is no need to browse any of the substitutions).
11783       # These are the two extra sed commands mentioned above.
11784       (echo ':t
11785   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11786       if test -z "$ac_sed_cmds"; then
11787         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11788       else
11789         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11790       fi
11791       ac_sed_frag=`expr $ac_sed_frag + 1`
11792       ac_beg=$ac_end
11793       ac_end=`expr $ac_end + $ac_max_sed_lines`
11794     fi
11795   done
11796   if test -z "$ac_sed_cmds"; then
11797     ac_sed_cmds=cat
11798   fi
11799 fi # test -n "$CONFIG_FILES"
11800
11801 _ACEOF
11802 cat >>$CONFIG_STATUS <<\_ACEOF
11803 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11804   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11805   case $ac_file in
11806   - | *:- | *:-:* ) # input from stdin
11807         cat >$tmp/stdin
11808         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11809         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11810   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11811         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11812   * )   ac_file_in=$ac_file.in ;;
11813   esac
11814
11815   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11816   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11817 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11818          X"$ac_file" : 'X\(//\)[^/]' \| \
11819          X"$ac_file" : 'X\(//\)$' \| \
11820          X"$ac_file" : 'X\(/\)' \| \
11821          .     : '\(.\)' 2>/dev/null ||
11822 echo X"$ac_file" |
11823     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11824           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11825           /^X\(\/\/\)$/{ s//\1/; q; }
11826           /^X\(\/\).*/{ s//\1/; q; }
11827           s/.*/./; q'`
11828   { if $as_mkdir_p; then
11829     mkdir -p "$ac_dir"
11830   else
11831     as_dir="$ac_dir"
11832     as_dirs=
11833     while test ! -d "$as_dir"; do
11834       as_dirs="$as_dir $as_dirs"
11835       as_dir=`(dirname "$as_dir") 2>/dev/null ||
11836 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11837          X"$as_dir" : 'X\(//\)[^/]' \| \
11838          X"$as_dir" : 'X\(//\)$' \| \
11839          X"$as_dir" : 'X\(/\)' \| \
11840          .     : '\(.\)' 2>/dev/null ||
11841 echo X"$as_dir" |
11842     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11843           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11844           /^X\(\/\/\)$/{ s//\1/; q; }
11845           /^X\(\/\).*/{ s//\1/; q; }
11846           s/.*/./; q'`
11847     done
11848     test ! -n "$as_dirs" || mkdir $as_dirs
11849   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11850 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11851    { (exit 1); exit 1; }; }; }
11852
11853   ac_builddir=.
11854
11855 if test "$ac_dir" != .; then
11856   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11857   # A "../" for each directory in $ac_dir_suffix.
11858   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11859 else
11860   ac_dir_suffix= ac_top_builddir=
11861 fi
11862
11863 case $srcdir in
11864   .)  # No --srcdir option.  We are building in place.
11865     ac_srcdir=.
11866     if test -z "$ac_top_builddir"; then
11867        ac_top_srcdir=.
11868     else
11869        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11870     fi ;;
11871   [\\/]* | ?:[\\/]* )  # Absolute path.
11872     ac_srcdir=$srcdir$ac_dir_suffix;
11873     ac_top_srcdir=$srcdir ;;
11874   *) # Relative path.
11875     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11876     ac_top_srcdir=$ac_top_builddir$srcdir ;;
11877 esac
11878
11879 # Do not use `cd foo && pwd` to compute absolute paths, because
11880 # the directories may not exist.
11881 case `pwd` in
11882 .) ac_abs_builddir="$ac_dir";;
11883 *)
11884   case "$ac_dir" in
11885   .) ac_abs_builddir=`pwd`;;
11886   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11887   *) ac_abs_builddir=`pwd`/"$ac_dir";;
11888   esac;;
11889 esac
11890 case $ac_abs_builddir in
11891 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11892 *)
11893   case ${ac_top_builddir}. in
11894   .) ac_abs_top_builddir=$ac_abs_builddir;;
11895   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11896   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11897   esac;;
11898 esac
11899 case $ac_abs_builddir in
11900 .) ac_abs_srcdir=$ac_srcdir;;
11901 *)
11902   case $ac_srcdir in
11903   .) ac_abs_srcdir=$ac_abs_builddir;;
11904   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11905   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11906   esac;;
11907 esac
11908 case $ac_abs_builddir in
11909 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11910 *)
11911   case $ac_top_srcdir in
11912   .) ac_abs_top_srcdir=$ac_abs_builddir;;
11913   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11914   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11915   esac;;
11916 esac
11917
11918
11919   case $INSTALL in
11920   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11921   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11922   esac
11923
11924   if test x"$ac_file" != x-; then
11925     { echo "$as_me:$LINENO: creating $ac_file" >&5
11926 echo "$as_me: creating $ac_file" >&6;}
11927     rm -f "$ac_file"
11928   fi
11929   # Let's still pretend it is `configure' which instantiates (i.e., don't
11930   # use $as_me), people would be surprised to read:
11931   #    /* config.h.  Generated by config.status.  */
11932   if test x"$ac_file" = x-; then
11933     configure_input=
11934   else
11935     configure_input="$ac_file.  "
11936   fi
11937   configure_input=$configure_input"Generated from `echo $ac_file_in |
11938                                      sed 's,.*/,,'` by configure."
11939
11940   # First look for the input files in the build tree, otherwise in the
11941   # src tree.
11942   ac_file_inputs=`IFS=:
11943     for f in $ac_file_in; do
11944       case $f in
11945       -) echo $tmp/stdin ;;
11946       [\\/$]*)
11947          # Absolute (can't be DOS-style, as IFS=:)
11948          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11949 echo "$as_me: error: cannot find input file: $f" >&2;}
11950    { (exit 1); exit 1; }; }
11951          echo "$f";;
11952       *) # Relative
11953          if test -f "$f"; then
11954            # Build tree
11955            echo "$f"
11956          elif test -f "$srcdir/$f"; then
11957            # Source tree
11958            echo "$srcdir/$f"
11959          else
11960            # /dev/null tree
11961            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11962 echo "$as_me: error: cannot find input file: $f" >&2;}
11963    { (exit 1); exit 1; }; }
11964          fi;;
11965       esac
11966     done` || { (exit 1); exit 1; }
11967 _ACEOF
11968 cat >>$CONFIG_STATUS <<_ACEOF
11969   sed "$ac_vpsub
11970 $extrasub
11971 _ACEOF
11972 cat >>$CONFIG_STATUS <<\_ACEOF
11973 :t
11974 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11975 s,@configure_input@,$configure_input,;t t
11976 s,@srcdir@,$ac_srcdir,;t t
11977 s,@abs_srcdir@,$ac_abs_srcdir,;t t
11978 s,@top_srcdir@,$ac_top_srcdir,;t t
11979 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11980 s,@builddir@,$ac_builddir,;t t
11981 s,@abs_builddir@,$ac_abs_builddir,;t t
11982 s,@top_builddir@,$ac_top_builddir,;t t
11983 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11984 s,@INSTALL@,$ac_INSTALL,;t t
11985 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11986   rm -f $tmp/stdin
11987   if test x"$ac_file" != x-; then
11988     mv $tmp/out $ac_file
11989   else
11990     cat $tmp/out
11991     rm -f $tmp/out
11992   fi
11993
11994 done
11995 _ACEOF
11996 cat >>$CONFIG_STATUS <<\_ACEOF
11997
11998 #
11999 # CONFIG_HEADER section.
12000 #
12001
12002 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12003 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12004 #
12005 # ac_d sets the value in "#define NAME VALUE" lines.
12006 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
12007 ac_dB='[         ].*$,\1#\2'
12008 ac_dC=' '
12009 ac_dD=',;t'
12010 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12011 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
12012 ac_uB='$,\1#\2define\3'
12013 ac_uC=' '
12014 ac_uD=',;t'
12015
12016 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12017   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12018   case $ac_file in
12019   - | *:- | *:-:* ) # input from stdin
12020         cat >$tmp/stdin
12021         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12022         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12023   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12024         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12025   * )   ac_file_in=$ac_file.in ;;
12026   esac
12027
12028   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12029 echo "$as_me: creating $ac_file" >&6;}
12030
12031   # First look for the input files in the build tree, otherwise in the
12032   # src tree.
12033   ac_file_inputs=`IFS=:
12034     for f in $ac_file_in; do
12035       case $f in
12036       -) echo $tmp/stdin ;;
12037       [\\/$]*)
12038          # Absolute (can't be DOS-style, as IFS=:)
12039          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12040 echo "$as_me: error: cannot find input file: $f" >&2;}
12041    { (exit 1); exit 1; }; }
12042          # Do quote $f, to prevent DOS paths from being IFS'd.
12043          echo "$f";;
12044       *) # Relative
12045          if test -f "$f"; then
12046            # Build tree
12047            echo "$f"
12048          elif test -f "$srcdir/$f"; then
12049            # Source tree
12050            echo "$srcdir/$f"
12051          else
12052            # /dev/null tree
12053            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12054 echo "$as_me: error: cannot find input file: $f" >&2;}
12055    { (exit 1); exit 1; }; }
12056          fi;;
12057       esac
12058     done` || { (exit 1); exit 1; }
12059   # Remove the trailing spaces.
12060   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
12061
12062 _ACEOF
12063
12064 # Transform confdefs.h into two sed scripts, `conftest.defines' and
12065 # `conftest.undefs', that substitutes the proper values into
12066 # config.h.in to produce config.h.  The first handles `#define'
12067 # templates, and the second `#undef' templates.
12068 # And first: Protect against being on the right side of a sed subst in
12069 # config.status.  Protect against being in an unquoted here document
12070 # in config.status.
12071 rm -f conftest.defines conftest.undefs
12072 # Using a here document instead of a string reduces the quoting nightmare.
12073 # Putting comments in sed scripts is not portable.
12074 #
12075 # `end' is used to avoid that the second main sed command (meant for
12076 # 0-ary CPP macros) applies to n-ary macro definitions.
12077 # See the Autoconf documentation for `clear'.
12078 cat >confdef2sed.sed <<\_ACEOF
12079 s/[\\&,]/\\&/g
12080 s,[\\$`],\\&,g
12081 t clear
12082 : clear
12083 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12084 t end
12085 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12086 : end
12087 _ACEOF
12088 # If some macros were called several times there might be several times
12089 # the same #defines, which is useless.  Nevertheless, we may not want to
12090 # sort them, since we want the *last* AC-DEFINE to be honored.
12091 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12092 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12093 rm -f confdef2sed.sed
12094
12095 # This sed command replaces #undef with comments.  This is necessary, for
12096 # example, in the case of _POSIX_SOURCE, which is predefined and required
12097 # on some systems where configure will not decide to define it.
12098 cat >>conftest.undefs <<\_ACEOF
12099 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12100 _ACEOF
12101
12102 # Break up conftest.defines because some shells have a limit on the size
12103 # of here documents, and old seds have small limits too (100 cmds).
12104 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12105 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12106 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12107 echo '  :' >>$CONFIG_STATUS
12108 rm -f conftest.tail
12109 while grep . conftest.defines >/dev/null
12110 do
12111   # Write a limited-size here document to $tmp/defines.sed.
12112   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12113   # Speed up: don't consider the non `#define' lines.
12114   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
12115   # Work around the forget-to-reset-the-flag bug.
12116   echo 't clr' >>$CONFIG_STATUS
12117   echo ': clr' >>$CONFIG_STATUS
12118   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12119   echo 'CEOF
12120   sed -f $tmp/defines.sed $tmp/in >$tmp/out
12121   rm -f $tmp/in
12122   mv $tmp/out $tmp/in
12123 ' >>$CONFIG_STATUS
12124   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12125   rm -f conftest.defines
12126   mv conftest.tail conftest.defines
12127 done
12128 rm -f conftest.defines
12129 echo '  fi # grep' >>$CONFIG_STATUS
12130 echo >>$CONFIG_STATUS
12131
12132 # Break up conftest.undefs because some shells have a limit on the size
12133 # of here documents, and old seds have small limits too (100 cmds).
12134 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
12135 rm -f conftest.tail
12136 while grep . conftest.undefs >/dev/null
12137 do
12138   # Write a limited-size here document to $tmp/undefs.sed.
12139   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12140   # Speed up: don't consider the non `#undef'
12141   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
12142   # Work around the forget-to-reset-the-flag bug.
12143   echo 't clr' >>$CONFIG_STATUS
12144   echo ': clr' >>$CONFIG_STATUS
12145   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12146   echo 'CEOF
12147   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12148   rm -f $tmp/in
12149   mv $tmp/out $tmp/in
12150 ' >>$CONFIG_STATUS
12151   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12152   rm -f conftest.undefs
12153   mv conftest.tail conftest.undefs
12154 done
12155 rm -f conftest.undefs
12156
12157 cat >>$CONFIG_STATUS <<\_ACEOF
12158   # Let's still pretend it is `configure' which instantiates (i.e., don't
12159   # use $as_me), people would be surprised to read:
12160   #    /* config.h.  Generated by config.status.  */
12161   if test x"$ac_file" = x-; then
12162     echo "/* Generated by configure.  */" >$tmp/config.h
12163   else
12164     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
12165   fi
12166   cat $tmp/in >>$tmp/config.h
12167   rm -f $tmp/in
12168   if test x"$ac_file" != x-; then
12169     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12170       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12171 echo "$as_me: $ac_file is unchanged" >&6;}
12172     else
12173       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12174 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12175          X"$ac_file" : 'X\(//\)[^/]' \| \
12176          X"$ac_file" : 'X\(//\)$' \| \
12177          X"$ac_file" : 'X\(/\)' \| \
12178          .     : '\(.\)' 2>/dev/null ||
12179 echo X"$ac_file" |
12180     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12181           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12182           /^X\(\/\/\)$/{ s//\1/; q; }
12183           /^X\(\/\).*/{ s//\1/; q; }
12184           s/.*/./; q'`
12185       { if $as_mkdir_p; then
12186     mkdir -p "$ac_dir"
12187   else
12188     as_dir="$ac_dir"
12189     as_dirs=
12190     while test ! -d "$as_dir"; do
12191       as_dirs="$as_dir $as_dirs"
12192       as_dir=`(dirname "$as_dir") 2>/dev/null ||
12193 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12194          X"$as_dir" : 'X\(//\)[^/]' \| \
12195          X"$as_dir" : 'X\(//\)$' \| \
12196          X"$as_dir" : 'X\(/\)' \| \
12197          .     : '\(.\)' 2>/dev/null ||
12198 echo X"$as_dir" |
12199     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12200           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12201           /^X\(\/\/\)$/{ s//\1/; q; }
12202           /^X\(\/\).*/{ s//\1/; q; }
12203           s/.*/./; q'`
12204     done
12205     test ! -n "$as_dirs" || mkdir $as_dirs
12206   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12207 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12208    { (exit 1); exit 1; }; }; }
12209
12210       rm -f $ac_file
12211       mv $tmp/config.h $ac_file
12212     fi
12213   else
12214     cat $tmp/config.h
12215     rm -f $tmp/config.h
12216   fi
12217 # Compute $ac_file's index in $config_headers.
12218 _am_stamp_count=1
12219 for _am_header in $config_headers :; do
12220   case $_am_header in
12221     $ac_file | $ac_file:* )
12222       break ;;
12223     * )
12224       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12225   esac
12226 done
12227 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
12228 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12229          X$ac_file : 'X\(//\)[^/]' \| \
12230          X$ac_file : 'X\(//\)$' \| \
12231          X$ac_file : 'X\(/\)' \| \
12232          .     : '\(.\)' 2>/dev/null ||
12233 echo X$ac_file |
12234     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12235           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12236           /^X\(\/\/\)$/{ s//\1/; q; }
12237           /^X\(\/\).*/{ s//\1/; q; }
12238           s/.*/./; q'`/stamp-h$_am_stamp_count
12239 done
12240 _ACEOF
12241 cat >>$CONFIG_STATUS <<\_ACEOF
12242
12243 #
12244 # CONFIG_COMMANDS section.
12245 #
12246 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12247   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12248   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12249   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12250 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12251          X"$ac_dest" : 'X\(//\)[^/]' \| \
12252          X"$ac_dest" : 'X\(//\)$' \| \
12253          X"$ac_dest" : 'X\(/\)' \| \
12254          .     : '\(.\)' 2>/dev/null ||
12255 echo X"$ac_dest" |
12256     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12257           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12258           /^X\(\/\/\)$/{ s//\1/; q; }
12259           /^X\(\/\).*/{ s//\1/; q; }
12260           s/.*/./; q'`
12261   { if $as_mkdir_p; then
12262     mkdir -p "$ac_dir"
12263   else
12264     as_dir="$ac_dir"
12265     as_dirs=
12266     while test ! -d "$as_dir"; do
12267       as_dirs="$as_dir $as_dirs"
12268       as_dir=`(dirname "$as_dir") 2>/dev/null ||
12269 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12270          X"$as_dir" : 'X\(//\)[^/]' \| \
12271          X"$as_dir" : 'X\(//\)$' \| \
12272          X"$as_dir" : 'X\(/\)' \| \
12273          .     : '\(.\)' 2>/dev/null ||
12274 echo X"$as_dir" |
12275     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12276           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12277           /^X\(\/\/\)$/{ s//\1/; q; }
12278           /^X\(\/\).*/{ s//\1/; q; }
12279           s/.*/./; q'`
12280     done
12281     test ! -n "$as_dirs" || mkdir $as_dirs
12282   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12283 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12284    { (exit 1); exit 1; }; }; }
12285
12286   ac_builddir=.
12287
12288 if test "$ac_dir" != .; then
12289   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12290   # A "../" for each directory in $ac_dir_suffix.
12291   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12292 else
12293   ac_dir_suffix= ac_top_builddir=
12294 fi
12295
12296 case $srcdir in
12297   .)  # No --srcdir option.  We are building in place.
12298     ac_srcdir=.
12299     if test -z "$ac_top_builddir"; then
12300        ac_top_srcdir=.
12301     else
12302        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12303     fi ;;
12304   [\\/]* | ?:[\\/]* )  # Absolute path.
12305     ac_srcdir=$srcdir$ac_dir_suffix;
12306     ac_top_srcdir=$srcdir ;;
12307   *) # Relative path.
12308     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12309     ac_top_srcdir=$ac_top_builddir$srcdir ;;
12310 esac
12311
12312 # Do not use `cd foo && pwd` to compute absolute paths, because
12313 # the directories may not exist.
12314 case `pwd` in
12315 .) ac_abs_builddir="$ac_dir";;
12316 *)
12317   case "$ac_dir" in
12318   .) ac_abs_builddir=`pwd`;;
12319   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12320   *) ac_abs_builddir=`pwd`/"$ac_dir";;
12321   esac;;
12322 esac
12323 case $ac_abs_builddir in
12324 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12325 *)
12326   case ${ac_top_builddir}. in
12327   .) ac_abs_top_builddir=$ac_abs_builddir;;
12328   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12329   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12330   esac;;
12331 esac
12332 case $ac_abs_builddir in
12333 .) ac_abs_srcdir=$ac_srcdir;;
12334 *)
12335   case $ac_srcdir in
12336   .) ac_abs_srcdir=$ac_abs_builddir;;
12337   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12338   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12339   esac;;
12340 esac
12341 case $ac_abs_builddir in
12342 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12343 *)
12344   case $ac_top_srcdir in
12345   .) ac_abs_top_srcdir=$ac_abs_builddir;;
12346   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12347   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12348   esac;;
12349 esac
12350
12351
12352   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12353 echo "$as_me: executing $ac_dest commands" >&6;}
12354   case $ac_dest in
12355     default-1 )
12356 # Only add multilib support code if we just rebuilt the top-level
12357 # Makefile.
12358 case " $CONFIG_FILES " in
12359  *" Makefile "*)
12360    ac_file=Makefile . ${multi_basedir}/config-ml.in
12361    ;;
12362 esac ;;
12363     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12364   # Strip MF so we end up with the name of the file.
12365   mf=`echo "$mf" | sed -e 's/:.*$//'`
12366   # Check whether this is an Automake generated Makefile or not.
12367   # We used to match only the files named `Makefile.in', but
12368   # some people rename them; so instead we look at the file content.
12369   # Grep'ing the first line is not enough: some people post-process
12370   # each Makefile.in and add a new line on top of each file to say so.
12371   # So let's grep whole file.
12372   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
12373     dirpart=`(dirname "$mf") 2>/dev/null ||
12374 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12375          X"$mf" : 'X\(//\)[^/]' \| \
12376          X"$mf" : 'X\(//\)$' \| \
12377          X"$mf" : 'X\(/\)' \| \
12378          .     : '\(.\)' 2>/dev/null ||
12379 echo X"$mf" |
12380     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12381           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12382           /^X\(\/\/\)$/{ s//\1/; q; }
12383           /^X\(\/\).*/{ s//\1/; q; }
12384           s/.*/./; q'`
12385   else
12386     continue
12387   fi
12388   # Extract the definition of DEPDIR, am__include, and am__quote
12389   # from the Makefile without running `make'.
12390   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12391   test -z "$DEPDIR" && continue
12392   am__include=`sed -n 's/^am__include = //p' < "$mf"`
12393   test -z "am__include" && continue
12394   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12395   # When using ansi2knr, U may be empty or an underscore; expand it
12396   U=`sed -n 's/^U = //p' < "$mf"`
12397   # Find all dependency output files, they are included files with
12398   # $(DEPDIR) in their names.  We invoke sed twice because it is the
12399   # simplest approach to changing $(DEPDIR) to its actual value in the
12400   # expansion.
12401   for file in `sed -n "
12402     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12403        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12404     # Make sure the directory exists.
12405     test -f "$dirpart/$file" && continue
12406     fdir=`(dirname "$file") 2>/dev/null ||
12407 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12408          X"$file" : 'X\(//\)[^/]' \| \
12409          X"$file" : 'X\(//\)$' \| \
12410          X"$file" : 'X\(/\)' \| \
12411          .     : '\(.\)' 2>/dev/null ||
12412 echo X"$file" |
12413     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12414           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12415           /^X\(\/\/\)$/{ s//\1/; q; }
12416           /^X\(\/\).*/{ s//\1/; q; }
12417           s/.*/./; q'`
12418     { if $as_mkdir_p; then
12419     mkdir -p $dirpart/$fdir
12420   else
12421     as_dir=$dirpart/$fdir
12422     as_dirs=
12423     while test ! -d "$as_dir"; do
12424       as_dirs="$as_dir $as_dirs"
12425       as_dir=`(dirname "$as_dir") 2>/dev/null ||
12426 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12427          X"$as_dir" : 'X\(//\)[^/]' \| \
12428          X"$as_dir" : 'X\(//\)$' \| \
12429          X"$as_dir" : 'X\(/\)' \| \
12430          .     : '\(.\)' 2>/dev/null ||
12431 echo X"$as_dir" |
12432     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12433           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12434           /^X\(\/\/\)$/{ s//\1/; q; }
12435           /^X\(\/\).*/{ s//\1/; q; }
12436           s/.*/./; q'`
12437     done
12438     test ! -n "$as_dirs" || mkdir $as_dirs
12439   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
12440 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
12441    { (exit 1); exit 1; }; }; }
12442
12443     # echo "creating $dirpart/$file"
12444     echo '# dummy' > "$dirpart/$file"
12445   done
12446 done
12447  ;;
12448     gstdint.h )
12449 if test "$GCC" = yes; then
12450   echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
12451 else
12452   echo "/* generated for $CC */" > tmp-stdint.h
12453 fi
12454
12455 sed 's/^ *//' >> tmp-stdint.h <<EOF
12456
12457   #ifndef GCC_GENERATED_STDINT_H
12458   #define GCC_GENERATED_STDINT_H 1
12459
12460   #include <sys/types.h>
12461 EOF
12462
12463 if test "$acx_cv_header_stdint" != stdint.h; then
12464   echo "#include <stddef.h>" >> tmp-stdint.h
12465 fi
12466 if test "$acx_cv_header_stdint" != stddef.h; then
12467   echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
12468 fi
12469
12470 sed 's/^ *//' >> tmp-stdint.h <<EOF
12471   /* glibc uses these symbols as guards to prevent redefinitions.  */
12472   #ifdef __int8_t_defined
12473   #define _INT8_T
12474   #define _INT16_T
12475   #define _INT32_T
12476   #endif
12477   #ifdef __uint32_t_defined
12478   #define _UINT32_T
12479   #endif
12480
12481 EOF
12482
12483 # ----------------- done header, emit basic int types -------------
12484 if test "$acx_cv_header_stdint" = stddef.h; then
12485   sed 's/^ *//' >> tmp-stdint.h <<EOF
12486
12487     #ifndef _UINT8_T
12488     #define _UINT8_T
12489     typedef unsigned $acx_cv_type_int8_t uint8_t;
12490     #endif
12491
12492     #ifndef _UINT16_T
12493     #define _UINT16_T
12494     typedef unsigned $acx_cv_type_int16_t uint16_t;
12495     #endif
12496
12497     #ifndef _UINT32_T
12498     #define _UINT32_T
12499     typedef unsigned $acx_cv_type_int32_t uint32_t;
12500     #endif
12501
12502     #ifndef _INT8_T
12503     #define _INT8_T
12504     typedef $acx_cv_type_int8_t int8_t;
12505     #endif
12506
12507     #ifndef _INT16_T
12508     #define _INT16_T
12509     typedef $acx_cv_type_int16_t int16_t;
12510     #endif
12511
12512     #ifndef _INT32_T
12513     #define _INT32_T
12514     typedef $acx_cv_type_int32_t int32_t;
12515     #endif
12516 EOF
12517 elif test "$ac_cv_type_u_int32_t" = yes; then
12518   sed 's/^ *//' >> tmp-stdint.h <<EOF
12519
12520     /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
12521     #ifndef _INT8_T
12522     #define _INT8_T
12523     #endif
12524     #ifndef _INT16_T
12525     #define _INT16_T
12526     #endif
12527     #ifndef _INT32_T
12528     #define _INT32_T
12529     #endif
12530
12531     #ifndef _UINT8_T
12532     #define _UINT8_T
12533     typedef u_int8_t uint8_t;
12534     #endif
12535
12536     #ifndef _UINT16_T
12537     #define _UINT16_T
12538     typedef u_int16_t uint16_t;
12539     #endif
12540
12541     #ifndef _UINT32_T
12542     #define _UINT32_T
12543     typedef u_int32_t uint32_t;
12544     #endif
12545 EOF
12546 else
12547   sed 's/^ *//' >> tmp-stdint.h <<EOF
12548
12549     /* Some systems have guard macros to prevent redefinitions, define them.  */
12550     #ifndef _INT8_T
12551     #define _INT8_T
12552     #endif
12553     #ifndef _INT16_T
12554     #define _INT16_T
12555     #endif
12556     #ifndef _INT32_T
12557     #define _INT32_T
12558     #endif
12559     #ifndef _UINT8_T
12560     #define _UINT8_T
12561     #endif
12562     #ifndef _UINT16_T
12563     #define _UINT16_T
12564     #endif
12565     #ifndef _UINT32_T
12566     #define _UINT32_T
12567     #endif
12568 EOF
12569 fi
12570
12571 # ------------- done basic int types, emit int64_t types ------------
12572 if test "$ac_cv_type_uint64_t" = yes; then
12573   sed 's/^ *//' >> tmp-stdint.h <<EOF
12574
12575     /* system headers have good uint64_t and int64_t */
12576     #ifndef _INT64_T
12577     #define _INT64_T
12578     #endif
12579     #ifndef _UINT64_T
12580     #define _UINT64_T
12581     #endif
12582 EOF
12583 elif test "$ac_cv_type_u_int64_t" = yes; then
12584   sed 's/^ *//' >> tmp-stdint.h <<EOF
12585
12586     /* system headers have an u_int64_t (and int64_t) */
12587     #ifndef _INT64_T
12588     #define _INT64_T
12589     #endif
12590     #ifndef _UINT64_T
12591     #define _UINT64_T
12592     typedef u_int64_t uint64_t;
12593     #endif
12594 EOF
12595 elif test -n "$acx_cv_type_int64_t"; then
12596   sed 's/^ *//' >> tmp-stdint.h <<EOF
12597
12598     /* architecture has a 64-bit type, $acx_cv_type_int64_t */
12599     #ifndef _INT64_T
12600     #define _INT64_T
12601     typedef $acx_cv_type_int64_t int64_t;
12602     #endif
12603     #ifndef _UINT64_T
12604     #define _UINT64_T
12605     typedef unsigned $acx_cv_type_int64_t uint64_t;
12606     #endif
12607 EOF
12608 else
12609   sed 's/^ *//' >> tmp-stdint.h <<EOF
12610
12611     /* some common heuristics for int64_t, using compiler-specific tests */
12612     #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
12613     #ifndef _INT64_T
12614     #define _INT64_T
12615     typedef long long int64_t;
12616     #endif
12617     #ifndef _UINT64_T
12618     #define _UINT64_T
12619     typedef unsigned long long uint64_t;
12620     #endif
12621
12622     #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
12623     /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
12624        does not implement __extension__.  But that compiler doesn't define
12625        __GNUC_MINOR__.  */
12626     # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
12627     # define __extension__
12628     # endif
12629
12630     # ifndef _INT64_T
12631     # define _INT64_T
12632     __extension__ typedef long long int64_t;
12633     # endif
12634     # ifndef _UINT64_T
12635     # define _UINT64_T
12636     __extension__ typedef unsigned long long uint64_t;
12637     # endif
12638
12639     #elif !defined __STRICT_ANSI__
12640     # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
12641
12642     #  ifndef _INT64_T
12643     #  define _INT64_T
12644     typedef __int64 int64_t;
12645     #  endif
12646     #  ifndef _UINT64_T
12647     #  define _UINT64_T
12648     typedef unsigned __int64 uint64_t;
12649     #  endif
12650     # endif /* compiler */
12651
12652     #endif /* ANSI version */
12653 EOF
12654 fi
12655
12656 # ------------- done int64_t types, emit intptr types ------------
12657 if test "$ac_cv_type_uintptr_t" != yes; then
12658   sed 's/^ *//' >> tmp-stdint.h <<EOF
12659
12660     /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
12661     typedef u$acx_cv_type_intptr_t uintptr_t;
12662     typedef $acx_cv_type_intptr_t  intptr_t;
12663 EOF
12664 fi
12665
12666 # ------------- done intptr types, emit int_least types ------------
12667 if test "$ac_cv_type_int_least32_t" != yes; then
12668   sed 's/^ *//' >> tmp-stdint.h <<EOF
12669
12670     /* Define int_least types */
12671     typedef int8_t     int_least8_t;
12672     typedef int16_t    int_least16_t;
12673     typedef int32_t    int_least32_t;
12674     #ifdef _INT64_T
12675     typedef int64_t    int_least64_t;
12676     #endif
12677
12678     typedef uint8_t    uint_least8_t;
12679     typedef uint16_t   uint_least16_t;
12680     typedef uint32_t   uint_least32_t;
12681     #ifdef _UINT64_T
12682     typedef uint64_t   uint_least64_t;
12683     #endif
12684 EOF
12685 fi
12686
12687 # ------------- done intptr types, emit int_fast types ------------
12688 if test "$ac_cv_type_int_fast32_t" != yes; then
12689       sed 's/^ *//' >> tmp-stdint.h <<EOF
12690
12691     /* Define int_fast types.  short is often slow */
12692     typedef int8_t       int_fast8_t;
12693     typedef int          int_fast16_t;
12694     typedef int32_t      int_fast32_t;
12695     #ifdef _INT64_T
12696     typedef int64_t      int_fast64_t;
12697     #endif
12698
12699     typedef uint8_t      uint_fast8_t;
12700     typedef unsigned int uint_fast16_t;
12701     typedef uint32_t     uint_fast32_t;
12702     #ifdef _UINT64_T
12703     typedef uint64_t     uint_fast64_t;
12704     #endif
12705 EOF
12706 fi
12707
12708 if test "$ac_cv_type_uintmax_t" != yes; then
12709   sed 's/^ *//' >> tmp-stdint.h <<EOF
12710
12711     /* Define intmax based on what we found */
12712     #ifdef _INT64_T
12713     typedef int64_t       intmax_t;
12714     #else
12715     typedef long          intmax_t;
12716     #endif
12717     #ifdef _UINT64_T
12718     typedef uint64_t      uintmax_t;
12719     #else
12720     typedef unsigned long uintmax_t;
12721     #endif
12722 EOF
12723 fi
12724
12725 sed 's/^ *//' >> tmp-stdint.h <<EOF
12726
12727   #endif /* GCC_GENERATED_STDINT_H */
12728 EOF
12729
12730 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
12731   rm -f tmp-stdint.h
12732 else
12733   mv -f tmp-stdint.h gstdint.h
12734 fi
12735
12736  ;;
12737   esac
12738 done
12739 _ACEOF
12740
12741 cat >>$CONFIG_STATUS <<\_ACEOF
12742
12743 { (exit 0); exit 0; }
12744 _ACEOF
12745 chmod +x $CONFIG_STATUS
12746 ac_clean_files=$ac_clean_files_save
12747
12748
12749 # configure is writing to config.log, and then calls config.status.
12750 # config.status does its own redirection, appending to config.log.
12751 # Unfortunately, on DOS this fails, as config.log is still kept open
12752 # by configure, so config.status won't be able to write to it; its
12753 # output is simply discarded.  So we exec the FD to /dev/null,
12754 # effectively closing config.log, so it can be properly (re)opened and
12755 # appended to by config.status.  When coming back to configure, we
12756 # need to make the FD available again.
12757 if test "$no_create" != yes; then
12758   ac_cs_success=:
12759   ac_config_status_args=
12760   test "$silent" = yes &&
12761     ac_config_status_args="$ac_config_status_args --quiet"
12762   exec 5>/dev/null
12763   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12764   exec 5>>config.log
12765   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12766   # would make configure fail if this is the last instruction.
12767   $ac_cs_success || { (exit 1); exit 1; }
12768 fi
12769