OSDN Git Service

config
[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 GENINSRC_TRUE GENINSRC_FALSE 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-generated-files-in-srcdir
860                           put copies of generated files in source dir intended
861                           for creating source tarballs for users without
862                           texinfo bison or flex. [default=no]
863   --enable-multilib       build many library versions (default)
864   --disable-dependency-tracking  speeds up one-time build
865   --enable-dependency-tracking   do not reject slow dependency extractors
866   --enable-shared=PKGS  build shared libraries default=yes
867   --enable-static=PKGS  build static libraries default=yes
868   --enable-fast-install=PKGS  optimize for fast installation default=yes
869   --disable-libtool-lock  avoid locking (might break parallel builds)
870   --enable-maintainer-mode  enable make rules and dependencies not useful
871                           (and sometimes confusing) to the casual installer
872   --enable-tls            Use thread-local storage [default=yes]
873   --enable-symvers=STYLE  enables symbol versioning of the shared library
874                           [default=yes]
875
876 Optional Packages:
877   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
878   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
879   --with-gnu-ld           assume the C compiler uses GNU ld default=no
880   --with-pic              try to use only PIC/non-PIC objects default=use both
881
882 Some influential environment variables:
883   CC          C compiler command
884   CFLAGS      C compiler flags
885   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
886               nonstandard directory <lib dir>
887   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
888               headers in a nonstandard directory <include dir>
889   FC          Fortran compiler command
890   FCFLAGS     Fortran compiler flags
891   CPP         C preprocessor
892
893 Use these variables to override the choices made by `configure' or to help
894 it to find libraries and programs with nonstandard names/locations.
895
896 _ACEOF
897 fi
898
899 if test "$ac_init_help" = "recursive"; then
900   # If there are subdirs, report their specific --help.
901   ac_popdir=`pwd`
902   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
903     test -d $ac_dir || continue
904     ac_builddir=.
905
906 if test "$ac_dir" != .; then
907   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
908   # A "../" for each directory in $ac_dir_suffix.
909   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
910 else
911   ac_dir_suffix= ac_top_builddir=
912 fi
913
914 case $srcdir in
915   .)  # No --srcdir option.  We are building in place.
916     ac_srcdir=.
917     if test -z "$ac_top_builddir"; then
918        ac_top_srcdir=.
919     else
920        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
921     fi ;;
922   [\\/]* | ?:[\\/]* )  # Absolute path.
923     ac_srcdir=$srcdir$ac_dir_suffix;
924     ac_top_srcdir=$srcdir ;;
925   *) # Relative path.
926     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
927     ac_top_srcdir=$ac_top_builddir$srcdir ;;
928 esac
929
930 # Do not use `cd foo && pwd` to compute absolute paths, because
931 # the directories may not exist.
932 case `pwd` in
933 .) ac_abs_builddir="$ac_dir";;
934 *)
935   case "$ac_dir" in
936   .) ac_abs_builddir=`pwd`;;
937   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
938   *) ac_abs_builddir=`pwd`/"$ac_dir";;
939   esac;;
940 esac
941 case $ac_abs_builddir in
942 .) ac_abs_top_builddir=${ac_top_builddir}.;;
943 *)
944   case ${ac_top_builddir}. in
945   .) ac_abs_top_builddir=$ac_abs_builddir;;
946   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
947   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
948   esac;;
949 esac
950 case $ac_abs_builddir in
951 .) ac_abs_srcdir=$ac_srcdir;;
952 *)
953   case $ac_srcdir in
954   .) ac_abs_srcdir=$ac_abs_builddir;;
955   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
956   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
957   esac;;
958 esac
959 case $ac_abs_builddir in
960 .) ac_abs_top_srcdir=$ac_top_srcdir;;
961 *)
962   case $ac_top_srcdir in
963   .) ac_abs_top_srcdir=$ac_abs_builddir;;
964   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
965   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
966   esac;;
967 esac
968
969     cd $ac_dir
970     # Check for guested configure; otherwise get Cygnus style configure.
971     if test -f $ac_srcdir/configure.gnu; then
972       echo
973       $SHELL $ac_srcdir/configure.gnu  --help=recursive
974     elif test -f $ac_srcdir/configure; then
975       echo
976       $SHELL $ac_srcdir/configure  --help=recursive
977     elif test -f $ac_srcdir/configure.ac ||
978            test -f $ac_srcdir/configure.in; then
979       echo
980       $ac_configure --help
981     else
982       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
983     fi
984     cd $ac_popdir
985   done
986 fi
987
988 test -n "$ac_init_help" && exit 0
989 if $ac_init_version; then
990   cat <<\_ACEOF
991 GNU OpenMP Runtime Library configure 1.0
992 generated by GNU Autoconf 2.59
993
994 Copyright (C) 2003 Free Software Foundation, Inc.
995 This configure script is free software; the Free Software Foundation
996 gives unlimited permission to copy, distribute and modify it.
997 _ACEOF
998   exit 0
999 fi
1000 exec 5>config.log
1001 cat >&5 <<_ACEOF
1002 This file contains any messages produced by compilers while
1003 running configure, to aid debugging if configure makes a mistake.
1004
1005 It was created by GNU OpenMP Runtime Library $as_me 1.0, which was
1006 generated by GNU Autoconf 2.59.  Invocation command line was
1007
1008   $ $0 $@
1009
1010 _ACEOF
1011 {
1012 cat <<_ASUNAME
1013 ## --------- ##
1014 ## Platform. ##
1015 ## --------- ##
1016
1017 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1018 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1019 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1020 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1021 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1022
1023 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1024 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1025
1026 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1027 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1028 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1029 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1030 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1031 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1032 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1033
1034 _ASUNAME
1035
1036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1037 for as_dir in $PATH
1038 do
1039   IFS=$as_save_IFS
1040   test -z "$as_dir" && as_dir=.
1041   echo "PATH: $as_dir"
1042 done
1043
1044 } >&5
1045
1046 cat >&5 <<_ACEOF
1047
1048
1049 ## ----------- ##
1050 ## Core tests. ##
1051 ## ----------- ##
1052
1053 _ACEOF
1054
1055
1056 # Keep a trace of the command line.
1057 # Strip out --no-create and --no-recursion so they do not pile up.
1058 # Strip out --silent because we don't want to record it for future runs.
1059 # Also quote any args containing shell meta-characters.
1060 # Make two passes to allow for proper duplicate-argument suppression.
1061 ac_configure_args=
1062 ac_configure_args0=
1063 ac_configure_args1=
1064 ac_sep=
1065 ac_must_keep_next=false
1066 for ac_pass in 1 2
1067 do
1068   for ac_arg
1069   do
1070     case $ac_arg in
1071     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1072     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1073     | -silent | --silent | --silen | --sile | --sil)
1074       continue ;;
1075     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1076       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1077     esac
1078     case $ac_pass in
1079     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1080     2)
1081       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1082       if test $ac_must_keep_next = true; then
1083         ac_must_keep_next=false # Got value, back to normal.
1084       else
1085         case $ac_arg in
1086           *=* | --config-cache | -C | -disable-* | --disable-* \
1087           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1088           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1089           | -with-* | --with-* | -without-* | --without-* | --x)
1090             case "$ac_configure_args0 " in
1091               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1092             esac
1093             ;;
1094           -* ) ac_must_keep_next=true ;;
1095         esac
1096       fi
1097       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1098       # Get rid of the leading space.
1099       ac_sep=" "
1100       ;;
1101     esac
1102   done
1103 done
1104 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1105 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1106
1107 # When interrupted or exit'd, cleanup temporary files, and complete
1108 # config.log.  We remove comments because anyway the quotes in there
1109 # would cause problems or look ugly.
1110 # WARNING: Be sure not to use single quotes in there, as some shells,
1111 # such as our DU 5.0 friend, will then `close' the trap.
1112 trap 'exit_status=$?
1113   # Save into config.log some information that might help in debugging.
1114   {
1115     echo
1116
1117     cat <<\_ASBOX
1118 ## ---------------- ##
1119 ## Cache variables. ##
1120 ## ---------------- ##
1121 _ASBOX
1122     echo
1123     # The following way of writing the cache mishandles newlines in values,
1124 {
1125   (set) 2>&1 |
1126     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1127     *ac_space=\ *)
1128       sed -n \
1129         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1130           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1131       ;;
1132     *)
1133       sed -n \
1134         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1135       ;;
1136     esac;
1137 }
1138     echo
1139
1140     cat <<\_ASBOX
1141 ## ----------------- ##
1142 ## Output variables. ##
1143 ## ----------------- ##
1144 _ASBOX
1145     echo
1146     for ac_var in $ac_subst_vars
1147     do
1148       eval ac_val=$`echo $ac_var`
1149       echo "$ac_var='"'"'$ac_val'"'"'"
1150     done | sort
1151     echo
1152
1153     if test -n "$ac_subst_files"; then
1154       cat <<\_ASBOX
1155 ## ------------- ##
1156 ## Output files. ##
1157 ## ------------- ##
1158 _ASBOX
1159       echo
1160       for ac_var in $ac_subst_files
1161       do
1162         eval ac_val=$`echo $ac_var`
1163         echo "$ac_var='"'"'$ac_val'"'"'"
1164       done | sort
1165       echo
1166     fi
1167
1168     if test -s confdefs.h; then
1169       cat <<\_ASBOX
1170 ## ----------- ##
1171 ## confdefs.h. ##
1172 ## ----------- ##
1173 _ASBOX
1174       echo
1175       sed "/^$/d" confdefs.h | sort
1176       echo
1177     fi
1178     test "$ac_signal" != 0 &&
1179       echo "$as_me: caught signal $ac_signal"
1180     echo "$as_me: exit $exit_status"
1181   } >&5
1182   rm -f core *.core &&
1183   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1184     exit $exit_status
1185      ' 0
1186 for ac_signal in 1 2 13 15; do
1187   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1188 done
1189 ac_signal=0
1190
1191 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1192 rm -rf conftest* confdefs.h
1193 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1194 echo >confdefs.h
1195
1196 # Predefined preprocessor variables.
1197
1198 cat >>confdefs.h <<_ACEOF
1199 #define PACKAGE_NAME "$PACKAGE_NAME"
1200 _ACEOF
1201
1202
1203 cat >>confdefs.h <<_ACEOF
1204 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1205 _ACEOF
1206
1207
1208 cat >>confdefs.h <<_ACEOF
1209 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1210 _ACEOF
1211
1212
1213 cat >>confdefs.h <<_ACEOF
1214 #define PACKAGE_STRING "$PACKAGE_STRING"
1215 _ACEOF
1216
1217
1218 cat >>confdefs.h <<_ACEOF
1219 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1220 _ACEOF
1221
1222
1223 # Let the site file select an alternate cache file if it wants to.
1224 # Prefer explicitly selected file to automatically selected ones.
1225 if test -z "$CONFIG_SITE"; then
1226   if test "x$prefix" != xNONE; then
1227     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1228   else
1229     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1230   fi
1231 fi
1232 for ac_site_file in $CONFIG_SITE; do
1233   if test -r "$ac_site_file"; then
1234     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1235 echo "$as_me: loading site script $ac_site_file" >&6;}
1236     sed 's/^/| /' "$ac_site_file" >&5
1237     . "$ac_site_file"
1238   fi
1239 done
1240
1241 if test -r "$cache_file"; then
1242   # Some versions of bash will fail to source /dev/null (special
1243   # files actually), so we avoid doing that.
1244   if test -f "$cache_file"; then
1245     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1246 echo "$as_me: loading cache $cache_file" >&6;}
1247     case $cache_file in
1248       [\\/]* | ?:[\\/]* ) . $cache_file;;
1249       *)                      . ./$cache_file;;
1250     esac
1251   fi
1252 else
1253   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1254 echo "$as_me: creating cache $cache_file" >&6;}
1255   >$cache_file
1256 fi
1257
1258 # Check that the precious variables saved in the cache have kept the same
1259 # value.
1260 ac_cache_corrupted=false
1261 for ac_var in `(set) 2>&1 |
1262                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1263   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1264   eval ac_new_set=\$ac_env_${ac_var}_set
1265   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1266   eval ac_new_val="\$ac_env_${ac_var}_value"
1267   case $ac_old_set,$ac_new_set in
1268     set,)
1269       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1270 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1271       ac_cache_corrupted=: ;;
1272     ,set)
1273       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1274 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1275       ac_cache_corrupted=: ;;
1276     ,);;
1277     *)
1278       if test "x$ac_old_val" != "x$ac_new_val"; then
1279         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1280 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1281         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1282 echo "$as_me:   former value:  $ac_old_val" >&2;}
1283         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1284 echo "$as_me:   current value: $ac_new_val" >&2;}
1285         ac_cache_corrupted=:
1286       fi;;
1287   esac
1288   # Pass precious variables to config.status.
1289   if test "$ac_new_set" = set; then
1290     case $ac_new_val in
1291     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1292       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1293     *) ac_arg=$ac_var=$ac_new_val ;;
1294     esac
1295     case " $ac_configure_args " in
1296       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1297       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1298     esac
1299   fi
1300 done
1301 if $ac_cache_corrupted; then
1302   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1303 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1304   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1305 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1306    { (exit 1); exit 1; }; }
1307 fi
1308
1309 ac_ext=c
1310 ac_cpp='$CPP $CPPFLAGS'
1311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341           ac_config_headers="$ac_config_headers config.h"
1342
1343
1344 # -------
1345 # Options
1346 # -------
1347
1348 echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5
1349 echo $ECHO_N "checking for --enable-version-specific-runtime-libs... $ECHO_C" >&6
1350  # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1351 if test "${enable_version_specific_runtime_libs+set}" = set; then
1352   enableval="$enable_version_specific_runtime_libs"
1353
1354       case "$enableval" in
1355        yes|no) ;;
1356        *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific-runtime-libs" >&5
1357 echo "$as_me: error: Unknown argument to enable/disable version-specific-runtime-libs" >&2;}
1358    { (exit 1); exit 1; }; } ;;
1359                           esac
1360
1361 else
1362   enable_version_specific_runtime_libs=no
1363 fi;
1364
1365 echo "$as_me:$LINENO: result: $enable_version_specific_runtime_libs" >&5
1366 echo "${ECHO_T}$enable_version_specific_runtime_libs" >&6
1367
1368 echo "$as_me:$LINENO: checking for --enable-linux-futex" >&5
1369 echo $ECHO_N "checking for --enable-linux-futex... $ECHO_C" >&6
1370  # Check whether --enable-linux-futex or --disable-linux-futex was given.
1371 if test "${enable_linux_futex+set}" = set; then
1372   enableval="$enable_linux_futex"
1373
1374       case "$enableval" in
1375        yes|no|default) ;;
1376        *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable linux-futex" >&5
1377 echo "$as_me: error: Unknown argument to enable/disable linux-futex" >&2;}
1378    { (exit 1); exit 1; }; } ;;
1379                           esac
1380
1381 else
1382   enable_linux_futex=default
1383 fi;
1384
1385 echo "$as_me:$LINENO: result: $enable_linux_futex" >&5
1386 echo "${ECHO_T}$enable_linux_futex" >&6
1387
1388 # We would like our source tree to be readonly. However when releases or
1389 # pre-releases are generated, the flex/bison generated files as well as the
1390 # various formats of manuals need to be included along with the rest of the
1391 # sources.  Therefore we have --enable-generated-files-in-srcdir to do
1392 # just that.
1393 echo "$as_me:$LINENO: checking for --enable-generated-files-in-srcdir" >&5
1394 echo $ECHO_N "checking for --enable-generated-files-in-srcdir... $ECHO_C" >&6
1395  # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1396 if test "${enable_generated_files_in_srcdir+set}" = set; then
1397   enableval="$enable_generated_files_in_srcdir"
1398
1399       case "$enableval" in
1400        yes|no) ;;
1401        *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable generated-files-in-srcdir" >&5
1402 echo "$as_me: error: Unknown argument to enable/disable generated-files-in-srcdir" >&2;}
1403    { (exit 1); exit 1; }; } ;;
1404                           esac
1405
1406 else
1407   enable_generated_files_in_srcdir=no
1408 fi;
1409
1410 echo "$as_me:$LINENO: result: $enable_generated_files_in_srcdir" >&5
1411 echo "${ECHO_T}$enable_generated_files_in_srcdir" >&6
1412
1413
1414 if test "$enable_generated_files_in_srcdir" = yes; then
1415   GENINSRC_TRUE=
1416   GENINSRC_FALSE='#'
1417 else
1418   GENINSRC_TRUE='#'
1419   GENINSRC_FALSE=
1420 fi
1421
1422
1423
1424 # -------
1425 # -------
1426
1427 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
1428 #
1429 # You will slowly go insane if you do not grok the following fact:  when
1430 # building this library, the top-level /target/ becomes the library's /host/.
1431 #
1432 # configure then causes --target to default to --host, exactly like any
1433 # other package using autoconf.  Therefore, 'target' and 'host' will
1434 # always be the same.  This makes sense both for native and cross compilers
1435 # just think about it for a little while.  :-)
1436 #
1437 # Also, if this library is being configured as part of a cross compiler, the
1438 # top-level configure script will pass the "real" host as $with_cross_host.
1439 #
1440 # Do not delete or change the following two lines.  For why, see
1441 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
1442 ac_aux_dir=
1443 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1444   if test -f $ac_dir/install-sh; then
1445     ac_aux_dir=$ac_dir
1446     ac_install_sh="$ac_aux_dir/install-sh -c"
1447     break
1448   elif test -f $ac_dir/install.sh; then
1449     ac_aux_dir=$ac_dir
1450     ac_install_sh="$ac_aux_dir/install.sh -c"
1451     break
1452   elif test -f $ac_dir/shtool; then
1453     ac_aux_dir=$ac_dir
1454     ac_install_sh="$ac_aux_dir/shtool install -c"
1455     break
1456   fi
1457 done
1458 if test -z "$ac_aux_dir"; then
1459   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1460 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1461    { (exit 1); exit 1; }; }
1462 fi
1463 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1464 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1465 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1466
1467 # Make sure we can run config.sub.
1468 $ac_config_sub sun4 >/dev/null 2>&1 ||
1469   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1470 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1471    { (exit 1); exit 1; }; }
1472
1473 echo "$as_me:$LINENO: checking build system type" >&5
1474 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1475 if test "${ac_cv_build+set}" = set; then
1476   echo $ECHO_N "(cached) $ECHO_C" >&6
1477 else
1478   ac_cv_build_alias=$build_alias
1479 test -z "$ac_cv_build_alias" &&
1480   ac_cv_build_alias=`$ac_config_guess`
1481 test -z "$ac_cv_build_alias" &&
1482   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1483 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1484    { (exit 1); exit 1; }; }
1485 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1486   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1487 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1488    { (exit 1); exit 1; }; }
1489
1490 fi
1491 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1492 echo "${ECHO_T}$ac_cv_build" >&6
1493 build=$ac_cv_build
1494 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1495 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1496 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1497
1498
1499 echo "$as_me:$LINENO: checking host system type" >&5
1500 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1501 if test "${ac_cv_host+set}" = set; then
1502   echo $ECHO_N "(cached) $ECHO_C" >&6
1503 else
1504   ac_cv_host_alias=$host_alias
1505 test -z "$ac_cv_host_alias" &&
1506   ac_cv_host_alias=$ac_cv_build_alias
1507 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1508   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1509 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1510    { (exit 1); exit 1; }; }
1511
1512 fi
1513 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1514 echo "${ECHO_T}$ac_cv_host" >&6
1515 host=$ac_cv_host
1516 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1517 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1518 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1519
1520
1521 echo "$as_me:$LINENO: checking target system type" >&5
1522 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1523 if test "${ac_cv_target+set}" = set; then
1524   echo $ECHO_N "(cached) $ECHO_C" >&6
1525 else
1526   ac_cv_target_alias=$target_alias
1527 test "x$ac_cv_target_alias" = "x" &&
1528   ac_cv_target_alias=$ac_cv_host_alias
1529 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1530   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1531 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1532    { (exit 1); exit 1; }; }
1533
1534 fi
1535 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1536 echo "${ECHO_T}$ac_cv_target" >&6
1537 target=$ac_cv_target
1538 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1539 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1540 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1541
1542
1543 # The aliases save the names the user supplied, while $host etc.
1544 # will get canonicalized.
1545 test -n "$target_alias" &&
1546   test "$program_prefix$program_suffix$program_transform_name" = \
1547     NONENONEs,x,x, &&
1548   program_prefix=${target_alias}-
1549 target_alias=${target_alias-$host_alias}
1550
1551 # Sets up automake.  Must come after AC_CANONICAL_SYSTEM.  Each of the
1552 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
1553 #  1.9.0:  minimum required version
1554 #  no-define:  PACKAGE and VERSION will not be #define'd in config.h (a bunch
1555 #              of other PACKAGE_* variables will, however, and there's nothing
1556 #              we can do about that; they come from AC_INIT).
1557 #  foreign:  we don't follow the normal rules for GNU packages (no COPYING
1558 #            file in the top srcdir, etc, etc), so stop complaining.
1559 #  -Wall:  turns on all automake warnings...
1560 #  -Wno-portability:  ...except this one, since GNU make is required.
1561 #  -Wno-override: ... and this one, since we do want this in testsuite.
1562 am__api_version="1.9"
1563 # Find a good install program.  We prefer a C program (faster),
1564 # so one script is as good as another.  But avoid the broken or
1565 # incompatible versions:
1566 # SysV /etc/install, /usr/sbin/install
1567 # SunOS /usr/etc/install
1568 # IRIX /sbin/install
1569 # AIX /bin/install
1570 # AmigaOS /C/install, which installs bootblocks on floppy discs
1571 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1572 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1573 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1574 # OS/2's system install, which has a completely different semantic
1575 # ./install, which can be erroneously created by make from ./install.sh.
1576 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1577 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1578 if test -z "$INSTALL"; then
1579 if test "${ac_cv_path_install+set}" = set; then
1580   echo $ECHO_N "(cached) $ECHO_C" >&6
1581 else
1582   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1583 for as_dir in $PATH
1584 do
1585   IFS=$as_save_IFS
1586   test -z "$as_dir" && as_dir=.
1587   # Account for people who put trailing slashes in PATH elements.
1588 case $as_dir/ in
1589   ./ | .// | /cC/* | \
1590   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1591   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1592   /usr/ucb/* ) ;;
1593   *)
1594     # OSF1 and SCO ODT 3.0 have their own names for install.
1595     # Don't use installbsd from OSF since it installs stuff as root
1596     # by default.
1597     for ac_prog in ginstall scoinst install; do
1598       for ac_exec_ext in '' $ac_executable_extensions; do
1599         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1600           if test $ac_prog = install &&
1601             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1602             # AIX install.  It has an incompatible calling convention.
1603             :
1604           elif test $ac_prog = install &&
1605             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1606             # program-specific install script used by HP pwplus--don't use.
1607             :
1608           else
1609             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1610             break 3
1611           fi
1612         fi
1613       done
1614     done
1615     ;;
1616 esac
1617 done
1618
1619
1620 fi
1621   if test "${ac_cv_path_install+set}" = set; then
1622     INSTALL=$ac_cv_path_install
1623   else
1624     # As a last resort, use the slow shell script.  We don't cache a
1625     # path for INSTALL within a source directory, because that will
1626     # break other packages using the cache if that directory is
1627     # removed, or if the path is relative.
1628     INSTALL=$ac_install_sh
1629   fi
1630 fi
1631 echo "$as_me:$LINENO: result: $INSTALL" >&5
1632 echo "${ECHO_T}$INSTALL" >&6
1633
1634 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1635 # It thinks the first close brace ends the variable substitution.
1636 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1637
1638 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1639
1640 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1641
1642 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1643 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1644 # Just in case
1645 sleep 1
1646 echo timestamp > conftest.file
1647 # Do `set' in a subshell so we don't clobber the current shell's
1648 # arguments.  Must try -L first in case configure is actually a
1649 # symlink; some systems play weird games with the mod time of symlinks
1650 # (eg FreeBSD returns the mod time of the symlink's containing
1651 # directory).
1652 if (
1653    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1654    if test "$*" = "X"; then
1655       # -L didn't work.
1656       set X `ls -t $srcdir/configure conftest.file`
1657    fi
1658    rm -f conftest.file
1659    if test "$*" != "X $srcdir/configure conftest.file" \
1660       && test "$*" != "X conftest.file $srcdir/configure"; then
1661
1662       # If neither matched, then we have a broken ls.  This can happen
1663       # if, for instance, CONFIG_SHELL is bash and it inherits a
1664       # broken ls alias from the environment.  This has actually
1665       # happened.  Such a system could not be considered "sane".
1666       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1667 alias in your environment" >&5
1668 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1669 alias in your environment" >&2;}
1670    { (exit 1); exit 1; }; }
1671    fi
1672
1673    test "$2" = conftest.file
1674    )
1675 then
1676    # Ok.
1677    :
1678 else
1679    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1680 Check your system clock" >&5
1681 echo "$as_me: error: newly created file is older than distributed files!
1682 Check your system clock" >&2;}
1683    { (exit 1); exit 1; }; }
1684 fi
1685 echo "$as_me:$LINENO: result: yes" >&5
1686 echo "${ECHO_T}yes" >&6
1687 test "$program_prefix" != NONE &&
1688   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1689 # Use a double $ so make ignores it.
1690 test "$program_suffix" != NONE &&
1691   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1692 # Double any \ or $.  echo might interpret backslashes.
1693 # By default was `s,x,x', remove it if useless.
1694 cat <<\_ACEOF >conftest.sed
1695 s/[\\$]/&&/g;s/;s,x,x,$//
1696 _ACEOF
1697 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1698 rm conftest.sed
1699
1700 # expand $ac_aux_dir to an absolute path
1701 am_aux_dir=`cd $ac_aux_dir && pwd`
1702
1703 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1704 # Use eval to expand $SHELL
1705 if eval "$MISSING --run true"; then
1706   am_missing_run="$MISSING --run "
1707 else
1708   am_missing_run=
1709   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1710 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1711 fi
1712
1713 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1714   # We used to keeping the `.' as first argument, in order to
1715   # allow $(mkdir_p) to be used without argument.  As in
1716   #   $(mkdir_p) $(somedir)
1717   # where $(somedir) is conditionally defined.  However this is wrong
1718   # for two reasons:
1719   #  1. if the package is installed by a user who cannot write `.'
1720   #     make install will fail,
1721   #  2. the above comment should most certainly read
1722   #     $(mkdir_p) $(DESTDIR)$(somedir)
1723   #     so it does not work when $(somedir) is undefined and
1724   #     $(DESTDIR) is not.
1725   #  To support the latter case, we have to write
1726   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1727   #  so the `.' trick is pointless.
1728   mkdir_p='mkdir -p --'
1729 else
1730   # On NextStep and OpenStep, the `mkdir' command does not
1731   # recognize any option.  It will interpret all options as
1732   # directories to create, and then abort because `.' already
1733   # exists.
1734   for d in ./-p ./--version;
1735   do
1736     test -d $d && rmdir $d
1737   done
1738   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1739   if test -f "$ac_aux_dir/mkinstalldirs"; then
1740     mkdir_p='$(mkinstalldirs)'
1741   else
1742     mkdir_p='$(install_sh) -d'
1743   fi
1744 fi
1745
1746 for ac_prog in gawk mawk nawk awk
1747 do
1748   # Extract the first word of "$ac_prog", so it can be a program name with args.
1749 set dummy $ac_prog; ac_word=$2
1750 echo "$as_me:$LINENO: checking for $ac_word" >&5
1751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1752 if test "${ac_cv_prog_AWK+set}" = set; then
1753   echo $ECHO_N "(cached) $ECHO_C" >&6
1754 else
1755   if test -n "$AWK"; then
1756   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1757 else
1758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1759 for as_dir in $PATH
1760 do
1761   IFS=$as_save_IFS
1762   test -z "$as_dir" && as_dir=.
1763   for ac_exec_ext in '' $ac_executable_extensions; do
1764   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1765     ac_cv_prog_AWK="$ac_prog"
1766     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1767     break 2
1768   fi
1769 done
1770 done
1771
1772 fi
1773 fi
1774 AWK=$ac_cv_prog_AWK
1775 if test -n "$AWK"; then
1776   echo "$as_me:$LINENO: result: $AWK" >&5
1777 echo "${ECHO_T}$AWK" >&6
1778 else
1779   echo "$as_me:$LINENO: result: no" >&5
1780 echo "${ECHO_T}no" >&6
1781 fi
1782
1783   test -n "$AWK" && break
1784 done
1785
1786 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1787 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1788 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1789 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1790   echo $ECHO_N "(cached) $ECHO_C" >&6
1791 else
1792   cat >conftest.make <<\_ACEOF
1793 all:
1794         @echo 'ac_maketemp="$(MAKE)"'
1795 _ACEOF
1796 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1797 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1798 if test -n "$ac_maketemp"; then
1799   eval ac_cv_prog_make_${ac_make}_set=yes
1800 else
1801   eval ac_cv_prog_make_${ac_make}_set=no
1802 fi
1803 rm -f conftest.make
1804 fi
1805 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1806   echo "$as_me:$LINENO: result: yes" >&5
1807 echo "${ECHO_T}yes" >&6
1808   SET_MAKE=
1809 else
1810   echo "$as_me:$LINENO: result: no" >&5
1811 echo "${ECHO_T}no" >&6
1812   SET_MAKE="MAKE=${MAKE-make}"
1813 fi
1814
1815 rm -rf .tst 2>/dev/null
1816 mkdir .tst 2>/dev/null
1817 if test -d .tst; then
1818   am__leading_dot=.
1819 else
1820   am__leading_dot=_
1821 fi
1822 rmdir .tst 2>/dev/null
1823
1824 # test to see if srcdir already configured
1825 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1826    test -f $srcdir/config.status; then
1827   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1828 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1829    { (exit 1); exit 1; }; }
1830 fi
1831
1832 # test whether we have cygpath
1833 if test -z "$CYGPATH_W"; then
1834   if (cygpath --version) >/dev/null 2>/dev/null; then
1835     CYGPATH_W='cygpath -w'
1836   else
1837     CYGPATH_W=echo
1838   fi
1839 fi
1840
1841
1842 # Define the identity of the package.
1843  PACKAGE='libgomp'
1844  VERSION='1.0'
1845
1846
1847 cat >>confdefs.h <<_ACEOF
1848 #define PACKAGE "$PACKAGE"
1849 _ACEOF
1850
1851
1852 cat >>confdefs.h <<_ACEOF
1853 #define VERSION "$VERSION"
1854 _ACEOF
1855
1856 # Some tools Automake needs.
1857
1858 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1859
1860
1861 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1862
1863
1864 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1865
1866
1867 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1868
1869
1870 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1871
1872 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1873
1874 # Installed binaries are usually stripped using `strip' when the user
1875 # run `make install-strip'.  However `strip' might not be the right
1876 # tool to use in cross-compilation environments, therefore Automake
1877 # will honor the `STRIP' environment variable to overrule this program.
1878 if test "$cross_compiling" != no; then
1879   if test -n "$ac_tool_prefix"; then
1880   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1881 set dummy ${ac_tool_prefix}strip; ac_word=$2
1882 echo "$as_me:$LINENO: checking for $ac_word" >&5
1883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1884 if test "${ac_cv_prog_STRIP+set}" = set; then
1885   echo $ECHO_N "(cached) $ECHO_C" >&6
1886 else
1887   if test -n "$STRIP"; then
1888   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1889 else
1890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1891 for as_dir in $PATH
1892 do
1893   IFS=$as_save_IFS
1894   test -z "$as_dir" && as_dir=.
1895   for ac_exec_ext in '' $ac_executable_extensions; do
1896   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1897     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1898     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1899     break 2
1900   fi
1901 done
1902 done
1903
1904 fi
1905 fi
1906 STRIP=$ac_cv_prog_STRIP
1907 if test -n "$STRIP"; then
1908   echo "$as_me:$LINENO: result: $STRIP" >&5
1909 echo "${ECHO_T}$STRIP" >&6
1910 else
1911   echo "$as_me:$LINENO: result: no" >&5
1912 echo "${ECHO_T}no" >&6
1913 fi
1914
1915 fi
1916 if test -z "$ac_cv_prog_STRIP"; then
1917   ac_ct_STRIP=$STRIP
1918   # Extract the first word of "strip", so it can be a program name with args.
1919 set dummy strip; ac_word=$2
1920 echo "$as_me:$LINENO: checking for $ac_word" >&5
1921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1922 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1923   echo $ECHO_N "(cached) $ECHO_C" >&6
1924 else
1925   if test -n "$ac_ct_STRIP"; then
1926   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1927 else
1928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1929 for as_dir in $PATH
1930 do
1931   IFS=$as_save_IFS
1932   test -z "$as_dir" && as_dir=.
1933   for ac_exec_ext in '' $ac_executable_extensions; do
1934   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1935     ac_cv_prog_ac_ct_STRIP="strip"
1936     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1937     break 2
1938   fi
1939 done
1940 done
1941
1942   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1943 fi
1944 fi
1945 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1946 if test -n "$ac_ct_STRIP"; then
1947   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1948 echo "${ECHO_T}$ac_ct_STRIP" >&6
1949 else
1950   echo "$as_me:$LINENO: result: no" >&5
1951 echo "${ECHO_T}no" >&6
1952 fi
1953
1954   STRIP=$ac_ct_STRIP
1955 else
1956   STRIP="$ac_cv_prog_STRIP"
1957 fi
1958
1959 fi
1960 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1961
1962 # We need awk for the "check" target.  The system "awk" is bad on
1963 # some platforms.
1964 # Always define AMTAR for backward compatibility.
1965
1966 AMTAR=${AMTAR-"${am_missing_run}tar"}
1967
1968 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1969
1970
1971
1972
1973
1974 # Default to --enable-multilib
1975 # Check whether --enable-multilib or --disable-multilib was given.
1976 if test "${enable_multilib+set}" = set; then
1977   enableval="$enable_multilib"
1978   case "$enableval" in
1979   yes) multilib=yes ;;
1980   no)  multilib=no ;;
1981   *)   { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1982 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1983    { (exit 1); exit 1; }; } ;;
1984  esac
1985 else
1986   multilib=yes
1987 fi;
1988
1989 # We may get other options which we leave undocumented:
1990 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1991 # See config-ml.in if you want the gory details.
1992
1993 if test "$srcdir" = "."; then
1994   if test "$with_target_subdir" != "."; then
1995     multi_basedir="$srcdir/$with_multisrctop../.."
1996   else
1997     multi_basedir="$srcdir/$with_multisrctop.."
1998   fi
1999 else
2000   multi_basedir="$srcdir/.."
2001 fi
2002
2003
2004 # Even if the default multilib is not a cross compilation,
2005 # it may be that some of the other multilibs are.
2006 if test $cross_compiling = no && test $multilib = yes \
2007    && test "x${with_multisubdir}" != x ; then
2008    cross_compiling=maybe
2009 fi
2010
2011           ac_config_commands="$ac_config_commands default-1"
2012
2013
2014 # Calculate toolexeclibdir
2015 # Also toolexecdir, though it's only used in toolexeclibdir
2016 case ${enable_version_specific_runtime_libs} in
2017   yes)
2018     # Need the gcc compiler version to know where to install libraries
2019     # and header files if --enable-version-specific-runtime-libs option
2020     # is selected.
2021     toolexecdir='$(libdir)/gcc/$(target_alias)'
2022     toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
2023     ;;
2024   no)
2025     if test -n "$with_cross_host" &&
2026        test x"$with_cross_host" != x"no"; then
2027       # Install a library built with a cross compiler in tooldir, not libdir.
2028       toolexecdir='$(exec_prefix)/$(target_alias)'
2029       toolexeclibdir='$(toolexecdir)/lib'
2030     else
2031       toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
2032       toolexeclibdir='$(libdir)'
2033     fi
2034     multi_os_directory=`$CC -print-multi-os-directory`
2035     case $multi_os_directory in
2036       .) ;; # Avoid trailing /.
2037       *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
2038     esac
2039     ;;
2040 esac
2041
2042
2043
2044 # Check the compiler.
2045 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
2046 # We must force CC to /not/ be precious variables; otherwise
2047 # the wrong, non-multilib-adjusted value will be used in multilibs.
2048 # As a side effect, we have to subst CFLAGS ourselves.
2049
2050
2051
2052 ac_ext=c
2053 ac_cpp='$CPP $CPPFLAGS'
2054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2057 if test -n "$ac_tool_prefix"; then
2058   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2059 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2060 echo "$as_me:$LINENO: checking for $ac_word" >&5
2061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2062 if test "${ac_cv_prog_CC+set}" = set; then
2063   echo $ECHO_N "(cached) $ECHO_C" >&6
2064 else
2065   if test -n "$CC"; then
2066   ac_cv_prog_CC="$CC" # Let the user override the test.
2067 else
2068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2069 for as_dir in $PATH
2070 do
2071   IFS=$as_save_IFS
2072   test -z "$as_dir" && as_dir=.
2073   for ac_exec_ext in '' $ac_executable_extensions; do
2074   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2075     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2076     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2077     break 2
2078   fi
2079 done
2080 done
2081
2082 fi
2083 fi
2084 CC=$ac_cv_prog_CC
2085 if test -n "$CC"; then
2086   echo "$as_me:$LINENO: result: $CC" >&5
2087 echo "${ECHO_T}$CC" >&6
2088 else
2089   echo "$as_me:$LINENO: result: no" >&5
2090 echo "${ECHO_T}no" >&6
2091 fi
2092
2093 fi
2094 if test -z "$ac_cv_prog_CC"; then
2095   ac_ct_CC=$CC
2096   # Extract the first word of "gcc", so it can be a program name with args.
2097 set dummy gcc; ac_word=$2
2098 echo "$as_me:$LINENO: checking for $ac_word" >&5
2099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2100 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2101   echo $ECHO_N "(cached) $ECHO_C" >&6
2102 else
2103   if test -n "$ac_ct_CC"; then
2104   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2105 else
2106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2107 for as_dir in $PATH
2108 do
2109   IFS=$as_save_IFS
2110   test -z "$as_dir" && as_dir=.
2111   for ac_exec_ext in '' $ac_executable_extensions; do
2112   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2113     ac_cv_prog_ac_ct_CC="gcc"
2114     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2115     break 2
2116   fi
2117 done
2118 done
2119
2120 fi
2121 fi
2122 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2123 if test -n "$ac_ct_CC"; then
2124   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2125 echo "${ECHO_T}$ac_ct_CC" >&6
2126 else
2127   echo "$as_me:$LINENO: result: no" >&5
2128 echo "${ECHO_T}no" >&6
2129 fi
2130
2131   CC=$ac_ct_CC
2132 else
2133   CC="$ac_cv_prog_CC"
2134 fi
2135
2136 if test -z "$CC"; then
2137   if test -n "$ac_tool_prefix"; then
2138   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2139 set dummy ${ac_tool_prefix}cc; ac_word=$2
2140 echo "$as_me:$LINENO: checking for $ac_word" >&5
2141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2142 if test "${ac_cv_prog_CC+set}" = set; then
2143   echo $ECHO_N "(cached) $ECHO_C" >&6
2144 else
2145   if test -n "$CC"; then
2146   ac_cv_prog_CC="$CC" # Let the user override the test.
2147 else
2148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2149 for as_dir in $PATH
2150 do
2151   IFS=$as_save_IFS
2152   test -z "$as_dir" && as_dir=.
2153   for ac_exec_ext in '' $ac_executable_extensions; do
2154   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2155     ac_cv_prog_CC="${ac_tool_prefix}cc"
2156     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2157     break 2
2158   fi
2159 done
2160 done
2161
2162 fi
2163 fi
2164 CC=$ac_cv_prog_CC
2165 if test -n "$CC"; then
2166   echo "$as_me:$LINENO: result: $CC" >&5
2167 echo "${ECHO_T}$CC" >&6
2168 else
2169   echo "$as_me:$LINENO: result: no" >&5
2170 echo "${ECHO_T}no" >&6
2171 fi
2172
2173 fi
2174 if test -z "$ac_cv_prog_CC"; then
2175   ac_ct_CC=$CC
2176   # Extract the first word of "cc", so it can be a program name with args.
2177 set dummy cc; ac_word=$2
2178 echo "$as_me:$LINENO: checking for $ac_word" >&5
2179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2180 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2181   echo $ECHO_N "(cached) $ECHO_C" >&6
2182 else
2183   if test -n "$ac_ct_CC"; then
2184   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2185 else
2186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2187 for as_dir in $PATH
2188 do
2189   IFS=$as_save_IFS
2190   test -z "$as_dir" && as_dir=.
2191   for ac_exec_ext in '' $ac_executable_extensions; do
2192   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2193     ac_cv_prog_ac_ct_CC="cc"
2194     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2195     break 2
2196   fi
2197 done
2198 done
2199
2200 fi
2201 fi
2202 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2203 if test -n "$ac_ct_CC"; then
2204   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2205 echo "${ECHO_T}$ac_ct_CC" >&6
2206 else
2207   echo "$as_me:$LINENO: result: no" >&5
2208 echo "${ECHO_T}no" >&6
2209 fi
2210
2211   CC=$ac_ct_CC
2212 else
2213   CC="$ac_cv_prog_CC"
2214 fi
2215
2216 fi
2217 if test -z "$CC"; then
2218   # Extract the first word of "cc", so it can be a program name with args.
2219 set dummy cc; ac_word=$2
2220 echo "$as_me:$LINENO: checking for $ac_word" >&5
2221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2222 if test "${ac_cv_prog_CC+set}" = set; then
2223   echo $ECHO_N "(cached) $ECHO_C" >&6
2224 else
2225   if test -n "$CC"; then
2226   ac_cv_prog_CC="$CC" # Let the user override the test.
2227 else
2228   ac_prog_rejected=no
2229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2230 for as_dir in $PATH
2231 do
2232   IFS=$as_save_IFS
2233   test -z "$as_dir" && as_dir=.
2234   for ac_exec_ext in '' $ac_executable_extensions; do
2235   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2236     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2237        ac_prog_rejected=yes
2238        continue
2239      fi
2240     ac_cv_prog_CC="cc"
2241     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2242     break 2
2243   fi
2244 done
2245 done
2246
2247 if test $ac_prog_rejected = yes; then
2248   # We found a bogon in the path, so make sure we never use it.
2249   set dummy $ac_cv_prog_CC
2250   shift
2251   if test $# != 0; then
2252     # We chose a different compiler from the bogus one.
2253     # However, it has the same basename, so the bogon will be chosen
2254     # first if we set CC to just the basename; use the full file name.
2255     shift
2256     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2257   fi
2258 fi
2259 fi
2260 fi
2261 CC=$ac_cv_prog_CC
2262 if test -n "$CC"; then
2263   echo "$as_me:$LINENO: result: $CC" >&5
2264 echo "${ECHO_T}$CC" >&6
2265 else
2266   echo "$as_me:$LINENO: result: no" >&5
2267 echo "${ECHO_T}no" >&6
2268 fi
2269
2270 fi
2271 if test -z "$CC"; then
2272   if test -n "$ac_tool_prefix"; then
2273   for ac_prog in cl
2274   do
2275     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2276 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2277 echo "$as_me:$LINENO: checking for $ac_word" >&5
2278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2279 if test "${ac_cv_prog_CC+set}" = set; then
2280   echo $ECHO_N "(cached) $ECHO_C" >&6
2281 else
2282   if test -n "$CC"; then
2283   ac_cv_prog_CC="$CC" # Let the user override the test.
2284 else
2285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2286 for as_dir in $PATH
2287 do
2288   IFS=$as_save_IFS
2289   test -z "$as_dir" && as_dir=.
2290   for ac_exec_ext in '' $ac_executable_extensions; do
2291   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2292     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2293     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2294     break 2
2295   fi
2296 done
2297 done
2298
2299 fi
2300 fi
2301 CC=$ac_cv_prog_CC
2302 if test -n "$CC"; then
2303   echo "$as_me:$LINENO: result: $CC" >&5
2304 echo "${ECHO_T}$CC" >&6
2305 else
2306   echo "$as_me:$LINENO: result: no" >&5
2307 echo "${ECHO_T}no" >&6
2308 fi
2309
2310     test -n "$CC" && break
2311   done
2312 fi
2313 if test -z "$CC"; then
2314   ac_ct_CC=$CC
2315   for ac_prog in cl
2316 do
2317   # Extract the first word of "$ac_prog", so it can be a program name with args.
2318 set dummy $ac_prog; ac_word=$2
2319 echo "$as_me:$LINENO: checking for $ac_word" >&5
2320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2321 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2322   echo $ECHO_N "(cached) $ECHO_C" >&6
2323 else
2324   if test -n "$ac_ct_CC"; then
2325   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2326 else
2327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2328 for as_dir in $PATH
2329 do
2330   IFS=$as_save_IFS
2331   test -z "$as_dir" && as_dir=.
2332   for ac_exec_ext in '' $ac_executable_extensions; do
2333   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2334     ac_cv_prog_ac_ct_CC="$ac_prog"
2335     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2336     break 2
2337   fi
2338 done
2339 done
2340
2341 fi
2342 fi
2343 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2344 if test -n "$ac_ct_CC"; then
2345   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2346 echo "${ECHO_T}$ac_ct_CC" >&6
2347 else
2348   echo "$as_me:$LINENO: result: no" >&5
2349 echo "${ECHO_T}no" >&6
2350 fi
2351
2352   test -n "$ac_ct_CC" && break
2353 done
2354
2355   CC=$ac_ct_CC
2356 fi
2357
2358 fi
2359
2360
2361 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2362 See \`config.log' for more details." >&5
2363 echo "$as_me: error: no acceptable C compiler found in \$PATH
2364 See \`config.log' for more details." >&2;}
2365    { (exit 1); exit 1; }; }
2366
2367 # Provide some information about the compiler.
2368 echo "$as_me:$LINENO:" \
2369      "checking for C compiler version" >&5
2370 ac_compiler=`set X $ac_compile; echo $2`
2371 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2372   (eval $ac_compiler --version </dev/null >&5) 2>&5
2373   ac_status=$?
2374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375   (exit $ac_status); }
2376 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2377   (eval $ac_compiler -v </dev/null >&5) 2>&5
2378   ac_status=$?
2379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2380   (exit $ac_status); }
2381 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2382   (eval $ac_compiler -V </dev/null >&5) 2>&5
2383   ac_status=$?
2384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385   (exit $ac_status); }
2386
2387 cat >conftest.$ac_ext <<_ACEOF
2388 /* confdefs.h.  */
2389 _ACEOF
2390 cat confdefs.h >>conftest.$ac_ext
2391 cat >>conftest.$ac_ext <<_ACEOF
2392 /* end confdefs.h.  */
2393
2394 int
2395 main ()
2396 {
2397
2398   ;
2399   return 0;
2400 }
2401 _ACEOF
2402 ac_clean_files_save=$ac_clean_files
2403 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2404 # Try to create an executable without -o first, disregard a.out.
2405 # It will help us diagnose broken compilers, and finding out an intuition
2406 # of exeext.
2407 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2408 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2409 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2410 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2411   (eval $ac_link_default) 2>&5
2412   ac_status=$?
2413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414   (exit $ac_status); }; then
2415   # Find the output, starting from the most likely.  This scheme is
2416 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2417 # resort.
2418
2419 # Be careful to initialize this variable, since it used to be cached.
2420 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2421 ac_cv_exeext=
2422 # b.out is created by i960 compilers.
2423 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2424 do
2425   test -f "$ac_file" || continue
2426   case $ac_file in
2427     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2428         ;;
2429     conftest.$ac_ext )
2430         # This is the source file.
2431         ;;
2432     [ab].out )
2433         # We found the default executable, but exeext='' is most
2434         # certainly right.
2435         break;;
2436     *.* )
2437         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2438         # FIXME: I believe we export ac_cv_exeext for Libtool,
2439         # but it would be cool to find out if it's true.  Does anybody
2440         # maintain Libtool? --akim.
2441         export ac_cv_exeext
2442         break;;
2443     * )
2444         break;;
2445   esac
2446 done
2447 else
2448   echo "$as_me: failed program was:" >&5
2449 sed 's/^/| /' conftest.$ac_ext >&5
2450
2451 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2452 See \`config.log' for more details." >&5
2453 echo "$as_me: error: C compiler cannot create executables
2454 See \`config.log' for more details." >&2;}
2455    { (exit 77); exit 77; }; }
2456 fi
2457
2458 ac_exeext=$ac_cv_exeext
2459 echo "$as_me:$LINENO: result: $ac_file" >&5
2460 echo "${ECHO_T}$ac_file" >&6
2461
2462 # Check the compiler produces executables we can run.  If not, either
2463 # the compiler is broken, or we cross compile.
2464 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2465 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2466 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2467 # If not cross compiling, check that we can run a simple program.
2468 if test "$cross_compiling" != yes; then
2469   if { ac_try='./$ac_file'
2470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2471   (eval $ac_try) 2>&5
2472   ac_status=$?
2473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474   (exit $ac_status); }; }; then
2475     cross_compiling=no
2476   else
2477     if test "$cross_compiling" = maybe; then
2478         cross_compiling=yes
2479     else
2480         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2481 If you meant to cross compile, use \`--host'.
2482 See \`config.log' for more details." >&5
2483 echo "$as_me: error: cannot run C compiled programs.
2484 If you meant to cross compile, use \`--host'.
2485 See \`config.log' for more details." >&2;}
2486    { (exit 1); exit 1; }; }
2487     fi
2488   fi
2489 fi
2490 echo "$as_me:$LINENO: result: yes" >&5
2491 echo "${ECHO_T}yes" >&6
2492
2493 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2494 ac_clean_files=$ac_clean_files_save
2495 # Check the compiler produces executables we can run.  If not, either
2496 # the compiler is broken, or we cross compile.
2497 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2498 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2499 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2500 echo "${ECHO_T}$cross_compiling" >&6
2501
2502 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2503 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2505   (eval $ac_link) 2>&5
2506   ac_status=$?
2507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508   (exit $ac_status); }; then
2509   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2510 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2511 # work properly (i.e., refer to `conftest.exe'), while it won't with
2512 # `rm'.
2513 for ac_file in conftest.exe conftest conftest.*; do
2514   test -f "$ac_file" || continue
2515   case $ac_file in
2516     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2517     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2518           export ac_cv_exeext
2519           break;;
2520     * ) break;;
2521   esac
2522 done
2523 else
2524   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2525 See \`config.log' for more details." >&5
2526 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2527 See \`config.log' for more details." >&2;}
2528    { (exit 1); exit 1; }; }
2529 fi
2530
2531 rm -f conftest$ac_cv_exeext
2532 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2533 echo "${ECHO_T}$ac_cv_exeext" >&6
2534
2535 rm -f conftest.$ac_ext
2536 EXEEXT=$ac_cv_exeext
2537 ac_exeext=$EXEEXT
2538 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2539 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2540 if test "${ac_cv_objext+set}" = set; then
2541   echo $ECHO_N "(cached) $ECHO_C" >&6
2542 else
2543   cat >conftest.$ac_ext <<_ACEOF
2544 /* confdefs.h.  */
2545 _ACEOF
2546 cat confdefs.h >>conftest.$ac_ext
2547 cat >>conftest.$ac_ext <<_ACEOF
2548 /* end confdefs.h.  */
2549
2550 int
2551 main ()
2552 {
2553
2554   ;
2555   return 0;
2556 }
2557 _ACEOF
2558 rm -f conftest.o conftest.obj
2559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2560   (eval $ac_compile) 2>&5
2561   ac_status=$?
2562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563   (exit $ac_status); }; then
2564   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2565   case $ac_file in
2566     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2567     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2568        break;;
2569   esac
2570 done
2571 else
2572   echo "$as_me: failed program was:" >&5
2573 sed 's/^/| /' conftest.$ac_ext >&5
2574
2575 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2576 See \`config.log' for more details." >&5
2577 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2578 See \`config.log' for more details." >&2;}
2579    { (exit 1); exit 1; }; }
2580 fi
2581
2582 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2583 fi
2584 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2585 echo "${ECHO_T}$ac_cv_objext" >&6
2586 OBJEXT=$ac_cv_objext
2587 ac_objext=$OBJEXT
2588 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2589 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2590 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2591   echo $ECHO_N "(cached) $ECHO_C" >&6
2592 else
2593   cat >conftest.$ac_ext <<_ACEOF
2594 /* confdefs.h.  */
2595 _ACEOF
2596 cat confdefs.h >>conftest.$ac_ext
2597 cat >>conftest.$ac_ext <<_ACEOF
2598 /* end confdefs.h.  */
2599
2600 int
2601 main ()
2602 {
2603 #ifndef __GNUC__
2604        choke me
2605 #endif
2606
2607   ;
2608   return 0;
2609 }
2610 _ACEOF
2611 rm -f conftest.$ac_objext
2612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2613   (eval $ac_compile) 2>conftest.er1
2614   ac_status=$?
2615   grep -v '^ *+' conftest.er1 >conftest.err
2616   rm -f conftest.er1
2617   cat conftest.err >&5
2618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619   (exit $ac_status); } &&
2620          { ac_try='test -z "$ac_c_werror_flag"
2621                          || test ! -s conftest.err'
2622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2623   (eval $ac_try) 2>&5
2624   ac_status=$?
2625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626   (exit $ac_status); }; } &&
2627          { ac_try='test -s conftest.$ac_objext'
2628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2629   (eval $ac_try) 2>&5
2630   ac_status=$?
2631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632   (exit $ac_status); }; }; then
2633   ac_compiler_gnu=yes
2634 else
2635   echo "$as_me: failed program was:" >&5
2636 sed 's/^/| /' conftest.$ac_ext >&5
2637
2638 ac_compiler_gnu=no
2639 fi
2640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2641 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2642
2643 fi
2644 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2645 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2646 GCC=`test $ac_compiler_gnu = yes && echo yes`
2647 ac_test_CFLAGS=${CFLAGS+set}
2648 ac_save_CFLAGS=$CFLAGS
2649 CFLAGS="-g"
2650 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2651 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2652 if test "${ac_cv_prog_cc_g+set}" = set; then
2653   echo $ECHO_N "(cached) $ECHO_C" >&6
2654 else
2655   cat >conftest.$ac_ext <<_ACEOF
2656 /* confdefs.h.  */
2657 _ACEOF
2658 cat confdefs.h >>conftest.$ac_ext
2659 cat >>conftest.$ac_ext <<_ACEOF
2660 /* end confdefs.h.  */
2661
2662 int
2663 main ()
2664 {
2665
2666   ;
2667   return 0;
2668 }
2669 _ACEOF
2670 rm -f conftest.$ac_objext
2671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2672   (eval $ac_compile) 2>conftest.er1
2673   ac_status=$?
2674   grep -v '^ *+' conftest.er1 >conftest.err
2675   rm -f conftest.er1
2676   cat conftest.err >&5
2677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678   (exit $ac_status); } &&
2679          { ac_try='test -z "$ac_c_werror_flag"
2680                          || test ! -s conftest.err'
2681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2682   (eval $ac_try) 2>&5
2683   ac_status=$?
2684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685   (exit $ac_status); }; } &&
2686          { ac_try='test -s conftest.$ac_objext'
2687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2688   (eval $ac_try) 2>&5
2689   ac_status=$?
2690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691   (exit $ac_status); }; }; then
2692   ac_cv_prog_cc_g=yes
2693 else
2694   echo "$as_me: failed program was:" >&5
2695 sed 's/^/| /' conftest.$ac_ext >&5
2696
2697 ac_cv_prog_cc_g=no
2698 fi
2699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2700 fi
2701 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2702 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2703 if test "$ac_test_CFLAGS" = set; then
2704   CFLAGS=$ac_save_CFLAGS
2705 elif test $ac_cv_prog_cc_g = yes; then
2706   if test "$GCC" = yes; then
2707     CFLAGS="-g -O2"
2708   else
2709     CFLAGS="-g"
2710   fi
2711 else
2712   if test "$GCC" = yes; then
2713     CFLAGS="-O2"
2714   else
2715     CFLAGS=
2716   fi
2717 fi
2718 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2719 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2720 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2721   echo $ECHO_N "(cached) $ECHO_C" >&6
2722 else
2723   ac_cv_prog_cc_stdc=no
2724 ac_save_CC=$CC
2725 cat >conftest.$ac_ext <<_ACEOF
2726 /* confdefs.h.  */
2727 _ACEOF
2728 cat confdefs.h >>conftest.$ac_ext
2729 cat >>conftest.$ac_ext <<_ACEOF
2730 /* end confdefs.h.  */
2731 #include <stdarg.h>
2732 #include <stdio.h>
2733 #include <sys/types.h>
2734 #include <sys/stat.h>
2735 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2736 struct buf { int x; };
2737 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2738 static char *e (p, i)
2739      char **p;
2740      int i;
2741 {
2742   return p[i];
2743 }
2744 static char *f (char * (*g) (char **, int), char **p, ...)
2745 {
2746   char *s;
2747   va_list v;
2748   va_start (v,p);
2749   s = g (p, va_arg (v,int));
2750   va_end (v);
2751   return s;
2752 }
2753
2754 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2755    function prototypes and stuff, but not '\xHH' hex character constants.
2756    These don't provoke an error unfortunately, instead are silently treated
2757    as 'x'.  The following induces an error, until -std1 is added to get
2758    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2759    array size at least.  It's necessary to write '\x00'==0 to get something
2760    that's true only with -std1.  */
2761 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2762
2763 int test (int i, double x);
2764 struct s1 {int (*f) (int a);};
2765 struct s2 {int (*f) (double a);};
2766 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2767 int argc;
2768 char **argv;
2769 int
2770 main ()
2771 {
2772 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2773   ;
2774   return 0;
2775 }
2776 _ACEOF
2777 # Don't try gcc -ansi; that turns off useful extensions and
2778 # breaks some systems' header files.
2779 # AIX                   -qlanglvl=ansi
2780 # Ultrix and OSF/1      -std1
2781 # HP-UX 10.20 and later -Ae
2782 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2783 # SVR4                  -Xc -D__EXTENSIONS__
2784 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2785 do
2786   CC="$ac_save_CC $ac_arg"
2787   rm -f conftest.$ac_objext
2788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2789   (eval $ac_compile) 2>conftest.er1
2790   ac_status=$?
2791   grep -v '^ *+' conftest.er1 >conftest.err
2792   rm -f conftest.er1
2793   cat conftest.err >&5
2794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795   (exit $ac_status); } &&
2796          { ac_try='test -z "$ac_c_werror_flag"
2797                          || test ! -s conftest.err'
2798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2799   (eval $ac_try) 2>&5
2800   ac_status=$?
2801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802   (exit $ac_status); }; } &&
2803          { ac_try='test -s conftest.$ac_objext'
2804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2805   (eval $ac_try) 2>&5
2806   ac_status=$?
2807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808   (exit $ac_status); }; }; then
2809   ac_cv_prog_cc_stdc=$ac_arg
2810 break
2811 else
2812   echo "$as_me: failed program was:" >&5
2813 sed 's/^/| /' conftest.$ac_ext >&5
2814
2815 fi
2816 rm -f conftest.err conftest.$ac_objext
2817 done
2818 rm -f conftest.$ac_ext conftest.$ac_objext
2819 CC=$ac_save_CC
2820
2821 fi
2822
2823 case "x$ac_cv_prog_cc_stdc" in
2824   x|xno)
2825     echo "$as_me:$LINENO: result: none needed" >&5
2826 echo "${ECHO_T}none needed" >&6 ;;
2827   *)
2828     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2829 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2830     CC="$CC $ac_cv_prog_cc_stdc" ;;
2831 esac
2832
2833 # Some people use a C++ compiler to compile C.  Since we use `exit',
2834 # in C++ we need to declare it.  In case someone uses the same compiler
2835 # for both compiling C and C++ we need to have the C++ compiler decide
2836 # the declaration of exit, since it's the most demanding environment.
2837 cat >conftest.$ac_ext <<_ACEOF
2838 #ifndef __cplusplus
2839   choke me
2840 #endif
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   for ac_declaration in \
2865    '' \
2866    'extern "C" void std::exit (int) throw (); using std::exit;' \
2867    'extern "C" void std::exit (int); using std::exit;' \
2868    'extern "C" void exit (int) throw ();' \
2869    'extern "C" void exit (int);' \
2870    'void exit (int);'
2871 do
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 #include <stdlib.h>
2880 int
2881 main ()
2882 {
2883 exit (42);
2884   ;
2885   return 0;
2886 }
2887 _ACEOF
2888 rm -f conftest.$ac_objext
2889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2890   (eval $ac_compile) 2>conftest.er1
2891   ac_status=$?
2892   grep -v '^ *+' conftest.er1 >conftest.err
2893   rm -f conftest.er1
2894   cat conftest.err >&5
2895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896   (exit $ac_status); } &&
2897          { ac_try='test -z "$ac_c_werror_flag"
2898                          || test ! -s conftest.err'
2899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2900   (eval $ac_try) 2>&5
2901   ac_status=$?
2902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903   (exit $ac_status); }; } &&
2904          { ac_try='test -s conftest.$ac_objext'
2905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2906   (eval $ac_try) 2>&5
2907   ac_status=$?
2908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909   (exit $ac_status); }; }; then
2910   :
2911 else
2912   echo "$as_me: failed program was:" >&5
2913 sed 's/^/| /' conftest.$ac_ext >&5
2914
2915 continue
2916 fi
2917 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2918   cat >conftest.$ac_ext <<_ACEOF
2919 /* confdefs.h.  */
2920 _ACEOF
2921 cat confdefs.h >>conftest.$ac_ext
2922 cat >>conftest.$ac_ext <<_ACEOF
2923 /* end confdefs.h.  */
2924 $ac_declaration
2925 int
2926 main ()
2927 {
2928 exit (42);
2929   ;
2930   return 0;
2931 }
2932 _ACEOF
2933 rm -f conftest.$ac_objext
2934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2935   (eval $ac_compile) 2>conftest.er1
2936   ac_status=$?
2937   grep -v '^ *+' conftest.er1 >conftest.err
2938   rm -f conftest.er1
2939   cat conftest.err >&5
2940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941   (exit $ac_status); } &&
2942          { ac_try='test -z "$ac_c_werror_flag"
2943                          || test ! -s conftest.err'
2944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2945   (eval $ac_try) 2>&5
2946   ac_status=$?
2947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948   (exit $ac_status); }; } &&
2949          { ac_try='test -s conftest.$ac_objext'
2950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2951   (eval $ac_try) 2>&5
2952   ac_status=$?
2953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954   (exit $ac_status); }; }; then
2955   break
2956 else
2957   echo "$as_me: failed program was:" >&5
2958 sed 's/^/| /' conftest.$ac_ext >&5
2959
2960 fi
2961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2962 done
2963 rm -f conftest*
2964 if test -n "$ac_declaration"; then
2965   echo '#ifdef __cplusplus' >>confdefs.h
2966   echo $ac_declaration      >>confdefs.h
2967   echo '#endif'             >>confdefs.h
2968 fi
2969
2970 else
2971   echo "$as_me: failed program was:" >&5
2972 sed 's/^/| /' conftest.$ac_ext >&5
2973
2974 fi
2975 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2976 ac_ext=c
2977 ac_cpp='$CPP $CPPFLAGS'
2978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2981 DEPDIR="${am__leading_dot}deps"
2982
2983           ac_config_commands="$ac_config_commands depfiles"
2984
2985
2986 am_make=${MAKE-make}
2987 cat > confinc << 'END'
2988 am__doit:
2989         @echo done
2990 .PHONY: am__doit
2991 END
2992 # If we don't find an include directive, just comment out the code.
2993 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2994 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2995 am__include="#"
2996 am__quote=
2997 _am_result=none
2998 # First try GNU make style include.
2999 echo "include confinc" > confmf
3000 # We grep out `Entering directory' and `Leaving directory'
3001 # messages which can occur if `w' ends up in MAKEFLAGS.
3002 # In particular we don't look at `^make:' because GNU make might
3003 # be invoked under some other name (usually "gmake"), in which
3004 # case it prints its new name instead of `make'.
3005 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3006    am__include=include
3007    am__quote=
3008    _am_result=GNU
3009 fi
3010 # Now try BSD make style include.
3011 if test "$am__include" = "#"; then
3012    echo '.include "confinc"' > confmf
3013    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3014       am__include=.include
3015       am__quote="\""
3016       _am_result=BSD
3017    fi
3018 fi
3019
3020
3021 echo "$as_me:$LINENO: result: $_am_result" >&5
3022 echo "${ECHO_T}$_am_result" >&6
3023 rm -f confinc confmf
3024
3025 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3026 if test "${enable_dependency_tracking+set}" = set; then
3027   enableval="$enable_dependency_tracking"
3028
3029 fi;
3030 if test "x$enable_dependency_tracking" != xno; then
3031   am_depcomp="$ac_aux_dir/depcomp"
3032   AMDEPBACKSLASH='\'
3033 fi
3034
3035
3036 if test "x$enable_dependency_tracking" != xno; then
3037   AMDEP_TRUE=
3038   AMDEP_FALSE='#'
3039 else
3040   AMDEP_TRUE='#'
3041   AMDEP_FALSE=
3042 fi
3043
3044
3045
3046
3047 depcc="$CC"   am_compiler_list=
3048
3049 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3050 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3051 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3052   echo $ECHO_N "(cached) $ECHO_C" >&6
3053 else
3054   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3055   # We make a subdir and do the tests there.  Otherwise we can end up
3056   # making bogus files that we don't know about and never remove.  For
3057   # instance it was reported that on HP-UX the gcc test will end up
3058   # making a dummy file named `D' -- because `-MD' means `put the output
3059   # in D'.
3060   mkdir conftest.dir
3061   # Copy depcomp to subdir because otherwise we won't find it if we're
3062   # using a relative directory.
3063   cp "$am_depcomp" conftest.dir
3064   cd conftest.dir
3065   # We will build objects and dependencies in a subdirectory because
3066   # it helps to detect inapplicable dependency modes.  For instance
3067   # both Tru64's cc and ICC support -MD to output dependencies as a
3068   # side effect of compilation, but ICC will put the dependencies in
3069   # the current directory while Tru64 will put them in the object
3070   # directory.
3071   mkdir sub
3072
3073   am_cv_CC_dependencies_compiler_type=none
3074   if test "$am_compiler_list" = ""; then
3075      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3076   fi
3077   for depmode in $am_compiler_list; do
3078     # Setup a source with many dependencies, because some compilers
3079     # like to wrap large dependency lists on column 80 (with \), and
3080     # we should not choose a depcomp mode which is confused by this.
3081     #
3082     # We need to recreate these files for each test, as the compiler may
3083     # overwrite some of them when testing with obscure command lines.
3084     # This happens at least with the AIX C compiler.
3085     : > sub/conftest.c
3086     for i in 1 2 3 4 5 6; do
3087       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3088       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3089       # Solaris 8's {/usr,}/bin/sh.
3090       touch sub/conftst$i.h
3091     done
3092     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3093
3094     case $depmode in
3095     nosideeffect)
3096       # after this tag, mechanisms are not by side-effect, so they'll
3097       # only be used when explicitly requested
3098       if test "x$enable_dependency_tracking" = xyes; then
3099         continue
3100       else
3101         break
3102       fi
3103       ;;
3104     none) break ;;
3105     esac
3106     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3107     # mode.  It turns out that the SunPro C++ compiler does not properly
3108     # handle `-M -o', and we need to detect this.
3109     if depmode=$depmode \
3110        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3111        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3112        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3113          >/dev/null 2>conftest.err &&
3114        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3115        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3116        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3117       # icc doesn't choke on unknown options, it will just issue warnings
3118       # or remarks (even with -Werror).  So we grep stderr for any message
3119       # that says an option was ignored or not supported.
3120       # When given -MP, icc 7.0 and 7.1 complain thusly:
3121       #   icc: Command line warning: ignoring option '-M'; no argument required
3122       # The diagnosis changed in icc 8.0:
3123       #   icc: Command line remark: option '-MP' not supported
3124       if (grep 'ignoring option' conftest.err ||
3125           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3126         am_cv_CC_dependencies_compiler_type=$depmode
3127         break
3128       fi
3129     fi
3130   done
3131
3132   cd ..
3133   rm -rf conftest.dir
3134 else
3135   am_cv_CC_dependencies_compiler_type=none
3136 fi
3137
3138 fi
3139 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3140 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3141 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3142
3143
3144
3145 if
3146   test "x$enable_dependency_tracking" != xno \
3147   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3148   am__fastdepCC_TRUE=
3149   am__fastdepCC_FALSE='#'
3150 else
3151   am__fastdepCC_TRUE='#'
3152   am__fastdepCC_FALSE=
3153 fi
3154
3155
3156
3157
3158
3159
3160 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
3161 # in XCFLAGS.  But we need them in CFLAGS during configury.  So put them
3162 # in both places for now and restore CFLAGS at the end of config.
3163 save_CFLAGS="$CFLAGS"
3164
3165 # Add -Wall -Werror if we are using GCC.
3166 if test "x$GCC" = "xyes"; then
3167   XCFLAGS="$XCFLAGS -Wall -Werror"
3168 fi
3169
3170 # Find other programs we need.
3171 if test -n "$ac_tool_prefix"; then
3172   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3173 set dummy ${ac_tool_prefix}ar; ac_word=$2
3174 echo "$as_me:$LINENO: checking for $ac_word" >&5
3175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3176 if test "${ac_cv_prog_AR+set}" = set; then
3177   echo $ECHO_N "(cached) $ECHO_C" >&6
3178 else
3179   if test -n "$AR"; then
3180   ac_cv_prog_AR="$AR" # Let the user override the test.
3181 else
3182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3183 for as_dir in $PATH
3184 do
3185   IFS=$as_save_IFS
3186   test -z "$as_dir" && as_dir=.
3187   for ac_exec_ext in '' $ac_executable_extensions; do
3188   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3189     ac_cv_prog_AR="${ac_tool_prefix}ar"
3190     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3191     break 2
3192   fi
3193 done
3194 done
3195
3196 fi
3197 fi
3198 AR=$ac_cv_prog_AR
3199 if test -n "$AR"; then
3200   echo "$as_me:$LINENO: result: $AR" >&5
3201 echo "${ECHO_T}$AR" >&6
3202 else
3203   echo "$as_me:$LINENO: result: no" >&5
3204 echo "${ECHO_T}no" >&6
3205 fi
3206
3207 fi
3208 if test -z "$ac_cv_prog_AR"; then
3209   ac_ct_AR=$AR
3210   # Extract the first word of "ar", so it can be a program name with args.
3211 set dummy ar; ac_word=$2
3212 echo "$as_me:$LINENO: checking for $ac_word" >&5
3213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3214 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3215   echo $ECHO_N "(cached) $ECHO_C" >&6
3216 else
3217   if test -n "$ac_ct_AR"; then
3218   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3219 else
3220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3221 for as_dir in $PATH
3222 do
3223   IFS=$as_save_IFS
3224   test -z "$as_dir" && as_dir=.
3225   for ac_exec_ext in '' $ac_executable_extensions; do
3226   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3227     ac_cv_prog_ac_ct_AR="ar"
3228     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3229     break 2
3230   fi
3231 done
3232 done
3233
3234 fi
3235 fi
3236 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3237 if test -n "$ac_ct_AR"; then
3238   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3239 echo "${ECHO_T}$ac_ct_AR" >&6
3240 else
3241   echo "$as_me:$LINENO: result: no" >&5
3242 echo "${ECHO_T}no" >&6
3243 fi
3244
3245   AR=$ac_ct_AR
3246 else
3247   AR="$ac_cv_prog_AR"
3248 fi
3249
3250 if test -n "$ac_tool_prefix"; then
3251   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3252 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3253 echo "$as_me:$LINENO: checking for $ac_word" >&5
3254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3255 if test "${ac_cv_prog_RANLIB+set}" = set; then
3256   echo $ECHO_N "(cached) $ECHO_C" >&6
3257 else
3258   if test -n "$RANLIB"; then
3259   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3260 else
3261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3262 for as_dir in $PATH
3263 do
3264   IFS=$as_save_IFS
3265   test -z "$as_dir" && as_dir=.
3266   for ac_exec_ext in '' $ac_executable_extensions; do
3267   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3268     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3269     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3270     break 2
3271   fi
3272 done
3273 done
3274
3275 fi
3276 fi
3277 RANLIB=$ac_cv_prog_RANLIB
3278 if test -n "$RANLIB"; then
3279   echo "$as_me:$LINENO: result: $RANLIB" >&5
3280 echo "${ECHO_T}$RANLIB" >&6
3281 else
3282   echo "$as_me:$LINENO: result: no" >&5
3283 echo "${ECHO_T}no" >&6
3284 fi
3285
3286 fi
3287 if test -z "$ac_cv_prog_RANLIB"; then
3288   ac_ct_RANLIB=$RANLIB
3289   # Extract the first word of "ranlib", so it can be a program name with args.
3290 set dummy ranlib; ac_word=$2
3291 echo "$as_me:$LINENO: checking for $ac_word" >&5
3292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3293 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3294   echo $ECHO_N "(cached) $ECHO_C" >&6
3295 else
3296   if test -n "$ac_ct_RANLIB"; then
3297   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3298 else
3299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3300 for as_dir in $PATH
3301 do
3302   IFS=$as_save_IFS
3303   test -z "$as_dir" && as_dir=.
3304   for ac_exec_ext in '' $ac_executable_extensions; do
3305   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3306     ac_cv_prog_ac_ct_RANLIB="ranlib"
3307     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3308     break 2
3309   fi
3310 done
3311 done
3312
3313   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="ranlib-not-found-in-path-error"
3314 fi
3315 fi
3316 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3317 if test -n "$ac_ct_RANLIB"; then
3318   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3319 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3320 else
3321   echo "$as_me:$LINENO: result: no" >&5
3322 echo "${ECHO_T}no" >&6
3323 fi
3324
3325   RANLIB=$ac_ct_RANLIB
3326 else
3327   RANLIB="$ac_cv_prog_RANLIB"
3328 fi
3329
3330 # Extract the first word of "perl", so it can be a program name with args.
3331 set dummy perl; ac_word=$2
3332 echo "$as_me:$LINENO: checking for $ac_word" >&5
3333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3334 if test "${ac_cv_path_PERL+set}" = set; then
3335   echo $ECHO_N "(cached) $ECHO_C" >&6
3336 else
3337   case $PERL in
3338   [\\/]* | ?:[\\/]*)
3339   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3340   ;;
3341   *)
3342   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3343 for as_dir in $PATH
3344 do
3345   IFS=$as_save_IFS
3346   test -z "$as_dir" && as_dir=.
3347   for ac_exec_ext in '' $ac_executable_extensions; do
3348   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3349     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
3350     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3351     break 2
3352   fi
3353 done
3354 done
3355
3356   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
3357   ;;
3358 esac
3359 fi
3360 PERL=$ac_cv_path_PERL
3361
3362 if test -n "$PERL"; then
3363   echo "$as_me:$LINENO: result: $PERL" >&5
3364 echo "${ECHO_T}$PERL" >&6
3365 else
3366   echo "$as_me:$LINENO: result: no" >&5
3367 echo "${ECHO_T}no" >&6
3368 fi
3369
3370 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3371 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3372 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3373 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3374   echo $ECHO_N "(cached) $ECHO_C" >&6
3375 else
3376   cat >conftest.make <<\_ACEOF
3377 all:
3378         @echo 'ac_maketemp="$(MAKE)"'
3379 _ACEOF
3380 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3381 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3382 if test -n "$ac_maketemp"; then
3383   eval ac_cv_prog_make_${ac_make}_set=yes
3384 else
3385   eval ac_cv_prog_make_${ac_make}_set=no
3386 fi
3387 rm -f conftest.make
3388 fi
3389 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3390   echo "$as_me:$LINENO: result: yes" >&5
3391 echo "${ECHO_T}yes" >&6
3392   SET_MAKE=
3393 else
3394   echo "$as_me:$LINENO: result: no" >&5
3395 echo "${ECHO_T}no" >&6
3396   SET_MAKE="MAKE=${MAKE-make}"
3397 fi
3398
3399 # Find a good install program.  We prefer a C program (faster),
3400 # so one script is as good as another.  But avoid the broken or
3401 # incompatible versions:
3402 # SysV /etc/install, /usr/sbin/install
3403 # SunOS /usr/etc/install
3404 # IRIX /sbin/install
3405 # AIX /bin/install
3406 # AmigaOS /C/install, which installs bootblocks on floppy discs
3407 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3408 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3409 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3410 # OS/2's system install, which has a completely different semantic
3411 # ./install, which can be erroneously created by make from ./install.sh.
3412 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3413 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3414 if test -z "$INSTALL"; then
3415 if test "${ac_cv_path_install+set}" = set; then
3416   echo $ECHO_N "(cached) $ECHO_C" >&6
3417 else
3418   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3419 for as_dir in $PATH
3420 do
3421   IFS=$as_save_IFS
3422   test -z "$as_dir" && as_dir=.
3423   # Account for people who put trailing slashes in PATH elements.
3424 case $as_dir/ in
3425   ./ | .// | /cC/* | \
3426   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3427   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3428   /usr/ucb/* ) ;;
3429   *)
3430     # OSF1 and SCO ODT 3.0 have their own names for install.
3431     # Don't use installbsd from OSF since it installs stuff as root
3432     # by default.
3433     for ac_prog in ginstall scoinst install; do
3434       for ac_exec_ext in '' $ac_executable_extensions; do
3435         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3436           if test $ac_prog = install &&
3437             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3438             # AIX install.  It has an incompatible calling convention.
3439             :
3440           elif test $ac_prog = install &&
3441             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3442             # program-specific install script used by HP pwplus--don't use.
3443             :
3444           else
3445             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3446             break 3
3447           fi
3448         fi
3449       done
3450     done
3451     ;;
3452 esac
3453 done
3454
3455
3456 fi
3457   if test "${ac_cv_path_install+set}" = set; then
3458     INSTALL=$ac_cv_path_install
3459   else
3460     # As a last resort, use the slow shell script.  We don't cache a
3461     # path for INSTALL within a source directory, because that will
3462     # break other packages using the cache if that directory is
3463     # removed, or if the path is relative.
3464     INSTALL=$ac_install_sh
3465   fi
3466 fi
3467 echo "$as_me:$LINENO: result: $INSTALL" >&5
3468 echo "${ECHO_T}$INSTALL" >&6
3469
3470 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3471 # It thinks the first close brace ends the variable substitution.
3472 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3473
3474 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3475
3476 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3477
3478
3479 # Configure libtool
3480 # Check whether --enable-shared or --disable-shared was given.
3481 if test "${enable_shared+set}" = set; then
3482   enableval="$enable_shared"
3483   p=${PACKAGE-default}
3484 case $enableval in
3485 yes) enable_shared=yes ;;
3486 no) enable_shared=no ;;
3487 *)
3488   enable_shared=no
3489   # Look at the argument we got.  We use all the common list separators.
3490   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3491   for pkg in $enableval; do
3492     if test "X$pkg" = "X$p"; then
3493       enable_shared=yes
3494     fi
3495   done
3496   IFS="$ac_save_ifs"
3497   ;;
3498 esac
3499 else
3500   enable_shared=yes
3501 fi;
3502 # Check whether --enable-static or --disable-static was given.
3503 if test "${enable_static+set}" = set; then
3504   enableval="$enable_static"
3505   p=${PACKAGE-default}
3506 case $enableval in
3507 yes) enable_static=yes ;;
3508 no) enable_static=no ;;
3509 *)
3510   enable_static=no
3511   # Look at the argument we got.  We use all the common list separators.
3512   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3513   for pkg in $enableval; do
3514     if test "X$pkg" = "X$p"; then
3515       enable_static=yes
3516     fi
3517   done
3518   IFS="$ac_save_ifs"
3519   ;;
3520 esac
3521 else
3522   enable_static=yes
3523 fi;
3524 # Check whether --enable-fast-install or --disable-fast-install was given.
3525 if test "${enable_fast_install+set}" = set; then
3526   enableval="$enable_fast_install"
3527   p=${PACKAGE-default}
3528 case $enableval in
3529 yes) enable_fast_install=yes ;;
3530 no) enable_fast_install=no ;;
3531 *)
3532   enable_fast_install=no
3533   # Look at the argument we got.  We use all the common list separators.
3534   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3535   for pkg in $enableval; do
3536     if test "X$pkg" = "X$p"; then
3537       enable_fast_install=yes
3538     fi
3539   done
3540   IFS="$ac_save_ifs"
3541   ;;
3542 esac
3543 else
3544   enable_fast_install=yes
3545 fi;
3546
3547 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3548 if test "${with_gnu_ld+set}" = set; then
3549   withval="$with_gnu_ld"
3550   test "$withval" = no || with_gnu_ld=yes
3551 else
3552   with_gnu_ld=no
3553 fi;
3554 ac_prog=ld
3555 if test "$GCC" = yes; then
3556   # Check if gcc -print-prog-name=ld gives a path.
3557   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3558 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3559   case $host in
3560   *-*-mingw*)
3561     # gcc leaves a trailing carriage return which upsets mingw
3562     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3563   *)
3564     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3565   esac
3566   case $ac_prog in
3567     # Accept absolute paths.
3568     [\\/]* | [A-Za-z]:[\\/]*)
3569       re_direlt='/[^/][^/]*/\.\./'
3570       # Canonicalize the path of ld
3571       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3572       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3573         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3574       done
3575       test -z "$LD" && LD="$ac_prog"
3576       ;;
3577   "")
3578     # If it fails, then pretend we aren't using GCC.
3579     ac_prog=ld
3580     ;;
3581   *)
3582     # If it is relative, then search for the first ld in PATH.
3583     with_gnu_ld=unknown
3584     ;;
3585   esac
3586 elif test "$with_gnu_ld" = yes; then
3587   echo "$as_me:$LINENO: checking for GNU ld" >&5
3588 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3589 else
3590   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3591 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3592 fi
3593 if test "${lt_cv_path_LD+set}" = set; then
3594   echo $ECHO_N "(cached) $ECHO_C" >&6
3595 else
3596   if test -z "$LD"; then
3597   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3598   for ac_dir in $PATH; do
3599     test -z "$ac_dir" && ac_dir=.
3600     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3601       lt_cv_path_LD="$ac_dir/$ac_prog"
3602       # Check to see if the program is GNU ld.  I'd rather use --version,
3603       # but apparently some GNU ld's only accept -v.
3604       # Break only if it was the GNU/non-GNU ld that we prefer.
3605       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3606         test "$with_gnu_ld" != no && break
3607       else
3608         test "$with_gnu_ld" != yes && break
3609       fi
3610     fi
3611   done
3612   IFS="$ac_save_ifs"
3613 else
3614   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3615 fi
3616 fi
3617
3618 LD="$lt_cv_path_LD"
3619 if test -n "$LD"; then
3620   echo "$as_me:$LINENO: result: $LD" >&5
3621 echo "${ECHO_T}$LD" >&6
3622 else
3623   echo "$as_me:$LINENO: result: no" >&5
3624 echo "${ECHO_T}no" >&6
3625 fi
3626 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3627 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3628    { (exit 1); exit 1; }; }
3629 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3630 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3631 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3632   echo $ECHO_N "(cached) $ECHO_C" >&6
3633 else
3634   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3635 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3636   lt_cv_prog_gnu_ld=yes
3637 else
3638   lt_cv_prog_gnu_ld=no
3639 fi
3640 fi
3641 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3642 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3643 with_gnu_ld=$lt_cv_prog_gnu_ld
3644
3645
3646 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3647 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3648 if test "${lt_cv_ld_reload_flag+set}" = set; then
3649   echo $ECHO_N "(cached) $ECHO_C" >&6
3650 else
3651   lt_cv_ld_reload_flag='-r'
3652 fi
3653 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3654 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3655 reload_flag=$lt_cv_ld_reload_flag
3656 test -n "$reload_flag" && reload_flag=" $reload_flag"
3657
3658 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3659 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3660 if test "${lt_cv_path_NM+set}" = set; then
3661   echo $ECHO_N "(cached) $ECHO_C" >&6
3662 else
3663   if test -n "$NM"; then
3664   # Let the user override the test.
3665   lt_cv_path_NM="$NM"
3666 else
3667   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3668   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3669     test -z "$ac_dir" && ac_dir=.
3670     tmp_nm=$ac_dir/${ac_tool_prefix}nm
3671     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3672       # Check to see if the nm accepts a BSD-compat flag.
3673       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3674       #   nm: unknown option "B" ignored
3675       # Tru64's nm complains that /dev/null is an invalid object file
3676       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3677         lt_cv_path_NM="$tmp_nm -B"
3678         break
3679       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3680         lt_cv_path_NM="$tmp_nm -p"
3681         break
3682       else
3683         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3684         continue # so that we can try to find one that supports BSD flags
3685       fi
3686     fi
3687   done
3688   IFS="$ac_save_ifs"
3689   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3690 fi
3691 fi
3692
3693 NM="$lt_cv_path_NM"
3694 echo "$as_me:$LINENO: result: $NM" >&5
3695 echo "${ECHO_T}$NM" >&6
3696
3697 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3698 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3699 LN_S=$as_ln_s
3700 if test "$LN_S" = "ln -s"; then
3701   echo "$as_me:$LINENO: result: yes" >&5
3702 echo "${ECHO_T}yes" >&6
3703 else
3704   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3705 echo "${ECHO_T}no, using $LN_S" >&6
3706 fi
3707
3708 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3709 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3710 if test "${lt_cv_deplibs_check_method+set}" = set; then
3711   echo $ECHO_N "(cached) $ECHO_C" >&6
3712 else
3713   lt_cv_file_magic_cmd='$MAGIC_CMD'
3714 lt_cv_file_magic_test_file=
3715 lt_cv_deplibs_check_method='unknown'
3716 # Need to set the preceding variable on all platforms that support
3717 # interlibrary dependencies.
3718 # 'none' -- dependencies not supported.
3719 # `unknown' -- same as none, but documents that we really don't know.
3720 # 'pass_all' -- all dependencies passed with no checks.
3721 # 'test_compile' -- check by making test program.
3722 # 'file_magic [regex]' -- check by looking for files in library path
3723 # which responds to the $file_magic_cmd with a given egrep regex.
3724 # If you have `file' or equivalent on your system and you're not sure
3725 # whether `pass_all' will *always* work, you probably want this one.
3726
3727 case $host_os in
3728 aix*)
3729   lt_cv_deplibs_check_method=pass_all
3730   ;;
3731
3732 beos*)
3733   lt_cv_deplibs_check_method=pass_all
3734   ;;
3735
3736 bsdi4*)
3737   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3738   lt_cv_file_magic_cmd='/usr/bin/file -L'
3739   lt_cv_file_magic_test_file=/shlib/libc.so
3740   ;;
3741
3742 cygwin* | mingw* |pw32*)
3743   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3744   lt_cv_file_magic_cmd='$OBJDUMP -f'
3745   ;;
3746
3747 darwin* | rhapsody*)
3748   # this will be overwritten by pass_all, but leave it in just in case
3749   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3750   lt_cv_file_magic_cmd='/usr/bin/file -L'
3751   case "$host_os" in
3752   rhapsody* | darwin1.012)
3753     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3754     ;;
3755   *) # Darwin 1.3 on
3756     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3757     ;;
3758   esac
3759   lt_cv_deplibs_check_method=pass_all
3760   ;;
3761
3762 freebsd* | kfreebsd*-gnu)
3763   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3764     case $host_cpu in
3765     i*86 )
3766       # Not sure whether the presence of OpenBSD here was a mistake.
3767       # Let's accept both of them until this is cleared up.
3768       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3769       lt_cv_file_magic_cmd=/usr/bin/file
3770       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3771       ;;
3772     esac
3773   else
3774     lt_cv_deplibs_check_method=pass_all
3775   fi
3776   ;;
3777
3778 gnu*)
3779   lt_cv_deplibs_check_method=pass_all
3780   ;;
3781
3782 hpux10.20*|hpux11*)
3783   case $host_cpu in
3784   hppa*)
3785     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3786     lt_cv_file_magic_cmd=/usr/bin/file
3787     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3788     ;;
3789   ia64*)
3790     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3791     lt_cv_file_magic_cmd=/usr/bin/file
3792     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3793     ;;
3794   esac
3795   ;;
3796
3797 irix5* | irix6*)
3798   case $host_os in
3799   irix5*)
3800     # this will be overridden with pass_all, but let us keep it just in case
3801     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3802     ;;
3803   *)
3804     case $LD in
3805     *-32|*"-32 ") libmagic=32-bit;;
3806     *-n32|*"-n32 ") libmagic=N32;;
3807     *-64|*"-64 ") libmagic=64-bit;;
3808     *) libmagic=never-match;;
3809     esac
3810     # this will be overridden with pass_all, but let us keep it just in case
3811     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3812     ;;
3813   esac
3814   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3815   lt_cv_deplibs_check_method=pass_all
3816   ;;
3817
3818 # This must be Linux ELF.
3819 linux-gnu*)
3820   lt_cv_deplibs_check_method=pass_all
3821   ;;
3822
3823 netbsd* | knetbsd*-gnu)
3824   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3825     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3826   else
3827     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3828   fi
3829   ;;
3830
3831 newsos6)
3832   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3833   lt_cv_file_magic_cmd=/usr/bin/file
3834   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3835   ;;
3836
3837 osf3* | osf4* | osf5*)
3838   # this will be overridden with pass_all, but let us keep it just in case
3839   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3840   lt_cv_file_magic_test_file=/shlib/libc.so
3841   lt_cv_deplibs_check_method=pass_all
3842   ;;
3843
3844 sco3.2v5*)
3845   lt_cv_deplibs_check_method=pass_all
3846   ;;
3847
3848 solaris*)
3849   lt_cv_deplibs_check_method=pass_all
3850   lt_cv_file_magic_test_file=/lib/libc.so
3851   ;;
3852
3853 sysv5uw[78]* | sysv4*uw2*)
3854   lt_cv_deplibs_check_method=pass_all
3855   ;;
3856
3857 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3858   case $host_vendor in
3859   ncr)
3860     lt_cv_deplibs_check_method=pass_all
3861     ;;
3862   motorola)
3863     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]'
3864     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3865     ;;
3866   esac
3867   ;;
3868 esac
3869
3870 fi
3871 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3872 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3873 file_magic_cmd=$lt_cv_file_magic_cmd
3874 deplibs_check_method=$lt_cv_deplibs_check_method
3875
3876
3877
3878
3879
3880 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3881
3882 # find the maximum length of command line arguments
3883 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3884 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3885 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3886   echo $ECHO_N "(cached) $ECHO_C" >&6
3887 else
3888     i=0
3889   teststring="ABCD"
3890
3891   case $build_os in
3892   msdosdjgpp*)
3893     # On DJGPP, this test can blow up pretty badly due to problems in libc
3894     # (any single argument exceeding 2000 bytes causes a buffer overrun
3895     # during glob expansion).  Even if it were fixed, the result of this
3896     # check would be larger than it should be.
3897     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
3898     ;;
3899
3900   cygwin* | mingw*)
3901     # On Win9x/ME, this test blows up -- it succeeds, but takes
3902     # about 5 minutes as the teststring grows exponentially.
3903     # Worse, since 9x/ME are not pre-emptively multitasking,
3904     # you end up with a "frozen" computer, even though with patience
3905     # the test eventually succeeds (with a max line length of 256k).
3906     # Instead, let's just punt: use the minimum linelength reported by
3907     # all of the supported platforms: 8192 (on NT/2K/XP).
3908     lt_cv_sys_max_cmd_len=8192;
3909     ;;
3910
3911   amigaos*)
3912     # On AmigaOS with pdksh, this test takes hours, literally.
3913     # So we just punt and use a minimum line length of 8192.
3914     lt_cv_sys_max_cmd_len=8192;
3915     ;;
3916
3917   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3918     # This has been around since 386BSD, at least.  Likely further.
3919     if test -x /sbin/sysctl; then
3920       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3921     elif test -x /usr/sbin/sysctl; then
3922       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3923     else
3924       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
3925     fi
3926     # And add a safety zone
3927     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3928     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3929     ;;
3930   esac
3931
3932 fi
3933
3934 if test -n "$lt_cv_sys_max_cmd_len" ; then
3935   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3936 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
3937 else
3938   echo "$as_me:$LINENO: result: none" >&5
3939 echo "${ECHO_T}none" >&6
3940 fi
3941
3942
3943 # Only perform the check for file, if the check method requires it
3944 case $deplibs_check_method in
3945 file_magic*)
3946   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3947     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3948 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3949 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3950   echo $ECHO_N "(cached) $ECHO_C" >&6
3951 else
3952   case $MAGIC_CMD in
3953   /*)
3954   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3955   ;;
3956   ?:/*)
3957   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3958   ;;
3959   *)
3960   ac_save_MAGIC_CMD="$MAGIC_CMD"
3961   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3962   ac_dummy="/usr/bin:$PATH"
3963   for ac_dir in $ac_dummy; do
3964     test -z "$ac_dir" && ac_dir=.
3965     if test -f $ac_dir/${ac_tool_prefix}file; then
3966       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3967       if test -n "$file_magic_test_file"; then
3968         case $deplibs_check_method in
3969         "file_magic "*)
3970           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3971           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3972           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3973             egrep "$file_magic_regex" > /dev/null; then
3974             :
3975           else
3976             cat <<EOF 1>&2
3977
3978 *** Warning: the command libtool uses to detect shared libraries,
3979 *** $file_magic_cmd, produces output that libtool cannot recognize.
3980 *** The result is that libtool may fail to recognize shared libraries
3981 *** as such.  This will affect the creation of libtool libraries that
3982 *** depend on shared libraries, but programs linked with such libtool
3983 *** libraries will work regardless of this problem.  Nevertheless, you
3984 *** may want to report the problem to your system manager and/or to
3985 *** bug-libtool@gnu.org
3986
3987 EOF
3988           fi ;;
3989         esac
3990       fi
3991       break
3992     fi
3993   done
3994   IFS="$ac_save_ifs"
3995   MAGIC_CMD="$ac_save_MAGIC_CMD"
3996   ;;
3997 esac
3998 fi
3999
4000 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4001 if test -n "$MAGIC_CMD"; then
4002   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4003 echo "${ECHO_T}$MAGIC_CMD" >&6
4004 else
4005   echo "$as_me:$LINENO: result: no" >&5
4006 echo "${ECHO_T}no" >&6
4007 fi
4008
4009 if test -z "$lt_cv_path_MAGIC_CMD"; then
4010   if test -n "$ac_tool_prefix"; then
4011     echo "$as_me:$LINENO: checking for file" >&5
4012 echo $ECHO_N "checking for file... $ECHO_C" >&6
4013 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4014   echo $ECHO_N "(cached) $ECHO_C" >&6
4015 else
4016   case $MAGIC_CMD in
4017   /*)
4018   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4019   ;;
4020   ?:/*)
4021   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4022   ;;
4023   *)
4024   ac_save_MAGIC_CMD="$MAGIC_CMD"
4025   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4026   ac_dummy="/usr/bin:$PATH"
4027   for ac_dir in $ac_dummy; do
4028     test -z "$ac_dir" && ac_dir=.
4029     if test -f $ac_dir/file; then
4030       lt_cv_path_MAGIC_CMD="$ac_dir/file"
4031       if test -n "$file_magic_test_file"; then
4032         case $deplibs_check_method in
4033         "file_magic "*)
4034           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4035           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4036           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4037             egrep "$file_magic_regex" > /dev/null; then
4038             :
4039           else
4040             cat <<EOF 1>&2
4041
4042 *** Warning: the command libtool uses to detect shared libraries,
4043 *** $file_magic_cmd, produces output that libtool cannot recognize.
4044 *** The result is that libtool may fail to recognize shared libraries
4045 *** as such.  This will affect the creation of libtool libraries that
4046 *** depend on shared libraries, but programs linked with such libtool
4047 *** libraries will work regardless of this problem.  Nevertheless, you
4048 *** may want to report the problem to your system manager and/or to
4049 *** bug-libtool@gnu.org
4050
4051 EOF
4052           fi ;;
4053         esac
4054       fi
4055       break
4056     fi
4057   done
4058   IFS="$ac_save_ifs"
4059   MAGIC_CMD="$ac_save_MAGIC_CMD"
4060   ;;
4061 esac
4062 fi
4063
4064 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4065 if test -n "$MAGIC_CMD"; then
4066   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4067 echo "${ECHO_T}$MAGIC_CMD" >&6
4068 else
4069   echo "$as_me:$LINENO: result: no" >&5
4070 echo "${ECHO_T}no" >&6
4071 fi
4072
4073   else
4074     MAGIC_CMD=:
4075   fi
4076 fi
4077
4078   fi
4079   ;;
4080 esac
4081
4082 if test -n "$ac_tool_prefix"; then
4083   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4084 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4085 echo "$as_me:$LINENO: checking for $ac_word" >&5
4086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4087 if test "${ac_cv_prog_RANLIB+set}" = set; then
4088   echo $ECHO_N "(cached) $ECHO_C" >&6
4089 else
4090   if test -n "$RANLIB"; then
4091   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4092 else
4093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4094 for as_dir in $PATH
4095 do
4096   IFS=$as_save_IFS
4097   test -z "$as_dir" && as_dir=.
4098   for ac_exec_ext in '' $ac_executable_extensions; do
4099   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4100     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4101     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4102     break 2
4103   fi
4104 done
4105 done
4106
4107 fi
4108 fi
4109 RANLIB=$ac_cv_prog_RANLIB
4110 if test -n "$RANLIB"; then
4111   echo "$as_me:$LINENO: result: $RANLIB" >&5
4112 echo "${ECHO_T}$RANLIB" >&6
4113 else
4114   echo "$as_me:$LINENO: result: no" >&5
4115 echo "${ECHO_T}no" >&6
4116 fi
4117
4118 fi
4119 if test -z "$ac_cv_prog_RANLIB"; then
4120   ac_ct_RANLIB=$RANLIB
4121   # Extract the first word of "ranlib", so it can be a program name with args.
4122 set dummy ranlib; ac_word=$2
4123 echo "$as_me:$LINENO: checking for $ac_word" >&5
4124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4125 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4126   echo $ECHO_N "(cached) $ECHO_C" >&6
4127 else
4128   if test -n "$ac_ct_RANLIB"; then
4129   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4130 else
4131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4132 for as_dir in $PATH
4133 do
4134   IFS=$as_save_IFS
4135   test -z "$as_dir" && as_dir=.
4136   for ac_exec_ext in '' $ac_executable_extensions; do
4137   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4138     ac_cv_prog_ac_ct_RANLIB="ranlib"
4139     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4140     break 2
4141   fi
4142 done
4143 done
4144
4145   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4146 fi
4147 fi
4148 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4149 if test -n "$ac_ct_RANLIB"; then
4150   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4151 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4152 else
4153   echo "$as_me:$LINENO: result: no" >&5
4154 echo "${ECHO_T}no" >&6
4155 fi
4156
4157   RANLIB=$ac_ct_RANLIB
4158 else
4159   RANLIB="$ac_cv_prog_RANLIB"
4160 fi
4161
4162 if test -n "$ac_tool_prefix"; then
4163   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4164 set dummy ${ac_tool_prefix}strip; ac_word=$2
4165 echo "$as_me:$LINENO: checking for $ac_word" >&5
4166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4167 if test "${ac_cv_prog_STRIP+set}" = set; then
4168   echo $ECHO_N "(cached) $ECHO_C" >&6
4169 else
4170   if test -n "$STRIP"; then
4171   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4172 else
4173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4174 for as_dir in $PATH
4175 do
4176   IFS=$as_save_IFS
4177   test -z "$as_dir" && as_dir=.
4178   for ac_exec_ext in '' $ac_executable_extensions; do
4179   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4180     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4181     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4182     break 2
4183   fi
4184 done
4185 done
4186
4187 fi
4188 fi
4189 STRIP=$ac_cv_prog_STRIP
4190 if test -n "$STRIP"; then
4191   echo "$as_me:$LINENO: result: $STRIP" >&5
4192 echo "${ECHO_T}$STRIP" >&6
4193 else
4194   echo "$as_me:$LINENO: result: no" >&5
4195 echo "${ECHO_T}no" >&6
4196 fi
4197
4198 fi
4199 if test -z "$ac_cv_prog_STRIP"; then
4200   ac_ct_STRIP=$STRIP
4201   # Extract the first word of "strip", so it can be a program name with args.
4202 set dummy strip; ac_word=$2
4203 echo "$as_me:$LINENO: checking for $ac_word" >&5
4204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4205 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4206   echo $ECHO_N "(cached) $ECHO_C" >&6
4207 else
4208   if test -n "$ac_ct_STRIP"; then
4209   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4210 else
4211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4212 for as_dir in $PATH
4213 do
4214   IFS=$as_save_IFS
4215   test -z "$as_dir" && as_dir=.
4216   for ac_exec_ext in '' $ac_executable_extensions; do
4217   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4218     ac_cv_prog_ac_ct_STRIP="strip"
4219     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4220     break 2
4221   fi
4222 done
4223 done
4224
4225   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4226 fi
4227 fi
4228 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4229 if test -n "$ac_ct_STRIP"; then
4230   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4231 echo "${ECHO_T}$ac_ct_STRIP" >&6
4232 else
4233   echo "$as_me:$LINENO: result: no" >&5
4234 echo "${ECHO_T}no" >&6
4235 fi
4236
4237   STRIP=$ac_ct_STRIP
4238 else
4239   STRIP="$ac_cv_prog_STRIP"
4240 fi
4241
4242
4243 # Check for any special flags to pass to ltconfig.
4244 libtool_flags="--cache-file=$cache_file"
4245 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4246 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4247 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4248 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4249 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4250
4251
4252 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4253 if test "${enable_libtool_lock+set}" = set; then
4254   enableval="$enable_libtool_lock"
4255
4256 fi;
4257 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4258 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4259
4260
4261 # Check whether --with-pic or --without-pic was given.
4262 if test "${with_pic+set}" = set; then
4263   withval="$with_pic"
4264   pic_mode="$withval"
4265 else
4266   pic_mode=default
4267 fi;
4268 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4269 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4270
4271 # Some flags need to be propagated to the compiler or linker for good
4272 # libtool support.
4273 case $host in
4274 *-*-irix6*)
4275   # Find out which ABI we are using.
4276   echo '#line 4276 "configure"' > conftest.$ac_ext
4277   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4278   (eval $ac_compile) 2>&5
4279   ac_status=$?
4280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281   (exit $ac_status); }; then
4282    if test "$lt_cv_prog_gnu_ld" = yes; then
4283     case `/usr/bin/file conftest.$ac_objext` in
4284     *32-bit*)
4285       LD="${LD-ld} -melf32bsmip"
4286       ;;
4287     *N32*)
4288       LD="${LD-ld} -melf32bmipn32"
4289       ;;
4290     *64-bit*)
4291       LD="${LD-ld} -melf64bmip"
4292       ;;
4293     esac
4294    else
4295     case `/usr/bin/file conftest.$ac_objext` in
4296     *32-bit*)
4297       LD="${LD-ld} -32"
4298       ;;
4299     *N32*)
4300       LD="${LD-ld} -n32"
4301       ;;
4302     *64-bit*)
4303       LD="${LD-ld} -64"
4304       ;;
4305     esac
4306    fi
4307   fi
4308   rm -rf conftest*
4309   ;;
4310
4311 ia64-*-hpux*)
4312   # Find out which ABI we are using.
4313   echo 'int i;' > conftest.$ac_ext
4314   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4315   (eval $ac_compile) 2>&5
4316   ac_status=$?
4317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318   (exit $ac_status); }; then
4319     case "`/usr/bin/file conftest.o`" in
4320     *ELF-32*)
4321       HPUX_IA64_MODE="32"
4322       ;;
4323     *ELF-64*)
4324       HPUX_IA64_MODE="64"
4325       ;;
4326     esac
4327   fi
4328   rm -rf conftest*
4329   ;;
4330
4331 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4332   # Find out which ABI we are using.
4333   echo 'int i;' > conftest.$ac_ext
4334   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4335   (eval $ac_compile) 2>&5
4336   ac_status=$?
4337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338   (exit $ac_status); }; then
4339     case "`/usr/bin/file conftest.o`" in
4340     *32-bit*)
4341       case $host in
4342         x86_64-*linux*)
4343           LD="${LD-ld} -m elf_i386"
4344           ;;
4345         ppc64-*linux*|powerpc64-*linux*)
4346           LD="${LD-ld} -m elf32ppclinux"
4347           ;;
4348         s390x-*linux*)
4349           LD="${LD-ld} -m elf_s390"
4350           ;;
4351         sparc64-*linux*)
4352           LD="${LD-ld} -m elf32_sparc"
4353           ;;
4354       esac
4355       ;;
4356     *64-bit*)
4357       case $host in
4358         x86_64-*linux*)
4359           LD="${LD-ld} -m elf_x86_64"
4360           ;;
4361         ppc*-*linux*|powerpc*-*linux*)
4362           LD="${LD-ld} -m elf64ppc"
4363           ;;
4364         s390*-*linux*)
4365           LD="${LD-ld} -m elf64_s390"
4366           ;;
4367         sparc*-*linux*)
4368           LD="${LD-ld} -m elf64_sparc"
4369           ;;
4370       esac
4371       ;;
4372     esac
4373   fi
4374   rm -rf conftest*
4375   ;;
4376
4377 *-*-sco3.2v5*)
4378   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4379   SAVE_CFLAGS="$CFLAGS"
4380   CFLAGS="$CFLAGS -belf"
4381   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4382 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4383 if test "${lt_cv_cc_needs_belf+set}" = set; then
4384   echo $ECHO_N "(cached) $ECHO_C" >&6
4385 else
4386
4387
4388      ac_ext=c
4389 ac_cpp='$CPP $CPPFLAGS'
4390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4393
4394      cat >conftest.$ac_ext <<_ACEOF
4395 /* confdefs.h.  */
4396 _ACEOF
4397 cat confdefs.h >>conftest.$ac_ext
4398 cat >>conftest.$ac_ext <<_ACEOF
4399 /* end confdefs.h.  */
4400
4401 int
4402 main ()
4403 {
4404
4405   ;
4406   return 0;
4407 }
4408 _ACEOF
4409 rm -f conftest.$ac_objext conftest$ac_exeext
4410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4411   (eval $ac_link) 2>conftest.er1
4412   ac_status=$?
4413   grep -v '^ *+' conftest.er1 >conftest.err
4414   rm -f conftest.er1
4415   cat conftest.err >&5
4416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417   (exit $ac_status); } &&
4418          { ac_try='test -z "$ac_c_werror_flag"
4419                          || test ! -s conftest.err'
4420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4421   (eval $ac_try) 2>&5
4422   ac_status=$?
4423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4424   (exit $ac_status); }; } &&
4425          { ac_try='test -s conftest$ac_exeext'
4426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4427   (eval $ac_try) 2>&5
4428   ac_status=$?
4429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430   (exit $ac_status); }; }; then
4431   lt_cv_cc_needs_belf=yes
4432 else
4433   echo "$as_me: failed program was:" >&5
4434 sed 's/^/| /' conftest.$ac_ext >&5
4435
4436 lt_cv_cc_needs_belf=no
4437 fi
4438 rm -f conftest.err conftest.$ac_objext \
4439       conftest$ac_exeext conftest.$ac_ext
4440      ac_ext=c
4441 ac_cpp='$CPP $CPPFLAGS'
4442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4445
4446 fi
4447 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4448 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4449   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4450     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4451     CFLAGS="$SAVE_CFLAGS"
4452   fi
4453   ;;
4454
4455
4456 esac
4457
4458
4459 # Save cache, so that ltconfig can load it
4460 cat >confcache <<\_ACEOF
4461 # This file is a shell script that caches the results of configure
4462 # tests run on this system so they can be shared between configure
4463 # scripts and configure runs, see configure's option --config-cache.
4464 # It is not useful on other systems.  If it contains results you don't
4465 # want to keep, you may remove or edit it.
4466 #
4467 # config.status only pays attention to the cache file if you give it
4468 # the --recheck option to rerun configure.
4469 #
4470 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4471 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4472 # following values.
4473
4474 _ACEOF
4475
4476 # The following way of writing the cache mishandles newlines in values,
4477 # but we know of no workaround that is simple, portable, and efficient.
4478 # So, don't put newlines in cache variables' values.
4479 # Ultrix sh set writes to stderr and can't be redirected directly,
4480 # and sets the high bit in the cache file unless we assign to the vars.
4481 {
4482   (set) 2>&1 |
4483     case `(ac_space=' '; set | grep ac_space) 2>&1` in
4484     *ac_space=\ *)
4485       # `set' does not quote correctly, so add quotes (double-quote
4486       # substitution turns \\\\ into \\, and sed turns \\ into \).
4487       sed -n \
4488         "s/'/'\\\\''/g;
4489           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4490       ;;
4491     *)
4492       # `set' quotes correctly as required by POSIX, so do not add quotes.
4493       sed -n \
4494         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4495       ;;
4496     esac;
4497 } |
4498   sed '
4499      t clear
4500      : clear
4501      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4502      t end
4503      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4504      : end' >>confcache
4505 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4506   if test -w $cache_file; then
4507     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4508     cat confcache >$cache_file
4509   else
4510     echo "not updating unwritable cache $cache_file"
4511   fi
4512 fi
4513 rm -f confcache
4514
4515 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
4516 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4517 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4518 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4519 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4520 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4521 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4522 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4523 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4524 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4525 echo "$as_me: error: libtool configure failed" >&2;}
4526    { (exit 1); exit 1; }; }
4527
4528 # Reload cache, that may have been modified by ltconfig
4529 if test -r "$cache_file"; then
4530   # Some versions of bash will fail to source /dev/null (special
4531   # files actually), so we avoid doing that.
4532   if test -f "$cache_file"; then
4533     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4534 echo "$as_me: loading cache $cache_file" >&6;}
4535     case $cache_file in
4536       [\\/]* | ?:[\\/]* ) . $cache_file;;
4537       *)                      . ./$cache_file;;
4538     esac
4539   fi
4540 else
4541   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4542 echo "$as_me: creating cache $cache_file" >&6;}
4543   >$cache_file
4544 fi
4545
4546
4547 # This can be used to rebuild libtool when needed
4548 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4549
4550 # Always use our own libtool.
4551 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4552
4553 # Redirect the config.log output again, so that the ltconfig log is not
4554 # clobbered by the next message.
4555 exec 5>>./config.log
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4566 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4567     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4568 if test "${enable_maintainer_mode+set}" = set; then
4569   enableval="$enable_maintainer_mode"
4570   USE_MAINTAINER_MODE=$enableval
4571 else
4572   USE_MAINTAINER_MODE=no
4573 fi;
4574   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4575 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4576
4577
4578 if test $USE_MAINTAINER_MODE = yes; then
4579   MAINTAINER_MODE_TRUE=
4580   MAINTAINER_MODE_FALSE='#'
4581 else
4582   MAINTAINER_MODE_TRUE='#'
4583   MAINTAINER_MODE_FALSE=
4584 fi
4585
4586   MAINT=$MAINTAINER_MODE_TRUE
4587
4588
4589
4590 # We need gfortran to compile parts of the library
4591 # We can't use AC_PROG_FC because it expects a fully working gfortran.
4592 #AC_PROG_FC(gfortran)
4593 FC="$GFORTRAN"
4594 ac_ext=${FC_SRCEXT-f}
4595 ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
4596 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
4597 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4598 if test -n "$ac_tool_prefix"; then
4599   for ac_prog in gfortran
4600   do
4601     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4602 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4603 echo "$as_me:$LINENO: checking for $ac_word" >&5
4604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4605 if test "${ac_cv_prog_FC+set}" = set; then
4606   echo $ECHO_N "(cached) $ECHO_C" >&6
4607 else
4608   if test -n "$FC"; then
4609   ac_cv_prog_FC="$FC" # Let the user override the test.
4610 else
4611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4612 for as_dir in $PATH
4613 do
4614   IFS=$as_save_IFS
4615   test -z "$as_dir" && as_dir=.
4616   for ac_exec_ext in '' $ac_executable_extensions; do
4617   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4618     ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
4619     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4620     break 2
4621   fi
4622 done
4623 done
4624
4625 fi
4626 fi
4627 FC=$ac_cv_prog_FC
4628 if test -n "$FC"; then
4629   echo "$as_me:$LINENO: result: $FC" >&5
4630 echo "${ECHO_T}$FC" >&6
4631 else
4632   echo "$as_me:$LINENO: result: no" >&5
4633 echo "${ECHO_T}no" >&6
4634 fi
4635
4636     test -n "$FC" && break
4637   done
4638 fi
4639 if test -z "$FC"; then
4640   ac_ct_FC=$FC
4641   for ac_prog in gfortran
4642 do
4643   # Extract the first word of "$ac_prog", so it can be a program name with args.
4644 set dummy $ac_prog; ac_word=$2
4645 echo "$as_me:$LINENO: checking for $ac_word" >&5
4646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4647 if test "${ac_cv_prog_ac_ct_FC+set}" = set; then
4648   echo $ECHO_N "(cached) $ECHO_C" >&6
4649 else
4650   if test -n "$ac_ct_FC"; then
4651   ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
4652 else
4653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4654 for as_dir in $PATH
4655 do
4656   IFS=$as_save_IFS
4657   test -z "$as_dir" && as_dir=.
4658   for ac_exec_ext in '' $ac_executable_extensions; do
4659   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4660     ac_cv_prog_ac_ct_FC="$ac_prog"
4661     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4662     break 2
4663   fi
4664 done
4665 done
4666
4667 fi
4668 fi
4669 ac_ct_FC=$ac_cv_prog_ac_ct_FC
4670 if test -n "$ac_ct_FC"; then
4671   echo "$as_me:$LINENO: result: $ac_ct_FC" >&5
4672 echo "${ECHO_T}$ac_ct_FC" >&6
4673 else
4674   echo "$as_me:$LINENO: result: no" >&5
4675 echo "${ECHO_T}no" >&6
4676 fi
4677
4678   test -n "$ac_ct_FC" && break
4679 done
4680
4681   FC=$ac_ct_FC
4682 fi
4683
4684
4685 # Provide some information about the compiler.
4686 echo "$as_me:4686:" \
4687      "checking for Fortran compiler version" >&5
4688 ac_compiler=`set X $ac_compile; echo $2`
4689 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4690   (eval $ac_compiler --version </dev/null >&5) 2>&5
4691   ac_status=$?
4692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4693   (exit $ac_status); }
4694 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4695   (eval $ac_compiler -v </dev/null >&5) 2>&5
4696   ac_status=$?
4697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698   (exit $ac_status); }
4699 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4700   (eval $ac_compiler -V </dev/null >&5) 2>&5
4701   ac_status=$?
4702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703   (exit $ac_status); }
4704 rm -f a.out
4705
4706 # If we don't use `.F' as extension, the preprocessor is not run on the
4707 # input file.  (Note that this only needs to work for GNU compilers.)
4708 ac_save_ext=$ac_ext
4709 ac_ext=F
4710 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5
4711 echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6
4712 if test "${ac_cv_fc_compiler_gnu+set}" = set; then
4713   echo $ECHO_N "(cached) $ECHO_C" >&6
4714 else
4715   cat >conftest.$ac_ext <<_ACEOF
4716       program main
4717 #ifndef __GNUC__
4718        choke me
4719 #endif
4720
4721       end
4722 _ACEOF
4723 rm -f conftest.$ac_objext
4724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4725   (eval $ac_compile) 2>conftest.er1
4726   ac_status=$?
4727   grep -v '^ *+' conftest.er1 >conftest.err
4728   rm -f conftest.er1
4729   cat conftest.err >&5
4730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4731   (exit $ac_status); } &&
4732          { ac_try='test -z "$ac_fc_werror_flag"
4733                          || test ! -s conftest.err'
4734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4735   (eval $ac_try) 2>&5
4736   ac_status=$?
4737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738   (exit $ac_status); }; } &&
4739          { ac_try='test -s conftest.$ac_objext'
4740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4741   (eval $ac_try) 2>&5
4742   ac_status=$?
4743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744   (exit $ac_status); }; }; then
4745   ac_compiler_gnu=yes
4746 else
4747   echo "$as_me: failed program was:" >&5
4748 sed 's/^/| /' conftest.$ac_ext >&5
4749
4750 ac_compiler_gnu=no
4751 fi
4752 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4753 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
4754
4755 fi
4756 echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5
4757 echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6
4758 ac_ext=$ac_save_ext
4759 ac_test_FFLAGS=${FCFLAGS+set}
4760 ac_save_FFLAGS=$FCFLAGS
4761 FCFLAGS=
4762 echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5
4763 echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6
4764 if test "${ac_cv_prog_fc_g+set}" = set; then
4765   echo $ECHO_N "(cached) $ECHO_C" >&6
4766 else
4767   FCFLAGS=-g
4768 cat >conftest.$ac_ext <<_ACEOF
4769       program main
4770
4771       end
4772 _ACEOF
4773 rm -f conftest.$ac_objext
4774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4775   (eval $ac_compile) 2>conftest.er1
4776   ac_status=$?
4777   grep -v '^ *+' conftest.er1 >conftest.err
4778   rm -f conftest.er1
4779   cat conftest.err >&5
4780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781   (exit $ac_status); } &&
4782          { ac_try='test -z "$ac_fc_werror_flag"
4783                          || test ! -s conftest.err'
4784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4785   (eval $ac_try) 2>&5
4786   ac_status=$?
4787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4788   (exit $ac_status); }; } &&
4789          { ac_try='test -s conftest.$ac_objext'
4790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4791   (eval $ac_try) 2>&5
4792   ac_status=$?
4793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4794   (exit $ac_status); }; }; then
4795   ac_cv_prog_fc_g=yes
4796 else
4797   echo "$as_me: failed program was:" >&5
4798 sed 's/^/| /' conftest.$ac_ext >&5
4799
4800 ac_cv_prog_fc_g=no
4801 fi
4802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4803
4804 fi
4805 echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5
4806 echo "${ECHO_T}$ac_cv_prog_fc_g" >&6
4807 if test "$ac_test_FFLAGS" = set; then
4808   FCFLAGS=$ac_save_FFLAGS
4809 elif test $ac_cv_prog_fc_g = yes; then
4810   if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4811     FCFLAGS="-g -O2"
4812   else
4813     FCFLAGS="-g"
4814   fi
4815 else
4816   if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4817     FCFLAGS="-O2"
4818   else
4819     FCFLAGS=
4820   fi
4821 fi
4822
4823 ac_ext=c
4824 ac_cpp='$CPP $CPPFLAGS'
4825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4828
4829 FCFLAGS="$FCFLAGS -Wall"
4830
4831 # For libtool versioning info, format is CURRENT:REVISION:AGE
4832 libtool_VERSION=1:0:0
4833
4834
4835 # Check header files.
4836 ac_ext=c
4837 ac_cpp='$CPP $CPPFLAGS'
4838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4841 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4842 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4843 # On Suns, sometimes $CPP names a directory.
4844 if test -n "$CPP" && test -d "$CPP"; then
4845   CPP=
4846 fi
4847 if test -z "$CPP"; then
4848   if test "${ac_cv_prog_CPP+set}" = set; then
4849   echo $ECHO_N "(cached) $ECHO_C" >&6
4850 else
4851       # Double quotes because CPP needs to be expanded
4852     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4853     do
4854       ac_preproc_ok=false
4855 for ac_c_preproc_warn_flag in '' yes
4856 do
4857   # Use a header file that comes with gcc, so configuring glibc
4858   # with a fresh cross-compiler works.
4859   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4860   # <limits.h> exists even on freestanding compilers.
4861   # On the NeXT, cc -E runs the code through the compiler's parser,
4862   # not just through cpp. "Syntax error" is here to catch this case.
4863   cat >conftest.$ac_ext <<_ACEOF
4864 /* confdefs.h.  */
4865 _ACEOF
4866 cat confdefs.h >>conftest.$ac_ext
4867 cat >>conftest.$ac_ext <<_ACEOF
4868 /* end confdefs.h.  */
4869 #ifdef __STDC__
4870 # include <limits.h>
4871 #else
4872 # include <assert.h>
4873 #endif
4874                      Syntax error
4875 _ACEOF
4876 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4877   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4878   ac_status=$?
4879   grep -v '^ *+' conftest.er1 >conftest.err
4880   rm -f conftest.er1
4881   cat conftest.err >&5
4882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4883   (exit $ac_status); } >/dev/null; then
4884   if test -s conftest.err; then
4885     ac_cpp_err=$ac_c_preproc_warn_flag
4886     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4887   else
4888     ac_cpp_err=
4889   fi
4890 else
4891   ac_cpp_err=yes
4892 fi
4893 if test -z "$ac_cpp_err"; then
4894   :
4895 else
4896   echo "$as_me: failed program was:" >&5
4897 sed 's/^/| /' conftest.$ac_ext >&5
4898
4899   # Broken: fails on valid input.
4900 continue
4901 fi
4902 rm -f conftest.err conftest.$ac_ext
4903
4904   # OK, works on sane cases.  Now check whether non-existent headers
4905   # can be detected and how.
4906   cat >conftest.$ac_ext <<_ACEOF
4907 /* confdefs.h.  */
4908 _ACEOF
4909 cat confdefs.h >>conftest.$ac_ext
4910 cat >>conftest.$ac_ext <<_ACEOF
4911 /* end confdefs.h.  */
4912 #include <ac_nonexistent.h>
4913 _ACEOF
4914 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4915   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4916   ac_status=$?
4917   grep -v '^ *+' conftest.er1 >conftest.err
4918   rm -f conftest.er1
4919   cat conftest.err >&5
4920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921   (exit $ac_status); } >/dev/null; then
4922   if test -s conftest.err; then
4923     ac_cpp_err=$ac_c_preproc_warn_flag
4924     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4925   else
4926     ac_cpp_err=
4927   fi
4928 else
4929   ac_cpp_err=yes
4930 fi
4931 if test -z "$ac_cpp_err"; then
4932   # Broken: success on invalid input.
4933 continue
4934 else
4935   echo "$as_me: failed program was:" >&5
4936 sed 's/^/| /' conftest.$ac_ext >&5
4937
4938   # Passes both tests.
4939 ac_preproc_ok=:
4940 break
4941 fi
4942 rm -f conftest.err conftest.$ac_ext
4943
4944 done
4945 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4946 rm -f conftest.err conftest.$ac_ext
4947 if $ac_preproc_ok; then
4948   break
4949 fi
4950
4951     done
4952     ac_cv_prog_CPP=$CPP
4953
4954 fi
4955   CPP=$ac_cv_prog_CPP
4956 else
4957   ac_cv_prog_CPP=$CPP
4958 fi
4959 echo "$as_me:$LINENO: result: $CPP" >&5
4960 echo "${ECHO_T}$CPP" >&6
4961 ac_preproc_ok=false
4962 for ac_c_preproc_warn_flag in '' yes
4963 do
4964   # Use a header file that comes with gcc, so configuring glibc
4965   # with a fresh cross-compiler works.
4966   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4967   # <limits.h> exists even on freestanding compilers.
4968   # On the NeXT, cc -E runs the code through the compiler's parser,
4969   # not just through cpp. "Syntax error" is here to catch this case.
4970   cat >conftest.$ac_ext <<_ACEOF
4971 /* confdefs.h.  */
4972 _ACEOF
4973 cat confdefs.h >>conftest.$ac_ext
4974 cat >>conftest.$ac_ext <<_ACEOF
4975 /* end confdefs.h.  */
4976 #ifdef __STDC__
4977 # include <limits.h>
4978 #else
4979 # include <assert.h>
4980 #endif
4981                      Syntax error
4982 _ACEOF
4983 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4984   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4985   ac_status=$?
4986   grep -v '^ *+' conftest.er1 >conftest.err
4987   rm -f conftest.er1
4988   cat conftest.err >&5
4989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4990   (exit $ac_status); } >/dev/null; then
4991   if test -s conftest.err; then
4992     ac_cpp_err=$ac_c_preproc_warn_flag
4993     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4994   else
4995     ac_cpp_err=
4996   fi
4997 else
4998   ac_cpp_err=yes
4999 fi
5000 if test -z "$ac_cpp_err"; then
5001   :
5002 else
5003   echo "$as_me: failed program was:" >&5
5004 sed 's/^/| /' conftest.$ac_ext >&5
5005
5006   # Broken: fails on valid input.
5007 continue
5008 fi
5009 rm -f conftest.err conftest.$ac_ext
5010
5011   # OK, works on sane cases.  Now check whether non-existent headers
5012   # can be detected and how.
5013   cat >conftest.$ac_ext <<_ACEOF
5014 /* confdefs.h.  */
5015 _ACEOF
5016 cat confdefs.h >>conftest.$ac_ext
5017 cat >>conftest.$ac_ext <<_ACEOF
5018 /* end confdefs.h.  */
5019 #include <ac_nonexistent.h>
5020 _ACEOF
5021 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5022   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5023   ac_status=$?
5024   grep -v '^ *+' conftest.er1 >conftest.err
5025   rm -f conftest.er1
5026   cat conftest.err >&5
5027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028   (exit $ac_status); } >/dev/null; then
5029   if test -s conftest.err; then
5030     ac_cpp_err=$ac_c_preproc_warn_flag
5031     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5032   else
5033     ac_cpp_err=
5034   fi
5035 else
5036   ac_cpp_err=yes
5037 fi
5038 if test -z "$ac_cpp_err"; then
5039   # Broken: success on invalid input.
5040 continue
5041 else
5042   echo "$as_me: failed program was:" >&5
5043 sed 's/^/| /' conftest.$ac_ext >&5
5044
5045   # Passes both tests.
5046 ac_preproc_ok=:
5047 break
5048 fi
5049 rm -f conftest.err conftest.$ac_ext
5050
5051 done
5052 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5053 rm -f conftest.err conftest.$ac_ext
5054 if $ac_preproc_ok; then
5055   :
5056 else
5057   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5058 See \`config.log' for more details." >&5
5059 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5060 See \`config.log' for more details." >&2;}
5061    { (exit 1); exit 1; }; }
5062 fi
5063
5064 ac_ext=c
5065 ac_cpp='$CPP $CPPFLAGS'
5066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5069
5070
5071 echo "$as_me:$LINENO: checking for egrep" >&5
5072 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5073 if test "${ac_cv_prog_egrep+set}" = set; then
5074   echo $ECHO_N "(cached) $ECHO_C" >&6
5075 else
5076   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5077     then ac_cv_prog_egrep='grep -E'
5078     else ac_cv_prog_egrep='egrep'
5079     fi
5080 fi
5081 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5082 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5083  EGREP=$ac_cv_prog_egrep
5084
5085
5086 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5087 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5088 if test "${ac_cv_header_stdc+set}" = set; then
5089   echo $ECHO_N "(cached) $ECHO_C" >&6
5090 else
5091   cat >conftest.$ac_ext <<_ACEOF
5092 /* confdefs.h.  */
5093 _ACEOF
5094 cat confdefs.h >>conftest.$ac_ext
5095 cat >>conftest.$ac_ext <<_ACEOF
5096 /* end confdefs.h.  */
5097 #include <stdlib.h>
5098 #include <stdarg.h>
5099 #include <string.h>
5100 #include <float.h>
5101
5102 int
5103 main ()
5104 {
5105
5106   ;
5107   return 0;
5108 }
5109 _ACEOF
5110 rm -f conftest.$ac_objext
5111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5112   (eval $ac_compile) 2>conftest.er1
5113   ac_status=$?
5114   grep -v '^ *+' conftest.er1 >conftest.err
5115   rm -f conftest.er1
5116   cat conftest.err >&5
5117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118   (exit $ac_status); } &&
5119          { ac_try='test -z "$ac_c_werror_flag"
5120                          || test ! -s conftest.err'
5121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5122   (eval $ac_try) 2>&5
5123   ac_status=$?
5124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5125   (exit $ac_status); }; } &&
5126          { ac_try='test -s conftest.$ac_objext'
5127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5128   (eval $ac_try) 2>&5
5129   ac_status=$?
5130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5131   (exit $ac_status); }; }; then
5132   ac_cv_header_stdc=yes
5133 else
5134   echo "$as_me: failed program was:" >&5
5135 sed 's/^/| /' conftest.$ac_ext >&5
5136
5137 ac_cv_header_stdc=no
5138 fi
5139 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5140
5141 if test $ac_cv_header_stdc = yes; then
5142   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5143   cat >conftest.$ac_ext <<_ACEOF
5144 /* confdefs.h.  */
5145 _ACEOF
5146 cat confdefs.h >>conftest.$ac_ext
5147 cat >>conftest.$ac_ext <<_ACEOF
5148 /* end confdefs.h.  */
5149 #include <string.h>
5150
5151 _ACEOF
5152 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5153   $EGREP "memchr" >/dev/null 2>&1; then
5154   :
5155 else
5156   ac_cv_header_stdc=no
5157 fi
5158 rm -f conftest*
5159
5160 fi
5161
5162 if test $ac_cv_header_stdc = yes; then
5163   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5164   cat >conftest.$ac_ext <<_ACEOF
5165 /* confdefs.h.  */
5166 _ACEOF
5167 cat confdefs.h >>conftest.$ac_ext
5168 cat >>conftest.$ac_ext <<_ACEOF
5169 /* end confdefs.h.  */
5170 #include <stdlib.h>
5171
5172 _ACEOF
5173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5174   $EGREP "free" >/dev/null 2>&1; then
5175   :
5176 else
5177   ac_cv_header_stdc=no
5178 fi
5179 rm -f conftest*
5180
5181 fi
5182
5183 if test $ac_cv_header_stdc = yes; then
5184   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5185   if test "$cross_compiling" = yes; then
5186   :
5187 else
5188   cat >conftest.$ac_ext <<_ACEOF
5189 /* confdefs.h.  */
5190 _ACEOF
5191 cat confdefs.h >>conftest.$ac_ext
5192 cat >>conftest.$ac_ext <<_ACEOF
5193 /* end confdefs.h.  */
5194 #include <ctype.h>
5195 #if ((' ' & 0x0FF) == 0x020)
5196 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5197 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5198 #else
5199 # define ISLOWER(c) \
5200                    (('a' <= (c) && (c) <= 'i') \
5201                      || ('j' <= (c) && (c) <= 'r') \
5202                      || ('s' <= (c) && (c) <= 'z'))
5203 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5204 #endif
5205
5206 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5207 int
5208 main ()
5209 {
5210   int i;
5211   for (i = 0; i < 256; i++)
5212     if (XOR (islower (i), ISLOWER (i))
5213         || toupper (i) != TOUPPER (i))
5214       exit(2);
5215   exit (0);
5216 }
5217 _ACEOF
5218 rm -f conftest$ac_exeext
5219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5220   (eval $ac_link) 2>&5
5221   ac_status=$?
5222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5223   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5225   (eval $ac_try) 2>&5
5226   ac_status=$?
5227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5228   (exit $ac_status); }; }; then
5229   :
5230 else
5231   echo "$as_me: program exited with status $ac_status" >&5
5232 echo "$as_me: failed program was:" >&5
5233 sed 's/^/| /' conftest.$ac_ext >&5
5234
5235 ( exit $ac_status )
5236 ac_cv_header_stdc=no
5237 fi
5238 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5239 fi
5240 fi
5241 fi
5242 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5243 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5244 if test $ac_cv_header_stdc = yes; then
5245
5246 cat >>confdefs.h <<\_ACEOF
5247 #define STDC_HEADERS 1
5248 _ACEOF
5249
5250 fi
5251
5252 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5253 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5254 if test "${ac_cv_header_time+set}" = set; then
5255   echo $ECHO_N "(cached) $ECHO_C" >&6
5256 else
5257   cat >conftest.$ac_ext <<_ACEOF
5258 /* confdefs.h.  */
5259 _ACEOF
5260 cat confdefs.h >>conftest.$ac_ext
5261 cat >>conftest.$ac_ext <<_ACEOF
5262 /* end confdefs.h.  */
5263 #include <sys/types.h>
5264 #include <sys/time.h>
5265 #include <time.h>
5266
5267 int
5268 main ()
5269 {
5270 if ((struct tm *) 0)
5271 return 0;
5272   ;
5273   return 0;
5274 }
5275 _ACEOF
5276 rm -f conftest.$ac_objext
5277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5278   (eval $ac_compile) 2>conftest.er1
5279   ac_status=$?
5280   grep -v '^ *+' conftest.er1 >conftest.err
5281   rm -f conftest.er1
5282   cat conftest.err >&5
5283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5284   (exit $ac_status); } &&
5285          { ac_try='test -z "$ac_c_werror_flag"
5286                          || test ! -s conftest.err'
5287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5288   (eval $ac_try) 2>&5
5289   ac_status=$?
5290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5291   (exit $ac_status); }; } &&
5292          { ac_try='test -s conftest.$ac_objext'
5293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5294   (eval $ac_try) 2>&5
5295   ac_status=$?
5296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5297   (exit $ac_status); }; }; then
5298   ac_cv_header_time=yes
5299 else
5300   echo "$as_me: failed program was:" >&5
5301 sed 's/^/| /' conftest.$ac_ext >&5
5302
5303 ac_cv_header_time=no
5304 fi
5305 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5306 fi
5307 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5308 echo "${ECHO_T}$ac_cv_header_time" >&6
5309 if test $ac_cv_header_time = yes; then
5310
5311 cat >>confdefs.h <<\_ACEOF
5312 #define TIME_WITH_SYS_TIME 1
5313 _ACEOF
5314
5315 fi
5316
5317 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5328                   inttypes.h stdint.h unistd.h
5329 do
5330 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5331 echo "$as_me:$LINENO: checking for $ac_header" >&5
5332 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5333 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5334   echo $ECHO_N "(cached) $ECHO_C" >&6
5335 else
5336   cat >conftest.$ac_ext <<_ACEOF
5337 /* confdefs.h.  */
5338 _ACEOF
5339 cat confdefs.h >>conftest.$ac_ext
5340 cat >>conftest.$ac_ext <<_ACEOF
5341 /* end confdefs.h.  */
5342 $ac_includes_default
5343
5344 #include <$ac_header>
5345 _ACEOF
5346 rm -f conftest.$ac_objext
5347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5348   (eval $ac_compile) 2>conftest.er1
5349   ac_status=$?
5350   grep -v '^ *+' conftest.er1 >conftest.err
5351   rm -f conftest.er1
5352   cat conftest.err >&5
5353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5354   (exit $ac_status); } &&
5355          { ac_try='test -z "$ac_c_werror_flag"
5356                          || test ! -s conftest.err'
5357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5358   (eval $ac_try) 2>&5
5359   ac_status=$?
5360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5361   (exit $ac_status); }; } &&
5362          { ac_try='test -s conftest.$ac_objext'
5363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5364   (eval $ac_try) 2>&5
5365   ac_status=$?
5366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5367   (exit $ac_status); }; }; then
5368   eval "$as_ac_Header=yes"
5369 else
5370   echo "$as_me: failed program was:" >&5
5371 sed 's/^/| /' conftest.$ac_ext >&5
5372
5373 eval "$as_ac_Header=no"
5374 fi
5375 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5376 fi
5377 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5378 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5379 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5380   cat >>confdefs.h <<_ACEOF
5381 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5382 _ACEOF
5383
5384 fi
5385
5386 done
5387
5388
5389
5390
5391
5392
5393 for ac_header in unistd.h semaphore.h sys/loadavg.h sys/time.h
5394 do
5395 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5396 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5397   echo "$as_me:$LINENO: checking for $ac_header" >&5
5398 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5399 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5400   echo $ECHO_N "(cached) $ECHO_C" >&6
5401 fi
5402 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5403 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5404 else
5405   # Is the header compilable?
5406 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5407 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5408 cat >conftest.$ac_ext <<_ACEOF
5409 /* confdefs.h.  */
5410 _ACEOF
5411 cat confdefs.h >>conftest.$ac_ext
5412 cat >>conftest.$ac_ext <<_ACEOF
5413 /* end confdefs.h.  */
5414 $ac_includes_default
5415 #include <$ac_header>
5416 _ACEOF
5417 rm -f conftest.$ac_objext
5418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5419   (eval $ac_compile) 2>conftest.er1
5420   ac_status=$?
5421   grep -v '^ *+' conftest.er1 >conftest.err
5422   rm -f conftest.er1
5423   cat conftest.err >&5
5424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5425   (exit $ac_status); } &&
5426          { ac_try='test -z "$ac_c_werror_flag"
5427                          || test ! -s conftest.err'
5428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5429   (eval $ac_try) 2>&5
5430   ac_status=$?
5431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5432   (exit $ac_status); }; } &&
5433          { ac_try='test -s conftest.$ac_objext'
5434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5435   (eval $ac_try) 2>&5
5436   ac_status=$?
5437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438   (exit $ac_status); }; }; then
5439   ac_header_compiler=yes
5440 else
5441   echo "$as_me: failed program was:" >&5
5442 sed 's/^/| /' conftest.$ac_ext >&5
5443
5444 ac_header_compiler=no
5445 fi
5446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5447 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5448 echo "${ECHO_T}$ac_header_compiler" >&6
5449
5450 # Is the header present?
5451 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5452 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5453 cat >conftest.$ac_ext <<_ACEOF
5454 /* confdefs.h.  */
5455 _ACEOF
5456 cat confdefs.h >>conftest.$ac_ext
5457 cat >>conftest.$ac_ext <<_ACEOF
5458 /* end confdefs.h.  */
5459 #include <$ac_header>
5460 _ACEOF
5461 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5462   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5463   ac_status=$?
5464   grep -v '^ *+' conftest.er1 >conftest.err
5465   rm -f conftest.er1
5466   cat conftest.err >&5
5467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468   (exit $ac_status); } >/dev/null; then
5469   if test -s conftest.err; then
5470     ac_cpp_err=$ac_c_preproc_warn_flag
5471     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5472   else
5473     ac_cpp_err=
5474   fi
5475 else
5476   ac_cpp_err=yes
5477 fi
5478 if test -z "$ac_cpp_err"; then
5479   ac_header_preproc=yes
5480 else
5481   echo "$as_me: failed program was:" >&5
5482 sed 's/^/| /' conftest.$ac_ext >&5
5483
5484   ac_header_preproc=no
5485 fi
5486 rm -f conftest.err conftest.$ac_ext
5487 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5488 echo "${ECHO_T}$ac_header_preproc" >&6
5489
5490 # So?  What about this header?
5491 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5492   yes:no: )
5493     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5494 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5495     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5496 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5497     ac_header_preproc=yes
5498     ;;
5499   no:yes:* )
5500     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5501 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5502     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5503 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5504     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5505 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5506     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5507 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5508     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5509 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5510     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5511 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5512     (
5513       cat <<\_ASBOX
5514 ## ----------------------------------------------------- ##
5515 ## Report this to the GNU OpenMP Runtime Library lists.  ##
5516 ## ----------------------------------------------------- ##
5517 _ASBOX
5518     ) |
5519       sed "s/^/$as_me: WARNING:     /" >&2
5520     ;;
5521 esac
5522 echo "$as_me:$LINENO: checking for $ac_header" >&5
5523 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5524 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5525   echo $ECHO_N "(cached) $ECHO_C" >&6
5526 else
5527   eval "$as_ac_Header=\$ac_header_preproc"
5528 fi
5529 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5530 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5531
5532 fi
5533 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5534   cat >>confdefs.h <<_ACEOF
5535 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5536 _ACEOF
5537
5538 fi
5539
5540 done
5541
5542
5543
5544
5545 inttype_headers=`echo inttypes.h sys/inttypes.h  | sed -e 's/,/ /g'`
5546
5547 acx_cv_header_stdint=stddef.h
5548 acx_cv_header_stdint_kind="(already complete)"
5549 for i in stdint.h $inttype_headers; do
5550   unset ac_cv_type_uintptr_t
5551   unset ac_cv_type_uintmax_t
5552   unset ac_cv_type_int_least32_t
5553   unset ac_cv_type_int_fast32_t
5554   unset ac_cv_type_uint64_t
5555   echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
5556   echo "$as_me:$LINENO: checking for uintmax_t" >&5
5557 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
5558 if test "${ac_cv_type_uintmax_t+set}" = set; then
5559   echo $ECHO_N "(cached) $ECHO_C" >&6
5560 else
5561   cat >conftest.$ac_ext <<_ACEOF
5562 /* confdefs.h.  */
5563 _ACEOF
5564 cat confdefs.h >>conftest.$ac_ext
5565 cat >>conftest.$ac_ext <<_ACEOF
5566 /* end confdefs.h.  */
5567 #include <sys/types.h>
5568 #include <$i>
5569
5570 int
5571 main ()
5572 {
5573 if ((uintmax_t *) 0)
5574   return 0;
5575 if (sizeof (uintmax_t))
5576   return 0;
5577   ;
5578   return 0;
5579 }
5580 _ACEOF
5581 rm -f conftest.$ac_objext
5582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5583   (eval $ac_compile) 2>conftest.er1
5584   ac_status=$?
5585   grep -v '^ *+' conftest.er1 >conftest.err
5586   rm -f conftest.er1
5587   cat conftest.err >&5
5588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5589   (exit $ac_status); } &&
5590          { ac_try='test -z "$ac_c_werror_flag"
5591                          || test ! -s conftest.err'
5592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5593   (eval $ac_try) 2>&5
5594   ac_status=$?
5595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596   (exit $ac_status); }; } &&
5597          { ac_try='test -s conftest.$ac_objext'
5598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5599   (eval $ac_try) 2>&5
5600   ac_status=$?
5601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602   (exit $ac_status); }; }; then
5603   ac_cv_type_uintmax_t=yes
5604 else
5605   echo "$as_me: failed program was:" >&5
5606 sed 's/^/| /' conftest.$ac_ext >&5
5607
5608 ac_cv_type_uintmax_t=no
5609 fi
5610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5611 fi
5612 echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
5613 echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
5614 if test $ac_cv_type_uintmax_t = yes; then
5615   acx_cv_header_stdint=$i
5616 else
5617   continue
5618 fi
5619
5620   echo "$as_me:$LINENO: checking for uintptr_t" >&5
5621 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
5622 if test "${ac_cv_type_uintptr_t+set}" = set; then
5623   echo $ECHO_N "(cached) $ECHO_C" >&6
5624 else
5625   cat >conftest.$ac_ext <<_ACEOF
5626 /* confdefs.h.  */
5627 _ACEOF
5628 cat confdefs.h >>conftest.$ac_ext
5629 cat >>conftest.$ac_ext <<_ACEOF
5630 /* end confdefs.h.  */
5631 #include <sys/types.h>
5632 #include <$i>
5633
5634 int
5635 main ()
5636 {
5637 if ((uintptr_t *) 0)
5638   return 0;
5639 if (sizeof (uintptr_t))
5640   return 0;
5641   ;
5642   return 0;
5643 }
5644 _ACEOF
5645 rm -f conftest.$ac_objext
5646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5647   (eval $ac_compile) 2>conftest.er1
5648   ac_status=$?
5649   grep -v '^ *+' conftest.er1 >conftest.err
5650   rm -f conftest.er1
5651   cat conftest.err >&5
5652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5653   (exit $ac_status); } &&
5654          { ac_try='test -z "$ac_c_werror_flag"
5655                          || test ! -s conftest.err'
5656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5657   (eval $ac_try) 2>&5
5658   ac_status=$?
5659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5660   (exit $ac_status); }; } &&
5661          { ac_try='test -s conftest.$ac_objext'
5662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5663   (eval $ac_try) 2>&5
5664   ac_status=$?
5665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5666   (exit $ac_status); }; }; then
5667   ac_cv_type_uintptr_t=yes
5668 else
5669   echo "$as_me: failed program was:" >&5
5670 sed 's/^/| /' conftest.$ac_ext >&5
5671
5672 ac_cv_type_uintptr_t=no
5673 fi
5674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5675 fi
5676 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
5677 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
5678 if test $ac_cv_type_uintptr_t = yes; then
5679   :
5680 else
5681   acx_cv_header_stdint_kind="(mostly complete)"
5682 fi
5683
5684   echo "$as_me:$LINENO: checking for int_least32_t" >&5
5685 echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
5686 if test "${ac_cv_type_int_least32_t+set}" = set; then
5687   echo $ECHO_N "(cached) $ECHO_C" >&6
5688 else
5689   cat >conftest.$ac_ext <<_ACEOF
5690 /* confdefs.h.  */
5691 _ACEOF
5692 cat confdefs.h >>conftest.$ac_ext
5693 cat >>conftest.$ac_ext <<_ACEOF
5694 /* end confdefs.h.  */
5695 #include <sys/types.h>
5696 #include <$i>
5697
5698 int
5699 main ()
5700 {
5701 if ((int_least32_t *) 0)
5702   return 0;
5703 if (sizeof (int_least32_t))
5704   return 0;
5705   ;
5706   return 0;
5707 }
5708 _ACEOF
5709 rm -f conftest.$ac_objext
5710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5711   (eval $ac_compile) 2>conftest.er1
5712   ac_status=$?
5713   grep -v '^ *+' conftest.er1 >conftest.err
5714   rm -f conftest.er1
5715   cat conftest.err >&5
5716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5717   (exit $ac_status); } &&
5718          { ac_try='test -z "$ac_c_werror_flag"
5719                          || test ! -s conftest.err'
5720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5721   (eval $ac_try) 2>&5
5722   ac_status=$?
5723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5724   (exit $ac_status); }; } &&
5725          { ac_try='test -s conftest.$ac_objext'
5726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5727   (eval $ac_try) 2>&5
5728   ac_status=$?
5729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730   (exit $ac_status); }; }; then
5731   ac_cv_type_int_least32_t=yes
5732 else
5733   echo "$as_me: failed program was:" >&5
5734 sed 's/^/| /' conftest.$ac_ext >&5
5735
5736 ac_cv_type_int_least32_t=no
5737 fi
5738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5739 fi
5740 echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
5741 echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
5742 if test $ac_cv_type_int_least32_t = yes; then
5743   :
5744 else
5745   acx_cv_header_stdint_kind="(mostly complete)"
5746 fi
5747
5748   echo "$as_me:$LINENO: checking for int_fast32_t" >&5
5749 echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
5750 if test "${ac_cv_type_int_fast32_t+set}" = set; then
5751   echo $ECHO_N "(cached) $ECHO_C" >&6
5752 else
5753   cat >conftest.$ac_ext <<_ACEOF
5754 /* confdefs.h.  */
5755 _ACEOF
5756 cat confdefs.h >>conftest.$ac_ext
5757 cat >>conftest.$ac_ext <<_ACEOF
5758 /* end confdefs.h.  */
5759 #include <sys/types.h>
5760 #include <$i>
5761
5762 int
5763 main ()
5764 {
5765 if ((int_fast32_t *) 0)
5766   return 0;
5767 if (sizeof (int_fast32_t))
5768   return 0;
5769   ;
5770   return 0;
5771 }
5772 _ACEOF
5773 rm -f conftest.$ac_objext
5774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5775   (eval $ac_compile) 2>conftest.er1
5776   ac_status=$?
5777   grep -v '^ *+' conftest.er1 >conftest.err
5778   rm -f conftest.er1
5779   cat conftest.err >&5
5780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781   (exit $ac_status); } &&
5782          { ac_try='test -z "$ac_c_werror_flag"
5783                          || test ! -s conftest.err'
5784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5785   (eval $ac_try) 2>&5
5786   ac_status=$?
5787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788   (exit $ac_status); }; } &&
5789          { ac_try='test -s conftest.$ac_objext'
5790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5791   (eval $ac_try) 2>&5
5792   ac_status=$?
5793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794   (exit $ac_status); }; }; then
5795   ac_cv_type_int_fast32_t=yes
5796 else
5797   echo "$as_me: failed program was:" >&5
5798 sed 's/^/| /' conftest.$ac_ext >&5
5799
5800 ac_cv_type_int_fast32_t=no
5801 fi
5802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5803 fi
5804 echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
5805 echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
5806 if test $ac_cv_type_int_fast32_t = yes; then
5807   :
5808 else
5809   acx_cv_header_stdint_kind="(mostly complete)"
5810 fi
5811
5812   echo "$as_me:$LINENO: checking for uint64_t" >&5
5813 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
5814 if test "${ac_cv_type_uint64_t+set}" = set; then
5815   echo $ECHO_N "(cached) $ECHO_C" >&6
5816 else
5817   cat >conftest.$ac_ext <<_ACEOF
5818 /* confdefs.h.  */
5819 _ACEOF
5820 cat confdefs.h >>conftest.$ac_ext
5821 cat >>conftest.$ac_ext <<_ACEOF
5822 /* end confdefs.h.  */
5823 #include <sys/types.h>
5824 #include <$i>
5825
5826 int
5827 main ()
5828 {
5829 if ((uint64_t *) 0)
5830   return 0;
5831 if (sizeof (uint64_t))
5832   return 0;
5833   ;
5834   return 0;
5835 }
5836 _ACEOF
5837 rm -f conftest.$ac_objext
5838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5839   (eval $ac_compile) 2>conftest.er1
5840   ac_status=$?
5841   grep -v '^ *+' conftest.er1 >conftest.err
5842   rm -f conftest.er1
5843   cat conftest.err >&5
5844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5845   (exit $ac_status); } &&
5846          { ac_try='test -z "$ac_c_werror_flag"
5847                          || test ! -s conftest.err'
5848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5849   (eval $ac_try) 2>&5
5850   ac_status=$?
5851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5852   (exit $ac_status); }; } &&
5853          { ac_try='test -s conftest.$ac_objext'
5854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5855   (eval $ac_try) 2>&5
5856   ac_status=$?
5857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5858   (exit $ac_status); }; }; then
5859   ac_cv_type_uint64_t=yes
5860 else
5861   echo "$as_me: failed program was:" >&5
5862 sed 's/^/| /' conftest.$ac_ext >&5
5863
5864 ac_cv_type_uint64_t=no
5865 fi
5866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5867 fi
5868 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
5869 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
5870 if test $ac_cv_type_uint64_t = yes; then
5871   :
5872 else
5873   acx_cv_header_stdint_kind="(lacks uint64_t)"
5874 fi
5875
5876   break
5877 done
5878 if test "$acx_cv_header_stdint" = stddef.h; then
5879   acx_cv_header_stdint_kind="(lacks uintmax_t)"
5880   for i in stdint.h $inttype_headers; do
5881     unset ac_cv_type_uintptr_t
5882     unset ac_cv_type_uint32_t
5883     unset ac_cv_type_uint64_t
5884     echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
5885     echo "$as_me:$LINENO: checking for uint32_t" >&5
5886 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
5887 if test "${ac_cv_type_uint32_t+set}" = set; then
5888   echo $ECHO_N "(cached) $ECHO_C" >&6
5889 else
5890   cat >conftest.$ac_ext <<_ACEOF
5891 /* confdefs.h.  */
5892 _ACEOF
5893 cat confdefs.h >>conftest.$ac_ext
5894 cat >>conftest.$ac_ext <<_ACEOF
5895 /* end confdefs.h.  */
5896 #include <sys/types.h>
5897 #include <$i>
5898
5899 int
5900 main ()
5901 {
5902 if ((uint32_t *) 0)
5903   return 0;
5904 if (sizeof (uint32_t))
5905   return 0;
5906   ;
5907   return 0;
5908 }
5909 _ACEOF
5910 rm -f conftest.$ac_objext
5911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5912   (eval $ac_compile) 2>conftest.er1
5913   ac_status=$?
5914   grep -v '^ *+' conftest.er1 >conftest.err
5915   rm -f conftest.er1
5916   cat conftest.err >&5
5917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5918   (exit $ac_status); } &&
5919          { ac_try='test -z "$ac_c_werror_flag"
5920                          || test ! -s conftest.err'
5921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5922   (eval $ac_try) 2>&5
5923   ac_status=$?
5924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5925   (exit $ac_status); }; } &&
5926          { ac_try='test -s conftest.$ac_objext'
5927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5928   (eval $ac_try) 2>&5
5929   ac_status=$?
5930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931   (exit $ac_status); }; }; then
5932   ac_cv_type_uint32_t=yes
5933 else
5934   echo "$as_me: failed program was:" >&5
5935 sed 's/^/| /' conftest.$ac_ext >&5
5936
5937 ac_cv_type_uint32_t=no
5938 fi
5939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5940 fi
5941 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
5942 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
5943 if test $ac_cv_type_uint32_t = yes; then
5944   acx_cv_header_stdint=$i
5945 else
5946   continue
5947 fi
5948
5949     echo "$as_me:$LINENO: checking for uint64_t" >&5
5950 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
5951 if test "${ac_cv_type_uint64_t+set}" = set; then
5952   echo $ECHO_N "(cached) $ECHO_C" >&6
5953 else
5954   cat >conftest.$ac_ext <<_ACEOF
5955 /* confdefs.h.  */
5956 _ACEOF
5957 cat confdefs.h >>conftest.$ac_ext
5958 cat >>conftest.$ac_ext <<_ACEOF
5959 /* end confdefs.h.  */
5960 #include <sys/types.h>
5961 #include <$i>
5962
5963 int
5964 main ()
5965 {
5966 if ((uint64_t *) 0)
5967   return 0;
5968 if (sizeof (uint64_t))
5969   return 0;
5970   ;
5971   return 0;
5972 }
5973 _ACEOF
5974 rm -f conftest.$ac_objext
5975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5976   (eval $ac_compile) 2>conftest.er1
5977   ac_status=$?
5978   grep -v '^ *+' conftest.er1 >conftest.err
5979   rm -f conftest.er1
5980   cat conftest.err >&5
5981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982   (exit $ac_status); } &&
5983          { ac_try='test -z "$ac_c_werror_flag"
5984                          || test ! -s conftest.err'
5985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5986   (eval $ac_try) 2>&5
5987   ac_status=$?
5988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5989   (exit $ac_status); }; } &&
5990          { ac_try='test -s conftest.$ac_objext'
5991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5992   (eval $ac_try) 2>&5
5993   ac_status=$?
5994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995   (exit $ac_status); }; }; then
5996   ac_cv_type_uint64_t=yes
5997 else
5998   echo "$as_me: failed program was:" >&5
5999 sed 's/^/| /' conftest.$ac_ext >&5
6000
6001 ac_cv_type_uint64_t=no
6002 fi
6003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6004 fi
6005 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
6006 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
6007
6008     echo "$as_me:$LINENO: checking for uintptr_t" >&5
6009 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
6010 if test "${ac_cv_type_uintptr_t+set}" = set; then
6011   echo $ECHO_N "(cached) $ECHO_C" >&6
6012 else
6013   cat >conftest.$ac_ext <<_ACEOF
6014 /* confdefs.h.  */
6015 _ACEOF
6016 cat confdefs.h >>conftest.$ac_ext
6017 cat >>conftest.$ac_ext <<_ACEOF
6018 /* end confdefs.h.  */
6019 #include <sys/types.h>
6020 #include <$i>
6021
6022 int
6023 main ()
6024 {
6025 if ((uintptr_t *) 0)
6026   return 0;
6027 if (sizeof (uintptr_t))
6028   return 0;
6029   ;
6030   return 0;
6031 }
6032 _ACEOF
6033 rm -f conftest.$ac_objext
6034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6035   (eval $ac_compile) 2>conftest.er1
6036   ac_status=$?
6037   grep -v '^ *+' conftest.er1 >conftest.err
6038   rm -f conftest.er1
6039   cat conftest.err >&5
6040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6041   (exit $ac_status); } &&
6042          { ac_try='test -z "$ac_c_werror_flag"
6043                          || test ! -s conftest.err'
6044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6045   (eval $ac_try) 2>&5
6046   ac_status=$?
6047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048   (exit $ac_status); }; } &&
6049          { ac_try='test -s conftest.$ac_objext'
6050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6051   (eval $ac_try) 2>&5
6052   ac_status=$?
6053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054   (exit $ac_status); }; }; then
6055   ac_cv_type_uintptr_t=yes
6056 else
6057   echo "$as_me: failed program was:" >&5
6058 sed 's/^/| /' conftest.$ac_ext >&5
6059
6060 ac_cv_type_uintptr_t=no
6061 fi
6062 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6063 fi
6064 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
6065 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
6066
6067     break
6068   done
6069 fi
6070 if test "$acx_cv_header_stdint" = stddef.h; then
6071   acx_cv_header_stdint_kind="(u_intXX_t style)"
6072   for i in sys/types.h $inttype_headers; do
6073     unset ac_cv_type_u_int32_t
6074     unset ac_cv_type_u_int64_t
6075     echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
6076     echo "$as_me:$LINENO: checking for u_int32_t" >&5
6077 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
6078 if test "${ac_cv_type_u_int32_t+set}" = set; then
6079   echo $ECHO_N "(cached) $ECHO_C" >&6
6080 else
6081   cat >conftest.$ac_ext <<_ACEOF
6082 /* confdefs.h.  */
6083 _ACEOF
6084 cat confdefs.h >>conftest.$ac_ext
6085 cat >>conftest.$ac_ext <<_ACEOF
6086 /* end confdefs.h.  */
6087 #include <sys/types.h>
6088 #include <$i>
6089
6090 int
6091 main ()
6092 {
6093 if ((u_int32_t *) 0)
6094   return 0;
6095 if (sizeof (u_int32_t))
6096   return 0;
6097   ;
6098   return 0;
6099 }
6100 _ACEOF
6101 rm -f conftest.$ac_objext
6102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6103   (eval $ac_compile) 2>conftest.er1
6104   ac_status=$?
6105   grep -v '^ *+' conftest.er1 >conftest.err
6106   rm -f conftest.er1
6107   cat conftest.err >&5
6108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6109   (exit $ac_status); } &&
6110          { ac_try='test -z "$ac_c_werror_flag"
6111                          || test ! -s conftest.err'
6112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6113   (eval $ac_try) 2>&5
6114   ac_status=$?
6115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116   (exit $ac_status); }; } &&
6117          { ac_try='test -s conftest.$ac_objext'
6118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6119   (eval $ac_try) 2>&5
6120   ac_status=$?
6121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122   (exit $ac_status); }; }; then
6123   ac_cv_type_u_int32_t=yes
6124 else
6125   echo "$as_me: failed program was:" >&5
6126 sed 's/^/| /' conftest.$ac_ext >&5
6127
6128 ac_cv_type_u_int32_t=no
6129 fi
6130 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6131 fi
6132 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
6133 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
6134 if test $ac_cv_type_u_int32_t = yes; then
6135   acx_cv_header_stdint=$i
6136 else
6137   continue
6138 fi
6139
6140     echo "$as_me:$LINENO: checking for u_int64_t" >&5
6141 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
6142 if test "${ac_cv_type_u_int64_t+set}" = set; then
6143   echo $ECHO_N "(cached) $ECHO_C" >&6
6144 else
6145   cat >conftest.$ac_ext <<_ACEOF
6146 /* confdefs.h.  */
6147 _ACEOF
6148 cat confdefs.h >>conftest.$ac_ext
6149 cat >>conftest.$ac_ext <<_ACEOF
6150 /* end confdefs.h.  */
6151 #include <sys/types.h>
6152 #include <$i>
6153
6154 int
6155 main ()
6156 {
6157 if ((u_int64_t *) 0)
6158   return 0;
6159 if (sizeof (u_int64_t))
6160   return 0;
6161   ;
6162   return 0;
6163 }
6164 _ACEOF
6165 rm -f conftest.$ac_objext
6166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6167   (eval $ac_compile) 2>conftest.er1
6168   ac_status=$?
6169   grep -v '^ *+' conftest.er1 >conftest.err
6170   rm -f conftest.er1
6171   cat conftest.err >&5
6172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6173   (exit $ac_status); } &&
6174          { ac_try='test -z "$ac_c_werror_flag"
6175                          || test ! -s conftest.err'
6176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6177   (eval $ac_try) 2>&5
6178   ac_status=$?
6179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180   (exit $ac_status); }; } &&
6181          { ac_try='test -s conftest.$ac_objext'
6182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6183   (eval $ac_try) 2>&5
6184   ac_status=$?
6185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186   (exit $ac_status); }; }; then
6187   ac_cv_type_u_int64_t=yes
6188 else
6189   echo "$as_me: failed program was:" >&5
6190 sed 's/^/| /' conftest.$ac_ext >&5
6191
6192 ac_cv_type_u_int64_t=no
6193 fi
6194 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6195 fi
6196 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
6197 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
6198
6199     break
6200   done
6201 fi
6202 if test "$acx_cv_header_stdint" = stddef.h; then
6203   acx_cv_header_stdint_kind="(using manual detection)"
6204 fi
6205
6206 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
6207 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
6208 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
6209 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
6210 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
6211
6212 # ----------------- Summarize what we found so far
6213
6214 echo "$as_me:$LINENO: checking what to include in gstdint.h" >&5
6215 echo $ECHO_N "checking what to include in gstdint.h... $ECHO_C" >&6
6216
6217 case `$as_basename gstdint.h ||
6218 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
6219          Xgstdint.h : 'X\(//\)$' \| \
6220          Xgstdint.h : 'X\(/\)$' \| \
6221          .     : '\(.\)' 2>/dev/null ||
6222 echo X/gstdint.h |
6223     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6224           /^X\/\(\/\/\)$/{ s//\1/; q; }
6225           /^X\/\(\/\).*/{ s//\1/; q; }
6226           s/.*/./; q'` in
6227   stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
6228 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
6229   inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
6230 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
6231   *) ;;
6232 esac
6233
6234 echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
6235 echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
6236
6237 # ----------------- done included file, check C basic types --------
6238
6239 # Lacking an uintptr_t?  Test size of void *
6240 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
6241   stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
6242 echo $ECHO_N "checking for void *... $ECHO_C" >&6
6243 if test "${ac_cv_type_void_p+set}" = set; then
6244   echo $ECHO_N "(cached) $ECHO_C" >&6
6245 else
6246   cat >conftest.$ac_ext <<_ACEOF
6247 /* confdefs.h.  */
6248 _ACEOF
6249 cat confdefs.h >>conftest.$ac_ext
6250 cat >>conftest.$ac_ext <<_ACEOF
6251 /* end confdefs.h.  */
6252 $ac_includes_default
6253 int
6254 main ()
6255 {
6256 if ((void * *) 0)
6257   return 0;
6258 if (sizeof (void *))
6259   return 0;
6260   ;
6261   return 0;
6262 }
6263 _ACEOF
6264 rm -f conftest.$ac_objext
6265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6266   (eval $ac_compile) 2>conftest.er1
6267   ac_status=$?
6268   grep -v '^ *+' conftest.er1 >conftest.err
6269   rm -f conftest.er1
6270   cat conftest.err >&5
6271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6272   (exit $ac_status); } &&
6273          { ac_try='test -z "$ac_c_werror_flag"
6274                          || test ! -s conftest.err'
6275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6276   (eval $ac_try) 2>&5
6277   ac_status=$?
6278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6279   (exit $ac_status); }; } &&
6280          { ac_try='test -s conftest.$ac_objext'
6281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6282   (eval $ac_try) 2>&5
6283   ac_status=$?
6284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285   (exit $ac_status); }; }; then
6286   ac_cv_type_void_p=yes
6287 else
6288   echo "$as_me: failed program was:" >&5
6289 sed 's/^/| /' conftest.$ac_ext >&5
6290
6291 ac_cv_type_void_p=no
6292 fi
6293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6294 fi
6295 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
6296 echo "${ECHO_T}$ac_cv_type_void_p" >&6
6297
6298 echo "$as_me:$LINENO: checking size of void *" >&5
6299 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
6300 if test "${ac_cv_sizeof_void_p+set}" = set; then
6301   echo $ECHO_N "(cached) $ECHO_C" >&6
6302 else
6303   if test "$ac_cv_type_void_p" = yes; then
6304   # The cast to unsigned long works around a bug in the HP C Compiler
6305   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6306   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6307   # This bug is HP SR number 8606223364.
6308   if test "$cross_compiling" = yes; then
6309   # Depending upon the size, compute the lo and hi bounds.
6310 cat >conftest.$ac_ext <<_ACEOF
6311 /* confdefs.h.  */
6312 _ACEOF
6313 cat confdefs.h >>conftest.$ac_ext
6314 cat >>conftest.$ac_ext <<_ACEOF
6315 /* end confdefs.h.  */
6316 $ac_includes_default
6317 int
6318 main ()
6319 {
6320 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
6321 test_array [0] = 0
6322
6323   ;
6324   return 0;
6325 }
6326 _ACEOF
6327 rm -f conftest.$ac_objext
6328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6329   (eval $ac_compile) 2>conftest.er1
6330   ac_status=$?
6331   grep -v '^ *+' conftest.er1 >conftest.err
6332   rm -f conftest.er1
6333   cat conftest.err >&5
6334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6335   (exit $ac_status); } &&
6336          { ac_try='test -z "$ac_c_werror_flag"
6337                          || test ! -s conftest.err'
6338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6339   (eval $ac_try) 2>&5
6340   ac_status=$?
6341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6342   (exit $ac_status); }; } &&
6343          { ac_try='test -s conftest.$ac_objext'
6344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6345   (eval $ac_try) 2>&5
6346   ac_status=$?
6347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6348   (exit $ac_status); }; }; then
6349   ac_lo=0 ac_mid=0
6350   while :; do
6351     cat >conftest.$ac_ext <<_ACEOF
6352 /* confdefs.h.  */
6353 _ACEOF
6354 cat confdefs.h >>conftest.$ac_ext
6355 cat >>conftest.$ac_ext <<_ACEOF
6356 /* end confdefs.h.  */
6357 $ac_includes_default
6358 int
6359 main ()
6360 {
6361 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
6362 test_array [0] = 0
6363
6364   ;
6365   return 0;
6366 }
6367 _ACEOF
6368 rm -f conftest.$ac_objext
6369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6370   (eval $ac_compile) 2>conftest.er1
6371   ac_status=$?
6372   grep -v '^ *+' conftest.er1 >conftest.err
6373   rm -f conftest.er1
6374   cat conftest.err >&5
6375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6376   (exit $ac_status); } &&
6377          { ac_try='test -z "$ac_c_werror_flag"
6378                          || test ! -s conftest.err'
6379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6380   (eval $ac_try) 2>&5
6381   ac_status=$?
6382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6383   (exit $ac_status); }; } &&
6384          { ac_try='test -s conftest.$ac_objext'
6385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6386   (eval $ac_try) 2>&5
6387   ac_status=$?
6388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6389   (exit $ac_status); }; }; then
6390   ac_hi=$ac_mid; break
6391 else
6392   echo "$as_me: failed program was:" >&5
6393 sed 's/^/| /' conftest.$ac_ext >&5
6394
6395 ac_lo=`expr $ac_mid + 1`
6396                     if test $ac_lo -le $ac_mid; then
6397                       ac_lo= ac_hi=
6398                       break
6399                     fi
6400                     ac_mid=`expr 2 '*' $ac_mid + 1`
6401 fi
6402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6403   done
6404 else
6405   echo "$as_me: failed program was:" >&5
6406 sed 's/^/| /' conftest.$ac_ext >&5
6407
6408 cat >conftest.$ac_ext <<_ACEOF
6409 /* confdefs.h.  */
6410 _ACEOF
6411 cat confdefs.h >>conftest.$ac_ext
6412 cat >>conftest.$ac_ext <<_ACEOF
6413 /* end confdefs.h.  */
6414 $ac_includes_default
6415 int
6416 main ()
6417 {
6418 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
6419 test_array [0] = 0
6420
6421   ;
6422   return 0;
6423 }
6424 _ACEOF
6425 rm -f conftest.$ac_objext
6426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6427   (eval $ac_compile) 2>conftest.er1
6428   ac_status=$?
6429   grep -v '^ *+' conftest.er1 >conftest.err
6430   rm -f conftest.er1
6431   cat conftest.err >&5
6432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433   (exit $ac_status); } &&
6434          { ac_try='test -z "$ac_c_werror_flag"
6435                          || test ! -s conftest.err'
6436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6437   (eval $ac_try) 2>&5
6438   ac_status=$?
6439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440   (exit $ac_status); }; } &&
6441          { ac_try='test -s conftest.$ac_objext'
6442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6443   (eval $ac_try) 2>&5
6444   ac_status=$?
6445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446   (exit $ac_status); }; }; then
6447   ac_hi=-1 ac_mid=-1
6448   while :; do
6449     cat >conftest.$ac_ext <<_ACEOF
6450 /* confdefs.h.  */
6451 _ACEOF
6452 cat confdefs.h >>conftest.$ac_ext
6453 cat >>conftest.$ac_ext <<_ACEOF
6454 /* end confdefs.h.  */
6455 $ac_includes_default
6456 int
6457 main ()
6458 {
6459 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
6460 test_array [0] = 0
6461
6462   ;
6463   return 0;
6464 }
6465 _ACEOF
6466 rm -f conftest.$ac_objext
6467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6468   (eval $ac_compile) 2>conftest.er1
6469   ac_status=$?
6470   grep -v '^ *+' conftest.er1 >conftest.err
6471   rm -f conftest.er1
6472   cat conftest.err >&5
6473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6474   (exit $ac_status); } &&
6475          { ac_try='test -z "$ac_c_werror_flag"
6476                          || test ! -s conftest.err'
6477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6478   (eval $ac_try) 2>&5
6479   ac_status=$?
6480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6481   (exit $ac_status); }; } &&
6482          { ac_try='test -s conftest.$ac_objext'
6483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6484   (eval $ac_try) 2>&5
6485   ac_status=$?
6486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6487   (exit $ac_status); }; }; then
6488   ac_lo=$ac_mid; break
6489 else
6490   echo "$as_me: failed program was:" >&5
6491 sed 's/^/| /' conftest.$ac_ext >&5
6492
6493 ac_hi=`expr '(' $ac_mid ')' - 1`
6494                        if test $ac_mid -le $ac_hi; then
6495                          ac_lo= ac_hi=
6496                          break
6497                        fi
6498                        ac_mid=`expr 2 '*' $ac_mid`
6499 fi
6500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6501   done
6502 else
6503   echo "$as_me: failed program was:" >&5
6504 sed 's/^/| /' conftest.$ac_ext >&5
6505
6506 ac_lo= ac_hi=
6507 fi
6508 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6509 fi
6510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6511 # Binary search between lo and hi bounds.
6512 while test "x$ac_lo" != "x$ac_hi"; do
6513   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6514   cat >conftest.$ac_ext <<_ACEOF
6515 /* confdefs.h.  */
6516 _ACEOF
6517 cat confdefs.h >>conftest.$ac_ext
6518 cat >>conftest.$ac_ext <<_ACEOF
6519 /* end confdefs.h.  */
6520 $ac_includes_default
6521 int
6522 main ()
6523 {
6524 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
6525 test_array [0] = 0
6526
6527   ;
6528   return 0;
6529 }
6530 _ACEOF
6531 rm -f conftest.$ac_objext
6532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6533   (eval $ac_compile) 2>conftest.er1
6534   ac_status=$?
6535   grep -v '^ *+' conftest.er1 >conftest.err
6536   rm -f conftest.er1
6537   cat conftest.err >&5
6538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539   (exit $ac_status); } &&
6540          { ac_try='test -z "$ac_c_werror_flag"
6541                          || test ! -s conftest.err'
6542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6543   (eval $ac_try) 2>&5
6544   ac_status=$?
6545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6546   (exit $ac_status); }; } &&
6547          { ac_try='test -s conftest.$ac_objext'
6548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6549   (eval $ac_try) 2>&5
6550   ac_status=$?
6551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6552   (exit $ac_status); }; }; then
6553   ac_hi=$ac_mid
6554 else
6555   echo "$as_me: failed program was:" >&5
6556 sed 's/^/| /' conftest.$ac_ext >&5
6557
6558 ac_lo=`expr '(' $ac_mid ')' + 1`
6559 fi
6560 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6561 done
6562 case $ac_lo in
6563 ?*) ac_cv_sizeof_void_p=$ac_lo;;
6564 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
6565 See \`config.log' for more details." >&5
6566 echo "$as_me: error: cannot compute sizeof (void *), 77
6567 See \`config.log' for more details." >&2;}
6568    { (exit 1); exit 1; }; } ;;
6569 esac
6570 else
6571   if test "$cross_compiling" = yes; then
6572   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6573 See \`config.log' for more details." >&5
6574 echo "$as_me: error: cannot run test program while cross compiling
6575 See \`config.log' for more details." >&2;}
6576    { (exit 1); exit 1; }; }
6577 else
6578   cat >conftest.$ac_ext <<_ACEOF
6579 /* confdefs.h.  */
6580 _ACEOF
6581 cat confdefs.h >>conftest.$ac_ext
6582 cat >>conftest.$ac_ext <<_ACEOF
6583 /* end confdefs.h.  */
6584 $ac_includes_default
6585 long longval () { return (long) (sizeof (void *)); }
6586 unsigned long ulongval () { return (long) (sizeof (void *)); }
6587 #include <stdio.h>
6588 #include <stdlib.h>
6589 int
6590 main ()
6591 {
6592
6593   FILE *f = fopen ("conftest.val", "w");
6594   if (! f)
6595     exit (1);
6596   if (((long) (sizeof (void *))) < 0)
6597     {
6598       long i = longval ();
6599       if (i != ((long) (sizeof (void *))))
6600         exit (1);
6601       fprintf (f, "%ld\n", i);
6602     }
6603   else
6604     {
6605       unsigned long i = ulongval ();
6606       if (i != ((long) (sizeof (void *))))
6607         exit (1);
6608       fprintf (f, "%lu\n", i);
6609     }
6610   exit (ferror (f) || fclose (f) != 0);
6611
6612   ;
6613   return 0;
6614 }
6615 _ACEOF
6616 rm -f conftest$ac_exeext
6617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6618   (eval $ac_link) 2>&5
6619   ac_status=$?
6620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6621   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6623   (eval $ac_try) 2>&5
6624   ac_status=$?
6625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6626   (exit $ac_status); }; }; then
6627   ac_cv_sizeof_void_p=`cat conftest.val`
6628 else
6629   echo "$as_me: program exited with status $ac_status" >&5
6630 echo "$as_me: failed program was:" >&5
6631 sed 's/^/| /' conftest.$ac_ext >&5
6632
6633 ( exit $ac_status )
6634 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
6635 See \`config.log' for more details." >&5
6636 echo "$as_me: error: cannot compute sizeof (void *), 77
6637 See \`config.log' for more details." >&2;}
6638    { (exit 1); exit 1; }; }
6639 fi
6640 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6641 fi
6642 fi
6643 rm -f conftest.val
6644 else
6645   ac_cv_sizeof_void_p=0
6646 fi
6647 fi
6648 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
6649 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
6650 cat >>confdefs.h <<_ACEOF
6651 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6652 _ACEOF
6653
6654  ;;
6655 esac
6656
6657 # Lacking an uint64_t?  Test size of long
6658 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
6659   stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
6660 echo $ECHO_N "checking for long... $ECHO_C" >&6
6661 if test "${ac_cv_type_long+set}" = set; then
6662   echo $ECHO_N "(cached) $ECHO_C" >&6
6663 else
6664   cat >conftest.$ac_ext <<_ACEOF
6665 /* confdefs.h.  */
6666 _ACEOF
6667 cat confdefs.h >>conftest.$ac_ext
6668 cat >>conftest.$ac_ext <<_ACEOF
6669 /* end confdefs.h.  */
6670 $ac_includes_default
6671 int
6672 main ()
6673 {
6674 if ((long *) 0)
6675   return 0;
6676 if (sizeof (long))
6677   return 0;
6678   ;
6679   return 0;
6680 }
6681 _ACEOF
6682 rm -f conftest.$ac_objext
6683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6684   (eval $ac_compile) 2>conftest.er1
6685   ac_status=$?
6686   grep -v '^ *+' conftest.er1 >conftest.err
6687   rm -f conftest.er1
6688   cat conftest.err >&5
6689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6690   (exit $ac_status); } &&
6691          { ac_try='test -z "$ac_c_werror_flag"
6692                          || test ! -s conftest.err'
6693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6694   (eval $ac_try) 2>&5
6695   ac_status=$?
6696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6697   (exit $ac_status); }; } &&
6698          { ac_try='test -s conftest.$ac_objext'
6699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6700   (eval $ac_try) 2>&5
6701   ac_status=$?
6702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6703   (exit $ac_status); }; }; then
6704   ac_cv_type_long=yes
6705 else
6706   echo "$as_me: failed program was:" >&5
6707 sed 's/^/| /' conftest.$ac_ext >&5
6708
6709 ac_cv_type_long=no
6710 fi
6711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6712 fi
6713 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6714 echo "${ECHO_T}$ac_cv_type_long" >&6
6715
6716 echo "$as_me:$LINENO: checking size of long" >&5
6717 echo $ECHO_N "checking size of long... $ECHO_C" >&6
6718 if test "${ac_cv_sizeof_long+set}" = set; then
6719   echo $ECHO_N "(cached) $ECHO_C" >&6
6720 else
6721   if test "$ac_cv_type_long" = yes; then
6722   # The cast to unsigned long works around a bug in the HP C Compiler
6723   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6724   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6725   # This bug is HP SR number 8606223364.
6726   if test "$cross_compiling" = yes; then
6727   # Depending upon the size, compute the lo and hi bounds.
6728 cat >conftest.$ac_ext <<_ACEOF
6729 /* confdefs.h.  */
6730 _ACEOF
6731 cat confdefs.h >>conftest.$ac_ext
6732 cat >>conftest.$ac_ext <<_ACEOF
6733 /* end confdefs.h.  */
6734 $ac_includes_default
6735 int
6736 main ()
6737 {
6738 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6739 test_array [0] = 0
6740
6741   ;
6742   return 0;
6743 }
6744 _ACEOF
6745 rm -f conftest.$ac_objext
6746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6747   (eval $ac_compile) 2>conftest.er1
6748   ac_status=$?
6749   grep -v '^ *+' conftest.er1 >conftest.err
6750   rm -f conftest.er1
6751   cat conftest.err >&5
6752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6753   (exit $ac_status); } &&
6754          { ac_try='test -z "$ac_c_werror_flag"
6755                          || test ! -s conftest.err'
6756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6757   (eval $ac_try) 2>&5
6758   ac_status=$?
6759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6760   (exit $ac_status); }; } &&
6761          { ac_try='test -s conftest.$ac_objext'
6762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6763   (eval $ac_try) 2>&5
6764   ac_status=$?
6765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6766   (exit $ac_status); }; }; then
6767   ac_lo=0 ac_mid=0
6768   while :; do
6769     cat >conftest.$ac_ext <<_ACEOF
6770 /* confdefs.h.  */
6771 _ACEOF
6772 cat confdefs.h >>conftest.$ac_ext
6773 cat >>conftest.$ac_ext <<_ACEOF
6774 /* end confdefs.h.  */
6775 $ac_includes_default
6776 int
6777 main ()
6778 {
6779 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6780 test_array [0] = 0
6781
6782   ;
6783   return 0;
6784 }
6785 _ACEOF
6786 rm -f conftest.$ac_objext
6787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6788   (eval $ac_compile) 2>conftest.er1
6789   ac_status=$?
6790   grep -v '^ *+' conftest.er1 >conftest.err
6791   rm -f conftest.er1
6792   cat conftest.err >&5
6793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6794   (exit $ac_status); } &&
6795          { ac_try='test -z "$ac_c_werror_flag"
6796                          || test ! -s conftest.err'
6797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6798   (eval $ac_try) 2>&5
6799   ac_status=$?
6800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6801   (exit $ac_status); }; } &&
6802          { ac_try='test -s conftest.$ac_objext'
6803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6804   (eval $ac_try) 2>&5
6805   ac_status=$?
6806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6807   (exit $ac_status); }; }; then
6808   ac_hi=$ac_mid; break
6809 else
6810   echo "$as_me: failed program was:" >&5
6811 sed 's/^/| /' conftest.$ac_ext >&5
6812
6813 ac_lo=`expr $ac_mid + 1`
6814                     if test $ac_lo -le $ac_mid; then
6815                       ac_lo= ac_hi=
6816                       break
6817                     fi
6818                     ac_mid=`expr 2 '*' $ac_mid + 1`
6819 fi
6820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6821   done
6822 else
6823   echo "$as_me: failed program was:" >&5
6824 sed 's/^/| /' conftest.$ac_ext >&5
6825
6826 cat >conftest.$ac_ext <<_ACEOF
6827 /* confdefs.h.  */
6828 _ACEOF
6829 cat confdefs.h >>conftest.$ac_ext
6830 cat >>conftest.$ac_ext <<_ACEOF
6831 /* end confdefs.h.  */
6832 $ac_includes_default
6833 int
6834 main ()
6835 {
6836 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6837 test_array [0] = 0
6838
6839   ;
6840   return 0;
6841 }
6842 _ACEOF
6843 rm -f conftest.$ac_objext
6844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6845   (eval $ac_compile) 2>conftest.er1
6846   ac_status=$?
6847   grep -v '^ *+' conftest.er1 >conftest.err
6848   rm -f conftest.er1
6849   cat conftest.err >&5
6850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6851   (exit $ac_status); } &&
6852          { ac_try='test -z "$ac_c_werror_flag"
6853                          || test ! -s conftest.err'
6854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6855   (eval $ac_try) 2>&5
6856   ac_status=$?
6857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6858   (exit $ac_status); }; } &&
6859          { ac_try='test -s conftest.$ac_objext'
6860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6861   (eval $ac_try) 2>&5
6862   ac_status=$?
6863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6864   (exit $ac_status); }; }; then
6865   ac_hi=-1 ac_mid=-1
6866   while :; do
6867     cat >conftest.$ac_ext <<_ACEOF
6868 /* confdefs.h.  */
6869 _ACEOF
6870 cat confdefs.h >>conftest.$ac_ext
6871 cat >>conftest.$ac_ext <<_ACEOF
6872 /* end confdefs.h.  */
6873 $ac_includes_default
6874 int
6875 main ()
6876 {
6877 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6878 test_array [0] = 0
6879
6880   ;
6881   return 0;
6882 }
6883 _ACEOF
6884 rm -f conftest.$ac_objext
6885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6886   (eval $ac_compile) 2>conftest.er1
6887   ac_status=$?
6888   grep -v '^ *+' conftest.er1 >conftest.err
6889   rm -f conftest.er1
6890   cat conftest.err >&5
6891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6892   (exit $ac_status); } &&
6893          { ac_try='test -z "$ac_c_werror_flag"
6894                          || test ! -s conftest.err'
6895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6896   (eval $ac_try) 2>&5
6897   ac_status=$?
6898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6899   (exit $ac_status); }; } &&
6900          { ac_try='test -s conftest.$ac_objext'
6901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6902   (eval $ac_try) 2>&5
6903   ac_status=$?
6904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6905   (exit $ac_status); }; }; then
6906   ac_lo=$ac_mid; break
6907 else
6908   echo "$as_me: failed program was:" >&5
6909 sed 's/^/| /' conftest.$ac_ext >&5
6910
6911 ac_hi=`expr '(' $ac_mid ')' - 1`
6912                        if test $ac_mid -le $ac_hi; then
6913                          ac_lo= ac_hi=
6914                          break
6915                        fi
6916                        ac_mid=`expr 2 '*' $ac_mid`
6917 fi
6918 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6919   done
6920 else
6921   echo "$as_me: failed program was:" >&5
6922 sed 's/^/| /' conftest.$ac_ext >&5
6923
6924 ac_lo= ac_hi=
6925 fi
6926 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6927 fi
6928 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6929 # Binary search between lo and hi bounds.
6930 while test "x$ac_lo" != "x$ac_hi"; do
6931   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6932   cat >conftest.$ac_ext <<_ACEOF
6933 /* confdefs.h.  */
6934 _ACEOF
6935 cat confdefs.h >>conftest.$ac_ext
6936 cat >>conftest.$ac_ext <<_ACEOF
6937 /* end confdefs.h.  */
6938 $ac_includes_default
6939 int
6940 main ()
6941 {
6942 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6943 test_array [0] = 0
6944
6945   ;
6946   return 0;
6947 }
6948 _ACEOF
6949 rm -f conftest.$ac_objext
6950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6951   (eval $ac_compile) 2>conftest.er1
6952   ac_status=$?
6953   grep -v '^ *+' conftest.er1 >conftest.err
6954   rm -f conftest.er1
6955   cat conftest.err >&5
6956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6957   (exit $ac_status); } &&
6958          { ac_try='test -z "$ac_c_werror_flag"
6959                          || test ! -s conftest.err'
6960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6961   (eval $ac_try) 2>&5
6962   ac_status=$?
6963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6964   (exit $ac_status); }; } &&
6965          { ac_try='test -s conftest.$ac_objext'
6966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6967   (eval $ac_try) 2>&5
6968   ac_status=$?
6969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6970   (exit $ac_status); }; }; then
6971   ac_hi=$ac_mid
6972 else
6973   echo "$as_me: failed program was:" >&5
6974 sed 's/^/| /' conftest.$ac_ext >&5
6975
6976 ac_lo=`expr '(' $ac_mid ')' + 1`
6977 fi
6978 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6979 done
6980 case $ac_lo in
6981 ?*) ac_cv_sizeof_long=$ac_lo;;
6982 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6983 See \`config.log' for more details." >&5
6984 echo "$as_me: error: cannot compute sizeof (long), 77
6985 See \`config.log' for more details." >&2;}
6986    { (exit 1); exit 1; }; } ;;
6987 esac
6988 else
6989   if test "$cross_compiling" = yes; then
6990   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6991 See \`config.log' for more details." >&5
6992 echo "$as_me: error: cannot run test program while cross compiling
6993 See \`config.log' for more details." >&2;}
6994    { (exit 1); exit 1; }; }
6995 else
6996   cat >conftest.$ac_ext <<_ACEOF
6997 /* confdefs.h.  */
6998 _ACEOF
6999 cat confdefs.h >>conftest.$ac_ext
7000 cat >>conftest.$ac_ext <<_ACEOF
7001 /* end confdefs.h.  */
7002 $ac_includes_default
7003 long longval () { return (long) (sizeof (long)); }
7004 unsigned long ulongval () { return (long) (sizeof (long)); }
7005 #include <stdio.h>
7006 #include <stdlib.h>
7007 int
7008 main ()
7009 {
7010
7011   FILE *f = fopen ("conftest.val", "w");
7012   if (! f)
7013     exit (1);
7014   if (((long) (sizeof (long))) < 0)
7015     {
7016       long i = longval ();
7017       if (i != ((long) (sizeof (long))))
7018         exit (1);
7019       fprintf (f, "%ld\n", i);
7020     }
7021   else
7022     {
7023       unsigned long i = ulongval ();
7024       if (i != ((long) (sizeof (long))))
7025         exit (1);
7026       fprintf (f, "%lu\n", i);
7027     }
7028   exit (ferror (f) || fclose (f) != 0);
7029
7030   ;
7031   return 0;
7032 }
7033 _ACEOF
7034 rm -f conftest$ac_exeext
7035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7036   (eval $ac_link) 2>&5
7037   ac_status=$?
7038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7039   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7041   (eval $ac_try) 2>&5
7042   ac_status=$?
7043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7044   (exit $ac_status); }; }; then
7045   ac_cv_sizeof_long=`cat conftest.val`
7046 else
7047   echo "$as_me: program exited with status $ac_status" >&5
7048 echo "$as_me: failed program was:" >&5
7049 sed 's/^/| /' conftest.$ac_ext >&5
7050
7051 ( exit $ac_status )
7052 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7053 See \`config.log' for more details." >&5
7054 echo "$as_me: error: cannot compute sizeof (long), 77
7055 See \`config.log' for more details." >&2;}
7056    { (exit 1); exit 1; }; }
7057 fi
7058 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7059 fi
7060 fi
7061 rm -f conftest.val
7062 else
7063   ac_cv_sizeof_long=0
7064 fi
7065 fi
7066 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7067 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7068 cat >>confdefs.h <<_ACEOF
7069 #define SIZEOF_LONG $ac_cv_sizeof_long
7070 _ACEOF
7071
7072  ;;
7073 esac
7074
7075 if test $acx_cv_header_stdint = stddef.h; then
7076   # Lacking a good header?  Test size of everything and deduce all types.
7077   echo "$as_me:$LINENO: checking for int" >&5
7078 echo $ECHO_N "checking for int... $ECHO_C" >&6
7079 if test "${ac_cv_type_int+set}" = set; then
7080   echo $ECHO_N "(cached) $ECHO_C" >&6
7081 else
7082   cat >conftest.$ac_ext <<_ACEOF
7083 /* confdefs.h.  */
7084 _ACEOF
7085 cat confdefs.h >>conftest.$ac_ext
7086 cat >>conftest.$ac_ext <<_ACEOF
7087 /* end confdefs.h.  */
7088 $ac_includes_default
7089 int
7090 main ()
7091 {
7092 if ((int *) 0)
7093   return 0;
7094 if (sizeof (int))
7095   return 0;
7096   ;
7097   return 0;
7098 }
7099 _ACEOF
7100 rm -f conftest.$ac_objext
7101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7102   (eval $ac_compile) 2>conftest.er1
7103   ac_status=$?
7104   grep -v '^ *+' conftest.er1 >conftest.err
7105   rm -f conftest.er1
7106   cat conftest.err >&5
7107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7108   (exit $ac_status); } &&
7109          { ac_try='test -z "$ac_c_werror_flag"
7110                          || test ! -s conftest.err'
7111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7112   (eval $ac_try) 2>&5
7113   ac_status=$?
7114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7115   (exit $ac_status); }; } &&
7116          { ac_try='test -s conftest.$ac_objext'
7117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7118   (eval $ac_try) 2>&5
7119   ac_status=$?
7120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7121   (exit $ac_status); }; }; then
7122   ac_cv_type_int=yes
7123 else
7124   echo "$as_me: failed program was:" >&5
7125 sed 's/^/| /' conftest.$ac_ext >&5
7126
7127 ac_cv_type_int=no
7128 fi
7129 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7130 fi
7131 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
7132 echo "${ECHO_T}$ac_cv_type_int" >&6
7133
7134 echo "$as_me:$LINENO: checking size of int" >&5
7135 echo $ECHO_N "checking size of int... $ECHO_C" >&6
7136 if test "${ac_cv_sizeof_int+set}" = set; then
7137   echo $ECHO_N "(cached) $ECHO_C" >&6
7138 else
7139   if test "$ac_cv_type_int" = yes; then
7140   # The cast to unsigned long works around a bug in the HP C Compiler
7141   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7142   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7143   # This bug is HP SR number 8606223364.
7144   if test "$cross_compiling" = yes; then
7145   # Depending upon the size, compute the lo and hi bounds.
7146 cat >conftest.$ac_ext <<_ACEOF
7147 /* confdefs.h.  */
7148 _ACEOF
7149 cat confdefs.h >>conftest.$ac_ext
7150 cat >>conftest.$ac_ext <<_ACEOF
7151 /* end confdefs.h.  */
7152 $ac_includes_default
7153 int
7154 main ()
7155 {
7156 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
7157 test_array [0] = 0
7158
7159   ;
7160   return 0;
7161 }
7162 _ACEOF
7163 rm -f conftest.$ac_objext
7164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7165   (eval $ac_compile) 2>conftest.er1
7166   ac_status=$?
7167   grep -v '^ *+' conftest.er1 >conftest.err
7168   rm -f conftest.er1
7169   cat conftest.err >&5
7170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7171   (exit $ac_status); } &&
7172          { ac_try='test -z "$ac_c_werror_flag"
7173                          || test ! -s conftest.err'
7174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7175   (eval $ac_try) 2>&5
7176   ac_status=$?
7177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7178   (exit $ac_status); }; } &&
7179          { ac_try='test -s conftest.$ac_objext'
7180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7181   (eval $ac_try) 2>&5
7182   ac_status=$?
7183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7184   (exit $ac_status); }; }; then
7185   ac_lo=0 ac_mid=0
7186   while :; do
7187     cat >conftest.$ac_ext <<_ACEOF
7188 /* confdefs.h.  */
7189 _ACEOF
7190 cat confdefs.h >>conftest.$ac_ext
7191 cat >>conftest.$ac_ext <<_ACEOF
7192 /* end confdefs.h.  */
7193 $ac_includes_default
7194 int
7195 main ()
7196 {
7197 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
7198 test_array [0] = 0
7199
7200   ;
7201   return 0;
7202 }
7203 _ACEOF
7204 rm -f conftest.$ac_objext
7205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7206   (eval $ac_compile) 2>conftest.er1
7207   ac_status=$?
7208   grep -v '^ *+' conftest.er1 >conftest.err
7209   rm -f conftest.er1
7210   cat conftest.err >&5
7211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7212   (exit $ac_status); } &&
7213          { ac_try='test -z "$ac_c_werror_flag"
7214                          || test ! -s conftest.err'
7215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7216   (eval $ac_try) 2>&5
7217   ac_status=$?
7218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7219   (exit $ac_status); }; } &&
7220          { ac_try='test -s conftest.$ac_objext'
7221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7222   (eval $ac_try) 2>&5
7223   ac_status=$?
7224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7225   (exit $ac_status); }; }; then
7226   ac_hi=$ac_mid; break
7227 else
7228   echo "$as_me: failed program was:" >&5
7229 sed 's/^/| /' conftest.$ac_ext >&5
7230
7231 ac_lo=`expr $ac_mid + 1`
7232                     if test $ac_lo -le $ac_mid; then
7233                       ac_lo= ac_hi=
7234                       break
7235                     fi
7236                     ac_mid=`expr 2 '*' $ac_mid + 1`
7237 fi
7238 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7239   done
7240 else
7241   echo "$as_me: failed program was:" >&5
7242 sed 's/^/| /' conftest.$ac_ext >&5
7243
7244 cat >conftest.$ac_ext <<_ACEOF
7245 /* confdefs.h.  */
7246 _ACEOF
7247 cat confdefs.h >>conftest.$ac_ext
7248 cat >>conftest.$ac_ext <<_ACEOF
7249 /* end confdefs.h.  */
7250 $ac_includes_default
7251 int
7252 main ()
7253 {
7254 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
7255 test_array [0] = 0
7256
7257   ;
7258   return 0;
7259 }
7260 _ACEOF
7261 rm -f conftest.$ac_objext
7262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7263   (eval $ac_compile) 2>conftest.er1
7264   ac_status=$?
7265   grep -v '^ *+' conftest.er1 >conftest.err
7266   rm -f conftest.er1
7267   cat conftest.err >&5
7268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7269   (exit $ac_status); } &&
7270          { ac_try='test -z "$ac_c_werror_flag"
7271                          || test ! -s conftest.err'
7272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7273   (eval $ac_try) 2>&5
7274   ac_status=$?
7275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7276   (exit $ac_status); }; } &&
7277          { ac_try='test -s conftest.$ac_objext'
7278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7279   (eval $ac_try) 2>&5
7280   ac_status=$?
7281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7282   (exit $ac_status); }; }; then
7283   ac_hi=-1 ac_mid=-1
7284   while :; do
7285     cat >conftest.$ac_ext <<_ACEOF
7286 /* confdefs.h.  */
7287 _ACEOF
7288 cat confdefs.h >>conftest.$ac_ext
7289 cat >>conftest.$ac_ext <<_ACEOF
7290 /* end confdefs.h.  */
7291 $ac_includes_default
7292 int
7293 main ()
7294 {
7295 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
7296 test_array [0] = 0
7297
7298   ;
7299   return 0;
7300 }
7301 _ACEOF
7302 rm -f conftest.$ac_objext
7303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7304   (eval $ac_compile) 2>conftest.er1
7305   ac_status=$?
7306   grep -v '^ *+' conftest.er1 >conftest.err
7307   rm -f conftest.er1
7308   cat conftest.err >&5
7309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7310   (exit $ac_status); } &&
7311          { ac_try='test -z "$ac_c_werror_flag"
7312                          || test ! -s conftest.err'
7313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7314   (eval $ac_try) 2>&5
7315   ac_status=$?
7316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7317   (exit $ac_status); }; } &&
7318          { ac_try='test -s conftest.$ac_objext'
7319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7320   (eval $ac_try) 2>&5
7321   ac_status=$?
7322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7323   (exit $ac_status); }; }; then
7324   ac_lo=$ac_mid; break
7325 else
7326   echo "$as_me: failed program was:" >&5
7327 sed 's/^/| /' conftest.$ac_ext >&5
7328
7329 ac_hi=`expr '(' $ac_mid ')' - 1`
7330                        if test $ac_mid -le $ac_hi; then
7331                          ac_lo= ac_hi=
7332                          break
7333                        fi
7334                        ac_mid=`expr 2 '*' $ac_mid`
7335 fi
7336 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7337   done
7338 else
7339   echo "$as_me: failed program was:" >&5
7340 sed 's/^/| /' conftest.$ac_ext >&5
7341
7342 ac_lo= ac_hi=
7343 fi
7344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7345 fi
7346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7347 # Binary search between lo and hi bounds.
7348 while test "x$ac_lo" != "x$ac_hi"; do
7349   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7350   cat >conftest.$ac_ext <<_ACEOF
7351 /* confdefs.h.  */
7352 _ACEOF
7353 cat confdefs.h >>conftest.$ac_ext
7354 cat >>conftest.$ac_ext <<_ACEOF
7355 /* end confdefs.h.  */
7356 $ac_includes_default
7357 int
7358 main ()
7359 {
7360 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
7361 test_array [0] = 0
7362
7363   ;
7364   return 0;
7365 }
7366 _ACEOF
7367 rm -f conftest.$ac_objext
7368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7369   (eval $ac_compile) 2>conftest.er1
7370   ac_status=$?
7371   grep -v '^ *+' conftest.er1 >conftest.err
7372   rm -f conftest.er1
7373   cat conftest.err >&5
7374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7375   (exit $ac_status); } &&
7376          { ac_try='test -z "$ac_c_werror_flag"
7377                          || test ! -s conftest.err'
7378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7379   (eval $ac_try) 2>&5
7380   ac_status=$?
7381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7382   (exit $ac_status); }; } &&
7383          { ac_try='test -s conftest.$ac_objext'
7384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7385   (eval $ac_try) 2>&5
7386   ac_status=$?
7387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7388   (exit $ac_status); }; }; then
7389   ac_hi=$ac_mid
7390 else
7391   echo "$as_me: failed program was:" >&5
7392 sed 's/^/| /' conftest.$ac_ext >&5
7393
7394 ac_lo=`expr '(' $ac_mid ')' + 1`
7395 fi
7396 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7397 done
7398 case $ac_lo in
7399 ?*) ac_cv_sizeof_int=$ac_lo;;
7400 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
7401 See \`config.log' for more details." >&5
7402 echo "$as_me: error: cannot compute sizeof (int), 77
7403 See \`config.log' for more details." >&2;}
7404    { (exit 1); exit 1; }; } ;;
7405 esac
7406 else
7407   if test "$cross_compiling" = yes; then
7408   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7409 See \`config.log' for more details." >&5
7410 echo "$as_me: error: cannot run test program while cross compiling
7411 See \`config.log' for more details." >&2;}
7412    { (exit 1); exit 1; }; }
7413 else
7414   cat >conftest.$ac_ext <<_ACEOF
7415 /* confdefs.h.  */
7416 _ACEOF
7417 cat confdefs.h >>conftest.$ac_ext
7418 cat >>conftest.$ac_ext <<_ACEOF
7419 /* end confdefs.h.  */
7420 $ac_includes_default
7421 long longval () { return (long) (sizeof (int)); }
7422 unsigned long ulongval () { return (long) (sizeof (int)); }
7423 #include <stdio.h>
7424 #include <stdlib.h>
7425 int
7426 main ()
7427 {
7428
7429   FILE *f = fopen ("conftest.val", "w");
7430   if (! f)
7431     exit (1);
7432   if (((long) (sizeof (int))) < 0)
7433     {
7434       long i = longval ();
7435       if (i != ((long) (sizeof (int))))
7436         exit (1);
7437       fprintf (f, "%ld\n", i);
7438     }
7439   else
7440     {
7441       unsigned long i = ulongval ();
7442       if (i != ((long) (sizeof (int))))
7443         exit (1);
7444       fprintf (f, "%lu\n", i);
7445     }
7446   exit (ferror (f) || fclose (f) != 0);
7447
7448   ;
7449   return 0;
7450 }
7451 _ACEOF
7452 rm -f conftest$ac_exeext
7453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7454   (eval $ac_link) 2>&5
7455   ac_status=$?
7456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7457   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7459   (eval $ac_try) 2>&5
7460   ac_status=$?
7461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7462   (exit $ac_status); }; }; then
7463   ac_cv_sizeof_int=`cat conftest.val`
7464 else
7465   echo "$as_me: program exited with status $ac_status" >&5
7466 echo "$as_me: failed program was:" >&5
7467 sed 's/^/| /' conftest.$ac_ext >&5
7468
7469 ( exit $ac_status )
7470 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
7471 See \`config.log' for more details." >&5
7472 echo "$as_me: error: cannot compute sizeof (int), 77
7473 See \`config.log' for more details." >&2;}
7474    { (exit 1); exit 1; }; }
7475 fi
7476 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7477 fi
7478 fi
7479 rm -f conftest.val
7480 else
7481   ac_cv_sizeof_int=0
7482 fi
7483 fi
7484 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
7485 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
7486 cat >>confdefs.h <<_ACEOF
7487 #define SIZEOF_INT $ac_cv_sizeof_int
7488 _ACEOF
7489
7490
7491   echo "$as_me:$LINENO: checking for short" >&5
7492 echo $ECHO_N "checking for short... $ECHO_C" >&6
7493 if test "${ac_cv_type_short+set}" = set; then
7494   echo $ECHO_N "(cached) $ECHO_C" >&6
7495 else
7496   cat >conftest.$ac_ext <<_ACEOF
7497 /* confdefs.h.  */
7498 _ACEOF
7499 cat confdefs.h >>conftest.$ac_ext
7500 cat >>conftest.$ac_ext <<_ACEOF
7501 /* end confdefs.h.  */
7502 $ac_includes_default
7503 int
7504 main ()
7505 {
7506 if ((short *) 0)
7507   return 0;
7508 if (sizeof (short))
7509   return 0;
7510   ;
7511   return 0;
7512 }
7513 _ACEOF
7514 rm -f conftest.$ac_objext
7515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7516   (eval $ac_compile) 2>conftest.er1
7517   ac_status=$?
7518   grep -v '^ *+' conftest.er1 >conftest.err
7519   rm -f conftest.er1
7520   cat conftest.err >&5
7521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7522   (exit $ac_status); } &&
7523          { ac_try='test -z "$ac_c_werror_flag"
7524                          || test ! -s conftest.err'
7525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7526   (eval $ac_try) 2>&5
7527   ac_status=$?
7528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7529   (exit $ac_status); }; } &&
7530          { ac_try='test -s conftest.$ac_objext'
7531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7532   (eval $ac_try) 2>&5
7533   ac_status=$?
7534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7535   (exit $ac_status); }; }; then
7536   ac_cv_type_short=yes
7537 else
7538   echo "$as_me: failed program was:" >&5
7539 sed 's/^/| /' conftest.$ac_ext >&5
7540
7541 ac_cv_type_short=no
7542 fi
7543 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7544 fi
7545 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
7546 echo "${ECHO_T}$ac_cv_type_short" >&6
7547
7548 echo "$as_me:$LINENO: checking size of short" >&5
7549 echo $ECHO_N "checking size of short... $ECHO_C" >&6
7550 if test "${ac_cv_sizeof_short+set}" = set; then
7551   echo $ECHO_N "(cached) $ECHO_C" >&6
7552 else
7553   if test "$ac_cv_type_short" = yes; then
7554   # The cast to unsigned long works around a bug in the HP C Compiler
7555   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7556   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7557   # This bug is HP SR number 8606223364.
7558   if test "$cross_compiling" = yes; then
7559   # Depending upon the size, compute the lo and hi bounds.
7560 cat >conftest.$ac_ext <<_ACEOF
7561 /* confdefs.h.  */
7562 _ACEOF
7563 cat confdefs.h >>conftest.$ac_ext
7564 cat >>conftest.$ac_ext <<_ACEOF
7565 /* end confdefs.h.  */
7566 $ac_includes_default
7567 int
7568 main ()
7569 {
7570 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
7571 test_array [0] = 0
7572
7573   ;
7574   return 0;
7575 }
7576 _ACEOF
7577 rm -f conftest.$ac_objext
7578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7579   (eval $ac_compile) 2>conftest.er1
7580   ac_status=$?
7581   grep -v '^ *+' conftest.er1 >conftest.err
7582   rm -f conftest.er1
7583   cat conftest.err >&5
7584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7585   (exit $ac_status); } &&
7586          { ac_try='test -z "$ac_c_werror_flag"
7587                          || test ! -s conftest.err'
7588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7589   (eval $ac_try) 2>&5
7590   ac_status=$?
7591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7592   (exit $ac_status); }; } &&
7593          { ac_try='test -s conftest.$ac_objext'
7594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7595   (eval $ac_try) 2>&5
7596   ac_status=$?
7597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7598   (exit $ac_status); }; }; then
7599   ac_lo=0 ac_mid=0
7600   while :; do
7601     cat >conftest.$ac_ext <<_ACEOF
7602 /* confdefs.h.  */
7603 _ACEOF
7604 cat confdefs.h >>conftest.$ac_ext
7605 cat >>conftest.$ac_ext <<_ACEOF
7606 /* end confdefs.h.  */
7607 $ac_includes_default
7608 int
7609 main ()
7610 {
7611 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7612 test_array [0] = 0
7613
7614   ;
7615   return 0;
7616 }
7617 _ACEOF
7618 rm -f conftest.$ac_objext
7619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7620   (eval $ac_compile) 2>conftest.er1
7621   ac_status=$?
7622   grep -v '^ *+' conftest.er1 >conftest.err
7623   rm -f conftest.er1
7624   cat conftest.err >&5
7625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7626   (exit $ac_status); } &&
7627          { ac_try='test -z "$ac_c_werror_flag"
7628                          || test ! -s conftest.err'
7629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7630   (eval $ac_try) 2>&5
7631   ac_status=$?
7632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7633   (exit $ac_status); }; } &&
7634          { ac_try='test -s conftest.$ac_objext'
7635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7636   (eval $ac_try) 2>&5
7637   ac_status=$?
7638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7639   (exit $ac_status); }; }; then
7640   ac_hi=$ac_mid; break
7641 else
7642   echo "$as_me: failed program was:" >&5
7643 sed 's/^/| /' conftest.$ac_ext >&5
7644
7645 ac_lo=`expr $ac_mid + 1`
7646                     if test $ac_lo -le $ac_mid; then
7647                       ac_lo= ac_hi=
7648                       break
7649                     fi
7650                     ac_mid=`expr 2 '*' $ac_mid + 1`
7651 fi
7652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7653   done
7654 else
7655   echo "$as_me: failed program was:" >&5
7656 sed 's/^/| /' conftest.$ac_ext >&5
7657
7658 cat >conftest.$ac_ext <<_ACEOF
7659 /* confdefs.h.  */
7660 _ACEOF
7661 cat confdefs.h >>conftest.$ac_ext
7662 cat >>conftest.$ac_ext <<_ACEOF
7663 /* end confdefs.h.  */
7664 $ac_includes_default
7665 int
7666 main ()
7667 {
7668 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
7669 test_array [0] = 0
7670
7671   ;
7672   return 0;
7673 }
7674 _ACEOF
7675 rm -f conftest.$ac_objext
7676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7677   (eval $ac_compile) 2>conftest.er1
7678   ac_status=$?
7679   grep -v '^ *+' conftest.er1 >conftest.err
7680   rm -f conftest.er1
7681   cat conftest.err >&5
7682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7683   (exit $ac_status); } &&
7684          { ac_try='test -z "$ac_c_werror_flag"
7685                          || test ! -s conftest.err'
7686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7687   (eval $ac_try) 2>&5
7688   ac_status=$?
7689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7690   (exit $ac_status); }; } &&
7691          { ac_try='test -s conftest.$ac_objext'
7692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7693   (eval $ac_try) 2>&5
7694   ac_status=$?
7695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7696   (exit $ac_status); }; }; then
7697   ac_hi=-1 ac_mid=-1
7698   while :; do
7699     cat >conftest.$ac_ext <<_ACEOF
7700 /* confdefs.h.  */
7701 _ACEOF
7702 cat confdefs.h >>conftest.$ac_ext
7703 cat >>conftest.$ac_ext <<_ACEOF
7704 /* end confdefs.h.  */
7705 $ac_includes_default
7706 int
7707 main ()
7708 {
7709 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
7710 test_array [0] = 0
7711
7712   ;
7713   return 0;
7714 }
7715 _ACEOF
7716 rm -f conftest.$ac_objext
7717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7718   (eval $ac_compile) 2>conftest.er1
7719   ac_status=$?
7720   grep -v '^ *+' conftest.er1 >conftest.err
7721   rm -f conftest.er1
7722   cat conftest.err >&5
7723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7724   (exit $ac_status); } &&
7725          { ac_try='test -z "$ac_c_werror_flag"
7726                          || test ! -s conftest.err'
7727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7728   (eval $ac_try) 2>&5
7729   ac_status=$?
7730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7731   (exit $ac_status); }; } &&
7732          { ac_try='test -s conftest.$ac_objext'
7733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7734   (eval $ac_try) 2>&5
7735   ac_status=$?
7736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7737   (exit $ac_status); }; }; then
7738   ac_lo=$ac_mid; break
7739 else
7740   echo "$as_me: failed program was:" >&5
7741 sed 's/^/| /' conftest.$ac_ext >&5
7742
7743 ac_hi=`expr '(' $ac_mid ')' - 1`
7744                        if test $ac_mid -le $ac_hi; then
7745                          ac_lo= ac_hi=
7746                          break
7747                        fi
7748                        ac_mid=`expr 2 '*' $ac_mid`
7749 fi
7750 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7751   done
7752 else
7753   echo "$as_me: failed program was:" >&5
7754 sed 's/^/| /' conftest.$ac_ext >&5
7755
7756 ac_lo= ac_hi=
7757 fi
7758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7759 fi
7760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7761 # Binary search between lo and hi bounds.
7762 while test "x$ac_lo" != "x$ac_hi"; do
7763   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7764   cat >conftest.$ac_ext <<_ACEOF
7765 /* confdefs.h.  */
7766 _ACEOF
7767 cat confdefs.h >>conftest.$ac_ext
7768 cat >>conftest.$ac_ext <<_ACEOF
7769 /* end confdefs.h.  */
7770 $ac_includes_default
7771 int
7772 main ()
7773 {
7774 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7775 test_array [0] = 0
7776
7777   ;
7778   return 0;
7779 }
7780 _ACEOF
7781 rm -f conftest.$ac_objext
7782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7783   (eval $ac_compile) 2>conftest.er1
7784   ac_status=$?
7785   grep -v '^ *+' conftest.er1 >conftest.err
7786   rm -f conftest.er1
7787   cat conftest.err >&5
7788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7789   (exit $ac_status); } &&
7790          { ac_try='test -z "$ac_c_werror_flag"
7791                          || test ! -s conftest.err'
7792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7793   (eval $ac_try) 2>&5
7794   ac_status=$?
7795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7796   (exit $ac_status); }; } &&
7797          { ac_try='test -s conftest.$ac_objext'
7798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7799   (eval $ac_try) 2>&5
7800   ac_status=$?
7801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7802   (exit $ac_status); }; }; then
7803   ac_hi=$ac_mid
7804 else
7805   echo "$as_me: failed program was:" >&5
7806 sed 's/^/| /' conftest.$ac_ext >&5
7807
7808 ac_lo=`expr '(' $ac_mid ')' + 1`
7809 fi
7810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7811 done
7812 case $ac_lo in
7813 ?*) ac_cv_sizeof_short=$ac_lo;;
7814 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7815 See \`config.log' for more details." >&5
7816 echo "$as_me: error: cannot compute sizeof (short), 77
7817 See \`config.log' for more details." >&2;}
7818    { (exit 1); exit 1; }; } ;;
7819 esac
7820 else
7821   if test "$cross_compiling" = yes; then
7822   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7823 See \`config.log' for more details." >&5
7824 echo "$as_me: error: cannot run test program while cross compiling
7825 See \`config.log' for more details." >&2;}
7826    { (exit 1); exit 1; }; }
7827 else
7828   cat >conftest.$ac_ext <<_ACEOF
7829 /* confdefs.h.  */
7830 _ACEOF
7831 cat confdefs.h >>conftest.$ac_ext
7832 cat >>conftest.$ac_ext <<_ACEOF
7833 /* end confdefs.h.  */
7834 $ac_includes_default
7835 long longval () { return (long) (sizeof (short)); }
7836 unsigned long ulongval () { return (long) (sizeof (short)); }
7837 #include <stdio.h>
7838 #include <stdlib.h>
7839 int
7840 main ()
7841 {
7842
7843   FILE *f = fopen ("conftest.val", "w");
7844   if (! f)
7845     exit (1);
7846   if (((long) (sizeof (short))) < 0)
7847     {
7848       long i = longval ();
7849       if (i != ((long) (sizeof (short))))
7850         exit (1);
7851       fprintf (f, "%ld\n", i);
7852     }
7853   else
7854     {
7855       unsigned long i = ulongval ();
7856       if (i != ((long) (sizeof (short))))
7857         exit (1);
7858       fprintf (f, "%lu\n", i);
7859     }
7860   exit (ferror (f) || fclose (f) != 0);
7861
7862   ;
7863   return 0;
7864 }
7865 _ACEOF
7866 rm -f conftest$ac_exeext
7867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7868   (eval $ac_link) 2>&5
7869   ac_status=$?
7870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7871   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7873   (eval $ac_try) 2>&5
7874   ac_status=$?
7875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7876   (exit $ac_status); }; }; then
7877   ac_cv_sizeof_short=`cat conftest.val`
7878 else
7879   echo "$as_me: program exited with status $ac_status" >&5
7880 echo "$as_me: failed program was:" >&5
7881 sed 's/^/| /' conftest.$ac_ext >&5
7882
7883 ( exit $ac_status )
7884 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7885 See \`config.log' for more details." >&5
7886 echo "$as_me: error: cannot compute sizeof (short), 77
7887 See \`config.log' for more details." >&2;}
7888    { (exit 1); exit 1; }; }
7889 fi
7890 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7891 fi
7892 fi
7893 rm -f conftest.val
7894 else
7895   ac_cv_sizeof_short=0
7896 fi
7897 fi
7898 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
7899 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
7900 cat >>confdefs.h <<_ACEOF
7901 #define SIZEOF_SHORT $ac_cv_sizeof_short
7902 _ACEOF
7903
7904
7905   echo "$as_me:$LINENO: checking for char" >&5
7906 echo $ECHO_N "checking for char... $ECHO_C" >&6
7907 if test "${ac_cv_type_char+set}" = set; then
7908   echo $ECHO_N "(cached) $ECHO_C" >&6
7909 else
7910   cat >conftest.$ac_ext <<_ACEOF
7911 /* confdefs.h.  */
7912 _ACEOF
7913 cat confdefs.h >>conftest.$ac_ext
7914 cat >>conftest.$ac_ext <<_ACEOF
7915 /* end confdefs.h.  */
7916 $ac_includes_default
7917 int
7918 main ()
7919 {
7920 if ((char *) 0)
7921   return 0;
7922 if (sizeof (char))
7923   return 0;
7924   ;
7925   return 0;
7926 }
7927 _ACEOF
7928 rm -f conftest.$ac_objext
7929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7930   (eval $ac_compile) 2>conftest.er1
7931   ac_status=$?
7932   grep -v '^ *+' conftest.er1 >conftest.err
7933   rm -f conftest.er1
7934   cat conftest.err >&5
7935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7936   (exit $ac_status); } &&
7937          { ac_try='test -z "$ac_c_werror_flag"
7938                          || test ! -s conftest.err'
7939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7940   (eval $ac_try) 2>&5
7941   ac_status=$?
7942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7943   (exit $ac_status); }; } &&
7944          { ac_try='test -s conftest.$ac_objext'
7945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7946   (eval $ac_try) 2>&5
7947   ac_status=$?
7948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7949   (exit $ac_status); }; }; then
7950   ac_cv_type_char=yes
7951 else
7952   echo "$as_me: failed program was:" >&5
7953 sed 's/^/| /' conftest.$ac_ext >&5
7954
7955 ac_cv_type_char=no
7956 fi
7957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7958 fi
7959 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
7960 echo "${ECHO_T}$ac_cv_type_char" >&6
7961
7962 echo "$as_me:$LINENO: checking size of char" >&5
7963 echo $ECHO_N "checking size of char... $ECHO_C" >&6
7964 if test "${ac_cv_sizeof_char+set}" = set; then
7965   echo $ECHO_N "(cached) $ECHO_C" >&6
7966 else
7967   if test "$ac_cv_type_char" = yes; then
7968   # The cast to unsigned long works around a bug in the HP C Compiler
7969   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7970   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7971   # This bug is HP SR number 8606223364.
7972   if test "$cross_compiling" = yes; then
7973   # Depending upon the size, compute the lo and hi bounds.
7974 cat >conftest.$ac_ext <<_ACEOF
7975 /* confdefs.h.  */
7976 _ACEOF
7977 cat confdefs.h >>conftest.$ac_ext
7978 cat >>conftest.$ac_ext <<_ACEOF
7979 /* end confdefs.h.  */
7980 $ac_includes_default
7981 int
7982 main ()
7983 {
7984 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
7985 test_array [0] = 0
7986
7987   ;
7988   return 0;
7989 }
7990 _ACEOF
7991 rm -f conftest.$ac_objext
7992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7993   (eval $ac_compile) 2>conftest.er1
7994   ac_status=$?
7995   grep -v '^ *+' conftest.er1 >conftest.err
7996   rm -f conftest.er1
7997   cat conftest.err >&5
7998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7999   (exit $ac_status); } &&
8000          { ac_try='test -z "$ac_c_werror_flag"
8001                          || test ! -s conftest.err'
8002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8003   (eval $ac_try) 2>&5
8004   ac_status=$?
8005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8006   (exit $ac_status); }; } &&
8007          { ac_try='test -s conftest.$ac_objext'
8008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8009   (eval $ac_try) 2>&5
8010   ac_status=$?
8011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8012   (exit $ac_status); }; }; then
8013   ac_lo=0 ac_mid=0
8014   while :; do
8015     cat >conftest.$ac_ext <<_ACEOF
8016 /* confdefs.h.  */
8017 _ACEOF
8018 cat confdefs.h >>conftest.$ac_ext
8019 cat >>conftest.$ac_ext <<_ACEOF
8020 /* end confdefs.h.  */
8021 $ac_includes_default
8022 int
8023 main ()
8024 {
8025 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
8026 test_array [0] = 0
8027
8028   ;
8029   return 0;
8030 }
8031 _ACEOF
8032 rm -f conftest.$ac_objext
8033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8034   (eval $ac_compile) 2>conftest.er1
8035   ac_status=$?
8036   grep -v '^ *+' conftest.er1 >conftest.err
8037   rm -f conftest.er1
8038   cat conftest.err >&5
8039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8040   (exit $ac_status); } &&
8041          { ac_try='test -z "$ac_c_werror_flag"
8042                          || test ! -s conftest.err'
8043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8044   (eval $ac_try) 2>&5
8045   ac_status=$?
8046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8047   (exit $ac_status); }; } &&
8048          { ac_try='test -s conftest.$ac_objext'
8049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8050   (eval $ac_try) 2>&5
8051   ac_status=$?
8052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8053   (exit $ac_status); }; }; then
8054   ac_hi=$ac_mid; break
8055 else
8056   echo "$as_me: failed program was:" >&5
8057 sed 's/^/| /' conftest.$ac_ext >&5
8058
8059 ac_lo=`expr $ac_mid + 1`
8060                     if test $ac_lo -le $ac_mid; then
8061                       ac_lo= ac_hi=
8062                       break
8063                     fi
8064                     ac_mid=`expr 2 '*' $ac_mid + 1`
8065 fi
8066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8067   done
8068 else
8069   echo "$as_me: failed program was:" >&5
8070 sed 's/^/| /' conftest.$ac_ext >&5
8071
8072 cat >conftest.$ac_ext <<_ACEOF
8073 /* confdefs.h.  */
8074 _ACEOF
8075 cat confdefs.h >>conftest.$ac_ext
8076 cat >>conftest.$ac_ext <<_ACEOF
8077 /* end confdefs.h.  */
8078 $ac_includes_default
8079 int
8080 main ()
8081 {
8082 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
8083 test_array [0] = 0
8084
8085   ;
8086   return 0;
8087 }
8088 _ACEOF
8089 rm -f conftest.$ac_objext
8090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8091   (eval $ac_compile) 2>conftest.er1
8092   ac_status=$?
8093   grep -v '^ *+' conftest.er1 >conftest.err
8094   rm -f conftest.er1
8095   cat conftest.err >&5
8096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8097   (exit $ac_status); } &&
8098          { ac_try='test -z "$ac_c_werror_flag"
8099                          || test ! -s conftest.err'
8100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8101   (eval $ac_try) 2>&5
8102   ac_status=$?
8103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8104   (exit $ac_status); }; } &&
8105          { ac_try='test -s conftest.$ac_objext'
8106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8107   (eval $ac_try) 2>&5
8108   ac_status=$?
8109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8110   (exit $ac_status); }; }; then
8111   ac_hi=-1 ac_mid=-1
8112   while :; do
8113     cat >conftest.$ac_ext <<_ACEOF
8114 /* confdefs.h.  */
8115 _ACEOF
8116 cat confdefs.h >>conftest.$ac_ext
8117 cat >>conftest.$ac_ext <<_ACEOF
8118 /* end confdefs.h.  */
8119 $ac_includes_default
8120 int
8121 main ()
8122 {
8123 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
8124 test_array [0] = 0
8125
8126   ;
8127   return 0;
8128 }
8129 _ACEOF
8130 rm -f conftest.$ac_objext
8131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8132   (eval $ac_compile) 2>conftest.er1
8133   ac_status=$?
8134   grep -v '^ *+' conftest.er1 >conftest.err
8135   rm -f conftest.er1
8136   cat conftest.err >&5
8137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138   (exit $ac_status); } &&
8139          { ac_try='test -z "$ac_c_werror_flag"
8140                          || test ! -s conftest.err'
8141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8142   (eval $ac_try) 2>&5
8143   ac_status=$?
8144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145   (exit $ac_status); }; } &&
8146          { ac_try='test -s conftest.$ac_objext'
8147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8148   (eval $ac_try) 2>&5
8149   ac_status=$?
8150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151   (exit $ac_status); }; }; then
8152   ac_lo=$ac_mid; break
8153 else
8154   echo "$as_me: failed program was:" >&5
8155 sed 's/^/| /' conftest.$ac_ext >&5
8156
8157 ac_hi=`expr '(' $ac_mid ')' - 1`
8158                        if test $ac_mid -le $ac_hi; then
8159                          ac_lo= ac_hi=
8160                          break
8161                        fi
8162                        ac_mid=`expr 2 '*' $ac_mid`
8163 fi
8164 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8165   done
8166 else
8167   echo "$as_me: failed program was:" >&5
8168 sed 's/^/| /' conftest.$ac_ext >&5
8169
8170 ac_lo= ac_hi=
8171 fi
8172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8173 fi
8174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8175 # Binary search between lo and hi bounds.
8176 while test "x$ac_lo" != "x$ac_hi"; do
8177   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8178   cat >conftest.$ac_ext <<_ACEOF
8179 /* confdefs.h.  */
8180 _ACEOF
8181 cat confdefs.h >>conftest.$ac_ext
8182 cat >>conftest.$ac_ext <<_ACEOF
8183 /* end confdefs.h.  */
8184 $ac_includes_default
8185 int
8186 main ()
8187 {
8188 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
8189 test_array [0] = 0
8190
8191   ;
8192   return 0;
8193 }
8194 _ACEOF
8195 rm -f conftest.$ac_objext
8196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8197   (eval $ac_compile) 2>conftest.er1
8198   ac_status=$?
8199   grep -v '^ *+' conftest.er1 >conftest.err
8200   rm -f conftest.er1
8201   cat conftest.err >&5
8202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8203   (exit $ac_status); } &&
8204          { ac_try='test -z "$ac_c_werror_flag"
8205                          || test ! -s conftest.err'
8206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8207   (eval $ac_try) 2>&5
8208   ac_status=$?
8209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8210   (exit $ac_status); }; } &&
8211          { ac_try='test -s conftest.$ac_objext'
8212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8213   (eval $ac_try) 2>&5
8214   ac_status=$?
8215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8216   (exit $ac_status); }; }; then
8217   ac_hi=$ac_mid
8218 else
8219   echo "$as_me: failed program was:" >&5
8220 sed 's/^/| /' conftest.$ac_ext >&5
8221
8222 ac_lo=`expr '(' $ac_mid ')' + 1`
8223 fi
8224 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8225 done
8226 case $ac_lo in
8227 ?*) ac_cv_sizeof_char=$ac_lo;;
8228 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
8229 See \`config.log' for more details." >&5
8230 echo "$as_me: error: cannot compute sizeof (char), 77
8231 See \`config.log' for more details." >&2;}
8232    { (exit 1); exit 1; }; } ;;
8233 esac
8234 else
8235   if test "$cross_compiling" = yes; then
8236   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8237 See \`config.log' for more details." >&5
8238 echo "$as_me: error: cannot run test program while cross compiling
8239 See \`config.log' for more details." >&2;}
8240    { (exit 1); exit 1; }; }
8241 else
8242   cat >conftest.$ac_ext <<_ACEOF
8243 /* confdefs.h.  */
8244 _ACEOF
8245 cat confdefs.h >>conftest.$ac_ext
8246 cat >>conftest.$ac_ext <<_ACEOF
8247 /* end confdefs.h.  */
8248 $ac_includes_default
8249 long longval () { return (long) (sizeof (char)); }
8250 unsigned long ulongval () { return (long) (sizeof (char)); }
8251 #include <stdio.h>
8252 #include <stdlib.h>
8253 int
8254 main ()
8255 {
8256
8257   FILE *f = fopen ("conftest.val", "w");
8258   if (! f)
8259     exit (1);
8260   if (((long) (sizeof (char))) < 0)
8261     {
8262       long i = longval ();
8263       if (i != ((long) (sizeof (char))))
8264         exit (1);
8265       fprintf (f, "%ld\n", i);
8266     }
8267   else
8268     {
8269       unsigned long i = ulongval ();
8270       if (i != ((long) (sizeof (char))))
8271         exit (1);
8272       fprintf (f, "%lu\n", i);
8273     }
8274   exit (ferror (f) || fclose (f) != 0);
8275
8276   ;
8277   return 0;
8278 }
8279 _ACEOF
8280 rm -f conftest$ac_exeext
8281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8282   (eval $ac_link) 2>&5
8283   ac_status=$?
8284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8285   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8287   (eval $ac_try) 2>&5
8288   ac_status=$?
8289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8290   (exit $ac_status); }; }; then
8291   ac_cv_sizeof_char=`cat conftest.val`
8292 else
8293   echo "$as_me: program exited with status $ac_status" >&5
8294 echo "$as_me: failed program was:" >&5
8295 sed 's/^/| /' conftest.$ac_ext >&5
8296
8297 ( exit $ac_status )
8298 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
8299 See \`config.log' for more details." >&5
8300 echo "$as_me: error: cannot compute sizeof (char), 77
8301 See \`config.log' for more details." >&2;}
8302    { (exit 1); exit 1; }; }
8303 fi
8304 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8305 fi
8306 fi
8307 rm -f conftest.val
8308 else
8309   ac_cv_sizeof_char=0
8310 fi
8311 fi
8312 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
8313 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
8314 cat >>confdefs.h <<_ACEOF
8315 #define SIZEOF_CHAR $ac_cv_sizeof_char
8316 _ACEOF
8317
8318
8319
8320   echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
8321 echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
8322   case "$ac_cv_sizeof_char" in
8323     1) acx_cv_type_int8_t=char ;;
8324     *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
8325 echo "$as_me: error: no 8-bit type" >&2;}
8326    { (exit please report a bug); exit please report a bug; }; }
8327   esac
8328   echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
8329 echo "${ECHO_T}$acx_cv_type_int8_t" >&6
8330
8331   echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
8332 echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
8333   case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
8334     2:*) acx_cv_type_int16_t=int ;;
8335     *:2) acx_cv_type_int16_t=short ;;
8336     *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
8337 echo "$as_me: error: no 16-bit type" >&2;}
8338    { (exit please report a bug); exit please report a bug; }; }
8339   esac
8340   echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
8341 echo "${ECHO_T}$acx_cv_type_int16_t" >&6
8342
8343   echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
8344 echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
8345   case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
8346     4:*) acx_cv_type_int32_t=int ;;
8347     *:4) acx_cv_type_int32_t=long ;;
8348     *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
8349 echo "$as_me: error: no 32-bit type" >&2;}
8350    { (exit please report a bug); exit please report a bug; }; }
8351   esac
8352   echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
8353 echo "${ECHO_T}$acx_cv_type_int32_t" >&6
8354 fi
8355
8356 # These tests are here to make the output prettier
8357
8358 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
8359   case "$ac_cv_sizeof_long" in
8360     8) acx_cv_type_int64_t=long ;;
8361   esac
8362   echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
8363 echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
8364   echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
8365 echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
8366 fi
8367
8368 # Now we can use the above types
8369
8370 if test "$ac_cv_type_uintptr_t" != yes; then
8371   echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
8372 echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
8373   case $ac_cv_sizeof_void_p in
8374     2) acx_cv_type_intptr_t=int16_t ;;
8375     4) acx_cv_type_intptr_t=int32_t ;;
8376     8) acx_cv_type_intptr_t=int64_t ;;
8377     *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
8378 echo "$as_me: error: no equivalent for intptr_t" >&2;}
8379    { (exit please report a bug); exit please report a bug; }; }
8380   esac
8381   echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
8382 echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
8383 fi
8384
8385 # ----------------- done all checks, emit header -------------
8386           ac_config_commands="$ac_config_commands gstdint.h"
8387
8388
8389
8390
8391 # Check to see if -pthread or -lpthread is needed.  Prefer the former.
8392 # In case the pthread.h system header is not found, this test will fail.
8393 XPCFLAGS=""
8394
8395 # Darwin doesn't need the -pthread option since threads are in libSystem
8396 cat >conftest.$ac_ext <<_ACEOF
8397 /* confdefs.h.  */
8398 _ACEOF
8399 cat confdefs.h >>conftest.$ac_ext
8400 cat >>conftest.$ac_ext <<_ACEOF
8401 /* end confdefs.h.  */
8402 #include <pthread.h>
8403    void *g(void *d) { return NULL; }
8404 int
8405 main ()
8406 {
8407 pthread_t t; pthread_create(&t,NULL,g,NULL);
8408   ;
8409   return 0;
8410 }
8411 _ACEOF
8412 rm -f conftest.$ac_objext conftest$ac_exeext
8413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8414   (eval $ac_link) 2>conftest.er1
8415   ac_status=$?
8416   grep -v '^ *+' conftest.er1 >conftest.err
8417   rm -f conftest.er1
8418   cat conftest.err >&5
8419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8420   (exit $ac_status); } &&
8421          { ac_try='test -z "$ac_c_werror_flag"
8422                          || test ! -s conftest.err'
8423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8424   (eval $ac_try) 2>&5
8425   ac_status=$?
8426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427   (exit $ac_status); }; } &&
8428          { ac_try='test -s conftest$ac_exeext'
8429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8430   (eval $ac_try) 2>&5
8431   ac_status=$?
8432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8433   (exit $ac_status); }; }; then
8434   case $host in
8435    *-darwin*)
8436      ;;
8437    default)
8438      XPCFLAGS=" -Wc,-pthread"
8439      ;;
8440      esac
8441 else
8442   echo "$as_me: failed program was:" >&5
8443 sed 's/^/| /' conftest.$ac_ext >&5
8444
8445 CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
8446   cat >conftest.$ac_ext <<_ACEOF
8447 /* confdefs.h.  */
8448 _ACEOF
8449 cat confdefs.h >>conftest.$ac_ext
8450 cat >>conftest.$ac_ext <<_ACEOF
8451 /* end confdefs.h.  */
8452 #include <pthread.h>
8453      void *g(void *d) { return NULL; }
8454 int
8455 main ()
8456 {
8457 pthread_t t; pthread_create(&t,NULL,g,NULL);
8458   ;
8459   return 0;
8460 }
8461 _ACEOF
8462 rm -f conftest.$ac_objext conftest$ac_exeext
8463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8464   (eval $ac_link) 2>conftest.er1
8465   ac_status=$?
8466   grep -v '^ *+' conftest.er1 >conftest.err
8467   rm -f conftest.er1
8468   cat conftest.err >&5
8469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470   (exit $ac_status); } &&
8471          { ac_try='test -z "$ac_c_werror_flag"
8472                          || test ! -s conftest.err'
8473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8474   (eval $ac_try) 2>&5
8475   ac_status=$?
8476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8477   (exit $ac_status); }; } &&
8478          { ac_try='test -s conftest$ac_exeext'
8479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8480   (eval $ac_try) 2>&5
8481   ac_status=$?
8482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483   (exit $ac_status); }; }; then
8484   :
8485 else
8486   echo "$as_me: failed program was:" >&5
8487 sed 's/^/| /' conftest.$ac_ext >&5
8488
8489 { { echo "$as_me:$LINENO: error: Pthreads are required to build libgomp" >&5
8490 echo "$as_me: error: Pthreads are required to build libgomp" >&2;}
8491    { (exit 1); exit 1; }; }
8492 fi
8493 rm -f conftest.err conftest.$ac_objext \
8494       conftest$ac_exeext conftest.$ac_ext
8495 fi
8496 rm -f conftest.err conftest.$ac_objext \
8497       conftest$ac_exeext conftest.$ac_ext
8498
8499 # Check for functions needed.
8500
8501
8502 for ac_func in getloadavg clock_gettime
8503 do
8504 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8505 echo "$as_me:$LINENO: checking for $ac_func" >&5
8506 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8507 if eval "test \"\${$as_ac_var+set}\" = set"; then
8508   echo $ECHO_N "(cached) $ECHO_C" >&6
8509 else
8510   cat >conftest.$ac_ext <<_ACEOF
8511 /* confdefs.h.  */
8512 _ACEOF
8513 cat confdefs.h >>conftest.$ac_ext
8514 cat >>conftest.$ac_ext <<_ACEOF
8515 /* end confdefs.h.  */
8516 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8517    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8518 #define $ac_func innocuous_$ac_func
8519
8520 /* System header to define __stub macros and hopefully few prototypes,
8521     which can conflict with char $ac_func (); below.
8522     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8523     <limits.h> exists even on freestanding compilers.  */
8524
8525 #ifdef __STDC__
8526 # include <limits.h>
8527 #else
8528 # include <assert.h>
8529 #endif
8530
8531 #undef $ac_func
8532
8533 /* Override any gcc2 internal prototype to avoid an error.  */
8534 #ifdef __cplusplus
8535 extern "C"
8536 {
8537 #endif
8538 /* We use char because int might match the return type of a gcc2
8539    builtin and then its argument prototype would still apply.  */
8540 char $ac_func ();
8541 /* The GNU C library defines this for functions which it implements
8542     to always fail with ENOSYS.  Some functions are actually named
8543     something starting with __ and the normal name is an alias.  */
8544 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8545 choke me
8546 #else
8547 char (*f) () = $ac_func;
8548 #endif
8549 #ifdef __cplusplus
8550 }
8551 #endif
8552
8553 int
8554 main ()
8555 {
8556 return f != $ac_func;
8557   ;
8558   return 0;
8559 }
8560 _ACEOF
8561 rm -f conftest.$ac_objext conftest$ac_exeext
8562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8563   (eval $ac_link) 2>conftest.er1
8564   ac_status=$?
8565   grep -v '^ *+' conftest.er1 >conftest.err
8566   rm -f conftest.er1
8567   cat conftest.err >&5
8568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8569   (exit $ac_status); } &&
8570          { ac_try='test -z "$ac_c_werror_flag"
8571                          || test ! -s conftest.err'
8572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8573   (eval $ac_try) 2>&5
8574   ac_status=$?
8575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8576   (exit $ac_status); }; } &&
8577          { ac_try='test -s conftest$ac_exeext'
8578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8579   (eval $ac_try) 2>&5
8580   ac_status=$?
8581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8582   (exit $ac_status); }; }; then
8583   eval "$as_ac_var=yes"
8584 else
8585   echo "$as_me: failed program was:" >&5
8586 sed 's/^/| /' conftest.$ac_ext >&5
8587
8588 eval "$as_ac_var=no"
8589 fi
8590 rm -f conftest.err conftest.$ac_objext \
8591       conftest$ac_exeext conftest.$ac_ext
8592 fi
8593 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8594 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8595 if test `eval echo '${'$as_ac_var'}'` = yes; then
8596   cat >>confdefs.h <<_ACEOF
8597 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8598 _ACEOF
8599
8600 fi
8601 done
8602
8603
8604 # Check for broken semaphore implementation on darwin.
8605 # sem_init returns: sem_init error: Function not implemented.
8606 case "$host" in
8607   *-darwin*)
8608
8609 cat >>confdefs.h <<\_ACEOF
8610 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
8611 _ACEOF
8612
8613     ;;
8614   *-linux*)
8615     case "$enable_linux_futex" in
8616       default)
8617         # If headers don't have gettid/futex syscalls definition, then
8618         # default to no, otherwise there will be compile time failures.
8619         # Otherwise, default to yes.  If we don't detect we are
8620         # compiled/linked against NPTL and not cross-compiling, check
8621         # if programs are run by default against NPTL and if not, issue
8622         # a warning.
8623         enable_linux_futex=no
8624         cat >conftest.$ac_ext <<_ACEOF
8625 /* confdefs.h.  */
8626 _ACEOF
8627 cat confdefs.h >>conftest.$ac_ext
8628 cat >>conftest.$ac_ext <<_ACEOF
8629 /* end confdefs.h.  */
8630 #include <sys/syscall.h>
8631            int lk;
8632 int
8633 main ()
8634 {
8635 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
8636   ;
8637   return 0;
8638 }
8639 _ACEOF
8640 rm -f conftest.$ac_objext conftest$ac_exeext
8641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8642   (eval $ac_link) 2>conftest.er1
8643   ac_status=$?
8644   grep -v '^ *+' conftest.er1 >conftest.err
8645   rm -f conftest.er1
8646   cat conftest.err >&5
8647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8648   (exit $ac_status); } &&
8649          { ac_try='test -z "$ac_c_werror_flag"
8650                          || test ! -s conftest.err'
8651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8652   (eval $ac_try) 2>&5
8653   ac_status=$?
8654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655   (exit $ac_status); }; } &&
8656          { ac_try='test -s conftest$ac_exeext'
8657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8658   (eval $ac_try) 2>&5
8659   ac_status=$?
8660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8661   (exit $ac_status); }; }; then
8662   cat >conftest.$ac_ext <<_ACEOF
8663 /* confdefs.h.  */
8664 _ACEOF
8665 cat confdefs.h >>conftest.$ac_ext
8666 cat >>conftest.$ac_ext <<_ACEOF
8667 /* end confdefs.h.  */
8668 #ifndef _GNU_SOURCE
8669              #define _GNU_SOURCE 1
8670              #endif
8671              #include <pthread.h>
8672              pthread_t th; void *status;
8673 int
8674 main ()
8675 {
8676 pthread_tryjoin_np (th, &status);
8677   ;
8678   return 0;
8679 }
8680 _ACEOF
8681 rm -f conftest.$ac_objext conftest$ac_exeext
8682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8683   (eval $ac_link) 2>conftest.er1
8684   ac_status=$?
8685   grep -v '^ *+' conftest.er1 >conftest.err
8686   rm -f conftest.er1
8687   cat conftest.err >&5
8688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8689   (exit $ac_status); } &&
8690          { ac_try='test -z "$ac_c_werror_flag"
8691                          || test ! -s conftest.err'
8692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8693   (eval $ac_try) 2>&5
8694   ac_status=$?
8695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8696   (exit $ac_status); }; } &&
8697          { ac_try='test -s conftest$ac_exeext'
8698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8699   (eval $ac_try) 2>&5
8700   ac_status=$?
8701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8702   (exit $ac_status); }; }; then
8703   enable_linux_futex=yes
8704 else
8705   echo "$as_me: failed program was:" >&5
8706 sed 's/^/| /' conftest.$ac_ext >&5
8707
8708 if test x$cross_compiling = xno; then
8709                if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \
8710                   | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then
8711                  { echo "$as_me:$LINENO: WARNING: The kernel might not support futex or gettid syscalls.
8712 If so, please configure with --disable-linux-futex" >&5
8713 echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
8714 If so, please configure with --disable-linux-futex" >&2;}
8715                fi
8716              fi
8717              enable_linux_futex=yes
8718 fi
8719 rm -f conftest.err conftest.$ac_objext \
8720       conftest$ac_exeext conftest.$ac_ext
8721 else
8722   echo "$as_me: failed program was:" >&5
8723 sed 's/^/| /' conftest.$ac_ext >&5
8724
8725 fi
8726 rm -f conftest.err conftest.$ac_objext \
8727       conftest$ac_exeext conftest.$ac_ext
8728         ;;
8729       yes)
8730         cat >conftest.$ac_ext <<_ACEOF
8731 /* confdefs.h.  */
8732 _ACEOF
8733 cat confdefs.h >>conftest.$ac_ext
8734 cat >>conftest.$ac_ext <<_ACEOF
8735 /* end confdefs.h.  */
8736 #include <sys/syscall.h>
8737            int lk;
8738 int
8739 main ()
8740 {
8741 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
8742   ;
8743   return 0;
8744 }
8745 _ACEOF
8746 rm -f conftest.$ac_objext conftest$ac_exeext
8747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8748   (eval $ac_link) 2>conftest.er1
8749   ac_status=$?
8750   grep -v '^ *+' conftest.er1 >conftest.err
8751   rm -f conftest.er1
8752   cat conftest.err >&5
8753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8754   (exit $ac_status); } &&
8755          { ac_try='test -z "$ac_c_werror_flag"
8756                          || test ! -s conftest.err'
8757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8758   (eval $ac_try) 2>&5
8759   ac_status=$?
8760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8761   (exit $ac_status); }; } &&
8762          { ac_try='test -s conftest$ac_exeext'
8763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8764   (eval $ac_try) 2>&5
8765   ac_status=$?
8766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767   (exit $ac_status); }; }; then
8768   :
8769 else
8770   echo "$as_me: failed program was:" >&5
8771 sed 's/^/| /' conftest.$ac_ext >&5
8772
8773 { { echo "$as_me:$LINENO: error: SYS_gettid and SYS_futex required for --enable-linux-futex" >&5
8774 echo "$as_me: error: SYS_gettid and SYS_futex required for --enable-linux-futex" >&2;}
8775    { (exit 1); exit 1; }; }
8776 fi
8777 rm -f conftest.err conftest.$ac_objext \
8778       conftest$ac_exeext conftest.$ac_ext
8779         ;;
8780     esac
8781     ;;
8782 esac
8783
8784 # At least for glibc, clock_gettime is in librt.  But don't pull that
8785 # in if it still doesn't give us the function we want.
8786 if test $ac_cv_func_clock_gettime = no; then
8787   echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
8788 echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6
8789 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
8790   echo $ECHO_N "(cached) $ECHO_C" >&6
8791 else
8792   ac_check_lib_save_LIBS=$LIBS
8793 LIBS="-lrt  $LIBS"
8794 cat >conftest.$ac_ext <<_ACEOF
8795 /* confdefs.h.  */
8796 _ACEOF
8797 cat confdefs.h >>conftest.$ac_ext
8798 cat >>conftest.$ac_ext <<_ACEOF
8799 /* end confdefs.h.  */
8800
8801 /* Override any gcc2 internal prototype to avoid an error.  */
8802 #ifdef __cplusplus
8803 extern "C"
8804 #endif
8805 /* We use char because int might match the return type of a gcc2
8806    builtin and then its argument prototype would still apply.  */
8807 char clock_gettime ();
8808 int
8809 main ()
8810 {
8811 clock_gettime ();
8812   ;
8813   return 0;
8814 }
8815 _ACEOF
8816 rm -f conftest.$ac_objext conftest$ac_exeext
8817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8818   (eval $ac_link) 2>conftest.er1
8819   ac_status=$?
8820   grep -v '^ *+' conftest.er1 >conftest.err
8821   rm -f conftest.er1
8822   cat conftest.err >&5
8823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8824   (exit $ac_status); } &&
8825          { ac_try='test -z "$ac_c_werror_flag"
8826                          || test ! -s conftest.err'
8827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8828   (eval $ac_try) 2>&5
8829   ac_status=$?
8830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8831   (exit $ac_status); }; } &&
8832          { ac_try='test -s conftest$ac_exeext'
8833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8834   (eval $ac_try) 2>&5
8835   ac_status=$?
8836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837   (exit $ac_status); }; }; then
8838   ac_cv_lib_rt_clock_gettime=yes
8839 else
8840   echo "$as_me: failed program was:" >&5
8841 sed 's/^/| /' conftest.$ac_ext >&5
8842
8843 ac_cv_lib_rt_clock_gettime=no
8844 fi
8845 rm -f conftest.err conftest.$ac_objext \
8846       conftest$ac_exeext conftest.$ac_ext
8847 LIBS=$ac_check_lib_save_LIBS
8848 fi
8849 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
8850 echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6
8851 if test $ac_cv_lib_rt_clock_gettime = yes; then
8852   LIBS="-lrt $LIBS"
8853
8854 cat >>confdefs.h <<\_ACEOF
8855 #define HAVE_CLOCK_GETTIME 1
8856 _ACEOF
8857
8858 fi
8859
8860 fi
8861
8862 # See if we support thread-local storage.
8863
8864    # Check whether --enable-tls or --disable-tls was given.
8865 if test "${enable_tls+set}" = set; then
8866   enableval="$enable_tls"
8867
8868       case "$enableval" in
8869        yes|no) ;;
8870        *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5
8871 echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;}
8872    { (exit 1); exit 1; }; } ;;
8873       esac
8874
8875 else
8876   enable_tls=yes
8877 fi;
8878
8879   echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5
8880 echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6
8881 if test "${have_tls+set}" = set; then
8882   echo $ECHO_N "(cached) $ECHO_C" >&6
8883 else
8884
8885     if test "$cross_compiling" = yes; then
8886   cat >conftest.$ac_ext <<_ACEOF
8887 __thread int a; int b; int main() { return a = b; }
8888 _ACEOF
8889 rm -f conftest.$ac_objext conftest$ac_exeext
8890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8891   (eval $ac_link) 2>conftest.er1
8892   ac_status=$?
8893   grep -v '^ *+' conftest.er1 >conftest.err
8894   rm -f conftest.er1
8895   cat conftest.err >&5
8896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897   (exit $ac_status); } &&
8898          { ac_try='test -z "$ac_c_werror_flag"
8899                          || test ! -s conftest.err'
8900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8901   (eval $ac_try) 2>&5
8902   ac_status=$?
8903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8904   (exit $ac_status); }; } &&
8905          { ac_try='test -s conftest$ac_exeext'
8906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8907   (eval $ac_try) 2>&5
8908   ac_status=$?
8909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8910   (exit $ac_status); }; }; then
8911   have_tls=yes
8912 else
8913   echo "$as_me: failed program was:" >&5
8914 sed 's/^/| /' conftest.$ac_ext >&5
8915
8916 have_tls=no
8917 fi
8918 rm -f conftest.err conftest.$ac_objext \
8919       conftest$ac_exeext conftest.$ac_ext
8920
8921 else
8922   cat >conftest.$ac_ext <<_ACEOF
8923 __thread int a; int b; int main() { return a = b; }
8924 _ACEOF
8925 rm -f conftest$ac_exeext
8926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8927   (eval $ac_link) 2>&5
8928   ac_status=$?
8929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8930   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8932   (eval $ac_try) 2>&5
8933   ac_status=$?
8934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935   (exit $ac_status); }; }; then
8936                       save_LDFLAGS="$LDFLAGS"
8937       LDFLAGS="-static $LDFLAGS"
8938       cat >conftest.$ac_ext <<_ACEOF
8939 int main() { return 0; }
8940 _ACEOF
8941 rm -f conftest.$ac_objext conftest$ac_exeext
8942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8943   (eval $ac_link) 2>conftest.er1
8944   ac_status=$?
8945   grep -v '^ *+' conftest.er1 >conftest.err
8946   rm -f conftest.er1
8947   cat conftest.err >&5
8948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949   (exit $ac_status); } &&
8950          { ac_try='test -z "$ac_c_werror_flag"
8951                          || test ! -s conftest.err'
8952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8953   (eval $ac_try) 2>&5
8954   ac_status=$?
8955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8956   (exit $ac_status); }; } &&
8957          { ac_try='test -s conftest$ac_exeext'
8958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8959   (eval $ac_try) 2>&5
8960   ac_status=$?
8961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8962   (exit $ac_status); }; }; then
8963   if test "$cross_compiling" = yes; then
8964   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8965 See \`config.log' for more details." >&5
8966 echo "$as_me: error: cannot run test program while cross compiling
8967 See \`config.log' for more details." >&2;}
8968    { (exit 1); exit 1; }; }
8969 else
8970   cat >conftest.$ac_ext <<_ACEOF
8971 __thread int a; int b; int main() { return a = b; }
8972 _ACEOF
8973 rm -f conftest$ac_exeext
8974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8975   (eval $ac_link) 2>&5
8976   ac_status=$?
8977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8978   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8980   (eval $ac_try) 2>&5
8981   ac_status=$?
8982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8983   (exit $ac_status); }; }; then
8984   have_tls=yes
8985 else
8986   echo "$as_me: program exited with status $ac_status" >&5
8987 echo "$as_me: failed program was:" >&5
8988 sed 's/^/| /' conftest.$ac_ext >&5
8989
8990 ( exit $ac_status )
8991 have_tls=no
8992 fi
8993 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8994 fi
8995 else
8996   echo "$as_me: failed program was:" >&5
8997 sed 's/^/| /' conftest.$ac_ext >&5
8998
8999 have_tls=yes
9000 fi
9001 rm -f conftest.err conftest.$ac_objext \
9002       conftest$ac_exeext conftest.$ac_ext
9003       LDFLAGS="$save_LDFLAGS"
9004 else
9005   echo "$as_me: program exited with status $ac_status" >&5
9006 echo "$as_me: failed program was:" >&5
9007 sed 's/^/| /' conftest.$ac_ext >&5
9008
9009 ( exit $ac_status )
9010 have_tls=no
9011 fi
9012 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9013 fi
9014 fi
9015 echo "$as_me:$LINENO: result: $have_tls" >&5
9016 echo "${ECHO_T}$have_tls" >&6
9017   if test "$enable_tls $have_tls" = "yes yes"; then
9018
9019 cat >>confdefs.h <<\_ACEOF
9020 #define HAVE_TLS 1
9021 _ACEOF
9022
9023   fi
9024
9025 # See what sort of export controls are availible.
9026
9027   echo "$as_me:$LINENO: checking whether the target supports hidden visibility" >&5
9028 echo $ECHO_N "checking whether the target supports hidden visibility... $ECHO_C" >&6
9029 if test "${have_attribute_visibility+set}" = set; then
9030   echo $ECHO_N "(cached) $ECHO_C" >&6
9031 else
9032
9033   save_CFLAGS="$CFLAGS"
9034   CFLAGS="$CFLAGS -Werror"
9035   cat >conftest.$ac_ext <<_ACEOF
9036 /* confdefs.h.  */
9037 _ACEOF
9038 cat confdefs.h >>conftest.$ac_ext
9039 cat >>conftest.$ac_ext <<_ACEOF
9040 /* end confdefs.h.  */
9041 void __attribute__((visibility("hidden"))) foo(void) { }
9042 int
9043 main ()
9044 {
9045
9046   ;
9047   return 0;
9048 }
9049 _ACEOF
9050 rm -f conftest.$ac_objext
9051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9052   (eval $ac_compile) 2>conftest.er1
9053   ac_status=$?
9054   grep -v '^ *+' conftest.er1 >conftest.err
9055   rm -f conftest.er1
9056   cat conftest.err >&5
9057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9058   (exit $ac_status); } &&
9059          { ac_try='test -z "$ac_c_werror_flag"
9060                          || test ! -s conftest.err'
9061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9062   (eval $ac_try) 2>&5
9063   ac_status=$?
9064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9065   (exit $ac_status); }; } &&
9066          { ac_try='test -s conftest.$ac_objext'
9067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9068   (eval $ac_try) 2>&5
9069   ac_status=$?
9070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9071   (exit $ac_status); }; }; then
9072   have_attribute_visibility=yes
9073 else
9074   echo "$as_me: failed program was:" >&5
9075 sed 's/^/| /' conftest.$ac_ext >&5
9076
9077 have_attribute_visibility=no
9078 fi
9079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9080   CFLAGS="$save_CFLAGS"
9081 fi
9082 echo "$as_me:$LINENO: result: $have_attribute_visibility" >&5
9083 echo "${ECHO_T}$have_attribute_visibility" >&6
9084   if test $have_attribute_visibility = yes; then
9085
9086 cat >>confdefs.h <<\_ACEOF
9087 #define HAVE_ATTRIBUTE_VISIBILITY 1
9088 _ACEOF
9089
9090   fi
9091
9092   echo "$as_me:$LINENO: checking whether the target supports dllexport" >&5
9093 echo $ECHO_N "checking whether the target supports dllexport... $ECHO_C" >&6
9094 if test "${have_attribute_dllexport+set}" = set; then
9095   echo $ECHO_N "(cached) $ECHO_C" >&6
9096 else
9097
9098   save_CFLAGS="$CFLAGS"
9099   CFLAGS="$CFLAGS -Werror"
9100   cat >conftest.$ac_ext <<_ACEOF
9101 /* confdefs.h.  */
9102 _ACEOF
9103 cat confdefs.h >>conftest.$ac_ext
9104 cat >>conftest.$ac_ext <<_ACEOF
9105 /* end confdefs.h.  */
9106 void __attribute__((dllexport)) foo(void) { }
9107 int
9108 main ()
9109 {
9110
9111   ;
9112   return 0;
9113 }
9114 _ACEOF
9115 rm -f conftest.$ac_objext
9116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9117   (eval $ac_compile) 2>conftest.er1
9118   ac_status=$?
9119   grep -v '^ *+' conftest.er1 >conftest.err
9120   rm -f conftest.er1
9121   cat conftest.err >&5
9122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9123   (exit $ac_status); } &&
9124          { ac_try='test -z "$ac_c_werror_flag"
9125                          || test ! -s conftest.err'
9126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9127   (eval $ac_try) 2>&5
9128   ac_status=$?
9129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9130   (exit $ac_status); }; } &&
9131          { ac_try='test -s conftest.$ac_objext'
9132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9133   (eval $ac_try) 2>&5
9134   ac_status=$?
9135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9136   (exit $ac_status); }; }; then
9137   have_attribute_dllexport=yes
9138 else
9139   echo "$as_me: failed program was:" >&5
9140 sed 's/^/| /' conftest.$ac_ext >&5
9141
9142 have_attribute_dllexport=no
9143 fi
9144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9145   CFLAGS="$save_CFLAGS"
9146 fi
9147 echo "$as_me:$LINENO: result: $have_attribute_dllexport" >&5
9148 echo "${ECHO_T}$have_attribute_dllexport" >&6
9149   if test $have_attribute_dllexport = yes; then
9150
9151 cat >>confdefs.h <<\_ACEOF
9152 #define HAVE_ATTRIBUTE_DLLEXPORT 1
9153 _ACEOF
9154
9155   fi
9156
9157   echo "$as_me:$LINENO: checking whether the target supports symbol aliases" >&5
9158 echo $ECHO_N "checking whether the target supports symbol aliases... $ECHO_C" >&6
9159 if test "${have_attribute_alias+set}" = set; then
9160   echo $ECHO_N "(cached) $ECHO_C" >&6
9161 else
9162
9163   cat >conftest.$ac_ext <<_ACEOF
9164 /* confdefs.h.  */
9165 _ACEOF
9166 cat confdefs.h >>conftest.$ac_ext
9167 cat >>conftest.$ac_ext <<_ACEOF
9168 /* end confdefs.h.  */
9169
9170 void foo(void) { }
9171 extern void bar(void) __attribute__((alias("foo")));
9172 int
9173 main ()
9174 {
9175 bar();
9176   ;
9177   return 0;
9178 }
9179 _ACEOF
9180 rm -f conftest.$ac_objext conftest$ac_exeext
9181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9182   (eval $ac_link) 2>conftest.er1
9183   ac_status=$?
9184   grep -v '^ *+' conftest.er1 >conftest.err
9185   rm -f conftest.er1
9186   cat conftest.err >&5
9187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9188   (exit $ac_status); } &&
9189          { ac_try='test -z "$ac_c_werror_flag"
9190                          || test ! -s conftest.err'
9191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9192   (eval $ac_try) 2>&5
9193   ac_status=$?
9194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9195   (exit $ac_status); }; } &&
9196          { ac_try='test -s conftest$ac_exeext'
9197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9198   (eval $ac_try) 2>&5
9199   ac_status=$?
9200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9201   (exit $ac_status); }; }; then
9202   have_attribute_alias=yes
9203 else
9204   echo "$as_me: failed program was:" >&5
9205 sed 's/^/| /' conftest.$ac_ext >&5
9206
9207 have_attribute_alias=no
9208 fi
9209 rm -f conftest.err conftest.$ac_objext \
9210       conftest$ac_exeext conftest.$ac_ext
9211 fi
9212 echo "$as_me:$LINENO: result: $have_attribute_alias" >&5
9213 echo "${ECHO_T}$have_attribute_alias" >&6
9214   if test $have_attribute_alias = yes; then
9215
9216 cat >>confdefs.h <<\_ACEOF
9217 #define HAVE_ATTRIBUTE_ALIAS 1
9218 _ACEOF
9219
9220   fi
9221
9222   # If we're not using GNU ld, then there's no point in even trying these
9223   # tests.  Check for that first.  We should have already tested for gld
9224   # by now (in libtool), but require it now just to be safe...
9225   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
9226   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
9227
9228
9229
9230   # The name set by libtool depends on the version of libtool.  Shame on us
9231   # for depending on an impl detail, but c'est la vie.  Older versions used
9232   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
9233   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
9234   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
9235   # set (hence we're using an older libtool), then set it.
9236   if test x${with_gnu_ld+set} != xset; then
9237     if test x${ac_cv_prog_gnu_ld+set} != xset; then
9238       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
9239       with_gnu_ld=no
9240     else
9241       with_gnu_ld=$ac_cv_prog_gnu_ld
9242     fi
9243   fi
9244
9245   # Start by getting the version number.  I think the libtool test already
9246   # does some of this, but throws away the result.
9247
9248   ldver=`$LD --version 2>/dev/null | head -1 | \
9249          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
9250
9251   libgomp_gnu_ld_version=`echo $ldver | \
9252          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
9253
9254   # Set --gc-sections.
9255   if test "$with_gnu_ld" = "notbroken"; then
9256     # GNU ld it is!  Joy and bunny rabbits!
9257
9258     # All these tests are for C++; save the language and the compiler flags.
9259     # Need to do this so that g++ won't try to link in libstdc++
9260     ac_test_CFLAGS="${CFLAGS+set}"
9261     ac_save_CFLAGS="$CFLAGS"
9262     CFLAGS='-x c++  -Wl,--gc-sections'
9263
9264     # Check for -Wl,--gc-sections
9265     # XXX This test is broken at the moment, as symbols required for linking
9266     # are now in libsupc++ (not built yet).  In addition, this test has
9267     # cored on solaris in the past.  In addition, --gc-sections doesn't
9268     # really work at the moment (keeps on discarding used sections, first
9269     # .eh_frame and now some of the glibc sections for iconv).
9270     # Bzzzzt.  Thanks for playing, maybe next time.
9271     echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
9272 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
9273     if test "$cross_compiling" = yes; then
9274   ac_sectionLDflags=yes
9275 else
9276   cat >conftest.$ac_ext <<_ACEOF
9277 /* confdefs.h.  */
9278 _ACEOF
9279 cat confdefs.h >>conftest.$ac_ext
9280 cat >>conftest.$ac_ext <<_ACEOF
9281 /* end confdefs.h.  */
9282
9283      int main(void)
9284      {
9285        try { throw 1; }
9286        catch (...) { };
9287        return 0;
9288      }
9289
9290 _ACEOF
9291 rm -f conftest$ac_exeext
9292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9293   (eval $ac_link) 2>&5
9294   ac_status=$?
9295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9296   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9298   (eval $ac_try) 2>&5
9299   ac_status=$?
9300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9301   (exit $ac_status); }; }; then
9302   ac_sectionLDflags=yes
9303 else
9304   echo "$as_me: program exited with status $ac_status" >&5
9305 echo "$as_me: failed program was:" >&5
9306 sed 's/^/| /' conftest.$ac_ext >&5
9307
9308 ( exit $ac_status )
9309 ac_sectionLDflags=no
9310 fi
9311 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9312 fi
9313     if test "$ac_test_CFLAGS" = set; then
9314       CFLAGS="$ac_save_CFLAGS"
9315     else
9316       # this is the suspicious part
9317       CFLAGS=''
9318     fi
9319     if test "$ac_sectionLDflags" = "yes"; then
9320       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
9321     fi
9322     echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
9323 echo "${ECHO_T}$ac_sectionLDflags" >&6
9324   fi
9325
9326   # Set linker optimization flags.
9327   if test x"$with_gnu_ld" = x"yes"; then
9328     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
9329   fi
9330
9331
9332
9333
9334
9335
9336  # Check whether --enable-symvers or --disable-symvers was given.
9337 if test "${enable_symvers+set}" = set; then
9338   enableval="$enable_symvers"
9339
9340       case "$enableval" in
9341        yes|no|gnu) ;;
9342        *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable symvers" >&5
9343 echo "$as_me: error: Unknown argument to enable/disable symvers" >&2;}
9344    { (exit 1); exit 1; }; } ;;
9345                           esac
9346
9347 else
9348   enable_symvers=yes
9349 fi;
9350
9351
9352 # If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we
9353 # don't know enough about $LD to do tricks...
9354
9355 # FIXME  The following test is too strict, in theory.
9356 if test $enable_shared = no ||
9357         test "x$LD" = x ||
9358         test x$libgomp_gnu_ld_version = x; then
9359   enable_symvers=no
9360 fi
9361
9362 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
9363 if test $enable_symvers != no; then
9364   echo "$as_me:$LINENO: checking for shared libgcc" >&5
9365 echo $ECHO_N "checking for shared libgcc... $ECHO_C" >&6
9366   ac_save_CFLAGS="$CFLAGS"
9367   CFLAGS=' -lgcc_s'
9368   cat >conftest.$ac_ext <<_ACEOF
9369 /* confdefs.h.  */
9370 _ACEOF
9371 cat confdefs.h >>conftest.$ac_ext
9372 cat >>conftest.$ac_ext <<_ACEOF
9373 /* end confdefs.h.  */
9374
9375 int
9376 main ()
9377 {
9378 return 0;
9379   ;
9380   return 0;
9381 }
9382 _ACEOF
9383 rm -f conftest.$ac_objext conftest$ac_exeext
9384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9385   (eval $ac_link) 2>conftest.er1
9386   ac_status=$?
9387   grep -v '^ *+' conftest.er1 >conftest.err
9388   rm -f conftest.er1
9389   cat conftest.err >&5
9390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9391   (exit $ac_status); } &&
9392          { ac_try='test -z "$ac_c_werror_flag"
9393                          || test ! -s conftest.err'
9394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9395   (eval $ac_try) 2>&5
9396   ac_status=$?
9397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9398   (exit $ac_status); }; } &&
9399          { ac_try='test -s conftest$ac_exeext'
9400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9401   (eval $ac_try) 2>&5
9402   ac_status=$?
9403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9404   (exit $ac_status); }; }; then
9405   libgomp_shared_libgcc=yes
9406 else
9407   echo "$as_me: failed program was:" >&5
9408 sed 's/^/| /' conftest.$ac_ext >&5
9409
9410 libgomp_shared_libgcc=no
9411 fi
9412 rm -f conftest.err conftest.$ac_objext \
9413       conftest$ac_exeext conftest.$ac_ext
9414   CFLAGS="$ac_save_CFLAGS"
9415   if test $libgomp_shared_libgcc = no; then
9416     cat > conftest.c <<EOF
9417 int main (void) { return 0; }
9418 EOF
9419     libgomp_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
9420                              -shared -shared-libgcc -o conftest.so \
9421                              conftest.c -v 2>&1 >/dev/null \
9422                              | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
9423     rm -f conftest.c conftest.so
9424     if test x${libgomp_libgcc_s_suffix+set} = xset; then
9425       CFLAGS=" -lgcc_s$libgomp_libgcc_s_suffix"
9426       cat >conftest.$ac_ext <<_ACEOF
9427 /* confdefs.h.  */
9428 _ACEOF
9429 cat confdefs.h >>conftest.$ac_ext
9430 cat >>conftest.$ac_ext <<_ACEOF
9431 /* end confdefs.h.  */
9432
9433 int
9434 main ()
9435 {
9436 return 0;
9437   ;
9438   return 0;
9439 }
9440 _ACEOF
9441 rm -f conftest.$ac_objext conftest$ac_exeext
9442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9443   (eval $ac_link) 2>conftest.er1
9444   ac_status=$?
9445   grep -v '^ *+' conftest.er1 >conftest.err
9446   rm -f conftest.er1
9447   cat conftest.err >&5
9448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9449   (exit $ac_status); } &&
9450          { ac_try='test -z "$ac_c_werror_flag"
9451                          || test ! -s conftest.err'
9452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9453   (eval $ac_try) 2>&5
9454   ac_status=$?
9455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9456   (exit $ac_status); }; } &&
9457          { ac_try='test -s conftest$ac_exeext'
9458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9459   (eval $ac_try) 2>&5
9460   ac_status=$?
9461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9462   (exit $ac_status); }; }; then
9463   libgomp_shared_libgcc=yes
9464 else
9465   echo "$as_me: failed program was:" >&5
9466 sed 's/^/| /' conftest.$ac_ext >&5
9467
9468 fi
9469 rm -f conftest.err conftest.$ac_objext \
9470       conftest$ac_exeext conftest.$ac_ext
9471       CFLAGS="$ac_save_CFLAGS"
9472     fi
9473   fi
9474   echo "$as_me:$LINENO: result: $libgomp_shared_libgcc" >&5
9475 echo "${ECHO_T}$libgomp_shared_libgcc" >&6
9476 fi
9477
9478 # For GNU ld, we need at least this version.  The format is described in
9479 # LIBGOMP_CHECK_LINKER_FEATURES above.
9480 libgomp_min_gnu_ld_version=21400
9481 # XXXXXXXXXXX libgomp_gnu_ld_version=21390
9482
9483 # Check to see if unspecified "yes" value can win, given results above.
9484 # Change "yes" into either "no" or a style name.
9485 if test $enable_symvers = yes; then
9486   if test $with_gnu_ld = yes &&
9487      test $libgomp_shared_libgcc = yes;
9488   then
9489     if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then
9490       enable_symvers=gnu
9491     else
9492       # The right tools, the right setup, but too old.  Fallbacks?
9493       { echo "$as_me:$LINENO: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5
9494 echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;}
9495       { echo "$as_me:$LINENO: WARNING: === full symbol versioning support in this release of GCC." >&5
9496 echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
9497       { echo "$as_me:$LINENO: WARNING: === You would need to upgrade your binutils to version" >&5
9498 echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
9499       { echo "$as_me:$LINENO: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5
9500 echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;}
9501       if test $libgomp_gnu_ld_version -ge 21200 ; then
9502         # Globbing fix is present, proper block support is not.
9503                         { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
9504 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
9505         enable_symvers=no
9506       else
9507         # 2.11 or older.
9508         { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
9509 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
9510         enable_symvers=no
9511       fi
9512     fi
9513   else
9514     # just fail for now
9515     { echo "$as_me:$LINENO: WARNING: === You have requested some kind of symbol versioning, but" >&5
9516 echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
9517     { echo "$as_me:$LINENO: WARNING: === either you are not using a supported linker, or you are" >&5
9518 echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
9519     { echo "$as_me:$LINENO: WARNING: === not building a shared libgcc_s (which is required)." >&5
9520 echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
9521     { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
9522 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
9523     enable_symvers=no
9524   fi
9525 fi
9526
9527
9528
9529 if test $enable_symvers != no; then
9530   LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE=
9531   LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE='#'
9532 else
9533   LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE='#'
9534   LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE=
9535 fi
9536
9537 { echo "$as_me:$LINENO: versioning on shared library symbols is $enable_symvers" >&5
9538 echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
9539
9540
9541 # Get target configury.
9542 . ${srcdir}/configure.tgt
9543 CFLAGS="$save_CFLAGS $XCFLAGS"
9544
9545 # Check for __sync_val_compare_and_swap, but only after the target has
9546 # had a chance to set XCFLAGS.
9547
9548   echo "$as_me:$LINENO: checking whether the target supports __sync_*_compare_and_swap" >&5
9549 echo $ECHO_N "checking whether the target supports __sync_*_compare_and_swap... $ECHO_C" >&6
9550 if test "${have_sync_builtins+set}" = set; then
9551   echo $ECHO_N "(cached) $ECHO_C" >&6
9552 else
9553
9554   cat >conftest.$ac_ext <<_ACEOF
9555 /* confdefs.h.  */
9556 _ACEOF
9557 cat confdefs.h >>conftest.$ac_ext
9558 cat >>conftest.$ac_ext <<_ACEOF
9559 /* end confdefs.h.  */
9560
9561 int
9562 main ()
9563 {
9564 int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
9565   ;
9566   return 0;
9567 }
9568 _ACEOF
9569 rm -f conftest.$ac_objext conftest$ac_exeext
9570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9571   (eval $ac_link) 2>conftest.er1
9572   ac_status=$?
9573   grep -v '^ *+' conftest.er1 >conftest.err
9574   rm -f conftest.er1
9575   cat conftest.err >&5
9576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9577   (exit $ac_status); } &&
9578          { ac_try='test -z "$ac_c_werror_flag"
9579                          || test ! -s conftest.err'
9580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9581   (eval $ac_try) 2>&5
9582   ac_status=$?
9583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9584   (exit $ac_status); }; } &&
9585          { ac_try='test -s conftest$ac_exeext'
9586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9587   (eval $ac_try) 2>&5
9588   ac_status=$?
9589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9590   (exit $ac_status); }; }; then
9591   have_sync_builtins=yes
9592 else
9593   echo "$as_me: failed program was:" >&5
9594 sed 's/^/| /' conftest.$ac_ext >&5
9595
9596 have_sync_builtins=no
9597 fi
9598 rm -f conftest.err conftest.$ac_objext \
9599       conftest$ac_exeext conftest.$ac_ext
9600 fi
9601 echo "$as_me:$LINENO: result: $have_sync_builtins" >&5
9602 echo "${ECHO_T}$have_sync_builtins" >&6
9603   if test $have_sync_builtins = yes; then
9604
9605 cat >>confdefs.h <<\_ACEOF
9606 #define HAVE_SYNC_BUILTINS 1
9607 _ACEOF
9608
9609   fi
9610
9611 XCFLAGS="$XCFLAGS$XPCFLAGS"
9612
9613
9614
9615
9616
9617 # Cleanup and exit.
9618 CFLAGS="$save_CFLAGS"
9619 cat >confcache <<\_ACEOF
9620 # This file is a shell script that caches the results of configure
9621 # tests run on this system so they can be shared between configure
9622 # scripts and configure runs, see configure's option --config-cache.
9623 # It is not useful on other systems.  If it contains results you don't
9624 # want to keep, you may remove or edit it.
9625 #
9626 # config.status only pays attention to the cache file if you give it
9627 # the --recheck option to rerun configure.
9628 #
9629 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9630 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9631 # following values.
9632
9633 _ACEOF
9634
9635 # The following way of writing the cache mishandles newlines in values,
9636 # but we know of no workaround that is simple, portable, and efficient.
9637 # So, don't put newlines in cache variables' values.
9638 # Ultrix sh set writes to stderr and can't be redirected directly,
9639 # and sets the high bit in the cache file unless we assign to the vars.
9640 {
9641   (set) 2>&1 |
9642     case `(ac_space=' '; set | grep ac_space) 2>&1` in
9643     *ac_space=\ *)
9644       # `set' does not quote correctly, so add quotes (double-quote
9645       # substitution turns \\\\ into \\, and sed turns \\ into \).
9646       sed -n \
9647         "s/'/'\\\\''/g;
9648           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9649       ;;
9650     *)
9651       # `set' quotes correctly as required by POSIX, so do not add quotes.
9652       sed -n \
9653         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9654       ;;
9655     esac;
9656 } |
9657   sed '
9658      t clear
9659      : clear
9660      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9661      t end
9662      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9663      : end' >>confcache
9664 if diff $cache_file confcache >/dev/null 2>&1; then :; else
9665   if test -w $cache_file; then
9666     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9667     cat confcache >$cache_file
9668   else
9669     echo "not updating unwritable cache $cache_file"
9670   fi
9671 fi
9672 rm -f confcache
9673
9674 if test ${multilib} = yes; then
9675   multilib_arg="--enable-multilib"
9676 else
9677   multilib_arg=
9678 fi
9679
9680 # Set up the set of libraries that we need to link against for libgomp.
9681 # Note that the GOMP_SELF_SPEC in gcc.c will force -pthread for -fopenmp,
9682 # which will force linkage against -lpthread (or equivalent for the system).
9683 # That's not 100% ideal, but about the best we can do easily.
9684 if test $enable_shared = yes; then
9685   link_gomp="-lgomp %{static: $LIBS}"
9686 else
9687   link_gomp="-lgomp $LIBS"
9688 fi
9689
9690
9691
9692
9693 if test "$ac_cv_fc_compiler_gnu" = yes; then
9694   USE_FORTRAN_TRUE=
9695   USE_FORTRAN_FALSE='#'
9696 else
9697   USE_FORTRAN_TRUE='#'
9698   USE_FORTRAN_FALSE=
9699 fi
9700
9701
9702 # ??? 2006-01-24: Paulo committed to asking autoconf folk to document
9703 # and export AC_COMPUTE_INT.  If that happens, then we'll need to remove
9704 # the underscore here and update the PREREQ.  If it doesn't, then we'll
9705 # need to copy this macro to our acinclude.m4.
9706 save_CFLAGS="$CFLAGS"
9707 for i in $config_path; do
9708   if test -f $srcdir/config/$i/omp-lock.h; then
9709     CFLAGS="$CFLAGS -include $srcdir/config/$i/omp-lock.h"
9710     break
9711   fi
9712 done
9713
9714 if test "$cross_compiling" = yes; then
9715   # Depending upon the size, compute the lo and hi bounds.
9716 cat >conftest.$ac_ext <<_ACEOF
9717 /* confdefs.h.  */
9718 _ACEOF
9719 cat confdefs.h >>conftest.$ac_ext
9720 cat >>conftest.$ac_ext <<_ACEOF
9721 /* end confdefs.h.  */
9722
9723 int
9724 main ()
9725 {
9726 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) >= 0)];
9727 test_array [0] = 0
9728
9729   ;
9730   return 0;
9731 }
9732 _ACEOF
9733 rm -f conftest.$ac_objext
9734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9735   (eval $ac_compile) 2>conftest.er1
9736   ac_status=$?
9737   grep -v '^ *+' conftest.er1 >conftest.err
9738   rm -f conftest.er1
9739   cat conftest.err >&5
9740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9741   (exit $ac_status); } &&
9742          { ac_try='test -z "$ac_c_werror_flag"
9743                          || test ! -s conftest.err'
9744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9745   (eval $ac_try) 2>&5
9746   ac_status=$?
9747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9748   (exit $ac_status); }; } &&
9749          { ac_try='test -s conftest.$ac_objext'
9750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9751   (eval $ac_try) 2>&5
9752   ac_status=$?
9753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9754   (exit $ac_status); }; }; then
9755   ac_lo=0 ac_mid=0
9756   while :; do
9757     cat >conftest.$ac_ext <<_ACEOF
9758 /* confdefs.h.  */
9759 _ACEOF
9760 cat confdefs.h >>conftest.$ac_ext
9761 cat >>conftest.$ac_ext <<_ACEOF
9762 /* end confdefs.h.  */
9763
9764 int
9765 main ()
9766 {
9767 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) <= $ac_mid)];
9768 test_array [0] = 0
9769
9770   ;
9771   return 0;
9772 }
9773 _ACEOF
9774 rm -f conftest.$ac_objext
9775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9776   (eval $ac_compile) 2>conftest.er1
9777   ac_status=$?
9778   grep -v '^ *+' conftest.er1 >conftest.err
9779   rm -f conftest.er1
9780   cat conftest.err >&5
9781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9782   (exit $ac_status); } &&
9783          { ac_try='test -z "$ac_c_werror_flag"
9784                          || test ! -s conftest.err'
9785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9786   (eval $ac_try) 2>&5
9787   ac_status=$?
9788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9789   (exit $ac_status); }; } &&
9790          { ac_try='test -s conftest.$ac_objext'
9791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9792   (eval $ac_try) 2>&5
9793   ac_status=$?
9794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795   (exit $ac_status); }; }; then
9796   ac_hi=$ac_mid; break
9797 else
9798   echo "$as_me: failed program was:" >&5
9799 sed 's/^/| /' conftest.$ac_ext >&5
9800
9801 ac_lo=`expr $ac_mid + 1`
9802                     if test $ac_lo -le $ac_mid; then
9803                       ac_lo= ac_hi=
9804                       break
9805                     fi
9806                     ac_mid=`expr 2 '*' $ac_mid + 1`
9807 fi
9808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9809   done
9810 else
9811   echo "$as_me: failed program was:" >&5
9812 sed 's/^/| /' conftest.$ac_ext >&5
9813
9814 cat >conftest.$ac_ext <<_ACEOF
9815 /* confdefs.h.  */
9816 _ACEOF
9817 cat confdefs.h >>conftest.$ac_ext
9818 cat >>conftest.$ac_ext <<_ACEOF
9819 /* end confdefs.h.  */
9820
9821 int
9822 main ()
9823 {
9824 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) < 0)];
9825 test_array [0] = 0
9826
9827   ;
9828   return 0;
9829 }
9830 _ACEOF
9831 rm -f conftest.$ac_objext
9832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9833   (eval $ac_compile) 2>conftest.er1
9834   ac_status=$?
9835   grep -v '^ *+' conftest.er1 >conftest.err
9836   rm -f conftest.er1
9837   cat conftest.err >&5
9838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839   (exit $ac_status); } &&
9840          { ac_try='test -z "$ac_c_werror_flag"
9841                          || test ! -s conftest.err'
9842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9843   (eval $ac_try) 2>&5
9844   ac_status=$?
9845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9846   (exit $ac_status); }; } &&
9847          { ac_try='test -s conftest.$ac_objext'
9848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9849   (eval $ac_try) 2>&5
9850   ac_status=$?
9851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852   (exit $ac_status); }; }; then
9853   ac_hi=-1 ac_mid=-1
9854   while :; do
9855     cat >conftest.$ac_ext <<_ACEOF
9856 /* confdefs.h.  */
9857 _ACEOF
9858 cat confdefs.h >>conftest.$ac_ext
9859 cat >>conftest.$ac_ext <<_ACEOF
9860 /* end confdefs.h.  */
9861
9862 int
9863 main ()
9864 {
9865 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) >= $ac_mid)];
9866 test_array [0] = 0
9867
9868   ;
9869   return 0;
9870 }
9871 _ACEOF
9872 rm -f conftest.$ac_objext
9873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9874   (eval $ac_compile) 2>conftest.er1
9875   ac_status=$?
9876   grep -v '^ *+' conftest.er1 >conftest.err
9877   rm -f conftest.er1
9878   cat conftest.err >&5
9879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9880   (exit $ac_status); } &&
9881          { ac_try='test -z "$ac_c_werror_flag"
9882                          || test ! -s conftest.err'
9883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9884   (eval $ac_try) 2>&5
9885   ac_status=$?
9886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9887   (exit $ac_status); }; } &&
9888          { ac_try='test -s conftest.$ac_objext'
9889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9890   (eval $ac_try) 2>&5
9891   ac_status=$?
9892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9893   (exit $ac_status); }; }; then
9894   ac_lo=$ac_mid; break
9895 else
9896   echo "$as_me: failed program was:" >&5
9897 sed 's/^/| /' conftest.$ac_ext >&5
9898
9899 ac_hi=`expr '(' $ac_mid ')' - 1`
9900                        if test $ac_mid -le $ac_hi; then
9901                          ac_lo= ac_hi=
9902                          break
9903                        fi
9904                        ac_mid=`expr 2 '*' $ac_mid`
9905 fi
9906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9907   done
9908 else
9909   echo "$as_me: failed program was:" >&5
9910 sed 's/^/| /' conftest.$ac_ext >&5
9911
9912 ac_lo= ac_hi=
9913 fi
9914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9915 fi
9916 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9917 # Binary search between lo and hi bounds.
9918 while test "x$ac_lo" != "x$ac_hi"; do
9919   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9920   cat >conftest.$ac_ext <<_ACEOF
9921 /* confdefs.h.  */
9922 _ACEOF
9923 cat confdefs.h >>conftest.$ac_ext
9924 cat >>conftest.$ac_ext <<_ACEOF
9925 /* end confdefs.h.  */
9926
9927 int
9928 main ()
9929 {
9930 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) <= $ac_mid)];
9931 test_array [0] = 0
9932
9933   ;
9934   return 0;
9935 }
9936 _ACEOF
9937 rm -f conftest.$ac_objext
9938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9939   (eval $ac_compile) 2>conftest.er1
9940   ac_status=$?
9941   grep -v '^ *+' conftest.er1 >conftest.err
9942   rm -f conftest.er1
9943   cat conftest.err >&5
9944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9945   (exit $ac_status); } &&
9946          { ac_try='test -z "$ac_c_werror_flag"
9947                          || test ! -s conftest.err'
9948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9949   (eval $ac_try) 2>&5
9950   ac_status=$?
9951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9952   (exit $ac_status); }; } &&
9953          { ac_try='test -s conftest.$ac_objext'
9954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9955   (eval $ac_try) 2>&5
9956   ac_status=$?
9957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9958   (exit $ac_status); }; }; then
9959   ac_hi=$ac_mid
9960 else
9961   echo "$as_me: failed program was:" >&5
9962 sed 's/^/| /' conftest.$ac_ext >&5
9963
9964 ac_lo=`expr '(' $ac_mid ')' + 1`
9965 fi
9966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9967 done
9968 case $ac_lo in
9969 ?*) OMP_LOCK_SIZE=$ac_lo;;
9970 '') { { echo "$as_me:$LINENO: error: unsupported system, cannot find sizeof (omp_lock_t)" >&5
9971 echo "$as_me: error: unsupported system, cannot find sizeof (omp_lock_t)" >&2;}
9972    { (exit 1); exit 1; }; } ;;
9973 esac
9974 else
9975   if test "$cross_compiling" = yes; then
9976   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9977 See \`config.log' for more details." >&5
9978 echo "$as_me: error: cannot run test program while cross compiling
9979 See \`config.log' for more details." >&2;}
9980    { (exit 1); exit 1; }; }
9981 else
9982   cat >conftest.$ac_ext <<_ACEOF
9983 /* confdefs.h.  */
9984 _ACEOF
9985 cat confdefs.h >>conftest.$ac_ext
9986 cat >>conftest.$ac_ext <<_ACEOF
9987 /* end confdefs.h.  */
9988
9989 long longval () { return sizeof (omp_lock_t); }
9990 unsigned long ulongval () { return sizeof (omp_lock_t); }
9991 #include <stdio.h>
9992 #include <stdlib.h>
9993 int
9994 main ()
9995 {
9996
9997   FILE *f = fopen ("conftest.val", "w");
9998   if (! f)
9999     exit (1);
10000   if ((sizeof (omp_lock_t)) < 0)
10001     {
10002       long i = longval ();
10003       if (i != (sizeof (omp_lock_t)))
10004         exit (1);
10005       fprintf (f, "%ld\n", i);
10006     }
10007   else
10008     {
10009       unsigned long i = ulongval ();
10010       if (i != (sizeof (omp_lock_t)))
10011         exit (1);
10012       fprintf (f, "%lu\n", i);
10013     }
10014   exit (ferror (f) || fclose (f) != 0);
10015
10016   ;
10017   return 0;
10018 }
10019 _ACEOF
10020 rm -f conftest$ac_exeext
10021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10022   (eval $ac_link) 2>&5
10023   ac_status=$?
10024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10027   (eval $ac_try) 2>&5
10028   ac_status=$?
10029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10030   (exit $ac_status); }; }; then
10031   OMP_LOCK_SIZE=`cat conftest.val`
10032 else
10033   echo "$as_me: program exited with status $ac_status" >&5
10034 echo "$as_me: failed program was:" >&5
10035 sed 's/^/| /' conftest.$ac_ext >&5
10036
10037 ( exit $ac_status )
10038 { { echo "$as_me:$LINENO: error: unsupported system, cannot find sizeof (omp_lock_t)" >&5
10039 echo "$as_me: error: unsupported system, cannot find sizeof (omp_lock_t)" >&2;}
10040    { (exit 1); exit 1; }; }
10041 fi
10042 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10043 fi
10044 fi
10045 rm -f conftest.val
10046 if test "$cross_compiling" = yes; then
10047   # Depending upon the size, compute the lo and hi bounds.
10048 cat >conftest.$ac_ext <<_ACEOF
10049 /* confdefs.h.  */
10050 _ACEOF
10051 cat confdefs.h >>conftest.$ac_ext
10052 cat >>conftest.$ac_ext <<_ACEOF
10053 /* end confdefs.h.  */
10054
10055 int
10056 main ()
10057 {
10058 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) >= 0)];
10059 test_array [0] = 0
10060
10061   ;
10062   return 0;
10063 }
10064 _ACEOF
10065 rm -f conftest.$ac_objext
10066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10067   (eval $ac_compile) 2>conftest.er1
10068   ac_status=$?
10069   grep -v '^ *+' conftest.er1 >conftest.err
10070   rm -f conftest.er1
10071   cat conftest.err >&5
10072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10073   (exit $ac_status); } &&
10074          { ac_try='test -z "$ac_c_werror_flag"
10075                          || test ! -s conftest.err'
10076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10077   (eval $ac_try) 2>&5
10078   ac_status=$?
10079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080   (exit $ac_status); }; } &&
10081          { ac_try='test -s conftest.$ac_objext'
10082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10083   (eval $ac_try) 2>&5
10084   ac_status=$?
10085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10086   (exit $ac_status); }; }; then
10087   ac_lo=0 ac_mid=0
10088   while :; do
10089     cat >conftest.$ac_ext <<_ACEOF
10090 /* confdefs.h.  */
10091 _ACEOF
10092 cat confdefs.h >>conftest.$ac_ext
10093 cat >>conftest.$ac_ext <<_ACEOF
10094 /* end confdefs.h.  */
10095
10096 int
10097 main ()
10098 {
10099 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) <= $ac_mid)];
10100 test_array [0] = 0
10101
10102   ;
10103   return 0;
10104 }
10105 _ACEOF
10106 rm -f conftest.$ac_objext
10107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10108   (eval $ac_compile) 2>conftest.er1
10109   ac_status=$?
10110   grep -v '^ *+' conftest.er1 >conftest.err
10111   rm -f conftest.er1
10112   cat conftest.err >&5
10113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10114   (exit $ac_status); } &&
10115          { ac_try='test -z "$ac_c_werror_flag"
10116                          || test ! -s conftest.err'
10117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10118   (eval $ac_try) 2>&5
10119   ac_status=$?
10120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10121   (exit $ac_status); }; } &&
10122          { ac_try='test -s conftest.$ac_objext'
10123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10124   (eval $ac_try) 2>&5
10125   ac_status=$?
10126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10127   (exit $ac_status); }; }; then
10128   ac_hi=$ac_mid; break
10129 else
10130   echo "$as_me: failed program was:" >&5
10131 sed 's/^/| /' conftest.$ac_ext >&5
10132
10133 ac_lo=`expr $ac_mid + 1`
10134                     if test $ac_lo -le $ac_mid; then
10135                       ac_lo= ac_hi=
10136                       break
10137                     fi
10138                     ac_mid=`expr 2 '*' $ac_mid + 1`
10139 fi
10140 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10141   done
10142 else
10143   echo "$as_me: failed program was:" >&5
10144 sed 's/^/| /' conftest.$ac_ext >&5
10145
10146 cat >conftest.$ac_ext <<_ACEOF
10147 /* confdefs.h.  */
10148 _ACEOF
10149 cat confdefs.h >>conftest.$ac_ext
10150 cat >>conftest.$ac_ext <<_ACEOF
10151 /* end confdefs.h.  */
10152
10153 int
10154 main ()
10155 {
10156 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) < 0)];
10157 test_array [0] = 0
10158
10159   ;
10160   return 0;
10161 }
10162 _ACEOF
10163 rm -f conftest.$ac_objext
10164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10165   (eval $ac_compile) 2>conftest.er1
10166   ac_status=$?
10167   grep -v '^ *+' conftest.er1 >conftest.err
10168   rm -f conftest.er1
10169   cat conftest.err >&5
10170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10171   (exit $ac_status); } &&
10172          { ac_try='test -z "$ac_c_werror_flag"
10173                          || test ! -s conftest.err'
10174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10175   (eval $ac_try) 2>&5
10176   ac_status=$?
10177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178   (exit $ac_status); }; } &&
10179          { ac_try='test -s conftest.$ac_objext'
10180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10181   (eval $ac_try) 2>&5
10182   ac_status=$?
10183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10184   (exit $ac_status); }; }; then
10185   ac_hi=-1 ac_mid=-1
10186   while :; do
10187     cat >conftest.$ac_ext <<_ACEOF
10188 /* confdefs.h.  */
10189 _ACEOF
10190 cat confdefs.h >>conftest.$ac_ext
10191 cat >>conftest.$ac_ext <<_ACEOF
10192 /* end confdefs.h.  */
10193
10194 int
10195 main ()
10196 {
10197 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) >= $ac_mid)];
10198 test_array [0] = 0
10199
10200   ;
10201   return 0;
10202 }
10203 _ACEOF
10204 rm -f conftest.$ac_objext
10205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10206   (eval $ac_compile) 2>conftest.er1
10207   ac_status=$?
10208   grep -v '^ *+' conftest.er1 >conftest.err
10209   rm -f conftest.er1
10210   cat conftest.err >&5
10211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10212   (exit $ac_status); } &&
10213          { ac_try='test -z "$ac_c_werror_flag"
10214                          || test ! -s conftest.err'
10215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10216   (eval $ac_try) 2>&5
10217   ac_status=$?
10218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10219   (exit $ac_status); }; } &&
10220          { ac_try='test -s conftest.$ac_objext'
10221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10222   (eval $ac_try) 2>&5
10223   ac_status=$?
10224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10225   (exit $ac_status); }; }; then
10226   ac_lo=$ac_mid; break
10227 else
10228   echo "$as_me: failed program was:" >&5
10229 sed 's/^/| /' conftest.$ac_ext >&5
10230
10231 ac_hi=`expr '(' $ac_mid ')' - 1`
10232                        if test $ac_mid -le $ac_hi; then
10233                          ac_lo= ac_hi=
10234                          break
10235                        fi
10236                        ac_mid=`expr 2 '*' $ac_mid`
10237 fi
10238 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10239   done
10240 else
10241   echo "$as_me: failed program was:" >&5
10242 sed 's/^/| /' conftest.$ac_ext >&5
10243
10244 ac_lo= ac_hi=
10245 fi
10246 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10247 fi
10248 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10249 # Binary search between lo and hi bounds.
10250 while test "x$ac_lo" != "x$ac_hi"; do
10251   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10252   cat >conftest.$ac_ext <<_ACEOF
10253 /* confdefs.h.  */
10254 _ACEOF
10255 cat confdefs.h >>conftest.$ac_ext
10256 cat >>conftest.$ac_ext <<_ACEOF
10257 /* end confdefs.h.  */
10258
10259 int
10260 main ()
10261 {
10262 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) <= $ac_mid)];
10263 test_array [0] = 0
10264
10265   ;
10266   return 0;
10267 }
10268 _ACEOF
10269 rm -f conftest.$ac_objext
10270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10271   (eval $ac_compile) 2>conftest.er1
10272   ac_status=$?
10273   grep -v '^ *+' conftest.er1 >conftest.err
10274   rm -f conftest.er1
10275   cat conftest.err >&5
10276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10277   (exit $ac_status); } &&
10278          { ac_try='test -z "$ac_c_werror_flag"
10279                          || test ! -s conftest.err'
10280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10281   (eval $ac_try) 2>&5
10282   ac_status=$?
10283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10284   (exit $ac_status); }; } &&
10285          { ac_try='test -s conftest.$ac_objext'
10286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10287   (eval $ac_try) 2>&5
10288   ac_status=$?
10289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10290   (exit $ac_status); }; }; then
10291   ac_hi=$ac_mid
10292 else
10293   echo "$as_me: failed program was:" >&5
10294 sed 's/^/| /' conftest.$ac_ext >&5
10295
10296 ac_lo=`expr '(' $ac_mid ')' + 1`
10297 fi
10298 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10299 done
10300 case $ac_lo in
10301 ?*) OMP_LOCK_ALIGN=$ac_lo;;
10302 '')  ;;
10303 esac
10304 else
10305   if test "$cross_compiling" = yes; then
10306   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10307 See \`config.log' for more details." >&5
10308 echo "$as_me: error: cannot run test program while cross compiling
10309 See \`config.log' for more details." >&2;}
10310    { (exit 1); exit 1; }; }
10311 else
10312   cat >conftest.$ac_ext <<_ACEOF
10313 /* confdefs.h.  */
10314 _ACEOF
10315 cat confdefs.h >>conftest.$ac_ext
10316 cat >>conftest.$ac_ext <<_ACEOF
10317 /* end confdefs.h.  */
10318
10319 long longval () { return __alignof (omp_lock_t); }
10320 unsigned long ulongval () { return __alignof (omp_lock_t); }
10321 #include <stdio.h>
10322 #include <stdlib.h>
10323 int
10324 main ()
10325 {
10326
10327   FILE *f = fopen ("conftest.val", "w");
10328   if (! f)
10329     exit (1);
10330   if ((__alignof (omp_lock_t)) < 0)
10331     {
10332       long i = longval ();
10333       if (i != (__alignof (omp_lock_t)))
10334         exit (1);
10335       fprintf (f, "%ld\n", i);
10336     }
10337   else
10338     {
10339       unsigned long i = ulongval ();
10340       if (i != (__alignof (omp_lock_t)))
10341         exit (1);
10342       fprintf (f, "%lu\n", i);
10343     }
10344   exit (ferror (f) || fclose (f) != 0);
10345
10346   ;
10347   return 0;
10348 }
10349 _ACEOF
10350 rm -f conftest$ac_exeext
10351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10352   (eval $ac_link) 2>&5
10353   ac_status=$?
10354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10355   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10357   (eval $ac_try) 2>&5
10358   ac_status=$?
10359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360   (exit $ac_status); }; }; then
10361   OMP_LOCK_ALIGN=`cat conftest.val`
10362 else
10363   echo "$as_me: program exited with status $ac_status" >&5
10364 echo "$as_me: failed program was:" >&5
10365 sed 's/^/| /' conftest.$ac_ext >&5
10366
10367 fi
10368 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10369 fi
10370 fi
10371 rm -f conftest.val
10372 if test "$cross_compiling" = yes; then
10373   # Depending upon the size, compute the lo and hi bounds.
10374 cat >conftest.$ac_ext <<_ACEOF
10375 /* confdefs.h.  */
10376 _ACEOF
10377 cat confdefs.h >>conftest.$ac_ext
10378 cat >>conftest.$ac_ext <<_ACEOF
10379 /* end confdefs.h.  */
10380
10381 int
10382 main ()
10383 {
10384 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) >= 0)];
10385 test_array [0] = 0
10386
10387   ;
10388   return 0;
10389 }
10390 _ACEOF
10391 rm -f conftest.$ac_objext
10392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10393   (eval $ac_compile) 2>conftest.er1
10394   ac_status=$?
10395   grep -v '^ *+' conftest.er1 >conftest.err
10396   rm -f conftest.er1
10397   cat conftest.err >&5
10398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10399   (exit $ac_status); } &&
10400          { ac_try='test -z "$ac_c_werror_flag"
10401                          || test ! -s conftest.err'
10402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10403   (eval $ac_try) 2>&5
10404   ac_status=$?
10405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10406   (exit $ac_status); }; } &&
10407          { ac_try='test -s conftest.$ac_objext'
10408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10409   (eval $ac_try) 2>&5
10410   ac_status=$?
10411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10412   (exit $ac_status); }; }; then
10413   ac_lo=0 ac_mid=0
10414   while :; do
10415     cat >conftest.$ac_ext <<_ACEOF
10416 /* confdefs.h.  */
10417 _ACEOF
10418 cat confdefs.h >>conftest.$ac_ext
10419 cat >>conftest.$ac_ext <<_ACEOF
10420 /* end confdefs.h.  */
10421
10422 int
10423 main ()
10424 {
10425 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) <= $ac_mid)];
10426 test_array [0] = 0
10427
10428   ;
10429   return 0;
10430 }
10431 _ACEOF
10432 rm -f conftest.$ac_objext
10433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10434   (eval $ac_compile) 2>conftest.er1
10435   ac_status=$?
10436   grep -v '^ *+' conftest.er1 >conftest.err
10437   rm -f conftest.er1
10438   cat conftest.err >&5
10439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10440   (exit $ac_status); } &&
10441          { ac_try='test -z "$ac_c_werror_flag"
10442                          || test ! -s conftest.err'
10443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10444   (eval $ac_try) 2>&5
10445   ac_status=$?
10446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10447   (exit $ac_status); }; } &&
10448          { ac_try='test -s conftest.$ac_objext'
10449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10450   (eval $ac_try) 2>&5
10451   ac_status=$?
10452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10453   (exit $ac_status); }; }; then
10454   ac_hi=$ac_mid; break
10455 else
10456   echo "$as_me: failed program was:" >&5
10457 sed 's/^/| /' conftest.$ac_ext >&5
10458
10459 ac_lo=`expr $ac_mid + 1`
10460                     if test $ac_lo -le $ac_mid; then
10461                       ac_lo= ac_hi=
10462                       break
10463                     fi
10464                     ac_mid=`expr 2 '*' $ac_mid + 1`
10465 fi
10466 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10467   done
10468 else
10469   echo "$as_me: failed program was:" >&5
10470 sed 's/^/| /' conftest.$ac_ext >&5
10471
10472 cat >conftest.$ac_ext <<_ACEOF
10473 /* confdefs.h.  */
10474 _ACEOF
10475 cat confdefs.h >>conftest.$ac_ext
10476 cat >>conftest.$ac_ext <<_ACEOF
10477 /* end confdefs.h.  */
10478
10479 int
10480 main ()
10481 {
10482 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) < 0)];
10483 test_array [0] = 0
10484
10485   ;
10486   return 0;
10487 }
10488 _ACEOF
10489 rm -f conftest.$ac_objext
10490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10491   (eval $ac_compile) 2>conftest.er1
10492   ac_status=$?
10493   grep -v '^ *+' conftest.er1 >conftest.err
10494   rm -f conftest.er1
10495   cat conftest.err >&5
10496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10497   (exit $ac_status); } &&
10498          { ac_try='test -z "$ac_c_werror_flag"
10499                          || test ! -s conftest.err'
10500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10501   (eval $ac_try) 2>&5
10502   ac_status=$?
10503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10504   (exit $ac_status); }; } &&
10505          { ac_try='test -s conftest.$ac_objext'
10506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10507   (eval $ac_try) 2>&5
10508   ac_status=$?
10509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10510   (exit $ac_status); }; }; then
10511   ac_hi=-1 ac_mid=-1
10512   while :; do
10513     cat >conftest.$ac_ext <<_ACEOF
10514 /* confdefs.h.  */
10515 _ACEOF
10516 cat confdefs.h >>conftest.$ac_ext
10517 cat >>conftest.$ac_ext <<_ACEOF
10518 /* end confdefs.h.  */
10519
10520 int
10521 main ()
10522 {
10523 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) >= $ac_mid)];
10524 test_array [0] = 0
10525
10526   ;
10527   return 0;
10528 }
10529 _ACEOF
10530 rm -f conftest.$ac_objext
10531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10532   (eval $ac_compile) 2>conftest.er1
10533   ac_status=$?
10534   grep -v '^ *+' conftest.er1 >conftest.err
10535   rm -f conftest.er1
10536   cat conftest.err >&5
10537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10538   (exit $ac_status); } &&
10539          { ac_try='test -z "$ac_c_werror_flag"
10540                          || test ! -s conftest.err'
10541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10542   (eval $ac_try) 2>&5
10543   ac_status=$?
10544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10545   (exit $ac_status); }; } &&
10546          { ac_try='test -s conftest.$ac_objext'
10547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10548   (eval $ac_try) 2>&5
10549   ac_status=$?
10550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10551   (exit $ac_status); }; }; then
10552   ac_lo=$ac_mid; break
10553 else
10554   echo "$as_me: failed program was:" >&5
10555 sed 's/^/| /' conftest.$ac_ext >&5
10556
10557 ac_hi=`expr '(' $ac_mid ')' - 1`
10558                        if test $ac_mid -le $ac_hi; then
10559                          ac_lo= ac_hi=
10560                          break
10561                        fi
10562                        ac_mid=`expr 2 '*' $ac_mid`
10563 fi
10564 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10565   done
10566 else
10567   echo "$as_me: failed program was:" >&5
10568 sed 's/^/| /' conftest.$ac_ext >&5
10569
10570 ac_lo= ac_hi=
10571 fi
10572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10573 fi
10574 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10575 # Binary search between lo and hi bounds.
10576 while test "x$ac_lo" != "x$ac_hi"; do
10577   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10578   cat >conftest.$ac_ext <<_ACEOF
10579 /* confdefs.h.  */
10580 _ACEOF
10581 cat confdefs.h >>conftest.$ac_ext
10582 cat >>conftest.$ac_ext <<_ACEOF
10583 /* end confdefs.h.  */
10584
10585 int
10586 main ()
10587 {
10588 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) <= $ac_mid)];
10589 test_array [0] = 0
10590
10591   ;
10592   return 0;
10593 }
10594 _ACEOF
10595 rm -f conftest.$ac_objext
10596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10597   (eval $ac_compile) 2>conftest.er1
10598   ac_status=$?
10599   grep -v '^ *+' conftest.er1 >conftest.err
10600   rm -f conftest.er1
10601   cat conftest.err >&5
10602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10603   (exit $ac_status); } &&
10604          { ac_try='test -z "$ac_c_werror_flag"
10605                          || test ! -s conftest.err'
10606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10607   (eval $ac_try) 2>&5
10608   ac_status=$?
10609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10610   (exit $ac_status); }; } &&
10611          { ac_try='test -s conftest.$ac_objext'
10612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10613   (eval $ac_try) 2>&5
10614   ac_status=$?
10615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10616   (exit $ac_status); }; }; then
10617   ac_hi=$ac_mid
10618 else
10619   echo "$as_me: failed program was:" >&5
10620 sed 's/^/| /' conftest.$ac_ext >&5
10621
10622 ac_lo=`expr '(' $ac_mid ')' + 1`
10623 fi
10624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10625 done
10626 case $ac_lo in
10627 ?*) OMP_NEST_LOCK_SIZE=$ac_lo;;
10628 '')  ;;
10629 esac
10630 else
10631   if test "$cross_compiling" = yes; then
10632   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10633 See \`config.log' for more details." >&5
10634 echo "$as_me: error: cannot run test program while cross compiling
10635 See \`config.log' for more details." >&2;}
10636    { (exit 1); exit 1; }; }
10637 else
10638   cat >conftest.$ac_ext <<_ACEOF
10639 /* confdefs.h.  */
10640 _ACEOF
10641 cat confdefs.h >>conftest.$ac_ext
10642 cat >>conftest.$ac_ext <<_ACEOF
10643 /* end confdefs.h.  */
10644
10645 long longval () { return sizeof (omp_nest_lock_t); }
10646 unsigned long ulongval () { return sizeof (omp_nest_lock_t); }
10647 #include <stdio.h>
10648 #include <stdlib.h>
10649 int
10650 main ()
10651 {
10652
10653   FILE *f = fopen ("conftest.val", "w");
10654   if (! f)
10655     exit (1);
10656   if ((sizeof (omp_nest_lock_t)) < 0)
10657     {
10658       long i = longval ();
10659       if (i != (sizeof (omp_nest_lock_t)))
10660         exit (1);
10661       fprintf (f, "%ld\n", i);
10662     }
10663   else
10664     {
10665       unsigned long i = ulongval ();
10666       if (i != (sizeof (omp_nest_lock_t)))
10667         exit (1);
10668       fprintf (f, "%lu\n", i);
10669     }
10670   exit (ferror (f) || fclose (f) != 0);
10671
10672   ;
10673   return 0;
10674 }
10675 _ACEOF
10676 rm -f conftest$ac_exeext
10677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10678   (eval $ac_link) 2>&5
10679   ac_status=$?
10680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10681   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10683   (eval $ac_try) 2>&5
10684   ac_status=$?
10685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10686   (exit $ac_status); }; }; then
10687   OMP_NEST_LOCK_SIZE=`cat conftest.val`
10688 else
10689   echo "$as_me: program exited with status $ac_status" >&5
10690 echo "$as_me: failed program was:" >&5
10691 sed 's/^/| /' conftest.$ac_ext >&5
10692
10693 fi
10694 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10695 fi
10696 fi
10697 rm -f conftest.val
10698 if test "$cross_compiling" = yes; then
10699   # Depending upon the size, compute the lo and hi bounds.
10700 cat >conftest.$ac_ext <<_ACEOF
10701 /* confdefs.h.  */
10702 _ACEOF
10703 cat confdefs.h >>conftest.$ac_ext
10704 cat >>conftest.$ac_ext <<_ACEOF
10705 /* end confdefs.h.  */
10706
10707 int
10708 main ()
10709 {
10710 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) >= 0)];
10711 test_array [0] = 0
10712
10713   ;
10714   return 0;
10715 }
10716 _ACEOF
10717 rm -f conftest.$ac_objext
10718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10719   (eval $ac_compile) 2>conftest.er1
10720   ac_status=$?
10721   grep -v '^ *+' conftest.er1 >conftest.err
10722   rm -f conftest.er1
10723   cat conftest.err >&5
10724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10725   (exit $ac_status); } &&
10726          { ac_try='test -z "$ac_c_werror_flag"
10727                          || test ! -s conftest.err'
10728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10729   (eval $ac_try) 2>&5
10730   ac_status=$?
10731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10732   (exit $ac_status); }; } &&
10733          { ac_try='test -s conftest.$ac_objext'
10734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10735   (eval $ac_try) 2>&5
10736   ac_status=$?
10737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10738   (exit $ac_status); }; }; then
10739   ac_lo=0 ac_mid=0
10740   while :; do
10741     cat >conftest.$ac_ext <<_ACEOF
10742 /* confdefs.h.  */
10743 _ACEOF
10744 cat confdefs.h >>conftest.$ac_ext
10745 cat >>conftest.$ac_ext <<_ACEOF
10746 /* end confdefs.h.  */
10747
10748 int
10749 main ()
10750 {
10751 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) <= $ac_mid)];
10752 test_array [0] = 0
10753
10754   ;
10755   return 0;
10756 }
10757 _ACEOF
10758 rm -f conftest.$ac_objext
10759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10760   (eval $ac_compile) 2>conftest.er1
10761   ac_status=$?
10762   grep -v '^ *+' conftest.er1 >conftest.err
10763   rm -f conftest.er1
10764   cat conftest.err >&5
10765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10766   (exit $ac_status); } &&
10767          { ac_try='test -z "$ac_c_werror_flag"
10768                          || test ! -s conftest.err'
10769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10770   (eval $ac_try) 2>&5
10771   ac_status=$?
10772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10773   (exit $ac_status); }; } &&
10774          { ac_try='test -s conftest.$ac_objext'
10775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10776   (eval $ac_try) 2>&5
10777   ac_status=$?
10778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10779   (exit $ac_status); }; }; then
10780   ac_hi=$ac_mid; break
10781 else
10782   echo "$as_me: failed program was:" >&5
10783 sed 's/^/| /' conftest.$ac_ext >&5
10784
10785 ac_lo=`expr $ac_mid + 1`
10786                     if test $ac_lo -le $ac_mid; then
10787                       ac_lo= ac_hi=
10788                       break
10789                     fi
10790                     ac_mid=`expr 2 '*' $ac_mid + 1`
10791 fi
10792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10793   done
10794 else
10795   echo "$as_me: failed program was:" >&5
10796 sed 's/^/| /' conftest.$ac_ext >&5
10797
10798 cat >conftest.$ac_ext <<_ACEOF
10799 /* confdefs.h.  */
10800 _ACEOF
10801 cat confdefs.h >>conftest.$ac_ext
10802 cat >>conftest.$ac_ext <<_ACEOF
10803 /* end confdefs.h.  */
10804
10805 int
10806 main ()
10807 {
10808 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) < 0)];
10809 test_array [0] = 0
10810
10811   ;
10812   return 0;
10813 }
10814 _ACEOF
10815 rm -f conftest.$ac_objext
10816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10817   (eval $ac_compile) 2>conftest.er1
10818   ac_status=$?
10819   grep -v '^ *+' conftest.er1 >conftest.err
10820   rm -f conftest.er1
10821   cat conftest.err >&5
10822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10823   (exit $ac_status); } &&
10824          { ac_try='test -z "$ac_c_werror_flag"
10825                          || test ! -s conftest.err'
10826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10827   (eval $ac_try) 2>&5
10828   ac_status=$?
10829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10830   (exit $ac_status); }; } &&
10831          { ac_try='test -s conftest.$ac_objext'
10832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10833   (eval $ac_try) 2>&5
10834   ac_status=$?
10835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10836   (exit $ac_status); }; }; then
10837   ac_hi=-1 ac_mid=-1
10838   while :; do
10839     cat >conftest.$ac_ext <<_ACEOF
10840 /* confdefs.h.  */
10841 _ACEOF
10842 cat confdefs.h >>conftest.$ac_ext
10843 cat >>conftest.$ac_ext <<_ACEOF
10844 /* end confdefs.h.  */
10845
10846 int
10847 main ()
10848 {
10849 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) >= $ac_mid)];
10850 test_array [0] = 0
10851
10852   ;
10853   return 0;
10854 }
10855 _ACEOF
10856 rm -f conftest.$ac_objext
10857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10858   (eval $ac_compile) 2>conftest.er1
10859   ac_status=$?
10860   grep -v '^ *+' conftest.er1 >conftest.err
10861   rm -f conftest.er1
10862   cat conftest.err >&5
10863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10864   (exit $ac_status); } &&
10865          { ac_try='test -z "$ac_c_werror_flag"
10866                          || test ! -s conftest.err'
10867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10868   (eval $ac_try) 2>&5
10869   ac_status=$?
10870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10871   (exit $ac_status); }; } &&
10872          { ac_try='test -s conftest.$ac_objext'
10873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10874   (eval $ac_try) 2>&5
10875   ac_status=$?
10876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10877   (exit $ac_status); }; }; then
10878   ac_lo=$ac_mid; break
10879 else
10880   echo "$as_me: failed program was:" >&5
10881 sed 's/^/| /' conftest.$ac_ext >&5
10882
10883 ac_hi=`expr '(' $ac_mid ')' - 1`
10884                        if test $ac_mid -le $ac_hi; then
10885                          ac_lo= ac_hi=
10886                          break
10887                        fi
10888                        ac_mid=`expr 2 '*' $ac_mid`
10889 fi
10890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10891   done
10892 else
10893   echo "$as_me: failed program was:" >&5
10894 sed 's/^/| /' conftest.$ac_ext >&5
10895
10896 ac_lo= ac_hi=
10897 fi
10898 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10899 fi
10900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10901 # Binary search between lo and hi bounds.
10902 while test "x$ac_lo" != "x$ac_hi"; do
10903   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10904   cat >conftest.$ac_ext <<_ACEOF
10905 /* confdefs.h.  */
10906 _ACEOF
10907 cat confdefs.h >>conftest.$ac_ext
10908 cat >>conftest.$ac_ext <<_ACEOF
10909 /* end confdefs.h.  */
10910
10911 int
10912 main ()
10913 {
10914 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) <= $ac_mid)];
10915 test_array [0] = 0
10916
10917   ;
10918   return 0;
10919 }
10920 _ACEOF
10921 rm -f conftest.$ac_objext
10922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10923   (eval $ac_compile) 2>conftest.er1
10924   ac_status=$?
10925   grep -v '^ *+' conftest.er1 >conftest.err
10926   rm -f conftest.er1
10927   cat conftest.err >&5
10928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10929   (exit $ac_status); } &&
10930          { ac_try='test -z "$ac_c_werror_flag"
10931                          || test ! -s conftest.err'
10932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10933   (eval $ac_try) 2>&5
10934   ac_status=$?
10935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10936   (exit $ac_status); }; } &&
10937          { ac_try='test -s conftest.$ac_objext'
10938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10939   (eval $ac_try) 2>&5
10940   ac_status=$?
10941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10942   (exit $ac_status); }; }; then
10943   ac_hi=$ac_mid
10944 else
10945   echo "$as_me: failed program was:" >&5
10946 sed 's/^/| /' conftest.$ac_ext >&5
10947
10948 ac_lo=`expr '(' $ac_mid ')' + 1`
10949 fi
10950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10951 done
10952 case $ac_lo in
10953 ?*) OMP_NEST_LOCK_ALIGN=$ac_lo;;
10954 '')  ;;
10955 esac
10956 else
10957   if test "$cross_compiling" = yes; then
10958   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10959 See \`config.log' for more details." >&5
10960 echo "$as_me: error: cannot run test program while cross compiling
10961 See \`config.log' for more details." >&2;}
10962    { (exit 1); exit 1; }; }
10963 else
10964   cat >conftest.$ac_ext <<_ACEOF
10965 /* confdefs.h.  */
10966 _ACEOF
10967 cat confdefs.h >>conftest.$ac_ext
10968 cat >>conftest.$ac_ext <<_ACEOF
10969 /* end confdefs.h.  */
10970
10971 long longval () { return __alignof (omp_nest_lock_t); }
10972 unsigned long ulongval () { return __alignof (omp_nest_lock_t); }
10973 #include <stdio.h>
10974 #include <stdlib.h>
10975 int
10976 main ()
10977 {
10978
10979   FILE *f = fopen ("conftest.val", "w");
10980   if (! f)
10981     exit (1);
10982   if ((__alignof (omp_nest_lock_t)) < 0)
10983     {
10984       long i = longval ();
10985       if (i != (__alignof (omp_nest_lock_t)))
10986         exit (1);
10987       fprintf (f, "%ld\n", i);
10988     }
10989   else
10990     {
10991       unsigned long i = ulongval ();
10992       if (i != (__alignof (omp_nest_lock_t)))
10993         exit (1);
10994       fprintf (f, "%lu\n", i);
10995     }
10996   exit (ferror (f) || fclose (f) != 0);
10997
10998   ;
10999   return 0;
11000 }
11001 _ACEOF
11002 rm -f conftest$ac_exeext
11003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11004   (eval $ac_link) 2>&5
11005   ac_status=$?
11006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11009   (eval $ac_try) 2>&5
11010   ac_status=$?
11011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11012   (exit $ac_status); }; }; then
11013   OMP_NEST_LOCK_ALIGN=`cat conftest.val`
11014 else
11015   echo "$as_me: program exited with status $ac_status" >&5
11016 echo "$as_me: failed program was:" >&5
11017 sed 's/^/| /' conftest.$ac_ext >&5
11018
11019 fi
11020 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11021 fi
11022 fi
11023 rm -f conftest.val
11024
11025 # If the lock fits in an integer, then arrange for Fortran to use that
11026 # integer.  If it doesn't, then arrange for Fortran to use a pointer.
11027 # Except that we don't have a way at present to multi-lib the installed
11028 # Fortran modules, so we assume 8 bytes for pointers, regardless of the
11029 # actual target.
11030 OMP_LOCK_KIND=$OMP_LOCK_SIZE
11031 OMP_NEST_LOCK_KIND=$OMP_NEST_LOCK_SIZE
11032 if test $OMP_LOCK_SIZE -gt 8 || test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then
11033   OMP_LOCK_KIND=8
11034 fi
11035 if test $OMP_NEST_LOCK_SIZE -gt 8 || test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then
11036   OMP_NEST_LOCK_KIND=8
11037 fi
11038
11039
11040
11041
11042
11043
11044
11045 CFLAGS="$save_CFLAGS"
11046
11047                                         ac_config_files="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h"
11048
11049                               ac_config_files="$ac_config_files Makefile testsuite/Makefile libgomp.spec"
11050
11051 cat >confcache <<\_ACEOF
11052 # This file is a shell script that caches the results of configure
11053 # tests run on this system so they can be shared between configure
11054 # scripts and configure runs, see configure's option --config-cache.
11055 # It is not useful on other systems.  If it contains results you don't
11056 # want to keep, you may remove or edit it.
11057 #
11058 # config.status only pays attention to the cache file if you give it
11059 # the --recheck option to rerun configure.
11060 #
11061 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11062 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11063 # following values.
11064
11065 _ACEOF
11066
11067 # The following way of writing the cache mishandles newlines in values,
11068 # but we know of no workaround that is simple, portable, and efficient.
11069 # So, don't put newlines in cache variables' values.
11070 # Ultrix sh set writes to stderr and can't be redirected directly,
11071 # and sets the high bit in the cache file unless we assign to the vars.
11072 {
11073   (set) 2>&1 |
11074     case `(ac_space=' '; set | grep ac_space) 2>&1` in
11075     *ac_space=\ *)
11076       # `set' does not quote correctly, so add quotes (double-quote
11077       # substitution turns \\\\ into \\, and sed turns \\ into \).
11078       sed -n \
11079         "s/'/'\\\\''/g;
11080           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11081       ;;
11082     *)
11083       # `set' quotes correctly as required by POSIX, so do not add quotes.
11084       sed -n \
11085         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11086       ;;
11087     esac;
11088 } |
11089   sed '
11090      t clear
11091      : clear
11092      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11093      t end
11094      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11095      : end' >>confcache
11096 if diff $cache_file confcache >/dev/null 2>&1; then :; else
11097   if test -w $cache_file; then
11098     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11099     cat confcache >$cache_file
11100   else
11101     echo "not updating unwritable cache $cache_file"
11102   fi
11103 fi
11104 rm -f confcache
11105
11106 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11107 # Let make expand exec_prefix.
11108 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11109
11110 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11111 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11112 # trailing colons and then remove the whole line if VPATH becomes empty
11113 # (actually we leave an empty line to preserve line numbers).
11114 if test "x$srcdir" = x.; then
11115   ac_vpsub='/^[  ]*VPATH[        ]*=/{
11116 s/:*\$(srcdir):*/:/;
11117 s/:*\${srcdir}:*/:/;
11118 s/:*@srcdir@:*/:/;
11119 s/^\([^=]*=[     ]*\):*/\1/;
11120 s/:*$//;
11121 s/^[^=]*=[       ]*$//;
11122 }'
11123 fi
11124
11125 DEFS=-DHAVE_CONFIG_H
11126
11127 ac_libobjs=
11128 ac_ltlibobjs=
11129 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11130   # 1. Remove the extension, and $U if already installed.
11131   ac_i=`echo "$ac_i" |
11132          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11133   # 2. Add them.
11134   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11135   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11136 done
11137 LIBOBJS=$ac_libobjs
11138
11139 LTLIBOBJS=$ac_ltlibobjs
11140
11141
11142 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
11143   { { echo "$as_me:$LINENO: error: conditional \"GENINSRC\" was never defined.
11144 Usually this means the macro was only invoked conditionally." >&5
11145 echo "$as_me: error: conditional \"GENINSRC\" was never defined.
11146 Usually this means the macro was only invoked conditionally." >&2;}
11147    { (exit 1); exit 1; }; }
11148 fi
11149 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11150   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11151 Usually this means the macro was only invoked conditionally." >&5
11152 echo "$as_me: error: conditional \"AMDEP\" was never defined.
11153 Usually this means the macro was only invoked conditionally." >&2;}
11154    { (exit 1); exit 1; }; }
11155 fi
11156 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11157   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11158 Usually this means the macro was only invoked conditionally." >&5
11159 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11160 Usually this means the macro was only invoked conditionally." >&2;}
11161    { (exit 1); exit 1; }; }
11162 fi
11163 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11164   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
11165 Usually this means the macro was only invoked conditionally." >&5
11166 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
11167 Usually this means the macro was only invoked conditionally." >&2;}
11168    { (exit 1); exit 1; }; }
11169 fi
11170 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then
11171   { { echo "$as_me:$LINENO: error: conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
11172 Usually this means the macro was only invoked conditionally." >&5
11173 echo "$as_me: error: conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
11174 Usually this means the macro was only invoked conditionally." >&2;}
11175    { (exit 1); exit 1; }; }
11176 fi
11177 if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then
11178   { { echo "$as_me:$LINENO: error: conditional \"USE_FORTRAN\" was never defined.
11179 Usually this means the macro was only invoked conditionally." >&5
11180 echo "$as_me: error: conditional \"USE_FORTRAN\" was never defined.
11181 Usually this means the macro was only invoked conditionally." >&2;}
11182    { (exit 1); exit 1; }; }
11183 fi
11184
11185 : ${CONFIG_STATUS=./config.status}
11186 ac_clean_files_save=$ac_clean_files
11187 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11188 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11189 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11190 cat >$CONFIG_STATUS <<_ACEOF
11191 #! $SHELL
11192 # Generated by $as_me.
11193 # Run this file to recreate the current configuration.
11194 # Compiler output produced by configure, useful for debugging
11195 # configure, is in config.log if it exists.
11196
11197 debug=false
11198 ac_cs_recheck=false
11199 ac_cs_silent=false
11200 SHELL=\${CONFIG_SHELL-$SHELL}
11201 _ACEOF
11202
11203 cat >>$CONFIG_STATUS <<\_ACEOF
11204 ## --------------------- ##
11205 ## M4sh Initialization.  ##
11206 ## --------------------- ##
11207
11208 # Be Bourne compatible
11209 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11210   emulate sh
11211   NULLCMD=:
11212   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11213   # is contrary to our usage.  Disable this feature.
11214   alias -g '${1+"$@"}'='"$@"'
11215 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11216   set -o posix
11217 fi
11218 DUALCASE=1; export DUALCASE # for MKS sh
11219
11220 # Support unset when possible.
11221 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11222   as_unset=unset
11223 else
11224   as_unset=false
11225 fi
11226
11227
11228 # Work around bugs in pre-3.0 UWIN ksh.
11229 $as_unset ENV MAIL MAILPATH
11230 PS1='$ '
11231 PS2='> '
11232 PS4='+ '
11233
11234 # NLS nuisances.
11235 for as_var in \
11236   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11237   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11238   LC_TELEPHONE LC_TIME
11239 do
11240   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11241     eval $as_var=C; export $as_var
11242   else
11243     $as_unset $as_var
11244   fi
11245 done
11246
11247 # Required to use basename.
11248 if expr a : '\(a\)' >/dev/null 2>&1; then
11249   as_expr=expr
11250 else
11251   as_expr=false
11252 fi
11253
11254 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11255   as_basename=basename
11256 else
11257   as_basename=false
11258 fi
11259
11260
11261 # Name of the executable.
11262 as_me=`$as_basename "$0" ||
11263 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11264          X"$0" : 'X\(//\)$' \| \
11265          X"$0" : 'X\(/\)$' \| \
11266          .     : '\(.\)' 2>/dev/null ||
11267 echo X/"$0" |
11268     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11269           /^X\/\(\/\/\)$/{ s//\1/; q; }
11270           /^X\/\(\/\).*/{ s//\1/; q; }
11271           s/.*/./; q'`
11272
11273
11274 # PATH needs CR, and LINENO needs CR and PATH.
11275 # Avoid depending upon Character Ranges.
11276 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11277 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11278 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11279 as_cr_digits='0123456789'
11280 as_cr_alnum=$as_cr_Letters$as_cr_digits
11281
11282 # The user is always right.
11283 if test "${PATH_SEPARATOR+set}" != set; then
11284   echo "#! /bin/sh" >conf$$.sh
11285   echo  "exit 0"   >>conf$$.sh
11286   chmod +x conf$$.sh
11287   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11288     PATH_SEPARATOR=';'
11289   else
11290     PATH_SEPARATOR=:
11291   fi
11292   rm -f conf$$.sh
11293 fi
11294
11295
11296   as_lineno_1=$LINENO
11297   as_lineno_2=$LINENO
11298   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11299   test "x$as_lineno_1" != "x$as_lineno_2" &&
11300   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
11301   # Find who we are.  Look in the path if we contain no path at all
11302   # relative or not.
11303   case $0 in
11304     *[\\/]* ) as_myself=$0 ;;
11305     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11306 for as_dir in $PATH
11307 do
11308   IFS=$as_save_IFS
11309   test -z "$as_dir" && as_dir=.
11310   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11311 done
11312
11313        ;;
11314   esac
11315   # We did not find ourselves, most probably we were run as `sh COMMAND'
11316   # in which case we are not to be found in the path.
11317   if test "x$as_myself" = x; then
11318     as_myself=$0
11319   fi
11320   if test ! -f "$as_myself"; then
11321     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11322 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11323    { (exit 1); exit 1; }; }
11324   fi
11325   case $CONFIG_SHELL in
11326   '')
11327     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11328 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11329 do
11330   IFS=$as_save_IFS
11331   test -z "$as_dir" && as_dir=.
11332   for as_base in sh bash ksh sh5; do
11333          case $as_dir in
11334          /*)
11335            if ("$as_dir/$as_base" -c '
11336   as_lineno_1=$LINENO
11337   as_lineno_2=$LINENO
11338   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11339   test "x$as_lineno_1" != "x$as_lineno_2" &&
11340   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
11341              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11342              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11343              CONFIG_SHELL=$as_dir/$as_base
11344              export CONFIG_SHELL
11345              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11346            fi;;
11347          esac
11348        done
11349 done
11350 ;;
11351   esac
11352
11353   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11354   # uniformly replaced by the line number.  The first 'sed' inserts a
11355   # line-number line before each line; the second 'sed' does the real
11356   # work.  The second script uses 'N' to pair each line-number line
11357   # with the numbered line, and appends trailing '-' during
11358   # substitution so that $LINENO is not a special case at line end.
11359   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11360   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
11361   sed '=' <$as_myself |
11362     sed '
11363       N
11364       s,$,-,
11365       : loop
11366       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11367       t loop
11368       s,-$,,
11369       s,^['$as_cr_digits']*\n,,
11370     ' >$as_me.lineno &&
11371   chmod +x $as_me.lineno ||
11372     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11373 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11374    { (exit 1); exit 1; }; }
11375
11376   # Don't try to exec as it changes $[0], causing all sort of problems
11377   # (the dirname of $[0] is not the place where we might find the
11378   # original and so on.  Autoconf is especially sensible to this).
11379   . ./$as_me.lineno
11380   # Exit status is that of the last command.
11381   exit
11382 }
11383
11384
11385 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11386   *c*,-n*) ECHO_N= ECHO_C='
11387 ' ECHO_T='      ' ;;
11388   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11389   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
11390 esac
11391
11392 if expr a : '\(a\)' >/dev/null 2>&1; then
11393   as_expr=expr
11394 else
11395   as_expr=false
11396 fi
11397
11398 rm -f conf$$ conf$$.exe conf$$.file
11399 echo >conf$$.file
11400 if ln -s conf$$.file conf$$ 2>/dev/null; then
11401   # We could just check for DJGPP; but this test a) works b) is more generic
11402   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11403   if test -f conf$$.exe; then
11404     # Don't use ln at all; we don't have any links
11405     as_ln_s='cp -p'
11406   else
11407     as_ln_s='ln -s'
11408   fi
11409 elif ln conf$$.file conf$$ 2>/dev/null; then
11410   as_ln_s=ln
11411 else
11412   as_ln_s='cp -p'
11413 fi
11414 rm -f conf$$ conf$$.exe conf$$.file
11415
11416 if mkdir -p . 2>/dev/null; then
11417   as_mkdir_p=:
11418 else
11419   test -d ./-p && rmdir ./-p
11420   as_mkdir_p=false
11421 fi
11422
11423 as_executable_p="test -f"
11424
11425 # Sed expression to map a string onto a valid CPP name.
11426 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11427
11428 # Sed expression to map a string onto a valid variable name.
11429 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11430
11431
11432 # IFS
11433 # We need space, tab and new line, in precisely that order.
11434 as_nl='
11435 '
11436 IFS="   $as_nl"
11437
11438 # CDPATH.
11439 $as_unset CDPATH
11440
11441 exec 6>&1
11442
11443 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11444 # report actual input values of CONFIG_FILES etc. instead of their
11445 # values after options handling.  Logging --version etc. is OK.
11446 exec 5>>config.log
11447 {
11448   echo
11449   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11450 ## Running $as_me. ##
11451 _ASBOX
11452 } >&5
11453 cat >&5 <<_CSEOF
11454
11455 This file was extended by GNU OpenMP Runtime Library $as_me 1.0, which was
11456 generated by GNU Autoconf 2.59.  Invocation command line was
11457
11458   CONFIG_FILES    = $CONFIG_FILES
11459   CONFIG_HEADERS  = $CONFIG_HEADERS
11460   CONFIG_LINKS    = $CONFIG_LINKS
11461   CONFIG_COMMANDS = $CONFIG_COMMANDS
11462   $ $0 $@
11463
11464 _CSEOF
11465 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11466 echo >&5
11467 _ACEOF
11468
11469 # Files that config.status was made for.
11470 if test -n "$ac_config_files"; then
11471   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11472 fi
11473
11474 if test -n "$ac_config_headers"; then
11475   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11476 fi
11477
11478 if test -n "$ac_config_links"; then
11479   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11480 fi
11481
11482 if test -n "$ac_config_commands"; then
11483   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11484 fi
11485
11486 cat >>$CONFIG_STATUS <<\_ACEOF
11487
11488 ac_cs_usage="\
11489 \`$as_me' instantiates files from templates according to the
11490 current configuration.
11491
11492 Usage: $0 [OPTIONS] [FILE]...
11493
11494   -h, --help       print this help, then exit
11495   -V, --version    print version number, then exit
11496   -q, --quiet      do not print progress messages
11497   -d, --debug      don't remove temporary files
11498       --recheck    update $as_me by reconfiguring in the same conditions
11499   --file=FILE[:TEMPLATE]
11500                    instantiate the configuration file FILE
11501   --header=FILE[:TEMPLATE]
11502                    instantiate the configuration header FILE
11503
11504 Configuration files:
11505 $config_files
11506
11507 Configuration headers:
11508 $config_headers
11509
11510 Configuration commands:
11511 $config_commands
11512
11513 Report bugs to <bug-autoconf@gnu.org>."
11514 _ACEOF
11515
11516 cat >>$CONFIG_STATUS <<_ACEOF
11517 ac_cs_version="\\
11518 GNU OpenMP Runtime Library config.status 1.0
11519 configured by $0, generated by GNU Autoconf 2.59,
11520   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11521
11522 Copyright (C) 2003 Free Software Foundation, Inc.
11523 This config.status script is free software; the Free Software Foundation
11524 gives unlimited permission to copy, distribute and modify it."
11525 srcdir=$srcdir
11526 INSTALL="$INSTALL"
11527 _ACEOF
11528
11529 cat >>$CONFIG_STATUS <<\_ACEOF
11530 # If no file are specified by the user, then we need to provide default
11531 # value.  By we need to know if files were specified by the user.
11532 ac_need_defaults=:
11533 while test $# != 0
11534 do
11535   case $1 in
11536   --*=*)
11537     ac_option=`expr "x$1" : 'x\([^=]*\)='`
11538     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11539     ac_shift=:
11540     ;;
11541   -*)
11542     ac_option=$1
11543     ac_optarg=$2
11544     ac_shift=shift
11545     ;;
11546   *) # This is not an option, so the user has probably given explicit
11547      # arguments.
11548      ac_option=$1
11549      ac_need_defaults=false;;
11550   esac
11551
11552   case $ac_option in
11553   # Handling of the options.
11554 _ACEOF
11555 cat >>$CONFIG_STATUS <<\_ACEOF
11556   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11557     ac_cs_recheck=: ;;
11558   --version | --vers* | -V )
11559     echo "$ac_cs_version"; exit 0 ;;
11560   --he | --h)
11561     # Conflict between --help and --header
11562     { { echo "$as_me:$LINENO: error: ambiguous option: $1
11563 Try \`$0 --help' for more information." >&5
11564 echo "$as_me: error: ambiguous option: $1
11565 Try \`$0 --help' for more information." >&2;}
11566    { (exit 1); exit 1; }; };;
11567   --help | --hel | -h )
11568     echo "$ac_cs_usage"; exit 0 ;;
11569   --debug | --d* | -d )
11570     debug=: ;;
11571   --file | --fil | --fi | --f )
11572     $ac_shift
11573     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11574     ac_need_defaults=false;;
11575   --header | --heade | --head | --hea )
11576     $ac_shift
11577     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11578     ac_need_defaults=false;;
11579   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11580   | -silent | --silent | --silen | --sile | --sil | --si | --s)
11581     ac_cs_silent=: ;;
11582
11583   # This is an error.
11584   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11585 Try \`$0 --help' for more information." >&5
11586 echo "$as_me: error: unrecognized option: $1
11587 Try \`$0 --help' for more information." >&2;}
11588    { (exit 1); exit 1; }; } ;;
11589
11590   *) ac_config_targets="$ac_config_targets $1" ;;
11591
11592   esac
11593   shift
11594 done
11595
11596 ac_configure_extra_args=
11597
11598 if $ac_cs_silent; then
11599   exec 6>/dev/null
11600   ac_configure_extra_args="$ac_configure_extra_args --silent"
11601 fi
11602
11603 _ACEOF
11604 cat >>$CONFIG_STATUS <<_ACEOF
11605 if \$ac_cs_recheck; then
11606   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11607   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11608 fi
11609
11610 _ACEOF
11611
11612 cat >>$CONFIG_STATUS <<_ACEOF
11613 #
11614 # INIT-COMMANDS section.
11615 #
11616
11617
11618 srcdir="$srcdir"
11619 host="$host"
11620 target="$target"
11621 with_multisubdir="$with_multisubdir"
11622 with_multisrctop="$with_multisrctop"
11623 with_target_subdir="$with_target_subdir"
11624 ac_configure_args="${multilib_arg} ${ac_configure_args}"
11625 multi_basedir="$multi_basedir"
11626 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
11627 CC="$CC"
11628 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11629
11630 GCC="$GCC"
11631 CC="$CC"
11632 acx_cv_header_stdint="$acx_cv_header_stdint"
11633 acx_cv_type_int8_t="$acx_cv_type_int8_t"
11634 acx_cv_type_int16_t="$acx_cv_type_int16_t"
11635 acx_cv_type_int32_t="$acx_cv_type_int32_t"
11636 acx_cv_type_int64_t="$acx_cv_type_int64_t"
11637 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
11638 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
11639 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
11640 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
11641 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
11642 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
11643 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
11644 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
11645 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
11646
11647
11648 _ACEOF
11649
11650
11651
11652 cat >>$CONFIG_STATUS <<\_ACEOF
11653 for ac_config_target in $ac_config_targets
11654 do
11655   case "$ac_config_target" in
11656   # Handling of arguments.
11657   "omp.h" ) CONFIG_FILES="$CONFIG_FILES omp.h" ;;
11658   "omp_lib.h" ) CONFIG_FILES="$CONFIG_FILES omp_lib.h" ;;
11659   "omp_lib.f90" ) CONFIG_FILES="$CONFIG_FILES omp_lib.f90" ;;
11660   "libgomp_f.h" ) CONFIG_FILES="$CONFIG_FILES libgomp_f.h" ;;
11661   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11662   "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
11663   "libgomp.spec" ) CONFIG_FILES="$CONFIG_FILES libgomp.spec" ;;
11664   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
11665   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11666   "gstdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
11667   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11668   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11669 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11670    { (exit 1); exit 1; }; };;
11671   esac
11672 done
11673
11674 # If the user did not use the arguments to specify the items to instantiate,
11675 # then the envvar interface is used.  Set only those that are not.
11676 # We use the long form for the default assignment because of an extremely
11677 # bizarre bug on SunOS 4.1.3.
11678 if $ac_need_defaults; then
11679   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11680   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11681   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11682 fi
11683
11684 # Have a temporary directory for convenience.  Make it in the build tree
11685 # simply because there is no reason to put it here, and in addition,
11686 # creating and moving files from /tmp can sometimes cause problems.
11687 # Create a temporary directory, and hook for its removal unless debugging.
11688 $debug ||
11689 {
11690   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11691   trap '{ (exit 1); exit 1; }' 1 2 13 15
11692 }
11693
11694 # Create a (secure) tmp directory for tmp files.
11695
11696 {
11697   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11698   test -n "$tmp" && test -d "$tmp"
11699 }  ||
11700 {
11701   tmp=./confstat$$-$RANDOM
11702   (umask 077 && mkdir $tmp)
11703 } ||
11704 {
11705    echo "$me: cannot create a temporary directory in ." >&2
11706    { (exit 1); exit 1; }
11707 }
11708
11709 _ACEOF
11710
11711 cat >>$CONFIG_STATUS <<_ACEOF
11712
11713 #
11714 # CONFIG_FILES section.
11715 #
11716
11717 # No need to generate the scripts if there are no CONFIG_FILES.
11718 # This happens for instance when ./config.status config.h
11719 if test -n "\$CONFIG_FILES"; then
11720   # Protect against being on the right side of a sed subst in config.status.
11721   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11722    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11723 s,@SHELL@,$SHELL,;t t
11724 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11725 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11726 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11727 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11728 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11729 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11730 s,@exec_prefix@,$exec_prefix,;t t
11731 s,@prefix@,$prefix,;t t
11732 s,@program_transform_name@,$program_transform_name,;t t
11733 s,@bindir@,$bindir,;t t
11734 s,@sbindir@,$sbindir,;t t
11735 s,@libexecdir@,$libexecdir,;t t
11736 s,@datadir@,$datadir,;t t
11737 s,@sysconfdir@,$sysconfdir,;t t
11738 s,@sharedstatedir@,$sharedstatedir,;t t
11739 s,@localstatedir@,$localstatedir,;t t
11740 s,@libdir@,$libdir,;t t
11741 s,@includedir@,$includedir,;t t
11742 s,@oldincludedir@,$oldincludedir,;t t
11743 s,@infodir@,$infodir,;t t
11744 s,@mandir@,$mandir,;t t
11745 s,@build_alias@,$build_alias,;t t
11746 s,@host_alias@,$host_alias,;t t
11747 s,@target_alias@,$target_alias,;t t
11748 s,@DEFS@,$DEFS,;t t
11749 s,@ECHO_C@,$ECHO_C,;t t
11750 s,@ECHO_N@,$ECHO_N,;t t
11751 s,@ECHO_T@,$ECHO_T,;t t
11752 s,@LIBS@,$LIBS,;t t
11753 s,@GENINSRC_TRUE@,$GENINSRC_TRUE,;t t
11754 s,@GENINSRC_FALSE@,$GENINSRC_FALSE,;t t
11755 s,@build@,$build,;t t
11756 s,@build_cpu@,$build_cpu,;t t
11757 s,@build_vendor@,$build_vendor,;t t
11758 s,@build_os@,$build_os,;t t
11759 s,@host@,$host,;t t
11760 s,@host_cpu@,$host_cpu,;t t
11761 s,@host_vendor@,$host_vendor,;t t
11762 s,@host_os@,$host_os,;t t
11763 s,@target@,$target,;t t
11764 s,@target_cpu@,$target_cpu,;t t
11765 s,@target_vendor@,$target_vendor,;t t
11766 s,@target_os@,$target_os,;t t
11767 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11768 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11769 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11770 s,@CYGPATH_W@,$CYGPATH_W,;t t
11771 s,@PACKAGE@,$PACKAGE,;t t
11772 s,@VERSION@,$VERSION,;t t
11773 s,@ACLOCAL@,$ACLOCAL,;t t
11774 s,@AUTOCONF@,$AUTOCONF,;t t
11775 s,@AUTOMAKE@,$AUTOMAKE,;t t
11776 s,@AUTOHEADER@,$AUTOHEADER,;t t
11777 s,@MAKEINFO@,$MAKEINFO,;t t
11778 s,@install_sh@,$install_sh,;t t
11779 s,@STRIP@,$STRIP,;t t
11780 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
11781 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
11782 s,@mkdir_p@,$mkdir_p,;t t
11783 s,@AWK@,$AWK,;t t
11784 s,@SET_MAKE@,$SET_MAKE,;t t
11785 s,@am__leading_dot@,$am__leading_dot,;t t
11786 s,@AMTAR@,$AMTAR,;t t
11787 s,@am__tar@,$am__tar,;t t
11788 s,@am__untar@,$am__untar,;t t
11789 s,@multi_basedir@,$multi_basedir,;t t
11790 s,@toolexecdir@,$toolexecdir,;t t
11791 s,@toolexeclibdir@,$toolexeclibdir,;t t
11792 s,@CC@,$CC,;t t
11793 s,@ac_ct_CC@,$ac_ct_CC,;t t
11794 s,@EXEEXT@,$EXEEXT,;t t
11795 s,@OBJEXT@,$OBJEXT,;t t
11796 s,@DEPDIR@,$DEPDIR,;t t
11797 s,@am__include@,$am__include,;t t
11798 s,@am__quote@,$am__quote,;t t
11799 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
11800 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
11801 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
11802 s,@CCDEPMODE@,$CCDEPMODE,;t t
11803 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
11804 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
11805 s,@CFLAGS@,$CFLAGS,;t t
11806 s,@AR@,$AR,;t t
11807 s,@ac_ct_AR@,$ac_ct_AR,;t t
11808 s,@RANLIB@,$RANLIB,;t t
11809 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11810 s,@PERL@,$PERL,;t t
11811 s,@LN_S@,$LN_S,;t t
11812 s,@LIBTOOL@,$LIBTOOL,;t t
11813 s,@enable_shared@,$enable_shared,;t t
11814 s,@enable_static@,$enable_static,;t t
11815 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
11816 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
11817 s,@MAINT@,$MAINT,;t t
11818 s,@FC@,$FC,;t t
11819 s,@FCFLAGS@,$FCFLAGS,;t t
11820 s,@LDFLAGS@,$LDFLAGS,;t t
11821 s,@ac_ct_FC@,$ac_ct_FC,;t t
11822 s,@libtool_VERSION@,$libtool_VERSION,;t t
11823 s,@CPP@,$CPP,;t t
11824 s,@CPPFLAGS@,$CPPFLAGS,;t t
11825 s,@EGREP@,$EGREP,;t t
11826 s,@SECTION_LDFLAGS@,$SECTION_LDFLAGS,;t t
11827 s,@OPT_LDFLAGS@,$OPT_LDFLAGS,;t t
11828 s,@LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE@,$LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE,;t t
11829 s,@LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE@,$LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE,;t t
11830 s,@config_path@,$config_path,;t t
11831 s,@XCFLAGS@,$XCFLAGS,;t t
11832 s,@XLDFLAGS@,$XLDFLAGS,;t t
11833 s,@link_gomp@,$link_gomp,;t t
11834 s,@USE_FORTRAN_TRUE@,$USE_FORTRAN_TRUE,;t t
11835 s,@USE_FORTRAN_FALSE@,$USE_FORTRAN_FALSE,;t t
11836 s,@OMP_LOCK_SIZE@,$OMP_LOCK_SIZE,;t t
11837 s,@OMP_LOCK_ALIGN@,$OMP_LOCK_ALIGN,;t t
11838 s,@OMP_NEST_LOCK_SIZE@,$OMP_NEST_LOCK_SIZE,;t t
11839 s,@OMP_NEST_LOCK_ALIGN@,$OMP_NEST_LOCK_ALIGN,;t t
11840 s,@OMP_LOCK_KIND@,$OMP_LOCK_KIND,;t t
11841 s,@OMP_NEST_LOCK_KIND@,$OMP_NEST_LOCK_KIND,;t t
11842 s,@LIBOBJS@,$LIBOBJS,;t t
11843 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11844 CEOF
11845
11846 _ACEOF
11847
11848   cat >>$CONFIG_STATUS <<\_ACEOF
11849   # Split the substitutions into bite-sized pieces for seds with
11850   # small command number limits, like on Digital OSF/1 and HP-UX.
11851   ac_max_sed_lines=48
11852   ac_sed_frag=1 # Number of current file.
11853   ac_beg=1 # First line for current file.
11854   ac_end=$ac_max_sed_lines # Line after last line for current file.
11855   ac_more_lines=:
11856   ac_sed_cmds=
11857   while $ac_more_lines; do
11858     if test $ac_beg -gt 1; then
11859       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11860     else
11861       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11862     fi
11863     if test ! -s $tmp/subs.frag; then
11864       ac_more_lines=false
11865     else
11866       # The purpose of the label and of the branching condition is to
11867       # speed up the sed processing (if there are no `@' at all, there
11868       # is no need to browse any of the substitutions).
11869       # These are the two extra sed commands mentioned above.
11870       (echo ':t
11871   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11872       if test -z "$ac_sed_cmds"; then
11873         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11874       else
11875         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11876       fi
11877       ac_sed_frag=`expr $ac_sed_frag + 1`
11878       ac_beg=$ac_end
11879       ac_end=`expr $ac_end + $ac_max_sed_lines`
11880     fi
11881   done
11882   if test -z "$ac_sed_cmds"; then
11883     ac_sed_cmds=cat
11884   fi
11885 fi # test -n "$CONFIG_FILES"
11886
11887 _ACEOF
11888 cat >>$CONFIG_STATUS <<\_ACEOF
11889 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11890   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11891   case $ac_file in
11892   - | *:- | *:-:* ) # input from stdin
11893         cat >$tmp/stdin
11894         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11895         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11896   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11897         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11898   * )   ac_file_in=$ac_file.in ;;
11899   esac
11900
11901   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11902   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11903 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11904          X"$ac_file" : 'X\(//\)[^/]' \| \
11905          X"$ac_file" : 'X\(//\)$' \| \
11906          X"$ac_file" : 'X\(/\)' \| \
11907          .     : '\(.\)' 2>/dev/null ||
11908 echo X"$ac_file" |
11909     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11910           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11911           /^X\(\/\/\)$/{ s//\1/; q; }
11912           /^X\(\/\).*/{ s//\1/; q; }
11913           s/.*/./; q'`
11914   { if $as_mkdir_p; then
11915     mkdir -p "$ac_dir"
11916   else
11917     as_dir="$ac_dir"
11918     as_dirs=
11919     while test ! -d "$as_dir"; do
11920       as_dirs="$as_dir $as_dirs"
11921       as_dir=`(dirname "$as_dir") 2>/dev/null ||
11922 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11923          X"$as_dir" : 'X\(//\)[^/]' \| \
11924          X"$as_dir" : 'X\(//\)$' \| \
11925          X"$as_dir" : 'X\(/\)' \| \
11926          .     : '\(.\)' 2>/dev/null ||
11927 echo X"$as_dir" |
11928     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11929           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11930           /^X\(\/\/\)$/{ s//\1/; q; }
11931           /^X\(\/\).*/{ s//\1/; q; }
11932           s/.*/./; q'`
11933     done
11934     test ! -n "$as_dirs" || mkdir $as_dirs
11935   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11936 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11937    { (exit 1); exit 1; }; }; }
11938
11939   ac_builddir=.
11940
11941 if test "$ac_dir" != .; then
11942   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11943   # A "../" for each directory in $ac_dir_suffix.
11944   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11945 else
11946   ac_dir_suffix= ac_top_builddir=
11947 fi
11948
11949 case $srcdir in
11950   .)  # No --srcdir option.  We are building in place.
11951     ac_srcdir=.
11952     if test -z "$ac_top_builddir"; then
11953        ac_top_srcdir=.
11954     else
11955        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11956     fi ;;
11957   [\\/]* | ?:[\\/]* )  # Absolute path.
11958     ac_srcdir=$srcdir$ac_dir_suffix;
11959     ac_top_srcdir=$srcdir ;;
11960   *) # Relative path.
11961     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11962     ac_top_srcdir=$ac_top_builddir$srcdir ;;
11963 esac
11964
11965 # Do not use `cd foo && pwd` to compute absolute paths, because
11966 # the directories may not exist.
11967 case `pwd` in
11968 .) ac_abs_builddir="$ac_dir";;
11969 *)
11970   case "$ac_dir" in
11971   .) ac_abs_builddir=`pwd`;;
11972   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11973   *) ac_abs_builddir=`pwd`/"$ac_dir";;
11974   esac;;
11975 esac
11976 case $ac_abs_builddir in
11977 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11978 *)
11979   case ${ac_top_builddir}. in
11980   .) ac_abs_top_builddir=$ac_abs_builddir;;
11981   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11982   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11983   esac;;
11984 esac
11985 case $ac_abs_builddir in
11986 .) ac_abs_srcdir=$ac_srcdir;;
11987 *)
11988   case $ac_srcdir in
11989   .) ac_abs_srcdir=$ac_abs_builddir;;
11990   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11991   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11992   esac;;
11993 esac
11994 case $ac_abs_builddir in
11995 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11996 *)
11997   case $ac_top_srcdir in
11998   .) ac_abs_top_srcdir=$ac_abs_builddir;;
11999   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12000   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12001   esac;;
12002 esac
12003
12004
12005   case $INSTALL in
12006   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12007   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12008   esac
12009
12010   if test x"$ac_file" != x-; then
12011     { echo "$as_me:$LINENO: creating $ac_file" >&5
12012 echo "$as_me: creating $ac_file" >&6;}
12013     rm -f "$ac_file"
12014   fi
12015   # Let's still pretend it is `configure' which instantiates (i.e., don't
12016   # use $as_me), people would be surprised to read:
12017   #    /* config.h.  Generated by config.status.  */
12018   if test x"$ac_file" = x-; then
12019     configure_input=
12020   else
12021     configure_input="$ac_file.  "
12022   fi
12023   configure_input=$configure_input"Generated from `echo $ac_file_in |
12024                                      sed 's,.*/,,'` by configure."
12025
12026   # First look for the input files in the build tree, otherwise in the
12027   # src tree.
12028   ac_file_inputs=`IFS=:
12029     for f in $ac_file_in; do
12030       case $f in
12031       -) echo $tmp/stdin ;;
12032       [\\/$]*)
12033          # Absolute (can't be DOS-style, as IFS=:)
12034          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12035 echo "$as_me: error: cannot find input file: $f" >&2;}
12036    { (exit 1); exit 1; }; }
12037          echo "$f";;
12038       *) # Relative
12039          if test -f "$f"; then
12040            # Build tree
12041            echo "$f"
12042          elif test -f "$srcdir/$f"; then
12043            # Source tree
12044            echo "$srcdir/$f"
12045          else
12046            # /dev/null tree
12047            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12048 echo "$as_me: error: cannot find input file: $f" >&2;}
12049    { (exit 1); exit 1; }; }
12050          fi;;
12051       esac
12052     done` || { (exit 1); exit 1; }
12053 _ACEOF
12054 cat >>$CONFIG_STATUS <<_ACEOF
12055   sed "$ac_vpsub
12056 $extrasub
12057 _ACEOF
12058 cat >>$CONFIG_STATUS <<\_ACEOF
12059 :t
12060 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12061 s,@configure_input@,$configure_input,;t t
12062 s,@srcdir@,$ac_srcdir,;t t
12063 s,@abs_srcdir@,$ac_abs_srcdir,;t t
12064 s,@top_srcdir@,$ac_top_srcdir,;t t
12065 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12066 s,@builddir@,$ac_builddir,;t t
12067 s,@abs_builddir@,$ac_abs_builddir,;t t
12068 s,@top_builddir@,$ac_top_builddir,;t t
12069 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12070 s,@INSTALL@,$ac_INSTALL,;t t
12071 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12072   rm -f $tmp/stdin
12073   if test x"$ac_file" != x-; then
12074     mv $tmp/out $ac_file
12075   else
12076     cat $tmp/out
12077     rm -f $tmp/out
12078   fi
12079
12080 done
12081 _ACEOF
12082 cat >>$CONFIG_STATUS <<\_ACEOF
12083
12084 #
12085 # CONFIG_HEADER section.
12086 #
12087
12088 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12089 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12090 #
12091 # ac_d sets the value in "#define NAME VALUE" lines.
12092 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
12093 ac_dB='[         ].*$,\1#\2'
12094 ac_dC=' '
12095 ac_dD=',;t'
12096 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12097 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
12098 ac_uB='$,\1#\2define\3'
12099 ac_uC=' '
12100 ac_uD=',;t'
12101
12102 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12103   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12104   case $ac_file in
12105   - | *:- | *:-:* ) # input from stdin
12106         cat >$tmp/stdin
12107         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12108         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12109   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12110         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12111   * )   ac_file_in=$ac_file.in ;;
12112   esac
12113
12114   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12115 echo "$as_me: creating $ac_file" >&6;}
12116
12117   # First look for the input files in the build tree, otherwise in the
12118   # src tree.
12119   ac_file_inputs=`IFS=:
12120     for f in $ac_file_in; do
12121       case $f in
12122       -) echo $tmp/stdin ;;
12123       [\\/$]*)
12124          # Absolute (can't be DOS-style, as IFS=:)
12125          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12126 echo "$as_me: error: cannot find input file: $f" >&2;}
12127    { (exit 1); exit 1; }; }
12128          # Do quote $f, to prevent DOS paths from being IFS'd.
12129          echo "$f";;
12130       *) # Relative
12131          if test -f "$f"; then
12132            # Build tree
12133            echo "$f"
12134          elif test -f "$srcdir/$f"; then
12135            # Source tree
12136            echo "$srcdir/$f"
12137          else
12138            # /dev/null tree
12139            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12140 echo "$as_me: error: cannot find input file: $f" >&2;}
12141    { (exit 1); exit 1; }; }
12142          fi;;
12143       esac
12144     done` || { (exit 1); exit 1; }
12145   # Remove the trailing spaces.
12146   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
12147
12148 _ACEOF
12149
12150 # Transform confdefs.h into two sed scripts, `conftest.defines' and
12151 # `conftest.undefs', that substitutes the proper values into
12152 # config.h.in to produce config.h.  The first handles `#define'
12153 # templates, and the second `#undef' templates.
12154 # And first: Protect against being on the right side of a sed subst in
12155 # config.status.  Protect against being in an unquoted here document
12156 # in config.status.
12157 rm -f conftest.defines conftest.undefs
12158 # Using a here document instead of a string reduces the quoting nightmare.
12159 # Putting comments in sed scripts is not portable.
12160 #
12161 # `end' is used to avoid that the second main sed command (meant for
12162 # 0-ary CPP macros) applies to n-ary macro definitions.
12163 # See the Autoconf documentation for `clear'.
12164 cat >confdef2sed.sed <<\_ACEOF
12165 s/[\\&,]/\\&/g
12166 s,[\\$`],\\&,g
12167 t clear
12168 : clear
12169 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12170 t end
12171 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12172 : end
12173 _ACEOF
12174 # If some macros were called several times there might be several times
12175 # the same #defines, which is useless.  Nevertheless, we may not want to
12176 # sort them, since we want the *last* AC-DEFINE to be honored.
12177 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12178 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12179 rm -f confdef2sed.sed
12180
12181 # This sed command replaces #undef with comments.  This is necessary, for
12182 # example, in the case of _POSIX_SOURCE, which is predefined and required
12183 # on some systems where configure will not decide to define it.
12184 cat >>conftest.undefs <<\_ACEOF
12185 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12186 _ACEOF
12187
12188 # Break up conftest.defines because some shells have a limit on the size
12189 # of here documents, and old seds have small limits too (100 cmds).
12190 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12191 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12192 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12193 echo '  :' >>$CONFIG_STATUS
12194 rm -f conftest.tail
12195 while grep . conftest.defines >/dev/null
12196 do
12197   # Write a limited-size here document to $tmp/defines.sed.
12198   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12199   # Speed up: don't consider the non `#define' lines.
12200   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
12201   # Work around the forget-to-reset-the-flag bug.
12202   echo 't clr' >>$CONFIG_STATUS
12203   echo ': clr' >>$CONFIG_STATUS
12204   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12205   echo 'CEOF
12206   sed -f $tmp/defines.sed $tmp/in >$tmp/out
12207   rm -f $tmp/in
12208   mv $tmp/out $tmp/in
12209 ' >>$CONFIG_STATUS
12210   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12211   rm -f conftest.defines
12212   mv conftest.tail conftest.defines
12213 done
12214 rm -f conftest.defines
12215 echo '  fi # grep' >>$CONFIG_STATUS
12216 echo >>$CONFIG_STATUS
12217
12218 # Break up conftest.undefs because some shells have a limit on the size
12219 # of here documents, and old seds have small limits too (100 cmds).
12220 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
12221 rm -f conftest.tail
12222 while grep . conftest.undefs >/dev/null
12223 do
12224   # Write a limited-size here document to $tmp/undefs.sed.
12225   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12226   # Speed up: don't consider the non `#undef'
12227   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
12228   # Work around the forget-to-reset-the-flag bug.
12229   echo 't clr' >>$CONFIG_STATUS
12230   echo ': clr' >>$CONFIG_STATUS
12231   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12232   echo 'CEOF
12233   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12234   rm -f $tmp/in
12235   mv $tmp/out $tmp/in
12236 ' >>$CONFIG_STATUS
12237   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12238   rm -f conftest.undefs
12239   mv conftest.tail conftest.undefs
12240 done
12241 rm -f conftest.undefs
12242
12243 cat >>$CONFIG_STATUS <<\_ACEOF
12244   # Let's still pretend it is `configure' which instantiates (i.e., don't
12245   # use $as_me), people would be surprised to read:
12246   #    /* config.h.  Generated by config.status.  */
12247   if test x"$ac_file" = x-; then
12248     echo "/* Generated by configure.  */" >$tmp/config.h
12249   else
12250     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
12251   fi
12252   cat $tmp/in >>$tmp/config.h
12253   rm -f $tmp/in
12254   if test x"$ac_file" != x-; then
12255     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12256       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12257 echo "$as_me: $ac_file is unchanged" >&6;}
12258     else
12259       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12260 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12261          X"$ac_file" : 'X\(//\)[^/]' \| \
12262          X"$ac_file" : 'X\(//\)$' \| \
12263          X"$ac_file" : 'X\(/\)' \| \
12264          .     : '\(.\)' 2>/dev/null ||
12265 echo X"$ac_file" |
12266     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12267           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12268           /^X\(\/\/\)$/{ s//\1/; q; }
12269           /^X\(\/\).*/{ s//\1/; q; }
12270           s/.*/./; q'`
12271       { if $as_mkdir_p; then
12272     mkdir -p "$ac_dir"
12273   else
12274     as_dir="$ac_dir"
12275     as_dirs=
12276     while test ! -d "$as_dir"; do
12277       as_dirs="$as_dir $as_dirs"
12278       as_dir=`(dirname "$as_dir") 2>/dev/null ||
12279 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12280          X"$as_dir" : 'X\(//\)[^/]' \| \
12281          X"$as_dir" : 'X\(//\)$' \| \
12282          X"$as_dir" : 'X\(/\)' \| \
12283          .     : '\(.\)' 2>/dev/null ||
12284 echo X"$as_dir" |
12285     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12286           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12287           /^X\(\/\/\)$/{ s//\1/; q; }
12288           /^X\(\/\).*/{ s//\1/; q; }
12289           s/.*/./; q'`
12290     done
12291     test ! -n "$as_dirs" || mkdir $as_dirs
12292   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12293 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12294    { (exit 1); exit 1; }; }; }
12295
12296       rm -f $ac_file
12297       mv $tmp/config.h $ac_file
12298     fi
12299   else
12300     cat $tmp/config.h
12301     rm -f $tmp/config.h
12302   fi
12303 # Compute $ac_file's index in $config_headers.
12304 _am_stamp_count=1
12305 for _am_header in $config_headers :; do
12306   case $_am_header in
12307     $ac_file | $ac_file:* )
12308       break ;;
12309     * )
12310       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12311   esac
12312 done
12313 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
12314 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12315          X$ac_file : 'X\(//\)[^/]' \| \
12316          X$ac_file : 'X\(//\)$' \| \
12317          X$ac_file : 'X\(/\)' \| \
12318          .     : '\(.\)' 2>/dev/null ||
12319 echo X$ac_file |
12320     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12321           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12322           /^X\(\/\/\)$/{ s//\1/; q; }
12323           /^X\(\/\).*/{ s//\1/; q; }
12324           s/.*/./; q'`/stamp-h$_am_stamp_count
12325 done
12326 _ACEOF
12327 cat >>$CONFIG_STATUS <<\_ACEOF
12328
12329 #
12330 # CONFIG_COMMANDS section.
12331 #
12332 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12333   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12334   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12335   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12336 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12337          X"$ac_dest" : 'X\(//\)[^/]' \| \
12338          X"$ac_dest" : 'X\(//\)$' \| \
12339          X"$ac_dest" : 'X\(/\)' \| \
12340          .     : '\(.\)' 2>/dev/null ||
12341 echo X"$ac_dest" |
12342     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12343           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12344           /^X\(\/\/\)$/{ s//\1/; q; }
12345           /^X\(\/\).*/{ s//\1/; q; }
12346           s/.*/./; q'`
12347   { if $as_mkdir_p; then
12348     mkdir -p "$ac_dir"
12349   else
12350     as_dir="$ac_dir"
12351     as_dirs=
12352     while test ! -d "$as_dir"; do
12353       as_dirs="$as_dir $as_dirs"
12354       as_dir=`(dirname "$as_dir") 2>/dev/null ||
12355 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12356          X"$as_dir" : 'X\(//\)[^/]' \| \
12357          X"$as_dir" : 'X\(//\)$' \| \
12358          X"$as_dir" : 'X\(/\)' \| \
12359          .     : '\(.\)' 2>/dev/null ||
12360 echo X"$as_dir" |
12361     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12362           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12363           /^X\(\/\/\)$/{ s//\1/; q; }
12364           /^X\(\/\).*/{ s//\1/; q; }
12365           s/.*/./; q'`
12366     done
12367     test ! -n "$as_dirs" || mkdir $as_dirs
12368   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12369 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12370    { (exit 1); exit 1; }; }; }
12371
12372   ac_builddir=.
12373
12374 if test "$ac_dir" != .; then
12375   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12376   # A "../" for each directory in $ac_dir_suffix.
12377   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12378 else
12379   ac_dir_suffix= ac_top_builddir=
12380 fi
12381
12382 case $srcdir in
12383   .)  # No --srcdir option.  We are building in place.
12384     ac_srcdir=.
12385     if test -z "$ac_top_builddir"; then
12386        ac_top_srcdir=.
12387     else
12388        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12389     fi ;;
12390   [\\/]* | ?:[\\/]* )  # Absolute path.
12391     ac_srcdir=$srcdir$ac_dir_suffix;
12392     ac_top_srcdir=$srcdir ;;
12393   *) # Relative path.
12394     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12395     ac_top_srcdir=$ac_top_builddir$srcdir ;;
12396 esac
12397
12398 # Do not use `cd foo && pwd` to compute absolute paths, because
12399 # the directories may not exist.
12400 case `pwd` in
12401 .) ac_abs_builddir="$ac_dir";;
12402 *)
12403   case "$ac_dir" in
12404   .) ac_abs_builddir=`pwd`;;
12405   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12406   *) ac_abs_builddir=`pwd`/"$ac_dir";;
12407   esac;;
12408 esac
12409 case $ac_abs_builddir in
12410 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12411 *)
12412   case ${ac_top_builddir}. in
12413   .) ac_abs_top_builddir=$ac_abs_builddir;;
12414   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12415   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12416   esac;;
12417 esac
12418 case $ac_abs_builddir in
12419 .) ac_abs_srcdir=$ac_srcdir;;
12420 *)
12421   case $ac_srcdir in
12422   .) ac_abs_srcdir=$ac_abs_builddir;;
12423   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12424   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12425   esac;;
12426 esac
12427 case $ac_abs_builddir in
12428 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12429 *)
12430   case $ac_top_srcdir in
12431   .) ac_abs_top_srcdir=$ac_abs_builddir;;
12432   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12433   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12434   esac;;
12435 esac
12436
12437
12438   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12439 echo "$as_me: executing $ac_dest commands" >&6;}
12440   case $ac_dest in
12441     default-1 )
12442 # Only add multilib support code if we just rebuilt the top-level
12443 # Makefile.
12444 case " $CONFIG_FILES " in
12445  *" Makefile "*)
12446    ac_file=Makefile . ${multi_basedir}/config-ml.in
12447    ;;
12448 esac ;;
12449     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12450   # Strip MF so we end up with the name of the file.
12451   mf=`echo "$mf" | sed -e 's/:.*$//'`
12452   # Check whether this is an Automake generated Makefile or not.
12453   # We used to match only the files named `Makefile.in', but
12454   # some people rename them; so instead we look at the file content.
12455   # Grep'ing the first line is not enough: some people post-process
12456   # each Makefile.in and add a new line on top of each file to say so.
12457   # So let's grep whole file.
12458   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
12459     dirpart=`(dirname "$mf") 2>/dev/null ||
12460 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12461          X"$mf" : 'X\(//\)[^/]' \| \
12462          X"$mf" : 'X\(//\)$' \| \
12463          X"$mf" : 'X\(/\)' \| \
12464          .     : '\(.\)' 2>/dev/null ||
12465 echo X"$mf" |
12466     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12467           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12468           /^X\(\/\/\)$/{ s//\1/; q; }
12469           /^X\(\/\).*/{ s//\1/; q; }
12470           s/.*/./; q'`
12471   else
12472     continue
12473   fi
12474   # Extract the definition of DEPDIR, am__include, and am__quote
12475   # from the Makefile without running `make'.
12476   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12477   test -z "$DEPDIR" && continue
12478   am__include=`sed -n 's/^am__include = //p' < "$mf"`
12479   test -z "am__include" && continue
12480   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12481   # When using ansi2knr, U may be empty or an underscore; expand it
12482   U=`sed -n 's/^U = //p' < "$mf"`
12483   # Find all dependency output files, they are included files with
12484   # $(DEPDIR) in their names.  We invoke sed twice because it is the
12485   # simplest approach to changing $(DEPDIR) to its actual value in the
12486   # expansion.
12487   for file in `sed -n "
12488     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12489        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12490     # Make sure the directory exists.
12491     test -f "$dirpart/$file" && continue
12492     fdir=`(dirname "$file") 2>/dev/null ||
12493 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12494          X"$file" : 'X\(//\)[^/]' \| \
12495          X"$file" : 'X\(//\)$' \| \
12496          X"$file" : 'X\(/\)' \| \
12497          .     : '\(.\)' 2>/dev/null ||
12498 echo X"$file" |
12499     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12500           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12501           /^X\(\/\/\)$/{ s//\1/; q; }
12502           /^X\(\/\).*/{ s//\1/; q; }
12503           s/.*/./; q'`
12504     { if $as_mkdir_p; then
12505     mkdir -p $dirpart/$fdir
12506   else
12507     as_dir=$dirpart/$fdir
12508     as_dirs=
12509     while test ! -d "$as_dir"; do
12510       as_dirs="$as_dir $as_dirs"
12511       as_dir=`(dirname "$as_dir") 2>/dev/null ||
12512 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12513          X"$as_dir" : 'X\(//\)[^/]' \| \
12514          X"$as_dir" : 'X\(//\)$' \| \
12515          X"$as_dir" : 'X\(/\)' \| \
12516          .     : '\(.\)' 2>/dev/null ||
12517 echo X"$as_dir" |
12518     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12519           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12520           /^X\(\/\/\)$/{ s//\1/; q; }
12521           /^X\(\/\).*/{ s//\1/; q; }
12522           s/.*/./; q'`
12523     done
12524     test ! -n "$as_dirs" || mkdir $as_dirs
12525   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
12526 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
12527    { (exit 1); exit 1; }; }; }
12528
12529     # echo "creating $dirpart/$file"
12530     echo '# dummy' > "$dirpart/$file"
12531   done
12532 done
12533  ;;
12534     gstdint.h )
12535 if test "$GCC" = yes; then
12536   echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
12537 else
12538   echo "/* generated for $CC */" > tmp-stdint.h
12539 fi
12540
12541 sed 's/^ *//' >> tmp-stdint.h <<EOF
12542
12543   #ifndef GCC_GENERATED_STDINT_H
12544   #define GCC_GENERATED_STDINT_H 1
12545
12546   #include <sys/types.h>
12547 EOF
12548
12549 if test "$acx_cv_header_stdint" != stdint.h; then
12550   echo "#include <stddef.h>" >> tmp-stdint.h
12551 fi
12552 if test "$acx_cv_header_stdint" != stddef.h; then
12553   echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
12554 fi
12555
12556 sed 's/^ *//' >> tmp-stdint.h <<EOF
12557   /* glibc uses these symbols as guards to prevent redefinitions.  */
12558   #ifdef __int8_t_defined
12559   #define _INT8_T
12560   #define _INT16_T
12561   #define _INT32_T
12562   #endif
12563   #ifdef __uint32_t_defined
12564   #define _UINT32_T
12565   #endif
12566
12567 EOF
12568
12569 # ----------------- done header, emit basic int types -------------
12570 if test "$acx_cv_header_stdint" = stddef.h; then
12571   sed 's/^ *//' >> tmp-stdint.h <<EOF
12572
12573     #ifndef _UINT8_T
12574     #define _UINT8_T
12575     typedef unsigned $acx_cv_type_int8_t uint8_t;
12576     #endif
12577
12578     #ifndef _UINT16_T
12579     #define _UINT16_T
12580     typedef unsigned $acx_cv_type_int16_t uint16_t;
12581     #endif
12582
12583     #ifndef _UINT32_T
12584     #define _UINT32_T
12585     typedef unsigned $acx_cv_type_int32_t uint32_t;
12586     #endif
12587
12588     #ifndef _INT8_T
12589     #define _INT8_T
12590     typedef $acx_cv_type_int8_t int8_t;
12591     #endif
12592
12593     #ifndef _INT16_T
12594     #define _INT16_T
12595     typedef $acx_cv_type_int16_t int16_t;
12596     #endif
12597
12598     #ifndef _INT32_T
12599     #define _INT32_T
12600     typedef $acx_cv_type_int32_t int32_t;
12601     #endif
12602 EOF
12603 elif test "$ac_cv_type_u_int32_t" = yes; then
12604   sed 's/^ *//' >> tmp-stdint.h <<EOF
12605
12606     /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
12607     #ifndef _INT8_T
12608     #define _INT8_T
12609     #endif
12610     #ifndef _INT16_T
12611     #define _INT16_T
12612     #endif
12613     #ifndef _INT32_T
12614     #define _INT32_T
12615     #endif
12616
12617     #ifndef _UINT8_T
12618     #define _UINT8_T
12619     typedef u_int8_t uint8_t;
12620     #endif
12621
12622     #ifndef _UINT16_T
12623     #define _UINT16_T
12624     typedef u_int16_t uint16_t;
12625     #endif
12626
12627     #ifndef _UINT32_T
12628     #define _UINT32_T
12629     typedef u_int32_t uint32_t;
12630     #endif
12631 EOF
12632 else
12633   sed 's/^ *//' >> tmp-stdint.h <<EOF
12634
12635     /* Some systems have guard macros to prevent redefinitions, define them.  */
12636     #ifndef _INT8_T
12637     #define _INT8_T
12638     #endif
12639     #ifndef _INT16_T
12640     #define _INT16_T
12641     #endif
12642     #ifndef _INT32_T
12643     #define _INT32_T
12644     #endif
12645     #ifndef _UINT8_T
12646     #define _UINT8_T
12647     #endif
12648     #ifndef _UINT16_T
12649     #define _UINT16_T
12650     #endif
12651     #ifndef _UINT32_T
12652     #define _UINT32_T
12653     #endif
12654 EOF
12655 fi
12656
12657 # ------------- done basic int types, emit int64_t types ------------
12658 if test "$ac_cv_type_uint64_t" = yes; then
12659   sed 's/^ *//' >> tmp-stdint.h <<EOF
12660
12661     /* system headers have good uint64_t and int64_t */
12662     #ifndef _INT64_T
12663     #define _INT64_T
12664     #endif
12665     #ifndef _UINT64_T
12666     #define _UINT64_T
12667     #endif
12668 EOF
12669 elif test "$ac_cv_type_u_int64_t" = yes; then
12670   sed 's/^ *//' >> tmp-stdint.h <<EOF
12671
12672     /* system headers have an u_int64_t (and int64_t) */
12673     #ifndef _INT64_T
12674     #define _INT64_T
12675     #endif
12676     #ifndef _UINT64_T
12677     #define _UINT64_T
12678     typedef u_int64_t uint64_t;
12679     #endif
12680 EOF
12681 elif test -n "$acx_cv_type_int64_t"; then
12682   sed 's/^ *//' >> tmp-stdint.h <<EOF
12683
12684     /* architecture has a 64-bit type, $acx_cv_type_int64_t */
12685     #ifndef _INT64_T
12686     #define _INT64_T
12687     typedef $acx_cv_type_int64_t int64_t;
12688     #endif
12689     #ifndef _UINT64_T
12690     #define _UINT64_T
12691     typedef unsigned $acx_cv_type_int64_t uint64_t;
12692     #endif
12693 EOF
12694 else
12695   sed 's/^ *//' >> tmp-stdint.h <<EOF
12696
12697     /* some common heuristics for int64_t, using compiler-specific tests */
12698     #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
12699     #ifndef _INT64_T
12700     #define _INT64_T
12701     typedef long long int64_t;
12702     #endif
12703     #ifndef _UINT64_T
12704     #define _UINT64_T
12705     typedef unsigned long long uint64_t;
12706     #endif
12707
12708     #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
12709     /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
12710        does not implement __extension__.  But that compiler doesn't define
12711        __GNUC_MINOR__.  */
12712     # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
12713     # define __extension__
12714     # endif
12715
12716     # ifndef _INT64_T
12717     # define _INT64_T
12718     __extension__ typedef long long int64_t;
12719     # endif
12720     # ifndef _UINT64_T
12721     # define _UINT64_T
12722     __extension__ typedef unsigned long long uint64_t;
12723     # endif
12724
12725     #elif !defined __STRICT_ANSI__
12726     # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
12727
12728     #  ifndef _INT64_T
12729     #  define _INT64_T
12730     typedef __int64 int64_t;
12731     #  endif
12732     #  ifndef _UINT64_T
12733     #  define _UINT64_T
12734     typedef unsigned __int64 uint64_t;
12735     #  endif
12736     # endif /* compiler */
12737
12738     #endif /* ANSI version */
12739 EOF
12740 fi
12741
12742 # ------------- done int64_t types, emit intptr types ------------
12743 if test "$ac_cv_type_uintptr_t" != yes; then
12744   sed 's/^ *//' >> tmp-stdint.h <<EOF
12745
12746     /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
12747     typedef u$acx_cv_type_intptr_t uintptr_t;
12748     typedef $acx_cv_type_intptr_t  intptr_t;
12749 EOF
12750 fi
12751
12752 # ------------- done intptr types, emit int_least types ------------
12753 if test "$ac_cv_type_int_least32_t" != yes; then
12754   sed 's/^ *//' >> tmp-stdint.h <<EOF
12755
12756     /* Define int_least types */
12757     typedef int8_t     int_least8_t;
12758     typedef int16_t    int_least16_t;
12759     typedef int32_t    int_least32_t;
12760     #ifdef _INT64_T
12761     typedef int64_t    int_least64_t;
12762     #endif
12763
12764     typedef uint8_t    uint_least8_t;
12765     typedef uint16_t   uint_least16_t;
12766     typedef uint32_t   uint_least32_t;
12767     #ifdef _UINT64_T
12768     typedef uint64_t   uint_least64_t;
12769     #endif
12770 EOF
12771 fi
12772
12773 # ------------- done intptr types, emit int_fast types ------------
12774 if test "$ac_cv_type_int_fast32_t" != yes; then
12775       sed 's/^ *//' >> tmp-stdint.h <<EOF
12776
12777     /* Define int_fast types.  short is often slow */
12778     typedef int8_t       int_fast8_t;
12779     typedef int          int_fast16_t;
12780     typedef int32_t      int_fast32_t;
12781     #ifdef _INT64_T
12782     typedef int64_t      int_fast64_t;
12783     #endif
12784
12785     typedef uint8_t      uint_fast8_t;
12786     typedef unsigned int uint_fast16_t;
12787     typedef uint32_t     uint_fast32_t;
12788     #ifdef _UINT64_T
12789     typedef uint64_t     uint_fast64_t;
12790     #endif
12791 EOF
12792 fi
12793
12794 if test "$ac_cv_type_uintmax_t" != yes; then
12795   sed 's/^ *//' >> tmp-stdint.h <<EOF
12796
12797     /* Define intmax based on what we found */
12798     #ifdef _INT64_T
12799     typedef int64_t       intmax_t;
12800     #else
12801     typedef long          intmax_t;
12802     #endif
12803     #ifdef _UINT64_T
12804     typedef uint64_t      uintmax_t;
12805     #else
12806     typedef unsigned long uintmax_t;
12807     #endif
12808 EOF
12809 fi
12810
12811 sed 's/^ *//' >> tmp-stdint.h <<EOF
12812
12813   #endif /* GCC_GENERATED_STDINT_H */
12814 EOF
12815
12816 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
12817   rm -f tmp-stdint.h
12818 else
12819   mv -f tmp-stdint.h gstdint.h
12820 fi
12821
12822  ;;
12823   esac
12824 done
12825 _ACEOF
12826
12827 cat >>$CONFIG_STATUS <<\_ACEOF
12828
12829 { (exit 0); exit 0; }
12830 _ACEOF
12831 chmod +x $CONFIG_STATUS
12832 ac_clean_files=$ac_clean_files_save
12833
12834
12835 # configure is writing to config.log, and then calls config.status.
12836 # config.status does its own redirection, appending to config.log.
12837 # Unfortunately, on DOS this fails, as config.log is still kept open
12838 # by configure, so config.status won't be able to write to it; its
12839 # output is simply discarded.  So we exec the FD to /dev/null,
12840 # effectively closing config.log, so it can be properly (re)opened and
12841 # appended to by config.status.  When coming back to configure, we
12842 # need to make the FD available again.
12843 if test "$no_create" != yes; then
12844   ac_cs_success=:
12845   ac_config_status_args=
12846   test "$silent" = yes &&
12847     ac_config_status_args="$ac_config_status_args --quiet"
12848   exec 5>/dev/null
12849   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12850   exec 5>>config.log
12851   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12852   # would make configure fail if this is the last instruction.
12853   $ac_cs_success || { (exit 1); exit 1; }
12854 fi
12855