]> git.ipfire.org Git - thirdparty/gcc.git/blame - libgomp/configure
* doc/passes.texi: Document predictive commoning.
[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
1196de9e 3533 if test $gcc_cv_prog_makeinfo_modern = no; then
3534 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
3535 fi
3536
439d698f 3537fi
3538echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
3539echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
3540 else
3541 gcc_cv_prog_makeinfo_modern=no
3542 fi
3543
3544
3545
3546if test $gcc_cv_prog_makeinfo_modern = "yes"; then
3547 BUILD_INFO_TRUE=
3548 BUILD_INFO_FALSE='#'
3549else
3550 BUILD_INFO_TRUE='#'
3551 BUILD_INFO_FALSE=
3552fi
3553
3554
3555
1e8e9920 3556# Configure libtool
3557# Check whether --enable-shared or --disable-shared was given.
3558if test "${enable_shared+set}" = set; then
3559 enableval="$enable_shared"
3560 p=${PACKAGE-default}
3561case $enableval in
3562yes) enable_shared=yes ;;
3563no) enable_shared=no ;;
3564*)
3565 enable_shared=no
3566 # Look at the argument we got. We use all the common list separators.
3567 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3568 for pkg in $enableval; do
3569 if test "X$pkg" = "X$p"; then
3570 enable_shared=yes
3571 fi
3572 done
3573 IFS="$ac_save_ifs"
3574 ;;
3575esac
3576else
3577 enable_shared=yes
3578fi;
3579# Check whether --enable-static or --disable-static was given.
3580if test "${enable_static+set}" = set; then
3581 enableval="$enable_static"
3582 p=${PACKAGE-default}
3583case $enableval in
3584yes) enable_static=yes ;;
3585no) enable_static=no ;;
3586*)
3587 enable_static=no
3588 # Look at the argument we got. We use all the common list separators.
3589 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3590 for pkg in $enableval; do
3591 if test "X$pkg" = "X$p"; then
3592 enable_static=yes
3593 fi
3594 done
3595 IFS="$ac_save_ifs"
3596 ;;
3597esac
3598else
3599 enable_static=yes
3600fi;
3601# Check whether --enable-fast-install or --disable-fast-install was given.
3602if test "${enable_fast_install+set}" = set; then
3603 enableval="$enable_fast_install"
3604 p=${PACKAGE-default}
3605case $enableval in
3606yes) enable_fast_install=yes ;;
3607no) enable_fast_install=no ;;
3608*)
3609 enable_fast_install=no
3610 # Look at the argument we got. We use all the common list separators.
3611 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3612 for pkg in $enableval; do
3613 if test "X$pkg" = "X$p"; then
3614 enable_fast_install=yes
3615 fi
3616 done
3617 IFS="$ac_save_ifs"
3618 ;;
3619esac
3620else
3621 enable_fast_install=yes
3622fi;
3623
3624# Check whether --with-gnu-ld or --without-gnu-ld was given.
3625if test "${with_gnu_ld+set}" = set; then
3626 withval="$with_gnu_ld"
3627 test "$withval" = no || with_gnu_ld=yes
3628else
3629 with_gnu_ld=no
3630fi;
3631ac_prog=ld
3632if test "$GCC" = yes; then
3633 # Check if gcc -print-prog-name=ld gives a path.
3634 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3635echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3636 case $host in
3637 *-*-mingw*)
3638 # gcc leaves a trailing carriage return which upsets mingw
3639 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3640 *)
3641 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3642 esac
3643 case $ac_prog in
3644 # Accept absolute paths.
3645 [\\/]* | [A-Za-z]:[\\/]*)
3646 re_direlt='/[^/][^/]*/\.\./'
3647 # Canonicalize the path of ld
3648 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3649 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3650 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3651 done
3652 test -z "$LD" && LD="$ac_prog"
3653 ;;
3654 "")
3655 # If it fails, then pretend we aren't using GCC.
3656 ac_prog=ld
3657 ;;
3658 *)
3659 # If it is relative, then search for the first ld in PATH.
3660 with_gnu_ld=unknown
3661 ;;
3662 esac
3663elif test "$with_gnu_ld" = yes; then
3664 echo "$as_me:$LINENO: checking for GNU ld" >&5
3665echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3666else
3667 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3668echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3669fi
3670if test "${lt_cv_path_LD+set}" = set; then
3671 echo $ECHO_N "(cached) $ECHO_C" >&6
3672else
3673 if test -z "$LD"; then
3674 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3675 for ac_dir in $PATH; do
3676 test -z "$ac_dir" && ac_dir=.
3677 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3678 lt_cv_path_LD="$ac_dir/$ac_prog"
3679 # Check to see if the program is GNU ld. I'd rather use --version,
3680 # but apparently some GNU ld's only accept -v.
3681 # Break only if it was the GNU/non-GNU ld that we prefer.
3682 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3683 test "$with_gnu_ld" != no && break
3684 else
3685 test "$with_gnu_ld" != yes && break
3686 fi
3687 fi
3688 done
3689 IFS="$ac_save_ifs"
3690else
3691 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3692fi
3693fi
3694
3695LD="$lt_cv_path_LD"
3696if test -n "$LD"; then
3697 echo "$as_me:$LINENO: result: $LD" >&5
3698echo "${ECHO_T}$LD" >&6
3699else
3700 echo "$as_me:$LINENO: result: no" >&5
3701echo "${ECHO_T}no" >&6
3702fi
3703test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3704echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3705 { (exit 1); exit 1; }; }
3706echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3707echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3708if test "${lt_cv_prog_gnu_ld+set}" = set; then
3709 echo $ECHO_N "(cached) $ECHO_C" >&6
3710else
3711 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3712if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3713 lt_cv_prog_gnu_ld=yes
3714else
3715 lt_cv_prog_gnu_ld=no
3716fi
3717fi
3718echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3719echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3720with_gnu_ld=$lt_cv_prog_gnu_ld
3721
3722
3723echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3724echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3725if test "${lt_cv_ld_reload_flag+set}" = set; then
3726 echo $ECHO_N "(cached) $ECHO_C" >&6
3727else
3728 lt_cv_ld_reload_flag='-r'
3729fi
3730echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3731echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3732reload_flag=$lt_cv_ld_reload_flag
3733test -n "$reload_flag" && reload_flag=" $reload_flag"
3734
3735echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3736echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3737if test "${lt_cv_path_NM+set}" = set; then
3738 echo $ECHO_N "(cached) $ECHO_C" >&6
3739else
3740 if test -n "$NM"; then
3741 # Let the user override the test.
3742 lt_cv_path_NM="$NM"
3743else
3744 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3745 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3746 test -z "$ac_dir" && ac_dir=.
3747 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3748 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3749 # Check to see if the nm accepts a BSD-compat flag.
3750 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3751 # nm: unknown option "B" ignored
3752 # Tru64's nm complains that /dev/null is an invalid object file
3753 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3754 lt_cv_path_NM="$tmp_nm -B"
3755 break
3756 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3757 lt_cv_path_NM="$tmp_nm -p"
3758 break
3759 else
3760 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3761 continue # so that we can try to find one that supports BSD flags
3762 fi
3763 fi
3764 done
3765 IFS="$ac_save_ifs"
3766 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3767fi
3768fi
3769
3770NM="$lt_cv_path_NM"
3771echo "$as_me:$LINENO: result: $NM" >&5
3772echo "${ECHO_T}$NM" >&6
3773
3774echo "$as_me:$LINENO: checking whether ln -s works" >&5
3775echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3776LN_S=$as_ln_s
3777if test "$LN_S" = "ln -s"; then
3778 echo "$as_me:$LINENO: result: yes" >&5
3779echo "${ECHO_T}yes" >&6
3780else
3781 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3782echo "${ECHO_T}no, using $LN_S" >&6
3783fi
3784
3785echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3786echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3787if test "${lt_cv_deplibs_check_method+set}" = set; then
3788 echo $ECHO_N "(cached) $ECHO_C" >&6
3789else
3790 lt_cv_file_magic_cmd='$MAGIC_CMD'
3791lt_cv_file_magic_test_file=
3792lt_cv_deplibs_check_method='unknown'
3793# Need to set the preceding variable on all platforms that support
3794# interlibrary dependencies.
3795# 'none' -- dependencies not supported.
3796# `unknown' -- same as none, but documents that we really don't know.
3797# 'pass_all' -- all dependencies passed with no checks.
3798# 'test_compile' -- check by making test program.
3799# 'file_magic [regex]' -- check by looking for files in library path
3800# which responds to the $file_magic_cmd with a given egrep regex.
3801# If you have `file' or equivalent on your system and you're not sure
3802# whether `pass_all' will *always* work, you probably want this one.
3803
3804case $host_os in
3805aix*)
3806 lt_cv_deplibs_check_method=pass_all
3807 ;;
3808
3809beos*)
3810 lt_cv_deplibs_check_method=pass_all
3811 ;;
3812
3813bsdi4*)
3814 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3815 lt_cv_file_magic_cmd='/usr/bin/file -L'
3816 lt_cv_file_magic_test_file=/shlib/libc.so
3817 ;;
3818
3819cygwin* | mingw* |pw32*)
3820 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3821 lt_cv_file_magic_cmd='$OBJDUMP -f'
3822 ;;
3823
3824darwin* | rhapsody*)
3825 # this will be overwritten by pass_all, but leave it in just in case
3826 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3827 lt_cv_file_magic_cmd='/usr/bin/file -L'
3828 case "$host_os" in
3829 rhapsody* | darwin1.012)
3830 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3831 ;;
3832 *) # Darwin 1.3 on
3833 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3834 ;;
3835 esac
3836 lt_cv_deplibs_check_method=pass_all
3837 ;;
3838
3839freebsd* | kfreebsd*-gnu)
3840 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3841 case $host_cpu in
3842 i*86 )
3843 # Not sure whether the presence of OpenBSD here was a mistake.
3844 # Let's accept both of them until this is cleared up.
3845 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3846 lt_cv_file_magic_cmd=/usr/bin/file
3847 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3848 ;;
3849 esac
3850 else
3851 lt_cv_deplibs_check_method=pass_all
3852 fi
3853 ;;
3854
3855gnu*)
3856 lt_cv_deplibs_check_method=pass_all
3857 ;;
3858
3859hpux10.20*|hpux11*)
3860 case $host_cpu in
3861 hppa*)
3862 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3863 lt_cv_file_magic_cmd=/usr/bin/file
3864 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3865 ;;
3866 ia64*)
3867 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3868 lt_cv_file_magic_cmd=/usr/bin/file
3869 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3870 ;;
3871 esac
3872 ;;
3873
3874irix5* | irix6*)
3875 case $host_os in
3876 irix5*)
3877 # this will be overridden with pass_all, but let us keep it just in case
3878 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3879 ;;
3880 *)
3881 case $LD in
3882 *-32|*"-32 ") libmagic=32-bit;;
3883 *-n32|*"-n32 ") libmagic=N32;;
3884 *-64|*"-64 ") libmagic=64-bit;;
3885 *) libmagic=never-match;;
3886 esac
3887 # this will be overridden with pass_all, but let us keep it just in case
3888 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3889 ;;
3890 esac
3891 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3892 lt_cv_deplibs_check_method=pass_all
3893 ;;
3894
3895# This must be Linux ELF.
3896linux-gnu*)
3897 lt_cv_deplibs_check_method=pass_all
3898 ;;
3899
3900netbsd* | knetbsd*-gnu)
3901 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3902 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3903 else
3904 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3905 fi
3906 ;;
3907
3908newsos6)
3909 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3910 lt_cv_file_magic_cmd=/usr/bin/file
3911 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3912 ;;
3913
3914osf3* | osf4* | osf5*)
3915 # this will be overridden with pass_all, but let us keep it just in case
3916 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3917 lt_cv_file_magic_test_file=/shlib/libc.so
3918 lt_cv_deplibs_check_method=pass_all
3919 ;;
3920
3921sco3.2v5*)
3922 lt_cv_deplibs_check_method=pass_all
3923 ;;
3924
3925solaris*)
3926 lt_cv_deplibs_check_method=pass_all
3927 lt_cv_file_magic_test_file=/lib/libc.so
3928 ;;
3929
3930sysv5uw[78]* | sysv4*uw2*)
3931 lt_cv_deplibs_check_method=pass_all
3932 ;;
3933
3934sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3935 case $host_vendor in
3936 ncr)
3937 lt_cv_deplibs_check_method=pass_all
3938 ;;
3939 motorola)
3940 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]'
3941 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3942 ;;
3943 esac
3944 ;;
3945esac
3946
3947fi
3948echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3949echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3950file_magic_cmd=$lt_cv_file_magic_cmd
3951deplibs_check_method=$lt_cv_deplibs_check_method
3952
3953
3954
3955
3956
3957# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3958
3959# find the maximum length of command line arguments
3960echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3961echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3962if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3963 echo $ECHO_N "(cached) $ECHO_C" >&6
3964else
3965 i=0
3966 teststring="ABCD"
3967
3968 case $build_os in
3969 msdosdjgpp*)
3970 # On DJGPP, this test can blow up pretty badly due to problems in libc
3971 # (any single argument exceeding 2000 bytes causes a buffer overrun
3972 # during glob expansion). Even if it were fixed, the result of this
3973 # check would be larger than it should be.
3974 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3975 ;;
3976
3977 cygwin* | mingw*)
3978 # On Win9x/ME, this test blows up -- it succeeds, but takes
3979 # about 5 minutes as the teststring grows exponentially.
3980 # Worse, since 9x/ME are not pre-emptively multitasking,
3981 # you end up with a "frozen" computer, even though with patience
3982 # the test eventually succeeds (with a max line length of 256k).
3983 # Instead, let's just punt: use the minimum linelength reported by
3984 # all of the supported platforms: 8192 (on NT/2K/XP).
3985 lt_cv_sys_max_cmd_len=8192;
3986 ;;
3987
3988 amigaos*)
3989 # On AmigaOS with pdksh, this test takes hours, literally.
3990 # So we just punt and use a minimum line length of 8192.
3991 lt_cv_sys_max_cmd_len=8192;
3992 ;;
3993
3994 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3995 # This has been around since 386BSD, at least. Likely further.
3996 if test -x /sbin/sysctl; then
3997 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3998 elif test -x /usr/sbin/sysctl; then
3999 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4000 else
4001 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
4002 fi
4003 # And add a safety zone
4004 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4005 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4006 ;;
4007 esac
4008
4009fi
4010
4011if test -n "$lt_cv_sys_max_cmd_len" ; then
4012 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4013echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4014else
4015 echo "$as_me:$LINENO: result: none" >&5
4016echo "${ECHO_T}none" >&6
4017fi
4018
4019
4020# Only perform the check for file, if the check method requires it
4021case $deplibs_check_method in
4022file_magic*)
4023 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4024 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4025echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4026if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4027 echo $ECHO_N "(cached) $ECHO_C" >&6
4028else
4029 case $MAGIC_CMD in
4030 /*)
4031 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4032 ;;
4033 ?:/*)
4034 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4035 ;;
4036 *)
4037 ac_save_MAGIC_CMD="$MAGIC_CMD"
4038 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4039 ac_dummy="/usr/bin:$PATH"
4040 for ac_dir in $ac_dummy; do
4041 test -z "$ac_dir" && ac_dir=.
4042 if test -f $ac_dir/${ac_tool_prefix}file; then
4043 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4044 if test -n "$file_magic_test_file"; then
4045 case $deplibs_check_method in
4046 "file_magic "*)
4047 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4048 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4049 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4050 egrep "$file_magic_regex" > /dev/null; then
4051 :
4052 else
4053 cat <<EOF 1>&2
4054
4055*** Warning: the command libtool uses to detect shared libraries,
4056*** $file_magic_cmd, produces output that libtool cannot recognize.
4057*** The result is that libtool may fail to recognize shared libraries
4058*** as such. This will affect the creation of libtool libraries that
4059*** depend on shared libraries, but programs linked with such libtool
4060*** libraries will work regardless of this problem. Nevertheless, you
4061*** may want to report the problem to your system manager and/or to
4062*** bug-libtool@gnu.org
4063
4064EOF
4065 fi ;;
4066 esac
4067 fi
4068 break
4069 fi
4070 done
4071 IFS="$ac_save_ifs"
4072 MAGIC_CMD="$ac_save_MAGIC_CMD"
4073 ;;
4074esac
4075fi
4076
4077MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4078if test -n "$MAGIC_CMD"; then
4079 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4080echo "${ECHO_T}$MAGIC_CMD" >&6
4081else
4082 echo "$as_me:$LINENO: result: no" >&5
4083echo "${ECHO_T}no" >&6
4084fi
4085
4086if test -z "$lt_cv_path_MAGIC_CMD"; then
4087 if test -n "$ac_tool_prefix"; then
4088 echo "$as_me:$LINENO: checking for file" >&5
4089echo $ECHO_N "checking for file... $ECHO_C" >&6
4090if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4091 echo $ECHO_N "(cached) $ECHO_C" >&6
4092else
4093 case $MAGIC_CMD in
4094 /*)
4095 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4096 ;;
4097 ?:/*)
4098 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4099 ;;
4100 *)
4101 ac_save_MAGIC_CMD="$MAGIC_CMD"
4102 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4103 ac_dummy="/usr/bin:$PATH"
4104 for ac_dir in $ac_dummy; do
4105 test -z "$ac_dir" && ac_dir=.
4106 if test -f $ac_dir/file; then
4107 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4108 if test -n "$file_magic_test_file"; then
4109 case $deplibs_check_method in
4110 "file_magic "*)
4111 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4112 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4113 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4114 egrep "$file_magic_regex" > /dev/null; then
4115 :
4116 else
4117 cat <<EOF 1>&2
4118
4119*** Warning: the command libtool uses to detect shared libraries,
4120*** $file_magic_cmd, produces output that libtool cannot recognize.
4121*** The result is that libtool may fail to recognize shared libraries
4122*** as such. This will affect the creation of libtool libraries that
4123*** depend on shared libraries, but programs linked with such libtool
4124*** libraries will work regardless of this problem. Nevertheless, you
4125*** may want to report the problem to your system manager and/or to
4126*** bug-libtool@gnu.org
4127
4128EOF
4129 fi ;;
4130 esac
4131 fi
4132 break
4133 fi
4134 done
4135 IFS="$ac_save_ifs"
4136 MAGIC_CMD="$ac_save_MAGIC_CMD"
4137 ;;
4138esac
4139fi
4140
4141MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4142if test -n "$MAGIC_CMD"; then
4143 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4144echo "${ECHO_T}$MAGIC_CMD" >&6
4145else
4146 echo "$as_me:$LINENO: result: no" >&5
4147echo "${ECHO_T}no" >&6
4148fi
4149
4150 else
4151 MAGIC_CMD=:
4152 fi
4153fi
4154
4155 fi
4156 ;;
4157esac
4158
4159if test -n "$ac_tool_prefix"; then
4160 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4161set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4162echo "$as_me:$LINENO: checking for $ac_word" >&5
4163echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4164if test "${ac_cv_prog_RANLIB+set}" = set; then
4165 echo $ECHO_N "(cached) $ECHO_C" >&6
4166else
4167 if test -n "$RANLIB"; then
4168 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4169else
4170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4171for as_dir in $PATH
4172do
4173 IFS=$as_save_IFS
4174 test -z "$as_dir" && as_dir=.
4175 for ac_exec_ext in '' $ac_executable_extensions; do
4176 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4177 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4179 break 2
4180 fi
4181done
4182done
4183
4184fi
4185fi
4186RANLIB=$ac_cv_prog_RANLIB
4187if test -n "$RANLIB"; then
4188 echo "$as_me:$LINENO: result: $RANLIB" >&5
4189echo "${ECHO_T}$RANLIB" >&6
4190else
4191 echo "$as_me:$LINENO: result: no" >&5
4192echo "${ECHO_T}no" >&6
4193fi
4194
4195fi
4196if test -z "$ac_cv_prog_RANLIB"; then
4197 ac_ct_RANLIB=$RANLIB
4198 # Extract the first word of "ranlib", so it can be a program name with args.
4199set dummy ranlib; ac_word=$2
4200echo "$as_me:$LINENO: checking for $ac_word" >&5
4201echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4202if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4203 echo $ECHO_N "(cached) $ECHO_C" >&6
4204else
4205 if test -n "$ac_ct_RANLIB"; then
4206 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4207else
4208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4209for as_dir in $PATH
4210do
4211 IFS=$as_save_IFS
4212 test -z "$as_dir" && as_dir=.
4213 for ac_exec_ext in '' $ac_executable_extensions; do
4214 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4215 ac_cv_prog_ac_ct_RANLIB="ranlib"
4216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4217 break 2
4218 fi
4219done
4220done
4221
4222 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4223fi
4224fi
4225ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4226if test -n "$ac_ct_RANLIB"; then
4227 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4228echo "${ECHO_T}$ac_ct_RANLIB" >&6
4229else
4230 echo "$as_me:$LINENO: result: no" >&5
4231echo "${ECHO_T}no" >&6
4232fi
4233
4234 RANLIB=$ac_ct_RANLIB
4235else
4236 RANLIB="$ac_cv_prog_RANLIB"
4237fi
4238
4239if test -n "$ac_tool_prefix"; then
4240 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4241set dummy ${ac_tool_prefix}strip; ac_word=$2
4242echo "$as_me:$LINENO: checking for $ac_word" >&5
4243echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4244if test "${ac_cv_prog_STRIP+set}" = set; then
4245 echo $ECHO_N "(cached) $ECHO_C" >&6
4246else
4247 if test -n "$STRIP"; then
4248 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4249else
4250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4251for as_dir in $PATH
4252do
4253 IFS=$as_save_IFS
4254 test -z "$as_dir" && as_dir=.
4255 for ac_exec_ext in '' $ac_executable_extensions; do
4256 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4257 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4259 break 2
4260 fi
4261done
4262done
4263
4264fi
4265fi
4266STRIP=$ac_cv_prog_STRIP
4267if test -n "$STRIP"; then
4268 echo "$as_me:$LINENO: result: $STRIP" >&5
4269echo "${ECHO_T}$STRIP" >&6
4270else
4271 echo "$as_me:$LINENO: result: no" >&5
4272echo "${ECHO_T}no" >&6
4273fi
4274
4275fi
4276if test -z "$ac_cv_prog_STRIP"; then
4277 ac_ct_STRIP=$STRIP
4278 # Extract the first word of "strip", so it can be a program name with args.
4279set dummy strip; ac_word=$2
4280echo "$as_me:$LINENO: checking for $ac_word" >&5
4281echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4282if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4283 echo $ECHO_N "(cached) $ECHO_C" >&6
4284else
4285 if test -n "$ac_ct_STRIP"; then
4286 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4287else
4288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4289for as_dir in $PATH
4290do
4291 IFS=$as_save_IFS
4292 test -z "$as_dir" && as_dir=.
4293 for ac_exec_ext in '' $ac_executable_extensions; do
4294 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4295 ac_cv_prog_ac_ct_STRIP="strip"
4296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4297 break 2
4298 fi
4299done
4300done
4301
4302 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4303fi
4304fi
4305ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4306if test -n "$ac_ct_STRIP"; then
4307 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4308echo "${ECHO_T}$ac_ct_STRIP" >&6
4309else
4310 echo "$as_me:$LINENO: result: no" >&5
4311echo "${ECHO_T}no" >&6
4312fi
4313
4314 STRIP=$ac_ct_STRIP
4315else
4316 STRIP="$ac_cv_prog_STRIP"
4317fi
4318
4319
4320# Check for any special flags to pass to ltconfig.
4321libtool_flags="--cache-file=$cache_file"
4322test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4323test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4324test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4325test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4326test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4327
4328
4329# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4330if test "${enable_libtool_lock+set}" = set; then
4331 enableval="$enable_libtool_lock"
4332
4333fi;
4334test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4335test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4336
4337
4338# Check whether --with-pic or --without-pic was given.
4339if test "${with_pic+set}" = set; then
4340 withval="$with_pic"
4341 pic_mode="$withval"
4342else
4343 pic_mode=default
4344fi;
4345test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4346test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4347
4348# Some flags need to be propagated to the compiler or linker for good
4349# libtool support.
4350case $host in
4351*-*-irix6*)
4352 # Find out which ABI we are using.
439d698f 4353 echo '#line 4349 "configure"' > conftest.$ac_ext
1e8e9920 4354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4355 (eval $ac_compile) 2>&5
4356 ac_status=$?
4357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4358 (exit $ac_status); }; then
4359 if test "$lt_cv_prog_gnu_ld" = yes; then
4360 case `/usr/bin/file conftest.$ac_objext` in
4361 *32-bit*)
4362 LD="${LD-ld} -melf32bsmip"
4363 ;;
4364 *N32*)
4365 LD="${LD-ld} -melf32bmipn32"
4366 ;;
4367 *64-bit*)
4368 LD="${LD-ld} -melf64bmip"
4369 ;;
4370 esac
4371 else
4372 case `/usr/bin/file conftest.$ac_objext` in
4373 *32-bit*)
4374 LD="${LD-ld} -32"
4375 ;;
4376 *N32*)
4377 LD="${LD-ld} -n32"
4378 ;;
4379 *64-bit*)
4380 LD="${LD-ld} -64"
4381 ;;
4382 esac
4383 fi
4384 fi
4385 rm -rf conftest*
4386 ;;
4387
4388ia64-*-hpux*)
4389 # Find out which ABI we are using.
4390 echo 'int i;' > conftest.$ac_ext
4391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4392 (eval $ac_compile) 2>&5
4393 ac_status=$?
4394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395 (exit $ac_status); }; then
4396 case "`/usr/bin/file conftest.o`" in
4397 *ELF-32*)
4398 HPUX_IA64_MODE="32"
4399 ;;
4400 *ELF-64*)
4401 HPUX_IA64_MODE="64"
4402 ;;
4403 esac
4404 fi
4405 rm -rf conftest*
4406 ;;
4407
4408x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4409 # Find out which ABI we are using.
4410 echo 'int i;' > conftest.$ac_ext
4411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4412 (eval $ac_compile) 2>&5
4413 ac_status=$?
4414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415 (exit $ac_status); }; then
4416 case "`/usr/bin/file conftest.o`" in
4417 *32-bit*)
4418 case $host in
4419 x86_64-*linux*)
4420 LD="${LD-ld} -m elf_i386"
4421 ;;
4422 ppc64-*linux*|powerpc64-*linux*)
4423 LD="${LD-ld} -m elf32ppclinux"
4424 ;;
4425 s390x-*linux*)
4426 LD="${LD-ld} -m elf_s390"
4427 ;;
4428 sparc64-*linux*)
4429 LD="${LD-ld} -m elf32_sparc"
4430 ;;
4431 esac
4432 ;;
4433 *64-bit*)
4434 case $host in
4435 x86_64-*linux*)
4436 LD="${LD-ld} -m elf_x86_64"
4437 ;;
4438 ppc*-*linux*|powerpc*-*linux*)
4439 LD="${LD-ld} -m elf64ppc"
4440 ;;
4441 s390*-*linux*)
4442 LD="${LD-ld} -m elf64_s390"
4443 ;;
4444 sparc*-*linux*)
4445 LD="${LD-ld} -m elf64_sparc"
4446 ;;
4447 esac
4448 ;;
4449 esac
4450 fi
4451 rm -rf conftest*
4452 ;;
4453
4454*-*-sco3.2v5*)
4455 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4456 SAVE_CFLAGS="$CFLAGS"
4457 CFLAGS="$CFLAGS -belf"
4458 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4459echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4460if test "${lt_cv_cc_needs_belf+set}" = set; then
4461 echo $ECHO_N "(cached) $ECHO_C" >&6
4462else
4463
4464
4465 ac_ext=c
4466ac_cpp='$CPP $CPPFLAGS'
4467ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4468ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4469ac_compiler_gnu=$ac_cv_c_compiler_gnu
4470
4471 cat >conftest.$ac_ext <<_ACEOF
4472/* confdefs.h. */
4473_ACEOF
4474cat confdefs.h >>conftest.$ac_ext
4475cat >>conftest.$ac_ext <<_ACEOF
4476/* end confdefs.h. */
4477
4478int
4479main ()
4480{
4481
4482 ;
4483 return 0;
4484}
4485_ACEOF
4486rm -f conftest.$ac_objext conftest$ac_exeext
4487if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4488 (eval $ac_link) 2>conftest.er1
4489 ac_status=$?
4490 grep -v '^ *+' conftest.er1 >conftest.err
4491 rm -f conftest.er1
4492 cat conftest.err >&5
4493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494 (exit $ac_status); } &&
59da30e1 4495 { ac_try='test -z "$ac_c_werror_flag"
4496 || test ! -s conftest.err'
1e8e9920 4497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4498 (eval $ac_try) 2>&5
4499 ac_status=$?
4500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501 (exit $ac_status); }; } &&
4502 { ac_try='test -s conftest$ac_exeext'
4503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4504 (eval $ac_try) 2>&5
4505 ac_status=$?
4506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4507 (exit $ac_status); }; }; then
4508 lt_cv_cc_needs_belf=yes
4509else
4510 echo "$as_me: failed program was:" >&5
4511sed 's/^/| /' conftest.$ac_ext >&5
4512
4513lt_cv_cc_needs_belf=no
4514fi
4515rm -f conftest.err conftest.$ac_objext \
4516 conftest$ac_exeext conftest.$ac_ext
4517 ac_ext=c
4518ac_cpp='$CPP $CPPFLAGS'
4519ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4520ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4521ac_compiler_gnu=$ac_cv_c_compiler_gnu
4522
4523fi
4524echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4525echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4526 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4527 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4528 CFLAGS="$SAVE_CFLAGS"
4529 fi
4530 ;;
4531
4532
4533esac
4534
4535
4536# Save cache, so that ltconfig can load it
4537cat >confcache <<\_ACEOF
4538# This file is a shell script that caches the results of configure
4539# tests run on this system so they can be shared between configure
4540# scripts and configure runs, see configure's option --config-cache.
4541# It is not useful on other systems. If it contains results you don't
4542# want to keep, you may remove or edit it.
4543#
4544# config.status only pays attention to the cache file if you give it
4545# the --recheck option to rerun configure.
4546#
4547# `ac_cv_env_foo' variables (set or unset) will be overridden when
4548# loading this file, other *unset* `ac_cv_foo' will be assigned the
4549# following values.
4550
4551_ACEOF
4552
4553# The following way of writing the cache mishandles newlines in values,
4554# but we know of no workaround that is simple, portable, and efficient.
4555# So, don't put newlines in cache variables' values.
4556# Ultrix sh set writes to stderr and can't be redirected directly,
4557# and sets the high bit in the cache file unless we assign to the vars.
4558{
4559 (set) 2>&1 |
4560 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4561 *ac_space=\ *)
4562 # `set' does not quote correctly, so add quotes (double-quote
4563 # substitution turns \\\\ into \\, and sed turns \\ into \).
4564 sed -n \
4565 "s/'/'\\\\''/g;
4566 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4567 ;;
4568 *)
4569 # `set' quotes correctly as required by POSIX, so do not add quotes.
4570 sed -n \
4571 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4572 ;;
4573 esac;
4574} |
4575 sed '
4576 t clear
4577 : clear
4578 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4579 t end
4580 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4581 : end' >>confcache
4582if diff $cache_file confcache >/dev/null 2>&1; then :; else
4583 if test -w $cache_file; then
4584 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4585 cat confcache >$cache_file
4586 else
4587 echo "not updating unwritable cache $cache_file"
4588 fi
4589fi
4590rm -f confcache
4591
4592# Actually configure libtool. ac_aux_dir is where install-sh is found.
4593AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4594MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4595LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4596AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4597objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4598deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4599${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4600$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4601|| { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4602echo "$as_me: error: libtool configure failed" >&2;}
4603 { (exit 1); exit 1; }; }
4604
4605# Reload cache, that may have been modified by ltconfig
4606if test -r "$cache_file"; then
4607 # Some versions of bash will fail to source /dev/null (special
4608 # files actually), so we avoid doing that.
4609 if test -f "$cache_file"; then
4610 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4611echo "$as_me: loading cache $cache_file" >&6;}
4612 case $cache_file in
4613 [\\/]* | ?:[\\/]* ) . $cache_file;;
4614 *) . ./$cache_file;;
4615 esac
4616 fi
4617else
4618 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4619echo "$as_me: creating cache $cache_file" >&6;}
4620 >$cache_file
4621fi
4622
4623
4624# This can be used to rebuild libtool when needed
4625LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4626
4627# Always use our own libtool.
4628LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4629
4630# Redirect the config.log output again, so that the ltconfig log is not
4631# clobbered by the next message.
4632exec 5>>./config.log
4633
4634
4635
4636
4637
4638
4639
4640
4641
a263d1ab 4642echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4643echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4644 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4645if test "${enable_maintainer_mode+set}" = set; then
4646 enableval="$enable_maintainer_mode"
4647 USE_MAINTAINER_MODE=$enableval
4648else
4649 USE_MAINTAINER_MODE=no
4650fi;
4651 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4652echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4653
4654
4655if test $USE_MAINTAINER_MODE = yes; then
4656 MAINTAINER_MODE_TRUE=
4657 MAINTAINER_MODE_FALSE='#'
4658else
4659 MAINTAINER_MODE_TRUE='#'
4660 MAINTAINER_MODE_FALSE=
4661fi
4662
4663 MAINT=$MAINTAINER_MODE_TRUE
4664
4665
4666
1e8e9920 4667# We need gfortran to compile parts of the library
4668# We can't use AC_PROG_FC because it expects a fully working gfortran.
4669#AC_PROG_FC(gfortran)
4670FC="$GFORTRAN"
4671ac_ext=${FC_SRCEXT-f}
4672ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
4673ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
4674ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4675if test -n "$ac_tool_prefix"; then
4676 for ac_prog in gfortran
4677 do
4678 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4679set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4680echo "$as_me:$LINENO: checking for $ac_word" >&5
4681echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4682if test "${ac_cv_prog_FC+set}" = set; then
4683 echo $ECHO_N "(cached) $ECHO_C" >&6
4684else
4685 if test -n "$FC"; then
4686 ac_cv_prog_FC="$FC" # Let the user override the test.
4687else
4688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4689for as_dir in $PATH
4690do
4691 IFS=$as_save_IFS
4692 test -z "$as_dir" && as_dir=.
4693 for ac_exec_ext in '' $ac_executable_extensions; do
4694 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4695 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
4696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4697 break 2
4698 fi
4699done
4700done
4701
4702fi
4703fi
4704FC=$ac_cv_prog_FC
4705if test -n "$FC"; then
4706 echo "$as_me:$LINENO: result: $FC" >&5
4707echo "${ECHO_T}$FC" >&6
4708else
4709 echo "$as_me:$LINENO: result: no" >&5
4710echo "${ECHO_T}no" >&6
4711fi
4712
4713 test -n "$FC" && break
4714 done
4715fi
4716if test -z "$FC"; then
4717 ac_ct_FC=$FC
4718 for ac_prog in gfortran
4719do
4720 # Extract the first word of "$ac_prog", so it can be a program name with args.
4721set dummy $ac_prog; ac_word=$2
4722echo "$as_me:$LINENO: checking for $ac_word" >&5
4723echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4724if test "${ac_cv_prog_ac_ct_FC+set}" = set; then
4725 echo $ECHO_N "(cached) $ECHO_C" >&6
4726else
4727 if test -n "$ac_ct_FC"; then
4728 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
4729else
4730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4731for as_dir in $PATH
4732do
4733 IFS=$as_save_IFS
4734 test -z "$as_dir" && as_dir=.
4735 for ac_exec_ext in '' $ac_executable_extensions; do
4736 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4737 ac_cv_prog_ac_ct_FC="$ac_prog"
4738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4739 break 2
4740 fi
4741done
4742done
4743
4744fi
4745fi
4746ac_ct_FC=$ac_cv_prog_ac_ct_FC
4747if test -n "$ac_ct_FC"; then
4748 echo "$as_me:$LINENO: result: $ac_ct_FC" >&5
4749echo "${ECHO_T}$ac_ct_FC" >&6
4750else
4751 echo "$as_me:$LINENO: result: no" >&5
4752echo "${ECHO_T}no" >&6
4753fi
4754
4755 test -n "$ac_ct_FC" && break
4756done
4757
4758 FC=$ac_ct_FC
4759fi
4760
4761
4762# Provide some information about the compiler.
439d698f 4763echo "$as_me:4759:" \
1e8e9920 4764 "checking for Fortran compiler version" >&5
4765ac_compiler=`set X $ac_compile; echo $2`
4766{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4767 (eval $ac_compiler --version </dev/null >&5) 2>&5
4768 ac_status=$?
4769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4770 (exit $ac_status); }
4771{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4772 (eval $ac_compiler -v </dev/null >&5) 2>&5
4773 ac_status=$?
4774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775 (exit $ac_status); }
4776{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4777 (eval $ac_compiler -V </dev/null >&5) 2>&5
4778 ac_status=$?
4779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780 (exit $ac_status); }
4781rm -f a.out
4782
4783# If we don't use `.F' as extension, the preprocessor is not run on the
4784# input file. (Note that this only needs to work for GNU compilers.)
4785ac_save_ext=$ac_ext
4786ac_ext=F
4787echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5
4788echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6
4789if test "${ac_cv_fc_compiler_gnu+set}" = set; then
4790 echo $ECHO_N "(cached) $ECHO_C" >&6
4791else
4792 cat >conftest.$ac_ext <<_ACEOF
4793 program main
4794#ifndef __GNUC__
4795 choke me
4796#endif
4797
4798 end
4799_ACEOF
4800rm -f conftest.$ac_objext
4801if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4802 (eval $ac_compile) 2>conftest.er1
4803 ac_status=$?
4804 grep -v '^ *+' conftest.er1 >conftest.err
4805 rm -f conftest.er1
4806 cat conftest.err >&5
4807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808 (exit $ac_status); } &&
59da30e1 4809 { ac_try='test -z "$ac_fc_werror_flag"
4810 || test ! -s conftest.err'
1e8e9920 4811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4812 (eval $ac_try) 2>&5
4813 ac_status=$?
4814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815 (exit $ac_status); }; } &&
4816 { ac_try='test -s conftest.$ac_objext'
4817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4818 (eval $ac_try) 2>&5
4819 ac_status=$?
4820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821 (exit $ac_status); }; }; then
4822 ac_compiler_gnu=yes
4823else
4824 echo "$as_me: failed program was:" >&5
4825sed 's/^/| /' conftest.$ac_ext >&5
4826
4827ac_compiler_gnu=no
4828fi
4829rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4830ac_cv_fc_compiler_gnu=$ac_compiler_gnu
4831
4832fi
4833echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5
4834echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6
4835ac_ext=$ac_save_ext
4836ac_test_FFLAGS=${FCFLAGS+set}
4837ac_save_FFLAGS=$FCFLAGS
4838FCFLAGS=
4839echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5
4840echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6
4841if test "${ac_cv_prog_fc_g+set}" = set; then
4842 echo $ECHO_N "(cached) $ECHO_C" >&6
4843else
4844 FCFLAGS=-g
4845cat >conftest.$ac_ext <<_ACEOF
4846 program main
4847
4848 end
4849_ACEOF
4850rm -f conftest.$ac_objext
4851if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4852 (eval $ac_compile) 2>conftest.er1
4853 ac_status=$?
4854 grep -v '^ *+' conftest.er1 >conftest.err
4855 rm -f conftest.er1
4856 cat conftest.err >&5
4857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4858 (exit $ac_status); } &&
59da30e1 4859 { ac_try='test -z "$ac_fc_werror_flag"
4860 || test ! -s conftest.err'
1e8e9920 4861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4862 (eval $ac_try) 2>&5
4863 ac_status=$?
4864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865 (exit $ac_status); }; } &&
4866 { ac_try='test -s conftest.$ac_objext'
4867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4868 (eval $ac_try) 2>&5
4869 ac_status=$?
4870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4871 (exit $ac_status); }; }; then
4872 ac_cv_prog_fc_g=yes
4873else
4874 echo "$as_me: failed program was:" >&5
4875sed 's/^/| /' conftest.$ac_ext >&5
4876
4877ac_cv_prog_fc_g=no
4878fi
4879rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4880
4881fi
4882echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5
4883echo "${ECHO_T}$ac_cv_prog_fc_g" >&6
4884if test "$ac_test_FFLAGS" = set; then
4885 FCFLAGS=$ac_save_FFLAGS
4886elif test $ac_cv_prog_fc_g = yes; then
4887 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4888 FCFLAGS="-g -O2"
4889 else
4890 FCFLAGS="-g"
4891 fi
4892else
4893 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4894 FCFLAGS="-O2"
4895 else
4896 FCFLAGS=
4897 fi
4898fi
4899
4900ac_ext=c
4901ac_cpp='$CPP $CPPFLAGS'
4902ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4903ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4904ac_compiler_gnu=$ac_cv_c_compiler_gnu
4905
4906FCFLAGS="$FCFLAGS -Wall"
4907
4908# For libtool versioning info, format is CURRENT:REVISION:AGE
4909libtool_VERSION=1:0:0
4910
4911
4912# Check header files.
4913ac_ext=c
4914ac_cpp='$CPP $CPPFLAGS'
4915ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4916ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4917ac_compiler_gnu=$ac_cv_c_compiler_gnu
4918echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4919echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4920# On Suns, sometimes $CPP names a directory.
4921if test -n "$CPP" && test -d "$CPP"; then
4922 CPP=
4923fi
4924if test -z "$CPP"; then
4925 if test "${ac_cv_prog_CPP+set}" = set; then
4926 echo $ECHO_N "(cached) $ECHO_C" >&6
4927else
4928 # Double quotes because CPP needs to be expanded
4929 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4930 do
4931 ac_preproc_ok=false
4932for ac_c_preproc_warn_flag in '' yes
4933do
4934 # Use a header file that comes with gcc, so configuring glibc
4935 # with a fresh cross-compiler works.
4936 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4937 # <limits.h> exists even on freestanding compilers.
4938 # On the NeXT, cc -E runs the code through the compiler's parser,
4939 # not just through cpp. "Syntax error" is here to catch this case.
4940 cat >conftest.$ac_ext <<_ACEOF
4941/* confdefs.h. */
4942_ACEOF
4943cat confdefs.h >>conftest.$ac_ext
4944cat >>conftest.$ac_ext <<_ACEOF
4945/* end confdefs.h. */
4946#ifdef __STDC__
4947# include <limits.h>
4948#else
4949# include <assert.h>
4950#endif
4951 Syntax error
4952_ACEOF
4953if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4954 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4955 ac_status=$?
4956 grep -v '^ *+' conftest.er1 >conftest.err
4957 rm -f conftest.er1
4958 cat conftest.err >&5
4959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4960 (exit $ac_status); } >/dev/null; then
4961 if test -s conftest.err; then
4962 ac_cpp_err=$ac_c_preproc_warn_flag
4963 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4964 else
4965 ac_cpp_err=
4966 fi
4967else
4968 ac_cpp_err=yes
4969fi
4970if test -z "$ac_cpp_err"; then
4971 :
4972else
4973 echo "$as_me: failed program was:" >&5
4974sed 's/^/| /' conftest.$ac_ext >&5
4975
4976 # Broken: fails on valid input.
4977continue
4978fi
4979rm -f conftest.err conftest.$ac_ext
4980
4981 # OK, works on sane cases. Now check whether non-existent headers
4982 # can be detected and how.
4983 cat >conftest.$ac_ext <<_ACEOF
4984/* confdefs.h. */
4985_ACEOF
4986cat confdefs.h >>conftest.$ac_ext
4987cat >>conftest.$ac_ext <<_ACEOF
4988/* end confdefs.h. */
4989#include <ac_nonexistent.h>
4990_ACEOF
4991if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4992 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4993 ac_status=$?
4994 grep -v '^ *+' conftest.er1 >conftest.err
4995 rm -f conftest.er1
4996 cat conftest.err >&5
4997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4998 (exit $ac_status); } >/dev/null; then
4999 if test -s conftest.err; then
5000 ac_cpp_err=$ac_c_preproc_warn_flag
5001 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5002 else
5003 ac_cpp_err=
5004 fi
5005else
5006 ac_cpp_err=yes
5007fi
5008if test -z "$ac_cpp_err"; then
5009 # Broken: success on invalid input.
5010continue
5011else
5012 echo "$as_me: failed program was:" >&5
5013sed 's/^/| /' conftest.$ac_ext >&5
5014
5015 # Passes both tests.
5016ac_preproc_ok=:
5017break
5018fi
5019rm -f conftest.err conftest.$ac_ext
5020
5021done
5022# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5023rm -f conftest.err conftest.$ac_ext
5024if $ac_preproc_ok; then
5025 break
5026fi
5027
5028 done
5029 ac_cv_prog_CPP=$CPP
5030
5031fi
5032 CPP=$ac_cv_prog_CPP
5033else
5034 ac_cv_prog_CPP=$CPP
5035fi
5036echo "$as_me:$LINENO: result: $CPP" >&5
5037echo "${ECHO_T}$CPP" >&6
5038ac_preproc_ok=false
5039for ac_c_preproc_warn_flag in '' yes
5040do
5041 # Use a header file that comes with gcc, so configuring glibc
5042 # with a fresh cross-compiler works.
5043 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5044 # <limits.h> exists even on freestanding compilers.
5045 # On the NeXT, cc -E runs the code through the compiler's parser,
5046 # not just through cpp. "Syntax error" is here to catch this case.
5047 cat >conftest.$ac_ext <<_ACEOF
5048/* confdefs.h. */
5049_ACEOF
5050cat confdefs.h >>conftest.$ac_ext
5051cat >>conftest.$ac_ext <<_ACEOF
5052/* end confdefs.h. */
5053#ifdef __STDC__
5054# include <limits.h>
5055#else
5056# include <assert.h>
5057#endif
5058 Syntax error
5059_ACEOF
5060if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5061 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5062 ac_status=$?
5063 grep -v '^ *+' conftest.er1 >conftest.err
5064 rm -f conftest.er1
5065 cat conftest.err >&5
5066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5067 (exit $ac_status); } >/dev/null; then
5068 if test -s conftest.err; then
5069 ac_cpp_err=$ac_c_preproc_warn_flag
5070 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5071 else
5072 ac_cpp_err=
5073 fi
5074else
5075 ac_cpp_err=yes
5076fi
5077if test -z "$ac_cpp_err"; then
5078 :
5079else
5080 echo "$as_me: failed program was:" >&5
5081sed 's/^/| /' conftest.$ac_ext >&5
5082
5083 # Broken: fails on valid input.
5084continue
5085fi
5086rm -f conftest.err conftest.$ac_ext
5087
5088 # OK, works on sane cases. Now check whether non-existent headers
5089 # can be detected and how.
5090 cat >conftest.$ac_ext <<_ACEOF
5091/* confdefs.h. */
5092_ACEOF
5093cat confdefs.h >>conftest.$ac_ext
5094cat >>conftest.$ac_ext <<_ACEOF
5095/* end confdefs.h. */
5096#include <ac_nonexistent.h>
5097_ACEOF
5098if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5099 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5100 ac_status=$?
5101 grep -v '^ *+' conftest.er1 >conftest.err
5102 rm -f conftest.er1
5103 cat conftest.err >&5
5104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5105 (exit $ac_status); } >/dev/null; then
5106 if test -s conftest.err; then
5107 ac_cpp_err=$ac_c_preproc_warn_flag
5108 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5109 else
5110 ac_cpp_err=
5111 fi
5112else
5113 ac_cpp_err=yes
5114fi
5115if test -z "$ac_cpp_err"; then
5116 # Broken: success on invalid input.
5117continue
5118else
5119 echo "$as_me: failed program was:" >&5
5120sed 's/^/| /' conftest.$ac_ext >&5
5121
5122 # Passes both tests.
5123ac_preproc_ok=:
5124break
5125fi
5126rm -f conftest.err conftest.$ac_ext
5127
5128done
5129# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5130rm -f conftest.err conftest.$ac_ext
5131if $ac_preproc_ok; then
5132 :
5133else
5134 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5135See \`config.log' for more details." >&5
5136echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5137See \`config.log' for more details." >&2;}
5138 { (exit 1); exit 1; }; }
5139fi
5140
5141ac_ext=c
5142ac_cpp='$CPP $CPPFLAGS'
5143ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5144ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5145ac_compiler_gnu=$ac_cv_c_compiler_gnu
5146
5147
5148echo "$as_me:$LINENO: checking for egrep" >&5
5149echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5150if test "${ac_cv_prog_egrep+set}" = set; then
5151 echo $ECHO_N "(cached) $ECHO_C" >&6
5152else
5153 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5154 then ac_cv_prog_egrep='grep -E'
5155 else ac_cv_prog_egrep='egrep'
5156 fi
5157fi
5158echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5159echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5160 EGREP=$ac_cv_prog_egrep
5161
5162
5163echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5164echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5165if test "${ac_cv_header_stdc+set}" = set; then
5166 echo $ECHO_N "(cached) $ECHO_C" >&6
5167else
5168 cat >conftest.$ac_ext <<_ACEOF
5169/* confdefs.h. */
5170_ACEOF
5171cat confdefs.h >>conftest.$ac_ext
5172cat >>conftest.$ac_ext <<_ACEOF
5173/* end confdefs.h. */
5174#include <stdlib.h>
5175#include <stdarg.h>
5176#include <string.h>
5177#include <float.h>
5178
5179int
5180main ()
5181{
5182
5183 ;
5184 return 0;
5185}
5186_ACEOF
5187rm -f conftest.$ac_objext
5188if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5189 (eval $ac_compile) 2>conftest.er1
5190 ac_status=$?
5191 grep -v '^ *+' conftest.er1 >conftest.err
5192 rm -f conftest.er1
5193 cat conftest.err >&5
5194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5195 (exit $ac_status); } &&
59da30e1 5196 { ac_try='test -z "$ac_c_werror_flag"
5197 || test ! -s conftest.err'
1e8e9920 5198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5199 (eval $ac_try) 2>&5
5200 ac_status=$?
5201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5202 (exit $ac_status); }; } &&
5203 { ac_try='test -s conftest.$ac_objext'
5204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5205 (eval $ac_try) 2>&5
5206 ac_status=$?
5207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5208 (exit $ac_status); }; }; then
5209 ac_cv_header_stdc=yes
5210else
5211 echo "$as_me: failed program was:" >&5
5212sed 's/^/| /' conftest.$ac_ext >&5
5213
5214ac_cv_header_stdc=no
5215fi
5216rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5217
5218if test $ac_cv_header_stdc = yes; then
5219 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5220 cat >conftest.$ac_ext <<_ACEOF
5221/* confdefs.h. */
5222_ACEOF
5223cat confdefs.h >>conftest.$ac_ext
5224cat >>conftest.$ac_ext <<_ACEOF
5225/* end confdefs.h. */
5226#include <string.h>
5227
5228_ACEOF
5229if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5230 $EGREP "memchr" >/dev/null 2>&1; then
5231 :
5232else
5233 ac_cv_header_stdc=no
5234fi
5235rm -f conftest*
5236
5237fi
5238
5239if test $ac_cv_header_stdc = yes; then
5240 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5241 cat >conftest.$ac_ext <<_ACEOF
5242/* confdefs.h. */
5243_ACEOF
5244cat confdefs.h >>conftest.$ac_ext
5245cat >>conftest.$ac_ext <<_ACEOF
5246/* end confdefs.h. */
5247#include <stdlib.h>
5248
5249_ACEOF
5250if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5251 $EGREP "free" >/dev/null 2>&1; then
5252 :
5253else
5254 ac_cv_header_stdc=no
5255fi
5256rm -f conftest*
5257
5258fi
5259
5260if test $ac_cv_header_stdc = yes; then
5261 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5262 if test "$cross_compiling" = yes; then
5263 :
5264else
5265 cat >conftest.$ac_ext <<_ACEOF
5266/* confdefs.h. */
5267_ACEOF
5268cat confdefs.h >>conftest.$ac_ext
5269cat >>conftest.$ac_ext <<_ACEOF
5270/* end confdefs.h. */
5271#include <ctype.h>
5272#if ((' ' & 0x0FF) == 0x020)
5273# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5274# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5275#else
5276# define ISLOWER(c) \
5277 (('a' <= (c) && (c) <= 'i') \
5278 || ('j' <= (c) && (c) <= 'r') \
5279 || ('s' <= (c) && (c) <= 'z'))
5280# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5281#endif
5282
5283#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5284int
5285main ()
5286{
5287 int i;
5288 for (i = 0; i < 256; i++)
5289 if (XOR (islower (i), ISLOWER (i))
5290 || toupper (i) != TOUPPER (i))
5291 exit(2);
5292 exit (0);
5293}
5294_ACEOF
5295rm -f conftest$ac_exeext
5296if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5297 (eval $ac_link) 2>&5
5298 ac_status=$?
5299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5302 (eval $ac_try) 2>&5
5303 ac_status=$?
5304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5305 (exit $ac_status); }; }; then
5306 :
5307else
5308 echo "$as_me: program exited with status $ac_status" >&5
5309echo "$as_me: failed program was:" >&5
5310sed 's/^/| /' conftest.$ac_ext >&5
5311
5312( exit $ac_status )
5313ac_cv_header_stdc=no
5314fi
5315rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5316fi
5317fi
5318fi
5319echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5320echo "${ECHO_T}$ac_cv_header_stdc" >&6
5321if test $ac_cv_header_stdc = yes; then
5322
5323cat >>confdefs.h <<\_ACEOF
5324#define STDC_HEADERS 1
5325_ACEOF
5326
5327fi
5328
5329echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5330echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5331if test "${ac_cv_header_time+set}" = set; then
5332 echo $ECHO_N "(cached) $ECHO_C" >&6
5333else
5334 cat >conftest.$ac_ext <<_ACEOF
5335/* confdefs.h. */
5336_ACEOF
5337cat confdefs.h >>conftest.$ac_ext
5338cat >>conftest.$ac_ext <<_ACEOF
5339/* end confdefs.h. */
5340#include <sys/types.h>
5341#include <sys/time.h>
5342#include <time.h>
5343
5344int
5345main ()
5346{
5347if ((struct tm *) 0)
5348return 0;
5349 ;
5350 return 0;
5351}
5352_ACEOF
5353rm -f conftest.$ac_objext
5354if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5355 (eval $ac_compile) 2>conftest.er1
5356 ac_status=$?
5357 grep -v '^ *+' conftest.er1 >conftest.err
5358 rm -f conftest.er1
5359 cat conftest.err >&5
5360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5361 (exit $ac_status); } &&
59da30e1 5362 { ac_try='test -z "$ac_c_werror_flag"
5363 || test ! -s conftest.err'
1e8e9920 5364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5365 (eval $ac_try) 2>&5
5366 ac_status=$?
5367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5368 (exit $ac_status); }; } &&
5369 { ac_try='test -s conftest.$ac_objext'
5370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5371 (eval $ac_try) 2>&5
5372 ac_status=$?
5373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5374 (exit $ac_status); }; }; then
5375 ac_cv_header_time=yes
5376else
5377 echo "$as_me: failed program was:" >&5
5378sed 's/^/| /' conftest.$ac_ext >&5
5379
5380ac_cv_header_time=no
5381fi
5382rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5383fi
5384echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5385echo "${ECHO_T}$ac_cv_header_time" >&6
5386if test $ac_cv_header_time = yes; then
5387
5388cat >>confdefs.h <<\_ACEOF
5389#define TIME_WITH_SYS_TIME 1
5390_ACEOF
5391
5392fi
5393
5394# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5405 inttypes.h stdint.h unistd.h
5406do
5407as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5408echo "$as_me:$LINENO: checking for $ac_header" >&5
5409echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5410if eval "test \"\${$as_ac_Header+set}\" = set"; then
5411 echo $ECHO_N "(cached) $ECHO_C" >&6
5412else
5413 cat >conftest.$ac_ext <<_ACEOF
5414/* confdefs.h. */
5415_ACEOF
5416cat confdefs.h >>conftest.$ac_ext
5417cat >>conftest.$ac_ext <<_ACEOF
5418/* end confdefs.h. */
5419$ac_includes_default
5420
5421#include <$ac_header>
5422_ACEOF
5423rm -f conftest.$ac_objext
5424if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5425 (eval $ac_compile) 2>conftest.er1
5426 ac_status=$?
5427 grep -v '^ *+' conftest.er1 >conftest.err
5428 rm -f conftest.er1
5429 cat conftest.err >&5
5430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5431 (exit $ac_status); } &&
59da30e1 5432 { ac_try='test -z "$ac_c_werror_flag"
5433 || test ! -s conftest.err'
1e8e9920 5434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5435 (eval $ac_try) 2>&5
5436 ac_status=$?
5437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438 (exit $ac_status); }; } &&
5439 { ac_try='test -s conftest.$ac_objext'
5440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5441 (eval $ac_try) 2>&5
5442 ac_status=$?
5443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444 (exit $ac_status); }; }; then
5445 eval "$as_ac_Header=yes"
5446else
5447 echo "$as_me: failed program was:" >&5
5448sed 's/^/| /' conftest.$ac_ext >&5
5449
5450eval "$as_ac_Header=no"
5451fi
5452rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5453fi
5454echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5455echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5456if test `eval echo '${'$as_ac_Header'}'` = yes; then
5457 cat >>confdefs.h <<_ACEOF
5458#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5459_ACEOF
5460
5461fi
5462
5463done
5464
5465
5466
5467
5468
138f59be 5469
5470for ac_header in unistd.h semaphore.h sys/loadavg.h sys/time.h
1e8e9920 5471do
5472as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5473if eval "test \"\${$as_ac_Header+set}\" = set"; then
5474 echo "$as_me:$LINENO: checking for $ac_header" >&5
5475echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5476if eval "test \"\${$as_ac_Header+set}\" = set"; then
5477 echo $ECHO_N "(cached) $ECHO_C" >&6
5478fi
5479echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5480echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5481else
5482 # Is the header compilable?
5483echo "$as_me:$LINENO: checking $ac_header usability" >&5
5484echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5485cat >conftest.$ac_ext <<_ACEOF
5486/* confdefs.h. */
5487_ACEOF
5488cat confdefs.h >>conftest.$ac_ext
5489cat >>conftest.$ac_ext <<_ACEOF
5490/* end confdefs.h. */
5491$ac_includes_default
5492#include <$ac_header>
5493_ACEOF
5494rm -f conftest.$ac_objext
5495if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5496 (eval $ac_compile) 2>conftest.er1
5497 ac_status=$?
5498 grep -v '^ *+' conftest.er1 >conftest.err
5499 rm -f conftest.er1
5500 cat conftest.err >&5
5501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5502 (exit $ac_status); } &&
59da30e1 5503 { ac_try='test -z "$ac_c_werror_flag"
5504 || test ! -s conftest.err'
1e8e9920 5505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5506 (eval $ac_try) 2>&5
5507 ac_status=$?
5508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5509 (exit $ac_status); }; } &&
5510 { ac_try='test -s conftest.$ac_objext'
5511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5512 (eval $ac_try) 2>&5
5513 ac_status=$?
5514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5515 (exit $ac_status); }; }; then
5516 ac_header_compiler=yes
5517else
5518 echo "$as_me: failed program was:" >&5
5519sed 's/^/| /' conftest.$ac_ext >&5
5520
5521ac_header_compiler=no
5522fi
5523rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5524echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5525echo "${ECHO_T}$ac_header_compiler" >&6
5526
5527# Is the header present?
5528echo "$as_me:$LINENO: checking $ac_header presence" >&5
5529echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5530cat >conftest.$ac_ext <<_ACEOF
5531/* confdefs.h. */
5532_ACEOF
5533cat confdefs.h >>conftest.$ac_ext
5534cat >>conftest.$ac_ext <<_ACEOF
5535/* end confdefs.h. */
5536#include <$ac_header>
5537_ACEOF
5538if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5539 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5540 ac_status=$?
5541 grep -v '^ *+' conftest.er1 >conftest.err
5542 rm -f conftest.er1
5543 cat conftest.err >&5
5544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5545 (exit $ac_status); } >/dev/null; then
5546 if test -s conftest.err; then
5547 ac_cpp_err=$ac_c_preproc_warn_flag
5548 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5549 else
5550 ac_cpp_err=
5551 fi
5552else
5553 ac_cpp_err=yes
5554fi
5555if test -z "$ac_cpp_err"; then
5556 ac_header_preproc=yes
5557else
5558 echo "$as_me: failed program was:" >&5
5559sed 's/^/| /' conftest.$ac_ext >&5
5560
5561 ac_header_preproc=no
5562fi
5563rm -f conftest.err conftest.$ac_ext
5564echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5565echo "${ECHO_T}$ac_header_preproc" >&6
5566
5567# So? What about this header?
5568case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5569 yes:no: )
5570 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5571echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5572 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5573echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5574 ac_header_preproc=yes
5575 ;;
5576 no:yes:* )
5577 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5578echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5579 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5580echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5581 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5582echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5583 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5584echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5585 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5586echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5587 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5588echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5589 (
5590 cat <<\_ASBOX
5591## ----------------------------------------------------- ##
5592## Report this to the GNU OpenMP Runtime Library lists. ##
5593## ----------------------------------------------------- ##
5594_ASBOX
5595 ) |
5596 sed "s/^/$as_me: WARNING: /" >&2
5597 ;;
5598esac
5599echo "$as_me:$LINENO: checking for $ac_header" >&5
5600echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5601if eval "test \"\${$as_ac_Header+set}\" = set"; then
5602 echo $ECHO_N "(cached) $ECHO_C" >&6
5603else
5604 eval "$as_ac_Header=\$ac_header_preproc"
5605fi
5606echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5607echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5608
5609fi
5610if test `eval echo '${'$as_ac_Header'}'` = yes; then
5611 cat >>confdefs.h <<_ACEOF
5612#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5613_ACEOF
5614
5615fi
5616
5617done
5618
1e8e9920 5619
01473a49 5620
5621
5622inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
5623
5624acx_cv_header_stdint=stddef.h
5625acx_cv_header_stdint_kind="(already complete)"
5626for i in stdint.h $inttype_headers; do
5627 unset ac_cv_type_uintptr_t
5628 unset ac_cv_type_uintmax_t
5629 unset ac_cv_type_int_least32_t
5630 unset ac_cv_type_int_fast32_t
5631 unset ac_cv_type_uint64_t
5632 echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
5633 echo "$as_me:$LINENO: checking for uintmax_t" >&5
5634echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
5635if test "${ac_cv_type_uintmax_t+set}" = set; then
5636 echo $ECHO_N "(cached) $ECHO_C" >&6
5637else
5638 cat >conftest.$ac_ext <<_ACEOF
5639/* confdefs.h. */
5640_ACEOF
5641cat confdefs.h >>conftest.$ac_ext
5642cat >>conftest.$ac_ext <<_ACEOF
5643/* end confdefs.h. */
5644#include <sys/types.h>
5645#include <$i>
5646
5647int
5648main ()
5649{
5650if ((uintmax_t *) 0)
5651 return 0;
5652if (sizeof (uintmax_t))
5653 return 0;
5654 ;
5655 return 0;
5656}
5657_ACEOF
5658rm -f conftest.$ac_objext
5659if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5660 (eval $ac_compile) 2>conftest.er1
5661 ac_status=$?
5662 grep -v '^ *+' conftest.er1 >conftest.err
5663 rm -f conftest.er1
5664 cat conftest.err >&5
5665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5666 (exit $ac_status); } &&
59da30e1 5667 { ac_try='test -z "$ac_c_werror_flag"
5668 || test ! -s conftest.err'
01473a49 5669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5670 (eval $ac_try) 2>&5
5671 ac_status=$?
5672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673 (exit $ac_status); }; } &&
5674 { ac_try='test -s conftest.$ac_objext'
5675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5676 (eval $ac_try) 2>&5
5677 ac_status=$?
5678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5679 (exit $ac_status); }; }; then
5680 ac_cv_type_uintmax_t=yes
5681else
5682 echo "$as_me: failed program was:" >&5
5683sed 's/^/| /' conftest.$ac_ext >&5
5684
5685ac_cv_type_uintmax_t=no
5686fi
5687rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5688fi
5689echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
5690echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
5691if test $ac_cv_type_uintmax_t = yes; then
5692 acx_cv_header_stdint=$i
5693else
5694 continue
5695fi
5696
5697 echo "$as_me:$LINENO: checking for uintptr_t" >&5
5698echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
5699if test "${ac_cv_type_uintptr_t+set}" = set; then
5700 echo $ECHO_N "(cached) $ECHO_C" >&6
5701else
5702 cat >conftest.$ac_ext <<_ACEOF
5703/* confdefs.h. */
5704_ACEOF
5705cat confdefs.h >>conftest.$ac_ext
5706cat >>conftest.$ac_ext <<_ACEOF
5707/* end confdefs.h. */
5708#include <sys/types.h>
5709#include <$i>
5710
5711int
5712main ()
5713{
5714if ((uintptr_t *) 0)
5715 return 0;
5716if (sizeof (uintptr_t))
5717 return 0;
5718 ;
5719 return 0;
5720}
5721_ACEOF
5722rm -f conftest.$ac_objext
5723if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5724 (eval $ac_compile) 2>conftest.er1
5725 ac_status=$?
5726 grep -v '^ *+' conftest.er1 >conftest.err
5727 rm -f conftest.er1
5728 cat conftest.err >&5
5729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730 (exit $ac_status); } &&
59da30e1 5731 { ac_try='test -z "$ac_c_werror_flag"
5732 || test ! -s conftest.err'
01473a49 5733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5734 (eval $ac_try) 2>&5
5735 ac_status=$?
5736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737 (exit $ac_status); }; } &&
5738 { ac_try='test -s conftest.$ac_objext'
5739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5740 (eval $ac_try) 2>&5
5741 ac_status=$?
5742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743 (exit $ac_status); }; }; then
5744 ac_cv_type_uintptr_t=yes
5745else
5746 echo "$as_me: failed program was:" >&5
5747sed 's/^/| /' conftest.$ac_ext >&5
5748
5749ac_cv_type_uintptr_t=no
5750fi
5751rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5752fi
5753echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
5754echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
5755if test $ac_cv_type_uintptr_t = yes; then
5756 :
5757else
5758 acx_cv_header_stdint_kind="(mostly complete)"
5759fi
5760
5761 echo "$as_me:$LINENO: checking for int_least32_t" >&5
5762echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
5763if test "${ac_cv_type_int_least32_t+set}" = set; then
5764 echo $ECHO_N "(cached) $ECHO_C" >&6
5765else
5766 cat >conftest.$ac_ext <<_ACEOF
5767/* confdefs.h. */
5768_ACEOF
5769cat confdefs.h >>conftest.$ac_ext
5770cat >>conftest.$ac_ext <<_ACEOF
5771/* end confdefs.h. */
5772#include <sys/types.h>
5773#include <$i>
5774
5775int
5776main ()
5777{
5778if ((int_least32_t *) 0)
5779 return 0;
5780if (sizeof (int_least32_t))
5781 return 0;
5782 ;
5783 return 0;
5784}
5785_ACEOF
5786rm -f conftest.$ac_objext
5787if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5788 (eval $ac_compile) 2>conftest.er1
5789 ac_status=$?
5790 grep -v '^ *+' conftest.er1 >conftest.err
5791 rm -f conftest.er1
5792 cat conftest.err >&5
5793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794 (exit $ac_status); } &&
59da30e1 5795 { ac_try='test -z "$ac_c_werror_flag"
5796 || test ! -s conftest.err'
01473a49 5797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5798 (eval $ac_try) 2>&5
5799 ac_status=$?
5800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801 (exit $ac_status); }; } &&
5802 { ac_try='test -s conftest.$ac_objext'
5803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5804 (eval $ac_try) 2>&5
5805 ac_status=$?
5806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807 (exit $ac_status); }; }; then
5808 ac_cv_type_int_least32_t=yes
5809else
5810 echo "$as_me: failed program was:" >&5
5811sed 's/^/| /' conftest.$ac_ext >&5
5812
5813ac_cv_type_int_least32_t=no
5814fi
5815rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5816fi
5817echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
5818echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
5819if test $ac_cv_type_int_least32_t = yes; then
5820 :
5821else
5822 acx_cv_header_stdint_kind="(mostly complete)"
5823fi
5824
5825 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
5826echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
5827if test "${ac_cv_type_int_fast32_t+set}" = set; then
5828 echo $ECHO_N "(cached) $ECHO_C" >&6
5829else
5830 cat >conftest.$ac_ext <<_ACEOF
5831/* confdefs.h. */
5832_ACEOF
5833cat confdefs.h >>conftest.$ac_ext
5834cat >>conftest.$ac_ext <<_ACEOF
5835/* end confdefs.h. */
5836#include <sys/types.h>
5837#include <$i>
5838
5839int
5840main ()
5841{
5842if ((int_fast32_t *) 0)
5843 return 0;
5844if (sizeof (int_fast32_t))
5845 return 0;
5846 ;
5847 return 0;
5848}
5849_ACEOF
5850rm -f conftest.$ac_objext
5851if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5852 (eval $ac_compile) 2>conftest.er1
5853 ac_status=$?
5854 grep -v '^ *+' conftest.er1 >conftest.err
5855 rm -f conftest.er1
5856 cat conftest.err >&5
5857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5858 (exit $ac_status); } &&
59da30e1 5859 { ac_try='test -z "$ac_c_werror_flag"
5860 || test ! -s conftest.err'
01473a49 5861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5862 (eval $ac_try) 2>&5
5863 ac_status=$?
5864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5865 (exit $ac_status); }; } &&
5866 { ac_try='test -s conftest.$ac_objext'
5867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5868 (eval $ac_try) 2>&5
5869 ac_status=$?
5870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871 (exit $ac_status); }; }; then
5872 ac_cv_type_int_fast32_t=yes
5873else
5874 echo "$as_me: failed program was:" >&5
5875sed 's/^/| /' conftest.$ac_ext >&5
5876
5877ac_cv_type_int_fast32_t=no
5878fi
5879rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5880fi
5881echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
5882echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
5883if test $ac_cv_type_int_fast32_t = yes; then
5884 :
5885else
5886 acx_cv_header_stdint_kind="(mostly complete)"
5887fi
5888
5889 echo "$as_me:$LINENO: checking for uint64_t" >&5
5890echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
5891if test "${ac_cv_type_uint64_t+set}" = set; then
5892 echo $ECHO_N "(cached) $ECHO_C" >&6
5893else
5894 cat >conftest.$ac_ext <<_ACEOF
5895/* confdefs.h. */
5896_ACEOF
5897cat confdefs.h >>conftest.$ac_ext
5898cat >>conftest.$ac_ext <<_ACEOF
5899/* end confdefs.h. */
5900#include <sys/types.h>
5901#include <$i>
5902
5903int
5904main ()
5905{
5906if ((uint64_t *) 0)
5907 return 0;
5908if (sizeof (uint64_t))
5909 return 0;
5910 ;
5911 return 0;
5912}
5913_ACEOF
5914rm -f conftest.$ac_objext
5915if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5916 (eval $ac_compile) 2>conftest.er1
5917 ac_status=$?
5918 grep -v '^ *+' conftest.er1 >conftest.err
5919 rm -f conftest.er1
5920 cat conftest.err >&5
5921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5922 (exit $ac_status); } &&
59da30e1 5923 { ac_try='test -z "$ac_c_werror_flag"
5924 || test ! -s conftest.err'
01473a49 5925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5926 (eval $ac_try) 2>&5
5927 ac_status=$?
5928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929 (exit $ac_status); }; } &&
5930 { ac_try='test -s conftest.$ac_objext'
5931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5932 (eval $ac_try) 2>&5
5933 ac_status=$?
5934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5935 (exit $ac_status); }; }; then
5936 ac_cv_type_uint64_t=yes
5937else
5938 echo "$as_me: failed program was:" >&5
5939sed 's/^/| /' conftest.$ac_ext >&5
5940
5941ac_cv_type_uint64_t=no
5942fi
5943rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5944fi
5945echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
5946echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
5947if test $ac_cv_type_uint64_t = yes; then
5948 :
5949else
5950 acx_cv_header_stdint_kind="(lacks uint64_t)"
5951fi
5952
5953 break
5954done
5955if test "$acx_cv_header_stdint" = stddef.h; then
0b67f687 5956 acx_cv_header_stdint_kind="(lacks uintmax_t)"
01473a49 5957 for i in stdint.h $inttype_headers; do
0b67f687 5958 unset ac_cv_type_uintptr_t
01473a49 5959 unset ac_cv_type_uint32_t
5960 unset ac_cv_type_uint64_t
5961 echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
5962 echo "$as_me:$LINENO: checking for uint32_t" >&5
5963echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
5964if test "${ac_cv_type_uint32_t+set}" = set; then
5965 echo $ECHO_N "(cached) $ECHO_C" >&6
5966else
5967 cat >conftest.$ac_ext <<_ACEOF
5968/* confdefs.h. */
5969_ACEOF
5970cat confdefs.h >>conftest.$ac_ext
5971cat >>conftest.$ac_ext <<_ACEOF
5972/* end confdefs.h. */
5973#include <sys/types.h>
5974#include <$i>
5975
5976int
5977main ()
5978{
5979if ((uint32_t *) 0)
5980 return 0;
5981if (sizeof (uint32_t))
5982 return 0;
5983 ;
5984 return 0;
5985}
5986_ACEOF
5987rm -f conftest.$ac_objext
5988if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5989 (eval $ac_compile) 2>conftest.er1
5990 ac_status=$?
5991 grep -v '^ *+' conftest.er1 >conftest.err
5992 rm -f conftest.er1
5993 cat conftest.err >&5
5994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995 (exit $ac_status); } &&
59da30e1 5996 { ac_try='test -z "$ac_c_werror_flag"
5997 || test ! -s conftest.err'
01473a49 5998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5999 (eval $ac_try) 2>&5
6000 ac_status=$?
6001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002 (exit $ac_status); }; } &&
6003 { ac_try='test -s conftest.$ac_objext'
6004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6005 (eval $ac_try) 2>&5
6006 ac_status=$?
6007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008 (exit $ac_status); }; }; then
6009 ac_cv_type_uint32_t=yes
6010else
6011 echo "$as_me: failed program was:" >&5
6012sed 's/^/| /' conftest.$ac_ext >&5
6013
6014ac_cv_type_uint32_t=no
6015fi
6016rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6017fi
6018echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
6019echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
6020if test $ac_cv_type_uint32_t = yes; then
6021 acx_cv_header_stdint=$i
6022else
6023 continue
6024fi
6025
6026 echo "$as_me:$LINENO: checking for uint64_t" >&5
6027echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
6028if test "${ac_cv_type_uint64_t+set}" = set; then
6029 echo $ECHO_N "(cached) $ECHO_C" >&6
6030else
6031 cat >conftest.$ac_ext <<_ACEOF
6032/* confdefs.h. */
6033_ACEOF
6034cat confdefs.h >>conftest.$ac_ext
6035cat >>conftest.$ac_ext <<_ACEOF
6036/* end confdefs.h. */
6037#include <sys/types.h>
6038#include <$i>
6039
6040int
6041main ()
6042{
6043if ((uint64_t *) 0)
6044 return 0;
6045if (sizeof (uint64_t))
6046 return 0;
6047 ;
6048 return 0;
6049}
6050_ACEOF
6051rm -f conftest.$ac_objext
6052if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6053 (eval $ac_compile) 2>conftest.er1
6054 ac_status=$?
6055 grep -v '^ *+' conftest.er1 >conftest.err
6056 rm -f conftest.er1
6057 cat conftest.err >&5
6058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6059 (exit $ac_status); } &&
59da30e1 6060 { ac_try='test -z "$ac_c_werror_flag"
6061 || test ! -s conftest.err'
01473a49 6062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6063 (eval $ac_try) 2>&5
6064 ac_status=$?
6065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6066 (exit $ac_status); }; } &&
6067 { ac_try='test -s conftest.$ac_objext'
6068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6069 (eval $ac_try) 2>&5
6070 ac_status=$?
6071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6072 (exit $ac_status); }; }; then
6073 ac_cv_type_uint64_t=yes
6074else
6075 echo "$as_me: failed program was:" >&5
6076sed 's/^/| /' conftest.$ac_ext >&5
6077
6078ac_cv_type_uint64_t=no
6079fi
6080rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6081fi
6082echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
6083echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
0b67f687 6084
6085 echo "$as_me:$LINENO: checking for uintptr_t" >&5
6086echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
6087if test "${ac_cv_type_uintptr_t+set}" = set; then
6088 echo $ECHO_N "(cached) $ECHO_C" >&6
01473a49 6089else
0b67f687 6090 cat >conftest.$ac_ext <<_ACEOF
6091/* confdefs.h. */
6092_ACEOF
6093cat confdefs.h >>conftest.$ac_ext
6094cat >>conftest.$ac_ext <<_ACEOF
6095/* end confdefs.h. */
6096#include <sys/types.h>
6097#include <$i>
6098
6099int
6100main ()
6101{
6102if ((uintptr_t *) 0)
6103 return 0;
6104if (sizeof (uintptr_t))
6105 return 0;
6106 ;
6107 return 0;
6108}
6109_ACEOF
6110rm -f conftest.$ac_objext
6111if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6112 (eval $ac_compile) 2>conftest.er1
6113 ac_status=$?
6114 grep -v '^ *+' conftest.er1 >conftest.err
6115 rm -f conftest.er1
6116 cat conftest.err >&5
6117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6118 (exit $ac_status); } &&
6119 { ac_try='test -z "$ac_c_werror_flag"
6120 || test ! -s conftest.err'
6121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6122 (eval $ac_try) 2>&5
6123 ac_status=$?
6124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6125 (exit $ac_status); }; } &&
6126 { ac_try='test -s conftest.$ac_objext'
6127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6128 (eval $ac_try) 2>&5
6129 ac_status=$?
6130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6131 (exit $ac_status); }; }; then
6132 ac_cv_type_uintptr_t=yes
6133else
6134 echo "$as_me: failed program was:" >&5
6135sed 's/^/| /' conftest.$ac_ext >&5
6136
6137ac_cv_type_uintptr_t=no
6138fi
6139rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01473a49 6140fi
0b67f687 6141echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
6142echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
01473a49 6143
6144 break
6145 done
6146fi
6147if test "$acx_cv_header_stdint" = stddef.h; then
6148 acx_cv_header_stdint_kind="(u_intXX_t style)"
6149 for i in sys/types.h $inttype_headers; do
6150 unset ac_cv_type_u_int32_t
6151 unset ac_cv_type_u_int64_t
6152 echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
6153 echo "$as_me:$LINENO: checking for u_int32_t" >&5
6154echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
6155if test "${ac_cv_type_u_int32_t+set}" = set; then
6156 echo $ECHO_N "(cached) $ECHO_C" >&6
6157else
6158 cat >conftest.$ac_ext <<_ACEOF
6159/* confdefs.h. */
6160_ACEOF
6161cat confdefs.h >>conftest.$ac_ext
6162cat >>conftest.$ac_ext <<_ACEOF
6163/* end confdefs.h. */
6164#include <sys/types.h>
6165#include <$i>
6166
6167int
6168main ()
6169{
6170if ((u_int32_t *) 0)
6171 return 0;
6172if (sizeof (u_int32_t))
6173 return 0;
6174 ;
6175 return 0;
6176}
6177_ACEOF
6178rm -f conftest.$ac_objext
6179if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6180 (eval $ac_compile) 2>conftest.er1
6181 ac_status=$?
6182 grep -v '^ *+' conftest.er1 >conftest.err
6183 rm -f conftest.er1
6184 cat conftest.err >&5
6185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186 (exit $ac_status); } &&
59da30e1 6187 { ac_try='test -z "$ac_c_werror_flag"
6188 || test ! -s conftest.err'
01473a49 6189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6190 (eval $ac_try) 2>&5
6191 ac_status=$?
6192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6193 (exit $ac_status); }; } &&
6194 { ac_try='test -s conftest.$ac_objext'
6195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6196 (eval $ac_try) 2>&5
6197 ac_status=$?
6198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199 (exit $ac_status); }; }; then
6200 ac_cv_type_u_int32_t=yes
6201else
6202 echo "$as_me: failed program was:" >&5
6203sed 's/^/| /' conftest.$ac_ext >&5
6204
6205ac_cv_type_u_int32_t=no
6206fi
6207rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6208fi
6209echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
6210echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
6211if test $ac_cv_type_u_int32_t = yes; then
6212 acx_cv_header_stdint=$i
6213else
6214 continue
6215fi
6216
6217 echo "$as_me:$LINENO: checking for u_int64_t" >&5
6218echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
6219if test "${ac_cv_type_u_int64_t+set}" = set; then
6220 echo $ECHO_N "(cached) $ECHO_C" >&6
6221else
6222 cat >conftest.$ac_ext <<_ACEOF
6223/* confdefs.h. */
6224_ACEOF
6225cat confdefs.h >>conftest.$ac_ext
6226cat >>conftest.$ac_ext <<_ACEOF
6227/* end confdefs.h. */
6228#include <sys/types.h>
6229#include <$i>
6230
6231int
6232main ()
6233{
6234if ((u_int64_t *) 0)
6235 return 0;
6236if (sizeof (u_int64_t))
6237 return 0;
6238 ;
6239 return 0;
6240}
6241_ACEOF
6242rm -f conftest.$ac_objext
6243if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6244 (eval $ac_compile) 2>conftest.er1
6245 ac_status=$?
6246 grep -v '^ *+' conftest.er1 >conftest.err
6247 rm -f conftest.er1
6248 cat conftest.err >&5
6249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250 (exit $ac_status); } &&
59da30e1 6251 { ac_try='test -z "$ac_c_werror_flag"
6252 || test ! -s conftest.err'
01473a49 6253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6254 (eval $ac_try) 2>&5
6255 ac_status=$?
6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257 (exit $ac_status); }; } &&
6258 { ac_try='test -s conftest.$ac_objext'
6259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6260 (eval $ac_try) 2>&5
6261 ac_status=$?
6262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263 (exit $ac_status); }; }; then
6264 ac_cv_type_u_int64_t=yes
6265else
6266 echo "$as_me: failed program was:" >&5
6267sed 's/^/| /' conftest.$ac_ext >&5
6268
6269ac_cv_type_u_int64_t=no
6270fi
6271rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6272fi
6273echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
6274echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
01473a49 6275
6276 break
6277 done
6278fi
6279if test "$acx_cv_header_stdint" = stddef.h; then
6280 acx_cv_header_stdint_kind="(using manual detection)"
6281fi
6282
6283test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
6284test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
6285test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
6286test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
6287test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
6288
6289# ----------------- Summarize what we found so far
6290
6291echo "$as_me:$LINENO: checking what to include in gstdint.h" >&5
6292echo $ECHO_N "checking what to include in gstdint.h... $ECHO_C" >&6
6293
6294case `$as_basename gstdint.h ||
6295$as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
6296 Xgstdint.h : 'X\(//\)$' \| \
6297 Xgstdint.h : 'X\(/\)$' \| \
6298 . : '\(.\)' 2>/dev/null ||
6299echo X/gstdint.h |
6300 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6301 /^X\/\(\/\/\)$/{ s//\1/; q; }
6302 /^X\/\(\/\).*/{ s//\1/; q; }
6303 s/.*/./; q'` in
6304 stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
6305echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
6306 inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
6307echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
6308 *) ;;
6309esac
6310
6311echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
6312echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
6313
6314# ----------------- done included file, check C basic types --------
6315
6316# Lacking an uintptr_t? Test size of void *
6317case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
6318 stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
6319echo $ECHO_N "checking for void *... $ECHO_C" >&6
6320if test "${ac_cv_type_void_p+set}" = set; then
6321 echo $ECHO_N "(cached) $ECHO_C" >&6
6322else
6323 cat >conftest.$ac_ext <<_ACEOF
6324/* confdefs.h. */
6325_ACEOF
6326cat confdefs.h >>conftest.$ac_ext
6327cat >>conftest.$ac_ext <<_ACEOF
6328/* end confdefs.h. */
6329$ac_includes_default
6330int
6331main ()
6332{
6333if ((void * *) 0)
6334 return 0;
6335if (sizeof (void *))
6336 return 0;
6337 ;
6338 return 0;
6339}
6340_ACEOF
6341rm -f conftest.$ac_objext
6342if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6343 (eval $ac_compile) 2>conftest.er1
6344 ac_status=$?
6345 grep -v '^ *+' conftest.er1 >conftest.err
6346 rm -f conftest.er1
6347 cat conftest.err >&5
6348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6349 (exit $ac_status); } &&
59da30e1 6350 { ac_try='test -z "$ac_c_werror_flag"
6351 || test ! -s conftest.err'
01473a49 6352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6353 (eval $ac_try) 2>&5
6354 ac_status=$?
6355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356 (exit $ac_status); }; } &&
6357 { ac_try='test -s conftest.$ac_objext'
6358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6359 (eval $ac_try) 2>&5
6360 ac_status=$?
6361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362 (exit $ac_status); }; }; then
6363 ac_cv_type_void_p=yes
6364else
6365 echo "$as_me: failed program was:" >&5
6366sed 's/^/| /' conftest.$ac_ext >&5
6367
6368ac_cv_type_void_p=no
6369fi
6370rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6371fi
6372echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
6373echo "${ECHO_T}$ac_cv_type_void_p" >&6
6374
6375echo "$as_me:$LINENO: checking size of void *" >&5
6376echo $ECHO_N "checking size of void *... $ECHO_C" >&6
6377if test "${ac_cv_sizeof_void_p+set}" = set; then
6378 echo $ECHO_N "(cached) $ECHO_C" >&6
6379else
6380 if test "$ac_cv_type_void_p" = yes; then
6381 # The cast to unsigned long works around a bug in the HP C Compiler
6382 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6383 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6384 # This bug is HP SR number 8606223364.
6385 if test "$cross_compiling" = yes; then
6386 # Depending upon the size, compute the lo and hi bounds.
6387cat >conftest.$ac_ext <<_ACEOF
6388/* confdefs.h. */
6389_ACEOF
6390cat confdefs.h >>conftest.$ac_ext
6391cat >>conftest.$ac_ext <<_ACEOF
6392/* end confdefs.h. */
6393$ac_includes_default
6394int
6395main ()
6396{
6397static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
6398test_array [0] = 0
6399
6400 ;
6401 return 0;
6402}
6403_ACEOF
6404rm -f conftest.$ac_objext
6405if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6406 (eval $ac_compile) 2>conftest.er1
6407 ac_status=$?
6408 grep -v '^ *+' conftest.er1 >conftest.err
6409 rm -f conftest.er1
6410 cat conftest.err >&5
6411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6412 (exit $ac_status); } &&
59da30e1 6413 { ac_try='test -z "$ac_c_werror_flag"
6414 || test ! -s conftest.err'
01473a49 6415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6416 (eval $ac_try) 2>&5
6417 ac_status=$?
6418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419 (exit $ac_status); }; } &&
6420 { ac_try='test -s conftest.$ac_objext'
6421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6422 (eval $ac_try) 2>&5
6423 ac_status=$?
6424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425 (exit $ac_status); }; }; then
6426 ac_lo=0 ac_mid=0
6427 while :; do
6428 cat >conftest.$ac_ext <<_ACEOF
6429/* confdefs.h. */
6430_ACEOF
6431cat confdefs.h >>conftest.$ac_ext
6432cat >>conftest.$ac_ext <<_ACEOF
6433/* end confdefs.h. */
6434$ac_includes_default
6435int
6436main ()
6437{
6438static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
6439test_array [0] = 0
6440
6441 ;
6442 return 0;
6443}
6444_ACEOF
6445rm -f conftest.$ac_objext
6446if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6447 (eval $ac_compile) 2>conftest.er1
6448 ac_status=$?
6449 grep -v '^ *+' conftest.er1 >conftest.err
6450 rm -f conftest.er1
6451 cat conftest.err >&5
6452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453 (exit $ac_status); } &&
59da30e1 6454 { ac_try='test -z "$ac_c_werror_flag"
6455 || test ! -s conftest.err'
01473a49 6456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6457 (eval $ac_try) 2>&5
6458 ac_status=$?
6459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6460 (exit $ac_status); }; } &&
6461 { ac_try='test -s conftest.$ac_objext'
6462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6463 (eval $ac_try) 2>&5
6464 ac_status=$?
6465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6466 (exit $ac_status); }; }; then
6467 ac_hi=$ac_mid; break
6468else
6469 echo "$as_me: failed program was:" >&5
6470sed 's/^/| /' conftest.$ac_ext >&5
6471
6472ac_lo=`expr $ac_mid + 1`
6473 if test $ac_lo -le $ac_mid; then
6474 ac_lo= ac_hi=
6475 break
6476 fi
6477 ac_mid=`expr 2 '*' $ac_mid + 1`
6478fi
6479rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6480 done
6481else
6482 echo "$as_me: failed program was:" >&5
6483sed 's/^/| /' conftest.$ac_ext >&5
6484
6485cat >conftest.$ac_ext <<_ACEOF
6486/* confdefs.h. */
6487_ACEOF
6488cat confdefs.h >>conftest.$ac_ext
6489cat >>conftest.$ac_ext <<_ACEOF
6490/* end confdefs.h. */
6491$ac_includes_default
6492int
6493main ()
6494{
6495static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
6496test_array [0] = 0
6497
6498 ;
6499 return 0;
6500}
6501_ACEOF
6502rm -f conftest.$ac_objext
6503if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6504 (eval $ac_compile) 2>conftest.er1
6505 ac_status=$?
6506 grep -v '^ *+' conftest.er1 >conftest.err
6507 rm -f conftest.er1
6508 cat conftest.err >&5
6509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6510 (exit $ac_status); } &&
59da30e1 6511 { ac_try='test -z "$ac_c_werror_flag"
6512 || test ! -s conftest.err'
01473a49 6513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6514 (eval $ac_try) 2>&5
6515 ac_status=$?
6516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517 (exit $ac_status); }; } &&
6518 { ac_try='test -s conftest.$ac_objext'
6519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6520 (eval $ac_try) 2>&5
6521 ac_status=$?
6522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523 (exit $ac_status); }; }; then
6524 ac_hi=-1 ac_mid=-1
6525 while :; do
6526 cat >conftest.$ac_ext <<_ACEOF
6527/* confdefs.h. */
6528_ACEOF
6529cat confdefs.h >>conftest.$ac_ext
6530cat >>conftest.$ac_ext <<_ACEOF
6531/* end confdefs.h. */
6532$ac_includes_default
6533int
6534main ()
6535{
6536static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
6537test_array [0] = 0
6538
6539 ;
6540 return 0;
6541}
6542_ACEOF
6543rm -f conftest.$ac_objext
6544if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6545 (eval $ac_compile) 2>conftest.er1
6546 ac_status=$?
6547 grep -v '^ *+' conftest.er1 >conftest.err
6548 rm -f conftest.er1
6549 cat conftest.err >&5
6550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6551 (exit $ac_status); } &&
59da30e1 6552 { ac_try='test -z "$ac_c_werror_flag"
6553 || test ! -s conftest.err'
01473a49 6554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6555 (eval $ac_try) 2>&5
6556 ac_status=$?
6557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6558 (exit $ac_status); }; } &&
6559 { ac_try='test -s conftest.$ac_objext'
6560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6561 (eval $ac_try) 2>&5
6562 ac_status=$?
6563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6564 (exit $ac_status); }; }; then
6565 ac_lo=$ac_mid; break
6566else
6567 echo "$as_me: failed program was:" >&5
6568sed 's/^/| /' conftest.$ac_ext >&5
6569
6570ac_hi=`expr '(' $ac_mid ')' - 1`
6571 if test $ac_mid -le $ac_hi; then
6572 ac_lo= ac_hi=
6573 break
6574 fi
6575 ac_mid=`expr 2 '*' $ac_mid`
6576fi
6577rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6578 done
6579else
6580 echo "$as_me: failed program was:" >&5
6581sed 's/^/| /' conftest.$ac_ext >&5
6582
6583ac_lo= ac_hi=
6584fi
6585rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6586fi
6587rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6588# Binary search between lo and hi bounds.
6589while test "x$ac_lo" != "x$ac_hi"; do
6590 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6591 cat >conftest.$ac_ext <<_ACEOF
6592/* confdefs.h. */
6593_ACEOF
6594cat confdefs.h >>conftest.$ac_ext
6595cat >>conftest.$ac_ext <<_ACEOF
6596/* end confdefs.h. */
6597$ac_includes_default
6598int
6599main ()
6600{
6601static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
6602test_array [0] = 0
6603
6604 ;
6605 return 0;
6606}
6607_ACEOF
6608rm -f conftest.$ac_objext
6609if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6610 (eval $ac_compile) 2>conftest.er1
6611 ac_status=$?
6612 grep -v '^ *+' conftest.er1 >conftest.err
6613 rm -f conftest.er1
6614 cat conftest.err >&5
6615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6616 (exit $ac_status); } &&
59da30e1 6617 { ac_try='test -z "$ac_c_werror_flag"
6618 || test ! -s conftest.err'
01473a49 6619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6620 (eval $ac_try) 2>&5
6621 ac_status=$?
6622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6623 (exit $ac_status); }; } &&
6624 { ac_try='test -s conftest.$ac_objext'
6625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6626 (eval $ac_try) 2>&5
6627 ac_status=$?
6628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6629 (exit $ac_status); }; }; then
6630 ac_hi=$ac_mid
6631else
6632 echo "$as_me: failed program was:" >&5
6633sed 's/^/| /' conftest.$ac_ext >&5
6634
6635ac_lo=`expr '(' $ac_mid ')' + 1`
6636fi
6637rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6638done
6639case $ac_lo in
6640?*) ac_cv_sizeof_void_p=$ac_lo;;
6641'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
6642See \`config.log' for more details." >&5
6643echo "$as_me: error: cannot compute sizeof (void *), 77
6644See \`config.log' for more details." >&2;}
6645 { (exit 1); exit 1; }; } ;;
6646esac
6647else
6648 if test "$cross_compiling" = yes; then
59da30e1 6649 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6650See \`config.log' for more details." >&5
6651echo "$as_me: error: cannot run test program while cross compiling
6652See \`config.log' for more details." >&2;}
01473a49 6653 { (exit 1); exit 1; }; }
6654else
6655 cat >conftest.$ac_ext <<_ACEOF
6656/* confdefs.h. */
6657_ACEOF
6658cat confdefs.h >>conftest.$ac_ext
6659cat >>conftest.$ac_ext <<_ACEOF
6660/* end confdefs.h. */
6661$ac_includes_default
6662long longval () { return (long) (sizeof (void *)); }
6663unsigned long ulongval () { return (long) (sizeof (void *)); }
6664#include <stdio.h>
6665#include <stdlib.h>
6666int
6667main ()
6668{
6669
6670 FILE *f = fopen ("conftest.val", "w");
6671 if (! f)
6672 exit (1);
6673 if (((long) (sizeof (void *))) < 0)
6674 {
6675 long i = longval ();
6676 if (i != ((long) (sizeof (void *))))
6677 exit (1);
6678 fprintf (f, "%ld\n", i);
6679 }
6680 else
6681 {
6682 unsigned long i = ulongval ();
6683 if (i != ((long) (sizeof (void *))))
6684 exit (1);
6685 fprintf (f, "%lu\n", i);
6686 }
6687 exit (ferror (f) || fclose (f) != 0);
6688
6689 ;
6690 return 0;
6691}
6692_ACEOF
6693rm -f conftest$ac_exeext
6694if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6695 (eval $ac_link) 2>&5
6696 ac_status=$?
6697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6698 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6700 (eval $ac_try) 2>&5
6701 ac_status=$?
6702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6703 (exit $ac_status); }; }; then
6704 ac_cv_sizeof_void_p=`cat conftest.val`
6705else
6706 echo "$as_me: program exited with status $ac_status" >&5
6707echo "$as_me: failed program was:" >&5
6708sed 's/^/| /' conftest.$ac_ext >&5
6709
6710( exit $ac_status )
6711{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
6712See \`config.log' for more details." >&5
6713echo "$as_me: error: cannot compute sizeof (void *), 77
6714See \`config.log' for more details." >&2;}
6715 { (exit 1); exit 1; }; }
6716fi
6717rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6718fi
6719fi
6720rm -f conftest.val
6721else
6722 ac_cv_sizeof_void_p=0
6723fi
6724fi
6725echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
6726echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
6727cat >>confdefs.h <<_ACEOF
6728#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6729_ACEOF
6730
6731 ;;
6732esac
6733
6734# Lacking an uint64_t? Test size of long
6735case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
6736 stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
6737echo $ECHO_N "checking for long... $ECHO_C" >&6
6738if test "${ac_cv_type_long+set}" = set; then
6739 echo $ECHO_N "(cached) $ECHO_C" >&6
6740else
6741 cat >conftest.$ac_ext <<_ACEOF
6742/* confdefs.h. */
6743_ACEOF
6744cat confdefs.h >>conftest.$ac_ext
6745cat >>conftest.$ac_ext <<_ACEOF
6746/* end confdefs.h. */
6747$ac_includes_default
6748int
6749main ()
6750{
6751if ((long *) 0)
6752 return 0;
6753if (sizeof (long))
6754 return 0;
6755 ;
6756 return 0;
6757}
6758_ACEOF
6759rm -f conftest.$ac_objext
6760if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6761 (eval $ac_compile) 2>conftest.er1
6762 ac_status=$?
6763 grep -v '^ *+' conftest.er1 >conftest.err
6764 rm -f conftest.er1
6765 cat conftest.err >&5
6766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6767 (exit $ac_status); } &&
59da30e1 6768 { ac_try='test -z "$ac_c_werror_flag"
6769 || test ! -s conftest.err'
01473a49 6770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6771 (eval $ac_try) 2>&5
6772 ac_status=$?
6773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6774 (exit $ac_status); }; } &&
6775 { ac_try='test -s conftest.$ac_objext'
6776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6777 (eval $ac_try) 2>&5
6778 ac_status=$?
6779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780 (exit $ac_status); }; }; then
6781 ac_cv_type_long=yes
6782else
6783 echo "$as_me: failed program was:" >&5
6784sed 's/^/| /' conftest.$ac_ext >&5
6785
6786ac_cv_type_long=no
6787fi
6788rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6789fi
6790echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6791echo "${ECHO_T}$ac_cv_type_long" >&6
6792
6793echo "$as_me:$LINENO: checking size of long" >&5
6794echo $ECHO_N "checking size of long... $ECHO_C" >&6
6795if test "${ac_cv_sizeof_long+set}" = set; then
6796 echo $ECHO_N "(cached) $ECHO_C" >&6
6797else
6798 if test "$ac_cv_type_long" = yes; then
6799 # The cast to unsigned long works around a bug in the HP C Compiler
6800 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6801 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6802 # This bug is HP SR number 8606223364.
6803 if test "$cross_compiling" = yes; then
6804 # Depending upon the size, compute the lo and hi bounds.
6805cat >conftest.$ac_ext <<_ACEOF
6806/* confdefs.h. */
6807_ACEOF
6808cat confdefs.h >>conftest.$ac_ext
6809cat >>conftest.$ac_ext <<_ACEOF
6810/* end confdefs.h. */
6811$ac_includes_default
6812int
6813main ()
6814{
6815static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6816test_array [0] = 0
6817
6818 ;
6819 return 0;
6820}
6821_ACEOF
6822rm -f conftest.$ac_objext
6823if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6824 (eval $ac_compile) 2>conftest.er1
6825 ac_status=$?
6826 grep -v '^ *+' conftest.er1 >conftest.err
6827 rm -f conftest.er1
6828 cat conftest.err >&5
6829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830 (exit $ac_status); } &&
59da30e1 6831 { ac_try='test -z "$ac_c_werror_flag"
6832 || test ! -s conftest.err'
01473a49 6833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6834 (eval $ac_try) 2>&5
6835 ac_status=$?
6836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6837 (exit $ac_status); }; } &&
6838 { ac_try='test -s conftest.$ac_objext'
6839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6840 (eval $ac_try) 2>&5
6841 ac_status=$?
6842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6843 (exit $ac_status); }; }; then
6844 ac_lo=0 ac_mid=0
6845 while :; do
6846 cat >conftest.$ac_ext <<_ACEOF
6847/* confdefs.h. */
6848_ACEOF
6849cat confdefs.h >>conftest.$ac_ext
6850cat >>conftest.$ac_ext <<_ACEOF
6851/* end confdefs.h. */
6852$ac_includes_default
6853int
6854main ()
6855{
6856static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6857test_array [0] = 0
6858
6859 ;
6860 return 0;
6861}
6862_ACEOF
6863rm -f conftest.$ac_objext
6864if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6865 (eval $ac_compile) 2>conftest.er1
6866 ac_status=$?
6867 grep -v '^ *+' conftest.er1 >conftest.err
6868 rm -f conftest.er1
6869 cat conftest.err >&5
6870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6871 (exit $ac_status); } &&
59da30e1 6872 { ac_try='test -z "$ac_c_werror_flag"
6873 || test ! -s conftest.err'
01473a49 6874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6875 (eval $ac_try) 2>&5
6876 ac_status=$?
6877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6878 (exit $ac_status); }; } &&
6879 { ac_try='test -s conftest.$ac_objext'
6880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6881 (eval $ac_try) 2>&5
6882 ac_status=$?
6883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6884 (exit $ac_status); }; }; then
6885 ac_hi=$ac_mid; break
6886else
6887 echo "$as_me: failed program was:" >&5
6888sed 's/^/| /' conftest.$ac_ext >&5
6889
6890ac_lo=`expr $ac_mid + 1`
6891 if test $ac_lo -le $ac_mid; then
6892 ac_lo= ac_hi=
6893 break
6894 fi
6895 ac_mid=`expr 2 '*' $ac_mid + 1`
6896fi
6897rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6898 done
6899else
6900 echo "$as_me: failed program was:" >&5
6901sed 's/^/| /' conftest.$ac_ext >&5
6902
6903cat >conftest.$ac_ext <<_ACEOF
6904/* confdefs.h. */
6905_ACEOF
6906cat confdefs.h >>conftest.$ac_ext
6907cat >>conftest.$ac_ext <<_ACEOF
6908/* end confdefs.h. */
6909$ac_includes_default
6910int
6911main ()
6912{
6913static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6914test_array [0] = 0
6915
6916 ;
6917 return 0;
6918}
6919_ACEOF
6920rm -f conftest.$ac_objext
6921if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6922 (eval $ac_compile) 2>conftest.er1
6923 ac_status=$?
6924 grep -v '^ *+' conftest.er1 >conftest.err
6925 rm -f conftest.er1
6926 cat conftest.err >&5
6927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6928 (exit $ac_status); } &&
59da30e1 6929 { ac_try='test -z "$ac_c_werror_flag"
6930 || test ! -s conftest.err'
01473a49 6931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6932 (eval $ac_try) 2>&5
6933 ac_status=$?
6934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6935 (exit $ac_status); }; } &&
6936 { ac_try='test -s conftest.$ac_objext'
6937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6938 (eval $ac_try) 2>&5
6939 ac_status=$?
6940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6941 (exit $ac_status); }; }; then
6942 ac_hi=-1 ac_mid=-1
6943 while :; do
6944 cat >conftest.$ac_ext <<_ACEOF
6945/* confdefs.h. */
6946_ACEOF
6947cat confdefs.h >>conftest.$ac_ext
6948cat >>conftest.$ac_ext <<_ACEOF
6949/* end confdefs.h. */
6950$ac_includes_default
6951int
6952main ()
6953{
6954static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6955test_array [0] = 0
6956
6957 ;
6958 return 0;
6959}
6960_ACEOF
6961rm -f conftest.$ac_objext
6962if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6963 (eval $ac_compile) 2>conftest.er1
6964 ac_status=$?
6965 grep -v '^ *+' conftest.er1 >conftest.err
6966 rm -f conftest.er1
6967 cat conftest.err >&5
6968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6969 (exit $ac_status); } &&
59da30e1 6970 { ac_try='test -z "$ac_c_werror_flag"
6971 || test ! -s conftest.err'
01473a49 6972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6973 (eval $ac_try) 2>&5
6974 ac_status=$?
6975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6976 (exit $ac_status); }; } &&
6977 { ac_try='test -s conftest.$ac_objext'
6978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6979 (eval $ac_try) 2>&5
6980 ac_status=$?
6981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6982 (exit $ac_status); }; }; then
6983 ac_lo=$ac_mid; break
6984else
6985 echo "$as_me: failed program was:" >&5
6986sed 's/^/| /' conftest.$ac_ext >&5
6987
6988ac_hi=`expr '(' $ac_mid ')' - 1`
6989 if test $ac_mid -le $ac_hi; then
6990 ac_lo= ac_hi=
6991 break
6992 fi
6993 ac_mid=`expr 2 '*' $ac_mid`
6994fi
6995rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6996 done
6997else
6998 echo "$as_me: failed program was:" >&5
6999sed 's/^/| /' conftest.$ac_ext >&5
7000
7001ac_lo= ac_hi=
7002fi
7003rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7004fi
7005rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7006# Binary search between lo and hi bounds.
7007while test "x$ac_lo" != "x$ac_hi"; do
7008 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7009 cat >conftest.$ac_ext <<_ACEOF
7010/* confdefs.h. */
7011_ACEOF
7012cat confdefs.h >>conftest.$ac_ext
7013cat >>conftest.$ac_ext <<_ACEOF
7014/* end confdefs.h. */
7015$ac_includes_default
7016int
7017main ()
7018{
7019static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7020test_array [0] = 0
7021
7022 ;
7023 return 0;
7024}
7025_ACEOF
7026rm -f conftest.$ac_objext
7027if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7028 (eval $ac_compile) 2>conftest.er1
7029 ac_status=$?
7030 grep -v '^ *+' conftest.er1 >conftest.err
7031 rm -f conftest.er1
7032 cat conftest.err >&5
7033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7034 (exit $ac_status); } &&
59da30e1 7035 { ac_try='test -z "$ac_c_werror_flag"
7036 || test ! -s conftest.err'
01473a49 7037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7038 (eval $ac_try) 2>&5
7039 ac_status=$?
7040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7041 (exit $ac_status); }; } &&
7042 { ac_try='test -s conftest.$ac_objext'
7043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7044 (eval $ac_try) 2>&5
7045 ac_status=$?
7046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7047 (exit $ac_status); }; }; then
7048 ac_hi=$ac_mid
7049else
7050 echo "$as_me: failed program was:" >&5
7051sed 's/^/| /' conftest.$ac_ext >&5
7052
7053ac_lo=`expr '(' $ac_mid ')' + 1`
7054fi
7055rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7056done
7057case $ac_lo in
7058?*) ac_cv_sizeof_long=$ac_lo;;
7059'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7060See \`config.log' for more details." >&5
7061echo "$as_me: error: cannot compute sizeof (long), 77
7062See \`config.log' for more details." >&2;}
7063 { (exit 1); exit 1; }; } ;;
7064esac
7065else
7066 if test "$cross_compiling" = yes; then
59da30e1 7067 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7068See \`config.log' for more details." >&5
7069echo "$as_me: error: cannot run test program while cross compiling
7070See \`config.log' for more details." >&2;}
01473a49 7071 { (exit 1); exit 1; }; }
7072else
7073 cat >conftest.$ac_ext <<_ACEOF
7074/* confdefs.h. */
7075_ACEOF
7076cat confdefs.h >>conftest.$ac_ext
7077cat >>conftest.$ac_ext <<_ACEOF
7078/* end confdefs.h. */
7079$ac_includes_default
7080long longval () { return (long) (sizeof (long)); }
7081unsigned long ulongval () { return (long) (sizeof (long)); }
7082#include <stdio.h>
7083#include <stdlib.h>
7084int
7085main ()
7086{
7087
7088 FILE *f = fopen ("conftest.val", "w");
7089 if (! f)
7090 exit (1);
7091 if (((long) (sizeof (long))) < 0)
7092 {
7093 long i = longval ();
7094 if (i != ((long) (sizeof (long))))
7095 exit (1);
7096 fprintf (f, "%ld\n", i);
7097 }
7098 else
7099 {
7100 unsigned long i = ulongval ();
7101 if (i != ((long) (sizeof (long))))
7102 exit (1);
7103 fprintf (f, "%lu\n", i);
7104 }
7105 exit (ferror (f) || fclose (f) != 0);
7106
7107 ;
7108 return 0;
7109}
7110_ACEOF
7111rm -f conftest$ac_exeext
7112if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7113 (eval $ac_link) 2>&5
7114 ac_status=$?
7115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7116 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7118 (eval $ac_try) 2>&5
7119 ac_status=$?
7120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7121 (exit $ac_status); }; }; then
7122 ac_cv_sizeof_long=`cat conftest.val`
7123else
7124 echo "$as_me: program exited with status $ac_status" >&5
7125echo "$as_me: failed program was:" >&5
7126sed 's/^/| /' conftest.$ac_ext >&5
7127
7128( exit $ac_status )
7129{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7130See \`config.log' for more details." >&5
7131echo "$as_me: error: cannot compute sizeof (long), 77
7132See \`config.log' for more details." >&2;}
7133 { (exit 1); exit 1; }; }
7134fi
7135rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7136fi
7137fi
7138rm -f conftest.val
7139else
7140 ac_cv_sizeof_long=0
7141fi
7142fi
7143echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7144echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7145cat >>confdefs.h <<_ACEOF
7146#define SIZEOF_LONG $ac_cv_sizeof_long
7147_ACEOF
7148
7149 ;;
7150esac
7151
7152if test $acx_cv_header_stdint = stddef.h; then
7153 # Lacking a good header? Test size of everything and deduce all types.
7154 echo "$as_me:$LINENO: checking for int" >&5
7155echo $ECHO_N "checking for int... $ECHO_C" >&6
7156if test "${ac_cv_type_int+set}" = set; then
7157 echo $ECHO_N "(cached) $ECHO_C" >&6
7158else
7159 cat >conftest.$ac_ext <<_ACEOF
7160/* confdefs.h. */
7161_ACEOF
7162cat confdefs.h >>conftest.$ac_ext
7163cat >>conftest.$ac_ext <<_ACEOF
7164/* end confdefs.h. */
7165$ac_includes_default
7166int
7167main ()
7168{
7169if ((int *) 0)
7170 return 0;
7171if (sizeof (int))
7172 return 0;
7173 ;
7174 return 0;
7175}
7176_ACEOF
7177rm -f conftest.$ac_objext
7178if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7179 (eval $ac_compile) 2>conftest.er1
7180 ac_status=$?
7181 grep -v '^ *+' conftest.er1 >conftest.err
7182 rm -f conftest.er1
7183 cat conftest.err >&5
7184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7185 (exit $ac_status); } &&
59da30e1 7186 { ac_try='test -z "$ac_c_werror_flag"
7187 || test ! -s conftest.err'
01473a49 7188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7189 (eval $ac_try) 2>&5
7190 ac_status=$?
7191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7192 (exit $ac_status); }; } &&
7193 { ac_try='test -s conftest.$ac_objext'
7194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7195 (eval $ac_try) 2>&5
7196 ac_status=$?
7197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7198 (exit $ac_status); }; }; then
7199 ac_cv_type_int=yes
7200else
7201 echo "$as_me: failed program was:" >&5
7202sed 's/^/| /' conftest.$ac_ext >&5
7203
7204ac_cv_type_int=no
7205fi
7206rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7207fi
7208echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
7209echo "${ECHO_T}$ac_cv_type_int" >&6
7210
7211echo "$as_me:$LINENO: checking size of int" >&5
7212echo $ECHO_N "checking size of int... $ECHO_C" >&6
7213if test "${ac_cv_sizeof_int+set}" = set; then
7214 echo $ECHO_N "(cached) $ECHO_C" >&6
7215else
7216 if test "$ac_cv_type_int" = yes; then
7217 # The cast to unsigned long works around a bug in the HP C Compiler
7218 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7219 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7220 # This bug is HP SR number 8606223364.
7221 if test "$cross_compiling" = yes; then
7222 # Depending upon the size, compute the lo and hi bounds.
7223cat >conftest.$ac_ext <<_ACEOF
7224/* confdefs.h. */
7225_ACEOF
7226cat confdefs.h >>conftest.$ac_ext
7227cat >>conftest.$ac_ext <<_ACEOF
7228/* end confdefs.h. */
7229$ac_includes_default
7230int
7231main ()
7232{
7233static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
7234test_array [0] = 0
7235
7236 ;
7237 return 0;
7238}
7239_ACEOF
7240rm -f conftest.$ac_objext
7241if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7242 (eval $ac_compile) 2>conftest.er1
7243 ac_status=$?
7244 grep -v '^ *+' conftest.er1 >conftest.err
7245 rm -f conftest.er1
7246 cat conftest.err >&5
7247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7248 (exit $ac_status); } &&
59da30e1 7249 { ac_try='test -z "$ac_c_werror_flag"
7250 || test ! -s conftest.err'
01473a49 7251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7252 (eval $ac_try) 2>&5
7253 ac_status=$?
7254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7255 (exit $ac_status); }; } &&
7256 { ac_try='test -s conftest.$ac_objext'
7257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7258 (eval $ac_try) 2>&5
7259 ac_status=$?
7260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7261 (exit $ac_status); }; }; then
7262 ac_lo=0 ac_mid=0
7263 while :; do
7264 cat >conftest.$ac_ext <<_ACEOF
7265/* confdefs.h. */
7266_ACEOF
7267cat confdefs.h >>conftest.$ac_ext
7268cat >>conftest.$ac_ext <<_ACEOF
7269/* end confdefs.h. */
7270$ac_includes_default
7271int
7272main ()
7273{
7274static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
7275test_array [0] = 0
7276
7277 ;
7278 return 0;
7279}
7280_ACEOF
7281rm -f conftest.$ac_objext
7282if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7283 (eval $ac_compile) 2>conftest.er1
7284 ac_status=$?
7285 grep -v '^ *+' conftest.er1 >conftest.err
7286 rm -f conftest.er1
7287 cat conftest.err >&5
7288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7289 (exit $ac_status); } &&
59da30e1 7290 { ac_try='test -z "$ac_c_werror_flag"
7291 || test ! -s conftest.err'
01473a49 7292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7293 (eval $ac_try) 2>&5
7294 ac_status=$?
7295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7296 (exit $ac_status); }; } &&
7297 { ac_try='test -s conftest.$ac_objext'
7298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7299 (eval $ac_try) 2>&5
7300 ac_status=$?
7301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7302 (exit $ac_status); }; }; then
7303 ac_hi=$ac_mid; break
7304else
7305 echo "$as_me: failed program was:" >&5
7306sed 's/^/| /' conftest.$ac_ext >&5
7307
7308ac_lo=`expr $ac_mid + 1`
7309 if test $ac_lo -le $ac_mid; then
7310 ac_lo= ac_hi=
7311 break
7312 fi
7313 ac_mid=`expr 2 '*' $ac_mid + 1`
7314fi
7315rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7316 done
7317else
7318 echo "$as_me: failed program was:" >&5
7319sed 's/^/| /' conftest.$ac_ext >&5
7320
7321cat >conftest.$ac_ext <<_ACEOF
7322/* confdefs.h. */
7323_ACEOF
7324cat confdefs.h >>conftest.$ac_ext
7325cat >>conftest.$ac_ext <<_ACEOF
7326/* end confdefs.h. */
7327$ac_includes_default
7328int
7329main ()
7330{
7331static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
7332test_array [0] = 0
7333
7334 ;
7335 return 0;
7336}
7337_ACEOF
7338rm -f conftest.$ac_objext
7339if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7340 (eval $ac_compile) 2>conftest.er1
7341 ac_status=$?
7342 grep -v '^ *+' conftest.er1 >conftest.err
7343 rm -f conftest.er1
7344 cat conftest.err >&5
7345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7346 (exit $ac_status); } &&
59da30e1 7347 { ac_try='test -z "$ac_c_werror_flag"
7348 || test ! -s conftest.err'
01473a49 7349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7350 (eval $ac_try) 2>&5
7351 ac_status=$?
7352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7353 (exit $ac_status); }; } &&
7354 { ac_try='test -s conftest.$ac_objext'
7355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7356 (eval $ac_try) 2>&5
7357 ac_status=$?
7358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7359 (exit $ac_status); }; }; then
7360 ac_hi=-1 ac_mid=-1
7361 while :; do
7362 cat >conftest.$ac_ext <<_ACEOF
7363/* confdefs.h. */
7364_ACEOF
7365cat confdefs.h >>conftest.$ac_ext
7366cat >>conftest.$ac_ext <<_ACEOF
7367/* end confdefs.h. */
7368$ac_includes_default
7369int
7370main ()
7371{
7372static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
7373test_array [0] = 0
7374
7375 ;
7376 return 0;
7377}
7378_ACEOF
7379rm -f conftest.$ac_objext
7380if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7381 (eval $ac_compile) 2>conftest.er1
7382 ac_status=$?
7383 grep -v '^ *+' conftest.er1 >conftest.err
7384 rm -f conftest.er1
7385 cat conftest.err >&5
7386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7387 (exit $ac_status); } &&
59da30e1 7388 { ac_try='test -z "$ac_c_werror_flag"
7389 || test ! -s conftest.err'
01473a49 7390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7391 (eval $ac_try) 2>&5
7392 ac_status=$?
7393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7394 (exit $ac_status); }; } &&
7395 { ac_try='test -s conftest.$ac_objext'
7396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7397 (eval $ac_try) 2>&5
7398 ac_status=$?
7399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7400 (exit $ac_status); }; }; then
7401 ac_lo=$ac_mid; break
7402else
7403 echo "$as_me: failed program was:" >&5
7404sed 's/^/| /' conftest.$ac_ext >&5
7405
7406ac_hi=`expr '(' $ac_mid ')' - 1`
7407 if test $ac_mid -le $ac_hi; then
7408 ac_lo= ac_hi=
7409 break
7410 fi
7411 ac_mid=`expr 2 '*' $ac_mid`
7412fi
7413rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7414 done
7415else
7416 echo "$as_me: failed program was:" >&5
7417sed 's/^/| /' conftest.$ac_ext >&5
7418
7419ac_lo= ac_hi=
7420fi
7421rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7422fi
7423rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7424# Binary search between lo and hi bounds.
7425while test "x$ac_lo" != "x$ac_hi"; do
7426 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7427 cat >conftest.$ac_ext <<_ACEOF
7428/* confdefs.h. */
7429_ACEOF
7430cat confdefs.h >>conftest.$ac_ext
7431cat >>conftest.$ac_ext <<_ACEOF
7432/* end confdefs.h. */
7433$ac_includes_default
7434int
7435main ()
7436{
7437static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
7438test_array [0] = 0
7439
7440 ;
7441 return 0;
7442}
7443_ACEOF
7444rm -f conftest.$ac_objext
7445if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7446 (eval $ac_compile) 2>conftest.er1
7447 ac_status=$?
7448 grep -v '^ *+' conftest.er1 >conftest.err
7449 rm -f conftest.er1
7450 cat conftest.err >&5
7451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7452 (exit $ac_status); } &&
59da30e1 7453 { ac_try='test -z "$ac_c_werror_flag"
7454 || test ! -s conftest.err'
01473a49 7455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7456 (eval $ac_try) 2>&5
7457 ac_status=$?
7458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7459 (exit $ac_status); }; } &&
7460 { ac_try='test -s conftest.$ac_objext'
7461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7462 (eval $ac_try) 2>&5
7463 ac_status=$?
7464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7465 (exit $ac_status); }; }; then
7466 ac_hi=$ac_mid
7467else
7468 echo "$as_me: failed program was:" >&5
7469sed 's/^/| /' conftest.$ac_ext >&5
7470
7471ac_lo=`expr '(' $ac_mid ')' + 1`
7472fi
7473rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7474done
7475case $ac_lo in
7476?*) ac_cv_sizeof_int=$ac_lo;;
7477'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
7478See \`config.log' for more details." >&5
7479echo "$as_me: error: cannot compute sizeof (int), 77
7480See \`config.log' for more details." >&2;}
7481 { (exit 1); exit 1; }; } ;;
7482esac
7483else
7484 if test "$cross_compiling" = yes; then
59da30e1 7485 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7486See \`config.log' for more details." >&5
7487echo "$as_me: error: cannot run test program while cross compiling
7488See \`config.log' for more details." >&2;}
01473a49 7489 { (exit 1); exit 1; }; }
7490else
7491 cat >conftest.$ac_ext <<_ACEOF
7492/* confdefs.h. */
7493_ACEOF
7494cat confdefs.h >>conftest.$ac_ext
7495cat >>conftest.$ac_ext <<_ACEOF
7496/* end confdefs.h. */
7497$ac_includes_default
7498long longval () { return (long) (sizeof (int)); }
7499unsigned long ulongval () { return (long) (sizeof (int)); }
7500#include <stdio.h>
7501#include <stdlib.h>
7502int
7503main ()
7504{
7505
7506 FILE *f = fopen ("conftest.val", "w");
7507 if (! f)
7508 exit (1);
7509 if (((long) (sizeof (int))) < 0)
7510 {
7511 long i = longval ();
7512 if (i != ((long) (sizeof (int))))
7513 exit (1);
7514 fprintf (f, "%ld\n", i);
7515 }
7516 else
7517 {
7518 unsigned long i = ulongval ();
7519 if (i != ((long) (sizeof (int))))
7520 exit (1);
7521 fprintf (f, "%lu\n", i);
7522 }
7523 exit (ferror (f) || fclose (f) != 0);
7524
7525 ;
7526 return 0;
7527}
7528_ACEOF
7529rm -f conftest$ac_exeext
7530if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7531 (eval $ac_link) 2>&5
7532 ac_status=$?
7533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7534 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7536 (eval $ac_try) 2>&5
7537 ac_status=$?
7538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7539 (exit $ac_status); }; }; then
7540 ac_cv_sizeof_int=`cat conftest.val`
7541else
7542 echo "$as_me: program exited with status $ac_status" >&5
7543echo "$as_me: failed program was:" >&5
7544sed 's/^/| /' conftest.$ac_ext >&5
7545
7546( exit $ac_status )
7547{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
7548See \`config.log' for more details." >&5
7549echo "$as_me: error: cannot compute sizeof (int), 77
7550See \`config.log' for more details." >&2;}
7551 { (exit 1); exit 1; }; }
7552fi
7553rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7554fi
7555fi
7556rm -f conftest.val
7557else
7558 ac_cv_sizeof_int=0
7559fi
7560fi
7561echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
7562echo "${ECHO_T}$ac_cv_sizeof_int" >&6
7563cat >>confdefs.h <<_ACEOF
7564#define SIZEOF_INT $ac_cv_sizeof_int
7565_ACEOF
7566
7567
7568 echo "$as_me:$LINENO: checking for short" >&5
7569echo $ECHO_N "checking for short... $ECHO_C" >&6
7570if test "${ac_cv_type_short+set}" = set; then
7571 echo $ECHO_N "(cached) $ECHO_C" >&6
7572else
7573 cat >conftest.$ac_ext <<_ACEOF
7574/* confdefs.h. */
7575_ACEOF
7576cat confdefs.h >>conftest.$ac_ext
7577cat >>conftest.$ac_ext <<_ACEOF
7578/* end confdefs.h. */
7579$ac_includes_default
7580int
7581main ()
7582{
7583if ((short *) 0)
7584 return 0;
7585if (sizeof (short))
7586 return 0;
7587 ;
7588 return 0;
7589}
7590_ACEOF
7591rm -f conftest.$ac_objext
7592if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7593 (eval $ac_compile) 2>conftest.er1
7594 ac_status=$?
7595 grep -v '^ *+' conftest.er1 >conftest.err
7596 rm -f conftest.er1
7597 cat conftest.err >&5
7598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7599 (exit $ac_status); } &&
59da30e1 7600 { ac_try='test -z "$ac_c_werror_flag"
7601 || test ! -s conftest.err'
01473a49 7602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7603 (eval $ac_try) 2>&5
7604 ac_status=$?
7605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7606 (exit $ac_status); }; } &&
7607 { ac_try='test -s conftest.$ac_objext'
7608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7609 (eval $ac_try) 2>&5
7610 ac_status=$?
7611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7612 (exit $ac_status); }; }; then
7613 ac_cv_type_short=yes
7614else
7615 echo "$as_me: failed program was:" >&5
7616sed 's/^/| /' conftest.$ac_ext >&5
7617
7618ac_cv_type_short=no
7619fi
7620rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7621fi
7622echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
7623echo "${ECHO_T}$ac_cv_type_short" >&6
7624
7625echo "$as_me:$LINENO: checking size of short" >&5
7626echo $ECHO_N "checking size of short... $ECHO_C" >&6
7627if test "${ac_cv_sizeof_short+set}" = set; then
7628 echo $ECHO_N "(cached) $ECHO_C" >&6
7629else
7630 if test "$ac_cv_type_short" = yes; then
7631 # The cast to unsigned long works around a bug in the HP C Compiler
7632 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7633 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7634 # This bug is HP SR number 8606223364.
7635 if test "$cross_compiling" = yes; then
7636 # Depending upon the size, compute the lo and hi bounds.
7637cat >conftest.$ac_ext <<_ACEOF
7638/* confdefs.h. */
7639_ACEOF
7640cat confdefs.h >>conftest.$ac_ext
7641cat >>conftest.$ac_ext <<_ACEOF
7642/* end confdefs.h. */
7643$ac_includes_default
7644int
7645main ()
7646{
7647static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
7648test_array [0] = 0
7649
7650 ;
7651 return 0;
7652}
7653_ACEOF
7654rm -f conftest.$ac_objext
7655if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7656 (eval $ac_compile) 2>conftest.er1
7657 ac_status=$?
7658 grep -v '^ *+' conftest.er1 >conftest.err
7659 rm -f conftest.er1
7660 cat conftest.err >&5
7661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7662 (exit $ac_status); } &&
59da30e1 7663 { ac_try='test -z "$ac_c_werror_flag"
7664 || test ! -s conftest.err'
01473a49 7665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7666 (eval $ac_try) 2>&5
7667 ac_status=$?
7668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669 (exit $ac_status); }; } &&
7670 { ac_try='test -s conftest.$ac_objext'
7671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7672 (eval $ac_try) 2>&5
7673 ac_status=$?
7674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7675 (exit $ac_status); }; }; then
7676 ac_lo=0 ac_mid=0
7677 while :; do
7678 cat >conftest.$ac_ext <<_ACEOF
7679/* confdefs.h. */
7680_ACEOF
7681cat confdefs.h >>conftest.$ac_ext
7682cat >>conftest.$ac_ext <<_ACEOF
7683/* end confdefs.h. */
7684$ac_includes_default
7685int
7686main ()
7687{
7688static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7689test_array [0] = 0
7690
7691 ;
7692 return 0;
7693}
7694_ACEOF
7695rm -f conftest.$ac_objext
7696if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7697 (eval $ac_compile) 2>conftest.er1
7698 ac_status=$?
7699 grep -v '^ *+' conftest.er1 >conftest.err
7700 rm -f conftest.er1
7701 cat conftest.err >&5
7702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7703 (exit $ac_status); } &&
59da30e1 7704 { ac_try='test -z "$ac_c_werror_flag"
7705 || test ! -s conftest.err'
01473a49 7706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7707 (eval $ac_try) 2>&5
7708 ac_status=$?
7709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7710 (exit $ac_status); }; } &&
7711 { ac_try='test -s conftest.$ac_objext'
7712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7713 (eval $ac_try) 2>&5
7714 ac_status=$?
7715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7716 (exit $ac_status); }; }; then
7717 ac_hi=$ac_mid; break
7718else
7719 echo "$as_me: failed program was:" >&5
7720sed 's/^/| /' conftest.$ac_ext >&5
7721
7722ac_lo=`expr $ac_mid + 1`
7723 if test $ac_lo -le $ac_mid; then
7724 ac_lo= ac_hi=
7725 break
7726 fi
7727 ac_mid=`expr 2 '*' $ac_mid + 1`
7728fi
7729rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7730 done
7731else
7732 echo "$as_me: failed program was:" >&5
7733sed 's/^/| /' conftest.$ac_ext >&5
7734
7735cat >conftest.$ac_ext <<_ACEOF
7736/* confdefs.h. */
7737_ACEOF
7738cat confdefs.h >>conftest.$ac_ext
7739cat >>conftest.$ac_ext <<_ACEOF
7740/* end confdefs.h. */
7741$ac_includes_default
7742int
7743main ()
7744{
7745static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
7746test_array [0] = 0
7747
7748 ;
7749 return 0;
7750}
7751_ACEOF
7752rm -f conftest.$ac_objext
7753if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7754 (eval $ac_compile) 2>conftest.er1
7755 ac_status=$?
7756 grep -v '^ *+' conftest.er1 >conftest.err
7757 rm -f conftest.er1
7758 cat conftest.err >&5
7759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7760 (exit $ac_status); } &&
59da30e1 7761 { ac_try='test -z "$ac_c_werror_flag"
7762 || test ! -s conftest.err'
01473a49 7763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7764 (eval $ac_try) 2>&5
7765 ac_status=$?
7766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767 (exit $ac_status); }; } &&
7768 { ac_try='test -s conftest.$ac_objext'
7769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7770 (eval $ac_try) 2>&5
7771 ac_status=$?
7772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7773 (exit $ac_status); }; }; then
7774 ac_hi=-1 ac_mid=-1
7775 while :; do
7776 cat >conftest.$ac_ext <<_ACEOF
7777/* confdefs.h. */
7778_ACEOF
7779cat confdefs.h >>conftest.$ac_ext
7780cat >>conftest.$ac_ext <<_ACEOF
7781/* end confdefs.h. */
7782$ac_includes_default
7783int
7784main ()
7785{
7786static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
7787test_array [0] = 0
7788
7789 ;
7790 return 0;
7791}
7792_ACEOF
7793rm -f conftest.$ac_objext
7794if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7795 (eval $ac_compile) 2>conftest.er1
7796 ac_status=$?
7797 grep -v '^ *+' conftest.er1 >conftest.err
7798 rm -f conftest.er1
7799 cat conftest.err >&5
7800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7801 (exit $ac_status); } &&
59da30e1 7802 { ac_try='test -z "$ac_c_werror_flag"
7803 || test ! -s conftest.err'
01473a49 7804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7805 (eval $ac_try) 2>&5
7806 ac_status=$?
7807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7808 (exit $ac_status); }; } &&
7809 { ac_try='test -s conftest.$ac_objext'
7810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7811 (eval $ac_try) 2>&5
7812 ac_status=$?
7813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7814 (exit $ac_status); }; }; then
7815 ac_lo=$ac_mid; break
7816else
7817 echo "$as_me: failed program was:" >&5
7818sed 's/^/| /' conftest.$ac_ext >&5
7819
7820ac_hi=`expr '(' $ac_mid ')' - 1`
7821 if test $ac_mid -le $ac_hi; then
7822 ac_lo= ac_hi=
7823 break
7824 fi
7825 ac_mid=`expr 2 '*' $ac_mid`
7826fi
7827rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7828 done
7829else
7830 echo "$as_me: failed program was:" >&5
7831sed 's/^/| /' conftest.$ac_ext >&5
7832
7833ac_lo= ac_hi=
7834fi
7835rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7836fi
7837rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7838# Binary search between lo and hi bounds.
7839while test "x$ac_lo" != "x$ac_hi"; do
7840 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7841 cat >conftest.$ac_ext <<_ACEOF
7842/* confdefs.h. */
7843_ACEOF
7844cat confdefs.h >>conftest.$ac_ext
7845cat >>conftest.$ac_ext <<_ACEOF
7846/* end confdefs.h. */
7847$ac_includes_default
7848int
7849main ()
7850{
7851static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7852test_array [0] = 0
7853
7854 ;
7855 return 0;
7856}
7857_ACEOF
7858rm -f conftest.$ac_objext
7859if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7860 (eval $ac_compile) 2>conftest.er1
7861 ac_status=$?
7862 grep -v '^ *+' conftest.er1 >conftest.err
7863 rm -f conftest.er1
7864 cat conftest.err >&5
7865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7866 (exit $ac_status); } &&
59da30e1 7867 { ac_try='test -z "$ac_c_werror_flag"
7868 || test ! -s conftest.err'
01473a49 7869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7870 (eval $ac_try) 2>&5
7871 ac_status=$?
7872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7873 (exit $ac_status); }; } &&
7874 { ac_try='test -s conftest.$ac_objext'
7875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7876 (eval $ac_try) 2>&5
7877 ac_status=$?
7878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7879 (exit $ac_status); }; }; then
7880 ac_hi=$ac_mid
7881else
7882 echo "$as_me: failed program was:" >&5
7883sed 's/^/| /' conftest.$ac_ext >&5
7884
7885ac_lo=`expr '(' $ac_mid ')' + 1`
7886fi
7887rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7888done
7889case $ac_lo in
7890?*) ac_cv_sizeof_short=$ac_lo;;
7891'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7892See \`config.log' for more details." >&5
7893echo "$as_me: error: cannot compute sizeof (short), 77
7894See \`config.log' for more details." >&2;}
7895 { (exit 1); exit 1; }; } ;;
7896esac
7897else
7898 if test "$cross_compiling" = yes; then
59da30e1 7899 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7900See \`config.log' for more details." >&5
7901echo "$as_me: error: cannot run test program while cross compiling
7902See \`config.log' for more details." >&2;}
01473a49 7903 { (exit 1); exit 1; }; }
7904else
7905 cat >conftest.$ac_ext <<_ACEOF
7906/* confdefs.h. */
7907_ACEOF
7908cat confdefs.h >>conftest.$ac_ext
7909cat >>conftest.$ac_ext <<_ACEOF
7910/* end confdefs.h. */
7911$ac_includes_default
7912long longval () { return (long) (sizeof (short)); }
7913unsigned long ulongval () { return (long) (sizeof (short)); }
7914#include <stdio.h>
7915#include <stdlib.h>
7916int
7917main ()
7918{
7919
7920 FILE *f = fopen ("conftest.val", "w");
7921 if (! f)
7922 exit (1);
7923 if (((long) (sizeof (short))) < 0)
7924 {
7925 long i = longval ();
7926 if (i != ((long) (sizeof (short))))
7927 exit (1);
7928 fprintf (f, "%ld\n", i);
7929 }
7930 else
7931 {
7932 unsigned long i = ulongval ();
7933 if (i != ((long) (sizeof (short))))
7934 exit (1);
7935 fprintf (f, "%lu\n", i);
7936 }
7937 exit (ferror (f) || fclose (f) != 0);
7938
7939 ;
7940 return 0;
7941}
7942_ACEOF
7943rm -f conftest$ac_exeext
7944if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7945 (eval $ac_link) 2>&5
7946 ac_status=$?
7947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7948 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7950 (eval $ac_try) 2>&5
7951 ac_status=$?
7952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7953 (exit $ac_status); }; }; then
7954 ac_cv_sizeof_short=`cat conftest.val`
7955else
7956 echo "$as_me: program exited with status $ac_status" >&5
7957echo "$as_me: failed program was:" >&5
7958sed 's/^/| /' conftest.$ac_ext >&5
7959
7960( exit $ac_status )
7961{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7962See \`config.log' for more details." >&5
7963echo "$as_me: error: cannot compute sizeof (short), 77
7964See \`config.log' for more details." >&2;}
7965 { (exit 1); exit 1; }; }
7966fi
7967rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7968fi
7969fi
7970rm -f conftest.val
7971else
7972 ac_cv_sizeof_short=0
7973fi
7974fi
7975echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
7976echo "${ECHO_T}$ac_cv_sizeof_short" >&6
7977cat >>confdefs.h <<_ACEOF
7978#define SIZEOF_SHORT $ac_cv_sizeof_short
7979_ACEOF
7980
7981
7982 echo "$as_me:$LINENO: checking for char" >&5
7983echo $ECHO_N "checking for char... $ECHO_C" >&6
7984if test "${ac_cv_type_char+set}" = set; then
7985 echo $ECHO_N "(cached) $ECHO_C" >&6
7986else
7987 cat >conftest.$ac_ext <<_ACEOF
7988/* confdefs.h. */
7989_ACEOF
7990cat confdefs.h >>conftest.$ac_ext
7991cat >>conftest.$ac_ext <<_ACEOF
7992/* end confdefs.h. */
7993$ac_includes_default
7994int
7995main ()
7996{
7997if ((char *) 0)
7998 return 0;
7999if (sizeof (char))
8000 return 0;
8001 ;
8002 return 0;
8003}
8004_ACEOF
8005rm -f conftest.$ac_objext
8006if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8007 (eval $ac_compile) 2>conftest.er1
8008 ac_status=$?
8009 grep -v '^ *+' conftest.er1 >conftest.err
8010 rm -f conftest.er1
8011 cat conftest.err >&5
8012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013 (exit $ac_status); } &&
59da30e1 8014 { ac_try='test -z "$ac_c_werror_flag"
8015 || test ! -s conftest.err'
01473a49 8016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8017 (eval $ac_try) 2>&5
8018 ac_status=$?
8019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8020 (exit $ac_status); }; } &&
8021 { ac_try='test -s conftest.$ac_objext'
8022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8023 (eval $ac_try) 2>&5
8024 ac_status=$?
8025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8026 (exit $ac_status); }; }; then
8027 ac_cv_type_char=yes
8028else
8029 echo "$as_me: failed program was:" >&5
8030sed 's/^/| /' conftest.$ac_ext >&5
8031
8032ac_cv_type_char=no
8033fi
8034rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8035fi
8036echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
8037echo "${ECHO_T}$ac_cv_type_char" >&6
8038
8039echo "$as_me:$LINENO: checking size of char" >&5
8040echo $ECHO_N "checking size of char... $ECHO_C" >&6
8041if test "${ac_cv_sizeof_char+set}" = set; then
8042 echo $ECHO_N "(cached) $ECHO_C" >&6
8043else
8044 if test "$ac_cv_type_char" = yes; then
8045 # The cast to unsigned long works around a bug in the HP C Compiler
8046 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8047 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8048 # This bug is HP SR number 8606223364.
8049 if test "$cross_compiling" = yes; then
8050 # Depending upon the size, compute the lo and hi bounds.
8051cat >conftest.$ac_ext <<_ACEOF
8052/* confdefs.h. */
8053_ACEOF
8054cat confdefs.h >>conftest.$ac_ext
8055cat >>conftest.$ac_ext <<_ACEOF
8056/* end confdefs.h. */
8057$ac_includes_default
8058int
8059main ()
8060{
8061static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
8062test_array [0] = 0
8063
8064 ;
8065 return 0;
8066}
8067_ACEOF
8068rm -f conftest.$ac_objext
8069if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8070 (eval $ac_compile) 2>conftest.er1
8071 ac_status=$?
8072 grep -v '^ *+' conftest.er1 >conftest.err
8073 rm -f conftest.er1
8074 cat conftest.err >&5
8075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8076 (exit $ac_status); } &&
59da30e1 8077 { ac_try='test -z "$ac_c_werror_flag"
8078 || test ! -s conftest.err'
01473a49 8079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8080 (eval $ac_try) 2>&5
8081 ac_status=$?
8082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8083 (exit $ac_status); }; } &&
8084 { ac_try='test -s conftest.$ac_objext'
8085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8086 (eval $ac_try) 2>&5
8087 ac_status=$?
8088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8089 (exit $ac_status); }; }; then
8090 ac_lo=0 ac_mid=0
8091 while :; do
8092 cat >conftest.$ac_ext <<_ACEOF
8093/* confdefs.h. */
8094_ACEOF
8095cat confdefs.h >>conftest.$ac_ext
8096cat >>conftest.$ac_ext <<_ACEOF
8097/* end confdefs.h. */
8098$ac_includes_default
8099int
8100main ()
8101{
8102static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
8103test_array [0] = 0
8104
8105 ;
8106 return 0;
8107}
8108_ACEOF
8109rm -f conftest.$ac_objext
8110if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8111 (eval $ac_compile) 2>conftest.er1
8112 ac_status=$?
8113 grep -v '^ *+' conftest.er1 >conftest.err
8114 rm -f conftest.er1
8115 cat conftest.err >&5
8116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117 (exit $ac_status); } &&
59da30e1 8118 { ac_try='test -z "$ac_c_werror_flag"
8119 || test ! -s conftest.err'
01473a49 8120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8121 (eval $ac_try) 2>&5
8122 ac_status=$?
8123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8124 (exit $ac_status); }; } &&
8125 { ac_try='test -s conftest.$ac_objext'
8126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8127 (eval $ac_try) 2>&5
8128 ac_status=$?
8129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8130 (exit $ac_status); }; }; then
8131 ac_hi=$ac_mid; break
8132else
8133 echo "$as_me: failed program was:" >&5
8134sed 's/^/| /' conftest.$ac_ext >&5
8135
8136ac_lo=`expr $ac_mid + 1`
8137 if test $ac_lo -le $ac_mid; then
8138 ac_lo= ac_hi=
8139 break
8140 fi
8141 ac_mid=`expr 2 '*' $ac_mid + 1`
8142fi
8143rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8144 done
8145else
8146 echo "$as_me: failed program was:" >&5
8147sed 's/^/| /' conftest.$ac_ext >&5
8148
8149cat >conftest.$ac_ext <<_ACEOF
8150/* confdefs.h. */
8151_ACEOF
8152cat confdefs.h >>conftest.$ac_ext
8153cat >>conftest.$ac_ext <<_ACEOF
8154/* end confdefs.h. */
8155$ac_includes_default
8156int
8157main ()
8158{
8159static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
8160test_array [0] = 0
8161
8162 ;
8163 return 0;
8164}
8165_ACEOF
8166rm -f conftest.$ac_objext
8167if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8168 (eval $ac_compile) 2>conftest.er1
8169 ac_status=$?
8170 grep -v '^ *+' conftest.er1 >conftest.err
8171 rm -f conftest.er1
8172 cat conftest.err >&5
8173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8174 (exit $ac_status); } &&
59da30e1 8175 { ac_try='test -z "$ac_c_werror_flag"
8176 || test ! -s conftest.err'
01473a49 8177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8178 (eval $ac_try) 2>&5
8179 ac_status=$?
8180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8181 (exit $ac_status); }; } &&
8182 { ac_try='test -s conftest.$ac_objext'
8183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8184 (eval $ac_try) 2>&5
8185 ac_status=$?
8186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8187 (exit $ac_status); }; }; then
8188 ac_hi=-1 ac_mid=-1
8189 while :; do
8190 cat >conftest.$ac_ext <<_ACEOF
8191/* confdefs.h. */
8192_ACEOF
8193cat confdefs.h >>conftest.$ac_ext
8194cat >>conftest.$ac_ext <<_ACEOF
8195/* end confdefs.h. */
8196$ac_includes_default
8197int
8198main ()
8199{
8200static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
8201test_array [0] = 0
8202
8203 ;
8204 return 0;
8205}
8206_ACEOF
8207rm -f conftest.$ac_objext
8208if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8209 (eval $ac_compile) 2>conftest.er1
8210 ac_status=$?
8211 grep -v '^ *+' conftest.er1 >conftest.err
8212 rm -f conftest.er1
8213 cat conftest.err >&5
8214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8215 (exit $ac_status); } &&
59da30e1 8216 { ac_try='test -z "$ac_c_werror_flag"
8217 || test ! -s conftest.err'
01473a49 8218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8219 (eval $ac_try) 2>&5
8220 ac_status=$?
8221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222 (exit $ac_status); }; } &&
8223 { ac_try='test -s conftest.$ac_objext'
8224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8225 (eval $ac_try) 2>&5
8226 ac_status=$?
8227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8228 (exit $ac_status); }; }; then
8229 ac_lo=$ac_mid; break
8230else
8231 echo "$as_me: failed program was:" >&5
8232sed 's/^/| /' conftest.$ac_ext >&5
8233
8234ac_hi=`expr '(' $ac_mid ')' - 1`
8235 if test $ac_mid -le $ac_hi; then
8236 ac_lo= ac_hi=
8237 break
8238 fi
8239 ac_mid=`expr 2 '*' $ac_mid`
8240fi
8241rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8242 done
8243else
8244 echo "$as_me: failed program was:" >&5
8245sed 's/^/| /' conftest.$ac_ext >&5
8246
8247ac_lo= ac_hi=
8248fi
8249rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8250fi
8251rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8252# Binary search between lo and hi bounds.
8253while test "x$ac_lo" != "x$ac_hi"; do
8254 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8255 cat >conftest.$ac_ext <<_ACEOF
8256/* confdefs.h. */
8257_ACEOF
8258cat confdefs.h >>conftest.$ac_ext
8259cat >>conftest.$ac_ext <<_ACEOF
8260/* end confdefs.h. */
8261$ac_includes_default
8262int
8263main ()
8264{
8265static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
8266test_array [0] = 0
8267
8268 ;
8269 return 0;
8270}
8271_ACEOF
8272rm -f conftest.$ac_objext
8273if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8274 (eval $ac_compile) 2>conftest.er1
8275 ac_status=$?
8276 grep -v '^ *+' conftest.er1 >conftest.err
8277 rm -f conftest.er1
8278 cat conftest.err >&5
8279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8280 (exit $ac_status); } &&
59da30e1 8281 { ac_try='test -z "$ac_c_werror_flag"
8282 || test ! -s conftest.err'
01473a49 8283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8284 (eval $ac_try) 2>&5
8285 ac_status=$?
8286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287 (exit $ac_status); }; } &&
8288 { ac_try='test -s conftest.$ac_objext'
8289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8290 (eval $ac_try) 2>&5
8291 ac_status=$?
8292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293 (exit $ac_status); }; }; then
8294 ac_hi=$ac_mid
8295else
8296 echo "$as_me: failed program was:" >&5
8297sed 's/^/| /' conftest.$ac_ext >&5
8298
8299ac_lo=`expr '(' $ac_mid ')' + 1`
8300fi
8301rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8302done
8303case $ac_lo in
8304?*) ac_cv_sizeof_char=$ac_lo;;
8305'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
8306See \`config.log' for more details." >&5
8307echo "$as_me: error: cannot compute sizeof (char), 77
8308See \`config.log' for more details." >&2;}
8309 { (exit 1); exit 1; }; } ;;
8310esac
8311else
8312 if test "$cross_compiling" = yes; then
59da30e1 8313 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8314See \`config.log' for more details." >&5
8315echo "$as_me: error: cannot run test program while cross compiling
8316See \`config.log' for more details." >&2;}
01473a49 8317 { (exit 1); exit 1; }; }
8318else
8319 cat >conftest.$ac_ext <<_ACEOF
8320/* confdefs.h. */
8321_ACEOF
8322cat confdefs.h >>conftest.$ac_ext
8323cat >>conftest.$ac_ext <<_ACEOF
8324/* end confdefs.h. */
8325$ac_includes_default
8326long longval () { return (long) (sizeof (char)); }
8327unsigned long ulongval () { return (long) (sizeof (char)); }
8328#include <stdio.h>
8329#include <stdlib.h>
8330int
8331main ()
8332{
8333
8334 FILE *f = fopen ("conftest.val", "w");
8335 if (! f)
8336 exit (1);
8337 if (((long) (sizeof (char))) < 0)
8338 {
8339 long i = longval ();
8340 if (i != ((long) (sizeof (char))))
8341 exit (1);
8342 fprintf (f, "%ld\n", i);
8343 }
8344 else
8345 {
8346 unsigned long i = ulongval ();
8347 if (i != ((long) (sizeof (char))))
8348 exit (1);
8349 fprintf (f, "%lu\n", i);
8350 }
8351 exit (ferror (f) || fclose (f) != 0);
8352
8353 ;
8354 return 0;
8355}
8356_ACEOF
8357rm -f conftest$ac_exeext
8358if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8359 (eval $ac_link) 2>&5
8360 ac_status=$?
8361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8364 (eval $ac_try) 2>&5
8365 ac_status=$?
8366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8367 (exit $ac_status); }; }; then
8368 ac_cv_sizeof_char=`cat conftest.val`
8369else
8370 echo "$as_me: program exited with status $ac_status" >&5
8371echo "$as_me: failed program was:" >&5
8372sed 's/^/| /' conftest.$ac_ext >&5
8373
8374( exit $ac_status )
8375{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
8376See \`config.log' for more details." >&5
8377echo "$as_me: error: cannot compute sizeof (char), 77
8378See \`config.log' for more details." >&2;}
8379 { (exit 1); exit 1; }; }
8380fi
8381rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8382fi
8383fi
8384rm -f conftest.val
8385else
8386 ac_cv_sizeof_char=0
8387fi
8388fi
8389echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
8390echo "${ECHO_T}$ac_cv_sizeof_char" >&6
8391cat >>confdefs.h <<_ACEOF
8392#define SIZEOF_CHAR $ac_cv_sizeof_char
8393_ACEOF
8394
8395
8396
8397 echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
8398echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
8399 case "$ac_cv_sizeof_char" in
8400 1) acx_cv_type_int8_t=char ;;
8401 *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
8402echo "$as_me: error: no 8-bit type" >&2;}
8403 { (exit please report a bug); exit please report a bug; }; }
8404 esac
8405 echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
8406echo "${ECHO_T}$acx_cv_type_int8_t" >&6
8407
8408 echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
8409echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
8410 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
8411 2:*) acx_cv_type_int16_t=int ;;
8412 *:2) acx_cv_type_int16_t=short ;;
8413 *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
8414echo "$as_me: error: no 16-bit type" >&2;}
8415 { (exit please report a bug); exit please report a bug; }; }
8416 esac
8417 echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
8418echo "${ECHO_T}$acx_cv_type_int16_t" >&6
8419
8420 echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
8421echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
8422 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
8423 4:*) acx_cv_type_int32_t=int ;;
8424 *:4) acx_cv_type_int32_t=long ;;
8425 *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
8426echo "$as_me: error: no 32-bit type" >&2;}
8427 { (exit please report a bug); exit please report a bug; }; }
8428 esac
8429 echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
8430echo "${ECHO_T}$acx_cv_type_int32_t" >&6
8431fi
8432
8433# These tests are here to make the output prettier
8434
8435if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
8436 case "$ac_cv_sizeof_long" in
8437 8) acx_cv_type_int64_t=long ;;
8438 esac
8439 echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
8440echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
8441 echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
8442echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
8443fi
8444
8445# Now we can use the above types
8446
8447if test "$ac_cv_type_uintptr_t" != yes; then
8448 echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
8449echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
8450 case $ac_cv_sizeof_void_p in
8451 2) acx_cv_type_intptr_t=int16_t ;;
8452 4) acx_cv_type_intptr_t=int32_t ;;
8453 8) acx_cv_type_intptr_t=int64_t ;;
8454 *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
8455echo "$as_me: error: no equivalent for intptr_t" >&2;}
8456 { (exit please report a bug); exit please report a bug; }; }
8457 esac
8458 echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
8459echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
8460fi
8461
8462# ----------------- done all checks, emit header -------------
8463 ac_config_commands="$ac_config_commands gstdint.h"
8464
8465
8466
8467
1e8e9920 8468# Check to see if -pthread or -lpthread is needed. Prefer the former.
b00e3183 8469# In case the pthread.h system header is not found, this test will fail.
1e8e9920 8470XPCFLAGS=""
cd7cbccd 8471CFLAGS="$CFLAGS -pthread"
1e8e9920 8472cat >conftest.$ac_ext <<_ACEOF
8473/* confdefs.h. */
8474_ACEOF
8475cat confdefs.h >>conftest.$ac_ext
8476cat >>conftest.$ac_ext <<_ACEOF
8477/* end confdefs.h. */
8478#include <pthread.h>
8479 void *g(void *d) { return NULL; }
8480int
8481main ()
8482{
8483pthread_t t; pthread_create(&t,NULL,g,NULL);
8484 ;
8485 return 0;
8486}
8487_ACEOF
8488rm -f conftest.$ac_objext conftest$ac_exeext
8489if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8490 (eval $ac_link) 2>conftest.er1
8491 ac_status=$?
8492 grep -v '^ *+' conftest.er1 >conftest.err
8493 rm -f conftest.er1
8494 cat conftest.err >&5
8495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496 (exit $ac_status); } &&
59da30e1 8497 { ac_try='test -z "$ac_c_werror_flag"
8498 || test ! -s conftest.err'
1e8e9920 8499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8500 (eval $ac_try) 2>&5
8501 ac_status=$?
8502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503 (exit $ac_status); }; } &&
8504 { ac_try='test -s conftest$ac_exeext'
8505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8506 (eval $ac_try) 2>&5
8507 ac_status=$?
8508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509 (exit $ac_status); }; }; then
cd7cbccd 8510 XPCFLAGS=" -Wc,-pthread"
1e8e9920 8511else
8512 echo "$as_me: failed program was:" >&5
8513sed 's/^/| /' conftest.$ac_ext >&5
8514
8515CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
8516 cat >conftest.$ac_ext <<_ACEOF
8517/* confdefs.h. */
8518_ACEOF
8519cat confdefs.h >>conftest.$ac_ext
8520cat >>conftest.$ac_ext <<_ACEOF
8521/* end confdefs.h. */
8522#include <pthread.h>
8523 void *g(void *d) { return NULL; }
8524int
8525main ()
8526{
8527pthread_t t; pthread_create(&t,NULL,g,NULL);
8528 ;
8529 return 0;
8530}
8531_ACEOF
8532rm -f conftest.$ac_objext conftest$ac_exeext
8533if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8534 (eval $ac_link) 2>conftest.er1
8535 ac_status=$?
8536 grep -v '^ *+' conftest.er1 >conftest.err
8537 rm -f conftest.er1
8538 cat conftest.err >&5
8539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8540 (exit $ac_status); } &&
59da30e1 8541 { ac_try='test -z "$ac_c_werror_flag"
8542 || test ! -s conftest.err'
1e8e9920 8543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8544 (eval $ac_try) 2>&5
8545 ac_status=$?
8546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8547 (exit $ac_status); }; } &&
8548 { ac_try='test -s conftest$ac_exeext'
8549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8550 (eval $ac_try) 2>&5
8551 ac_status=$?
8552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553 (exit $ac_status); }; }; then
8554 :
8555else
8556 echo "$as_me: failed program was:" >&5
8557sed 's/^/| /' conftest.$ac_ext >&5
8558
8559{ { echo "$as_me:$LINENO: error: Pthreads are required to build libgomp" >&5
8560echo "$as_me: error: Pthreads are required to build libgomp" >&2;}
8561 { (exit 1); exit 1; }; }
8562fi
8563rm -f conftest.err conftest.$ac_objext \
8564 conftest$ac_exeext conftest.$ac_ext
8565fi
8566rm -f conftest.err conftest.$ac_objext \
8567 conftest$ac_exeext conftest.$ac_ext
8568
8569# Check for functions needed.
8570
8571
8572for ac_func in getloadavg clock_gettime
8573do
8574as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8575echo "$as_me:$LINENO: checking for $ac_func" >&5
8576echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8577if eval "test \"\${$as_ac_var+set}\" = set"; then
8578 echo $ECHO_N "(cached) $ECHO_C" >&6
8579else
8580 cat >conftest.$ac_ext <<_ACEOF
8581/* confdefs.h. */
8582_ACEOF
8583cat confdefs.h >>conftest.$ac_ext
8584cat >>conftest.$ac_ext <<_ACEOF
8585/* end confdefs.h. */
8586/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8587 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8588#define $ac_func innocuous_$ac_func
8589
8590/* System header to define __stub macros and hopefully few prototypes,
8591 which can conflict with char $ac_func (); below.
8592 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8593 <limits.h> exists even on freestanding compilers. */
8594
8595#ifdef __STDC__
8596# include <limits.h>
8597#else
8598# include <assert.h>
8599#endif
8600
8601#undef $ac_func
8602
8603/* Override any gcc2 internal prototype to avoid an error. */
8604#ifdef __cplusplus
8605extern "C"
8606{
8607#endif
8608/* We use char because int might match the return type of a gcc2
8609 builtin and then its argument prototype would still apply. */
8610char $ac_func ();
8611/* The GNU C library defines this for functions which it implements
8612 to always fail with ENOSYS. Some functions are actually named
8613 something starting with __ and the normal name is an alias. */
8614#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8615choke me
8616#else
8617char (*f) () = $ac_func;
8618#endif
8619#ifdef __cplusplus
8620}
8621#endif
8622
8623int
8624main ()
8625{
8626return f != $ac_func;
8627 ;
8628 return 0;
8629}
8630_ACEOF
8631rm -f conftest.$ac_objext conftest$ac_exeext
8632if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8633 (eval $ac_link) 2>conftest.er1
8634 ac_status=$?
8635 grep -v '^ *+' conftest.er1 >conftest.err
8636 rm -f conftest.er1
8637 cat conftest.err >&5
8638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8639 (exit $ac_status); } &&
59da30e1 8640 { ac_try='test -z "$ac_c_werror_flag"
8641 || test ! -s conftest.err'
1e8e9920 8642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8643 (eval $ac_try) 2>&5
8644 ac_status=$?
8645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8646 (exit $ac_status); }; } &&
8647 { ac_try='test -s conftest$ac_exeext'
8648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8649 (eval $ac_try) 2>&5
8650 ac_status=$?
8651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652 (exit $ac_status); }; }; then
8653 eval "$as_ac_var=yes"
8654else
8655 echo "$as_me: failed program was:" >&5
8656sed 's/^/| /' conftest.$ac_ext >&5
8657
8658eval "$as_ac_var=no"
8659fi
8660rm -f conftest.err conftest.$ac_objext \
8661 conftest$ac_exeext conftest.$ac_ext
8662fi
8663echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8664echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8665if test `eval echo '${'$as_ac_var'}'` = yes; then
8666 cat >>confdefs.h <<_ACEOF
8667#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8668_ACEOF
8669
8670fi
8671done
8672
8673
59da30e1 8674# Check for broken semaphore implementation on darwin.
8675# sem_init returns: sem_init error: Function not implemented.
8676case "$host" in
8677 *-darwin*)
8678
8679cat >>confdefs.h <<\_ACEOF
8680#define HAVE_BROKEN_POSIX_SEMAPHORES 1
8681_ACEOF
8682
2eca990d 8683 ;;
8684 *-linux*)
8685 case "$enable_linux_futex" in
8686 default)
8687 # If headers don't have gettid/futex syscalls definition, then
8688 # default to no, otherwise there will be compile time failures.
8689 # Otherwise, default to yes. If we don't detect we are
8690 # compiled/linked against NPTL and not cross-compiling, check
8691 # if programs are run by default against NPTL and if not, issue
8692 # a warning.
8693 enable_linux_futex=no
8694 cat >conftest.$ac_ext <<_ACEOF
8695/* confdefs.h. */
8696_ACEOF
8697cat confdefs.h >>conftest.$ac_ext
8698cat >>conftest.$ac_ext <<_ACEOF
8699/* end confdefs.h. */
8700#include <sys/syscall.h>
8701 int lk;
8702int
8703main ()
8704{
8705syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
8706 ;
8707 return 0;
8708}
8709_ACEOF
8710rm -f conftest.$ac_objext conftest$ac_exeext
8711if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8712 (eval $ac_link) 2>conftest.er1
8713 ac_status=$?
8714 grep -v '^ *+' conftest.er1 >conftest.err
8715 rm -f conftest.er1
8716 cat conftest.err >&5
8717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8718 (exit $ac_status); } &&
8719 { ac_try='test -z "$ac_c_werror_flag"
8720 || test ! -s conftest.err'
8721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8722 (eval $ac_try) 2>&5
8723 ac_status=$?
8724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8725 (exit $ac_status); }; } &&
8726 { ac_try='test -s conftest$ac_exeext'
8727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8728 (eval $ac_try) 2>&5
8729 ac_status=$?
8730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8731 (exit $ac_status); }; }; then
8732 cat >conftest.$ac_ext <<_ACEOF
8733/* confdefs.h. */
8734_ACEOF
8735cat confdefs.h >>conftest.$ac_ext
8736cat >>conftest.$ac_ext <<_ACEOF
8737/* end confdefs.h. */
8738#ifndef _GNU_SOURCE
8739 #define _GNU_SOURCE 1
8740 #endif
8741 #include <pthread.h>
8742 pthread_t th; void *status;
8743int
8744main ()
8745{
8746pthread_tryjoin_np (th, &status);
8747 ;
8748 return 0;
8749}
8750_ACEOF
8751rm -f conftest.$ac_objext conftest$ac_exeext
8752if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8753 (eval $ac_link) 2>conftest.er1
8754 ac_status=$?
8755 grep -v '^ *+' conftest.er1 >conftest.err
8756 rm -f conftest.er1
8757 cat conftest.err >&5
8758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759 (exit $ac_status); } &&
8760 { ac_try='test -z "$ac_c_werror_flag"
8761 || test ! -s conftest.err'
8762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8763 (eval $ac_try) 2>&5
8764 ac_status=$?
8765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8766 (exit $ac_status); }; } &&
8767 { ac_try='test -s conftest$ac_exeext'
8768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8769 (eval $ac_try) 2>&5
8770 ac_status=$?
8771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8772 (exit $ac_status); }; }; then
8773 enable_linux_futex=yes
8774else
8775 echo "$as_me: failed program was:" >&5
8776sed 's/^/| /' conftest.$ac_ext >&5
8777
8778if test x$cross_compiling = xno; then
8779 if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \
8780 | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then
8781 { echo "$as_me:$LINENO: WARNING: The kernel might not support futex or gettid syscalls.
8782If so, please configure with --disable-linux-futex" >&5
8783echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
8784If so, please configure with --disable-linux-futex" >&2;}
8785 fi
8786 fi
8787 enable_linux_futex=yes
8788fi
8789rm -f conftest.err conftest.$ac_objext \
8790 conftest$ac_exeext conftest.$ac_ext
8791else
8792 echo "$as_me: failed program was:" >&5
8793sed 's/^/| /' conftest.$ac_ext >&5
8794
8795fi
8796rm -f conftest.err conftest.$ac_objext \
8797 conftest$ac_exeext conftest.$ac_ext
8798 ;;
8799 yes)
8800 cat >conftest.$ac_ext <<_ACEOF
8801/* confdefs.h. */
8802_ACEOF
8803cat confdefs.h >>conftest.$ac_ext
8804cat >>conftest.$ac_ext <<_ACEOF
8805/* end confdefs.h. */
8806#include <sys/syscall.h>
8807 int lk;
8808int
8809main ()
8810{
8811syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
8812 ;
8813 return 0;
8814}
8815_ACEOF
8816rm -f conftest.$ac_objext conftest$ac_exeext
8817if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8818 (eval $ac_link) 2>conftest.er1
8819 ac_status=$?
8820 grep -v '^ *+' conftest.er1 >conftest.err
8821 rm -f conftest.er1
8822 cat conftest.err >&5
8823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8824 (exit $ac_status); } &&
8825 { ac_try='test -z "$ac_c_werror_flag"
8826 || test ! -s conftest.err'
8827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8828 (eval $ac_try) 2>&5
8829 ac_status=$?
8830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8831 (exit $ac_status); }; } &&
8832 { ac_try='test -s conftest$ac_exeext'
8833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8834 (eval $ac_try) 2>&5
8835 ac_status=$?
8836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837 (exit $ac_status); }; }; then
8838 :
8839else
8840 echo "$as_me: failed program was:" >&5
8841sed 's/^/| /' conftest.$ac_ext >&5
8842
8843{ { echo "$as_me:$LINENO: error: SYS_gettid and SYS_futex required for --enable-linux-futex" >&5
8844echo "$as_me: error: SYS_gettid and SYS_futex required for --enable-linux-futex" >&2;}
8845 { (exit 1); exit 1; }; }
8846fi
8847rm -f conftest.err conftest.$ac_objext \
8848 conftest$ac_exeext conftest.$ac_ext
8849 ;;
8850 esac
59da30e1 8851 ;;
8852esac
8853
8f697de6 8854# Check for pthread_{,attr_}[sg]etaffinity_np.
8855cat >conftest.$ac_ext <<_ACEOF
8856/* confdefs.h. */
8857_ACEOF
8858cat confdefs.h >>conftest.$ac_ext
8859cat >>conftest.$ac_ext <<_ACEOF
8860/* end confdefs.h. */
8861#define _GNU_SOURCE
8862 #include <pthread.h>
8863int
8864main ()
8865{
8866cpu_set_t cpuset;
8867 pthread_attr_t attr;
8868 pthread_getaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
8869 if (CPU_ISSET (0, &cpuset))
8870 CPU_SET (1, &cpuset);
8871 else
8872 CPU_ZERO (&cpuset);
8873 pthread_setaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
8874 pthread_attr_init (&attr);
8875 pthread_attr_getaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
8876 pthread_attr_setaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
8877 ;
8878 return 0;
8879}
8880_ACEOF
8881rm -f conftest.$ac_objext conftest$ac_exeext
8882if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8883 (eval $ac_link) 2>conftest.er1
8884 ac_status=$?
8885 grep -v '^ *+' conftest.er1 >conftest.err
8886 rm -f conftest.er1
8887 cat conftest.err >&5
8888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8889 (exit $ac_status); } &&
8890 { ac_try='test -z "$ac_c_werror_flag"
8891 || test ! -s conftest.err'
8892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8893 (eval $ac_try) 2>&5
8894 ac_status=$?
8895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8896 (exit $ac_status); }; } &&
8897 { ac_try='test -s conftest$ac_exeext'
8898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8899 (eval $ac_try) 2>&5
8900 ac_status=$?
8901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8902 (exit $ac_status); }; }; then
8903
8904cat >>confdefs.h <<\_ACEOF
8905#define HAVE_PTHREAD_AFFINITY_NP 1
8906_ACEOF
8907
8908else
8909 echo "$as_me: failed program was:" >&5
8910sed 's/^/| /' conftest.$ac_ext >&5
8911
8912fi
8913rm -f conftest.err conftest.$ac_objext \
8914 conftest$ac_exeext conftest.$ac_ext
8915
1e8e9920 8916# At least for glibc, clock_gettime is in librt. But don't pull that
8917# in if it still doesn't give us the function we want.
8918if test $ac_cv_func_clock_gettime = no; then
8919 echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
8920echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6
8921if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
8922 echo $ECHO_N "(cached) $ECHO_C" >&6
8923else
8924 ac_check_lib_save_LIBS=$LIBS
8925LIBS="-lrt $LIBS"
8926cat >conftest.$ac_ext <<_ACEOF
8927/* confdefs.h. */
8928_ACEOF
8929cat confdefs.h >>conftest.$ac_ext
8930cat >>conftest.$ac_ext <<_ACEOF
8931/* end confdefs.h. */
8932
8933/* Override any gcc2 internal prototype to avoid an error. */
8934#ifdef __cplusplus
8935extern "C"
8936#endif
8937/* We use char because int might match the return type of a gcc2
8938 builtin and then its argument prototype would still apply. */
8939char clock_gettime ();
8940int
8941main ()
8942{
8943clock_gettime ();
8944 ;
8945 return 0;
8946}
8947_ACEOF
8948rm -f conftest.$ac_objext conftest$ac_exeext
8949if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8950 (eval $ac_link) 2>conftest.er1
8951 ac_status=$?
8952 grep -v '^ *+' conftest.er1 >conftest.err
8953 rm -f conftest.er1
8954 cat conftest.err >&5
8955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8956 (exit $ac_status); } &&
59da30e1 8957 { ac_try='test -z "$ac_c_werror_flag"
8958 || test ! -s conftest.err'
1e8e9920 8959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8960 (eval $ac_try) 2>&5
8961 ac_status=$?
8962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8963 (exit $ac_status); }; } &&
8964 { ac_try='test -s conftest$ac_exeext'
8965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8966 (eval $ac_try) 2>&5
8967 ac_status=$?
8968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8969 (exit $ac_status); }; }; then
8970 ac_cv_lib_rt_clock_gettime=yes
8971else
8972 echo "$as_me: failed program was:" >&5
8973sed 's/^/| /' conftest.$ac_ext >&5
8974
8975ac_cv_lib_rt_clock_gettime=no
8976fi
8977rm -f conftest.err conftest.$ac_objext \
8978 conftest$ac_exeext conftest.$ac_ext
8979LIBS=$ac_check_lib_save_LIBS
8980fi
8981echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
8982echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6
8983if test $ac_cv_lib_rt_clock_gettime = yes; then
8984 LIBS="-lrt $LIBS"
0b67f687 8985
8986cat >>confdefs.h <<\_ACEOF
8987#define HAVE_CLOCK_GETTIME 1
1e8e9920 8988_ACEOF
8989
8990fi
8991
8992fi
8993
8994# See if we support thread-local storage.
8995
8996 # Check whether --enable-tls or --disable-tls was given.
8997if test "${enable_tls+set}" = set; then
8998 enableval="$enable_tls"
8999
9000 case "$enableval" in
9001 yes|no) ;;
9002 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5
9003echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;}
9004 { (exit 1); exit 1; }; } ;;
9005 esac
9006
9007else
9008 enable_tls=yes
9009fi;
9010
9011 echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5
9012echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6
9013if test "${have_tls+set}" = set; then
9014 echo $ECHO_N "(cached) $ECHO_C" >&6
9015else
9016
4d006f8a 9017 if test "$cross_compiling" = yes; then
9018 cat >conftest.$ac_ext <<_ACEOF
67ba0753 9019__thread int a; int b; int main() { return a = b; }
1e8e9920 9020_ACEOF
67ba0753 9021rm -f conftest.$ac_objext conftest$ac_exeext
9022if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9023 (eval $ac_link) 2>conftest.er1
1e8e9920 9024 ac_status=$?
9025 grep -v '^ *+' conftest.er1 >conftest.err
9026 rm -f conftest.er1
9027 cat conftest.err >&5
9028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9029 (exit $ac_status); } &&
59da30e1 9030 { ac_try='test -z "$ac_c_werror_flag"
9031 || test ! -s conftest.err'
1e8e9920 9032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9033 (eval $ac_try) 2>&5
9034 ac_status=$?
9035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9036 (exit $ac_status); }; } &&
67ba0753 9037 { ac_try='test -s conftest$ac_exeext'
1e8e9920 9038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9039 (eval $ac_try) 2>&5
9040 ac_status=$?
9041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9042 (exit $ac_status); }; }; then
4d006f8a 9043 have_tls=yes
1e8e9920 9044else
9045 echo "$as_me: failed program was:" >&5
9046sed 's/^/| /' conftest.$ac_ext >&5
9047
9048have_tls=no
9049fi
67ba0753 9050rm -f conftest.err conftest.$ac_objext \
9051 conftest$ac_exeext conftest.$ac_ext
4d006f8a 9052
9053else
9054 cat >conftest.$ac_ext <<_ACEOF
9055__thread int a; int b; int main() { return a = b; }
9056_ACEOF
9057rm -f conftest$ac_exeext
9058if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9059 (eval $ac_link) 2>&5
9060 ac_status=$?
9061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9062 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9064 (eval $ac_try) 2>&5
9065 ac_status=$?
9066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9067 (exit $ac_status); }; }; then
1196de9e 9068 chktls_save_LDFLAGS="$LDFLAGS"
4d006f8a 9069 LDFLAGS="-static $LDFLAGS"
72a430e4 9070 cat >conftest.$ac_ext <<_ACEOF
9071int main() { return 0; }
9072_ACEOF
9073rm -f conftest.$ac_objext conftest$ac_exeext
9074if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9075 (eval $ac_link) 2>conftest.er1
9076 ac_status=$?
9077 grep -v '^ *+' conftest.er1 >conftest.err
9078 rm -f conftest.er1
9079 cat conftest.err >&5
9080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9081 (exit $ac_status); } &&
9082 { ac_try='test -z "$ac_c_werror_flag"
9083 || test ! -s conftest.err'
9084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9085 (eval $ac_try) 2>&5
9086 ac_status=$?
9087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9088 (exit $ac_status); }; } &&
9089 { ac_try='test -s conftest$ac_exeext'
9090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9091 (eval $ac_try) 2>&5
9092 ac_status=$?
9093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9094 (exit $ac_status); }; }; then
9095 if test "$cross_compiling" = yes; then
4d006f8a 9096 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9097See \`config.log' for more details." >&5
9098echo "$as_me: error: cannot run test program while cross compiling
9099See \`config.log' for more details." >&2;}
9100 { (exit 1); exit 1; }; }
9101else
9102 cat >conftest.$ac_ext <<_ACEOF
9103__thread int a; int b; int main() { return a = b; }
9104_ACEOF
9105rm -f conftest$ac_exeext
9106if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9107 (eval $ac_link) 2>&5
9108 ac_status=$?
9109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9110 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9112 (eval $ac_try) 2>&5
9113 ac_status=$?
9114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9115 (exit $ac_status); }; }; then
9116 have_tls=yes
9117else
9118 echo "$as_me: program exited with status $ac_status" >&5
9119echo "$as_me: failed program was:" >&5
9120sed 's/^/| /' conftest.$ac_ext >&5
9121
9122( exit $ac_status )
9123have_tls=no
9124fi
9125rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9126fi
72a430e4 9127else
9128 echo "$as_me: failed program was:" >&5
9129sed 's/^/| /' conftest.$ac_ext >&5
9130
9131have_tls=yes
9132fi
9133rm -f conftest.err conftest.$ac_objext \
9134 conftest$ac_exeext conftest.$ac_ext
1196de9e 9135 LDFLAGS="$chktls_save_LDFLAGS"
9136 if test $have_tls = yes; then
9137 chktls_save_CFLAGS="$CFLAGS"
9138 thread_CFLAGS=failed
9139 for flag in '' '-pthread' '-lpthread'; do
9140 CFLAGS="$flag $chktls_save_CFLAGS"
9141 cat >conftest.$ac_ext <<_ACEOF
9142/* confdefs.h. */
9143_ACEOF
9144cat confdefs.h >>conftest.$ac_ext
9145cat >>conftest.$ac_ext <<_ACEOF
9146/* end confdefs.h. */
9147#include <pthread.h>
9148 void *g(void *d) { return NULL; }
9149int
9150main ()
9151{
9152pthread_t t; pthread_create(&t,NULL,g,NULL);
9153 ;
9154 return 0;
9155}
9156_ACEOF
9157rm -f conftest.$ac_objext conftest$ac_exeext
9158if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9159 (eval $ac_link) 2>conftest.er1
9160 ac_status=$?
9161 grep -v '^ *+' conftest.er1 >conftest.err
9162 rm -f conftest.er1
9163 cat conftest.err >&5
9164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9165 (exit $ac_status); } &&
9166 { ac_try='test -z "$ac_c_werror_flag"
9167 || test ! -s conftest.err'
9168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9169 (eval $ac_try) 2>&5
9170 ac_status=$?
9171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9172 (exit $ac_status); }; } &&
9173 { ac_try='test -s conftest$ac_exeext'
9174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9175 (eval $ac_try) 2>&5
9176 ac_status=$?
9177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9178 (exit $ac_status); }; }; then
9179 thread_CFLAGS="$flag"
9180else
9181 echo "$as_me: failed program was:" >&5
9182sed 's/^/| /' conftest.$ac_ext >&5
9183
9184fi
9185rm -f conftest.err conftest.$ac_objext \
9186 conftest$ac_exeext conftest.$ac_ext
9187 if test "X$thread_CFLAGS" != Xfailed; then
9188 break
9189 fi
9190 done
9191 CFLAGS="$chktls_save_CFLAGS"
9192 if test "X$thread_CFLAGS" != Xfailed; then
9193 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
9194 if test "$cross_compiling" = yes; then
9195 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9196See \`config.log' for more details." >&5
9197echo "$as_me: error: cannot run test program while cross compiling
9198See \`config.log' for more details." >&2;}
9199 { (exit 1); exit 1; }; }
9200else
9201 cat >conftest.$ac_ext <<_ACEOF
9202/* confdefs.h. */
9203_ACEOF
9204cat confdefs.h >>conftest.$ac_ext
9205cat >>conftest.$ac_ext <<_ACEOF
9206/* end confdefs.h. */
9207#include <pthread.h>
9208 __thread int a;
9209 static int *a_in_other_thread;
9210 static void *
9211 thread_func (void *arg)
9212 {
9213 a_in_other_thread = &a;
9214 return (void *)0;
9215 }
9216int
9217main ()
9218{
9219pthread_t thread;
9220 void *thread_retval;
9221 int *a_in_main_thread;
9222 if (pthread_create (&thread, (pthread_attr_t *)0,
9223 thread_func, (void *)0))
9224 return 0;
9225 a_in_main_thread = &a;
9226 if (pthread_join (thread, &thread_retval))
9227 return 0;
9228 return (a_in_other_thread == a_in_main_thread);
9229 ;
9230 return 0;
9231}
9232_ACEOF
9233rm -f conftest$ac_exeext
9234if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9235 (eval $ac_link) 2>&5
9236 ac_status=$?
9237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9238 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9240 (eval $ac_try) 2>&5
9241 ac_status=$?
9242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9243 (exit $ac_status); }; }; then
9244 have_tls=yes
9245else
9246 echo "$as_me: program exited with status $ac_status" >&5
9247echo "$as_me: failed program was:" >&5
9248sed 's/^/| /' conftest.$ac_ext >&5
9249
9250( exit $ac_status )
9251have_tls=no
9252fi
9253rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9254fi
9255 CFLAGS="$chktls_save_CFLAGS"
9256 fi
9257 fi
4d006f8a 9258else
9259 echo "$as_me: program exited with status $ac_status" >&5
9260echo "$as_me: failed program was:" >&5
9261sed 's/^/| /' conftest.$ac_ext >&5
9262
9263( exit $ac_status )
9264have_tls=no
9265fi
9266rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9267fi
1e8e9920 9268fi
9269echo "$as_me:$LINENO: result: $have_tls" >&5
9270echo "${ECHO_T}$have_tls" >&6
4d006f8a 9271 if test "$enable_tls $have_tls" = "yes yes"; then
1e8e9920 9272
9273cat >>confdefs.h <<\_ACEOF
9274#define HAVE_TLS 1
9275_ACEOF
9276
9277 fi
9278
9279# See what sort of export controls are availible.
9280
9281 echo "$as_me:$LINENO: checking whether the target supports hidden visibility" >&5
9282echo $ECHO_N "checking whether the target supports hidden visibility... $ECHO_C" >&6
9283if test "${have_attribute_visibility+set}" = set; then
9284 echo $ECHO_N "(cached) $ECHO_C" >&6
9285else
9286
9287 save_CFLAGS="$CFLAGS"
9288 CFLAGS="$CFLAGS -Werror"
9289 cat >conftest.$ac_ext <<_ACEOF
9290/* confdefs.h. */
9291_ACEOF
9292cat confdefs.h >>conftest.$ac_ext
9293cat >>conftest.$ac_ext <<_ACEOF
9294/* end confdefs.h. */
9295void __attribute__((visibility("hidden"))) foo(void) { }
9296int
9297main ()
9298{
9299
9300 ;
9301 return 0;
9302}
9303_ACEOF
9304rm -f conftest.$ac_objext
9305if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9306 (eval $ac_compile) 2>conftest.er1
9307 ac_status=$?
9308 grep -v '^ *+' conftest.er1 >conftest.err
9309 rm -f conftest.er1
9310 cat conftest.err >&5
9311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9312 (exit $ac_status); } &&
59da30e1 9313 { ac_try='test -z "$ac_c_werror_flag"
9314 || test ! -s conftest.err'
1e8e9920 9315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9316 (eval $ac_try) 2>&5
9317 ac_status=$?
9318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9319 (exit $ac_status); }; } &&
9320 { ac_try='test -s conftest.$ac_objext'
9321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9322 (eval $ac_try) 2>&5
9323 ac_status=$?
9324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9325 (exit $ac_status); }; }; then
9326 have_attribute_visibility=yes
9327else
9328 echo "$as_me: failed program was:" >&5
9329sed 's/^/| /' conftest.$ac_ext >&5
9330
9331have_attribute_visibility=no
9332fi
9333rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9334 CFLAGS="$save_CFLAGS"
9335fi
9336echo "$as_me:$LINENO: result: $have_attribute_visibility" >&5
9337echo "${ECHO_T}$have_attribute_visibility" >&6
9338 if test $have_attribute_visibility = yes; then
9339
9340cat >>confdefs.h <<\_ACEOF
9341#define HAVE_ATTRIBUTE_VISIBILITY 1
9342_ACEOF
9343
9344 fi
9345
9346 echo "$as_me:$LINENO: checking whether the target supports dllexport" >&5
9347echo $ECHO_N "checking whether the target supports dllexport... $ECHO_C" >&6
9348if test "${have_attribute_dllexport+set}" = set; then
9349 echo $ECHO_N "(cached) $ECHO_C" >&6
9350else
9351
9352 save_CFLAGS="$CFLAGS"
9353 CFLAGS="$CFLAGS -Werror"
9354 cat >conftest.$ac_ext <<_ACEOF
9355/* confdefs.h. */
9356_ACEOF
9357cat confdefs.h >>conftest.$ac_ext
9358cat >>conftest.$ac_ext <<_ACEOF
9359/* end confdefs.h. */
9360void __attribute__((dllexport)) foo(void) { }
9361int
9362main ()
9363{
9364
9365 ;
9366 return 0;
9367}
9368_ACEOF
9369rm -f conftest.$ac_objext
9370if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9371 (eval $ac_compile) 2>conftest.er1
9372 ac_status=$?
9373 grep -v '^ *+' conftest.er1 >conftest.err
9374 rm -f conftest.er1
9375 cat conftest.err >&5
9376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9377 (exit $ac_status); } &&
59da30e1 9378 { ac_try='test -z "$ac_c_werror_flag"
9379 || test ! -s conftest.err'
1e8e9920 9380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9381 (eval $ac_try) 2>&5
9382 ac_status=$?
9383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384 (exit $ac_status); }; } &&
9385 { ac_try='test -s conftest.$ac_objext'
9386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9387 (eval $ac_try) 2>&5
9388 ac_status=$?
9389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9390 (exit $ac_status); }; }; then
9391 have_attribute_dllexport=yes
9392else
9393 echo "$as_me: failed program was:" >&5
9394sed 's/^/| /' conftest.$ac_ext >&5
9395
9396have_attribute_dllexport=no
9397fi
9398rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9399 CFLAGS="$save_CFLAGS"
9400fi
9401echo "$as_me:$LINENO: result: $have_attribute_dllexport" >&5
9402echo "${ECHO_T}$have_attribute_dllexport" >&6
9403 if test $have_attribute_dllexport = yes; then
9404
9405cat >>confdefs.h <<\_ACEOF
9406#define HAVE_ATTRIBUTE_DLLEXPORT 1
9407_ACEOF
9408
9409 fi
9410
9411 echo "$as_me:$LINENO: checking whether the target supports symbol aliases" >&5
9412echo $ECHO_N "checking whether the target supports symbol aliases... $ECHO_C" >&6
9413if test "${have_attribute_alias+set}" = set; then
9414 echo $ECHO_N "(cached) $ECHO_C" >&6
9415else
9416
9417 cat >conftest.$ac_ext <<_ACEOF
9418/* confdefs.h. */
9419_ACEOF
9420cat confdefs.h >>conftest.$ac_ext
9421cat >>conftest.$ac_ext <<_ACEOF
9422/* end confdefs.h. */
9423
1e8e9920 9424void foo(void) { }
c812091b 9425extern void bar(void) __attribute__((alias("foo")));
1e8e9920 9426int
9427main ()
9428{
9429bar();
9430 ;
9431 return 0;
9432}
9433_ACEOF
9434rm -f conftest.$ac_objext conftest$ac_exeext
9435if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9436 (eval $ac_link) 2>conftest.er1
9437 ac_status=$?
9438 grep -v '^ *+' conftest.er1 >conftest.err
9439 rm -f conftest.er1
9440 cat conftest.err >&5
9441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9442 (exit $ac_status); } &&
59da30e1 9443 { ac_try='test -z "$ac_c_werror_flag"
9444 || test ! -s conftest.err'
1e8e9920 9445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9446 (eval $ac_try) 2>&5
9447 ac_status=$?
9448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9449 (exit $ac_status); }; } &&
9450 { ac_try='test -s conftest$ac_exeext'
9451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9452 (eval $ac_try) 2>&5
9453 ac_status=$?
9454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9455 (exit $ac_status); }; }; then
9456 have_attribute_alias=yes
9457else
9458 echo "$as_me: failed program was:" >&5
9459sed 's/^/| /' conftest.$ac_ext >&5
9460
9461have_attribute_alias=no
9462fi
9463rm -f conftest.err conftest.$ac_objext \
9464 conftest$ac_exeext conftest.$ac_ext
9465fi
9466echo "$as_me:$LINENO: result: $have_attribute_alias" >&5
9467echo "${ECHO_T}$have_attribute_alias" >&6
9468 if test $have_attribute_alias = yes; then
9469
9470cat >>confdefs.h <<\_ACEOF
9471#define HAVE_ATTRIBUTE_ALIAS 1
9472_ACEOF
9473
9474 fi
9475
9476 # If we're not using GNU ld, then there's no point in even trying these
9477 # tests. Check for that first. We should have already tested for gld
9478 # by now (in libtool), but require it now just to be safe...
9479 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
9480 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
9481
9482
9483
9484 # The name set by libtool depends on the version of libtool. Shame on us
9485 # for depending on an impl detail, but c'est la vie. Older versions used
9486 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
9487 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
9488 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
9489 # set (hence we're using an older libtool), then set it.
9490 if test x${with_gnu_ld+set} != xset; then
9491 if test x${ac_cv_prog_gnu_ld+set} != xset; then
9492 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
9493 with_gnu_ld=no
9494 else
9495 with_gnu_ld=$ac_cv_prog_gnu_ld
9496 fi
9497 fi
9498
9499 # Start by getting the version number. I think the libtool test already
9500 # does some of this, but throws away the result.
9501
9502 ldver=`$LD --version 2>/dev/null | head -1 | \
20d905ca 9503 sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
1e8e9920 9504
9505 libgomp_gnu_ld_version=`echo $ldver | \
9506 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
9507
9508 # Set --gc-sections.
9509 if test "$with_gnu_ld" = "notbroken"; then
9510 # GNU ld it is! Joy and bunny rabbits!
9511
9512 # All these tests are for C++; save the language and the compiler flags.
9513 # Need to do this so that g++ won't try to link in libstdc++
9514 ac_test_CFLAGS="${CFLAGS+set}"
9515 ac_save_CFLAGS="$CFLAGS"
9516 CFLAGS='-x c++ -Wl,--gc-sections'
9517
9518 # Check for -Wl,--gc-sections
9519 # XXX This test is broken at the moment, as symbols required for linking
9520 # are now in libsupc++ (not built yet). In addition, this test has
9521 # cored on solaris in the past. In addition, --gc-sections doesn't
9522 # really work at the moment (keeps on discarding used sections, first
9523 # .eh_frame and now some of the glibc sections for iconv).
9524 # Bzzzzt. Thanks for playing, maybe next time.
9525 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
9526echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
9527 if test "$cross_compiling" = yes; then
9528 ac_sectionLDflags=yes
9529else
9530 cat >conftest.$ac_ext <<_ACEOF
9531/* confdefs.h. */
9532_ACEOF
9533cat confdefs.h >>conftest.$ac_ext
9534cat >>conftest.$ac_ext <<_ACEOF
9535/* end confdefs.h. */
9536
9537 int main(void)
9538 {
9539 try { throw 1; }
9540 catch (...) { };
9541 return 0;
9542 }
9543
9544_ACEOF
9545rm -f conftest$ac_exeext
9546if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9547 (eval $ac_link) 2>&5
9548 ac_status=$?
9549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9550 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9552 (eval $ac_try) 2>&5
9553 ac_status=$?
9554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9555 (exit $ac_status); }; }; then
9556 ac_sectionLDflags=yes
9557else
9558 echo "$as_me: program exited with status $ac_status" >&5
9559echo "$as_me: failed program was:" >&5
9560sed 's/^/| /' conftest.$ac_ext >&5
9561
9562( exit $ac_status )
9563ac_sectionLDflags=no
9564fi
9565rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9566fi
9567 if test "$ac_test_CFLAGS" = set; then
9568 CFLAGS="$ac_save_CFLAGS"
9569 else
9570 # this is the suspicious part
9571 CFLAGS=''
9572 fi
9573 if test "$ac_sectionLDflags" = "yes"; then
9574 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
9575 fi
9576 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
9577echo "${ECHO_T}$ac_sectionLDflags" >&6
9578 fi
9579
9580 # Set linker optimization flags.
9581 if test x"$with_gnu_ld" = x"yes"; then
9582 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
9583 fi
9584
9585
9586
9587
9588
9589
9590 # Check whether --enable-symvers or --disable-symvers was given.
9591if test "${enable_symvers+set}" = set; then
9592 enableval="$enable_symvers"
9593
9594 case "$enableval" in
9595 yes|no|gnu) ;;
9596 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable symvers" >&5
9597echo "$as_me: error: Unknown argument to enable/disable symvers" >&2;}
9598 { (exit 1); exit 1; }; } ;;
9599 esac
9600
9601else
9602 enable_symvers=yes
9603fi;
9604
9605
9606# If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we
9607# don't know enough about $LD to do tricks...
9608
9609# FIXME The following test is too strict, in theory.
9610if test $enable_shared = no ||
9611 test "x$LD" = x ||
9612 test x$libgomp_gnu_ld_version = x; then
9613 enable_symvers=no
9614fi
9615
9616# Check to see if libgcc_s exists, indicating that shared libgcc is possible.
9617if test $enable_symvers != no; then
9618 echo "$as_me:$LINENO: checking for shared libgcc" >&5
9619echo $ECHO_N "checking for shared libgcc... $ECHO_C" >&6
9620 ac_save_CFLAGS="$CFLAGS"
9621 CFLAGS=' -lgcc_s'
9622 cat >conftest.$ac_ext <<_ACEOF
9623/* confdefs.h. */
9624_ACEOF
9625cat confdefs.h >>conftest.$ac_ext
9626cat >>conftest.$ac_ext <<_ACEOF
9627/* end confdefs.h. */
9628
9629int
9630main ()
9631{
9632return 0;
9633 ;
9634 return 0;
9635}
9636_ACEOF
9637rm -f conftest.$ac_objext conftest$ac_exeext
9638if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9639 (eval $ac_link) 2>conftest.er1
9640 ac_status=$?
9641 grep -v '^ *+' conftest.er1 >conftest.err
9642 rm -f conftest.er1
9643 cat conftest.err >&5
9644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9645 (exit $ac_status); } &&
59da30e1 9646 { ac_try='test -z "$ac_c_werror_flag"
9647 || test ! -s conftest.err'
1e8e9920 9648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9649 (eval $ac_try) 2>&5
9650 ac_status=$?
9651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9652 (exit $ac_status); }; } &&
9653 { ac_try='test -s conftest$ac_exeext'
9654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9655 (eval $ac_try) 2>&5
9656 ac_status=$?
9657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9658 (exit $ac_status); }; }; then
9659 libgomp_shared_libgcc=yes
9660else
9661 echo "$as_me: failed program was:" >&5
9662sed 's/^/| /' conftest.$ac_ext >&5
9663
9664libgomp_shared_libgcc=no
9665fi
9666rm -f conftest.err conftest.$ac_objext \
9667 conftest$ac_exeext conftest.$ac_ext
9668 CFLAGS="$ac_save_CFLAGS"
9669 if test $libgomp_shared_libgcc = no; then
9670 cat > conftest.c <<EOF
9671int main (void) { return 0; }
9672EOF
9673 libgomp_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
9674 -shared -shared-libgcc -o conftest.so \
9675 conftest.c -v 2>&1 >/dev/null \
9676 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
9677 rm -f conftest.c conftest.so
9678 if test x${libgomp_libgcc_s_suffix+set} = xset; then
9679 CFLAGS=" -lgcc_s$libgomp_libgcc_s_suffix"
9680 cat >conftest.$ac_ext <<_ACEOF
9681/* confdefs.h. */
9682_ACEOF
9683cat confdefs.h >>conftest.$ac_ext
9684cat >>conftest.$ac_ext <<_ACEOF
9685/* end confdefs.h. */
9686
9687int
9688main ()
9689{
9690return 0;
9691 ;
9692 return 0;
9693}
9694_ACEOF
9695rm -f conftest.$ac_objext conftest$ac_exeext
9696if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9697 (eval $ac_link) 2>conftest.er1
9698 ac_status=$?
9699 grep -v '^ *+' conftest.er1 >conftest.err
9700 rm -f conftest.er1
9701 cat conftest.err >&5
9702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9703 (exit $ac_status); } &&
59da30e1 9704 { ac_try='test -z "$ac_c_werror_flag"
9705 || test ! -s conftest.err'
1e8e9920 9706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9707 (eval $ac_try) 2>&5
9708 ac_status=$?
9709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9710 (exit $ac_status); }; } &&
9711 { ac_try='test -s conftest$ac_exeext'
9712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9713 (eval $ac_try) 2>&5
9714 ac_status=$?
9715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716 (exit $ac_status); }; }; then
9717 libgomp_shared_libgcc=yes
9718else
9719 echo "$as_me: failed program was:" >&5
9720sed 's/^/| /' conftest.$ac_ext >&5
9721
9722fi
9723rm -f conftest.err conftest.$ac_objext \
9724 conftest$ac_exeext conftest.$ac_ext
9725 CFLAGS="$ac_save_CFLAGS"
9726 fi
9727 fi
9728 echo "$as_me:$LINENO: result: $libgomp_shared_libgcc" >&5
9729echo "${ECHO_T}$libgomp_shared_libgcc" >&6
9730fi
9731
9732# For GNU ld, we need at least this version. The format is described in
9733# LIBGOMP_CHECK_LINKER_FEATURES above.
9734libgomp_min_gnu_ld_version=21400
9735# XXXXXXXXXXX libgomp_gnu_ld_version=21390
9736
9737# Check to see if unspecified "yes" value can win, given results above.
9738# Change "yes" into either "no" or a style name.
9739if test $enable_symvers = yes; then
9740 if test $with_gnu_ld = yes &&
9741 test $libgomp_shared_libgcc = yes;
9742 then
9743 if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then
9744 enable_symvers=gnu
9745 else
9746 # The right tools, the right setup, but too old. Fallbacks?
9747 { echo "$as_me:$LINENO: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5
9748echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;}
9749 { echo "$as_me:$LINENO: WARNING: === full symbol versioning support in this release of GCC." >&5
9750echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
9751 { echo "$as_me:$LINENO: WARNING: === You would need to upgrade your binutils to version" >&5
9752echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
9753 { echo "$as_me:$LINENO: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5
9754echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;}
9755 if test $libgomp_gnu_ld_version -ge 21200 ; then
9756 # Globbing fix is present, proper block support is not.
9757 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
9758echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
9759 enable_symvers=no
9760 else
9761 # 2.11 or older.
9762 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
9763echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
9764 enable_symvers=no
9765 fi
9766 fi
9767 else
9768 # just fail for now
9769 { echo "$as_me:$LINENO: WARNING: === You have requested some kind of symbol versioning, but" >&5
9770echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
9771 { echo "$as_me:$LINENO: WARNING: === either you are not using a supported linker, or you are" >&5
9772echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
9773 { echo "$as_me:$LINENO: WARNING: === not building a shared libgcc_s (which is required)." >&5
9774echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
9775 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
9776echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
9777 enable_symvers=no
9778 fi
9779fi
9780
9781
9782
9783if test $enable_symvers != no; then
9784 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE=
9785 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE='#'
9786else
9787 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE='#'
9788 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE=
9789fi
9790
9791{ echo "$as_me:$LINENO: versioning on shared library symbols is $enable_symvers" >&5
9792echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
9793
9794
9795# Get target configury.
9796. ${srcdir}/configure.tgt
9797CFLAGS="$save_CFLAGS $XCFLAGS"
9798
9799# Check for __sync_val_compare_and_swap, but only after the target has
9800# had a chance to set XCFLAGS.
9801
9802 echo "$as_me:$LINENO: checking whether the target supports __sync_*_compare_and_swap" >&5
9803echo $ECHO_N "checking whether the target supports __sync_*_compare_and_swap... $ECHO_C" >&6
9804if test "${have_sync_builtins+set}" = set; then
9805 echo $ECHO_N "(cached) $ECHO_C" >&6
9806else
9807
9808 cat >conftest.$ac_ext <<_ACEOF
9809/* confdefs.h. */
9810_ACEOF
9811cat confdefs.h >>conftest.$ac_ext
9812cat >>conftest.$ac_ext <<_ACEOF
9813/* end confdefs.h. */
9814
9815int
9816main ()
9817{
9818int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
9819 ;
9820 return 0;
9821}
9822_ACEOF
9823rm -f conftest.$ac_objext conftest$ac_exeext
9824if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9825 (eval $ac_link) 2>conftest.er1
9826 ac_status=$?
9827 grep -v '^ *+' conftest.er1 >conftest.err
9828 rm -f conftest.er1
9829 cat conftest.err >&5
9830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831 (exit $ac_status); } &&
59da30e1 9832 { ac_try='test -z "$ac_c_werror_flag"
9833 || test ! -s conftest.err'
1e8e9920 9834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9835 (eval $ac_try) 2>&5
9836 ac_status=$?
9837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838 (exit $ac_status); }; } &&
9839 { ac_try='test -s conftest$ac_exeext'
9840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9841 (eval $ac_try) 2>&5
9842 ac_status=$?
9843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9844 (exit $ac_status); }; }; then
9845 have_sync_builtins=yes
9846else
9847 echo "$as_me: failed program was:" >&5
9848sed 's/^/| /' conftest.$ac_ext >&5
9849
9850have_sync_builtins=no
9851fi
9852rm -f conftest.err conftest.$ac_objext \
9853 conftest$ac_exeext conftest.$ac_ext
9854fi
9855echo "$as_me:$LINENO: result: $have_sync_builtins" >&5
9856echo "${ECHO_T}$have_sync_builtins" >&6
9857 if test $have_sync_builtins = yes; then
9858
9859cat >>confdefs.h <<\_ACEOF
9860#define HAVE_SYNC_BUILTINS 1
9861_ACEOF
9862
9863 fi
9864
9865XCFLAGS="$XCFLAGS$XPCFLAGS"
9866
9867
9868
9869
9870
9871# Cleanup and exit.
9872CFLAGS="$save_CFLAGS"
9873cat >confcache <<\_ACEOF
9874# This file is a shell script that caches the results of configure
9875# tests run on this system so they can be shared between configure
9876# scripts and configure runs, see configure's option --config-cache.
9877# It is not useful on other systems. If it contains results you don't
9878# want to keep, you may remove or edit it.
9879#
9880# config.status only pays attention to the cache file if you give it
9881# the --recheck option to rerun configure.
9882#
9883# `ac_cv_env_foo' variables (set or unset) will be overridden when
9884# loading this file, other *unset* `ac_cv_foo' will be assigned the
9885# following values.
9886
9887_ACEOF
9888
9889# The following way of writing the cache mishandles newlines in values,
9890# but we know of no workaround that is simple, portable, and efficient.
9891# So, don't put newlines in cache variables' values.
9892# Ultrix sh set writes to stderr and can't be redirected directly,
9893# and sets the high bit in the cache file unless we assign to the vars.
9894{
9895 (set) 2>&1 |
9896 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9897 *ac_space=\ *)
9898 # `set' does not quote correctly, so add quotes (double-quote
9899 # substitution turns \\\\ into \\, and sed turns \\ into \).
9900 sed -n \
9901 "s/'/'\\\\''/g;
9902 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9903 ;;
9904 *)
9905 # `set' quotes correctly as required by POSIX, so do not add quotes.
9906 sed -n \
9907 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9908 ;;
9909 esac;
9910} |
9911 sed '
9912 t clear
9913 : clear
9914 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9915 t end
9916 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9917 : end' >>confcache
9918if diff $cache_file confcache >/dev/null 2>&1; then :; else
9919 if test -w $cache_file; then
9920 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9921 cat confcache >$cache_file
9922 else
9923 echo "not updating unwritable cache $cache_file"
9924 fi
9925fi
9926rm -f confcache
9927
9928if test ${multilib} = yes; then
9929 multilib_arg="--enable-multilib"
9930else
9931 multilib_arg=
9932fi
9933
9934# Set up the set of libraries that we need to link against for libgomp.
138f59be 9935# Note that the GOMP_SELF_SPEC in gcc.c will force -pthread for -fopenmp,
1e8e9920 9936# which will force linkage against -lpthread (or equivalent for the system).
9937# That's not 100% ideal, but about the best we can do easily.
9938if test $enable_shared = yes; then
9939 link_gomp="-lgomp %{static: $LIBS}"
9940else
9941 link_gomp="-lgomp $LIBS"
9942fi
9943
9944
9945
9946
9947if test "$ac_cv_fc_compiler_gnu" = yes; then
9948 USE_FORTRAN_TRUE=
9949 USE_FORTRAN_FALSE='#'
9950else
9951 USE_FORTRAN_TRUE='#'
9952 USE_FORTRAN_FALSE=
9953fi
9954
9955
107c3bbf 9956# ??? 2006-01-24: Paulo committed to asking autoconf folk to document
9957# and export AC_COMPUTE_INT. If that happens, then we'll need to remove
9958# the underscore here and update the PREREQ. If it doesn't, then we'll
9959# need to copy this macro to our acinclude.m4.
9960save_CFLAGS="$CFLAGS"
9961for i in $config_path; do
9962 if test -f $srcdir/config/$i/omp-lock.h; then
9963 CFLAGS="$CFLAGS -include $srcdir/config/$i/omp-lock.h"
9964 break
9965 fi
9966done
9967
9968if test "$cross_compiling" = yes; then
9969 # Depending upon the size, compute the lo and hi bounds.
9970cat >conftest.$ac_ext <<_ACEOF
9971/* confdefs.h. */
9972_ACEOF
9973cat confdefs.h >>conftest.$ac_ext
9974cat >>conftest.$ac_ext <<_ACEOF
9975/* end confdefs.h. */
9976
9977int
9978main ()
9979{
9980static int test_array [1 - 2 * !((sizeof (omp_lock_t)) >= 0)];
9981test_array [0] = 0
9982
9983 ;
9984 return 0;
9985}
9986_ACEOF
9987rm -f conftest.$ac_objext
9988if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9989 (eval $ac_compile) 2>conftest.er1
9990 ac_status=$?
9991 grep -v '^ *+' conftest.er1 >conftest.err
9992 rm -f conftest.er1
9993 cat conftest.err >&5
9994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9995 (exit $ac_status); } &&
59da30e1 9996 { ac_try='test -z "$ac_c_werror_flag"
9997 || test ! -s conftest.err'
107c3bbf 9998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9999 (eval $ac_try) 2>&5
10000 ac_status=$?
10001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002 (exit $ac_status); }; } &&
10003 { ac_try='test -s conftest.$ac_objext'
10004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10005 (eval $ac_try) 2>&5
10006 ac_status=$?
10007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10008 (exit $ac_status); }; }; then
10009 ac_lo=0 ac_mid=0
10010 while :; do
10011 cat >conftest.$ac_ext <<_ACEOF
10012/* confdefs.h. */
10013_ACEOF
10014cat confdefs.h >>conftest.$ac_ext
10015cat >>conftest.$ac_ext <<_ACEOF
10016/* end confdefs.h. */
10017
10018int
10019main ()
10020{
10021static int test_array [1 - 2 * !((sizeof (omp_lock_t)) <= $ac_mid)];
10022test_array [0] = 0
10023
10024 ;
10025 return 0;
10026}
10027_ACEOF
10028rm -f conftest.$ac_objext
10029if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10030 (eval $ac_compile) 2>conftest.er1
10031 ac_status=$?
10032 grep -v '^ *+' conftest.er1 >conftest.err
10033 rm -f conftest.er1
10034 cat conftest.err >&5
10035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10036 (exit $ac_status); } &&
59da30e1 10037 { ac_try='test -z "$ac_c_werror_flag"
10038 || test ! -s conftest.err'
107c3bbf 10039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10040 (eval $ac_try) 2>&5
10041 ac_status=$?
10042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10043 (exit $ac_status); }; } &&
10044 { ac_try='test -s conftest.$ac_objext'
10045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10046 (eval $ac_try) 2>&5
10047 ac_status=$?
10048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10049 (exit $ac_status); }; }; then
10050 ac_hi=$ac_mid; break
10051else
10052 echo "$as_me: failed program was:" >&5
10053sed 's/^/| /' conftest.$ac_ext >&5
10054
10055ac_lo=`expr $ac_mid + 1`
10056 if test $ac_lo -le $ac_mid; then
10057 ac_lo= ac_hi=
10058 break
10059 fi
10060 ac_mid=`expr 2 '*' $ac_mid + 1`
10061fi
10062rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10063 done
10064else
10065 echo "$as_me: failed program was:" >&5
10066sed 's/^/| /' conftest.$ac_ext >&5
10067
10068cat >conftest.$ac_ext <<_ACEOF
10069/* confdefs.h. */
10070_ACEOF
10071cat confdefs.h >>conftest.$ac_ext
10072cat >>conftest.$ac_ext <<_ACEOF
10073/* end confdefs.h. */
10074
10075int
10076main ()
10077{
10078static int test_array [1 - 2 * !((sizeof (omp_lock_t)) < 0)];
10079test_array [0] = 0
10080
10081 ;
10082 return 0;
10083}
10084_ACEOF
10085rm -f conftest.$ac_objext
10086if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10087 (eval $ac_compile) 2>conftest.er1
10088 ac_status=$?
10089 grep -v '^ *+' conftest.er1 >conftest.err
10090 rm -f conftest.er1
10091 cat conftest.err >&5
10092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10093 (exit $ac_status); } &&
59da30e1 10094 { ac_try='test -z "$ac_c_werror_flag"
10095 || test ! -s conftest.err'
107c3bbf 10096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10097 (eval $ac_try) 2>&5
10098 ac_status=$?
10099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10100 (exit $ac_status); }; } &&
10101 { ac_try='test -s conftest.$ac_objext'
10102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10103 (eval $ac_try) 2>&5
10104 ac_status=$?
10105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10106 (exit $ac_status); }; }; then
10107 ac_hi=-1 ac_mid=-1
10108 while :; do
10109 cat >conftest.$ac_ext <<_ACEOF
10110/* confdefs.h. */
10111_ACEOF
10112cat confdefs.h >>conftest.$ac_ext
10113cat >>conftest.$ac_ext <<_ACEOF
10114/* end confdefs.h. */
10115
10116int
10117main ()
10118{
10119static int test_array [1 - 2 * !((sizeof (omp_lock_t)) >= $ac_mid)];
10120test_array [0] = 0
10121
10122 ;
10123 return 0;
10124}
10125_ACEOF
10126rm -f conftest.$ac_objext
10127if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10128 (eval $ac_compile) 2>conftest.er1
10129 ac_status=$?
10130 grep -v '^ *+' conftest.er1 >conftest.err
10131 rm -f conftest.er1
10132 cat conftest.err >&5
10133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10134 (exit $ac_status); } &&
59da30e1 10135 { ac_try='test -z "$ac_c_werror_flag"
10136 || test ! -s conftest.err'
107c3bbf 10137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10138 (eval $ac_try) 2>&5
10139 ac_status=$?
10140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10141 (exit $ac_status); }; } &&
10142 { ac_try='test -s conftest.$ac_objext'
10143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10144 (eval $ac_try) 2>&5
10145 ac_status=$?
10146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10147 (exit $ac_status); }; }; then
10148 ac_lo=$ac_mid; break
10149else
10150 echo "$as_me: failed program was:" >&5
10151sed 's/^/| /' conftest.$ac_ext >&5
10152
10153ac_hi=`expr '(' $ac_mid ')' - 1`
10154 if test $ac_mid -le $ac_hi; then
10155 ac_lo= ac_hi=
10156 break
10157 fi
10158 ac_mid=`expr 2 '*' $ac_mid`
10159fi
10160rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10161 done
10162else
10163 echo "$as_me: failed program was:" >&5
10164sed 's/^/| /' conftest.$ac_ext >&5
10165
10166ac_lo= ac_hi=
10167fi
10168rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10169fi
10170rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10171# Binary search between lo and hi bounds.
10172while test "x$ac_lo" != "x$ac_hi"; do
10173 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10174 cat >conftest.$ac_ext <<_ACEOF
10175/* confdefs.h. */
10176_ACEOF
10177cat confdefs.h >>conftest.$ac_ext
10178cat >>conftest.$ac_ext <<_ACEOF
10179/* end confdefs.h. */
10180
10181int
10182main ()
10183{
10184static int test_array [1 - 2 * !((sizeof (omp_lock_t)) <= $ac_mid)];
10185test_array [0] = 0
10186
10187 ;
10188 return 0;
10189}
10190_ACEOF
10191rm -f conftest.$ac_objext
10192if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10193 (eval $ac_compile) 2>conftest.er1
10194 ac_status=$?
10195 grep -v '^ *+' conftest.er1 >conftest.err
10196 rm -f conftest.er1
10197 cat conftest.err >&5
10198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10199 (exit $ac_status); } &&
59da30e1 10200 { ac_try='test -z "$ac_c_werror_flag"
10201 || test ! -s conftest.err'
107c3bbf 10202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10203 (eval $ac_try) 2>&5
10204 ac_status=$?
10205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10206 (exit $ac_status); }; } &&
10207 { ac_try='test -s conftest.$ac_objext'
10208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10209 (eval $ac_try) 2>&5
10210 ac_status=$?
10211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10212 (exit $ac_status); }; }; then
10213 ac_hi=$ac_mid
10214else
10215 echo "$as_me: failed program was:" >&5
10216sed 's/^/| /' conftest.$ac_ext >&5
10217
10218ac_lo=`expr '(' $ac_mid ')' + 1`
10219fi
10220rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10221done
10222case $ac_lo in
10223?*) OMP_LOCK_SIZE=$ac_lo;;
10224'') { { echo "$as_me:$LINENO: error: unsupported system, cannot find sizeof (omp_lock_t)" >&5
10225echo "$as_me: error: unsupported system, cannot find sizeof (omp_lock_t)" >&2;}
10226 { (exit 1); exit 1; }; } ;;
10227esac
10228else
10229 if test "$cross_compiling" = yes; then
59da30e1 10230 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10231See \`config.log' for more details." >&5
10232echo "$as_me: error: cannot run test program while cross compiling
10233See \`config.log' for more details." >&2;}
107c3bbf 10234 { (exit 1); exit 1; }; }
10235else
10236 cat >conftest.$ac_ext <<_ACEOF
10237/* confdefs.h. */
10238_ACEOF
10239cat confdefs.h >>conftest.$ac_ext
10240cat >>conftest.$ac_ext <<_ACEOF
10241/* end confdefs.h. */
10242
10243long longval () { return sizeof (omp_lock_t); }
10244unsigned long ulongval () { return sizeof (omp_lock_t); }
10245#include <stdio.h>
10246#include <stdlib.h>
10247int
10248main ()
10249{
10250
10251 FILE *f = fopen ("conftest.val", "w");
10252 if (! f)
10253 exit (1);
10254 if ((sizeof (omp_lock_t)) < 0)
10255 {
10256 long i = longval ();
10257 if (i != (sizeof (omp_lock_t)))
10258 exit (1);
10259 fprintf (f, "%ld\n", i);
10260 }
10261 else
10262 {
10263 unsigned long i = ulongval ();
10264 if (i != (sizeof (omp_lock_t)))
10265 exit (1);
10266 fprintf (f, "%lu\n", i);
10267 }
10268 exit (ferror (f) || fclose (f) != 0);
10269
10270 ;
10271 return 0;
10272}
10273_ACEOF
10274rm -f conftest$ac_exeext
10275if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10276 (eval $ac_link) 2>&5
10277 ac_status=$?
10278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10279 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10281 (eval $ac_try) 2>&5
10282 ac_status=$?
10283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10284 (exit $ac_status); }; }; then
10285 OMP_LOCK_SIZE=`cat conftest.val`
10286else
10287 echo "$as_me: program exited with status $ac_status" >&5
10288echo "$as_me: failed program was:" >&5
10289sed 's/^/| /' conftest.$ac_ext >&5
10290
10291( exit $ac_status )
10292{ { echo "$as_me:$LINENO: error: unsupported system, cannot find sizeof (omp_lock_t)" >&5
10293echo "$as_me: error: unsupported system, cannot find sizeof (omp_lock_t)" >&2;}
10294 { (exit 1); exit 1; }; }
10295fi
10296rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10297fi
10298fi
10299rm -f conftest.val
10300if test "$cross_compiling" = yes; then
10301 # Depending upon the size, compute the lo and hi bounds.
10302cat >conftest.$ac_ext <<_ACEOF
10303/* confdefs.h. */
10304_ACEOF
10305cat confdefs.h >>conftest.$ac_ext
10306cat >>conftest.$ac_ext <<_ACEOF
10307/* end confdefs.h. */
10308
10309int
10310main ()
10311{
10312static int test_array [1 - 2 * !((__alignof (omp_lock_t)) >= 0)];
10313test_array [0] = 0
10314
10315 ;
10316 return 0;
10317}
10318_ACEOF
10319rm -f conftest.$ac_objext
10320if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10321 (eval $ac_compile) 2>conftest.er1
10322 ac_status=$?
10323 grep -v '^ *+' conftest.er1 >conftest.err
10324 rm -f conftest.er1
10325 cat conftest.err >&5
10326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10327 (exit $ac_status); } &&
59da30e1 10328 { ac_try='test -z "$ac_c_werror_flag"
10329 || test ! -s conftest.err'
107c3bbf 10330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10331 (eval $ac_try) 2>&5
10332 ac_status=$?
10333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10334 (exit $ac_status); }; } &&
10335 { ac_try='test -s conftest.$ac_objext'
10336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10337 (eval $ac_try) 2>&5
10338 ac_status=$?
10339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10340 (exit $ac_status); }; }; then
10341 ac_lo=0 ac_mid=0
10342 while :; do
10343 cat >conftest.$ac_ext <<_ACEOF
10344/* confdefs.h. */
10345_ACEOF
10346cat confdefs.h >>conftest.$ac_ext
10347cat >>conftest.$ac_ext <<_ACEOF
10348/* end confdefs.h. */
10349
10350int
10351main ()
10352{
10353static int test_array [1 - 2 * !((__alignof (omp_lock_t)) <= $ac_mid)];
10354test_array [0] = 0
10355
10356 ;
10357 return 0;
10358}
10359_ACEOF
10360rm -f conftest.$ac_objext
10361if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10362 (eval $ac_compile) 2>conftest.er1
10363 ac_status=$?
10364 grep -v '^ *+' conftest.er1 >conftest.err
10365 rm -f conftest.er1
10366 cat conftest.err >&5
10367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10368 (exit $ac_status); } &&
59da30e1 10369 { ac_try='test -z "$ac_c_werror_flag"
10370 || test ! -s conftest.err'
107c3bbf 10371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10372 (eval $ac_try) 2>&5
10373 ac_status=$?
10374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10375 (exit $ac_status); }; } &&
10376 { ac_try='test -s conftest.$ac_objext'
10377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10378 (eval $ac_try) 2>&5
10379 ac_status=$?
10380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10381 (exit $ac_status); }; }; then
10382 ac_hi=$ac_mid; break
10383else
10384 echo "$as_me: failed program was:" >&5
10385sed 's/^/| /' conftest.$ac_ext >&5
10386
10387ac_lo=`expr $ac_mid + 1`
10388 if test $ac_lo -le $ac_mid; then
10389 ac_lo= ac_hi=
10390 break
10391 fi
10392 ac_mid=`expr 2 '*' $ac_mid + 1`
10393fi
10394rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10395 done
10396else
10397 echo "$as_me: failed program was:" >&5
10398sed 's/^/| /' conftest.$ac_ext >&5
10399
10400cat >conftest.$ac_ext <<_ACEOF
10401/* confdefs.h. */
10402_ACEOF
10403cat confdefs.h >>conftest.$ac_ext
10404cat >>conftest.$ac_ext <<_ACEOF
10405/* end confdefs.h. */
10406
10407int
10408main ()
10409{
10410static int test_array [1 - 2 * !((__alignof (omp_lock_t)) < 0)];
10411test_array [0] = 0
10412
10413 ;
10414 return 0;
10415}
10416_ACEOF
10417rm -f conftest.$ac_objext
10418if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10419 (eval $ac_compile) 2>conftest.er1
10420 ac_status=$?
10421 grep -v '^ *+' conftest.er1 >conftest.err
10422 rm -f conftest.er1
10423 cat conftest.err >&5
10424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10425 (exit $ac_status); } &&
59da30e1 10426 { ac_try='test -z "$ac_c_werror_flag"
10427 || test ! -s conftest.err'
107c3bbf 10428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10429 (eval $ac_try) 2>&5
10430 ac_status=$?
10431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10432 (exit $ac_status); }; } &&
10433 { ac_try='test -s conftest.$ac_objext'
10434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10435 (eval $ac_try) 2>&5
10436 ac_status=$?
10437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10438 (exit $ac_status); }; }; then
10439 ac_hi=-1 ac_mid=-1
10440 while :; do
10441 cat >conftest.$ac_ext <<_ACEOF
10442/* confdefs.h. */
10443_ACEOF
10444cat confdefs.h >>conftest.$ac_ext
10445cat >>conftest.$ac_ext <<_ACEOF
10446/* end confdefs.h. */
10447
10448int
10449main ()
10450{
10451static int test_array [1 - 2 * !((__alignof (omp_lock_t)) >= $ac_mid)];
10452test_array [0] = 0
10453
10454 ;
10455 return 0;
10456}
10457_ACEOF
10458rm -f conftest.$ac_objext
10459if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10460 (eval $ac_compile) 2>conftest.er1
10461 ac_status=$?
10462 grep -v '^ *+' conftest.er1 >conftest.err
10463 rm -f conftest.er1
10464 cat conftest.err >&5
10465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10466 (exit $ac_status); } &&
59da30e1 10467 { ac_try='test -z "$ac_c_werror_flag"
10468 || test ! -s conftest.err'
107c3bbf 10469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10470 (eval $ac_try) 2>&5
10471 ac_status=$?
10472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10473 (exit $ac_status); }; } &&
10474 { ac_try='test -s conftest.$ac_objext'
10475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10476 (eval $ac_try) 2>&5
10477 ac_status=$?
10478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10479 (exit $ac_status); }; }; then
10480 ac_lo=$ac_mid; break
10481else
10482 echo "$as_me: failed program was:" >&5
10483sed 's/^/| /' conftest.$ac_ext >&5
10484
10485ac_hi=`expr '(' $ac_mid ')' - 1`
10486 if test $ac_mid -le $ac_hi; then
10487 ac_lo= ac_hi=
10488 break
10489 fi
10490 ac_mid=`expr 2 '*' $ac_mid`
10491fi
10492rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10493 done
10494else
10495 echo "$as_me: failed program was:" >&5
10496sed 's/^/| /' conftest.$ac_ext >&5
10497
10498ac_lo= ac_hi=
10499fi
10500rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10501fi
10502rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10503# Binary search between lo and hi bounds.
10504while test "x$ac_lo" != "x$ac_hi"; do
10505 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10506 cat >conftest.$ac_ext <<_ACEOF
10507/* confdefs.h. */
10508_ACEOF
10509cat confdefs.h >>conftest.$ac_ext
10510cat >>conftest.$ac_ext <<_ACEOF
10511/* end confdefs.h. */
10512
10513int
10514main ()
10515{
10516static int test_array [1 - 2 * !((__alignof (omp_lock_t)) <= $ac_mid)];
10517test_array [0] = 0
10518
10519 ;
10520 return 0;
10521}
10522_ACEOF
10523rm -f conftest.$ac_objext
10524if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10525 (eval $ac_compile) 2>conftest.er1
10526 ac_status=$?
10527 grep -v '^ *+' conftest.er1 >conftest.err
10528 rm -f conftest.er1
10529 cat conftest.err >&5
10530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10531 (exit $ac_status); } &&
59da30e1 10532 { ac_try='test -z "$ac_c_werror_flag"
10533 || test ! -s conftest.err'
107c3bbf 10534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10535 (eval $ac_try) 2>&5
10536 ac_status=$?
10537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10538 (exit $ac_status); }; } &&
10539 { ac_try='test -s conftest.$ac_objext'
10540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10541 (eval $ac_try) 2>&5
10542 ac_status=$?
10543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10544 (exit $ac_status); }; }; then
10545 ac_hi=$ac_mid
10546else
10547 echo "$as_me: failed program was:" >&5
10548sed 's/^/| /' conftest.$ac_ext >&5
10549
10550ac_lo=`expr '(' $ac_mid ')' + 1`
10551fi
10552rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10553done
10554case $ac_lo in
10555?*) OMP_LOCK_ALIGN=$ac_lo;;
10556'') ;;
10557esac
10558else
10559 if test "$cross_compiling" = yes; then
59da30e1 10560 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10561See \`config.log' for more details." >&5
10562echo "$as_me: error: cannot run test program while cross compiling
10563See \`config.log' for more details." >&2;}
107c3bbf 10564 { (exit 1); exit 1; }; }
10565else
10566 cat >conftest.$ac_ext <<_ACEOF
10567/* confdefs.h. */
10568_ACEOF
10569cat confdefs.h >>conftest.$ac_ext
10570cat >>conftest.$ac_ext <<_ACEOF
10571/* end confdefs.h. */
10572
10573long longval () { return __alignof (omp_lock_t); }
10574unsigned long ulongval () { return __alignof (omp_lock_t); }
10575#include <stdio.h>
10576#include <stdlib.h>
10577int
10578main ()
10579{
10580
10581 FILE *f = fopen ("conftest.val", "w");
10582 if (! f)
10583 exit (1);
10584 if ((__alignof (omp_lock_t)) < 0)
10585 {
10586 long i = longval ();
10587 if (i != (__alignof (omp_lock_t)))
10588 exit (1);
10589 fprintf (f, "%ld\n", i);
10590 }
10591 else
10592 {
10593 unsigned long i = ulongval ();
10594 if (i != (__alignof (omp_lock_t)))
10595 exit (1);
10596 fprintf (f, "%lu\n", i);
10597 }
10598 exit (ferror (f) || fclose (f) != 0);
10599
10600 ;
10601 return 0;
10602}
10603_ACEOF
10604rm -f conftest$ac_exeext
10605if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10606 (eval $ac_link) 2>&5
10607 ac_status=$?
10608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10609 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10611 (eval $ac_try) 2>&5
10612 ac_status=$?
10613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614 (exit $ac_status); }; }; then
10615 OMP_LOCK_ALIGN=`cat conftest.val`
10616else
10617 echo "$as_me: program exited with status $ac_status" >&5
10618echo "$as_me: failed program was:" >&5
10619sed 's/^/| /' conftest.$ac_ext >&5
10620
10621fi
10622rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10623fi
10624fi
10625rm -f conftest.val
10626if test "$cross_compiling" = yes; then
10627 # Depending upon the size, compute the lo and hi bounds.
10628cat >conftest.$ac_ext <<_ACEOF
10629/* confdefs.h. */
10630_ACEOF
10631cat confdefs.h >>conftest.$ac_ext
10632cat >>conftest.$ac_ext <<_ACEOF
10633/* end confdefs.h. */
10634
10635int
10636main ()
10637{
10638static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) >= 0)];
10639test_array [0] = 0
10640
10641 ;
10642 return 0;
10643}
10644_ACEOF
10645rm -f conftest.$ac_objext
10646if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10647 (eval $ac_compile) 2>conftest.er1
10648 ac_status=$?
10649 grep -v '^ *+' conftest.er1 >conftest.err
10650 rm -f conftest.er1
10651 cat conftest.err >&5
10652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10653 (exit $ac_status); } &&
59da30e1 10654 { ac_try='test -z "$ac_c_werror_flag"
10655 || test ! -s conftest.err'
107c3bbf 10656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10657 (eval $ac_try) 2>&5
10658 ac_status=$?
10659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10660 (exit $ac_status); }; } &&
10661 { ac_try='test -s conftest.$ac_objext'
10662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10663 (eval $ac_try) 2>&5
10664 ac_status=$?
10665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10666 (exit $ac_status); }; }; then
10667 ac_lo=0 ac_mid=0
10668 while :; do
10669 cat >conftest.$ac_ext <<_ACEOF
10670/* confdefs.h. */
10671_ACEOF
10672cat confdefs.h >>conftest.$ac_ext
10673cat >>conftest.$ac_ext <<_ACEOF
10674/* end confdefs.h. */
10675
10676int
10677main ()
10678{
10679static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) <= $ac_mid)];
10680test_array [0] = 0
10681
10682 ;
10683 return 0;
10684}
10685_ACEOF
10686rm -f conftest.$ac_objext
10687if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10688 (eval $ac_compile) 2>conftest.er1
10689 ac_status=$?
10690 grep -v '^ *+' conftest.er1 >conftest.err
10691 rm -f conftest.er1
10692 cat conftest.err >&5
10693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10694 (exit $ac_status); } &&
59da30e1 10695 { ac_try='test -z "$ac_c_werror_flag"
10696 || test ! -s conftest.err'
107c3bbf 10697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10698 (eval $ac_try) 2>&5
10699 ac_status=$?
10700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10701 (exit $ac_status); }; } &&
10702 { ac_try='test -s conftest.$ac_objext'
10703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10704 (eval $ac_try) 2>&5
10705 ac_status=$?
10706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10707 (exit $ac_status); }; }; then
10708 ac_hi=$ac_mid; break
10709else
10710 echo "$as_me: failed program was:" >&5
10711sed 's/^/| /' conftest.$ac_ext >&5
10712
10713ac_lo=`expr $ac_mid + 1`
10714 if test $ac_lo -le $ac_mid; then
10715 ac_lo= ac_hi=
10716 break
10717 fi
10718 ac_mid=`expr 2 '*' $ac_mid + 1`
10719fi
10720rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10721 done
10722else
10723 echo "$as_me: failed program was:" >&5
10724sed 's/^/| /' conftest.$ac_ext >&5
10725
10726cat >conftest.$ac_ext <<_ACEOF
10727/* confdefs.h. */
10728_ACEOF
10729cat confdefs.h >>conftest.$ac_ext
10730cat >>conftest.$ac_ext <<_ACEOF
10731/* end confdefs.h. */
10732
10733int
10734main ()
10735{
10736static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) < 0)];
10737test_array [0] = 0
10738
10739 ;
10740 return 0;
10741}
10742_ACEOF
10743rm -f conftest.$ac_objext
10744if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10745 (eval $ac_compile) 2>conftest.er1
10746 ac_status=$?
10747 grep -v '^ *+' conftest.er1 >conftest.err
10748 rm -f conftest.er1
10749 cat conftest.err >&5
10750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10751 (exit $ac_status); } &&
59da30e1 10752 { ac_try='test -z "$ac_c_werror_flag"
10753 || test ! -s conftest.err'
107c3bbf 10754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10755 (eval $ac_try) 2>&5
10756 ac_status=$?
10757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10758 (exit $ac_status); }; } &&
10759 { ac_try='test -s conftest.$ac_objext'
10760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10761 (eval $ac_try) 2>&5
10762 ac_status=$?
10763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10764 (exit $ac_status); }; }; then
10765 ac_hi=-1 ac_mid=-1
10766 while :; do
10767 cat >conftest.$ac_ext <<_ACEOF
10768/* confdefs.h. */
10769_ACEOF
10770cat confdefs.h >>conftest.$ac_ext
10771cat >>conftest.$ac_ext <<_ACEOF
10772/* end confdefs.h. */
10773
10774int
10775main ()
10776{
10777static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) >= $ac_mid)];
10778test_array [0] = 0
10779
10780 ;
10781 return 0;
10782}
10783_ACEOF
10784rm -f conftest.$ac_objext
10785if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10786 (eval $ac_compile) 2>conftest.er1
10787 ac_status=$?
10788 grep -v '^ *+' conftest.er1 >conftest.err
10789 rm -f conftest.er1
10790 cat conftest.err >&5
10791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10792 (exit $ac_status); } &&
59da30e1 10793 { ac_try='test -z "$ac_c_werror_flag"
10794 || test ! -s conftest.err'
107c3bbf 10795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10796 (eval $ac_try) 2>&5
10797 ac_status=$?
10798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10799 (exit $ac_status); }; } &&
10800 { ac_try='test -s conftest.$ac_objext'
10801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10802 (eval $ac_try) 2>&5
10803 ac_status=$?
10804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10805 (exit $ac_status); }; }; then
10806 ac_lo=$ac_mid; break
10807else
10808 echo "$as_me: failed program was:" >&5
10809sed 's/^/| /' conftest.$ac_ext >&5
10810
10811ac_hi=`expr '(' $ac_mid ')' - 1`
10812 if test $ac_mid -le $ac_hi; then
10813 ac_lo= ac_hi=
10814 break
10815 fi
10816 ac_mid=`expr 2 '*' $ac_mid`
10817fi
10818rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10819 done
10820else
10821 echo "$as_me: failed program was:" >&5
10822sed 's/^/| /' conftest.$ac_ext >&5
10823
10824ac_lo= ac_hi=
10825fi
10826rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10827fi
10828rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10829# Binary search between lo and hi bounds.
10830while test "x$ac_lo" != "x$ac_hi"; do
10831 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10832 cat >conftest.$ac_ext <<_ACEOF
10833/* confdefs.h. */
10834_ACEOF
10835cat confdefs.h >>conftest.$ac_ext
10836cat >>conftest.$ac_ext <<_ACEOF
10837/* end confdefs.h. */
10838
10839int
10840main ()
10841{
10842static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) <= $ac_mid)];
10843test_array [0] = 0
10844
10845 ;
10846 return 0;
10847}
10848_ACEOF
10849rm -f conftest.$ac_objext
10850if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10851 (eval $ac_compile) 2>conftest.er1
10852 ac_status=$?
10853 grep -v '^ *+' conftest.er1 >conftest.err
10854 rm -f conftest.er1
10855 cat conftest.err >&5
10856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10857 (exit $ac_status); } &&
59da30e1 10858 { ac_try='test -z "$ac_c_werror_flag"
10859 || test ! -s conftest.err'
107c3bbf 10860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10861 (eval $ac_try) 2>&5
10862 ac_status=$?
10863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10864 (exit $ac_status); }; } &&
10865 { ac_try='test -s conftest.$ac_objext'
10866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10867 (eval $ac_try) 2>&5
10868 ac_status=$?
10869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10870 (exit $ac_status); }; }; then
10871 ac_hi=$ac_mid
10872else
10873 echo "$as_me: failed program was:" >&5
10874sed 's/^/| /' conftest.$ac_ext >&5
10875
10876ac_lo=`expr '(' $ac_mid ')' + 1`
10877fi
10878rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10879done
10880case $ac_lo in
10881?*) OMP_NEST_LOCK_SIZE=$ac_lo;;
10882'') ;;
10883esac
10884else
10885 if test "$cross_compiling" = yes; then
59da30e1 10886 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10887See \`config.log' for more details." >&5
10888echo "$as_me: error: cannot run test program while cross compiling
10889See \`config.log' for more details." >&2;}
107c3bbf 10890 { (exit 1); exit 1; }; }
10891else
10892 cat >conftest.$ac_ext <<_ACEOF
10893/* confdefs.h. */
10894_ACEOF
10895cat confdefs.h >>conftest.$ac_ext
10896cat >>conftest.$ac_ext <<_ACEOF
10897/* end confdefs.h. */
10898
10899long longval () { return sizeof (omp_nest_lock_t); }
10900unsigned long ulongval () { return sizeof (omp_nest_lock_t); }
10901#include <stdio.h>
10902#include <stdlib.h>
10903int
10904main ()
10905{
10906
10907 FILE *f = fopen ("conftest.val", "w");
10908 if (! f)
10909 exit (1);
10910 if ((sizeof (omp_nest_lock_t)) < 0)
10911 {
10912 long i = longval ();
10913 if (i != (sizeof (omp_nest_lock_t)))
10914 exit (1);
10915 fprintf (f, "%ld\n", i);
10916 }
10917 else
10918 {
10919 unsigned long i = ulongval ();
10920 if (i != (sizeof (omp_nest_lock_t)))
10921 exit (1);
10922 fprintf (f, "%lu\n", i);
10923 }
10924 exit (ferror (f) || fclose (f) != 0);
10925
10926 ;
10927 return 0;
10928}
10929_ACEOF
10930rm -f conftest$ac_exeext
10931if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10932 (eval $ac_link) 2>&5
10933 ac_status=$?
10934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10935 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10937 (eval $ac_try) 2>&5
10938 ac_status=$?
10939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10940 (exit $ac_status); }; }; then
10941 OMP_NEST_LOCK_SIZE=`cat conftest.val`
10942else
10943 echo "$as_me: program exited with status $ac_status" >&5
10944echo "$as_me: failed program was:" >&5
10945sed 's/^/| /' conftest.$ac_ext >&5
10946
10947fi
10948rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10949fi
10950fi
10951rm -f conftest.val
10952if test "$cross_compiling" = yes; then
10953 # Depending upon the size, compute the lo and hi bounds.
10954cat >conftest.$ac_ext <<_ACEOF
10955/* confdefs.h. */
10956_ACEOF
10957cat confdefs.h >>conftest.$ac_ext
10958cat >>conftest.$ac_ext <<_ACEOF
10959/* end confdefs.h. */
10960
10961int
10962main ()
10963{
10964static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) >= 0)];
10965test_array [0] = 0
10966
10967 ;
10968 return 0;
10969}
10970_ACEOF
10971rm -f conftest.$ac_objext
10972if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10973 (eval $ac_compile) 2>conftest.er1
10974 ac_status=$?
10975 grep -v '^ *+' conftest.er1 >conftest.err
10976 rm -f conftest.er1
10977 cat conftest.err >&5
10978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10979 (exit $ac_status); } &&
59da30e1 10980 { ac_try='test -z "$ac_c_werror_flag"
10981 || test ! -s conftest.err'
107c3bbf 10982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10983 (eval $ac_try) 2>&5
10984 ac_status=$?
10985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10986 (exit $ac_status); }; } &&
10987 { ac_try='test -s conftest.$ac_objext'
10988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10989 (eval $ac_try) 2>&5
10990 ac_status=$?
10991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10992 (exit $ac_status); }; }; then
10993 ac_lo=0 ac_mid=0
10994 while :; do
10995 cat >conftest.$ac_ext <<_ACEOF
10996/* confdefs.h. */
10997_ACEOF
10998cat confdefs.h >>conftest.$ac_ext
10999cat >>conftest.$ac_ext <<_ACEOF
11000/* end confdefs.h. */
11001
11002int
11003main ()
11004{
11005static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) <= $ac_mid)];
11006test_array [0] = 0
11007
11008 ;
11009 return 0;
11010}
11011_ACEOF
11012rm -f conftest.$ac_objext
11013if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11014 (eval $ac_compile) 2>conftest.er1
11015 ac_status=$?
11016 grep -v '^ *+' conftest.er1 >conftest.err
11017 rm -f conftest.er1
11018 cat conftest.err >&5
11019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11020 (exit $ac_status); } &&
59da30e1 11021 { ac_try='test -z "$ac_c_werror_flag"
11022 || test ! -s conftest.err'
107c3bbf 11023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11024 (eval $ac_try) 2>&5
11025 ac_status=$?
11026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11027 (exit $ac_status); }; } &&
11028 { ac_try='test -s conftest.$ac_objext'
11029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11030 (eval $ac_try) 2>&5
11031 ac_status=$?
11032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11033 (exit $ac_status); }; }; then
11034 ac_hi=$ac_mid; break
11035else
11036 echo "$as_me: failed program was:" >&5
11037sed 's/^/| /' conftest.$ac_ext >&5
11038
11039ac_lo=`expr $ac_mid + 1`
11040 if test $ac_lo -le $ac_mid; then
11041 ac_lo= ac_hi=
11042 break
11043 fi
11044 ac_mid=`expr 2 '*' $ac_mid + 1`
11045fi
11046rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11047 done
11048else
11049 echo "$as_me: failed program was:" >&5
11050sed 's/^/| /' conftest.$ac_ext >&5
11051
11052cat >conftest.$ac_ext <<_ACEOF
11053/* confdefs.h. */
11054_ACEOF
11055cat confdefs.h >>conftest.$ac_ext
11056cat >>conftest.$ac_ext <<_ACEOF
11057/* end confdefs.h. */
11058
11059int
11060main ()
11061{
11062static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) < 0)];
11063test_array [0] = 0
11064
11065 ;
11066 return 0;
11067}
11068_ACEOF
11069rm -f conftest.$ac_objext
11070if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11071 (eval $ac_compile) 2>conftest.er1
11072 ac_status=$?
11073 grep -v '^ *+' conftest.er1 >conftest.err
11074 rm -f conftest.er1
11075 cat conftest.err >&5
11076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11077 (exit $ac_status); } &&
59da30e1 11078 { ac_try='test -z "$ac_c_werror_flag"
11079 || test ! -s conftest.err'
107c3bbf 11080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11081 (eval $ac_try) 2>&5
11082 ac_status=$?
11083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11084 (exit $ac_status); }; } &&
11085 { ac_try='test -s conftest.$ac_objext'
11086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11087 (eval $ac_try) 2>&5
11088 ac_status=$?
11089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090 (exit $ac_status); }; }; then
11091 ac_hi=-1 ac_mid=-1
11092 while :; do
11093 cat >conftest.$ac_ext <<_ACEOF
11094/* confdefs.h. */
11095_ACEOF
11096cat confdefs.h >>conftest.$ac_ext
11097cat >>conftest.$ac_ext <<_ACEOF
11098/* end confdefs.h. */
11099
11100int
11101main ()
11102{
11103static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) >= $ac_mid)];
11104test_array [0] = 0
11105
11106 ;
11107 return 0;
11108}
11109_ACEOF
11110rm -f conftest.$ac_objext
11111if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11112 (eval $ac_compile) 2>conftest.er1
11113 ac_status=$?
11114 grep -v '^ *+' conftest.er1 >conftest.err
11115 rm -f conftest.er1
11116 cat conftest.err >&5
11117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11118 (exit $ac_status); } &&
59da30e1 11119 { ac_try='test -z "$ac_c_werror_flag"
11120 || test ! -s conftest.err'
107c3bbf 11121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11122 (eval $ac_try) 2>&5
11123 ac_status=$?
11124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11125 (exit $ac_status); }; } &&
11126 { ac_try='test -s conftest.$ac_objext'
11127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11128 (eval $ac_try) 2>&5
11129 ac_status=$?
11130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11131 (exit $ac_status); }; }; then
11132 ac_lo=$ac_mid; break
11133else
11134 echo "$as_me: failed program was:" >&5
11135sed 's/^/| /' conftest.$ac_ext >&5
11136
11137ac_hi=`expr '(' $ac_mid ')' - 1`
11138 if test $ac_mid -le $ac_hi; then
11139 ac_lo= ac_hi=
11140 break
11141 fi
11142 ac_mid=`expr 2 '*' $ac_mid`
11143fi
11144rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11145 done
11146else
11147 echo "$as_me: failed program was:" >&5
11148sed 's/^/| /' conftest.$ac_ext >&5
11149
11150ac_lo= ac_hi=
11151fi
11152rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11153fi
11154rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11155# Binary search between lo and hi bounds.
11156while test "x$ac_lo" != "x$ac_hi"; do
11157 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11158 cat >conftest.$ac_ext <<_ACEOF
11159/* confdefs.h. */
11160_ACEOF
11161cat confdefs.h >>conftest.$ac_ext
11162cat >>conftest.$ac_ext <<_ACEOF
11163/* end confdefs.h. */
11164
11165int
11166main ()
11167{
11168static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) <= $ac_mid)];
11169test_array [0] = 0
11170
11171 ;
11172 return 0;
11173}
11174_ACEOF
11175rm -f conftest.$ac_objext
11176if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11177 (eval $ac_compile) 2>conftest.er1
11178 ac_status=$?
11179 grep -v '^ *+' conftest.er1 >conftest.err
11180 rm -f conftest.er1
11181 cat conftest.err >&5
11182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11183 (exit $ac_status); } &&
59da30e1 11184 { ac_try='test -z "$ac_c_werror_flag"
11185 || test ! -s conftest.err'
107c3bbf 11186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11187 (eval $ac_try) 2>&5
11188 ac_status=$?
11189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11190 (exit $ac_status); }; } &&
11191 { ac_try='test -s conftest.$ac_objext'
11192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11193 (eval $ac_try) 2>&5
11194 ac_status=$?
11195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11196 (exit $ac_status); }; }; then
11197 ac_hi=$ac_mid
11198else
11199 echo "$as_me: failed program was:" >&5
11200sed 's/^/| /' conftest.$ac_ext >&5
11201
11202ac_lo=`expr '(' $ac_mid ')' + 1`
11203fi
11204rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11205done
11206case $ac_lo in
11207?*) OMP_NEST_LOCK_ALIGN=$ac_lo;;
11208'') ;;
11209esac
11210else
11211 if test "$cross_compiling" = yes; then
59da30e1 11212 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11213See \`config.log' for more details." >&5
11214echo "$as_me: error: cannot run test program while cross compiling
11215See \`config.log' for more details." >&2;}
107c3bbf 11216 { (exit 1); exit 1; }; }
11217else
11218 cat >conftest.$ac_ext <<_ACEOF
11219/* confdefs.h. */
11220_ACEOF
11221cat confdefs.h >>conftest.$ac_ext
11222cat >>conftest.$ac_ext <<_ACEOF
11223/* end confdefs.h. */
11224
11225long longval () { return __alignof (omp_nest_lock_t); }
11226unsigned long ulongval () { return __alignof (omp_nest_lock_t); }
11227#include <stdio.h>
11228#include <stdlib.h>
11229int
11230main ()
11231{
11232
11233 FILE *f = fopen ("conftest.val", "w");
11234 if (! f)
11235 exit (1);
11236 if ((__alignof (omp_nest_lock_t)) < 0)
11237 {
11238 long i = longval ();
11239 if (i != (__alignof (omp_nest_lock_t)))
11240 exit (1);
11241 fprintf (f, "%ld\n", i);
11242 }
11243 else
11244 {
11245 unsigned long i = ulongval ();
11246 if (i != (__alignof (omp_nest_lock_t)))
11247 exit (1);
11248 fprintf (f, "%lu\n", i);
11249 }
11250 exit (ferror (f) || fclose (f) != 0);
11251
11252 ;
11253 return 0;
11254}
11255_ACEOF
11256rm -f conftest$ac_exeext
11257if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11258 (eval $ac_link) 2>&5
11259 ac_status=$?
11260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11261 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11263 (eval $ac_try) 2>&5
11264 ac_status=$?
11265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11266 (exit $ac_status); }; }; then
11267 OMP_NEST_LOCK_ALIGN=`cat conftest.val`
11268else
11269 echo "$as_me: program exited with status $ac_status" >&5
11270echo "$as_me: failed program was:" >&5
11271sed 's/^/| /' conftest.$ac_ext >&5
11272
11273fi
11274rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11275fi
11276fi
11277rm -f conftest.val
11278
11279# If the lock fits in an integer, then arrange for Fortran to use that
11280# integer. If it doesn't, then arrange for Fortran to use a pointer.
11281# Except that we don't have a way at present to multi-lib the installed
11282# Fortran modules, so we assume 8 bytes for pointers, regardless of the
11283# actual target.
11284OMP_LOCK_KIND=$OMP_LOCK_SIZE
11285OMP_NEST_LOCK_KIND=$OMP_NEST_LOCK_SIZE
11286if test $OMP_LOCK_SIZE -gt 8 || test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then
11287 OMP_LOCK_KIND=8
11288fi
11289if test $OMP_NEST_LOCK_SIZE -gt 8 || test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then
11290 OMP_NEST_LOCK_KIND=8
11291fi
11292
11293
11294
11295
11296
11297
11298
11299CFLAGS="$save_CFLAGS"
11300
11301 ac_config_files="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h"
11302
1e8e9920 11303 ac_config_files="$ac_config_files Makefile testsuite/Makefile libgomp.spec"
11304
11305cat >confcache <<\_ACEOF
11306# This file is a shell script that caches the results of configure
11307# tests run on this system so they can be shared between configure
11308# scripts and configure runs, see configure's option --config-cache.
11309# It is not useful on other systems. If it contains results you don't
11310# want to keep, you may remove or edit it.
11311#
11312# config.status only pays attention to the cache file if you give it
11313# the --recheck option to rerun configure.
11314#
11315# `ac_cv_env_foo' variables (set or unset) will be overridden when
11316# loading this file, other *unset* `ac_cv_foo' will be assigned the
11317# following values.
11318
11319_ACEOF
11320
11321# The following way of writing the cache mishandles newlines in values,
11322# but we know of no workaround that is simple, portable, and efficient.
11323# So, don't put newlines in cache variables' values.
11324# Ultrix sh set writes to stderr and can't be redirected directly,
11325# and sets the high bit in the cache file unless we assign to the vars.
11326{
11327 (set) 2>&1 |
11328 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11329 *ac_space=\ *)
11330 # `set' does not quote correctly, so add quotes (double-quote
11331 # substitution turns \\\\ into \\, and sed turns \\ into \).
11332 sed -n \
11333 "s/'/'\\\\''/g;
11334 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11335 ;;
11336 *)
11337 # `set' quotes correctly as required by POSIX, so do not add quotes.
11338 sed -n \
11339 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11340 ;;
11341 esac;
11342} |
11343 sed '
11344 t clear
11345 : clear
11346 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11347 t end
11348 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11349 : end' >>confcache
11350if diff $cache_file confcache >/dev/null 2>&1; then :; else
11351 if test -w $cache_file; then
11352 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11353 cat confcache >$cache_file
11354 else
11355 echo "not updating unwritable cache $cache_file"
11356 fi
11357fi
11358rm -f confcache
11359
11360test "x$prefix" = xNONE && prefix=$ac_default_prefix
11361# Let make expand exec_prefix.
11362test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11363
11364# VPATH may cause trouble with some makes, so we remove $(srcdir),
11365# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11366# trailing colons and then remove the whole line if VPATH becomes empty
11367# (actually we leave an empty line to preserve line numbers).
11368if test "x$srcdir" = x.; then
11369 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11370s/:*\$(srcdir):*/:/;
11371s/:*\${srcdir}:*/:/;
11372s/:*@srcdir@:*/:/;
11373s/^\([^=]*=[ ]*\):*/\1/;
11374s/:*$//;
11375s/^[^=]*=[ ]*$//;
11376}'
11377fi
11378
11379DEFS=-DHAVE_CONFIG_H
11380
11381ac_libobjs=
11382ac_ltlibobjs=
11383for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11384 # 1. Remove the extension, and $U if already installed.
11385 ac_i=`echo "$ac_i" |
11386 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11387 # 2. Add them.
11388 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11389 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11390done
11391LIBOBJS=$ac_libobjs
11392
11393LTLIBOBJS=$ac_ltlibobjs
11394
11395
aeda7a78 11396if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
11397 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC\" was never defined.
11398Usually this means the macro was only invoked conditionally." >&5
11399echo "$as_me: error: conditional \"GENINSRC\" was never defined.
11400Usually this means the macro was only invoked conditionally." >&2;}
11401 { (exit 1); exit 1; }; }
11402fi
1e8e9920 11403if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11404 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11405Usually this means the macro was only invoked conditionally." >&5
11406echo "$as_me: error: conditional \"AMDEP\" was never defined.
11407Usually this means the macro was only invoked conditionally." >&2;}
11408 { (exit 1); exit 1; }; }
11409fi
11410if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11411 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11412Usually this means the macro was only invoked conditionally." >&5
11413echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11414Usually this means the macro was only invoked conditionally." >&2;}
11415 { (exit 1); exit 1; }; }
11416fi
439d698f 11417if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
11418 { { echo "$as_me:$LINENO: error: conditional \"BUILD_INFO\" was never defined.
11419Usually this means the macro was only invoked conditionally." >&5
11420echo "$as_me: error: conditional \"BUILD_INFO\" was never defined.
11421Usually this means the macro was only invoked conditionally." >&2;}
11422 { (exit 1); exit 1; }; }
11423fi
a263d1ab 11424if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11425 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
11426Usually this means the macro was only invoked conditionally." >&5
11427echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
11428Usually this means the macro was only invoked conditionally." >&2;}
11429 { (exit 1); exit 1; }; }
11430fi
1e8e9920 11431if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then
11432 { { echo "$as_me:$LINENO: error: conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
11433Usually this means the macro was only invoked conditionally." >&5
11434echo "$as_me: error: conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
11435Usually this means the macro was only invoked conditionally." >&2;}
11436 { (exit 1); exit 1; }; }
11437fi
11438if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then
11439 { { echo "$as_me:$LINENO: error: conditional \"USE_FORTRAN\" was never defined.
11440Usually this means the macro was only invoked conditionally." >&5
11441echo "$as_me: error: conditional \"USE_FORTRAN\" was never defined.
11442Usually this means the macro was only invoked conditionally." >&2;}
11443 { (exit 1); exit 1; }; }
11444fi
11445
11446: ${CONFIG_STATUS=./config.status}
11447ac_clean_files_save=$ac_clean_files
11448ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11449{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11450echo "$as_me: creating $CONFIG_STATUS" >&6;}
11451cat >$CONFIG_STATUS <<_ACEOF
11452#! $SHELL
11453# Generated by $as_me.
11454# Run this file to recreate the current configuration.
11455# Compiler output produced by configure, useful for debugging
11456# configure, is in config.log if it exists.
11457
11458debug=false
11459ac_cs_recheck=false
11460ac_cs_silent=false
11461SHELL=\${CONFIG_SHELL-$SHELL}
11462_ACEOF
11463
11464cat >>$CONFIG_STATUS <<\_ACEOF
11465## --------------------- ##
11466## M4sh Initialization. ##
11467## --------------------- ##
11468
11469# Be Bourne compatible
11470if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11471 emulate sh
11472 NULLCMD=:
11473 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11474 # is contrary to our usage. Disable this feature.
11475 alias -g '${1+"$@"}'='"$@"'
11476elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11477 set -o posix
11478fi
11479DUALCASE=1; export DUALCASE # for MKS sh
11480
11481# Support unset when possible.
11482if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11483 as_unset=unset
11484else
11485 as_unset=false
11486fi
11487
11488
11489# Work around bugs in pre-3.0 UWIN ksh.
11490$as_unset ENV MAIL MAILPATH
11491PS1='$ '
11492PS2='> '
11493PS4='+ '
11494
11495# NLS nuisances.
11496for as_var in \
11497 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11498 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11499 LC_TELEPHONE LC_TIME
11500do
11501 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11502 eval $as_var=C; export $as_var
11503 else
11504 $as_unset $as_var
11505 fi
11506done
11507
11508# Required to use basename.
11509if expr a : '\(a\)' >/dev/null 2>&1; then
11510 as_expr=expr
11511else
11512 as_expr=false
11513fi
11514
11515if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11516 as_basename=basename
11517else
11518 as_basename=false
11519fi
11520
11521
11522# Name of the executable.
11523as_me=`$as_basename "$0" ||
11524$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11525 X"$0" : 'X\(//\)$' \| \
11526 X"$0" : 'X\(/\)$' \| \
11527 . : '\(.\)' 2>/dev/null ||
11528echo X/"$0" |
11529 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11530 /^X\/\(\/\/\)$/{ s//\1/; q; }
11531 /^X\/\(\/\).*/{ s//\1/; q; }
11532 s/.*/./; q'`
11533
11534
11535# PATH needs CR, and LINENO needs CR and PATH.
11536# Avoid depending upon Character Ranges.
11537as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11538as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11539as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11540as_cr_digits='0123456789'
11541as_cr_alnum=$as_cr_Letters$as_cr_digits
11542
11543# The user is always right.
11544if test "${PATH_SEPARATOR+set}" != set; then
11545 echo "#! /bin/sh" >conf$$.sh
11546 echo "exit 0" >>conf$$.sh
11547 chmod +x conf$$.sh
11548 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11549 PATH_SEPARATOR=';'
11550 else
11551 PATH_SEPARATOR=:
11552 fi
11553 rm -f conf$$.sh
11554fi
11555
11556
11557 as_lineno_1=$LINENO
11558 as_lineno_2=$LINENO
11559 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11560 test "x$as_lineno_1" != "x$as_lineno_2" &&
11561 test "x$as_lineno_3" = "x$as_lineno_2" || {
11562 # Find who we are. Look in the path if we contain no path at all
11563 # relative or not.
11564 case $0 in
11565 *[\\/]* ) as_myself=$0 ;;
11566 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11567for as_dir in $PATH
11568do
11569 IFS=$as_save_IFS
11570 test -z "$as_dir" && as_dir=.
11571 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11572done
11573
11574 ;;
11575 esac
11576 # We did not find ourselves, most probably we were run as `sh COMMAND'
11577 # in which case we are not to be found in the path.
11578 if test "x$as_myself" = x; then
11579 as_myself=$0
11580 fi
11581 if test ! -f "$as_myself"; then
11582 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11583echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11584 { (exit 1); exit 1; }; }
11585 fi
11586 case $CONFIG_SHELL in
11587 '')
11588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11589for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11590do
11591 IFS=$as_save_IFS
11592 test -z "$as_dir" && as_dir=.
11593 for as_base in sh bash ksh sh5; do
11594 case $as_dir in
11595 /*)
11596 if ("$as_dir/$as_base" -c '
11597 as_lineno_1=$LINENO
11598 as_lineno_2=$LINENO
11599 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11600 test "x$as_lineno_1" != "x$as_lineno_2" &&
11601 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11602 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11603 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11604 CONFIG_SHELL=$as_dir/$as_base
11605 export CONFIG_SHELL
11606 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11607 fi;;
11608 esac
11609 done
11610done
11611;;
11612 esac
11613
11614 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11615 # uniformly replaced by the line number. The first 'sed' inserts a
11616 # line-number line before each line; the second 'sed' does the real
11617 # work. The second script uses 'N' to pair each line-number line
11618 # with the numbered line, and appends trailing '-' during
11619 # substitution so that $LINENO is not a special case at line end.
11620 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11621 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11622 sed '=' <$as_myself |
11623 sed '
11624 N
11625 s,$,-,
11626 : loop
11627 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11628 t loop
11629 s,-$,,
11630 s,^['$as_cr_digits']*\n,,
11631 ' >$as_me.lineno &&
11632 chmod +x $as_me.lineno ||
11633 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11634echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11635 { (exit 1); exit 1; }; }
11636
11637 # Don't try to exec as it changes $[0], causing all sort of problems
11638 # (the dirname of $[0] is not the place where we might find the
11639 # original and so on. Autoconf is especially sensible to this).
11640 . ./$as_me.lineno
11641 # Exit status is that of the last command.
11642 exit
11643}
11644
11645
11646case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11647 *c*,-n*) ECHO_N= ECHO_C='
11648' ECHO_T=' ' ;;
11649 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11650 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
11651esac
11652
11653if expr a : '\(a\)' >/dev/null 2>&1; then
11654 as_expr=expr
11655else
11656 as_expr=false
11657fi
11658
11659rm -f conf$$ conf$$.exe conf$$.file
11660echo >conf$$.file
11661if ln -s conf$$.file conf$$ 2>/dev/null; then
11662 # We could just check for DJGPP; but this test a) works b) is more generic
11663 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11664 if test -f conf$$.exe; then
11665 # Don't use ln at all; we don't have any links
11666 as_ln_s='cp -p'
11667 else
11668 as_ln_s='ln -s'
11669 fi
11670elif ln conf$$.file conf$$ 2>/dev/null; then
11671 as_ln_s=ln
11672else
11673 as_ln_s='cp -p'
11674fi
11675rm -f conf$$ conf$$.exe conf$$.file
11676
11677if mkdir -p . 2>/dev/null; then
11678 as_mkdir_p=:
11679else
11680 test -d ./-p && rmdir ./-p
11681 as_mkdir_p=false
11682fi
11683
11684as_executable_p="test -f"
11685
11686# Sed expression to map a string onto a valid CPP name.
11687as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11688
11689# Sed expression to map a string onto a valid variable name.
11690as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11691
11692
11693# IFS
11694# We need space, tab and new line, in precisely that order.
11695as_nl='
11696'
11697IFS=" $as_nl"
11698
11699# CDPATH.
11700$as_unset CDPATH
11701
11702exec 6>&1
11703
11704# Open the log real soon, to keep \$[0] and so on meaningful, and to
11705# report actual input values of CONFIG_FILES etc. instead of their
11706# values after options handling. Logging --version etc. is OK.
11707exec 5>>config.log
11708{
11709 echo
11710 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11711## Running $as_me. ##
11712_ASBOX
11713} >&5
11714cat >&5 <<_CSEOF
11715
11716This file was extended by GNU OpenMP Runtime Library $as_me 1.0, which was
11717generated by GNU Autoconf 2.59. Invocation command line was
11718
11719 CONFIG_FILES = $CONFIG_FILES
11720 CONFIG_HEADERS = $CONFIG_HEADERS
11721 CONFIG_LINKS = $CONFIG_LINKS
11722 CONFIG_COMMANDS = $CONFIG_COMMANDS
11723 $ $0 $@
11724
11725_CSEOF
11726echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11727echo >&5
11728_ACEOF
11729
11730# Files that config.status was made for.
11731if test -n "$ac_config_files"; then
11732 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11733fi
11734
11735if test -n "$ac_config_headers"; then
11736 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11737fi
11738
11739if test -n "$ac_config_links"; then
11740 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11741fi
11742
11743if test -n "$ac_config_commands"; then
11744 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11745fi
11746
11747cat >>$CONFIG_STATUS <<\_ACEOF
11748
11749ac_cs_usage="\
11750\`$as_me' instantiates files from templates according to the
11751current configuration.
11752
11753Usage: $0 [OPTIONS] [FILE]...
11754
11755 -h, --help print this help, then exit
11756 -V, --version print version number, then exit
11757 -q, --quiet do not print progress messages
11758 -d, --debug don't remove temporary files
11759 --recheck update $as_me by reconfiguring in the same conditions
11760 --file=FILE[:TEMPLATE]
11761 instantiate the configuration file FILE
11762 --header=FILE[:TEMPLATE]
11763 instantiate the configuration header FILE
11764
11765Configuration files:
11766$config_files
11767
11768Configuration headers:
11769$config_headers
11770
11771Configuration commands:
11772$config_commands
11773
11774Report bugs to <bug-autoconf@gnu.org>."
11775_ACEOF
11776
11777cat >>$CONFIG_STATUS <<_ACEOF
11778ac_cs_version="\\
11779GNU OpenMP Runtime Library config.status 1.0
11780configured by $0, generated by GNU Autoconf 2.59,
11781 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11782
11783Copyright (C) 2003 Free Software Foundation, Inc.
11784This config.status script is free software; the Free Software Foundation
11785gives unlimited permission to copy, distribute and modify it."
11786srcdir=$srcdir
11787INSTALL="$INSTALL"
11788_ACEOF
11789
11790cat >>$CONFIG_STATUS <<\_ACEOF
11791# If no file are specified by the user, then we need to provide default
11792# value. By we need to know if files were specified by the user.
11793ac_need_defaults=:
11794while test $# != 0
11795do
11796 case $1 in
11797 --*=*)
11798 ac_option=`expr "x$1" : 'x\([^=]*\)='`
11799 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11800 ac_shift=:
11801 ;;
11802 -*)
11803 ac_option=$1
11804 ac_optarg=$2
11805 ac_shift=shift
11806 ;;
11807 *) # This is not an option, so the user has probably given explicit
11808 # arguments.
11809 ac_option=$1
11810 ac_need_defaults=false;;
11811 esac
11812
11813 case $ac_option in
11814 # Handling of the options.
11815_ACEOF
11816cat >>$CONFIG_STATUS <<\_ACEOF
11817 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11818 ac_cs_recheck=: ;;
11819 --version | --vers* | -V )
11820 echo "$ac_cs_version"; exit 0 ;;
11821 --he | --h)
11822 # Conflict between --help and --header
11823 { { echo "$as_me:$LINENO: error: ambiguous option: $1
11824Try \`$0 --help' for more information." >&5
11825echo "$as_me: error: ambiguous option: $1
11826Try \`$0 --help' for more information." >&2;}
11827 { (exit 1); exit 1; }; };;
11828 --help | --hel | -h )
11829 echo "$ac_cs_usage"; exit 0 ;;
11830 --debug | --d* | -d )
11831 debug=: ;;
11832 --file | --fil | --fi | --f )
11833 $ac_shift
11834 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11835 ac_need_defaults=false;;
11836 --header | --heade | --head | --hea )
11837 $ac_shift
11838 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11839 ac_need_defaults=false;;
11840 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11841 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11842 ac_cs_silent=: ;;
11843
11844 # This is an error.
11845 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11846Try \`$0 --help' for more information." >&5
11847echo "$as_me: error: unrecognized option: $1
11848Try \`$0 --help' for more information." >&2;}
11849 { (exit 1); exit 1; }; } ;;
11850
11851 *) ac_config_targets="$ac_config_targets $1" ;;
11852
11853 esac
11854 shift
11855done
11856
11857ac_configure_extra_args=
11858
11859if $ac_cs_silent; then
11860 exec 6>/dev/null
11861 ac_configure_extra_args="$ac_configure_extra_args --silent"
11862fi
11863
11864_ACEOF
11865cat >>$CONFIG_STATUS <<_ACEOF
11866if \$ac_cs_recheck; then
11867 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11868 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11869fi
11870
11871_ACEOF
11872
11873cat >>$CONFIG_STATUS <<_ACEOF
11874#
11875# INIT-COMMANDS section.
11876#
11877
11878
11879srcdir="$srcdir"
11880host="$host"
11881target="$target"
11882with_multisubdir="$with_multisubdir"
11883with_multisrctop="$with_multisrctop"
11884with_target_subdir="$with_target_subdir"
11885ac_configure_args="${multilib_arg} ${ac_configure_args}"
11886multi_basedir="$multi_basedir"
11887CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
11888CC="$CC"
11889AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11890
01473a49 11891GCC="$GCC"
11892CC="$CC"
11893acx_cv_header_stdint="$acx_cv_header_stdint"
11894acx_cv_type_int8_t="$acx_cv_type_int8_t"
11895acx_cv_type_int16_t="$acx_cv_type_int16_t"
11896acx_cv_type_int32_t="$acx_cv_type_int32_t"
11897acx_cv_type_int64_t="$acx_cv_type_int64_t"
11898acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
11899ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
11900ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
11901ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
11902ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
11903ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
11904ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
11905ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
11906ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
11907
11908
1e8e9920 11909_ACEOF
11910
11911
11912
11913cat >>$CONFIG_STATUS <<\_ACEOF
11914for ac_config_target in $ac_config_targets
11915do
11916 case "$ac_config_target" in
11917 # Handling of arguments.
107c3bbf 11918 "omp.h" ) CONFIG_FILES="$CONFIG_FILES omp.h" ;;
11919 "omp_lib.h" ) CONFIG_FILES="$CONFIG_FILES omp_lib.h" ;;
11920 "omp_lib.f90" ) CONFIG_FILES="$CONFIG_FILES omp_lib.f90" ;;
11921 "libgomp_f.h" ) CONFIG_FILES="$CONFIG_FILES libgomp_f.h" ;;
1e8e9920 11922 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11923 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
11924 "libgomp.spec" ) CONFIG_FILES="$CONFIG_FILES libgomp.spec" ;;
11925 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
11926 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
01473a49 11927 "gstdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
1e8e9920 11928 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11929 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11930echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11931 { (exit 1); exit 1; }; };;
11932 esac
11933done
11934
11935# If the user did not use the arguments to specify the items to instantiate,
11936# then the envvar interface is used. Set only those that are not.
11937# We use the long form for the default assignment because of an extremely
11938# bizarre bug on SunOS 4.1.3.
11939if $ac_need_defaults; then
11940 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11941 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11942 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11943fi
11944
11945# Have a temporary directory for convenience. Make it in the build tree
11946# simply because there is no reason to put it here, and in addition,
11947# creating and moving files from /tmp can sometimes cause problems.
11948# Create a temporary directory, and hook for its removal unless debugging.
11949$debug ||
11950{
11951 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11952 trap '{ (exit 1); exit 1; }' 1 2 13 15
11953}
11954
11955# Create a (secure) tmp directory for tmp files.
11956
11957{
11958 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11959 test -n "$tmp" && test -d "$tmp"
11960} ||
11961{
11962 tmp=./confstat$$-$RANDOM
11963 (umask 077 && mkdir $tmp)
11964} ||
11965{
11966 echo "$me: cannot create a temporary directory in ." >&2
11967 { (exit 1); exit 1; }
11968}
11969
11970_ACEOF
11971
11972cat >>$CONFIG_STATUS <<_ACEOF
11973
11974#
11975# CONFIG_FILES section.
11976#
11977
11978# No need to generate the scripts if there are no CONFIG_FILES.
11979# This happens for instance when ./config.status config.h
11980if test -n "\$CONFIG_FILES"; then
11981 # Protect against being on the right side of a sed subst in config.status.
11982 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11983 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11984s,@SHELL@,$SHELL,;t t
11985s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11986s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11987s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11988s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11989s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11990s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11991s,@exec_prefix@,$exec_prefix,;t t
11992s,@prefix@,$prefix,;t t
11993s,@program_transform_name@,$program_transform_name,;t t
11994s,@bindir@,$bindir,;t t
11995s,@sbindir@,$sbindir,;t t
11996s,@libexecdir@,$libexecdir,;t t
11997s,@datadir@,$datadir,;t t
11998s,@sysconfdir@,$sysconfdir,;t t
11999s,@sharedstatedir@,$sharedstatedir,;t t
12000s,@localstatedir@,$localstatedir,;t t
12001s,@libdir@,$libdir,;t t
12002s,@includedir@,$includedir,;t t
12003s,@oldincludedir@,$oldincludedir,;t t
12004s,@infodir@,$infodir,;t t
12005s,@mandir@,$mandir,;t t
12006s,@build_alias@,$build_alias,;t t
12007s,@host_alias@,$host_alias,;t t
12008s,@target_alias@,$target_alias,;t t
12009s,@DEFS@,$DEFS,;t t
12010s,@ECHO_C@,$ECHO_C,;t t
12011s,@ECHO_N@,$ECHO_N,;t t
12012s,@ECHO_T@,$ECHO_T,;t t
12013s,@LIBS@,$LIBS,;t t
aeda7a78 12014s,@GENINSRC_TRUE@,$GENINSRC_TRUE,;t t
12015s,@GENINSRC_FALSE@,$GENINSRC_FALSE,;t t
1e8e9920 12016s,@build@,$build,;t t
12017s,@build_cpu@,$build_cpu,;t t
12018s,@build_vendor@,$build_vendor,;t t
12019s,@build_os@,$build_os,;t t
12020s,@host@,$host,;t t
12021s,@host_cpu@,$host_cpu,;t t
12022s,@host_vendor@,$host_vendor,;t t
12023s,@host_os@,$host_os,;t t
12024s,@target@,$target,;t t
12025s,@target_cpu@,$target_cpu,;t t
12026s,@target_vendor@,$target_vendor,;t t
12027s,@target_os@,$target_os,;t t
12028s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12029s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12030s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12031s,@CYGPATH_W@,$CYGPATH_W,;t t
12032s,@PACKAGE@,$PACKAGE,;t t
12033s,@VERSION@,$VERSION,;t t
12034s,@ACLOCAL@,$ACLOCAL,;t t
12035s,@AUTOCONF@,$AUTOCONF,;t t
12036s,@AUTOMAKE@,$AUTOMAKE,;t t
12037s,@AUTOHEADER@,$AUTOHEADER,;t t
12038s,@MAKEINFO@,$MAKEINFO,;t t
12039s,@install_sh@,$install_sh,;t t
12040s,@STRIP@,$STRIP,;t t
12041s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
12042s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
12043s,@mkdir_p@,$mkdir_p,;t t
12044s,@AWK@,$AWK,;t t
12045s,@SET_MAKE@,$SET_MAKE,;t t
12046s,@am__leading_dot@,$am__leading_dot,;t t
12047s,@AMTAR@,$AMTAR,;t t
12048s,@am__tar@,$am__tar,;t t
12049s,@am__untar@,$am__untar,;t t
12050s,@multi_basedir@,$multi_basedir,;t t
12051s,@toolexecdir@,$toolexecdir,;t t
12052s,@toolexeclibdir@,$toolexeclibdir,;t t
12053s,@CC@,$CC,;t t
12054s,@ac_ct_CC@,$ac_ct_CC,;t t
12055s,@EXEEXT@,$EXEEXT,;t t
12056s,@OBJEXT@,$OBJEXT,;t t
12057s,@DEPDIR@,$DEPDIR,;t t
12058s,@am__include@,$am__include,;t t
12059s,@am__quote@,$am__quote,;t t
12060s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
12061s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
12062s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
12063s,@CCDEPMODE@,$CCDEPMODE,;t t
12064s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
12065s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
12066s,@CFLAGS@,$CFLAGS,;t t
12067s,@AR@,$AR,;t t
12068s,@ac_ct_AR@,$ac_ct_AR,;t t
12069s,@RANLIB@,$RANLIB,;t t
12070s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12071s,@PERL@,$PERL,;t t
439d698f 12072s,@BUILD_INFO_TRUE@,$BUILD_INFO_TRUE,;t t
12073s,@BUILD_INFO_FALSE@,$BUILD_INFO_FALSE,;t t
1e8e9920 12074s,@LN_S@,$LN_S,;t t
12075s,@LIBTOOL@,$LIBTOOL,;t t
12076s,@enable_shared@,$enable_shared,;t t
12077s,@enable_static@,$enable_static,;t t
a263d1ab 12078s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
12079s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
12080s,@MAINT@,$MAINT,;t t
1e8e9920 12081s,@FC@,$FC,;t t
12082s,@FCFLAGS@,$FCFLAGS,;t t
12083s,@LDFLAGS@,$LDFLAGS,;t t
12084s,@ac_ct_FC@,$ac_ct_FC,;t t
12085s,@libtool_VERSION@,$libtool_VERSION,;t t
12086s,@CPP@,$CPP,;t t
12087s,@CPPFLAGS@,$CPPFLAGS,;t t
12088s,@EGREP@,$EGREP,;t t
12089s,@SECTION_LDFLAGS@,$SECTION_LDFLAGS,;t t
12090s,@OPT_LDFLAGS@,$OPT_LDFLAGS,;t t
12091s,@LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE@,$LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE,;t t
12092s,@LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE@,$LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE,;t t
12093s,@config_path@,$config_path,;t t
12094s,@XCFLAGS@,$XCFLAGS,;t t
12095s,@XLDFLAGS@,$XLDFLAGS,;t t
12096s,@link_gomp@,$link_gomp,;t t
12097s,@USE_FORTRAN_TRUE@,$USE_FORTRAN_TRUE,;t t
12098s,@USE_FORTRAN_FALSE@,$USE_FORTRAN_FALSE,;t t
107c3bbf 12099s,@OMP_LOCK_SIZE@,$OMP_LOCK_SIZE,;t t
12100s,@OMP_LOCK_ALIGN@,$OMP_LOCK_ALIGN,;t t
12101s,@OMP_NEST_LOCK_SIZE@,$OMP_NEST_LOCK_SIZE,;t t
12102s,@OMP_NEST_LOCK_ALIGN@,$OMP_NEST_LOCK_ALIGN,;t t
12103s,@OMP_LOCK_KIND@,$OMP_LOCK_KIND,;t t
12104s,@OMP_NEST_LOCK_KIND@,$OMP_NEST_LOCK_KIND,;t t
1e8e9920 12105s,@LIBOBJS@,$LIBOBJS,;t t
12106s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12107CEOF
12108
12109_ACEOF
12110
12111 cat >>$CONFIG_STATUS <<\_ACEOF
12112 # Split the substitutions into bite-sized pieces for seds with
12113 # small command number limits, like on Digital OSF/1 and HP-UX.
12114 ac_max_sed_lines=48
12115 ac_sed_frag=1 # Number of current file.
12116 ac_beg=1 # First line for current file.
12117 ac_end=$ac_max_sed_lines # Line after last line for current file.
12118 ac_more_lines=:
12119 ac_sed_cmds=
12120 while $ac_more_lines; do
12121 if test $ac_beg -gt 1; then
12122 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12123 else
12124 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12125 fi
12126 if test ! -s $tmp/subs.frag; then
12127 ac_more_lines=false
12128 else
12129 # The purpose of the label and of the branching condition is to
12130 # speed up the sed processing (if there are no `@' at all, there
12131 # is no need to browse any of the substitutions).
12132 # These are the two extra sed commands mentioned above.
12133 (echo ':t
12134 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12135 if test -z "$ac_sed_cmds"; then
12136 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12137 else
12138 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12139 fi
12140 ac_sed_frag=`expr $ac_sed_frag + 1`
12141 ac_beg=$ac_end
12142 ac_end=`expr $ac_end + $ac_max_sed_lines`
12143 fi
12144 done
12145 if test -z "$ac_sed_cmds"; then
12146 ac_sed_cmds=cat
12147 fi
12148fi # test -n "$CONFIG_FILES"
12149
12150_ACEOF
12151cat >>$CONFIG_STATUS <<\_ACEOF
12152for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12153 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12154 case $ac_file in
12155 - | *:- | *:-:* ) # input from stdin
12156 cat >$tmp/stdin
12157 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12158 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12159 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12160 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12161 * ) ac_file_in=$ac_file.in ;;
12162 esac
12163
12164 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12165 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12166$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12167 X"$ac_file" : 'X\(//\)[^/]' \| \
12168 X"$ac_file" : 'X\(//\)$' \| \
12169 X"$ac_file" : 'X\(/\)' \| \
12170 . : '\(.\)' 2>/dev/null ||
12171echo X"$ac_file" |
12172 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12173 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12174 /^X\(\/\/\)$/{ s//\1/; q; }
12175 /^X\(\/\).*/{ s//\1/; q; }
12176 s/.*/./; q'`
12177 { if $as_mkdir_p; then
12178 mkdir -p "$ac_dir"
12179 else
12180 as_dir="$ac_dir"
12181 as_dirs=
12182 while test ! -d "$as_dir"; do
12183 as_dirs="$as_dir $as_dirs"
12184 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12185$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12186 X"$as_dir" : 'X\(//\)[^/]' \| \
12187 X"$as_dir" : 'X\(//\)$' \| \
12188 X"$as_dir" : 'X\(/\)' \| \
12189 . : '\(.\)' 2>/dev/null ||
12190echo X"$as_dir" |
12191 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12192 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12193 /^X\(\/\/\)$/{ s//\1/; q; }
12194 /^X\(\/\).*/{ s//\1/; q; }
12195 s/.*/./; q'`
12196 done
12197 test ! -n "$as_dirs" || mkdir $as_dirs
12198 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12199echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12200 { (exit 1); exit 1; }; }; }
12201
12202 ac_builddir=.
12203
12204if test "$ac_dir" != .; then
12205 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12206 # A "../" for each directory in $ac_dir_suffix.
12207 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12208else
12209 ac_dir_suffix= ac_top_builddir=
12210fi
12211
12212case $srcdir in
12213 .) # No --srcdir option. We are building in place.
12214 ac_srcdir=.
12215 if test -z "$ac_top_builddir"; then
12216 ac_top_srcdir=.
12217 else
12218 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12219 fi ;;
12220 [\\/]* | ?:[\\/]* ) # Absolute path.
12221 ac_srcdir=$srcdir$ac_dir_suffix;
12222 ac_top_srcdir=$srcdir ;;
12223 *) # Relative path.
12224 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12225 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12226esac
12227
12228# Do not use `cd foo && pwd` to compute absolute paths, because
12229# the directories may not exist.
12230case `pwd` in
12231.) ac_abs_builddir="$ac_dir";;
12232*)
12233 case "$ac_dir" in
12234 .) ac_abs_builddir=`pwd`;;
12235 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12236 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12237 esac;;
12238esac
12239case $ac_abs_builddir in
12240.) ac_abs_top_builddir=${ac_top_builddir}.;;
12241*)
12242 case ${ac_top_builddir}. in
12243 .) ac_abs_top_builddir=$ac_abs_builddir;;
12244 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12245 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12246 esac;;
12247esac
12248case $ac_abs_builddir in
12249.) ac_abs_srcdir=$ac_srcdir;;
12250*)
12251 case $ac_srcdir in
12252 .) ac_abs_srcdir=$ac_abs_builddir;;
12253 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12254 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12255 esac;;
12256esac
12257case $ac_abs_builddir in
12258.) ac_abs_top_srcdir=$ac_top_srcdir;;
12259*)
12260 case $ac_top_srcdir in
12261 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12262 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12263 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12264 esac;;
12265esac
12266
12267
12268 case $INSTALL in
12269 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12270 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12271 esac
12272
59da30e1 12273 if test x"$ac_file" != x-; then
12274 { echo "$as_me:$LINENO: creating $ac_file" >&5
12275echo "$as_me: creating $ac_file" >&6;}
12276 rm -f "$ac_file"
12277 fi
1e8e9920 12278 # Let's still pretend it is `configure' which instantiates (i.e., don't
12279 # use $as_me), people would be surprised to read:
12280 # /* config.h. Generated by config.status. */
12281 if test x"$ac_file" = x-; then
12282 configure_input=
12283 else
12284 configure_input="$ac_file. "
12285 fi
12286 configure_input=$configure_input"Generated from `echo $ac_file_in |
12287 sed 's,.*/,,'` by configure."
12288
12289 # First look for the input files in the build tree, otherwise in the
12290 # src tree.
12291 ac_file_inputs=`IFS=:
12292 for f in $ac_file_in; do
12293 case $f in
12294 -) echo $tmp/stdin ;;
12295 [\\/$]*)
12296 # Absolute (can't be DOS-style, as IFS=:)
12297 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12298echo "$as_me: error: cannot find input file: $f" >&2;}
12299 { (exit 1); exit 1; }; }
12300 echo "$f";;
12301 *) # Relative
12302 if test -f "$f"; then
12303 # Build tree
12304 echo "$f"
12305 elif test -f "$srcdir/$f"; then
12306 # Source tree
12307 echo "$srcdir/$f"
12308 else
12309 # /dev/null tree
12310 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12311echo "$as_me: error: cannot find input file: $f" >&2;}
12312 { (exit 1); exit 1; }; }
12313 fi;;
12314 esac
12315 done` || { (exit 1); exit 1; }
12316_ACEOF
12317cat >>$CONFIG_STATUS <<_ACEOF
12318 sed "$ac_vpsub
12319$extrasub
12320_ACEOF
12321cat >>$CONFIG_STATUS <<\_ACEOF
12322:t
12323/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12324s,@configure_input@,$configure_input,;t t
12325s,@srcdir@,$ac_srcdir,;t t
12326s,@abs_srcdir@,$ac_abs_srcdir,;t t
12327s,@top_srcdir@,$ac_top_srcdir,;t t
12328s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12329s,@builddir@,$ac_builddir,;t t
12330s,@abs_builddir@,$ac_abs_builddir,;t t
12331s,@top_builddir@,$ac_top_builddir,;t t
12332s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12333s,@INSTALL@,$ac_INSTALL,;t t
12334" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12335 rm -f $tmp/stdin
12336 if test x"$ac_file" != x-; then
12337 mv $tmp/out $ac_file
12338 else
12339 cat $tmp/out
12340 rm -f $tmp/out
12341 fi
12342
12343done
12344_ACEOF
12345cat >>$CONFIG_STATUS <<\_ACEOF
12346
12347#
12348# CONFIG_HEADER section.
12349#
12350
12351# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12352# NAME is the cpp macro being defined and VALUE is the value it is being given.
12353#
12354# ac_d sets the value in "#define NAME VALUE" lines.
12355ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12356ac_dB='[ ].*$,\1#\2'
12357ac_dC=' '
12358ac_dD=',;t'
12359# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12360ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12361ac_uB='$,\1#\2define\3'
12362ac_uC=' '
12363ac_uD=',;t'
12364
12365for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12366 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12367 case $ac_file in
12368 - | *:- | *:-:* ) # input from stdin
12369 cat >$tmp/stdin
12370 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12371 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12372 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12373 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12374 * ) ac_file_in=$ac_file.in ;;
12375 esac
12376
12377 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12378echo "$as_me: creating $ac_file" >&6;}
12379
12380 # First look for the input files in the build tree, otherwise in the
12381 # src tree.
12382 ac_file_inputs=`IFS=:
12383 for f in $ac_file_in; do
12384 case $f in
12385 -) echo $tmp/stdin ;;
12386 [\\/$]*)
12387 # Absolute (can't be DOS-style, as IFS=:)
12388 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12389echo "$as_me: error: cannot find input file: $f" >&2;}
12390 { (exit 1); exit 1; }; }
12391 # Do quote $f, to prevent DOS paths from being IFS'd.
12392 echo "$f";;
12393 *) # Relative
12394 if test -f "$f"; then
12395 # Build tree
12396 echo "$f"
12397 elif test -f "$srcdir/$f"; then
12398 # Source tree
12399 echo "$srcdir/$f"
12400 else
12401 # /dev/null tree
12402 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12403echo "$as_me: error: cannot find input file: $f" >&2;}
12404 { (exit 1); exit 1; }; }
12405 fi;;
12406 esac
12407 done` || { (exit 1); exit 1; }
12408 # Remove the trailing spaces.
12409 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
12410
12411_ACEOF
12412
12413# Transform confdefs.h into two sed scripts, `conftest.defines' and
12414# `conftest.undefs', that substitutes the proper values into
12415# config.h.in to produce config.h. The first handles `#define'
12416# templates, and the second `#undef' templates.
12417# And first: Protect against being on the right side of a sed subst in
12418# config.status. Protect against being in an unquoted here document
12419# in config.status.
12420rm -f conftest.defines conftest.undefs
12421# Using a here document instead of a string reduces the quoting nightmare.
12422# Putting comments in sed scripts is not portable.
12423#
12424# `end' is used to avoid that the second main sed command (meant for
12425# 0-ary CPP macros) applies to n-ary macro definitions.
12426# See the Autoconf documentation for `clear'.
12427cat >confdef2sed.sed <<\_ACEOF
12428s/[\\&,]/\\&/g
12429s,[\\$`],\\&,g
12430t clear
12431: clear
12432s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12433t end
12434s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12435: end
12436_ACEOF
12437# If some macros were called several times there might be several times
12438# the same #defines, which is useless. Nevertheless, we may not want to
12439# sort them, since we want the *last* AC-DEFINE to be honored.
12440uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12441sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12442rm -f confdef2sed.sed
12443
12444# This sed command replaces #undef with comments. This is necessary, for
12445# example, in the case of _POSIX_SOURCE, which is predefined and required
12446# on some systems where configure will not decide to define it.
12447cat >>conftest.undefs <<\_ACEOF
12448s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12449_ACEOF
12450
12451# Break up conftest.defines because some shells have a limit on the size
12452# of here documents, and old seds have small limits too (100 cmds).
12453echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12454echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12455echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12456echo ' :' >>$CONFIG_STATUS
12457rm -f conftest.tail
12458while grep . conftest.defines >/dev/null
12459do
12460 # Write a limited-size here document to $tmp/defines.sed.
12461 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12462 # Speed up: don't consider the non `#define' lines.
12463 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
12464 # Work around the forget-to-reset-the-flag bug.
12465 echo 't clr' >>$CONFIG_STATUS
12466 echo ': clr' >>$CONFIG_STATUS
12467 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12468 echo 'CEOF
12469 sed -f $tmp/defines.sed $tmp/in >$tmp/out
12470 rm -f $tmp/in
12471 mv $tmp/out $tmp/in
12472' >>$CONFIG_STATUS
12473 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12474 rm -f conftest.defines
12475 mv conftest.tail conftest.defines
12476done
12477rm -f conftest.defines
12478echo ' fi # grep' >>$CONFIG_STATUS
12479echo >>$CONFIG_STATUS
12480
12481# Break up conftest.undefs because some shells have a limit on the size
12482# of here documents, and old seds have small limits too (100 cmds).
12483echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
12484rm -f conftest.tail
12485while grep . conftest.undefs >/dev/null
12486do
12487 # Write a limited-size here document to $tmp/undefs.sed.
12488 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12489 # Speed up: don't consider the non `#undef'
12490 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
12491 # Work around the forget-to-reset-the-flag bug.
12492 echo 't clr' >>$CONFIG_STATUS
12493 echo ': clr' >>$CONFIG_STATUS
12494 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12495 echo 'CEOF
12496 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12497 rm -f $tmp/in
12498 mv $tmp/out $tmp/in
12499' >>$CONFIG_STATUS
12500 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12501 rm -f conftest.undefs
12502 mv conftest.tail conftest.undefs
12503done
12504rm -f conftest.undefs
12505
12506cat >>$CONFIG_STATUS <<\_ACEOF
12507 # Let's still pretend it is `configure' which instantiates (i.e., don't
12508 # use $as_me), people would be surprised to read:
12509 # /* config.h. Generated by config.status. */
12510 if test x"$ac_file" = x-; then
12511 echo "/* Generated by configure. */" >$tmp/config.h
12512 else
12513 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
12514 fi
12515 cat $tmp/in >>$tmp/config.h
12516 rm -f $tmp/in
12517 if test x"$ac_file" != x-; then
12518 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12519 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12520echo "$as_me: $ac_file is unchanged" >&6;}
12521 else
12522 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12523$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12524 X"$ac_file" : 'X\(//\)[^/]' \| \
12525 X"$ac_file" : 'X\(//\)$' \| \
12526 X"$ac_file" : 'X\(/\)' \| \
12527 . : '\(.\)' 2>/dev/null ||
12528echo X"$ac_file" |
12529 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12530 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12531 /^X\(\/\/\)$/{ s//\1/; q; }
12532 /^X\(\/\).*/{ s//\1/; q; }
12533 s/.*/./; q'`
12534 { if $as_mkdir_p; then
12535 mkdir -p "$ac_dir"
12536 else
12537 as_dir="$ac_dir"
12538 as_dirs=
12539 while test ! -d "$as_dir"; do
12540 as_dirs="$as_dir $as_dirs"
12541 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12542$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12543 X"$as_dir" : 'X\(//\)[^/]' \| \
12544 X"$as_dir" : 'X\(//\)$' \| \
12545 X"$as_dir" : 'X\(/\)' \| \
12546 . : '\(.\)' 2>/dev/null ||
12547echo X"$as_dir" |
12548 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12549 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12550 /^X\(\/\/\)$/{ s//\1/; q; }
12551 /^X\(\/\).*/{ s//\1/; q; }
12552 s/.*/./; q'`
12553 done
12554 test ! -n "$as_dirs" || mkdir $as_dirs
12555 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12556echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12557 { (exit 1); exit 1; }; }; }
12558
12559 rm -f $ac_file
12560 mv $tmp/config.h $ac_file
12561 fi
12562 else
12563 cat $tmp/config.h
12564 rm -f $tmp/config.h
12565 fi
12566# Compute $ac_file's index in $config_headers.
12567_am_stamp_count=1
12568for _am_header in $config_headers :; do
12569 case $_am_header in
12570 $ac_file | $ac_file:* )
12571 break ;;
12572 * )
12573 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12574 esac
12575done
12576echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
12577$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12578 X$ac_file : 'X\(//\)[^/]' \| \
12579 X$ac_file : 'X\(//\)$' \| \
12580 X$ac_file : 'X\(/\)' \| \
12581 . : '\(.\)' 2>/dev/null ||
12582echo X$ac_file |
12583 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12584 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12585 /^X\(\/\/\)$/{ s//\1/; q; }
12586 /^X\(\/\).*/{ s//\1/; q; }
12587 s/.*/./; q'`/stamp-h$_am_stamp_count
12588done
12589_ACEOF
12590cat >>$CONFIG_STATUS <<\_ACEOF
12591
12592#
12593# CONFIG_COMMANDS section.
12594#
12595for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12596 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12597 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12598 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12599$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12600 X"$ac_dest" : 'X\(//\)[^/]' \| \
12601 X"$ac_dest" : 'X\(//\)$' \| \
12602 X"$ac_dest" : 'X\(/\)' \| \
12603 . : '\(.\)' 2>/dev/null ||
12604echo X"$ac_dest" |
12605 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12606 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12607 /^X\(\/\/\)$/{ s//\1/; q; }
12608 /^X\(\/\).*/{ s//\1/; q; }
12609 s/.*/./; q'`
12610 { if $as_mkdir_p; then
12611 mkdir -p "$ac_dir"
12612 else
12613 as_dir="$ac_dir"
12614 as_dirs=
12615 while test ! -d "$as_dir"; do
12616 as_dirs="$as_dir $as_dirs"
12617 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12618$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12619 X"$as_dir" : 'X\(//\)[^/]' \| \
12620 X"$as_dir" : 'X\(//\)$' \| \
12621 X"$as_dir" : 'X\(/\)' \| \
12622 . : '\(.\)' 2>/dev/null ||
12623echo X"$as_dir" |
12624 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12625 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12626 /^X\(\/\/\)$/{ s//\1/; q; }
12627 /^X\(\/\).*/{ s//\1/; q; }
12628 s/.*/./; q'`
12629 done
12630 test ! -n "$as_dirs" || mkdir $as_dirs
12631 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12632echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12633 { (exit 1); exit 1; }; }; }
12634
12635 ac_builddir=.
12636
12637if test "$ac_dir" != .; then
12638 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12639 # A "../" for each directory in $ac_dir_suffix.
12640 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12641else
12642 ac_dir_suffix= ac_top_builddir=
12643fi
12644
12645case $srcdir in
12646 .) # No --srcdir option. We are building in place.
12647 ac_srcdir=.
12648 if test -z "$ac_top_builddir"; then
12649 ac_top_srcdir=.
12650 else
12651 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12652 fi ;;
12653 [\\/]* | ?:[\\/]* ) # Absolute path.
12654 ac_srcdir=$srcdir$ac_dir_suffix;
12655 ac_top_srcdir=$srcdir ;;
12656 *) # Relative path.
12657 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12658 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12659esac
12660
12661# Do not use `cd foo && pwd` to compute absolute paths, because
12662# the directories may not exist.
12663case `pwd` in
12664.) ac_abs_builddir="$ac_dir";;
12665*)
12666 case "$ac_dir" in
12667 .) ac_abs_builddir=`pwd`;;
12668 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12669 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12670 esac;;
12671esac
12672case $ac_abs_builddir in
12673.) ac_abs_top_builddir=${ac_top_builddir}.;;
12674*)
12675 case ${ac_top_builddir}. in
12676 .) ac_abs_top_builddir=$ac_abs_builddir;;
12677 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12678 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12679 esac;;
12680esac
12681case $ac_abs_builddir in
12682.) ac_abs_srcdir=$ac_srcdir;;
12683*)
12684 case $ac_srcdir in
12685 .) ac_abs_srcdir=$ac_abs_builddir;;
12686 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12687 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12688 esac;;
12689esac
12690case $ac_abs_builddir in
12691.) ac_abs_top_srcdir=$ac_top_srcdir;;
12692*)
12693 case $ac_top_srcdir in
12694 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12695 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12696 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12697 esac;;
12698esac
12699
12700
12701 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12702echo "$as_me: executing $ac_dest commands" >&6;}
12703 case $ac_dest in
12704 default-1 )
12705# Only add multilib support code if we just rebuilt the top-level
12706# Makefile.
12707case " $CONFIG_FILES " in
12708 *" Makefile "*)
12709 ac_file=Makefile . ${multi_basedir}/config-ml.in
12710 ;;
12711esac ;;
12712 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12713 # Strip MF so we end up with the name of the file.
12714 mf=`echo "$mf" | sed -e 's/:.*$//'`
12715 # Check whether this is an Automake generated Makefile or not.
12716 # We used to match only the files named `Makefile.in', but
12717 # some people rename them; so instead we look at the file content.
12718 # Grep'ing the first line is not enough: some people post-process
12719 # each Makefile.in and add a new line on top of each file to say so.
12720 # So let's grep whole file.
12721 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
12722 dirpart=`(dirname "$mf") 2>/dev/null ||
12723$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12724 X"$mf" : 'X\(//\)[^/]' \| \
12725 X"$mf" : 'X\(//\)$' \| \
12726 X"$mf" : 'X\(/\)' \| \
12727 . : '\(.\)' 2>/dev/null ||
12728echo X"$mf" |
12729 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12730 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12731 /^X\(\/\/\)$/{ s//\1/; q; }
12732 /^X\(\/\).*/{ s//\1/; q; }
12733 s/.*/./; q'`
12734 else
12735 continue
12736 fi
12737 # Extract the definition of DEPDIR, am__include, and am__quote
12738 # from the Makefile without running `make'.
12739 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12740 test -z "$DEPDIR" && continue
12741 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12742 test -z "am__include" && continue
12743 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12744 # When using ansi2knr, U may be empty or an underscore; expand it
12745 U=`sed -n 's/^U = //p' < "$mf"`
12746 # Find all dependency output files, they are included files with
12747 # $(DEPDIR) in their names. We invoke sed twice because it is the
12748 # simplest approach to changing $(DEPDIR) to its actual value in the
12749 # expansion.
12750 for file in `sed -n "
12751 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12752 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12753 # Make sure the directory exists.
12754 test -f "$dirpart/$file" && continue
12755 fdir=`(dirname "$file") 2>/dev/null ||
12756$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12757 X"$file" : 'X\(//\)[^/]' \| \
12758 X"$file" : 'X\(//\)$' \| \
12759 X"$file" : 'X\(/\)' \| \
12760 . : '\(.\)' 2>/dev/null ||
12761echo X"$file" |
12762 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12763 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12764 /^X\(\/\/\)$/{ s//\1/; q; }
12765 /^X\(\/\).*/{ s//\1/; q; }
12766 s/.*/./; q'`
12767 { if $as_mkdir_p; then
12768 mkdir -p $dirpart/$fdir
12769 else
12770 as_dir=$dirpart/$fdir
12771 as_dirs=
12772 while test ! -d "$as_dir"; do
12773 as_dirs="$as_dir $as_dirs"
12774 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12775$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12776 X"$as_dir" : 'X\(//\)[^/]' \| \
12777 X"$as_dir" : 'X\(//\)$' \| \
12778 X"$as_dir" : 'X\(/\)' \| \
12779 . : '\(.\)' 2>/dev/null ||
12780echo X"$as_dir" |
12781 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12782 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12783 /^X\(\/\/\)$/{ s//\1/; q; }
12784 /^X\(\/\).*/{ s//\1/; q; }
12785 s/.*/./; q'`
12786 done
12787 test ! -n "$as_dirs" || mkdir $as_dirs
12788 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
12789echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
12790 { (exit 1); exit 1; }; }; }
12791
12792 # echo "creating $dirpart/$file"
12793 echo '# dummy' > "$dirpart/$file"
12794 done
12795done
01473a49 12796 ;;
12797 gstdint.h )
12798if test "$GCC" = yes; then
12799 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
12800else
12801 echo "/* generated for $CC */" > tmp-stdint.h
12802fi
12803
12804sed 's/^ *//' >> tmp-stdint.h <<EOF
12805
12806 #ifndef GCC_GENERATED_STDINT_H
12807 #define GCC_GENERATED_STDINT_H 1
12808
12809 #include <sys/types.h>
12810EOF
12811
12812if test "$acx_cv_header_stdint" != stdint.h; then
12813 echo "#include <stddef.h>" >> tmp-stdint.h
12814fi
12815if test "$acx_cv_header_stdint" != stddef.h; then
12816 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
12817fi
12818
12819sed 's/^ *//' >> tmp-stdint.h <<EOF
12820 /* glibc uses these symbols as guards to prevent redefinitions. */
12821 #ifdef __int8_t_defined
12822 #define _INT8_T
12823 #define _INT16_T
12824 #define _INT32_T
12825 #endif
12826 #ifdef __uint32_t_defined
12827 #define _UINT32_T
12828 #endif
12829
12830EOF
12831
12832# ----------------- done header, emit basic int types -------------
12833if test "$acx_cv_header_stdint" = stddef.h; then
12834 sed 's/^ *//' >> tmp-stdint.h <<EOF
12835
12836 #ifndef _UINT8_T
12837 #define _UINT8_T
12838 typedef unsigned $acx_cv_type_int8_t uint8_t;
12839 #endif
12840
12841 #ifndef _UINT16_T
12842 #define _UINT16_T
12843 typedef unsigned $acx_cv_type_int16_t uint16_t;
12844 #endif
12845
12846 #ifndef _UINT32_T
12847 #define _UINT32_T
12848 typedef unsigned $acx_cv_type_int32_t uint32_t;
12849 #endif
12850
12851 #ifndef _INT8_T
12852 #define _INT8_T
12853 typedef $acx_cv_type_int8_t int8_t;
12854 #endif
12855
12856 #ifndef _INT16_T
12857 #define _INT16_T
12858 typedef $acx_cv_type_int16_t int16_t;
12859 #endif
12860
12861 #ifndef _INT32_T
12862 #define _INT32_T
12863 typedef $acx_cv_type_int32_t int32_t;
12864 #endif
12865EOF
12866elif test "$ac_cv_type_u_int32_t" = yes; then
12867 sed 's/^ *//' >> tmp-stdint.h <<EOF
12868
12869 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
12870 #ifndef _INT8_T
12871 #define _INT8_T
12872 #endif
12873 #ifndef _INT16_T
12874 #define _INT16_T
12875 #endif
12876 #ifndef _INT32_T
12877 #define _INT32_T
12878 #endif
12879
12880 #ifndef _UINT8_T
12881 #define _UINT8_T
12882 typedef u_int8_t uint8_t;
12883 #endif
12884
12885 #ifndef _UINT16_T
12886 #define _UINT16_T
12887 typedef u_int16_t uint16_t;
12888 #endif
12889
12890 #ifndef _UINT32_T
12891 #define _UINT32_T
12892 typedef u_int32_t uint32_t;
12893 #endif
12894EOF
12895else
12896 sed 's/^ *//' >> tmp-stdint.h <<EOF
12897
12898 /* Some systems have guard macros to prevent redefinitions, define them. */
12899 #ifndef _INT8_T
12900 #define _INT8_T
12901 #endif
12902 #ifndef _INT16_T
12903 #define _INT16_T
12904 #endif
12905 #ifndef _INT32_T
12906 #define _INT32_T
12907 #endif
12908 #ifndef _UINT8_T
12909 #define _UINT8_T
12910 #endif
12911 #ifndef _UINT16_T
12912 #define _UINT16_T
12913 #endif
12914 #ifndef _UINT32_T
12915 #define _UINT32_T
12916 #endif
12917EOF
12918fi
12919
12920# ------------- done basic int types, emit int64_t types ------------
12921if test "$ac_cv_type_uint64_t" = yes; then
12922 sed 's/^ *//' >> tmp-stdint.h <<EOF
12923
12924 /* system headers have good uint64_t and int64_t */
12925 #ifndef _INT64_T
12926 #define _INT64_T
12927 #endif
12928 #ifndef _UINT64_T
12929 #define _UINT64_T
12930 #endif
12931EOF
12932elif test "$ac_cv_type_u_int64_t" = yes; then
12933 sed 's/^ *//' >> tmp-stdint.h <<EOF
12934
12935 /* system headers have an u_int64_t (and int64_t) */
12936 #ifndef _INT64_T
12937 #define _INT64_T
12938 #endif
12939 #ifndef _UINT64_T
12940 #define _UINT64_T
12941 typedef u_int64_t uint64_t;
12942 #endif
12943EOF
12944elif test -n "$acx_cv_type_int64_t"; then
12945 sed 's/^ *//' >> tmp-stdint.h <<EOF
12946
12947 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
12948 #ifndef _INT64_T
12949 #define _INT64_T
12950 typedef $acx_cv_type_int64_t int64_t;
12951 #endif
12952 #ifndef _UINT64_T
12953 #define _UINT64_T
12954 typedef unsigned $acx_cv_type_int64_t uint64_t;
12955 #endif
12956EOF
12957else
12958 sed 's/^ *//' >> tmp-stdint.h <<EOF
12959
12960 /* some common heuristics for int64_t, using compiler-specific tests */
12961 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
12962 #ifndef _INT64_T
12963 #define _INT64_T
12964 typedef long long int64_t;
12965 #endif
12966 #ifndef _UINT64_T
12967 #define _UINT64_T
12968 typedef unsigned long long uint64_t;
12969 #endif
12970
12971 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
12972 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
12973 does not implement __extension__. But that compiler doesn't define
12974 __GNUC_MINOR__. */
12975 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
12976 # define __extension__
12977 # endif
12978
12979 # ifndef _INT64_T
12980 # define _INT64_T
12981 __extension__ typedef long long int64_t;
12982 # endif
12983 # ifndef _UINT64_T
12984 # define _UINT64_T
12985 __extension__ typedef unsigned long long uint64_t;
12986 # endif
12987
12988 #elif !defined __STRICT_ANSI__
12989 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
12990
12991 # ifndef _INT64_T
12992 # define _INT64_T
12993 typedef __int64 int64_t;
12994 # endif
12995 # ifndef _UINT64_T
12996 # define _UINT64_T
12997 typedef unsigned __int64 uint64_t;
12998 # endif
12999 # endif /* compiler */
13000
13001 #endif /* ANSI version */
13002EOF
13003fi
13004
13005# ------------- done int64_t types, emit intptr types ------------
13006if test "$ac_cv_type_uintptr_t" != yes; then
13007 sed 's/^ *//' >> tmp-stdint.h <<EOF
13008
13009 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
13010 typedef u$acx_cv_type_intptr_t uintptr_t;
13011 typedef $acx_cv_type_intptr_t intptr_t;
13012EOF
13013fi
13014
13015# ------------- done intptr types, emit int_least types ------------
13016if test "$ac_cv_type_int_least32_t" != yes; then
13017 sed 's/^ *//' >> tmp-stdint.h <<EOF
13018
13019 /* Define int_least types */
13020 typedef int8_t int_least8_t;
13021 typedef int16_t int_least16_t;
13022 typedef int32_t int_least32_t;
13023 #ifdef _INT64_T
13024 typedef int64_t int_least64_t;
13025 #endif
13026
13027 typedef uint8_t uint_least8_t;
13028 typedef uint16_t uint_least16_t;
13029 typedef uint32_t uint_least32_t;
13030 #ifdef _UINT64_T
13031 typedef uint64_t uint_least64_t;
13032 #endif
13033EOF
13034fi
13035
13036# ------------- done intptr types, emit int_fast types ------------
13037if test "$ac_cv_type_int_fast32_t" != yes; then
13038 sed 's/^ *//' >> tmp-stdint.h <<EOF
13039
13040 /* Define int_fast types. short is often slow */
13041 typedef int8_t int_fast8_t;
13042 typedef int int_fast16_t;
13043 typedef int32_t int_fast32_t;
13044 #ifdef _INT64_T
13045 typedef int64_t int_fast64_t;
13046 #endif
13047
13048 typedef uint8_t uint_fast8_t;
13049 typedef unsigned int uint_fast16_t;
13050 typedef uint32_t uint_fast32_t;
13051 #ifdef _UINT64_T
13052 typedef uint64_t uint_fast64_t;
13053 #endif
13054EOF
13055fi
13056
13057if test "$ac_cv_type_uintmax_t" != yes; then
13058 sed 's/^ *//' >> tmp-stdint.h <<EOF
13059
13060 /* Define intmax based on what we found */
13061 #ifdef _INT64_T
13062 typedef int64_t intmax_t;
13063 #else
13064 typedef long intmax_t;
13065 #endif
13066 #ifdef _UINT64_T
13067 typedef uint64_t uintmax_t;
13068 #else
13069 typedef unsigned long uintmax_t;
13070 #endif
13071EOF
13072fi
13073
13074sed 's/^ *//' >> tmp-stdint.h <<EOF
13075
13076 #endif /* GCC_GENERATED_STDINT_H */
13077EOF
13078
13079if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
13080 rm -f tmp-stdint.h
13081else
13082 mv -f tmp-stdint.h gstdint.h
13083fi
13084
1e8e9920 13085 ;;
13086 esac
13087done
13088_ACEOF
13089
13090cat >>$CONFIG_STATUS <<\_ACEOF
13091
13092{ (exit 0); exit 0; }
13093_ACEOF
13094chmod +x $CONFIG_STATUS
13095ac_clean_files=$ac_clean_files_save
13096
13097
13098# configure is writing to config.log, and then calls config.status.
13099# config.status does its own redirection, appending to config.log.
13100# Unfortunately, on DOS this fails, as config.log is still kept open
13101# by configure, so config.status won't be able to write to it; its
13102# output is simply discarded. So we exec the FD to /dev/null,
13103# effectively closing config.log, so it can be properly (re)opened and
13104# appended to by config.status. When coming back to configure, we
13105# need to make the FD available again.
13106if test "$no_create" != yes; then
13107 ac_cs_success=:
13108 ac_config_status_args=
13109 test "$silent" = yes &&
13110 ac_config_status_args="$ac_config_status_args --quiet"
13111 exec 5>/dev/null
13112 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13113 exec 5>>config.log
13114 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13115 # would make configure fail if this is the last instruction.
13116 $ac_cs_success || { (exit 1); exit 1; }
13117fi
13118