OSDN Git Service

* doc/invoke.texi: Move -fopenmp description to "Options for
[pf3gnuchains/gcc-fork.git] / libgomp / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for GNU OpenMP Runtime Library 1.0.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete.  It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME='GNU OpenMP Runtime Library'
269 PACKAGE_TARNAME='libgomp'
270 PACKAGE_VERSION='1.0'
271 PACKAGE_STRING='GNU OpenMP Runtime Library 1.0'
272 PACKAGE_BUGREPORT=''
273
274 # Factoring default headers for most tests.
275 ac_includes_default="\
276 #include <stdio.h>
277 #if HAVE_SYS_TYPES_H
278 # include <sys/types.h>
279 #endif
280 #if HAVE_SYS_STAT_H
281 # include <sys/stat.h>
282 #endif
283 #if STDC_HEADERS
284 # include <stdlib.h>
285 # include <stddef.h>
286 #else
287 # if HAVE_STDLIB_H
288 #  include <stdlib.h>
289 # endif
290 #endif
291 #if HAVE_STRING_H
292 # if !STDC_HEADERS && HAVE_MEMORY_H
293 #  include <memory.h>
294 # endif
295 # include <string.h>
296 #endif
297 #if HAVE_STRINGS_H
298 # include <strings.h>
299 #endif
300 #if HAVE_INTTYPES_H
301 # include <inttypes.h>
302 #else
303 # if HAVE_STDINT_H
304 #  include <stdint.h>
305 # endif
306 #endif
307 #if HAVE_UNISTD_H
308 # include <unistd.h>
309 #endif"
310
311 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar multi_basedir toolexecdir toolexeclibdir CC ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CFLAGS AR ac_ct_AR RANLIB ac_ct_RANLIB PERL LN_S LIBTOOL enable_shared enable_static MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT FC FCFLAGS LDFLAGS ac_ct_FC libtool_VERSION CPP CPPFLAGS EGREP SECTION_LDFLAGS OPT_LDFLAGS LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE config_path XCFLAGS XLDFLAGS link_gomp USE_FORTRAN_TRUE USE_FORTRAN_FALSE OMP_LOCK_SIZE OMP_LOCK_ALIGN OMP_NEST_LOCK_SIZE OMP_NEST_LOCK_ALIGN OMP_LOCK_KIND OMP_NEST_LOCK_KIND LIBOBJS LTLIBOBJS'
312 ac_subst_files=''
313
314 # Initialize some variables set by options.
315 ac_init_help=
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
319 cache_file=/dev/null
320 exec_prefix=NONE
321 no_create=
322 no_recursion=
323 prefix=NONE
324 program_prefix=NONE
325 program_suffix=NONE
326 program_transform_name=s,x,x,
327 silent=
328 site=
329 srcdir=
330 verbose=
331 x_includes=NONE
332 x_libraries=NONE
333
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
351
352 ac_prev=
353 for ac_option
354 do
355   # If the previous option needs an argument, assign it.
356   if test -n "$ac_prev"; then
357     eval "$ac_prev=\$ac_option"
358     ac_prev=
359     continue
360   fi
361
362   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
363
364   # Accept the important Cygnus configure options, so we can diagnose typos.
365
366   case $ac_option in
367
368   -bindir | --bindir | --bindi | --bind | --bin | --bi)
369     ac_prev=bindir ;;
370   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371     bindir=$ac_optarg ;;
372
373   -build | --build | --buil | --bui | --bu)
374     ac_prev=build_alias ;;
375   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376     build_alias=$ac_optarg ;;
377
378   -cache-file | --cache-file | --cache-fil | --cache-fi \
379   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380     ac_prev=cache_file ;;
381   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383     cache_file=$ac_optarg ;;
384
385   --config-cache | -C)
386     cache_file=config.cache ;;
387
388   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389     ac_prev=datadir ;;
390   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391   | --da=*)
392     datadir=$ac_optarg ;;
393
394   -disable-* | --disable-*)
395     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396     # Reject names that are not valid shell variable names.
397     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399    { (exit 1); exit 1; }; }
400     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401     eval "enable_$ac_feature=no" ;;
402
403   -enable-* | --enable-*)
404     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405     # Reject names that are not valid shell variable names.
406     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408    { (exit 1); exit 1; }; }
409     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410     case $ac_option in
411       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412       *) ac_optarg=yes ;;
413     esac
414     eval "enable_$ac_feature='$ac_optarg'" ;;
415
416   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418   | --exec | --exe | --ex)
419     ac_prev=exec_prefix ;;
420   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422   | --exec=* | --exe=* | --ex=*)
423     exec_prefix=$ac_optarg ;;
424
425   -gas | --gas | --ga | --g)
426     # Obsolete; use --with-gas.
427     with_gas=yes ;;
428
429   -help | --help | --hel | --he | -h)
430     ac_init_help=long ;;
431   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432     ac_init_help=recursive ;;
433   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434     ac_init_help=short ;;
435
436   -host | --host | --hos | --ho)
437     ac_prev=host_alias ;;
438   -host=* | --host=* | --hos=* | --ho=*)
439     host_alias=$ac_optarg ;;
440
441   -includedir | --includedir | --includedi | --included | --include \
442   | --includ | --inclu | --incl | --inc)
443     ac_prev=includedir ;;
444   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445   | --includ=* | --inclu=* | --incl=* | --inc=*)
446     includedir=$ac_optarg ;;
447
448   -infodir | --infodir | --infodi | --infod | --info | --inf)
449     ac_prev=infodir ;;
450   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451     infodir=$ac_optarg ;;
452
453   -libdir | --libdir | --libdi | --libd)
454     ac_prev=libdir ;;
455   -libdir=* | --libdir=* | --libdi=* | --libd=*)
456     libdir=$ac_optarg ;;
457
458   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459   | --libexe | --libex | --libe)
460     ac_prev=libexecdir ;;
461   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462   | --libexe=* | --libex=* | --libe=*)
463     libexecdir=$ac_optarg ;;
464
465   -localstatedir | --localstatedir | --localstatedi | --localstated \
466   | --localstate | --localstat | --localsta | --localst \
467   | --locals | --local | --loca | --loc | --lo)
468     ac_prev=localstatedir ;;
469   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472     localstatedir=$ac_optarg ;;
473
474   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475     ac_prev=mandir ;;
476   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477     mandir=$ac_optarg ;;
478
479   -nfp | --nfp | --nf)
480     # Obsolete; use --without-fp.
481     with_fp=no ;;
482
483   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484   | --no-cr | --no-c | -n)
485     no_create=yes ;;
486
487   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489     no_recursion=yes ;;
490
491   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493   | --oldin | --oldi | --old | --ol | --o)
494     ac_prev=oldincludedir ;;
495   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498     oldincludedir=$ac_optarg ;;
499
500   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501     ac_prev=prefix ;;
502   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503     prefix=$ac_optarg ;;
504
505   -program-prefix | --program-prefix | --program-prefi | --program-pref \
506   | --program-pre | --program-pr | --program-p)
507     ac_prev=program_prefix ;;
508   -program-prefix=* | --program-prefix=* | --program-prefi=* \
509   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510     program_prefix=$ac_optarg ;;
511
512   -program-suffix | --program-suffix | --program-suffi | --program-suff \
513   | --program-suf | --program-su | --program-s)
514     ac_prev=program_suffix ;;
515   -program-suffix=* | --program-suffix=* | --program-suffi=* \
516   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517     program_suffix=$ac_optarg ;;
518
519   -program-transform-name | --program-transform-name \
520   | --program-transform-nam | --program-transform-na \
521   | --program-transform-n | --program-transform- \
522   | --program-transform | --program-transfor \
523   | --program-transfo | --program-transf \
524   | --program-trans | --program-tran \
525   | --progr-tra | --program-tr | --program-t)
526     ac_prev=program_transform_name ;;
527   -program-transform-name=* | --program-transform-name=* \
528   | --program-transform-nam=* | --program-transform-na=* \
529   | --program-transform-n=* | --program-transform-=* \
530   | --program-transform=* | --program-transfor=* \
531   | --program-transfo=* | --program-transf=* \
532   | --program-trans=* | --program-tran=* \
533   | --progr-tra=* | --program-tr=* | --program-t=*)
534     program_transform_name=$ac_optarg ;;
535
536   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537   | -silent | --silent | --silen | --sile | --sil)
538     silent=yes ;;
539
540   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541     ac_prev=sbindir ;;
542   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543   | --sbi=* | --sb=*)
544     sbindir=$ac_optarg ;;
545
546   -sharedstatedir | --sharedstatedir | --sharedstatedi \
547   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548   | --sharedst | --shareds | --shared | --share | --shar \
549   | --sha | --sh)
550     ac_prev=sharedstatedir ;;
551   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554   | --sha=* | --sh=*)
555     sharedstatedir=$ac_optarg ;;
556
557   -site | --site | --sit)
558     ac_prev=site ;;
559   -site=* | --site=* | --sit=*)
560     site=$ac_optarg ;;
561
562   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563     ac_prev=srcdir ;;
564   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565     srcdir=$ac_optarg ;;
566
567   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568   | --syscon | --sysco | --sysc | --sys | --sy)
569     ac_prev=sysconfdir ;;
570   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572     sysconfdir=$ac_optarg ;;
573
574   -target | --target | --targe | --targ | --tar | --ta | --t)
575     ac_prev=target_alias ;;
576   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577     target_alias=$ac_optarg ;;
578
579   -v | -verbose | --verbose | --verbos | --verbo | --verb)
580     verbose=yes ;;
581
582   -version | --version | --versio | --versi | --vers | -V)
583     ac_init_version=: ;;
584
585   -with-* | --with-*)
586     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587     # Reject names that are not valid shell variable names.
588     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589       { echo "$as_me: error: invalid package name: $ac_package" >&2
590    { (exit 1); exit 1; }; }
591     ac_package=`echo $ac_package| sed 's/-/_/g'`
592     case $ac_option in
593       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594       *) ac_optarg=yes ;;
595     esac
596     eval "with_$ac_package='$ac_optarg'" ;;
597
598   -without-* | --without-*)
599     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600     # Reject names that are not valid shell variable names.
601     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602       { echo "$as_me: error: invalid package name: $ac_package" >&2
603    { (exit 1); exit 1; }; }
604     ac_package=`echo $ac_package | sed 's/-/_/g'`
605     eval "with_$ac_package=no" ;;
606
607   --x)
608     # Obsolete; use --with-x.
609     with_x=yes ;;
610
611   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612   | --x-incl | --x-inc | --x-in | --x-i)
613     ac_prev=x_includes ;;
614   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616     x_includes=$ac_optarg ;;
617
618   -x-libraries | --x-libraries | --x-librarie | --x-librari \
619   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620     ac_prev=x_libraries ;;
621   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623     x_libraries=$ac_optarg ;;
624
625   -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627    { (exit 1); exit 1; }; }
628     ;;
629
630   *=*)
631     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632     # Reject names that are not valid shell variable names.
633     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635    { (exit 1); exit 1; }; }
636     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637     eval "$ac_envvar='$ac_optarg'"
638     export $ac_envvar ;;
639
640   *)
641     # FIXME: should be removed in autoconf 3.0.
642     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
646     ;;
647
648   esac
649 done
650
651 if test -n "$ac_prev"; then
652   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653   { echo "$as_me: error: missing argument to $ac_option" >&2
654    { (exit 1); exit 1; }; }
655 fi
656
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
659 do
660   eval ac_val=$`echo $ac_var`
661   case $ac_val in
662     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664    { (exit 1); exit 1; }; };;
665   esac
666 done
667
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670               localstatedir libdir includedir oldincludedir infodir mandir
671 do
672   eval ac_val=$`echo $ac_var`
673   case $ac_val in
674     [\\/$]* | ?:[\\/]* ) ;;
675     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676    { (exit 1); exit 1; }; };;
677   esac
678 done
679
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
683 build=$build_alias
684 host=$host_alias
685 target=$target_alias
686
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689   if test "x$build_alias" = x; then
690     cross_compiling=maybe
691     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692     If a cross compiler is detected then cross compile mode will be used." >&2
693   elif test "x$build_alias" != "x$host_alias"; then
694     cross_compiling=yes
695   fi
696 fi
697
698 ac_tool_prefix=
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
700
701 test "$silent" = yes && exec 6>/dev/null
702
703
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706   ac_srcdir_defaulted=yes
707   # Try the directory containing this script, then its parent.
708   ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710          X"$0" : 'X\(//\)[^/]' \| \
711          X"$0" : 'X\(//\)$' \| \
712          X"$0" : 'X\(/\)' \| \
713          .     : '\(.\)' 2>/dev/null ||
714 echo X"$0" |
715     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717           /^X\(\/\/\)$/{ s//\1/; q; }
718           /^X\(\/\).*/{ s//\1/; q; }
719           s/.*/./; q'`
720   srcdir=$ac_confdir
721   if test ! -r $srcdir/$ac_unique_file; then
722     srcdir=..
723   fi
724 else
725   ac_srcdir_defaulted=no
726 fi
727 if test ! -r $srcdir/$ac_unique_file; then
728   if test "$ac_srcdir_defaulted" = yes; then
729     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730    { (exit 1); exit 1; }; }
731   else
732     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733    { (exit 1); exit 1; }; }
734   fi
735 fi
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738    { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_FC_set=${FC+set}
753 ac_env_FC_value=$FC
754 ac_cv_env_FC_set=${FC+set}
755 ac_cv_env_FC_value=$FC
756 ac_env_FCFLAGS_set=${FCFLAGS+set}
757 ac_env_FCFLAGS_value=$FCFLAGS
758 ac_cv_env_FCFLAGS_set=${FCFLAGS+set}
759 ac_cv_env_FCFLAGS_value=$FCFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPP_set=${CPP+set}
765 ac_env_CPP_value=$CPP
766 ac_cv_env_CPP_set=${CPP+set}
767 ac_cv_env_CPP_value=$CPP
768 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_env_CPPFLAGS_value=$CPPFLAGS
770 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
771 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
772
773 #
774 # Report the --help message.
775 #
776 if test "$ac_init_help" = "long"; then
777   # Omit some internal or obsolete options to make the list less imposing.
778   # This message is too long to be a string in the A/UX 3.1 sh.
779   cat <<_ACEOF
780 \`configure' configures GNU OpenMP Runtime Library 1.0 to adapt to many kinds of systems.
781
782 Usage: $0 [OPTION]... [VAR=VALUE]...
783
784 To assign environment variables (e.g., CC, CFLAGS...), specify them as
785 VAR=VALUE.  See below for descriptions of some of the useful variables.
786
787 Defaults for the options are specified in brackets.
788
789 Configuration:
790   -h, --help              display this help and exit
791       --help=short        display options specific to this package
792       --help=recursive    display the short help of all the included packages
793   -V, --version           display version information and exit
794   -q, --quiet, --silent   do not print \`checking...' messages
795       --cache-file=FILE   cache test results in FILE [disabled]
796   -C, --config-cache      alias for \`--cache-file=config.cache'
797   -n, --no-create         do not create output files
798       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
799
800 _ACEOF
801
802   cat <<_ACEOF
803 Installation directories:
804   --prefix=PREFIX         install architecture-independent files in PREFIX
805                           [$ac_default_prefix]
806   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
807                           [PREFIX]
808
809 By default, \`make install' will install all the files in
810 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
811 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812 for instance \`--prefix=\$HOME'.
813
814 For better control, use the options below.
815
816 Fine tuning of the installation directories:
817   --bindir=DIR           user executables [EPREFIX/bin]
818   --sbindir=DIR          system admin executables [EPREFIX/sbin]
819   --libexecdir=DIR       program executables [EPREFIX/libexec]
820   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
821   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
822   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
823   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
824   --libdir=DIR           object code libraries [EPREFIX/lib]
825   --includedir=DIR       C header files [PREFIX/include]
826   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
827   --infodir=DIR          info documentation [PREFIX/info]
828   --mandir=DIR           man documentation [PREFIX/man]
829 _ACEOF
830
831   cat <<\_ACEOF
832
833 Program names:
834   --program-prefix=PREFIX            prepend PREFIX to installed program names
835   --program-suffix=SUFFIX            append SUFFIX to installed program names
836   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
837
838 System types:
839   --build=BUILD     configure for building on BUILD [guessed]
840   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
841   --target=TARGET   configure for building compilers for TARGET [HOST]
842 _ACEOF
843 fi
844
845 if test -n "$ac_init_help"; then
846   case $ac_init_help in
847      short | recursive ) echo "Configuration of GNU OpenMP Runtime Library 1.0:";;
848    esac
849   cat <<\_ACEOF
850
851 Optional Features:
852   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
853   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
854   --enable-version-specific-runtime-libs
855                           Specify that runtime libraries should be installed
856                           in a compiler-specific directory [default=no]
857   _g_switchUse the Linux futex system call
858                           permit yes|no [default=yes]
859   --enable-multilib       build many library versions (default)
860   --disable-dependency-tracking  speeds up one-time build
861   --enable-dependency-tracking   do not reject slow dependency extractors
862   --enable-shared=PKGS  build shared libraries default=yes
863   --enable-static=PKGS  build static libraries default=yes
864   --enable-fast-install=PKGS  optimize for fast installation default=yes
865   --disable-libtool-lock  avoid locking (might break parallel builds)
866   --enable-maintainer-mode  enable make rules and dependencies not useful
867                           (and sometimes confusing) to the casual installer
868   _g_switchUse thread-local storage
869                           [default=yes]
870   --enable-symvers=STYLE  enables symbol versioning of the shared library
871                           [default=yes]
872
873 Optional Packages:
874   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
875   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
876   --with-gnu-ld           assume the C compiler uses GNU ld default=no
877   --with-pic              try to use only PIC/non-PIC objects default=use both
878
879 Some influential environment variables:
880   CC          C compiler command
881   CFLAGS      C compiler flags
882   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
883               nonstandard directory <lib dir>
884   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
885               headers in a nonstandard directory <include dir>
886   FC          Fortran compiler command
887   FCFLAGS     Fortran compiler flags
888   CPP         C preprocessor
889
890 Use these variables to override the choices made by `configure' or to help
891 it to find libraries and programs with nonstandard names/locations.
892
893 _ACEOF
894 fi
895
896 if test "$ac_init_help" = "recursive"; then
897   # If there are subdirs, report their specific --help.
898   ac_popdir=`pwd`
899   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
900     test -d $ac_dir || continue
901     ac_builddir=.
902
903 if test "$ac_dir" != .; then
904   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
905   # A "../" for each directory in $ac_dir_suffix.
906   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
907 else
908   ac_dir_suffix= ac_top_builddir=
909 fi
910
911 case $srcdir in
912   .)  # No --srcdir option.  We are building in place.
913     ac_srcdir=.
914     if test -z "$ac_top_builddir"; then
915        ac_top_srcdir=.
916     else
917        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
918     fi ;;
919   [\\/]* | ?:[\\/]* )  # Absolute path.
920     ac_srcdir=$srcdir$ac_dir_suffix;
921     ac_top_srcdir=$srcdir ;;
922   *) # Relative path.
923     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
924     ac_top_srcdir=$ac_top_builddir$srcdir ;;
925 esac
926
927 # Do not use `cd foo && pwd` to compute absolute paths, because
928 # the directories may not exist.
929 case `pwd` in
930 .) ac_abs_builddir="$ac_dir";;
931 *)
932   case "$ac_dir" in
933   .) ac_abs_builddir=`pwd`;;
934   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
935   *) ac_abs_builddir=`pwd`/"$ac_dir";;
936   esac;;
937 esac
938 case $ac_abs_builddir in
939 .) ac_abs_top_builddir=${ac_top_builddir}.;;
940 *)
941   case ${ac_top_builddir}. in
942   .) ac_abs_top_builddir=$ac_abs_builddir;;
943   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
944   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
945   esac;;
946 esac
947 case $ac_abs_builddir in
948 .) ac_abs_srcdir=$ac_srcdir;;
949 *)
950   case $ac_srcdir in
951   .) ac_abs_srcdir=$ac_abs_builddir;;
952   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
953   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
954   esac;;
955 esac
956 case $ac_abs_builddir in
957 .) ac_abs_top_srcdir=$ac_top_srcdir;;
958 *)
959   case $ac_top_srcdir in
960   .) ac_abs_top_srcdir=$ac_abs_builddir;;
961   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
962   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
963   esac;;
964 esac
965
966     cd $ac_dir
967     # Check for guested configure; otherwise get Cygnus style configure.
968     if test -f $ac_srcdir/configure.gnu; then
969       echo
970       $SHELL $ac_srcdir/configure.gnu  --help=recursive
971     elif test -f $ac_srcdir/configure; then
972       echo
973       $SHELL $ac_srcdir/configure  --help=recursive
974     elif test -f $ac_srcdir/configure.ac ||
975            test -f $ac_srcdir/configure.in; then
976       echo
977       $ac_configure --help
978     else
979       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
980     fi
981     cd "$ac_popdir"
982   done
983 fi
984
985 test -n "$ac_init_help" && exit 0
986 if $ac_init_version; then
987   cat <<\_ACEOF
988 GNU OpenMP Runtime Library configure 1.0
989 generated by GNU Autoconf 2.59
990
991 Copyright (C) 2003 Free Software Foundation, Inc.
992 This configure script is free software; the Free Software Foundation
993 gives unlimited permission to copy, distribute and modify it.
994 _ACEOF
995   exit 0
996 fi
997 exec 5>config.log
998 cat >&5 <<_ACEOF
999 This file contains any messages produced by compilers while
1000 running configure, to aid debugging if configure makes a mistake.
1001
1002 It was created by GNU OpenMP Runtime Library $as_me 1.0, which was
1003 generated by GNU Autoconf 2.59.  Invocation command line was
1004
1005   $ $0 $@
1006
1007 _ACEOF
1008 {
1009 cat <<_ASUNAME
1010 ## --------- ##
1011 ## Platform. ##
1012 ## --------- ##
1013
1014 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1015 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1016 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1017 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1018 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1019
1020 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1021 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1022
1023 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1024 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1025 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1026 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1027 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1028 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1029 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1030
1031 _ASUNAME
1032
1033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1034 for as_dir in $PATH
1035 do
1036   IFS=$as_save_IFS
1037   test -z "$as_dir" && as_dir=.
1038   echo "PATH: $as_dir"
1039 done
1040
1041 } >&5
1042
1043 cat >&5 <<_ACEOF
1044
1045
1046 ## ----------- ##
1047 ## Core tests. ##
1048 ## ----------- ##
1049
1050 _ACEOF
1051
1052
1053 # Keep a trace of the command line.
1054 # Strip out --no-create and --no-recursion so they do not pile up.
1055 # Strip out --silent because we don't want to record it for future runs.
1056 # Also quote any args containing shell meta-characters.
1057 # Make two passes to allow for proper duplicate-argument suppression.
1058 ac_configure_args=
1059 ac_configure_args0=
1060 ac_configure_args1=
1061 ac_sep=
1062 ac_must_keep_next=false
1063 for ac_pass in 1 2
1064 do
1065   for ac_arg
1066   do
1067     case $ac_arg in
1068     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1069     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1070     | -silent | --silent | --silen | --sile | --sil)
1071       continue ;;
1072     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1073       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1074     esac
1075     case $ac_pass in
1076     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1077     2)
1078       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1079       if test $ac_must_keep_next = true; then
1080         ac_must_keep_next=false # Got value, back to normal.
1081       else
1082         case $ac_arg in
1083           *=* | --config-cache | -C | -disable-* | --disable-* \
1084           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1085           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1086           | -with-* | --with-* | -without-* | --without-* | --x)
1087             case "$ac_configure_args0 " in
1088               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1089             esac
1090             ;;
1091           -* ) ac_must_keep_next=true ;;
1092         esac
1093       fi
1094       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1095       # Get rid of the leading space.
1096       ac_sep=" "
1097       ;;
1098     esac
1099   done
1100 done
1101 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1102 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1103
1104 # When interrupted or exit'd, cleanup temporary files, and complete
1105 # config.log.  We remove comments because anyway the quotes in there
1106 # would cause problems or look ugly.
1107 # WARNING: Be sure not to use single quotes in there, as some shells,
1108 # such as our DU 5.0 friend, will then `close' the trap.
1109 trap 'exit_status=$?
1110   # Save into config.log some information that might help in debugging.
1111   {
1112     echo
1113
1114     cat <<\_ASBOX
1115 ## ---------------- ##
1116 ## Cache variables. ##
1117 ## ---------------- ##
1118 _ASBOX
1119     echo
1120     # The following way of writing the cache mishandles newlines in values,
1121 {
1122   (set) 2>&1 |
1123     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1124     *ac_space=\ *)
1125       sed -n \
1126         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1127           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1128       ;;
1129     *)
1130       sed -n \
1131         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1132       ;;
1133     esac;
1134 }
1135     echo
1136
1137     cat <<\_ASBOX
1138 ## ----------------- ##
1139 ## Output variables. ##
1140 ## ----------------- ##
1141 _ASBOX
1142     echo
1143     for ac_var in $ac_subst_vars
1144     do
1145       eval ac_val=$`echo $ac_var`
1146       echo "$ac_var='"'"'$ac_val'"'"'"
1147     done | sort
1148     echo
1149
1150     if test -n "$ac_subst_files"; then
1151       cat <<\_ASBOX
1152 ## ------------- ##
1153 ## Output files. ##
1154 ## ------------- ##
1155 _ASBOX
1156       echo
1157       for ac_var in $ac_subst_files
1158       do
1159         eval ac_val=$`echo $ac_var`
1160         echo "$ac_var='"'"'$ac_val'"'"'"
1161       done | sort
1162       echo
1163     fi
1164
1165     if test -s confdefs.h; then
1166       cat <<\_ASBOX
1167 ## ----------- ##
1168 ## confdefs.h. ##
1169 ## ----------- ##
1170 _ASBOX
1171       echo
1172       sed "/^$/d" confdefs.h | sort
1173       echo
1174     fi
1175     test "$ac_signal" != 0 &&
1176       echo "$as_me: caught signal $ac_signal"
1177     echo "$as_me: exit $exit_status"
1178   } >&5
1179   rm -f core *.core &&
1180   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1181     exit $exit_status
1182      ' 0
1183 for ac_signal in 1 2 13 15; do
1184   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1185 done
1186 ac_signal=0
1187
1188 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1189 rm -rf conftest* confdefs.h
1190 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1191 echo >confdefs.h
1192
1193 # Predefined preprocessor variables.
1194
1195 cat >>confdefs.h <<_ACEOF
1196 #define PACKAGE_NAME "$PACKAGE_NAME"
1197 _ACEOF
1198
1199
1200 cat >>confdefs.h <<_ACEOF
1201 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1202 _ACEOF
1203
1204
1205 cat >>confdefs.h <<_ACEOF
1206 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1207 _ACEOF
1208
1209
1210 cat >>confdefs.h <<_ACEOF
1211 #define PACKAGE_STRING "$PACKAGE_STRING"
1212 _ACEOF
1213
1214
1215 cat >>confdefs.h <<_ACEOF
1216 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1217 _ACEOF
1218
1219
1220 # Let the site file select an alternate cache file if it wants to.
1221 # Prefer explicitly selected file to automatically selected ones.
1222 if test -z "$CONFIG_SITE"; then
1223   if test "x$prefix" != xNONE; then
1224     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1225   else
1226     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1227   fi
1228 fi
1229 for ac_site_file in $CONFIG_SITE; do
1230   if test -r "$ac_site_file"; then
1231     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1232 echo "$as_me: loading site script $ac_site_file" >&6;}
1233     sed 's/^/| /' "$ac_site_file" >&5
1234     . "$ac_site_file"
1235   fi
1236 done
1237
1238 if test -r "$cache_file"; then
1239   # Some versions of bash will fail to source /dev/null (special
1240   # files actually), so we avoid doing that.
1241   if test -f "$cache_file"; then
1242     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1243 echo "$as_me: loading cache $cache_file" >&6;}
1244     case $cache_file in
1245       [\\/]* | ?:[\\/]* ) . $cache_file;;
1246       *)                      . ./$cache_file;;
1247     esac
1248   fi
1249 else
1250   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1251 echo "$as_me: creating cache $cache_file" >&6;}
1252   >$cache_file
1253 fi
1254
1255 # Check that the precious variables saved in the cache have kept the same
1256 # value.
1257 ac_cache_corrupted=false
1258 for ac_var in `(set) 2>&1 |
1259                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1260   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1261   eval ac_new_set=\$ac_env_${ac_var}_set
1262   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1263   eval ac_new_val="\$ac_env_${ac_var}_value"
1264   case $ac_old_set,$ac_new_set in
1265     set,)
1266       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1267 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1268       ac_cache_corrupted=: ;;
1269     ,set)
1270       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1271 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1272       ac_cache_corrupted=: ;;
1273     ,);;
1274     *)
1275       if test "x$ac_old_val" != "x$ac_new_val"; then
1276         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1277 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1278         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1279 echo "$as_me:   former value:  $ac_old_val" >&2;}
1280         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1281 echo "$as_me:   current value: $ac_new_val" >&2;}
1282         ac_cache_corrupted=:
1283       fi;;
1284   esac
1285   # Pass precious variables to config.status.
1286   if test "$ac_new_set" = set; then
1287     case $ac_new_val in
1288     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1289       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1290     *) ac_arg=$ac_var=$ac_new_val ;;
1291     esac
1292     case " $ac_configure_args " in
1293       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1294       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1295     esac
1296   fi
1297 done
1298 if $ac_cache_corrupted; then
1299   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1300 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1301   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1302 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1303    { (exit 1); exit 1; }; }
1304 fi
1305
1306 ac_ext=c
1307 ac_cpp='$CPP $CPPFLAGS'
1308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338           ac_config_headers="$ac_config_headers config.h"
1339
1340
1341 # -------
1342 # Options
1343 # -------
1344
1345 echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5
1346 echo $ECHO_N "checking for --enable-version-specific-runtime-libs... $ECHO_C" >&6
1347  # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1348 if test "${enable_version_specific_runtime_libs+set}" = set; then
1349   enableval="$enable_version_specific_runtime_libs"
1350
1351       case "$enableval" in
1352        yes|no) ;;
1353        *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific-runtime-libs" >&5
1354 echo "$as_me: error: Unknown argument to enable/disable version-specific-runtime-libs" >&2;}
1355    { (exit 1); exit 1; }; } ;;
1356                           esac
1357
1358 else
1359   enable_version_specific_runtime_libs=no
1360 fi;
1361
1362 echo "$as_me:$LINENO: result: $enable_version_specific_runtime_libs" >&5
1363 echo "${ECHO_T}$enable_version_specific_runtime_libs" >&6
1364
1365 echo "$as_me:$LINENO: checking for --enable-linux-futex" >&5
1366 echo $ECHO_N "checking for --enable-linux-futex... $ECHO_C" >&6
1367  # Check whether --enable-linux-futex or --disable-linux-futex was given.
1368 if test "${enable_linux_futex+set}" = set; then
1369   enableval="$enable_linux_futex"
1370
1371       case "$enableval" in
1372        yes|no) ;;
1373        *) { { echo "$as_me:$LINENO: error: Argument to enable/disable linux-futex must be yes or no" >&5
1374 echo "$as_me: error: Argument to enable/disable linux-futex must be yes or no" >&2;}
1375    { (exit 1); exit 1; }; } ;;
1376       esac
1377
1378 else
1379   enable_linux_futex=yes
1380 fi;
1381
1382 echo "$as_me:$LINENO: result: $enable_linux_futex" >&5
1383 echo "${ECHO_T}$enable_linux_futex" >&6
1384
1385 # -------
1386 # -------
1387
1388 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
1389 #
1390 # You will slowly go insane if you do not grok the following fact:  when
1391 # building this library, the top-level /target/ becomes the library's /host/.
1392 #
1393 # configure then causes --target to default to --host, exactly like any
1394 # other package using autoconf.  Therefore, 'target' and 'host' will
1395 # always be the same.  This makes sense both for native and cross compilers
1396 # just think about it for a little while.  :-)
1397 #
1398 # Also, if this library is being configured as part of a cross compiler, the
1399 # top-level configure script will pass the "real" host as $with_cross_host.
1400 #
1401 # Do not delete or change the following two lines.  For why, see
1402 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
1403 ac_aux_dir=
1404 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1405   if test -f $ac_dir/install-sh; then
1406     ac_aux_dir=$ac_dir
1407     ac_install_sh="$ac_aux_dir/install-sh -c"
1408     break
1409   elif test -f $ac_dir/install.sh; then
1410     ac_aux_dir=$ac_dir
1411     ac_install_sh="$ac_aux_dir/install.sh -c"
1412     break
1413   elif test -f $ac_dir/shtool; then
1414     ac_aux_dir=$ac_dir
1415     ac_install_sh="$ac_aux_dir/shtool install -c"
1416     break
1417   fi
1418 done
1419 if test -z "$ac_aux_dir"; then
1420   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1421 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1422    { (exit 1); exit 1; }; }
1423 fi
1424 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1425 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1426 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1427
1428 # Make sure we can run config.sub.
1429 $ac_config_sub sun4 >/dev/null 2>&1 ||
1430   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1431 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1432    { (exit 1); exit 1; }; }
1433
1434 echo "$as_me:$LINENO: checking build system type" >&5
1435 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1436 if test "${ac_cv_build+set}" = set; then
1437   echo $ECHO_N "(cached) $ECHO_C" >&6
1438 else
1439   ac_cv_build_alias=$build_alias
1440 test -z "$ac_cv_build_alias" &&
1441   ac_cv_build_alias=`$ac_config_guess`
1442 test -z "$ac_cv_build_alias" &&
1443   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1444 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1445    { (exit 1); exit 1; }; }
1446 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1447   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1448 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1449    { (exit 1); exit 1; }; }
1450
1451 fi
1452 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1453 echo "${ECHO_T}$ac_cv_build" >&6
1454 build=$ac_cv_build
1455 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1456 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1457 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1458
1459
1460 echo "$as_me:$LINENO: checking host system type" >&5
1461 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1462 if test "${ac_cv_host+set}" = set; then
1463   echo $ECHO_N "(cached) $ECHO_C" >&6
1464 else
1465   ac_cv_host_alias=$host_alias
1466 test -z "$ac_cv_host_alias" &&
1467   ac_cv_host_alias=$ac_cv_build_alias
1468 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1469   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1470 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1471    { (exit 1); exit 1; }; }
1472
1473 fi
1474 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1475 echo "${ECHO_T}$ac_cv_host" >&6
1476 host=$ac_cv_host
1477 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1478 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1479 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1480
1481
1482 echo "$as_me:$LINENO: checking target system type" >&5
1483 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1484 if test "${ac_cv_target+set}" = set; then
1485   echo $ECHO_N "(cached) $ECHO_C" >&6
1486 else
1487   ac_cv_target_alias=$target_alias
1488 test "x$ac_cv_target_alias" = "x" &&
1489   ac_cv_target_alias=$ac_cv_host_alias
1490 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1491   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1492 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1493    { (exit 1); exit 1; }; }
1494
1495 fi
1496 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1497 echo "${ECHO_T}$ac_cv_target" >&6
1498 target=$ac_cv_target
1499 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1500 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1501 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1502
1503
1504 # The aliases save the names the user supplied, while $host etc.
1505 # will get canonicalized.
1506 test -n "$target_alias" &&
1507   test "$program_prefix$program_suffix$program_transform_name" = \
1508     NONENONEs,x,x, &&
1509   program_prefix=${target_alias}-
1510 target_alias=${target_alias-$host_alias}
1511
1512 # Sets up automake.  Must come after AC_CANONICAL_SYSTEM.  Each of the
1513 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
1514 #  1.9.0:  minimum required version
1515 #  no-define:  PACKAGE and VERSION will not be #define'd in config.h (a bunch
1516 #              of other PACKAGE_* variables will, however, and there's nothing
1517 #              we can do about that; they come from AC_INIT).
1518 #  foreign:  we don't follow the normal rules for GNU packages (no COPYING
1519 #            file in the top srcdir, etc, etc), so stop complaining.
1520 #  no-dependencies:  turns off auto dependency generation (just for now)
1521 #  -Wall:  turns on all automake warnings...
1522 #  -Wno-portability:  ...except this one, since GNU make is required.
1523 #  -Wno-override: ... and this one, since we do want this in testsuite.
1524 am__api_version="1.9"
1525 # Find a good install program.  We prefer a C program (faster),
1526 # so one script is as good as another.  But avoid the broken or
1527 # incompatible versions:
1528 # SysV /etc/install, /usr/sbin/install
1529 # SunOS /usr/etc/install
1530 # IRIX /sbin/install
1531 # AIX /bin/install
1532 # AmigaOS /C/install, which installs bootblocks on floppy discs
1533 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1534 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1535 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1536 # OS/2's system install, which has a completely different semantic
1537 # ./install, which can be erroneously created by make from ./install.sh.
1538 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1539 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1540 if test -z "$INSTALL"; then
1541 if test "${ac_cv_path_install+set}" = set; then
1542   echo $ECHO_N "(cached) $ECHO_C" >&6
1543 else
1544   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1545 for as_dir in $PATH
1546 do
1547   IFS=$as_save_IFS
1548   test -z "$as_dir" && as_dir=.
1549   # Account for people who put trailing slashes in PATH elements.
1550 case $as_dir/ in
1551   ./ | .// | /cC/* | \
1552   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1553   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1554   /usr/ucb/* ) ;;
1555   *)
1556     # OSF1 and SCO ODT 3.0 have their own names for install.
1557     # Don't use installbsd from OSF since it installs stuff as root
1558     # by default.
1559     for ac_prog in ginstall scoinst install; do
1560       for ac_exec_ext in '' $ac_executable_extensions; do
1561         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1562           if test $ac_prog = install &&
1563             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1564             # AIX install.  It has an incompatible calling convention.
1565             :
1566           elif test $ac_prog = install &&
1567             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1568             # program-specific install script used by HP pwplus--don't use.
1569             :
1570           else
1571             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1572             break 3
1573           fi
1574         fi
1575       done
1576     done
1577     ;;
1578 esac
1579 done
1580
1581
1582 fi
1583   if test "${ac_cv_path_install+set}" = set; then
1584     INSTALL=$ac_cv_path_install
1585   else
1586     # As a last resort, use the slow shell script.  We don't cache a
1587     # path for INSTALL within a source directory, because that will
1588     # break other packages using the cache if that directory is
1589     # removed, or if the path is relative.
1590     INSTALL=$ac_install_sh
1591   fi
1592 fi
1593 echo "$as_me:$LINENO: result: $INSTALL" >&5
1594 echo "${ECHO_T}$INSTALL" >&6
1595
1596 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1597 # It thinks the first close brace ends the variable substitution.
1598 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1599
1600 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1601
1602 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1603
1604 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1605 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1606 # Just in case
1607 sleep 1
1608 echo timestamp > conftest.file
1609 # Do `set' in a subshell so we don't clobber the current shell's
1610 # arguments.  Must try -L first in case configure is actually a
1611 # symlink; some systems play weird games with the mod time of symlinks
1612 # (eg FreeBSD returns the mod time of the symlink's containing
1613 # directory).
1614 if (
1615    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1616    if test "$*" = "X"; then
1617       # -L didn't work.
1618       set X `ls -t $srcdir/configure conftest.file`
1619    fi
1620    rm -f conftest.file
1621    if test "$*" != "X $srcdir/configure conftest.file" \
1622       && test "$*" != "X conftest.file $srcdir/configure"; then
1623
1624       # If neither matched, then we have a broken ls.  This can happen
1625       # if, for instance, CONFIG_SHELL is bash and it inherits a
1626       # broken ls alias from the environment.  This has actually
1627       # happened.  Such a system could not be considered "sane".
1628       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1629 alias in your environment" >&5
1630 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1631 alias in your environment" >&2;}
1632    { (exit 1); exit 1; }; }
1633    fi
1634
1635    test "$2" = conftest.file
1636    )
1637 then
1638    # Ok.
1639    :
1640 else
1641    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1642 Check your system clock" >&5
1643 echo "$as_me: error: newly created file is older than distributed files!
1644 Check your system clock" >&2;}
1645    { (exit 1); exit 1; }; }
1646 fi
1647 echo "$as_me:$LINENO: result: yes" >&5
1648 echo "${ECHO_T}yes" >&6
1649 test "$program_prefix" != NONE &&
1650   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1651 # Use a double $ so make ignores it.
1652 test "$program_suffix" != NONE &&
1653   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1654 # Double any \ or $.  echo might interpret backslashes.
1655 # By default was `s,x,x', remove it if useless.
1656 cat <<\_ACEOF >conftest.sed
1657 s/[\\$]/&&/g;s/;s,x,x,$//
1658 _ACEOF
1659 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1660 rm conftest.sed
1661
1662 # expand $ac_aux_dir to an absolute path
1663 am_aux_dir=`cd $ac_aux_dir && pwd`
1664
1665 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1666 # Use eval to expand $SHELL
1667 if eval "$MISSING --run true"; then
1668   am_missing_run="$MISSING --run "
1669 else
1670   am_missing_run=
1671   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1672 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1673 fi
1674
1675 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1676   # We used to keeping the `.' as first argument, in order to
1677   # allow $(mkdir_p) to be used without argument.  As in
1678   #   $(mkdir_p) $(somedir)
1679   # where $(somedir) is conditionally defined.  However this is wrong
1680   # for two reasons:
1681   #  1. if the package is installed by a user who cannot write `.'
1682   #     make install will fail,
1683   #  2. the above comment should most certainly read
1684   #     $(mkdir_p) $(DESTDIR)$(somedir)
1685   #     so it does not work when $(somedir) is undefined and
1686   #     $(DESTDIR) is not.
1687   #  To support the latter case, we have to write
1688   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1689   #  so the `.' trick is pointless.
1690   mkdir_p='mkdir -p --'
1691 else
1692   # On NextStep and OpenStep, the `mkdir' command does not
1693   # recognize any option.  It will interpret all options as
1694   # directories to create, and then abort because `.' already
1695   # exists.
1696   for d in ./-p ./--version;
1697   do
1698     test -d $d && rmdir $d
1699   done
1700   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1701   if test -f "$ac_aux_dir/mkinstalldirs"; then
1702     mkdir_p='$(mkinstalldirs)'
1703   else
1704     mkdir_p='$(install_sh) -d'
1705   fi
1706 fi
1707
1708 for ac_prog in gawk mawk nawk awk
1709 do
1710   # Extract the first word of "$ac_prog", so it can be a program name with args.
1711 set dummy $ac_prog; ac_word=$2
1712 echo "$as_me:$LINENO: checking for $ac_word" >&5
1713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1714 if test "${ac_cv_prog_AWK+set}" = set; then
1715   echo $ECHO_N "(cached) $ECHO_C" >&6
1716 else
1717   if test -n "$AWK"; then
1718   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1719 else
1720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1721 for as_dir in $PATH
1722 do
1723   IFS=$as_save_IFS
1724   test -z "$as_dir" && as_dir=.
1725   for ac_exec_ext in '' $ac_executable_extensions; do
1726   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1727     ac_cv_prog_AWK="$ac_prog"
1728     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1729     break 2
1730   fi
1731 done
1732 done
1733
1734 fi
1735 fi
1736 AWK=$ac_cv_prog_AWK
1737 if test -n "$AWK"; then
1738   echo "$as_me:$LINENO: result: $AWK" >&5
1739 echo "${ECHO_T}$AWK" >&6
1740 else
1741   echo "$as_me:$LINENO: result: no" >&5
1742 echo "${ECHO_T}no" >&6
1743 fi
1744
1745   test -n "$AWK" && break
1746 done
1747
1748 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1749 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1750 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1751 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1752   echo $ECHO_N "(cached) $ECHO_C" >&6
1753 else
1754   cat >conftest.make <<\_ACEOF
1755 all:
1756         @echo 'ac_maketemp="$(MAKE)"'
1757 _ACEOF
1758 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1759 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1760 if test -n "$ac_maketemp"; then
1761   eval ac_cv_prog_make_${ac_make}_set=yes
1762 else
1763   eval ac_cv_prog_make_${ac_make}_set=no
1764 fi
1765 rm -f conftest.make
1766 fi
1767 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1768   echo "$as_me:$LINENO: result: yes" >&5
1769 echo "${ECHO_T}yes" >&6
1770   SET_MAKE=
1771 else
1772   echo "$as_me:$LINENO: result: no" >&5
1773 echo "${ECHO_T}no" >&6
1774   SET_MAKE="MAKE=${MAKE-make}"
1775 fi
1776
1777 rm -rf .tst 2>/dev/null
1778 mkdir .tst 2>/dev/null
1779 if test -d .tst; then
1780   am__leading_dot=.
1781 else
1782   am__leading_dot=_
1783 fi
1784 rmdir .tst 2>/dev/null
1785
1786 # test to see if srcdir already configured
1787 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1788    test -f $srcdir/config.status; then
1789   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1790 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1791    { (exit 1); exit 1; }; }
1792 fi
1793
1794 # test whether we have cygpath
1795 if test -z "$CYGPATH_W"; then
1796   if (cygpath --version) >/dev/null 2>/dev/null; then
1797     CYGPATH_W='cygpath -w'
1798   else
1799     CYGPATH_W=echo
1800   fi
1801 fi
1802
1803
1804 # Define the identity of the package.
1805  PACKAGE='libgomp'
1806  VERSION='1.0'
1807
1808
1809 cat >>confdefs.h <<_ACEOF
1810 #define PACKAGE "$PACKAGE"
1811 _ACEOF
1812
1813
1814 cat >>confdefs.h <<_ACEOF
1815 #define VERSION "$VERSION"
1816 _ACEOF
1817
1818 # Some tools Automake needs.
1819
1820 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1821
1822
1823 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1824
1825
1826 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1827
1828
1829 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1830
1831
1832 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1833
1834 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1835
1836 # Installed binaries are usually stripped using `strip' when the user
1837 # run `make install-strip'.  However `strip' might not be the right
1838 # tool to use in cross-compilation environments, therefore Automake
1839 # will honor the `STRIP' environment variable to overrule this program.
1840 if test "$cross_compiling" != no; then
1841   if test -n "$ac_tool_prefix"; then
1842   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1843 set dummy ${ac_tool_prefix}strip; ac_word=$2
1844 echo "$as_me:$LINENO: checking for $ac_word" >&5
1845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1846 if test "${ac_cv_prog_STRIP+set}" = set; then
1847   echo $ECHO_N "(cached) $ECHO_C" >&6
1848 else
1849   if test -n "$STRIP"; then
1850   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1851 else
1852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1853 for as_dir in $PATH
1854 do
1855   IFS=$as_save_IFS
1856   test -z "$as_dir" && as_dir=.
1857   for ac_exec_ext in '' $ac_executable_extensions; do
1858   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1859     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1860     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1861     break 2
1862   fi
1863 done
1864 done
1865
1866 fi
1867 fi
1868 STRIP=$ac_cv_prog_STRIP
1869 if test -n "$STRIP"; then
1870   echo "$as_me:$LINENO: result: $STRIP" >&5
1871 echo "${ECHO_T}$STRIP" >&6
1872 else
1873   echo "$as_me:$LINENO: result: no" >&5
1874 echo "${ECHO_T}no" >&6
1875 fi
1876
1877 fi
1878 if test -z "$ac_cv_prog_STRIP"; then
1879   ac_ct_STRIP=$STRIP
1880   # Extract the first word of "strip", so it can be a program name with args.
1881 set dummy 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_ac_ct_STRIP+set}" = set; then
1885   echo $ECHO_N "(cached) $ECHO_C" >&6
1886 else
1887   if test -n "$ac_ct_STRIP"; then
1888   ac_cv_prog_ac_ct_STRIP="$ac_ct_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_ac_ct_STRIP="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   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1905 fi
1906 fi
1907 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1908 if test -n "$ac_ct_STRIP"; then
1909   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1910 echo "${ECHO_T}$ac_ct_STRIP" >&6
1911 else
1912   echo "$as_me:$LINENO: result: no" >&5
1913 echo "${ECHO_T}no" >&6
1914 fi
1915
1916   STRIP=$ac_ct_STRIP
1917 else
1918   STRIP="$ac_cv_prog_STRIP"
1919 fi
1920
1921 fi
1922 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1923
1924 # We need awk for the "check" target.  The system "awk" is bad on
1925 # some platforms.
1926 # Always define AMTAR for backward compatibility.
1927
1928 AMTAR=${AMTAR-"${am_missing_run}tar"}
1929
1930 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1931
1932
1933
1934
1935
1936 # Default to --enable-multilib
1937 # Check whether --enable-multilib or --disable-multilib was given.
1938 if test "${enable_multilib+set}" = set; then
1939   enableval="$enable_multilib"
1940   case "$enableval" in
1941   yes) multilib=yes ;;
1942   no)  multilib=no ;;
1943   *)   { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1944 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1945    { (exit 1); exit 1; }; } ;;
1946  esac
1947 else
1948   multilib=yes
1949 fi;
1950
1951 # We may get other options which we leave undocumented:
1952 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1953 # See config-ml.in if you want the gory details.
1954
1955 if test "$srcdir" = "."; then
1956   if test "$with_target_subdir" != "."; then
1957     multi_basedir="$srcdir/$with_multisrctop../.."
1958   else
1959     multi_basedir="$srcdir/$with_multisrctop.."
1960   fi
1961 else
1962   multi_basedir="$srcdir/.."
1963 fi
1964
1965
1966           ac_config_commands="$ac_config_commands default-1"
1967
1968
1969 # Calculate toolexeclibdir
1970 # Also toolexecdir, though it's only used in toolexeclibdir
1971 case ${enable_version_specific_runtime_libs} in
1972   yes)
1973     # Need the gcc compiler version to know where to install libraries
1974     # and header files if --enable-version-specific-runtime-libs option
1975     # is selected.
1976     toolexecdir='$(libdir)/gcc/$(target_alias)'
1977     toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
1978     ;;
1979   no)
1980     if test -n "$with_cross_host" &&
1981        test x"$with_cross_host" != x"no"; then
1982       # Install a library built with a cross compiler in tooldir, not libdir.
1983       toolexecdir='$(exec_prefix)/$(target_alias)'
1984       toolexeclibdir='$(toolexecdir)/lib'
1985     else
1986       toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
1987       toolexeclibdir='$(libdir)'
1988     fi
1989     multi_os_directory=`$CC -print-multi-os-directory`
1990     case $multi_os_directory in
1991       .) ;; # Avoid trailing /.
1992       *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
1993     esac
1994     ;;
1995 esac
1996
1997
1998
1999 # Check the compiler.
2000 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
2001 # We must force CC to /not/ be precious variables; otherwise
2002 # the wrong, non-multilib-adjusted value will be used in multilibs.
2003 # As a side effect, we have to subst CFLAGS ourselves.
2004
2005
2006
2007 ac_ext=c
2008 ac_cpp='$CPP $CPPFLAGS'
2009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2012 if test -n "$ac_tool_prefix"; then
2013   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2014 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2015 echo "$as_me:$LINENO: checking for $ac_word" >&5
2016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2017 if test "${ac_cv_prog_CC+set}" = set; then
2018   echo $ECHO_N "(cached) $ECHO_C" >&6
2019 else
2020   if test -n "$CC"; then
2021   ac_cv_prog_CC="$CC" # Let the user override the test.
2022 else
2023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2024 for as_dir in $PATH
2025 do
2026   IFS=$as_save_IFS
2027   test -z "$as_dir" && as_dir=.
2028   for ac_exec_ext in '' $ac_executable_extensions; do
2029   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2030     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2031     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2032     break 2
2033   fi
2034 done
2035 done
2036
2037 fi
2038 fi
2039 CC=$ac_cv_prog_CC
2040 if test -n "$CC"; then
2041   echo "$as_me:$LINENO: result: $CC" >&5
2042 echo "${ECHO_T}$CC" >&6
2043 else
2044   echo "$as_me:$LINENO: result: no" >&5
2045 echo "${ECHO_T}no" >&6
2046 fi
2047
2048 fi
2049 if test -z "$ac_cv_prog_CC"; then
2050   ac_ct_CC=$CC
2051   # Extract the first word of "gcc", so it can be a program name with args.
2052 set dummy gcc; ac_word=$2
2053 echo "$as_me:$LINENO: checking for $ac_word" >&5
2054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2055 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2056   echo $ECHO_N "(cached) $ECHO_C" >&6
2057 else
2058   if test -n "$ac_ct_CC"; then
2059   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2060 else
2061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2062 for as_dir in $PATH
2063 do
2064   IFS=$as_save_IFS
2065   test -z "$as_dir" && as_dir=.
2066   for ac_exec_ext in '' $ac_executable_extensions; do
2067   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2068     ac_cv_prog_ac_ct_CC="gcc"
2069     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2070     break 2
2071   fi
2072 done
2073 done
2074
2075 fi
2076 fi
2077 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2078 if test -n "$ac_ct_CC"; then
2079   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2080 echo "${ECHO_T}$ac_ct_CC" >&6
2081 else
2082   echo "$as_me:$LINENO: result: no" >&5
2083 echo "${ECHO_T}no" >&6
2084 fi
2085
2086   CC=$ac_ct_CC
2087 else
2088   CC="$ac_cv_prog_CC"
2089 fi
2090
2091 if test -z "$CC"; then
2092   if test -n "$ac_tool_prefix"; then
2093   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2094 set dummy ${ac_tool_prefix}cc; ac_word=$2
2095 echo "$as_me:$LINENO: checking for $ac_word" >&5
2096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2097 if test "${ac_cv_prog_CC+set}" = set; then
2098   echo $ECHO_N "(cached) $ECHO_C" >&6
2099 else
2100   if test -n "$CC"; then
2101   ac_cv_prog_CC="$CC" # Let the user override the test.
2102 else
2103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2104 for as_dir in $PATH
2105 do
2106   IFS=$as_save_IFS
2107   test -z "$as_dir" && as_dir=.
2108   for ac_exec_ext in '' $ac_executable_extensions; do
2109   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2110     ac_cv_prog_CC="${ac_tool_prefix}cc"
2111     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2112     break 2
2113   fi
2114 done
2115 done
2116
2117 fi
2118 fi
2119 CC=$ac_cv_prog_CC
2120 if test -n "$CC"; then
2121   echo "$as_me:$LINENO: result: $CC" >&5
2122 echo "${ECHO_T}$CC" >&6
2123 else
2124   echo "$as_me:$LINENO: result: no" >&5
2125 echo "${ECHO_T}no" >&6
2126 fi
2127
2128 fi
2129 if test -z "$ac_cv_prog_CC"; then
2130   ac_ct_CC=$CC
2131   # Extract the first word of "cc", so it can be a program name with args.
2132 set dummy cc; ac_word=$2
2133 echo "$as_me:$LINENO: checking for $ac_word" >&5
2134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2135 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2136   echo $ECHO_N "(cached) $ECHO_C" >&6
2137 else
2138   if test -n "$ac_ct_CC"; then
2139   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2140 else
2141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2142 for as_dir in $PATH
2143 do
2144   IFS=$as_save_IFS
2145   test -z "$as_dir" && as_dir=.
2146   for ac_exec_ext in '' $ac_executable_extensions; do
2147   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2148     ac_cv_prog_ac_ct_CC="cc"
2149     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2150     break 2
2151   fi
2152 done
2153 done
2154
2155 fi
2156 fi
2157 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2158 if test -n "$ac_ct_CC"; then
2159   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2160 echo "${ECHO_T}$ac_ct_CC" >&6
2161 else
2162   echo "$as_me:$LINENO: result: no" >&5
2163 echo "${ECHO_T}no" >&6
2164 fi
2165
2166   CC=$ac_ct_CC
2167 else
2168   CC="$ac_cv_prog_CC"
2169 fi
2170
2171 fi
2172 if test -z "$CC"; then
2173   # Extract the first word of "cc", so it can be a program name with args.
2174 set dummy cc; ac_word=$2
2175 echo "$as_me:$LINENO: checking for $ac_word" >&5
2176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2177 if test "${ac_cv_prog_CC+set}" = set; then
2178   echo $ECHO_N "(cached) $ECHO_C" >&6
2179 else
2180   if test -n "$CC"; then
2181   ac_cv_prog_CC="$CC" # Let the user override the test.
2182 else
2183   ac_prog_rejected=no
2184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2185 for as_dir in $PATH
2186 do
2187   IFS=$as_save_IFS
2188   test -z "$as_dir" && as_dir=.
2189   for ac_exec_ext in '' $ac_executable_extensions; do
2190   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2191     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2192        ac_prog_rejected=yes
2193        continue
2194      fi
2195     ac_cv_prog_CC="cc"
2196     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2197     break 2
2198   fi
2199 done
2200 done
2201
2202 if test $ac_prog_rejected = yes; then
2203   # We found a bogon in the path, so make sure we never use it.
2204   set dummy $ac_cv_prog_CC
2205   shift
2206   if test $# != 0; then
2207     # We chose a different compiler from the bogus one.
2208     # However, it has the same basename, so the bogon will be chosen
2209     # first if we set CC to just the basename; use the full file name.
2210     shift
2211     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2212   fi
2213 fi
2214 fi
2215 fi
2216 CC=$ac_cv_prog_CC
2217 if test -n "$CC"; then
2218   echo "$as_me:$LINENO: result: $CC" >&5
2219 echo "${ECHO_T}$CC" >&6
2220 else
2221   echo "$as_me:$LINENO: result: no" >&5
2222 echo "${ECHO_T}no" >&6
2223 fi
2224
2225 fi
2226 if test -z "$CC"; then
2227   if test -n "$ac_tool_prefix"; then
2228   for ac_prog in cl
2229   do
2230     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2231 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2232 echo "$as_me:$LINENO: checking for $ac_word" >&5
2233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2234 if test "${ac_cv_prog_CC+set}" = set; then
2235   echo $ECHO_N "(cached) $ECHO_C" >&6
2236 else
2237   if test -n "$CC"; then
2238   ac_cv_prog_CC="$CC" # Let the user override the test.
2239 else
2240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2241 for as_dir in $PATH
2242 do
2243   IFS=$as_save_IFS
2244   test -z "$as_dir" && as_dir=.
2245   for ac_exec_ext in '' $ac_executable_extensions; do
2246   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2247     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2248     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2249     break 2
2250   fi
2251 done
2252 done
2253
2254 fi
2255 fi
2256 CC=$ac_cv_prog_CC
2257 if test -n "$CC"; then
2258   echo "$as_me:$LINENO: result: $CC" >&5
2259 echo "${ECHO_T}$CC" >&6
2260 else
2261   echo "$as_me:$LINENO: result: no" >&5
2262 echo "${ECHO_T}no" >&6
2263 fi
2264
2265     test -n "$CC" && break
2266   done
2267 fi
2268 if test -z "$CC"; then
2269   ac_ct_CC=$CC
2270   for ac_prog in cl
2271 do
2272   # Extract the first word of "$ac_prog", so it can be a program name with args.
2273 set dummy $ac_prog; ac_word=$2
2274 echo "$as_me:$LINENO: checking for $ac_word" >&5
2275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2276 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2277   echo $ECHO_N "(cached) $ECHO_C" >&6
2278 else
2279   if test -n "$ac_ct_CC"; then
2280   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2281 else
2282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2283 for as_dir in $PATH
2284 do
2285   IFS=$as_save_IFS
2286   test -z "$as_dir" && as_dir=.
2287   for ac_exec_ext in '' $ac_executable_extensions; do
2288   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2289     ac_cv_prog_ac_ct_CC="$ac_prog"
2290     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2291     break 2
2292   fi
2293 done
2294 done
2295
2296 fi
2297 fi
2298 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2299 if test -n "$ac_ct_CC"; then
2300   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2301 echo "${ECHO_T}$ac_ct_CC" >&6
2302 else
2303   echo "$as_me:$LINENO: result: no" >&5
2304 echo "${ECHO_T}no" >&6
2305 fi
2306
2307   test -n "$ac_ct_CC" && break
2308 done
2309
2310   CC=$ac_ct_CC
2311 fi
2312
2313 fi
2314
2315
2316 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2317 See \`config.log' for more details." >&5
2318 echo "$as_me: error: no acceptable C compiler found in \$PATH
2319 See \`config.log' for more details." >&2;}
2320    { (exit 1); exit 1; }; }
2321
2322 # Provide some information about the compiler.
2323 echo "$as_me:$LINENO:" \
2324      "checking for C compiler version" >&5
2325 ac_compiler=`set X $ac_compile; echo $2`
2326 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2327   (eval $ac_compiler --version </dev/null >&5) 2>&5
2328   ac_status=$?
2329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330   (exit $ac_status); }
2331 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2332   (eval $ac_compiler -v </dev/null >&5) 2>&5
2333   ac_status=$?
2334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2335   (exit $ac_status); }
2336 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2337   (eval $ac_compiler -V </dev/null >&5) 2>&5
2338   ac_status=$?
2339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2340   (exit $ac_status); }
2341
2342 cat >conftest.$ac_ext <<_ACEOF
2343 /* confdefs.h.  */
2344 _ACEOF
2345 cat confdefs.h >>conftest.$ac_ext
2346 cat >>conftest.$ac_ext <<_ACEOF
2347 /* end confdefs.h.  */
2348
2349 int
2350 main ()
2351 {
2352
2353   ;
2354   return 0;
2355 }
2356 _ACEOF
2357 ac_clean_files_save=$ac_clean_files
2358 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2359 # Try to create an executable without -o first, disregard a.out.
2360 # It will help us diagnose broken compilers, and finding out an intuition
2361 # of exeext.
2362 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2363 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2364 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2365 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2366   (eval $ac_link_default) 2>&5
2367   ac_status=$?
2368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369   (exit $ac_status); }; then
2370   # Find the output, starting from the most likely.  This scheme is
2371 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2372 # resort.
2373
2374 # Be careful to initialize this variable, since it used to be cached.
2375 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2376 ac_cv_exeext=
2377 # b.out is created by i960 compilers.
2378 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2379 do
2380   test -f "$ac_file" || continue
2381   case $ac_file in
2382     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2383         ;;
2384     conftest.$ac_ext )
2385         # This is the source file.
2386         ;;
2387     [ab].out )
2388         # We found the default executable, but exeext='' is most
2389         # certainly right.
2390         break;;
2391     *.* )
2392         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2393         # FIXME: I believe we export ac_cv_exeext for Libtool,
2394         # but it would be cool to find out if it's true.  Does anybody
2395         # maintain Libtool? --akim.
2396         export ac_cv_exeext
2397         break;;
2398     * )
2399         break;;
2400   esac
2401 done
2402 else
2403   echo "$as_me: failed program was:" >&5
2404 sed 's/^/| /' conftest.$ac_ext >&5
2405
2406 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2407 See \`config.log' for more details." >&5
2408 echo "$as_me: error: C compiler cannot create executables
2409 See \`config.log' for more details." >&2;}
2410    { (exit 77); exit 77; }; }
2411 fi
2412
2413 ac_exeext=$ac_cv_exeext
2414 echo "$as_me:$LINENO: result: $ac_file" >&5
2415 echo "${ECHO_T}$ac_file" >&6
2416
2417 # Check the compiler produces executables we can run.  If not, either
2418 # the compiler is broken, or we cross compile.
2419 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2420 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2421 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2422 # If not cross compiling, check that we can run a simple program.
2423 if test "$cross_compiling" != yes; then
2424   if { ac_try='./$ac_file'
2425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2426   (eval $ac_try) 2>&5
2427   ac_status=$?
2428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429   (exit $ac_status); }; }; then
2430     cross_compiling=no
2431   else
2432     if test "$cross_compiling" = maybe; then
2433         cross_compiling=yes
2434     else
2435         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2436 If you meant to cross compile, use \`--host'.
2437 See \`config.log' for more details." >&5
2438 echo "$as_me: error: cannot run C compiled programs.
2439 If you meant to cross compile, use \`--host'.
2440 See \`config.log' for more details." >&2;}
2441    { (exit 1); exit 1; }; }
2442     fi
2443   fi
2444 fi
2445 echo "$as_me:$LINENO: result: yes" >&5
2446 echo "${ECHO_T}yes" >&6
2447
2448 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2449 ac_clean_files=$ac_clean_files_save
2450 # Check the compiler produces executables we can run.  If not, either
2451 # the compiler is broken, or we cross compile.
2452 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2453 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2454 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2455 echo "${ECHO_T}$cross_compiling" >&6
2456
2457 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2458 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2460   (eval $ac_link) 2>&5
2461   ac_status=$?
2462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463   (exit $ac_status); }; then
2464   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2465 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2466 # work properly (i.e., refer to `conftest.exe'), while it won't with
2467 # `rm'.
2468 for ac_file in conftest.exe conftest conftest.*; do
2469   test -f "$ac_file" || continue
2470   case $ac_file in
2471     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2472     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2473           export ac_cv_exeext
2474           break;;
2475     * ) break;;
2476   esac
2477 done
2478 else
2479   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2480 See \`config.log' for more details." >&5
2481 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2482 See \`config.log' for more details." >&2;}
2483    { (exit 1); exit 1; }; }
2484 fi
2485
2486 rm -f conftest$ac_cv_exeext
2487 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2488 echo "${ECHO_T}$ac_cv_exeext" >&6
2489
2490 rm -f conftest.$ac_ext
2491 EXEEXT=$ac_cv_exeext
2492 ac_exeext=$EXEEXT
2493 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2494 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2495 if test "${ac_cv_objext+set}" = set; then
2496   echo $ECHO_N "(cached) $ECHO_C" >&6
2497 else
2498   cat >conftest.$ac_ext <<_ACEOF
2499 /* confdefs.h.  */
2500 _ACEOF
2501 cat confdefs.h >>conftest.$ac_ext
2502 cat >>conftest.$ac_ext <<_ACEOF
2503 /* end confdefs.h.  */
2504
2505 int
2506 main ()
2507 {
2508
2509   ;
2510   return 0;
2511 }
2512 _ACEOF
2513 rm -f conftest.o conftest.obj
2514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2515   (eval $ac_compile) 2>&5
2516   ac_status=$?
2517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518   (exit $ac_status); }; then
2519   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2520   case $ac_file in
2521     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2522     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2523        break;;
2524   esac
2525 done
2526 else
2527   echo "$as_me: failed program was:" >&5
2528 sed 's/^/| /' conftest.$ac_ext >&5
2529
2530 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2531 See \`config.log' for more details." >&5
2532 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2533 See \`config.log' for more details." >&2;}
2534    { (exit 1); exit 1; }; }
2535 fi
2536
2537 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2538 fi
2539 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2540 echo "${ECHO_T}$ac_cv_objext" >&6
2541 OBJEXT=$ac_cv_objext
2542 ac_objext=$OBJEXT
2543 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2544 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2545 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2546   echo $ECHO_N "(cached) $ECHO_C" >&6
2547 else
2548   cat >conftest.$ac_ext <<_ACEOF
2549 /* confdefs.h.  */
2550 _ACEOF
2551 cat confdefs.h >>conftest.$ac_ext
2552 cat >>conftest.$ac_ext <<_ACEOF
2553 /* end confdefs.h.  */
2554
2555 int
2556 main ()
2557 {
2558 #ifndef __GNUC__
2559        choke me
2560 #endif
2561
2562   ;
2563   return 0;
2564 }
2565 _ACEOF
2566 rm -f conftest.$ac_objext
2567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2568   (eval $ac_compile) 2>conftest.er1
2569   ac_status=$?
2570   grep -v '^ *+' conftest.er1 >conftest.err
2571   rm -f conftest.er1
2572   cat conftest.err >&5
2573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574   (exit $ac_status); } &&
2575          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2577   (eval $ac_try) 2>&5
2578   ac_status=$?
2579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580   (exit $ac_status); }; } &&
2581          { ac_try='test -s conftest.$ac_objext'
2582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2583   (eval $ac_try) 2>&5
2584   ac_status=$?
2585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586   (exit $ac_status); }; }; then
2587   ac_compiler_gnu=yes
2588 else
2589   echo "$as_me: failed program was:" >&5
2590 sed 's/^/| /' conftest.$ac_ext >&5
2591
2592 ac_compiler_gnu=no
2593 fi
2594 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2595 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2596
2597 fi
2598 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2599 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2600 GCC=`test $ac_compiler_gnu = yes && echo yes`
2601 ac_test_CFLAGS=${CFLAGS+set}
2602 ac_save_CFLAGS=$CFLAGS
2603 CFLAGS="-g"
2604 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2605 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2606 if test "${ac_cv_prog_cc_g+set}" = set; then
2607   echo $ECHO_N "(cached) $ECHO_C" >&6
2608 else
2609   cat >conftest.$ac_ext <<_ACEOF
2610 /* confdefs.h.  */
2611 _ACEOF
2612 cat confdefs.h >>conftest.$ac_ext
2613 cat >>conftest.$ac_ext <<_ACEOF
2614 /* end confdefs.h.  */
2615
2616 int
2617 main ()
2618 {
2619
2620   ;
2621   return 0;
2622 }
2623 _ACEOF
2624 rm -f conftest.$ac_objext
2625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2626   (eval $ac_compile) 2>conftest.er1
2627   ac_status=$?
2628   grep -v '^ *+' conftest.er1 >conftest.err
2629   rm -f conftest.er1
2630   cat conftest.err >&5
2631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632   (exit $ac_status); } &&
2633          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2635   (eval $ac_try) 2>&5
2636   ac_status=$?
2637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638   (exit $ac_status); }; } &&
2639          { ac_try='test -s conftest.$ac_objext'
2640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2641   (eval $ac_try) 2>&5
2642   ac_status=$?
2643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2644   (exit $ac_status); }; }; then
2645   ac_cv_prog_cc_g=yes
2646 else
2647   echo "$as_me: failed program was:" >&5
2648 sed 's/^/| /' conftest.$ac_ext >&5
2649
2650 ac_cv_prog_cc_g=no
2651 fi
2652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2653 fi
2654 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2655 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2656 if test "$ac_test_CFLAGS" = set; then
2657   CFLAGS=$ac_save_CFLAGS
2658 elif test $ac_cv_prog_cc_g = yes; then
2659   if test "$GCC" = yes; then
2660     CFLAGS="-g -O2"
2661   else
2662     CFLAGS="-g"
2663   fi
2664 else
2665   if test "$GCC" = yes; then
2666     CFLAGS="-O2"
2667   else
2668     CFLAGS=
2669   fi
2670 fi
2671 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2672 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2673 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2674   echo $ECHO_N "(cached) $ECHO_C" >&6
2675 else
2676   ac_cv_prog_cc_stdc=no
2677 ac_save_CC=$CC
2678 cat >conftest.$ac_ext <<_ACEOF
2679 /* confdefs.h.  */
2680 _ACEOF
2681 cat confdefs.h >>conftest.$ac_ext
2682 cat >>conftest.$ac_ext <<_ACEOF
2683 /* end confdefs.h.  */
2684 #include <stdarg.h>
2685 #include <stdio.h>
2686 #include <sys/types.h>
2687 #include <sys/stat.h>
2688 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2689 struct buf { int x; };
2690 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2691 static char *e (p, i)
2692      char **p;
2693      int i;
2694 {
2695   return p[i];
2696 }
2697 static char *f (char * (*g) (char **, int), char **p, ...)
2698 {
2699   char *s;
2700   va_list v;
2701   va_start (v,p);
2702   s = g (p, va_arg (v,int));
2703   va_end (v);
2704   return s;
2705 }
2706
2707 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2708    function prototypes and stuff, but not '\xHH' hex character constants.
2709    These don't provoke an error unfortunately, instead are silently treated
2710    as 'x'.  The following induces an error, until -std1 is added to get
2711    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2712    array size at least.  It's necessary to write '\x00'==0 to get something
2713    that's true only with -std1.  */
2714 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2715
2716 int test (int i, double x);
2717 struct s1 {int (*f) (int a);};
2718 struct s2 {int (*f) (double a);};
2719 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2720 int argc;
2721 char **argv;
2722 int
2723 main ()
2724 {
2725 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2726   ;
2727   return 0;
2728 }
2729 _ACEOF
2730 # Don't try gcc -ansi; that turns off useful extensions and
2731 # breaks some systems' header files.
2732 # AIX                   -qlanglvl=ansi
2733 # Ultrix and OSF/1      -std1
2734 # HP-UX 10.20 and later -Ae
2735 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2736 # SVR4                  -Xc -D__EXTENSIONS__
2737 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2738 do
2739   CC="$ac_save_CC $ac_arg"
2740   rm -f conftest.$ac_objext
2741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2742   (eval $ac_compile) 2>conftest.er1
2743   ac_status=$?
2744   grep -v '^ *+' conftest.er1 >conftest.err
2745   rm -f conftest.er1
2746   cat conftest.err >&5
2747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748   (exit $ac_status); } &&
2749          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2751   (eval $ac_try) 2>&5
2752   ac_status=$?
2753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754   (exit $ac_status); }; } &&
2755          { ac_try='test -s conftest.$ac_objext'
2756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2757   (eval $ac_try) 2>&5
2758   ac_status=$?
2759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760   (exit $ac_status); }; }; then
2761   ac_cv_prog_cc_stdc=$ac_arg
2762 break
2763 else
2764   echo "$as_me: failed program was:" >&5
2765 sed 's/^/| /' conftest.$ac_ext >&5
2766
2767 fi
2768 rm -f conftest.err conftest.$ac_objext
2769 done
2770 rm -f conftest.$ac_ext conftest.$ac_objext
2771 CC=$ac_save_CC
2772
2773 fi
2774
2775 case "x$ac_cv_prog_cc_stdc" in
2776   x|xno)
2777     echo "$as_me:$LINENO: result: none needed" >&5
2778 echo "${ECHO_T}none needed" >&6 ;;
2779   *)
2780     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2781 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2782     CC="$CC $ac_cv_prog_cc_stdc" ;;
2783 esac
2784
2785 # Some people use a C++ compiler to compile C.  Since we use `exit',
2786 # in C++ we need to declare it.  In case someone uses the same compiler
2787 # for both compiling C and C++ we need to have the C++ compiler decide
2788 # the declaration of exit, since it's the most demanding environment.
2789 cat >conftest.$ac_ext <<_ACEOF
2790 #ifndef __cplusplus
2791   choke me
2792 #endif
2793 _ACEOF
2794 rm -f conftest.$ac_objext
2795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2796   (eval $ac_compile) 2>conftest.er1
2797   ac_status=$?
2798   grep -v '^ *+' conftest.er1 >conftest.err
2799   rm -f conftest.er1
2800   cat conftest.err >&5
2801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802   (exit $ac_status); } &&
2803          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
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); }; } &&
2809          { ac_try='test -s conftest.$ac_objext'
2810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2811   (eval $ac_try) 2>&5
2812   ac_status=$?
2813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814   (exit $ac_status); }; }; then
2815   for ac_declaration in \
2816    '' \
2817    'extern "C" void std::exit (int) throw (); using std::exit;' \
2818    'extern "C" void std::exit (int); using std::exit;' \
2819    'extern "C" void exit (int) throw ();' \
2820    'extern "C" void exit (int);' \
2821    'void exit (int);'
2822 do
2823   cat >conftest.$ac_ext <<_ACEOF
2824 /* confdefs.h.  */
2825 _ACEOF
2826 cat confdefs.h >>conftest.$ac_ext
2827 cat >>conftest.$ac_ext <<_ACEOF
2828 /* end confdefs.h.  */
2829 $ac_declaration
2830 #include <stdlib.h>
2831 int
2832 main ()
2833 {
2834 exit (42);
2835   ;
2836   return 0;
2837 }
2838 _ACEOF
2839 rm -f conftest.$ac_objext
2840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2841   (eval $ac_compile) 2>conftest.er1
2842   ac_status=$?
2843   grep -v '^ *+' conftest.er1 >conftest.err
2844   rm -f conftest.er1
2845   cat conftest.err >&5
2846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847   (exit $ac_status); } &&
2848          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2850   (eval $ac_try) 2>&5
2851   ac_status=$?
2852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2853   (exit $ac_status); }; } &&
2854          { ac_try='test -s conftest.$ac_objext'
2855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2856   (eval $ac_try) 2>&5
2857   ac_status=$?
2858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2859   (exit $ac_status); }; }; then
2860   :
2861 else
2862   echo "$as_me: failed program was:" >&5
2863 sed 's/^/| /' conftest.$ac_ext >&5
2864
2865 continue
2866 fi
2867 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2868   cat >conftest.$ac_ext <<_ACEOF
2869 /* confdefs.h.  */
2870 _ACEOF
2871 cat confdefs.h >>conftest.$ac_ext
2872 cat >>conftest.$ac_ext <<_ACEOF
2873 /* end confdefs.h.  */
2874 $ac_declaration
2875 int
2876 main ()
2877 {
2878 exit (42);
2879   ;
2880   return 0;
2881 }
2882 _ACEOF
2883 rm -f conftest.$ac_objext
2884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2885   (eval $ac_compile) 2>conftest.er1
2886   ac_status=$?
2887   grep -v '^ *+' conftest.er1 >conftest.err
2888   rm -f conftest.er1
2889   cat conftest.err >&5
2890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891   (exit $ac_status); } &&
2892          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2894   (eval $ac_try) 2>&5
2895   ac_status=$?
2896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2897   (exit $ac_status); }; } &&
2898          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2904   break
2905 else
2906   echo "$as_me: failed program was:" >&5
2907 sed 's/^/| /' conftest.$ac_ext >&5
2908
2909 fi
2910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2911 done
2912 rm -f conftest*
2913 if test -n "$ac_declaration"; then
2914   echo '#ifdef __cplusplus' >>confdefs.h
2915   echo $ac_declaration      >>confdefs.h
2916   echo '#endif'             >>confdefs.h
2917 fi
2918
2919 else
2920   echo "$as_me: failed program was:" >&5
2921 sed 's/^/| /' conftest.$ac_ext >&5
2922
2923 fi
2924 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2925 ac_ext=c
2926 ac_cpp='$CPP $CPPFLAGS'
2927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2930 DEPDIR="${am__leading_dot}deps"
2931
2932           ac_config_commands="$ac_config_commands depfiles"
2933
2934
2935 am_make=${MAKE-make}
2936 cat > confinc << 'END'
2937 am__doit:
2938         @echo done
2939 .PHONY: am__doit
2940 END
2941 # If we don't find an include directive, just comment out the code.
2942 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2943 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2944 am__include="#"
2945 am__quote=
2946 _am_result=none
2947 # First try GNU make style include.
2948 echo "include confinc" > confmf
2949 # We grep out `Entering directory' and `Leaving directory'
2950 # messages which can occur if `w' ends up in MAKEFLAGS.
2951 # In particular we don't look at `^make:' because GNU make might
2952 # be invoked under some other name (usually "gmake"), in which
2953 # case it prints its new name instead of `make'.
2954 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2955    am__include=include
2956    am__quote=
2957    _am_result=GNU
2958 fi
2959 # Now try BSD make style include.
2960 if test "$am__include" = "#"; then
2961    echo '.include "confinc"' > confmf
2962    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2963       am__include=.include
2964       am__quote="\""
2965       _am_result=BSD
2966    fi
2967 fi
2968
2969
2970 echo "$as_me:$LINENO: result: $_am_result" >&5
2971 echo "${ECHO_T}$_am_result" >&6
2972 rm -f confinc confmf
2973
2974 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2975 if test "${enable_dependency_tracking+set}" = set; then
2976   enableval="$enable_dependency_tracking"
2977
2978 fi;
2979 if test "x$enable_dependency_tracking" != xno; then
2980   am_depcomp="$ac_aux_dir/depcomp"
2981   AMDEPBACKSLASH='\'
2982 fi
2983
2984
2985 if test "x$enable_dependency_tracking" != xno; then
2986   AMDEP_TRUE=
2987   AMDEP_FALSE='#'
2988 else
2989   AMDEP_TRUE='#'
2990   AMDEP_FALSE=
2991 fi
2992
2993
2994
2995
2996 depcc="$CC"   am_compiler_list=
2997
2998 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2999 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3000 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3001   echo $ECHO_N "(cached) $ECHO_C" >&6
3002 else
3003   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3004   # We make a subdir and do the tests there.  Otherwise we can end up
3005   # making bogus files that we don't know about and never remove.  For
3006   # instance it was reported that on HP-UX the gcc test will end up
3007   # making a dummy file named `D' -- because `-MD' means `put the output
3008   # in D'.
3009   mkdir conftest.dir
3010   # Copy depcomp to subdir because otherwise we won't find it if we're
3011   # using a relative directory.
3012   cp "$am_depcomp" conftest.dir
3013   cd conftest.dir
3014   # We will build objects and dependencies in a subdirectory because
3015   # it helps to detect inapplicable dependency modes.  For instance
3016   # both Tru64's cc and ICC support -MD to output dependencies as a
3017   # side effect of compilation, but ICC will put the dependencies in
3018   # the current directory while Tru64 will put them in the object
3019   # directory.
3020   mkdir sub
3021
3022   am_cv_CC_dependencies_compiler_type=none
3023   if test "$am_compiler_list" = ""; then
3024      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3025   fi
3026   for depmode in $am_compiler_list; do
3027     # Setup a source with many dependencies, because some compilers
3028     # like to wrap large dependency lists on column 80 (with \), and
3029     # we should not choose a depcomp mode which is confused by this.
3030     #
3031     # We need to recreate these files for each test, as the compiler may
3032     # overwrite some of them when testing with obscure command lines.
3033     # This happens at least with the AIX C compiler.
3034     : > sub/conftest.c
3035     for i in 1 2 3 4 5 6; do
3036       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3037       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3038       # Solaris 8's {/usr,}/bin/sh.
3039       touch sub/conftst$i.h
3040     done
3041     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3042
3043     case $depmode in
3044     nosideeffect)
3045       # after this tag, mechanisms are not by side-effect, so they'll
3046       # only be used when explicitly requested
3047       if test "x$enable_dependency_tracking" = xyes; then
3048         continue
3049       else
3050         break
3051       fi
3052       ;;
3053     none) break ;;
3054     esac
3055     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3056     # mode.  It turns out that the SunPro C++ compiler does not properly
3057     # handle `-M -o', and we need to detect this.
3058     if depmode=$depmode \
3059        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3060        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3061        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3062          >/dev/null 2>conftest.err &&
3063        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3064        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3065        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3066       # icc doesn't choke on unknown options, it will just issue warnings
3067       # or remarks (even with -Werror).  So we grep stderr for any message
3068       # that says an option was ignored or not supported.
3069       # When given -MP, icc 7.0 and 7.1 complain thusly:
3070       #   icc: Command line warning: ignoring option '-M'; no argument required
3071       # The diagnosis changed in icc 8.0:
3072       #   icc: Command line remark: option '-MP' not supported
3073       if (grep 'ignoring option' conftest.err ||
3074           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3075         am_cv_CC_dependencies_compiler_type=$depmode
3076         break
3077       fi
3078     fi
3079   done
3080
3081   cd ..
3082   rm -rf conftest.dir
3083 else
3084   am_cv_CC_dependencies_compiler_type=none
3085 fi
3086
3087 fi
3088 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3089 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3090 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3091
3092
3093
3094 if
3095   test "x$enable_dependency_tracking" != xno \
3096   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3097   am__fastdepCC_TRUE=
3098   am__fastdepCC_FALSE='#'
3099 else
3100   am__fastdepCC_TRUE='#'
3101   am__fastdepCC_FALSE=
3102 fi
3103
3104
3105
3106
3107
3108
3109 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
3110 # in XCFLAGS.  But we need them in CFLAGS during configury.  So put them
3111 # in both places for now and restore CFLAGS at the end of config.
3112 save_CFLAGS="$CFLAGS"
3113
3114 # Add -Wall -Werror if we are using GCC.
3115 if test "x$GCC" = "xyes"; then
3116   XCFLAGS="$XCFLAGS -Wall -Werror"
3117 fi
3118
3119 # Find other programs we need.
3120 if test -n "$ac_tool_prefix"; then
3121   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3122 set dummy ${ac_tool_prefix}ar; ac_word=$2
3123 echo "$as_me:$LINENO: checking for $ac_word" >&5
3124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3125 if test "${ac_cv_prog_AR+set}" = set; then
3126   echo $ECHO_N "(cached) $ECHO_C" >&6
3127 else
3128   if test -n "$AR"; then
3129   ac_cv_prog_AR="$AR" # Let the user override the test.
3130 else
3131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3132 for as_dir in $PATH
3133 do
3134   IFS=$as_save_IFS
3135   test -z "$as_dir" && as_dir=.
3136   for ac_exec_ext in '' $ac_executable_extensions; do
3137   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3138     ac_cv_prog_AR="${ac_tool_prefix}ar"
3139     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3140     break 2
3141   fi
3142 done
3143 done
3144
3145 fi
3146 fi
3147 AR=$ac_cv_prog_AR
3148 if test -n "$AR"; then
3149   echo "$as_me:$LINENO: result: $AR" >&5
3150 echo "${ECHO_T}$AR" >&6
3151 else
3152   echo "$as_me:$LINENO: result: no" >&5
3153 echo "${ECHO_T}no" >&6
3154 fi
3155
3156 fi
3157 if test -z "$ac_cv_prog_AR"; then
3158   ac_ct_AR=$AR
3159   # Extract the first word of "ar", so it can be a program name with args.
3160 set dummy ar; ac_word=$2
3161 echo "$as_me:$LINENO: checking for $ac_word" >&5
3162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3163 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3164   echo $ECHO_N "(cached) $ECHO_C" >&6
3165 else
3166   if test -n "$ac_ct_AR"; then
3167   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3168 else
3169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3170 for as_dir in $PATH
3171 do
3172   IFS=$as_save_IFS
3173   test -z "$as_dir" && as_dir=.
3174   for ac_exec_ext in '' $ac_executable_extensions; do
3175   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3176     ac_cv_prog_ac_ct_AR="ar"
3177     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3178     break 2
3179   fi
3180 done
3181 done
3182
3183 fi
3184 fi
3185 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3186 if test -n "$ac_ct_AR"; then
3187   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3188 echo "${ECHO_T}$ac_ct_AR" >&6
3189 else
3190   echo "$as_me:$LINENO: result: no" >&5
3191 echo "${ECHO_T}no" >&6
3192 fi
3193
3194   AR=$ac_ct_AR
3195 else
3196   AR="$ac_cv_prog_AR"
3197 fi
3198
3199 if test -n "$ac_tool_prefix"; then
3200   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3201 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3202 echo "$as_me:$LINENO: checking for $ac_word" >&5
3203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3204 if test "${ac_cv_prog_RANLIB+set}" = set; then
3205   echo $ECHO_N "(cached) $ECHO_C" >&6
3206 else
3207   if test -n "$RANLIB"; then
3208   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3209 else
3210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3211 for as_dir in $PATH
3212 do
3213   IFS=$as_save_IFS
3214   test -z "$as_dir" && as_dir=.
3215   for ac_exec_ext in '' $ac_executable_extensions; do
3216   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3217     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3218     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3219     break 2
3220   fi
3221 done
3222 done
3223
3224 fi
3225 fi
3226 RANLIB=$ac_cv_prog_RANLIB
3227 if test -n "$RANLIB"; then
3228   echo "$as_me:$LINENO: result: $RANLIB" >&5
3229 echo "${ECHO_T}$RANLIB" >&6
3230 else
3231   echo "$as_me:$LINENO: result: no" >&5
3232 echo "${ECHO_T}no" >&6
3233 fi
3234
3235 fi
3236 if test -z "$ac_cv_prog_RANLIB"; then
3237   ac_ct_RANLIB=$RANLIB
3238   # Extract the first word of "ranlib", so it can be a program name with args.
3239 set dummy ranlib; ac_word=$2
3240 echo "$as_me:$LINENO: checking for $ac_word" >&5
3241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3242 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3243   echo $ECHO_N "(cached) $ECHO_C" >&6
3244 else
3245   if test -n "$ac_ct_RANLIB"; then
3246   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3247 else
3248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3249 for as_dir in $PATH
3250 do
3251   IFS=$as_save_IFS
3252   test -z "$as_dir" && as_dir=.
3253   for ac_exec_ext in '' $ac_executable_extensions; do
3254   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3255     ac_cv_prog_ac_ct_RANLIB="ranlib"
3256     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3257     break 2
3258   fi
3259 done
3260 done
3261
3262   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="ranlib-not-found-in-path-error"
3263 fi
3264 fi
3265 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3266 if test -n "$ac_ct_RANLIB"; then
3267   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3268 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3269 else
3270   echo "$as_me:$LINENO: result: no" >&5
3271 echo "${ECHO_T}no" >&6
3272 fi
3273
3274   RANLIB=$ac_ct_RANLIB
3275 else
3276   RANLIB="$ac_cv_prog_RANLIB"
3277 fi
3278
3279 # Extract the first word of "perl", so it can be a program name with args.
3280 set dummy perl; ac_word=$2
3281 echo "$as_me:$LINENO: checking for $ac_word" >&5
3282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3283 if test "${ac_cv_path_PERL+set}" = set; then
3284   echo $ECHO_N "(cached) $ECHO_C" >&6
3285 else
3286   case $PERL in
3287   [\\/]* | ?:[\\/]*)
3288   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3289   ;;
3290   *)
3291   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3292 for as_dir in $PATH
3293 do
3294   IFS=$as_save_IFS
3295   test -z "$as_dir" && as_dir=.
3296   for ac_exec_ext in '' $ac_executable_extensions; do
3297   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3298     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
3299     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3300     break 2
3301   fi
3302 done
3303 done
3304
3305   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
3306   ;;
3307 esac
3308 fi
3309 PERL=$ac_cv_path_PERL
3310
3311 if test -n "$PERL"; then
3312   echo "$as_me:$LINENO: result: $PERL" >&5
3313 echo "${ECHO_T}$PERL" >&6
3314 else
3315   echo "$as_me:$LINENO: result: no" >&5
3316 echo "${ECHO_T}no" >&6
3317 fi
3318
3319 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3320 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3321 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3322 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3323   echo $ECHO_N "(cached) $ECHO_C" >&6
3324 else
3325   cat >conftest.make <<\_ACEOF
3326 all:
3327         @echo 'ac_maketemp="$(MAKE)"'
3328 _ACEOF
3329 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3330 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3331 if test -n "$ac_maketemp"; then
3332   eval ac_cv_prog_make_${ac_make}_set=yes
3333 else
3334   eval ac_cv_prog_make_${ac_make}_set=no
3335 fi
3336 rm -f conftest.make
3337 fi
3338 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3339   echo "$as_me:$LINENO: result: yes" >&5
3340 echo "${ECHO_T}yes" >&6
3341   SET_MAKE=
3342 else
3343   echo "$as_me:$LINENO: result: no" >&5
3344 echo "${ECHO_T}no" >&6
3345   SET_MAKE="MAKE=${MAKE-make}"
3346 fi
3347
3348 # Find a good install program.  We prefer a C program (faster),
3349 # so one script is as good as another.  But avoid the broken or
3350 # incompatible versions:
3351 # SysV /etc/install, /usr/sbin/install
3352 # SunOS /usr/etc/install
3353 # IRIX /sbin/install
3354 # AIX /bin/install
3355 # AmigaOS /C/install, which installs bootblocks on floppy discs
3356 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3357 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3358 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3359 # OS/2's system install, which has a completely different semantic
3360 # ./install, which can be erroneously created by make from ./install.sh.
3361 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3362 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3363 if test -z "$INSTALL"; then
3364 if test "${ac_cv_path_install+set}" = set; then
3365   echo $ECHO_N "(cached) $ECHO_C" >&6
3366 else
3367   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3368 for as_dir in $PATH
3369 do
3370   IFS=$as_save_IFS
3371   test -z "$as_dir" && as_dir=.
3372   # Account for people who put trailing slashes in PATH elements.
3373 case $as_dir/ in
3374   ./ | .// | /cC/* | \
3375   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3376   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3377   /usr/ucb/* ) ;;
3378   *)
3379     # OSF1 and SCO ODT 3.0 have their own names for install.
3380     # Don't use installbsd from OSF since it installs stuff as root
3381     # by default.
3382     for ac_prog in ginstall scoinst install; do
3383       for ac_exec_ext in '' $ac_executable_extensions; do
3384         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3385           if test $ac_prog = install &&
3386             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3387             # AIX install.  It has an incompatible calling convention.
3388             :
3389           elif test $ac_prog = install &&
3390             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3391             # program-specific install script used by HP pwplus--don't use.
3392             :
3393           else
3394             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3395             break 3
3396           fi
3397         fi
3398       done
3399     done
3400     ;;
3401 esac
3402 done
3403
3404
3405 fi
3406   if test "${ac_cv_path_install+set}" = set; then
3407     INSTALL=$ac_cv_path_install
3408   else
3409     # As a last resort, use the slow shell script.  We don't cache a
3410     # path for INSTALL within a source directory, because that will
3411     # break other packages using the cache if that directory is
3412     # removed, or if the path is relative.
3413     INSTALL=$ac_install_sh
3414   fi
3415 fi
3416 echo "$as_me:$LINENO: result: $INSTALL" >&5
3417 echo "${ECHO_T}$INSTALL" >&6
3418
3419 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3420 # It thinks the first close brace ends the variable substitution.
3421 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3422
3423 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3424
3425 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3426
3427
3428 # Configure libtool
3429 # Check whether --enable-shared or --disable-shared was given.
3430 if test "${enable_shared+set}" = set; then
3431   enableval="$enable_shared"
3432   p=${PACKAGE-default}
3433 case $enableval in
3434 yes) enable_shared=yes ;;
3435 no) enable_shared=no ;;
3436 *)
3437   enable_shared=no
3438   # Look at the argument we got.  We use all the common list separators.
3439   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3440   for pkg in $enableval; do
3441     if test "X$pkg" = "X$p"; then
3442       enable_shared=yes
3443     fi
3444   done
3445   IFS="$ac_save_ifs"
3446   ;;
3447 esac
3448 else
3449   enable_shared=yes
3450 fi;
3451 # Check whether --enable-static or --disable-static was given.
3452 if test "${enable_static+set}" = set; then
3453   enableval="$enable_static"
3454   p=${PACKAGE-default}
3455 case $enableval in
3456 yes) enable_static=yes ;;
3457 no) enable_static=no ;;
3458 *)
3459   enable_static=no
3460   # Look at the argument we got.  We use all the common list separators.
3461   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3462   for pkg in $enableval; do
3463     if test "X$pkg" = "X$p"; then
3464       enable_static=yes
3465     fi
3466   done
3467   IFS="$ac_save_ifs"
3468   ;;
3469 esac
3470 else
3471   enable_static=yes
3472 fi;
3473 # Check whether --enable-fast-install or --disable-fast-install was given.
3474 if test "${enable_fast_install+set}" = set; then
3475   enableval="$enable_fast_install"
3476   p=${PACKAGE-default}
3477 case $enableval in
3478 yes) enable_fast_install=yes ;;
3479 no) enable_fast_install=no ;;
3480 *)
3481   enable_fast_install=no
3482   # Look at the argument we got.  We use all the common list separators.
3483   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3484   for pkg in $enableval; do
3485     if test "X$pkg" = "X$p"; then
3486       enable_fast_install=yes
3487     fi
3488   done
3489   IFS="$ac_save_ifs"
3490   ;;
3491 esac
3492 else
3493   enable_fast_install=yes
3494 fi;
3495
3496 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3497 if test "${with_gnu_ld+set}" = set; then
3498   withval="$with_gnu_ld"
3499   test "$withval" = no || with_gnu_ld=yes
3500 else
3501   with_gnu_ld=no
3502 fi;
3503 ac_prog=ld
3504 if test "$GCC" = yes; then
3505   # Check if gcc -print-prog-name=ld gives a path.
3506   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3507 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3508   case $host in
3509   *-*-mingw*)
3510     # gcc leaves a trailing carriage return which upsets mingw
3511     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3512   *)
3513     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3514   esac
3515   case $ac_prog in
3516     # Accept absolute paths.
3517     [\\/]* | [A-Za-z]:[\\/]*)
3518       re_direlt='/[^/][^/]*/\.\./'
3519       # Canonicalize the path of ld
3520       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3521       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3522         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3523       done
3524       test -z "$LD" && LD="$ac_prog"
3525       ;;
3526   "")
3527     # If it fails, then pretend we aren't using GCC.
3528     ac_prog=ld
3529     ;;
3530   *)
3531     # If it is relative, then search for the first ld in PATH.
3532     with_gnu_ld=unknown
3533     ;;
3534   esac
3535 elif test "$with_gnu_ld" = yes; then
3536   echo "$as_me:$LINENO: checking for GNU ld" >&5
3537 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3538 else
3539   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3540 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3541 fi
3542 if test "${lt_cv_path_LD+set}" = set; then
3543   echo $ECHO_N "(cached) $ECHO_C" >&6
3544 else
3545   if test -z "$LD"; then
3546   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3547   for ac_dir in $PATH; do
3548     test -z "$ac_dir" && ac_dir=.
3549     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3550       lt_cv_path_LD="$ac_dir/$ac_prog"
3551       # Check to see if the program is GNU ld.  I'd rather use --version,
3552       # but apparently some GNU ld's only accept -v.
3553       # Break only if it was the GNU/non-GNU ld that we prefer.
3554       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3555         test "$with_gnu_ld" != no && break
3556       else
3557         test "$with_gnu_ld" != yes && break
3558       fi
3559     fi
3560   done
3561   IFS="$ac_save_ifs"
3562 else
3563   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3564 fi
3565 fi
3566
3567 LD="$lt_cv_path_LD"
3568 if test -n "$LD"; then
3569   echo "$as_me:$LINENO: result: $LD" >&5
3570 echo "${ECHO_T}$LD" >&6
3571 else
3572   echo "$as_me:$LINENO: result: no" >&5
3573 echo "${ECHO_T}no" >&6
3574 fi
3575 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3576 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3577    { (exit 1); exit 1; }; }
3578 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3579 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3580 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3581   echo $ECHO_N "(cached) $ECHO_C" >&6
3582 else
3583   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3584 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3585   lt_cv_prog_gnu_ld=yes
3586 else
3587   lt_cv_prog_gnu_ld=no
3588 fi
3589 fi
3590 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3591 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3592 with_gnu_ld=$lt_cv_prog_gnu_ld
3593
3594
3595 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3596 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3597 if test "${lt_cv_ld_reload_flag+set}" = set; then
3598   echo $ECHO_N "(cached) $ECHO_C" >&6
3599 else
3600   lt_cv_ld_reload_flag='-r'
3601 fi
3602 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3603 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3604 reload_flag=$lt_cv_ld_reload_flag
3605 test -n "$reload_flag" && reload_flag=" $reload_flag"
3606
3607 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3608 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3609 if test "${lt_cv_path_NM+set}" = set; then
3610   echo $ECHO_N "(cached) $ECHO_C" >&6
3611 else
3612   if test -n "$NM"; then
3613   # Let the user override the test.
3614   lt_cv_path_NM="$NM"
3615 else
3616   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3617   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3618     test -z "$ac_dir" && ac_dir=.
3619     tmp_nm=$ac_dir/${ac_tool_prefix}nm
3620     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3621       # Check to see if the nm accepts a BSD-compat flag.
3622       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3623       #   nm: unknown option "B" ignored
3624       # Tru64's nm complains that /dev/null is an invalid object file
3625       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3626         lt_cv_path_NM="$tmp_nm -B"
3627         break
3628       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3629         lt_cv_path_NM="$tmp_nm -p"
3630         break
3631       else
3632         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3633         continue # so that we can try to find one that supports BSD flags
3634       fi
3635     fi
3636   done
3637   IFS="$ac_save_ifs"
3638   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3639 fi
3640 fi
3641
3642 NM="$lt_cv_path_NM"
3643 echo "$as_me:$LINENO: result: $NM" >&5
3644 echo "${ECHO_T}$NM" >&6
3645
3646 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3647 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3648 LN_S=$as_ln_s
3649 if test "$LN_S" = "ln -s"; then
3650   echo "$as_me:$LINENO: result: yes" >&5
3651 echo "${ECHO_T}yes" >&6
3652 else
3653   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3654 echo "${ECHO_T}no, using $LN_S" >&6
3655 fi
3656
3657 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3658 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3659 if test "${lt_cv_deplibs_check_method+set}" = set; then
3660   echo $ECHO_N "(cached) $ECHO_C" >&6
3661 else
3662   lt_cv_file_magic_cmd='$MAGIC_CMD'
3663 lt_cv_file_magic_test_file=
3664 lt_cv_deplibs_check_method='unknown'
3665 # Need to set the preceding variable on all platforms that support
3666 # interlibrary dependencies.
3667 # 'none' -- dependencies not supported.
3668 # `unknown' -- same as none, but documents that we really don't know.
3669 # 'pass_all' -- all dependencies passed with no checks.
3670 # 'test_compile' -- check by making test program.
3671 # 'file_magic [regex]' -- check by looking for files in library path
3672 # which responds to the $file_magic_cmd with a given egrep regex.
3673 # If you have `file' or equivalent on your system and you're not sure
3674 # whether `pass_all' will *always* work, you probably want this one.
3675
3676 case $host_os in
3677 aix*)
3678   lt_cv_deplibs_check_method=pass_all
3679   ;;
3680
3681 beos*)
3682   lt_cv_deplibs_check_method=pass_all
3683   ;;
3684
3685 bsdi4*)
3686   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3687   lt_cv_file_magic_cmd='/usr/bin/file -L'
3688   lt_cv_file_magic_test_file=/shlib/libc.so
3689   ;;
3690
3691 cygwin* | mingw* |pw32*)
3692   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3693   lt_cv_file_magic_cmd='$OBJDUMP -f'
3694   ;;
3695
3696 darwin* | rhapsody*)
3697   # this will be overwritten by pass_all, but leave it in just in case
3698   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3699   lt_cv_file_magic_cmd='/usr/bin/file -L'
3700   case "$host_os" in
3701   rhapsody* | darwin1.012)
3702     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3703     ;;
3704   *) # Darwin 1.3 on
3705     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3706     ;;
3707   esac
3708   lt_cv_deplibs_check_method=pass_all
3709   ;;
3710
3711 freebsd* | kfreebsd*-gnu)
3712   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3713     case $host_cpu in
3714     i*86 )
3715       # Not sure whether the presence of OpenBSD here was a mistake.
3716       # Let's accept both of them until this is cleared up.
3717       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3718       lt_cv_file_magic_cmd=/usr/bin/file
3719       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3720       ;;
3721     esac
3722   else
3723     lt_cv_deplibs_check_method=pass_all
3724   fi
3725   ;;
3726
3727 gnu*)
3728   lt_cv_deplibs_check_method=pass_all
3729   ;;
3730
3731 hpux10.20*|hpux11*)
3732   case $host_cpu in
3733   hppa*)
3734     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3735     lt_cv_file_magic_cmd=/usr/bin/file
3736     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3737     ;;
3738   ia64*)
3739     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3740     lt_cv_file_magic_cmd=/usr/bin/file
3741     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3742     ;;
3743   esac
3744   ;;
3745
3746 irix5* | irix6*)
3747   case $host_os in
3748   irix5*)
3749     # this will be overridden with pass_all, but let us keep it just in case
3750     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3751     ;;
3752   *)
3753     case $LD in
3754     *-32|*"-32 ") libmagic=32-bit;;
3755     *-n32|*"-n32 ") libmagic=N32;;
3756     *-64|*"-64 ") libmagic=64-bit;;
3757     *) libmagic=never-match;;
3758     esac
3759     # this will be overridden with pass_all, but let us keep it just in case
3760     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3761     ;;
3762   esac
3763   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3764   lt_cv_deplibs_check_method=pass_all
3765   ;;
3766
3767 # This must be Linux ELF.
3768 linux-gnu*)
3769   lt_cv_deplibs_check_method=pass_all
3770   ;;
3771
3772 netbsd* | knetbsd*-gnu)
3773   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3774     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3775   else
3776     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3777   fi
3778   ;;
3779
3780 newsos6)
3781   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3782   lt_cv_file_magic_cmd=/usr/bin/file
3783   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3784   ;;
3785
3786 osf3* | osf4* | osf5*)
3787   # this will be overridden with pass_all, but let us keep it just in case
3788   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3789   lt_cv_file_magic_test_file=/shlib/libc.so
3790   lt_cv_deplibs_check_method=pass_all
3791   ;;
3792
3793 sco3.2v5*)
3794   lt_cv_deplibs_check_method=pass_all
3795   ;;
3796
3797 solaris*)
3798   lt_cv_deplibs_check_method=pass_all
3799   lt_cv_file_magic_test_file=/lib/libc.so
3800   ;;
3801
3802 sysv5uw[78]* | sysv4*uw2*)
3803   lt_cv_deplibs_check_method=pass_all
3804   ;;
3805
3806 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3807   case $host_vendor in
3808   ncr)
3809     lt_cv_deplibs_check_method=pass_all
3810     ;;
3811   motorola)
3812     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]'
3813     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3814     ;;
3815   esac
3816   ;;
3817 esac
3818
3819 fi
3820 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3821 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3822 file_magic_cmd=$lt_cv_file_magic_cmd
3823 deplibs_check_method=$lt_cv_deplibs_check_method
3824
3825
3826
3827
3828
3829 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3830
3831 # find the maximum length of command line arguments
3832 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3833 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3834 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3835   echo $ECHO_N "(cached) $ECHO_C" >&6
3836 else
3837     i=0
3838   teststring="ABCD"
3839
3840   case $build_os in
3841   msdosdjgpp*)
3842     # On DJGPP, this test can blow up pretty badly due to problems in libc
3843     # (any single argument exceeding 2000 bytes causes a buffer overrun
3844     # during glob expansion).  Even if it were fixed, the result of this
3845     # check would be larger than it should be.
3846     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
3847     ;;
3848
3849   cygwin* | mingw*)
3850     # On Win9x/ME, this test blows up -- it succeeds, but takes
3851     # about 5 minutes as the teststring grows exponentially.
3852     # Worse, since 9x/ME are not pre-emptively multitasking,
3853     # you end up with a "frozen" computer, even though with patience
3854     # the test eventually succeeds (with a max line length of 256k).
3855     # Instead, let's just punt: use the minimum linelength reported by
3856     # all of the supported platforms: 8192 (on NT/2K/XP).
3857     lt_cv_sys_max_cmd_len=8192;
3858     ;;
3859
3860   amigaos*)
3861     # On AmigaOS with pdksh, this test takes hours, literally.
3862     # So we just punt and use a minimum line length of 8192.
3863     lt_cv_sys_max_cmd_len=8192;
3864     ;;
3865
3866   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3867     # This has been around since 386BSD, at least.  Likely further.
3868     if test -x /sbin/sysctl; then
3869       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3870     elif test -x /usr/sbin/sysctl; then
3871       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3872     else
3873       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
3874     fi
3875     # And add a safety zone
3876     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3877     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3878     ;;
3879   esac
3880
3881 fi
3882
3883 if test -n "$lt_cv_sys_max_cmd_len" ; then
3884   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3885 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
3886 else
3887   echo "$as_me:$LINENO: result: none" >&5
3888 echo "${ECHO_T}none" >&6
3889 fi
3890
3891
3892 # Only perform the check for file, if the check method requires it
3893 case $deplibs_check_method in
3894 file_magic*)
3895   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3896     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3897 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3898 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3899   echo $ECHO_N "(cached) $ECHO_C" >&6
3900 else
3901   case $MAGIC_CMD in
3902   /*)
3903   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3904   ;;
3905   ?:/*)
3906   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3907   ;;
3908   *)
3909   ac_save_MAGIC_CMD="$MAGIC_CMD"
3910   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3911   ac_dummy="/usr/bin:$PATH"
3912   for ac_dir in $ac_dummy; do
3913     test -z "$ac_dir" && ac_dir=.
3914     if test -f $ac_dir/${ac_tool_prefix}file; then
3915       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3916       if test -n "$file_magic_test_file"; then
3917         case $deplibs_check_method in
3918         "file_magic "*)
3919           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3920           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3921           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3922             egrep "$file_magic_regex" > /dev/null; then
3923             :
3924           else
3925             cat <<EOF 1>&2
3926
3927 *** Warning: the command libtool uses to detect shared libraries,
3928 *** $file_magic_cmd, produces output that libtool cannot recognize.
3929 *** The result is that libtool may fail to recognize shared libraries
3930 *** as such.  This will affect the creation of libtool libraries that
3931 *** depend on shared libraries, but programs linked with such libtool
3932 *** libraries will work regardless of this problem.  Nevertheless, you
3933 *** may want to report the problem to your system manager and/or to
3934 *** bug-libtool@gnu.org
3935
3936 EOF
3937           fi ;;
3938         esac
3939       fi
3940       break
3941     fi
3942   done
3943   IFS="$ac_save_ifs"
3944   MAGIC_CMD="$ac_save_MAGIC_CMD"
3945   ;;
3946 esac
3947 fi
3948
3949 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3950 if test -n "$MAGIC_CMD"; then
3951   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3952 echo "${ECHO_T}$MAGIC_CMD" >&6
3953 else
3954   echo "$as_me:$LINENO: result: no" >&5
3955 echo "${ECHO_T}no" >&6
3956 fi
3957
3958 if test -z "$lt_cv_path_MAGIC_CMD"; then
3959   if test -n "$ac_tool_prefix"; then
3960     echo "$as_me:$LINENO: checking for file" >&5
3961 echo $ECHO_N "checking for file... $ECHO_C" >&6
3962 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3963   echo $ECHO_N "(cached) $ECHO_C" >&6
3964 else
3965   case $MAGIC_CMD in
3966   /*)
3967   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3968   ;;
3969   ?:/*)
3970   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3971   ;;
3972   *)
3973   ac_save_MAGIC_CMD="$MAGIC_CMD"
3974   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3975   ac_dummy="/usr/bin:$PATH"
3976   for ac_dir in $ac_dummy; do
3977     test -z "$ac_dir" && ac_dir=.
3978     if test -f $ac_dir/file; then
3979       lt_cv_path_MAGIC_CMD="$ac_dir/file"
3980       if test -n "$file_magic_test_file"; then
3981         case $deplibs_check_method in
3982         "file_magic "*)
3983           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3984           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3985           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3986             egrep "$file_magic_regex" > /dev/null; then
3987             :
3988           else
3989             cat <<EOF 1>&2
3990
3991 *** Warning: the command libtool uses to detect shared libraries,
3992 *** $file_magic_cmd, produces output that libtool cannot recognize.
3993 *** The result is that libtool may fail to recognize shared libraries
3994 *** as such.  This will affect the creation of libtool libraries that
3995 *** depend on shared libraries, but programs linked with such libtool
3996 *** libraries will work regardless of this problem.  Nevertheless, you
3997 *** may want to report the problem to your system manager and/or to
3998 *** bug-libtool@gnu.org
3999
4000 EOF
4001           fi ;;
4002         esac
4003       fi
4004       break
4005     fi
4006   done
4007   IFS="$ac_save_ifs"
4008   MAGIC_CMD="$ac_save_MAGIC_CMD"
4009   ;;
4010 esac
4011 fi
4012
4013 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4014 if test -n "$MAGIC_CMD"; then
4015   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4016 echo "${ECHO_T}$MAGIC_CMD" >&6
4017 else
4018   echo "$as_me:$LINENO: result: no" >&5
4019 echo "${ECHO_T}no" >&6
4020 fi
4021
4022   else
4023     MAGIC_CMD=:
4024   fi
4025 fi
4026
4027   fi
4028   ;;
4029 esac
4030
4031 if test -n "$ac_tool_prefix"; then
4032   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4033 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4034 echo "$as_me:$LINENO: checking for $ac_word" >&5
4035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4036 if test "${ac_cv_prog_RANLIB+set}" = set; then
4037   echo $ECHO_N "(cached) $ECHO_C" >&6
4038 else
4039   if test -n "$RANLIB"; then
4040   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4041 else
4042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4043 for as_dir in $PATH
4044 do
4045   IFS=$as_save_IFS
4046   test -z "$as_dir" && as_dir=.
4047   for ac_exec_ext in '' $ac_executable_extensions; do
4048   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4049     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4050     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4051     break 2
4052   fi
4053 done
4054 done
4055
4056 fi
4057 fi
4058 RANLIB=$ac_cv_prog_RANLIB
4059 if test -n "$RANLIB"; then
4060   echo "$as_me:$LINENO: result: $RANLIB" >&5
4061 echo "${ECHO_T}$RANLIB" >&6
4062 else
4063   echo "$as_me:$LINENO: result: no" >&5
4064 echo "${ECHO_T}no" >&6
4065 fi
4066
4067 fi
4068 if test -z "$ac_cv_prog_RANLIB"; then
4069   ac_ct_RANLIB=$RANLIB
4070   # Extract the first word of "ranlib", so it can be a program name with args.
4071 set dummy ranlib; ac_word=$2
4072 echo "$as_me:$LINENO: checking for $ac_word" >&5
4073 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4074 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4075   echo $ECHO_N "(cached) $ECHO_C" >&6
4076 else
4077   if test -n "$ac_ct_RANLIB"; then
4078   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4079 else
4080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4081 for as_dir in $PATH
4082 do
4083   IFS=$as_save_IFS
4084   test -z "$as_dir" && as_dir=.
4085   for ac_exec_ext in '' $ac_executable_extensions; do
4086   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4087     ac_cv_prog_ac_ct_RANLIB="ranlib"
4088     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4089     break 2
4090   fi
4091 done
4092 done
4093
4094   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4095 fi
4096 fi
4097 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4098 if test -n "$ac_ct_RANLIB"; then
4099   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4100 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4101 else
4102   echo "$as_me:$LINENO: result: no" >&5
4103 echo "${ECHO_T}no" >&6
4104 fi
4105
4106   RANLIB=$ac_ct_RANLIB
4107 else
4108   RANLIB="$ac_cv_prog_RANLIB"
4109 fi
4110
4111 if test -n "$ac_tool_prefix"; then
4112   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4113 set dummy ${ac_tool_prefix}strip; ac_word=$2
4114 echo "$as_me:$LINENO: checking for $ac_word" >&5
4115 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4116 if test "${ac_cv_prog_STRIP+set}" = set; then
4117   echo $ECHO_N "(cached) $ECHO_C" >&6
4118 else
4119   if test -n "$STRIP"; then
4120   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4121 else
4122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4123 for as_dir in $PATH
4124 do
4125   IFS=$as_save_IFS
4126   test -z "$as_dir" && as_dir=.
4127   for ac_exec_ext in '' $ac_executable_extensions; do
4128   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4129     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4130     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4131     break 2
4132   fi
4133 done
4134 done
4135
4136 fi
4137 fi
4138 STRIP=$ac_cv_prog_STRIP
4139 if test -n "$STRIP"; then
4140   echo "$as_me:$LINENO: result: $STRIP" >&5
4141 echo "${ECHO_T}$STRIP" >&6
4142 else
4143   echo "$as_me:$LINENO: result: no" >&5
4144 echo "${ECHO_T}no" >&6
4145 fi
4146
4147 fi
4148 if test -z "$ac_cv_prog_STRIP"; then
4149   ac_ct_STRIP=$STRIP
4150   # Extract the first word of "strip", so it can be a program name with args.
4151 set dummy strip; ac_word=$2
4152 echo "$as_me:$LINENO: checking for $ac_word" >&5
4153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4154 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4155   echo $ECHO_N "(cached) $ECHO_C" >&6
4156 else
4157   if test -n "$ac_ct_STRIP"; then
4158   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4159 else
4160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4161 for as_dir in $PATH
4162 do
4163   IFS=$as_save_IFS
4164   test -z "$as_dir" && as_dir=.
4165   for ac_exec_ext in '' $ac_executable_extensions; do
4166   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4167     ac_cv_prog_ac_ct_STRIP="strip"
4168     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4169     break 2
4170   fi
4171 done
4172 done
4173
4174   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4175 fi
4176 fi
4177 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4178 if test -n "$ac_ct_STRIP"; then
4179   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4180 echo "${ECHO_T}$ac_ct_STRIP" >&6
4181 else
4182   echo "$as_me:$LINENO: result: no" >&5
4183 echo "${ECHO_T}no" >&6
4184 fi
4185
4186   STRIP=$ac_ct_STRIP
4187 else
4188   STRIP="$ac_cv_prog_STRIP"
4189 fi
4190
4191
4192 # Check for any special flags to pass to ltconfig.
4193 libtool_flags="--cache-file=$cache_file"
4194 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4195 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4196 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4197 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4198 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4199
4200
4201 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4202 if test "${enable_libtool_lock+set}" = set; then
4203   enableval="$enable_libtool_lock"
4204
4205 fi;
4206 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4207 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4208
4209
4210 # Check whether --with-pic or --without-pic was given.
4211 if test "${with_pic+set}" = set; then
4212   withval="$with_pic"
4213   pic_mode="$withval"
4214 else
4215   pic_mode=default
4216 fi;
4217 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4218 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4219
4220 # Some flags need to be propagated to the compiler or linker for good
4221 # libtool support.
4222 case $host in
4223 *-*-irix6*)
4224   # Find out which ABI we are using.
4225   echo '#line 4225 "configure"' > conftest.$ac_ext
4226   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4227   (eval $ac_compile) 2>&5
4228   ac_status=$?
4229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230   (exit $ac_status); }; then
4231    if test "$lt_cv_prog_gnu_ld" = yes; then
4232     case `/usr/bin/file conftest.$ac_objext` in
4233     *32-bit*)
4234       LD="${LD-ld} -melf32bsmip"
4235       ;;
4236     *N32*)
4237       LD="${LD-ld} -melf32bmipn32"
4238       ;;
4239     *64-bit*)
4240       LD="${LD-ld} -melf64bmip"
4241       ;;
4242     esac
4243    else
4244     case `/usr/bin/file conftest.$ac_objext` in
4245     *32-bit*)
4246       LD="${LD-ld} -32"
4247       ;;
4248     *N32*)
4249       LD="${LD-ld} -n32"
4250       ;;
4251     *64-bit*)
4252       LD="${LD-ld} -64"
4253       ;;
4254     esac
4255    fi
4256   fi
4257   rm -rf conftest*
4258   ;;
4259
4260 ia64-*-hpux*)
4261   # Find out which ABI we are using.
4262   echo 'int i;' > conftest.$ac_ext
4263   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4264   (eval $ac_compile) 2>&5
4265   ac_status=$?
4266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267   (exit $ac_status); }; then
4268     case "`/usr/bin/file conftest.o`" in
4269     *ELF-32*)
4270       HPUX_IA64_MODE="32"
4271       ;;
4272     *ELF-64*)
4273       HPUX_IA64_MODE="64"
4274       ;;
4275     esac
4276   fi
4277   rm -rf conftest*
4278   ;;
4279
4280 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4281   # Find out which ABI we are using.
4282   echo 'int i;' > conftest.$ac_ext
4283   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4284   (eval $ac_compile) 2>&5
4285   ac_status=$?
4286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287   (exit $ac_status); }; then
4288     case "`/usr/bin/file conftest.o`" in
4289     *32-bit*)
4290       case $host in
4291         x86_64-*linux*)
4292           LD="${LD-ld} -m elf_i386"
4293           ;;
4294         ppc64-*linux*|powerpc64-*linux*)
4295           LD="${LD-ld} -m elf32ppclinux"
4296           ;;
4297         s390x-*linux*)
4298           LD="${LD-ld} -m elf_s390"
4299           ;;
4300         sparc64-*linux*)
4301           LD="${LD-ld} -m elf32_sparc"
4302           ;;
4303       esac
4304       ;;
4305     *64-bit*)
4306       case $host in
4307         x86_64-*linux*)
4308           LD="${LD-ld} -m elf_x86_64"
4309           ;;
4310         ppc*-*linux*|powerpc*-*linux*)
4311           LD="${LD-ld} -m elf64ppc"
4312           ;;
4313         s390*-*linux*)
4314           LD="${LD-ld} -m elf64_s390"
4315           ;;
4316         sparc*-*linux*)
4317           LD="${LD-ld} -m elf64_sparc"
4318           ;;
4319       esac
4320       ;;
4321     esac
4322   fi
4323   rm -rf conftest*
4324   ;;
4325
4326 *-*-sco3.2v5*)
4327   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4328   SAVE_CFLAGS="$CFLAGS"
4329   CFLAGS="$CFLAGS -belf"
4330   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4331 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4332 if test "${lt_cv_cc_needs_belf+set}" = set; then
4333   echo $ECHO_N "(cached) $ECHO_C" >&6
4334 else
4335
4336
4337      ac_ext=c
4338 ac_cpp='$CPP $CPPFLAGS'
4339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4342
4343      cat >conftest.$ac_ext <<_ACEOF
4344 /* confdefs.h.  */
4345 _ACEOF
4346 cat confdefs.h >>conftest.$ac_ext
4347 cat >>conftest.$ac_ext <<_ACEOF
4348 /* end confdefs.h.  */
4349
4350 int
4351 main ()
4352 {
4353
4354   ;
4355   return 0;
4356 }
4357 _ACEOF
4358 rm -f conftest.$ac_objext conftest$ac_exeext
4359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4360   (eval $ac_link) 2>conftest.er1
4361   ac_status=$?
4362   grep -v '^ *+' conftest.er1 >conftest.err
4363   rm -f conftest.er1
4364   cat conftest.err >&5
4365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366   (exit $ac_status); } &&
4367          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4369   (eval $ac_try) 2>&5
4370   ac_status=$?
4371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372   (exit $ac_status); }; } &&
4373          { ac_try='test -s conftest$ac_exeext'
4374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4375   (eval $ac_try) 2>&5
4376   ac_status=$?
4377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378   (exit $ac_status); }; }; then
4379   lt_cv_cc_needs_belf=yes
4380 else
4381   echo "$as_me: failed program was:" >&5
4382 sed 's/^/| /' conftest.$ac_ext >&5
4383
4384 lt_cv_cc_needs_belf=no
4385 fi
4386 rm -f conftest.err conftest.$ac_objext \
4387       conftest$ac_exeext conftest.$ac_ext
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 fi
4395 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4396 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4397   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4398     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4399     CFLAGS="$SAVE_CFLAGS"
4400   fi
4401   ;;
4402
4403
4404 esac
4405
4406
4407 # Save cache, so that ltconfig can load it
4408 cat >confcache <<\_ACEOF
4409 # This file is a shell script that caches the results of configure
4410 # tests run on this system so they can be shared between configure
4411 # scripts and configure runs, see configure's option --config-cache.
4412 # It is not useful on other systems.  If it contains results you don't
4413 # want to keep, you may remove or edit it.
4414 #
4415 # config.status only pays attention to the cache file if you give it
4416 # the --recheck option to rerun configure.
4417 #
4418 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4419 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4420 # following values.
4421
4422 _ACEOF
4423
4424 # The following way of writing the cache mishandles newlines in values,
4425 # but we know of no workaround that is simple, portable, and efficient.
4426 # So, don't put newlines in cache variables' values.
4427 # Ultrix sh set writes to stderr and can't be redirected directly,
4428 # and sets the high bit in the cache file unless we assign to the vars.
4429 {
4430   (set) 2>&1 |
4431     case `(ac_space=' '; set | grep ac_space) 2>&1` in
4432     *ac_space=\ *)
4433       # `set' does not quote correctly, so add quotes (double-quote
4434       # substitution turns \\\\ into \\, and sed turns \\ into \).
4435       sed -n \
4436         "s/'/'\\\\''/g;
4437           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4438       ;;
4439     *)
4440       # `set' quotes correctly as required by POSIX, so do not add quotes.
4441       sed -n \
4442         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4443       ;;
4444     esac;
4445 } |
4446   sed '
4447      t clear
4448      : clear
4449      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4450      t end
4451      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4452      : end' >>confcache
4453 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4454   if test -w $cache_file; then
4455     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4456     cat confcache >$cache_file
4457   else
4458     echo "not updating unwritable cache $cache_file"
4459   fi
4460 fi
4461 rm -f confcache
4462
4463 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
4464 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4465 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4466 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4467 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4468 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4469 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4470 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4471 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4472 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4473 echo "$as_me: error: libtool configure failed" >&2;}
4474    { (exit 1); exit 1; }; }
4475
4476 # Reload cache, that may have been modified by ltconfig
4477 if test -r "$cache_file"; then
4478   # Some versions of bash will fail to source /dev/null (special
4479   # files actually), so we avoid doing that.
4480   if test -f "$cache_file"; then
4481     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4482 echo "$as_me: loading cache $cache_file" >&6;}
4483     case $cache_file in
4484       [\\/]* | ?:[\\/]* ) . $cache_file;;
4485       *)                      . ./$cache_file;;
4486     esac
4487   fi
4488 else
4489   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4490 echo "$as_me: creating cache $cache_file" >&6;}
4491   >$cache_file
4492 fi
4493
4494
4495 # This can be used to rebuild libtool when needed
4496 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4497
4498 # Always use our own libtool.
4499 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4500
4501 # Redirect the config.log output again, so that the ltconfig log is not
4502 # clobbered by the next message.
4503 exec 5>>./config.log
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4514 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4515     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4516 if test "${enable_maintainer_mode+set}" = set; then
4517   enableval="$enable_maintainer_mode"
4518   USE_MAINTAINER_MODE=$enableval
4519 else
4520   USE_MAINTAINER_MODE=no
4521 fi;
4522   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4523 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4524
4525
4526 if test $USE_MAINTAINER_MODE = yes; then
4527   MAINTAINER_MODE_TRUE=
4528   MAINTAINER_MODE_FALSE='#'
4529 else
4530   MAINTAINER_MODE_TRUE='#'
4531   MAINTAINER_MODE_FALSE=
4532 fi
4533
4534   MAINT=$MAINTAINER_MODE_TRUE
4535
4536
4537
4538 # We need gfortran to compile parts of the library
4539 # We can't use AC_PROG_FC because it expects a fully working gfortran.
4540 #AC_PROG_FC(gfortran)
4541 FC="$GFORTRAN"
4542 ac_ext=${FC_SRCEXT-f}
4543 ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
4544 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
4545 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4546 if test -n "$ac_tool_prefix"; then
4547   for ac_prog in gfortran
4548   do
4549     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4550 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4551 echo "$as_me:$LINENO: checking for $ac_word" >&5
4552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4553 if test "${ac_cv_prog_FC+set}" = set; then
4554   echo $ECHO_N "(cached) $ECHO_C" >&6
4555 else
4556   if test -n "$FC"; then
4557   ac_cv_prog_FC="$FC" # Let the user override the test.
4558 else
4559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4560 for as_dir in $PATH
4561 do
4562   IFS=$as_save_IFS
4563   test -z "$as_dir" && as_dir=.
4564   for ac_exec_ext in '' $ac_executable_extensions; do
4565   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4566     ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
4567     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4568     break 2
4569   fi
4570 done
4571 done
4572
4573 fi
4574 fi
4575 FC=$ac_cv_prog_FC
4576 if test -n "$FC"; then
4577   echo "$as_me:$LINENO: result: $FC" >&5
4578 echo "${ECHO_T}$FC" >&6
4579 else
4580   echo "$as_me:$LINENO: result: no" >&5
4581 echo "${ECHO_T}no" >&6
4582 fi
4583
4584     test -n "$FC" && break
4585   done
4586 fi
4587 if test -z "$FC"; then
4588   ac_ct_FC=$FC
4589   for ac_prog in gfortran
4590 do
4591   # Extract the first word of "$ac_prog", so it can be a program name with args.
4592 set dummy $ac_prog; ac_word=$2
4593 echo "$as_me:$LINENO: checking for $ac_word" >&5
4594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4595 if test "${ac_cv_prog_ac_ct_FC+set}" = set; then
4596   echo $ECHO_N "(cached) $ECHO_C" >&6
4597 else
4598   if test -n "$ac_ct_FC"; then
4599   ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
4600 else
4601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4602 for as_dir in $PATH
4603 do
4604   IFS=$as_save_IFS
4605   test -z "$as_dir" && as_dir=.
4606   for ac_exec_ext in '' $ac_executable_extensions; do
4607   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4608     ac_cv_prog_ac_ct_FC="$ac_prog"
4609     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4610     break 2
4611   fi
4612 done
4613 done
4614
4615 fi
4616 fi
4617 ac_ct_FC=$ac_cv_prog_ac_ct_FC
4618 if test -n "$ac_ct_FC"; then
4619   echo "$as_me:$LINENO: result: $ac_ct_FC" >&5
4620 echo "${ECHO_T}$ac_ct_FC" >&6
4621 else
4622   echo "$as_me:$LINENO: result: no" >&5
4623 echo "${ECHO_T}no" >&6
4624 fi
4625
4626   test -n "$ac_ct_FC" && break
4627 done
4628
4629   FC=$ac_ct_FC
4630 fi
4631
4632
4633 # Provide some information about the compiler.
4634 echo "$as_me:4634:" \
4635      "checking for Fortran compiler version" >&5
4636 ac_compiler=`set X $ac_compile; echo $2`
4637 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4638   (eval $ac_compiler --version </dev/null >&5) 2>&5
4639   ac_status=$?
4640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4641   (exit $ac_status); }
4642 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4643   (eval $ac_compiler -v </dev/null >&5) 2>&5
4644   ac_status=$?
4645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4646   (exit $ac_status); }
4647 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4648   (eval $ac_compiler -V </dev/null >&5) 2>&5
4649   ac_status=$?
4650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4651   (exit $ac_status); }
4652 rm -f a.out
4653
4654 # If we don't use `.F' as extension, the preprocessor is not run on the
4655 # input file.  (Note that this only needs to work for GNU compilers.)
4656 ac_save_ext=$ac_ext
4657 ac_ext=F
4658 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5
4659 echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6
4660 if test "${ac_cv_fc_compiler_gnu+set}" = set; then
4661   echo $ECHO_N "(cached) $ECHO_C" >&6
4662 else
4663   cat >conftest.$ac_ext <<_ACEOF
4664       program main
4665 #ifndef __GNUC__
4666        choke me
4667 #endif
4668
4669       end
4670 _ACEOF
4671 rm -f conftest.$ac_objext
4672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4673   (eval $ac_compile) 2>conftest.er1
4674   ac_status=$?
4675   grep -v '^ *+' conftest.er1 >conftest.err
4676   rm -f conftest.er1
4677   cat conftest.err >&5
4678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4679   (exit $ac_status); } &&
4680          { ac_try='test -z "$ac_fc_werror_flag"                  || test ! -s conftest.err'
4681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4682   (eval $ac_try) 2>&5
4683   ac_status=$?
4684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685   (exit $ac_status); }; } &&
4686          { ac_try='test -s conftest.$ac_objext'
4687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4688   (eval $ac_try) 2>&5
4689   ac_status=$?
4690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691   (exit $ac_status); }; }; then
4692   ac_compiler_gnu=yes
4693 else
4694   echo "$as_me: failed program was:" >&5
4695 sed 's/^/| /' conftest.$ac_ext >&5
4696
4697 ac_compiler_gnu=no
4698 fi
4699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4700 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
4701
4702 fi
4703 echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5
4704 echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6
4705 ac_ext=$ac_save_ext
4706 ac_test_FFLAGS=${FCFLAGS+set}
4707 ac_save_FFLAGS=$FCFLAGS
4708 FCFLAGS=
4709 echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5
4710 echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6
4711 if test "${ac_cv_prog_fc_g+set}" = set; then
4712   echo $ECHO_N "(cached) $ECHO_C" >&6
4713 else
4714   FCFLAGS=-g
4715 cat >conftest.$ac_ext <<_ACEOF
4716       program main
4717
4718       end
4719 _ACEOF
4720 rm -f conftest.$ac_objext
4721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4722   (eval $ac_compile) 2>conftest.er1
4723   ac_status=$?
4724   grep -v '^ *+' conftest.er1 >conftest.err
4725   rm -f conftest.er1
4726   cat conftest.err >&5
4727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4728   (exit $ac_status); } &&
4729          { ac_try='test -z "$ac_fc_werror_flag"                  || test ! -s conftest.err'
4730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4731   (eval $ac_try) 2>&5
4732   ac_status=$?
4733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4734   (exit $ac_status); }; } &&
4735          { ac_try='test -s conftest.$ac_objext'
4736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4737   (eval $ac_try) 2>&5
4738   ac_status=$?
4739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4740   (exit $ac_status); }; }; then
4741   ac_cv_prog_fc_g=yes
4742 else
4743   echo "$as_me: failed program was:" >&5
4744 sed 's/^/| /' conftest.$ac_ext >&5
4745
4746 ac_cv_prog_fc_g=no
4747 fi
4748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4749
4750 fi
4751 echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5
4752 echo "${ECHO_T}$ac_cv_prog_fc_g" >&6
4753 if test "$ac_test_FFLAGS" = set; then
4754   FCFLAGS=$ac_save_FFLAGS
4755 elif test $ac_cv_prog_fc_g = yes; then
4756   if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4757     FCFLAGS="-g -O2"
4758   else
4759     FCFLAGS="-g"
4760   fi
4761 else
4762   if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4763     FCFLAGS="-O2"
4764   else
4765     FCFLAGS=
4766   fi
4767 fi
4768
4769 ac_ext=c
4770 ac_cpp='$CPP $CPPFLAGS'
4771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4774
4775 FCFLAGS="$FCFLAGS -Wall"
4776
4777 # For libtool versioning info, format is CURRENT:REVISION:AGE
4778 libtool_VERSION=1:0:0
4779
4780
4781 # Check header files.
4782 ac_ext=c
4783 ac_cpp='$CPP $CPPFLAGS'
4784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4787 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4788 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4789 # On Suns, sometimes $CPP names a directory.
4790 if test -n "$CPP" && test -d "$CPP"; then
4791   CPP=
4792 fi
4793 if test -z "$CPP"; then
4794   if test "${ac_cv_prog_CPP+set}" = set; then
4795   echo $ECHO_N "(cached) $ECHO_C" >&6
4796 else
4797       # Double quotes because CPP needs to be expanded
4798     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4799     do
4800       ac_preproc_ok=false
4801 for ac_c_preproc_warn_flag in '' yes
4802 do
4803   # Use a header file that comes with gcc, so configuring glibc
4804   # with a fresh cross-compiler works.
4805   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4806   # <limits.h> exists even on freestanding compilers.
4807   # On the NeXT, cc -E runs the code through the compiler's parser,
4808   # not just through cpp. "Syntax error" is here to catch this case.
4809   cat >conftest.$ac_ext <<_ACEOF
4810 /* confdefs.h.  */
4811 _ACEOF
4812 cat confdefs.h >>conftest.$ac_ext
4813 cat >>conftest.$ac_ext <<_ACEOF
4814 /* end confdefs.h.  */
4815 #ifdef __STDC__
4816 # include <limits.h>
4817 #else
4818 # include <assert.h>
4819 #endif
4820                      Syntax error
4821 _ACEOF
4822 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4823   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4824   ac_status=$?
4825   grep -v '^ *+' conftest.er1 >conftest.err
4826   rm -f conftest.er1
4827   cat conftest.err >&5
4828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829   (exit $ac_status); } >/dev/null; then
4830   if test -s conftest.err; then
4831     ac_cpp_err=$ac_c_preproc_warn_flag
4832     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4833   else
4834     ac_cpp_err=
4835   fi
4836 else
4837   ac_cpp_err=yes
4838 fi
4839 if test -z "$ac_cpp_err"; then
4840   :
4841 else
4842   echo "$as_me: failed program was:" >&5
4843 sed 's/^/| /' conftest.$ac_ext >&5
4844
4845   # Broken: fails on valid input.
4846 continue
4847 fi
4848 rm -f conftest.err conftest.$ac_ext
4849
4850   # OK, works on sane cases.  Now check whether non-existent headers
4851   # can be detected and how.
4852   cat >conftest.$ac_ext <<_ACEOF
4853 /* confdefs.h.  */
4854 _ACEOF
4855 cat confdefs.h >>conftest.$ac_ext
4856 cat >>conftest.$ac_ext <<_ACEOF
4857 /* end confdefs.h.  */
4858 #include <ac_nonexistent.h>
4859 _ACEOF
4860 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4861   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4862   ac_status=$?
4863   grep -v '^ *+' conftest.er1 >conftest.err
4864   rm -f conftest.er1
4865   cat conftest.err >&5
4866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867   (exit $ac_status); } >/dev/null; then
4868   if test -s conftest.err; then
4869     ac_cpp_err=$ac_c_preproc_warn_flag
4870     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4871   else
4872     ac_cpp_err=
4873   fi
4874 else
4875   ac_cpp_err=yes
4876 fi
4877 if test -z "$ac_cpp_err"; then
4878   # Broken: success on invalid input.
4879 continue
4880 else
4881   echo "$as_me: failed program was:" >&5
4882 sed 's/^/| /' conftest.$ac_ext >&5
4883
4884   # Passes both tests.
4885 ac_preproc_ok=:
4886 break
4887 fi
4888 rm -f conftest.err conftest.$ac_ext
4889
4890 done
4891 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4892 rm -f conftest.err conftest.$ac_ext
4893 if $ac_preproc_ok; then
4894   break
4895 fi
4896
4897     done
4898     ac_cv_prog_CPP=$CPP
4899
4900 fi
4901   CPP=$ac_cv_prog_CPP
4902 else
4903   ac_cv_prog_CPP=$CPP
4904 fi
4905 echo "$as_me:$LINENO: result: $CPP" >&5
4906 echo "${ECHO_T}$CPP" >&6
4907 ac_preproc_ok=false
4908 for ac_c_preproc_warn_flag in '' yes
4909 do
4910   # Use a header file that comes with gcc, so configuring glibc
4911   # with a fresh cross-compiler works.
4912   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4913   # <limits.h> exists even on freestanding compilers.
4914   # On the NeXT, cc -E runs the code through the compiler's parser,
4915   # not just through cpp. "Syntax error" is here to catch this case.
4916   cat >conftest.$ac_ext <<_ACEOF
4917 /* confdefs.h.  */
4918 _ACEOF
4919 cat confdefs.h >>conftest.$ac_ext
4920 cat >>conftest.$ac_ext <<_ACEOF
4921 /* end confdefs.h.  */
4922 #ifdef __STDC__
4923 # include <limits.h>
4924 #else
4925 # include <assert.h>
4926 #endif
4927                      Syntax error
4928 _ACEOF
4929 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4930   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4931   ac_status=$?
4932   grep -v '^ *+' conftest.er1 >conftest.err
4933   rm -f conftest.er1
4934   cat conftest.err >&5
4935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4936   (exit $ac_status); } >/dev/null; then
4937   if test -s conftest.err; then
4938     ac_cpp_err=$ac_c_preproc_warn_flag
4939     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4940   else
4941     ac_cpp_err=
4942   fi
4943 else
4944   ac_cpp_err=yes
4945 fi
4946 if test -z "$ac_cpp_err"; then
4947   :
4948 else
4949   echo "$as_me: failed program was:" >&5
4950 sed 's/^/| /' conftest.$ac_ext >&5
4951
4952   # Broken: fails on valid input.
4953 continue
4954 fi
4955 rm -f conftest.err conftest.$ac_ext
4956
4957   # OK, works on sane cases.  Now check whether non-existent headers
4958   # can be detected and how.
4959   cat >conftest.$ac_ext <<_ACEOF
4960 /* confdefs.h.  */
4961 _ACEOF
4962 cat confdefs.h >>conftest.$ac_ext
4963 cat >>conftest.$ac_ext <<_ACEOF
4964 /* end confdefs.h.  */
4965 #include <ac_nonexistent.h>
4966 _ACEOF
4967 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4968   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4969   ac_status=$?
4970   grep -v '^ *+' conftest.er1 >conftest.err
4971   rm -f conftest.er1
4972   cat conftest.err >&5
4973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974   (exit $ac_status); } >/dev/null; then
4975   if test -s conftest.err; then
4976     ac_cpp_err=$ac_c_preproc_warn_flag
4977     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4978   else
4979     ac_cpp_err=
4980   fi
4981 else
4982   ac_cpp_err=yes
4983 fi
4984 if test -z "$ac_cpp_err"; then
4985   # Broken: success on invalid input.
4986 continue
4987 else
4988   echo "$as_me: failed program was:" >&5
4989 sed 's/^/| /' conftest.$ac_ext >&5
4990
4991   # Passes both tests.
4992 ac_preproc_ok=:
4993 break
4994 fi
4995 rm -f conftest.err conftest.$ac_ext
4996
4997 done
4998 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4999 rm -f conftest.err conftest.$ac_ext
5000 if $ac_preproc_ok; then
5001   :
5002 else
5003   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5004 See \`config.log' for more details." >&5
5005 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5006 See \`config.log' for more details." >&2;}
5007    { (exit 1); exit 1; }; }
5008 fi
5009
5010 ac_ext=c
5011 ac_cpp='$CPP $CPPFLAGS'
5012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5015
5016
5017 echo "$as_me:$LINENO: checking for egrep" >&5
5018 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5019 if test "${ac_cv_prog_egrep+set}" = set; then
5020   echo $ECHO_N "(cached) $ECHO_C" >&6
5021 else
5022   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5023     then ac_cv_prog_egrep='grep -E'
5024     else ac_cv_prog_egrep='egrep'
5025     fi
5026 fi
5027 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5028 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5029  EGREP=$ac_cv_prog_egrep
5030
5031
5032 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5033 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5034 if test "${ac_cv_header_stdc+set}" = set; then
5035   echo $ECHO_N "(cached) $ECHO_C" >&6
5036 else
5037   cat >conftest.$ac_ext <<_ACEOF
5038 /* confdefs.h.  */
5039 _ACEOF
5040 cat confdefs.h >>conftest.$ac_ext
5041 cat >>conftest.$ac_ext <<_ACEOF
5042 /* end confdefs.h.  */
5043 #include <stdlib.h>
5044 #include <stdarg.h>
5045 #include <string.h>
5046 #include <float.h>
5047
5048 int
5049 main ()
5050 {
5051
5052   ;
5053   return 0;
5054 }
5055 _ACEOF
5056 rm -f conftest.$ac_objext
5057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5058   (eval $ac_compile) 2>conftest.er1
5059   ac_status=$?
5060   grep -v '^ *+' conftest.er1 >conftest.err
5061   rm -f conftest.er1
5062   cat conftest.err >&5
5063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5064   (exit $ac_status); } &&
5065          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5067   (eval $ac_try) 2>&5
5068   ac_status=$?
5069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5070   (exit $ac_status); }; } &&
5071          { ac_try='test -s conftest.$ac_objext'
5072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5073   (eval $ac_try) 2>&5
5074   ac_status=$?
5075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5076   (exit $ac_status); }; }; then
5077   ac_cv_header_stdc=yes
5078 else
5079   echo "$as_me: failed program was:" >&5
5080 sed 's/^/| /' conftest.$ac_ext >&5
5081
5082 ac_cv_header_stdc=no
5083 fi
5084 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5085
5086 if test $ac_cv_header_stdc = yes; then
5087   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5088   cat >conftest.$ac_ext <<_ACEOF
5089 /* confdefs.h.  */
5090 _ACEOF
5091 cat confdefs.h >>conftest.$ac_ext
5092 cat >>conftest.$ac_ext <<_ACEOF
5093 /* end confdefs.h.  */
5094 #include <string.h>
5095
5096 _ACEOF
5097 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5098   $EGREP "memchr" >/dev/null 2>&1; then
5099   :
5100 else
5101   ac_cv_header_stdc=no
5102 fi
5103 rm -f conftest*
5104
5105 fi
5106
5107 if test $ac_cv_header_stdc = yes; then
5108   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5109   cat >conftest.$ac_ext <<_ACEOF
5110 /* confdefs.h.  */
5111 _ACEOF
5112 cat confdefs.h >>conftest.$ac_ext
5113 cat >>conftest.$ac_ext <<_ACEOF
5114 /* end confdefs.h.  */
5115 #include <stdlib.h>
5116
5117 _ACEOF
5118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5119   $EGREP "free" >/dev/null 2>&1; then
5120   :
5121 else
5122   ac_cv_header_stdc=no
5123 fi
5124 rm -f conftest*
5125
5126 fi
5127
5128 if test $ac_cv_header_stdc = yes; then
5129   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5130   if test "$cross_compiling" = yes; then
5131   :
5132 else
5133   cat >conftest.$ac_ext <<_ACEOF
5134 /* confdefs.h.  */
5135 _ACEOF
5136 cat confdefs.h >>conftest.$ac_ext
5137 cat >>conftest.$ac_ext <<_ACEOF
5138 /* end confdefs.h.  */
5139 #include <ctype.h>
5140 #if ((' ' & 0x0FF) == 0x020)
5141 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5142 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5143 #else
5144 # define ISLOWER(c) \
5145                    (('a' <= (c) && (c) <= 'i') \
5146                      || ('j' <= (c) && (c) <= 'r') \
5147                      || ('s' <= (c) && (c) <= 'z'))
5148 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5149 #endif
5150
5151 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5152 int
5153 main ()
5154 {
5155   int i;
5156   for (i = 0; i < 256; i++)
5157     if (XOR (islower (i), ISLOWER (i))
5158         || toupper (i) != TOUPPER (i))
5159       exit(2);
5160   exit (0);
5161 }
5162 _ACEOF
5163 rm -f conftest$ac_exeext
5164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5165   (eval $ac_link) 2>&5
5166   ac_status=$?
5167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5168   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5170   (eval $ac_try) 2>&5
5171   ac_status=$?
5172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5173   (exit $ac_status); }; }; then
5174   :
5175 else
5176   echo "$as_me: program exited with status $ac_status" >&5
5177 echo "$as_me: failed program was:" >&5
5178 sed 's/^/| /' conftest.$ac_ext >&5
5179
5180 ( exit $ac_status )
5181 ac_cv_header_stdc=no
5182 fi
5183 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5184 fi
5185 fi
5186 fi
5187 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5188 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5189 if test $ac_cv_header_stdc = yes; then
5190
5191 cat >>confdefs.h <<\_ACEOF
5192 #define STDC_HEADERS 1
5193 _ACEOF
5194
5195 fi
5196
5197 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5198 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5199 if test "${ac_cv_header_time+set}" = set; then
5200   echo $ECHO_N "(cached) $ECHO_C" >&6
5201 else
5202   cat >conftest.$ac_ext <<_ACEOF
5203 /* confdefs.h.  */
5204 _ACEOF
5205 cat confdefs.h >>conftest.$ac_ext
5206 cat >>conftest.$ac_ext <<_ACEOF
5207 /* end confdefs.h.  */
5208 #include <sys/types.h>
5209 #include <sys/time.h>
5210 #include <time.h>
5211
5212 int
5213 main ()
5214 {
5215 if ((struct tm *) 0)
5216 return 0;
5217   ;
5218   return 0;
5219 }
5220 _ACEOF
5221 rm -f conftest.$ac_objext
5222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5223   (eval $ac_compile) 2>conftest.er1
5224   ac_status=$?
5225   grep -v '^ *+' conftest.er1 >conftest.err
5226   rm -f conftest.er1
5227   cat conftest.err >&5
5228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5229   (exit $ac_status); } &&
5230          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5232   (eval $ac_try) 2>&5
5233   ac_status=$?
5234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235   (exit $ac_status); }; } &&
5236          { ac_try='test -s conftest.$ac_objext'
5237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5238   (eval $ac_try) 2>&5
5239   ac_status=$?
5240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241   (exit $ac_status); }; }; then
5242   ac_cv_header_time=yes
5243 else
5244   echo "$as_me: failed program was:" >&5
5245 sed 's/^/| /' conftest.$ac_ext >&5
5246
5247 ac_cv_header_time=no
5248 fi
5249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5250 fi
5251 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5252 echo "${ECHO_T}$ac_cv_header_time" >&6
5253 if test $ac_cv_header_time = yes; then
5254
5255 cat >>confdefs.h <<\_ACEOF
5256 #define TIME_WITH_SYS_TIME 1
5257 _ACEOF
5258
5259 fi
5260
5261 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5272                   inttypes.h stdint.h unistd.h
5273 do
5274 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5275 echo "$as_me:$LINENO: checking for $ac_header" >&5
5276 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5277 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5278   echo $ECHO_N "(cached) $ECHO_C" >&6
5279 else
5280   cat >conftest.$ac_ext <<_ACEOF
5281 /* confdefs.h.  */
5282 _ACEOF
5283 cat confdefs.h >>conftest.$ac_ext
5284 cat >>conftest.$ac_ext <<_ACEOF
5285 /* end confdefs.h.  */
5286 $ac_includes_default
5287
5288 #include <$ac_header>
5289 _ACEOF
5290 rm -f conftest.$ac_objext
5291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5292   (eval $ac_compile) 2>conftest.er1
5293   ac_status=$?
5294   grep -v '^ *+' conftest.er1 >conftest.err
5295   rm -f conftest.er1
5296   cat conftest.err >&5
5297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5298   (exit $ac_status); } &&
5299          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5301   (eval $ac_try) 2>&5
5302   ac_status=$?
5303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304   (exit $ac_status); }; } &&
5305          { ac_try='test -s conftest.$ac_objext'
5306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5307   (eval $ac_try) 2>&5
5308   ac_status=$?
5309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5310   (exit $ac_status); }; }; then
5311   eval "$as_ac_Header=yes"
5312 else
5313   echo "$as_me: failed program was:" >&5
5314 sed 's/^/| /' conftest.$ac_ext >&5
5315
5316 eval "$as_ac_Header=no"
5317 fi
5318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5319 fi
5320 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5321 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5322 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5323   cat >>confdefs.h <<_ACEOF
5324 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5325 _ACEOF
5326
5327 fi
5328
5329 done
5330
5331
5332
5333
5334
5335
5336 for ac_header in unistd.h semaphore.h sys/loadavg.h sys/time.h
5337 do
5338 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5339 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5340   echo "$as_me:$LINENO: checking for $ac_header" >&5
5341 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5342 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5343   echo $ECHO_N "(cached) $ECHO_C" >&6
5344 fi
5345 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5346 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5347 else
5348   # Is the header compilable?
5349 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5350 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5351 cat >conftest.$ac_ext <<_ACEOF
5352 /* confdefs.h.  */
5353 _ACEOF
5354 cat confdefs.h >>conftest.$ac_ext
5355 cat >>conftest.$ac_ext <<_ACEOF
5356 /* end confdefs.h.  */
5357 $ac_includes_default
5358 #include <$ac_header>
5359 _ACEOF
5360 rm -f conftest.$ac_objext
5361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5362   (eval $ac_compile) 2>conftest.er1
5363   ac_status=$?
5364   grep -v '^ *+' conftest.er1 >conftest.err
5365   rm -f conftest.er1
5366   cat conftest.err >&5
5367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5368   (exit $ac_status); } &&
5369          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5371   (eval $ac_try) 2>&5
5372   ac_status=$?
5373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5374   (exit $ac_status); }; } &&
5375          { ac_try='test -s conftest.$ac_objext'
5376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5377   (eval $ac_try) 2>&5
5378   ac_status=$?
5379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5380   (exit $ac_status); }; }; then
5381   ac_header_compiler=yes
5382 else
5383   echo "$as_me: failed program was:" >&5
5384 sed 's/^/| /' conftest.$ac_ext >&5
5385
5386 ac_header_compiler=no
5387 fi
5388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5389 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5390 echo "${ECHO_T}$ac_header_compiler" >&6
5391
5392 # Is the header present?
5393 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5394 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5395 cat >conftest.$ac_ext <<_ACEOF
5396 /* confdefs.h.  */
5397 _ACEOF
5398 cat confdefs.h >>conftest.$ac_ext
5399 cat >>conftest.$ac_ext <<_ACEOF
5400 /* end confdefs.h.  */
5401 #include <$ac_header>
5402 _ACEOF
5403 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5404   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5405   ac_status=$?
5406   grep -v '^ *+' conftest.er1 >conftest.err
5407   rm -f conftest.er1
5408   cat conftest.err >&5
5409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410   (exit $ac_status); } >/dev/null; then
5411   if test -s conftest.err; then
5412     ac_cpp_err=$ac_c_preproc_warn_flag
5413     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5414   else
5415     ac_cpp_err=
5416   fi
5417 else
5418   ac_cpp_err=yes
5419 fi
5420 if test -z "$ac_cpp_err"; then
5421   ac_header_preproc=yes
5422 else
5423   echo "$as_me: failed program was:" >&5
5424 sed 's/^/| /' conftest.$ac_ext >&5
5425
5426   ac_header_preproc=no
5427 fi
5428 rm -f conftest.err conftest.$ac_ext
5429 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5430 echo "${ECHO_T}$ac_header_preproc" >&6
5431
5432 # So?  What about this header?
5433 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5434   yes:no: )
5435     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5436 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5437     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5438 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5439     ac_header_preproc=yes
5440     ;;
5441   no:yes:* )
5442     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5443 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5444     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5445 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5446     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5447 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5448     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5449 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5450     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5451 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5452     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5453 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5454     (
5455       cat <<\_ASBOX
5456 ## ----------------------------------------------------- ##
5457 ## Report this to the GNU OpenMP Runtime Library lists.  ##
5458 ## ----------------------------------------------------- ##
5459 _ASBOX
5460     ) |
5461       sed "s/^/$as_me: WARNING:     /" >&2
5462     ;;
5463 esac
5464 echo "$as_me:$LINENO: checking for $ac_header" >&5
5465 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5466 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5467   echo $ECHO_N "(cached) $ECHO_C" >&6
5468 else
5469   eval "$as_ac_Header=\$ac_header_preproc"
5470 fi
5471 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5472 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5473
5474 fi
5475 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5476   cat >>confdefs.h <<_ACEOF
5477 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5478 _ACEOF
5479
5480 fi
5481
5482 done
5483
5484
5485
5486
5487 inttype_headers=`echo inttypes.h sys/inttypes.h  | sed -e 's/,/ /g'`
5488
5489 acx_cv_header_stdint=stddef.h
5490 acx_cv_header_stdint_kind="(already complete)"
5491 for i in stdint.h $inttype_headers; do
5492   unset ac_cv_type_uintptr_t
5493   unset ac_cv_type_uintmax_t
5494   unset ac_cv_type_int_least32_t
5495   unset ac_cv_type_int_fast32_t
5496   unset ac_cv_type_uint64_t
5497   echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
5498   echo "$as_me:$LINENO: checking for uintmax_t" >&5
5499 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
5500 if test "${ac_cv_type_uintmax_t+set}" = set; then
5501   echo $ECHO_N "(cached) $ECHO_C" >&6
5502 else
5503   cat >conftest.$ac_ext <<_ACEOF
5504 /* confdefs.h.  */
5505 _ACEOF
5506 cat confdefs.h >>conftest.$ac_ext
5507 cat >>conftest.$ac_ext <<_ACEOF
5508 /* end confdefs.h.  */
5509 #include <sys/types.h>
5510 #include <$i>
5511
5512 int
5513 main ()
5514 {
5515 if ((uintmax_t *) 0)
5516   return 0;
5517 if (sizeof (uintmax_t))
5518   return 0;
5519   ;
5520   return 0;
5521 }
5522 _ACEOF
5523 rm -f conftest.$ac_objext
5524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5525   (eval $ac_compile) 2>conftest.er1
5526   ac_status=$?
5527   grep -v '^ *+' conftest.er1 >conftest.err
5528   rm -f conftest.er1
5529   cat conftest.err >&5
5530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531   (exit $ac_status); } &&
5532          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5534   (eval $ac_try) 2>&5
5535   ac_status=$?
5536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537   (exit $ac_status); }; } &&
5538          { ac_try='test -s conftest.$ac_objext'
5539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5540   (eval $ac_try) 2>&5
5541   ac_status=$?
5542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5543   (exit $ac_status); }; }; then
5544   ac_cv_type_uintmax_t=yes
5545 else
5546   echo "$as_me: failed program was:" >&5
5547 sed 's/^/| /' conftest.$ac_ext >&5
5548
5549 ac_cv_type_uintmax_t=no
5550 fi
5551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5552 fi
5553 echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
5554 echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
5555 if test $ac_cv_type_uintmax_t = yes; then
5556   acx_cv_header_stdint=$i
5557 else
5558   continue
5559 fi
5560
5561   echo "$as_me:$LINENO: checking for uintptr_t" >&5
5562 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
5563 if test "${ac_cv_type_uintptr_t+set}" = set; then
5564   echo $ECHO_N "(cached) $ECHO_C" >&6
5565 else
5566   cat >conftest.$ac_ext <<_ACEOF
5567 /* confdefs.h.  */
5568 _ACEOF
5569 cat confdefs.h >>conftest.$ac_ext
5570 cat >>conftest.$ac_ext <<_ACEOF
5571 /* end confdefs.h.  */
5572 #include <sys/types.h>
5573 #include <$i>
5574
5575 int
5576 main ()
5577 {
5578 if ((uintptr_t *) 0)
5579   return 0;
5580 if (sizeof (uintptr_t))
5581   return 0;
5582   ;
5583   return 0;
5584 }
5585 _ACEOF
5586 rm -f conftest.$ac_objext
5587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5588   (eval $ac_compile) 2>conftest.er1
5589   ac_status=$?
5590   grep -v '^ *+' conftest.er1 >conftest.err
5591   rm -f conftest.er1
5592   cat conftest.err >&5
5593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594   (exit $ac_status); } &&
5595          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5597   (eval $ac_try) 2>&5
5598   ac_status=$?
5599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600   (exit $ac_status); }; } &&
5601          { ac_try='test -s conftest.$ac_objext'
5602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5603   (eval $ac_try) 2>&5
5604   ac_status=$?
5605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606   (exit $ac_status); }; }; then
5607   ac_cv_type_uintptr_t=yes
5608 else
5609   echo "$as_me: failed program was:" >&5
5610 sed 's/^/| /' conftest.$ac_ext >&5
5611
5612 ac_cv_type_uintptr_t=no
5613 fi
5614 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5615 fi
5616 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
5617 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
5618 if test $ac_cv_type_uintptr_t = yes; then
5619   :
5620 else
5621   acx_cv_header_stdint_kind="(mostly complete)"
5622 fi
5623
5624   echo "$as_me:$LINENO: checking for int_least32_t" >&5
5625 echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
5626 if test "${ac_cv_type_int_least32_t+set}" = set; then
5627   echo $ECHO_N "(cached) $ECHO_C" >&6
5628 else
5629   cat >conftest.$ac_ext <<_ACEOF
5630 /* confdefs.h.  */
5631 _ACEOF
5632 cat confdefs.h >>conftest.$ac_ext
5633 cat >>conftest.$ac_ext <<_ACEOF
5634 /* end confdefs.h.  */
5635 #include <sys/types.h>
5636 #include <$i>
5637
5638 int
5639 main ()
5640 {
5641 if ((int_least32_t *) 0)
5642   return 0;
5643 if (sizeof (int_least32_t))
5644   return 0;
5645   ;
5646   return 0;
5647 }
5648 _ACEOF
5649 rm -f conftest.$ac_objext
5650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5651   (eval $ac_compile) 2>conftest.er1
5652   ac_status=$?
5653   grep -v '^ *+' conftest.er1 >conftest.err
5654   rm -f conftest.er1
5655   cat conftest.err >&5
5656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5657   (exit $ac_status); } &&
5658          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5660   (eval $ac_try) 2>&5
5661   ac_status=$?
5662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5663   (exit $ac_status); }; } &&
5664          { ac_try='test -s conftest.$ac_objext'
5665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5666   (eval $ac_try) 2>&5
5667   ac_status=$?
5668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5669   (exit $ac_status); }; }; then
5670   ac_cv_type_int_least32_t=yes
5671 else
5672   echo "$as_me: failed program was:" >&5
5673 sed 's/^/| /' conftest.$ac_ext >&5
5674
5675 ac_cv_type_int_least32_t=no
5676 fi
5677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5678 fi
5679 echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
5680 echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
5681 if test $ac_cv_type_int_least32_t = yes; then
5682   :
5683 else
5684   acx_cv_header_stdint_kind="(mostly complete)"
5685 fi
5686
5687   echo "$as_me:$LINENO: checking for int_fast32_t" >&5
5688 echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
5689 if test "${ac_cv_type_int_fast32_t+set}" = set; then
5690   echo $ECHO_N "(cached) $ECHO_C" >&6
5691 else
5692   cat >conftest.$ac_ext <<_ACEOF
5693 /* confdefs.h.  */
5694 _ACEOF
5695 cat confdefs.h >>conftest.$ac_ext
5696 cat >>conftest.$ac_ext <<_ACEOF
5697 /* end confdefs.h.  */
5698 #include <sys/types.h>
5699 #include <$i>
5700
5701 int
5702 main ()
5703 {
5704 if ((int_fast32_t *) 0)
5705   return 0;
5706 if (sizeof (int_fast32_t))
5707   return 0;
5708   ;
5709   return 0;
5710 }
5711 _ACEOF
5712 rm -f conftest.$ac_objext
5713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5714   (eval $ac_compile) 2>conftest.er1
5715   ac_status=$?
5716   grep -v '^ *+' conftest.er1 >conftest.err
5717   rm -f conftest.er1
5718   cat conftest.err >&5
5719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720   (exit $ac_status); } &&
5721          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5723   (eval $ac_try) 2>&5
5724   ac_status=$?
5725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726   (exit $ac_status); }; } &&
5727          { ac_try='test -s conftest.$ac_objext'
5728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5729   (eval $ac_try) 2>&5
5730   ac_status=$?
5731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732   (exit $ac_status); }; }; then
5733   ac_cv_type_int_fast32_t=yes
5734 else
5735   echo "$as_me: failed program was:" >&5
5736 sed 's/^/| /' conftest.$ac_ext >&5
5737
5738 ac_cv_type_int_fast32_t=no
5739 fi
5740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5741 fi
5742 echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
5743 echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
5744 if test $ac_cv_type_int_fast32_t = yes; then
5745   :
5746 else
5747   acx_cv_header_stdint_kind="(mostly complete)"
5748 fi
5749
5750   echo "$as_me:$LINENO: checking for uint64_t" >&5
5751 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
5752 if test "${ac_cv_type_uint64_t+set}" = set; then
5753   echo $ECHO_N "(cached) $ECHO_C" >&6
5754 else
5755   cat >conftest.$ac_ext <<_ACEOF
5756 /* confdefs.h.  */
5757 _ACEOF
5758 cat confdefs.h >>conftest.$ac_ext
5759 cat >>conftest.$ac_ext <<_ACEOF
5760 /* end confdefs.h.  */
5761 #include <sys/types.h>
5762 #include <$i>
5763
5764 int
5765 main ()
5766 {
5767 if ((uint64_t *) 0)
5768   return 0;
5769 if (sizeof (uint64_t))
5770   return 0;
5771   ;
5772   return 0;
5773 }
5774 _ACEOF
5775 rm -f conftest.$ac_objext
5776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5777   (eval $ac_compile) 2>conftest.er1
5778   ac_status=$?
5779   grep -v '^ *+' conftest.er1 >conftest.err
5780   rm -f conftest.er1
5781   cat conftest.err >&5
5782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5783   (exit $ac_status); } &&
5784          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5786   (eval $ac_try) 2>&5
5787   ac_status=$?
5788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789   (exit $ac_status); }; } &&
5790          { ac_try='test -s conftest.$ac_objext'
5791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5792   (eval $ac_try) 2>&5
5793   ac_status=$?
5794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795   (exit $ac_status); }; }; then
5796   ac_cv_type_uint64_t=yes
5797 else
5798   echo "$as_me: failed program was:" >&5
5799 sed 's/^/| /' conftest.$ac_ext >&5
5800
5801 ac_cv_type_uint64_t=no
5802 fi
5803 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5804 fi
5805 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
5806 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
5807 if test $ac_cv_type_uint64_t = yes; then
5808   :
5809 else
5810   acx_cv_header_stdint_kind="(lacks uint64_t)"
5811 fi
5812
5813   break
5814 done
5815 if test "$acx_cv_header_stdint" = stddef.h; then
5816   acx_cv_header_stdint_kind="(lacks uintptr_t)"
5817   for i in stdint.h $inttype_headers; do
5818     unset ac_cv_type_uint32_t
5819     unset ac_cv_type_uint64_t
5820     echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
5821     echo "$as_me:$LINENO: checking for uint32_t" >&5
5822 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
5823 if test "${ac_cv_type_uint32_t+set}" = set; then
5824   echo $ECHO_N "(cached) $ECHO_C" >&6
5825 else
5826   cat >conftest.$ac_ext <<_ACEOF
5827 /* confdefs.h.  */
5828 _ACEOF
5829 cat confdefs.h >>conftest.$ac_ext
5830 cat >>conftest.$ac_ext <<_ACEOF
5831 /* end confdefs.h.  */
5832 #include <sys/types.h>
5833 #include <$i>
5834
5835 int
5836 main ()
5837 {
5838 if ((uint32_t *) 0)
5839   return 0;
5840 if (sizeof (uint32_t))
5841   return 0;
5842   ;
5843   return 0;
5844 }
5845 _ACEOF
5846 rm -f conftest.$ac_objext
5847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5848   (eval $ac_compile) 2>conftest.er1
5849   ac_status=$?
5850   grep -v '^ *+' conftest.er1 >conftest.err
5851   rm -f conftest.er1
5852   cat conftest.err >&5
5853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5854   (exit $ac_status); } &&
5855          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5857   (eval $ac_try) 2>&5
5858   ac_status=$?
5859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860   (exit $ac_status); }; } &&
5861          { ac_try='test -s conftest.$ac_objext'
5862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5863   (eval $ac_try) 2>&5
5864   ac_status=$?
5865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5866   (exit $ac_status); }; }; then
5867   ac_cv_type_uint32_t=yes
5868 else
5869   echo "$as_me: failed program was:" >&5
5870 sed 's/^/| /' conftest.$ac_ext >&5
5871
5872 ac_cv_type_uint32_t=no
5873 fi
5874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5875 fi
5876 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
5877 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
5878 if test $ac_cv_type_uint32_t = yes; then
5879   acx_cv_header_stdint=$i
5880 else
5881   continue
5882 fi
5883
5884     echo "$as_me:$LINENO: checking for uint64_t" >&5
5885 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
5886 if test "${ac_cv_type_uint64_t+set}" = set; then
5887   echo $ECHO_N "(cached) $ECHO_C" >&6
5888 else
5889   cat >conftest.$ac_ext <<_ACEOF
5890 /* confdefs.h.  */
5891 _ACEOF
5892 cat confdefs.h >>conftest.$ac_ext
5893 cat >>conftest.$ac_ext <<_ACEOF
5894 /* end confdefs.h.  */
5895 #include <sys/types.h>
5896 #include <$i>
5897
5898 int
5899 main ()
5900 {
5901 if ((uint64_t *) 0)
5902   return 0;
5903 if (sizeof (uint64_t))
5904   return 0;
5905   ;
5906   return 0;
5907 }
5908 _ACEOF
5909 rm -f conftest.$ac_objext
5910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5911   (eval $ac_compile) 2>conftest.er1
5912   ac_status=$?
5913   grep -v '^ *+' conftest.er1 >conftest.err
5914   rm -f conftest.er1
5915   cat conftest.err >&5
5916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5917   (exit $ac_status); } &&
5918          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5920   (eval $ac_try) 2>&5
5921   ac_status=$?
5922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5923   (exit $ac_status); }; } &&
5924          { ac_try='test -s conftest.$ac_objext'
5925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5926   (eval $ac_try) 2>&5
5927   ac_status=$?
5928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929   (exit $ac_status); }; }; then
5930   ac_cv_type_uint64_t=yes
5931 else
5932   echo "$as_me: failed program was:" >&5
5933 sed 's/^/| /' conftest.$ac_ext >&5
5934
5935 ac_cv_type_uint64_t=no
5936 fi
5937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5938 fi
5939 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
5940 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
5941 if test $ac_cv_type_uint64_t = yes; then
5942   :
5943 else
5944   acx_cv_header_stdint_kind="(lacks uintptr_t and uint64_t)"
5945 fi
5946
5947     break
5948   done
5949 fi
5950 if test "$acx_cv_header_stdint" = stddef.h; then
5951   acx_cv_header_stdint_kind="(u_intXX_t style)"
5952   for i in sys/types.h $inttype_headers; do
5953     unset ac_cv_type_u_int32_t
5954     unset ac_cv_type_u_int64_t
5955     echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
5956     echo "$as_me:$LINENO: checking for u_int32_t" >&5
5957 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
5958 if test "${ac_cv_type_u_int32_t+set}" = set; then
5959   echo $ECHO_N "(cached) $ECHO_C" >&6
5960 else
5961   cat >conftest.$ac_ext <<_ACEOF
5962 /* confdefs.h.  */
5963 _ACEOF
5964 cat confdefs.h >>conftest.$ac_ext
5965 cat >>conftest.$ac_ext <<_ACEOF
5966 /* end confdefs.h.  */
5967 #include <sys/types.h>
5968 #include <$i>
5969
5970 int
5971 main ()
5972 {
5973 if ((u_int32_t *) 0)
5974   return 0;
5975 if (sizeof (u_int32_t))
5976   return 0;
5977   ;
5978   return 0;
5979 }
5980 _ACEOF
5981 rm -f conftest.$ac_objext
5982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5983   (eval $ac_compile) 2>conftest.er1
5984   ac_status=$?
5985   grep -v '^ *+' conftest.er1 >conftest.err
5986   rm -f conftest.er1
5987   cat conftest.err >&5
5988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5989   (exit $ac_status); } &&
5990          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
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); }; } &&
5996          { ac_try='test -s conftest.$ac_objext'
5997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5998   (eval $ac_try) 2>&5
5999   ac_status=$?
6000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6001   (exit $ac_status); }; }; then
6002   ac_cv_type_u_int32_t=yes
6003 else
6004   echo "$as_me: failed program was:" >&5
6005 sed 's/^/| /' conftest.$ac_ext >&5
6006
6007 ac_cv_type_u_int32_t=no
6008 fi
6009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6010 fi
6011 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
6012 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
6013 if test $ac_cv_type_u_int32_t = yes; then
6014   acx_cv_header_stdint=$i
6015 else
6016   continue
6017 fi
6018
6019     echo "$as_me:$LINENO: checking for u_int64_t" >&5
6020 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
6021 if test "${ac_cv_type_u_int64_t+set}" = set; then
6022   echo $ECHO_N "(cached) $ECHO_C" >&6
6023 else
6024   cat >conftest.$ac_ext <<_ACEOF
6025 /* confdefs.h.  */
6026 _ACEOF
6027 cat confdefs.h >>conftest.$ac_ext
6028 cat >>conftest.$ac_ext <<_ACEOF
6029 /* end confdefs.h.  */
6030 #include <sys/types.h>
6031 #include <$i>
6032
6033 int
6034 main ()
6035 {
6036 if ((u_int64_t *) 0)
6037   return 0;
6038 if (sizeof (u_int64_t))
6039   return 0;
6040   ;
6041   return 0;
6042 }
6043 _ACEOF
6044 rm -f conftest.$ac_objext
6045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6046   (eval $ac_compile) 2>conftest.er1
6047   ac_status=$?
6048   grep -v '^ *+' conftest.er1 >conftest.err
6049   rm -f conftest.er1
6050   cat conftest.err >&5
6051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6052   (exit $ac_status); } &&
6053          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6055   (eval $ac_try) 2>&5
6056   ac_status=$?
6057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6058   (exit $ac_status); }; } &&
6059          { ac_try='test -s conftest.$ac_objext'
6060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6061   (eval $ac_try) 2>&5
6062   ac_status=$?
6063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064   (exit $ac_status); }; }; then
6065   ac_cv_type_u_int64_t=yes
6066 else
6067   echo "$as_me: failed program was:" >&5
6068 sed 's/^/| /' conftest.$ac_ext >&5
6069
6070 ac_cv_type_u_int64_t=no
6071 fi
6072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6073 fi
6074 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
6075 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
6076 if test $ac_cv_type_u_int64_t = yes; then
6077   :
6078 else
6079   acx_cv_header_stdint_kind="(u_intXX_t style, lacks u_int64_t)"
6080 fi
6081
6082     break
6083   done
6084 fi
6085 if test "$acx_cv_header_stdint" = stddef.h; then
6086   acx_cv_header_stdint_kind="(using manual detection)"
6087 fi
6088
6089 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
6090 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
6091 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
6092 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
6093 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
6094
6095 # ----------------- Summarize what we found so far
6096
6097 echo "$as_me:$LINENO: checking what to include in gstdint.h" >&5
6098 echo $ECHO_N "checking what to include in gstdint.h... $ECHO_C" >&6
6099
6100 case `$as_basename gstdint.h ||
6101 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
6102          Xgstdint.h : 'X\(//\)$' \| \
6103          Xgstdint.h : 'X\(/\)$' \| \
6104          .     : '\(.\)' 2>/dev/null ||
6105 echo X/gstdint.h |
6106     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6107           /^X\/\(\/\/\)$/{ s//\1/; q; }
6108           /^X\/\(\/\).*/{ s//\1/; q; }
6109           s/.*/./; q'` in
6110   stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
6111 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
6112   inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
6113 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
6114   *) ;;
6115 esac
6116
6117 echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
6118 echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
6119
6120 # ----------------- done included file, check C basic types --------
6121
6122 # Lacking an uintptr_t?  Test size of void *
6123 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
6124   stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
6125 echo $ECHO_N "checking for void *... $ECHO_C" >&6
6126 if test "${ac_cv_type_void_p+set}" = set; then
6127   echo $ECHO_N "(cached) $ECHO_C" >&6
6128 else
6129   cat >conftest.$ac_ext <<_ACEOF
6130 /* confdefs.h.  */
6131 _ACEOF
6132 cat confdefs.h >>conftest.$ac_ext
6133 cat >>conftest.$ac_ext <<_ACEOF
6134 /* end confdefs.h.  */
6135 $ac_includes_default
6136 int
6137 main ()
6138 {
6139 if ((void * *) 0)
6140   return 0;
6141 if (sizeof (void *))
6142   return 0;
6143   ;
6144   return 0;
6145 }
6146 _ACEOF
6147 rm -f conftest.$ac_objext
6148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6149   (eval $ac_compile) 2>conftest.er1
6150   ac_status=$?
6151   grep -v '^ *+' conftest.er1 >conftest.err
6152   rm -f conftest.er1
6153   cat conftest.err >&5
6154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6155   (exit $ac_status); } &&
6156          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6158   (eval $ac_try) 2>&5
6159   ac_status=$?
6160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161   (exit $ac_status); }; } &&
6162          { ac_try='test -s conftest.$ac_objext'
6163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6164   (eval $ac_try) 2>&5
6165   ac_status=$?
6166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6167   (exit $ac_status); }; }; then
6168   ac_cv_type_void_p=yes
6169 else
6170   echo "$as_me: failed program was:" >&5
6171 sed 's/^/| /' conftest.$ac_ext >&5
6172
6173 ac_cv_type_void_p=no
6174 fi
6175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6176 fi
6177 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
6178 echo "${ECHO_T}$ac_cv_type_void_p" >&6
6179
6180 echo "$as_me:$LINENO: checking size of void *" >&5
6181 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
6182 if test "${ac_cv_sizeof_void_p+set}" = set; then
6183   echo $ECHO_N "(cached) $ECHO_C" >&6
6184 else
6185   if test "$ac_cv_type_void_p" = yes; then
6186   # The cast to unsigned long works around a bug in the HP C Compiler
6187   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6188   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6189   # This bug is HP SR number 8606223364.
6190   if test "$cross_compiling" = yes; then
6191   # Depending upon the size, compute the lo and hi bounds.
6192 cat >conftest.$ac_ext <<_ACEOF
6193 /* confdefs.h.  */
6194 _ACEOF
6195 cat confdefs.h >>conftest.$ac_ext
6196 cat >>conftest.$ac_ext <<_ACEOF
6197 /* end confdefs.h.  */
6198 $ac_includes_default
6199 int
6200 main ()
6201 {
6202 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
6203 test_array [0] = 0
6204
6205   ;
6206   return 0;
6207 }
6208 _ACEOF
6209 rm -f conftest.$ac_objext
6210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6211   (eval $ac_compile) 2>conftest.er1
6212   ac_status=$?
6213   grep -v '^ *+' conftest.er1 >conftest.err
6214   rm -f conftest.er1
6215   cat conftest.err >&5
6216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6217   (exit $ac_status); } &&
6218          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6220   (eval $ac_try) 2>&5
6221   ac_status=$?
6222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6223   (exit $ac_status); }; } &&
6224          { ac_try='test -s conftest.$ac_objext'
6225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6226   (eval $ac_try) 2>&5
6227   ac_status=$?
6228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6229   (exit $ac_status); }; }; then
6230   ac_lo=0 ac_mid=0
6231   while :; do
6232     cat >conftest.$ac_ext <<_ACEOF
6233 /* confdefs.h.  */
6234 _ACEOF
6235 cat confdefs.h >>conftest.$ac_ext
6236 cat >>conftest.$ac_ext <<_ACEOF
6237 /* end confdefs.h.  */
6238 $ac_includes_default
6239 int
6240 main ()
6241 {
6242 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
6243 test_array [0] = 0
6244
6245   ;
6246   return 0;
6247 }
6248 _ACEOF
6249 rm -f conftest.$ac_objext
6250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6251   (eval $ac_compile) 2>conftest.er1
6252   ac_status=$?
6253   grep -v '^ *+' conftest.er1 >conftest.err
6254   rm -f conftest.er1
6255   cat conftest.err >&5
6256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257   (exit $ac_status); } &&
6258          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6260   (eval $ac_try) 2>&5
6261   ac_status=$?
6262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263   (exit $ac_status); }; } &&
6264          { ac_try='test -s conftest.$ac_objext'
6265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6266   (eval $ac_try) 2>&5
6267   ac_status=$?
6268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6269   (exit $ac_status); }; }; then
6270   ac_hi=$ac_mid; break
6271 else
6272   echo "$as_me: failed program was:" >&5
6273 sed 's/^/| /' conftest.$ac_ext >&5
6274
6275 ac_lo=`expr $ac_mid + 1`
6276                     if test $ac_lo -le $ac_mid; then
6277                       ac_lo= ac_hi=
6278                       break
6279                     fi
6280                     ac_mid=`expr 2 '*' $ac_mid + 1`
6281 fi
6282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6283   done
6284 else
6285   echo "$as_me: failed program was:" >&5
6286 sed 's/^/| /' conftest.$ac_ext >&5
6287
6288 cat >conftest.$ac_ext <<_ACEOF
6289 /* confdefs.h.  */
6290 _ACEOF
6291 cat confdefs.h >>conftest.$ac_ext
6292 cat >>conftest.$ac_ext <<_ACEOF
6293 /* end confdefs.h.  */
6294 $ac_includes_default
6295 int
6296 main ()
6297 {
6298 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
6299 test_array [0] = 0
6300
6301   ;
6302   return 0;
6303 }
6304 _ACEOF
6305 rm -f conftest.$ac_objext
6306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6307   (eval $ac_compile) 2>conftest.er1
6308   ac_status=$?
6309   grep -v '^ *+' conftest.er1 >conftest.err
6310   rm -f conftest.er1
6311   cat conftest.err >&5
6312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6313   (exit $ac_status); } &&
6314          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6316   (eval $ac_try) 2>&5
6317   ac_status=$?
6318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6319   (exit $ac_status); }; } &&
6320          { ac_try='test -s conftest.$ac_objext'
6321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6322   (eval $ac_try) 2>&5
6323   ac_status=$?
6324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6325   (exit $ac_status); }; }; then
6326   ac_hi=-1 ac_mid=-1
6327   while :; do
6328     cat >conftest.$ac_ext <<_ACEOF
6329 /* confdefs.h.  */
6330 _ACEOF
6331 cat confdefs.h >>conftest.$ac_ext
6332 cat >>conftest.$ac_ext <<_ACEOF
6333 /* end confdefs.h.  */
6334 $ac_includes_default
6335 int
6336 main ()
6337 {
6338 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
6339 test_array [0] = 0
6340
6341   ;
6342   return 0;
6343 }
6344 _ACEOF
6345 rm -f conftest.$ac_objext
6346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6347   (eval $ac_compile) 2>conftest.er1
6348   ac_status=$?
6349   grep -v '^ *+' conftest.er1 >conftest.err
6350   rm -f conftest.er1
6351   cat conftest.err >&5
6352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353   (exit $ac_status); } &&
6354          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6356   (eval $ac_try) 2>&5
6357   ac_status=$?
6358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359   (exit $ac_status); }; } &&
6360          { ac_try='test -s conftest.$ac_objext'
6361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6362   (eval $ac_try) 2>&5
6363   ac_status=$?
6364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6365   (exit $ac_status); }; }; then
6366   ac_lo=$ac_mid; break
6367 else
6368   echo "$as_me: failed program was:" >&5
6369 sed 's/^/| /' conftest.$ac_ext >&5
6370
6371 ac_hi=`expr '(' $ac_mid ')' - 1`
6372                        if test $ac_mid -le $ac_hi; then
6373                          ac_lo= ac_hi=
6374                          break
6375                        fi
6376                        ac_mid=`expr 2 '*' $ac_mid`
6377 fi
6378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6379   done
6380 else
6381   echo "$as_me: failed program was:" >&5
6382 sed 's/^/| /' conftest.$ac_ext >&5
6383
6384 ac_lo= ac_hi=
6385 fi
6386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6387 fi
6388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6389 # Binary search between lo and hi bounds.
6390 while test "x$ac_lo" != "x$ac_hi"; do
6391   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6392   cat >conftest.$ac_ext <<_ACEOF
6393 /* confdefs.h.  */
6394 _ACEOF
6395 cat confdefs.h >>conftest.$ac_ext
6396 cat >>conftest.$ac_ext <<_ACEOF
6397 /* end confdefs.h.  */
6398 $ac_includes_default
6399 int
6400 main ()
6401 {
6402 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
6403 test_array [0] = 0
6404
6405   ;
6406   return 0;
6407 }
6408 _ACEOF
6409 rm -f conftest.$ac_objext
6410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6411   (eval $ac_compile) 2>conftest.er1
6412   ac_status=$?
6413   grep -v '^ *+' conftest.er1 >conftest.err
6414   rm -f conftest.er1
6415   cat conftest.err >&5
6416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6417   (exit $ac_status); } &&
6418          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6420   (eval $ac_try) 2>&5
6421   ac_status=$?
6422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6423   (exit $ac_status); }; } &&
6424          { ac_try='test -s conftest.$ac_objext'
6425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6426   (eval $ac_try) 2>&5
6427   ac_status=$?
6428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429   (exit $ac_status); }; }; then
6430   ac_hi=$ac_mid
6431 else
6432   echo "$as_me: failed program was:" >&5
6433 sed 's/^/| /' conftest.$ac_ext >&5
6434
6435 ac_lo=`expr '(' $ac_mid ')' + 1`
6436 fi
6437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6438 done
6439 case $ac_lo in
6440 ?*) ac_cv_sizeof_void_p=$ac_lo;;
6441 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
6442 See \`config.log' for more details." >&5
6443 echo "$as_me: error: cannot compute sizeof (void *), 77
6444 See \`config.log' for more details." >&2;}
6445    { (exit 1); exit 1; }; } ;;
6446 esac
6447 else
6448   if test "$cross_compiling" = yes; then
6449   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
6450 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
6451    { (exit 1); exit 1; }; }
6452 else
6453   cat >conftest.$ac_ext <<_ACEOF
6454 /* confdefs.h.  */
6455 _ACEOF
6456 cat confdefs.h >>conftest.$ac_ext
6457 cat >>conftest.$ac_ext <<_ACEOF
6458 /* end confdefs.h.  */
6459 $ac_includes_default
6460 long longval () { return (long) (sizeof (void *)); }
6461 unsigned long ulongval () { return (long) (sizeof (void *)); }
6462 #include <stdio.h>
6463 #include <stdlib.h>
6464 int
6465 main ()
6466 {
6467
6468   FILE *f = fopen ("conftest.val", "w");
6469   if (! f)
6470     exit (1);
6471   if (((long) (sizeof (void *))) < 0)
6472     {
6473       long i = longval ();
6474       if (i != ((long) (sizeof (void *))))
6475         exit (1);
6476       fprintf (f, "%ld\n", i);
6477     }
6478   else
6479     {
6480       unsigned long i = ulongval ();
6481       if (i != ((long) (sizeof (void *))))
6482         exit (1);
6483       fprintf (f, "%lu\n", i);
6484     }
6485   exit (ferror (f) || fclose (f) != 0);
6486
6487   ;
6488   return 0;
6489 }
6490 _ACEOF
6491 rm -f conftest$ac_exeext
6492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6493   (eval $ac_link) 2>&5
6494   ac_status=$?
6495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6496   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6498   (eval $ac_try) 2>&5
6499   ac_status=$?
6500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6501   (exit $ac_status); }; }; then
6502   ac_cv_sizeof_void_p=`cat conftest.val`
6503 else
6504   echo "$as_me: program exited with status $ac_status" >&5
6505 echo "$as_me: failed program was:" >&5
6506 sed 's/^/| /' conftest.$ac_ext >&5
6507
6508 ( exit $ac_status )
6509 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
6510 See \`config.log' for more details." >&5
6511 echo "$as_me: error: cannot compute sizeof (void *), 77
6512 See \`config.log' for more details." >&2;}
6513    { (exit 1); exit 1; }; }
6514 fi
6515 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6516 fi
6517 fi
6518 rm -f conftest.val
6519 else
6520   ac_cv_sizeof_void_p=0
6521 fi
6522 fi
6523 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
6524 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
6525 cat >>confdefs.h <<_ACEOF
6526 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6527 _ACEOF
6528
6529  ;;
6530 esac
6531
6532 # Lacking an uint64_t?  Test size of long
6533 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
6534   stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
6535 echo $ECHO_N "checking for long... $ECHO_C" >&6
6536 if test "${ac_cv_type_long+set}" = set; then
6537   echo $ECHO_N "(cached) $ECHO_C" >&6
6538 else
6539   cat >conftest.$ac_ext <<_ACEOF
6540 /* confdefs.h.  */
6541 _ACEOF
6542 cat confdefs.h >>conftest.$ac_ext
6543 cat >>conftest.$ac_ext <<_ACEOF
6544 /* end confdefs.h.  */
6545 $ac_includes_default
6546 int
6547 main ()
6548 {
6549 if ((long *) 0)
6550   return 0;
6551 if (sizeof (long))
6552   return 0;
6553   ;
6554   return 0;
6555 }
6556 _ACEOF
6557 rm -f conftest.$ac_objext
6558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6559   (eval $ac_compile) 2>conftest.er1
6560   ac_status=$?
6561   grep -v '^ *+' conftest.er1 >conftest.err
6562   rm -f conftest.er1
6563   cat conftest.err >&5
6564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6565   (exit $ac_status); } &&
6566          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6568   (eval $ac_try) 2>&5
6569   ac_status=$?
6570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6571   (exit $ac_status); }; } &&
6572          { ac_try='test -s conftest.$ac_objext'
6573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6574   (eval $ac_try) 2>&5
6575   ac_status=$?
6576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6577   (exit $ac_status); }; }; then
6578   ac_cv_type_long=yes
6579 else
6580   echo "$as_me: failed program was:" >&5
6581 sed 's/^/| /' conftest.$ac_ext >&5
6582
6583 ac_cv_type_long=no
6584 fi
6585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6586 fi
6587 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6588 echo "${ECHO_T}$ac_cv_type_long" >&6
6589
6590 echo "$as_me:$LINENO: checking size of long" >&5
6591 echo $ECHO_N "checking size of long... $ECHO_C" >&6
6592 if test "${ac_cv_sizeof_long+set}" = set; then
6593   echo $ECHO_N "(cached) $ECHO_C" >&6
6594 else
6595   if test "$ac_cv_type_long" = yes; then
6596   # The cast to unsigned long works around a bug in the HP C Compiler
6597   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6598   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6599   # This bug is HP SR number 8606223364.
6600   if test "$cross_compiling" = yes; then
6601   # Depending upon the size, compute the lo and hi bounds.
6602 cat >conftest.$ac_ext <<_ACEOF
6603 /* confdefs.h.  */
6604 _ACEOF
6605 cat confdefs.h >>conftest.$ac_ext
6606 cat >>conftest.$ac_ext <<_ACEOF
6607 /* end confdefs.h.  */
6608 $ac_includes_default
6609 int
6610 main ()
6611 {
6612 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6613 test_array [0] = 0
6614
6615   ;
6616   return 0;
6617 }
6618 _ACEOF
6619 rm -f conftest.$ac_objext
6620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6621   (eval $ac_compile) 2>conftest.er1
6622   ac_status=$?
6623   grep -v '^ *+' conftest.er1 >conftest.err
6624   rm -f conftest.er1
6625   cat conftest.err >&5
6626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627   (exit $ac_status); } &&
6628          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6630   (eval $ac_try) 2>&5
6631   ac_status=$?
6632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6633   (exit $ac_status); }; } &&
6634          { ac_try='test -s conftest.$ac_objext'
6635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6636   (eval $ac_try) 2>&5
6637   ac_status=$?
6638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6639   (exit $ac_status); }; }; then
6640   ac_lo=0 ac_mid=0
6641   while :; do
6642     cat >conftest.$ac_ext <<_ACEOF
6643 /* confdefs.h.  */
6644 _ACEOF
6645 cat confdefs.h >>conftest.$ac_ext
6646 cat >>conftest.$ac_ext <<_ACEOF
6647 /* end confdefs.h.  */
6648 $ac_includes_default
6649 int
6650 main ()
6651 {
6652 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6653 test_array [0] = 0
6654
6655   ;
6656   return 0;
6657 }
6658 _ACEOF
6659 rm -f conftest.$ac_objext
6660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6661   (eval $ac_compile) 2>conftest.er1
6662   ac_status=$?
6663   grep -v '^ *+' conftest.er1 >conftest.err
6664   rm -f conftest.er1
6665   cat conftest.err >&5
6666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6667   (exit $ac_status); } &&
6668          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6670   (eval $ac_try) 2>&5
6671   ac_status=$?
6672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6673   (exit $ac_status); }; } &&
6674          { ac_try='test -s conftest.$ac_objext'
6675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6676   (eval $ac_try) 2>&5
6677   ac_status=$?
6678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6679   (exit $ac_status); }; }; then
6680   ac_hi=$ac_mid; break
6681 else
6682   echo "$as_me: failed program was:" >&5
6683 sed 's/^/| /' conftest.$ac_ext >&5
6684
6685 ac_lo=`expr $ac_mid + 1`
6686                     if test $ac_lo -le $ac_mid; then
6687                       ac_lo= ac_hi=
6688                       break
6689                     fi
6690                     ac_mid=`expr 2 '*' $ac_mid + 1`
6691 fi
6692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6693   done
6694 else
6695   echo "$as_me: failed program was:" >&5
6696 sed 's/^/| /' conftest.$ac_ext >&5
6697
6698 cat >conftest.$ac_ext <<_ACEOF
6699 /* confdefs.h.  */
6700 _ACEOF
6701 cat confdefs.h >>conftest.$ac_ext
6702 cat >>conftest.$ac_ext <<_ACEOF
6703 /* end confdefs.h.  */
6704 $ac_includes_default
6705 int
6706 main ()
6707 {
6708 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6709 test_array [0] = 0
6710
6711   ;
6712   return 0;
6713 }
6714 _ACEOF
6715 rm -f conftest.$ac_objext
6716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6717   (eval $ac_compile) 2>conftest.er1
6718   ac_status=$?
6719   grep -v '^ *+' conftest.er1 >conftest.err
6720   rm -f conftest.er1
6721   cat conftest.err >&5
6722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6723   (exit $ac_status); } &&
6724          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6726   (eval $ac_try) 2>&5
6727   ac_status=$?
6728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6729   (exit $ac_status); }; } &&
6730          { ac_try='test -s conftest.$ac_objext'
6731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6732   (eval $ac_try) 2>&5
6733   ac_status=$?
6734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6735   (exit $ac_status); }; }; then
6736   ac_hi=-1 ac_mid=-1
6737   while :; do
6738     cat >conftest.$ac_ext <<_ACEOF
6739 /* confdefs.h.  */
6740 _ACEOF
6741 cat confdefs.h >>conftest.$ac_ext
6742 cat >>conftest.$ac_ext <<_ACEOF
6743 /* end confdefs.h.  */
6744 $ac_includes_default
6745 int
6746 main ()
6747 {
6748 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6749 test_array [0] = 0
6750
6751   ;
6752   return 0;
6753 }
6754 _ACEOF
6755 rm -f conftest.$ac_objext
6756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6757   (eval $ac_compile) 2>conftest.er1
6758   ac_status=$?
6759   grep -v '^ *+' conftest.er1 >conftest.err
6760   rm -f conftest.er1
6761   cat conftest.err >&5
6762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763   (exit $ac_status); } &&
6764          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6766   (eval $ac_try) 2>&5
6767   ac_status=$?
6768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6769   (exit $ac_status); }; } &&
6770          { ac_try='test -s conftest.$ac_objext'
6771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6772   (eval $ac_try) 2>&5
6773   ac_status=$?
6774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6775   (exit $ac_status); }; }; then
6776   ac_lo=$ac_mid; break
6777 else
6778   echo "$as_me: failed program was:" >&5
6779 sed 's/^/| /' conftest.$ac_ext >&5
6780
6781 ac_hi=`expr '(' $ac_mid ')' - 1`
6782                        if test $ac_mid -le $ac_hi; then
6783                          ac_lo= ac_hi=
6784                          break
6785                        fi
6786                        ac_mid=`expr 2 '*' $ac_mid`
6787 fi
6788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6789   done
6790 else
6791   echo "$as_me: failed program was:" >&5
6792 sed 's/^/| /' conftest.$ac_ext >&5
6793
6794 ac_lo= ac_hi=
6795 fi
6796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6797 fi
6798 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6799 # Binary search between lo and hi bounds.
6800 while test "x$ac_lo" != "x$ac_hi"; do
6801   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6802   cat >conftest.$ac_ext <<_ACEOF
6803 /* confdefs.h.  */
6804 _ACEOF
6805 cat confdefs.h >>conftest.$ac_ext
6806 cat >>conftest.$ac_ext <<_ACEOF
6807 /* end confdefs.h.  */
6808 $ac_includes_default
6809 int
6810 main ()
6811 {
6812 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6813 test_array [0] = 0
6814
6815   ;
6816   return 0;
6817 }
6818 _ACEOF
6819 rm -f conftest.$ac_objext
6820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6821   (eval $ac_compile) 2>conftest.er1
6822   ac_status=$?
6823   grep -v '^ *+' conftest.er1 >conftest.err
6824   rm -f conftest.er1
6825   cat conftest.err >&5
6826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6827   (exit $ac_status); } &&
6828          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6830   (eval $ac_try) 2>&5
6831   ac_status=$?
6832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6833   (exit $ac_status); }; } &&
6834          { ac_try='test -s conftest.$ac_objext'
6835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6836   (eval $ac_try) 2>&5
6837   ac_status=$?
6838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6839   (exit $ac_status); }; }; then
6840   ac_hi=$ac_mid
6841 else
6842   echo "$as_me: failed program was:" >&5
6843 sed 's/^/| /' conftest.$ac_ext >&5
6844
6845 ac_lo=`expr '(' $ac_mid ')' + 1`
6846 fi
6847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6848 done
6849 case $ac_lo in
6850 ?*) ac_cv_sizeof_long=$ac_lo;;
6851 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6852 See \`config.log' for more details." >&5
6853 echo "$as_me: error: cannot compute sizeof (long), 77
6854 See \`config.log' for more details." >&2;}
6855    { (exit 1); exit 1; }; } ;;
6856 esac
6857 else
6858   if test "$cross_compiling" = yes; then
6859   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
6860 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
6861    { (exit 1); exit 1; }; }
6862 else
6863   cat >conftest.$ac_ext <<_ACEOF
6864 /* confdefs.h.  */
6865 _ACEOF
6866 cat confdefs.h >>conftest.$ac_ext
6867 cat >>conftest.$ac_ext <<_ACEOF
6868 /* end confdefs.h.  */
6869 $ac_includes_default
6870 long longval () { return (long) (sizeof (long)); }
6871 unsigned long ulongval () { return (long) (sizeof (long)); }
6872 #include <stdio.h>
6873 #include <stdlib.h>
6874 int
6875 main ()
6876 {
6877
6878   FILE *f = fopen ("conftest.val", "w");
6879   if (! f)
6880     exit (1);
6881   if (((long) (sizeof (long))) < 0)
6882     {
6883       long i = longval ();
6884       if (i != ((long) (sizeof (long))))
6885         exit (1);
6886       fprintf (f, "%ld\n", i);
6887     }
6888   else
6889     {
6890       unsigned long i = ulongval ();
6891       if (i != ((long) (sizeof (long))))
6892         exit (1);
6893       fprintf (f, "%lu\n", i);
6894     }
6895   exit (ferror (f) || fclose (f) != 0);
6896
6897   ;
6898   return 0;
6899 }
6900 _ACEOF
6901 rm -f conftest$ac_exeext
6902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6903   (eval $ac_link) 2>&5
6904   ac_status=$?
6905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6906   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6908   (eval $ac_try) 2>&5
6909   ac_status=$?
6910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6911   (exit $ac_status); }; }; then
6912   ac_cv_sizeof_long=`cat conftest.val`
6913 else
6914   echo "$as_me: program exited with status $ac_status" >&5
6915 echo "$as_me: failed program was:" >&5
6916 sed 's/^/| /' conftest.$ac_ext >&5
6917
6918 ( exit $ac_status )
6919 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6920 See \`config.log' for more details." >&5
6921 echo "$as_me: error: cannot compute sizeof (long), 77
6922 See \`config.log' for more details." >&2;}
6923    { (exit 1); exit 1; }; }
6924 fi
6925 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6926 fi
6927 fi
6928 rm -f conftest.val
6929 else
6930   ac_cv_sizeof_long=0
6931 fi
6932 fi
6933 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6934 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
6935 cat >>confdefs.h <<_ACEOF
6936 #define SIZEOF_LONG $ac_cv_sizeof_long
6937 _ACEOF
6938
6939  ;;
6940 esac
6941
6942 if test $acx_cv_header_stdint = stddef.h; then
6943   # Lacking a good header?  Test size of everything and deduce all types.
6944   echo "$as_me:$LINENO: checking for int" >&5
6945 echo $ECHO_N "checking for int... $ECHO_C" >&6
6946 if test "${ac_cv_type_int+set}" = set; then
6947   echo $ECHO_N "(cached) $ECHO_C" >&6
6948 else
6949   cat >conftest.$ac_ext <<_ACEOF
6950 /* confdefs.h.  */
6951 _ACEOF
6952 cat confdefs.h >>conftest.$ac_ext
6953 cat >>conftest.$ac_ext <<_ACEOF
6954 /* end confdefs.h.  */
6955 $ac_includes_default
6956 int
6957 main ()
6958 {
6959 if ((int *) 0)
6960   return 0;
6961 if (sizeof (int))
6962   return 0;
6963   ;
6964   return 0;
6965 }
6966 _ACEOF
6967 rm -f conftest.$ac_objext
6968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6969   (eval $ac_compile) 2>conftest.er1
6970   ac_status=$?
6971   grep -v '^ *+' conftest.er1 >conftest.err
6972   rm -f conftest.er1
6973   cat conftest.err >&5
6974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6975   (exit $ac_status); } &&
6976          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6978   (eval $ac_try) 2>&5
6979   ac_status=$?
6980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6981   (exit $ac_status); }; } &&
6982          { ac_try='test -s conftest.$ac_objext'
6983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6984   (eval $ac_try) 2>&5
6985   ac_status=$?
6986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6987   (exit $ac_status); }; }; then
6988   ac_cv_type_int=yes
6989 else
6990   echo "$as_me: failed program was:" >&5
6991 sed 's/^/| /' conftest.$ac_ext >&5
6992
6993 ac_cv_type_int=no
6994 fi
6995 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6996 fi
6997 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6998 echo "${ECHO_T}$ac_cv_type_int" >&6
6999
7000 echo "$as_me:$LINENO: checking size of int" >&5
7001 echo $ECHO_N "checking size of int... $ECHO_C" >&6
7002 if test "${ac_cv_sizeof_int+set}" = set; then
7003   echo $ECHO_N "(cached) $ECHO_C" >&6
7004 else
7005   if test "$ac_cv_type_int" = yes; then
7006   # The cast to unsigned long works around a bug in the HP C Compiler
7007   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7008   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7009   # This bug is HP SR number 8606223364.
7010   if test "$cross_compiling" = yes; then
7011   # Depending upon the size, compute the lo and hi bounds.
7012 cat >conftest.$ac_ext <<_ACEOF
7013 /* confdefs.h.  */
7014 _ACEOF
7015 cat confdefs.h >>conftest.$ac_ext
7016 cat >>conftest.$ac_ext <<_ACEOF
7017 /* end confdefs.h.  */
7018 $ac_includes_default
7019 int
7020 main ()
7021 {
7022 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
7023 test_array [0] = 0
7024
7025   ;
7026   return 0;
7027 }
7028 _ACEOF
7029 rm -f conftest.$ac_objext
7030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7031   (eval $ac_compile) 2>conftest.er1
7032   ac_status=$?
7033   grep -v '^ *+' conftest.er1 >conftest.err
7034   rm -f conftest.er1
7035   cat conftest.err >&5
7036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7037   (exit $ac_status); } &&
7038          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7040   (eval $ac_try) 2>&5
7041   ac_status=$?
7042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7043   (exit $ac_status); }; } &&
7044          { ac_try='test -s conftest.$ac_objext'
7045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7046   (eval $ac_try) 2>&5
7047   ac_status=$?
7048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7049   (exit $ac_status); }; }; then
7050   ac_lo=0 ac_mid=0
7051   while :; do
7052     cat >conftest.$ac_ext <<_ACEOF
7053 /* confdefs.h.  */
7054 _ACEOF
7055 cat confdefs.h >>conftest.$ac_ext
7056 cat >>conftest.$ac_ext <<_ACEOF
7057 /* end confdefs.h.  */
7058 $ac_includes_default
7059 int
7060 main ()
7061 {
7062 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
7063 test_array [0] = 0
7064
7065   ;
7066   return 0;
7067 }
7068 _ACEOF
7069 rm -f conftest.$ac_objext
7070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7071   (eval $ac_compile) 2>conftest.er1
7072   ac_status=$?
7073   grep -v '^ *+' conftest.er1 >conftest.err
7074   rm -f conftest.er1
7075   cat conftest.err >&5
7076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7077   (exit $ac_status); } &&
7078          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7080   (eval $ac_try) 2>&5
7081   ac_status=$?
7082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7083   (exit $ac_status); }; } &&
7084          { ac_try='test -s conftest.$ac_objext'
7085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7086   (eval $ac_try) 2>&5
7087   ac_status=$?
7088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7089   (exit $ac_status); }; }; then
7090   ac_hi=$ac_mid; break
7091 else
7092   echo "$as_me: failed program was:" >&5
7093 sed 's/^/| /' conftest.$ac_ext >&5
7094
7095 ac_lo=`expr $ac_mid + 1`
7096                     if test $ac_lo -le $ac_mid; then
7097                       ac_lo= ac_hi=
7098                       break
7099                     fi
7100                     ac_mid=`expr 2 '*' $ac_mid + 1`
7101 fi
7102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7103   done
7104 else
7105   echo "$as_me: failed program was:" >&5
7106 sed 's/^/| /' conftest.$ac_ext >&5
7107
7108 cat >conftest.$ac_ext <<_ACEOF
7109 /* confdefs.h.  */
7110 _ACEOF
7111 cat confdefs.h >>conftest.$ac_ext
7112 cat >>conftest.$ac_ext <<_ACEOF
7113 /* end confdefs.h.  */
7114 $ac_includes_default
7115 int
7116 main ()
7117 {
7118 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
7119 test_array [0] = 0
7120
7121   ;
7122   return 0;
7123 }
7124 _ACEOF
7125 rm -f conftest.$ac_objext
7126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7127   (eval $ac_compile) 2>conftest.er1
7128   ac_status=$?
7129   grep -v '^ *+' conftest.er1 >conftest.err
7130   rm -f conftest.er1
7131   cat conftest.err >&5
7132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7133   (exit $ac_status); } &&
7134          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7136   (eval $ac_try) 2>&5
7137   ac_status=$?
7138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7139   (exit $ac_status); }; } &&
7140          { ac_try='test -s conftest.$ac_objext'
7141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7142   (eval $ac_try) 2>&5
7143   ac_status=$?
7144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7145   (exit $ac_status); }; }; then
7146   ac_hi=-1 ac_mid=-1
7147   while :; do
7148     cat >conftest.$ac_ext <<_ACEOF
7149 /* confdefs.h.  */
7150 _ACEOF
7151 cat confdefs.h >>conftest.$ac_ext
7152 cat >>conftest.$ac_ext <<_ACEOF
7153 /* end confdefs.h.  */
7154 $ac_includes_default
7155 int
7156 main ()
7157 {
7158 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
7159 test_array [0] = 0
7160
7161   ;
7162   return 0;
7163 }
7164 _ACEOF
7165 rm -f conftest.$ac_objext
7166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7167   (eval $ac_compile) 2>conftest.er1
7168   ac_status=$?
7169   grep -v '^ *+' conftest.er1 >conftest.err
7170   rm -f conftest.er1
7171   cat conftest.err >&5
7172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7173   (exit $ac_status); } &&
7174          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7176   (eval $ac_try) 2>&5
7177   ac_status=$?
7178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7179   (exit $ac_status); }; } &&
7180          { ac_try='test -s conftest.$ac_objext'
7181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7182   (eval $ac_try) 2>&5
7183   ac_status=$?
7184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7185   (exit $ac_status); }; }; then
7186   ac_lo=$ac_mid; break
7187 else
7188   echo "$as_me: failed program was:" >&5
7189 sed 's/^/| /' conftest.$ac_ext >&5
7190
7191 ac_hi=`expr '(' $ac_mid ')' - 1`
7192                        if test $ac_mid -le $ac_hi; then
7193                          ac_lo= ac_hi=
7194                          break
7195                        fi
7196                        ac_mid=`expr 2 '*' $ac_mid`
7197 fi
7198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7199   done
7200 else
7201   echo "$as_me: failed program was:" >&5
7202 sed 's/^/| /' conftest.$ac_ext >&5
7203
7204 ac_lo= ac_hi=
7205 fi
7206 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7207 fi
7208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7209 # Binary search between lo and hi bounds.
7210 while test "x$ac_lo" != "x$ac_hi"; do
7211   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7212   cat >conftest.$ac_ext <<_ACEOF
7213 /* confdefs.h.  */
7214 _ACEOF
7215 cat confdefs.h >>conftest.$ac_ext
7216 cat >>conftest.$ac_ext <<_ACEOF
7217 /* end confdefs.h.  */
7218 $ac_includes_default
7219 int
7220 main ()
7221 {
7222 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
7223 test_array [0] = 0
7224
7225   ;
7226   return 0;
7227 }
7228 _ACEOF
7229 rm -f conftest.$ac_objext
7230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7231   (eval $ac_compile) 2>conftest.er1
7232   ac_status=$?
7233   grep -v '^ *+' conftest.er1 >conftest.err
7234   rm -f conftest.er1
7235   cat conftest.err >&5
7236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7237   (exit $ac_status); } &&
7238          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7240   (eval $ac_try) 2>&5
7241   ac_status=$?
7242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7243   (exit $ac_status); }; } &&
7244          { ac_try='test -s conftest.$ac_objext'
7245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7246   (eval $ac_try) 2>&5
7247   ac_status=$?
7248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7249   (exit $ac_status); }; }; then
7250   ac_hi=$ac_mid
7251 else
7252   echo "$as_me: failed program was:" >&5
7253 sed 's/^/| /' conftest.$ac_ext >&5
7254
7255 ac_lo=`expr '(' $ac_mid ')' + 1`
7256 fi
7257 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7258 done
7259 case $ac_lo in
7260 ?*) ac_cv_sizeof_int=$ac_lo;;
7261 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
7262 See \`config.log' for more details." >&5
7263 echo "$as_me: error: cannot compute sizeof (int), 77
7264 See \`config.log' for more details." >&2;}
7265    { (exit 1); exit 1; }; } ;;
7266 esac
7267 else
7268   if test "$cross_compiling" = yes; then
7269   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
7270 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
7271    { (exit 1); exit 1; }; }
7272 else
7273   cat >conftest.$ac_ext <<_ACEOF
7274 /* confdefs.h.  */
7275 _ACEOF
7276 cat confdefs.h >>conftest.$ac_ext
7277 cat >>conftest.$ac_ext <<_ACEOF
7278 /* end confdefs.h.  */
7279 $ac_includes_default
7280 long longval () { return (long) (sizeof (int)); }
7281 unsigned long ulongval () { return (long) (sizeof (int)); }
7282 #include <stdio.h>
7283 #include <stdlib.h>
7284 int
7285 main ()
7286 {
7287
7288   FILE *f = fopen ("conftest.val", "w");
7289   if (! f)
7290     exit (1);
7291   if (((long) (sizeof (int))) < 0)
7292     {
7293       long i = longval ();
7294       if (i != ((long) (sizeof (int))))
7295         exit (1);
7296       fprintf (f, "%ld\n", i);
7297     }
7298   else
7299     {
7300       unsigned long i = ulongval ();
7301       if (i != ((long) (sizeof (int))))
7302         exit (1);
7303       fprintf (f, "%lu\n", i);
7304     }
7305   exit (ferror (f) || fclose (f) != 0);
7306
7307   ;
7308   return 0;
7309 }
7310 _ACEOF
7311 rm -f conftest$ac_exeext
7312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7313   (eval $ac_link) 2>&5
7314   ac_status=$?
7315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7316   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7318   (eval $ac_try) 2>&5
7319   ac_status=$?
7320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7321   (exit $ac_status); }; }; then
7322   ac_cv_sizeof_int=`cat conftest.val`
7323 else
7324   echo "$as_me: program exited with status $ac_status" >&5
7325 echo "$as_me: failed program was:" >&5
7326 sed 's/^/| /' conftest.$ac_ext >&5
7327
7328 ( exit $ac_status )
7329 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
7330 See \`config.log' for more details." >&5
7331 echo "$as_me: error: cannot compute sizeof (int), 77
7332 See \`config.log' for more details." >&2;}
7333    { (exit 1); exit 1; }; }
7334 fi
7335 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7336 fi
7337 fi
7338 rm -f conftest.val
7339 else
7340   ac_cv_sizeof_int=0
7341 fi
7342 fi
7343 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
7344 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
7345 cat >>confdefs.h <<_ACEOF
7346 #define SIZEOF_INT $ac_cv_sizeof_int
7347 _ACEOF
7348
7349
7350   echo "$as_me:$LINENO: checking for short" >&5
7351 echo $ECHO_N "checking for short... $ECHO_C" >&6
7352 if test "${ac_cv_type_short+set}" = set; then
7353   echo $ECHO_N "(cached) $ECHO_C" >&6
7354 else
7355   cat >conftest.$ac_ext <<_ACEOF
7356 /* confdefs.h.  */
7357 _ACEOF
7358 cat confdefs.h >>conftest.$ac_ext
7359 cat >>conftest.$ac_ext <<_ACEOF
7360 /* end confdefs.h.  */
7361 $ac_includes_default
7362 int
7363 main ()
7364 {
7365 if ((short *) 0)
7366   return 0;
7367 if (sizeof (short))
7368   return 0;
7369   ;
7370   return 0;
7371 }
7372 _ACEOF
7373 rm -f conftest.$ac_objext
7374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7375   (eval $ac_compile) 2>conftest.er1
7376   ac_status=$?
7377   grep -v '^ *+' conftest.er1 >conftest.err
7378   rm -f conftest.er1
7379   cat conftest.err >&5
7380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7381   (exit $ac_status); } &&
7382          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7384   (eval $ac_try) 2>&5
7385   ac_status=$?
7386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7387   (exit $ac_status); }; } &&
7388          { ac_try='test -s conftest.$ac_objext'
7389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7390   (eval $ac_try) 2>&5
7391   ac_status=$?
7392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7393   (exit $ac_status); }; }; then
7394   ac_cv_type_short=yes
7395 else
7396   echo "$as_me: failed program was:" >&5
7397 sed 's/^/| /' conftest.$ac_ext >&5
7398
7399 ac_cv_type_short=no
7400 fi
7401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7402 fi
7403 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
7404 echo "${ECHO_T}$ac_cv_type_short" >&6
7405
7406 echo "$as_me:$LINENO: checking size of short" >&5
7407 echo $ECHO_N "checking size of short... $ECHO_C" >&6
7408 if test "${ac_cv_sizeof_short+set}" = set; then
7409   echo $ECHO_N "(cached) $ECHO_C" >&6
7410 else
7411   if test "$ac_cv_type_short" = yes; then
7412   # The cast to unsigned long works around a bug in the HP C Compiler
7413   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7414   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7415   # This bug is HP SR number 8606223364.
7416   if test "$cross_compiling" = yes; then
7417   # Depending upon the size, compute the lo and hi bounds.
7418 cat >conftest.$ac_ext <<_ACEOF
7419 /* confdefs.h.  */
7420 _ACEOF
7421 cat confdefs.h >>conftest.$ac_ext
7422 cat >>conftest.$ac_ext <<_ACEOF
7423 /* end confdefs.h.  */
7424 $ac_includes_default
7425 int
7426 main ()
7427 {
7428 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
7429 test_array [0] = 0
7430
7431   ;
7432   return 0;
7433 }
7434 _ACEOF
7435 rm -f conftest.$ac_objext
7436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7437   (eval $ac_compile) 2>conftest.er1
7438   ac_status=$?
7439   grep -v '^ *+' conftest.er1 >conftest.err
7440   rm -f conftest.er1
7441   cat conftest.err >&5
7442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7443   (exit $ac_status); } &&
7444          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7446   (eval $ac_try) 2>&5
7447   ac_status=$?
7448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7449   (exit $ac_status); }; } &&
7450          { ac_try='test -s conftest.$ac_objext'
7451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7452   (eval $ac_try) 2>&5
7453   ac_status=$?
7454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7455   (exit $ac_status); }; }; then
7456   ac_lo=0 ac_mid=0
7457   while :; do
7458     cat >conftest.$ac_ext <<_ACEOF
7459 /* confdefs.h.  */
7460 _ACEOF
7461 cat confdefs.h >>conftest.$ac_ext
7462 cat >>conftest.$ac_ext <<_ACEOF
7463 /* end confdefs.h.  */
7464 $ac_includes_default
7465 int
7466 main ()
7467 {
7468 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7469 test_array [0] = 0
7470
7471   ;
7472   return 0;
7473 }
7474 _ACEOF
7475 rm -f conftest.$ac_objext
7476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7477   (eval $ac_compile) 2>conftest.er1
7478   ac_status=$?
7479   grep -v '^ *+' conftest.er1 >conftest.err
7480   rm -f conftest.er1
7481   cat conftest.err >&5
7482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7483   (exit $ac_status); } &&
7484          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7486   (eval $ac_try) 2>&5
7487   ac_status=$?
7488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7489   (exit $ac_status); }; } &&
7490          { ac_try='test -s conftest.$ac_objext'
7491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7492   (eval $ac_try) 2>&5
7493   ac_status=$?
7494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7495   (exit $ac_status); }; }; then
7496   ac_hi=$ac_mid; break
7497 else
7498   echo "$as_me: failed program was:" >&5
7499 sed 's/^/| /' conftest.$ac_ext >&5
7500
7501 ac_lo=`expr $ac_mid + 1`
7502                     if test $ac_lo -le $ac_mid; then
7503                       ac_lo= ac_hi=
7504                       break
7505                     fi
7506                     ac_mid=`expr 2 '*' $ac_mid + 1`
7507 fi
7508 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7509   done
7510 else
7511   echo "$as_me: failed program was:" >&5
7512 sed 's/^/| /' conftest.$ac_ext >&5
7513
7514 cat >conftest.$ac_ext <<_ACEOF
7515 /* confdefs.h.  */
7516 _ACEOF
7517 cat confdefs.h >>conftest.$ac_ext
7518 cat >>conftest.$ac_ext <<_ACEOF
7519 /* end confdefs.h.  */
7520 $ac_includes_default
7521 int
7522 main ()
7523 {
7524 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
7525 test_array [0] = 0
7526
7527   ;
7528   return 0;
7529 }
7530 _ACEOF
7531 rm -f conftest.$ac_objext
7532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7533   (eval $ac_compile) 2>conftest.er1
7534   ac_status=$?
7535   grep -v '^ *+' conftest.er1 >conftest.err
7536   rm -f conftest.er1
7537   cat conftest.err >&5
7538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7539   (exit $ac_status); } &&
7540          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7542   (eval $ac_try) 2>&5
7543   ac_status=$?
7544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7545   (exit $ac_status); }; } &&
7546          { ac_try='test -s conftest.$ac_objext'
7547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7548   (eval $ac_try) 2>&5
7549   ac_status=$?
7550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7551   (exit $ac_status); }; }; then
7552   ac_hi=-1 ac_mid=-1
7553   while :; do
7554     cat >conftest.$ac_ext <<_ACEOF
7555 /* confdefs.h.  */
7556 _ACEOF
7557 cat confdefs.h >>conftest.$ac_ext
7558 cat >>conftest.$ac_ext <<_ACEOF
7559 /* end confdefs.h.  */
7560 $ac_includes_default
7561 int
7562 main ()
7563 {
7564 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
7565 test_array [0] = 0
7566
7567   ;
7568   return 0;
7569 }
7570 _ACEOF
7571 rm -f conftest.$ac_objext
7572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7573   (eval $ac_compile) 2>conftest.er1
7574   ac_status=$?
7575   grep -v '^ *+' conftest.er1 >conftest.err
7576   rm -f conftest.er1
7577   cat conftest.err >&5
7578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7579   (exit $ac_status); } &&
7580          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7582   (eval $ac_try) 2>&5
7583   ac_status=$?
7584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7585   (exit $ac_status); }; } &&
7586          { ac_try='test -s conftest.$ac_objext'
7587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7588   (eval $ac_try) 2>&5
7589   ac_status=$?
7590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7591   (exit $ac_status); }; }; then
7592   ac_lo=$ac_mid; break
7593 else
7594   echo "$as_me: failed program was:" >&5
7595 sed 's/^/| /' conftest.$ac_ext >&5
7596
7597 ac_hi=`expr '(' $ac_mid ')' - 1`
7598                        if test $ac_mid -le $ac_hi; then
7599                          ac_lo= ac_hi=
7600                          break
7601                        fi
7602                        ac_mid=`expr 2 '*' $ac_mid`
7603 fi
7604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7605   done
7606 else
7607   echo "$as_me: failed program was:" >&5
7608 sed 's/^/| /' conftest.$ac_ext >&5
7609
7610 ac_lo= ac_hi=
7611 fi
7612 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7613 fi
7614 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7615 # Binary search between lo and hi bounds.
7616 while test "x$ac_lo" != "x$ac_hi"; do
7617   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7618   cat >conftest.$ac_ext <<_ACEOF
7619 /* confdefs.h.  */
7620 _ACEOF
7621 cat confdefs.h >>conftest.$ac_ext
7622 cat >>conftest.$ac_ext <<_ACEOF
7623 /* end confdefs.h.  */
7624 $ac_includes_default
7625 int
7626 main ()
7627 {
7628 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7629 test_array [0] = 0
7630
7631   ;
7632   return 0;
7633 }
7634 _ACEOF
7635 rm -f conftest.$ac_objext
7636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7637   (eval $ac_compile) 2>conftest.er1
7638   ac_status=$?
7639   grep -v '^ *+' conftest.er1 >conftest.err
7640   rm -f conftest.er1
7641   cat conftest.err >&5
7642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7643   (exit $ac_status); } &&
7644          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7646   (eval $ac_try) 2>&5
7647   ac_status=$?
7648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7649   (exit $ac_status); }; } &&
7650          { ac_try='test -s conftest.$ac_objext'
7651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7652   (eval $ac_try) 2>&5
7653   ac_status=$?
7654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7655   (exit $ac_status); }; }; then
7656   ac_hi=$ac_mid
7657 else
7658   echo "$as_me: failed program was:" >&5
7659 sed 's/^/| /' conftest.$ac_ext >&5
7660
7661 ac_lo=`expr '(' $ac_mid ')' + 1`
7662 fi
7663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7664 done
7665 case $ac_lo in
7666 ?*) ac_cv_sizeof_short=$ac_lo;;
7667 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7668 See \`config.log' for more details." >&5
7669 echo "$as_me: error: cannot compute sizeof (short), 77
7670 See \`config.log' for more details." >&2;}
7671    { (exit 1); exit 1; }; } ;;
7672 esac
7673 else
7674   if test "$cross_compiling" = yes; then
7675   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
7676 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
7677    { (exit 1); exit 1; }; }
7678 else
7679   cat >conftest.$ac_ext <<_ACEOF
7680 /* confdefs.h.  */
7681 _ACEOF
7682 cat confdefs.h >>conftest.$ac_ext
7683 cat >>conftest.$ac_ext <<_ACEOF
7684 /* end confdefs.h.  */
7685 $ac_includes_default
7686 long longval () { return (long) (sizeof (short)); }
7687 unsigned long ulongval () { return (long) (sizeof (short)); }
7688 #include <stdio.h>
7689 #include <stdlib.h>
7690 int
7691 main ()
7692 {
7693
7694   FILE *f = fopen ("conftest.val", "w");
7695   if (! f)
7696     exit (1);
7697   if (((long) (sizeof (short))) < 0)
7698     {
7699       long i = longval ();
7700       if (i != ((long) (sizeof (short))))
7701         exit (1);
7702       fprintf (f, "%ld\n", i);
7703     }
7704   else
7705     {
7706       unsigned long i = ulongval ();
7707       if (i != ((long) (sizeof (short))))
7708         exit (1);
7709       fprintf (f, "%lu\n", i);
7710     }
7711   exit (ferror (f) || fclose (f) != 0);
7712
7713   ;
7714   return 0;
7715 }
7716 _ACEOF
7717 rm -f conftest$ac_exeext
7718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7719   (eval $ac_link) 2>&5
7720   ac_status=$?
7721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7722   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7724   (eval $ac_try) 2>&5
7725   ac_status=$?
7726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7727   (exit $ac_status); }; }; then
7728   ac_cv_sizeof_short=`cat conftest.val`
7729 else
7730   echo "$as_me: program exited with status $ac_status" >&5
7731 echo "$as_me: failed program was:" >&5
7732 sed 's/^/| /' conftest.$ac_ext >&5
7733
7734 ( exit $ac_status )
7735 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7736 See \`config.log' for more details." >&5
7737 echo "$as_me: error: cannot compute sizeof (short), 77
7738 See \`config.log' for more details." >&2;}
7739    { (exit 1); exit 1; }; }
7740 fi
7741 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7742 fi
7743 fi
7744 rm -f conftest.val
7745 else
7746   ac_cv_sizeof_short=0
7747 fi
7748 fi
7749 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
7750 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
7751 cat >>confdefs.h <<_ACEOF
7752 #define SIZEOF_SHORT $ac_cv_sizeof_short
7753 _ACEOF
7754
7755
7756   echo "$as_me:$LINENO: checking for char" >&5
7757 echo $ECHO_N "checking for char... $ECHO_C" >&6
7758 if test "${ac_cv_type_char+set}" = set; then
7759   echo $ECHO_N "(cached) $ECHO_C" >&6
7760 else
7761   cat >conftest.$ac_ext <<_ACEOF
7762 /* confdefs.h.  */
7763 _ACEOF
7764 cat confdefs.h >>conftest.$ac_ext
7765 cat >>conftest.$ac_ext <<_ACEOF
7766 /* end confdefs.h.  */
7767 $ac_includes_default
7768 int
7769 main ()
7770 {
7771 if ((char *) 0)
7772   return 0;
7773 if (sizeof (char))
7774   return 0;
7775   ;
7776   return 0;
7777 }
7778 _ACEOF
7779 rm -f conftest.$ac_objext
7780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7781   (eval $ac_compile) 2>conftest.er1
7782   ac_status=$?
7783   grep -v '^ *+' conftest.er1 >conftest.err
7784   rm -f conftest.er1
7785   cat conftest.err >&5
7786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7787   (exit $ac_status); } &&
7788          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7790   (eval $ac_try) 2>&5
7791   ac_status=$?
7792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7793   (exit $ac_status); }; } &&
7794          { ac_try='test -s conftest.$ac_objext'
7795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7796   (eval $ac_try) 2>&5
7797   ac_status=$?
7798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7799   (exit $ac_status); }; }; then
7800   ac_cv_type_char=yes
7801 else
7802   echo "$as_me: failed program was:" >&5
7803 sed 's/^/| /' conftest.$ac_ext >&5
7804
7805 ac_cv_type_char=no
7806 fi
7807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7808 fi
7809 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
7810 echo "${ECHO_T}$ac_cv_type_char" >&6
7811
7812 echo "$as_me:$LINENO: checking size of char" >&5
7813 echo $ECHO_N "checking size of char... $ECHO_C" >&6
7814 if test "${ac_cv_sizeof_char+set}" = set; then
7815   echo $ECHO_N "(cached) $ECHO_C" >&6
7816 else
7817   if test "$ac_cv_type_char" = yes; then
7818   # The cast to unsigned long works around a bug in the HP C Compiler
7819   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7820   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7821   # This bug is HP SR number 8606223364.
7822   if test "$cross_compiling" = yes; then
7823   # Depending upon the size, compute the lo and hi bounds.
7824 cat >conftest.$ac_ext <<_ACEOF
7825 /* confdefs.h.  */
7826 _ACEOF
7827 cat confdefs.h >>conftest.$ac_ext
7828 cat >>conftest.$ac_ext <<_ACEOF
7829 /* end confdefs.h.  */
7830 $ac_includes_default
7831 int
7832 main ()
7833 {
7834 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
7835 test_array [0] = 0
7836
7837   ;
7838   return 0;
7839 }
7840 _ACEOF
7841 rm -f conftest.$ac_objext
7842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7843   (eval $ac_compile) 2>conftest.er1
7844   ac_status=$?
7845   grep -v '^ *+' conftest.er1 >conftest.err
7846   rm -f conftest.er1
7847   cat conftest.err >&5
7848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7849   (exit $ac_status); } &&
7850          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7852   (eval $ac_try) 2>&5
7853   ac_status=$?
7854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7855   (exit $ac_status); }; } &&
7856          { ac_try='test -s conftest.$ac_objext'
7857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7858   (eval $ac_try) 2>&5
7859   ac_status=$?
7860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7861   (exit $ac_status); }; }; then
7862   ac_lo=0 ac_mid=0
7863   while :; do
7864     cat >conftest.$ac_ext <<_ACEOF
7865 /* confdefs.h.  */
7866 _ACEOF
7867 cat confdefs.h >>conftest.$ac_ext
7868 cat >>conftest.$ac_ext <<_ACEOF
7869 /* end confdefs.h.  */
7870 $ac_includes_default
7871 int
7872 main ()
7873 {
7874 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
7875 test_array [0] = 0
7876
7877   ;
7878   return 0;
7879 }
7880 _ACEOF
7881 rm -f conftest.$ac_objext
7882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7883   (eval $ac_compile) 2>conftest.er1
7884   ac_status=$?
7885   grep -v '^ *+' conftest.er1 >conftest.err
7886   rm -f conftest.er1
7887   cat conftest.err >&5
7888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7889   (exit $ac_status); } &&
7890          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7892   (eval $ac_try) 2>&5
7893   ac_status=$?
7894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895   (exit $ac_status); }; } &&
7896          { ac_try='test -s conftest.$ac_objext'
7897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7898   (eval $ac_try) 2>&5
7899   ac_status=$?
7900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901   (exit $ac_status); }; }; then
7902   ac_hi=$ac_mid; break
7903 else
7904   echo "$as_me: failed program was:" >&5
7905 sed 's/^/| /' conftest.$ac_ext >&5
7906
7907 ac_lo=`expr $ac_mid + 1`
7908                     if test $ac_lo -le $ac_mid; then
7909                       ac_lo= ac_hi=
7910                       break
7911                     fi
7912                     ac_mid=`expr 2 '*' $ac_mid + 1`
7913 fi
7914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7915   done
7916 else
7917   echo "$as_me: failed program was:" >&5
7918 sed 's/^/| /' conftest.$ac_ext >&5
7919
7920 cat >conftest.$ac_ext <<_ACEOF
7921 /* confdefs.h.  */
7922 _ACEOF
7923 cat confdefs.h >>conftest.$ac_ext
7924 cat >>conftest.$ac_ext <<_ACEOF
7925 /* end confdefs.h.  */
7926 $ac_includes_default
7927 int
7928 main ()
7929 {
7930 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
7931 test_array [0] = 0
7932
7933   ;
7934   return 0;
7935 }
7936 _ACEOF
7937 rm -f conftest.$ac_objext
7938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7939   (eval $ac_compile) 2>conftest.er1
7940   ac_status=$?
7941   grep -v '^ *+' conftest.er1 >conftest.err
7942   rm -f conftest.er1
7943   cat conftest.err >&5
7944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7945   (exit $ac_status); } &&
7946          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7948   (eval $ac_try) 2>&5
7949   ac_status=$?
7950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7951   (exit $ac_status); }; } &&
7952          { ac_try='test -s conftest.$ac_objext'
7953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7954   (eval $ac_try) 2>&5
7955   ac_status=$?
7956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7957   (exit $ac_status); }; }; then
7958   ac_hi=-1 ac_mid=-1
7959   while :; do
7960     cat >conftest.$ac_ext <<_ACEOF
7961 /* confdefs.h.  */
7962 _ACEOF
7963 cat confdefs.h >>conftest.$ac_ext
7964 cat >>conftest.$ac_ext <<_ACEOF
7965 /* end confdefs.h.  */
7966 $ac_includes_default
7967 int
7968 main ()
7969 {
7970 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
7971 test_array [0] = 0
7972
7973   ;
7974   return 0;
7975 }
7976 _ACEOF
7977 rm -f conftest.$ac_objext
7978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7979   (eval $ac_compile) 2>conftest.er1
7980   ac_status=$?
7981   grep -v '^ *+' conftest.er1 >conftest.err
7982   rm -f conftest.er1
7983   cat conftest.err >&5
7984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7985   (exit $ac_status); } &&
7986          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7988   (eval $ac_try) 2>&5
7989   ac_status=$?
7990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7991   (exit $ac_status); }; } &&
7992          { ac_try='test -s conftest.$ac_objext'
7993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7994   (eval $ac_try) 2>&5
7995   ac_status=$?
7996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7997   (exit $ac_status); }; }; then
7998   ac_lo=$ac_mid; break
7999 else
8000   echo "$as_me: failed program was:" >&5
8001 sed 's/^/| /' conftest.$ac_ext >&5
8002
8003 ac_hi=`expr '(' $ac_mid ')' - 1`
8004                        if test $ac_mid -le $ac_hi; then
8005                          ac_lo= ac_hi=
8006                          break
8007                        fi
8008                        ac_mid=`expr 2 '*' $ac_mid`
8009 fi
8010 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8011   done
8012 else
8013   echo "$as_me: failed program was:" >&5
8014 sed 's/^/| /' conftest.$ac_ext >&5
8015
8016 ac_lo= ac_hi=
8017 fi
8018 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8019 fi
8020 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8021 # Binary search between lo and hi bounds.
8022 while test "x$ac_lo" != "x$ac_hi"; do
8023   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8024   cat >conftest.$ac_ext <<_ACEOF
8025 /* confdefs.h.  */
8026 _ACEOF
8027 cat confdefs.h >>conftest.$ac_ext
8028 cat >>conftest.$ac_ext <<_ACEOF
8029 /* end confdefs.h.  */
8030 $ac_includes_default
8031 int
8032 main ()
8033 {
8034 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
8035 test_array [0] = 0
8036
8037   ;
8038   return 0;
8039 }
8040 _ACEOF
8041 rm -f conftest.$ac_objext
8042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8043   (eval $ac_compile) 2>conftest.er1
8044   ac_status=$?
8045   grep -v '^ *+' conftest.er1 >conftest.err
8046   rm -f conftest.er1
8047   cat conftest.err >&5
8048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8049   (exit $ac_status); } &&
8050          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8052   (eval $ac_try) 2>&5
8053   ac_status=$?
8054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055   (exit $ac_status); }; } &&
8056          { ac_try='test -s conftest.$ac_objext'
8057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8058   (eval $ac_try) 2>&5
8059   ac_status=$?
8060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061   (exit $ac_status); }; }; then
8062   ac_hi=$ac_mid
8063 else
8064   echo "$as_me: failed program was:" >&5
8065 sed 's/^/| /' conftest.$ac_ext >&5
8066
8067 ac_lo=`expr '(' $ac_mid ')' + 1`
8068 fi
8069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8070 done
8071 case $ac_lo in
8072 ?*) ac_cv_sizeof_char=$ac_lo;;
8073 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
8074 See \`config.log' for more details." >&5
8075 echo "$as_me: error: cannot compute sizeof (char), 77
8076 See \`config.log' for more details." >&2;}
8077    { (exit 1); exit 1; }; } ;;
8078 esac
8079 else
8080   if test "$cross_compiling" = yes; then
8081   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
8082 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
8083    { (exit 1); exit 1; }; }
8084 else
8085   cat >conftest.$ac_ext <<_ACEOF
8086 /* confdefs.h.  */
8087 _ACEOF
8088 cat confdefs.h >>conftest.$ac_ext
8089 cat >>conftest.$ac_ext <<_ACEOF
8090 /* end confdefs.h.  */
8091 $ac_includes_default
8092 long longval () { return (long) (sizeof (char)); }
8093 unsigned long ulongval () { return (long) (sizeof (char)); }
8094 #include <stdio.h>
8095 #include <stdlib.h>
8096 int
8097 main ()
8098 {
8099
8100   FILE *f = fopen ("conftest.val", "w");
8101   if (! f)
8102     exit (1);
8103   if (((long) (sizeof (char))) < 0)
8104     {
8105       long i = longval ();
8106       if (i != ((long) (sizeof (char))))
8107         exit (1);
8108       fprintf (f, "%ld\n", i);
8109     }
8110   else
8111     {
8112       unsigned long i = ulongval ();
8113       if (i != ((long) (sizeof (char))))
8114         exit (1);
8115       fprintf (f, "%lu\n", i);
8116     }
8117   exit (ferror (f) || fclose (f) != 0);
8118
8119   ;
8120   return 0;
8121 }
8122 _ACEOF
8123 rm -f conftest$ac_exeext
8124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8125   (eval $ac_link) 2>&5
8126   ac_status=$?
8127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8130   (eval $ac_try) 2>&5
8131   ac_status=$?
8132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133   (exit $ac_status); }; }; then
8134   ac_cv_sizeof_char=`cat conftest.val`
8135 else
8136   echo "$as_me: program exited with status $ac_status" >&5
8137 echo "$as_me: failed program was:" >&5
8138 sed 's/^/| /' conftest.$ac_ext >&5
8139
8140 ( exit $ac_status )
8141 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
8142 See \`config.log' for more details." >&5
8143 echo "$as_me: error: cannot compute sizeof (char), 77
8144 See \`config.log' for more details." >&2;}
8145    { (exit 1); exit 1; }; }
8146 fi
8147 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8148 fi
8149 fi
8150 rm -f conftest.val
8151 else
8152   ac_cv_sizeof_char=0
8153 fi
8154 fi
8155 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
8156 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
8157 cat >>confdefs.h <<_ACEOF
8158 #define SIZEOF_CHAR $ac_cv_sizeof_char
8159 _ACEOF
8160
8161
8162
8163   echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
8164 echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
8165   case "$ac_cv_sizeof_char" in
8166     1) acx_cv_type_int8_t=char ;;
8167     *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
8168 echo "$as_me: error: no 8-bit type" >&2;}
8169    { (exit please report a bug); exit please report a bug; }; }
8170   esac
8171   echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
8172 echo "${ECHO_T}$acx_cv_type_int8_t" >&6
8173
8174   echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
8175 echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
8176   case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
8177     2:*) acx_cv_type_int16_t=int ;;
8178     *:2) acx_cv_type_int16_t=short ;;
8179     *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
8180 echo "$as_me: error: no 16-bit type" >&2;}
8181    { (exit please report a bug); exit please report a bug; }; }
8182   esac
8183   echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
8184 echo "${ECHO_T}$acx_cv_type_int16_t" >&6
8185
8186   echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
8187 echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
8188   case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
8189     4:*) acx_cv_type_int32_t=int ;;
8190     *:4) acx_cv_type_int32_t=long ;;
8191     *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
8192 echo "$as_me: error: no 32-bit type" >&2;}
8193    { (exit please report a bug); exit please report a bug; }; }
8194   esac
8195   echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
8196 echo "${ECHO_T}$acx_cv_type_int32_t" >&6
8197 fi
8198
8199 # These tests are here to make the output prettier
8200
8201 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
8202   case "$ac_cv_sizeof_long" in
8203     8) acx_cv_type_int64_t=long ;;
8204   esac
8205   echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
8206 echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
8207   echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
8208 echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
8209 fi
8210
8211 # Now we can use the above types
8212
8213 if test "$ac_cv_type_uintptr_t" != yes; then
8214   echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
8215 echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
8216   case $ac_cv_sizeof_void_p in
8217     2) acx_cv_type_intptr_t=int16_t ;;
8218     4) acx_cv_type_intptr_t=int32_t ;;
8219     8) acx_cv_type_intptr_t=int64_t ;;
8220     *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
8221 echo "$as_me: error: no equivalent for intptr_t" >&2;}
8222    { (exit please report a bug); exit please report a bug; }; }
8223   esac
8224   echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
8225 echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
8226 fi
8227
8228 # ----------------- done all checks, emit header -------------
8229           ac_config_commands="$ac_config_commands gstdint.h"
8230
8231
8232
8233
8234 # Check to see if -pthread or -lpthread is needed.  Prefer the former.
8235 # In case the pthread.h system header is not found, this test will fail.
8236 XPCFLAGS=""
8237 CFLAGS="$CFLAGS -pthread"
8238 cat >conftest.$ac_ext <<_ACEOF
8239 /* confdefs.h.  */
8240 _ACEOF
8241 cat confdefs.h >>conftest.$ac_ext
8242 cat >>conftest.$ac_ext <<_ACEOF
8243 /* end confdefs.h.  */
8244 #include <pthread.h>
8245    void *g(void *d) { return NULL; }
8246 int
8247 main ()
8248 {
8249 pthread_t t; pthread_create(&t,NULL,g,NULL);
8250   ;
8251   return 0;
8252 }
8253 _ACEOF
8254 rm -f conftest.$ac_objext conftest$ac_exeext
8255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8256   (eval $ac_link) 2>conftest.er1
8257   ac_status=$?
8258   grep -v '^ *+' conftest.er1 >conftest.err
8259   rm -f conftest.er1
8260   cat conftest.err >&5
8261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8262   (exit $ac_status); } &&
8263          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8265   (eval $ac_try) 2>&5
8266   ac_status=$?
8267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8268   (exit $ac_status); }; } &&
8269          { ac_try='test -s conftest$ac_exeext'
8270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8271   (eval $ac_try) 2>&5
8272   ac_status=$?
8273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274   (exit $ac_status); }; }; then
8275   XPCFLAGS=" -Wc,-pthread"
8276 else
8277   echo "$as_me: failed program was:" >&5
8278 sed 's/^/| /' conftest.$ac_ext >&5
8279
8280 CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
8281   cat >conftest.$ac_ext <<_ACEOF
8282 /* confdefs.h.  */
8283 _ACEOF
8284 cat confdefs.h >>conftest.$ac_ext
8285 cat >>conftest.$ac_ext <<_ACEOF
8286 /* end confdefs.h.  */
8287 #include <pthread.h>
8288      void *g(void *d) { return NULL; }
8289 int
8290 main ()
8291 {
8292 pthread_t t; pthread_create(&t,NULL,g,NULL);
8293   ;
8294   return 0;
8295 }
8296 _ACEOF
8297 rm -f conftest.$ac_objext conftest$ac_exeext
8298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8299   (eval $ac_link) 2>conftest.er1
8300   ac_status=$?
8301   grep -v '^ *+' conftest.er1 >conftest.err
8302   rm -f conftest.er1
8303   cat conftest.err >&5
8304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8305   (exit $ac_status); } &&
8306          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8308   (eval $ac_try) 2>&5
8309   ac_status=$?
8310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311   (exit $ac_status); }; } &&
8312          { ac_try='test -s conftest$ac_exeext'
8313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8314   (eval $ac_try) 2>&5
8315   ac_status=$?
8316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317   (exit $ac_status); }; }; then
8318   :
8319 else
8320   echo "$as_me: failed program was:" >&5
8321 sed 's/^/| /' conftest.$ac_ext >&5
8322
8323 { { echo "$as_me:$LINENO: error: Pthreads are required to build libgomp" >&5
8324 echo "$as_me: error: Pthreads are required to build libgomp" >&2;}
8325    { (exit 1); exit 1; }; }
8326 fi
8327 rm -f conftest.err conftest.$ac_objext \
8328       conftest$ac_exeext conftest.$ac_ext
8329 fi
8330 rm -f conftest.err conftest.$ac_objext \
8331       conftest$ac_exeext conftest.$ac_ext
8332
8333 # Check for functions needed.
8334
8335
8336 for ac_func in getloadavg clock_gettime
8337 do
8338 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8339 echo "$as_me:$LINENO: checking for $ac_func" >&5
8340 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8341 if eval "test \"\${$as_ac_var+set}\" = set"; then
8342   echo $ECHO_N "(cached) $ECHO_C" >&6
8343 else
8344   cat >conftest.$ac_ext <<_ACEOF
8345 /* confdefs.h.  */
8346 _ACEOF
8347 cat confdefs.h >>conftest.$ac_ext
8348 cat >>conftest.$ac_ext <<_ACEOF
8349 /* end confdefs.h.  */
8350 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8351    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8352 #define $ac_func innocuous_$ac_func
8353
8354 /* System header to define __stub macros and hopefully few prototypes,
8355     which can conflict with char $ac_func (); below.
8356     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8357     <limits.h> exists even on freestanding compilers.  */
8358
8359 #ifdef __STDC__
8360 # include <limits.h>
8361 #else
8362 # include <assert.h>
8363 #endif
8364
8365 #undef $ac_func
8366
8367 /* Override any gcc2 internal prototype to avoid an error.  */
8368 #ifdef __cplusplus
8369 extern "C"
8370 {
8371 #endif
8372 /* We use char because int might match the return type of a gcc2
8373    builtin and then its argument prototype would still apply.  */
8374 char $ac_func ();
8375 /* The GNU C library defines this for functions which it implements
8376     to always fail with ENOSYS.  Some functions are actually named
8377     something starting with __ and the normal name is an alias.  */
8378 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8379 choke me
8380 #else
8381 char (*f) () = $ac_func;
8382 #endif
8383 #ifdef __cplusplus
8384 }
8385 #endif
8386
8387 int
8388 main ()
8389 {
8390 return f != $ac_func;
8391   ;
8392   return 0;
8393 }
8394 _ACEOF
8395 rm -f conftest.$ac_objext conftest$ac_exeext
8396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8397   (eval $ac_link) 2>conftest.er1
8398   ac_status=$?
8399   grep -v '^ *+' conftest.er1 >conftest.err
8400   rm -f conftest.er1
8401   cat conftest.err >&5
8402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403   (exit $ac_status); } &&
8404          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8406   (eval $ac_try) 2>&5
8407   ac_status=$?
8408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8409   (exit $ac_status); }; } &&
8410          { ac_try='test -s conftest$ac_exeext'
8411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8412   (eval $ac_try) 2>&5
8413   ac_status=$?
8414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8415   (exit $ac_status); }; }; then
8416   eval "$as_ac_var=yes"
8417 else
8418   echo "$as_me: failed program was:" >&5
8419 sed 's/^/| /' conftest.$ac_ext >&5
8420
8421 eval "$as_ac_var=no"
8422 fi
8423 rm -f conftest.err conftest.$ac_objext \
8424       conftest$ac_exeext conftest.$ac_ext
8425 fi
8426 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8427 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8428 if test `eval echo '${'$as_ac_var'}'` = yes; then
8429   cat >>confdefs.h <<_ACEOF
8430 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8431 _ACEOF
8432
8433 fi
8434 done
8435
8436
8437 # At least for glibc, clock_gettime is in librt.  But don't pull that
8438 # in if it still doesn't give us the function we want.
8439 if test $ac_cv_func_clock_gettime = no; then
8440   echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
8441 echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6
8442 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
8443   echo $ECHO_N "(cached) $ECHO_C" >&6
8444 else
8445   ac_check_lib_save_LIBS=$LIBS
8446 LIBS="-lrt  $LIBS"
8447 cat >conftest.$ac_ext <<_ACEOF
8448 /* confdefs.h.  */
8449 _ACEOF
8450 cat confdefs.h >>conftest.$ac_ext
8451 cat >>conftest.$ac_ext <<_ACEOF
8452 /* end confdefs.h.  */
8453
8454 /* Override any gcc2 internal prototype to avoid an error.  */
8455 #ifdef __cplusplus
8456 extern "C"
8457 #endif
8458 /* We use char because int might match the return type of a gcc2
8459    builtin and then its argument prototype would still apply.  */
8460 char clock_gettime ();
8461 int
8462 main ()
8463 {
8464 clock_gettime ();
8465   ;
8466   return 0;
8467 }
8468 _ACEOF
8469 rm -f conftest.$ac_objext conftest$ac_exeext
8470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8471   (eval $ac_link) 2>conftest.er1
8472   ac_status=$?
8473   grep -v '^ *+' conftest.er1 >conftest.err
8474   rm -f conftest.er1
8475   cat conftest.err >&5
8476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8477   (exit $ac_status); } &&
8478          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
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); }; } &&
8484          { ac_try='test -s conftest$ac_exeext'
8485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8486   (eval $ac_try) 2>&5
8487   ac_status=$?
8488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489   (exit $ac_status); }; }; then
8490   ac_cv_lib_rt_clock_gettime=yes
8491 else
8492   echo "$as_me: failed program was:" >&5
8493 sed 's/^/| /' conftest.$ac_ext >&5
8494
8495 ac_cv_lib_rt_clock_gettime=no
8496 fi
8497 rm -f conftest.err conftest.$ac_objext \
8498       conftest$ac_exeext conftest.$ac_ext
8499 LIBS=$ac_check_lib_save_LIBS
8500 fi
8501 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
8502 echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6
8503 if test $ac_cv_lib_rt_clock_gettime = yes; then
8504   LIBS="-lrt $LIBS"
8505      cat >>confdefs.h <<\_ACEOF
8506 #define HAVE_CLOCK_GETTIME Define to 1 if you have the `clock_gettime' function.
8507 _ACEOF
8508
8509 fi
8510
8511 fi
8512
8513 # See if we support thread-local storage.
8514
8515    # Check whether --enable-tls or --disable-tls was given.
8516 if test "${enable_tls+set}" = set; then
8517   enableval="$enable_tls"
8518
8519       case "$enableval" in
8520        yes|no) ;;
8521        *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5
8522 echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;}
8523    { (exit 1); exit 1; }; } ;;
8524       esac
8525
8526 else
8527   enable_tls=yes
8528 fi;
8529
8530   echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5
8531 echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6
8532 if test "${have_tls+set}" = set; then
8533   echo $ECHO_N "(cached) $ECHO_C" >&6
8534 else
8535
8536     cat >conftest.$ac_ext <<_ACEOF
8537 /* confdefs.h.  */
8538 _ACEOF
8539 cat confdefs.h >>conftest.$ac_ext
8540 cat >>conftest.$ac_ext <<_ACEOF
8541 /* end confdefs.h.  */
8542 __thread int foo;
8543 int
8544 main ()
8545 {
8546
8547   ;
8548   return 0;
8549 }
8550 _ACEOF
8551 rm -f conftest.$ac_objext
8552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8553   (eval $ac_compile) 2>conftest.er1
8554   ac_status=$?
8555   grep -v '^ *+' conftest.er1 >conftest.err
8556   rm -f conftest.er1
8557   cat conftest.err >&5
8558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559   (exit $ac_status); } &&
8560          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8562   (eval $ac_try) 2>&5
8563   ac_status=$?
8564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565   (exit $ac_status); }; } &&
8566          { ac_try='test -s conftest.$ac_objext'
8567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8568   (eval $ac_try) 2>&5
8569   ac_status=$?
8570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8571   (exit $ac_status); }; }; then
8572   have_tls=$enable_tls
8573 else
8574   echo "$as_me: failed program was:" >&5
8575 sed 's/^/| /' conftest.$ac_ext >&5
8576
8577 have_tls=no
8578 fi
8579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8580 fi
8581 echo "$as_me:$LINENO: result: $have_tls" >&5
8582 echo "${ECHO_T}$have_tls" >&6
8583   if test $have_tls = yes; then
8584
8585 cat >>confdefs.h <<\_ACEOF
8586 #define HAVE_TLS 1
8587 _ACEOF
8588
8589   fi
8590
8591 # See what sort of export controls are availible.
8592
8593   echo "$as_me:$LINENO: checking whether the target supports hidden visibility" >&5
8594 echo $ECHO_N "checking whether the target supports hidden visibility... $ECHO_C" >&6
8595 if test "${have_attribute_visibility+set}" = set; then
8596   echo $ECHO_N "(cached) $ECHO_C" >&6
8597 else
8598
8599   save_CFLAGS="$CFLAGS"
8600   CFLAGS="$CFLAGS -Werror"
8601   cat >conftest.$ac_ext <<_ACEOF
8602 /* confdefs.h.  */
8603 _ACEOF
8604 cat confdefs.h >>conftest.$ac_ext
8605 cat >>conftest.$ac_ext <<_ACEOF
8606 /* end confdefs.h.  */
8607 void __attribute__((visibility("hidden"))) foo(void) { }
8608 int
8609 main ()
8610 {
8611
8612   ;
8613   return 0;
8614 }
8615 _ACEOF
8616 rm -f conftest.$ac_objext
8617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8618   (eval $ac_compile) 2>conftest.er1
8619   ac_status=$?
8620   grep -v '^ *+' conftest.er1 >conftest.err
8621   rm -f conftest.er1
8622   cat conftest.err >&5
8623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624   (exit $ac_status); } &&
8625          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8627   (eval $ac_try) 2>&5
8628   ac_status=$?
8629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8630   (exit $ac_status); }; } &&
8631          { ac_try='test -s conftest.$ac_objext'
8632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8633   (eval $ac_try) 2>&5
8634   ac_status=$?
8635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8636   (exit $ac_status); }; }; then
8637   have_attribute_visibility=yes
8638 else
8639   echo "$as_me: failed program was:" >&5
8640 sed 's/^/| /' conftest.$ac_ext >&5
8641
8642 have_attribute_visibility=no
8643 fi
8644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8645   CFLAGS="$save_CFLAGS"
8646 fi
8647 echo "$as_me:$LINENO: result: $have_attribute_visibility" >&5
8648 echo "${ECHO_T}$have_attribute_visibility" >&6
8649   if test $have_attribute_visibility = yes; then
8650
8651 cat >>confdefs.h <<\_ACEOF
8652 #define HAVE_ATTRIBUTE_VISIBILITY 1
8653 _ACEOF
8654
8655   fi
8656
8657   echo "$as_me:$LINENO: checking whether the target supports dllexport" >&5
8658 echo $ECHO_N "checking whether the target supports dllexport... $ECHO_C" >&6
8659 if test "${have_attribute_dllexport+set}" = set; then
8660   echo $ECHO_N "(cached) $ECHO_C" >&6
8661 else
8662
8663   save_CFLAGS="$CFLAGS"
8664   CFLAGS="$CFLAGS -Werror"
8665   cat >conftest.$ac_ext <<_ACEOF
8666 /* confdefs.h.  */
8667 _ACEOF
8668 cat confdefs.h >>conftest.$ac_ext
8669 cat >>conftest.$ac_ext <<_ACEOF
8670 /* end confdefs.h.  */
8671 void __attribute__((dllexport)) foo(void) { }
8672 int
8673 main ()
8674 {
8675
8676   ;
8677   return 0;
8678 }
8679 _ACEOF
8680 rm -f conftest.$ac_objext
8681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8682   (eval $ac_compile) 2>conftest.er1
8683   ac_status=$?
8684   grep -v '^ *+' conftest.er1 >conftest.err
8685   rm -f conftest.er1
8686   cat conftest.err >&5
8687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8688   (exit $ac_status); } &&
8689          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8691   (eval $ac_try) 2>&5
8692   ac_status=$?
8693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8694   (exit $ac_status); }; } &&
8695          { ac_try='test -s conftest.$ac_objext'
8696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8697   (eval $ac_try) 2>&5
8698   ac_status=$?
8699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8700   (exit $ac_status); }; }; then
8701   have_attribute_dllexport=yes
8702 else
8703   echo "$as_me: failed program was:" >&5
8704 sed 's/^/| /' conftest.$ac_ext >&5
8705
8706 have_attribute_dllexport=no
8707 fi
8708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8709   CFLAGS="$save_CFLAGS"
8710 fi
8711 echo "$as_me:$LINENO: result: $have_attribute_dllexport" >&5
8712 echo "${ECHO_T}$have_attribute_dllexport" >&6
8713   if test $have_attribute_dllexport = yes; then
8714
8715 cat >>confdefs.h <<\_ACEOF
8716 #define HAVE_ATTRIBUTE_DLLEXPORT 1
8717 _ACEOF
8718
8719   fi
8720
8721   echo "$as_me:$LINENO: checking whether the target supports symbol aliases" >&5
8722 echo $ECHO_N "checking whether the target supports symbol aliases... $ECHO_C" >&6
8723 if test "${have_attribute_alias+set}" = set; then
8724   echo $ECHO_N "(cached) $ECHO_C" >&6
8725 else
8726
8727   cat >conftest.$ac_ext <<_ACEOF
8728 /* confdefs.h.  */
8729 _ACEOF
8730 cat confdefs.h >>conftest.$ac_ext
8731 cat >>conftest.$ac_ext <<_ACEOF
8732 /* end confdefs.h.  */
8733
8734 #define ULP     STR1(__USER_LABEL_PREFIX__)
8735 #define STR1(x) STR2(x)
8736 #define STR2(x) #x
8737 void foo(void) { }
8738 extern void bar(void) __attribute__((alias(ULP "foo")));
8739 int
8740 main ()
8741 {
8742 bar();
8743   ;
8744   return 0;
8745 }
8746 _ACEOF
8747 rm -f conftest.$ac_objext conftest$ac_exeext
8748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8749   (eval $ac_link) 2>conftest.er1
8750   ac_status=$?
8751   grep -v '^ *+' conftest.er1 >conftest.err
8752   rm -f conftest.er1
8753   cat conftest.err >&5
8754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8755   (exit $ac_status); } &&
8756          { ac_try='test -z "$ac_c_werror_flag"                   || 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   have_attribute_alias=yes
8769 else
8770   echo "$as_me: failed program was:" >&5
8771 sed 's/^/| /' conftest.$ac_ext >&5
8772
8773 have_attribute_alias=no
8774 fi
8775 rm -f conftest.err conftest.$ac_objext \
8776       conftest$ac_exeext conftest.$ac_ext
8777 fi
8778 echo "$as_me:$LINENO: result: $have_attribute_alias" >&5
8779 echo "${ECHO_T}$have_attribute_alias" >&6
8780   if test $have_attribute_alias = yes; then
8781
8782 cat >>confdefs.h <<\_ACEOF
8783 #define HAVE_ATTRIBUTE_ALIAS 1
8784 _ACEOF
8785
8786   fi
8787
8788   # If we're not using GNU ld, then there's no point in even trying these
8789   # tests.  Check for that first.  We should have already tested for gld
8790   # by now (in libtool), but require it now just to be safe...
8791   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
8792   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
8793
8794
8795
8796   # The name set by libtool depends on the version of libtool.  Shame on us
8797   # for depending on an impl detail, but c'est la vie.  Older versions used
8798   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
8799   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
8800   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
8801   # set (hence we're using an older libtool), then set it.
8802   if test x${with_gnu_ld+set} != xset; then
8803     if test x${ac_cv_prog_gnu_ld+set} != xset; then
8804       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
8805       with_gnu_ld=no
8806     else
8807       with_gnu_ld=$ac_cv_prog_gnu_ld
8808     fi
8809   fi
8810
8811   # Start by getting the version number.  I think the libtool test already
8812   # does some of this, but throws away the result.
8813
8814   ldver=`$LD --version 2>/dev/null | head -1 | \
8815          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
8816
8817   libgomp_gnu_ld_version=`echo $ldver | \
8818          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
8819
8820   # Set --gc-sections.
8821   if test "$with_gnu_ld" = "notbroken"; then
8822     # GNU ld it is!  Joy and bunny rabbits!
8823
8824     # All these tests are for C++; save the language and the compiler flags.
8825     # Need to do this so that g++ won't try to link in libstdc++
8826     ac_test_CFLAGS="${CFLAGS+set}"
8827     ac_save_CFLAGS="$CFLAGS"
8828     CFLAGS='-x c++  -Wl,--gc-sections'
8829
8830     # Check for -Wl,--gc-sections
8831     # XXX This test is broken at the moment, as symbols required for linking
8832     # are now in libsupc++ (not built yet).  In addition, this test has
8833     # cored on solaris in the past.  In addition, --gc-sections doesn't
8834     # really work at the moment (keeps on discarding used sections, first
8835     # .eh_frame and now some of the glibc sections for iconv).
8836     # Bzzzzt.  Thanks for playing, maybe next time.
8837     echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
8838 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
8839     if test "$cross_compiling" = yes; then
8840   ac_sectionLDflags=yes
8841 else
8842   cat >conftest.$ac_ext <<_ACEOF
8843 /* confdefs.h.  */
8844 _ACEOF
8845 cat confdefs.h >>conftest.$ac_ext
8846 cat >>conftest.$ac_ext <<_ACEOF
8847 /* end confdefs.h.  */
8848
8849      int main(void)
8850      {
8851        try { throw 1; }
8852        catch (...) { };
8853        return 0;
8854      }
8855
8856 _ACEOF
8857 rm -f conftest$ac_exeext
8858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8859   (eval $ac_link) 2>&5
8860   ac_status=$?
8861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8862   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8864   (eval $ac_try) 2>&5
8865   ac_status=$?
8866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8867   (exit $ac_status); }; }; then
8868   ac_sectionLDflags=yes
8869 else
8870   echo "$as_me: program exited with status $ac_status" >&5
8871 echo "$as_me: failed program was:" >&5
8872 sed 's/^/| /' conftest.$ac_ext >&5
8873
8874 ( exit $ac_status )
8875 ac_sectionLDflags=no
8876 fi
8877 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8878 fi
8879     if test "$ac_test_CFLAGS" = set; then
8880       CFLAGS="$ac_save_CFLAGS"
8881     else
8882       # this is the suspicious part
8883       CFLAGS=''
8884     fi
8885     if test "$ac_sectionLDflags" = "yes"; then
8886       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
8887     fi
8888     echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
8889 echo "${ECHO_T}$ac_sectionLDflags" >&6
8890   fi
8891
8892   # Set linker optimization flags.
8893   if test x"$with_gnu_ld" = x"yes"; then
8894     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
8895   fi
8896
8897
8898
8899
8900
8901
8902  # Check whether --enable-symvers or --disable-symvers was given.
8903 if test "${enable_symvers+set}" = set; then
8904   enableval="$enable_symvers"
8905
8906       case "$enableval" in
8907        yes|no|gnu) ;;
8908        *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable symvers" >&5
8909 echo "$as_me: error: Unknown argument to enable/disable symvers" >&2;}
8910    { (exit 1); exit 1; }; } ;;
8911                           esac
8912
8913 else
8914   enable_symvers=yes
8915 fi;
8916
8917
8918 # If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we
8919 # don't know enough about $LD to do tricks...
8920
8921 # FIXME  The following test is too strict, in theory.
8922 if test $enable_shared = no ||
8923         test "x$LD" = x ||
8924         test x$libgomp_gnu_ld_version = x; then
8925   enable_symvers=no
8926 fi
8927
8928 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
8929 if test $enable_symvers != no; then
8930   echo "$as_me:$LINENO: checking for shared libgcc" >&5
8931 echo $ECHO_N "checking for shared libgcc... $ECHO_C" >&6
8932   ac_save_CFLAGS="$CFLAGS"
8933   CFLAGS=' -lgcc_s'
8934   cat >conftest.$ac_ext <<_ACEOF
8935 /* confdefs.h.  */
8936 _ACEOF
8937 cat confdefs.h >>conftest.$ac_ext
8938 cat >>conftest.$ac_ext <<_ACEOF
8939 /* end confdefs.h.  */
8940
8941 int
8942 main ()
8943 {
8944 return 0;
8945   ;
8946   return 0;
8947 }
8948 _ACEOF
8949 rm -f conftest.$ac_objext conftest$ac_exeext
8950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8951   (eval $ac_link) 2>conftest.er1
8952   ac_status=$?
8953   grep -v '^ *+' conftest.er1 >conftest.err
8954   rm -f conftest.er1
8955   cat conftest.err >&5
8956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8957   (exit $ac_status); } &&
8958          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8960   (eval $ac_try) 2>&5
8961   ac_status=$?
8962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8963   (exit $ac_status); }; } &&
8964          { ac_try='test -s conftest$ac_exeext'
8965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8966   (eval $ac_try) 2>&5
8967   ac_status=$?
8968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8969   (exit $ac_status); }; }; then
8970   libgomp_shared_libgcc=yes
8971 else
8972   echo "$as_me: failed program was:" >&5
8973 sed 's/^/| /' conftest.$ac_ext >&5
8974
8975 libgomp_shared_libgcc=no
8976 fi
8977 rm -f conftest.err conftest.$ac_objext \
8978       conftest$ac_exeext conftest.$ac_ext
8979   CFLAGS="$ac_save_CFLAGS"
8980   if test $libgomp_shared_libgcc = no; then
8981     cat > conftest.c <<EOF
8982 int main (void) { return 0; }
8983 EOF
8984     libgomp_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
8985                              -shared -shared-libgcc -o conftest.so \
8986                              conftest.c -v 2>&1 >/dev/null \
8987                              | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
8988     rm -f conftest.c conftest.so
8989     if test x${libgomp_libgcc_s_suffix+set} = xset; then
8990       CFLAGS=" -lgcc_s$libgomp_libgcc_s_suffix"
8991       cat >conftest.$ac_ext <<_ACEOF
8992 /* confdefs.h.  */
8993 _ACEOF
8994 cat confdefs.h >>conftest.$ac_ext
8995 cat >>conftest.$ac_ext <<_ACEOF
8996 /* end confdefs.h.  */
8997
8998 int
8999 main ()
9000 {
9001 return 0;
9002   ;
9003   return 0;
9004 }
9005 _ACEOF
9006 rm -f conftest.$ac_objext conftest$ac_exeext
9007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9008   (eval $ac_link) 2>conftest.er1
9009   ac_status=$?
9010   grep -v '^ *+' conftest.er1 >conftest.err
9011   rm -f conftest.er1
9012   cat conftest.err >&5
9013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9014   (exit $ac_status); } &&
9015          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9017   (eval $ac_try) 2>&5
9018   ac_status=$?
9019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9020   (exit $ac_status); }; } &&
9021          { ac_try='test -s conftest$ac_exeext'
9022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9023   (eval $ac_try) 2>&5
9024   ac_status=$?
9025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9026   (exit $ac_status); }; }; then
9027   libgomp_shared_libgcc=yes
9028 else
9029   echo "$as_me: failed program was:" >&5
9030 sed 's/^/| /' conftest.$ac_ext >&5
9031
9032 fi
9033 rm -f conftest.err conftest.$ac_objext \
9034       conftest$ac_exeext conftest.$ac_ext
9035       CFLAGS="$ac_save_CFLAGS"
9036     fi
9037   fi
9038   echo "$as_me:$LINENO: result: $libgomp_shared_libgcc" >&5
9039 echo "${ECHO_T}$libgomp_shared_libgcc" >&6
9040 fi
9041
9042 # For GNU ld, we need at least this version.  The format is described in
9043 # LIBGOMP_CHECK_LINKER_FEATURES above.
9044 libgomp_min_gnu_ld_version=21400
9045 # XXXXXXXXXXX libgomp_gnu_ld_version=21390
9046
9047 # Check to see if unspecified "yes" value can win, given results above.
9048 # Change "yes" into either "no" or a style name.
9049 if test $enable_symvers = yes; then
9050   if test $with_gnu_ld = yes &&
9051      test $libgomp_shared_libgcc = yes;
9052   then
9053     if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then
9054       enable_symvers=gnu
9055     else
9056       # The right tools, the right setup, but too old.  Fallbacks?
9057       { echo "$as_me:$LINENO: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5
9058 echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;}
9059       { echo "$as_me:$LINENO: WARNING: === full symbol versioning support in this release of GCC." >&5
9060 echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
9061       { echo "$as_me:$LINENO: WARNING: === You would need to upgrade your binutils to version" >&5
9062 echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
9063       { echo "$as_me:$LINENO: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5
9064 echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;}
9065       if test $libgomp_gnu_ld_version -ge 21200 ; then
9066         # Globbing fix is present, proper block support is not.
9067                         { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
9068 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
9069         enable_symvers=no
9070       else
9071         # 2.11 or older.
9072         { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
9073 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
9074         enable_symvers=no
9075       fi
9076     fi
9077   else
9078     # just fail for now
9079     { echo "$as_me:$LINENO: WARNING: === You have requested some kind of symbol versioning, but" >&5
9080 echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
9081     { echo "$as_me:$LINENO: WARNING: === either you are not using a supported linker, or you are" >&5
9082 echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
9083     { echo "$as_me:$LINENO: WARNING: === not building a shared libgcc_s (which is required)." >&5
9084 echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
9085     { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
9086 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
9087     enable_symvers=no
9088   fi
9089 fi
9090
9091
9092
9093 if test $enable_symvers != no; then
9094   LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE=
9095   LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE='#'
9096 else
9097   LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE='#'
9098   LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE=
9099 fi
9100
9101 { echo "$as_me:$LINENO: versioning on shared library symbols is $enable_symvers" >&5
9102 echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
9103
9104
9105 # Get target configury.
9106 . ${srcdir}/configure.tgt
9107 CFLAGS="$save_CFLAGS $XCFLAGS"
9108
9109 # Check for __sync_val_compare_and_swap, but only after the target has
9110 # had a chance to set XCFLAGS.
9111
9112   echo "$as_me:$LINENO: checking whether the target supports __sync_*_compare_and_swap" >&5
9113 echo $ECHO_N "checking whether the target supports __sync_*_compare_and_swap... $ECHO_C" >&6
9114 if test "${have_sync_builtins+set}" = set; then
9115   echo $ECHO_N "(cached) $ECHO_C" >&6
9116 else
9117
9118   cat >conftest.$ac_ext <<_ACEOF
9119 /* confdefs.h.  */
9120 _ACEOF
9121 cat confdefs.h >>conftest.$ac_ext
9122 cat >>conftest.$ac_ext <<_ACEOF
9123 /* end confdefs.h.  */
9124
9125 int
9126 main ()
9127 {
9128 int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
9129   ;
9130   return 0;
9131 }
9132 _ACEOF
9133 rm -f conftest.$ac_objext conftest$ac_exeext
9134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9135   (eval $ac_link) 2>conftest.er1
9136   ac_status=$?
9137   grep -v '^ *+' conftest.er1 >conftest.err
9138   rm -f conftest.er1
9139   cat conftest.err >&5
9140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9141   (exit $ac_status); } &&
9142          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9144   (eval $ac_try) 2>&5
9145   ac_status=$?
9146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9147   (exit $ac_status); }; } &&
9148          { ac_try='test -s conftest$ac_exeext'
9149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9150   (eval $ac_try) 2>&5
9151   ac_status=$?
9152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9153   (exit $ac_status); }; }; then
9154   have_sync_builtins=yes
9155 else
9156   echo "$as_me: failed program was:" >&5
9157 sed 's/^/| /' conftest.$ac_ext >&5
9158
9159 have_sync_builtins=no
9160 fi
9161 rm -f conftest.err conftest.$ac_objext \
9162       conftest$ac_exeext conftest.$ac_ext
9163 fi
9164 echo "$as_me:$LINENO: result: $have_sync_builtins" >&5
9165 echo "${ECHO_T}$have_sync_builtins" >&6
9166   if test $have_sync_builtins = yes; then
9167
9168 cat >>confdefs.h <<\_ACEOF
9169 #define HAVE_SYNC_BUILTINS 1
9170 _ACEOF
9171
9172   fi
9173
9174 XCFLAGS="$XCFLAGS$XPCFLAGS"
9175
9176
9177
9178
9179
9180 # Cleanup and exit.
9181 CFLAGS="$save_CFLAGS"
9182 cat >confcache <<\_ACEOF
9183 # This file is a shell script that caches the results of configure
9184 # tests run on this system so they can be shared between configure
9185 # scripts and configure runs, see configure's option --config-cache.
9186 # It is not useful on other systems.  If it contains results you don't
9187 # want to keep, you may remove or edit it.
9188 #
9189 # config.status only pays attention to the cache file if you give it
9190 # the --recheck option to rerun configure.
9191 #
9192 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9193 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9194 # following values.
9195
9196 _ACEOF
9197
9198 # The following way of writing the cache mishandles newlines in values,
9199 # but we know of no workaround that is simple, portable, and efficient.
9200 # So, don't put newlines in cache variables' values.
9201 # Ultrix sh set writes to stderr and can't be redirected directly,
9202 # and sets the high bit in the cache file unless we assign to the vars.
9203 {
9204   (set) 2>&1 |
9205     case `(ac_space=' '; set | grep ac_space) 2>&1` in
9206     *ac_space=\ *)
9207       # `set' does not quote correctly, so add quotes (double-quote
9208       # substitution turns \\\\ into \\, and sed turns \\ into \).
9209       sed -n \
9210         "s/'/'\\\\''/g;
9211           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9212       ;;
9213     *)
9214       # `set' quotes correctly as required by POSIX, so do not add quotes.
9215       sed -n \
9216         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9217       ;;
9218     esac;
9219 } |
9220   sed '
9221      t clear
9222      : clear
9223      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9224      t end
9225      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9226      : end' >>confcache
9227 if diff $cache_file confcache >/dev/null 2>&1; then :; else
9228   if test -w $cache_file; then
9229     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9230     cat confcache >$cache_file
9231   else
9232     echo "not updating unwritable cache $cache_file"
9233   fi
9234 fi
9235 rm -f confcache
9236
9237 if test ${multilib} = yes; then
9238   multilib_arg="--enable-multilib"
9239 else
9240   multilib_arg=
9241 fi
9242
9243 # Set up the set of libraries that we need to link against for libgomp.
9244 # Note that the GOMP_SELF_SPEC in gcc.c will force -pthread for -fopenmp,
9245 # which will force linkage against -lpthread (or equivalent for the system).
9246 # That's not 100% ideal, but about the best we can do easily.
9247 if test $enable_shared = yes; then
9248   link_gomp="-lgomp %{static: $LIBS}"
9249 else
9250   link_gomp="-lgomp $LIBS"
9251 fi
9252
9253
9254
9255
9256 if test "$ac_cv_fc_compiler_gnu" = yes; then
9257   USE_FORTRAN_TRUE=
9258   USE_FORTRAN_FALSE='#'
9259 else
9260   USE_FORTRAN_TRUE='#'
9261   USE_FORTRAN_FALSE=
9262 fi
9263
9264
9265 # ??? 2006-01-24: Paulo committed to asking autoconf folk to document
9266 # and export AC_COMPUTE_INT.  If that happens, then we'll need to remove
9267 # the underscore here and update the PREREQ.  If it doesn't, then we'll
9268 # need to copy this macro to our acinclude.m4.
9269 save_CFLAGS="$CFLAGS"
9270 for i in $config_path; do
9271   if test -f $srcdir/config/$i/omp-lock.h; then
9272     CFLAGS="$CFLAGS -include $srcdir/config/$i/omp-lock.h"
9273     break
9274   fi
9275 done
9276
9277 if test "$cross_compiling" = yes; then
9278   # Depending upon the size, compute the lo and hi bounds.
9279 cat >conftest.$ac_ext <<_ACEOF
9280 /* confdefs.h.  */
9281 _ACEOF
9282 cat confdefs.h >>conftest.$ac_ext
9283 cat >>conftest.$ac_ext <<_ACEOF
9284 /* end confdefs.h.  */
9285
9286 int
9287 main ()
9288 {
9289 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) >= 0)];
9290 test_array [0] = 0
9291
9292   ;
9293   return 0;
9294 }
9295 _ACEOF
9296 rm -f conftest.$ac_objext
9297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9298   (eval $ac_compile) 2>conftest.er1
9299   ac_status=$?
9300   grep -v '^ *+' conftest.er1 >conftest.err
9301   rm -f conftest.er1
9302   cat conftest.err >&5
9303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9304   (exit $ac_status); } &&
9305          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9307   (eval $ac_try) 2>&5
9308   ac_status=$?
9309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9310   (exit $ac_status); }; } &&
9311          { ac_try='test -s conftest.$ac_objext'
9312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9313   (eval $ac_try) 2>&5
9314   ac_status=$?
9315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9316   (exit $ac_status); }; }; then
9317   ac_lo=0 ac_mid=0
9318   while :; do
9319     cat >conftest.$ac_ext <<_ACEOF
9320 /* confdefs.h.  */
9321 _ACEOF
9322 cat confdefs.h >>conftest.$ac_ext
9323 cat >>conftest.$ac_ext <<_ACEOF
9324 /* end confdefs.h.  */
9325
9326 int
9327 main ()
9328 {
9329 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) <= $ac_mid)];
9330 test_array [0] = 0
9331
9332   ;
9333   return 0;
9334 }
9335 _ACEOF
9336 rm -f conftest.$ac_objext
9337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9338   (eval $ac_compile) 2>conftest.er1
9339   ac_status=$?
9340   grep -v '^ *+' conftest.er1 >conftest.err
9341   rm -f conftest.er1
9342   cat conftest.err >&5
9343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9344   (exit $ac_status); } &&
9345          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9347   (eval $ac_try) 2>&5
9348   ac_status=$?
9349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9350   (exit $ac_status); }; } &&
9351          { ac_try='test -s conftest.$ac_objext'
9352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9353   (eval $ac_try) 2>&5
9354   ac_status=$?
9355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9356   (exit $ac_status); }; }; then
9357   ac_hi=$ac_mid; break
9358 else
9359   echo "$as_me: failed program was:" >&5
9360 sed 's/^/| /' conftest.$ac_ext >&5
9361
9362 ac_lo=`expr $ac_mid + 1`
9363                     if test $ac_lo -le $ac_mid; then
9364                       ac_lo= ac_hi=
9365                       break
9366                     fi
9367                     ac_mid=`expr 2 '*' $ac_mid + 1`
9368 fi
9369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9370   done
9371 else
9372   echo "$as_me: failed program was:" >&5
9373 sed 's/^/| /' conftest.$ac_ext >&5
9374
9375 cat >conftest.$ac_ext <<_ACEOF
9376 /* confdefs.h.  */
9377 _ACEOF
9378 cat confdefs.h >>conftest.$ac_ext
9379 cat >>conftest.$ac_ext <<_ACEOF
9380 /* end confdefs.h.  */
9381
9382 int
9383 main ()
9384 {
9385 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) < 0)];
9386 test_array [0] = 0
9387
9388   ;
9389   return 0;
9390 }
9391 _ACEOF
9392 rm -f conftest.$ac_objext
9393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9394   (eval $ac_compile) 2>conftest.er1
9395   ac_status=$?
9396   grep -v '^ *+' conftest.er1 >conftest.err
9397   rm -f conftest.er1
9398   cat conftest.err >&5
9399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9400   (exit $ac_status); } &&
9401          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9403   (eval $ac_try) 2>&5
9404   ac_status=$?
9405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9406   (exit $ac_status); }; } &&
9407          { ac_try='test -s conftest.$ac_objext'
9408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9409   (eval $ac_try) 2>&5
9410   ac_status=$?
9411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9412   (exit $ac_status); }; }; then
9413   ac_hi=-1 ac_mid=-1
9414   while :; do
9415     cat >conftest.$ac_ext <<_ACEOF
9416 /* confdefs.h.  */
9417 _ACEOF
9418 cat confdefs.h >>conftest.$ac_ext
9419 cat >>conftest.$ac_ext <<_ACEOF
9420 /* end confdefs.h.  */
9421
9422 int
9423 main ()
9424 {
9425 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) >= $ac_mid)];
9426 test_array [0] = 0
9427
9428   ;
9429   return 0;
9430 }
9431 _ACEOF
9432 rm -f conftest.$ac_objext
9433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9434   (eval $ac_compile) 2>conftest.er1
9435   ac_status=$?
9436   grep -v '^ *+' conftest.er1 >conftest.err
9437   rm -f conftest.er1
9438   cat conftest.err >&5
9439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9440   (exit $ac_status); } &&
9441          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9443   (eval $ac_try) 2>&5
9444   ac_status=$?
9445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9446   (exit $ac_status); }; } &&
9447          { ac_try='test -s conftest.$ac_objext'
9448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9449   (eval $ac_try) 2>&5
9450   ac_status=$?
9451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9452   (exit $ac_status); }; }; then
9453   ac_lo=$ac_mid; break
9454 else
9455   echo "$as_me: failed program was:" >&5
9456 sed 's/^/| /' conftest.$ac_ext >&5
9457
9458 ac_hi=`expr '(' $ac_mid ')' - 1`
9459                        if test $ac_mid -le $ac_hi; then
9460                          ac_lo= ac_hi=
9461                          break
9462                        fi
9463                        ac_mid=`expr 2 '*' $ac_mid`
9464 fi
9465 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9466   done
9467 else
9468   echo "$as_me: failed program was:" >&5
9469 sed 's/^/| /' conftest.$ac_ext >&5
9470
9471 ac_lo= ac_hi=
9472 fi
9473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9474 fi
9475 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9476 # Binary search between lo and hi bounds.
9477 while test "x$ac_lo" != "x$ac_hi"; do
9478   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9479   cat >conftest.$ac_ext <<_ACEOF
9480 /* confdefs.h.  */
9481 _ACEOF
9482 cat confdefs.h >>conftest.$ac_ext
9483 cat >>conftest.$ac_ext <<_ACEOF
9484 /* end confdefs.h.  */
9485
9486 int
9487 main ()
9488 {
9489 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) <= $ac_mid)];
9490 test_array [0] = 0
9491
9492   ;
9493   return 0;
9494 }
9495 _ACEOF
9496 rm -f conftest.$ac_objext
9497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9498   (eval $ac_compile) 2>conftest.er1
9499   ac_status=$?
9500   grep -v '^ *+' conftest.er1 >conftest.err
9501   rm -f conftest.er1
9502   cat conftest.err >&5
9503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9504   (exit $ac_status); } &&
9505          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9507   (eval $ac_try) 2>&5
9508   ac_status=$?
9509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9510   (exit $ac_status); }; } &&
9511          { ac_try='test -s conftest.$ac_objext'
9512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9513   (eval $ac_try) 2>&5
9514   ac_status=$?
9515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9516   (exit $ac_status); }; }; then
9517   ac_hi=$ac_mid
9518 else
9519   echo "$as_me: failed program was:" >&5
9520 sed 's/^/| /' conftest.$ac_ext >&5
9521
9522 ac_lo=`expr '(' $ac_mid ')' + 1`
9523 fi
9524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9525 done
9526 case $ac_lo in
9527 ?*) OMP_LOCK_SIZE=$ac_lo;;
9528 '') { { echo "$as_me:$LINENO: error: unsupported system, cannot find sizeof (omp_lock_t)" >&5
9529 echo "$as_me: error: unsupported system, cannot find sizeof (omp_lock_t)" >&2;}
9530    { (exit 1); exit 1; }; } ;;
9531 esac
9532 else
9533   if test "$cross_compiling" = yes; then
9534   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
9535 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
9536    { (exit 1); exit 1; }; }
9537 else
9538   cat >conftest.$ac_ext <<_ACEOF
9539 /* confdefs.h.  */
9540 _ACEOF
9541 cat confdefs.h >>conftest.$ac_ext
9542 cat >>conftest.$ac_ext <<_ACEOF
9543 /* end confdefs.h.  */
9544
9545 long longval () { return sizeof (omp_lock_t); }
9546 unsigned long ulongval () { return sizeof (omp_lock_t); }
9547 #include <stdio.h>
9548 #include <stdlib.h>
9549 int
9550 main ()
9551 {
9552
9553   FILE *f = fopen ("conftest.val", "w");
9554   if (! f)
9555     exit (1);
9556   if ((sizeof (omp_lock_t)) < 0)
9557     {
9558       long i = longval ();
9559       if (i != (sizeof (omp_lock_t)))
9560         exit (1);
9561       fprintf (f, "%ld\n", i);
9562     }
9563   else
9564     {
9565       unsigned long i = ulongval ();
9566       if (i != (sizeof (omp_lock_t)))
9567         exit (1);
9568       fprintf (f, "%lu\n", i);
9569     }
9570   exit (ferror (f) || fclose (f) != 0);
9571
9572   ;
9573   return 0;
9574 }
9575 _ACEOF
9576 rm -f conftest$ac_exeext
9577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9578   (eval $ac_link) 2>&5
9579   ac_status=$?
9580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9581   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9583   (eval $ac_try) 2>&5
9584   ac_status=$?
9585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9586   (exit $ac_status); }; }; then
9587   OMP_LOCK_SIZE=`cat conftest.val`
9588 else
9589   echo "$as_me: program exited with status $ac_status" >&5
9590 echo "$as_me: failed program was:" >&5
9591 sed 's/^/| /' conftest.$ac_ext >&5
9592
9593 ( exit $ac_status )
9594 { { echo "$as_me:$LINENO: error: unsupported system, cannot find sizeof (omp_lock_t)" >&5
9595 echo "$as_me: error: unsupported system, cannot find sizeof (omp_lock_t)" >&2;}
9596    { (exit 1); exit 1; }; }
9597 fi
9598 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9599 fi
9600 fi
9601 rm -f conftest.val
9602 if test "$cross_compiling" = yes; then
9603   # Depending upon the size, compute the lo and hi bounds.
9604 cat >conftest.$ac_ext <<_ACEOF
9605 /* confdefs.h.  */
9606 _ACEOF
9607 cat confdefs.h >>conftest.$ac_ext
9608 cat >>conftest.$ac_ext <<_ACEOF
9609 /* end confdefs.h.  */
9610
9611 int
9612 main ()
9613 {
9614 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) >= 0)];
9615 test_array [0] = 0
9616
9617   ;
9618   return 0;
9619 }
9620 _ACEOF
9621 rm -f conftest.$ac_objext
9622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9623   (eval $ac_compile) 2>conftest.er1
9624   ac_status=$?
9625   grep -v '^ *+' conftest.er1 >conftest.err
9626   rm -f conftest.er1
9627   cat conftest.err >&5
9628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9629   (exit $ac_status); } &&
9630          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9632   (eval $ac_try) 2>&5
9633   ac_status=$?
9634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9635   (exit $ac_status); }; } &&
9636          { ac_try='test -s conftest.$ac_objext'
9637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9638   (eval $ac_try) 2>&5
9639   ac_status=$?
9640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9641   (exit $ac_status); }; }; then
9642   ac_lo=0 ac_mid=0
9643   while :; do
9644     cat >conftest.$ac_ext <<_ACEOF
9645 /* confdefs.h.  */
9646 _ACEOF
9647 cat confdefs.h >>conftest.$ac_ext
9648 cat >>conftest.$ac_ext <<_ACEOF
9649 /* end confdefs.h.  */
9650
9651 int
9652 main ()
9653 {
9654 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) <= $ac_mid)];
9655 test_array [0] = 0
9656
9657   ;
9658   return 0;
9659 }
9660 _ACEOF
9661 rm -f conftest.$ac_objext
9662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9663   (eval $ac_compile) 2>conftest.er1
9664   ac_status=$?
9665   grep -v '^ *+' conftest.er1 >conftest.err
9666   rm -f conftest.er1
9667   cat conftest.err >&5
9668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669   (exit $ac_status); } &&
9670          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9672   (eval $ac_try) 2>&5
9673   ac_status=$?
9674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675   (exit $ac_status); }; } &&
9676          { ac_try='test -s conftest.$ac_objext'
9677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9678   (eval $ac_try) 2>&5
9679   ac_status=$?
9680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681   (exit $ac_status); }; }; then
9682   ac_hi=$ac_mid; break
9683 else
9684   echo "$as_me: failed program was:" >&5
9685 sed 's/^/| /' conftest.$ac_ext >&5
9686
9687 ac_lo=`expr $ac_mid + 1`
9688                     if test $ac_lo -le $ac_mid; then
9689                       ac_lo= ac_hi=
9690                       break
9691                     fi
9692                     ac_mid=`expr 2 '*' $ac_mid + 1`
9693 fi
9694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9695   done
9696 else
9697   echo "$as_me: failed program was:" >&5
9698 sed 's/^/| /' conftest.$ac_ext >&5
9699
9700 cat >conftest.$ac_ext <<_ACEOF
9701 /* confdefs.h.  */
9702 _ACEOF
9703 cat confdefs.h >>conftest.$ac_ext
9704 cat >>conftest.$ac_ext <<_ACEOF
9705 /* end confdefs.h.  */
9706
9707 int
9708 main ()
9709 {
9710 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) < 0)];
9711 test_array [0] = 0
9712
9713   ;
9714   return 0;
9715 }
9716 _ACEOF
9717 rm -f conftest.$ac_objext
9718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9719   (eval $ac_compile) 2>conftest.er1
9720   ac_status=$?
9721   grep -v '^ *+' conftest.er1 >conftest.err
9722   rm -f conftest.er1
9723   cat conftest.err >&5
9724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9725   (exit $ac_status); } &&
9726          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9728   (eval $ac_try) 2>&5
9729   ac_status=$?
9730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731   (exit $ac_status); }; } &&
9732          { ac_try='test -s conftest.$ac_objext'
9733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9734   (eval $ac_try) 2>&5
9735   ac_status=$?
9736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9737   (exit $ac_status); }; }; then
9738   ac_hi=-1 ac_mid=-1
9739   while :; do
9740     cat >conftest.$ac_ext <<_ACEOF
9741 /* confdefs.h.  */
9742 _ACEOF
9743 cat confdefs.h >>conftest.$ac_ext
9744 cat >>conftest.$ac_ext <<_ACEOF
9745 /* end confdefs.h.  */
9746
9747 int
9748 main ()
9749 {
9750 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) >= $ac_mid)];
9751 test_array [0] = 0
9752
9753   ;
9754   return 0;
9755 }
9756 _ACEOF
9757 rm -f conftest.$ac_objext
9758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9759   (eval $ac_compile) 2>conftest.er1
9760   ac_status=$?
9761   grep -v '^ *+' conftest.er1 >conftest.err
9762   rm -f conftest.er1
9763   cat conftest.err >&5
9764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9765   (exit $ac_status); } &&
9766          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9768   (eval $ac_try) 2>&5
9769   ac_status=$?
9770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9771   (exit $ac_status); }; } &&
9772          { ac_try='test -s conftest.$ac_objext'
9773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9774   (eval $ac_try) 2>&5
9775   ac_status=$?
9776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9777   (exit $ac_status); }; }; then
9778   ac_lo=$ac_mid; break
9779 else
9780   echo "$as_me: failed program was:" >&5
9781 sed 's/^/| /' conftest.$ac_ext >&5
9782
9783 ac_hi=`expr '(' $ac_mid ')' - 1`
9784                        if test $ac_mid -le $ac_hi; then
9785                          ac_lo= ac_hi=
9786                          break
9787                        fi
9788                        ac_mid=`expr 2 '*' $ac_mid`
9789 fi
9790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9791   done
9792 else
9793   echo "$as_me: failed program was:" >&5
9794 sed 's/^/| /' conftest.$ac_ext >&5
9795
9796 ac_lo= ac_hi=
9797 fi
9798 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9799 fi
9800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9801 # Binary search between lo and hi bounds.
9802 while test "x$ac_lo" != "x$ac_hi"; do
9803   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9804   cat >conftest.$ac_ext <<_ACEOF
9805 /* confdefs.h.  */
9806 _ACEOF
9807 cat confdefs.h >>conftest.$ac_ext
9808 cat >>conftest.$ac_ext <<_ACEOF
9809 /* end confdefs.h.  */
9810
9811 int
9812 main ()
9813 {
9814 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) <= $ac_mid)];
9815 test_array [0] = 0
9816
9817   ;
9818   return 0;
9819 }
9820 _ACEOF
9821 rm -f conftest.$ac_objext
9822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9823   (eval $ac_compile) 2>conftest.er1
9824   ac_status=$?
9825   grep -v '^ *+' conftest.er1 >conftest.err
9826   rm -f conftest.er1
9827   cat conftest.err >&5
9828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9829   (exit $ac_status); } &&
9830          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9832   (eval $ac_try) 2>&5
9833   ac_status=$?
9834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9835   (exit $ac_status); }; } &&
9836          { ac_try='test -s conftest.$ac_objext'
9837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9838   (eval $ac_try) 2>&5
9839   ac_status=$?
9840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9841   (exit $ac_status); }; }; then
9842   ac_hi=$ac_mid
9843 else
9844   echo "$as_me: failed program was:" >&5
9845 sed 's/^/| /' conftest.$ac_ext >&5
9846
9847 ac_lo=`expr '(' $ac_mid ')' + 1`
9848 fi
9849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9850 done
9851 case $ac_lo in
9852 ?*) OMP_LOCK_ALIGN=$ac_lo;;
9853 '')  ;;
9854 esac
9855 else
9856   if test "$cross_compiling" = yes; then
9857   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
9858 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
9859    { (exit 1); exit 1; }; }
9860 else
9861   cat >conftest.$ac_ext <<_ACEOF
9862 /* confdefs.h.  */
9863 _ACEOF
9864 cat confdefs.h >>conftest.$ac_ext
9865 cat >>conftest.$ac_ext <<_ACEOF
9866 /* end confdefs.h.  */
9867
9868 long longval () { return __alignof (omp_lock_t); }
9869 unsigned long ulongval () { return __alignof (omp_lock_t); }
9870 #include <stdio.h>
9871 #include <stdlib.h>
9872 int
9873 main ()
9874 {
9875
9876   FILE *f = fopen ("conftest.val", "w");
9877   if (! f)
9878     exit (1);
9879   if ((__alignof (omp_lock_t)) < 0)
9880     {
9881       long i = longval ();
9882       if (i != (__alignof (omp_lock_t)))
9883         exit (1);
9884       fprintf (f, "%ld\n", i);
9885     }
9886   else
9887     {
9888       unsigned long i = ulongval ();
9889       if (i != (__alignof (omp_lock_t)))
9890         exit (1);
9891       fprintf (f, "%lu\n", i);
9892     }
9893   exit (ferror (f) || fclose (f) != 0);
9894
9895   ;
9896   return 0;
9897 }
9898 _ACEOF
9899 rm -f conftest$ac_exeext
9900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9901   (eval $ac_link) 2>&5
9902   ac_status=$?
9903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9904   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9906   (eval $ac_try) 2>&5
9907   ac_status=$?
9908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9909   (exit $ac_status); }; }; then
9910   OMP_LOCK_ALIGN=`cat conftest.val`
9911 else
9912   echo "$as_me: program exited with status $ac_status" >&5
9913 echo "$as_me: failed program was:" >&5
9914 sed 's/^/| /' conftest.$ac_ext >&5
9915
9916 fi
9917 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9918 fi
9919 fi
9920 rm -f conftest.val
9921 if test "$cross_compiling" = yes; then
9922   # Depending upon the size, compute the lo and hi bounds.
9923 cat >conftest.$ac_ext <<_ACEOF
9924 /* confdefs.h.  */
9925 _ACEOF
9926 cat confdefs.h >>conftest.$ac_ext
9927 cat >>conftest.$ac_ext <<_ACEOF
9928 /* end confdefs.h.  */
9929
9930 int
9931 main ()
9932 {
9933 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) >= 0)];
9934 test_array [0] = 0
9935
9936   ;
9937   return 0;
9938 }
9939 _ACEOF
9940 rm -f conftest.$ac_objext
9941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9942   (eval $ac_compile) 2>conftest.er1
9943   ac_status=$?
9944   grep -v '^ *+' conftest.er1 >conftest.err
9945   rm -f conftest.er1
9946   cat conftest.err >&5
9947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948   (exit $ac_status); } &&
9949          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9951   (eval $ac_try) 2>&5
9952   ac_status=$?
9953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9954   (exit $ac_status); }; } &&
9955          { ac_try='test -s conftest.$ac_objext'
9956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9957   (eval $ac_try) 2>&5
9958   ac_status=$?
9959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960   (exit $ac_status); }; }; then
9961   ac_lo=0 ac_mid=0
9962   while :; do
9963     cat >conftest.$ac_ext <<_ACEOF
9964 /* confdefs.h.  */
9965 _ACEOF
9966 cat confdefs.h >>conftest.$ac_ext
9967 cat >>conftest.$ac_ext <<_ACEOF
9968 /* end confdefs.h.  */
9969
9970 int
9971 main ()
9972 {
9973 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) <= $ac_mid)];
9974 test_array [0] = 0
9975
9976   ;
9977   return 0;
9978 }
9979 _ACEOF
9980 rm -f conftest.$ac_objext
9981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9982   (eval $ac_compile) 2>conftest.er1
9983   ac_status=$?
9984   grep -v '^ *+' conftest.er1 >conftest.err
9985   rm -f conftest.er1
9986   cat conftest.err >&5
9987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988   (exit $ac_status); } &&
9989          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9991   (eval $ac_try) 2>&5
9992   ac_status=$?
9993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9994   (exit $ac_status); }; } &&
9995          { ac_try='test -s conftest.$ac_objext'
9996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9997   (eval $ac_try) 2>&5
9998   ac_status=$?
9999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000   (exit $ac_status); }; }; then
10001   ac_hi=$ac_mid; break
10002 else
10003   echo "$as_me: failed program was:" >&5
10004 sed 's/^/| /' conftest.$ac_ext >&5
10005
10006 ac_lo=`expr $ac_mid + 1`
10007                     if test $ac_lo -le $ac_mid; then
10008                       ac_lo= ac_hi=
10009                       break
10010                     fi
10011                     ac_mid=`expr 2 '*' $ac_mid + 1`
10012 fi
10013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10014   done
10015 else
10016   echo "$as_me: failed program was:" >&5
10017 sed 's/^/| /' conftest.$ac_ext >&5
10018
10019 cat >conftest.$ac_ext <<_ACEOF
10020 /* confdefs.h.  */
10021 _ACEOF
10022 cat confdefs.h >>conftest.$ac_ext
10023 cat >>conftest.$ac_ext <<_ACEOF
10024 /* end confdefs.h.  */
10025
10026 int
10027 main ()
10028 {
10029 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) < 0)];
10030 test_array [0] = 0
10031
10032   ;
10033   return 0;
10034 }
10035 _ACEOF
10036 rm -f conftest.$ac_objext
10037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10038   (eval $ac_compile) 2>conftest.er1
10039   ac_status=$?
10040   grep -v '^ *+' conftest.er1 >conftest.err
10041   rm -f conftest.er1
10042   cat conftest.err >&5
10043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044   (exit $ac_status); } &&
10045          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10047   (eval $ac_try) 2>&5
10048   ac_status=$?
10049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050   (exit $ac_status); }; } &&
10051          { ac_try='test -s conftest.$ac_objext'
10052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10053   (eval $ac_try) 2>&5
10054   ac_status=$?
10055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056   (exit $ac_status); }; }; then
10057   ac_hi=-1 ac_mid=-1
10058   while :; do
10059     cat >conftest.$ac_ext <<_ACEOF
10060 /* confdefs.h.  */
10061 _ACEOF
10062 cat confdefs.h >>conftest.$ac_ext
10063 cat >>conftest.$ac_ext <<_ACEOF
10064 /* end confdefs.h.  */
10065
10066 int
10067 main ()
10068 {
10069 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) >= $ac_mid)];
10070 test_array [0] = 0
10071
10072   ;
10073   return 0;
10074 }
10075 _ACEOF
10076 rm -f conftest.$ac_objext
10077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10078   (eval $ac_compile) 2>conftest.er1
10079   ac_status=$?
10080   grep -v '^ *+' conftest.er1 >conftest.err
10081   rm -f conftest.er1
10082   cat conftest.err >&5
10083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10084   (exit $ac_status); } &&
10085          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10087   (eval $ac_try) 2>&5
10088   ac_status=$?
10089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10090   (exit $ac_status); }; } &&
10091          { ac_try='test -s conftest.$ac_objext'
10092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10093   (eval $ac_try) 2>&5
10094   ac_status=$?
10095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10096   (exit $ac_status); }; }; then
10097   ac_lo=$ac_mid; break
10098 else
10099   echo "$as_me: failed program was:" >&5
10100 sed 's/^/| /' conftest.$ac_ext >&5
10101
10102 ac_hi=`expr '(' $ac_mid ')' - 1`
10103                        if test $ac_mid -le $ac_hi; then
10104                          ac_lo= ac_hi=
10105                          break
10106                        fi
10107                        ac_mid=`expr 2 '*' $ac_mid`
10108 fi
10109 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10110   done
10111 else
10112   echo "$as_me: failed program was:" >&5
10113 sed 's/^/| /' conftest.$ac_ext >&5
10114
10115 ac_lo= ac_hi=
10116 fi
10117 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10118 fi
10119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10120 # Binary search between lo and hi bounds.
10121 while test "x$ac_lo" != "x$ac_hi"; do
10122   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10123   cat >conftest.$ac_ext <<_ACEOF
10124 /* confdefs.h.  */
10125 _ACEOF
10126 cat confdefs.h >>conftest.$ac_ext
10127 cat >>conftest.$ac_ext <<_ACEOF
10128 /* end confdefs.h.  */
10129
10130 int
10131 main ()
10132 {
10133 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) <= $ac_mid)];
10134 test_array [0] = 0
10135
10136   ;
10137   return 0;
10138 }
10139 _ACEOF
10140 rm -f conftest.$ac_objext
10141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10142   (eval $ac_compile) 2>conftest.er1
10143   ac_status=$?
10144   grep -v '^ *+' conftest.er1 >conftest.err
10145   rm -f conftest.er1
10146   cat conftest.err >&5
10147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10148   (exit $ac_status); } &&
10149          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10151   (eval $ac_try) 2>&5
10152   ac_status=$?
10153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10154   (exit $ac_status); }; } &&
10155          { ac_try='test -s conftest.$ac_objext'
10156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10157   (eval $ac_try) 2>&5
10158   ac_status=$?
10159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10160   (exit $ac_status); }; }; then
10161   ac_hi=$ac_mid
10162 else
10163   echo "$as_me: failed program was:" >&5
10164 sed 's/^/| /' conftest.$ac_ext >&5
10165
10166 ac_lo=`expr '(' $ac_mid ')' + 1`
10167 fi
10168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10169 done
10170 case $ac_lo in
10171 ?*) OMP_NEST_LOCK_SIZE=$ac_lo;;
10172 '')  ;;
10173 esac
10174 else
10175   if test "$cross_compiling" = yes; then
10176   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
10177 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
10178    { (exit 1); exit 1; }; }
10179 else
10180   cat >conftest.$ac_ext <<_ACEOF
10181 /* confdefs.h.  */
10182 _ACEOF
10183 cat confdefs.h >>conftest.$ac_ext
10184 cat >>conftest.$ac_ext <<_ACEOF
10185 /* end confdefs.h.  */
10186
10187 long longval () { return sizeof (omp_nest_lock_t); }
10188 unsigned long ulongval () { return sizeof (omp_nest_lock_t); }
10189 #include <stdio.h>
10190 #include <stdlib.h>
10191 int
10192 main ()
10193 {
10194
10195   FILE *f = fopen ("conftest.val", "w");
10196   if (! f)
10197     exit (1);
10198   if ((sizeof (omp_nest_lock_t)) < 0)
10199     {
10200       long i = longval ();
10201       if (i != (sizeof (omp_nest_lock_t)))
10202         exit (1);
10203       fprintf (f, "%ld\n", i);
10204     }
10205   else
10206     {
10207       unsigned long i = ulongval ();
10208       if (i != (sizeof (omp_nest_lock_t)))
10209         exit (1);
10210       fprintf (f, "%lu\n", i);
10211     }
10212   exit (ferror (f) || fclose (f) != 0);
10213
10214   ;
10215   return 0;
10216 }
10217 _ACEOF
10218 rm -f conftest$ac_exeext
10219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10220   (eval $ac_link) 2>&5
10221   ac_status=$?
10222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10223   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10225   (eval $ac_try) 2>&5
10226   ac_status=$?
10227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10228   (exit $ac_status); }; }; then
10229   OMP_NEST_LOCK_SIZE=`cat conftest.val`
10230 else
10231   echo "$as_me: program exited with status $ac_status" >&5
10232 echo "$as_me: failed program was:" >&5
10233 sed 's/^/| /' conftest.$ac_ext >&5
10234
10235 fi
10236 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10237 fi
10238 fi
10239 rm -f conftest.val
10240 if test "$cross_compiling" = yes; then
10241   # Depending upon the size, compute the lo and hi bounds.
10242 cat >conftest.$ac_ext <<_ACEOF
10243 /* confdefs.h.  */
10244 _ACEOF
10245 cat confdefs.h >>conftest.$ac_ext
10246 cat >>conftest.$ac_ext <<_ACEOF
10247 /* end confdefs.h.  */
10248
10249 int
10250 main ()
10251 {
10252 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) >= 0)];
10253 test_array [0] = 0
10254
10255   ;
10256   return 0;
10257 }
10258 _ACEOF
10259 rm -f conftest.$ac_objext
10260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10261   (eval $ac_compile) 2>conftest.er1
10262   ac_status=$?
10263   grep -v '^ *+' conftest.er1 >conftest.err
10264   rm -f conftest.er1
10265   cat conftest.err >&5
10266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10267   (exit $ac_status); } &&
10268          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10270   (eval $ac_try) 2>&5
10271   ac_status=$?
10272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10273   (exit $ac_status); }; } &&
10274          { ac_try='test -s conftest.$ac_objext'
10275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10276   (eval $ac_try) 2>&5
10277   ac_status=$?
10278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10279   (exit $ac_status); }; }; then
10280   ac_lo=0 ac_mid=0
10281   while :; do
10282     cat >conftest.$ac_ext <<_ACEOF
10283 /* confdefs.h.  */
10284 _ACEOF
10285 cat confdefs.h >>conftest.$ac_ext
10286 cat >>conftest.$ac_ext <<_ACEOF
10287 /* end confdefs.h.  */
10288
10289 int
10290 main ()
10291 {
10292 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) <= $ac_mid)];
10293 test_array [0] = 0
10294
10295   ;
10296   return 0;
10297 }
10298 _ACEOF
10299 rm -f conftest.$ac_objext
10300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10301   (eval $ac_compile) 2>conftest.er1
10302   ac_status=$?
10303   grep -v '^ *+' conftest.er1 >conftest.err
10304   rm -f conftest.er1
10305   cat conftest.err >&5
10306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307   (exit $ac_status); } &&
10308          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10310   (eval $ac_try) 2>&5
10311   ac_status=$?
10312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10313   (exit $ac_status); }; } &&
10314          { ac_try='test -s conftest.$ac_objext'
10315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10316   (eval $ac_try) 2>&5
10317   ac_status=$?
10318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10319   (exit $ac_status); }; }; then
10320   ac_hi=$ac_mid; break
10321 else
10322   echo "$as_me: failed program was:" >&5
10323 sed 's/^/| /' conftest.$ac_ext >&5
10324
10325 ac_lo=`expr $ac_mid + 1`
10326                     if test $ac_lo -le $ac_mid; then
10327                       ac_lo= ac_hi=
10328                       break
10329                     fi
10330                     ac_mid=`expr 2 '*' $ac_mid + 1`
10331 fi
10332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10333   done
10334 else
10335   echo "$as_me: failed program was:" >&5
10336 sed 's/^/| /' conftest.$ac_ext >&5
10337
10338 cat >conftest.$ac_ext <<_ACEOF
10339 /* confdefs.h.  */
10340 _ACEOF
10341 cat confdefs.h >>conftest.$ac_ext
10342 cat >>conftest.$ac_ext <<_ACEOF
10343 /* end confdefs.h.  */
10344
10345 int
10346 main ()
10347 {
10348 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) < 0)];
10349 test_array [0] = 0
10350
10351   ;
10352   return 0;
10353 }
10354 _ACEOF
10355 rm -f conftest.$ac_objext
10356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10357   (eval $ac_compile) 2>conftest.er1
10358   ac_status=$?
10359   grep -v '^ *+' conftest.er1 >conftest.err
10360   rm -f conftest.er1
10361   cat conftest.err >&5
10362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10363   (exit $ac_status); } &&
10364          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10366   (eval $ac_try) 2>&5
10367   ac_status=$?
10368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10369   (exit $ac_status); }; } &&
10370          { ac_try='test -s conftest.$ac_objext'
10371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10372   (eval $ac_try) 2>&5
10373   ac_status=$?
10374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10375   (exit $ac_status); }; }; then
10376   ac_hi=-1 ac_mid=-1
10377   while :; do
10378     cat >conftest.$ac_ext <<_ACEOF
10379 /* confdefs.h.  */
10380 _ACEOF
10381 cat confdefs.h >>conftest.$ac_ext
10382 cat >>conftest.$ac_ext <<_ACEOF
10383 /* end confdefs.h.  */
10384
10385 int
10386 main ()
10387 {
10388 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) >= $ac_mid)];
10389 test_array [0] = 0
10390
10391   ;
10392   return 0;
10393 }
10394 _ACEOF
10395 rm -f conftest.$ac_objext
10396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10397   (eval $ac_compile) 2>conftest.er1
10398   ac_status=$?
10399   grep -v '^ *+' conftest.er1 >conftest.err
10400   rm -f conftest.er1
10401   cat conftest.err >&5
10402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10403   (exit $ac_status); } &&
10404          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10406   (eval $ac_try) 2>&5
10407   ac_status=$?
10408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409   (exit $ac_status); }; } &&
10410          { ac_try='test -s conftest.$ac_objext'
10411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10412   (eval $ac_try) 2>&5
10413   ac_status=$?
10414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10415   (exit $ac_status); }; }; then
10416   ac_lo=$ac_mid; break
10417 else
10418   echo "$as_me: failed program was:" >&5
10419 sed 's/^/| /' conftest.$ac_ext >&5
10420
10421 ac_hi=`expr '(' $ac_mid ')' - 1`
10422                        if test $ac_mid -le $ac_hi; then
10423                          ac_lo= ac_hi=
10424                          break
10425                        fi
10426                        ac_mid=`expr 2 '*' $ac_mid`
10427 fi
10428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10429   done
10430 else
10431   echo "$as_me: failed program was:" >&5
10432 sed 's/^/| /' conftest.$ac_ext >&5
10433
10434 ac_lo= ac_hi=
10435 fi
10436 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10437 fi
10438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10439 # Binary search between lo and hi bounds.
10440 while test "x$ac_lo" != "x$ac_hi"; do
10441   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10442   cat >conftest.$ac_ext <<_ACEOF
10443 /* confdefs.h.  */
10444 _ACEOF
10445 cat confdefs.h >>conftest.$ac_ext
10446 cat >>conftest.$ac_ext <<_ACEOF
10447 /* end confdefs.h.  */
10448
10449 int
10450 main ()
10451 {
10452 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) <= $ac_mid)];
10453 test_array [0] = 0
10454
10455   ;
10456   return 0;
10457 }
10458 _ACEOF
10459 rm -f conftest.$ac_objext
10460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10461   (eval $ac_compile) 2>conftest.er1
10462   ac_status=$?
10463   grep -v '^ *+' conftest.er1 >conftest.err
10464   rm -f conftest.er1
10465   cat conftest.err >&5
10466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10467   (exit $ac_status); } &&
10468          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10470   (eval $ac_try) 2>&5
10471   ac_status=$?
10472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10473   (exit $ac_status); }; } &&
10474          { ac_try='test -s conftest.$ac_objext'
10475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10476   (eval $ac_try) 2>&5
10477   ac_status=$?
10478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10479   (exit $ac_status); }; }; then
10480   ac_hi=$ac_mid
10481 else
10482   echo "$as_me: failed program was:" >&5
10483 sed 's/^/| /' conftest.$ac_ext >&5
10484
10485 ac_lo=`expr '(' $ac_mid ')' + 1`
10486 fi
10487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10488 done
10489 case $ac_lo in
10490 ?*) OMP_NEST_LOCK_ALIGN=$ac_lo;;
10491 '')  ;;
10492 esac
10493 else
10494   if test "$cross_compiling" = yes; then
10495   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
10496 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
10497    { (exit 1); exit 1; }; }
10498 else
10499   cat >conftest.$ac_ext <<_ACEOF
10500 /* confdefs.h.  */
10501 _ACEOF
10502 cat confdefs.h >>conftest.$ac_ext
10503 cat >>conftest.$ac_ext <<_ACEOF
10504 /* end confdefs.h.  */
10505
10506 long longval () { return __alignof (omp_nest_lock_t); }
10507 unsigned long ulongval () { return __alignof (omp_nest_lock_t); }
10508 #include <stdio.h>
10509 #include <stdlib.h>
10510 int
10511 main ()
10512 {
10513
10514   FILE *f = fopen ("conftest.val", "w");
10515   if (! f)
10516     exit (1);
10517   if ((__alignof (omp_nest_lock_t)) < 0)
10518     {
10519       long i = longval ();
10520       if (i != (__alignof (omp_nest_lock_t)))
10521         exit (1);
10522       fprintf (f, "%ld\n", i);
10523     }
10524   else
10525     {
10526       unsigned long i = ulongval ();
10527       if (i != (__alignof (omp_nest_lock_t)))
10528         exit (1);
10529       fprintf (f, "%lu\n", i);
10530     }
10531   exit (ferror (f) || fclose (f) != 0);
10532
10533   ;
10534   return 0;
10535 }
10536 _ACEOF
10537 rm -f conftest$ac_exeext
10538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10539   (eval $ac_link) 2>&5
10540   ac_status=$?
10541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10542   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10544   (eval $ac_try) 2>&5
10545   ac_status=$?
10546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10547   (exit $ac_status); }; }; then
10548   OMP_NEST_LOCK_ALIGN=`cat conftest.val`
10549 else
10550   echo "$as_me: program exited with status $ac_status" >&5
10551 echo "$as_me: failed program was:" >&5
10552 sed 's/^/| /' conftest.$ac_ext >&5
10553
10554 fi
10555 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10556 fi
10557 fi
10558 rm -f conftest.val
10559
10560 # If the lock fits in an integer, then arrange for Fortran to use that
10561 # integer.  If it doesn't, then arrange for Fortran to use a pointer.
10562 # Except that we don't have a way at present to multi-lib the installed
10563 # Fortran modules, so we assume 8 bytes for pointers, regardless of the
10564 # actual target.
10565 OMP_LOCK_KIND=$OMP_LOCK_SIZE
10566 OMP_NEST_LOCK_KIND=$OMP_NEST_LOCK_SIZE
10567 if test $OMP_LOCK_SIZE -gt 8 || test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then
10568   OMP_LOCK_KIND=8
10569 fi
10570 if test $OMP_NEST_LOCK_SIZE -gt 8 || test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then
10571   OMP_NEST_LOCK_KIND=8
10572 fi
10573
10574
10575
10576
10577
10578
10579
10580 CFLAGS="$save_CFLAGS"
10581
10582                                         ac_config_files="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h"
10583
10584                               ac_config_files="$ac_config_files Makefile testsuite/Makefile libgomp.spec"
10585
10586 cat >confcache <<\_ACEOF
10587 # This file is a shell script that caches the results of configure
10588 # tests run on this system so they can be shared between configure
10589 # scripts and configure runs, see configure's option --config-cache.
10590 # It is not useful on other systems.  If it contains results you don't
10591 # want to keep, you may remove or edit it.
10592 #
10593 # config.status only pays attention to the cache file if you give it
10594 # the --recheck option to rerun configure.
10595 #
10596 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10597 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10598 # following values.
10599
10600 _ACEOF
10601
10602 # The following way of writing the cache mishandles newlines in values,
10603 # but we know of no workaround that is simple, portable, and efficient.
10604 # So, don't put newlines in cache variables' values.
10605 # Ultrix sh set writes to stderr and can't be redirected directly,
10606 # and sets the high bit in the cache file unless we assign to the vars.
10607 {
10608   (set) 2>&1 |
10609     case `(ac_space=' '; set | grep ac_space) 2>&1` in
10610     *ac_space=\ *)
10611       # `set' does not quote correctly, so add quotes (double-quote
10612       # substitution turns \\\\ into \\, and sed turns \\ into \).
10613       sed -n \
10614         "s/'/'\\\\''/g;
10615           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10616       ;;
10617     *)
10618       # `set' quotes correctly as required by POSIX, so do not add quotes.
10619       sed -n \
10620         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10621       ;;
10622     esac;
10623 } |
10624   sed '
10625      t clear
10626      : clear
10627      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10628      t end
10629      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10630      : end' >>confcache
10631 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10632   if test -w $cache_file; then
10633     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10634     cat confcache >$cache_file
10635   else
10636     echo "not updating unwritable cache $cache_file"
10637   fi
10638 fi
10639 rm -f confcache
10640
10641 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10642 # Let make expand exec_prefix.
10643 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10644
10645 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10646 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10647 # trailing colons and then remove the whole line if VPATH becomes empty
10648 # (actually we leave an empty line to preserve line numbers).
10649 if test "x$srcdir" = x.; then
10650   ac_vpsub='/^[  ]*VPATH[        ]*=/{
10651 s/:*\$(srcdir):*/:/;
10652 s/:*\${srcdir}:*/:/;
10653 s/:*@srcdir@:*/:/;
10654 s/^\([^=]*=[     ]*\):*/\1/;
10655 s/:*$//;
10656 s/^[^=]*=[       ]*$//;
10657 }'
10658 fi
10659
10660 DEFS=-DHAVE_CONFIG_H
10661
10662 ac_libobjs=
10663 ac_ltlibobjs=
10664 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10665   # 1. Remove the extension, and $U if already installed.
10666   ac_i=`echo "$ac_i" |
10667          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10668   # 2. Add them.
10669   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10670   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10671 done
10672 LIBOBJS=$ac_libobjs
10673
10674 LTLIBOBJS=$ac_ltlibobjs
10675
10676
10677 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10678   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
10679 Usually this means the macro was only invoked conditionally." >&5
10680 echo "$as_me: error: conditional \"AMDEP\" was never defined.
10681 Usually this means the macro was only invoked conditionally." >&2;}
10682    { (exit 1); exit 1; }; }
10683 fi
10684 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10685   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10686 Usually this means the macro was only invoked conditionally." >&5
10687 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10688 Usually this means the macro was only invoked conditionally." >&2;}
10689    { (exit 1); exit 1; }; }
10690 fi
10691 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10692   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
10693 Usually this means the macro was only invoked conditionally." >&5
10694 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
10695 Usually this means the macro was only invoked conditionally." >&2;}
10696    { (exit 1); exit 1; }; }
10697 fi
10698 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then
10699   { { echo "$as_me:$LINENO: error: conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
10700 Usually this means the macro was only invoked conditionally." >&5
10701 echo "$as_me: error: conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
10702 Usually this means the macro was only invoked conditionally." >&2;}
10703    { (exit 1); exit 1; }; }
10704 fi
10705 if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then
10706   { { echo "$as_me:$LINENO: error: conditional \"USE_FORTRAN\" was never defined.
10707 Usually this means the macro was only invoked conditionally." >&5
10708 echo "$as_me: error: conditional \"USE_FORTRAN\" was never defined.
10709 Usually this means the macro was only invoked conditionally." >&2;}
10710    { (exit 1); exit 1; }; }
10711 fi
10712
10713 : ${CONFIG_STATUS=./config.status}
10714 ac_clean_files_save=$ac_clean_files
10715 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10716 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10717 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10718 cat >$CONFIG_STATUS <<_ACEOF
10719 #! $SHELL
10720 # Generated by $as_me.
10721 # Run this file to recreate the current configuration.
10722 # Compiler output produced by configure, useful for debugging
10723 # configure, is in config.log if it exists.
10724
10725 debug=false
10726 ac_cs_recheck=false
10727 ac_cs_silent=false
10728 SHELL=\${CONFIG_SHELL-$SHELL}
10729 _ACEOF
10730
10731 cat >>$CONFIG_STATUS <<\_ACEOF
10732 ## --------------------- ##
10733 ## M4sh Initialization.  ##
10734 ## --------------------- ##
10735
10736 # Be Bourne compatible
10737 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10738   emulate sh
10739   NULLCMD=:
10740   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10741   # is contrary to our usage.  Disable this feature.
10742   alias -g '${1+"$@"}'='"$@"'
10743 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10744   set -o posix
10745 fi
10746 DUALCASE=1; export DUALCASE # for MKS sh
10747
10748 # Support unset when possible.
10749 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10750   as_unset=unset
10751 else
10752   as_unset=false
10753 fi
10754
10755
10756 # Work around bugs in pre-3.0 UWIN ksh.
10757 $as_unset ENV MAIL MAILPATH
10758 PS1='$ '
10759 PS2='> '
10760 PS4='+ '
10761
10762 # NLS nuisances.
10763 for as_var in \
10764   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10765   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10766   LC_TELEPHONE LC_TIME
10767 do
10768   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10769     eval $as_var=C; export $as_var
10770   else
10771     $as_unset $as_var
10772   fi
10773 done
10774
10775 # Required to use basename.
10776 if expr a : '\(a\)' >/dev/null 2>&1; then
10777   as_expr=expr
10778 else
10779   as_expr=false
10780 fi
10781
10782 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10783   as_basename=basename
10784 else
10785   as_basename=false
10786 fi
10787
10788
10789 # Name of the executable.
10790 as_me=`$as_basename "$0" ||
10791 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10792          X"$0" : 'X\(//\)$' \| \
10793          X"$0" : 'X\(/\)$' \| \
10794          .     : '\(.\)' 2>/dev/null ||
10795 echo X/"$0" |
10796     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10797           /^X\/\(\/\/\)$/{ s//\1/; q; }
10798           /^X\/\(\/\).*/{ s//\1/; q; }
10799           s/.*/./; q'`
10800
10801
10802 # PATH needs CR, and LINENO needs CR and PATH.
10803 # Avoid depending upon Character Ranges.
10804 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10805 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10806 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10807 as_cr_digits='0123456789'
10808 as_cr_alnum=$as_cr_Letters$as_cr_digits
10809
10810 # The user is always right.
10811 if test "${PATH_SEPARATOR+set}" != set; then
10812   echo "#! /bin/sh" >conf$$.sh
10813   echo  "exit 0"   >>conf$$.sh
10814   chmod +x conf$$.sh
10815   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10816     PATH_SEPARATOR=';'
10817   else
10818     PATH_SEPARATOR=:
10819   fi
10820   rm -f conf$$.sh
10821 fi
10822
10823
10824   as_lineno_1=$LINENO
10825   as_lineno_2=$LINENO
10826   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10827   test "x$as_lineno_1" != "x$as_lineno_2" &&
10828   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
10829   # Find who we are.  Look in the path if we contain no path at all
10830   # relative or not.
10831   case $0 in
10832     *[\\/]* ) as_myself=$0 ;;
10833     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10834 for as_dir in $PATH
10835 do
10836   IFS=$as_save_IFS
10837   test -z "$as_dir" && as_dir=.
10838   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10839 done
10840
10841        ;;
10842   esac
10843   # We did not find ourselves, most probably we were run as `sh COMMAND'
10844   # in which case we are not to be found in the path.
10845   if test "x$as_myself" = x; then
10846     as_myself=$0
10847   fi
10848   if test ! -f "$as_myself"; then
10849     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
10850 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
10851    { (exit 1); exit 1; }; }
10852   fi
10853   case $CONFIG_SHELL in
10854   '')
10855     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10856 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
10857 do
10858   IFS=$as_save_IFS
10859   test -z "$as_dir" && as_dir=.
10860   for as_base in sh bash ksh sh5; do
10861          case $as_dir in
10862          /*)
10863            if ("$as_dir/$as_base" -c '
10864   as_lineno_1=$LINENO
10865   as_lineno_2=$LINENO
10866   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10867   test "x$as_lineno_1" != "x$as_lineno_2" &&
10868   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
10869              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
10870              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
10871              CONFIG_SHELL=$as_dir/$as_base
10872              export CONFIG_SHELL
10873              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
10874            fi;;
10875          esac
10876        done
10877 done
10878 ;;
10879   esac
10880
10881   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10882   # uniformly replaced by the line number.  The first 'sed' inserts a
10883   # line-number line before each line; the second 'sed' does the real
10884   # work.  The second script uses 'N' to pair each line-number line
10885   # with the numbered line, and appends trailing '-' during
10886   # substitution so that $LINENO is not a special case at line end.
10887   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10888   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
10889   sed '=' <$as_myself |
10890     sed '
10891       N
10892       s,$,-,
10893       : loop
10894       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
10895       t loop
10896       s,-$,,
10897       s,^['$as_cr_digits']*\n,,
10898     ' >$as_me.lineno &&
10899   chmod +x $as_me.lineno ||
10900     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10901 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10902    { (exit 1); exit 1; }; }
10903
10904   # Don't try to exec as it changes $[0], causing all sort of problems
10905   # (the dirname of $[0] is not the place where we might find the
10906   # original and so on.  Autoconf is especially sensible to this).
10907   . ./$as_me.lineno
10908   # Exit status is that of the last command.
10909   exit
10910 }
10911
10912
10913 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10914   *c*,-n*) ECHO_N= ECHO_C='
10915 ' ECHO_T='      ' ;;
10916   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
10917   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
10918 esac
10919
10920 if expr a : '\(a\)' >/dev/null 2>&1; then
10921   as_expr=expr
10922 else
10923   as_expr=false
10924 fi
10925
10926 rm -f conf$$ conf$$.exe conf$$.file
10927 echo >conf$$.file
10928 if ln -s conf$$.file conf$$ 2>/dev/null; then
10929   # We could just check for DJGPP; but this test a) works b) is more generic
10930   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10931   if test -f conf$$.exe; then
10932     # Don't use ln at all; we don't have any links
10933     as_ln_s='cp -p'
10934   else
10935     as_ln_s='ln -s'
10936   fi
10937 elif ln conf$$.file conf$$ 2>/dev/null; then
10938   as_ln_s=ln
10939 else
10940   as_ln_s='cp -p'
10941 fi
10942 rm -f conf$$ conf$$.exe conf$$.file
10943
10944 if mkdir -p . 2>/dev/null; then
10945   as_mkdir_p=:
10946 else
10947   test -d ./-p && rmdir ./-p
10948   as_mkdir_p=false
10949 fi
10950
10951 as_executable_p="test -f"
10952
10953 # Sed expression to map a string onto a valid CPP name.
10954 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10955
10956 # Sed expression to map a string onto a valid variable name.
10957 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10958
10959
10960 # IFS
10961 # We need space, tab and new line, in precisely that order.
10962 as_nl='
10963 '
10964 IFS="   $as_nl"
10965
10966 # CDPATH.
10967 $as_unset CDPATH
10968
10969 exec 6>&1
10970
10971 # Open the log real soon, to keep \$[0] and so on meaningful, and to
10972 # report actual input values of CONFIG_FILES etc. instead of their
10973 # values after options handling.  Logging --version etc. is OK.
10974 exec 5>>config.log
10975 {
10976   echo
10977   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10978 ## Running $as_me. ##
10979 _ASBOX
10980 } >&5
10981 cat >&5 <<_CSEOF
10982
10983 This file was extended by GNU OpenMP Runtime Library $as_me 1.0, which was
10984 generated by GNU Autoconf 2.59.  Invocation command line was
10985
10986   CONFIG_FILES    = $CONFIG_FILES
10987   CONFIG_HEADERS  = $CONFIG_HEADERS
10988   CONFIG_LINKS    = $CONFIG_LINKS
10989   CONFIG_COMMANDS = $CONFIG_COMMANDS
10990   $ $0 $@
10991
10992 _CSEOF
10993 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10994 echo >&5
10995 _ACEOF
10996
10997 # Files that config.status was made for.
10998 if test -n "$ac_config_files"; then
10999   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11000 fi
11001
11002 if test -n "$ac_config_headers"; then
11003   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11004 fi
11005
11006 if test -n "$ac_config_links"; then
11007   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11008 fi
11009
11010 if test -n "$ac_config_commands"; then
11011   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11012 fi
11013
11014 cat >>$CONFIG_STATUS <<\_ACEOF
11015
11016 ac_cs_usage="\
11017 \`$as_me' instantiates files from templates according to the
11018 current configuration.
11019
11020 Usage: $0 [OPTIONS] [FILE]...
11021
11022   -h, --help       print this help, then exit
11023   -V, --version    print version number, then exit
11024   -q, --quiet      do not print progress messages
11025   -d, --debug      don't remove temporary files
11026       --recheck    update $as_me by reconfiguring in the same conditions
11027   --file=FILE[:TEMPLATE]
11028                    instantiate the configuration file FILE
11029   --header=FILE[:TEMPLATE]
11030                    instantiate the configuration header FILE
11031
11032 Configuration files:
11033 $config_files
11034
11035 Configuration headers:
11036 $config_headers
11037
11038 Configuration commands:
11039 $config_commands
11040
11041 Report bugs to <bug-autoconf@gnu.org>."
11042 _ACEOF
11043
11044 cat >>$CONFIG_STATUS <<_ACEOF
11045 ac_cs_version="\\
11046 GNU OpenMP Runtime Library config.status 1.0
11047 configured by $0, generated by GNU Autoconf 2.59,
11048   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11049
11050 Copyright (C) 2003 Free Software Foundation, Inc.
11051 This config.status script is free software; the Free Software Foundation
11052 gives unlimited permission to copy, distribute and modify it."
11053 srcdir=$srcdir
11054 INSTALL="$INSTALL"
11055 _ACEOF
11056
11057 cat >>$CONFIG_STATUS <<\_ACEOF
11058 # If no file are specified by the user, then we need to provide default
11059 # value.  By we need to know if files were specified by the user.
11060 ac_need_defaults=:
11061 while test $# != 0
11062 do
11063   case $1 in
11064   --*=*)
11065     ac_option=`expr "x$1" : 'x\([^=]*\)='`
11066     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11067     ac_shift=:
11068     ;;
11069   -*)
11070     ac_option=$1
11071     ac_optarg=$2
11072     ac_shift=shift
11073     ;;
11074   *) # This is not an option, so the user has probably given explicit
11075      # arguments.
11076      ac_option=$1
11077      ac_need_defaults=false;;
11078   esac
11079
11080   case $ac_option in
11081   # Handling of the options.
11082 _ACEOF
11083 cat >>$CONFIG_STATUS <<\_ACEOF
11084   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11085     ac_cs_recheck=: ;;
11086   --version | --vers* | -V )
11087     echo "$ac_cs_version"; exit 0 ;;
11088   --he | --h)
11089     # Conflict between --help and --header
11090     { { echo "$as_me:$LINENO: error: ambiguous option: $1
11091 Try \`$0 --help' for more information." >&5
11092 echo "$as_me: error: ambiguous option: $1
11093 Try \`$0 --help' for more information." >&2;}
11094    { (exit 1); exit 1; }; };;
11095   --help | --hel | -h )
11096     echo "$ac_cs_usage"; exit 0 ;;
11097   --debug | --d* | -d )
11098     debug=: ;;
11099   --file | --fil | --fi | --f )
11100     $ac_shift
11101     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11102     ac_need_defaults=false;;
11103   --header | --heade | --head | --hea )
11104     $ac_shift
11105     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11106     ac_need_defaults=false;;
11107   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11108   | -silent | --silent | --silen | --sile | --sil | --si | --s)
11109     ac_cs_silent=: ;;
11110
11111   # This is an error.
11112   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11113 Try \`$0 --help' for more information." >&5
11114 echo "$as_me: error: unrecognized option: $1
11115 Try \`$0 --help' for more information." >&2;}
11116    { (exit 1); exit 1; }; } ;;
11117
11118   *) ac_config_targets="$ac_config_targets $1" ;;
11119
11120   esac
11121   shift
11122 done
11123
11124 ac_configure_extra_args=
11125
11126 if $ac_cs_silent; then
11127   exec 6>/dev/null
11128   ac_configure_extra_args="$ac_configure_extra_args --silent"
11129 fi
11130
11131 _ACEOF
11132 cat >>$CONFIG_STATUS <<_ACEOF
11133 if \$ac_cs_recheck; then
11134   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11135   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11136 fi
11137
11138 _ACEOF
11139
11140 cat >>$CONFIG_STATUS <<_ACEOF
11141 #
11142 # INIT-COMMANDS section.
11143 #
11144
11145
11146 srcdir="$srcdir"
11147 host="$host"
11148 target="$target"
11149 with_multisubdir="$with_multisubdir"
11150 with_multisrctop="$with_multisrctop"
11151 with_target_subdir="$with_target_subdir"
11152 ac_configure_args="${multilib_arg} ${ac_configure_args}"
11153 multi_basedir="$multi_basedir"
11154 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
11155 CC="$CC"
11156 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11157
11158 GCC="$GCC"
11159 CC="$CC"
11160 acx_cv_header_stdint="$acx_cv_header_stdint"
11161 acx_cv_type_int8_t="$acx_cv_type_int8_t"
11162 acx_cv_type_int16_t="$acx_cv_type_int16_t"
11163 acx_cv_type_int32_t="$acx_cv_type_int32_t"
11164 acx_cv_type_int64_t="$acx_cv_type_int64_t"
11165 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
11166 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
11167 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
11168 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
11169 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
11170 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
11171 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
11172 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
11173 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
11174
11175
11176 _ACEOF
11177
11178
11179
11180 cat >>$CONFIG_STATUS <<\_ACEOF
11181 for ac_config_target in $ac_config_targets
11182 do
11183   case "$ac_config_target" in
11184   # Handling of arguments.
11185   "omp.h" ) CONFIG_FILES="$CONFIG_FILES omp.h" ;;
11186   "omp_lib.h" ) CONFIG_FILES="$CONFIG_FILES omp_lib.h" ;;
11187   "omp_lib.f90" ) CONFIG_FILES="$CONFIG_FILES omp_lib.f90" ;;
11188   "libgomp_f.h" ) CONFIG_FILES="$CONFIG_FILES libgomp_f.h" ;;
11189   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11190   "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
11191   "libgomp.spec" ) CONFIG_FILES="$CONFIG_FILES libgomp.spec" ;;
11192   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
11193   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11194   "gstdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
11195   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11196   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11197 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11198    { (exit 1); exit 1; }; };;
11199   esac
11200 done
11201
11202 # If the user did not use the arguments to specify the items to instantiate,
11203 # then the envvar interface is used.  Set only those that are not.
11204 # We use the long form for the default assignment because of an extremely
11205 # bizarre bug on SunOS 4.1.3.
11206 if $ac_need_defaults; then
11207   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11208   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11209   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11210 fi
11211
11212 # Have a temporary directory for convenience.  Make it in the build tree
11213 # simply because there is no reason to put it here, and in addition,
11214 # creating and moving files from /tmp can sometimes cause problems.
11215 # Create a temporary directory, and hook for its removal unless debugging.
11216 $debug ||
11217 {
11218   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11219   trap '{ (exit 1); exit 1; }' 1 2 13 15
11220 }
11221
11222 # Create a (secure) tmp directory for tmp files.
11223
11224 {
11225   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11226   test -n "$tmp" && test -d "$tmp"
11227 }  ||
11228 {
11229   tmp=./confstat$$-$RANDOM
11230   (umask 077 && mkdir $tmp)
11231 } ||
11232 {
11233    echo "$me: cannot create a temporary directory in ." >&2
11234    { (exit 1); exit 1; }
11235 }
11236
11237 _ACEOF
11238
11239 cat >>$CONFIG_STATUS <<_ACEOF
11240
11241 #
11242 # CONFIG_FILES section.
11243 #
11244
11245 # No need to generate the scripts if there are no CONFIG_FILES.
11246 # This happens for instance when ./config.status config.h
11247 if test -n "\$CONFIG_FILES"; then
11248   # Protect against being on the right side of a sed subst in config.status.
11249   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11250    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11251 s,@SHELL@,$SHELL,;t t
11252 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11253 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11254 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11255 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11256 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11257 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11258 s,@exec_prefix@,$exec_prefix,;t t
11259 s,@prefix@,$prefix,;t t
11260 s,@program_transform_name@,$program_transform_name,;t t
11261 s,@bindir@,$bindir,;t t
11262 s,@sbindir@,$sbindir,;t t
11263 s,@libexecdir@,$libexecdir,;t t
11264 s,@datadir@,$datadir,;t t
11265 s,@sysconfdir@,$sysconfdir,;t t
11266 s,@sharedstatedir@,$sharedstatedir,;t t
11267 s,@localstatedir@,$localstatedir,;t t
11268 s,@libdir@,$libdir,;t t
11269 s,@includedir@,$includedir,;t t
11270 s,@oldincludedir@,$oldincludedir,;t t
11271 s,@infodir@,$infodir,;t t
11272 s,@mandir@,$mandir,;t t
11273 s,@build_alias@,$build_alias,;t t
11274 s,@host_alias@,$host_alias,;t t
11275 s,@target_alias@,$target_alias,;t t
11276 s,@DEFS@,$DEFS,;t t
11277 s,@ECHO_C@,$ECHO_C,;t t
11278 s,@ECHO_N@,$ECHO_N,;t t
11279 s,@ECHO_T@,$ECHO_T,;t t
11280 s,@LIBS@,$LIBS,;t t
11281 s,@build@,$build,;t t
11282 s,@build_cpu@,$build_cpu,;t t
11283 s,@build_vendor@,$build_vendor,;t t
11284 s,@build_os@,$build_os,;t t
11285 s,@host@,$host,;t t
11286 s,@host_cpu@,$host_cpu,;t t
11287 s,@host_vendor@,$host_vendor,;t t
11288 s,@host_os@,$host_os,;t t
11289 s,@target@,$target,;t t
11290 s,@target_cpu@,$target_cpu,;t t
11291 s,@target_vendor@,$target_vendor,;t t
11292 s,@target_os@,$target_os,;t t
11293 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11294 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11295 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11296 s,@CYGPATH_W@,$CYGPATH_W,;t t
11297 s,@PACKAGE@,$PACKAGE,;t t
11298 s,@VERSION@,$VERSION,;t t
11299 s,@ACLOCAL@,$ACLOCAL,;t t
11300 s,@AUTOCONF@,$AUTOCONF,;t t
11301 s,@AUTOMAKE@,$AUTOMAKE,;t t
11302 s,@AUTOHEADER@,$AUTOHEADER,;t t
11303 s,@MAKEINFO@,$MAKEINFO,;t t
11304 s,@install_sh@,$install_sh,;t t
11305 s,@STRIP@,$STRIP,;t t
11306 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
11307 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
11308 s,@mkdir_p@,$mkdir_p,;t t
11309 s,@AWK@,$AWK,;t t
11310 s,@SET_MAKE@,$SET_MAKE,;t t
11311 s,@am__leading_dot@,$am__leading_dot,;t t
11312 s,@AMTAR@,$AMTAR,;t t
11313 s,@am__tar@,$am__tar,;t t
11314 s,@am__untar@,$am__untar,;t t
11315 s,@multi_basedir@,$multi_basedir,;t t
11316 s,@toolexecdir@,$toolexecdir,;t t
11317 s,@toolexeclibdir@,$toolexeclibdir,;t t
11318 s,@CC@,$CC,;t t
11319 s,@ac_ct_CC@,$ac_ct_CC,;t t
11320 s,@EXEEXT@,$EXEEXT,;t t
11321 s,@OBJEXT@,$OBJEXT,;t t
11322 s,@DEPDIR@,$DEPDIR,;t t
11323 s,@am__include@,$am__include,;t t
11324 s,@am__quote@,$am__quote,;t t
11325 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
11326 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
11327 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
11328 s,@CCDEPMODE@,$CCDEPMODE,;t t
11329 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
11330 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
11331 s,@CFLAGS@,$CFLAGS,;t t
11332 s,@AR@,$AR,;t t
11333 s,@ac_ct_AR@,$ac_ct_AR,;t t
11334 s,@RANLIB@,$RANLIB,;t t
11335 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11336 s,@PERL@,$PERL,;t t
11337 s,@LN_S@,$LN_S,;t t
11338 s,@LIBTOOL@,$LIBTOOL,;t t
11339 s,@enable_shared@,$enable_shared,;t t
11340 s,@enable_static@,$enable_static,;t t
11341 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
11342 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
11343 s,@MAINT@,$MAINT,;t t
11344 s,@FC@,$FC,;t t
11345 s,@FCFLAGS@,$FCFLAGS,;t t
11346 s,@LDFLAGS@,$LDFLAGS,;t t
11347 s,@ac_ct_FC@,$ac_ct_FC,;t t
11348 s,@libtool_VERSION@,$libtool_VERSION,;t t
11349 s,@CPP@,$CPP,;t t
11350 s,@CPPFLAGS@,$CPPFLAGS,;t t
11351 s,@EGREP@,$EGREP,;t t
11352 s,@SECTION_LDFLAGS@,$SECTION_LDFLAGS,;t t
11353 s,@OPT_LDFLAGS@,$OPT_LDFLAGS,;t t
11354 s,@LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE@,$LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE,;t t
11355 s,@LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE@,$LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE,;t t
11356 s,@config_path@,$config_path,;t t
11357 s,@XCFLAGS@,$XCFLAGS,;t t
11358 s,@XLDFLAGS@,$XLDFLAGS,;t t
11359 s,@link_gomp@,$link_gomp,;t t
11360 s,@USE_FORTRAN_TRUE@,$USE_FORTRAN_TRUE,;t t
11361 s,@USE_FORTRAN_FALSE@,$USE_FORTRAN_FALSE,;t t
11362 s,@OMP_LOCK_SIZE@,$OMP_LOCK_SIZE,;t t
11363 s,@OMP_LOCK_ALIGN@,$OMP_LOCK_ALIGN,;t t
11364 s,@OMP_NEST_LOCK_SIZE@,$OMP_NEST_LOCK_SIZE,;t t
11365 s,@OMP_NEST_LOCK_ALIGN@,$OMP_NEST_LOCK_ALIGN,;t t
11366 s,@OMP_LOCK_KIND@,$OMP_LOCK_KIND,;t t
11367 s,@OMP_NEST_LOCK_KIND@,$OMP_NEST_LOCK_KIND,;t t
11368 s,@LIBOBJS@,$LIBOBJS,;t t
11369 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11370 CEOF
11371
11372 _ACEOF
11373
11374   cat >>$CONFIG_STATUS <<\_ACEOF
11375   # Split the substitutions into bite-sized pieces for seds with
11376   # small command number limits, like on Digital OSF/1 and HP-UX.
11377   ac_max_sed_lines=48
11378   ac_sed_frag=1 # Number of current file.
11379   ac_beg=1 # First line for current file.
11380   ac_end=$ac_max_sed_lines # Line after last line for current file.
11381   ac_more_lines=:
11382   ac_sed_cmds=
11383   while $ac_more_lines; do
11384     if test $ac_beg -gt 1; then
11385       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11386     else
11387       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11388     fi
11389     if test ! -s $tmp/subs.frag; then
11390       ac_more_lines=false
11391     else
11392       # The purpose of the label and of the branching condition is to
11393       # speed up the sed processing (if there are no `@' at all, there
11394       # is no need to browse any of the substitutions).
11395       # These are the two extra sed commands mentioned above.
11396       (echo ':t
11397   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11398       if test -z "$ac_sed_cmds"; then
11399         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11400       else
11401         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11402       fi
11403       ac_sed_frag=`expr $ac_sed_frag + 1`
11404       ac_beg=$ac_end
11405       ac_end=`expr $ac_end + $ac_max_sed_lines`
11406     fi
11407   done
11408   if test -z "$ac_sed_cmds"; then
11409     ac_sed_cmds=cat
11410   fi
11411 fi # test -n "$CONFIG_FILES"
11412
11413 _ACEOF
11414 cat >>$CONFIG_STATUS <<\_ACEOF
11415 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11416   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11417   case $ac_file in
11418   - | *:- | *:-:* ) # input from stdin
11419         cat >$tmp/stdin
11420         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11421         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11422   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11423         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11424   * )   ac_file_in=$ac_file.in ;;
11425   esac
11426
11427   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11428   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11429 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11430          X"$ac_file" : 'X\(//\)[^/]' \| \
11431          X"$ac_file" : 'X\(//\)$' \| \
11432          X"$ac_file" : 'X\(/\)' \| \
11433          .     : '\(.\)' 2>/dev/null ||
11434 echo X"$ac_file" |
11435     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11436           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11437           /^X\(\/\/\)$/{ s//\1/; q; }
11438           /^X\(\/\).*/{ s//\1/; q; }
11439           s/.*/./; q'`
11440   { if $as_mkdir_p; then
11441     mkdir -p "$ac_dir"
11442   else
11443     as_dir="$ac_dir"
11444     as_dirs=
11445     while test ! -d "$as_dir"; do
11446       as_dirs="$as_dir $as_dirs"
11447       as_dir=`(dirname "$as_dir") 2>/dev/null ||
11448 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11449          X"$as_dir" : 'X\(//\)[^/]' \| \
11450          X"$as_dir" : 'X\(//\)$' \| \
11451          X"$as_dir" : 'X\(/\)' \| \
11452          .     : '\(.\)' 2>/dev/null ||
11453 echo X"$as_dir" |
11454     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11455           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11456           /^X\(\/\/\)$/{ s//\1/; q; }
11457           /^X\(\/\).*/{ s//\1/; q; }
11458           s/.*/./; q'`
11459     done
11460     test ! -n "$as_dirs" || mkdir $as_dirs
11461   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11462 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11463    { (exit 1); exit 1; }; }; }
11464
11465   ac_builddir=.
11466
11467 if test "$ac_dir" != .; then
11468   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11469   # A "../" for each directory in $ac_dir_suffix.
11470   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11471 else
11472   ac_dir_suffix= ac_top_builddir=
11473 fi
11474
11475 case $srcdir in
11476   .)  # No --srcdir option.  We are building in place.
11477     ac_srcdir=.
11478     if test -z "$ac_top_builddir"; then
11479        ac_top_srcdir=.
11480     else
11481        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11482     fi ;;
11483   [\\/]* | ?:[\\/]* )  # Absolute path.
11484     ac_srcdir=$srcdir$ac_dir_suffix;
11485     ac_top_srcdir=$srcdir ;;
11486   *) # Relative path.
11487     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11488     ac_top_srcdir=$ac_top_builddir$srcdir ;;
11489 esac
11490
11491 # Do not use `cd foo && pwd` to compute absolute paths, because
11492 # the directories may not exist.
11493 case `pwd` in
11494 .) ac_abs_builddir="$ac_dir";;
11495 *)
11496   case "$ac_dir" in
11497   .) ac_abs_builddir=`pwd`;;
11498   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11499   *) ac_abs_builddir=`pwd`/"$ac_dir";;
11500   esac;;
11501 esac
11502 case $ac_abs_builddir in
11503 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11504 *)
11505   case ${ac_top_builddir}. in
11506   .) ac_abs_top_builddir=$ac_abs_builddir;;
11507   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11508   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11509   esac;;
11510 esac
11511 case $ac_abs_builddir in
11512 .) ac_abs_srcdir=$ac_srcdir;;
11513 *)
11514   case $ac_srcdir in
11515   .) ac_abs_srcdir=$ac_abs_builddir;;
11516   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11517   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11518   esac;;
11519 esac
11520 case $ac_abs_builddir in
11521 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11522 *)
11523   case $ac_top_srcdir in
11524   .) ac_abs_top_srcdir=$ac_abs_builddir;;
11525   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11526   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11527   esac;;
11528 esac
11529
11530
11531   case $INSTALL in
11532   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11533   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11534   esac
11535
11536   # Let's still pretend it is `configure' which instantiates (i.e., don't
11537   # use $as_me), people would be surprised to read:
11538   #    /* config.h.  Generated by config.status.  */
11539   if test x"$ac_file" = x-; then
11540     configure_input=
11541   else
11542     configure_input="$ac_file.  "
11543   fi
11544   configure_input=$configure_input"Generated from `echo $ac_file_in |
11545                                      sed 's,.*/,,'` by configure."
11546
11547   # First look for the input files in the build tree, otherwise in the
11548   # src tree.
11549   ac_file_inputs=`IFS=:
11550     for f in $ac_file_in; do
11551       case $f in
11552       -) echo $tmp/stdin ;;
11553       [\\/$]*)
11554          # Absolute (can't be DOS-style, as IFS=:)
11555          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11556 echo "$as_me: error: cannot find input file: $f" >&2;}
11557    { (exit 1); exit 1; }; }
11558          echo "$f";;
11559       *) # Relative
11560          if test -f "$f"; then
11561            # Build tree
11562            echo "$f"
11563          elif test -f "$srcdir/$f"; then
11564            # Source tree
11565            echo "$srcdir/$f"
11566          else
11567            # /dev/null tree
11568            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11569 echo "$as_me: error: cannot find input file: $f" >&2;}
11570    { (exit 1); exit 1; }; }
11571          fi;;
11572       esac
11573     done` || { (exit 1); exit 1; }
11574
11575   if test x"$ac_file" != x-; then
11576     { echo "$as_me:$LINENO: creating $ac_file" >&5
11577 echo "$as_me: creating $ac_file" >&6;}
11578     rm -f "$ac_file"
11579   fi
11580 _ACEOF
11581 cat >>$CONFIG_STATUS <<_ACEOF
11582   sed "$ac_vpsub
11583 $extrasub
11584 _ACEOF
11585 cat >>$CONFIG_STATUS <<\_ACEOF
11586 :t
11587 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11588 s,@configure_input@,$configure_input,;t t
11589 s,@srcdir@,$ac_srcdir,;t t
11590 s,@abs_srcdir@,$ac_abs_srcdir,;t t
11591 s,@top_srcdir@,$ac_top_srcdir,;t t
11592 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11593 s,@builddir@,$ac_builddir,;t t
11594 s,@abs_builddir@,$ac_abs_builddir,;t t
11595 s,@top_builddir@,$ac_top_builddir,;t t
11596 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11597 s,@INSTALL@,$ac_INSTALL,;t t
11598 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11599   rm -f $tmp/stdin
11600   if test x"$ac_file" != x-; then
11601     mv $tmp/out $ac_file
11602   else
11603     cat $tmp/out
11604     rm -f $tmp/out
11605   fi
11606
11607 done
11608 _ACEOF
11609 cat >>$CONFIG_STATUS <<\_ACEOF
11610
11611 #
11612 # CONFIG_HEADER section.
11613 #
11614
11615 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11616 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11617 #
11618 # ac_d sets the value in "#define NAME VALUE" lines.
11619 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
11620 ac_dB='[         ].*$,\1#\2'
11621 ac_dC=' '
11622 ac_dD=',;t'
11623 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11624 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
11625 ac_uB='$,\1#\2define\3'
11626 ac_uC=' '
11627 ac_uD=',;t'
11628
11629 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11630   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11631   case $ac_file in
11632   - | *:- | *:-:* ) # input from stdin
11633         cat >$tmp/stdin
11634         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11635         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11636   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11637         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11638   * )   ac_file_in=$ac_file.in ;;
11639   esac
11640
11641   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11642 echo "$as_me: creating $ac_file" >&6;}
11643
11644   # First look for the input files in the build tree, otherwise in the
11645   # src tree.
11646   ac_file_inputs=`IFS=:
11647     for f in $ac_file_in; do
11648       case $f in
11649       -) echo $tmp/stdin ;;
11650       [\\/$]*)
11651          # Absolute (can't be DOS-style, as IFS=:)
11652          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11653 echo "$as_me: error: cannot find input file: $f" >&2;}
11654    { (exit 1); exit 1; }; }
11655          # Do quote $f, to prevent DOS paths from being IFS'd.
11656          echo "$f";;
11657       *) # Relative
11658          if test -f "$f"; then
11659            # Build tree
11660            echo "$f"
11661          elif test -f "$srcdir/$f"; then
11662            # Source tree
11663            echo "$srcdir/$f"
11664          else
11665            # /dev/null tree
11666            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11667 echo "$as_me: error: cannot find input file: $f" >&2;}
11668    { (exit 1); exit 1; }; }
11669          fi;;
11670       esac
11671     done` || { (exit 1); exit 1; }
11672   # Remove the trailing spaces.
11673   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
11674
11675 _ACEOF
11676
11677 # Transform confdefs.h into two sed scripts, `conftest.defines' and
11678 # `conftest.undefs', that substitutes the proper values into
11679 # config.h.in to produce config.h.  The first handles `#define'
11680 # templates, and the second `#undef' templates.
11681 # And first: Protect against being on the right side of a sed subst in
11682 # config.status.  Protect against being in an unquoted here document
11683 # in config.status.
11684 rm -f conftest.defines conftest.undefs
11685 # Using a here document instead of a string reduces the quoting nightmare.
11686 # Putting comments in sed scripts is not portable.
11687 #
11688 # `end' is used to avoid that the second main sed command (meant for
11689 # 0-ary CPP macros) applies to n-ary macro definitions.
11690 # See the Autoconf documentation for `clear'.
11691 cat >confdef2sed.sed <<\_ACEOF
11692 s/[\\&,]/\\&/g
11693 s,[\\$`],\\&,g
11694 t clear
11695 : clear
11696 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11697 t end
11698 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11699 : end
11700 _ACEOF
11701 # If some macros were called several times there might be several times
11702 # the same #defines, which is useless.  Nevertheless, we may not want to
11703 # sort them, since we want the *last* AC-DEFINE to be honored.
11704 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11705 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11706 rm -f confdef2sed.sed
11707
11708 # This sed command replaces #undef with comments.  This is necessary, for
11709 # example, in the case of _POSIX_SOURCE, which is predefined and required
11710 # on some systems where configure will not decide to define it.
11711 cat >>conftest.undefs <<\_ACEOF
11712 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11713 _ACEOF
11714
11715 # Break up conftest.defines because some shells have a limit on the size
11716 # of here documents, and old seds have small limits too (100 cmds).
11717 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11718 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11719 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11720 echo '  :' >>$CONFIG_STATUS
11721 rm -f conftest.tail
11722 while grep . conftest.defines >/dev/null
11723 do
11724   # Write a limited-size here document to $tmp/defines.sed.
11725   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11726   # Speed up: don't consider the non `#define' lines.
11727   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
11728   # Work around the forget-to-reset-the-flag bug.
11729   echo 't clr' >>$CONFIG_STATUS
11730   echo ': clr' >>$CONFIG_STATUS
11731   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11732   echo 'CEOF
11733   sed -f $tmp/defines.sed $tmp/in >$tmp/out
11734   rm -f $tmp/in
11735   mv $tmp/out $tmp/in
11736 ' >>$CONFIG_STATUS
11737   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11738   rm -f conftest.defines
11739   mv conftest.tail conftest.defines
11740 done
11741 rm -f conftest.defines
11742 echo '  fi # grep' >>$CONFIG_STATUS
11743 echo >>$CONFIG_STATUS
11744
11745 # Break up conftest.undefs because some shells have a limit on the size
11746 # of here documents, and old seds have small limits too (100 cmds).
11747 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
11748 rm -f conftest.tail
11749 while grep . conftest.undefs >/dev/null
11750 do
11751   # Write a limited-size here document to $tmp/undefs.sed.
11752   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11753   # Speed up: don't consider the non `#undef'
11754   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
11755   # Work around the forget-to-reset-the-flag bug.
11756   echo 't clr' >>$CONFIG_STATUS
11757   echo ': clr' >>$CONFIG_STATUS
11758   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11759   echo 'CEOF
11760   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11761   rm -f $tmp/in
11762   mv $tmp/out $tmp/in
11763 ' >>$CONFIG_STATUS
11764   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11765   rm -f conftest.undefs
11766   mv conftest.tail conftest.undefs
11767 done
11768 rm -f conftest.undefs
11769
11770 cat >>$CONFIG_STATUS <<\_ACEOF
11771   # Let's still pretend it is `configure' which instantiates (i.e., don't
11772   # use $as_me), people would be surprised to read:
11773   #    /* config.h.  Generated by config.status.  */
11774   if test x"$ac_file" = x-; then
11775     echo "/* Generated by configure.  */" >$tmp/config.h
11776   else
11777     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
11778   fi
11779   cat $tmp/in >>$tmp/config.h
11780   rm -f $tmp/in
11781   if test x"$ac_file" != x-; then
11782     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
11783       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11784 echo "$as_me: $ac_file is unchanged" >&6;}
11785     else
11786       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11787 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11788          X"$ac_file" : 'X\(//\)[^/]' \| \
11789          X"$ac_file" : 'X\(//\)$' \| \
11790          X"$ac_file" : 'X\(/\)' \| \
11791          .     : '\(.\)' 2>/dev/null ||
11792 echo X"$ac_file" |
11793     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11794           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11795           /^X\(\/\/\)$/{ s//\1/; q; }
11796           /^X\(\/\).*/{ s//\1/; q; }
11797           s/.*/./; q'`
11798       { if $as_mkdir_p; then
11799     mkdir -p "$ac_dir"
11800   else
11801     as_dir="$ac_dir"
11802     as_dirs=
11803     while test ! -d "$as_dir"; do
11804       as_dirs="$as_dir $as_dirs"
11805       as_dir=`(dirname "$as_dir") 2>/dev/null ||
11806 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11807          X"$as_dir" : 'X\(//\)[^/]' \| \
11808          X"$as_dir" : 'X\(//\)$' \| \
11809          X"$as_dir" : 'X\(/\)' \| \
11810          .     : '\(.\)' 2>/dev/null ||
11811 echo X"$as_dir" |
11812     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11813           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11814           /^X\(\/\/\)$/{ s//\1/; q; }
11815           /^X\(\/\).*/{ s//\1/; q; }
11816           s/.*/./; q'`
11817     done
11818     test ! -n "$as_dirs" || mkdir $as_dirs
11819   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11820 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11821    { (exit 1); exit 1; }; }; }
11822
11823       rm -f $ac_file
11824       mv $tmp/config.h $ac_file
11825     fi
11826   else
11827     cat $tmp/config.h
11828     rm -f $tmp/config.h
11829   fi
11830 # Compute $ac_file's index in $config_headers.
11831 _am_stamp_count=1
11832 for _am_header in $config_headers :; do
11833   case $_am_header in
11834     $ac_file | $ac_file:* )
11835       break ;;
11836     * )
11837       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11838   esac
11839 done
11840 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
11841 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11842          X$ac_file : 'X\(//\)[^/]' \| \
11843          X$ac_file : 'X\(//\)$' \| \
11844          X$ac_file : 'X\(/\)' \| \
11845          .     : '\(.\)' 2>/dev/null ||
11846 echo X$ac_file |
11847     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11848           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11849           /^X\(\/\/\)$/{ s//\1/; q; }
11850           /^X\(\/\).*/{ s//\1/; q; }
11851           s/.*/./; q'`/stamp-h$_am_stamp_count
11852 done
11853 _ACEOF
11854 cat >>$CONFIG_STATUS <<\_ACEOF
11855
11856 #
11857 # CONFIG_COMMANDS section.
11858 #
11859 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
11860   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
11861   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
11862   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
11863 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11864          X"$ac_dest" : 'X\(//\)[^/]' \| \
11865          X"$ac_dest" : 'X\(//\)$' \| \
11866          X"$ac_dest" : 'X\(/\)' \| \
11867          .     : '\(.\)' 2>/dev/null ||
11868 echo X"$ac_dest" |
11869     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11870           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11871           /^X\(\/\/\)$/{ s//\1/; q; }
11872           /^X\(\/\).*/{ s//\1/; q; }
11873           s/.*/./; q'`
11874   { if $as_mkdir_p; then
11875     mkdir -p "$ac_dir"
11876   else
11877     as_dir="$ac_dir"
11878     as_dirs=
11879     while test ! -d "$as_dir"; do
11880       as_dirs="$as_dir $as_dirs"
11881       as_dir=`(dirname "$as_dir") 2>/dev/null ||
11882 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11883          X"$as_dir" : 'X\(//\)[^/]' \| \
11884          X"$as_dir" : 'X\(//\)$' \| \
11885          X"$as_dir" : 'X\(/\)' \| \
11886          .     : '\(.\)' 2>/dev/null ||
11887 echo X"$as_dir" |
11888     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11889           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11890           /^X\(\/\/\)$/{ s//\1/; q; }
11891           /^X\(\/\).*/{ s//\1/; q; }
11892           s/.*/./; q'`
11893     done
11894     test ! -n "$as_dirs" || mkdir $as_dirs
11895   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11896 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11897    { (exit 1); exit 1; }; }; }
11898
11899   ac_builddir=.
11900
11901 if test "$ac_dir" != .; then
11902   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11903   # A "../" for each directory in $ac_dir_suffix.
11904   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11905 else
11906   ac_dir_suffix= ac_top_builddir=
11907 fi
11908
11909 case $srcdir in
11910   .)  # No --srcdir option.  We are building in place.
11911     ac_srcdir=.
11912     if test -z "$ac_top_builddir"; then
11913        ac_top_srcdir=.
11914     else
11915        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11916     fi ;;
11917   [\\/]* | ?:[\\/]* )  # Absolute path.
11918     ac_srcdir=$srcdir$ac_dir_suffix;
11919     ac_top_srcdir=$srcdir ;;
11920   *) # Relative path.
11921     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11922     ac_top_srcdir=$ac_top_builddir$srcdir ;;
11923 esac
11924
11925 # Do not use `cd foo && pwd` to compute absolute paths, because
11926 # the directories may not exist.
11927 case `pwd` in
11928 .) ac_abs_builddir="$ac_dir";;
11929 *)
11930   case "$ac_dir" in
11931   .) ac_abs_builddir=`pwd`;;
11932   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11933   *) ac_abs_builddir=`pwd`/"$ac_dir";;
11934   esac;;
11935 esac
11936 case $ac_abs_builddir in
11937 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11938 *)
11939   case ${ac_top_builddir}. in
11940   .) ac_abs_top_builddir=$ac_abs_builddir;;
11941   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11942   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11943   esac;;
11944 esac
11945 case $ac_abs_builddir in
11946 .) ac_abs_srcdir=$ac_srcdir;;
11947 *)
11948   case $ac_srcdir in
11949   .) ac_abs_srcdir=$ac_abs_builddir;;
11950   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11951   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11952   esac;;
11953 esac
11954 case $ac_abs_builddir in
11955 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11956 *)
11957   case $ac_top_srcdir in
11958   .) ac_abs_top_srcdir=$ac_abs_builddir;;
11959   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11960   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11961   esac;;
11962 esac
11963
11964
11965   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
11966 echo "$as_me: executing $ac_dest commands" >&6;}
11967   case $ac_dest in
11968     default-1 )
11969 # Only add multilib support code if we just rebuilt the top-level
11970 # Makefile.
11971 case " $CONFIG_FILES " in
11972  *" Makefile "*)
11973    ac_file=Makefile . ${multi_basedir}/config-ml.in
11974    ;;
11975 esac ;;
11976     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
11977   # Strip MF so we end up with the name of the file.
11978   mf=`echo "$mf" | sed -e 's/:.*$//'`
11979   # Check whether this is an Automake generated Makefile or not.
11980   # We used to match only the files named `Makefile.in', but
11981   # some people rename them; so instead we look at the file content.
11982   # Grep'ing the first line is not enough: some people post-process
11983   # each Makefile.in and add a new line on top of each file to say so.
11984   # So let's grep whole file.
11985   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
11986     dirpart=`(dirname "$mf") 2>/dev/null ||
11987 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11988          X"$mf" : 'X\(//\)[^/]' \| \
11989          X"$mf" : 'X\(//\)$' \| \
11990          X"$mf" : 'X\(/\)' \| \
11991          .     : '\(.\)' 2>/dev/null ||
11992 echo X"$mf" |
11993     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11994           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11995           /^X\(\/\/\)$/{ s//\1/; q; }
11996           /^X\(\/\).*/{ s//\1/; q; }
11997           s/.*/./; q'`
11998   else
11999     continue
12000   fi
12001   # Extract the definition of DEPDIR, am__include, and am__quote
12002   # from the Makefile without running `make'.
12003   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12004   test -z "$DEPDIR" && continue
12005   am__include=`sed -n 's/^am__include = //p' < "$mf"`
12006   test -z "am__include" && continue
12007   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12008   # When using ansi2knr, U may be empty or an underscore; expand it
12009   U=`sed -n 's/^U = //p' < "$mf"`
12010   # Find all dependency output files, they are included files with
12011   # $(DEPDIR) in their names.  We invoke sed twice because it is the
12012   # simplest approach to changing $(DEPDIR) to its actual value in the
12013   # expansion.
12014   for file in `sed -n "
12015     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12016        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12017     # Make sure the directory exists.
12018     test -f "$dirpart/$file" && continue
12019     fdir=`(dirname "$file") 2>/dev/null ||
12020 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12021          X"$file" : 'X\(//\)[^/]' \| \
12022          X"$file" : 'X\(//\)$' \| \
12023          X"$file" : 'X\(/\)' \| \
12024          .     : '\(.\)' 2>/dev/null ||
12025 echo X"$file" |
12026     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12027           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12028           /^X\(\/\/\)$/{ s//\1/; q; }
12029           /^X\(\/\).*/{ s//\1/; q; }
12030           s/.*/./; q'`
12031     { if $as_mkdir_p; then
12032     mkdir -p $dirpart/$fdir
12033   else
12034     as_dir=$dirpart/$fdir
12035     as_dirs=
12036     while test ! -d "$as_dir"; do
12037       as_dirs="$as_dir $as_dirs"
12038       as_dir=`(dirname "$as_dir") 2>/dev/null ||
12039 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12040          X"$as_dir" : 'X\(//\)[^/]' \| \
12041          X"$as_dir" : 'X\(//\)$' \| \
12042          X"$as_dir" : 'X\(/\)' \| \
12043          .     : '\(.\)' 2>/dev/null ||
12044 echo X"$as_dir" |
12045     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12046           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12047           /^X\(\/\/\)$/{ s//\1/; q; }
12048           /^X\(\/\).*/{ s//\1/; q; }
12049           s/.*/./; q'`
12050     done
12051     test ! -n "$as_dirs" || mkdir $as_dirs
12052   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
12053 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
12054    { (exit 1); exit 1; }; }; }
12055
12056     # echo "creating $dirpart/$file"
12057     echo '# dummy' > "$dirpart/$file"
12058   done
12059 done
12060  ;;
12061     gstdint.h )
12062 if test "$GCC" = yes; then
12063   echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
12064 else
12065   echo "/* generated for $CC */" > tmp-stdint.h
12066 fi
12067
12068 sed 's/^ *//' >> tmp-stdint.h <<EOF
12069
12070   #ifndef GCC_GENERATED_STDINT_H
12071   #define GCC_GENERATED_STDINT_H 1
12072
12073   #include <sys/types.h>
12074 EOF
12075
12076 if test "$acx_cv_header_stdint" != stdint.h; then
12077   echo "#include <stddef.h>" >> tmp-stdint.h
12078 fi
12079 if test "$acx_cv_header_stdint" != stddef.h; then
12080   echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
12081 fi
12082
12083 sed 's/^ *//' >> tmp-stdint.h <<EOF
12084   /* glibc uses these symbols as guards to prevent redefinitions.  */
12085   #ifdef __int8_t_defined
12086   #define _INT8_T
12087   #define _INT16_T
12088   #define _INT32_T
12089   #endif
12090   #ifdef __uint32_t_defined
12091   #define _UINT32_T
12092   #endif
12093
12094 EOF
12095
12096 # ----------------- done header, emit basic int types -------------
12097 if test "$acx_cv_header_stdint" = stddef.h; then
12098   sed 's/^ *//' >> tmp-stdint.h <<EOF
12099
12100     #ifndef _UINT8_T
12101     #define _UINT8_T
12102     typedef unsigned $acx_cv_type_int8_t uint8_t;
12103     #endif
12104
12105     #ifndef _UINT16_T
12106     #define _UINT16_T
12107     typedef unsigned $acx_cv_type_int16_t uint16_t;
12108     #endif
12109
12110     #ifndef _UINT32_T
12111     #define _UINT32_T
12112     typedef unsigned $acx_cv_type_int32_t uint32_t;
12113     #endif
12114
12115     #ifndef _INT8_T
12116     #define _INT8_T
12117     typedef $acx_cv_type_int8_t int8_t;
12118     #endif
12119
12120     #ifndef _INT16_T
12121     #define _INT16_T
12122     typedef $acx_cv_type_int16_t int16_t;
12123     #endif
12124
12125     #ifndef _INT32_T
12126     #define _INT32_T
12127     typedef $acx_cv_type_int32_t int32_t;
12128     #endif
12129 EOF
12130 elif test "$ac_cv_type_u_int32_t" = yes; then
12131   sed 's/^ *//' >> tmp-stdint.h <<EOF
12132
12133     /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
12134     #ifndef _INT8_T
12135     #define _INT8_T
12136     #endif
12137     #ifndef _INT16_T
12138     #define _INT16_T
12139     #endif
12140     #ifndef _INT32_T
12141     #define _INT32_T
12142     #endif
12143
12144     #ifndef _UINT8_T
12145     #define _UINT8_T
12146     typedef u_int8_t uint8_t;
12147     #endif
12148
12149     #ifndef _UINT16_T
12150     #define _UINT16_T
12151     typedef u_int16_t uint16_t;
12152     #endif
12153
12154     #ifndef _UINT32_T
12155     #define _UINT32_T
12156     typedef u_int32_t uint32_t;
12157     #endif
12158 EOF
12159 else
12160   sed 's/^ *//' >> tmp-stdint.h <<EOF
12161
12162     /* Some systems have guard macros to prevent redefinitions, define them.  */
12163     #ifndef _INT8_T
12164     #define _INT8_T
12165     #endif
12166     #ifndef _INT16_T
12167     #define _INT16_T
12168     #endif
12169     #ifndef _INT32_T
12170     #define _INT32_T
12171     #endif
12172     #ifndef _UINT8_T
12173     #define _UINT8_T
12174     #endif
12175     #ifndef _UINT16_T
12176     #define _UINT16_T
12177     #endif
12178     #ifndef _UINT32_T
12179     #define _UINT32_T
12180     #endif
12181 EOF
12182 fi
12183
12184 # ------------- done basic int types, emit int64_t types ------------
12185 if test "$ac_cv_type_uint64_t" = yes; then
12186   sed 's/^ *//' >> tmp-stdint.h <<EOF
12187
12188     /* system headers have good uint64_t and int64_t */
12189     #ifndef _INT64_T
12190     #define _INT64_T
12191     #endif
12192     #ifndef _UINT64_T
12193     #define _UINT64_T
12194     #endif
12195 EOF
12196 elif test "$ac_cv_type_u_int64_t" = yes; then
12197   sed 's/^ *//' >> tmp-stdint.h <<EOF
12198
12199     /* system headers have an u_int64_t (and int64_t) */
12200     #ifndef _INT64_T
12201     #define _INT64_T
12202     #endif
12203     #ifndef _UINT64_T
12204     #define _UINT64_T
12205     typedef u_int64_t uint64_t;
12206     #endif
12207 EOF
12208 elif test -n "$acx_cv_type_int64_t"; then
12209   sed 's/^ *//' >> tmp-stdint.h <<EOF
12210
12211     /* architecture has a 64-bit type, $acx_cv_type_int64_t */
12212     #ifndef _INT64_T
12213     #define _INT64_T
12214     typedef $acx_cv_type_int64_t int64_t;
12215     #endif
12216     #ifndef _UINT64_T
12217     #define _UINT64_T
12218     typedef unsigned $acx_cv_type_int64_t uint64_t;
12219     #endif
12220 EOF
12221 else
12222   sed 's/^ *//' >> tmp-stdint.h <<EOF
12223
12224     /* some common heuristics for int64_t, using compiler-specific tests */
12225     #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
12226     #ifndef _INT64_T
12227     #define _INT64_T
12228     typedef long long int64_t;
12229     #endif
12230     #ifndef _UINT64_T
12231     #define _UINT64_T
12232     typedef unsigned long long uint64_t;
12233     #endif
12234
12235     #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
12236     /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
12237        does not implement __extension__.  But that compiler doesn't define
12238        __GNUC_MINOR__.  */
12239     # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
12240     # define __extension__
12241     # endif
12242
12243     # ifndef _INT64_T
12244     # define _INT64_T
12245     __extension__ typedef long long int64_t;
12246     # endif
12247     # ifndef _UINT64_T
12248     # define _UINT64_T
12249     __extension__ typedef unsigned long long uint64_t;
12250     # endif
12251
12252     #elif !defined __STRICT_ANSI__
12253     # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
12254
12255     #  ifndef _INT64_T
12256     #  define _INT64_T
12257     typedef __int64 int64_t;
12258     #  endif
12259     #  ifndef _UINT64_T
12260     #  define _UINT64_T
12261     typedef unsigned __int64 uint64_t;
12262     #  endif
12263     # endif /* compiler */
12264
12265     #endif /* ANSI version */
12266 EOF
12267 fi
12268
12269 # ------------- done int64_t types, emit intptr types ------------
12270 if test "$ac_cv_type_uintptr_t" != yes; then
12271   sed 's/^ *//' >> tmp-stdint.h <<EOF
12272
12273     /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
12274     typedef u$acx_cv_type_intptr_t uintptr_t;
12275     typedef $acx_cv_type_intptr_t  intptr_t;
12276 EOF
12277 fi
12278
12279 # ------------- done intptr types, emit int_least types ------------
12280 if test "$ac_cv_type_int_least32_t" != yes; then
12281   sed 's/^ *//' >> tmp-stdint.h <<EOF
12282
12283     /* Define int_least types */
12284     typedef int8_t     int_least8_t;
12285     typedef int16_t    int_least16_t;
12286     typedef int32_t    int_least32_t;
12287     #ifdef _INT64_T
12288     typedef int64_t    int_least64_t;
12289     #endif
12290
12291     typedef uint8_t    uint_least8_t;
12292     typedef uint16_t   uint_least16_t;
12293     typedef uint32_t   uint_least32_t;
12294     #ifdef _UINT64_T
12295     typedef uint64_t   uint_least64_t;
12296     #endif
12297 EOF
12298 fi
12299
12300 # ------------- done intptr types, emit int_fast types ------------
12301 if test "$ac_cv_type_int_fast32_t" != yes; then
12302       sed 's/^ *//' >> tmp-stdint.h <<EOF
12303
12304     /* Define int_fast types.  short is often slow */
12305     typedef int8_t       int_fast8_t;
12306     typedef int          int_fast16_t;
12307     typedef int32_t      int_fast32_t;
12308     #ifdef _INT64_T
12309     typedef int64_t      int_fast64_t;
12310     #endif
12311
12312     typedef uint8_t      uint_fast8_t;
12313     typedef unsigned int uint_fast16_t;
12314     typedef uint32_t     uint_fast32_t;
12315     #ifdef _UINT64_T
12316     typedef uint64_t     uint_fast64_t;
12317     #endif
12318 EOF
12319 fi
12320
12321 if test "$ac_cv_type_uintmax_t" != yes; then
12322   sed 's/^ *//' >> tmp-stdint.h <<EOF
12323
12324     /* Define intmax based on what we found */
12325     #ifdef _INT64_T
12326     typedef int64_t       intmax_t;
12327     #else
12328     typedef long          intmax_t;
12329     #endif
12330     #ifdef _UINT64_T
12331     typedef uint64_t      uintmax_t;
12332     #else
12333     typedef unsigned long uintmax_t;
12334     #endif
12335 EOF
12336 fi
12337
12338 sed 's/^ *//' >> tmp-stdint.h <<EOF
12339
12340   #endif /* GCC_GENERATED_STDINT_H */
12341 EOF
12342
12343 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
12344   rm -f tmp-stdint.h
12345 else
12346   mv -f tmp-stdint.h gstdint.h
12347 fi
12348
12349  ;;
12350   esac
12351 done
12352 _ACEOF
12353
12354 cat >>$CONFIG_STATUS <<\_ACEOF
12355
12356 { (exit 0); exit 0; }
12357 _ACEOF
12358 chmod +x $CONFIG_STATUS
12359 ac_clean_files=$ac_clean_files_save
12360
12361
12362 # configure is writing to config.log, and then calls config.status.
12363 # config.status does its own redirection, appending to config.log.
12364 # Unfortunately, on DOS this fails, as config.log is still kept open
12365 # by configure, so config.status won't be able to write to it; its
12366 # output is simply discarded.  So we exec the FD to /dev/null,
12367 # effectively closing config.log, so it can be properly (re)opened and
12368 # appended to by config.status.  When coming back to configure, we
12369 # need to make the FD available again.
12370 if test "$no_create" != yes; then
12371   ac_cs_success=:
12372   ac_config_status_args=
12373   test "$silent" = yes &&
12374     ac_config_status_args="$ac_config_status_args --quiet"
12375   exec 5>/dev/null
12376   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12377   exec 5>>config.log
12378   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12379   # would make configure fail if this is the last instruction.
12380   $ac_cs_success || { (exit 1); exit 1; }
12381 fi
12382