]> git.ipfire.org Git - thirdparty/gcc.git/blame - libgomp/configure
PR c++/30703
[thirdparty/gcc.git] / libgomp / configure
CommitLineData
1e8e9920 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
13if 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+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for 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
43do
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
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo 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.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if 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
97fi
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
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
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
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
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
152done
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
187case `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= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if 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
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_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.
231as_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.
236as_nl='
237'
238IFS=" $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.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
254ac_default_prefix=/usr/local
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${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.
268PACKAGE_NAME='GNU OpenMP Runtime Library'
269PACKAGE_TARNAME='libgomp'
270PACKAGE_VERSION='1.0'
271PACKAGE_STRING='GNU OpenMP Runtime Library 1.0'
272PACKAGE_BUGREPORT=''
273
274# Factoring default headers for most tests.
275ac_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
439d698f 311ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS GENINSRC_TRUE GENINSRC_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar multi_basedir toolexecdir toolexeclibdir CC ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CFLAGS AR ac_ct_AR RANLIB ac_ct_RANLIB PERL BUILD_INFO_TRUE BUILD_INFO_FALSE 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'
1e8e9920 312ac_subst_files=''
313
314# Initialize some variables set by options.
315ac_init_help=
316ac_init_version=false
317# The variables have the same names as the options, with
318# dashes changed to underlines.
319cache_file=/dev/null
320exec_prefix=NONE
321no_create=
322no_recursion=
323prefix=NONE
324program_prefix=NONE
325program_suffix=NONE
326program_transform_name=s,x,x,
327silent=
328site=
329srcdir=
330verbose=
331x_includes=NONE
332x_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.
339bindir='${exec_prefix}/bin'
340sbindir='${exec_prefix}/sbin'
341libexecdir='${exec_prefix}/libexec'
342datadir='${prefix}/share'
343sysconfdir='${prefix}/etc'
344sharedstatedir='${prefix}/com'
345localstatedir='${prefix}/var'
346libdir='${exec_prefix}/lib'
347includedir='${prefix}/include'
348oldincludedir='/usr/include'
349infodir='${prefix}/info'
350mandir='${prefix}/man'
351
352ac_prev=
353for ac_option
354do
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
626Try \`$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
649done
650
651if 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; }; }
655fi
656
657# Be sure to have absolute paths.
658for ac_var in exec_prefix prefix
659do
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
666done
667
668# Be sure to have absolute paths.
669for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670 localstatedir libdir includedir oldincludedir infodir mandir
671do
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
678done
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.
683build=$build_alias
684host=$host_alias
685target=$target_alias
686
687# FIXME: To remove some day.
688if 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
696fi
697
698ac_tool_prefix=
699test -n "$host_alias" && ac_tool_prefix=$host_alias-
700
701test "$silent" = yes && exec 6>/dev/null
702
703
704# Find the source files, if location was not specified.
705if 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 ||
714echo 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
439d698f 721 if test ! -r "$srcdir/$ac_unique_file"; then
1e8e9920 722 srcdir=..
723 fi
724else
725 ac_srcdir_defaulted=no
726fi
439d698f 727if test ! -r "$srcdir/$ac_unique_file"; then
1e8e9920 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
735fi
439d698f 736(cd $srcdir && test -r "./$ac_unique_file") 2>/dev/null ||
1e8e9920 737 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738 { (exit 1); exit 1; }; }
739srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740ac_env_build_alias_set=${build_alias+set}
741ac_env_build_alias_value=$build_alias
742ac_cv_env_build_alias_set=${build_alias+set}
743ac_cv_env_build_alias_value=$build_alias
744ac_env_host_alias_set=${host_alias+set}
745ac_env_host_alias_value=$host_alias
746ac_cv_env_host_alias_set=${host_alias+set}
747ac_cv_env_host_alias_value=$host_alias
748ac_env_target_alias_set=${target_alias+set}
749ac_env_target_alias_value=$target_alias
750ac_cv_env_target_alias_set=${target_alias+set}
751ac_cv_env_target_alias_value=$target_alias
752ac_env_FC_set=${FC+set}
753ac_env_FC_value=$FC
754ac_cv_env_FC_set=${FC+set}
755ac_cv_env_FC_value=$FC
756ac_env_FCFLAGS_set=${FCFLAGS+set}
757ac_env_FCFLAGS_value=$FCFLAGS
758ac_cv_env_FCFLAGS_set=${FCFLAGS+set}
759ac_cv_env_FCFLAGS_value=$FCFLAGS
760ac_env_LDFLAGS_set=${LDFLAGS+set}
761ac_env_LDFLAGS_value=$LDFLAGS
762ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763ac_cv_env_LDFLAGS_value=$LDFLAGS
764ac_env_CPP_set=${CPP+set}
765ac_env_CPP_value=$CPP
766ac_cv_env_CPP_set=${CPP+set}
767ac_cv_env_CPP_value=$CPP
768ac_env_CPPFLAGS_set=${CPPFLAGS+set}
769ac_env_CPPFLAGS_value=$CPPFLAGS
770ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
771ac_cv_env_CPPFLAGS_value=$CPPFLAGS
772
773#
774# Report the --help message.
775#
776if 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
782Usage: $0 [OPTION]... [VAR=VALUE]...
783
784To assign environment variables (e.g., CC, CFLAGS...), specify them as
785VAR=VALUE. See below for descriptions of some of the useful variables.
786
787Defaults for the options are specified in brackets.
788
789Configuration:
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
803Installation 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
809By default, \`make install' will install all the files in
810\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
811an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812for instance \`--prefix=\$HOME'.
813
814For better control, use the options below.
815
816Fine 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
833Program 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
838System 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
843fi
844
845if 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
851Optional 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]
2eca990d 857 --enable-linux-futex Use the Linux futex system call
858 [default=default]
aeda7a78 859 --enable-generated-files-in-srcdir
860 put copies of generated files in source dir intended
861 for creating source tarballs for users without
862 texinfo bison or flex. [default=no]
1e8e9920 863 --enable-multilib build many library versions (default)
864 --disable-dependency-tracking speeds up one-time build
865 --enable-dependency-tracking do not reject slow dependency extractors
866 --enable-shared=PKGS build shared libraries default=yes
867 --enable-static=PKGS build static libraries default=yes
868 --enable-fast-install=PKGS optimize for fast installation default=yes
869 --disable-libtool-lock avoid locking (might break parallel builds)
a263d1ab 870 --enable-maintainer-mode enable make rules and dependencies not useful
871 (and sometimes confusing) to the casual installer
e564ddd8 872 --enable-tls Use thread-local storage [default=yes]
1e8e9920 873 --enable-symvers=STYLE enables symbol versioning of the shared library
874 [default=yes]
875
876Optional Packages:
877 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
878 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
879 --with-gnu-ld assume the C compiler uses GNU ld default=no
880 --with-pic try to use only PIC/non-PIC objects default=use both
881
882Some influential environment variables:
883 CC C compiler command
884 CFLAGS C compiler flags
885 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
886 nonstandard directory <lib dir>
887 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
888 headers in a nonstandard directory <include dir>
889 FC Fortran compiler command
890 FCFLAGS Fortran compiler flags
891 CPP C preprocessor
892
893Use these variables to override the choices made by `configure' or to help
894it to find libraries and programs with nonstandard names/locations.
895
896_ACEOF
897fi
898
899if test "$ac_init_help" = "recursive"; then
900 # If there are subdirs, report their specific --help.
901 ac_popdir=`pwd`
902 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
903 test -d $ac_dir || continue
904 ac_builddir=.
905
906if test "$ac_dir" != .; then
907 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
908 # A "../" for each directory in $ac_dir_suffix.
909 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
910else
911 ac_dir_suffix= ac_top_builddir=
912fi
913
914case $srcdir in
915 .) # No --srcdir option. We are building in place.
916 ac_srcdir=.
917 if test -z "$ac_top_builddir"; then
918 ac_top_srcdir=.
919 else
920 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
921 fi ;;
922 [\\/]* | ?:[\\/]* ) # Absolute path.
923 ac_srcdir=$srcdir$ac_dir_suffix;
924 ac_top_srcdir=$srcdir ;;
925 *) # Relative path.
926 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
927 ac_top_srcdir=$ac_top_builddir$srcdir ;;
928esac
929
930# Do not use `cd foo && pwd` to compute absolute paths, because
931# the directories may not exist.
932case `pwd` in
933.) ac_abs_builddir="$ac_dir";;
934*)
935 case "$ac_dir" in
936 .) ac_abs_builddir=`pwd`;;
937 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
938 *) ac_abs_builddir=`pwd`/"$ac_dir";;
939 esac;;
940esac
941case $ac_abs_builddir in
942.) ac_abs_top_builddir=${ac_top_builddir}.;;
943*)
944 case ${ac_top_builddir}. in
945 .) ac_abs_top_builddir=$ac_abs_builddir;;
946 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
947 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
948 esac;;
949esac
950case $ac_abs_builddir in
951.) ac_abs_srcdir=$ac_srcdir;;
952*)
953 case $ac_srcdir in
954 .) ac_abs_srcdir=$ac_abs_builddir;;
955 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
956 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
957 esac;;
958esac
959case $ac_abs_builddir in
960.) ac_abs_top_srcdir=$ac_top_srcdir;;
961*)
962 case $ac_top_srcdir in
963 .) ac_abs_top_srcdir=$ac_abs_builddir;;
964 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
965 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
966 esac;;
967esac
968
969 cd $ac_dir
970 # Check for guested configure; otherwise get Cygnus style configure.
971 if test -f $ac_srcdir/configure.gnu; then
972 echo
973 $SHELL $ac_srcdir/configure.gnu --help=recursive
974 elif test -f $ac_srcdir/configure; then
975 echo
976 $SHELL $ac_srcdir/configure --help=recursive
977 elif test -f $ac_srcdir/configure.ac ||
978 test -f $ac_srcdir/configure.in; then
979 echo
980 $ac_configure --help
981 else
982 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
983 fi
59da30e1 984 cd $ac_popdir
1e8e9920 985 done
986fi
987
988test -n "$ac_init_help" && exit 0
989if $ac_init_version; then
990 cat <<\_ACEOF
991GNU OpenMP Runtime Library configure 1.0
992generated by GNU Autoconf 2.59
993
994Copyright (C) 2003 Free Software Foundation, Inc.
995This configure script is free software; the Free Software Foundation
996gives unlimited permission to copy, distribute and modify it.
997_ACEOF
998 exit 0
999fi
1000exec 5>config.log
1001cat >&5 <<_ACEOF
1002This file contains any messages produced by compilers while
1003running configure, to aid debugging if configure makes a mistake.
1004
1005It was created by GNU OpenMP Runtime Library $as_me 1.0, which was
1006generated by GNU Autoconf 2.59. Invocation command line was
1007
1008 $ $0 $@
1009
1010_ACEOF
1011{
1012cat <<_ASUNAME
1013## --------- ##
1014## Platform. ##
1015## --------- ##
1016
1017hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1018uname -m = `(uname -m) 2>/dev/null || echo unknown`
1019uname -r = `(uname -r) 2>/dev/null || echo unknown`
1020uname -s = `(uname -s) 2>/dev/null || echo unknown`
1021uname -v = `(uname -v) 2>/dev/null || echo unknown`
1022
1023/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1024/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1025
1026/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1027/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1028/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1029hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1030/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1031/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1032/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1033
1034_ASUNAME
1035
1036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1037for as_dir in $PATH
1038do
1039 IFS=$as_save_IFS
1040 test -z "$as_dir" && as_dir=.
1041 echo "PATH: $as_dir"
1042done
1043
1044} >&5
1045
1046cat >&5 <<_ACEOF
1047
1048
1049## ----------- ##
1050## Core tests. ##
1051## ----------- ##
1052
1053_ACEOF
1054
1055
1056# Keep a trace of the command line.
1057# Strip out --no-create and --no-recursion so they do not pile up.
1058# Strip out --silent because we don't want to record it for future runs.
1059# Also quote any args containing shell meta-characters.
1060# Make two passes to allow for proper duplicate-argument suppression.
1061ac_configure_args=
1062ac_configure_args0=
1063ac_configure_args1=
1064ac_sep=
1065ac_must_keep_next=false
1066for ac_pass in 1 2
1067do
1068 for ac_arg
1069 do
1070 case $ac_arg in
1071 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1072 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1073 | -silent | --silent | --silen | --sile | --sil)
1074 continue ;;
1075 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1076 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1077 esac
1078 case $ac_pass in
1079 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1080 2)
1081 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1082 if test $ac_must_keep_next = true; then
1083 ac_must_keep_next=false # Got value, back to normal.
1084 else
1085 case $ac_arg in
1086 *=* | --config-cache | -C | -disable-* | --disable-* \
1087 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1088 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1089 | -with-* | --with-* | -without-* | --without-* | --x)
1090 case "$ac_configure_args0 " in
1091 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1092 esac
1093 ;;
1094 -* ) ac_must_keep_next=true ;;
1095 esac
1096 fi
1097 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1098 # Get rid of the leading space.
1099 ac_sep=" "
1100 ;;
1101 esac
1102 done
1103done
1104$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1105$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1106
1107# When interrupted or exit'd, cleanup temporary files, and complete
1108# config.log. We remove comments because anyway the quotes in there
1109# would cause problems or look ugly.
1110# WARNING: Be sure not to use single quotes in there, as some shells,
1111# such as our DU 5.0 friend, will then `close' the trap.
1112trap 'exit_status=$?
1113 # Save into config.log some information that might help in debugging.
1114 {
1115 echo
1116
1117 cat <<\_ASBOX
1118## ---------------- ##
1119## Cache variables. ##
1120## ---------------- ##
1121_ASBOX
1122 echo
1123 # The following way of writing the cache mishandles newlines in values,
1124{
1125 (set) 2>&1 |
1126 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1127 *ac_space=\ *)
1128 sed -n \
1129 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1130 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1131 ;;
1132 *)
1133 sed -n \
1134 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1135 ;;
1136 esac;
1137}
1138 echo
1139
1140 cat <<\_ASBOX
1141## ----------------- ##
1142## Output variables. ##
1143## ----------------- ##
1144_ASBOX
1145 echo
1146 for ac_var in $ac_subst_vars
1147 do
1148 eval ac_val=$`echo $ac_var`
1149 echo "$ac_var='"'"'$ac_val'"'"'"
1150 done | sort
1151 echo
1152
1153 if test -n "$ac_subst_files"; then
1154 cat <<\_ASBOX
1155## ------------- ##
1156## Output files. ##
1157## ------------- ##
1158_ASBOX
1159 echo
1160 for ac_var in $ac_subst_files
1161 do
1162 eval ac_val=$`echo $ac_var`
1163 echo "$ac_var='"'"'$ac_val'"'"'"
1164 done | sort
1165 echo
1166 fi
1167
1168 if test -s confdefs.h; then
1169 cat <<\_ASBOX
1170## ----------- ##
1171## confdefs.h. ##
1172## ----------- ##
1173_ASBOX
1174 echo
1175 sed "/^$/d" confdefs.h | sort
1176 echo
1177 fi
1178 test "$ac_signal" != 0 &&
1179 echo "$as_me: caught signal $ac_signal"
1180 echo "$as_me: exit $exit_status"
1181 } >&5
1182 rm -f core *.core &&
1183 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1184 exit $exit_status
1185 ' 0
1186for ac_signal in 1 2 13 15; do
1187 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1188done
1189ac_signal=0
1190
1191# confdefs.h avoids OS command line length limits that DEFS can exceed.
1192rm -rf conftest* confdefs.h
1193# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1194echo >confdefs.h
1195
1196# Predefined preprocessor variables.
1197
1198cat >>confdefs.h <<_ACEOF
1199#define PACKAGE_NAME "$PACKAGE_NAME"
1200_ACEOF
1201
1202
1203cat >>confdefs.h <<_ACEOF
1204#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1205_ACEOF
1206
1207
1208cat >>confdefs.h <<_ACEOF
1209#define PACKAGE_VERSION "$PACKAGE_VERSION"
1210_ACEOF
1211
1212
1213cat >>confdefs.h <<_ACEOF
1214#define PACKAGE_STRING "$PACKAGE_STRING"
1215_ACEOF
1216
1217
1218cat >>confdefs.h <<_ACEOF
1219#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1220_ACEOF
1221
1222
1223# Let the site file select an alternate cache file if it wants to.
1224# Prefer explicitly selected file to automatically selected ones.
1225if test -z "$CONFIG_SITE"; then
1226 if test "x$prefix" != xNONE; then
1227 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1228 else
1229 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1230 fi
1231fi
1232for ac_site_file in $CONFIG_SITE; do
1233 if test -r "$ac_site_file"; then
1234 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1235echo "$as_me: loading site script $ac_site_file" >&6;}
1236 sed 's/^/| /' "$ac_site_file" >&5
1237 . "$ac_site_file"
1238 fi
1239done
1240
1241if test -r "$cache_file"; then
1242 # Some versions of bash will fail to source /dev/null (special
1243 # files actually), so we avoid doing that.
1244 if test -f "$cache_file"; then
1245 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1246echo "$as_me: loading cache $cache_file" >&6;}
1247 case $cache_file in
1248 [\\/]* | ?:[\\/]* ) . $cache_file;;
1249 *) . ./$cache_file;;
1250 esac
1251 fi
1252else
1253 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1254echo "$as_me: creating cache $cache_file" >&6;}
1255 >$cache_file
1256fi
1257
1258# Check that the precious variables saved in the cache have kept the same
1259# value.
1260ac_cache_corrupted=false
1261for ac_var in `(set) 2>&1 |
1262 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1263 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1264 eval ac_new_set=\$ac_env_${ac_var}_set
1265 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1266 eval ac_new_val="\$ac_env_${ac_var}_value"
1267 case $ac_old_set,$ac_new_set in
1268 set,)
1269 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1270echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1271 ac_cache_corrupted=: ;;
1272 ,set)
1273 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1274echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1275 ac_cache_corrupted=: ;;
1276 ,);;
1277 *)
1278 if test "x$ac_old_val" != "x$ac_new_val"; then
1279 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1280echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1281 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1282echo "$as_me: former value: $ac_old_val" >&2;}
1283 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1284echo "$as_me: current value: $ac_new_val" >&2;}
1285 ac_cache_corrupted=:
1286 fi;;
1287 esac
1288 # Pass precious variables to config.status.
1289 if test "$ac_new_set" = set; then
1290 case $ac_new_val in
1291 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1292 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1293 *) ac_arg=$ac_var=$ac_new_val ;;
1294 esac
1295 case " $ac_configure_args " in
1296 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1297 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1298 esac
1299 fi
1300done
1301if $ac_cache_corrupted; then
1302 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1303echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1304 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1305echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1306 { (exit 1); exit 1; }; }
1307fi
1308
1309ac_ext=c
1310ac_cpp='$CPP $CPPFLAGS'
1311ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1312ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1313ac_compiler_gnu=$ac_cv_c_compiler_gnu
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341 ac_config_headers="$ac_config_headers config.h"
1342
1343
1344# -------
1345# Options
1346# -------
1347
1348echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5
1349echo $ECHO_N "checking for --enable-version-specific-runtime-libs... $ECHO_C" >&6
1350 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1351if test "${enable_version_specific_runtime_libs+set}" = set; then
1352 enableval="$enable_version_specific_runtime_libs"
1353
1354 case "$enableval" in
1355 yes|no) ;;
1356 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific-runtime-libs" >&5
1357echo "$as_me: error: Unknown argument to enable/disable version-specific-runtime-libs" >&2;}
1358 { (exit 1); exit 1; }; } ;;
1359 esac
1360
1361else
1362 enable_version_specific_runtime_libs=no
1363fi;
1364
1365echo "$as_me:$LINENO: result: $enable_version_specific_runtime_libs" >&5
1366echo "${ECHO_T}$enable_version_specific_runtime_libs" >&6
1367
1368echo "$as_me:$LINENO: checking for --enable-linux-futex" >&5
1369echo $ECHO_N "checking for --enable-linux-futex... $ECHO_C" >&6
1370 # Check whether --enable-linux-futex or --disable-linux-futex was given.
1371if test "${enable_linux_futex+set}" = set; then
1372 enableval="$enable_linux_futex"
1373
1374 case "$enableval" in
2eca990d 1375 yes|no|default) ;;
1376 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable linux-futex" >&5
1377echo "$as_me: error: Unknown argument to enable/disable linux-futex" >&2;}
1e8e9920 1378 { (exit 1); exit 1; }; } ;;
2eca990d 1379 esac
1e8e9920 1380
1381else
2eca990d 1382 enable_linux_futex=default
1e8e9920 1383fi;
1384
1385echo "$as_me:$LINENO: result: $enable_linux_futex" >&5
1386echo "${ECHO_T}$enable_linux_futex" >&6
1387
aeda7a78 1388# We would like our source tree to be readonly. However when releases or
1389# pre-releases are generated, the flex/bison generated files as well as the
1390# various formats of manuals need to be included along with the rest of the
1391# sources. Therefore we have --enable-generated-files-in-srcdir to do
1392# just that.
1393echo "$as_me:$LINENO: checking for --enable-generated-files-in-srcdir" >&5
1394echo $ECHO_N "checking for --enable-generated-files-in-srcdir... $ECHO_C" >&6
1395 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1396if test "${enable_generated_files_in_srcdir+set}" = set; then
1397 enableval="$enable_generated_files_in_srcdir"
1398
1399 case "$enableval" in
1400 yes|no) ;;
1401 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable generated-files-in-srcdir" >&5
1402echo "$as_me: error: Unknown argument to enable/disable generated-files-in-srcdir" >&2;}
1403 { (exit 1); exit 1; }; } ;;
1404 esac
1405
1406else
1407 enable_generated_files_in_srcdir=no
1408fi;
1409
1410echo "$as_me:$LINENO: result: $enable_generated_files_in_srcdir" >&5
1411echo "${ECHO_T}$enable_generated_files_in_srcdir" >&6
1412
1413
1414if test "$enable_generated_files_in_srcdir" = yes; then
1415 GENINSRC_TRUE=
1416 GENINSRC_FALSE='#'
1417else
1418 GENINSRC_TRUE='#'
1419 GENINSRC_FALSE=
1420fi
1421
1422
1423
1e8e9920 1424# -------
1425# -------
1426
1427# Gets build, host, target, *_vendor, *_cpu, *_os, etc.
1428#
1429# You will slowly go insane if you do not grok the following fact: when
1430# building this library, the top-level /target/ becomes the library's /host/.
1431#
1432# configure then causes --target to default to --host, exactly like any
1433# other package using autoconf. Therefore, 'target' and 'host' will
1434# always be the same. This makes sense both for native and cross compilers
1435# just think about it for a little while. :-)
1436#
1437# Also, if this library is being configured as part of a cross compiler, the
1438# top-level configure script will pass the "real" host as $with_cross_host.
1439#
1440# Do not delete or change the following two lines. For why, see
1441# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
1442ac_aux_dir=
1443for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1444 if test -f $ac_dir/install-sh; then
1445 ac_aux_dir=$ac_dir
1446 ac_install_sh="$ac_aux_dir/install-sh -c"
1447 break
1448 elif test -f $ac_dir/install.sh; then
1449 ac_aux_dir=$ac_dir
1450 ac_install_sh="$ac_aux_dir/install.sh -c"
1451 break
1452 elif test -f $ac_dir/shtool; then
1453 ac_aux_dir=$ac_dir
1454 ac_install_sh="$ac_aux_dir/shtool install -c"
1455 break
1456 fi
1457done
1458if test -z "$ac_aux_dir"; then
1459 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1460echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1461 { (exit 1); exit 1; }; }
1462fi
1463ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1464ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1465ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1466
1467# Make sure we can run config.sub.
1468$ac_config_sub sun4 >/dev/null 2>&1 ||
1469 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1470echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1471 { (exit 1); exit 1; }; }
1472
1473echo "$as_me:$LINENO: checking build system type" >&5
1474echo $ECHO_N "checking build system type... $ECHO_C" >&6
1475if test "${ac_cv_build+set}" = set; then
1476 echo $ECHO_N "(cached) $ECHO_C" >&6
1477else
1478 ac_cv_build_alias=$build_alias
1479test -z "$ac_cv_build_alias" &&
1480 ac_cv_build_alias=`$ac_config_guess`
1481test -z "$ac_cv_build_alias" &&
1482 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1483echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1484 { (exit 1); exit 1; }; }
1485ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1486 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1487echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1488 { (exit 1); exit 1; }; }
1489
1490fi
1491echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1492echo "${ECHO_T}$ac_cv_build" >&6
1493build=$ac_cv_build
1494build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1495build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1496build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1497
1498
1499echo "$as_me:$LINENO: checking host system type" >&5
1500echo $ECHO_N "checking host system type... $ECHO_C" >&6
1501if test "${ac_cv_host+set}" = set; then
1502 echo $ECHO_N "(cached) $ECHO_C" >&6
1503else
1504 ac_cv_host_alias=$host_alias
1505test -z "$ac_cv_host_alias" &&
1506 ac_cv_host_alias=$ac_cv_build_alias
1507ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1508 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1509echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1510 { (exit 1); exit 1; }; }
1511
1512fi
1513echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1514echo "${ECHO_T}$ac_cv_host" >&6
1515host=$ac_cv_host
1516host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1517host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1518host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1519
1520
1521echo "$as_me:$LINENO: checking target system type" >&5
1522echo $ECHO_N "checking target system type... $ECHO_C" >&6
1523if test "${ac_cv_target+set}" = set; then
1524 echo $ECHO_N "(cached) $ECHO_C" >&6
1525else
1526 ac_cv_target_alias=$target_alias
1527test "x$ac_cv_target_alias" = "x" &&
1528 ac_cv_target_alias=$ac_cv_host_alias
1529ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1530 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1531echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1532 { (exit 1); exit 1; }; }
1533
1534fi
1535echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1536echo "${ECHO_T}$ac_cv_target" >&6
1537target=$ac_cv_target
1538target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1539target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1540target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1541
1542
1543# The aliases save the names the user supplied, while $host etc.
1544# will get canonicalized.
1545test -n "$target_alias" &&
1546 test "$program_prefix$program_suffix$program_transform_name" = \
1547 NONENONEs,x,x, &&
1548 program_prefix=${target_alias}-
1549target_alias=${target_alias-$host_alias}
1550
1551# Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
1552# following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
1553# 1.9.0: minimum required version
1554# no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
1555# of other PACKAGE_* variables will, however, and there's nothing
1556# we can do about that; they come from AC_INIT).
1557# foreign: we don't follow the normal rules for GNU packages (no COPYING
1558# file in the top srcdir, etc, etc), so stop complaining.
1e8e9920 1559# -Wall: turns on all automake warnings...
1560# -Wno-portability: ...except this one, since GNU make is required.
1561# -Wno-override: ... and this one, since we do want this in testsuite.
1562am__api_version="1.9"
1563# Find a good install program. We prefer a C program (faster),
1564# so one script is as good as another. But avoid the broken or
1565# incompatible versions:
1566# SysV /etc/install, /usr/sbin/install
1567# SunOS /usr/etc/install
1568# IRIX /sbin/install
1569# AIX /bin/install
1570# AmigaOS /C/install, which installs bootblocks on floppy discs
1571# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1572# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1573# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1574# OS/2's system install, which has a completely different semantic
1575# ./install, which can be erroneously created by make from ./install.sh.
1576echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1577echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1578if test -z "$INSTALL"; then
1579if test "${ac_cv_path_install+set}" = set; then
1580 echo $ECHO_N "(cached) $ECHO_C" >&6
1581else
1582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1583for as_dir in $PATH
1584do
1585 IFS=$as_save_IFS
1586 test -z "$as_dir" && as_dir=.
1587 # Account for people who put trailing slashes in PATH elements.
1588case $as_dir/ in
1589 ./ | .// | /cC/* | \
1590 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1591 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1592 /usr/ucb/* ) ;;
1593 *)
1594 # OSF1 and SCO ODT 3.0 have their own names for install.
1595 # Don't use installbsd from OSF since it installs stuff as root
1596 # by default.
1597 for ac_prog in ginstall scoinst install; do
1598 for ac_exec_ext in '' $ac_executable_extensions; do
1599 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1600 if test $ac_prog = install &&
1601 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1602 # AIX install. It has an incompatible calling convention.
1603 :
1604 elif test $ac_prog = install &&
1605 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1606 # program-specific install script used by HP pwplus--don't use.
1607 :
1608 else
1609 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1610 break 3
1611 fi
1612 fi
1613 done
1614 done
1615 ;;
1616esac
1617done
1618
1619
1620fi
1621 if test "${ac_cv_path_install+set}" = set; then
1622 INSTALL=$ac_cv_path_install
1623 else
1624 # As a last resort, use the slow shell script. We don't cache a
1625 # path for INSTALL within a source directory, because that will
1626 # break other packages using the cache if that directory is
1627 # removed, or if the path is relative.
1628 INSTALL=$ac_install_sh
1629 fi
1630fi
1631echo "$as_me:$LINENO: result: $INSTALL" >&5
1632echo "${ECHO_T}$INSTALL" >&6
1633
1634# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1635# It thinks the first close brace ends the variable substitution.
1636test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1637
1638test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1639
1640test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1641
1642echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1643echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1644# Just in case
1645sleep 1
1646echo timestamp > conftest.file
1647# Do `set' in a subshell so we don't clobber the current shell's
1648# arguments. Must try -L first in case configure is actually a
1649# symlink; some systems play weird games with the mod time of symlinks
1650# (eg FreeBSD returns the mod time of the symlink's containing
1651# directory).
1652if (
1653 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1654 if test "$*" = "X"; then
1655 # -L didn't work.
1656 set X `ls -t $srcdir/configure conftest.file`
1657 fi
1658 rm -f conftest.file
1659 if test "$*" != "X $srcdir/configure conftest.file" \
1660 && test "$*" != "X conftest.file $srcdir/configure"; then
1661
1662 # If neither matched, then we have a broken ls. This can happen
1663 # if, for instance, CONFIG_SHELL is bash and it inherits a
1664 # broken ls alias from the environment. This has actually
1665 # happened. Such a system could not be considered "sane".
1666 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1667alias in your environment" >&5
1668echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1669alias in your environment" >&2;}
1670 { (exit 1); exit 1; }; }
1671 fi
1672
1673 test "$2" = conftest.file
1674 )
1675then
1676 # Ok.
1677 :
1678else
1679 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1680Check your system clock" >&5
1681echo "$as_me: error: newly created file is older than distributed files!
1682Check your system clock" >&2;}
1683 { (exit 1); exit 1; }; }
1684fi
1685echo "$as_me:$LINENO: result: yes" >&5
1686echo "${ECHO_T}yes" >&6
1687test "$program_prefix" != NONE &&
1688 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1689# Use a double $ so make ignores it.
1690test "$program_suffix" != NONE &&
1691 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1692# Double any \ or $. echo might interpret backslashes.
1693# By default was `s,x,x', remove it if useless.
1694cat <<\_ACEOF >conftest.sed
1695s/[\\$]/&&/g;s/;s,x,x,$//
1696_ACEOF
1697program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1698rm conftest.sed
1699
1700# expand $ac_aux_dir to an absolute path
1701am_aux_dir=`cd $ac_aux_dir && pwd`
1702
1703test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1704# Use eval to expand $SHELL
1705if eval "$MISSING --run true"; then
1706 am_missing_run="$MISSING --run "
1707else
1708 am_missing_run=
1709 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1710echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1711fi
1712
1713if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1714 # We used to keeping the `.' as first argument, in order to
1715 # allow $(mkdir_p) to be used without argument. As in
1716 # $(mkdir_p) $(somedir)
1717 # where $(somedir) is conditionally defined. However this is wrong
1718 # for two reasons:
1719 # 1. if the package is installed by a user who cannot write `.'
1720 # make install will fail,
1721 # 2. the above comment should most certainly read
1722 # $(mkdir_p) $(DESTDIR)$(somedir)
1723 # so it does not work when $(somedir) is undefined and
1724 # $(DESTDIR) is not.
1725 # To support the latter case, we have to write
1726 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1727 # so the `.' trick is pointless.
1728 mkdir_p='mkdir -p --'
1729else
1730 # On NextStep and OpenStep, the `mkdir' command does not
1731 # recognize any option. It will interpret all options as
1732 # directories to create, and then abort because `.' already
1733 # exists.
1734 for d in ./-p ./--version;
1735 do
1736 test -d $d && rmdir $d
1737 done
1738 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1739 if test -f "$ac_aux_dir/mkinstalldirs"; then
1740 mkdir_p='$(mkinstalldirs)'
1741 else
1742 mkdir_p='$(install_sh) -d'
1743 fi
1744fi
1745
1746for ac_prog in gawk mawk nawk awk
1747do
1748 # Extract the first word of "$ac_prog", so it can be a program name with args.
1749set dummy $ac_prog; ac_word=$2
1750echo "$as_me:$LINENO: checking for $ac_word" >&5
1751echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1752if test "${ac_cv_prog_AWK+set}" = set; then
1753 echo $ECHO_N "(cached) $ECHO_C" >&6
1754else
1755 if test -n "$AWK"; then
1756 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1757else
1758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1759for as_dir in $PATH
1760do
1761 IFS=$as_save_IFS
1762 test -z "$as_dir" && as_dir=.
1763 for ac_exec_ext in '' $ac_executable_extensions; do
1764 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1765 ac_cv_prog_AWK="$ac_prog"
1766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1767 break 2
1768 fi
1769done
1770done
1771
1772fi
1773fi
1774AWK=$ac_cv_prog_AWK
1775if test -n "$AWK"; then
1776 echo "$as_me:$LINENO: result: $AWK" >&5
1777echo "${ECHO_T}$AWK" >&6
1778else
1779 echo "$as_me:$LINENO: result: no" >&5
1780echo "${ECHO_T}no" >&6
1781fi
1782
1783 test -n "$AWK" && break
1784done
1785
1786echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1787echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1788set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1789if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1790 echo $ECHO_N "(cached) $ECHO_C" >&6
1791else
1792 cat >conftest.make <<\_ACEOF
1793all:
1794 @echo 'ac_maketemp="$(MAKE)"'
1795_ACEOF
1796# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1797eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1798if test -n "$ac_maketemp"; then
1799 eval ac_cv_prog_make_${ac_make}_set=yes
1800else
1801 eval ac_cv_prog_make_${ac_make}_set=no
1802fi
1803rm -f conftest.make
1804fi
1805if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1806 echo "$as_me:$LINENO: result: yes" >&5
1807echo "${ECHO_T}yes" >&6
1808 SET_MAKE=
1809else
1810 echo "$as_me:$LINENO: result: no" >&5
1811echo "${ECHO_T}no" >&6
1812 SET_MAKE="MAKE=${MAKE-make}"
1813fi
1814
1815rm -rf .tst 2>/dev/null
1816mkdir .tst 2>/dev/null
1817if test -d .tst; then
1818 am__leading_dot=.
1819else
1820 am__leading_dot=_
1821fi
1822rmdir .tst 2>/dev/null
1823
1824# test to see if srcdir already configured
1825if test "`cd $srcdir && pwd`" != "`pwd`" &&
1826 test -f $srcdir/config.status; then
1827 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1828echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1829 { (exit 1); exit 1; }; }
1830fi
1831
1832# test whether we have cygpath
1833if test -z "$CYGPATH_W"; then
1834 if (cygpath --version) >/dev/null 2>/dev/null; then
1835 CYGPATH_W='cygpath -w'
1836 else
1837 CYGPATH_W=echo
1838 fi
1839fi
1840
1841
1842# Define the identity of the package.
1843 PACKAGE='libgomp'
1844 VERSION='1.0'
1845
1846
1847cat >>confdefs.h <<_ACEOF
1848#define PACKAGE "$PACKAGE"
1849_ACEOF
1850
1851
1852cat >>confdefs.h <<_ACEOF
1853#define VERSION "$VERSION"
1854_ACEOF
1855
1856# Some tools Automake needs.
1857
1858ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1859
1860
1861AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1862
1863
1864AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1865
1866
1867AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1868
1869
1870MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1871
1872install_sh=${install_sh-"$am_aux_dir/install-sh"}
1873
1874# Installed binaries are usually stripped using `strip' when the user
1875# run `make install-strip'. However `strip' might not be the right
1876# tool to use in cross-compilation environments, therefore Automake
1877# will honor the `STRIP' environment variable to overrule this program.
1878if test "$cross_compiling" != no; then
1879 if test -n "$ac_tool_prefix"; then
1880 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1881set dummy ${ac_tool_prefix}strip; ac_word=$2
1882echo "$as_me:$LINENO: checking for $ac_word" >&5
1883echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1884if test "${ac_cv_prog_STRIP+set}" = set; then
1885 echo $ECHO_N "(cached) $ECHO_C" >&6
1886else
1887 if test -n "$STRIP"; then
1888 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1889else
1890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1891for as_dir in $PATH
1892do
1893 IFS=$as_save_IFS
1894 test -z "$as_dir" && as_dir=.
1895 for ac_exec_ext in '' $ac_executable_extensions; do
1896 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1897 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1899 break 2
1900 fi
1901done
1902done
1903
1904fi
1905fi
1906STRIP=$ac_cv_prog_STRIP
1907if test -n "$STRIP"; then
1908 echo "$as_me:$LINENO: result: $STRIP" >&5
1909echo "${ECHO_T}$STRIP" >&6
1910else
1911 echo "$as_me:$LINENO: result: no" >&5
1912echo "${ECHO_T}no" >&6
1913fi
1914
1915fi
1916if test -z "$ac_cv_prog_STRIP"; then
1917 ac_ct_STRIP=$STRIP
1918 # Extract the first word of "strip", so it can be a program name with args.
1919set dummy strip; ac_word=$2
1920echo "$as_me:$LINENO: checking for $ac_word" >&5
1921echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1922if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1923 echo $ECHO_N "(cached) $ECHO_C" >&6
1924else
1925 if test -n "$ac_ct_STRIP"; then
1926 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1927else
1928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1929for as_dir in $PATH
1930do
1931 IFS=$as_save_IFS
1932 test -z "$as_dir" && as_dir=.
1933 for ac_exec_ext in '' $ac_executable_extensions; do
1934 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1935 ac_cv_prog_ac_ct_STRIP="strip"
1936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1937 break 2
1938 fi
1939done
1940done
1941
1942 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1943fi
1944fi
1945ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1946if test -n "$ac_ct_STRIP"; then
1947 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1948echo "${ECHO_T}$ac_ct_STRIP" >&6
1949else
1950 echo "$as_me:$LINENO: result: no" >&5
1951echo "${ECHO_T}no" >&6
1952fi
1953
1954 STRIP=$ac_ct_STRIP
1955else
1956 STRIP="$ac_cv_prog_STRIP"
1957fi
1958
1959fi
1960INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1961
1962# We need awk for the "check" target. The system "awk" is bad on
1963# some platforms.
1964# Always define AMTAR for backward compatibility.
1965
1966AMTAR=${AMTAR-"${am_missing_run}tar"}
1967
1968am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1969
1970
1971
1972
1973
1974# Default to --enable-multilib
1975# Check whether --enable-multilib or --disable-multilib was given.
1976if test "${enable_multilib+set}" = set; then
1977 enableval="$enable_multilib"
1978 case "$enableval" in
1979 yes) multilib=yes ;;
1980 no) multilib=no ;;
1981 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1982echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1983 { (exit 1); exit 1; }; } ;;
1984 esac
1985else
1986 multilib=yes
1987fi;
1988
1989# We may get other options which we leave undocumented:
1990# --with-target-subdir, --with-multisrctop, --with-multisubdir
1991# See config-ml.in if you want the gory details.
1992
1993if test "$srcdir" = "."; then
1994 if test "$with_target_subdir" != "."; then
1995 multi_basedir="$srcdir/$with_multisrctop../.."
1996 else
1997 multi_basedir="$srcdir/$with_multisrctop.."
1998 fi
1999else
2000 multi_basedir="$srcdir/.."
2001fi
2002
2003
ff434425 2004# Even if the default multilib is not a cross compilation,
2005# it may be that some of the other multilibs are.
2006if test $cross_compiling = no && test $multilib = yes \
2007 && test "x${with_multisubdir}" != x ; then
2008 cross_compiling=maybe
2009fi
2010
1e8e9920 2011 ac_config_commands="$ac_config_commands default-1"
2012
2013
2014# Calculate toolexeclibdir
2015# Also toolexecdir, though it's only used in toolexeclibdir
2016case ${enable_version_specific_runtime_libs} in
2017 yes)
2018 # Need the gcc compiler version to know where to install libraries
2019 # and header files if --enable-version-specific-runtime-libs option
2020 # is selected.
2021 toolexecdir='$(libdir)/gcc/$(target_alias)'
2022 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
2023 ;;
2024 no)
2025 if test -n "$with_cross_host" &&
2026 test x"$with_cross_host" != x"no"; then
2027 # Install a library built with a cross compiler in tooldir, not libdir.
2028 toolexecdir='$(exec_prefix)/$(target_alias)'
2029 toolexeclibdir='$(toolexecdir)/lib'
2030 else
2031 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
2032 toolexeclibdir='$(libdir)'
2033 fi
2034 multi_os_directory=`$CC -print-multi-os-directory`
2035 case $multi_os_directory in
2036 .) ;; # Avoid trailing /.
2037 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
2038 esac
2039 ;;
2040esac
2041
2042
2043
2044# Check the compiler.
2045# The same as in boehm-gc and libstdc++. Have to borrow it from there.
2046# We must force CC to /not/ be precious variables; otherwise
2047# the wrong, non-multilib-adjusted value will be used in multilibs.
2048# As a side effect, we have to subst CFLAGS ourselves.
2049
2050
2051
2052ac_ext=c
2053ac_cpp='$CPP $CPPFLAGS'
2054ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2055ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2056ac_compiler_gnu=$ac_cv_c_compiler_gnu
2057if test -n "$ac_tool_prefix"; then
2058 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2059set dummy ${ac_tool_prefix}gcc; ac_word=$2
2060echo "$as_me:$LINENO: checking for $ac_word" >&5
2061echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2062if test "${ac_cv_prog_CC+set}" = set; then
2063 echo $ECHO_N "(cached) $ECHO_C" >&6
2064else
2065 if test -n "$CC"; then
2066 ac_cv_prog_CC="$CC" # Let the user override the test.
2067else
2068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2069for as_dir in $PATH
2070do
2071 IFS=$as_save_IFS
2072 test -z "$as_dir" && as_dir=.
2073 for ac_exec_ext in '' $ac_executable_extensions; do
2074 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2075 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2077 break 2
2078 fi
2079done
2080done
2081
2082fi
2083fi
2084CC=$ac_cv_prog_CC
2085if test -n "$CC"; then
2086 echo "$as_me:$LINENO: result: $CC" >&5
2087echo "${ECHO_T}$CC" >&6
2088else
2089 echo "$as_me:$LINENO: result: no" >&5
2090echo "${ECHO_T}no" >&6
2091fi
2092
2093fi
2094if test -z "$ac_cv_prog_CC"; then
2095 ac_ct_CC=$CC
2096 # Extract the first word of "gcc", so it can be a program name with args.
2097set dummy gcc; ac_word=$2
2098echo "$as_me:$LINENO: checking for $ac_word" >&5
2099echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2100if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2101 echo $ECHO_N "(cached) $ECHO_C" >&6
2102else
2103 if test -n "$ac_ct_CC"; then
2104 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2105else
2106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2107for as_dir in $PATH
2108do
2109 IFS=$as_save_IFS
2110 test -z "$as_dir" && as_dir=.
2111 for ac_exec_ext in '' $ac_executable_extensions; do
2112 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2113 ac_cv_prog_ac_ct_CC="gcc"
2114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2115 break 2
2116 fi
2117done
2118done
2119
2120fi
2121fi
2122ac_ct_CC=$ac_cv_prog_ac_ct_CC
2123if test -n "$ac_ct_CC"; then
2124 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2125echo "${ECHO_T}$ac_ct_CC" >&6
2126else
2127 echo "$as_me:$LINENO: result: no" >&5
2128echo "${ECHO_T}no" >&6
2129fi
2130
2131 CC=$ac_ct_CC
2132else
2133 CC="$ac_cv_prog_CC"
2134fi
2135
2136if test -z "$CC"; then
2137 if test -n "$ac_tool_prefix"; then
2138 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2139set dummy ${ac_tool_prefix}cc; ac_word=$2
2140echo "$as_me:$LINENO: checking for $ac_word" >&5
2141echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2142if test "${ac_cv_prog_CC+set}" = set; then
2143 echo $ECHO_N "(cached) $ECHO_C" >&6
2144else
2145 if test -n "$CC"; then
2146 ac_cv_prog_CC="$CC" # Let the user override the test.
2147else
2148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2149for as_dir in $PATH
2150do
2151 IFS=$as_save_IFS
2152 test -z "$as_dir" && as_dir=.
2153 for ac_exec_ext in '' $ac_executable_extensions; do
2154 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2155 ac_cv_prog_CC="${ac_tool_prefix}cc"
2156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2157 break 2
2158 fi
2159done
2160done
2161
2162fi
2163fi
2164CC=$ac_cv_prog_CC
2165if test -n "$CC"; then
2166 echo "$as_me:$LINENO: result: $CC" >&5
2167echo "${ECHO_T}$CC" >&6
2168else
2169 echo "$as_me:$LINENO: result: no" >&5
2170echo "${ECHO_T}no" >&6
2171fi
2172
2173fi
2174if test -z "$ac_cv_prog_CC"; then
2175 ac_ct_CC=$CC
2176 # Extract the first word of "cc", so it can be a program name with args.
2177set dummy cc; ac_word=$2
2178echo "$as_me:$LINENO: checking for $ac_word" >&5
2179echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2180if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2181 echo $ECHO_N "(cached) $ECHO_C" >&6
2182else
2183 if test -n "$ac_ct_CC"; then
2184 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2185else
2186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2187for as_dir in $PATH
2188do
2189 IFS=$as_save_IFS
2190 test -z "$as_dir" && as_dir=.
2191 for ac_exec_ext in '' $ac_executable_extensions; do
2192 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2193 ac_cv_prog_ac_ct_CC="cc"
2194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2195 break 2
2196 fi
2197done
2198done
2199
2200fi
2201fi
2202ac_ct_CC=$ac_cv_prog_ac_ct_CC
2203if test -n "$ac_ct_CC"; then
2204 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2205echo "${ECHO_T}$ac_ct_CC" >&6
2206else
2207 echo "$as_me:$LINENO: result: no" >&5
2208echo "${ECHO_T}no" >&6
2209fi
2210
2211 CC=$ac_ct_CC
2212else
2213 CC="$ac_cv_prog_CC"
2214fi
2215
2216fi
2217if test -z "$CC"; then
2218 # Extract the first word of "cc", so it can be a program name with args.
2219set dummy cc; ac_word=$2
2220echo "$as_me:$LINENO: checking for $ac_word" >&5
2221echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2222if test "${ac_cv_prog_CC+set}" = set; then
2223 echo $ECHO_N "(cached) $ECHO_C" >&6
2224else
2225 if test -n "$CC"; then
2226 ac_cv_prog_CC="$CC" # Let the user override the test.
2227else
2228 ac_prog_rejected=no
2229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2230for as_dir in $PATH
2231do
2232 IFS=$as_save_IFS
2233 test -z "$as_dir" && as_dir=.
2234 for ac_exec_ext in '' $ac_executable_extensions; do
2235 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2236 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2237 ac_prog_rejected=yes
2238 continue
2239 fi
2240 ac_cv_prog_CC="cc"
2241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2242 break 2
2243 fi
2244done
2245done
2246
2247if test $ac_prog_rejected = yes; then
2248 # We found a bogon in the path, so make sure we never use it.
2249 set dummy $ac_cv_prog_CC
2250 shift
2251 if test $# != 0; then
2252 # We chose a different compiler from the bogus one.
2253 # However, it has the same basename, so the bogon will be chosen
2254 # first if we set CC to just the basename; use the full file name.
2255 shift
2256 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2257 fi
2258fi
2259fi
2260fi
2261CC=$ac_cv_prog_CC
2262if test -n "$CC"; then
2263 echo "$as_me:$LINENO: result: $CC" >&5
2264echo "${ECHO_T}$CC" >&6
2265else
2266 echo "$as_me:$LINENO: result: no" >&5
2267echo "${ECHO_T}no" >&6
2268fi
2269
2270fi
2271if test -z "$CC"; then
2272 if test -n "$ac_tool_prefix"; then
2273 for ac_prog in cl
2274 do
2275 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2276set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2277echo "$as_me:$LINENO: checking for $ac_word" >&5
2278echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2279if test "${ac_cv_prog_CC+set}" = set; then
2280 echo $ECHO_N "(cached) $ECHO_C" >&6
2281else
2282 if test -n "$CC"; then
2283 ac_cv_prog_CC="$CC" # Let the user override the test.
2284else
2285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2286for as_dir in $PATH
2287do
2288 IFS=$as_save_IFS
2289 test -z "$as_dir" && as_dir=.
2290 for ac_exec_ext in '' $ac_executable_extensions; do
2291 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2292 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2294 break 2
2295 fi
2296done
2297done
2298
2299fi
2300fi
2301CC=$ac_cv_prog_CC
2302if test -n "$CC"; then
2303 echo "$as_me:$LINENO: result: $CC" >&5
2304echo "${ECHO_T}$CC" >&6
2305else
2306 echo "$as_me:$LINENO: result: no" >&5
2307echo "${ECHO_T}no" >&6
2308fi
2309
2310 test -n "$CC" && break
2311 done
2312fi
2313if test -z "$CC"; then
2314 ac_ct_CC=$CC
2315 for ac_prog in cl
2316do
2317 # Extract the first word of "$ac_prog", so it can be a program name with args.
2318set dummy $ac_prog; ac_word=$2
2319echo "$as_me:$LINENO: checking for $ac_word" >&5
2320echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2321if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2322 echo $ECHO_N "(cached) $ECHO_C" >&6
2323else
2324 if test -n "$ac_ct_CC"; then
2325 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2326else
2327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2328for as_dir in $PATH
2329do
2330 IFS=$as_save_IFS
2331 test -z "$as_dir" && as_dir=.
2332 for ac_exec_ext in '' $ac_executable_extensions; do
2333 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2334 ac_cv_prog_ac_ct_CC="$ac_prog"
2335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2336 break 2
2337 fi
2338done
2339done
2340
2341fi
2342fi
2343ac_ct_CC=$ac_cv_prog_ac_ct_CC
2344if test -n "$ac_ct_CC"; then
2345 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2346echo "${ECHO_T}$ac_ct_CC" >&6
2347else
2348 echo "$as_me:$LINENO: result: no" >&5
2349echo "${ECHO_T}no" >&6
2350fi
2351
2352 test -n "$ac_ct_CC" && break
2353done
2354
2355 CC=$ac_ct_CC
2356fi
2357
2358fi
2359
2360
2361test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2362See \`config.log' for more details." >&5
2363echo "$as_me: error: no acceptable C compiler found in \$PATH
2364See \`config.log' for more details." >&2;}
2365 { (exit 1); exit 1; }; }
2366
2367# Provide some information about the compiler.
2368echo "$as_me:$LINENO:" \
2369 "checking for C compiler version" >&5
2370ac_compiler=`set X $ac_compile; echo $2`
2371{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2372 (eval $ac_compiler --version </dev/null >&5) 2>&5
2373 ac_status=$?
2374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375 (exit $ac_status); }
2376{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2377 (eval $ac_compiler -v </dev/null >&5) 2>&5
2378 ac_status=$?
2379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2380 (exit $ac_status); }
2381{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2382 (eval $ac_compiler -V </dev/null >&5) 2>&5
2383 ac_status=$?
2384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385 (exit $ac_status); }
2386
2387cat >conftest.$ac_ext <<_ACEOF
2388/* confdefs.h. */
2389_ACEOF
2390cat confdefs.h >>conftest.$ac_ext
2391cat >>conftest.$ac_ext <<_ACEOF
2392/* end confdefs.h. */
2393
2394int
2395main ()
2396{
2397
2398 ;
2399 return 0;
2400}
2401_ACEOF
2402ac_clean_files_save=$ac_clean_files
2403ac_clean_files="$ac_clean_files a.out a.exe b.out"
2404# Try to create an executable without -o first, disregard a.out.
2405# It will help us diagnose broken compilers, and finding out an intuition
2406# of exeext.
2407echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2408echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2409ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2410if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2411 (eval $ac_link_default) 2>&5
2412 ac_status=$?
2413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414 (exit $ac_status); }; then
2415 # Find the output, starting from the most likely. This scheme is
2416# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2417# resort.
2418
2419# Be careful to initialize this variable, since it used to be cached.
2420# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2421ac_cv_exeext=
2422# b.out is created by i960 compilers.
2423for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2424do
2425 test -f "$ac_file" || continue
2426 case $ac_file in
2427 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2428 ;;
2429 conftest.$ac_ext )
2430 # This is the source file.
2431 ;;
2432 [ab].out )
2433 # We found the default executable, but exeext='' is most
2434 # certainly right.
2435 break;;
2436 *.* )
2437 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2438 # FIXME: I believe we export ac_cv_exeext for Libtool,
2439 # but it would be cool to find out if it's true. Does anybody
2440 # maintain Libtool? --akim.
2441 export ac_cv_exeext
2442 break;;
2443 * )
2444 break;;
2445 esac
2446done
2447else
2448 echo "$as_me: failed program was:" >&5
2449sed 's/^/| /' conftest.$ac_ext >&5
2450
2451{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2452See \`config.log' for more details." >&5
2453echo "$as_me: error: C compiler cannot create executables
2454See \`config.log' for more details." >&2;}
2455 { (exit 77); exit 77; }; }
2456fi
2457
2458ac_exeext=$ac_cv_exeext
2459echo "$as_me:$LINENO: result: $ac_file" >&5
2460echo "${ECHO_T}$ac_file" >&6
2461
2462# Check the compiler produces executables we can run. If not, either
2463# the compiler is broken, or we cross compile.
2464echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2465echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2466# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2467# If not cross compiling, check that we can run a simple program.
2468if test "$cross_compiling" != yes; then
2469 if { ac_try='./$ac_file'
2470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2471 (eval $ac_try) 2>&5
2472 ac_status=$?
2473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474 (exit $ac_status); }; }; then
2475 cross_compiling=no
2476 else
2477 if test "$cross_compiling" = maybe; then
2478 cross_compiling=yes
2479 else
2480 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2481If you meant to cross compile, use \`--host'.
2482See \`config.log' for more details." >&5
2483echo "$as_me: error: cannot run C compiled programs.
2484If you meant to cross compile, use \`--host'.
2485See \`config.log' for more details." >&2;}
2486 { (exit 1); exit 1; }; }
2487 fi
2488 fi
2489fi
2490echo "$as_me:$LINENO: result: yes" >&5
2491echo "${ECHO_T}yes" >&6
2492
2493rm -f a.out a.exe conftest$ac_cv_exeext b.out
2494ac_clean_files=$ac_clean_files_save
2495# Check the compiler produces executables we can run. If not, either
2496# the compiler is broken, or we cross compile.
2497echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2498echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2499echo "$as_me:$LINENO: result: $cross_compiling" >&5
2500echo "${ECHO_T}$cross_compiling" >&6
2501
2502echo "$as_me:$LINENO: checking for suffix of executables" >&5
2503echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2504if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2505 (eval $ac_link) 2>&5
2506 ac_status=$?
2507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508 (exit $ac_status); }; then
2509 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2510# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2511# work properly (i.e., refer to `conftest.exe'), while it won't with
2512# `rm'.
2513for ac_file in conftest.exe conftest conftest.*; do
2514 test -f "$ac_file" || continue
2515 case $ac_file in
2516 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2517 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2518 export ac_cv_exeext
2519 break;;
2520 * ) break;;
2521 esac
2522done
2523else
2524 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2525See \`config.log' for more details." >&5
2526echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2527See \`config.log' for more details." >&2;}
2528 { (exit 1); exit 1; }; }
2529fi
2530
2531rm -f conftest$ac_cv_exeext
2532echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2533echo "${ECHO_T}$ac_cv_exeext" >&6
2534
2535rm -f conftest.$ac_ext
2536EXEEXT=$ac_cv_exeext
2537ac_exeext=$EXEEXT
2538echo "$as_me:$LINENO: checking for suffix of object files" >&5
2539echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2540if test "${ac_cv_objext+set}" = set; then
2541 echo $ECHO_N "(cached) $ECHO_C" >&6
2542else
2543 cat >conftest.$ac_ext <<_ACEOF
2544/* confdefs.h. */
2545_ACEOF
2546cat confdefs.h >>conftest.$ac_ext
2547cat >>conftest.$ac_ext <<_ACEOF
2548/* end confdefs.h. */
2549
2550int
2551main ()
2552{
2553
2554 ;
2555 return 0;
2556}
2557_ACEOF
2558rm -f conftest.o conftest.obj
2559if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2560 (eval $ac_compile) 2>&5
2561 ac_status=$?
2562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563 (exit $ac_status); }; then
2564 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2565 case $ac_file in
2566 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2567 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2568 break;;
2569 esac
2570done
2571else
2572 echo "$as_me: failed program was:" >&5
2573sed 's/^/| /' conftest.$ac_ext >&5
2574
2575{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2576See \`config.log' for more details." >&5
2577echo "$as_me: error: cannot compute suffix of object files: cannot compile
2578See \`config.log' for more details." >&2;}
2579 { (exit 1); exit 1; }; }
2580fi
2581
2582rm -f conftest.$ac_cv_objext conftest.$ac_ext
2583fi
2584echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2585echo "${ECHO_T}$ac_cv_objext" >&6
2586OBJEXT=$ac_cv_objext
2587ac_objext=$OBJEXT
2588echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2589echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2590if test "${ac_cv_c_compiler_gnu+set}" = set; then
2591 echo $ECHO_N "(cached) $ECHO_C" >&6
2592else
2593 cat >conftest.$ac_ext <<_ACEOF
2594/* confdefs.h. */
2595_ACEOF
2596cat confdefs.h >>conftest.$ac_ext
2597cat >>conftest.$ac_ext <<_ACEOF
2598/* end confdefs.h. */
2599
2600int
2601main ()
2602{
2603#ifndef __GNUC__
2604 choke me
2605#endif
2606
2607 ;
2608 return 0;
2609}
2610_ACEOF
2611rm -f conftest.$ac_objext
2612if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2613 (eval $ac_compile) 2>conftest.er1
2614 ac_status=$?
2615 grep -v '^ *+' conftest.er1 >conftest.err
2616 rm -f conftest.er1
2617 cat conftest.err >&5
2618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619 (exit $ac_status); } &&
59da30e1 2620 { ac_try='test -z "$ac_c_werror_flag"
2621 || test ! -s conftest.err'
1e8e9920 2622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2623 (eval $ac_try) 2>&5
2624 ac_status=$?
2625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626 (exit $ac_status); }; } &&
2627 { ac_try='test -s conftest.$ac_objext'
2628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2629 (eval $ac_try) 2>&5
2630 ac_status=$?
2631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632 (exit $ac_status); }; }; then
2633 ac_compiler_gnu=yes
2634else
2635 echo "$as_me: failed program was:" >&5
2636sed 's/^/| /' conftest.$ac_ext >&5
2637
2638ac_compiler_gnu=no
2639fi
2640rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2641ac_cv_c_compiler_gnu=$ac_compiler_gnu
2642
2643fi
2644echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2645echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2646GCC=`test $ac_compiler_gnu = yes && echo yes`
2647ac_test_CFLAGS=${CFLAGS+set}
2648ac_save_CFLAGS=$CFLAGS
2649CFLAGS="-g"
2650echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2651echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2652if test "${ac_cv_prog_cc_g+set}" = set; then
2653 echo $ECHO_N "(cached) $ECHO_C" >&6
2654else
2655 cat >conftest.$ac_ext <<_ACEOF
2656/* confdefs.h. */
2657_ACEOF
2658cat confdefs.h >>conftest.$ac_ext
2659cat >>conftest.$ac_ext <<_ACEOF
2660/* end confdefs.h. */
2661
2662int
2663main ()
2664{
2665
2666 ;
2667 return 0;
2668}
2669_ACEOF
2670rm -f conftest.$ac_objext
2671if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2672 (eval $ac_compile) 2>conftest.er1
2673 ac_status=$?
2674 grep -v '^ *+' conftest.er1 >conftest.err
2675 rm -f conftest.er1
2676 cat conftest.err >&5
2677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678 (exit $ac_status); } &&
59da30e1 2679 { ac_try='test -z "$ac_c_werror_flag"
2680 || test ! -s conftest.err'
1e8e9920 2681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2682 (eval $ac_try) 2>&5
2683 ac_status=$?
2684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685 (exit $ac_status); }; } &&
2686 { ac_try='test -s conftest.$ac_objext'
2687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2688 (eval $ac_try) 2>&5
2689 ac_status=$?
2690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691 (exit $ac_status); }; }; then
2692 ac_cv_prog_cc_g=yes
2693else
2694 echo "$as_me: failed program was:" >&5
2695sed 's/^/| /' conftest.$ac_ext >&5
2696
2697ac_cv_prog_cc_g=no
2698fi
2699rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2700fi
2701echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2702echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2703if test "$ac_test_CFLAGS" = set; then
2704 CFLAGS=$ac_save_CFLAGS
2705elif test $ac_cv_prog_cc_g = yes; then
2706 if test "$GCC" = yes; then
2707 CFLAGS="-g -O2"
2708 else
2709 CFLAGS="-g"
2710 fi
2711else
2712 if test "$GCC" = yes; then
2713 CFLAGS="-O2"
2714 else
2715 CFLAGS=
2716 fi
2717fi
2718echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2719echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2720if test "${ac_cv_prog_cc_stdc+set}" = set; then
2721 echo $ECHO_N "(cached) $ECHO_C" >&6
2722else
2723 ac_cv_prog_cc_stdc=no
2724ac_save_CC=$CC
2725cat >conftest.$ac_ext <<_ACEOF
2726/* confdefs.h. */
2727_ACEOF
2728cat confdefs.h >>conftest.$ac_ext
2729cat >>conftest.$ac_ext <<_ACEOF
2730/* end confdefs.h. */
2731#include <stdarg.h>
2732#include <stdio.h>
2733#include <sys/types.h>
2734#include <sys/stat.h>
2735/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2736struct buf { int x; };
2737FILE * (*rcsopen) (struct buf *, struct stat *, int);
2738static char *e (p, i)
2739 char **p;
2740 int i;
2741{
2742 return p[i];
2743}
2744static char *f (char * (*g) (char **, int), char **p, ...)
2745{
2746 char *s;
2747 va_list v;
2748 va_start (v,p);
2749 s = g (p, va_arg (v,int));
2750 va_end (v);
2751 return s;
2752}
2753
2754/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2755 function prototypes and stuff, but not '\xHH' hex character constants.
2756 These don't provoke an error unfortunately, instead are silently treated
2757 as 'x'. The following induces an error, until -std1 is added to get
2758 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2759 array size at least. It's necessary to write '\x00'==0 to get something
2760 that's true only with -std1. */
2761int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2762
2763int test (int i, double x);
2764struct s1 {int (*f) (int a);};
2765struct s2 {int (*f) (double a);};
2766int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2767int argc;
2768char **argv;
2769int
2770main ()
2771{
2772return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2773 ;
2774 return 0;
2775}
2776_ACEOF
2777# Don't try gcc -ansi; that turns off useful extensions and
2778# breaks some systems' header files.
2779# AIX -qlanglvl=ansi
2780# Ultrix and OSF/1 -std1
2781# HP-UX 10.20 and later -Ae
2782# HP-UX older versions -Aa -D_HPUX_SOURCE
2783# SVR4 -Xc -D__EXTENSIONS__
2784for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2785do
2786 CC="$ac_save_CC $ac_arg"
2787 rm -f conftest.$ac_objext
2788if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2789 (eval $ac_compile) 2>conftest.er1
2790 ac_status=$?
2791 grep -v '^ *+' conftest.er1 >conftest.err
2792 rm -f conftest.er1
2793 cat conftest.err >&5
2794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795 (exit $ac_status); } &&
59da30e1 2796 { ac_try='test -z "$ac_c_werror_flag"
2797 || test ! -s conftest.err'
1e8e9920 2798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2799 (eval $ac_try) 2>&5
2800 ac_status=$?
2801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802 (exit $ac_status); }; } &&
2803 { ac_try='test -s conftest.$ac_objext'
2804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2805 (eval $ac_try) 2>&5
2806 ac_status=$?
2807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808 (exit $ac_status); }; }; then
2809 ac_cv_prog_cc_stdc=$ac_arg
2810break
2811else
2812 echo "$as_me: failed program was:" >&5
2813sed 's/^/| /' conftest.$ac_ext >&5
2814
2815fi
2816rm -f conftest.err conftest.$ac_objext
2817done
2818rm -f conftest.$ac_ext conftest.$ac_objext
2819CC=$ac_save_CC
2820
2821fi
2822
2823case "x$ac_cv_prog_cc_stdc" in
2824 x|xno)
2825 echo "$as_me:$LINENO: result: none needed" >&5
2826echo "${ECHO_T}none needed" >&6 ;;
2827 *)
2828 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2829echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2830 CC="$CC $ac_cv_prog_cc_stdc" ;;
2831esac
2832
2833# Some people use a C++ compiler to compile C. Since we use `exit',
2834# in C++ we need to declare it. In case someone uses the same compiler
2835# for both compiling C and C++ we need to have the C++ compiler decide
2836# the declaration of exit, since it's the most demanding environment.
2837cat >conftest.$ac_ext <<_ACEOF
2838#ifndef __cplusplus
2839 choke me
2840#endif
2841_ACEOF
2842rm -f conftest.$ac_objext
2843if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2844 (eval $ac_compile) 2>conftest.er1
2845 ac_status=$?
2846 grep -v '^ *+' conftest.er1 >conftest.err
2847 rm -f conftest.er1
2848 cat conftest.err >&5
2849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850 (exit $ac_status); } &&
59da30e1 2851 { ac_try='test -z "$ac_c_werror_flag"
2852 || test ! -s conftest.err'
1e8e9920 2853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2854 (eval $ac_try) 2>&5
2855 ac_status=$?
2856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857 (exit $ac_status); }; } &&
2858 { ac_try='test -s conftest.$ac_objext'
2859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2860 (eval $ac_try) 2>&5
2861 ac_status=$?
2862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2863 (exit $ac_status); }; }; then
2864 for ac_declaration in \
2865 '' \
2866 'extern "C" void std::exit (int) throw (); using std::exit;' \
2867 'extern "C" void std::exit (int); using std::exit;' \
2868 'extern "C" void exit (int) throw ();' \
2869 'extern "C" void exit (int);' \
2870 'void exit (int);'
2871do
2872 cat >conftest.$ac_ext <<_ACEOF
2873/* confdefs.h. */
2874_ACEOF
2875cat confdefs.h >>conftest.$ac_ext
2876cat >>conftest.$ac_ext <<_ACEOF
2877/* end confdefs.h. */
2878$ac_declaration
2879#include <stdlib.h>
2880int
2881main ()
2882{
2883exit (42);
2884 ;
2885 return 0;
2886}
2887_ACEOF
2888rm -f conftest.$ac_objext
2889if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2890 (eval $ac_compile) 2>conftest.er1
2891 ac_status=$?
2892 grep -v '^ *+' conftest.er1 >conftest.err
2893 rm -f conftest.er1
2894 cat conftest.err >&5
2895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896 (exit $ac_status); } &&
59da30e1 2897 { ac_try='test -z "$ac_c_werror_flag"
2898 || test ! -s conftest.err'
1e8e9920 2899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2900 (eval $ac_try) 2>&5
2901 ac_status=$?
2902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903 (exit $ac_status); }; } &&
2904 { ac_try='test -s conftest.$ac_objext'
2905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2906 (eval $ac_try) 2>&5
2907 ac_status=$?
2908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909 (exit $ac_status); }; }; then
2910 :
2911else
2912 echo "$as_me: failed program was:" >&5
2913sed 's/^/| /' conftest.$ac_ext >&5
2914
2915continue
2916fi
2917rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2918 cat >conftest.$ac_ext <<_ACEOF
2919/* confdefs.h. */
2920_ACEOF
2921cat confdefs.h >>conftest.$ac_ext
2922cat >>conftest.$ac_ext <<_ACEOF
2923/* end confdefs.h. */
2924$ac_declaration
2925int
2926main ()
2927{
2928exit (42);
2929 ;
2930 return 0;
2931}
2932_ACEOF
2933rm -f conftest.$ac_objext
2934if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2935 (eval $ac_compile) 2>conftest.er1
2936 ac_status=$?
2937 grep -v '^ *+' conftest.er1 >conftest.err
2938 rm -f conftest.er1
2939 cat conftest.err >&5
2940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941 (exit $ac_status); } &&
59da30e1 2942 { ac_try='test -z "$ac_c_werror_flag"
2943 || test ! -s conftest.err'
1e8e9920 2944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2945 (eval $ac_try) 2>&5
2946 ac_status=$?
2947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948 (exit $ac_status); }; } &&
2949 { ac_try='test -s conftest.$ac_objext'
2950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2951 (eval $ac_try) 2>&5
2952 ac_status=$?
2953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954 (exit $ac_status); }; }; then
2955 break
2956else
2957 echo "$as_me: failed program was:" >&5
2958sed 's/^/| /' conftest.$ac_ext >&5
2959
2960fi
2961rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2962done
2963rm -f conftest*
2964if test -n "$ac_declaration"; then
2965 echo '#ifdef __cplusplus' >>confdefs.h
2966 echo $ac_declaration >>confdefs.h
2967 echo '#endif' >>confdefs.h
2968fi
2969
2970else
2971 echo "$as_me: failed program was:" >&5
2972sed 's/^/| /' conftest.$ac_ext >&5
2973
2974fi
2975rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2976ac_ext=c
2977ac_cpp='$CPP $CPPFLAGS'
2978ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2979ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2980ac_compiler_gnu=$ac_cv_c_compiler_gnu
2981DEPDIR="${am__leading_dot}deps"
2982
2983 ac_config_commands="$ac_config_commands depfiles"
2984
2985
2986am_make=${MAKE-make}
2987cat > confinc << 'END'
2988am__doit:
2989 @echo done
2990.PHONY: am__doit
2991END
2992# If we don't find an include directive, just comment out the code.
2993echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2994echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2995am__include="#"
2996am__quote=
2997_am_result=none
2998# First try GNU make style include.
2999echo "include confinc" > confmf
3000# We grep out `Entering directory' and `Leaving directory'
3001# messages which can occur if `w' ends up in MAKEFLAGS.
3002# In particular we don't look at `^make:' because GNU make might
3003# be invoked under some other name (usually "gmake"), in which
3004# case it prints its new name instead of `make'.
3005if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3006 am__include=include
3007 am__quote=
3008 _am_result=GNU
3009fi
3010# Now try BSD make style include.
3011if test "$am__include" = "#"; then
3012 echo '.include "confinc"' > confmf
3013 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3014 am__include=.include
3015 am__quote="\""
3016 _am_result=BSD
3017 fi
3018fi
3019
3020
3021echo "$as_me:$LINENO: result: $_am_result" >&5
3022echo "${ECHO_T}$_am_result" >&6
3023rm -f confinc confmf
3024
3025# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3026if test "${enable_dependency_tracking+set}" = set; then
3027 enableval="$enable_dependency_tracking"
3028
3029fi;
3030if test "x$enable_dependency_tracking" != xno; then
3031 am_depcomp="$ac_aux_dir/depcomp"
3032 AMDEPBACKSLASH='\'
3033fi
3034
3035
3036if test "x$enable_dependency_tracking" != xno; then
3037 AMDEP_TRUE=
3038 AMDEP_FALSE='#'
3039else
3040 AMDEP_TRUE='#'
3041 AMDEP_FALSE=
3042fi
3043
3044
3045
3046
3047depcc="$CC" am_compiler_list=
3048
3049echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3050echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3051if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3052 echo $ECHO_N "(cached) $ECHO_C" >&6
3053else
3054 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3055 # We make a subdir and do the tests there. Otherwise we can end up
3056 # making bogus files that we don't know about and never remove. For
3057 # instance it was reported that on HP-UX the gcc test will end up
3058 # making a dummy file named `D' -- because `-MD' means `put the output
3059 # in D'.
3060 mkdir conftest.dir
3061 # Copy depcomp to subdir because otherwise we won't find it if we're
3062 # using a relative directory.
3063 cp "$am_depcomp" conftest.dir
3064 cd conftest.dir
3065 # We will build objects and dependencies in a subdirectory because
3066 # it helps to detect inapplicable dependency modes. For instance
3067 # both Tru64's cc and ICC support -MD to output dependencies as a
3068 # side effect of compilation, but ICC will put the dependencies in
3069 # the current directory while Tru64 will put them in the object
3070 # directory.
3071 mkdir sub
3072
3073 am_cv_CC_dependencies_compiler_type=none
3074 if test "$am_compiler_list" = ""; then
3075 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3076 fi
3077 for depmode in $am_compiler_list; do
3078 # Setup a source with many dependencies, because some compilers
3079 # like to wrap large dependency lists on column 80 (with \), and
3080 # we should not choose a depcomp mode which is confused by this.
3081 #
3082 # We need to recreate these files for each test, as the compiler may
3083 # overwrite some of them when testing with obscure command lines.
3084 # This happens at least with the AIX C compiler.
3085 : > sub/conftest.c
3086 for i in 1 2 3 4 5 6; do
3087 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3088 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3089 # Solaris 8's {/usr,}/bin/sh.
3090 touch sub/conftst$i.h
3091 done
3092 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3093
3094 case $depmode in
3095 nosideeffect)
3096 # after this tag, mechanisms are not by side-effect, so they'll
3097 # only be used when explicitly requested
3098 if test "x$enable_dependency_tracking" = xyes; then
3099 continue
3100 else
3101 break
3102 fi
3103 ;;
3104 none) break ;;
3105 esac
3106 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3107 # mode. It turns out that the SunPro C++ compiler does not properly
3108 # handle `-M -o', and we need to detect this.
3109 if depmode=$depmode \
3110 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3111 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3112 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3113 >/dev/null 2>conftest.err &&
3114 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3115 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3116 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3117 # icc doesn't choke on unknown options, it will just issue warnings
3118 # or remarks (even with -Werror). So we grep stderr for any message
3119 # that says an option was ignored or not supported.
3120 # When given -MP, icc 7.0 and 7.1 complain thusly:
3121 # icc: Command line warning: ignoring option '-M'; no argument required
3122 # The diagnosis changed in icc 8.0:
3123 # icc: Command line remark: option '-MP' not supported
3124 if (grep 'ignoring option' conftest.err ||
3125 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3126 am_cv_CC_dependencies_compiler_type=$depmode
3127 break
3128 fi
3129 fi
3130 done
3131
3132 cd ..
3133 rm -rf conftest.dir
3134else
3135 am_cv_CC_dependencies_compiler_type=none
3136fi
3137
3138fi
3139echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3140echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3141CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3142
3143
3144
3145if
3146 test "x$enable_dependency_tracking" != xno \
3147 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3148 am__fastdepCC_TRUE=
3149 am__fastdepCC_FALSE='#'
3150else
3151 am__fastdepCC_TRUE='#'
3152 am__fastdepCC_FALSE=
3153fi
3154
3155
3156
3157
3158
3159
3160# In order to override CFLAGS_FOR_TARGET, all of our special flags go
3161# in XCFLAGS. But we need them in CFLAGS during configury. So put them
3162# in both places for now and restore CFLAGS at the end of config.
3163save_CFLAGS="$CFLAGS"
3164
3165# Add -Wall -Werror if we are using GCC.
3166if test "x$GCC" = "xyes"; then
3167 XCFLAGS="$XCFLAGS -Wall -Werror"
3168fi
3169
3170# Find other programs we need.
3171if test -n "$ac_tool_prefix"; then
3172 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3173set dummy ${ac_tool_prefix}ar; ac_word=$2
3174echo "$as_me:$LINENO: checking for $ac_word" >&5
3175echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3176if test "${ac_cv_prog_AR+set}" = set; then
3177 echo $ECHO_N "(cached) $ECHO_C" >&6
3178else
3179 if test -n "$AR"; then
3180 ac_cv_prog_AR="$AR" # Let the user override the test.
3181else
3182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3183for as_dir in $PATH
3184do
3185 IFS=$as_save_IFS
3186 test -z "$as_dir" && as_dir=.
3187 for ac_exec_ext in '' $ac_executable_extensions; do
3188 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3189 ac_cv_prog_AR="${ac_tool_prefix}ar"
3190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3191 break 2
3192 fi
3193done
3194done
3195
3196fi
3197fi
3198AR=$ac_cv_prog_AR
3199if test -n "$AR"; then
3200 echo "$as_me:$LINENO: result: $AR" >&5
3201echo "${ECHO_T}$AR" >&6
3202else
3203 echo "$as_me:$LINENO: result: no" >&5
3204echo "${ECHO_T}no" >&6
3205fi
3206
3207fi
3208if test -z "$ac_cv_prog_AR"; then
3209 ac_ct_AR=$AR
3210 # Extract the first word of "ar", so it can be a program name with args.
3211set dummy ar; ac_word=$2
3212echo "$as_me:$LINENO: checking for $ac_word" >&5
3213echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3214if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3215 echo $ECHO_N "(cached) $ECHO_C" >&6
3216else
3217 if test -n "$ac_ct_AR"; then
3218 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3219else
3220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3221for as_dir in $PATH
3222do
3223 IFS=$as_save_IFS
3224 test -z "$as_dir" && as_dir=.
3225 for ac_exec_ext in '' $ac_executable_extensions; do
3226 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3227 ac_cv_prog_ac_ct_AR="ar"
3228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3229 break 2
3230 fi
3231done
3232done
3233
3234fi
3235fi
3236ac_ct_AR=$ac_cv_prog_ac_ct_AR
3237if test -n "$ac_ct_AR"; then
3238 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3239echo "${ECHO_T}$ac_ct_AR" >&6
3240else
3241 echo "$as_me:$LINENO: result: no" >&5
3242echo "${ECHO_T}no" >&6
3243fi
3244
3245 AR=$ac_ct_AR
3246else
3247 AR="$ac_cv_prog_AR"
3248fi
3249
3250if test -n "$ac_tool_prefix"; then
3251 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3252set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3253echo "$as_me:$LINENO: checking for $ac_word" >&5
3254echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3255if test "${ac_cv_prog_RANLIB+set}" = set; then
3256 echo $ECHO_N "(cached) $ECHO_C" >&6
3257else
3258 if test -n "$RANLIB"; then
3259 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3260else
3261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3262for as_dir in $PATH
3263do
3264 IFS=$as_save_IFS
3265 test -z "$as_dir" && as_dir=.
3266 for ac_exec_ext in '' $ac_executable_extensions; do
3267 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3268 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3270 break 2
3271 fi
3272done
3273done
3274
3275fi
3276fi
3277RANLIB=$ac_cv_prog_RANLIB
3278if test -n "$RANLIB"; then
3279 echo "$as_me:$LINENO: result: $RANLIB" >&5
3280echo "${ECHO_T}$RANLIB" >&6
3281else
3282 echo "$as_me:$LINENO: result: no" >&5
3283echo "${ECHO_T}no" >&6
3284fi
3285
3286fi
3287if test -z "$ac_cv_prog_RANLIB"; then
3288 ac_ct_RANLIB=$RANLIB
3289 # Extract the first word of "ranlib", so it can be a program name with args.
3290set dummy ranlib; ac_word=$2
3291echo "$as_me:$LINENO: checking for $ac_word" >&5
3292echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3293if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3294 echo $ECHO_N "(cached) $ECHO_C" >&6
3295else
3296 if test -n "$ac_ct_RANLIB"; then
3297 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3298else
3299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3300for as_dir in $PATH
3301do
3302 IFS=$as_save_IFS
3303 test -z "$as_dir" && as_dir=.
3304 for ac_exec_ext in '' $ac_executable_extensions; do
3305 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3306 ac_cv_prog_ac_ct_RANLIB="ranlib"
3307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3308 break 2
3309 fi
3310done
3311done
3312
3313 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="ranlib-not-found-in-path-error"
3314fi
3315fi
3316ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3317if test -n "$ac_ct_RANLIB"; then
3318 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3319echo "${ECHO_T}$ac_ct_RANLIB" >&6
3320else
3321 echo "$as_me:$LINENO: result: no" >&5
3322echo "${ECHO_T}no" >&6
3323fi
3324
3325 RANLIB=$ac_ct_RANLIB
3326else
3327 RANLIB="$ac_cv_prog_RANLIB"
3328fi
3329
3330# Extract the first word of "perl", so it can be a program name with args.
3331set dummy perl; ac_word=$2
3332echo "$as_me:$LINENO: checking for $ac_word" >&5
3333echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3334if test "${ac_cv_path_PERL+set}" = set; then
3335 echo $ECHO_N "(cached) $ECHO_C" >&6
3336else
3337 case $PERL in
3338 [\\/]* | ?:[\\/]*)
3339 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3340 ;;
3341 *)
3342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3343for as_dir in $PATH
3344do
3345 IFS=$as_save_IFS
3346 test -z "$as_dir" && as_dir=.
3347 for ac_exec_ext in '' $ac_executable_extensions; do
3348 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3349 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
3350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3351 break 2
3352 fi
3353done
3354done
3355
3356 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
3357 ;;
3358esac
3359fi
3360PERL=$ac_cv_path_PERL
3361
3362if test -n "$PERL"; then
3363 echo "$as_me:$LINENO: result: $PERL" >&5
3364echo "${ECHO_T}$PERL" >&6
3365else
3366 echo "$as_me:$LINENO: result: no" >&5
3367echo "${ECHO_T}no" >&6
3368fi
3369
3370echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3371echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3372set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3373if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3374 echo $ECHO_N "(cached) $ECHO_C" >&6
3375else
3376 cat >conftest.make <<\_ACEOF
3377all:
3378 @echo 'ac_maketemp="$(MAKE)"'
3379_ACEOF
3380# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3381eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3382if test -n "$ac_maketemp"; then
3383 eval ac_cv_prog_make_${ac_make}_set=yes
3384else
3385 eval ac_cv_prog_make_${ac_make}_set=no
3386fi
3387rm -f conftest.make
3388fi
3389if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3390 echo "$as_me:$LINENO: result: yes" >&5
3391echo "${ECHO_T}yes" >&6
3392 SET_MAKE=
3393else
3394 echo "$as_me:$LINENO: result: no" >&5
3395echo "${ECHO_T}no" >&6
3396 SET_MAKE="MAKE=${MAKE-make}"
3397fi
3398
3399# Find a good install program. We prefer a C program (faster),
3400# so one script is as good as another. But avoid the broken or
3401# incompatible versions:
3402# SysV /etc/install, /usr/sbin/install
3403# SunOS /usr/etc/install
3404# IRIX /sbin/install
3405# AIX /bin/install
3406# AmigaOS /C/install, which installs bootblocks on floppy discs
3407# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3408# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3409# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3410# OS/2's system install, which has a completely different semantic
3411# ./install, which can be erroneously created by make from ./install.sh.
3412echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3413echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3414if test -z "$INSTALL"; then
3415if test "${ac_cv_path_install+set}" = set; then
3416 echo $ECHO_N "(cached) $ECHO_C" >&6
3417else
3418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3419for as_dir in $PATH
3420do
3421 IFS=$as_save_IFS
3422 test -z "$as_dir" && as_dir=.
3423 # Account for people who put trailing slashes in PATH elements.
3424case $as_dir/ in
3425 ./ | .// | /cC/* | \
3426 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3427 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3428 /usr/ucb/* ) ;;
3429 *)
3430 # OSF1 and SCO ODT 3.0 have their own names for install.
3431 # Don't use installbsd from OSF since it installs stuff as root
3432 # by default.
3433 for ac_prog in ginstall scoinst install; do
3434 for ac_exec_ext in '' $ac_executable_extensions; do
3435 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3436 if test $ac_prog = install &&
3437 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3438 # AIX install. It has an incompatible calling convention.
3439 :
3440 elif test $ac_prog = install &&
3441 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3442 # program-specific install script used by HP pwplus--don't use.
3443 :
3444 else
3445 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3446 break 3
3447 fi
3448 fi
3449 done
3450 done
3451 ;;
3452esac
3453done
3454
3455
3456fi
3457 if test "${ac_cv_path_install+set}" = set; then
3458 INSTALL=$ac_cv_path_install
3459 else
3460 # As a last resort, use the slow shell script. We don't cache a
3461 # path for INSTALL within a source directory, because that will
3462 # break other packages using the cache if that directory is
3463 # removed, or if the path is relative.
3464 INSTALL=$ac_install_sh
3465 fi
3466fi
3467echo "$as_me:$LINENO: result: $INSTALL" >&5
3468echo "${ECHO_T}$INSTALL" >&6
3469
3470# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3471# It thinks the first close brace ends the variable substitution.
3472test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3473
3474test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3475
3476test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3477
3478
439d698f 3479# See if makeinfo has been installed and is modern enough
3480# that we can use it.
3481
3482 # Extract the first word of "makeinfo", so it can be a program name with args.
3483set dummy makeinfo; ac_word=$2
3484echo "$as_me:$LINENO: checking for $ac_word" >&5
3485echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3486if test "${ac_cv_prog_MAKEINFO+set}" = set; then
3487 echo $ECHO_N "(cached) $ECHO_C" >&6
3488else
3489 if test -n "$MAKEINFO"; then
3490 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
3491else
3492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3493for as_dir in $PATH
3494do
3495 IFS=$as_save_IFS
3496 test -z "$as_dir" && as_dir=.
3497 for ac_exec_ext in '' $ac_executable_extensions; do
3498 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3499 ac_cv_prog_MAKEINFO="makeinfo"
3500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3501 break 2
3502 fi
3503done
3504done
3505
3506fi
3507fi
3508MAKEINFO=$ac_cv_prog_MAKEINFO
3509if test -n "$MAKEINFO"; then
3510 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
3511echo "${ECHO_T}$MAKEINFO" >&6
3512else
3513 echo "$as_me:$LINENO: result: no" >&5
3514echo "${ECHO_T}no" >&6
3515fi
3516
3517 if test -n "$MAKEINFO"; then
3518 # Found it, now check the version.
3519 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
3520echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
3521if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
3522 echo $ECHO_N "(cached) $ECHO_C" >&6
3523else
3524 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
3525 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
3526
3527 case $ac_prog_version in
3528 '') gcc_cv_prog_makeinfo_modern=no;;
3529 4.[4-9]*) gcc_cv_prog_makeinfo_modern=yes;;
3530 *) gcc_cv_prog_makeinfo_modern=no;;
3531 esac
3532
3533fi
3534echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
3535echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
3536 else
3537 gcc_cv_prog_makeinfo_modern=no
3538 fi
3539
3540
3541
3542if test $gcc_cv_prog_makeinfo_modern = "yes"; then
3543 BUILD_INFO_TRUE=
3544 BUILD_INFO_FALSE='#'
3545else
3546 BUILD_INFO_TRUE='#'
3547 BUILD_INFO_FALSE=
3548fi
3549
3550
3551
1e8e9920 3552# Configure libtool
3553# Check whether --enable-shared or --disable-shared was given.
3554if test "${enable_shared+set}" = set; then
3555 enableval="$enable_shared"
3556 p=${PACKAGE-default}
3557case $enableval in
3558yes) enable_shared=yes ;;
3559no) enable_shared=no ;;
3560*)
3561 enable_shared=no
3562 # Look at the argument we got. We use all the common list separators.
3563 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3564 for pkg in $enableval; do
3565 if test "X$pkg" = "X$p"; then
3566 enable_shared=yes
3567 fi
3568 done
3569 IFS="$ac_save_ifs"
3570 ;;
3571esac
3572else
3573 enable_shared=yes
3574fi;
3575# Check whether --enable-static or --disable-static was given.
3576if test "${enable_static+set}" = set; then
3577 enableval="$enable_static"
3578 p=${PACKAGE-default}
3579case $enableval in
3580yes) enable_static=yes ;;
3581no) enable_static=no ;;
3582*)
3583 enable_static=no
3584 # Look at the argument we got. We use all the common list separators.
3585 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3586 for pkg in $enableval; do
3587 if test "X$pkg" = "X$p"; then
3588 enable_static=yes
3589 fi
3590 done
3591 IFS="$ac_save_ifs"
3592 ;;
3593esac
3594else
3595 enable_static=yes
3596fi;
3597# Check whether --enable-fast-install or --disable-fast-install was given.
3598if test "${enable_fast_install+set}" = set; then
3599 enableval="$enable_fast_install"
3600 p=${PACKAGE-default}
3601case $enableval in
3602yes) enable_fast_install=yes ;;
3603no) enable_fast_install=no ;;
3604*)
3605 enable_fast_install=no
3606 # Look at the argument we got. We use all the common list separators.
3607 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3608 for pkg in $enableval; do
3609 if test "X$pkg" = "X$p"; then
3610 enable_fast_install=yes
3611 fi
3612 done
3613 IFS="$ac_save_ifs"
3614 ;;
3615esac
3616else
3617 enable_fast_install=yes
3618fi;
3619
3620# Check whether --with-gnu-ld or --without-gnu-ld was given.
3621if test "${with_gnu_ld+set}" = set; then
3622 withval="$with_gnu_ld"
3623 test "$withval" = no || with_gnu_ld=yes
3624else
3625 with_gnu_ld=no
3626fi;
3627ac_prog=ld
3628if test "$GCC" = yes; then
3629 # Check if gcc -print-prog-name=ld gives a path.
3630 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3631echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3632 case $host in
3633 *-*-mingw*)
3634 # gcc leaves a trailing carriage return which upsets mingw
3635 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3636 *)
3637 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3638 esac
3639 case $ac_prog in
3640 # Accept absolute paths.
3641 [\\/]* | [A-Za-z]:[\\/]*)
3642 re_direlt='/[^/][^/]*/\.\./'
3643 # Canonicalize the path of ld
3644 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3645 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3646 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3647 done
3648 test -z "$LD" && LD="$ac_prog"
3649 ;;
3650 "")
3651 # If it fails, then pretend we aren't using GCC.
3652 ac_prog=ld
3653 ;;
3654 *)
3655 # If it is relative, then search for the first ld in PATH.
3656 with_gnu_ld=unknown
3657 ;;
3658 esac
3659elif test "$with_gnu_ld" = yes; then
3660 echo "$as_me:$LINENO: checking for GNU ld" >&5
3661echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3662else
3663 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3664echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3665fi
3666if test "${lt_cv_path_LD+set}" = set; then
3667 echo $ECHO_N "(cached) $ECHO_C" >&6
3668else
3669 if test -z "$LD"; then
3670 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3671 for ac_dir in $PATH; do
3672 test -z "$ac_dir" && ac_dir=.
3673 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3674 lt_cv_path_LD="$ac_dir/$ac_prog"
3675 # Check to see if the program is GNU ld. I'd rather use --version,
3676 # but apparently some GNU ld's only accept -v.
3677 # Break only if it was the GNU/non-GNU ld that we prefer.
3678 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3679 test "$with_gnu_ld" != no && break
3680 else
3681 test "$with_gnu_ld" != yes && break
3682 fi
3683 fi
3684 done
3685 IFS="$ac_save_ifs"
3686else
3687 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3688fi
3689fi
3690
3691LD="$lt_cv_path_LD"
3692if test -n "$LD"; then
3693 echo "$as_me:$LINENO: result: $LD" >&5
3694echo "${ECHO_T}$LD" >&6
3695else
3696 echo "$as_me:$LINENO: result: no" >&5
3697echo "${ECHO_T}no" >&6
3698fi
3699test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3700echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3701 { (exit 1); exit 1; }; }
3702echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3703echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3704if test "${lt_cv_prog_gnu_ld+set}" = set; then
3705 echo $ECHO_N "(cached) $ECHO_C" >&6
3706else
3707 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3708if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3709 lt_cv_prog_gnu_ld=yes
3710else
3711 lt_cv_prog_gnu_ld=no
3712fi
3713fi
3714echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3715echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3716with_gnu_ld=$lt_cv_prog_gnu_ld
3717
3718
3719echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3720echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3721if test "${lt_cv_ld_reload_flag+set}" = set; then
3722 echo $ECHO_N "(cached) $ECHO_C" >&6
3723else
3724 lt_cv_ld_reload_flag='-r'
3725fi
3726echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3727echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3728reload_flag=$lt_cv_ld_reload_flag
3729test -n "$reload_flag" && reload_flag=" $reload_flag"
3730
3731echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3732echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3733if test "${lt_cv_path_NM+set}" = set; then
3734 echo $ECHO_N "(cached) $ECHO_C" >&6
3735else
3736 if test -n "$NM"; then
3737 # Let the user override the test.
3738 lt_cv_path_NM="$NM"
3739else
3740 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3741 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3742 test -z "$ac_dir" && ac_dir=.
3743 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3744 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3745 # Check to see if the nm accepts a BSD-compat flag.
3746 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3747 # nm: unknown option "B" ignored
3748 # Tru64's nm complains that /dev/null is an invalid object file
3749 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3750 lt_cv_path_NM="$tmp_nm -B"
3751 break
3752 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3753 lt_cv_path_NM="$tmp_nm -p"
3754 break
3755 else
3756 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3757 continue # so that we can try to find one that supports BSD flags
3758 fi
3759 fi
3760 done
3761 IFS="$ac_save_ifs"
3762 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3763fi
3764fi
3765
3766NM="$lt_cv_path_NM"
3767echo "$as_me:$LINENO: result: $NM" >&5
3768echo "${ECHO_T}$NM" >&6
3769
3770echo "$as_me:$LINENO: checking whether ln -s works" >&5
3771echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3772LN_S=$as_ln_s
3773if test "$LN_S" = "ln -s"; then
3774 echo "$as_me:$LINENO: result: yes" >&5
3775echo "${ECHO_T}yes" >&6
3776else
3777 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3778echo "${ECHO_T}no, using $LN_S" >&6
3779fi
3780
3781echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3782echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3783if test "${lt_cv_deplibs_check_method+set}" = set; then
3784 echo $ECHO_N "(cached) $ECHO_C" >&6
3785else
3786 lt_cv_file_magic_cmd='$MAGIC_CMD'
3787lt_cv_file_magic_test_file=
3788lt_cv_deplibs_check_method='unknown'
3789# Need to set the preceding variable on all platforms that support
3790# interlibrary dependencies.
3791# 'none' -- dependencies not supported.
3792# `unknown' -- same as none, but documents that we really don't know.
3793# 'pass_all' -- all dependencies passed with no checks.
3794# 'test_compile' -- check by making test program.
3795# 'file_magic [regex]' -- check by looking for files in library path
3796# which responds to the $file_magic_cmd with a given egrep regex.
3797# If you have `file' or equivalent on your system and you're not sure
3798# whether `pass_all' will *always* work, you probably want this one.
3799
3800case $host_os in
3801aix*)
3802 lt_cv_deplibs_check_method=pass_all
3803 ;;
3804
3805beos*)
3806 lt_cv_deplibs_check_method=pass_all
3807 ;;
3808
3809bsdi4*)
3810 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3811 lt_cv_file_magic_cmd='/usr/bin/file -L'
3812 lt_cv_file_magic_test_file=/shlib/libc.so
3813 ;;
3814
3815cygwin* | mingw* |pw32*)
3816 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3817 lt_cv_file_magic_cmd='$OBJDUMP -f'
3818 ;;
3819
3820darwin* | rhapsody*)
3821 # this will be overwritten by pass_all, but leave it in just in case
3822 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3823 lt_cv_file_magic_cmd='/usr/bin/file -L'
3824 case "$host_os" in
3825 rhapsody* | darwin1.012)
3826 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3827 ;;
3828 *) # Darwin 1.3 on
3829 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3830 ;;
3831 esac
3832 lt_cv_deplibs_check_method=pass_all
3833 ;;
3834
3835freebsd* | kfreebsd*-gnu)
3836 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3837 case $host_cpu in
3838 i*86 )
3839 # Not sure whether the presence of OpenBSD here was a mistake.
3840 # Let's accept both of them until this is cleared up.
3841 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3842 lt_cv_file_magic_cmd=/usr/bin/file
3843 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3844 ;;
3845 esac
3846 else
3847 lt_cv_deplibs_check_method=pass_all
3848 fi
3849 ;;
3850
3851gnu*)
3852 lt_cv_deplibs_check_method=pass_all
3853 ;;
3854
3855hpux10.20*|hpux11*)
3856 case $host_cpu in
3857 hppa*)
3858 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3859 lt_cv_file_magic_cmd=/usr/bin/file
3860 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3861 ;;
3862 ia64*)
3863 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3864 lt_cv_file_magic_cmd=/usr/bin/file
3865 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3866 ;;
3867 esac
3868 ;;
3869
3870irix5* | irix6*)
3871 case $host_os in
3872 irix5*)
3873 # this will be overridden with pass_all, but let us keep it just in case
3874 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3875 ;;
3876 *)
3877 case $LD in
3878 *-32|*"-32 ") libmagic=32-bit;;
3879 *-n32|*"-n32 ") libmagic=N32;;
3880 *-64|*"-64 ") libmagic=64-bit;;
3881 *) libmagic=never-match;;
3882 esac
3883 # this will be overridden with pass_all, but let us keep it just in case
3884 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3885 ;;
3886 esac
3887 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3888 lt_cv_deplibs_check_method=pass_all
3889 ;;
3890
3891# This must be Linux ELF.
3892linux-gnu*)
3893 lt_cv_deplibs_check_method=pass_all
3894 ;;
3895
3896netbsd* | knetbsd*-gnu)
3897 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3898 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3899 else
3900 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3901 fi
3902 ;;
3903
3904newsos6)
3905 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3906 lt_cv_file_magic_cmd=/usr/bin/file
3907 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3908 ;;
3909
3910osf3* | osf4* | osf5*)
3911 # this will be overridden with pass_all, but let us keep it just in case
3912 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3913 lt_cv_file_magic_test_file=/shlib/libc.so
3914 lt_cv_deplibs_check_method=pass_all
3915 ;;
3916
3917sco3.2v5*)
3918 lt_cv_deplibs_check_method=pass_all
3919 ;;
3920
3921solaris*)
3922 lt_cv_deplibs_check_method=pass_all
3923 lt_cv_file_magic_test_file=/lib/libc.so
3924 ;;
3925
3926sysv5uw[78]* | sysv4*uw2*)
3927 lt_cv_deplibs_check_method=pass_all
3928 ;;
3929
3930sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3931 case $host_vendor in
3932 ncr)
3933 lt_cv_deplibs_check_method=pass_all
3934 ;;
3935 motorola)
3936 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]'
3937 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3938 ;;
3939 esac
3940 ;;
3941esac
3942
3943fi
3944echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3945echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3946file_magic_cmd=$lt_cv_file_magic_cmd
3947deplibs_check_method=$lt_cv_deplibs_check_method
3948
3949
3950
3951
3952
3953# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3954
3955# find the maximum length of command line arguments
3956echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3957echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3958if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3959 echo $ECHO_N "(cached) $ECHO_C" >&6
3960else
3961 i=0
3962 teststring="ABCD"
3963
3964 case $build_os in
3965 msdosdjgpp*)
3966 # On DJGPP, this test can blow up pretty badly due to problems in libc
3967 # (any single argument exceeding 2000 bytes causes a buffer overrun
3968 # during glob expansion). Even if it were fixed, the result of this
3969 # check would be larger than it should be.
3970 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3971 ;;
3972
3973 cygwin* | mingw*)
3974 # On Win9x/ME, this test blows up -- it succeeds, but takes
3975 # about 5 minutes as the teststring grows exponentially.
3976 # Worse, since 9x/ME are not pre-emptively multitasking,
3977 # you end up with a "frozen" computer, even though with patience
3978 # the test eventually succeeds (with a max line length of 256k).
3979 # Instead, let's just punt: use the minimum linelength reported by
3980 # all of the supported platforms: 8192 (on NT/2K/XP).
3981 lt_cv_sys_max_cmd_len=8192;
3982 ;;
3983
3984 amigaos*)
3985 # On AmigaOS with pdksh, this test takes hours, literally.
3986 # So we just punt and use a minimum line length of 8192.
3987 lt_cv_sys_max_cmd_len=8192;
3988 ;;
3989
3990 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3991 # This has been around since 386BSD, at least. Likely further.
3992 if test -x /sbin/sysctl; then
3993 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3994 elif test -x /usr/sbin/sysctl; then
3995 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3996 else
3997 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
3998 fi
3999 # And add a safety zone
4000 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4001 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4002 ;;
4003 esac
4004
4005fi
4006
4007if test -n "$lt_cv_sys_max_cmd_len" ; then
4008 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4009echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4010else
4011 echo "$as_me:$LINENO: result: none" >&5
4012echo "${ECHO_T}none" >&6
4013fi
4014
4015
4016# Only perform the check for file, if the check method requires it
4017case $deplibs_check_method in
4018file_magic*)
4019 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4020 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4021echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4022if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4023 echo $ECHO_N "(cached) $ECHO_C" >&6
4024else
4025 case $MAGIC_CMD in
4026 /*)
4027 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4028 ;;
4029 ?:/*)
4030 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4031 ;;
4032 *)
4033 ac_save_MAGIC_CMD="$MAGIC_CMD"
4034 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4035 ac_dummy="/usr/bin:$PATH"
4036 for ac_dir in $ac_dummy; do
4037 test -z "$ac_dir" && ac_dir=.
4038 if test -f $ac_dir/${ac_tool_prefix}file; then
4039 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4040 if test -n "$file_magic_test_file"; then
4041 case $deplibs_check_method in
4042 "file_magic "*)
4043 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4044 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4045 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4046 egrep "$file_magic_regex" > /dev/null; then
4047 :
4048 else
4049 cat <<EOF 1>&2
4050
4051*** Warning: the command libtool uses to detect shared libraries,
4052*** $file_magic_cmd, produces output that libtool cannot recognize.
4053*** The result is that libtool may fail to recognize shared libraries
4054*** as such. This will affect the creation of libtool libraries that
4055*** depend on shared libraries, but programs linked with such libtool
4056*** libraries will work regardless of this problem. Nevertheless, you
4057*** may want to report the problem to your system manager and/or to
4058*** bug-libtool@gnu.org
4059
4060EOF
4061 fi ;;
4062 esac
4063 fi
4064 break
4065 fi
4066 done
4067 IFS="$ac_save_ifs"
4068 MAGIC_CMD="$ac_save_MAGIC_CMD"
4069 ;;
4070esac
4071fi
4072
4073MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4074if test -n "$MAGIC_CMD"; then
4075 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4076echo "${ECHO_T}$MAGIC_CMD" >&6
4077else
4078 echo "$as_me:$LINENO: result: no" >&5
4079echo "${ECHO_T}no" >&6
4080fi
4081
4082if test -z "$lt_cv_path_MAGIC_CMD"; then
4083 if test -n "$ac_tool_prefix"; then
4084 echo "$as_me:$LINENO: checking for file" >&5
4085echo $ECHO_N "checking for file... $ECHO_C" >&6
4086if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4087 echo $ECHO_N "(cached) $ECHO_C" >&6
4088else
4089 case $MAGIC_CMD in
4090 /*)
4091 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4092 ;;
4093 ?:/*)
4094 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4095 ;;
4096 *)
4097 ac_save_MAGIC_CMD="$MAGIC_CMD"
4098 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4099 ac_dummy="/usr/bin:$PATH"
4100 for ac_dir in $ac_dummy; do
4101 test -z "$ac_dir" && ac_dir=.
4102 if test -f $ac_dir/file; then
4103 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4104 if test -n "$file_magic_test_file"; then
4105 case $deplibs_check_method in
4106 "file_magic "*)
4107 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4108 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4109 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4110 egrep "$file_magic_regex" > /dev/null; then
4111 :
4112 else
4113 cat <<EOF 1>&2
4114
4115*** Warning: the command libtool uses to detect shared libraries,
4116*** $file_magic_cmd, produces output that libtool cannot recognize.
4117*** The result is that libtool may fail to recognize shared libraries
4118*** as such. This will affect the creation of libtool libraries that
4119*** depend on shared libraries, but programs linked with such libtool
4120*** libraries will work regardless of this problem. Nevertheless, you
4121*** may want to report the problem to your system manager and/or to
4122*** bug-libtool@gnu.org
4123
4124EOF
4125 fi ;;
4126 esac
4127 fi
4128 break
4129 fi
4130 done
4131 IFS="$ac_save_ifs"
4132 MAGIC_CMD="$ac_save_MAGIC_CMD"
4133 ;;
4134esac
4135fi
4136
4137MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4138if test -n "$MAGIC_CMD"; then
4139 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4140echo "${ECHO_T}$MAGIC_CMD" >&6
4141else
4142 echo "$as_me:$LINENO: result: no" >&5
4143echo "${ECHO_T}no" >&6
4144fi
4145
4146 else
4147 MAGIC_CMD=:
4148 fi
4149fi
4150
4151 fi
4152 ;;
4153esac
4154
4155if test -n "$ac_tool_prefix"; then
4156 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4157set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4158echo "$as_me:$LINENO: checking for $ac_word" >&5
4159echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4160if test "${ac_cv_prog_RANLIB+set}" = set; then
4161 echo $ECHO_N "(cached) $ECHO_C" >&6
4162else
4163 if test -n "$RANLIB"; then
4164 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4165else
4166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4167for as_dir in $PATH
4168do
4169 IFS=$as_save_IFS
4170 test -z "$as_dir" && as_dir=.
4171 for ac_exec_ext in '' $ac_executable_extensions; do
4172 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4173 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4175 break 2
4176 fi
4177done
4178done
4179
4180fi
4181fi
4182RANLIB=$ac_cv_prog_RANLIB
4183if test -n "$RANLIB"; then
4184 echo "$as_me:$LINENO: result: $RANLIB" >&5
4185echo "${ECHO_T}$RANLIB" >&6
4186else
4187 echo "$as_me:$LINENO: result: no" >&5
4188echo "${ECHO_T}no" >&6
4189fi
4190
4191fi
4192if test -z "$ac_cv_prog_RANLIB"; then
4193 ac_ct_RANLIB=$RANLIB
4194 # Extract the first word of "ranlib", so it can be a program name with args.
4195set dummy ranlib; ac_word=$2
4196echo "$as_me:$LINENO: checking for $ac_word" >&5
4197echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4198if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4199 echo $ECHO_N "(cached) $ECHO_C" >&6
4200else
4201 if test -n "$ac_ct_RANLIB"; then
4202 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4203else
4204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4205for as_dir in $PATH
4206do
4207 IFS=$as_save_IFS
4208 test -z "$as_dir" && as_dir=.
4209 for ac_exec_ext in '' $ac_executable_extensions; do
4210 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4211 ac_cv_prog_ac_ct_RANLIB="ranlib"
4212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4213 break 2
4214 fi
4215done
4216done
4217
4218 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4219fi
4220fi
4221ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4222if test -n "$ac_ct_RANLIB"; then
4223 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4224echo "${ECHO_T}$ac_ct_RANLIB" >&6
4225else
4226 echo "$as_me:$LINENO: result: no" >&5
4227echo "${ECHO_T}no" >&6
4228fi
4229
4230 RANLIB=$ac_ct_RANLIB
4231else
4232 RANLIB="$ac_cv_prog_RANLIB"
4233fi
4234
4235if test -n "$ac_tool_prefix"; then
4236 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4237set dummy ${ac_tool_prefix}strip; ac_word=$2
4238echo "$as_me:$LINENO: checking for $ac_word" >&5
4239echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4240if test "${ac_cv_prog_STRIP+set}" = set; then
4241 echo $ECHO_N "(cached) $ECHO_C" >&6
4242else
4243 if test -n "$STRIP"; then
4244 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4245else
4246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4247for as_dir in $PATH
4248do
4249 IFS=$as_save_IFS
4250 test -z "$as_dir" && as_dir=.
4251 for ac_exec_ext in '' $ac_executable_extensions; do
4252 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4253 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4255 break 2
4256 fi
4257done
4258done
4259
4260fi
4261fi
4262STRIP=$ac_cv_prog_STRIP
4263if test -n "$STRIP"; then
4264 echo "$as_me:$LINENO: result: $STRIP" >&5
4265echo "${ECHO_T}$STRIP" >&6
4266else
4267 echo "$as_me:$LINENO: result: no" >&5
4268echo "${ECHO_T}no" >&6
4269fi
4270
4271fi
4272if test -z "$ac_cv_prog_STRIP"; then
4273 ac_ct_STRIP=$STRIP
4274 # Extract the first word of "strip", so it can be a program name with args.
4275set dummy strip; ac_word=$2
4276echo "$as_me:$LINENO: checking for $ac_word" >&5
4277echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4278if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4279 echo $ECHO_N "(cached) $ECHO_C" >&6
4280else
4281 if test -n "$ac_ct_STRIP"; then
4282 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4283else
4284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4285for as_dir in $PATH
4286do
4287 IFS=$as_save_IFS
4288 test -z "$as_dir" && as_dir=.
4289 for ac_exec_ext in '' $ac_executable_extensions; do
4290 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4291 ac_cv_prog_ac_ct_STRIP="strip"
4292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4293 break 2
4294 fi
4295done
4296done
4297
4298 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4299fi
4300fi
4301ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4302if test -n "$ac_ct_STRIP"; then
4303 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4304echo "${ECHO_T}$ac_ct_STRIP" >&6
4305else
4306 echo "$as_me:$LINENO: result: no" >&5
4307echo "${ECHO_T}no" >&6
4308fi
4309
4310 STRIP=$ac_ct_STRIP
4311else
4312 STRIP="$ac_cv_prog_STRIP"
4313fi
4314
4315
4316# Check for any special flags to pass to ltconfig.
4317libtool_flags="--cache-file=$cache_file"
4318test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4319test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4320test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4321test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4322test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4323
4324
4325# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4326if test "${enable_libtool_lock+set}" = set; then
4327 enableval="$enable_libtool_lock"
4328
4329fi;
4330test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4331test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4332
4333
4334# Check whether --with-pic or --without-pic was given.
4335if test "${with_pic+set}" = set; then
4336 withval="$with_pic"
4337 pic_mode="$withval"
4338else
4339 pic_mode=default
4340fi;
4341test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4342test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4343
4344# Some flags need to be propagated to the compiler or linker for good
4345# libtool support.
4346case $host in
4347*-*-irix6*)
4348 # Find out which ABI we are using.
439d698f 4349 echo '#line 4349 "configure"' > conftest.$ac_ext
1e8e9920 4350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4351 (eval $ac_compile) 2>&5
4352 ac_status=$?
4353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354 (exit $ac_status); }; then
4355 if test "$lt_cv_prog_gnu_ld" = yes; then
4356 case `/usr/bin/file conftest.$ac_objext` in
4357 *32-bit*)
4358 LD="${LD-ld} -melf32bsmip"
4359 ;;
4360 *N32*)
4361 LD="${LD-ld} -melf32bmipn32"
4362 ;;
4363 *64-bit*)
4364 LD="${LD-ld} -melf64bmip"
4365 ;;
4366 esac
4367 else
4368 case `/usr/bin/file conftest.$ac_objext` in
4369 *32-bit*)
4370 LD="${LD-ld} -32"
4371 ;;
4372 *N32*)
4373 LD="${LD-ld} -n32"
4374 ;;
4375 *64-bit*)
4376 LD="${LD-ld} -64"
4377 ;;
4378 esac
4379 fi
4380 fi
4381 rm -rf conftest*
4382 ;;
4383
4384ia64-*-hpux*)
4385 # Find out which ABI we are using.
4386 echo 'int i;' > conftest.$ac_ext
4387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4388 (eval $ac_compile) 2>&5
4389 ac_status=$?
4390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4391 (exit $ac_status); }; then
4392 case "`/usr/bin/file conftest.o`" in
4393 *ELF-32*)
4394 HPUX_IA64_MODE="32"
4395 ;;
4396 *ELF-64*)
4397 HPUX_IA64_MODE="64"
4398 ;;
4399 esac
4400 fi
4401 rm -rf conftest*
4402 ;;
4403
4404x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4405 # Find out which ABI we are using.
4406 echo 'int i;' > conftest.$ac_ext
4407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4408 (eval $ac_compile) 2>&5
4409 ac_status=$?
4410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411 (exit $ac_status); }; then
4412 case "`/usr/bin/file conftest.o`" in
4413 *32-bit*)
4414 case $host in
4415 x86_64-*linux*)
4416 LD="${LD-ld} -m elf_i386"
4417 ;;
4418 ppc64-*linux*|powerpc64-*linux*)
4419 LD="${LD-ld} -m elf32ppclinux"
4420 ;;
4421 s390x-*linux*)
4422 LD="${LD-ld} -m elf_s390"
4423 ;;
4424 sparc64-*linux*)
4425 LD="${LD-ld} -m elf32_sparc"
4426 ;;
4427 esac
4428 ;;
4429 *64-bit*)
4430 case $host in
4431 x86_64-*linux*)
4432 LD="${LD-ld} -m elf_x86_64"
4433 ;;
4434 ppc*-*linux*|powerpc*-*linux*)
4435 LD="${LD-ld} -m elf64ppc"
4436 ;;
4437 s390*-*linux*)
4438 LD="${LD-ld} -m elf64_s390"
4439 ;;
4440 sparc*-*linux*)
4441 LD="${LD-ld} -m elf64_sparc"
4442 ;;
4443 esac
4444 ;;
4445 esac
4446 fi
4447 rm -rf conftest*
4448 ;;
4449
4450*-*-sco3.2v5*)
4451 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4452 SAVE_CFLAGS="$CFLAGS"
4453 CFLAGS="$CFLAGS -belf"
4454 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4455echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4456if test "${lt_cv_cc_needs_belf+set}" = set; then
4457 echo $ECHO_N "(cached) $ECHO_C" >&6
4458else
4459
4460
4461 ac_ext=c
4462ac_cpp='$CPP $CPPFLAGS'
4463ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4464ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4465ac_compiler_gnu=$ac_cv_c_compiler_gnu
4466
4467 cat >conftest.$ac_ext <<_ACEOF
4468/* confdefs.h. */
4469_ACEOF
4470cat confdefs.h >>conftest.$ac_ext
4471cat >>conftest.$ac_ext <<_ACEOF
4472/* end confdefs.h. */
4473
4474int
4475main ()
4476{
4477
4478 ;
4479 return 0;
4480}
4481_ACEOF
4482rm -f conftest.$ac_objext conftest$ac_exeext
4483if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4484 (eval $ac_link) 2>conftest.er1
4485 ac_status=$?
4486 grep -v '^ *+' conftest.er1 >conftest.err
4487 rm -f conftest.er1
4488 cat conftest.err >&5
4489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490 (exit $ac_status); } &&
59da30e1 4491 { ac_try='test -z "$ac_c_werror_flag"
4492 || test ! -s conftest.err'
1e8e9920 4493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4494 (eval $ac_try) 2>&5
4495 ac_status=$?
4496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497 (exit $ac_status); }; } &&
4498 { ac_try='test -s conftest$ac_exeext'
4499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4500 (eval $ac_try) 2>&5
4501 ac_status=$?
4502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503 (exit $ac_status); }; }; then
4504 lt_cv_cc_needs_belf=yes
4505else
4506 echo "$as_me: failed program was:" >&5
4507sed 's/^/| /' conftest.$ac_ext >&5
4508
4509lt_cv_cc_needs_belf=no
4510fi
4511rm -f conftest.err conftest.$ac_objext \
4512 conftest$ac_exeext conftest.$ac_ext
4513 ac_ext=c
4514ac_cpp='$CPP $CPPFLAGS'
4515ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4516ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4517ac_compiler_gnu=$ac_cv_c_compiler_gnu
4518
4519fi
4520echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4521echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4522 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4523 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4524 CFLAGS="$SAVE_CFLAGS"
4525 fi
4526 ;;
4527
4528
4529esac
4530
4531
4532# Save cache, so that ltconfig can load it
4533cat >confcache <<\_ACEOF
4534# This file is a shell script that caches the results of configure
4535# tests run on this system so they can be shared between configure
4536# scripts and configure runs, see configure's option --config-cache.
4537# It is not useful on other systems. If it contains results you don't
4538# want to keep, you may remove or edit it.
4539#
4540# config.status only pays attention to the cache file if you give it
4541# the --recheck option to rerun configure.
4542#
4543# `ac_cv_env_foo' variables (set or unset) will be overridden when
4544# loading this file, other *unset* `ac_cv_foo' will be assigned the
4545# following values.
4546
4547_ACEOF
4548
4549# The following way of writing the cache mishandles newlines in values,
4550# but we know of no workaround that is simple, portable, and efficient.
4551# So, don't put newlines in cache variables' values.
4552# Ultrix sh set writes to stderr and can't be redirected directly,
4553# and sets the high bit in the cache file unless we assign to the vars.
4554{
4555 (set) 2>&1 |
4556 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4557 *ac_space=\ *)
4558 # `set' does not quote correctly, so add quotes (double-quote
4559 # substitution turns \\\\ into \\, and sed turns \\ into \).
4560 sed -n \
4561 "s/'/'\\\\''/g;
4562 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4563 ;;
4564 *)
4565 # `set' quotes correctly as required by POSIX, so do not add quotes.
4566 sed -n \
4567 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4568 ;;
4569 esac;
4570} |
4571 sed '
4572 t clear
4573 : clear
4574 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4575 t end
4576 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4577 : end' >>confcache
4578if diff $cache_file confcache >/dev/null 2>&1; then :; else
4579 if test -w $cache_file; then
4580 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4581 cat confcache >$cache_file
4582 else
4583 echo "not updating unwritable cache $cache_file"
4584 fi
4585fi
4586rm -f confcache
4587
4588# Actually configure libtool. ac_aux_dir is where install-sh is found.
4589AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4590MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4591LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4592AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4593objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4594deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4595${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4596$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4597|| { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4598echo "$as_me: error: libtool configure failed" >&2;}
4599 { (exit 1); exit 1; }; }
4600
4601# Reload cache, that may have been modified by ltconfig
4602if test -r "$cache_file"; then
4603 # Some versions of bash will fail to source /dev/null (special
4604 # files actually), so we avoid doing that.
4605 if test -f "$cache_file"; then
4606 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4607echo "$as_me: loading cache $cache_file" >&6;}
4608 case $cache_file in
4609 [\\/]* | ?:[\\/]* ) . $cache_file;;
4610 *) . ./$cache_file;;
4611 esac
4612 fi
4613else
4614 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4615echo "$as_me: creating cache $cache_file" >&6;}
4616 >$cache_file
4617fi
4618
4619
4620# This can be used to rebuild libtool when needed
4621LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4622
4623# Always use our own libtool.
4624LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4625
4626# Redirect the config.log output again, so that the ltconfig log is not
4627# clobbered by the next message.
4628exec 5>>./config.log
4629
4630
4631
4632
4633
4634
4635
4636
4637
a263d1ab 4638echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4639echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4640 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4641if test "${enable_maintainer_mode+set}" = set; then
4642 enableval="$enable_maintainer_mode"
4643 USE_MAINTAINER_MODE=$enableval
4644else
4645 USE_MAINTAINER_MODE=no
4646fi;
4647 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4648echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4649
4650
4651if test $USE_MAINTAINER_MODE = yes; then
4652 MAINTAINER_MODE_TRUE=
4653 MAINTAINER_MODE_FALSE='#'
4654else
4655 MAINTAINER_MODE_TRUE='#'
4656 MAINTAINER_MODE_FALSE=
4657fi
4658
4659 MAINT=$MAINTAINER_MODE_TRUE
4660
4661
4662
1e8e9920 4663# We need gfortran to compile parts of the library
4664# We can't use AC_PROG_FC because it expects a fully working gfortran.
4665#AC_PROG_FC(gfortran)
4666FC="$GFORTRAN"
4667ac_ext=${FC_SRCEXT-f}
4668ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
4669ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
4670ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4671if test -n "$ac_tool_prefix"; then
4672 for ac_prog in gfortran
4673 do
4674 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4675set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4676echo "$as_me:$LINENO: checking for $ac_word" >&5
4677echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4678if test "${ac_cv_prog_FC+set}" = set; then
4679 echo $ECHO_N "(cached) $ECHO_C" >&6
4680else
4681 if test -n "$FC"; then
4682 ac_cv_prog_FC="$FC" # Let the user override the test.
4683else
4684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4685for as_dir in $PATH
4686do
4687 IFS=$as_save_IFS
4688 test -z "$as_dir" && as_dir=.
4689 for ac_exec_ext in '' $ac_executable_extensions; do
4690 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4691 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
4692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4693 break 2
4694 fi
4695done
4696done
4697
4698fi
4699fi
4700FC=$ac_cv_prog_FC
4701if test -n "$FC"; then
4702 echo "$as_me:$LINENO: result: $FC" >&5
4703echo "${ECHO_T}$FC" >&6
4704else
4705 echo "$as_me:$LINENO: result: no" >&5
4706echo "${ECHO_T}no" >&6
4707fi
4708
4709 test -n "$FC" && break
4710 done
4711fi
4712if test -z "$FC"; then
4713 ac_ct_FC=$FC
4714 for ac_prog in gfortran
4715do
4716 # Extract the first word of "$ac_prog", so it can be a program name with args.
4717set dummy $ac_prog; ac_word=$2
4718echo "$as_me:$LINENO: checking for $ac_word" >&5
4719echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4720if test "${ac_cv_prog_ac_ct_FC+set}" = set; then
4721 echo $ECHO_N "(cached) $ECHO_C" >&6
4722else
4723 if test -n "$ac_ct_FC"; then
4724 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
4725else
4726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4727for as_dir in $PATH
4728do
4729 IFS=$as_save_IFS
4730 test -z "$as_dir" && as_dir=.
4731 for ac_exec_ext in '' $ac_executable_extensions; do
4732 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4733 ac_cv_prog_ac_ct_FC="$ac_prog"
4734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4735 break 2
4736 fi
4737done
4738done
4739
4740fi
4741fi
4742ac_ct_FC=$ac_cv_prog_ac_ct_FC
4743if test -n "$ac_ct_FC"; then
4744 echo "$as_me:$LINENO: result: $ac_ct_FC" >&5
4745echo "${ECHO_T}$ac_ct_FC" >&6
4746else
4747 echo "$as_me:$LINENO: result: no" >&5
4748echo "${ECHO_T}no" >&6
4749fi
4750
4751 test -n "$ac_ct_FC" && break
4752done
4753
4754 FC=$ac_ct_FC
4755fi
4756
4757
4758# Provide some information about the compiler.
439d698f 4759echo "$as_me:4759:" \
1e8e9920 4760 "checking for Fortran compiler version" >&5
4761ac_compiler=`set X $ac_compile; echo $2`
4762{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4763 (eval $ac_compiler --version </dev/null >&5) 2>&5
4764 ac_status=$?
4765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766 (exit $ac_status); }
4767{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4768 (eval $ac_compiler -v </dev/null >&5) 2>&5
4769 ac_status=$?
4770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4771 (exit $ac_status); }
4772{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4773 (eval $ac_compiler -V </dev/null >&5) 2>&5
4774 ac_status=$?
4775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4776 (exit $ac_status); }
4777rm -f a.out
4778
4779# If we don't use `.F' as extension, the preprocessor is not run on the
4780# input file. (Note that this only needs to work for GNU compilers.)
4781ac_save_ext=$ac_ext
4782ac_ext=F
4783echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5
4784echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6
4785if test "${ac_cv_fc_compiler_gnu+set}" = set; then
4786 echo $ECHO_N "(cached) $ECHO_C" >&6
4787else
4788 cat >conftest.$ac_ext <<_ACEOF
4789 program main
4790#ifndef __GNUC__
4791 choke me
4792#endif
4793
4794 end
4795_ACEOF
4796rm -f conftest.$ac_objext
4797if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4798 (eval $ac_compile) 2>conftest.er1
4799 ac_status=$?
4800 grep -v '^ *+' conftest.er1 >conftest.err
4801 rm -f conftest.er1
4802 cat conftest.err >&5
4803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804 (exit $ac_status); } &&
59da30e1 4805 { ac_try='test -z "$ac_fc_werror_flag"
4806 || test ! -s conftest.err'
1e8e9920 4807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4808 (eval $ac_try) 2>&5
4809 ac_status=$?
4810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4811 (exit $ac_status); }; } &&
4812 { ac_try='test -s conftest.$ac_objext'
4813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4814 (eval $ac_try) 2>&5
4815 ac_status=$?
4816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817 (exit $ac_status); }; }; then
4818 ac_compiler_gnu=yes
4819else
4820 echo "$as_me: failed program was:" >&5
4821sed 's/^/| /' conftest.$ac_ext >&5
4822
4823ac_compiler_gnu=no
4824fi
4825rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4826ac_cv_fc_compiler_gnu=$ac_compiler_gnu
4827
4828fi
4829echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5
4830echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6
4831ac_ext=$ac_save_ext
4832ac_test_FFLAGS=${FCFLAGS+set}
4833ac_save_FFLAGS=$FCFLAGS
4834FCFLAGS=
4835echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5
4836echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6
4837if test "${ac_cv_prog_fc_g+set}" = set; then
4838 echo $ECHO_N "(cached) $ECHO_C" >&6
4839else
4840 FCFLAGS=-g
4841cat >conftest.$ac_ext <<_ACEOF
4842 program main
4843
4844 end
4845_ACEOF
4846rm -f conftest.$ac_objext
4847if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4848 (eval $ac_compile) 2>conftest.er1
4849 ac_status=$?
4850 grep -v '^ *+' conftest.er1 >conftest.err
4851 rm -f conftest.er1
4852 cat conftest.err >&5
4853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854 (exit $ac_status); } &&
59da30e1 4855 { ac_try='test -z "$ac_fc_werror_flag"
4856 || test ! -s conftest.err'
1e8e9920 4857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4858 (eval $ac_try) 2>&5
4859 ac_status=$?
4860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4861 (exit $ac_status); }; } &&
4862 { ac_try='test -s conftest.$ac_objext'
4863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4864 (eval $ac_try) 2>&5
4865 ac_status=$?
4866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867 (exit $ac_status); }; }; then
4868 ac_cv_prog_fc_g=yes
4869else
4870 echo "$as_me: failed program was:" >&5
4871sed 's/^/| /' conftest.$ac_ext >&5
4872
4873ac_cv_prog_fc_g=no
4874fi
4875rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4876
4877fi
4878echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5
4879echo "${ECHO_T}$ac_cv_prog_fc_g" >&6
4880if test "$ac_test_FFLAGS" = set; then
4881 FCFLAGS=$ac_save_FFLAGS
4882elif test $ac_cv_prog_fc_g = yes; then
4883 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4884 FCFLAGS="-g -O2"
4885 else
4886 FCFLAGS="-g"
4887 fi
4888else
4889 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4890 FCFLAGS="-O2"
4891 else
4892 FCFLAGS=
4893 fi
4894fi
4895
4896ac_ext=c
4897ac_cpp='$CPP $CPPFLAGS'
4898ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4899ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4900ac_compiler_gnu=$ac_cv_c_compiler_gnu
4901
4902FCFLAGS="$FCFLAGS -Wall"
4903
4904# For libtool versioning info, format is CURRENT:REVISION:AGE
4905libtool_VERSION=1:0:0
4906
4907
4908# Check header files.
4909ac_ext=c
4910ac_cpp='$CPP $CPPFLAGS'
4911ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4912ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4913ac_compiler_gnu=$ac_cv_c_compiler_gnu
4914echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4915echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4916# On Suns, sometimes $CPP names a directory.
4917if test -n "$CPP" && test -d "$CPP"; then
4918 CPP=
4919fi
4920if test -z "$CPP"; then
4921 if test "${ac_cv_prog_CPP+set}" = set; then
4922 echo $ECHO_N "(cached) $ECHO_C" >&6
4923else
4924 # Double quotes because CPP needs to be expanded
4925 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4926 do
4927 ac_preproc_ok=false
4928for ac_c_preproc_warn_flag in '' yes
4929do
4930 # Use a header file that comes with gcc, so configuring glibc
4931 # with a fresh cross-compiler works.
4932 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4933 # <limits.h> exists even on freestanding compilers.
4934 # On the NeXT, cc -E runs the code through the compiler's parser,
4935 # not just through cpp. "Syntax error" is here to catch this case.
4936 cat >conftest.$ac_ext <<_ACEOF
4937/* confdefs.h. */
4938_ACEOF
4939cat confdefs.h >>conftest.$ac_ext
4940cat >>conftest.$ac_ext <<_ACEOF
4941/* end confdefs.h. */
4942#ifdef __STDC__
4943# include <limits.h>
4944#else
4945# include <assert.h>
4946#endif
4947 Syntax error
4948_ACEOF
4949if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4950 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4951 ac_status=$?
4952 grep -v '^ *+' conftest.er1 >conftest.err
4953 rm -f conftest.er1
4954 cat conftest.err >&5
4955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4956 (exit $ac_status); } >/dev/null; then
4957 if test -s conftest.err; then
4958 ac_cpp_err=$ac_c_preproc_warn_flag
4959 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4960 else
4961 ac_cpp_err=
4962 fi
4963else
4964 ac_cpp_err=yes
4965fi
4966if test -z "$ac_cpp_err"; then
4967 :
4968else
4969 echo "$as_me: failed program was:" >&5
4970sed 's/^/| /' conftest.$ac_ext >&5
4971
4972 # Broken: fails on valid input.
4973continue
4974fi
4975rm -f conftest.err conftest.$ac_ext
4976
4977 # OK, works on sane cases. Now check whether non-existent headers
4978 # can be detected and how.
4979 cat >conftest.$ac_ext <<_ACEOF
4980/* confdefs.h. */
4981_ACEOF
4982cat confdefs.h >>conftest.$ac_ext
4983cat >>conftest.$ac_ext <<_ACEOF
4984/* end confdefs.h. */
4985#include <ac_nonexistent.h>
4986_ACEOF
4987if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4988 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4989 ac_status=$?
4990 grep -v '^ *+' conftest.er1 >conftest.err
4991 rm -f conftest.er1
4992 cat conftest.err >&5
4993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4994 (exit $ac_status); } >/dev/null; then
4995 if test -s conftest.err; then
4996 ac_cpp_err=$ac_c_preproc_warn_flag
4997 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4998 else
4999 ac_cpp_err=
5000 fi
5001else
5002 ac_cpp_err=yes
5003fi
5004if test -z "$ac_cpp_err"; then
5005 # Broken: success on invalid input.
5006continue
5007else
5008 echo "$as_me: failed program was:" >&5
5009sed 's/^/| /' conftest.$ac_ext >&5
5010
5011 # Passes both tests.
5012ac_preproc_ok=:
5013break
5014fi
5015rm -f conftest.err conftest.$ac_ext
5016
5017done
5018# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5019rm -f conftest.err conftest.$ac_ext
5020if $ac_preproc_ok; then
5021 break
5022fi
5023
5024 done
5025 ac_cv_prog_CPP=$CPP
5026
5027fi
5028 CPP=$ac_cv_prog_CPP
5029else
5030 ac_cv_prog_CPP=$CPP
5031fi
5032echo "$as_me:$LINENO: result: $CPP" >&5
5033echo "${ECHO_T}$CPP" >&6
5034ac_preproc_ok=false
5035for ac_c_preproc_warn_flag in '' yes
5036do
5037 # Use a header file that comes with gcc, so configuring glibc
5038 # with a fresh cross-compiler works.
5039 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5040 # <limits.h> exists even on freestanding compilers.
5041 # On the NeXT, cc -E runs the code through the compiler's parser,
5042 # not just through cpp. "Syntax error" is here to catch this case.
5043 cat >conftest.$ac_ext <<_ACEOF
5044/* confdefs.h. */
5045_ACEOF
5046cat confdefs.h >>conftest.$ac_ext
5047cat >>conftest.$ac_ext <<_ACEOF
5048/* end confdefs.h. */
5049#ifdef __STDC__
5050# include <limits.h>
5051#else
5052# include <assert.h>
5053#endif
5054 Syntax error
5055_ACEOF
5056if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5057 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5058 ac_status=$?
5059 grep -v '^ *+' conftest.er1 >conftest.err
5060 rm -f conftest.er1
5061 cat conftest.err >&5
5062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5063 (exit $ac_status); } >/dev/null; then
5064 if test -s conftest.err; then
5065 ac_cpp_err=$ac_c_preproc_warn_flag
5066 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5067 else
5068 ac_cpp_err=
5069 fi
5070else
5071 ac_cpp_err=yes
5072fi
5073if test -z "$ac_cpp_err"; then
5074 :
5075else
5076 echo "$as_me: failed program was:" >&5
5077sed 's/^/| /' conftest.$ac_ext >&5
5078
5079 # Broken: fails on valid input.
5080continue
5081fi
5082rm -f conftest.err conftest.$ac_ext
5083
5084 # OK, works on sane cases. Now check whether non-existent headers
5085 # can be detected and how.
5086 cat >conftest.$ac_ext <<_ACEOF
5087/* confdefs.h. */
5088_ACEOF
5089cat confdefs.h >>conftest.$ac_ext
5090cat >>conftest.$ac_ext <<_ACEOF
5091/* end confdefs.h. */
5092#include <ac_nonexistent.h>
5093_ACEOF
5094if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5095 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5096 ac_status=$?
5097 grep -v '^ *+' conftest.er1 >conftest.err
5098 rm -f conftest.er1
5099 cat conftest.err >&5
5100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101 (exit $ac_status); } >/dev/null; then
5102 if test -s conftest.err; then
5103 ac_cpp_err=$ac_c_preproc_warn_flag
5104 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5105 else
5106 ac_cpp_err=
5107 fi
5108else
5109 ac_cpp_err=yes
5110fi
5111if test -z "$ac_cpp_err"; then
5112 # Broken: success on invalid input.
5113continue
5114else
5115 echo "$as_me: failed program was:" >&5
5116sed 's/^/| /' conftest.$ac_ext >&5
5117
5118 # Passes both tests.
5119ac_preproc_ok=:
5120break
5121fi
5122rm -f conftest.err conftest.$ac_ext
5123
5124done
5125# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5126rm -f conftest.err conftest.$ac_ext
5127if $ac_preproc_ok; then
5128 :
5129else
5130 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5131See \`config.log' for more details." >&5
5132echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5133See \`config.log' for more details." >&2;}
5134 { (exit 1); exit 1; }; }
5135fi
5136
5137ac_ext=c
5138ac_cpp='$CPP $CPPFLAGS'
5139ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5140ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5141ac_compiler_gnu=$ac_cv_c_compiler_gnu
5142
5143
5144echo "$as_me:$LINENO: checking for egrep" >&5
5145echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5146if test "${ac_cv_prog_egrep+set}" = set; then
5147 echo $ECHO_N "(cached) $ECHO_C" >&6
5148else
5149 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5150 then ac_cv_prog_egrep='grep -E'
5151 else ac_cv_prog_egrep='egrep'
5152 fi
5153fi
5154echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5155echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5156 EGREP=$ac_cv_prog_egrep
5157
5158
5159echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5160echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5161if test "${ac_cv_header_stdc+set}" = set; then
5162 echo $ECHO_N "(cached) $ECHO_C" >&6
5163else
5164 cat >conftest.$ac_ext <<_ACEOF
5165/* confdefs.h. */
5166_ACEOF
5167cat confdefs.h >>conftest.$ac_ext
5168cat >>conftest.$ac_ext <<_ACEOF
5169/* end confdefs.h. */
5170#include <stdlib.h>
5171#include <stdarg.h>
5172#include <string.h>
5173#include <float.h>
5174
5175int
5176main ()
5177{
5178
5179 ;
5180 return 0;
5181}
5182_ACEOF
5183rm -f conftest.$ac_objext
5184if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5185 (eval $ac_compile) 2>conftest.er1
5186 ac_status=$?
5187 grep -v '^ *+' conftest.er1 >conftest.err
5188 rm -f conftest.er1
5189 cat conftest.err >&5
5190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5191 (exit $ac_status); } &&
59da30e1 5192 { ac_try='test -z "$ac_c_werror_flag"
5193 || test ! -s conftest.err'
1e8e9920 5194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5195 (eval $ac_try) 2>&5
5196 ac_status=$?
5197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5198 (exit $ac_status); }; } &&
5199 { ac_try='test -s conftest.$ac_objext'
5200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5201 (eval $ac_try) 2>&5
5202 ac_status=$?
5203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5204 (exit $ac_status); }; }; then
5205 ac_cv_header_stdc=yes
5206else
5207 echo "$as_me: failed program was:" >&5
5208sed 's/^/| /' conftest.$ac_ext >&5
5209
5210ac_cv_header_stdc=no
5211fi
5212rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5213
5214if test $ac_cv_header_stdc = yes; then
5215 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5216 cat >conftest.$ac_ext <<_ACEOF
5217/* confdefs.h. */
5218_ACEOF
5219cat confdefs.h >>conftest.$ac_ext
5220cat >>conftest.$ac_ext <<_ACEOF
5221/* end confdefs.h. */
5222#include <string.h>
5223
5224_ACEOF
5225if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5226 $EGREP "memchr" >/dev/null 2>&1; then
5227 :
5228else
5229 ac_cv_header_stdc=no
5230fi
5231rm -f conftest*
5232
5233fi
5234
5235if test $ac_cv_header_stdc = yes; then
5236 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5237 cat >conftest.$ac_ext <<_ACEOF
5238/* confdefs.h. */
5239_ACEOF
5240cat confdefs.h >>conftest.$ac_ext
5241cat >>conftest.$ac_ext <<_ACEOF
5242/* end confdefs.h. */
5243#include <stdlib.h>
5244
5245_ACEOF
5246if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5247 $EGREP "free" >/dev/null 2>&1; then
5248 :
5249else
5250 ac_cv_header_stdc=no
5251fi
5252rm -f conftest*
5253
5254fi
5255
5256if test $ac_cv_header_stdc = yes; then
5257 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5258 if test "$cross_compiling" = yes; then
5259 :
5260else
5261 cat >conftest.$ac_ext <<_ACEOF
5262/* confdefs.h. */
5263_ACEOF
5264cat confdefs.h >>conftest.$ac_ext
5265cat >>conftest.$ac_ext <<_ACEOF
5266/* end confdefs.h. */
5267#include <ctype.h>
5268#if ((' ' & 0x0FF) == 0x020)
5269# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5270# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5271#else
5272# define ISLOWER(c) \
5273 (('a' <= (c) && (c) <= 'i') \
5274 || ('j' <= (c) && (c) <= 'r') \
5275 || ('s' <= (c) && (c) <= 'z'))
5276# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5277#endif
5278
5279#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5280int
5281main ()
5282{
5283 int i;
5284 for (i = 0; i < 256; i++)
5285 if (XOR (islower (i), ISLOWER (i))
5286 || toupper (i) != TOUPPER (i))
5287 exit(2);
5288 exit (0);
5289}
5290_ACEOF
5291rm -f conftest$ac_exeext
5292if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5293 (eval $ac_link) 2>&5
5294 ac_status=$?
5295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5298 (eval $ac_try) 2>&5
5299 ac_status=$?
5300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5301 (exit $ac_status); }; }; then
5302 :
5303else
5304 echo "$as_me: program exited with status $ac_status" >&5
5305echo "$as_me: failed program was:" >&5
5306sed 's/^/| /' conftest.$ac_ext >&5
5307
5308( exit $ac_status )
5309ac_cv_header_stdc=no
5310fi
5311rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5312fi
5313fi
5314fi
5315echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5316echo "${ECHO_T}$ac_cv_header_stdc" >&6
5317if test $ac_cv_header_stdc = yes; then
5318
5319cat >>confdefs.h <<\_ACEOF
5320#define STDC_HEADERS 1
5321_ACEOF
5322
5323fi
5324
5325echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5326echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5327if test "${ac_cv_header_time+set}" = set; then
5328 echo $ECHO_N "(cached) $ECHO_C" >&6
5329else
5330 cat >conftest.$ac_ext <<_ACEOF
5331/* confdefs.h. */
5332_ACEOF
5333cat confdefs.h >>conftest.$ac_ext
5334cat >>conftest.$ac_ext <<_ACEOF
5335/* end confdefs.h. */
5336#include <sys/types.h>
5337#include <sys/time.h>
5338#include <time.h>
5339
5340int
5341main ()
5342{
5343if ((struct tm *) 0)
5344return 0;
5345 ;
5346 return 0;
5347}
5348_ACEOF
5349rm -f conftest.$ac_objext
5350if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5351 (eval $ac_compile) 2>conftest.er1
5352 ac_status=$?
5353 grep -v '^ *+' conftest.er1 >conftest.err
5354 rm -f conftest.er1
5355 cat conftest.err >&5
5356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5357 (exit $ac_status); } &&
59da30e1 5358 { ac_try='test -z "$ac_c_werror_flag"
5359 || test ! -s conftest.err'
1e8e9920 5360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5361 (eval $ac_try) 2>&5
5362 ac_status=$?
5363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5364 (exit $ac_status); }; } &&
5365 { ac_try='test -s conftest.$ac_objext'
5366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5367 (eval $ac_try) 2>&5
5368 ac_status=$?
5369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370 (exit $ac_status); }; }; then
5371 ac_cv_header_time=yes
5372else
5373 echo "$as_me: failed program was:" >&5
5374sed 's/^/| /' conftest.$ac_ext >&5
5375
5376ac_cv_header_time=no
5377fi
5378rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5379fi
5380echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5381echo "${ECHO_T}$ac_cv_header_time" >&6
5382if test $ac_cv_header_time = yes; then
5383
5384cat >>confdefs.h <<\_ACEOF
5385#define TIME_WITH_SYS_TIME 1
5386_ACEOF
5387
5388fi
5389
5390# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5401 inttypes.h stdint.h unistd.h
5402do
5403as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5404echo "$as_me:$LINENO: checking for $ac_header" >&5
5405echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5406if eval "test \"\${$as_ac_Header+set}\" = set"; then
5407 echo $ECHO_N "(cached) $ECHO_C" >&6
5408else
5409 cat >conftest.$ac_ext <<_ACEOF
5410/* confdefs.h. */
5411_ACEOF
5412cat confdefs.h >>conftest.$ac_ext
5413cat >>conftest.$ac_ext <<_ACEOF
5414/* end confdefs.h. */
5415$ac_includes_default
5416
5417#include <$ac_header>
5418_ACEOF
5419rm -f conftest.$ac_objext
5420if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5421 (eval $ac_compile) 2>conftest.er1
5422 ac_status=$?
5423 grep -v '^ *+' conftest.er1 >conftest.err
5424 rm -f conftest.er1
5425 cat conftest.err >&5
5426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5427 (exit $ac_status); } &&
59da30e1 5428 { ac_try='test -z "$ac_c_werror_flag"
5429 || test ! -s conftest.err'
1e8e9920 5430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5431 (eval $ac_try) 2>&5
5432 ac_status=$?
5433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5434 (exit $ac_status); }; } &&
5435 { ac_try='test -s conftest.$ac_objext'
5436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5437 (eval $ac_try) 2>&5
5438 ac_status=$?
5439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5440 (exit $ac_status); }; }; then
5441 eval "$as_ac_Header=yes"
5442else
5443 echo "$as_me: failed program was:" >&5
5444sed 's/^/| /' conftest.$ac_ext >&5
5445
5446eval "$as_ac_Header=no"
5447fi
5448rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5449fi
5450echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5451echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5452if test `eval echo '${'$as_ac_Header'}'` = yes; then
5453 cat >>confdefs.h <<_ACEOF
5454#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5455_ACEOF
5456
5457fi
5458
5459done
5460
5461
5462
5463
5464
138f59be 5465
5466for ac_header in unistd.h semaphore.h sys/loadavg.h sys/time.h
1e8e9920 5467do
5468as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5469if eval "test \"\${$as_ac_Header+set}\" = set"; then
5470 echo "$as_me:$LINENO: checking for $ac_header" >&5
5471echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5472if eval "test \"\${$as_ac_Header+set}\" = set"; then
5473 echo $ECHO_N "(cached) $ECHO_C" >&6
5474fi
5475echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5476echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5477else
5478 # Is the header compilable?
5479echo "$as_me:$LINENO: checking $ac_header usability" >&5
5480echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5481cat >conftest.$ac_ext <<_ACEOF
5482/* confdefs.h. */
5483_ACEOF
5484cat confdefs.h >>conftest.$ac_ext
5485cat >>conftest.$ac_ext <<_ACEOF
5486/* end confdefs.h. */
5487$ac_includes_default
5488#include <$ac_header>
5489_ACEOF
5490rm -f conftest.$ac_objext
5491if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5492 (eval $ac_compile) 2>conftest.er1
5493 ac_status=$?
5494 grep -v '^ *+' conftest.er1 >conftest.err
5495 rm -f conftest.er1
5496 cat conftest.err >&5
5497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5498 (exit $ac_status); } &&
59da30e1 5499 { ac_try='test -z "$ac_c_werror_flag"
5500 || test ! -s conftest.err'
1e8e9920 5501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5502 (eval $ac_try) 2>&5
5503 ac_status=$?
5504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5505 (exit $ac_status); }; } &&
5506 { ac_try='test -s conftest.$ac_objext'
5507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5508 (eval $ac_try) 2>&5
5509 ac_status=$?
5510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511 (exit $ac_status); }; }; then
5512 ac_header_compiler=yes
5513else
5514 echo "$as_me: failed program was:" >&5
5515sed 's/^/| /' conftest.$ac_ext >&5
5516
5517ac_header_compiler=no
5518fi
5519rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5520echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5521echo "${ECHO_T}$ac_header_compiler" >&6
5522
5523# Is the header present?
5524echo "$as_me:$LINENO: checking $ac_header presence" >&5
5525echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5526cat >conftest.$ac_ext <<_ACEOF
5527/* confdefs.h. */
5528_ACEOF
5529cat confdefs.h >>conftest.$ac_ext
5530cat >>conftest.$ac_ext <<_ACEOF
5531/* end confdefs.h. */
5532#include <$ac_header>
5533_ACEOF
5534if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5535 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5536 ac_status=$?
5537 grep -v '^ *+' conftest.er1 >conftest.err
5538 rm -f conftest.er1
5539 cat conftest.err >&5
5540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5541 (exit $ac_status); } >/dev/null; then
5542 if test -s conftest.err; then
5543 ac_cpp_err=$ac_c_preproc_warn_flag
5544 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5545 else
5546 ac_cpp_err=
5547 fi
5548else
5549 ac_cpp_err=yes
5550fi
5551if test -z "$ac_cpp_err"; then
5552 ac_header_preproc=yes
5553else
5554 echo "$as_me: failed program was:" >&5
5555sed 's/^/| /' conftest.$ac_ext >&5
5556
5557 ac_header_preproc=no
5558fi
5559rm -f conftest.err conftest.$ac_ext
5560echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5561echo "${ECHO_T}$ac_header_preproc" >&6
5562
5563# So? What about this header?
5564case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5565 yes:no: )
5566 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5567echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5568 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5569echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5570 ac_header_preproc=yes
5571 ;;
5572 no:yes:* )
5573 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5574echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5575 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5576echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5577 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5578echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5579 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5580echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5581 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5582echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5583 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5584echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5585 (
5586 cat <<\_ASBOX
5587## ----------------------------------------------------- ##
5588## Report this to the GNU OpenMP Runtime Library lists. ##
5589## ----------------------------------------------------- ##
5590_ASBOX
5591 ) |
5592 sed "s/^/$as_me: WARNING: /" >&2
5593 ;;
5594esac
5595echo "$as_me:$LINENO: checking for $ac_header" >&5
5596echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5597if eval "test \"\${$as_ac_Header+set}\" = set"; then
5598 echo $ECHO_N "(cached) $ECHO_C" >&6
5599else
5600 eval "$as_ac_Header=\$ac_header_preproc"
5601fi
5602echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5603echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5604
5605fi
5606if test `eval echo '${'$as_ac_Header'}'` = yes; then
5607 cat >>confdefs.h <<_ACEOF
5608#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5609_ACEOF
5610
5611fi
5612
5613done
5614
1e8e9920 5615
01473a49 5616
5617
5618inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
5619
5620acx_cv_header_stdint=stddef.h
5621acx_cv_header_stdint_kind="(already complete)"
5622for i in stdint.h $inttype_headers; do
5623 unset ac_cv_type_uintptr_t
5624 unset ac_cv_type_uintmax_t
5625 unset ac_cv_type_int_least32_t
5626 unset ac_cv_type_int_fast32_t
5627 unset ac_cv_type_uint64_t
5628 echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
5629 echo "$as_me:$LINENO: checking for uintmax_t" >&5
5630echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
5631if test "${ac_cv_type_uintmax_t+set}" = set; then
5632 echo $ECHO_N "(cached) $ECHO_C" >&6
5633else
5634 cat >conftest.$ac_ext <<_ACEOF
5635/* confdefs.h. */
5636_ACEOF
5637cat confdefs.h >>conftest.$ac_ext
5638cat >>conftest.$ac_ext <<_ACEOF
5639/* end confdefs.h. */
5640#include <sys/types.h>
5641#include <$i>
5642
5643int
5644main ()
5645{
5646if ((uintmax_t *) 0)
5647 return 0;
5648if (sizeof (uintmax_t))
5649 return 0;
5650 ;
5651 return 0;
5652}
5653_ACEOF
5654rm -f conftest.$ac_objext
5655if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5656 (eval $ac_compile) 2>conftest.er1
5657 ac_status=$?
5658 grep -v '^ *+' conftest.er1 >conftest.err
5659 rm -f conftest.er1
5660 cat conftest.err >&5
5661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662 (exit $ac_status); } &&
59da30e1 5663 { ac_try='test -z "$ac_c_werror_flag"
5664 || test ! -s conftest.err'
01473a49 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); }; } &&
5670 { ac_try='test -s conftest.$ac_objext'
5671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5672 (eval $ac_try) 2>&5
5673 ac_status=$?
5674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675 (exit $ac_status); }; }; then
5676 ac_cv_type_uintmax_t=yes
5677else
5678 echo "$as_me: failed program was:" >&5
5679sed 's/^/| /' conftest.$ac_ext >&5
5680
5681ac_cv_type_uintmax_t=no
5682fi
5683rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5684fi
5685echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
5686echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
5687if test $ac_cv_type_uintmax_t = yes; then
5688 acx_cv_header_stdint=$i
5689else
5690 continue
5691fi
5692
5693 echo "$as_me:$LINENO: checking for uintptr_t" >&5
5694echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
5695if test "${ac_cv_type_uintptr_t+set}" = set; then
5696 echo $ECHO_N "(cached) $ECHO_C" >&6
5697else
5698 cat >conftest.$ac_ext <<_ACEOF
5699/* confdefs.h. */
5700_ACEOF
5701cat confdefs.h >>conftest.$ac_ext
5702cat >>conftest.$ac_ext <<_ACEOF
5703/* end confdefs.h. */
5704#include <sys/types.h>
5705#include <$i>
5706
5707int
5708main ()
5709{
5710if ((uintptr_t *) 0)
5711 return 0;
5712if (sizeof (uintptr_t))
5713 return 0;
5714 ;
5715 return 0;
5716}
5717_ACEOF
5718rm -f conftest.$ac_objext
5719if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5720 (eval $ac_compile) 2>conftest.er1
5721 ac_status=$?
5722 grep -v '^ *+' conftest.er1 >conftest.err
5723 rm -f conftest.er1
5724 cat conftest.err >&5
5725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726 (exit $ac_status); } &&
59da30e1 5727 { ac_try='test -z "$ac_c_werror_flag"
5728 || test ! -s conftest.err'
01473a49 5729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5730 (eval $ac_try) 2>&5
5731 ac_status=$?
5732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733 (exit $ac_status); }; } &&
5734 { ac_try='test -s conftest.$ac_objext'
5735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5736 (eval $ac_try) 2>&5
5737 ac_status=$?
5738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5739 (exit $ac_status); }; }; then
5740 ac_cv_type_uintptr_t=yes
5741else
5742 echo "$as_me: failed program was:" >&5
5743sed 's/^/| /' conftest.$ac_ext >&5
5744
5745ac_cv_type_uintptr_t=no
5746fi
5747rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5748fi
5749echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
5750echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
5751if test $ac_cv_type_uintptr_t = yes; then
5752 :
5753else
5754 acx_cv_header_stdint_kind="(mostly complete)"
5755fi
5756
5757 echo "$as_me:$LINENO: checking for int_least32_t" >&5
5758echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
5759if test "${ac_cv_type_int_least32_t+set}" = set; then
5760 echo $ECHO_N "(cached) $ECHO_C" >&6
5761else
5762 cat >conftest.$ac_ext <<_ACEOF
5763/* confdefs.h. */
5764_ACEOF
5765cat confdefs.h >>conftest.$ac_ext
5766cat >>conftest.$ac_ext <<_ACEOF
5767/* end confdefs.h. */
5768#include <sys/types.h>
5769#include <$i>
5770
5771int
5772main ()
5773{
5774if ((int_least32_t *) 0)
5775 return 0;
5776if (sizeof (int_least32_t))
5777 return 0;
5778 ;
5779 return 0;
5780}
5781_ACEOF
5782rm -f conftest.$ac_objext
5783if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5784 (eval $ac_compile) 2>conftest.er1
5785 ac_status=$?
5786 grep -v '^ *+' conftest.er1 >conftest.err
5787 rm -f conftest.er1
5788 cat conftest.err >&5
5789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790 (exit $ac_status); } &&
59da30e1 5791 { ac_try='test -z "$ac_c_werror_flag"
5792 || test ! -s conftest.err'
01473a49 5793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5794 (eval $ac_try) 2>&5
5795 ac_status=$?
5796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797 (exit $ac_status); }; } &&
5798 { ac_try='test -s conftest.$ac_objext'
5799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5800 (eval $ac_try) 2>&5
5801 ac_status=$?
5802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5803 (exit $ac_status); }; }; then
5804 ac_cv_type_int_least32_t=yes
5805else
5806 echo "$as_me: failed program was:" >&5
5807sed 's/^/| /' conftest.$ac_ext >&5
5808
5809ac_cv_type_int_least32_t=no
5810fi
5811rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5812fi
5813echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
5814echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
5815if test $ac_cv_type_int_least32_t = yes; then
5816 :
5817else
5818 acx_cv_header_stdint_kind="(mostly complete)"
5819fi
5820
5821 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
5822echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
5823if test "${ac_cv_type_int_fast32_t+set}" = set; then
5824 echo $ECHO_N "(cached) $ECHO_C" >&6
5825else
5826 cat >conftest.$ac_ext <<_ACEOF
5827/* confdefs.h. */
5828_ACEOF
5829cat confdefs.h >>conftest.$ac_ext
5830cat >>conftest.$ac_ext <<_ACEOF
5831/* end confdefs.h. */
5832#include <sys/types.h>
5833#include <$i>
5834
5835int
5836main ()
5837{
5838if ((int_fast32_t *) 0)
5839 return 0;
5840if (sizeof (int_fast32_t))
5841 return 0;
5842 ;
5843 return 0;
5844}
5845_ACEOF
5846rm -f conftest.$ac_objext
5847if { (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); } &&
59da30e1 5855 { ac_try='test -z "$ac_c_werror_flag"
5856 || test ! -s conftest.err'
01473a49 5857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5858 (eval $ac_try) 2>&5
5859 ac_status=$?
5860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861 (exit $ac_status); }; } &&
5862 { ac_try='test -s conftest.$ac_objext'
5863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5864 (eval $ac_try) 2>&5
5865 ac_status=$?
5866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867 (exit $ac_status); }; }; then
5868 ac_cv_type_int_fast32_t=yes
5869else
5870 echo "$as_me: failed program was:" >&5
5871sed 's/^/| /' conftest.$ac_ext >&5
5872
5873ac_cv_type_int_fast32_t=no
5874fi
5875rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5876fi
5877echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
5878echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
5879if test $ac_cv_type_int_fast32_t = yes; then
5880 :
5881else
5882 acx_cv_header_stdint_kind="(mostly complete)"
5883fi
5884
5885 echo "$as_me:$LINENO: checking for uint64_t" >&5
5886echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
5887if test "${ac_cv_type_uint64_t+set}" = set; then
5888 echo $ECHO_N "(cached) $ECHO_C" >&6
5889else
5890 cat >conftest.$ac_ext <<_ACEOF
5891/* confdefs.h. */
5892_ACEOF
5893cat confdefs.h >>conftest.$ac_ext
5894cat >>conftest.$ac_ext <<_ACEOF
5895/* end confdefs.h. */
5896#include <sys/types.h>
5897#include <$i>
5898
5899int
5900main ()
5901{
5902if ((uint64_t *) 0)
5903 return 0;
5904if (sizeof (uint64_t))
5905 return 0;
5906 ;
5907 return 0;
5908}
5909_ACEOF
5910rm -f conftest.$ac_objext
5911if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5912 (eval $ac_compile) 2>conftest.er1
5913 ac_status=$?
5914 grep -v '^ *+' conftest.er1 >conftest.err
5915 rm -f conftest.er1
5916 cat conftest.err >&5
5917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5918 (exit $ac_status); } &&
59da30e1 5919 { ac_try='test -z "$ac_c_werror_flag"
5920 || test ! -s conftest.err'
01473a49 5921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5922 (eval $ac_try) 2>&5
5923 ac_status=$?
5924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5925 (exit $ac_status); }; } &&
5926 { ac_try='test -s conftest.$ac_objext'
5927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5928 (eval $ac_try) 2>&5
5929 ac_status=$?
5930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931 (exit $ac_status); }; }; then
5932 ac_cv_type_uint64_t=yes
5933else
5934 echo "$as_me: failed program was:" >&5
5935sed 's/^/| /' conftest.$ac_ext >&5
5936
5937ac_cv_type_uint64_t=no
5938fi
5939rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5940fi
5941echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
5942echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
5943if test $ac_cv_type_uint64_t = yes; then
5944 :
5945else
5946 acx_cv_header_stdint_kind="(lacks uint64_t)"
5947fi
5948
5949 break
5950done
5951if test "$acx_cv_header_stdint" = stddef.h; then
0b67f687 5952 acx_cv_header_stdint_kind="(lacks uintmax_t)"
01473a49 5953 for i in stdint.h $inttype_headers; do
0b67f687 5954 unset ac_cv_type_uintptr_t
01473a49 5955 unset ac_cv_type_uint32_t
5956 unset ac_cv_type_uint64_t
5957 echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
5958 echo "$as_me:$LINENO: checking for uint32_t" >&5
5959echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
5960if test "${ac_cv_type_uint32_t+set}" = set; then
5961 echo $ECHO_N "(cached) $ECHO_C" >&6
5962else
5963 cat >conftest.$ac_ext <<_ACEOF
5964/* confdefs.h. */
5965_ACEOF
5966cat confdefs.h >>conftest.$ac_ext
5967cat >>conftest.$ac_ext <<_ACEOF
5968/* end confdefs.h. */
5969#include <sys/types.h>
5970#include <$i>
5971
5972int
5973main ()
5974{
5975if ((uint32_t *) 0)
5976 return 0;
5977if (sizeof (uint32_t))
5978 return 0;
5979 ;
5980 return 0;
5981}
5982_ACEOF
5983rm -f conftest.$ac_objext
5984if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5985 (eval $ac_compile) 2>conftest.er1
5986 ac_status=$?
5987 grep -v '^ *+' conftest.er1 >conftest.err
5988 rm -f conftest.er1
5989 cat conftest.err >&5
5990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991 (exit $ac_status); } &&
59da30e1 5992 { ac_try='test -z "$ac_c_werror_flag"
5993 || test ! -s conftest.err'
01473a49 5994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5995 (eval $ac_try) 2>&5
5996 ac_status=$?
5997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998 (exit $ac_status); }; } &&
5999 { ac_try='test -s conftest.$ac_objext'
6000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6001 (eval $ac_try) 2>&5
6002 ac_status=$?
6003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004 (exit $ac_status); }; }; then
6005 ac_cv_type_uint32_t=yes
6006else
6007 echo "$as_me: failed program was:" >&5
6008sed 's/^/| /' conftest.$ac_ext >&5
6009
6010ac_cv_type_uint32_t=no
6011fi
6012rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6013fi
6014echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
6015echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
6016if test $ac_cv_type_uint32_t = yes; then
6017 acx_cv_header_stdint=$i
6018else
6019 continue
6020fi
6021
6022 echo "$as_me:$LINENO: checking for uint64_t" >&5
6023echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
6024if test "${ac_cv_type_uint64_t+set}" = set; then
6025 echo $ECHO_N "(cached) $ECHO_C" >&6
6026else
6027 cat >conftest.$ac_ext <<_ACEOF
6028/* confdefs.h. */
6029_ACEOF
6030cat confdefs.h >>conftest.$ac_ext
6031cat >>conftest.$ac_ext <<_ACEOF
6032/* end confdefs.h. */
6033#include <sys/types.h>
6034#include <$i>
6035
6036int
6037main ()
6038{
6039if ((uint64_t *) 0)
6040 return 0;
6041if (sizeof (uint64_t))
6042 return 0;
6043 ;
6044 return 0;
6045}
6046_ACEOF
6047rm -f conftest.$ac_objext
6048if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6049 (eval $ac_compile) 2>conftest.er1
6050 ac_status=$?
6051 grep -v '^ *+' conftest.er1 >conftest.err
6052 rm -f conftest.er1
6053 cat conftest.err >&5
6054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6055 (exit $ac_status); } &&
59da30e1 6056 { ac_try='test -z "$ac_c_werror_flag"
6057 || test ! -s conftest.err'
01473a49 6058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6059 (eval $ac_try) 2>&5
6060 ac_status=$?
6061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6062 (exit $ac_status); }; } &&
6063 { ac_try='test -s conftest.$ac_objext'
6064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6065 (eval $ac_try) 2>&5
6066 ac_status=$?
6067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068 (exit $ac_status); }; }; then
6069 ac_cv_type_uint64_t=yes
6070else
6071 echo "$as_me: failed program was:" >&5
6072sed 's/^/| /' conftest.$ac_ext >&5
6073
6074ac_cv_type_uint64_t=no
6075fi
6076rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6077fi
6078echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
6079echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
0b67f687 6080
6081 echo "$as_me:$LINENO: checking for uintptr_t" >&5
6082echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
6083if test "${ac_cv_type_uintptr_t+set}" = set; then
6084 echo $ECHO_N "(cached) $ECHO_C" >&6
01473a49 6085else
0b67f687 6086 cat >conftest.$ac_ext <<_ACEOF
6087/* confdefs.h. */
6088_ACEOF
6089cat confdefs.h >>conftest.$ac_ext
6090cat >>conftest.$ac_ext <<_ACEOF
6091/* end confdefs.h. */
6092#include <sys/types.h>
6093#include <$i>
6094
6095int
6096main ()
6097{
6098if ((uintptr_t *) 0)
6099 return 0;
6100if (sizeof (uintptr_t))
6101 return 0;
6102 ;
6103 return 0;
6104}
6105_ACEOF
6106rm -f conftest.$ac_objext
6107if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6108 (eval $ac_compile) 2>conftest.er1
6109 ac_status=$?
6110 grep -v '^ *+' conftest.er1 >conftest.err
6111 rm -f conftest.er1
6112 cat conftest.err >&5
6113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6114 (exit $ac_status); } &&
6115 { ac_try='test -z "$ac_c_werror_flag"
6116 || test ! -s conftest.err'
6117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6118 (eval $ac_try) 2>&5
6119 ac_status=$?
6120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6121 (exit $ac_status); }; } &&
6122 { ac_try='test -s conftest.$ac_objext'
6123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6124 (eval $ac_try) 2>&5
6125 ac_status=$?
6126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6127 (exit $ac_status); }; }; then
6128 ac_cv_type_uintptr_t=yes
6129else
6130 echo "$as_me: failed program was:" >&5
6131sed 's/^/| /' conftest.$ac_ext >&5
6132
6133ac_cv_type_uintptr_t=no
6134fi
6135rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01473a49 6136fi
0b67f687 6137echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
6138echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
01473a49 6139
6140 break
6141 done
6142fi
6143if test "$acx_cv_header_stdint" = stddef.h; then
6144 acx_cv_header_stdint_kind="(u_intXX_t style)"
6145 for i in sys/types.h $inttype_headers; do
6146 unset ac_cv_type_u_int32_t
6147 unset ac_cv_type_u_int64_t
6148 echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
6149 echo "$as_me:$LINENO: checking for u_int32_t" >&5
6150echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
6151if test "${ac_cv_type_u_int32_t+set}" = set; then
6152 echo $ECHO_N "(cached) $ECHO_C" >&6
6153else
6154 cat >conftest.$ac_ext <<_ACEOF
6155/* confdefs.h. */
6156_ACEOF
6157cat confdefs.h >>conftest.$ac_ext
6158cat >>conftest.$ac_ext <<_ACEOF
6159/* end confdefs.h. */
6160#include <sys/types.h>
6161#include <$i>
6162
6163int
6164main ()
6165{
6166if ((u_int32_t *) 0)
6167 return 0;
6168if (sizeof (u_int32_t))
6169 return 0;
6170 ;
6171 return 0;
6172}
6173_ACEOF
6174rm -f conftest.$ac_objext
6175if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6176 (eval $ac_compile) 2>conftest.er1
6177 ac_status=$?
6178 grep -v '^ *+' conftest.er1 >conftest.err
6179 rm -f conftest.er1
6180 cat conftest.err >&5
6181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6182 (exit $ac_status); } &&
59da30e1 6183 { ac_try='test -z "$ac_c_werror_flag"
6184 || test ! -s conftest.err'
01473a49 6185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6186 (eval $ac_try) 2>&5
6187 ac_status=$?
6188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6189 (exit $ac_status); }; } &&
6190 { ac_try='test -s conftest.$ac_objext'
6191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6192 (eval $ac_try) 2>&5
6193 ac_status=$?
6194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195 (exit $ac_status); }; }; then
6196 ac_cv_type_u_int32_t=yes
6197else
6198 echo "$as_me: failed program was:" >&5
6199sed 's/^/| /' conftest.$ac_ext >&5
6200
6201ac_cv_type_u_int32_t=no
6202fi
6203rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6204fi
6205echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
6206echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
6207if test $ac_cv_type_u_int32_t = yes; then
6208 acx_cv_header_stdint=$i
6209else
6210 continue
6211fi
6212
6213 echo "$as_me:$LINENO: checking for u_int64_t" >&5
6214echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
6215if test "${ac_cv_type_u_int64_t+set}" = set; then
6216 echo $ECHO_N "(cached) $ECHO_C" >&6
6217else
6218 cat >conftest.$ac_ext <<_ACEOF
6219/* confdefs.h. */
6220_ACEOF
6221cat confdefs.h >>conftest.$ac_ext
6222cat >>conftest.$ac_ext <<_ACEOF
6223/* end confdefs.h. */
6224#include <sys/types.h>
6225#include <$i>
6226
6227int
6228main ()
6229{
6230if ((u_int64_t *) 0)
6231 return 0;
6232if (sizeof (u_int64_t))
6233 return 0;
6234 ;
6235 return 0;
6236}
6237_ACEOF
6238rm -f conftest.$ac_objext
6239if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6240 (eval $ac_compile) 2>conftest.er1
6241 ac_status=$?
6242 grep -v '^ *+' conftest.er1 >conftest.err
6243 rm -f conftest.er1
6244 cat conftest.err >&5
6245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6246 (exit $ac_status); } &&
59da30e1 6247 { ac_try='test -z "$ac_c_werror_flag"
6248 || test ! -s conftest.err'
01473a49 6249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6250 (eval $ac_try) 2>&5
6251 ac_status=$?
6252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253 (exit $ac_status); }; } &&
6254 { ac_try='test -s conftest.$ac_objext'
6255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6256 (eval $ac_try) 2>&5
6257 ac_status=$?
6258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6259 (exit $ac_status); }; }; then
6260 ac_cv_type_u_int64_t=yes
6261else
6262 echo "$as_me: failed program was:" >&5
6263sed 's/^/| /' conftest.$ac_ext >&5
6264
6265ac_cv_type_u_int64_t=no
6266fi
6267rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6268fi
6269echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
6270echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
01473a49 6271
6272 break
6273 done
6274fi
6275if test "$acx_cv_header_stdint" = stddef.h; then
6276 acx_cv_header_stdint_kind="(using manual detection)"
6277fi
6278
6279test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
6280test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
6281test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
6282test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
6283test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
6284
6285# ----------------- Summarize what we found so far
6286
6287echo "$as_me:$LINENO: checking what to include in gstdint.h" >&5
6288echo $ECHO_N "checking what to include in gstdint.h... $ECHO_C" >&6
6289
6290case `$as_basename gstdint.h ||
6291$as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
6292 Xgstdint.h : 'X\(//\)$' \| \
6293 Xgstdint.h : 'X\(/\)$' \| \
6294 . : '\(.\)' 2>/dev/null ||
6295echo X/gstdint.h |
6296 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6297 /^X\/\(\/\/\)$/{ s//\1/; q; }
6298 /^X\/\(\/\).*/{ s//\1/; q; }
6299 s/.*/./; q'` in
6300 stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
6301echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
6302 inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
6303echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
6304 *) ;;
6305esac
6306
6307echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
6308echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
6309
6310# ----------------- done included file, check C basic types --------
6311
6312# Lacking an uintptr_t? Test size of void *
6313case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
6314 stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
6315echo $ECHO_N "checking for void *... $ECHO_C" >&6
6316if test "${ac_cv_type_void_p+set}" = set; then
6317 echo $ECHO_N "(cached) $ECHO_C" >&6
6318else
6319 cat >conftest.$ac_ext <<_ACEOF
6320/* confdefs.h. */
6321_ACEOF
6322cat confdefs.h >>conftest.$ac_ext
6323cat >>conftest.$ac_ext <<_ACEOF
6324/* end confdefs.h. */
6325$ac_includes_default
6326int
6327main ()
6328{
6329if ((void * *) 0)
6330 return 0;
6331if (sizeof (void *))
6332 return 0;
6333 ;
6334 return 0;
6335}
6336_ACEOF
6337rm -f conftest.$ac_objext
6338if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6339 (eval $ac_compile) 2>conftest.er1
6340 ac_status=$?
6341 grep -v '^ *+' conftest.er1 >conftest.err
6342 rm -f conftest.er1
6343 cat conftest.err >&5
6344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6345 (exit $ac_status); } &&
59da30e1 6346 { ac_try='test -z "$ac_c_werror_flag"
6347 || test ! -s conftest.err'
01473a49 6348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6349 (eval $ac_try) 2>&5
6350 ac_status=$?
6351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6352 (exit $ac_status); }; } &&
6353 { ac_try='test -s conftest.$ac_objext'
6354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6355 (eval $ac_try) 2>&5
6356 ac_status=$?
6357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6358 (exit $ac_status); }; }; then
6359 ac_cv_type_void_p=yes
6360else
6361 echo "$as_me: failed program was:" >&5
6362sed 's/^/| /' conftest.$ac_ext >&5
6363
6364ac_cv_type_void_p=no
6365fi
6366rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6367fi
6368echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
6369echo "${ECHO_T}$ac_cv_type_void_p" >&6
6370
6371echo "$as_me:$LINENO: checking size of void *" >&5
6372echo $ECHO_N "checking size of void *... $ECHO_C" >&6
6373if test "${ac_cv_sizeof_void_p+set}" = set; then
6374 echo $ECHO_N "(cached) $ECHO_C" >&6
6375else
6376 if test "$ac_cv_type_void_p" = yes; then
6377 # The cast to unsigned long works around a bug in the HP C Compiler
6378 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6379 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6380 # This bug is HP SR number 8606223364.
6381 if test "$cross_compiling" = yes; then
6382 # Depending upon the size, compute the lo and hi bounds.
6383cat >conftest.$ac_ext <<_ACEOF
6384/* confdefs.h. */
6385_ACEOF
6386cat confdefs.h >>conftest.$ac_ext
6387cat >>conftest.$ac_ext <<_ACEOF
6388/* end confdefs.h. */
6389$ac_includes_default
6390int
6391main ()
6392{
6393static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
6394test_array [0] = 0
6395
6396 ;
6397 return 0;
6398}
6399_ACEOF
6400rm -f conftest.$ac_objext
6401if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6402 (eval $ac_compile) 2>conftest.er1
6403 ac_status=$?
6404 grep -v '^ *+' conftest.er1 >conftest.err
6405 rm -f conftest.er1
6406 cat conftest.err >&5
6407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408 (exit $ac_status); } &&
59da30e1 6409 { ac_try='test -z "$ac_c_werror_flag"
6410 || test ! -s conftest.err'
01473a49 6411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6412 (eval $ac_try) 2>&5
6413 ac_status=$?
6414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6415 (exit $ac_status); }; } &&
6416 { ac_try='test -s conftest.$ac_objext'
6417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6418 (eval $ac_try) 2>&5
6419 ac_status=$?
6420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6421 (exit $ac_status); }; }; then
6422 ac_lo=0 ac_mid=0
6423 while :; do
6424 cat >conftest.$ac_ext <<_ACEOF
6425/* confdefs.h. */
6426_ACEOF
6427cat confdefs.h >>conftest.$ac_ext
6428cat >>conftest.$ac_ext <<_ACEOF
6429/* end confdefs.h. */
6430$ac_includes_default
6431int
6432main ()
6433{
6434static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
6435test_array [0] = 0
6436
6437 ;
6438 return 0;
6439}
6440_ACEOF
6441rm -f conftest.$ac_objext
6442if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6443 (eval $ac_compile) 2>conftest.er1
6444 ac_status=$?
6445 grep -v '^ *+' conftest.er1 >conftest.err
6446 rm -f conftest.er1
6447 cat conftest.err >&5
6448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449 (exit $ac_status); } &&
59da30e1 6450 { ac_try='test -z "$ac_c_werror_flag"
6451 || test ! -s conftest.err'
01473a49 6452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6453 (eval $ac_try) 2>&5
6454 ac_status=$?
6455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6456 (exit $ac_status); }; } &&
6457 { ac_try='test -s conftest.$ac_objext'
6458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6459 (eval $ac_try) 2>&5
6460 ac_status=$?
6461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6462 (exit $ac_status); }; }; then
6463 ac_hi=$ac_mid; break
6464else
6465 echo "$as_me: failed program was:" >&5
6466sed 's/^/| /' conftest.$ac_ext >&5
6467
6468ac_lo=`expr $ac_mid + 1`
6469 if test $ac_lo -le $ac_mid; then
6470 ac_lo= ac_hi=
6471 break
6472 fi
6473 ac_mid=`expr 2 '*' $ac_mid + 1`
6474fi
6475rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6476 done
6477else
6478 echo "$as_me: failed program was:" >&5
6479sed 's/^/| /' conftest.$ac_ext >&5
6480
6481cat >conftest.$ac_ext <<_ACEOF
6482/* confdefs.h. */
6483_ACEOF
6484cat confdefs.h >>conftest.$ac_ext
6485cat >>conftest.$ac_ext <<_ACEOF
6486/* end confdefs.h. */
6487$ac_includes_default
6488int
6489main ()
6490{
6491static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
6492test_array [0] = 0
6493
6494 ;
6495 return 0;
6496}
6497_ACEOF
6498rm -f conftest.$ac_objext
6499if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6500 (eval $ac_compile) 2>conftest.er1
6501 ac_status=$?
6502 grep -v '^ *+' conftest.er1 >conftest.err
6503 rm -f conftest.er1
6504 cat conftest.err >&5
6505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6506 (exit $ac_status); } &&
59da30e1 6507 { ac_try='test -z "$ac_c_werror_flag"
6508 || test ! -s conftest.err'
01473a49 6509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6510 (eval $ac_try) 2>&5
6511 ac_status=$?
6512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6513 (exit $ac_status); }; } &&
6514 { ac_try='test -s conftest.$ac_objext'
6515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6516 (eval $ac_try) 2>&5
6517 ac_status=$?
6518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6519 (exit $ac_status); }; }; then
6520 ac_hi=-1 ac_mid=-1
6521 while :; do
6522 cat >conftest.$ac_ext <<_ACEOF
6523/* confdefs.h. */
6524_ACEOF
6525cat confdefs.h >>conftest.$ac_ext
6526cat >>conftest.$ac_ext <<_ACEOF
6527/* end confdefs.h. */
6528$ac_includes_default
6529int
6530main ()
6531{
6532static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
6533test_array [0] = 0
6534
6535 ;
6536 return 0;
6537}
6538_ACEOF
6539rm -f conftest.$ac_objext
6540if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6541 (eval $ac_compile) 2>conftest.er1
6542 ac_status=$?
6543 grep -v '^ *+' conftest.er1 >conftest.err
6544 rm -f conftest.er1
6545 cat conftest.err >&5
6546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6547 (exit $ac_status); } &&
59da30e1 6548 { ac_try='test -z "$ac_c_werror_flag"
6549 || test ! -s conftest.err'
01473a49 6550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6551 (eval $ac_try) 2>&5
6552 ac_status=$?
6553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6554 (exit $ac_status); }; } &&
6555 { ac_try='test -s conftest.$ac_objext'
6556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6557 (eval $ac_try) 2>&5
6558 ac_status=$?
6559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6560 (exit $ac_status); }; }; then
6561 ac_lo=$ac_mid; break
6562else
6563 echo "$as_me: failed program was:" >&5
6564sed 's/^/| /' conftest.$ac_ext >&5
6565
6566ac_hi=`expr '(' $ac_mid ')' - 1`
6567 if test $ac_mid -le $ac_hi; then
6568 ac_lo= ac_hi=
6569 break
6570 fi
6571 ac_mid=`expr 2 '*' $ac_mid`
6572fi
6573rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6574 done
6575else
6576 echo "$as_me: failed program was:" >&5
6577sed 's/^/| /' conftest.$ac_ext >&5
6578
6579ac_lo= ac_hi=
6580fi
6581rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6582fi
6583rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6584# Binary search between lo and hi bounds.
6585while test "x$ac_lo" != "x$ac_hi"; do
6586 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6587 cat >conftest.$ac_ext <<_ACEOF
6588/* confdefs.h. */
6589_ACEOF
6590cat confdefs.h >>conftest.$ac_ext
6591cat >>conftest.$ac_ext <<_ACEOF
6592/* end confdefs.h. */
6593$ac_includes_default
6594int
6595main ()
6596{
6597static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
6598test_array [0] = 0
6599
6600 ;
6601 return 0;
6602}
6603_ACEOF
6604rm -f conftest.$ac_objext
6605if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6606 (eval $ac_compile) 2>conftest.er1
6607 ac_status=$?
6608 grep -v '^ *+' conftest.er1 >conftest.err
6609 rm -f conftest.er1
6610 cat conftest.err >&5
6611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612 (exit $ac_status); } &&
59da30e1 6613 { ac_try='test -z "$ac_c_werror_flag"
6614 || test ! -s conftest.err'
01473a49 6615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6616 (eval $ac_try) 2>&5
6617 ac_status=$?
6618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6619 (exit $ac_status); }; } &&
6620 { ac_try='test -s conftest.$ac_objext'
6621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6622 (eval $ac_try) 2>&5
6623 ac_status=$?
6624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6625 (exit $ac_status); }; }; then
6626 ac_hi=$ac_mid
6627else
6628 echo "$as_me: failed program was:" >&5
6629sed 's/^/| /' conftest.$ac_ext >&5
6630
6631ac_lo=`expr '(' $ac_mid ')' + 1`
6632fi
6633rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6634done
6635case $ac_lo in
6636?*) ac_cv_sizeof_void_p=$ac_lo;;
6637'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
6638See \`config.log' for more details." >&5
6639echo "$as_me: error: cannot compute sizeof (void *), 77
6640See \`config.log' for more details." >&2;}
6641 { (exit 1); exit 1; }; } ;;
6642esac
6643else
6644 if test "$cross_compiling" = yes; then
59da30e1 6645 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6646See \`config.log' for more details." >&5
6647echo "$as_me: error: cannot run test program while cross compiling
6648See \`config.log' for more details." >&2;}
01473a49 6649 { (exit 1); exit 1; }; }
6650else
6651 cat >conftest.$ac_ext <<_ACEOF
6652/* confdefs.h. */
6653_ACEOF
6654cat confdefs.h >>conftest.$ac_ext
6655cat >>conftest.$ac_ext <<_ACEOF
6656/* end confdefs.h. */
6657$ac_includes_default
6658long longval () { return (long) (sizeof (void *)); }
6659unsigned long ulongval () { return (long) (sizeof (void *)); }
6660#include <stdio.h>
6661#include <stdlib.h>
6662int
6663main ()
6664{
6665
6666 FILE *f = fopen ("conftest.val", "w");
6667 if (! f)
6668 exit (1);
6669 if (((long) (sizeof (void *))) < 0)
6670 {
6671 long i = longval ();
6672 if (i != ((long) (sizeof (void *))))
6673 exit (1);
6674 fprintf (f, "%ld\n", i);
6675 }
6676 else
6677 {
6678 unsigned long i = ulongval ();
6679 if (i != ((long) (sizeof (void *))))
6680 exit (1);
6681 fprintf (f, "%lu\n", i);
6682 }
6683 exit (ferror (f) || fclose (f) != 0);
6684
6685 ;
6686 return 0;
6687}
6688_ACEOF
6689rm -f conftest$ac_exeext
6690if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6691 (eval $ac_link) 2>&5
6692 ac_status=$?
6693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6694 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6696 (eval $ac_try) 2>&5
6697 ac_status=$?
6698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6699 (exit $ac_status); }; }; then
6700 ac_cv_sizeof_void_p=`cat conftest.val`
6701else
6702 echo "$as_me: program exited with status $ac_status" >&5
6703echo "$as_me: failed program was:" >&5
6704sed 's/^/| /' conftest.$ac_ext >&5
6705
6706( exit $ac_status )
6707{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
6708See \`config.log' for more details." >&5
6709echo "$as_me: error: cannot compute sizeof (void *), 77
6710See \`config.log' for more details." >&2;}
6711 { (exit 1); exit 1; }; }
6712fi
6713rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6714fi
6715fi
6716rm -f conftest.val
6717else
6718 ac_cv_sizeof_void_p=0
6719fi
6720fi
6721echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
6722echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
6723cat >>confdefs.h <<_ACEOF
6724#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6725_ACEOF
6726
6727 ;;
6728esac
6729
6730# Lacking an uint64_t? Test size of long
6731case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
6732 stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
6733echo $ECHO_N "checking for long... $ECHO_C" >&6
6734if test "${ac_cv_type_long+set}" = set; then
6735 echo $ECHO_N "(cached) $ECHO_C" >&6
6736else
6737 cat >conftest.$ac_ext <<_ACEOF
6738/* confdefs.h. */
6739_ACEOF
6740cat confdefs.h >>conftest.$ac_ext
6741cat >>conftest.$ac_ext <<_ACEOF
6742/* end confdefs.h. */
6743$ac_includes_default
6744int
6745main ()
6746{
6747if ((long *) 0)
6748 return 0;
6749if (sizeof (long))
6750 return 0;
6751 ;
6752 return 0;
6753}
6754_ACEOF
6755rm -f conftest.$ac_objext
6756if { (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); } &&
59da30e1 6764 { ac_try='test -z "$ac_c_werror_flag"
6765 || test ! -s conftest.err'
01473a49 6766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6767 (eval $ac_try) 2>&5
6768 ac_status=$?
6769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6770 (exit $ac_status); }; } &&
6771 { ac_try='test -s conftest.$ac_objext'
6772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6773 (eval $ac_try) 2>&5
6774 ac_status=$?
6775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6776 (exit $ac_status); }; }; then
6777 ac_cv_type_long=yes
6778else
6779 echo "$as_me: failed program was:" >&5
6780sed 's/^/| /' conftest.$ac_ext >&5
6781
6782ac_cv_type_long=no
6783fi
6784rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6785fi
6786echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6787echo "${ECHO_T}$ac_cv_type_long" >&6
6788
6789echo "$as_me:$LINENO: checking size of long" >&5
6790echo $ECHO_N "checking size of long... $ECHO_C" >&6
6791if test "${ac_cv_sizeof_long+set}" = set; then
6792 echo $ECHO_N "(cached) $ECHO_C" >&6
6793else
6794 if test "$ac_cv_type_long" = yes; then
6795 # The cast to unsigned long works around a bug in the HP C Compiler
6796 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6797 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6798 # This bug is HP SR number 8606223364.
6799 if test "$cross_compiling" = yes; then
6800 # Depending upon the size, compute the lo and hi bounds.
6801cat >conftest.$ac_ext <<_ACEOF
6802/* confdefs.h. */
6803_ACEOF
6804cat confdefs.h >>conftest.$ac_ext
6805cat >>conftest.$ac_ext <<_ACEOF
6806/* end confdefs.h. */
6807$ac_includes_default
6808int
6809main ()
6810{
6811static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6812test_array [0] = 0
6813
6814 ;
6815 return 0;
6816}
6817_ACEOF
6818rm -f conftest.$ac_objext
6819if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6820 (eval $ac_compile) 2>conftest.er1
6821 ac_status=$?
6822 grep -v '^ *+' conftest.er1 >conftest.err
6823 rm -f conftest.er1
6824 cat conftest.err >&5
6825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6826 (exit $ac_status); } &&
59da30e1 6827 { ac_try='test -z "$ac_c_werror_flag"
6828 || test ! -s conftest.err'
01473a49 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_lo=0 ac_mid=0
6841 while :; do
6842 cat >conftest.$ac_ext <<_ACEOF
6843/* confdefs.h. */
6844_ACEOF
6845cat confdefs.h >>conftest.$ac_ext
6846cat >>conftest.$ac_ext <<_ACEOF
6847/* end confdefs.h. */
6848$ac_includes_default
6849int
6850main ()
6851{
6852static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6853test_array [0] = 0
6854
6855 ;
6856 return 0;
6857}
6858_ACEOF
6859rm -f conftest.$ac_objext
6860if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6861 (eval $ac_compile) 2>conftest.er1
6862 ac_status=$?
6863 grep -v '^ *+' conftest.er1 >conftest.err
6864 rm -f conftest.er1
6865 cat conftest.err >&5
6866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6867 (exit $ac_status); } &&
59da30e1 6868 { ac_try='test -z "$ac_c_werror_flag"
6869 || test ! -s conftest.err'
01473a49 6870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6871 (eval $ac_try) 2>&5
6872 ac_status=$?
6873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6874 (exit $ac_status); }; } &&
6875 { ac_try='test -s conftest.$ac_objext'
6876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6877 (eval $ac_try) 2>&5
6878 ac_status=$?
6879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880 (exit $ac_status); }; }; then
6881 ac_hi=$ac_mid; break
6882else
6883 echo "$as_me: failed program was:" >&5
6884sed 's/^/| /' conftest.$ac_ext >&5
6885
6886ac_lo=`expr $ac_mid + 1`
6887 if test $ac_lo -le $ac_mid; then
6888 ac_lo= ac_hi=
6889 break
6890 fi
6891 ac_mid=`expr 2 '*' $ac_mid + 1`
6892fi
6893rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6894 done
6895else
6896 echo "$as_me: failed program was:" >&5
6897sed 's/^/| /' conftest.$ac_ext >&5
6898
6899cat >conftest.$ac_ext <<_ACEOF
6900/* confdefs.h. */
6901_ACEOF
6902cat confdefs.h >>conftest.$ac_ext
6903cat >>conftest.$ac_ext <<_ACEOF
6904/* end confdefs.h. */
6905$ac_includes_default
6906int
6907main ()
6908{
6909static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6910test_array [0] = 0
6911
6912 ;
6913 return 0;
6914}
6915_ACEOF
6916rm -f conftest.$ac_objext
6917if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6918 (eval $ac_compile) 2>conftest.er1
6919 ac_status=$?
6920 grep -v '^ *+' conftest.er1 >conftest.err
6921 rm -f conftest.er1
6922 cat conftest.err >&5
6923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6924 (exit $ac_status); } &&
59da30e1 6925 { ac_try='test -z "$ac_c_werror_flag"
6926 || test ! -s conftest.err'
01473a49 6927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6928 (eval $ac_try) 2>&5
6929 ac_status=$?
6930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6931 (exit $ac_status); }; } &&
6932 { ac_try='test -s conftest.$ac_objext'
6933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6934 (eval $ac_try) 2>&5
6935 ac_status=$?
6936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6937 (exit $ac_status); }; }; then
6938 ac_hi=-1 ac_mid=-1
6939 while :; do
6940 cat >conftest.$ac_ext <<_ACEOF
6941/* confdefs.h. */
6942_ACEOF
6943cat confdefs.h >>conftest.$ac_ext
6944cat >>conftest.$ac_ext <<_ACEOF
6945/* end confdefs.h. */
6946$ac_includes_default
6947int
6948main ()
6949{
6950static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6951test_array [0] = 0
6952
6953 ;
6954 return 0;
6955}
6956_ACEOF
6957rm -f conftest.$ac_objext
6958if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6959 (eval $ac_compile) 2>conftest.er1
6960 ac_status=$?
6961 grep -v '^ *+' conftest.er1 >conftest.err
6962 rm -f conftest.er1
6963 cat conftest.err >&5
6964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6965 (exit $ac_status); } &&
59da30e1 6966 { ac_try='test -z "$ac_c_werror_flag"
6967 || test ! -s conftest.err'
01473a49 6968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6969 (eval $ac_try) 2>&5
6970 ac_status=$?
6971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6972 (exit $ac_status); }; } &&
6973 { ac_try='test -s conftest.$ac_objext'
6974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6975 (eval $ac_try) 2>&5
6976 ac_status=$?
6977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6978 (exit $ac_status); }; }; then
6979 ac_lo=$ac_mid; break
6980else
6981 echo "$as_me: failed program was:" >&5
6982sed 's/^/| /' conftest.$ac_ext >&5
6983
6984ac_hi=`expr '(' $ac_mid ')' - 1`
6985 if test $ac_mid -le $ac_hi; then
6986 ac_lo= ac_hi=
6987 break
6988 fi
6989 ac_mid=`expr 2 '*' $ac_mid`
6990fi
6991rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6992 done
6993else
6994 echo "$as_me: failed program was:" >&5
6995sed 's/^/| /' conftest.$ac_ext >&5
6996
6997ac_lo= ac_hi=
6998fi
6999rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7000fi
7001rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7002# Binary search between lo and hi bounds.
7003while test "x$ac_lo" != "x$ac_hi"; do
7004 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7005 cat >conftest.$ac_ext <<_ACEOF
7006/* confdefs.h. */
7007_ACEOF
7008cat confdefs.h >>conftest.$ac_ext
7009cat >>conftest.$ac_ext <<_ACEOF
7010/* end confdefs.h. */
7011$ac_includes_default
7012int
7013main ()
7014{
7015static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7016test_array [0] = 0
7017
7018 ;
7019 return 0;
7020}
7021_ACEOF
7022rm -f conftest.$ac_objext
7023if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7024 (eval $ac_compile) 2>conftest.er1
7025 ac_status=$?
7026 grep -v '^ *+' conftest.er1 >conftest.err
7027 rm -f conftest.er1
7028 cat conftest.err >&5
7029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7030 (exit $ac_status); } &&
59da30e1 7031 { ac_try='test -z "$ac_c_werror_flag"
7032 || test ! -s conftest.err'
01473a49 7033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7034 (eval $ac_try) 2>&5
7035 ac_status=$?
7036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7037 (exit $ac_status); }; } &&
7038 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
7044 ac_hi=$ac_mid
7045else
7046 echo "$as_me: failed program was:" >&5
7047sed 's/^/| /' conftest.$ac_ext >&5
7048
7049ac_lo=`expr '(' $ac_mid ')' + 1`
7050fi
7051rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7052done
7053case $ac_lo in
7054?*) ac_cv_sizeof_long=$ac_lo;;
7055'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7056See \`config.log' for more details." >&5
7057echo "$as_me: error: cannot compute sizeof (long), 77
7058See \`config.log' for more details." >&2;}
7059 { (exit 1); exit 1; }; } ;;
7060esac
7061else
7062 if test "$cross_compiling" = yes; then
59da30e1 7063 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7064See \`config.log' for more details." >&5
7065echo "$as_me: error: cannot run test program while cross compiling
7066See \`config.log' for more details." >&2;}
01473a49 7067 { (exit 1); exit 1; }; }
7068else
7069 cat >conftest.$ac_ext <<_ACEOF
7070/* confdefs.h. */
7071_ACEOF
7072cat confdefs.h >>conftest.$ac_ext
7073cat >>conftest.$ac_ext <<_ACEOF
7074/* end confdefs.h. */
7075$ac_includes_default
7076long longval () { return (long) (sizeof (long)); }
7077unsigned long ulongval () { return (long) (sizeof (long)); }
7078#include <stdio.h>
7079#include <stdlib.h>
7080int
7081main ()
7082{
7083
7084 FILE *f = fopen ("conftest.val", "w");
7085 if (! f)
7086 exit (1);
7087 if (((long) (sizeof (long))) < 0)
7088 {
7089 long i = longval ();
7090 if (i != ((long) (sizeof (long))))
7091 exit (1);
7092 fprintf (f, "%ld\n", i);
7093 }
7094 else
7095 {
7096 unsigned long i = ulongval ();
7097 if (i != ((long) (sizeof (long))))
7098 exit (1);
7099 fprintf (f, "%lu\n", i);
7100 }
7101 exit (ferror (f) || fclose (f) != 0);
7102
7103 ;
7104 return 0;
7105}
7106_ACEOF
7107rm -f conftest$ac_exeext
7108if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7109 (eval $ac_link) 2>&5
7110 ac_status=$?
7111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7112 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7114 (eval $ac_try) 2>&5
7115 ac_status=$?
7116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117 (exit $ac_status); }; }; then
7118 ac_cv_sizeof_long=`cat conftest.val`
7119else
7120 echo "$as_me: program exited with status $ac_status" >&5
7121echo "$as_me: failed program was:" >&5
7122sed 's/^/| /' conftest.$ac_ext >&5
7123
7124( exit $ac_status )
7125{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7126See \`config.log' for more details." >&5
7127echo "$as_me: error: cannot compute sizeof (long), 77
7128See \`config.log' for more details." >&2;}
7129 { (exit 1); exit 1; }; }
7130fi
7131rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7132fi
7133fi
7134rm -f conftest.val
7135else
7136 ac_cv_sizeof_long=0
7137fi
7138fi
7139echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7140echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7141cat >>confdefs.h <<_ACEOF
7142#define SIZEOF_LONG $ac_cv_sizeof_long
7143_ACEOF
7144
7145 ;;
7146esac
7147
7148if test $acx_cv_header_stdint = stddef.h; then
7149 # Lacking a good header? Test size of everything and deduce all types.
7150 echo "$as_me:$LINENO: checking for int" >&5
7151echo $ECHO_N "checking for int... $ECHO_C" >&6
7152if test "${ac_cv_type_int+set}" = set; then
7153 echo $ECHO_N "(cached) $ECHO_C" >&6
7154else
7155 cat >conftest.$ac_ext <<_ACEOF
7156/* confdefs.h. */
7157_ACEOF
7158cat confdefs.h >>conftest.$ac_ext
7159cat >>conftest.$ac_ext <<_ACEOF
7160/* end confdefs.h. */
7161$ac_includes_default
7162int
7163main ()
7164{
7165if ((int *) 0)
7166 return 0;
7167if (sizeof (int))
7168 return 0;
7169 ;
7170 return 0;
7171}
7172_ACEOF
7173rm -f conftest.$ac_objext
7174if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7175 (eval $ac_compile) 2>conftest.er1
7176 ac_status=$?
7177 grep -v '^ *+' conftest.er1 >conftest.err
7178 rm -f conftest.er1
7179 cat conftest.err >&5
7180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7181 (exit $ac_status); } &&
59da30e1 7182 { ac_try='test -z "$ac_c_werror_flag"
7183 || test ! -s conftest.err'
01473a49 7184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7185 (eval $ac_try) 2>&5
7186 ac_status=$?
7187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7188 (exit $ac_status); }; } &&
7189 { ac_try='test -s conftest.$ac_objext'
7190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7191 (eval $ac_try) 2>&5
7192 ac_status=$?
7193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7194 (exit $ac_status); }; }; then
7195 ac_cv_type_int=yes
7196else
7197 echo "$as_me: failed program was:" >&5
7198sed 's/^/| /' conftest.$ac_ext >&5
7199
7200ac_cv_type_int=no
7201fi
7202rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7203fi
7204echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
7205echo "${ECHO_T}$ac_cv_type_int" >&6
7206
7207echo "$as_me:$LINENO: checking size of int" >&5
7208echo $ECHO_N "checking size of int... $ECHO_C" >&6
7209if test "${ac_cv_sizeof_int+set}" = set; then
7210 echo $ECHO_N "(cached) $ECHO_C" >&6
7211else
7212 if test "$ac_cv_type_int" = yes; then
7213 # The cast to unsigned long works around a bug in the HP C Compiler
7214 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7215 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7216 # This bug is HP SR number 8606223364.
7217 if test "$cross_compiling" = yes; then
7218 # Depending upon the size, compute the lo and hi bounds.
7219cat >conftest.$ac_ext <<_ACEOF
7220/* confdefs.h. */
7221_ACEOF
7222cat confdefs.h >>conftest.$ac_ext
7223cat >>conftest.$ac_ext <<_ACEOF
7224/* end confdefs.h. */
7225$ac_includes_default
7226int
7227main ()
7228{
7229static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
7230test_array [0] = 0
7231
7232 ;
7233 return 0;
7234}
7235_ACEOF
7236rm -f conftest.$ac_objext
7237if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7238 (eval $ac_compile) 2>conftest.er1
7239 ac_status=$?
7240 grep -v '^ *+' conftest.er1 >conftest.err
7241 rm -f conftest.er1
7242 cat conftest.err >&5
7243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7244 (exit $ac_status); } &&
59da30e1 7245 { ac_try='test -z "$ac_c_werror_flag"
7246 || test ! -s conftest.err'
01473a49 7247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7248 (eval $ac_try) 2>&5
7249 ac_status=$?
7250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7251 (exit $ac_status); }; } &&
7252 { ac_try='test -s conftest.$ac_objext'
7253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7254 (eval $ac_try) 2>&5
7255 ac_status=$?
7256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7257 (exit $ac_status); }; }; then
7258 ac_lo=0 ac_mid=0
7259 while :; do
7260 cat >conftest.$ac_ext <<_ACEOF
7261/* confdefs.h. */
7262_ACEOF
7263cat confdefs.h >>conftest.$ac_ext
7264cat >>conftest.$ac_ext <<_ACEOF
7265/* end confdefs.h. */
7266$ac_includes_default
7267int
7268main ()
7269{
7270static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
7271test_array [0] = 0
7272
7273 ;
7274 return 0;
7275}
7276_ACEOF
7277rm -f conftest.$ac_objext
7278if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7279 (eval $ac_compile) 2>conftest.er1
7280 ac_status=$?
7281 grep -v '^ *+' conftest.er1 >conftest.err
7282 rm -f conftest.er1
7283 cat conftest.err >&5
7284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7285 (exit $ac_status); } &&
59da30e1 7286 { ac_try='test -z "$ac_c_werror_flag"
7287 || test ! -s conftest.err'
01473a49 7288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7289 (eval $ac_try) 2>&5
7290 ac_status=$?
7291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7292 (exit $ac_status); }; } &&
7293 { ac_try='test -s conftest.$ac_objext'
7294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7295 (eval $ac_try) 2>&5
7296 ac_status=$?
7297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7298 (exit $ac_status); }; }; then
7299 ac_hi=$ac_mid; break
7300else
7301 echo "$as_me: failed program was:" >&5
7302sed 's/^/| /' conftest.$ac_ext >&5
7303
7304ac_lo=`expr $ac_mid + 1`
7305 if test $ac_lo -le $ac_mid; then
7306 ac_lo= ac_hi=
7307 break
7308 fi
7309 ac_mid=`expr 2 '*' $ac_mid + 1`
7310fi
7311rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7312 done
7313else
7314 echo "$as_me: failed program was:" >&5
7315sed 's/^/| /' conftest.$ac_ext >&5
7316
7317cat >conftest.$ac_ext <<_ACEOF
7318/* confdefs.h. */
7319_ACEOF
7320cat confdefs.h >>conftest.$ac_ext
7321cat >>conftest.$ac_ext <<_ACEOF
7322/* end confdefs.h. */
7323$ac_includes_default
7324int
7325main ()
7326{
7327static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
7328test_array [0] = 0
7329
7330 ;
7331 return 0;
7332}
7333_ACEOF
7334rm -f conftest.$ac_objext
7335if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7336 (eval $ac_compile) 2>conftest.er1
7337 ac_status=$?
7338 grep -v '^ *+' conftest.er1 >conftest.err
7339 rm -f conftest.er1
7340 cat conftest.err >&5
7341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7342 (exit $ac_status); } &&
59da30e1 7343 { ac_try='test -z "$ac_c_werror_flag"
7344 || test ! -s conftest.err'
01473a49 7345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7346 (eval $ac_try) 2>&5
7347 ac_status=$?
7348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7349 (exit $ac_status); }; } &&
7350 { ac_try='test -s conftest.$ac_objext'
7351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7352 (eval $ac_try) 2>&5
7353 ac_status=$?
7354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7355 (exit $ac_status); }; }; then
7356 ac_hi=-1 ac_mid=-1
7357 while :; do
7358 cat >conftest.$ac_ext <<_ACEOF
7359/* confdefs.h. */
7360_ACEOF
7361cat confdefs.h >>conftest.$ac_ext
7362cat >>conftest.$ac_ext <<_ACEOF
7363/* end confdefs.h. */
7364$ac_includes_default
7365int
7366main ()
7367{
7368static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
7369test_array [0] = 0
7370
7371 ;
7372 return 0;
7373}
7374_ACEOF
7375rm -f conftest.$ac_objext
7376if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7377 (eval $ac_compile) 2>conftest.er1
7378 ac_status=$?
7379 grep -v '^ *+' conftest.er1 >conftest.err
7380 rm -f conftest.er1
7381 cat conftest.err >&5
7382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7383 (exit $ac_status); } &&
59da30e1 7384 { ac_try='test -z "$ac_c_werror_flag"
7385 || test ! -s conftest.err'
01473a49 7386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7387 (eval $ac_try) 2>&5
7388 ac_status=$?
7389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7390 (exit $ac_status); }; } &&
7391 { ac_try='test -s conftest.$ac_objext'
7392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7393 (eval $ac_try) 2>&5
7394 ac_status=$?
7395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7396 (exit $ac_status); }; }; then
7397 ac_lo=$ac_mid; break
7398else
7399 echo "$as_me: failed program was:" >&5
7400sed 's/^/| /' conftest.$ac_ext >&5
7401
7402ac_hi=`expr '(' $ac_mid ')' - 1`
7403 if test $ac_mid -le $ac_hi; then
7404 ac_lo= ac_hi=
7405 break
7406 fi
7407 ac_mid=`expr 2 '*' $ac_mid`
7408fi
7409rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7410 done
7411else
7412 echo "$as_me: failed program was:" >&5
7413sed 's/^/| /' conftest.$ac_ext >&5
7414
7415ac_lo= ac_hi=
7416fi
7417rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7418fi
7419rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7420# Binary search between lo and hi bounds.
7421while test "x$ac_lo" != "x$ac_hi"; do
7422 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7423 cat >conftest.$ac_ext <<_ACEOF
7424/* confdefs.h. */
7425_ACEOF
7426cat confdefs.h >>conftest.$ac_ext
7427cat >>conftest.$ac_ext <<_ACEOF
7428/* end confdefs.h. */
7429$ac_includes_default
7430int
7431main ()
7432{
7433static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
7434test_array [0] = 0
7435
7436 ;
7437 return 0;
7438}
7439_ACEOF
7440rm -f conftest.$ac_objext
7441if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7442 (eval $ac_compile) 2>conftest.er1
7443 ac_status=$?
7444 grep -v '^ *+' conftest.er1 >conftest.err
7445 rm -f conftest.er1
7446 cat conftest.err >&5
7447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7448 (exit $ac_status); } &&
59da30e1 7449 { ac_try='test -z "$ac_c_werror_flag"
7450 || test ! -s conftest.err'
01473a49 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); }; } &&
7456 { ac_try='test -s conftest.$ac_objext'
7457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7458 (eval $ac_try) 2>&5
7459 ac_status=$?
7460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7461 (exit $ac_status); }; }; then
7462 ac_hi=$ac_mid
7463else
7464 echo "$as_me: failed program was:" >&5
7465sed 's/^/| /' conftest.$ac_ext >&5
7466
7467ac_lo=`expr '(' $ac_mid ')' + 1`
7468fi
7469rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7470done
7471case $ac_lo in
7472?*) ac_cv_sizeof_int=$ac_lo;;
7473'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
7474See \`config.log' for more details." >&5
7475echo "$as_me: error: cannot compute sizeof (int), 77
7476See \`config.log' for more details." >&2;}
7477 { (exit 1); exit 1; }; } ;;
7478esac
7479else
7480 if test "$cross_compiling" = yes; then
59da30e1 7481 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7482See \`config.log' for more details." >&5
7483echo "$as_me: error: cannot run test program while cross compiling
7484See \`config.log' for more details." >&2;}
01473a49 7485 { (exit 1); exit 1; }; }
7486else
7487 cat >conftest.$ac_ext <<_ACEOF
7488/* confdefs.h. */
7489_ACEOF
7490cat confdefs.h >>conftest.$ac_ext
7491cat >>conftest.$ac_ext <<_ACEOF
7492/* end confdefs.h. */
7493$ac_includes_default
7494long longval () { return (long) (sizeof (int)); }
7495unsigned long ulongval () { return (long) (sizeof (int)); }
7496#include <stdio.h>
7497#include <stdlib.h>
7498int
7499main ()
7500{
7501
7502 FILE *f = fopen ("conftest.val", "w");
7503 if (! f)
7504 exit (1);
7505 if (((long) (sizeof (int))) < 0)
7506 {
7507 long i = longval ();
7508 if (i != ((long) (sizeof (int))))
7509 exit (1);
7510 fprintf (f, "%ld\n", i);
7511 }
7512 else
7513 {
7514 unsigned long i = ulongval ();
7515 if (i != ((long) (sizeof (int))))
7516 exit (1);
7517 fprintf (f, "%lu\n", i);
7518 }
7519 exit (ferror (f) || fclose (f) != 0);
7520
7521 ;
7522 return 0;
7523}
7524_ACEOF
7525rm -f conftest$ac_exeext
7526if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7527 (eval $ac_link) 2>&5
7528 ac_status=$?
7529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7530 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7532 (eval $ac_try) 2>&5
7533 ac_status=$?
7534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7535 (exit $ac_status); }; }; then
7536 ac_cv_sizeof_int=`cat conftest.val`
7537else
7538 echo "$as_me: program exited with status $ac_status" >&5
7539echo "$as_me: failed program was:" >&5
7540sed 's/^/| /' conftest.$ac_ext >&5
7541
7542( exit $ac_status )
7543{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
7544See \`config.log' for more details." >&5
7545echo "$as_me: error: cannot compute sizeof (int), 77
7546See \`config.log' for more details." >&2;}
7547 { (exit 1); exit 1; }; }
7548fi
7549rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7550fi
7551fi
7552rm -f conftest.val
7553else
7554 ac_cv_sizeof_int=0
7555fi
7556fi
7557echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
7558echo "${ECHO_T}$ac_cv_sizeof_int" >&6
7559cat >>confdefs.h <<_ACEOF
7560#define SIZEOF_INT $ac_cv_sizeof_int
7561_ACEOF
7562
7563
7564 echo "$as_me:$LINENO: checking for short" >&5
7565echo $ECHO_N "checking for short... $ECHO_C" >&6
7566if test "${ac_cv_type_short+set}" = set; then
7567 echo $ECHO_N "(cached) $ECHO_C" >&6
7568else
7569 cat >conftest.$ac_ext <<_ACEOF
7570/* confdefs.h. */
7571_ACEOF
7572cat confdefs.h >>conftest.$ac_ext
7573cat >>conftest.$ac_ext <<_ACEOF
7574/* end confdefs.h. */
7575$ac_includes_default
7576int
7577main ()
7578{
7579if ((short *) 0)
7580 return 0;
7581if (sizeof (short))
7582 return 0;
7583 ;
7584 return 0;
7585}
7586_ACEOF
7587rm -f conftest.$ac_objext
7588if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7589 (eval $ac_compile) 2>conftest.er1
7590 ac_status=$?
7591 grep -v '^ *+' conftest.er1 >conftest.err
7592 rm -f conftest.er1
7593 cat conftest.err >&5
7594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7595 (exit $ac_status); } &&
59da30e1 7596 { ac_try='test -z "$ac_c_werror_flag"
7597 || test ! -s conftest.err'
01473a49 7598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7599 (eval $ac_try) 2>&5
7600 ac_status=$?
7601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7602 (exit $ac_status); }; } &&
7603 { ac_try='test -s conftest.$ac_objext'
7604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7605 (eval $ac_try) 2>&5
7606 ac_status=$?
7607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608 (exit $ac_status); }; }; then
7609 ac_cv_type_short=yes
7610else
7611 echo "$as_me: failed program was:" >&5
7612sed 's/^/| /' conftest.$ac_ext >&5
7613
7614ac_cv_type_short=no
7615fi
7616rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7617fi
7618echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
7619echo "${ECHO_T}$ac_cv_type_short" >&6
7620
7621echo "$as_me:$LINENO: checking size of short" >&5
7622echo $ECHO_N "checking size of short... $ECHO_C" >&6
7623if test "${ac_cv_sizeof_short+set}" = set; then
7624 echo $ECHO_N "(cached) $ECHO_C" >&6
7625else
7626 if test "$ac_cv_type_short" = yes; then
7627 # The cast to unsigned long works around a bug in the HP C Compiler
7628 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7629 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7630 # This bug is HP SR number 8606223364.
7631 if test "$cross_compiling" = yes; then
7632 # Depending upon the size, compute the lo and hi bounds.
7633cat >conftest.$ac_ext <<_ACEOF
7634/* confdefs.h. */
7635_ACEOF
7636cat confdefs.h >>conftest.$ac_ext
7637cat >>conftest.$ac_ext <<_ACEOF
7638/* end confdefs.h. */
7639$ac_includes_default
7640int
7641main ()
7642{
7643static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
7644test_array [0] = 0
7645
7646 ;
7647 return 0;
7648}
7649_ACEOF
7650rm -f conftest.$ac_objext
7651if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7652 (eval $ac_compile) 2>conftest.er1
7653 ac_status=$?
7654 grep -v '^ *+' conftest.er1 >conftest.err
7655 rm -f conftest.er1
7656 cat conftest.err >&5
7657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7658 (exit $ac_status); } &&
59da30e1 7659 { ac_try='test -z "$ac_c_werror_flag"
7660 || test ! -s conftest.err'
01473a49 7661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7662 (eval $ac_try) 2>&5
7663 ac_status=$?
7664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7665 (exit $ac_status); }; } &&
7666 { ac_try='test -s conftest.$ac_objext'
7667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7668 (eval $ac_try) 2>&5
7669 ac_status=$?
7670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7671 (exit $ac_status); }; }; then
7672 ac_lo=0 ac_mid=0
7673 while :; do
7674 cat >conftest.$ac_ext <<_ACEOF
7675/* confdefs.h. */
7676_ACEOF
7677cat confdefs.h >>conftest.$ac_ext
7678cat >>conftest.$ac_ext <<_ACEOF
7679/* end confdefs.h. */
7680$ac_includes_default
7681int
7682main ()
7683{
7684static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7685test_array [0] = 0
7686
7687 ;
7688 return 0;
7689}
7690_ACEOF
7691rm -f conftest.$ac_objext
7692if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7693 (eval $ac_compile) 2>conftest.er1
7694 ac_status=$?
7695 grep -v '^ *+' conftest.er1 >conftest.err
7696 rm -f conftest.er1
7697 cat conftest.err >&5
7698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7699 (exit $ac_status); } &&
59da30e1 7700 { ac_try='test -z "$ac_c_werror_flag"
7701 || test ! -s conftest.err'
01473a49 7702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7703 (eval $ac_try) 2>&5
7704 ac_status=$?
7705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7706 (exit $ac_status); }; } &&
7707 { ac_try='test -s conftest.$ac_objext'
7708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7709 (eval $ac_try) 2>&5
7710 ac_status=$?
7711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7712 (exit $ac_status); }; }; then
7713 ac_hi=$ac_mid; break
7714else
7715 echo "$as_me: failed program was:" >&5
7716sed 's/^/| /' conftest.$ac_ext >&5
7717
7718ac_lo=`expr $ac_mid + 1`
7719 if test $ac_lo -le $ac_mid; then
7720 ac_lo= ac_hi=
7721 break
7722 fi
7723 ac_mid=`expr 2 '*' $ac_mid + 1`
7724fi
7725rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7726 done
7727else
7728 echo "$as_me: failed program was:" >&5
7729sed 's/^/| /' conftest.$ac_ext >&5
7730
7731cat >conftest.$ac_ext <<_ACEOF
7732/* confdefs.h. */
7733_ACEOF
7734cat confdefs.h >>conftest.$ac_ext
7735cat >>conftest.$ac_ext <<_ACEOF
7736/* end confdefs.h. */
7737$ac_includes_default
7738int
7739main ()
7740{
7741static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
7742test_array [0] = 0
7743
7744 ;
7745 return 0;
7746}
7747_ACEOF
7748rm -f conftest.$ac_objext
7749if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7750 (eval $ac_compile) 2>conftest.er1
7751 ac_status=$?
7752 grep -v '^ *+' conftest.er1 >conftest.err
7753 rm -f conftest.er1
7754 cat conftest.err >&5
7755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7756 (exit $ac_status); } &&
59da30e1 7757 { ac_try='test -z "$ac_c_werror_flag"
7758 || test ! -s conftest.err'
01473a49 7759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7760 (eval $ac_try) 2>&5
7761 ac_status=$?
7762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7763 (exit $ac_status); }; } &&
7764 { ac_try='test -s conftest.$ac_objext'
7765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7766 (eval $ac_try) 2>&5
7767 ac_status=$?
7768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7769 (exit $ac_status); }; }; then
7770 ac_hi=-1 ac_mid=-1
7771 while :; do
7772 cat >conftest.$ac_ext <<_ACEOF
7773/* confdefs.h. */
7774_ACEOF
7775cat confdefs.h >>conftest.$ac_ext
7776cat >>conftest.$ac_ext <<_ACEOF
7777/* end confdefs.h. */
7778$ac_includes_default
7779int
7780main ()
7781{
7782static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
7783test_array [0] = 0
7784
7785 ;
7786 return 0;
7787}
7788_ACEOF
7789rm -f conftest.$ac_objext
7790if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7791 (eval $ac_compile) 2>conftest.er1
7792 ac_status=$?
7793 grep -v '^ *+' conftest.er1 >conftest.err
7794 rm -f conftest.er1
7795 cat conftest.err >&5
7796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7797 (exit $ac_status); } &&
59da30e1 7798 { ac_try='test -z "$ac_c_werror_flag"
7799 || test ! -s conftest.err'
01473a49 7800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7801 (eval $ac_try) 2>&5
7802 ac_status=$?
7803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7804 (exit $ac_status); }; } &&
7805 { ac_try='test -s conftest.$ac_objext'
7806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7807 (eval $ac_try) 2>&5
7808 ac_status=$?
7809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7810 (exit $ac_status); }; }; then
7811 ac_lo=$ac_mid; break
7812else
7813 echo "$as_me: failed program was:" >&5
7814sed 's/^/| /' conftest.$ac_ext >&5
7815
7816ac_hi=`expr '(' $ac_mid ')' - 1`
7817 if test $ac_mid -le $ac_hi; then
7818 ac_lo= ac_hi=
7819 break
7820 fi
7821 ac_mid=`expr 2 '*' $ac_mid`
7822fi
7823rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7824 done
7825else
7826 echo "$as_me: failed program was:" >&5
7827sed 's/^/| /' conftest.$ac_ext >&5
7828
7829ac_lo= ac_hi=
7830fi
7831rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7832fi
7833rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7834# Binary search between lo and hi bounds.
7835while test "x$ac_lo" != "x$ac_hi"; do
7836 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7837 cat >conftest.$ac_ext <<_ACEOF
7838/* confdefs.h. */
7839_ACEOF
7840cat confdefs.h >>conftest.$ac_ext
7841cat >>conftest.$ac_ext <<_ACEOF
7842/* end confdefs.h. */
7843$ac_includes_default
7844int
7845main ()
7846{
7847static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7848test_array [0] = 0
7849
7850 ;
7851 return 0;
7852}
7853_ACEOF
7854rm -f conftest.$ac_objext
7855if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7856 (eval $ac_compile) 2>conftest.er1
7857 ac_status=$?
7858 grep -v '^ *+' conftest.er1 >conftest.err
7859 rm -f conftest.er1
7860 cat conftest.err >&5
7861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7862 (exit $ac_status); } &&
59da30e1 7863 { ac_try='test -z "$ac_c_werror_flag"
7864 || test ! -s conftest.err'
01473a49 7865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7866 (eval $ac_try) 2>&5
7867 ac_status=$?
7868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7869 (exit $ac_status); }; } &&
7870 { ac_try='test -s conftest.$ac_objext'
7871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7872 (eval $ac_try) 2>&5
7873 ac_status=$?
7874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7875 (exit $ac_status); }; }; then
7876 ac_hi=$ac_mid
7877else
7878 echo "$as_me: failed program was:" >&5
7879sed 's/^/| /' conftest.$ac_ext >&5
7880
7881ac_lo=`expr '(' $ac_mid ')' + 1`
7882fi
7883rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7884done
7885case $ac_lo in
7886?*) ac_cv_sizeof_short=$ac_lo;;
7887'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7888See \`config.log' for more details." >&5
7889echo "$as_me: error: cannot compute sizeof (short), 77
7890See \`config.log' for more details." >&2;}
7891 { (exit 1); exit 1; }; } ;;
7892esac
7893else
7894 if test "$cross_compiling" = yes; then
59da30e1 7895 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7896See \`config.log' for more details." >&5
7897echo "$as_me: error: cannot run test program while cross compiling
7898See \`config.log' for more details." >&2;}
01473a49 7899 { (exit 1); exit 1; }; }
7900else
7901 cat >conftest.$ac_ext <<_ACEOF
7902/* confdefs.h. */
7903_ACEOF
7904cat confdefs.h >>conftest.$ac_ext
7905cat >>conftest.$ac_ext <<_ACEOF
7906/* end confdefs.h. */
7907$ac_includes_default
7908long longval () { return (long) (sizeof (short)); }
7909unsigned long ulongval () { return (long) (sizeof (short)); }
7910#include <stdio.h>
7911#include <stdlib.h>
7912int
7913main ()
7914{
7915
7916 FILE *f = fopen ("conftest.val", "w");
7917 if (! f)
7918 exit (1);
7919 if (((long) (sizeof (short))) < 0)
7920 {
7921 long i = longval ();
7922 if (i != ((long) (sizeof (short))))
7923 exit (1);
7924 fprintf (f, "%ld\n", i);
7925 }
7926 else
7927 {
7928 unsigned long i = ulongval ();
7929 if (i != ((long) (sizeof (short))))
7930 exit (1);
7931 fprintf (f, "%lu\n", i);
7932 }
7933 exit (ferror (f) || fclose (f) != 0);
7934
7935 ;
7936 return 0;
7937}
7938_ACEOF
7939rm -f conftest$ac_exeext
7940if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7941 (eval $ac_link) 2>&5
7942 ac_status=$?
7943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7944 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7946 (eval $ac_try) 2>&5
7947 ac_status=$?
7948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7949 (exit $ac_status); }; }; then
7950 ac_cv_sizeof_short=`cat conftest.val`
7951else
7952 echo "$as_me: program exited with status $ac_status" >&5
7953echo "$as_me: failed program was:" >&5
7954sed 's/^/| /' conftest.$ac_ext >&5
7955
7956( exit $ac_status )
7957{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7958See \`config.log' for more details." >&5
7959echo "$as_me: error: cannot compute sizeof (short), 77
7960See \`config.log' for more details." >&2;}
7961 { (exit 1); exit 1; }; }
7962fi
7963rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7964fi
7965fi
7966rm -f conftest.val
7967else
7968 ac_cv_sizeof_short=0
7969fi
7970fi
7971echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
7972echo "${ECHO_T}$ac_cv_sizeof_short" >&6
7973cat >>confdefs.h <<_ACEOF
7974#define SIZEOF_SHORT $ac_cv_sizeof_short
7975_ACEOF
7976
7977
7978 echo "$as_me:$LINENO: checking for char" >&5
7979echo $ECHO_N "checking for char... $ECHO_C" >&6
7980if test "${ac_cv_type_char+set}" = set; then
7981 echo $ECHO_N "(cached) $ECHO_C" >&6
7982else
7983 cat >conftest.$ac_ext <<_ACEOF
7984/* confdefs.h. */
7985_ACEOF
7986cat confdefs.h >>conftest.$ac_ext
7987cat >>conftest.$ac_ext <<_ACEOF
7988/* end confdefs.h. */
7989$ac_includes_default
7990int
7991main ()
7992{
7993if ((char *) 0)
7994 return 0;
7995if (sizeof (char))
7996 return 0;
7997 ;
7998 return 0;
7999}
8000_ACEOF
8001rm -f conftest.$ac_objext
8002if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8003 (eval $ac_compile) 2>conftest.er1
8004 ac_status=$?
8005 grep -v '^ *+' conftest.er1 >conftest.err
8006 rm -f conftest.er1
8007 cat conftest.err >&5
8008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8009 (exit $ac_status); } &&
59da30e1 8010 { ac_try='test -z "$ac_c_werror_flag"
8011 || test ! -s conftest.err'
01473a49 8012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8013 (eval $ac_try) 2>&5
8014 ac_status=$?
8015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8016 (exit $ac_status); }; } &&
8017 { ac_try='test -s conftest.$ac_objext'
8018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8019 (eval $ac_try) 2>&5
8020 ac_status=$?
8021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8022 (exit $ac_status); }; }; then
8023 ac_cv_type_char=yes
8024else
8025 echo "$as_me: failed program was:" >&5
8026sed 's/^/| /' conftest.$ac_ext >&5
8027
8028ac_cv_type_char=no
8029fi
8030rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8031fi
8032echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
8033echo "${ECHO_T}$ac_cv_type_char" >&6
8034
8035echo "$as_me:$LINENO: checking size of char" >&5
8036echo $ECHO_N "checking size of char... $ECHO_C" >&6
8037if test "${ac_cv_sizeof_char+set}" = set; then
8038 echo $ECHO_N "(cached) $ECHO_C" >&6
8039else
8040 if test "$ac_cv_type_char" = yes; then
8041 # The cast to unsigned long works around a bug in the HP C Compiler
8042 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8043 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8044 # This bug is HP SR number 8606223364.
8045 if test "$cross_compiling" = yes; then
8046 # Depending upon the size, compute the lo and hi bounds.
8047cat >conftest.$ac_ext <<_ACEOF
8048/* confdefs.h. */
8049_ACEOF
8050cat confdefs.h >>conftest.$ac_ext
8051cat >>conftest.$ac_ext <<_ACEOF
8052/* end confdefs.h. */
8053$ac_includes_default
8054int
8055main ()
8056{
8057static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
8058test_array [0] = 0
8059
8060 ;
8061 return 0;
8062}
8063_ACEOF
8064rm -f conftest.$ac_objext
8065if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8066 (eval $ac_compile) 2>conftest.er1
8067 ac_status=$?
8068 grep -v '^ *+' conftest.er1 >conftest.err
8069 rm -f conftest.er1
8070 cat conftest.err >&5
8071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8072 (exit $ac_status); } &&
59da30e1 8073 { ac_try='test -z "$ac_c_werror_flag"
8074 || test ! -s conftest.err'
01473a49 8075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8076 (eval $ac_try) 2>&5
8077 ac_status=$?
8078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8079 (exit $ac_status); }; } &&
8080 { ac_try='test -s conftest.$ac_objext'
8081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8082 (eval $ac_try) 2>&5
8083 ac_status=$?
8084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8085 (exit $ac_status); }; }; then
8086 ac_lo=0 ac_mid=0
8087 while :; do
8088 cat >conftest.$ac_ext <<_ACEOF
8089/* confdefs.h. */
8090_ACEOF
8091cat confdefs.h >>conftest.$ac_ext
8092cat >>conftest.$ac_ext <<_ACEOF
8093/* end confdefs.h. */
8094$ac_includes_default
8095int
8096main ()
8097{
8098static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
8099test_array [0] = 0
8100
8101 ;
8102 return 0;
8103}
8104_ACEOF
8105rm -f conftest.$ac_objext
8106if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8107 (eval $ac_compile) 2>conftest.er1
8108 ac_status=$?
8109 grep -v '^ *+' conftest.er1 >conftest.err
8110 rm -f conftest.er1
8111 cat conftest.err >&5
8112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8113 (exit $ac_status); } &&
59da30e1 8114 { ac_try='test -z "$ac_c_werror_flag"
8115 || test ! -s conftest.err'
01473a49 8116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8117 (eval $ac_try) 2>&5
8118 ac_status=$?
8119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8120 (exit $ac_status); }; } &&
8121 { ac_try='test -s conftest.$ac_objext'
8122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8123 (eval $ac_try) 2>&5
8124 ac_status=$?
8125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126 (exit $ac_status); }; }; then
8127 ac_hi=$ac_mid; break
8128else
8129 echo "$as_me: failed program was:" >&5
8130sed 's/^/| /' conftest.$ac_ext >&5
8131
8132ac_lo=`expr $ac_mid + 1`
8133 if test $ac_lo -le $ac_mid; then
8134 ac_lo= ac_hi=
8135 break
8136 fi
8137 ac_mid=`expr 2 '*' $ac_mid + 1`
8138fi
8139rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8140 done
8141else
8142 echo "$as_me: failed program was:" >&5
8143sed 's/^/| /' conftest.$ac_ext >&5
8144
8145cat >conftest.$ac_ext <<_ACEOF
8146/* confdefs.h. */
8147_ACEOF
8148cat confdefs.h >>conftest.$ac_ext
8149cat >>conftest.$ac_ext <<_ACEOF
8150/* end confdefs.h. */
8151$ac_includes_default
8152int
8153main ()
8154{
8155static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
8156test_array [0] = 0
8157
8158 ;
8159 return 0;
8160}
8161_ACEOF
8162rm -f conftest.$ac_objext
8163if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8164 (eval $ac_compile) 2>conftest.er1
8165 ac_status=$?
8166 grep -v '^ *+' conftest.er1 >conftest.err
8167 rm -f conftest.er1
8168 cat conftest.err >&5
8169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8170 (exit $ac_status); } &&
59da30e1 8171 { ac_try='test -z "$ac_c_werror_flag"
8172 || test ! -s conftest.err'
01473a49 8173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8174 (eval $ac_try) 2>&5
8175 ac_status=$?
8176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8177 (exit $ac_status); }; } &&
8178 { ac_try='test -s conftest.$ac_objext'
8179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8180 (eval $ac_try) 2>&5
8181 ac_status=$?
8182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8183 (exit $ac_status); }; }; then
8184 ac_hi=-1 ac_mid=-1
8185 while :; do
8186 cat >conftest.$ac_ext <<_ACEOF
8187/* confdefs.h. */
8188_ACEOF
8189cat confdefs.h >>conftest.$ac_ext
8190cat >>conftest.$ac_ext <<_ACEOF
8191/* end confdefs.h. */
8192$ac_includes_default
8193int
8194main ()
8195{
8196static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
8197test_array [0] = 0
8198
8199 ;
8200 return 0;
8201}
8202_ACEOF
8203rm -f conftest.$ac_objext
8204if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8205 (eval $ac_compile) 2>conftest.er1
8206 ac_status=$?
8207 grep -v '^ *+' conftest.er1 >conftest.err
8208 rm -f conftest.er1
8209 cat conftest.err >&5
8210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8211 (exit $ac_status); } &&
59da30e1 8212 { ac_try='test -z "$ac_c_werror_flag"
8213 || test ! -s conftest.err'
01473a49 8214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8215 (eval $ac_try) 2>&5
8216 ac_status=$?
8217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8218 (exit $ac_status); }; } &&
8219 { ac_try='test -s conftest.$ac_objext'
8220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8221 (eval $ac_try) 2>&5
8222 ac_status=$?
8223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8224 (exit $ac_status); }; }; then
8225 ac_lo=$ac_mid; break
8226else
8227 echo "$as_me: failed program was:" >&5
8228sed 's/^/| /' conftest.$ac_ext >&5
8229
8230ac_hi=`expr '(' $ac_mid ')' - 1`
8231 if test $ac_mid -le $ac_hi; then
8232 ac_lo= ac_hi=
8233 break
8234 fi
8235 ac_mid=`expr 2 '*' $ac_mid`
8236fi
8237rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8238 done
8239else
8240 echo "$as_me: failed program was:" >&5
8241sed 's/^/| /' conftest.$ac_ext >&5
8242
8243ac_lo= ac_hi=
8244fi
8245rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8246fi
8247rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8248# Binary search between lo and hi bounds.
8249while test "x$ac_lo" != "x$ac_hi"; do
8250 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8251 cat >conftest.$ac_ext <<_ACEOF
8252/* confdefs.h. */
8253_ACEOF
8254cat confdefs.h >>conftest.$ac_ext
8255cat >>conftest.$ac_ext <<_ACEOF
8256/* end confdefs.h. */
8257$ac_includes_default
8258int
8259main ()
8260{
8261static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
8262test_array [0] = 0
8263
8264 ;
8265 return 0;
8266}
8267_ACEOF
8268rm -f conftest.$ac_objext
8269if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8270 (eval $ac_compile) 2>conftest.er1
8271 ac_status=$?
8272 grep -v '^ *+' conftest.er1 >conftest.err
8273 rm -f conftest.er1
8274 cat conftest.err >&5
8275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8276 (exit $ac_status); } &&
59da30e1 8277 { ac_try='test -z "$ac_c_werror_flag"
8278 || test ! -s conftest.err'
01473a49 8279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8280 (eval $ac_try) 2>&5
8281 ac_status=$?
8282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283 (exit $ac_status); }; } &&
8284 { ac_try='test -s conftest.$ac_objext'
8285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8286 (eval $ac_try) 2>&5
8287 ac_status=$?
8288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289 (exit $ac_status); }; }; then
8290 ac_hi=$ac_mid
8291else
8292 echo "$as_me: failed program was:" >&5
8293sed 's/^/| /' conftest.$ac_ext >&5
8294
8295ac_lo=`expr '(' $ac_mid ')' + 1`
8296fi
8297rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8298done
8299case $ac_lo in
8300?*) ac_cv_sizeof_char=$ac_lo;;
8301'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
8302See \`config.log' for more details." >&5
8303echo "$as_me: error: cannot compute sizeof (char), 77
8304See \`config.log' for more details." >&2;}
8305 { (exit 1); exit 1; }; } ;;
8306esac
8307else
8308 if test "$cross_compiling" = yes; then
59da30e1 8309 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8310See \`config.log' for more details." >&5
8311echo "$as_me: error: cannot run test program while cross compiling
8312See \`config.log' for more details." >&2;}
01473a49 8313 { (exit 1); exit 1; }; }
8314else
8315 cat >conftest.$ac_ext <<_ACEOF
8316/* confdefs.h. */
8317_ACEOF
8318cat confdefs.h >>conftest.$ac_ext
8319cat >>conftest.$ac_ext <<_ACEOF
8320/* end confdefs.h. */
8321$ac_includes_default
8322long longval () { return (long) (sizeof (char)); }
8323unsigned long ulongval () { return (long) (sizeof (char)); }
8324#include <stdio.h>
8325#include <stdlib.h>
8326int
8327main ()
8328{
8329
8330 FILE *f = fopen ("conftest.val", "w");
8331 if (! f)
8332 exit (1);
8333 if (((long) (sizeof (char))) < 0)
8334 {
8335 long i = longval ();
8336 if (i != ((long) (sizeof (char))))
8337 exit (1);
8338 fprintf (f, "%ld\n", i);
8339 }
8340 else
8341 {
8342 unsigned long i = ulongval ();
8343 if (i != ((long) (sizeof (char))))
8344 exit (1);
8345 fprintf (f, "%lu\n", i);
8346 }
8347 exit (ferror (f) || fclose (f) != 0);
8348
8349 ;
8350 return 0;
8351}
8352_ACEOF
8353rm -f conftest$ac_exeext
8354if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8355 (eval $ac_link) 2>&5
8356 ac_status=$?
8357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8358 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8360 (eval $ac_try) 2>&5
8361 ac_status=$?
8362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8363 (exit $ac_status); }; }; then
8364 ac_cv_sizeof_char=`cat conftest.val`
8365else
8366 echo "$as_me: program exited with status $ac_status" >&5
8367echo "$as_me: failed program was:" >&5
8368sed 's/^/| /' conftest.$ac_ext >&5
8369
8370( exit $ac_status )
8371{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
8372See \`config.log' for more details." >&5
8373echo "$as_me: error: cannot compute sizeof (char), 77
8374See \`config.log' for more details." >&2;}
8375 { (exit 1); exit 1; }; }
8376fi
8377rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8378fi
8379fi
8380rm -f conftest.val
8381else
8382 ac_cv_sizeof_char=0
8383fi
8384fi
8385echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
8386echo "${ECHO_T}$ac_cv_sizeof_char" >&6
8387cat >>confdefs.h <<_ACEOF
8388#define SIZEOF_CHAR $ac_cv_sizeof_char
8389_ACEOF
8390
8391
8392
8393 echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
8394echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
8395 case "$ac_cv_sizeof_char" in
8396 1) acx_cv_type_int8_t=char ;;
8397 *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
8398echo "$as_me: error: no 8-bit type" >&2;}
8399 { (exit please report a bug); exit please report a bug; }; }
8400 esac
8401 echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
8402echo "${ECHO_T}$acx_cv_type_int8_t" >&6
8403
8404 echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
8405echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
8406 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
8407 2:*) acx_cv_type_int16_t=int ;;
8408 *:2) acx_cv_type_int16_t=short ;;
8409 *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
8410echo "$as_me: error: no 16-bit type" >&2;}
8411 { (exit please report a bug); exit please report a bug; }; }
8412 esac
8413 echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
8414echo "${ECHO_T}$acx_cv_type_int16_t" >&6
8415
8416 echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
8417echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
8418 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
8419 4:*) acx_cv_type_int32_t=int ;;
8420 *:4) acx_cv_type_int32_t=long ;;
8421 *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
8422echo "$as_me: error: no 32-bit type" >&2;}
8423 { (exit please report a bug); exit please report a bug; }; }
8424 esac
8425 echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
8426echo "${ECHO_T}$acx_cv_type_int32_t" >&6
8427fi
8428
8429# These tests are here to make the output prettier
8430
8431if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
8432 case "$ac_cv_sizeof_long" in
8433 8) acx_cv_type_int64_t=long ;;
8434 esac
8435 echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
8436echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
8437 echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
8438echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
8439fi
8440
8441# Now we can use the above types
8442
8443if test "$ac_cv_type_uintptr_t" != yes; then
8444 echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
8445echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
8446 case $ac_cv_sizeof_void_p in
8447 2) acx_cv_type_intptr_t=int16_t ;;
8448 4) acx_cv_type_intptr_t=int32_t ;;
8449 8) acx_cv_type_intptr_t=int64_t ;;
8450 *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
8451echo "$as_me: error: no equivalent for intptr_t" >&2;}
8452 { (exit please report a bug); exit please report a bug; }; }
8453 esac
8454 echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
8455echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
8456fi
8457
8458# ----------------- done all checks, emit header -------------
8459 ac_config_commands="$ac_config_commands gstdint.h"
8460
8461
8462
8463
1e8e9920 8464# Check to see if -pthread or -lpthread is needed. Prefer the former.
b00e3183 8465# In case the pthread.h system header is not found, this test will fail.
1e8e9920 8466XPCFLAGS=""
cd7cbccd 8467CFLAGS="$CFLAGS -pthread"
1e8e9920 8468cat >conftest.$ac_ext <<_ACEOF
8469/* confdefs.h. */
8470_ACEOF
8471cat confdefs.h >>conftest.$ac_ext
8472cat >>conftest.$ac_ext <<_ACEOF
8473/* end confdefs.h. */
8474#include <pthread.h>
8475 void *g(void *d) { return NULL; }
8476int
8477main ()
8478{
8479pthread_t t; pthread_create(&t,NULL,g,NULL);
8480 ;
8481 return 0;
8482}
8483_ACEOF
8484rm -f conftest.$ac_objext conftest$ac_exeext
8485if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8486 (eval $ac_link) 2>conftest.er1
8487 ac_status=$?
8488 grep -v '^ *+' conftest.er1 >conftest.err
8489 rm -f conftest.er1
8490 cat conftest.err >&5
8491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492 (exit $ac_status); } &&
59da30e1 8493 { ac_try='test -z "$ac_c_werror_flag"
8494 || test ! -s conftest.err'
1e8e9920 8495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8496 (eval $ac_try) 2>&5
8497 ac_status=$?
8498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499 (exit $ac_status); }; } &&
8500 { ac_try='test -s conftest$ac_exeext'
8501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8502 (eval $ac_try) 2>&5
8503 ac_status=$?
8504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505 (exit $ac_status); }; }; then
cd7cbccd 8506 XPCFLAGS=" -Wc,-pthread"
1e8e9920 8507else
8508 echo "$as_me: failed program was:" >&5
8509sed 's/^/| /' conftest.$ac_ext >&5
8510
8511CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
8512 cat >conftest.$ac_ext <<_ACEOF
8513/* confdefs.h. */
8514_ACEOF
8515cat confdefs.h >>conftest.$ac_ext
8516cat >>conftest.$ac_ext <<_ACEOF
8517/* end confdefs.h. */
8518#include <pthread.h>
8519 void *g(void *d) { return NULL; }
8520int
8521main ()
8522{
8523pthread_t t; pthread_create(&t,NULL,g,NULL);
8524 ;
8525 return 0;
8526}
8527_ACEOF
8528rm -f conftest.$ac_objext conftest$ac_exeext
8529if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8530 (eval $ac_link) 2>conftest.er1
8531 ac_status=$?
8532 grep -v '^ *+' conftest.er1 >conftest.err
8533 rm -f conftest.er1
8534 cat conftest.err >&5
8535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536 (exit $ac_status); } &&
59da30e1 8537 { ac_try='test -z "$ac_c_werror_flag"
8538 || test ! -s conftest.err'
1e8e9920 8539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8540 (eval $ac_try) 2>&5
8541 ac_status=$?
8542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8543 (exit $ac_status); }; } &&
8544 { ac_try='test -s conftest$ac_exeext'
8545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8546 (eval $ac_try) 2>&5
8547 ac_status=$?
8548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8549 (exit $ac_status); }; }; then
8550 :
8551else
8552 echo "$as_me: failed program was:" >&5
8553sed 's/^/| /' conftest.$ac_ext >&5
8554
8555{ { echo "$as_me:$LINENO: error: Pthreads are required to build libgomp" >&5
8556echo "$as_me: error: Pthreads are required to build libgomp" >&2;}
8557 { (exit 1); exit 1; }; }
8558fi
8559rm -f conftest.err conftest.$ac_objext \
8560 conftest$ac_exeext conftest.$ac_ext
8561fi
8562rm -f conftest.err conftest.$ac_objext \
8563 conftest$ac_exeext conftest.$ac_ext
8564
8565# Check for functions needed.
8566
8567
8568for ac_func in getloadavg clock_gettime
8569do
8570as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8571echo "$as_me:$LINENO: checking for $ac_func" >&5
8572echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8573if eval "test \"\${$as_ac_var+set}\" = set"; then
8574 echo $ECHO_N "(cached) $ECHO_C" >&6
8575else
8576 cat >conftest.$ac_ext <<_ACEOF
8577/* confdefs.h. */
8578_ACEOF
8579cat confdefs.h >>conftest.$ac_ext
8580cat >>conftest.$ac_ext <<_ACEOF
8581/* end confdefs.h. */
8582/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8583 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8584#define $ac_func innocuous_$ac_func
8585
8586/* System header to define __stub macros and hopefully few prototypes,
8587 which can conflict with char $ac_func (); below.
8588 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8589 <limits.h> exists even on freestanding compilers. */
8590
8591#ifdef __STDC__
8592# include <limits.h>
8593#else
8594# include <assert.h>
8595#endif
8596
8597#undef $ac_func
8598
8599/* Override any gcc2 internal prototype to avoid an error. */
8600#ifdef __cplusplus
8601extern "C"
8602{
8603#endif
8604/* We use char because int might match the return type of a gcc2
8605 builtin and then its argument prototype would still apply. */
8606char $ac_func ();
8607/* The GNU C library defines this for functions which it implements
8608 to always fail with ENOSYS. Some functions are actually named
8609 something starting with __ and the normal name is an alias. */
8610#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8611choke me
8612#else
8613char (*f) () = $ac_func;
8614#endif
8615#ifdef __cplusplus
8616}
8617#endif
8618
8619int
8620main ()
8621{
8622return f != $ac_func;
8623 ;
8624 return 0;
8625}
8626_ACEOF
8627rm -f conftest.$ac_objext conftest$ac_exeext
8628if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8629 (eval $ac_link) 2>conftest.er1
8630 ac_status=$?
8631 grep -v '^ *+' conftest.er1 >conftest.err
8632 rm -f conftest.er1
8633 cat conftest.err >&5
8634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8635 (exit $ac_status); } &&
59da30e1 8636 { ac_try='test -z "$ac_c_werror_flag"
8637 || test ! -s conftest.err'
1e8e9920 8638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8639 (eval $ac_try) 2>&5
8640 ac_status=$?
8641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8642 (exit $ac_status); }; } &&
8643 { ac_try='test -s conftest$ac_exeext'
8644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8645 (eval $ac_try) 2>&5
8646 ac_status=$?
8647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8648 (exit $ac_status); }; }; then
8649 eval "$as_ac_var=yes"
8650else
8651 echo "$as_me: failed program was:" >&5
8652sed 's/^/| /' conftest.$ac_ext >&5
8653
8654eval "$as_ac_var=no"
8655fi
8656rm -f conftest.err conftest.$ac_objext \
8657 conftest$ac_exeext conftest.$ac_ext
8658fi
8659echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8660echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8661if test `eval echo '${'$as_ac_var'}'` = yes; then
8662 cat >>confdefs.h <<_ACEOF
8663#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8664_ACEOF
8665
8666fi
8667done
8668
8669
59da30e1 8670# Check for broken semaphore implementation on darwin.
8671# sem_init returns: sem_init error: Function not implemented.
8672case "$host" in
8673 *-darwin*)
8674
8675cat >>confdefs.h <<\_ACEOF
8676#define HAVE_BROKEN_POSIX_SEMAPHORES 1
8677_ACEOF
8678
2eca990d 8679 ;;
8680 *-linux*)
8681 case "$enable_linux_futex" in
8682 default)
8683 # If headers don't have gettid/futex syscalls definition, then
8684 # default to no, otherwise there will be compile time failures.
8685 # Otherwise, default to yes. If we don't detect we are
8686 # compiled/linked against NPTL and not cross-compiling, check
8687 # if programs are run by default against NPTL and if not, issue
8688 # a warning.
8689 enable_linux_futex=no
8690 cat >conftest.$ac_ext <<_ACEOF
8691/* confdefs.h. */
8692_ACEOF
8693cat confdefs.h >>conftest.$ac_ext
8694cat >>conftest.$ac_ext <<_ACEOF
8695/* end confdefs.h. */
8696#include <sys/syscall.h>
8697 int lk;
8698int
8699main ()
8700{
8701syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
8702 ;
8703 return 0;
8704}
8705_ACEOF
8706rm -f conftest.$ac_objext conftest$ac_exeext
8707if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8708 (eval $ac_link) 2>conftest.er1
8709 ac_status=$?
8710 grep -v '^ *+' conftest.er1 >conftest.err
8711 rm -f conftest.er1
8712 cat conftest.err >&5
8713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8714 (exit $ac_status); } &&
8715 { ac_try='test -z "$ac_c_werror_flag"
8716 || test ! -s conftest.err'
8717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8718 (eval $ac_try) 2>&5
8719 ac_status=$?
8720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8721 (exit $ac_status); }; } &&
8722 { ac_try='test -s conftest$ac_exeext'
8723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8724 (eval $ac_try) 2>&5
8725 ac_status=$?
8726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8727 (exit $ac_status); }; }; then
8728 cat >conftest.$ac_ext <<_ACEOF
8729/* confdefs.h. */
8730_ACEOF
8731cat confdefs.h >>conftest.$ac_ext
8732cat >>conftest.$ac_ext <<_ACEOF
8733/* end confdefs.h. */
8734#ifndef _GNU_SOURCE
8735 #define _GNU_SOURCE 1
8736 #endif
8737 #include <pthread.h>
8738 pthread_t th; void *status;
8739int
8740main ()
8741{
8742pthread_tryjoin_np (th, &status);
8743 ;
8744 return 0;
8745}
8746_ACEOF
8747rm -f conftest.$ac_objext conftest$ac_exeext
8748if { (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"
8757 || test ! -s conftest.err'
8758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8759 (eval $ac_try) 2>&5
8760 ac_status=$?
8761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8762 (exit $ac_status); }; } &&
8763 { ac_try='test -s conftest$ac_exeext'
8764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8765 (eval $ac_try) 2>&5
8766 ac_status=$?
8767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8768 (exit $ac_status); }; }; then
8769 enable_linux_futex=yes
8770else
8771 echo "$as_me: failed program was:" >&5
8772sed 's/^/| /' conftest.$ac_ext >&5
8773
8774if test x$cross_compiling = xno; then
8775 if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \
8776 | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then
8777 { echo "$as_me:$LINENO: WARNING: The kernel might not support futex or gettid syscalls.
8778If so, please configure with --disable-linux-futex" >&5
8779echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
8780If so, please configure with --disable-linux-futex" >&2;}
8781 fi
8782 fi
8783 enable_linux_futex=yes
8784fi
8785rm -f conftest.err conftest.$ac_objext \
8786 conftest$ac_exeext conftest.$ac_ext
8787else
8788 echo "$as_me: failed program was:" >&5
8789sed 's/^/| /' conftest.$ac_ext >&5
8790
8791fi
8792rm -f conftest.err conftest.$ac_objext \
8793 conftest$ac_exeext conftest.$ac_ext
8794 ;;
8795 yes)
8796 cat >conftest.$ac_ext <<_ACEOF
8797/* confdefs.h. */
8798_ACEOF
8799cat confdefs.h >>conftest.$ac_ext
8800cat >>conftest.$ac_ext <<_ACEOF
8801/* end confdefs.h. */
8802#include <sys/syscall.h>
8803 int lk;
8804int
8805main ()
8806{
8807syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
8808 ;
8809 return 0;
8810}
8811_ACEOF
8812rm -f conftest.$ac_objext conftest$ac_exeext
8813if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8814 (eval $ac_link) 2>conftest.er1
8815 ac_status=$?
8816 grep -v '^ *+' conftest.er1 >conftest.err
8817 rm -f conftest.er1
8818 cat conftest.err >&5
8819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8820 (exit $ac_status); } &&
8821 { ac_try='test -z "$ac_c_werror_flag"
8822 || test ! -s conftest.err'
8823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8824 (eval $ac_try) 2>&5
8825 ac_status=$?
8826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8827 (exit $ac_status); }; } &&
8828 { ac_try='test -s conftest$ac_exeext'
8829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8830 (eval $ac_try) 2>&5
8831 ac_status=$?
8832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8833 (exit $ac_status); }; }; then
8834 :
8835else
8836 echo "$as_me: failed program was:" >&5
8837sed 's/^/| /' conftest.$ac_ext >&5
8838
8839{ { echo "$as_me:$LINENO: error: SYS_gettid and SYS_futex required for --enable-linux-futex" >&5
8840echo "$as_me: error: SYS_gettid and SYS_futex required for --enable-linux-futex" >&2;}
8841 { (exit 1); exit 1; }; }
8842fi
8843rm -f conftest.err conftest.$ac_objext \
8844 conftest$ac_exeext conftest.$ac_ext
8845 ;;
8846 esac
59da30e1 8847 ;;
8848esac
8849
1e8e9920 8850# At least for glibc, clock_gettime is in librt. But don't pull that
8851# in if it still doesn't give us the function we want.
8852if test $ac_cv_func_clock_gettime = no; then
8853 echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
8854echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6
8855if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
8856 echo $ECHO_N "(cached) $ECHO_C" >&6
8857else
8858 ac_check_lib_save_LIBS=$LIBS
8859LIBS="-lrt $LIBS"
8860cat >conftest.$ac_ext <<_ACEOF
8861/* confdefs.h. */
8862_ACEOF
8863cat confdefs.h >>conftest.$ac_ext
8864cat >>conftest.$ac_ext <<_ACEOF
8865/* end confdefs.h. */
8866
8867/* Override any gcc2 internal prototype to avoid an error. */
8868#ifdef __cplusplus
8869extern "C"
8870#endif
8871/* We use char because int might match the return type of a gcc2
8872 builtin and then its argument prototype would still apply. */
8873char clock_gettime ();
8874int
8875main ()
8876{
8877clock_gettime ();
8878 ;
8879 return 0;
8880}
8881_ACEOF
8882rm -f conftest.$ac_objext conftest$ac_exeext
8883if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8884 (eval $ac_link) 2>conftest.er1
8885 ac_status=$?
8886 grep -v '^ *+' conftest.er1 >conftest.err
8887 rm -f conftest.er1
8888 cat conftest.err >&5
8889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8890 (exit $ac_status); } &&
59da30e1 8891 { ac_try='test -z "$ac_c_werror_flag"
8892 || test ! -s conftest.err'
1e8e9920 8893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8894 (eval $ac_try) 2>&5
8895 ac_status=$?
8896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897 (exit $ac_status); }; } &&
8898 { ac_try='test -s conftest$ac_exeext'
8899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8900 (eval $ac_try) 2>&5
8901 ac_status=$?
8902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8903 (exit $ac_status); }; }; then
8904 ac_cv_lib_rt_clock_gettime=yes
8905else
8906 echo "$as_me: failed program was:" >&5
8907sed 's/^/| /' conftest.$ac_ext >&5
8908
8909ac_cv_lib_rt_clock_gettime=no
8910fi
8911rm -f conftest.err conftest.$ac_objext \
8912 conftest$ac_exeext conftest.$ac_ext
8913LIBS=$ac_check_lib_save_LIBS
8914fi
8915echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
8916echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6
8917if test $ac_cv_lib_rt_clock_gettime = yes; then
8918 LIBS="-lrt $LIBS"
0b67f687 8919
8920cat >>confdefs.h <<\_ACEOF
8921#define HAVE_CLOCK_GETTIME 1
1e8e9920 8922_ACEOF
8923
8924fi
8925
8926fi
8927
8928# See if we support thread-local storage.
8929
8930 # Check whether --enable-tls or --disable-tls was given.
8931if test "${enable_tls+set}" = set; then
8932 enableval="$enable_tls"
8933
8934 case "$enableval" in
8935 yes|no) ;;
8936 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5
8937echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;}
8938 { (exit 1); exit 1; }; } ;;
8939 esac
8940
8941else
8942 enable_tls=yes
8943fi;
8944
8945 echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5
8946echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6
8947if test "${have_tls+set}" = set; then
8948 echo $ECHO_N "(cached) $ECHO_C" >&6
8949else
8950
4d006f8a 8951 if test "$cross_compiling" = yes; then
8952 cat >conftest.$ac_ext <<_ACEOF
67ba0753 8953__thread int a; int b; int main() { return a = b; }
1e8e9920 8954_ACEOF
67ba0753 8955rm -f conftest.$ac_objext conftest$ac_exeext
8956if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8957 (eval $ac_link) 2>conftest.er1
1e8e9920 8958 ac_status=$?
8959 grep -v '^ *+' conftest.er1 >conftest.err
8960 rm -f conftest.er1
8961 cat conftest.err >&5
8962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8963 (exit $ac_status); } &&
59da30e1 8964 { ac_try='test -z "$ac_c_werror_flag"
8965 || test ! -s conftest.err'
1e8e9920 8966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8967 (eval $ac_try) 2>&5
8968 ac_status=$?
8969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8970 (exit $ac_status); }; } &&
67ba0753 8971 { ac_try='test -s conftest$ac_exeext'
1e8e9920 8972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8973 (eval $ac_try) 2>&5
8974 ac_status=$?
8975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8976 (exit $ac_status); }; }; then
4d006f8a 8977 have_tls=yes
1e8e9920 8978else
8979 echo "$as_me: failed program was:" >&5
8980sed 's/^/| /' conftest.$ac_ext >&5
8981
8982have_tls=no
8983fi
67ba0753 8984rm -f conftest.err conftest.$ac_objext \
8985 conftest$ac_exeext conftest.$ac_ext
4d006f8a 8986
8987else
8988 cat >conftest.$ac_ext <<_ACEOF
8989__thread int a; int b; int main() { return a = b; }
8990_ACEOF
8991rm -f conftest$ac_exeext
8992if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8993 (eval $ac_link) 2>&5
8994 ac_status=$?
8995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8996 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8998 (eval $ac_try) 2>&5
8999 ac_status=$?
9000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9001 (exit $ac_status); }; }; then
72a430e4 9002 save_LDFLAGS="$LDFLAGS"
4d006f8a 9003 LDFLAGS="-static $LDFLAGS"
72a430e4 9004 cat >conftest.$ac_ext <<_ACEOF
9005int main() { return 0; }
9006_ACEOF
9007rm -f conftest.$ac_objext conftest$ac_exeext
9008if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9009 (eval $ac_link) 2>conftest.er1
9010 ac_status=$?
9011 grep -v '^ *+' conftest.er1 >conftest.err
9012 rm -f conftest.er1
9013 cat conftest.err >&5
9014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9015 (exit $ac_status); } &&
9016 { ac_try='test -z "$ac_c_werror_flag"
9017 || test ! -s conftest.err'
9018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9019 (eval $ac_try) 2>&5
9020 ac_status=$?
9021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9022 (exit $ac_status); }; } &&
9023 { ac_try='test -s conftest$ac_exeext'
9024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9025 (eval $ac_try) 2>&5
9026 ac_status=$?
9027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9028 (exit $ac_status); }; }; then
9029 if test "$cross_compiling" = yes; then
4d006f8a 9030 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9031See \`config.log' for more details." >&5
9032echo "$as_me: error: cannot run test program while cross compiling
9033See \`config.log' for more details." >&2;}
9034 { (exit 1); exit 1; }; }
9035else
9036 cat >conftest.$ac_ext <<_ACEOF
9037__thread int a; int b; int main() { return a = b; }
9038_ACEOF
9039rm -f conftest$ac_exeext
9040if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9041 (eval $ac_link) 2>&5
9042 ac_status=$?
9043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9044 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9046 (eval $ac_try) 2>&5
9047 ac_status=$?
9048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9049 (exit $ac_status); }; }; then
9050 have_tls=yes
9051else
9052 echo "$as_me: program exited with status $ac_status" >&5
9053echo "$as_me: failed program was:" >&5
9054sed 's/^/| /' conftest.$ac_ext >&5
9055
9056( exit $ac_status )
9057have_tls=no
9058fi
9059rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9060fi
72a430e4 9061else
9062 echo "$as_me: failed program was:" >&5
9063sed 's/^/| /' conftest.$ac_ext >&5
9064
9065have_tls=yes
9066fi
9067rm -f conftest.err conftest.$ac_objext \
9068 conftest$ac_exeext conftest.$ac_ext
4d006f8a 9069 LDFLAGS="$save_LDFLAGS"
9070else
9071 echo "$as_me: program exited with status $ac_status" >&5
9072echo "$as_me: failed program was:" >&5
9073sed 's/^/| /' conftest.$ac_ext >&5
9074
9075( exit $ac_status )
9076have_tls=no
9077fi
9078rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9079fi
1e8e9920 9080fi
9081echo "$as_me:$LINENO: result: $have_tls" >&5
9082echo "${ECHO_T}$have_tls" >&6
4d006f8a 9083 if test "$enable_tls $have_tls" = "yes yes"; then
1e8e9920 9084
9085cat >>confdefs.h <<\_ACEOF
9086#define HAVE_TLS 1
9087_ACEOF
9088
9089 fi
9090
9091# See what sort of export controls are availible.
9092
9093 echo "$as_me:$LINENO: checking whether the target supports hidden visibility" >&5
9094echo $ECHO_N "checking whether the target supports hidden visibility... $ECHO_C" >&6
9095if test "${have_attribute_visibility+set}" = set; then
9096 echo $ECHO_N "(cached) $ECHO_C" >&6
9097else
9098
9099 save_CFLAGS="$CFLAGS"
9100 CFLAGS="$CFLAGS -Werror"
9101 cat >conftest.$ac_ext <<_ACEOF
9102/* confdefs.h. */
9103_ACEOF
9104cat confdefs.h >>conftest.$ac_ext
9105cat >>conftest.$ac_ext <<_ACEOF
9106/* end confdefs.h. */
9107void __attribute__((visibility("hidden"))) foo(void) { }
9108int
9109main ()
9110{
9111
9112 ;
9113 return 0;
9114}
9115_ACEOF
9116rm -f conftest.$ac_objext
9117if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9118 (eval $ac_compile) 2>conftest.er1
9119 ac_status=$?
9120 grep -v '^ *+' conftest.er1 >conftest.err
9121 rm -f conftest.er1
9122 cat conftest.err >&5
9123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124 (exit $ac_status); } &&
59da30e1 9125 { ac_try='test -z "$ac_c_werror_flag"
9126 || test ! -s conftest.err'
1e8e9920 9127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9128 (eval $ac_try) 2>&5
9129 ac_status=$?
9130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131 (exit $ac_status); }; } &&
9132 { ac_try='test -s conftest.$ac_objext'
9133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9134 (eval $ac_try) 2>&5
9135 ac_status=$?
9136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9137 (exit $ac_status); }; }; then
9138 have_attribute_visibility=yes
9139else
9140 echo "$as_me: failed program was:" >&5
9141sed 's/^/| /' conftest.$ac_ext >&5
9142
9143have_attribute_visibility=no
9144fi
9145rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9146 CFLAGS="$save_CFLAGS"
9147fi
9148echo "$as_me:$LINENO: result: $have_attribute_visibility" >&5
9149echo "${ECHO_T}$have_attribute_visibility" >&6
9150 if test $have_attribute_visibility = yes; then
9151
9152cat >>confdefs.h <<\_ACEOF
9153#define HAVE_ATTRIBUTE_VISIBILITY 1
9154_ACEOF
9155
9156 fi
9157
9158 echo "$as_me:$LINENO: checking whether the target supports dllexport" >&5
9159echo $ECHO_N "checking whether the target supports dllexport... $ECHO_C" >&6
9160if test "${have_attribute_dllexport+set}" = set; then
9161 echo $ECHO_N "(cached) $ECHO_C" >&6
9162else
9163
9164 save_CFLAGS="$CFLAGS"
9165 CFLAGS="$CFLAGS -Werror"
9166 cat >conftest.$ac_ext <<_ACEOF
9167/* confdefs.h. */
9168_ACEOF
9169cat confdefs.h >>conftest.$ac_ext
9170cat >>conftest.$ac_ext <<_ACEOF
9171/* end confdefs.h. */
9172void __attribute__((dllexport)) foo(void) { }
9173int
9174main ()
9175{
9176
9177 ;
9178 return 0;
9179}
9180_ACEOF
9181rm -f conftest.$ac_objext
9182if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9183 (eval $ac_compile) 2>conftest.er1
9184 ac_status=$?
9185 grep -v '^ *+' conftest.er1 >conftest.err
9186 rm -f conftest.er1
9187 cat conftest.err >&5
9188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9189 (exit $ac_status); } &&
59da30e1 9190 { ac_try='test -z "$ac_c_werror_flag"
9191 || test ! -s conftest.err'
1e8e9920 9192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9193 (eval $ac_try) 2>&5
9194 ac_status=$?
9195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9196 (exit $ac_status); }; } &&
9197 { ac_try='test -s conftest.$ac_objext'
9198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9199 (eval $ac_try) 2>&5
9200 ac_status=$?
9201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9202 (exit $ac_status); }; }; then
9203 have_attribute_dllexport=yes
9204else
9205 echo "$as_me: failed program was:" >&5
9206sed 's/^/| /' conftest.$ac_ext >&5
9207
9208have_attribute_dllexport=no
9209fi
9210rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9211 CFLAGS="$save_CFLAGS"
9212fi
9213echo "$as_me:$LINENO: result: $have_attribute_dllexport" >&5
9214echo "${ECHO_T}$have_attribute_dllexport" >&6
9215 if test $have_attribute_dllexport = yes; then
9216
9217cat >>confdefs.h <<\_ACEOF
9218#define HAVE_ATTRIBUTE_DLLEXPORT 1
9219_ACEOF
9220
9221 fi
9222
9223 echo "$as_me:$LINENO: checking whether the target supports symbol aliases" >&5
9224echo $ECHO_N "checking whether the target supports symbol aliases... $ECHO_C" >&6
9225if test "${have_attribute_alias+set}" = set; then
9226 echo $ECHO_N "(cached) $ECHO_C" >&6
9227else
9228
9229 cat >conftest.$ac_ext <<_ACEOF
9230/* confdefs.h. */
9231_ACEOF
9232cat confdefs.h >>conftest.$ac_ext
9233cat >>conftest.$ac_ext <<_ACEOF
9234/* end confdefs.h. */
9235
1e8e9920 9236void foo(void) { }
c812091b 9237extern void bar(void) __attribute__((alias("foo")));
1e8e9920 9238int
9239main ()
9240{
9241bar();
9242 ;
9243 return 0;
9244}
9245_ACEOF
9246rm -f conftest.$ac_objext conftest$ac_exeext
9247if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9248 (eval $ac_link) 2>conftest.er1
9249 ac_status=$?
9250 grep -v '^ *+' conftest.er1 >conftest.err
9251 rm -f conftest.er1
9252 cat conftest.err >&5
9253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9254 (exit $ac_status); } &&
59da30e1 9255 { ac_try='test -z "$ac_c_werror_flag"
9256 || test ! -s conftest.err'
1e8e9920 9257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9258 (eval $ac_try) 2>&5
9259 ac_status=$?
9260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9261 (exit $ac_status); }; } &&
9262 { ac_try='test -s conftest$ac_exeext'
9263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9264 (eval $ac_try) 2>&5
9265 ac_status=$?
9266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9267 (exit $ac_status); }; }; then
9268 have_attribute_alias=yes
9269else
9270 echo "$as_me: failed program was:" >&5
9271sed 's/^/| /' conftest.$ac_ext >&5
9272
9273have_attribute_alias=no
9274fi
9275rm -f conftest.err conftest.$ac_objext \
9276 conftest$ac_exeext conftest.$ac_ext
9277fi
9278echo "$as_me:$LINENO: result: $have_attribute_alias" >&5
9279echo "${ECHO_T}$have_attribute_alias" >&6
9280 if test $have_attribute_alias = yes; then
9281
9282cat >>confdefs.h <<\_ACEOF
9283#define HAVE_ATTRIBUTE_ALIAS 1
9284_ACEOF
9285
9286 fi
9287
9288 # If we're not using GNU ld, then there's no point in even trying these
9289 # tests. Check for that first. We should have already tested for gld
9290 # by now (in libtool), but require it now just to be safe...
9291 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
9292 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
9293
9294
9295
9296 # The name set by libtool depends on the version of libtool. Shame on us
9297 # for depending on an impl detail, but c'est la vie. Older versions used
9298 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
9299 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
9300 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
9301 # set (hence we're using an older libtool), then set it.
9302 if test x${with_gnu_ld+set} != xset; then
9303 if test x${ac_cv_prog_gnu_ld+set} != xset; then
9304 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
9305 with_gnu_ld=no
9306 else
9307 with_gnu_ld=$ac_cv_prog_gnu_ld
9308 fi
9309 fi
9310
9311 # Start by getting the version number. I think the libtool test already
9312 # does some of this, but throws away the result.
9313
9314 ldver=`$LD --version 2>/dev/null | head -1 | \
9315 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
9316
9317 libgomp_gnu_ld_version=`echo $ldver | \
9318 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
9319
9320 # Set --gc-sections.
9321 if test "$with_gnu_ld" = "notbroken"; then
9322 # GNU ld it is! Joy and bunny rabbits!
9323
9324 # All these tests are for C++; save the language and the compiler flags.
9325 # Need to do this so that g++ won't try to link in libstdc++
9326 ac_test_CFLAGS="${CFLAGS+set}"
9327 ac_save_CFLAGS="$CFLAGS"
9328 CFLAGS='-x c++ -Wl,--gc-sections'
9329
9330 # Check for -Wl,--gc-sections
9331 # XXX This test is broken at the moment, as symbols required for linking
9332 # are now in libsupc++ (not built yet). In addition, this test has
9333 # cored on solaris in the past. In addition, --gc-sections doesn't
9334 # really work at the moment (keeps on discarding used sections, first
9335 # .eh_frame and now some of the glibc sections for iconv).
9336 # Bzzzzt. Thanks for playing, maybe next time.
9337 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
9338echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
9339 if test "$cross_compiling" = yes; then
9340 ac_sectionLDflags=yes
9341else
9342 cat >conftest.$ac_ext <<_ACEOF
9343/* confdefs.h. */
9344_ACEOF
9345cat confdefs.h >>conftest.$ac_ext
9346cat >>conftest.$ac_ext <<_ACEOF
9347/* end confdefs.h. */
9348
9349 int main(void)
9350 {
9351 try { throw 1; }
9352 catch (...) { };
9353 return 0;
9354 }
9355
9356_ACEOF
9357rm -f conftest$ac_exeext
9358if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9359 (eval $ac_link) 2>&5
9360 ac_status=$?
9361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9362 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9364 (eval $ac_try) 2>&5
9365 ac_status=$?
9366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9367 (exit $ac_status); }; }; then
9368 ac_sectionLDflags=yes
9369else
9370 echo "$as_me: program exited with status $ac_status" >&5
9371echo "$as_me: failed program was:" >&5
9372sed 's/^/| /' conftest.$ac_ext >&5
9373
9374( exit $ac_status )
9375ac_sectionLDflags=no
9376fi
9377rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9378fi
9379 if test "$ac_test_CFLAGS" = set; then
9380 CFLAGS="$ac_save_CFLAGS"
9381 else
9382 # this is the suspicious part
9383 CFLAGS=''
9384 fi
9385 if test "$ac_sectionLDflags" = "yes"; then
9386 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
9387 fi
9388 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
9389echo "${ECHO_T}$ac_sectionLDflags" >&6
9390 fi
9391
9392 # Set linker optimization flags.
9393 if test x"$with_gnu_ld" = x"yes"; then
9394 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
9395 fi
9396
9397
9398
9399
9400
9401
9402 # Check whether --enable-symvers or --disable-symvers was given.
9403if test "${enable_symvers+set}" = set; then
9404 enableval="$enable_symvers"
9405
9406 case "$enableval" in
9407 yes|no|gnu) ;;
9408 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable symvers" >&5
9409echo "$as_me: error: Unknown argument to enable/disable symvers" >&2;}
9410 { (exit 1); exit 1; }; } ;;
9411 esac
9412
9413else
9414 enable_symvers=yes
9415fi;
9416
9417
9418# If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we
9419# don't know enough about $LD to do tricks...
9420
9421# FIXME The following test is too strict, in theory.
9422if test $enable_shared = no ||
9423 test "x$LD" = x ||
9424 test x$libgomp_gnu_ld_version = x; then
9425 enable_symvers=no
9426fi
9427
9428# Check to see if libgcc_s exists, indicating that shared libgcc is possible.
9429if test $enable_symvers != no; then
9430 echo "$as_me:$LINENO: checking for shared libgcc" >&5
9431echo $ECHO_N "checking for shared libgcc... $ECHO_C" >&6
9432 ac_save_CFLAGS="$CFLAGS"
9433 CFLAGS=' -lgcc_s'
9434 cat >conftest.$ac_ext <<_ACEOF
9435/* confdefs.h. */
9436_ACEOF
9437cat confdefs.h >>conftest.$ac_ext
9438cat >>conftest.$ac_ext <<_ACEOF
9439/* end confdefs.h. */
9440
9441int
9442main ()
9443{
9444return 0;
9445 ;
9446 return 0;
9447}
9448_ACEOF
9449rm -f conftest.$ac_objext conftest$ac_exeext
9450if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9451 (eval $ac_link) 2>conftest.er1
9452 ac_status=$?
9453 grep -v '^ *+' conftest.er1 >conftest.err
9454 rm -f conftest.er1
9455 cat conftest.err >&5
9456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9457 (exit $ac_status); } &&
59da30e1 9458 { ac_try='test -z "$ac_c_werror_flag"
9459 || test ! -s conftest.err'
1e8e9920 9460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9461 (eval $ac_try) 2>&5
9462 ac_status=$?
9463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9464 (exit $ac_status); }; } &&
9465 { ac_try='test -s conftest$ac_exeext'
9466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9467 (eval $ac_try) 2>&5
9468 ac_status=$?
9469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9470 (exit $ac_status); }; }; then
9471 libgomp_shared_libgcc=yes
9472else
9473 echo "$as_me: failed program was:" >&5
9474sed 's/^/| /' conftest.$ac_ext >&5
9475
9476libgomp_shared_libgcc=no
9477fi
9478rm -f conftest.err conftest.$ac_objext \
9479 conftest$ac_exeext conftest.$ac_ext
9480 CFLAGS="$ac_save_CFLAGS"
9481 if test $libgomp_shared_libgcc = no; then
9482 cat > conftest.c <<EOF
9483int main (void) { return 0; }
9484EOF
9485 libgomp_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
9486 -shared -shared-libgcc -o conftest.so \
9487 conftest.c -v 2>&1 >/dev/null \
9488 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
9489 rm -f conftest.c conftest.so
9490 if test x${libgomp_libgcc_s_suffix+set} = xset; then
9491 CFLAGS=" -lgcc_s$libgomp_libgcc_s_suffix"
9492 cat >conftest.$ac_ext <<_ACEOF
9493/* confdefs.h. */
9494_ACEOF
9495cat confdefs.h >>conftest.$ac_ext
9496cat >>conftest.$ac_ext <<_ACEOF
9497/* end confdefs.h. */
9498
9499int
9500main ()
9501{
9502return 0;
9503 ;
9504 return 0;
9505}
9506_ACEOF
9507rm -f conftest.$ac_objext conftest$ac_exeext
9508if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9509 (eval $ac_link) 2>conftest.er1
9510 ac_status=$?
9511 grep -v '^ *+' conftest.er1 >conftest.err
9512 rm -f conftest.er1
9513 cat conftest.err >&5
9514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9515 (exit $ac_status); } &&
59da30e1 9516 { ac_try='test -z "$ac_c_werror_flag"
9517 || test ! -s conftest.err'
1e8e9920 9518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9519 (eval $ac_try) 2>&5
9520 ac_status=$?
9521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9522 (exit $ac_status); }; } &&
9523 { ac_try='test -s conftest$ac_exeext'
9524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9525 (eval $ac_try) 2>&5
9526 ac_status=$?
9527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9528 (exit $ac_status); }; }; then
9529 libgomp_shared_libgcc=yes
9530else
9531 echo "$as_me: failed program was:" >&5
9532sed 's/^/| /' conftest.$ac_ext >&5
9533
9534fi
9535rm -f conftest.err conftest.$ac_objext \
9536 conftest$ac_exeext conftest.$ac_ext
9537 CFLAGS="$ac_save_CFLAGS"
9538 fi
9539 fi
9540 echo "$as_me:$LINENO: result: $libgomp_shared_libgcc" >&5
9541echo "${ECHO_T}$libgomp_shared_libgcc" >&6
9542fi
9543
9544# For GNU ld, we need at least this version. The format is described in
9545# LIBGOMP_CHECK_LINKER_FEATURES above.
9546libgomp_min_gnu_ld_version=21400
9547# XXXXXXXXXXX libgomp_gnu_ld_version=21390
9548
9549# Check to see if unspecified "yes" value can win, given results above.
9550# Change "yes" into either "no" or a style name.
9551if test $enable_symvers = yes; then
9552 if test $with_gnu_ld = yes &&
9553 test $libgomp_shared_libgcc = yes;
9554 then
9555 if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then
9556 enable_symvers=gnu
9557 else
9558 # The right tools, the right setup, but too old. Fallbacks?
9559 { echo "$as_me:$LINENO: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5
9560echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;}
9561 { echo "$as_me:$LINENO: WARNING: === full symbol versioning support in this release of GCC." >&5
9562echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
9563 { echo "$as_me:$LINENO: WARNING: === You would need to upgrade your binutils to version" >&5
9564echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
9565 { echo "$as_me:$LINENO: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5
9566echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;}
9567 if test $libgomp_gnu_ld_version -ge 21200 ; then
9568 # Globbing fix is present, proper block support is not.
9569 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
9570echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
9571 enable_symvers=no
9572 else
9573 # 2.11 or older.
9574 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
9575echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
9576 enable_symvers=no
9577 fi
9578 fi
9579 else
9580 # just fail for now
9581 { echo "$as_me:$LINENO: WARNING: === You have requested some kind of symbol versioning, but" >&5
9582echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
9583 { echo "$as_me:$LINENO: WARNING: === either you are not using a supported linker, or you are" >&5
9584echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
9585 { echo "$as_me:$LINENO: WARNING: === not building a shared libgcc_s (which is required)." >&5
9586echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
9587 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
9588echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
9589 enable_symvers=no
9590 fi
9591fi
9592
9593
9594
9595if test $enable_symvers != no; then
9596 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE=
9597 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE='#'
9598else
9599 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE='#'
9600 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE=
9601fi
9602
9603{ echo "$as_me:$LINENO: versioning on shared library symbols is $enable_symvers" >&5
9604echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
9605
9606
9607# Get target configury.
9608. ${srcdir}/configure.tgt
9609CFLAGS="$save_CFLAGS $XCFLAGS"
9610
9611# Check for __sync_val_compare_and_swap, but only after the target has
9612# had a chance to set XCFLAGS.
9613
9614 echo "$as_me:$LINENO: checking whether the target supports __sync_*_compare_and_swap" >&5
9615echo $ECHO_N "checking whether the target supports __sync_*_compare_and_swap... $ECHO_C" >&6
9616if test "${have_sync_builtins+set}" = set; then
9617 echo $ECHO_N "(cached) $ECHO_C" >&6
9618else
9619
9620 cat >conftest.$ac_ext <<_ACEOF
9621/* confdefs.h. */
9622_ACEOF
9623cat confdefs.h >>conftest.$ac_ext
9624cat >>conftest.$ac_ext <<_ACEOF
9625/* end confdefs.h. */
9626
9627int
9628main ()
9629{
9630int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
9631 ;
9632 return 0;
9633}
9634_ACEOF
9635rm -f conftest.$ac_objext conftest$ac_exeext
9636if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9637 (eval $ac_link) 2>conftest.er1
9638 ac_status=$?
9639 grep -v '^ *+' conftest.er1 >conftest.err
9640 rm -f conftest.er1
9641 cat conftest.err >&5
9642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9643 (exit $ac_status); } &&
59da30e1 9644 { ac_try='test -z "$ac_c_werror_flag"
9645 || test ! -s conftest.err'
1e8e9920 9646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9647 (eval $ac_try) 2>&5
9648 ac_status=$?
9649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9650 (exit $ac_status); }; } &&
9651 { ac_try='test -s conftest$ac_exeext'
9652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9653 (eval $ac_try) 2>&5
9654 ac_status=$?
9655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9656 (exit $ac_status); }; }; then
9657 have_sync_builtins=yes
9658else
9659 echo "$as_me: failed program was:" >&5
9660sed 's/^/| /' conftest.$ac_ext >&5
9661
9662have_sync_builtins=no
9663fi
9664rm -f conftest.err conftest.$ac_objext \
9665 conftest$ac_exeext conftest.$ac_ext
9666fi
9667echo "$as_me:$LINENO: result: $have_sync_builtins" >&5
9668echo "${ECHO_T}$have_sync_builtins" >&6
9669 if test $have_sync_builtins = yes; then
9670
9671cat >>confdefs.h <<\_ACEOF
9672#define HAVE_SYNC_BUILTINS 1
9673_ACEOF
9674
9675 fi
9676
9677XCFLAGS="$XCFLAGS$XPCFLAGS"
9678
9679
9680
9681
9682
9683# Cleanup and exit.
9684CFLAGS="$save_CFLAGS"
9685cat >confcache <<\_ACEOF
9686# This file is a shell script that caches the results of configure
9687# tests run on this system so they can be shared between configure
9688# scripts and configure runs, see configure's option --config-cache.
9689# It is not useful on other systems. If it contains results you don't
9690# want to keep, you may remove or edit it.
9691#
9692# config.status only pays attention to the cache file if you give it
9693# the --recheck option to rerun configure.
9694#
9695# `ac_cv_env_foo' variables (set or unset) will be overridden when
9696# loading this file, other *unset* `ac_cv_foo' will be assigned the
9697# following values.
9698
9699_ACEOF
9700
9701# The following way of writing the cache mishandles newlines in values,
9702# but we know of no workaround that is simple, portable, and efficient.
9703# So, don't put newlines in cache variables' values.
9704# Ultrix sh set writes to stderr and can't be redirected directly,
9705# and sets the high bit in the cache file unless we assign to the vars.
9706{
9707 (set) 2>&1 |
9708 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9709 *ac_space=\ *)
9710 # `set' does not quote correctly, so add quotes (double-quote
9711 # substitution turns \\\\ into \\, and sed turns \\ into \).
9712 sed -n \
9713 "s/'/'\\\\''/g;
9714 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9715 ;;
9716 *)
9717 # `set' quotes correctly as required by POSIX, so do not add quotes.
9718 sed -n \
9719 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9720 ;;
9721 esac;
9722} |
9723 sed '
9724 t clear
9725 : clear
9726 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9727 t end
9728 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9729 : end' >>confcache
9730if diff $cache_file confcache >/dev/null 2>&1; then :; else
9731 if test -w $cache_file; then
9732 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9733 cat confcache >$cache_file
9734 else
9735 echo "not updating unwritable cache $cache_file"
9736 fi
9737fi
9738rm -f confcache
9739
9740if test ${multilib} = yes; then
9741 multilib_arg="--enable-multilib"
9742else
9743 multilib_arg=
9744fi
9745
9746# Set up the set of libraries that we need to link against for libgomp.
138f59be 9747# Note that the GOMP_SELF_SPEC in gcc.c will force -pthread for -fopenmp,
1e8e9920 9748# which will force linkage against -lpthread (or equivalent for the system).
9749# That's not 100% ideal, but about the best we can do easily.
9750if test $enable_shared = yes; then
9751 link_gomp="-lgomp %{static: $LIBS}"
9752else
9753 link_gomp="-lgomp $LIBS"
9754fi
9755
9756
9757
9758
9759if test "$ac_cv_fc_compiler_gnu" = yes; then
9760 USE_FORTRAN_TRUE=
9761 USE_FORTRAN_FALSE='#'
9762else
9763 USE_FORTRAN_TRUE='#'
9764 USE_FORTRAN_FALSE=
9765fi
9766
9767
107c3bbf 9768# ??? 2006-01-24: Paulo committed to asking autoconf folk to document
9769# and export AC_COMPUTE_INT. If that happens, then we'll need to remove
9770# the underscore here and update the PREREQ. If it doesn't, then we'll
9771# need to copy this macro to our acinclude.m4.
9772save_CFLAGS="$CFLAGS"
9773for i in $config_path; do
9774 if test -f $srcdir/config/$i/omp-lock.h; then
9775 CFLAGS="$CFLAGS -include $srcdir/config/$i/omp-lock.h"
9776 break
9777 fi
9778done
9779
9780if test "$cross_compiling" = yes; then
9781 # Depending upon the size, compute the lo and hi bounds.
9782cat >conftest.$ac_ext <<_ACEOF
9783/* confdefs.h. */
9784_ACEOF
9785cat confdefs.h >>conftest.$ac_ext
9786cat >>conftest.$ac_ext <<_ACEOF
9787/* end confdefs.h. */
9788
9789int
9790main ()
9791{
9792static int test_array [1 - 2 * !((sizeof (omp_lock_t)) >= 0)];
9793test_array [0] = 0
9794
9795 ;
9796 return 0;
9797}
9798_ACEOF
9799rm -f conftest.$ac_objext
9800if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9801 (eval $ac_compile) 2>conftest.er1
9802 ac_status=$?
9803 grep -v '^ *+' conftest.er1 >conftest.err
9804 rm -f conftest.er1
9805 cat conftest.err >&5
9806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9807 (exit $ac_status); } &&
59da30e1 9808 { ac_try='test -z "$ac_c_werror_flag"
9809 || test ! -s conftest.err'
107c3bbf 9810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9811 (eval $ac_try) 2>&5
9812 ac_status=$?
9813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9814 (exit $ac_status); }; } &&
9815 { ac_try='test -s conftest.$ac_objext'
9816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9817 (eval $ac_try) 2>&5
9818 ac_status=$?
9819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9820 (exit $ac_status); }; }; then
9821 ac_lo=0 ac_mid=0
9822 while :; do
9823 cat >conftest.$ac_ext <<_ACEOF
9824/* confdefs.h. */
9825_ACEOF
9826cat confdefs.h >>conftest.$ac_ext
9827cat >>conftest.$ac_ext <<_ACEOF
9828/* end confdefs.h. */
9829
9830int
9831main ()
9832{
9833static int test_array [1 - 2 * !((sizeof (omp_lock_t)) <= $ac_mid)];
9834test_array [0] = 0
9835
9836 ;
9837 return 0;
9838}
9839_ACEOF
9840rm -f conftest.$ac_objext
9841if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9842 (eval $ac_compile) 2>conftest.er1
9843 ac_status=$?
9844 grep -v '^ *+' conftest.er1 >conftest.err
9845 rm -f conftest.er1
9846 cat conftest.err >&5
9847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9848 (exit $ac_status); } &&
59da30e1 9849 { ac_try='test -z "$ac_c_werror_flag"
9850 || test ! -s conftest.err'
107c3bbf 9851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9852 (eval $ac_try) 2>&5
9853 ac_status=$?
9854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9855 (exit $ac_status); }; } &&
9856 { ac_try='test -s conftest.$ac_objext'
9857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9858 (eval $ac_try) 2>&5
9859 ac_status=$?
9860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9861 (exit $ac_status); }; }; then
9862 ac_hi=$ac_mid; break
9863else
9864 echo "$as_me: failed program was:" >&5
9865sed 's/^/| /' conftest.$ac_ext >&5
9866
9867ac_lo=`expr $ac_mid + 1`
9868 if test $ac_lo -le $ac_mid; then
9869 ac_lo= ac_hi=
9870 break
9871 fi
9872 ac_mid=`expr 2 '*' $ac_mid + 1`
9873fi
9874rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9875 done
9876else
9877 echo "$as_me: failed program was:" >&5
9878sed 's/^/| /' conftest.$ac_ext >&5
9879
9880cat >conftest.$ac_ext <<_ACEOF
9881/* confdefs.h. */
9882_ACEOF
9883cat confdefs.h >>conftest.$ac_ext
9884cat >>conftest.$ac_ext <<_ACEOF
9885/* end confdefs.h. */
9886
9887int
9888main ()
9889{
9890static int test_array [1 - 2 * !((sizeof (omp_lock_t)) < 0)];
9891test_array [0] = 0
9892
9893 ;
9894 return 0;
9895}
9896_ACEOF
9897rm -f conftest.$ac_objext
9898if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9899 (eval $ac_compile) 2>conftest.er1
9900 ac_status=$?
9901 grep -v '^ *+' conftest.er1 >conftest.err
9902 rm -f conftest.er1
9903 cat conftest.err >&5
9904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905 (exit $ac_status); } &&
59da30e1 9906 { ac_try='test -z "$ac_c_werror_flag"
9907 || test ! -s conftest.err'
107c3bbf 9908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9909 (eval $ac_try) 2>&5
9910 ac_status=$?
9911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9912 (exit $ac_status); }; } &&
9913 { ac_try='test -s conftest.$ac_objext'
9914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9915 (eval $ac_try) 2>&5
9916 ac_status=$?
9917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9918 (exit $ac_status); }; }; then
9919 ac_hi=-1 ac_mid=-1
9920 while :; do
9921 cat >conftest.$ac_ext <<_ACEOF
9922/* confdefs.h. */
9923_ACEOF
9924cat confdefs.h >>conftest.$ac_ext
9925cat >>conftest.$ac_ext <<_ACEOF
9926/* end confdefs.h. */
9927
9928int
9929main ()
9930{
9931static int test_array [1 - 2 * !((sizeof (omp_lock_t)) >= $ac_mid)];
9932test_array [0] = 0
9933
9934 ;
9935 return 0;
9936}
9937_ACEOF
9938rm -f conftest.$ac_objext
9939if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9940 (eval $ac_compile) 2>conftest.er1
9941 ac_status=$?
9942 grep -v '^ *+' conftest.er1 >conftest.err
9943 rm -f conftest.er1
9944 cat conftest.err >&5
9945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9946 (exit $ac_status); } &&
59da30e1 9947 { ac_try='test -z "$ac_c_werror_flag"
9948 || test ! -s conftest.err'
107c3bbf 9949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9950 (eval $ac_try) 2>&5
9951 ac_status=$?
9952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953 (exit $ac_status); }; } &&
9954 { ac_try='test -s conftest.$ac_objext'
9955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9956 (eval $ac_try) 2>&5
9957 ac_status=$?
9958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9959 (exit $ac_status); }; }; then
9960 ac_lo=$ac_mid; break
9961else
9962 echo "$as_me: failed program was:" >&5
9963sed 's/^/| /' conftest.$ac_ext >&5
9964
9965ac_hi=`expr '(' $ac_mid ')' - 1`
9966 if test $ac_mid -le $ac_hi; then
9967 ac_lo= ac_hi=
9968 break
9969 fi
9970 ac_mid=`expr 2 '*' $ac_mid`
9971fi
9972rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9973 done
9974else
9975 echo "$as_me: failed program was:" >&5
9976sed 's/^/| /' conftest.$ac_ext >&5
9977
9978ac_lo= ac_hi=
9979fi
9980rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9981fi
9982rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9983# Binary search between lo and hi bounds.
9984while test "x$ac_lo" != "x$ac_hi"; do
9985 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9986 cat >conftest.$ac_ext <<_ACEOF
9987/* confdefs.h. */
9988_ACEOF
9989cat confdefs.h >>conftest.$ac_ext
9990cat >>conftest.$ac_ext <<_ACEOF
9991/* end confdefs.h. */
9992
9993int
9994main ()
9995{
9996static int test_array [1 - 2 * !((sizeof (omp_lock_t)) <= $ac_mid)];
9997test_array [0] = 0
9998
9999 ;
10000 return 0;
10001}
10002_ACEOF
10003rm -f conftest.$ac_objext
10004if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10005 (eval $ac_compile) 2>conftest.er1
10006 ac_status=$?
10007 grep -v '^ *+' conftest.er1 >conftest.err
10008 rm -f conftest.er1
10009 cat conftest.err >&5
10010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10011 (exit $ac_status); } &&
59da30e1 10012 { ac_try='test -z "$ac_c_werror_flag"
10013 || test ! -s conftest.err'
107c3bbf 10014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10015 (eval $ac_try) 2>&5
10016 ac_status=$?
10017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10018 (exit $ac_status); }; } &&
10019 { ac_try='test -s conftest.$ac_objext'
10020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10021 (eval $ac_try) 2>&5
10022 ac_status=$?
10023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10024 (exit $ac_status); }; }; then
10025 ac_hi=$ac_mid
10026else
10027 echo "$as_me: failed program was:" >&5
10028sed 's/^/| /' conftest.$ac_ext >&5
10029
10030ac_lo=`expr '(' $ac_mid ')' + 1`
10031fi
10032rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10033done
10034case $ac_lo in
10035?*) OMP_LOCK_SIZE=$ac_lo;;
10036'') { { echo "$as_me:$LINENO: error: unsupported system, cannot find sizeof (omp_lock_t)" >&5
10037echo "$as_me: error: unsupported system, cannot find sizeof (omp_lock_t)" >&2;}
10038 { (exit 1); exit 1; }; } ;;
10039esac
10040else
10041 if test "$cross_compiling" = yes; then
59da30e1 10042 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10043See \`config.log' for more details." >&5
10044echo "$as_me: error: cannot run test program while cross compiling
10045See \`config.log' for more details." >&2;}
107c3bbf 10046 { (exit 1); exit 1; }; }
10047else
10048 cat >conftest.$ac_ext <<_ACEOF
10049/* confdefs.h. */
10050_ACEOF
10051cat confdefs.h >>conftest.$ac_ext
10052cat >>conftest.$ac_ext <<_ACEOF
10053/* end confdefs.h. */
10054
10055long longval () { return sizeof (omp_lock_t); }
10056unsigned long ulongval () { return sizeof (omp_lock_t); }
10057#include <stdio.h>
10058#include <stdlib.h>
10059int
10060main ()
10061{
10062
10063 FILE *f = fopen ("conftest.val", "w");
10064 if (! f)
10065 exit (1);
10066 if ((sizeof (omp_lock_t)) < 0)
10067 {
10068 long i = longval ();
10069 if (i != (sizeof (omp_lock_t)))
10070 exit (1);
10071 fprintf (f, "%ld\n", i);
10072 }
10073 else
10074 {
10075 unsigned long i = ulongval ();
10076 if (i != (sizeof (omp_lock_t)))
10077 exit (1);
10078 fprintf (f, "%lu\n", i);
10079 }
10080 exit (ferror (f) || fclose (f) != 0);
10081
10082 ;
10083 return 0;
10084}
10085_ACEOF
10086rm -f conftest$ac_exeext
10087if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10088 (eval $ac_link) 2>&5
10089 ac_status=$?
10090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10091 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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 OMP_LOCK_SIZE=`cat conftest.val`
10098else
10099 echo "$as_me: program exited with status $ac_status" >&5
10100echo "$as_me: failed program was:" >&5
10101sed 's/^/| /' conftest.$ac_ext >&5
10102
10103( exit $ac_status )
10104{ { echo "$as_me:$LINENO: error: unsupported system, cannot find sizeof (omp_lock_t)" >&5
10105echo "$as_me: error: unsupported system, cannot find sizeof (omp_lock_t)" >&2;}
10106 { (exit 1); exit 1; }; }
10107fi
10108rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10109fi
10110fi
10111rm -f conftest.val
10112if test "$cross_compiling" = yes; then
10113 # Depending upon the size, compute the lo and hi bounds.
10114cat >conftest.$ac_ext <<_ACEOF
10115/* confdefs.h. */
10116_ACEOF
10117cat confdefs.h >>conftest.$ac_ext
10118cat >>conftest.$ac_ext <<_ACEOF
10119/* end confdefs.h. */
10120
10121int
10122main ()
10123{
10124static int test_array [1 - 2 * !((__alignof (omp_lock_t)) >= 0)];
10125test_array [0] = 0
10126
10127 ;
10128 return 0;
10129}
10130_ACEOF
10131rm -f conftest.$ac_objext
10132if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10133 (eval $ac_compile) 2>conftest.er1
10134 ac_status=$?
10135 grep -v '^ *+' conftest.er1 >conftest.err
10136 rm -f conftest.er1
10137 cat conftest.err >&5
10138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10139 (exit $ac_status); } &&
59da30e1 10140 { ac_try='test -z "$ac_c_werror_flag"
10141 || test ! -s conftest.err'
107c3bbf 10142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10143 (eval $ac_try) 2>&5
10144 ac_status=$?
10145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146 (exit $ac_status); }; } &&
10147 { ac_try='test -s conftest.$ac_objext'
10148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10149 (eval $ac_try) 2>&5
10150 ac_status=$?
10151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10152 (exit $ac_status); }; }; then
10153 ac_lo=0 ac_mid=0
10154 while :; do
10155 cat >conftest.$ac_ext <<_ACEOF
10156/* confdefs.h. */
10157_ACEOF
10158cat confdefs.h >>conftest.$ac_ext
10159cat >>conftest.$ac_ext <<_ACEOF
10160/* end confdefs.h. */
10161
10162int
10163main ()
10164{
10165static int test_array [1 - 2 * !((__alignof (omp_lock_t)) <= $ac_mid)];
10166test_array [0] = 0
10167
10168 ;
10169 return 0;
10170}
10171_ACEOF
10172rm -f conftest.$ac_objext
10173if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10174 (eval $ac_compile) 2>conftest.er1
10175 ac_status=$?
10176 grep -v '^ *+' conftest.er1 >conftest.err
10177 rm -f conftest.er1
10178 cat conftest.err >&5
10179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10180 (exit $ac_status); } &&
59da30e1 10181 { ac_try='test -z "$ac_c_werror_flag"
10182 || test ! -s conftest.err'
107c3bbf 10183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10184 (eval $ac_try) 2>&5
10185 ac_status=$?
10186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10187 (exit $ac_status); }; } &&
10188 { ac_try='test -s conftest.$ac_objext'
10189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10190 (eval $ac_try) 2>&5
10191 ac_status=$?
10192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193 (exit $ac_status); }; }; then
10194 ac_hi=$ac_mid; break
10195else
10196 echo "$as_me: failed program was:" >&5
10197sed 's/^/| /' conftest.$ac_ext >&5
10198
10199ac_lo=`expr $ac_mid + 1`
10200 if test $ac_lo -le $ac_mid; then
10201 ac_lo= ac_hi=
10202 break
10203 fi
10204 ac_mid=`expr 2 '*' $ac_mid + 1`
10205fi
10206rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10207 done
10208else
10209 echo "$as_me: failed program was:" >&5
10210sed 's/^/| /' conftest.$ac_ext >&5
10211
10212cat >conftest.$ac_ext <<_ACEOF
10213/* confdefs.h. */
10214_ACEOF
10215cat confdefs.h >>conftest.$ac_ext
10216cat >>conftest.$ac_ext <<_ACEOF
10217/* end confdefs.h. */
10218
10219int
10220main ()
10221{
10222static int test_array [1 - 2 * !((__alignof (omp_lock_t)) < 0)];
10223test_array [0] = 0
10224
10225 ;
10226 return 0;
10227}
10228_ACEOF
10229rm -f conftest.$ac_objext
10230if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10231 (eval $ac_compile) 2>conftest.er1
10232 ac_status=$?
10233 grep -v '^ *+' conftest.er1 >conftest.err
10234 rm -f conftest.er1
10235 cat conftest.err >&5
10236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237 (exit $ac_status); } &&
59da30e1 10238 { ac_try='test -z "$ac_c_werror_flag"
10239 || test ! -s conftest.err'
107c3bbf 10240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10241 (eval $ac_try) 2>&5
10242 ac_status=$?
10243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10244 (exit $ac_status); }; } &&
10245 { ac_try='test -s conftest.$ac_objext'
10246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10247 (eval $ac_try) 2>&5
10248 ac_status=$?
10249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10250 (exit $ac_status); }; }; then
10251 ac_hi=-1 ac_mid=-1
10252 while :; do
10253 cat >conftest.$ac_ext <<_ACEOF
10254/* confdefs.h. */
10255_ACEOF
10256cat confdefs.h >>conftest.$ac_ext
10257cat >>conftest.$ac_ext <<_ACEOF
10258/* end confdefs.h. */
10259
10260int
10261main ()
10262{
10263static int test_array [1 - 2 * !((__alignof (omp_lock_t)) >= $ac_mid)];
10264test_array [0] = 0
10265
10266 ;
10267 return 0;
10268}
10269_ACEOF
10270rm -f conftest.$ac_objext
10271if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10272 (eval $ac_compile) 2>conftest.er1
10273 ac_status=$?
10274 grep -v '^ *+' conftest.er1 >conftest.err
10275 rm -f conftest.er1
10276 cat conftest.err >&5
10277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10278 (exit $ac_status); } &&
59da30e1 10279 { ac_try='test -z "$ac_c_werror_flag"
10280 || test ! -s conftest.err'
107c3bbf 10281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10282 (eval $ac_try) 2>&5
10283 ac_status=$?
10284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10285 (exit $ac_status); }; } &&
10286 { ac_try='test -s conftest.$ac_objext'
10287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10288 (eval $ac_try) 2>&5
10289 ac_status=$?
10290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10291 (exit $ac_status); }; }; then
10292 ac_lo=$ac_mid; break
10293else
10294 echo "$as_me: failed program was:" >&5
10295sed 's/^/| /' conftest.$ac_ext >&5
10296
10297ac_hi=`expr '(' $ac_mid ')' - 1`
10298 if test $ac_mid -le $ac_hi; then
10299 ac_lo= ac_hi=
10300 break
10301 fi
10302 ac_mid=`expr 2 '*' $ac_mid`
10303fi
10304rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10305 done
10306else
10307 echo "$as_me: failed program was:" >&5
10308sed 's/^/| /' conftest.$ac_ext >&5
10309
10310ac_lo= ac_hi=
10311fi
10312rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10313fi
10314rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10315# Binary search between lo and hi bounds.
10316while test "x$ac_lo" != "x$ac_hi"; do
10317 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10318 cat >conftest.$ac_ext <<_ACEOF
10319/* confdefs.h. */
10320_ACEOF
10321cat confdefs.h >>conftest.$ac_ext
10322cat >>conftest.$ac_ext <<_ACEOF
10323/* end confdefs.h. */
10324
10325int
10326main ()
10327{
10328static int test_array [1 - 2 * !((__alignof (omp_lock_t)) <= $ac_mid)];
10329test_array [0] = 0
10330
10331 ;
10332 return 0;
10333}
10334_ACEOF
10335rm -f conftest.$ac_objext
10336if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10337 (eval $ac_compile) 2>conftest.er1
10338 ac_status=$?
10339 grep -v '^ *+' conftest.er1 >conftest.err
10340 rm -f conftest.er1
10341 cat conftest.err >&5
10342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10343 (exit $ac_status); } &&
59da30e1 10344 { ac_try='test -z "$ac_c_werror_flag"
10345 || test ! -s conftest.err'
107c3bbf 10346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10347 (eval $ac_try) 2>&5
10348 ac_status=$?
10349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10350 (exit $ac_status); }; } &&
10351 { ac_try='test -s conftest.$ac_objext'
10352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10353 (eval $ac_try) 2>&5
10354 ac_status=$?
10355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10356 (exit $ac_status); }; }; then
10357 ac_hi=$ac_mid
10358else
10359 echo "$as_me: failed program was:" >&5
10360sed 's/^/| /' conftest.$ac_ext >&5
10361
10362ac_lo=`expr '(' $ac_mid ')' + 1`
10363fi
10364rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10365done
10366case $ac_lo in
10367?*) OMP_LOCK_ALIGN=$ac_lo;;
10368'') ;;
10369esac
10370else
10371 if test "$cross_compiling" = yes; then
59da30e1 10372 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10373See \`config.log' for more details." >&5
10374echo "$as_me: error: cannot run test program while cross compiling
10375See \`config.log' for more details." >&2;}
107c3bbf 10376 { (exit 1); exit 1; }; }
10377else
10378 cat >conftest.$ac_ext <<_ACEOF
10379/* confdefs.h. */
10380_ACEOF
10381cat confdefs.h >>conftest.$ac_ext
10382cat >>conftest.$ac_ext <<_ACEOF
10383/* end confdefs.h. */
10384
10385long longval () { return __alignof (omp_lock_t); }
10386unsigned long ulongval () { return __alignof (omp_lock_t); }
10387#include <stdio.h>
10388#include <stdlib.h>
10389int
10390main ()
10391{
10392
10393 FILE *f = fopen ("conftest.val", "w");
10394 if (! f)
10395 exit (1);
10396 if ((__alignof (omp_lock_t)) < 0)
10397 {
10398 long i = longval ();
10399 if (i != (__alignof (omp_lock_t)))
10400 exit (1);
10401 fprintf (f, "%ld\n", i);
10402 }
10403 else
10404 {
10405 unsigned long i = ulongval ();
10406 if (i != (__alignof (omp_lock_t)))
10407 exit (1);
10408 fprintf (f, "%lu\n", i);
10409 }
10410 exit (ferror (f) || fclose (f) != 0);
10411
10412 ;
10413 return 0;
10414}
10415_ACEOF
10416rm -f conftest$ac_exeext
10417if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10418 (eval $ac_link) 2>&5
10419 ac_status=$?
10420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10421 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10423 (eval $ac_try) 2>&5
10424 ac_status=$?
10425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10426 (exit $ac_status); }; }; then
10427 OMP_LOCK_ALIGN=`cat conftest.val`
10428else
10429 echo "$as_me: program exited with status $ac_status" >&5
10430echo "$as_me: failed program was:" >&5
10431sed 's/^/| /' conftest.$ac_ext >&5
10432
10433fi
10434rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10435fi
10436fi
10437rm -f conftest.val
10438if test "$cross_compiling" = yes; then
10439 # Depending upon the size, compute the lo and hi bounds.
10440cat >conftest.$ac_ext <<_ACEOF
10441/* confdefs.h. */
10442_ACEOF
10443cat confdefs.h >>conftest.$ac_ext
10444cat >>conftest.$ac_ext <<_ACEOF
10445/* end confdefs.h. */
10446
10447int
10448main ()
10449{
10450static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) >= 0)];
10451test_array [0] = 0
10452
10453 ;
10454 return 0;
10455}
10456_ACEOF
10457rm -f conftest.$ac_objext
10458if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10459 (eval $ac_compile) 2>conftest.er1
10460 ac_status=$?
10461 grep -v '^ *+' conftest.er1 >conftest.err
10462 rm -f conftest.er1
10463 cat conftest.err >&5
10464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10465 (exit $ac_status); } &&
59da30e1 10466 { ac_try='test -z "$ac_c_werror_flag"
10467 || test ! -s conftest.err'
107c3bbf 10468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10469 (eval $ac_try) 2>&5
10470 ac_status=$?
10471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10472 (exit $ac_status); }; } &&
10473 { ac_try='test -s conftest.$ac_objext'
10474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10475 (eval $ac_try) 2>&5
10476 ac_status=$?
10477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10478 (exit $ac_status); }; }; then
10479 ac_lo=0 ac_mid=0
10480 while :; do
10481 cat >conftest.$ac_ext <<_ACEOF
10482/* confdefs.h. */
10483_ACEOF
10484cat confdefs.h >>conftest.$ac_ext
10485cat >>conftest.$ac_ext <<_ACEOF
10486/* end confdefs.h. */
10487
10488int
10489main ()
10490{
10491static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) <= $ac_mid)];
10492test_array [0] = 0
10493
10494 ;
10495 return 0;
10496}
10497_ACEOF
10498rm -f conftest.$ac_objext
10499if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10500 (eval $ac_compile) 2>conftest.er1
10501 ac_status=$?
10502 grep -v '^ *+' conftest.er1 >conftest.err
10503 rm -f conftest.er1
10504 cat conftest.err >&5
10505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10506 (exit $ac_status); } &&
59da30e1 10507 { ac_try='test -z "$ac_c_werror_flag"
10508 || test ! -s conftest.err'
107c3bbf 10509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10510 (eval $ac_try) 2>&5
10511 ac_status=$?
10512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10513 (exit $ac_status); }; } &&
10514 { ac_try='test -s conftest.$ac_objext'
10515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10516 (eval $ac_try) 2>&5
10517 ac_status=$?
10518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10519 (exit $ac_status); }; }; then
10520 ac_hi=$ac_mid; break
10521else
10522 echo "$as_me: failed program was:" >&5
10523sed 's/^/| /' conftest.$ac_ext >&5
10524
10525ac_lo=`expr $ac_mid + 1`
10526 if test $ac_lo -le $ac_mid; then
10527 ac_lo= ac_hi=
10528 break
10529 fi
10530 ac_mid=`expr 2 '*' $ac_mid + 1`
10531fi
10532rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10533 done
10534else
10535 echo "$as_me: failed program was:" >&5
10536sed 's/^/| /' conftest.$ac_ext >&5
10537
10538cat >conftest.$ac_ext <<_ACEOF
10539/* confdefs.h. */
10540_ACEOF
10541cat confdefs.h >>conftest.$ac_ext
10542cat >>conftest.$ac_ext <<_ACEOF
10543/* end confdefs.h. */
10544
10545int
10546main ()
10547{
10548static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) < 0)];
10549test_array [0] = 0
10550
10551 ;
10552 return 0;
10553}
10554_ACEOF
10555rm -f conftest.$ac_objext
10556if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10557 (eval $ac_compile) 2>conftest.er1
10558 ac_status=$?
10559 grep -v '^ *+' conftest.er1 >conftest.err
10560 rm -f conftest.er1
10561 cat conftest.err >&5
10562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10563 (exit $ac_status); } &&
59da30e1 10564 { ac_try='test -z "$ac_c_werror_flag"
10565 || test ! -s conftest.err'
107c3bbf 10566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10567 (eval $ac_try) 2>&5
10568 ac_status=$?
10569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10570 (exit $ac_status); }; } &&
10571 { ac_try='test -s conftest.$ac_objext'
10572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10573 (eval $ac_try) 2>&5
10574 ac_status=$?
10575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10576 (exit $ac_status); }; }; then
10577 ac_hi=-1 ac_mid=-1
10578 while :; do
10579 cat >conftest.$ac_ext <<_ACEOF
10580/* confdefs.h. */
10581_ACEOF
10582cat confdefs.h >>conftest.$ac_ext
10583cat >>conftest.$ac_ext <<_ACEOF
10584/* end confdefs.h. */
10585
10586int
10587main ()
10588{
10589static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) >= $ac_mid)];
10590test_array [0] = 0
10591
10592 ;
10593 return 0;
10594}
10595_ACEOF
10596rm -f conftest.$ac_objext
10597if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10598 (eval $ac_compile) 2>conftest.er1
10599 ac_status=$?
10600 grep -v '^ *+' conftest.er1 >conftest.err
10601 rm -f conftest.er1
10602 cat conftest.err >&5
10603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10604 (exit $ac_status); } &&
59da30e1 10605 { ac_try='test -z "$ac_c_werror_flag"
10606 || test ! -s conftest.err'
107c3bbf 10607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10608 (eval $ac_try) 2>&5
10609 ac_status=$?
10610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10611 (exit $ac_status); }; } &&
10612 { ac_try='test -s conftest.$ac_objext'
10613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10614 (eval $ac_try) 2>&5
10615 ac_status=$?
10616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10617 (exit $ac_status); }; }; then
10618 ac_lo=$ac_mid; break
10619else
10620 echo "$as_me: failed program was:" >&5
10621sed 's/^/| /' conftest.$ac_ext >&5
10622
10623ac_hi=`expr '(' $ac_mid ')' - 1`
10624 if test $ac_mid -le $ac_hi; then
10625 ac_lo= ac_hi=
10626 break
10627 fi
10628 ac_mid=`expr 2 '*' $ac_mid`
10629fi
10630rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10631 done
10632else
10633 echo "$as_me: failed program was:" >&5
10634sed 's/^/| /' conftest.$ac_ext >&5
10635
10636ac_lo= ac_hi=
10637fi
10638rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10639fi
10640rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10641# Binary search between lo and hi bounds.
10642while test "x$ac_lo" != "x$ac_hi"; do
10643 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10644 cat >conftest.$ac_ext <<_ACEOF
10645/* confdefs.h. */
10646_ACEOF
10647cat confdefs.h >>conftest.$ac_ext
10648cat >>conftest.$ac_ext <<_ACEOF
10649/* end confdefs.h. */
10650
10651int
10652main ()
10653{
10654static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) <= $ac_mid)];
10655test_array [0] = 0
10656
10657 ;
10658 return 0;
10659}
10660_ACEOF
10661rm -f conftest.$ac_objext
10662if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10663 (eval $ac_compile) 2>conftest.er1
10664 ac_status=$?
10665 grep -v '^ *+' conftest.er1 >conftest.err
10666 rm -f conftest.er1
10667 cat conftest.err >&5
10668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10669 (exit $ac_status); } &&
59da30e1 10670 { ac_try='test -z "$ac_c_werror_flag"
10671 || test ! -s conftest.err'
107c3bbf 10672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10673 (eval $ac_try) 2>&5
10674 ac_status=$?
10675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10676 (exit $ac_status); }; } &&
10677 { ac_try='test -s conftest.$ac_objext'
10678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10679 (eval $ac_try) 2>&5
10680 ac_status=$?
10681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10682 (exit $ac_status); }; }; then
10683 ac_hi=$ac_mid
10684else
10685 echo "$as_me: failed program was:" >&5
10686sed 's/^/| /' conftest.$ac_ext >&5
10687
10688ac_lo=`expr '(' $ac_mid ')' + 1`
10689fi
10690rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10691done
10692case $ac_lo in
10693?*) OMP_NEST_LOCK_SIZE=$ac_lo;;
10694'') ;;
10695esac
10696else
10697 if test "$cross_compiling" = yes; then
59da30e1 10698 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10699See \`config.log' for more details." >&5
10700echo "$as_me: error: cannot run test program while cross compiling
10701See \`config.log' for more details." >&2;}
107c3bbf 10702 { (exit 1); exit 1; }; }
10703else
10704 cat >conftest.$ac_ext <<_ACEOF
10705/* confdefs.h. */
10706_ACEOF
10707cat confdefs.h >>conftest.$ac_ext
10708cat >>conftest.$ac_ext <<_ACEOF
10709/* end confdefs.h. */
10710
10711long longval () { return sizeof (omp_nest_lock_t); }
10712unsigned long ulongval () { return sizeof (omp_nest_lock_t); }
10713#include <stdio.h>
10714#include <stdlib.h>
10715int
10716main ()
10717{
10718
10719 FILE *f = fopen ("conftest.val", "w");
10720 if (! f)
10721 exit (1);
10722 if ((sizeof (omp_nest_lock_t)) < 0)
10723 {
10724 long i = longval ();
10725 if (i != (sizeof (omp_nest_lock_t)))
10726 exit (1);
10727 fprintf (f, "%ld\n", i);
10728 }
10729 else
10730 {
10731 unsigned long i = ulongval ();
10732 if (i != (sizeof (omp_nest_lock_t)))
10733 exit (1);
10734 fprintf (f, "%lu\n", i);
10735 }
10736 exit (ferror (f) || fclose (f) != 0);
10737
10738 ;
10739 return 0;
10740}
10741_ACEOF
10742rm -f conftest$ac_exeext
10743if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10744 (eval $ac_link) 2>&5
10745 ac_status=$?
10746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10747 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10749 (eval $ac_try) 2>&5
10750 ac_status=$?
10751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10752 (exit $ac_status); }; }; then
10753 OMP_NEST_LOCK_SIZE=`cat conftest.val`
10754else
10755 echo "$as_me: program exited with status $ac_status" >&5
10756echo "$as_me: failed program was:" >&5
10757sed 's/^/| /' conftest.$ac_ext >&5
10758
10759fi
10760rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10761fi
10762fi
10763rm -f conftest.val
10764if test "$cross_compiling" = yes; then
10765 # Depending upon the size, compute the lo and hi bounds.
10766cat >conftest.$ac_ext <<_ACEOF
10767/* confdefs.h. */
10768_ACEOF
10769cat confdefs.h >>conftest.$ac_ext
10770cat >>conftest.$ac_ext <<_ACEOF
10771/* end confdefs.h. */
10772
10773int
10774main ()
10775{
10776static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) >= 0)];
10777test_array [0] = 0
10778
10779 ;
10780 return 0;
10781}
10782_ACEOF
10783rm -f conftest.$ac_objext
10784if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10785 (eval $ac_compile) 2>conftest.er1
10786 ac_status=$?
10787 grep -v '^ *+' conftest.er1 >conftest.err
10788 rm -f conftest.er1
10789 cat conftest.err >&5
10790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10791 (exit $ac_status); } &&
59da30e1 10792 { ac_try='test -z "$ac_c_werror_flag"
10793 || test ! -s conftest.err'
107c3bbf 10794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10795 (eval $ac_try) 2>&5
10796 ac_status=$?
10797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10798 (exit $ac_status); }; } &&
10799 { ac_try='test -s conftest.$ac_objext'
10800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10801 (eval $ac_try) 2>&5
10802 ac_status=$?
10803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10804 (exit $ac_status); }; }; then
10805 ac_lo=0 ac_mid=0
10806 while :; do
10807 cat >conftest.$ac_ext <<_ACEOF
10808/* confdefs.h. */
10809_ACEOF
10810cat confdefs.h >>conftest.$ac_ext
10811cat >>conftest.$ac_ext <<_ACEOF
10812/* end confdefs.h. */
10813
10814int
10815main ()
10816{
10817static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) <= $ac_mid)];
10818test_array [0] = 0
10819
10820 ;
10821 return 0;
10822}
10823_ACEOF
10824rm -f conftest.$ac_objext
10825if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10826 (eval $ac_compile) 2>conftest.er1
10827 ac_status=$?
10828 grep -v '^ *+' conftest.er1 >conftest.err
10829 rm -f conftest.er1
10830 cat conftest.err >&5
10831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10832 (exit $ac_status); } &&
59da30e1 10833 { ac_try='test -z "$ac_c_werror_flag"
10834 || test ! -s conftest.err'
107c3bbf 10835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10836 (eval $ac_try) 2>&5
10837 ac_status=$?
10838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10839 (exit $ac_status); }; } &&
10840 { ac_try='test -s conftest.$ac_objext'
10841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10842 (eval $ac_try) 2>&5
10843 ac_status=$?
10844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10845 (exit $ac_status); }; }; then
10846 ac_hi=$ac_mid; break
10847else
10848 echo "$as_me: failed program was:" >&5
10849sed 's/^/| /' conftest.$ac_ext >&5
10850
10851ac_lo=`expr $ac_mid + 1`
10852 if test $ac_lo -le $ac_mid; then
10853 ac_lo= ac_hi=
10854 break
10855 fi
10856 ac_mid=`expr 2 '*' $ac_mid + 1`
10857fi
10858rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10859 done
10860else
10861 echo "$as_me: failed program was:" >&5
10862sed 's/^/| /' conftest.$ac_ext >&5
10863
10864cat >conftest.$ac_ext <<_ACEOF
10865/* confdefs.h. */
10866_ACEOF
10867cat confdefs.h >>conftest.$ac_ext
10868cat >>conftest.$ac_ext <<_ACEOF
10869/* end confdefs.h. */
10870
10871int
10872main ()
10873{
10874static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) < 0)];
10875test_array [0] = 0
10876
10877 ;
10878 return 0;
10879}
10880_ACEOF
10881rm -f conftest.$ac_objext
10882if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10883 (eval $ac_compile) 2>conftest.er1
10884 ac_status=$?
10885 grep -v '^ *+' conftest.er1 >conftest.err
10886 rm -f conftest.er1
10887 cat conftest.err >&5
10888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10889 (exit $ac_status); } &&
59da30e1 10890 { ac_try='test -z "$ac_c_werror_flag"
10891 || test ! -s conftest.err'
107c3bbf 10892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10893 (eval $ac_try) 2>&5
10894 ac_status=$?
10895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10896 (exit $ac_status); }; } &&
10897 { ac_try='test -s conftest.$ac_objext'
10898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10899 (eval $ac_try) 2>&5
10900 ac_status=$?
10901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10902 (exit $ac_status); }; }; then
10903 ac_hi=-1 ac_mid=-1
10904 while :; do
10905 cat >conftest.$ac_ext <<_ACEOF
10906/* confdefs.h. */
10907_ACEOF
10908cat confdefs.h >>conftest.$ac_ext
10909cat >>conftest.$ac_ext <<_ACEOF
10910/* end confdefs.h. */
10911
10912int
10913main ()
10914{
10915static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) >= $ac_mid)];
10916test_array [0] = 0
10917
10918 ;
10919 return 0;
10920}
10921_ACEOF
10922rm -f conftest.$ac_objext
10923if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10924 (eval $ac_compile) 2>conftest.er1
10925 ac_status=$?
10926 grep -v '^ *+' conftest.er1 >conftest.err
10927 rm -f conftest.er1
10928 cat conftest.err >&5
10929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10930 (exit $ac_status); } &&
59da30e1 10931 { ac_try='test -z "$ac_c_werror_flag"
10932 || test ! -s conftest.err'
107c3bbf 10933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10934 (eval $ac_try) 2>&5
10935 ac_status=$?
10936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10937 (exit $ac_status); }; } &&
10938 { ac_try='test -s conftest.$ac_objext'
10939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10940 (eval $ac_try) 2>&5
10941 ac_status=$?
10942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10943 (exit $ac_status); }; }; then
10944 ac_lo=$ac_mid; break
10945else
10946 echo "$as_me: failed program was:" >&5
10947sed 's/^/| /' conftest.$ac_ext >&5
10948
10949ac_hi=`expr '(' $ac_mid ')' - 1`
10950 if test $ac_mid -le $ac_hi; then
10951 ac_lo= ac_hi=
10952 break
10953 fi
10954 ac_mid=`expr 2 '*' $ac_mid`
10955fi
10956rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10957 done
10958else
10959 echo "$as_me: failed program was:" >&5
10960sed 's/^/| /' conftest.$ac_ext >&5
10961
10962ac_lo= ac_hi=
10963fi
10964rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10965fi
10966rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10967# Binary search between lo and hi bounds.
10968while test "x$ac_lo" != "x$ac_hi"; do
10969 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10970 cat >conftest.$ac_ext <<_ACEOF
10971/* confdefs.h. */
10972_ACEOF
10973cat confdefs.h >>conftest.$ac_ext
10974cat >>conftest.$ac_ext <<_ACEOF
10975/* end confdefs.h. */
10976
10977int
10978main ()
10979{
10980static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) <= $ac_mid)];
10981test_array [0] = 0
10982
10983 ;
10984 return 0;
10985}
10986_ACEOF
10987rm -f conftest.$ac_objext
10988if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10989 (eval $ac_compile) 2>conftest.er1
10990 ac_status=$?
10991 grep -v '^ *+' conftest.er1 >conftest.err
10992 rm -f conftest.er1
10993 cat conftest.err >&5
10994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10995 (exit $ac_status); } &&
59da30e1 10996 { ac_try='test -z "$ac_c_werror_flag"
10997 || test ! -s conftest.err'
107c3bbf 10998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10999 (eval $ac_try) 2>&5
11000 ac_status=$?
11001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11002 (exit $ac_status); }; } &&
11003 { ac_try='test -s conftest.$ac_objext'
11004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11005 (eval $ac_try) 2>&5
11006 ac_status=$?
11007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11008 (exit $ac_status); }; }; then
11009 ac_hi=$ac_mid
11010else
11011 echo "$as_me: failed program was:" >&5
11012sed 's/^/| /' conftest.$ac_ext >&5
11013
11014ac_lo=`expr '(' $ac_mid ')' + 1`
11015fi
11016rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11017done
11018case $ac_lo in
11019?*) OMP_NEST_LOCK_ALIGN=$ac_lo;;
11020'') ;;
11021esac
11022else
11023 if test "$cross_compiling" = yes; then
59da30e1 11024 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11025See \`config.log' for more details." >&5
11026echo "$as_me: error: cannot run test program while cross compiling
11027See \`config.log' for more details." >&2;}
107c3bbf 11028 { (exit 1); exit 1; }; }
11029else
11030 cat >conftest.$ac_ext <<_ACEOF
11031/* confdefs.h. */
11032_ACEOF
11033cat confdefs.h >>conftest.$ac_ext
11034cat >>conftest.$ac_ext <<_ACEOF
11035/* end confdefs.h. */
11036
11037long longval () { return __alignof (omp_nest_lock_t); }
11038unsigned long ulongval () { return __alignof (omp_nest_lock_t); }
11039#include <stdio.h>
11040#include <stdlib.h>
11041int
11042main ()
11043{
11044
11045 FILE *f = fopen ("conftest.val", "w");
11046 if (! f)
11047 exit (1);
11048 if ((__alignof (omp_nest_lock_t)) < 0)
11049 {
11050 long i = longval ();
11051 if (i != (__alignof (omp_nest_lock_t)))
11052 exit (1);
11053 fprintf (f, "%ld\n", i);
11054 }
11055 else
11056 {
11057 unsigned long i = ulongval ();
11058 if (i != (__alignof (omp_nest_lock_t)))
11059 exit (1);
11060 fprintf (f, "%lu\n", i);
11061 }
11062 exit (ferror (f) || fclose (f) != 0);
11063
11064 ;
11065 return 0;
11066}
11067_ACEOF
11068rm -f conftest$ac_exeext
11069if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11070 (eval $ac_link) 2>&5
11071 ac_status=$?
11072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11073 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11075 (eval $ac_try) 2>&5
11076 ac_status=$?
11077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11078 (exit $ac_status); }; }; then
11079 OMP_NEST_LOCK_ALIGN=`cat conftest.val`
11080else
11081 echo "$as_me: program exited with status $ac_status" >&5
11082echo "$as_me: failed program was:" >&5
11083sed 's/^/| /' conftest.$ac_ext >&5
11084
11085fi
11086rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11087fi
11088fi
11089rm -f conftest.val
11090
11091# If the lock fits in an integer, then arrange for Fortran to use that
11092# integer. If it doesn't, then arrange for Fortran to use a pointer.
11093# Except that we don't have a way at present to multi-lib the installed
11094# Fortran modules, so we assume 8 bytes for pointers, regardless of the
11095# actual target.
11096OMP_LOCK_KIND=$OMP_LOCK_SIZE
11097OMP_NEST_LOCK_KIND=$OMP_NEST_LOCK_SIZE
11098if test $OMP_LOCK_SIZE -gt 8 || test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then
11099 OMP_LOCK_KIND=8
11100fi
11101if test $OMP_NEST_LOCK_SIZE -gt 8 || test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then
11102 OMP_NEST_LOCK_KIND=8
11103fi
11104
11105
11106
11107
11108
11109
11110
11111CFLAGS="$save_CFLAGS"
11112
11113 ac_config_files="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h"
11114
1e8e9920 11115 ac_config_files="$ac_config_files Makefile testsuite/Makefile libgomp.spec"
11116
11117cat >confcache <<\_ACEOF
11118# This file is a shell script that caches the results of configure
11119# tests run on this system so they can be shared between configure
11120# scripts and configure runs, see configure's option --config-cache.
11121# It is not useful on other systems. If it contains results you don't
11122# want to keep, you may remove or edit it.
11123#
11124# config.status only pays attention to the cache file if you give it
11125# the --recheck option to rerun configure.
11126#
11127# `ac_cv_env_foo' variables (set or unset) will be overridden when
11128# loading this file, other *unset* `ac_cv_foo' will be assigned the
11129# following values.
11130
11131_ACEOF
11132
11133# The following way of writing the cache mishandles newlines in values,
11134# but we know of no workaround that is simple, portable, and efficient.
11135# So, don't put newlines in cache variables' values.
11136# Ultrix sh set writes to stderr and can't be redirected directly,
11137# and sets the high bit in the cache file unless we assign to the vars.
11138{
11139 (set) 2>&1 |
11140 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11141 *ac_space=\ *)
11142 # `set' does not quote correctly, so add quotes (double-quote
11143 # substitution turns \\\\ into \\, and sed turns \\ into \).
11144 sed -n \
11145 "s/'/'\\\\''/g;
11146 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11147 ;;
11148 *)
11149 # `set' quotes correctly as required by POSIX, so do not add quotes.
11150 sed -n \
11151 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11152 ;;
11153 esac;
11154} |
11155 sed '
11156 t clear
11157 : clear
11158 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11159 t end
11160 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11161 : end' >>confcache
11162if diff $cache_file confcache >/dev/null 2>&1; then :; else
11163 if test -w $cache_file; then
11164 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11165 cat confcache >$cache_file
11166 else
11167 echo "not updating unwritable cache $cache_file"
11168 fi
11169fi
11170rm -f confcache
11171
11172test "x$prefix" = xNONE && prefix=$ac_default_prefix
11173# Let make expand exec_prefix.
11174test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11175
11176# VPATH may cause trouble with some makes, so we remove $(srcdir),
11177# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11178# trailing colons and then remove the whole line if VPATH becomes empty
11179# (actually we leave an empty line to preserve line numbers).
11180if test "x$srcdir" = x.; then
11181 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11182s/:*\$(srcdir):*/:/;
11183s/:*\${srcdir}:*/:/;
11184s/:*@srcdir@:*/:/;
11185s/^\([^=]*=[ ]*\):*/\1/;
11186s/:*$//;
11187s/^[^=]*=[ ]*$//;
11188}'
11189fi
11190
11191DEFS=-DHAVE_CONFIG_H
11192
11193ac_libobjs=
11194ac_ltlibobjs=
11195for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11196 # 1. Remove the extension, and $U if already installed.
11197 ac_i=`echo "$ac_i" |
11198 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11199 # 2. Add them.
11200 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11201 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11202done
11203LIBOBJS=$ac_libobjs
11204
11205LTLIBOBJS=$ac_ltlibobjs
11206
11207
aeda7a78 11208if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
11209 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC\" was never defined.
11210Usually this means the macro was only invoked conditionally." >&5
11211echo "$as_me: error: conditional \"GENINSRC\" was never defined.
11212Usually this means the macro was only invoked conditionally." >&2;}
11213 { (exit 1); exit 1; }; }
11214fi
1e8e9920 11215if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11216 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11217Usually this means the macro was only invoked conditionally." >&5
11218echo "$as_me: error: conditional \"AMDEP\" was never defined.
11219Usually this means the macro was only invoked conditionally." >&2;}
11220 { (exit 1); exit 1; }; }
11221fi
11222if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11223 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11224Usually this means the macro was only invoked conditionally." >&5
11225echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11226Usually this means the macro was only invoked conditionally." >&2;}
11227 { (exit 1); exit 1; }; }
11228fi
439d698f 11229if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
11230 { { echo "$as_me:$LINENO: error: conditional \"BUILD_INFO\" was never defined.
11231Usually this means the macro was only invoked conditionally." >&5
11232echo "$as_me: error: conditional \"BUILD_INFO\" was never defined.
11233Usually this means the macro was only invoked conditionally." >&2;}
11234 { (exit 1); exit 1; }; }
11235fi
a263d1ab 11236if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11237 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
11238Usually this means the macro was only invoked conditionally." >&5
11239echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
11240Usually this means the macro was only invoked conditionally." >&2;}
11241 { (exit 1); exit 1; }; }
11242fi
1e8e9920 11243if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then
11244 { { echo "$as_me:$LINENO: error: conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
11245Usually this means the macro was only invoked conditionally." >&5
11246echo "$as_me: error: conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
11247Usually this means the macro was only invoked conditionally." >&2;}
11248 { (exit 1); exit 1; }; }
11249fi
11250if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then
11251 { { echo "$as_me:$LINENO: error: conditional \"USE_FORTRAN\" was never defined.
11252Usually this means the macro was only invoked conditionally." >&5
11253echo "$as_me: error: conditional \"USE_FORTRAN\" was never defined.
11254Usually this means the macro was only invoked conditionally." >&2;}
11255 { (exit 1); exit 1; }; }
11256fi
11257
11258: ${CONFIG_STATUS=./config.status}
11259ac_clean_files_save=$ac_clean_files
11260ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11261{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11262echo "$as_me: creating $CONFIG_STATUS" >&6;}
11263cat >$CONFIG_STATUS <<_ACEOF
11264#! $SHELL
11265# Generated by $as_me.
11266# Run this file to recreate the current configuration.
11267# Compiler output produced by configure, useful for debugging
11268# configure, is in config.log if it exists.
11269
11270debug=false
11271ac_cs_recheck=false
11272ac_cs_silent=false
11273SHELL=\${CONFIG_SHELL-$SHELL}
11274_ACEOF
11275
11276cat >>$CONFIG_STATUS <<\_ACEOF
11277## --------------------- ##
11278## M4sh Initialization. ##
11279## --------------------- ##
11280
11281# Be Bourne compatible
11282if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11283 emulate sh
11284 NULLCMD=:
11285 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11286 # is contrary to our usage. Disable this feature.
11287 alias -g '${1+"$@"}'='"$@"'
11288elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11289 set -o posix
11290fi
11291DUALCASE=1; export DUALCASE # for MKS sh
11292
11293# Support unset when possible.
11294if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11295 as_unset=unset
11296else
11297 as_unset=false
11298fi
11299
11300
11301# Work around bugs in pre-3.0 UWIN ksh.
11302$as_unset ENV MAIL MAILPATH
11303PS1='$ '
11304PS2='> '
11305PS4='+ '
11306
11307# NLS nuisances.
11308for as_var in \
11309 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11310 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11311 LC_TELEPHONE LC_TIME
11312do
11313 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11314 eval $as_var=C; export $as_var
11315 else
11316 $as_unset $as_var
11317 fi
11318done
11319
11320# Required to use basename.
11321if expr a : '\(a\)' >/dev/null 2>&1; then
11322 as_expr=expr
11323else
11324 as_expr=false
11325fi
11326
11327if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11328 as_basename=basename
11329else
11330 as_basename=false
11331fi
11332
11333
11334# Name of the executable.
11335as_me=`$as_basename "$0" ||
11336$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11337 X"$0" : 'X\(//\)$' \| \
11338 X"$0" : 'X\(/\)$' \| \
11339 . : '\(.\)' 2>/dev/null ||
11340echo X/"$0" |
11341 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11342 /^X\/\(\/\/\)$/{ s//\1/; q; }
11343 /^X\/\(\/\).*/{ s//\1/; q; }
11344 s/.*/./; q'`
11345
11346
11347# PATH needs CR, and LINENO needs CR and PATH.
11348# Avoid depending upon Character Ranges.
11349as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11350as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11351as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11352as_cr_digits='0123456789'
11353as_cr_alnum=$as_cr_Letters$as_cr_digits
11354
11355# The user is always right.
11356if test "${PATH_SEPARATOR+set}" != set; then
11357 echo "#! /bin/sh" >conf$$.sh
11358 echo "exit 0" >>conf$$.sh
11359 chmod +x conf$$.sh
11360 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11361 PATH_SEPARATOR=';'
11362 else
11363 PATH_SEPARATOR=:
11364 fi
11365 rm -f conf$$.sh
11366fi
11367
11368
11369 as_lineno_1=$LINENO
11370 as_lineno_2=$LINENO
11371 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11372 test "x$as_lineno_1" != "x$as_lineno_2" &&
11373 test "x$as_lineno_3" = "x$as_lineno_2" || {
11374 # Find who we are. Look in the path if we contain no path at all
11375 # relative or not.
11376 case $0 in
11377 *[\\/]* ) as_myself=$0 ;;
11378 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11379for as_dir in $PATH
11380do
11381 IFS=$as_save_IFS
11382 test -z "$as_dir" && as_dir=.
11383 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11384done
11385
11386 ;;
11387 esac
11388 # We did not find ourselves, most probably we were run as `sh COMMAND'
11389 # in which case we are not to be found in the path.
11390 if test "x$as_myself" = x; then
11391 as_myself=$0
11392 fi
11393 if test ! -f "$as_myself"; then
11394 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11395echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11396 { (exit 1); exit 1; }; }
11397 fi
11398 case $CONFIG_SHELL in
11399 '')
11400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11401for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11402do
11403 IFS=$as_save_IFS
11404 test -z "$as_dir" && as_dir=.
11405 for as_base in sh bash ksh sh5; do
11406 case $as_dir in
11407 /*)
11408 if ("$as_dir/$as_base" -c '
11409 as_lineno_1=$LINENO
11410 as_lineno_2=$LINENO
11411 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11412 test "x$as_lineno_1" != "x$as_lineno_2" &&
11413 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11414 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11415 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11416 CONFIG_SHELL=$as_dir/$as_base
11417 export CONFIG_SHELL
11418 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11419 fi;;
11420 esac
11421 done
11422done
11423;;
11424 esac
11425
11426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11427 # uniformly replaced by the line number. The first 'sed' inserts a
11428 # line-number line before each line; the second 'sed' does the real
11429 # work. The second script uses 'N' to pair each line-number line
11430 # with the numbered line, and appends trailing '-' during
11431 # substitution so that $LINENO is not a special case at line end.
11432 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11433 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11434 sed '=' <$as_myself |
11435 sed '
11436 N
11437 s,$,-,
11438 : loop
11439 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11440 t loop
11441 s,-$,,
11442 s,^['$as_cr_digits']*\n,,
11443 ' >$as_me.lineno &&
11444 chmod +x $as_me.lineno ||
11445 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11446echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11447 { (exit 1); exit 1; }; }
11448
11449 # Don't try to exec as it changes $[0], causing all sort of problems
11450 # (the dirname of $[0] is not the place where we might find the
11451 # original and so on. Autoconf is especially sensible to this).
11452 . ./$as_me.lineno
11453 # Exit status is that of the last command.
11454 exit
11455}
11456
11457
11458case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11459 *c*,-n*) ECHO_N= ECHO_C='
11460' ECHO_T=' ' ;;
11461 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11462 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
11463esac
11464
11465if expr a : '\(a\)' >/dev/null 2>&1; then
11466 as_expr=expr
11467else
11468 as_expr=false
11469fi
11470
11471rm -f conf$$ conf$$.exe conf$$.file
11472echo >conf$$.file
11473if ln -s conf$$.file conf$$ 2>/dev/null; then
11474 # We could just check for DJGPP; but this test a) works b) is more generic
11475 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11476 if test -f conf$$.exe; then
11477 # Don't use ln at all; we don't have any links
11478 as_ln_s='cp -p'
11479 else
11480 as_ln_s='ln -s'
11481 fi
11482elif ln conf$$.file conf$$ 2>/dev/null; then
11483 as_ln_s=ln
11484else
11485 as_ln_s='cp -p'
11486fi
11487rm -f conf$$ conf$$.exe conf$$.file
11488
11489if mkdir -p . 2>/dev/null; then
11490 as_mkdir_p=:
11491else
11492 test -d ./-p && rmdir ./-p
11493 as_mkdir_p=false
11494fi
11495
11496as_executable_p="test -f"
11497
11498# Sed expression to map a string onto a valid CPP name.
11499as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11500
11501# Sed expression to map a string onto a valid variable name.
11502as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11503
11504
11505# IFS
11506# We need space, tab and new line, in precisely that order.
11507as_nl='
11508'
11509IFS=" $as_nl"
11510
11511# CDPATH.
11512$as_unset CDPATH
11513
11514exec 6>&1
11515
11516# Open the log real soon, to keep \$[0] and so on meaningful, and to
11517# report actual input values of CONFIG_FILES etc. instead of their
11518# values after options handling. Logging --version etc. is OK.
11519exec 5>>config.log
11520{
11521 echo
11522 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11523## Running $as_me. ##
11524_ASBOX
11525} >&5
11526cat >&5 <<_CSEOF
11527
11528This file was extended by GNU OpenMP Runtime Library $as_me 1.0, which was
11529generated by GNU Autoconf 2.59. Invocation command line was
11530
11531 CONFIG_FILES = $CONFIG_FILES
11532 CONFIG_HEADERS = $CONFIG_HEADERS
11533 CONFIG_LINKS = $CONFIG_LINKS
11534 CONFIG_COMMANDS = $CONFIG_COMMANDS
11535 $ $0 $@
11536
11537_CSEOF
11538echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11539echo >&5
11540_ACEOF
11541
11542# Files that config.status was made for.
11543if test -n "$ac_config_files"; then
11544 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11545fi
11546
11547if test -n "$ac_config_headers"; then
11548 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11549fi
11550
11551if test -n "$ac_config_links"; then
11552 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11553fi
11554
11555if test -n "$ac_config_commands"; then
11556 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11557fi
11558
11559cat >>$CONFIG_STATUS <<\_ACEOF
11560
11561ac_cs_usage="\
11562\`$as_me' instantiates files from templates according to the
11563current configuration.
11564
11565Usage: $0 [OPTIONS] [FILE]...
11566
11567 -h, --help print this help, then exit
11568 -V, --version print version number, then exit
11569 -q, --quiet do not print progress messages
11570 -d, --debug don't remove temporary files
11571 --recheck update $as_me by reconfiguring in the same conditions
11572 --file=FILE[:TEMPLATE]
11573 instantiate the configuration file FILE
11574 --header=FILE[:TEMPLATE]
11575 instantiate the configuration header FILE
11576
11577Configuration files:
11578$config_files
11579
11580Configuration headers:
11581$config_headers
11582
11583Configuration commands:
11584$config_commands
11585
11586Report bugs to <bug-autoconf@gnu.org>."
11587_ACEOF
11588
11589cat >>$CONFIG_STATUS <<_ACEOF
11590ac_cs_version="\\
11591GNU OpenMP Runtime Library config.status 1.0
11592configured by $0, generated by GNU Autoconf 2.59,
11593 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11594
11595Copyright (C) 2003 Free Software Foundation, Inc.
11596This config.status script is free software; the Free Software Foundation
11597gives unlimited permission to copy, distribute and modify it."
11598srcdir=$srcdir
11599INSTALL="$INSTALL"
11600_ACEOF
11601
11602cat >>$CONFIG_STATUS <<\_ACEOF
11603# If no file are specified by the user, then we need to provide default
11604# value. By we need to know if files were specified by the user.
11605ac_need_defaults=:
11606while test $# != 0
11607do
11608 case $1 in
11609 --*=*)
11610 ac_option=`expr "x$1" : 'x\([^=]*\)='`
11611 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11612 ac_shift=:
11613 ;;
11614 -*)
11615 ac_option=$1
11616 ac_optarg=$2
11617 ac_shift=shift
11618 ;;
11619 *) # This is not an option, so the user has probably given explicit
11620 # arguments.
11621 ac_option=$1
11622 ac_need_defaults=false;;
11623 esac
11624
11625 case $ac_option in
11626 # Handling of the options.
11627_ACEOF
11628cat >>$CONFIG_STATUS <<\_ACEOF
11629 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11630 ac_cs_recheck=: ;;
11631 --version | --vers* | -V )
11632 echo "$ac_cs_version"; exit 0 ;;
11633 --he | --h)
11634 # Conflict between --help and --header
11635 { { echo "$as_me:$LINENO: error: ambiguous option: $1
11636Try \`$0 --help' for more information." >&5
11637echo "$as_me: error: ambiguous option: $1
11638Try \`$0 --help' for more information." >&2;}
11639 { (exit 1); exit 1; }; };;
11640 --help | --hel | -h )
11641 echo "$ac_cs_usage"; exit 0 ;;
11642 --debug | --d* | -d )
11643 debug=: ;;
11644 --file | --fil | --fi | --f )
11645 $ac_shift
11646 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11647 ac_need_defaults=false;;
11648 --header | --heade | --head | --hea )
11649 $ac_shift
11650 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11651 ac_need_defaults=false;;
11652 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11653 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11654 ac_cs_silent=: ;;
11655
11656 # This is an error.
11657 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11658Try \`$0 --help' for more information." >&5
11659echo "$as_me: error: unrecognized option: $1
11660Try \`$0 --help' for more information." >&2;}
11661 { (exit 1); exit 1; }; } ;;
11662
11663 *) ac_config_targets="$ac_config_targets $1" ;;
11664
11665 esac
11666 shift
11667done
11668
11669ac_configure_extra_args=
11670
11671if $ac_cs_silent; then
11672 exec 6>/dev/null
11673 ac_configure_extra_args="$ac_configure_extra_args --silent"
11674fi
11675
11676_ACEOF
11677cat >>$CONFIG_STATUS <<_ACEOF
11678if \$ac_cs_recheck; then
11679 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11680 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11681fi
11682
11683_ACEOF
11684
11685cat >>$CONFIG_STATUS <<_ACEOF
11686#
11687# INIT-COMMANDS section.
11688#
11689
11690
11691srcdir="$srcdir"
11692host="$host"
11693target="$target"
11694with_multisubdir="$with_multisubdir"
11695with_multisrctop="$with_multisrctop"
11696with_target_subdir="$with_target_subdir"
11697ac_configure_args="${multilib_arg} ${ac_configure_args}"
11698multi_basedir="$multi_basedir"
11699CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
11700CC="$CC"
11701AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11702
01473a49 11703GCC="$GCC"
11704CC="$CC"
11705acx_cv_header_stdint="$acx_cv_header_stdint"
11706acx_cv_type_int8_t="$acx_cv_type_int8_t"
11707acx_cv_type_int16_t="$acx_cv_type_int16_t"
11708acx_cv_type_int32_t="$acx_cv_type_int32_t"
11709acx_cv_type_int64_t="$acx_cv_type_int64_t"
11710acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
11711ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
11712ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
11713ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
11714ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
11715ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
11716ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
11717ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
11718ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
11719
11720
1e8e9920 11721_ACEOF
11722
11723
11724
11725cat >>$CONFIG_STATUS <<\_ACEOF
11726for ac_config_target in $ac_config_targets
11727do
11728 case "$ac_config_target" in
11729 # Handling of arguments.
107c3bbf 11730 "omp.h" ) CONFIG_FILES="$CONFIG_FILES omp.h" ;;
11731 "omp_lib.h" ) CONFIG_FILES="$CONFIG_FILES omp_lib.h" ;;
11732 "omp_lib.f90" ) CONFIG_FILES="$CONFIG_FILES omp_lib.f90" ;;
11733 "libgomp_f.h" ) CONFIG_FILES="$CONFIG_FILES libgomp_f.h" ;;
1e8e9920 11734 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11735 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
11736 "libgomp.spec" ) CONFIG_FILES="$CONFIG_FILES libgomp.spec" ;;
11737 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
11738 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
01473a49 11739 "gstdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
1e8e9920 11740 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11741 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11742echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11743 { (exit 1); exit 1; }; };;
11744 esac
11745done
11746
11747# If the user did not use the arguments to specify the items to instantiate,
11748# then the envvar interface is used. Set only those that are not.
11749# We use the long form for the default assignment because of an extremely
11750# bizarre bug on SunOS 4.1.3.
11751if $ac_need_defaults; then
11752 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11753 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11754 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11755fi
11756
11757# Have a temporary directory for convenience. Make it in the build tree
11758# simply because there is no reason to put it here, and in addition,
11759# creating and moving files from /tmp can sometimes cause problems.
11760# Create a temporary directory, and hook for its removal unless debugging.
11761$debug ||
11762{
11763 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11764 trap '{ (exit 1); exit 1; }' 1 2 13 15
11765}
11766
11767# Create a (secure) tmp directory for tmp files.
11768
11769{
11770 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11771 test -n "$tmp" && test -d "$tmp"
11772} ||
11773{
11774 tmp=./confstat$$-$RANDOM
11775 (umask 077 && mkdir $tmp)
11776} ||
11777{
11778 echo "$me: cannot create a temporary directory in ." >&2
11779 { (exit 1); exit 1; }
11780}
11781
11782_ACEOF
11783
11784cat >>$CONFIG_STATUS <<_ACEOF
11785
11786#
11787# CONFIG_FILES section.
11788#
11789
11790# No need to generate the scripts if there are no CONFIG_FILES.
11791# This happens for instance when ./config.status config.h
11792if test -n "\$CONFIG_FILES"; then
11793 # Protect against being on the right side of a sed subst in config.status.
11794 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11795 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11796s,@SHELL@,$SHELL,;t t
11797s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11798s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11799s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11800s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11801s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11802s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11803s,@exec_prefix@,$exec_prefix,;t t
11804s,@prefix@,$prefix,;t t
11805s,@program_transform_name@,$program_transform_name,;t t
11806s,@bindir@,$bindir,;t t
11807s,@sbindir@,$sbindir,;t t
11808s,@libexecdir@,$libexecdir,;t t
11809s,@datadir@,$datadir,;t t
11810s,@sysconfdir@,$sysconfdir,;t t
11811s,@sharedstatedir@,$sharedstatedir,;t t
11812s,@localstatedir@,$localstatedir,;t t
11813s,@libdir@,$libdir,;t t
11814s,@includedir@,$includedir,;t t
11815s,@oldincludedir@,$oldincludedir,;t t
11816s,@infodir@,$infodir,;t t
11817s,@mandir@,$mandir,;t t
11818s,@build_alias@,$build_alias,;t t
11819s,@host_alias@,$host_alias,;t t
11820s,@target_alias@,$target_alias,;t t
11821s,@DEFS@,$DEFS,;t t
11822s,@ECHO_C@,$ECHO_C,;t t
11823s,@ECHO_N@,$ECHO_N,;t t
11824s,@ECHO_T@,$ECHO_T,;t t
11825s,@LIBS@,$LIBS,;t t
aeda7a78 11826s,@GENINSRC_TRUE@,$GENINSRC_TRUE,;t t
11827s,@GENINSRC_FALSE@,$GENINSRC_FALSE,;t t
1e8e9920 11828s,@build@,$build,;t t
11829s,@build_cpu@,$build_cpu,;t t
11830s,@build_vendor@,$build_vendor,;t t
11831s,@build_os@,$build_os,;t t
11832s,@host@,$host,;t t
11833s,@host_cpu@,$host_cpu,;t t
11834s,@host_vendor@,$host_vendor,;t t
11835s,@host_os@,$host_os,;t t
11836s,@target@,$target,;t t
11837s,@target_cpu@,$target_cpu,;t t
11838s,@target_vendor@,$target_vendor,;t t
11839s,@target_os@,$target_os,;t t
11840s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11841s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11842s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11843s,@CYGPATH_W@,$CYGPATH_W,;t t
11844s,@PACKAGE@,$PACKAGE,;t t
11845s,@VERSION@,$VERSION,;t t
11846s,@ACLOCAL@,$ACLOCAL,;t t
11847s,@AUTOCONF@,$AUTOCONF,;t t
11848s,@AUTOMAKE@,$AUTOMAKE,;t t
11849s,@AUTOHEADER@,$AUTOHEADER,;t t
11850s,@MAKEINFO@,$MAKEINFO,;t t
11851s,@install_sh@,$install_sh,;t t
11852s,@STRIP@,$STRIP,;t t
11853s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
11854s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
11855s,@mkdir_p@,$mkdir_p,;t t
11856s,@AWK@,$AWK,;t t
11857s,@SET_MAKE@,$SET_MAKE,;t t
11858s,@am__leading_dot@,$am__leading_dot,;t t
11859s,@AMTAR@,$AMTAR,;t t
11860s,@am__tar@,$am__tar,;t t
11861s,@am__untar@,$am__untar,;t t
11862s,@multi_basedir@,$multi_basedir,;t t
11863s,@toolexecdir@,$toolexecdir,;t t
11864s,@toolexeclibdir@,$toolexeclibdir,;t t
11865s,@CC@,$CC,;t t
11866s,@ac_ct_CC@,$ac_ct_CC,;t t
11867s,@EXEEXT@,$EXEEXT,;t t
11868s,@OBJEXT@,$OBJEXT,;t t
11869s,@DEPDIR@,$DEPDIR,;t t
11870s,@am__include@,$am__include,;t t
11871s,@am__quote@,$am__quote,;t t
11872s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
11873s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
11874s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
11875s,@CCDEPMODE@,$CCDEPMODE,;t t
11876s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
11877s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
11878s,@CFLAGS@,$CFLAGS,;t t
11879s,@AR@,$AR,;t t
11880s,@ac_ct_AR@,$ac_ct_AR,;t t
11881s,@RANLIB@,$RANLIB,;t t
11882s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11883s,@PERL@,$PERL,;t t
439d698f 11884s,@BUILD_INFO_TRUE@,$BUILD_INFO_TRUE,;t t
11885s,@BUILD_INFO_FALSE@,$BUILD_INFO_FALSE,;t t
1e8e9920 11886s,@LN_S@,$LN_S,;t t
11887s,@LIBTOOL@,$LIBTOOL,;t t
11888s,@enable_shared@,$enable_shared,;t t
11889s,@enable_static@,$enable_static,;t t
a263d1ab 11890s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
11891s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
11892s,@MAINT@,$MAINT,;t t
1e8e9920 11893s,@FC@,$FC,;t t
11894s,@FCFLAGS@,$FCFLAGS,;t t
11895s,@LDFLAGS@,$LDFLAGS,;t t
11896s,@ac_ct_FC@,$ac_ct_FC,;t t
11897s,@libtool_VERSION@,$libtool_VERSION,;t t
11898s,@CPP@,$CPP,;t t
11899s,@CPPFLAGS@,$CPPFLAGS,;t t
11900s,@EGREP@,$EGREP,;t t
11901s,@SECTION_LDFLAGS@,$SECTION_LDFLAGS,;t t
11902s,@OPT_LDFLAGS@,$OPT_LDFLAGS,;t t
11903s,@LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE@,$LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE,;t t
11904s,@LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE@,$LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE,;t t
11905s,@config_path@,$config_path,;t t
11906s,@XCFLAGS@,$XCFLAGS,;t t
11907s,@XLDFLAGS@,$XLDFLAGS,;t t
11908s,@link_gomp@,$link_gomp,;t t
11909s,@USE_FORTRAN_TRUE@,$USE_FORTRAN_TRUE,;t t
11910s,@USE_FORTRAN_FALSE@,$USE_FORTRAN_FALSE,;t t
107c3bbf 11911s,@OMP_LOCK_SIZE@,$OMP_LOCK_SIZE,;t t
11912s,@OMP_LOCK_ALIGN@,$OMP_LOCK_ALIGN,;t t
11913s,@OMP_NEST_LOCK_SIZE@,$OMP_NEST_LOCK_SIZE,;t t
11914s,@OMP_NEST_LOCK_ALIGN@,$OMP_NEST_LOCK_ALIGN,;t t
11915s,@OMP_LOCK_KIND@,$OMP_LOCK_KIND,;t t
11916s,@OMP_NEST_LOCK_KIND@,$OMP_NEST_LOCK_KIND,;t t
1e8e9920 11917s,@LIBOBJS@,$LIBOBJS,;t t
11918s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11919CEOF
11920
11921_ACEOF
11922
11923 cat >>$CONFIG_STATUS <<\_ACEOF
11924 # Split the substitutions into bite-sized pieces for seds with
11925 # small command number limits, like on Digital OSF/1 and HP-UX.
11926 ac_max_sed_lines=48
11927 ac_sed_frag=1 # Number of current file.
11928 ac_beg=1 # First line for current file.
11929 ac_end=$ac_max_sed_lines # Line after last line for current file.
11930 ac_more_lines=:
11931 ac_sed_cmds=
11932 while $ac_more_lines; do
11933 if test $ac_beg -gt 1; then
11934 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11935 else
11936 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11937 fi
11938 if test ! -s $tmp/subs.frag; then
11939 ac_more_lines=false
11940 else
11941 # The purpose of the label and of the branching condition is to
11942 # speed up the sed processing (if there are no `@' at all, there
11943 # is no need to browse any of the substitutions).
11944 # These are the two extra sed commands mentioned above.
11945 (echo ':t
11946 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11947 if test -z "$ac_sed_cmds"; then
11948 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11949 else
11950 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11951 fi
11952 ac_sed_frag=`expr $ac_sed_frag + 1`
11953 ac_beg=$ac_end
11954 ac_end=`expr $ac_end + $ac_max_sed_lines`
11955 fi
11956 done
11957 if test -z "$ac_sed_cmds"; then
11958 ac_sed_cmds=cat
11959 fi
11960fi # test -n "$CONFIG_FILES"
11961
11962_ACEOF
11963cat >>$CONFIG_STATUS <<\_ACEOF
11964for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11965 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11966 case $ac_file in
11967 - | *:- | *:-:* ) # input from stdin
11968 cat >$tmp/stdin
11969 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11970 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11971 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11972 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11973 * ) ac_file_in=$ac_file.in ;;
11974 esac
11975
11976 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11977 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11978$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11979 X"$ac_file" : 'X\(//\)[^/]' \| \
11980 X"$ac_file" : 'X\(//\)$' \| \
11981 X"$ac_file" : 'X\(/\)' \| \
11982 . : '\(.\)' 2>/dev/null ||
11983echo X"$ac_file" |
11984 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11985 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11986 /^X\(\/\/\)$/{ s//\1/; q; }
11987 /^X\(\/\).*/{ s//\1/; q; }
11988 s/.*/./; q'`
11989 { if $as_mkdir_p; then
11990 mkdir -p "$ac_dir"
11991 else
11992 as_dir="$ac_dir"
11993 as_dirs=
11994 while test ! -d "$as_dir"; do
11995 as_dirs="$as_dir $as_dirs"
11996 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11997$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11998 X"$as_dir" : 'X\(//\)[^/]' \| \
11999 X"$as_dir" : 'X\(//\)$' \| \
12000 X"$as_dir" : 'X\(/\)' \| \
12001 . : '\(.\)' 2>/dev/null ||
12002echo X"$as_dir" |
12003 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12004 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12005 /^X\(\/\/\)$/{ s//\1/; q; }
12006 /^X\(\/\).*/{ s//\1/; q; }
12007 s/.*/./; q'`
12008 done
12009 test ! -n "$as_dirs" || mkdir $as_dirs
12010 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12011echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12012 { (exit 1); exit 1; }; }; }
12013
12014 ac_builddir=.
12015
12016if test "$ac_dir" != .; then
12017 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12018 # A "../" for each directory in $ac_dir_suffix.
12019 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12020else
12021 ac_dir_suffix= ac_top_builddir=
12022fi
12023
12024case $srcdir in
12025 .) # No --srcdir option. We are building in place.
12026 ac_srcdir=.
12027 if test -z "$ac_top_builddir"; then
12028 ac_top_srcdir=.
12029 else
12030 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12031 fi ;;
12032 [\\/]* | ?:[\\/]* ) # Absolute path.
12033 ac_srcdir=$srcdir$ac_dir_suffix;
12034 ac_top_srcdir=$srcdir ;;
12035 *) # Relative path.
12036 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12037 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12038esac
12039
12040# Do not use `cd foo && pwd` to compute absolute paths, because
12041# the directories may not exist.
12042case `pwd` in
12043.) ac_abs_builddir="$ac_dir";;
12044*)
12045 case "$ac_dir" in
12046 .) ac_abs_builddir=`pwd`;;
12047 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12048 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12049 esac;;
12050esac
12051case $ac_abs_builddir in
12052.) ac_abs_top_builddir=${ac_top_builddir}.;;
12053*)
12054 case ${ac_top_builddir}. in
12055 .) ac_abs_top_builddir=$ac_abs_builddir;;
12056 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12057 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12058 esac;;
12059esac
12060case $ac_abs_builddir in
12061.) ac_abs_srcdir=$ac_srcdir;;
12062*)
12063 case $ac_srcdir in
12064 .) ac_abs_srcdir=$ac_abs_builddir;;
12065 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12066 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12067 esac;;
12068esac
12069case $ac_abs_builddir in
12070.) ac_abs_top_srcdir=$ac_top_srcdir;;
12071*)
12072 case $ac_top_srcdir in
12073 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12074 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12075 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12076 esac;;
12077esac
12078
12079
12080 case $INSTALL in
12081 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12082 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12083 esac
12084
59da30e1 12085 if test x"$ac_file" != x-; then
12086 { echo "$as_me:$LINENO: creating $ac_file" >&5
12087echo "$as_me: creating $ac_file" >&6;}
12088 rm -f "$ac_file"
12089 fi
1e8e9920 12090 # Let's still pretend it is `configure' which instantiates (i.e., don't
12091 # use $as_me), people would be surprised to read:
12092 # /* config.h. Generated by config.status. */
12093 if test x"$ac_file" = x-; then
12094 configure_input=
12095 else
12096 configure_input="$ac_file. "
12097 fi
12098 configure_input=$configure_input"Generated from `echo $ac_file_in |
12099 sed 's,.*/,,'` by configure."
12100
12101 # First look for the input files in the build tree, otherwise in the
12102 # src tree.
12103 ac_file_inputs=`IFS=:
12104 for f in $ac_file_in; do
12105 case $f in
12106 -) echo $tmp/stdin ;;
12107 [\\/$]*)
12108 # Absolute (can't be DOS-style, as IFS=:)
12109 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12110echo "$as_me: error: cannot find input file: $f" >&2;}
12111 { (exit 1); exit 1; }; }
12112 echo "$f";;
12113 *) # Relative
12114 if test -f "$f"; then
12115 # Build tree
12116 echo "$f"
12117 elif test -f "$srcdir/$f"; then
12118 # Source tree
12119 echo "$srcdir/$f"
12120 else
12121 # /dev/null tree
12122 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12123echo "$as_me: error: cannot find input file: $f" >&2;}
12124 { (exit 1); exit 1; }; }
12125 fi;;
12126 esac
12127 done` || { (exit 1); exit 1; }
12128_ACEOF
12129cat >>$CONFIG_STATUS <<_ACEOF
12130 sed "$ac_vpsub
12131$extrasub
12132_ACEOF
12133cat >>$CONFIG_STATUS <<\_ACEOF
12134:t
12135/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12136s,@configure_input@,$configure_input,;t t
12137s,@srcdir@,$ac_srcdir,;t t
12138s,@abs_srcdir@,$ac_abs_srcdir,;t t
12139s,@top_srcdir@,$ac_top_srcdir,;t t
12140s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12141s,@builddir@,$ac_builddir,;t t
12142s,@abs_builddir@,$ac_abs_builddir,;t t
12143s,@top_builddir@,$ac_top_builddir,;t t
12144s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12145s,@INSTALL@,$ac_INSTALL,;t t
12146" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12147 rm -f $tmp/stdin
12148 if test x"$ac_file" != x-; then
12149 mv $tmp/out $ac_file
12150 else
12151 cat $tmp/out
12152 rm -f $tmp/out
12153 fi
12154
12155done
12156_ACEOF
12157cat >>$CONFIG_STATUS <<\_ACEOF
12158
12159#
12160# CONFIG_HEADER section.
12161#
12162
12163# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12164# NAME is the cpp macro being defined and VALUE is the value it is being given.
12165#
12166# ac_d sets the value in "#define NAME VALUE" lines.
12167ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12168ac_dB='[ ].*$,\1#\2'
12169ac_dC=' '
12170ac_dD=',;t'
12171# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12172ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12173ac_uB='$,\1#\2define\3'
12174ac_uC=' '
12175ac_uD=',;t'
12176
12177for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12178 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12179 case $ac_file in
12180 - | *:- | *:-:* ) # input from stdin
12181 cat >$tmp/stdin
12182 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12183 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12184 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12185 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12186 * ) ac_file_in=$ac_file.in ;;
12187 esac
12188
12189 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12190echo "$as_me: creating $ac_file" >&6;}
12191
12192 # First look for the input files in the build tree, otherwise in the
12193 # src tree.
12194 ac_file_inputs=`IFS=:
12195 for f in $ac_file_in; do
12196 case $f in
12197 -) echo $tmp/stdin ;;
12198 [\\/$]*)
12199 # Absolute (can't be DOS-style, as IFS=:)
12200 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12201echo "$as_me: error: cannot find input file: $f" >&2;}
12202 { (exit 1); exit 1; }; }
12203 # Do quote $f, to prevent DOS paths from being IFS'd.
12204 echo "$f";;
12205 *) # Relative
12206 if test -f "$f"; then
12207 # Build tree
12208 echo "$f"
12209 elif test -f "$srcdir/$f"; then
12210 # Source tree
12211 echo "$srcdir/$f"
12212 else
12213 # /dev/null tree
12214 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12215echo "$as_me: error: cannot find input file: $f" >&2;}
12216 { (exit 1); exit 1; }; }
12217 fi;;
12218 esac
12219 done` || { (exit 1); exit 1; }
12220 # Remove the trailing spaces.
12221 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
12222
12223_ACEOF
12224
12225# Transform confdefs.h into two sed scripts, `conftest.defines' and
12226# `conftest.undefs', that substitutes the proper values into
12227# config.h.in to produce config.h. The first handles `#define'
12228# templates, and the second `#undef' templates.
12229# And first: Protect against being on the right side of a sed subst in
12230# config.status. Protect against being in an unquoted here document
12231# in config.status.
12232rm -f conftest.defines conftest.undefs
12233# Using a here document instead of a string reduces the quoting nightmare.
12234# Putting comments in sed scripts is not portable.
12235#
12236# `end' is used to avoid that the second main sed command (meant for
12237# 0-ary CPP macros) applies to n-ary macro definitions.
12238# See the Autoconf documentation for `clear'.
12239cat >confdef2sed.sed <<\_ACEOF
12240s/[\\&,]/\\&/g
12241s,[\\$`],\\&,g
12242t clear
12243: clear
12244s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12245t end
12246s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12247: end
12248_ACEOF
12249# If some macros were called several times there might be several times
12250# the same #defines, which is useless. Nevertheless, we may not want to
12251# sort them, since we want the *last* AC-DEFINE to be honored.
12252uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12253sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12254rm -f confdef2sed.sed
12255
12256# This sed command replaces #undef with comments. This is necessary, for
12257# example, in the case of _POSIX_SOURCE, which is predefined and required
12258# on some systems where configure will not decide to define it.
12259cat >>conftest.undefs <<\_ACEOF
12260s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12261_ACEOF
12262
12263# Break up conftest.defines because some shells have a limit on the size
12264# of here documents, and old seds have small limits too (100 cmds).
12265echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12266echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12267echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12268echo ' :' >>$CONFIG_STATUS
12269rm -f conftest.tail
12270while grep . conftest.defines >/dev/null
12271do
12272 # Write a limited-size here document to $tmp/defines.sed.
12273 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12274 # Speed up: don't consider the non `#define' lines.
12275 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
12276 # Work around the forget-to-reset-the-flag bug.
12277 echo 't clr' >>$CONFIG_STATUS
12278 echo ': clr' >>$CONFIG_STATUS
12279 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12280 echo 'CEOF
12281 sed -f $tmp/defines.sed $tmp/in >$tmp/out
12282 rm -f $tmp/in
12283 mv $tmp/out $tmp/in
12284' >>$CONFIG_STATUS
12285 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12286 rm -f conftest.defines
12287 mv conftest.tail conftest.defines
12288done
12289rm -f conftest.defines
12290echo ' fi # grep' >>$CONFIG_STATUS
12291echo >>$CONFIG_STATUS
12292
12293# Break up conftest.undefs because some shells have a limit on the size
12294# of here documents, and old seds have small limits too (100 cmds).
12295echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
12296rm -f conftest.tail
12297while grep . conftest.undefs >/dev/null
12298do
12299 # Write a limited-size here document to $tmp/undefs.sed.
12300 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12301 # Speed up: don't consider the non `#undef'
12302 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
12303 # Work around the forget-to-reset-the-flag bug.
12304 echo 't clr' >>$CONFIG_STATUS
12305 echo ': clr' >>$CONFIG_STATUS
12306 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12307 echo 'CEOF
12308 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12309 rm -f $tmp/in
12310 mv $tmp/out $tmp/in
12311' >>$CONFIG_STATUS
12312 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12313 rm -f conftest.undefs
12314 mv conftest.tail conftest.undefs
12315done
12316rm -f conftest.undefs
12317
12318cat >>$CONFIG_STATUS <<\_ACEOF
12319 # Let's still pretend it is `configure' which instantiates (i.e., don't
12320 # use $as_me), people would be surprised to read:
12321 # /* config.h. Generated by config.status. */
12322 if test x"$ac_file" = x-; then
12323 echo "/* Generated by configure. */" >$tmp/config.h
12324 else
12325 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
12326 fi
12327 cat $tmp/in >>$tmp/config.h
12328 rm -f $tmp/in
12329 if test x"$ac_file" != x-; then
12330 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12331 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12332echo "$as_me: $ac_file is unchanged" >&6;}
12333 else
12334 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12335$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12336 X"$ac_file" : 'X\(//\)[^/]' \| \
12337 X"$ac_file" : 'X\(//\)$' \| \
12338 X"$ac_file" : 'X\(/\)' \| \
12339 . : '\(.\)' 2>/dev/null ||
12340echo X"$ac_file" |
12341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12342 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12343 /^X\(\/\/\)$/{ s//\1/; q; }
12344 /^X\(\/\).*/{ s//\1/; q; }
12345 s/.*/./; q'`
12346 { if $as_mkdir_p; then
12347 mkdir -p "$ac_dir"
12348 else
12349 as_dir="$ac_dir"
12350 as_dirs=
12351 while test ! -d "$as_dir"; do
12352 as_dirs="$as_dir $as_dirs"
12353 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12354$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12355 X"$as_dir" : 'X\(//\)[^/]' \| \
12356 X"$as_dir" : 'X\(//\)$' \| \
12357 X"$as_dir" : 'X\(/\)' \| \
12358 . : '\(.\)' 2>/dev/null ||
12359echo X"$as_dir" |
12360 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12361 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12362 /^X\(\/\/\)$/{ s//\1/; q; }
12363 /^X\(\/\).*/{ s//\1/; q; }
12364 s/.*/./; q'`
12365 done
12366 test ! -n "$as_dirs" || mkdir $as_dirs
12367 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12368echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12369 { (exit 1); exit 1; }; }; }
12370
12371 rm -f $ac_file
12372 mv $tmp/config.h $ac_file
12373 fi
12374 else
12375 cat $tmp/config.h
12376 rm -f $tmp/config.h
12377 fi
12378# Compute $ac_file's index in $config_headers.
12379_am_stamp_count=1
12380for _am_header in $config_headers :; do
12381 case $_am_header in
12382 $ac_file | $ac_file:* )
12383 break ;;
12384 * )
12385 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12386 esac
12387done
12388echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
12389$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12390 X$ac_file : 'X\(//\)[^/]' \| \
12391 X$ac_file : 'X\(//\)$' \| \
12392 X$ac_file : 'X\(/\)' \| \
12393 . : '\(.\)' 2>/dev/null ||
12394echo X$ac_file |
12395 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12396 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12397 /^X\(\/\/\)$/{ s//\1/; q; }
12398 /^X\(\/\).*/{ s//\1/; q; }
12399 s/.*/./; q'`/stamp-h$_am_stamp_count
12400done
12401_ACEOF
12402cat >>$CONFIG_STATUS <<\_ACEOF
12403
12404#
12405# CONFIG_COMMANDS section.
12406#
12407for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12408 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12409 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12410 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12411$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12412 X"$ac_dest" : 'X\(//\)[^/]' \| \
12413 X"$ac_dest" : 'X\(//\)$' \| \
12414 X"$ac_dest" : 'X\(/\)' \| \
12415 . : '\(.\)' 2>/dev/null ||
12416echo X"$ac_dest" |
12417 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12418 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12419 /^X\(\/\/\)$/{ s//\1/; q; }
12420 /^X\(\/\).*/{ s//\1/; q; }
12421 s/.*/./; q'`
12422 { if $as_mkdir_p; then
12423 mkdir -p "$ac_dir"
12424 else
12425 as_dir="$ac_dir"
12426 as_dirs=
12427 while test ! -d "$as_dir"; do
12428 as_dirs="$as_dir $as_dirs"
12429 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12430$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12431 X"$as_dir" : 'X\(//\)[^/]' \| \
12432 X"$as_dir" : 'X\(//\)$' \| \
12433 X"$as_dir" : 'X\(/\)' \| \
12434 . : '\(.\)' 2>/dev/null ||
12435echo X"$as_dir" |
12436 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12437 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12438 /^X\(\/\/\)$/{ s//\1/; q; }
12439 /^X\(\/\).*/{ s//\1/; q; }
12440 s/.*/./; q'`
12441 done
12442 test ! -n "$as_dirs" || mkdir $as_dirs
12443 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12444echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12445 { (exit 1); exit 1; }; }; }
12446
12447 ac_builddir=.
12448
12449if test "$ac_dir" != .; then
12450 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12451 # A "../" for each directory in $ac_dir_suffix.
12452 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12453else
12454 ac_dir_suffix= ac_top_builddir=
12455fi
12456
12457case $srcdir in
12458 .) # No --srcdir option. We are building in place.
12459 ac_srcdir=.
12460 if test -z "$ac_top_builddir"; then
12461 ac_top_srcdir=.
12462 else
12463 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12464 fi ;;
12465 [\\/]* | ?:[\\/]* ) # Absolute path.
12466 ac_srcdir=$srcdir$ac_dir_suffix;
12467 ac_top_srcdir=$srcdir ;;
12468 *) # Relative path.
12469 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12470 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12471esac
12472
12473# Do not use `cd foo && pwd` to compute absolute paths, because
12474# the directories may not exist.
12475case `pwd` in
12476.) ac_abs_builddir="$ac_dir";;
12477*)
12478 case "$ac_dir" in
12479 .) ac_abs_builddir=`pwd`;;
12480 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12481 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12482 esac;;
12483esac
12484case $ac_abs_builddir in
12485.) ac_abs_top_builddir=${ac_top_builddir}.;;
12486*)
12487 case ${ac_top_builddir}. in
12488 .) ac_abs_top_builddir=$ac_abs_builddir;;
12489 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12490 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12491 esac;;
12492esac
12493case $ac_abs_builddir in
12494.) ac_abs_srcdir=$ac_srcdir;;
12495*)
12496 case $ac_srcdir in
12497 .) ac_abs_srcdir=$ac_abs_builddir;;
12498 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12499 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12500 esac;;
12501esac
12502case $ac_abs_builddir in
12503.) ac_abs_top_srcdir=$ac_top_srcdir;;
12504*)
12505 case $ac_top_srcdir in
12506 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12507 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12508 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12509 esac;;
12510esac
12511
12512
12513 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12514echo "$as_me: executing $ac_dest commands" >&6;}
12515 case $ac_dest in
12516 default-1 )
12517# Only add multilib support code if we just rebuilt the top-level
12518# Makefile.
12519case " $CONFIG_FILES " in
12520 *" Makefile "*)
12521 ac_file=Makefile . ${multi_basedir}/config-ml.in
12522 ;;
12523esac ;;
12524 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12525 # Strip MF so we end up with the name of the file.
12526 mf=`echo "$mf" | sed -e 's/:.*$//'`
12527 # Check whether this is an Automake generated Makefile or not.
12528 # We used to match only the files named `Makefile.in', but
12529 # some people rename them; so instead we look at the file content.
12530 # Grep'ing the first line is not enough: some people post-process
12531 # each Makefile.in and add a new line on top of each file to say so.
12532 # So let's grep whole file.
12533 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
12534 dirpart=`(dirname "$mf") 2>/dev/null ||
12535$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12536 X"$mf" : 'X\(//\)[^/]' \| \
12537 X"$mf" : 'X\(//\)$' \| \
12538 X"$mf" : 'X\(/\)' \| \
12539 . : '\(.\)' 2>/dev/null ||
12540echo X"$mf" |
12541 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12542 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12543 /^X\(\/\/\)$/{ s//\1/; q; }
12544 /^X\(\/\).*/{ s//\1/; q; }
12545 s/.*/./; q'`
12546 else
12547 continue
12548 fi
12549 # Extract the definition of DEPDIR, am__include, and am__quote
12550 # from the Makefile without running `make'.
12551 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12552 test -z "$DEPDIR" && continue
12553 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12554 test -z "am__include" && continue
12555 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12556 # When using ansi2knr, U may be empty or an underscore; expand it
12557 U=`sed -n 's/^U = //p' < "$mf"`
12558 # Find all dependency output files, they are included files with
12559 # $(DEPDIR) in their names. We invoke sed twice because it is the
12560 # simplest approach to changing $(DEPDIR) to its actual value in the
12561 # expansion.
12562 for file in `sed -n "
12563 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12564 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12565 # Make sure the directory exists.
12566 test -f "$dirpart/$file" && continue
12567 fdir=`(dirname "$file") 2>/dev/null ||
12568$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12569 X"$file" : 'X\(//\)[^/]' \| \
12570 X"$file" : 'X\(//\)$' \| \
12571 X"$file" : 'X\(/\)' \| \
12572 . : '\(.\)' 2>/dev/null ||
12573echo X"$file" |
12574 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12575 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12576 /^X\(\/\/\)$/{ s//\1/; q; }
12577 /^X\(\/\).*/{ s//\1/; q; }
12578 s/.*/./; q'`
12579 { if $as_mkdir_p; then
12580 mkdir -p $dirpart/$fdir
12581 else
12582 as_dir=$dirpart/$fdir
12583 as_dirs=
12584 while test ! -d "$as_dir"; do
12585 as_dirs="$as_dir $as_dirs"
12586 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12587$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12588 X"$as_dir" : 'X\(//\)[^/]' \| \
12589 X"$as_dir" : 'X\(//\)$' \| \
12590 X"$as_dir" : 'X\(/\)' \| \
12591 . : '\(.\)' 2>/dev/null ||
12592echo X"$as_dir" |
12593 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12594 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12595 /^X\(\/\/\)$/{ s//\1/; q; }
12596 /^X\(\/\).*/{ s//\1/; q; }
12597 s/.*/./; q'`
12598 done
12599 test ! -n "$as_dirs" || mkdir $as_dirs
12600 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
12601echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
12602 { (exit 1); exit 1; }; }; }
12603
12604 # echo "creating $dirpart/$file"
12605 echo '# dummy' > "$dirpart/$file"
12606 done
12607done
01473a49 12608 ;;
12609 gstdint.h )
12610if test "$GCC" = yes; then
12611 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
12612else
12613 echo "/* generated for $CC */" > tmp-stdint.h
12614fi
12615
12616sed 's/^ *//' >> tmp-stdint.h <<EOF
12617
12618 #ifndef GCC_GENERATED_STDINT_H
12619 #define GCC_GENERATED_STDINT_H 1
12620
12621 #include <sys/types.h>
12622EOF
12623
12624if test "$acx_cv_header_stdint" != stdint.h; then
12625 echo "#include <stddef.h>" >> tmp-stdint.h
12626fi
12627if test "$acx_cv_header_stdint" != stddef.h; then
12628 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
12629fi
12630
12631sed 's/^ *//' >> tmp-stdint.h <<EOF
12632 /* glibc uses these symbols as guards to prevent redefinitions. */
12633 #ifdef __int8_t_defined
12634 #define _INT8_T
12635 #define _INT16_T
12636 #define _INT32_T
12637 #endif
12638 #ifdef __uint32_t_defined
12639 #define _UINT32_T
12640 #endif
12641
12642EOF
12643
12644# ----------------- done header, emit basic int types -------------
12645if test "$acx_cv_header_stdint" = stddef.h; then
12646 sed 's/^ *//' >> tmp-stdint.h <<EOF
12647
12648 #ifndef _UINT8_T
12649 #define _UINT8_T
12650 typedef unsigned $acx_cv_type_int8_t uint8_t;
12651 #endif
12652
12653 #ifndef _UINT16_T
12654 #define _UINT16_T
12655 typedef unsigned $acx_cv_type_int16_t uint16_t;
12656 #endif
12657
12658 #ifndef _UINT32_T
12659 #define _UINT32_T
12660 typedef unsigned $acx_cv_type_int32_t uint32_t;
12661 #endif
12662
12663 #ifndef _INT8_T
12664 #define _INT8_T
12665 typedef $acx_cv_type_int8_t int8_t;
12666 #endif
12667
12668 #ifndef _INT16_T
12669 #define _INT16_T
12670 typedef $acx_cv_type_int16_t int16_t;
12671 #endif
12672
12673 #ifndef _INT32_T
12674 #define _INT32_T
12675 typedef $acx_cv_type_int32_t int32_t;
12676 #endif
12677EOF
12678elif test "$ac_cv_type_u_int32_t" = yes; then
12679 sed 's/^ *//' >> tmp-stdint.h <<EOF
12680
12681 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
12682 #ifndef _INT8_T
12683 #define _INT8_T
12684 #endif
12685 #ifndef _INT16_T
12686 #define _INT16_T
12687 #endif
12688 #ifndef _INT32_T
12689 #define _INT32_T
12690 #endif
12691
12692 #ifndef _UINT8_T
12693 #define _UINT8_T
12694 typedef u_int8_t uint8_t;
12695 #endif
12696
12697 #ifndef _UINT16_T
12698 #define _UINT16_T
12699 typedef u_int16_t uint16_t;
12700 #endif
12701
12702 #ifndef _UINT32_T
12703 #define _UINT32_T
12704 typedef u_int32_t uint32_t;
12705 #endif
12706EOF
12707else
12708 sed 's/^ *//' >> tmp-stdint.h <<EOF
12709
12710 /* Some systems have guard macros to prevent redefinitions, define them. */
12711 #ifndef _INT8_T
12712 #define _INT8_T
12713 #endif
12714 #ifndef _INT16_T
12715 #define _INT16_T
12716 #endif
12717 #ifndef _INT32_T
12718 #define _INT32_T
12719 #endif
12720 #ifndef _UINT8_T
12721 #define _UINT8_T
12722 #endif
12723 #ifndef _UINT16_T
12724 #define _UINT16_T
12725 #endif
12726 #ifndef _UINT32_T
12727 #define _UINT32_T
12728 #endif
12729EOF
12730fi
12731
12732# ------------- done basic int types, emit int64_t types ------------
12733if test "$ac_cv_type_uint64_t" = yes; then
12734 sed 's/^ *//' >> tmp-stdint.h <<EOF
12735
12736 /* system headers have good uint64_t and int64_t */
12737 #ifndef _INT64_T
12738 #define _INT64_T
12739 #endif
12740 #ifndef _UINT64_T
12741 #define _UINT64_T
12742 #endif
12743EOF
12744elif test "$ac_cv_type_u_int64_t" = yes; then
12745 sed 's/^ *//' >> tmp-stdint.h <<EOF
12746
12747 /* system headers have an u_int64_t (and int64_t) */
12748 #ifndef _INT64_T
12749 #define _INT64_T
12750 #endif
12751 #ifndef _UINT64_T
12752 #define _UINT64_T
12753 typedef u_int64_t uint64_t;
12754 #endif
12755EOF
12756elif test -n "$acx_cv_type_int64_t"; then
12757 sed 's/^ *//' >> tmp-stdint.h <<EOF
12758
12759 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
12760 #ifndef _INT64_T
12761 #define _INT64_T
12762 typedef $acx_cv_type_int64_t int64_t;
12763 #endif
12764 #ifndef _UINT64_T
12765 #define _UINT64_T
12766 typedef unsigned $acx_cv_type_int64_t uint64_t;
12767 #endif
12768EOF
12769else
12770 sed 's/^ *//' >> tmp-stdint.h <<EOF
12771
12772 /* some common heuristics for int64_t, using compiler-specific tests */
12773 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
12774 #ifndef _INT64_T
12775 #define _INT64_T
12776 typedef long long int64_t;
12777 #endif
12778 #ifndef _UINT64_T
12779 #define _UINT64_T
12780 typedef unsigned long long uint64_t;
12781 #endif
12782
12783 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
12784 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
12785 does not implement __extension__. But that compiler doesn't define
12786 __GNUC_MINOR__. */
12787 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
12788 # define __extension__
12789 # endif
12790
12791 # ifndef _INT64_T
12792 # define _INT64_T
12793 __extension__ typedef long long int64_t;
12794 # endif
12795 # ifndef _UINT64_T
12796 # define _UINT64_T
12797 __extension__ typedef unsigned long long uint64_t;
12798 # endif
12799
12800 #elif !defined __STRICT_ANSI__
12801 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
12802
12803 # ifndef _INT64_T
12804 # define _INT64_T
12805 typedef __int64 int64_t;
12806 # endif
12807 # ifndef _UINT64_T
12808 # define _UINT64_T
12809 typedef unsigned __int64 uint64_t;
12810 # endif
12811 # endif /* compiler */
12812
12813 #endif /* ANSI version */
12814EOF
12815fi
12816
12817# ------------- done int64_t types, emit intptr types ------------
12818if test "$ac_cv_type_uintptr_t" != yes; then
12819 sed 's/^ *//' >> tmp-stdint.h <<EOF
12820
12821 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
12822 typedef u$acx_cv_type_intptr_t uintptr_t;
12823 typedef $acx_cv_type_intptr_t intptr_t;
12824EOF
12825fi
12826
12827# ------------- done intptr types, emit int_least types ------------
12828if test "$ac_cv_type_int_least32_t" != yes; then
12829 sed 's/^ *//' >> tmp-stdint.h <<EOF
12830
12831 /* Define int_least types */
12832 typedef int8_t int_least8_t;
12833 typedef int16_t int_least16_t;
12834 typedef int32_t int_least32_t;
12835 #ifdef _INT64_T
12836 typedef int64_t int_least64_t;
12837 #endif
12838
12839 typedef uint8_t uint_least8_t;
12840 typedef uint16_t uint_least16_t;
12841 typedef uint32_t uint_least32_t;
12842 #ifdef _UINT64_T
12843 typedef uint64_t uint_least64_t;
12844 #endif
12845EOF
12846fi
12847
12848# ------------- done intptr types, emit int_fast types ------------
12849if test "$ac_cv_type_int_fast32_t" != yes; then
12850 sed 's/^ *//' >> tmp-stdint.h <<EOF
12851
12852 /* Define int_fast types. short is often slow */
12853 typedef int8_t int_fast8_t;
12854 typedef int int_fast16_t;
12855 typedef int32_t int_fast32_t;
12856 #ifdef _INT64_T
12857 typedef int64_t int_fast64_t;
12858 #endif
12859
12860 typedef uint8_t uint_fast8_t;
12861 typedef unsigned int uint_fast16_t;
12862 typedef uint32_t uint_fast32_t;
12863 #ifdef _UINT64_T
12864 typedef uint64_t uint_fast64_t;
12865 #endif
12866EOF
12867fi
12868
12869if test "$ac_cv_type_uintmax_t" != yes; then
12870 sed 's/^ *//' >> tmp-stdint.h <<EOF
12871
12872 /* Define intmax based on what we found */
12873 #ifdef _INT64_T
12874 typedef int64_t intmax_t;
12875 #else
12876 typedef long intmax_t;
12877 #endif
12878 #ifdef _UINT64_T
12879 typedef uint64_t uintmax_t;
12880 #else
12881 typedef unsigned long uintmax_t;
12882 #endif
12883EOF
12884fi
12885
12886sed 's/^ *//' >> tmp-stdint.h <<EOF
12887
12888 #endif /* GCC_GENERATED_STDINT_H */
12889EOF
12890
12891if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
12892 rm -f tmp-stdint.h
12893else
12894 mv -f tmp-stdint.h gstdint.h
12895fi
12896
1e8e9920 12897 ;;
12898 esac
12899done
12900_ACEOF
12901
12902cat >>$CONFIG_STATUS <<\_ACEOF
12903
12904{ (exit 0); exit 0; }
12905_ACEOF
12906chmod +x $CONFIG_STATUS
12907ac_clean_files=$ac_clean_files_save
12908
12909
12910# configure is writing to config.log, and then calls config.status.
12911# config.status does its own redirection, appending to config.log.
12912# Unfortunately, on DOS this fails, as config.log is still kept open
12913# by configure, so config.status won't be able to write to it; its
12914# output is simply discarded. So we exec the FD to /dev/null,
12915# effectively closing config.log, so it can be properly (re)opened and
12916# appended to by config.status. When coming back to configure, we
12917# need to make the FD available again.
12918if test "$no_create" != yes; then
12919 ac_cs_success=:
12920 ac_config_status_args=
12921 test "$silent" = yes &&
12922 ac_config_status_args="$ac_config_status_args --quiet"
12923 exec 5>/dev/null
12924 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12925 exec 5>>config.log
12926 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12927 # would make configure fail if this is the last instruction.
12928 $ac_cs_success || { (exit 1); exit 1; }
12929fi
12930