]> git.ipfire.org Git - thirdparty/gcc.git/blame - libgomp/configure
* dwarf2asm.c (dw2_asm_output_data): Don't generate RTL just
[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
107c3bbf 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar multi_basedir toolexecdir toolexeclibdir CC ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CFLAGS AR ac_ct_AR RANLIB ac_ct_RANLIB PERL LN_S LIBTOOL enable_shared enable_static MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT FC FCFLAGS LDFLAGS ac_ct_FC libtool_VERSION CPP CPPFLAGS EGREP SECTION_LDFLAGS OPT_LDFLAGS LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE config_path XCFLAGS XLDFLAGS link_gomp USE_FORTRAN_TRUE USE_FORTRAN_FALSE OMP_LOCK_SIZE OMP_LOCK_ALIGN OMP_NEST_LOCK_SIZE OMP_NEST_LOCK_ALIGN OMP_LOCK_KIND OMP_NEST_LOCK_KIND LIBOBJS LTLIBOBJS'
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
721 if test ! -r $srcdir/$ac_unique_file; then
722 srcdir=..
723 fi
724else
725 ac_srcdir_defaulted=no
726fi
727if test ! -r $srcdir/$ac_unique_file; then
728 if test "$ac_srcdir_defaulted" = yes; then
729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730 { (exit 1); exit 1; }; }
731 else
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733 { (exit 1); exit 1; }; }
734 fi
735fi
736(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738 { (exit 1); exit 1; }; }
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]
857 _g_switchUse the Linux futex system call
858 permit yes|no [default=yes]
859 --enable-multilib build many library versions (default)
860 --disable-dependency-tracking speeds up one-time build
861 --enable-dependency-tracking do not reject slow dependency extractors
862 --enable-shared=PKGS build shared libraries default=yes
863 --enable-static=PKGS build static libraries default=yes
864 --enable-fast-install=PKGS optimize for fast installation default=yes
865 --disable-libtool-lock avoid locking (might break parallel builds)
a263d1ab 866 --enable-maintainer-mode enable make rules and dependencies not useful
867 (and sometimes confusing) to the casual installer
1e8e9920 868 _g_switchUse thread-local storage
869 [default=yes]
870 --enable-symvers=STYLE enables symbol versioning of the shared library
871 [default=yes]
872
873Optional Packages:
874 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
875 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
876 --with-gnu-ld assume the C compiler uses GNU ld default=no
877 --with-pic try to use only PIC/non-PIC objects default=use both
878
879Some influential environment variables:
880 CC C compiler command
881 CFLAGS C compiler flags
882 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
883 nonstandard directory <lib dir>
884 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
885 headers in a nonstandard directory <include dir>
886 FC Fortran compiler command
887 FCFLAGS Fortran compiler flags
888 CPP C preprocessor
889
890Use these variables to override the choices made by `configure' or to help
891it to find libraries and programs with nonstandard names/locations.
892
893_ACEOF
894fi
895
896if test "$ac_init_help" = "recursive"; then
897 # If there are subdirs, report their specific --help.
898 ac_popdir=`pwd`
899 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
900 test -d $ac_dir || continue
901 ac_builddir=.
902
903if test "$ac_dir" != .; then
904 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
905 # A "../" for each directory in $ac_dir_suffix.
906 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
907else
908 ac_dir_suffix= ac_top_builddir=
909fi
910
911case $srcdir in
912 .) # No --srcdir option. We are building in place.
913 ac_srcdir=.
914 if test -z "$ac_top_builddir"; then
915 ac_top_srcdir=.
916 else
917 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
918 fi ;;
919 [\\/]* | ?:[\\/]* ) # Absolute path.
920 ac_srcdir=$srcdir$ac_dir_suffix;
921 ac_top_srcdir=$srcdir ;;
922 *) # Relative path.
923 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
924 ac_top_srcdir=$ac_top_builddir$srcdir ;;
925esac
926
927# Do not use `cd foo && pwd` to compute absolute paths, because
928# the directories may not exist.
929case `pwd` in
930.) ac_abs_builddir="$ac_dir";;
931*)
932 case "$ac_dir" in
933 .) ac_abs_builddir=`pwd`;;
934 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
935 *) ac_abs_builddir=`pwd`/"$ac_dir";;
936 esac;;
937esac
938case $ac_abs_builddir in
939.) ac_abs_top_builddir=${ac_top_builddir}.;;
940*)
941 case ${ac_top_builddir}. in
942 .) ac_abs_top_builddir=$ac_abs_builddir;;
943 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
944 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
945 esac;;
946esac
947case $ac_abs_builddir in
948.) ac_abs_srcdir=$ac_srcdir;;
949*)
950 case $ac_srcdir in
951 .) ac_abs_srcdir=$ac_abs_builddir;;
952 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
953 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
954 esac;;
955esac
956case $ac_abs_builddir in
957.) ac_abs_top_srcdir=$ac_top_srcdir;;
958*)
959 case $ac_top_srcdir in
960 .) ac_abs_top_srcdir=$ac_abs_builddir;;
961 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
962 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
963 esac;;
964esac
965
966 cd $ac_dir
967 # Check for guested configure; otherwise get Cygnus style configure.
968 if test -f $ac_srcdir/configure.gnu; then
969 echo
970 $SHELL $ac_srcdir/configure.gnu --help=recursive
971 elif test -f $ac_srcdir/configure; then
972 echo
973 $SHELL $ac_srcdir/configure --help=recursive
974 elif test -f $ac_srcdir/configure.ac ||
975 test -f $ac_srcdir/configure.in; then
976 echo
977 $ac_configure --help
978 else
979 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
980 fi
59da30e1 981 cd $ac_popdir
1e8e9920 982 done
983fi
984
985test -n "$ac_init_help" && exit 0
986if $ac_init_version; then
987 cat <<\_ACEOF
988GNU OpenMP Runtime Library configure 1.0
989generated by GNU Autoconf 2.59
990
991Copyright (C) 2003 Free Software Foundation, Inc.
992This configure script is free software; the Free Software Foundation
993gives unlimited permission to copy, distribute and modify it.
994_ACEOF
995 exit 0
996fi
997exec 5>config.log
998cat >&5 <<_ACEOF
999This file contains any messages produced by compilers while
1000running configure, to aid debugging if configure makes a mistake.
1001
1002It was created by GNU OpenMP Runtime Library $as_me 1.0, which was
1003generated by GNU Autoconf 2.59. Invocation command line was
1004
1005 $ $0 $@
1006
1007_ACEOF
1008{
1009cat <<_ASUNAME
1010## --------- ##
1011## Platform. ##
1012## --------- ##
1013
1014hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1015uname -m = `(uname -m) 2>/dev/null || echo unknown`
1016uname -r = `(uname -r) 2>/dev/null || echo unknown`
1017uname -s = `(uname -s) 2>/dev/null || echo unknown`
1018uname -v = `(uname -v) 2>/dev/null || echo unknown`
1019
1020/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1021/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1022
1023/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1024/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1025/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1026hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1027/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1028/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1029/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1030
1031_ASUNAME
1032
1033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1034for as_dir in $PATH
1035do
1036 IFS=$as_save_IFS
1037 test -z "$as_dir" && as_dir=.
1038 echo "PATH: $as_dir"
1039done
1040
1041} >&5
1042
1043cat >&5 <<_ACEOF
1044
1045
1046## ----------- ##
1047## Core tests. ##
1048## ----------- ##
1049
1050_ACEOF
1051
1052
1053# Keep a trace of the command line.
1054# Strip out --no-create and --no-recursion so they do not pile up.
1055# Strip out --silent because we don't want to record it for future runs.
1056# Also quote any args containing shell meta-characters.
1057# Make two passes to allow for proper duplicate-argument suppression.
1058ac_configure_args=
1059ac_configure_args0=
1060ac_configure_args1=
1061ac_sep=
1062ac_must_keep_next=false
1063for ac_pass in 1 2
1064do
1065 for ac_arg
1066 do
1067 case $ac_arg in
1068 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1069 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1070 | -silent | --silent | --silen | --sile | --sil)
1071 continue ;;
1072 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1073 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1074 esac
1075 case $ac_pass in
1076 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1077 2)
1078 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1079 if test $ac_must_keep_next = true; then
1080 ac_must_keep_next=false # Got value, back to normal.
1081 else
1082 case $ac_arg in
1083 *=* | --config-cache | -C | -disable-* | --disable-* \
1084 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1085 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1086 | -with-* | --with-* | -without-* | --without-* | --x)
1087 case "$ac_configure_args0 " in
1088 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1089 esac
1090 ;;
1091 -* ) ac_must_keep_next=true ;;
1092 esac
1093 fi
1094 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1095 # Get rid of the leading space.
1096 ac_sep=" "
1097 ;;
1098 esac
1099 done
1100done
1101$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1102$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1103
1104# When interrupted or exit'd, cleanup temporary files, and complete
1105# config.log. We remove comments because anyway the quotes in there
1106# would cause problems or look ugly.
1107# WARNING: Be sure not to use single quotes in there, as some shells,
1108# such as our DU 5.0 friend, will then `close' the trap.
1109trap 'exit_status=$?
1110 # Save into config.log some information that might help in debugging.
1111 {
1112 echo
1113
1114 cat <<\_ASBOX
1115## ---------------- ##
1116## Cache variables. ##
1117## ---------------- ##
1118_ASBOX
1119 echo
1120 # The following way of writing the cache mishandles newlines in values,
1121{
1122 (set) 2>&1 |
1123 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1124 *ac_space=\ *)
1125 sed -n \
1126 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1127 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1128 ;;
1129 *)
1130 sed -n \
1131 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1132 ;;
1133 esac;
1134}
1135 echo
1136
1137 cat <<\_ASBOX
1138## ----------------- ##
1139## Output variables. ##
1140## ----------------- ##
1141_ASBOX
1142 echo
1143 for ac_var in $ac_subst_vars
1144 do
1145 eval ac_val=$`echo $ac_var`
1146 echo "$ac_var='"'"'$ac_val'"'"'"
1147 done | sort
1148 echo
1149
1150 if test -n "$ac_subst_files"; then
1151 cat <<\_ASBOX
1152## ------------- ##
1153## Output files. ##
1154## ------------- ##
1155_ASBOX
1156 echo
1157 for ac_var in $ac_subst_files
1158 do
1159 eval ac_val=$`echo $ac_var`
1160 echo "$ac_var='"'"'$ac_val'"'"'"
1161 done | sort
1162 echo
1163 fi
1164
1165 if test -s confdefs.h; then
1166 cat <<\_ASBOX
1167## ----------- ##
1168## confdefs.h. ##
1169## ----------- ##
1170_ASBOX
1171 echo
1172 sed "/^$/d" confdefs.h | sort
1173 echo
1174 fi
1175 test "$ac_signal" != 0 &&
1176 echo "$as_me: caught signal $ac_signal"
1177 echo "$as_me: exit $exit_status"
1178 } >&5
1179 rm -f core *.core &&
1180 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1181 exit $exit_status
1182 ' 0
1183for ac_signal in 1 2 13 15; do
1184 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1185done
1186ac_signal=0
1187
1188# confdefs.h avoids OS command line length limits that DEFS can exceed.
1189rm -rf conftest* confdefs.h
1190# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1191echo >confdefs.h
1192
1193# Predefined preprocessor variables.
1194
1195cat >>confdefs.h <<_ACEOF
1196#define PACKAGE_NAME "$PACKAGE_NAME"
1197_ACEOF
1198
1199
1200cat >>confdefs.h <<_ACEOF
1201#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1202_ACEOF
1203
1204
1205cat >>confdefs.h <<_ACEOF
1206#define PACKAGE_VERSION "$PACKAGE_VERSION"
1207_ACEOF
1208
1209
1210cat >>confdefs.h <<_ACEOF
1211#define PACKAGE_STRING "$PACKAGE_STRING"
1212_ACEOF
1213
1214
1215cat >>confdefs.h <<_ACEOF
1216#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1217_ACEOF
1218
1219
1220# Let the site file select an alternate cache file if it wants to.
1221# Prefer explicitly selected file to automatically selected ones.
1222if test -z "$CONFIG_SITE"; then
1223 if test "x$prefix" != xNONE; then
1224 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1225 else
1226 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1227 fi
1228fi
1229for ac_site_file in $CONFIG_SITE; do
1230 if test -r "$ac_site_file"; then
1231 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1232echo "$as_me: loading site script $ac_site_file" >&6;}
1233 sed 's/^/| /' "$ac_site_file" >&5
1234 . "$ac_site_file"
1235 fi
1236done
1237
1238if test -r "$cache_file"; then
1239 # Some versions of bash will fail to source /dev/null (special
1240 # files actually), so we avoid doing that.
1241 if test -f "$cache_file"; then
1242 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1243echo "$as_me: loading cache $cache_file" >&6;}
1244 case $cache_file in
1245 [\\/]* | ?:[\\/]* ) . $cache_file;;
1246 *) . ./$cache_file;;
1247 esac
1248 fi
1249else
1250 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1251echo "$as_me: creating cache $cache_file" >&6;}
1252 >$cache_file
1253fi
1254
1255# Check that the precious variables saved in the cache have kept the same
1256# value.
1257ac_cache_corrupted=false
1258for ac_var in `(set) 2>&1 |
1259 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1260 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1261 eval ac_new_set=\$ac_env_${ac_var}_set
1262 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1263 eval ac_new_val="\$ac_env_${ac_var}_value"
1264 case $ac_old_set,$ac_new_set in
1265 set,)
1266 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1267echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1268 ac_cache_corrupted=: ;;
1269 ,set)
1270 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1271echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1272 ac_cache_corrupted=: ;;
1273 ,);;
1274 *)
1275 if test "x$ac_old_val" != "x$ac_new_val"; then
1276 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1277echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1278 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1279echo "$as_me: former value: $ac_old_val" >&2;}
1280 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1281echo "$as_me: current value: $ac_new_val" >&2;}
1282 ac_cache_corrupted=:
1283 fi;;
1284 esac
1285 # Pass precious variables to config.status.
1286 if test "$ac_new_set" = set; then
1287 case $ac_new_val in
1288 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1289 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1290 *) ac_arg=$ac_var=$ac_new_val ;;
1291 esac
1292 case " $ac_configure_args " in
1293 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1294 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1295 esac
1296 fi
1297done
1298if $ac_cache_corrupted; then
1299 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1300echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1301 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1302echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1303 { (exit 1); exit 1; }; }
1304fi
1305
1306ac_ext=c
1307ac_cpp='$CPP $CPPFLAGS'
1308ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1309ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1310ac_compiler_gnu=$ac_cv_c_compiler_gnu
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338 ac_config_headers="$ac_config_headers config.h"
1339
1340
1341# -------
1342# Options
1343# -------
1344
1345echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5
1346echo $ECHO_N "checking for --enable-version-specific-runtime-libs... $ECHO_C" >&6
1347 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1348if test "${enable_version_specific_runtime_libs+set}" = set; then
1349 enableval="$enable_version_specific_runtime_libs"
1350
1351 case "$enableval" in
1352 yes|no) ;;
1353 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific-runtime-libs" >&5
1354echo "$as_me: error: Unknown argument to enable/disable version-specific-runtime-libs" >&2;}
1355 { (exit 1); exit 1; }; } ;;
1356 esac
1357
1358else
1359 enable_version_specific_runtime_libs=no
1360fi;
1361
1362echo "$as_me:$LINENO: result: $enable_version_specific_runtime_libs" >&5
1363echo "${ECHO_T}$enable_version_specific_runtime_libs" >&6
1364
1365echo "$as_me:$LINENO: checking for --enable-linux-futex" >&5
1366echo $ECHO_N "checking for --enable-linux-futex... $ECHO_C" >&6
1367 # Check whether --enable-linux-futex or --disable-linux-futex was given.
1368if test "${enable_linux_futex+set}" = set; then
1369 enableval="$enable_linux_futex"
1370
1371 case "$enableval" in
1372 yes|no) ;;
1373 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable linux-futex must be yes or no" >&5
1374echo "$as_me: error: Argument to enable/disable linux-futex must be yes or no" >&2;}
1375 { (exit 1); exit 1; }; } ;;
1376 esac
1377
1378else
1379 enable_linux_futex=yes
1380fi;
1381
1382echo "$as_me:$LINENO: result: $enable_linux_futex" >&5
1383echo "${ECHO_T}$enable_linux_futex" >&6
1384
1385# -------
1386# -------
1387
1388# Gets build, host, target, *_vendor, *_cpu, *_os, etc.
1389#
1390# You will slowly go insane if you do not grok the following fact: when
1391# building this library, the top-level /target/ becomes the library's /host/.
1392#
1393# configure then causes --target to default to --host, exactly like any
1394# other package using autoconf. Therefore, 'target' and 'host' will
1395# always be the same. This makes sense both for native and cross compilers
1396# just think about it for a little while. :-)
1397#
1398# Also, if this library is being configured as part of a cross compiler, the
1399# top-level configure script will pass the "real" host as $with_cross_host.
1400#
1401# Do not delete or change the following two lines. For why, see
1402# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
1403ac_aux_dir=
1404for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1405 if test -f $ac_dir/install-sh; then
1406 ac_aux_dir=$ac_dir
1407 ac_install_sh="$ac_aux_dir/install-sh -c"
1408 break
1409 elif test -f $ac_dir/install.sh; then
1410 ac_aux_dir=$ac_dir
1411 ac_install_sh="$ac_aux_dir/install.sh -c"
1412 break
1413 elif test -f $ac_dir/shtool; then
1414 ac_aux_dir=$ac_dir
1415 ac_install_sh="$ac_aux_dir/shtool install -c"
1416 break
1417 fi
1418done
1419if test -z "$ac_aux_dir"; then
1420 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1421echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1422 { (exit 1); exit 1; }; }
1423fi
1424ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1425ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1426ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1427
1428# Make sure we can run config.sub.
1429$ac_config_sub sun4 >/dev/null 2>&1 ||
1430 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1431echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1432 { (exit 1); exit 1; }; }
1433
1434echo "$as_me:$LINENO: checking build system type" >&5
1435echo $ECHO_N "checking build system type... $ECHO_C" >&6
1436if test "${ac_cv_build+set}" = set; then
1437 echo $ECHO_N "(cached) $ECHO_C" >&6
1438else
1439 ac_cv_build_alias=$build_alias
1440test -z "$ac_cv_build_alias" &&
1441 ac_cv_build_alias=`$ac_config_guess`
1442test -z "$ac_cv_build_alias" &&
1443 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1444echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1445 { (exit 1); exit 1; }; }
1446ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1447 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1448echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1449 { (exit 1); exit 1; }; }
1450
1451fi
1452echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1453echo "${ECHO_T}$ac_cv_build" >&6
1454build=$ac_cv_build
1455build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1456build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1457build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1458
1459
1460echo "$as_me:$LINENO: checking host system type" >&5
1461echo $ECHO_N "checking host system type... $ECHO_C" >&6
1462if test "${ac_cv_host+set}" = set; then
1463 echo $ECHO_N "(cached) $ECHO_C" >&6
1464else
1465 ac_cv_host_alias=$host_alias
1466test -z "$ac_cv_host_alias" &&
1467 ac_cv_host_alias=$ac_cv_build_alias
1468ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1469 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1470echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1471 { (exit 1); exit 1; }; }
1472
1473fi
1474echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1475echo "${ECHO_T}$ac_cv_host" >&6
1476host=$ac_cv_host
1477host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1478host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1479host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1480
1481
1482echo "$as_me:$LINENO: checking target system type" >&5
1483echo $ECHO_N "checking target system type... $ECHO_C" >&6
1484if test "${ac_cv_target+set}" = set; then
1485 echo $ECHO_N "(cached) $ECHO_C" >&6
1486else
1487 ac_cv_target_alias=$target_alias
1488test "x$ac_cv_target_alias" = "x" &&
1489 ac_cv_target_alias=$ac_cv_host_alias
1490ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1491 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1492echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1493 { (exit 1); exit 1; }; }
1494
1495fi
1496echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1497echo "${ECHO_T}$ac_cv_target" >&6
1498target=$ac_cv_target
1499target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1500target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1501target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1502
1503
1504# The aliases save the names the user supplied, while $host etc.
1505# will get canonicalized.
1506test -n "$target_alias" &&
1507 test "$program_prefix$program_suffix$program_transform_name" = \
1508 NONENONEs,x,x, &&
1509 program_prefix=${target_alias}-
1510target_alias=${target_alias-$host_alias}
1511
1512# Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
1513# following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
1514# 1.9.0: minimum required version
1515# no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
1516# of other PACKAGE_* variables will, however, and there's nothing
1517# we can do about that; they come from AC_INIT).
1518# foreign: we don't follow the normal rules for GNU packages (no COPYING
1519# file in the top srcdir, etc, etc), so stop complaining.
1520# no-dependencies: turns off auto dependency generation (just for now)
1521# -Wall: turns on all automake warnings...
1522# -Wno-portability: ...except this one, since GNU make is required.
1523# -Wno-override: ... and this one, since we do want this in testsuite.
1524am__api_version="1.9"
1525# Find a good install program. We prefer a C program (faster),
1526# so one script is as good as another. But avoid the broken or
1527# incompatible versions:
1528# SysV /etc/install, /usr/sbin/install
1529# SunOS /usr/etc/install
1530# IRIX /sbin/install
1531# AIX /bin/install
1532# AmigaOS /C/install, which installs bootblocks on floppy discs
1533# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1534# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1535# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1536# OS/2's system install, which has a completely different semantic
1537# ./install, which can be erroneously created by make from ./install.sh.
1538echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1539echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1540if test -z "$INSTALL"; then
1541if test "${ac_cv_path_install+set}" = set; then
1542 echo $ECHO_N "(cached) $ECHO_C" >&6
1543else
1544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1545for as_dir in $PATH
1546do
1547 IFS=$as_save_IFS
1548 test -z "$as_dir" && as_dir=.
1549 # Account for people who put trailing slashes in PATH elements.
1550case $as_dir/ in
1551 ./ | .// | /cC/* | \
1552 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1553 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1554 /usr/ucb/* ) ;;
1555 *)
1556 # OSF1 and SCO ODT 3.0 have their own names for install.
1557 # Don't use installbsd from OSF since it installs stuff as root
1558 # by default.
1559 for ac_prog in ginstall scoinst install; do
1560 for ac_exec_ext in '' $ac_executable_extensions; do
1561 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1562 if test $ac_prog = install &&
1563 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1564 # AIX install. It has an incompatible calling convention.
1565 :
1566 elif test $ac_prog = install &&
1567 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1568 # program-specific install script used by HP pwplus--don't use.
1569 :
1570 else
1571 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1572 break 3
1573 fi
1574 fi
1575 done
1576 done
1577 ;;
1578esac
1579done
1580
1581
1582fi
1583 if test "${ac_cv_path_install+set}" = set; then
1584 INSTALL=$ac_cv_path_install
1585 else
1586 # As a last resort, use the slow shell script. We don't cache a
1587 # path for INSTALL within a source directory, because that will
1588 # break other packages using the cache if that directory is
1589 # removed, or if the path is relative.
1590 INSTALL=$ac_install_sh
1591 fi
1592fi
1593echo "$as_me:$LINENO: result: $INSTALL" >&5
1594echo "${ECHO_T}$INSTALL" >&6
1595
1596# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1597# It thinks the first close brace ends the variable substitution.
1598test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1599
1600test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1601
1602test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1603
1604echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1605echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1606# Just in case
1607sleep 1
1608echo timestamp > conftest.file
1609# Do `set' in a subshell so we don't clobber the current shell's
1610# arguments. Must try -L first in case configure is actually a
1611# symlink; some systems play weird games with the mod time of symlinks
1612# (eg FreeBSD returns the mod time of the symlink's containing
1613# directory).
1614if (
1615 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1616 if test "$*" = "X"; then
1617 # -L didn't work.
1618 set X `ls -t $srcdir/configure conftest.file`
1619 fi
1620 rm -f conftest.file
1621 if test "$*" != "X $srcdir/configure conftest.file" \
1622 && test "$*" != "X conftest.file $srcdir/configure"; then
1623
1624 # If neither matched, then we have a broken ls. This can happen
1625 # if, for instance, CONFIG_SHELL is bash and it inherits a
1626 # broken ls alias from the environment. This has actually
1627 # happened. Such a system could not be considered "sane".
1628 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1629alias in your environment" >&5
1630echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1631alias in your environment" >&2;}
1632 { (exit 1); exit 1; }; }
1633 fi
1634
1635 test "$2" = conftest.file
1636 )
1637then
1638 # Ok.
1639 :
1640else
1641 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1642Check your system clock" >&5
1643echo "$as_me: error: newly created file is older than distributed files!
1644Check your system clock" >&2;}
1645 { (exit 1); exit 1; }; }
1646fi
1647echo "$as_me:$LINENO: result: yes" >&5
1648echo "${ECHO_T}yes" >&6
1649test "$program_prefix" != NONE &&
1650 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1651# Use a double $ so make ignores it.
1652test "$program_suffix" != NONE &&
1653 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1654# Double any \ or $. echo might interpret backslashes.
1655# By default was `s,x,x', remove it if useless.
1656cat <<\_ACEOF >conftest.sed
1657s/[\\$]/&&/g;s/;s,x,x,$//
1658_ACEOF
1659program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1660rm conftest.sed
1661
1662# expand $ac_aux_dir to an absolute path
1663am_aux_dir=`cd $ac_aux_dir && pwd`
1664
1665test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1666# Use eval to expand $SHELL
1667if eval "$MISSING --run true"; then
1668 am_missing_run="$MISSING --run "
1669else
1670 am_missing_run=
1671 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1672echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1673fi
1674
1675if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1676 # We used to keeping the `.' as first argument, in order to
1677 # allow $(mkdir_p) to be used without argument. As in
1678 # $(mkdir_p) $(somedir)
1679 # where $(somedir) is conditionally defined. However this is wrong
1680 # for two reasons:
1681 # 1. if the package is installed by a user who cannot write `.'
1682 # make install will fail,
1683 # 2. the above comment should most certainly read
1684 # $(mkdir_p) $(DESTDIR)$(somedir)
1685 # so it does not work when $(somedir) is undefined and
1686 # $(DESTDIR) is not.
1687 # To support the latter case, we have to write
1688 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1689 # so the `.' trick is pointless.
1690 mkdir_p='mkdir -p --'
1691else
1692 # On NextStep and OpenStep, the `mkdir' command does not
1693 # recognize any option. It will interpret all options as
1694 # directories to create, and then abort because `.' already
1695 # exists.
1696 for d in ./-p ./--version;
1697 do
1698 test -d $d && rmdir $d
1699 done
1700 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1701 if test -f "$ac_aux_dir/mkinstalldirs"; then
1702 mkdir_p='$(mkinstalldirs)'
1703 else
1704 mkdir_p='$(install_sh) -d'
1705 fi
1706fi
1707
1708for ac_prog in gawk mawk nawk awk
1709do
1710 # Extract the first word of "$ac_prog", so it can be a program name with args.
1711set dummy $ac_prog; ac_word=$2
1712echo "$as_me:$LINENO: checking for $ac_word" >&5
1713echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1714if test "${ac_cv_prog_AWK+set}" = set; then
1715 echo $ECHO_N "(cached) $ECHO_C" >&6
1716else
1717 if test -n "$AWK"; then
1718 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1719else
1720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1721for as_dir in $PATH
1722do
1723 IFS=$as_save_IFS
1724 test -z "$as_dir" && as_dir=.
1725 for ac_exec_ext in '' $ac_executable_extensions; do
1726 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1727 ac_cv_prog_AWK="$ac_prog"
1728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1729 break 2
1730 fi
1731done
1732done
1733
1734fi
1735fi
1736AWK=$ac_cv_prog_AWK
1737if test -n "$AWK"; then
1738 echo "$as_me:$LINENO: result: $AWK" >&5
1739echo "${ECHO_T}$AWK" >&6
1740else
1741 echo "$as_me:$LINENO: result: no" >&5
1742echo "${ECHO_T}no" >&6
1743fi
1744
1745 test -n "$AWK" && break
1746done
1747
1748echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1749echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1750set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1751if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1752 echo $ECHO_N "(cached) $ECHO_C" >&6
1753else
1754 cat >conftest.make <<\_ACEOF
1755all:
1756 @echo 'ac_maketemp="$(MAKE)"'
1757_ACEOF
1758# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1759eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1760if test -n "$ac_maketemp"; then
1761 eval ac_cv_prog_make_${ac_make}_set=yes
1762else
1763 eval ac_cv_prog_make_${ac_make}_set=no
1764fi
1765rm -f conftest.make
1766fi
1767if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1768 echo "$as_me:$LINENO: result: yes" >&5
1769echo "${ECHO_T}yes" >&6
1770 SET_MAKE=
1771else
1772 echo "$as_me:$LINENO: result: no" >&5
1773echo "${ECHO_T}no" >&6
1774 SET_MAKE="MAKE=${MAKE-make}"
1775fi
1776
1777rm -rf .tst 2>/dev/null
1778mkdir .tst 2>/dev/null
1779if test -d .tst; then
1780 am__leading_dot=.
1781else
1782 am__leading_dot=_
1783fi
1784rmdir .tst 2>/dev/null
1785
1786# test to see if srcdir already configured
1787if test "`cd $srcdir && pwd`" != "`pwd`" &&
1788 test -f $srcdir/config.status; then
1789 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1790echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1791 { (exit 1); exit 1; }; }
1792fi
1793
1794# test whether we have cygpath
1795if test -z "$CYGPATH_W"; then
1796 if (cygpath --version) >/dev/null 2>/dev/null; then
1797 CYGPATH_W='cygpath -w'
1798 else
1799 CYGPATH_W=echo
1800 fi
1801fi
1802
1803
1804# Define the identity of the package.
1805 PACKAGE='libgomp'
1806 VERSION='1.0'
1807
1808
1809cat >>confdefs.h <<_ACEOF
1810#define PACKAGE "$PACKAGE"
1811_ACEOF
1812
1813
1814cat >>confdefs.h <<_ACEOF
1815#define VERSION "$VERSION"
1816_ACEOF
1817
1818# Some tools Automake needs.
1819
1820ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1821
1822
1823AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1824
1825
1826AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1827
1828
1829AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1830
1831
1832MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1833
1834install_sh=${install_sh-"$am_aux_dir/install-sh"}
1835
1836# Installed binaries are usually stripped using `strip' when the user
1837# run `make install-strip'. However `strip' might not be the right
1838# tool to use in cross-compilation environments, therefore Automake
1839# will honor the `STRIP' environment variable to overrule this program.
1840if test "$cross_compiling" != no; then
1841 if test -n "$ac_tool_prefix"; then
1842 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1843set dummy ${ac_tool_prefix}strip; ac_word=$2
1844echo "$as_me:$LINENO: checking for $ac_word" >&5
1845echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1846if test "${ac_cv_prog_STRIP+set}" = set; then
1847 echo $ECHO_N "(cached) $ECHO_C" >&6
1848else
1849 if test -n "$STRIP"; then
1850 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1851else
1852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1853for as_dir in $PATH
1854do
1855 IFS=$as_save_IFS
1856 test -z "$as_dir" && as_dir=.
1857 for ac_exec_ext in '' $ac_executable_extensions; do
1858 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1859 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1861 break 2
1862 fi
1863done
1864done
1865
1866fi
1867fi
1868STRIP=$ac_cv_prog_STRIP
1869if test -n "$STRIP"; then
1870 echo "$as_me:$LINENO: result: $STRIP" >&5
1871echo "${ECHO_T}$STRIP" >&6
1872else
1873 echo "$as_me:$LINENO: result: no" >&5
1874echo "${ECHO_T}no" >&6
1875fi
1876
1877fi
1878if test -z "$ac_cv_prog_STRIP"; then
1879 ac_ct_STRIP=$STRIP
1880 # Extract the first word of "strip", so it can be a program name with args.
1881set dummy 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_ac_ct_STRIP+set}" = set; then
1885 echo $ECHO_N "(cached) $ECHO_C" >&6
1886else
1887 if test -n "$ac_ct_STRIP"; then
1888 ac_cv_prog_ac_ct_STRIP="$ac_ct_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_ac_ct_STRIP="strip"
1898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1899 break 2
1900 fi
1901done
1902done
1903
1904 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1905fi
1906fi
1907ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1908if test -n "$ac_ct_STRIP"; then
1909 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1910echo "${ECHO_T}$ac_ct_STRIP" >&6
1911else
1912 echo "$as_me:$LINENO: result: no" >&5
1913echo "${ECHO_T}no" >&6
1914fi
1915
1916 STRIP=$ac_ct_STRIP
1917else
1918 STRIP="$ac_cv_prog_STRIP"
1919fi
1920
1921fi
1922INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1923
1924# We need awk for the "check" target. The system "awk" is bad on
1925# some platforms.
1926# Always define AMTAR for backward compatibility.
1927
1928AMTAR=${AMTAR-"${am_missing_run}tar"}
1929
1930am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1931
1932
1933
1934
1935
1936# Default to --enable-multilib
1937# Check whether --enable-multilib or --disable-multilib was given.
1938if test "${enable_multilib+set}" = set; then
1939 enableval="$enable_multilib"
1940 case "$enableval" in
1941 yes) multilib=yes ;;
1942 no) multilib=no ;;
1943 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1944echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1945 { (exit 1); exit 1; }; } ;;
1946 esac
1947else
1948 multilib=yes
1949fi;
1950
1951# We may get other options which we leave undocumented:
1952# --with-target-subdir, --with-multisrctop, --with-multisubdir
1953# See config-ml.in if you want the gory details.
1954
1955if test "$srcdir" = "."; then
1956 if test "$with_target_subdir" != "."; then
1957 multi_basedir="$srcdir/$with_multisrctop../.."
1958 else
1959 multi_basedir="$srcdir/$with_multisrctop.."
1960 fi
1961else
1962 multi_basedir="$srcdir/.."
1963fi
1964
1965
1966 ac_config_commands="$ac_config_commands default-1"
1967
1968
1969# Calculate toolexeclibdir
1970# Also toolexecdir, though it's only used in toolexeclibdir
1971case ${enable_version_specific_runtime_libs} in
1972 yes)
1973 # Need the gcc compiler version to know where to install libraries
1974 # and header files if --enable-version-specific-runtime-libs option
1975 # is selected.
1976 toolexecdir='$(libdir)/gcc/$(target_alias)'
1977 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
1978 ;;
1979 no)
1980 if test -n "$with_cross_host" &&
1981 test x"$with_cross_host" != x"no"; then
1982 # Install a library built with a cross compiler in tooldir, not libdir.
1983 toolexecdir='$(exec_prefix)/$(target_alias)'
1984 toolexeclibdir='$(toolexecdir)/lib'
1985 else
1986 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
1987 toolexeclibdir='$(libdir)'
1988 fi
1989 multi_os_directory=`$CC -print-multi-os-directory`
1990 case $multi_os_directory in
1991 .) ;; # Avoid trailing /.
1992 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
1993 esac
1994 ;;
1995esac
1996
1997
1998
1999# Check the compiler.
2000# The same as in boehm-gc and libstdc++. Have to borrow it from there.
2001# We must force CC to /not/ be precious variables; otherwise
2002# the wrong, non-multilib-adjusted value will be used in multilibs.
2003# As a side effect, we have to subst CFLAGS ourselves.
2004
2005
2006
2007ac_ext=c
2008ac_cpp='$CPP $CPPFLAGS'
2009ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2010ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2011ac_compiler_gnu=$ac_cv_c_compiler_gnu
2012if test -n "$ac_tool_prefix"; then
2013 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2014set dummy ${ac_tool_prefix}gcc; ac_word=$2
2015echo "$as_me:$LINENO: checking for $ac_word" >&5
2016echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2017if test "${ac_cv_prog_CC+set}" = set; then
2018 echo $ECHO_N "(cached) $ECHO_C" >&6
2019else
2020 if test -n "$CC"; then
2021 ac_cv_prog_CC="$CC" # Let the user override the test.
2022else
2023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2024for as_dir in $PATH
2025do
2026 IFS=$as_save_IFS
2027 test -z "$as_dir" && as_dir=.
2028 for ac_exec_ext in '' $ac_executable_extensions; do
2029 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2030 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2032 break 2
2033 fi
2034done
2035done
2036
2037fi
2038fi
2039CC=$ac_cv_prog_CC
2040if test -n "$CC"; then
2041 echo "$as_me:$LINENO: result: $CC" >&5
2042echo "${ECHO_T}$CC" >&6
2043else
2044 echo "$as_me:$LINENO: result: no" >&5
2045echo "${ECHO_T}no" >&6
2046fi
2047
2048fi
2049if test -z "$ac_cv_prog_CC"; then
2050 ac_ct_CC=$CC
2051 # Extract the first word of "gcc", so it can be a program name with args.
2052set dummy gcc; ac_word=$2
2053echo "$as_me:$LINENO: checking for $ac_word" >&5
2054echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2055if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2056 echo $ECHO_N "(cached) $ECHO_C" >&6
2057else
2058 if test -n "$ac_ct_CC"; then
2059 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2060else
2061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2062for as_dir in $PATH
2063do
2064 IFS=$as_save_IFS
2065 test -z "$as_dir" && as_dir=.
2066 for ac_exec_ext in '' $ac_executable_extensions; do
2067 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2068 ac_cv_prog_ac_ct_CC="gcc"
2069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2070 break 2
2071 fi
2072done
2073done
2074
2075fi
2076fi
2077ac_ct_CC=$ac_cv_prog_ac_ct_CC
2078if test -n "$ac_ct_CC"; then
2079 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2080echo "${ECHO_T}$ac_ct_CC" >&6
2081else
2082 echo "$as_me:$LINENO: result: no" >&5
2083echo "${ECHO_T}no" >&6
2084fi
2085
2086 CC=$ac_ct_CC
2087else
2088 CC="$ac_cv_prog_CC"
2089fi
2090
2091if test -z "$CC"; then
2092 if test -n "$ac_tool_prefix"; then
2093 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2094set dummy ${ac_tool_prefix}cc; ac_word=$2
2095echo "$as_me:$LINENO: checking for $ac_word" >&5
2096echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2097if test "${ac_cv_prog_CC+set}" = set; then
2098 echo $ECHO_N "(cached) $ECHO_C" >&6
2099else
2100 if test -n "$CC"; then
2101 ac_cv_prog_CC="$CC" # Let the user override the test.
2102else
2103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2104for as_dir in $PATH
2105do
2106 IFS=$as_save_IFS
2107 test -z "$as_dir" && as_dir=.
2108 for ac_exec_ext in '' $ac_executable_extensions; do
2109 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2110 ac_cv_prog_CC="${ac_tool_prefix}cc"
2111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2112 break 2
2113 fi
2114done
2115done
2116
2117fi
2118fi
2119CC=$ac_cv_prog_CC
2120if test -n "$CC"; then
2121 echo "$as_me:$LINENO: result: $CC" >&5
2122echo "${ECHO_T}$CC" >&6
2123else
2124 echo "$as_me:$LINENO: result: no" >&5
2125echo "${ECHO_T}no" >&6
2126fi
2127
2128fi
2129if test -z "$ac_cv_prog_CC"; then
2130 ac_ct_CC=$CC
2131 # Extract the first word of "cc", so it can be a program name with args.
2132set dummy cc; ac_word=$2
2133echo "$as_me:$LINENO: checking for $ac_word" >&5
2134echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2135if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2136 echo $ECHO_N "(cached) $ECHO_C" >&6
2137else
2138 if test -n "$ac_ct_CC"; then
2139 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2140else
2141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2142for as_dir in $PATH
2143do
2144 IFS=$as_save_IFS
2145 test -z "$as_dir" && as_dir=.
2146 for ac_exec_ext in '' $ac_executable_extensions; do
2147 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2148 ac_cv_prog_ac_ct_CC="cc"
2149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2150 break 2
2151 fi
2152done
2153done
2154
2155fi
2156fi
2157ac_ct_CC=$ac_cv_prog_ac_ct_CC
2158if test -n "$ac_ct_CC"; then
2159 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2160echo "${ECHO_T}$ac_ct_CC" >&6
2161else
2162 echo "$as_me:$LINENO: result: no" >&5
2163echo "${ECHO_T}no" >&6
2164fi
2165
2166 CC=$ac_ct_CC
2167else
2168 CC="$ac_cv_prog_CC"
2169fi
2170
2171fi
2172if test -z "$CC"; then
2173 # Extract the first word of "cc", so it can be a program name with args.
2174set dummy cc; ac_word=$2
2175echo "$as_me:$LINENO: checking for $ac_word" >&5
2176echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2177if test "${ac_cv_prog_CC+set}" = set; then
2178 echo $ECHO_N "(cached) $ECHO_C" >&6
2179else
2180 if test -n "$CC"; then
2181 ac_cv_prog_CC="$CC" # Let the user override the test.
2182else
2183 ac_prog_rejected=no
2184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2185for as_dir in $PATH
2186do
2187 IFS=$as_save_IFS
2188 test -z "$as_dir" && as_dir=.
2189 for ac_exec_ext in '' $ac_executable_extensions; do
2190 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2191 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2192 ac_prog_rejected=yes
2193 continue
2194 fi
2195 ac_cv_prog_CC="cc"
2196 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2197 break 2
2198 fi
2199done
2200done
2201
2202if test $ac_prog_rejected = yes; then
2203 # We found a bogon in the path, so make sure we never use it.
2204 set dummy $ac_cv_prog_CC
2205 shift
2206 if test $# != 0; then
2207 # We chose a different compiler from the bogus one.
2208 # However, it has the same basename, so the bogon will be chosen
2209 # first if we set CC to just the basename; use the full file name.
2210 shift
2211 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2212 fi
2213fi
2214fi
2215fi
2216CC=$ac_cv_prog_CC
2217if test -n "$CC"; then
2218 echo "$as_me:$LINENO: result: $CC" >&5
2219echo "${ECHO_T}$CC" >&6
2220else
2221 echo "$as_me:$LINENO: result: no" >&5
2222echo "${ECHO_T}no" >&6
2223fi
2224
2225fi
2226if test -z "$CC"; then
2227 if test -n "$ac_tool_prefix"; then
2228 for ac_prog in cl
2229 do
2230 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2231set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2232echo "$as_me:$LINENO: checking for $ac_word" >&5
2233echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2234if test "${ac_cv_prog_CC+set}" = set; then
2235 echo $ECHO_N "(cached) $ECHO_C" >&6
2236else
2237 if test -n "$CC"; then
2238 ac_cv_prog_CC="$CC" # Let the user override the test.
2239else
2240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2241for as_dir in $PATH
2242do
2243 IFS=$as_save_IFS
2244 test -z "$as_dir" && as_dir=.
2245 for ac_exec_ext in '' $ac_executable_extensions; do
2246 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2247 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2249 break 2
2250 fi
2251done
2252done
2253
2254fi
2255fi
2256CC=$ac_cv_prog_CC
2257if test -n "$CC"; then
2258 echo "$as_me:$LINENO: result: $CC" >&5
2259echo "${ECHO_T}$CC" >&6
2260else
2261 echo "$as_me:$LINENO: result: no" >&5
2262echo "${ECHO_T}no" >&6
2263fi
2264
2265 test -n "$CC" && break
2266 done
2267fi
2268if test -z "$CC"; then
2269 ac_ct_CC=$CC
2270 for ac_prog in cl
2271do
2272 # Extract the first word of "$ac_prog", so it can be a program name with args.
2273set dummy $ac_prog; ac_word=$2
2274echo "$as_me:$LINENO: checking for $ac_word" >&5
2275echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2276if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2277 echo $ECHO_N "(cached) $ECHO_C" >&6
2278else
2279 if test -n "$ac_ct_CC"; then
2280 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2281else
2282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2283for as_dir in $PATH
2284do
2285 IFS=$as_save_IFS
2286 test -z "$as_dir" && as_dir=.
2287 for ac_exec_ext in '' $ac_executable_extensions; do
2288 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2289 ac_cv_prog_ac_ct_CC="$ac_prog"
2290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2291 break 2
2292 fi
2293done
2294done
2295
2296fi
2297fi
2298ac_ct_CC=$ac_cv_prog_ac_ct_CC
2299if test -n "$ac_ct_CC"; then
2300 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2301echo "${ECHO_T}$ac_ct_CC" >&6
2302else
2303 echo "$as_me:$LINENO: result: no" >&5
2304echo "${ECHO_T}no" >&6
2305fi
2306
2307 test -n "$ac_ct_CC" && break
2308done
2309
2310 CC=$ac_ct_CC
2311fi
2312
2313fi
2314
2315
2316test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2317See \`config.log' for more details." >&5
2318echo "$as_me: error: no acceptable C compiler found in \$PATH
2319See \`config.log' for more details." >&2;}
2320 { (exit 1); exit 1; }; }
2321
2322# Provide some information about the compiler.
2323echo "$as_me:$LINENO:" \
2324 "checking for C compiler version" >&5
2325ac_compiler=`set X $ac_compile; echo $2`
2326{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2327 (eval $ac_compiler --version </dev/null >&5) 2>&5
2328 ac_status=$?
2329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330 (exit $ac_status); }
2331{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2332 (eval $ac_compiler -v </dev/null >&5) 2>&5
2333 ac_status=$?
2334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2335 (exit $ac_status); }
2336{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2337 (eval $ac_compiler -V </dev/null >&5) 2>&5
2338 ac_status=$?
2339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2340 (exit $ac_status); }
2341
2342cat >conftest.$ac_ext <<_ACEOF
2343/* confdefs.h. */
2344_ACEOF
2345cat confdefs.h >>conftest.$ac_ext
2346cat >>conftest.$ac_ext <<_ACEOF
2347/* end confdefs.h. */
2348
2349int
2350main ()
2351{
2352
2353 ;
2354 return 0;
2355}
2356_ACEOF
2357ac_clean_files_save=$ac_clean_files
2358ac_clean_files="$ac_clean_files a.out a.exe b.out"
2359# Try to create an executable without -o first, disregard a.out.
2360# It will help us diagnose broken compilers, and finding out an intuition
2361# of exeext.
2362echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2363echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2364ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2365if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2366 (eval $ac_link_default) 2>&5
2367 ac_status=$?
2368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369 (exit $ac_status); }; then
2370 # Find the output, starting from the most likely. This scheme is
2371# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2372# resort.
2373
2374# Be careful to initialize this variable, since it used to be cached.
2375# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2376ac_cv_exeext=
2377# b.out is created by i960 compilers.
2378for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2379do
2380 test -f "$ac_file" || continue
2381 case $ac_file in
2382 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2383 ;;
2384 conftest.$ac_ext )
2385 # This is the source file.
2386 ;;
2387 [ab].out )
2388 # We found the default executable, but exeext='' is most
2389 # certainly right.
2390 break;;
2391 *.* )
2392 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2393 # FIXME: I believe we export ac_cv_exeext for Libtool,
2394 # but it would be cool to find out if it's true. Does anybody
2395 # maintain Libtool? --akim.
2396 export ac_cv_exeext
2397 break;;
2398 * )
2399 break;;
2400 esac
2401done
2402else
2403 echo "$as_me: failed program was:" >&5
2404sed 's/^/| /' conftest.$ac_ext >&5
2405
2406{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2407See \`config.log' for more details." >&5
2408echo "$as_me: error: C compiler cannot create executables
2409See \`config.log' for more details." >&2;}
2410 { (exit 77); exit 77; }; }
2411fi
2412
2413ac_exeext=$ac_cv_exeext
2414echo "$as_me:$LINENO: result: $ac_file" >&5
2415echo "${ECHO_T}$ac_file" >&6
2416
2417# Check the compiler produces executables we can run. If not, either
2418# the compiler is broken, or we cross compile.
2419echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2420echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2421# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2422# If not cross compiling, check that we can run a simple program.
2423if test "$cross_compiling" != yes; then
2424 if { ac_try='./$ac_file'
2425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2426 (eval $ac_try) 2>&5
2427 ac_status=$?
2428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429 (exit $ac_status); }; }; then
2430 cross_compiling=no
2431 else
2432 if test "$cross_compiling" = maybe; then
2433 cross_compiling=yes
2434 else
2435 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2436If you meant to cross compile, use \`--host'.
2437See \`config.log' for more details." >&5
2438echo "$as_me: error: cannot run C compiled programs.
2439If you meant to cross compile, use \`--host'.
2440See \`config.log' for more details." >&2;}
2441 { (exit 1); exit 1; }; }
2442 fi
2443 fi
2444fi
2445echo "$as_me:$LINENO: result: yes" >&5
2446echo "${ECHO_T}yes" >&6
2447
2448rm -f a.out a.exe conftest$ac_cv_exeext b.out
2449ac_clean_files=$ac_clean_files_save
2450# Check the compiler produces executables we can run. If not, either
2451# the compiler is broken, or we cross compile.
2452echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2453echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2454echo "$as_me:$LINENO: result: $cross_compiling" >&5
2455echo "${ECHO_T}$cross_compiling" >&6
2456
2457echo "$as_me:$LINENO: checking for suffix of executables" >&5
2458echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2459if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2460 (eval $ac_link) 2>&5
2461 ac_status=$?
2462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463 (exit $ac_status); }; then
2464 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2465# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2466# work properly (i.e., refer to `conftest.exe'), while it won't with
2467# `rm'.
2468for ac_file in conftest.exe conftest conftest.*; do
2469 test -f "$ac_file" || continue
2470 case $ac_file in
2471 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2472 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2473 export ac_cv_exeext
2474 break;;
2475 * ) break;;
2476 esac
2477done
2478else
2479 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2480See \`config.log' for more details." >&5
2481echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2482See \`config.log' for more details." >&2;}
2483 { (exit 1); exit 1; }; }
2484fi
2485
2486rm -f conftest$ac_cv_exeext
2487echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2488echo "${ECHO_T}$ac_cv_exeext" >&6
2489
2490rm -f conftest.$ac_ext
2491EXEEXT=$ac_cv_exeext
2492ac_exeext=$EXEEXT
2493echo "$as_me:$LINENO: checking for suffix of object files" >&5
2494echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2495if test "${ac_cv_objext+set}" = set; then
2496 echo $ECHO_N "(cached) $ECHO_C" >&6
2497else
2498 cat >conftest.$ac_ext <<_ACEOF
2499/* confdefs.h. */
2500_ACEOF
2501cat confdefs.h >>conftest.$ac_ext
2502cat >>conftest.$ac_ext <<_ACEOF
2503/* end confdefs.h. */
2504
2505int
2506main ()
2507{
2508
2509 ;
2510 return 0;
2511}
2512_ACEOF
2513rm -f conftest.o conftest.obj
2514if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2515 (eval $ac_compile) 2>&5
2516 ac_status=$?
2517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518 (exit $ac_status); }; then
2519 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2520 case $ac_file in
2521 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2522 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2523 break;;
2524 esac
2525done
2526else
2527 echo "$as_me: failed program was:" >&5
2528sed 's/^/| /' conftest.$ac_ext >&5
2529
2530{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2531See \`config.log' for more details." >&5
2532echo "$as_me: error: cannot compute suffix of object files: cannot compile
2533See \`config.log' for more details." >&2;}
2534 { (exit 1); exit 1; }; }
2535fi
2536
2537rm -f conftest.$ac_cv_objext conftest.$ac_ext
2538fi
2539echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2540echo "${ECHO_T}$ac_cv_objext" >&6
2541OBJEXT=$ac_cv_objext
2542ac_objext=$OBJEXT
2543echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2544echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2545if test "${ac_cv_c_compiler_gnu+set}" = set; then
2546 echo $ECHO_N "(cached) $ECHO_C" >&6
2547else
2548 cat >conftest.$ac_ext <<_ACEOF
2549/* confdefs.h. */
2550_ACEOF
2551cat confdefs.h >>conftest.$ac_ext
2552cat >>conftest.$ac_ext <<_ACEOF
2553/* end confdefs.h. */
2554
2555int
2556main ()
2557{
2558#ifndef __GNUC__
2559 choke me
2560#endif
2561
2562 ;
2563 return 0;
2564}
2565_ACEOF
2566rm -f conftest.$ac_objext
2567if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2568 (eval $ac_compile) 2>conftest.er1
2569 ac_status=$?
2570 grep -v '^ *+' conftest.er1 >conftest.err
2571 rm -f conftest.er1
2572 cat conftest.err >&5
2573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574 (exit $ac_status); } &&
59da30e1 2575 { ac_try='test -z "$ac_c_werror_flag"
2576 || test ! -s conftest.err'
1e8e9920 2577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2578 (eval $ac_try) 2>&5
2579 ac_status=$?
2580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581 (exit $ac_status); }; } &&
2582 { ac_try='test -s conftest.$ac_objext'
2583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2584 (eval $ac_try) 2>&5
2585 ac_status=$?
2586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587 (exit $ac_status); }; }; then
2588 ac_compiler_gnu=yes
2589else
2590 echo "$as_me: failed program was:" >&5
2591sed 's/^/| /' conftest.$ac_ext >&5
2592
2593ac_compiler_gnu=no
2594fi
2595rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2596ac_cv_c_compiler_gnu=$ac_compiler_gnu
2597
2598fi
2599echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2600echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2601GCC=`test $ac_compiler_gnu = yes && echo yes`
2602ac_test_CFLAGS=${CFLAGS+set}
2603ac_save_CFLAGS=$CFLAGS
2604CFLAGS="-g"
2605echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2606echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2607if test "${ac_cv_prog_cc_g+set}" = set; then
2608 echo $ECHO_N "(cached) $ECHO_C" >&6
2609else
2610 cat >conftest.$ac_ext <<_ACEOF
2611/* confdefs.h. */
2612_ACEOF
2613cat confdefs.h >>conftest.$ac_ext
2614cat >>conftest.$ac_ext <<_ACEOF
2615/* end confdefs.h. */
2616
2617int
2618main ()
2619{
2620
2621 ;
2622 return 0;
2623}
2624_ACEOF
2625rm -f conftest.$ac_objext
2626if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2627 (eval $ac_compile) 2>conftest.er1
2628 ac_status=$?
2629 grep -v '^ *+' conftest.er1 >conftest.err
2630 rm -f conftest.er1
2631 cat conftest.err >&5
2632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633 (exit $ac_status); } &&
59da30e1 2634 { ac_try='test -z "$ac_c_werror_flag"
2635 || test ! -s conftest.err'
1e8e9920 2636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2637 (eval $ac_try) 2>&5
2638 ac_status=$?
2639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640 (exit $ac_status); }; } &&
2641 { ac_try='test -s conftest.$ac_objext'
2642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2643 (eval $ac_try) 2>&5
2644 ac_status=$?
2645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646 (exit $ac_status); }; }; then
2647 ac_cv_prog_cc_g=yes
2648else
2649 echo "$as_me: failed program was:" >&5
2650sed 's/^/| /' conftest.$ac_ext >&5
2651
2652ac_cv_prog_cc_g=no
2653fi
2654rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2655fi
2656echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2657echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2658if test "$ac_test_CFLAGS" = set; then
2659 CFLAGS=$ac_save_CFLAGS
2660elif test $ac_cv_prog_cc_g = yes; then
2661 if test "$GCC" = yes; then
2662 CFLAGS="-g -O2"
2663 else
2664 CFLAGS="-g"
2665 fi
2666else
2667 if test "$GCC" = yes; then
2668 CFLAGS="-O2"
2669 else
2670 CFLAGS=
2671 fi
2672fi
2673echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2674echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2675if test "${ac_cv_prog_cc_stdc+set}" = set; then
2676 echo $ECHO_N "(cached) $ECHO_C" >&6
2677else
2678 ac_cv_prog_cc_stdc=no
2679ac_save_CC=$CC
2680cat >conftest.$ac_ext <<_ACEOF
2681/* confdefs.h. */
2682_ACEOF
2683cat confdefs.h >>conftest.$ac_ext
2684cat >>conftest.$ac_ext <<_ACEOF
2685/* end confdefs.h. */
2686#include <stdarg.h>
2687#include <stdio.h>
2688#include <sys/types.h>
2689#include <sys/stat.h>
2690/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2691struct buf { int x; };
2692FILE * (*rcsopen) (struct buf *, struct stat *, int);
2693static char *e (p, i)
2694 char **p;
2695 int i;
2696{
2697 return p[i];
2698}
2699static char *f (char * (*g) (char **, int), char **p, ...)
2700{
2701 char *s;
2702 va_list v;
2703 va_start (v,p);
2704 s = g (p, va_arg (v,int));
2705 va_end (v);
2706 return s;
2707}
2708
2709/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2710 function prototypes and stuff, but not '\xHH' hex character constants.
2711 These don't provoke an error unfortunately, instead are silently treated
2712 as 'x'. The following induces an error, until -std1 is added to get
2713 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2714 array size at least. It's necessary to write '\x00'==0 to get something
2715 that's true only with -std1. */
2716int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2717
2718int test (int i, double x);
2719struct s1 {int (*f) (int a);};
2720struct s2 {int (*f) (double a);};
2721int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2722int argc;
2723char **argv;
2724int
2725main ()
2726{
2727return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2728 ;
2729 return 0;
2730}
2731_ACEOF
2732# Don't try gcc -ansi; that turns off useful extensions and
2733# breaks some systems' header files.
2734# AIX -qlanglvl=ansi
2735# Ultrix and OSF/1 -std1
2736# HP-UX 10.20 and later -Ae
2737# HP-UX older versions -Aa -D_HPUX_SOURCE
2738# SVR4 -Xc -D__EXTENSIONS__
2739for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2740do
2741 CC="$ac_save_CC $ac_arg"
2742 rm -f conftest.$ac_objext
2743if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2744 (eval $ac_compile) 2>conftest.er1
2745 ac_status=$?
2746 grep -v '^ *+' conftest.er1 >conftest.err
2747 rm -f conftest.er1
2748 cat conftest.err >&5
2749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750 (exit $ac_status); } &&
59da30e1 2751 { ac_try='test -z "$ac_c_werror_flag"
2752 || test ! -s conftest.err'
1e8e9920 2753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2754 (eval $ac_try) 2>&5
2755 ac_status=$?
2756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757 (exit $ac_status); }; } &&
2758 { ac_try='test -s conftest.$ac_objext'
2759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2760 (eval $ac_try) 2>&5
2761 ac_status=$?
2762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763 (exit $ac_status); }; }; then
2764 ac_cv_prog_cc_stdc=$ac_arg
2765break
2766else
2767 echo "$as_me: failed program was:" >&5
2768sed 's/^/| /' conftest.$ac_ext >&5
2769
2770fi
2771rm -f conftest.err conftest.$ac_objext
2772done
2773rm -f conftest.$ac_ext conftest.$ac_objext
2774CC=$ac_save_CC
2775
2776fi
2777
2778case "x$ac_cv_prog_cc_stdc" in
2779 x|xno)
2780 echo "$as_me:$LINENO: result: none needed" >&5
2781echo "${ECHO_T}none needed" >&6 ;;
2782 *)
2783 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2784echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2785 CC="$CC $ac_cv_prog_cc_stdc" ;;
2786esac
2787
2788# Some people use a C++ compiler to compile C. Since we use `exit',
2789# in C++ we need to declare it. In case someone uses the same compiler
2790# for both compiling C and C++ we need to have the C++ compiler decide
2791# the declaration of exit, since it's the most demanding environment.
2792cat >conftest.$ac_ext <<_ACEOF
2793#ifndef __cplusplus
2794 choke me
2795#endif
2796_ACEOF
2797rm -f conftest.$ac_objext
2798if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2799 (eval $ac_compile) 2>conftest.er1
2800 ac_status=$?
2801 grep -v '^ *+' conftest.er1 >conftest.err
2802 rm -f conftest.er1
2803 cat conftest.err >&5
2804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805 (exit $ac_status); } &&
59da30e1 2806 { ac_try='test -z "$ac_c_werror_flag"
2807 || test ! -s conftest.err'
1e8e9920 2808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2809 (eval $ac_try) 2>&5
2810 ac_status=$?
2811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2812 (exit $ac_status); }; } &&
2813 { ac_try='test -s conftest.$ac_objext'
2814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2815 (eval $ac_try) 2>&5
2816 ac_status=$?
2817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818 (exit $ac_status); }; }; then
2819 for ac_declaration in \
2820 '' \
2821 'extern "C" void std::exit (int) throw (); using std::exit;' \
2822 'extern "C" void std::exit (int); using std::exit;' \
2823 'extern "C" void exit (int) throw ();' \
2824 'extern "C" void exit (int);' \
2825 'void exit (int);'
2826do
2827 cat >conftest.$ac_ext <<_ACEOF
2828/* confdefs.h. */
2829_ACEOF
2830cat confdefs.h >>conftest.$ac_ext
2831cat >>conftest.$ac_ext <<_ACEOF
2832/* end confdefs.h. */
2833$ac_declaration
2834#include <stdlib.h>
2835int
2836main ()
2837{
2838exit (42);
2839 ;
2840 return 0;
2841}
2842_ACEOF
2843rm -f conftest.$ac_objext
2844if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2845 (eval $ac_compile) 2>conftest.er1
2846 ac_status=$?
2847 grep -v '^ *+' conftest.er1 >conftest.err
2848 rm -f conftest.er1
2849 cat conftest.err >&5
2850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851 (exit $ac_status); } &&
59da30e1 2852 { ac_try='test -z "$ac_c_werror_flag"
2853 || test ! -s conftest.err'
1e8e9920 2854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2855 (eval $ac_try) 2>&5
2856 ac_status=$?
2857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858 (exit $ac_status); }; } &&
2859 { ac_try='test -s conftest.$ac_objext'
2860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2861 (eval $ac_try) 2>&5
2862 ac_status=$?
2863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864 (exit $ac_status); }; }; then
2865 :
2866else
2867 echo "$as_me: failed program was:" >&5
2868sed 's/^/| /' conftest.$ac_ext >&5
2869
2870continue
2871fi
2872rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2873 cat >conftest.$ac_ext <<_ACEOF
2874/* confdefs.h. */
2875_ACEOF
2876cat confdefs.h >>conftest.$ac_ext
2877cat >>conftest.$ac_ext <<_ACEOF
2878/* end confdefs.h. */
2879$ac_declaration
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 break
2911else
2912 echo "$as_me: failed program was:" >&5
2913sed 's/^/| /' conftest.$ac_ext >&5
2914
2915fi
2916rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2917done
2918rm -f conftest*
2919if test -n "$ac_declaration"; then
2920 echo '#ifdef __cplusplus' >>confdefs.h
2921 echo $ac_declaration >>confdefs.h
2922 echo '#endif' >>confdefs.h
2923fi
2924
2925else
2926 echo "$as_me: failed program was:" >&5
2927sed 's/^/| /' conftest.$ac_ext >&5
2928
2929fi
2930rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2931ac_ext=c
2932ac_cpp='$CPP $CPPFLAGS'
2933ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2934ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2935ac_compiler_gnu=$ac_cv_c_compiler_gnu
2936DEPDIR="${am__leading_dot}deps"
2937
2938 ac_config_commands="$ac_config_commands depfiles"
2939
2940
2941am_make=${MAKE-make}
2942cat > confinc << 'END'
2943am__doit:
2944 @echo done
2945.PHONY: am__doit
2946END
2947# If we don't find an include directive, just comment out the code.
2948echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2949echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2950am__include="#"
2951am__quote=
2952_am_result=none
2953# First try GNU make style include.
2954echo "include confinc" > confmf
2955# We grep out `Entering directory' and `Leaving directory'
2956# messages which can occur if `w' ends up in MAKEFLAGS.
2957# In particular we don't look at `^make:' because GNU make might
2958# be invoked under some other name (usually "gmake"), in which
2959# case it prints its new name instead of `make'.
2960if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2961 am__include=include
2962 am__quote=
2963 _am_result=GNU
2964fi
2965# Now try BSD make style include.
2966if test "$am__include" = "#"; then
2967 echo '.include "confinc"' > confmf
2968 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2969 am__include=.include
2970 am__quote="\""
2971 _am_result=BSD
2972 fi
2973fi
2974
2975
2976echo "$as_me:$LINENO: result: $_am_result" >&5
2977echo "${ECHO_T}$_am_result" >&6
2978rm -f confinc confmf
2979
2980# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2981if test "${enable_dependency_tracking+set}" = set; then
2982 enableval="$enable_dependency_tracking"
2983
2984fi;
2985if test "x$enable_dependency_tracking" != xno; then
2986 am_depcomp="$ac_aux_dir/depcomp"
2987 AMDEPBACKSLASH='\'
2988fi
2989
2990
2991if test "x$enable_dependency_tracking" != xno; then
2992 AMDEP_TRUE=
2993 AMDEP_FALSE='#'
2994else
2995 AMDEP_TRUE='#'
2996 AMDEP_FALSE=
2997fi
2998
2999
3000
3001
3002depcc="$CC" am_compiler_list=
3003
3004echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3005echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3006if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3007 echo $ECHO_N "(cached) $ECHO_C" >&6
3008else
3009 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3010 # We make a subdir and do the tests there. Otherwise we can end up
3011 # making bogus files that we don't know about and never remove. For
3012 # instance it was reported that on HP-UX the gcc test will end up
3013 # making a dummy file named `D' -- because `-MD' means `put the output
3014 # in D'.
3015 mkdir conftest.dir
3016 # Copy depcomp to subdir because otherwise we won't find it if we're
3017 # using a relative directory.
3018 cp "$am_depcomp" conftest.dir
3019 cd conftest.dir
3020 # We will build objects and dependencies in a subdirectory because
3021 # it helps to detect inapplicable dependency modes. For instance
3022 # both Tru64's cc and ICC support -MD to output dependencies as a
3023 # side effect of compilation, but ICC will put the dependencies in
3024 # the current directory while Tru64 will put them in the object
3025 # directory.
3026 mkdir sub
3027
3028 am_cv_CC_dependencies_compiler_type=none
3029 if test "$am_compiler_list" = ""; then
3030 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3031 fi
3032 for depmode in $am_compiler_list; do
3033 # Setup a source with many dependencies, because some compilers
3034 # like to wrap large dependency lists on column 80 (with \), and
3035 # we should not choose a depcomp mode which is confused by this.
3036 #
3037 # We need to recreate these files for each test, as the compiler may
3038 # overwrite some of them when testing with obscure command lines.
3039 # This happens at least with the AIX C compiler.
3040 : > sub/conftest.c
3041 for i in 1 2 3 4 5 6; do
3042 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3043 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3044 # Solaris 8's {/usr,}/bin/sh.
3045 touch sub/conftst$i.h
3046 done
3047 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3048
3049 case $depmode in
3050 nosideeffect)
3051 # after this tag, mechanisms are not by side-effect, so they'll
3052 # only be used when explicitly requested
3053 if test "x$enable_dependency_tracking" = xyes; then
3054 continue
3055 else
3056 break
3057 fi
3058 ;;
3059 none) break ;;
3060 esac
3061 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3062 # mode. It turns out that the SunPro C++ compiler does not properly
3063 # handle `-M -o', and we need to detect this.
3064 if depmode=$depmode \
3065 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3066 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3067 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3068 >/dev/null 2>conftest.err &&
3069 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3070 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3071 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3072 # icc doesn't choke on unknown options, it will just issue warnings
3073 # or remarks (even with -Werror). So we grep stderr for any message
3074 # that says an option was ignored or not supported.
3075 # When given -MP, icc 7.0 and 7.1 complain thusly:
3076 # icc: Command line warning: ignoring option '-M'; no argument required
3077 # The diagnosis changed in icc 8.0:
3078 # icc: Command line remark: option '-MP' not supported
3079 if (grep 'ignoring option' conftest.err ||
3080 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3081 am_cv_CC_dependencies_compiler_type=$depmode
3082 break
3083 fi
3084 fi
3085 done
3086
3087 cd ..
3088 rm -rf conftest.dir
3089else
3090 am_cv_CC_dependencies_compiler_type=none
3091fi
3092
3093fi
3094echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3095echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3096CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3097
3098
3099
3100if
3101 test "x$enable_dependency_tracking" != xno \
3102 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3103 am__fastdepCC_TRUE=
3104 am__fastdepCC_FALSE='#'
3105else
3106 am__fastdepCC_TRUE='#'
3107 am__fastdepCC_FALSE=
3108fi
3109
3110
3111
3112
3113
3114
3115# In order to override CFLAGS_FOR_TARGET, all of our special flags go
3116# in XCFLAGS. But we need them in CFLAGS during configury. So put them
3117# in both places for now and restore CFLAGS at the end of config.
3118save_CFLAGS="$CFLAGS"
3119
3120# Add -Wall -Werror if we are using GCC.
3121if test "x$GCC" = "xyes"; then
3122 XCFLAGS="$XCFLAGS -Wall -Werror"
3123fi
3124
3125# Find other programs we need.
3126if test -n "$ac_tool_prefix"; then
3127 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3128set dummy ${ac_tool_prefix}ar; ac_word=$2
3129echo "$as_me:$LINENO: checking for $ac_word" >&5
3130echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3131if test "${ac_cv_prog_AR+set}" = set; then
3132 echo $ECHO_N "(cached) $ECHO_C" >&6
3133else
3134 if test -n "$AR"; then
3135 ac_cv_prog_AR="$AR" # Let the user override the test.
3136else
3137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3138for as_dir in $PATH
3139do
3140 IFS=$as_save_IFS
3141 test -z "$as_dir" && as_dir=.
3142 for ac_exec_ext in '' $ac_executable_extensions; do
3143 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3144 ac_cv_prog_AR="${ac_tool_prefix}ar"
3145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3146 break 2
3147 fi
3148done
3149done
3150
3151fi
3152fi
3153AR=$ac_cv_prog_AR
3154if test -n "$AR"; then
3155 echo "$as_me:$LINENO: result: $AR" >&5
3156echo "${ECHO_T}$AR" >&6
3157else
3158 echo "$as_me:$LINENO: result: no" >&5
3159echo "${ECHO_T}no" >&6
3160fi
3161
3162fi
3163if test -z "$ac_cv_prog_AR"; then
3164 ac_ct_AR=$AR
3165 # Extract the first word of "ar", so it can be a program name with args.
3166set dummy ar; ac_word=$2
3167echo "$as_me:$LINENO: checking for $ac_word" >&5
3168echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3169if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3170 echo $ECHO_N "(cached) $ECHO_C" >&6
3171else
3172 if test -n "$ac_ct_AR"; then
3173 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3174else
3175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3176for as_dir in $PATH
3177do
3178 IFS=$as_save_IFS
3179 test -z "$as_dir" && as_dir=.
3180 for ac_exec_ext in '' $ac_executable_extensions; do
3181 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3182 ac_cv_prog_ac_ct_AR="ar"
3183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3184 break 2
3185 fi
3186done
3187done
3188
3189fi
3190fi
3191ac_ct_AR=$ac_cv_prog_ac_ct_AR
3192if test -n "$ac_ct_AR"; then
3193 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3194echo "${ECHO_T}$ac_ct_AR" >&6
3195else
3196 echo "$as_me:$LINENO: result: no" >&5
3197echo "${ECHO_T}no" >&6
3198fi
3199
3200 AR=$ac_ct_AR
3201else
3202 AR="$ac_cv_prog_AR"
3203fi
3204
3205if test -n "$ac_tool_prefix"; then
3206 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3207set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3208echo "$as_me:$LINENO: checking for $ac_word" >&5
3209echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3210if test "${ac_cv_prog_RANLIB+set}" = set; then
3211 echo $ECHO_N "(cached) $ECHO_C" >&6
3212else
3213 if test -n "$RANLIB"; then
3214 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3215else
3216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3217for as_dir in $PATH
3218do
3219 IFS=$as_save_IFS
3220 test -z "$as_dir" && as_dir=.
3221 for ac_exec_ext in '' $ac_executable_extensions; do
3222 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3223 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3225 break 2
3226 fi
3227done
3228done
3229
3230fi
3231fi
3232RANLIB=$ac_cv_prog_RANLIB
3233if test -n "$RANLIB"; then
3234 echo "$as_me:$LINENO: result: $RANLIB" >&5
3235echo "${ECHO_T}$RANLIB" >&6
3236else
3237 echo "$as_me:$LINENO: result: no" >&5
3238echo "${ECHO_T}no" >&6
3239fi
3240
3241fi
3242if test -z "$ac_cv_prog_RANLIB"; then
3243 ac_ct_RANLIB=$RANLIB
3244 # Extract the first word of "ranlib", so it can be a program name with args.
3245set dummy ranlib; ac_word=$2
3246echo "$as_me:$LINENO: checking for $ac_word" >&5
3247echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3248if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3249 echo $ECHO_N "(cached) $ECHO_C" >&6
3250else
3251 if test -n "$ac_ct_RANLIB"; then
3252 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3253else
3254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3255for as_dir in $PATH
3256do
3257 IFS=$as_save_IFS
3258 test -z "$as_dir" && as_dir=.
3259 for ac_exec_ext in '' $ac_executable_extensions; do
3260 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3261 ac_cv_prog_ac_ct_RANLIB="ranlib"
3262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3263 break 2
3264 fi
3265done
3266done
3267
3268 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="ranlib-not-found-in-path-error"
3269fi
3270fi
3271ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3272if test -n "$ac_ct_RANLIB"; then
3273 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3274echo "${ECHO_T}$ac_ct_RANLIB" >&6
3275else
3276 echo "$as_me:$LINENO: result: no" >&5
3277echo "${ECHO_T}no" >&6
3278fi
3279
3280 RANLIB=$ac_ct_RANLIB
3281else
3282 RANLIB="$ac_cv_prog_RANLIB"
3283fi
3284
3285# Extract the first word of "perl", so it can be a program name with args.
3286set dummy perl; ac_word=$2
3287echo "$as_me:$LINENO: checking for $ac_word" >&5
3288echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3289if test "${ac_cv_path_PERL+set}" = set; then
3290 echo $ECHO_N "(cached) $ECHO_C" >&6
3291else
3292 case $PERL in
3293 [\\/]* | ?:[\\/]*)
3294 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3295 ;;
3296 *)
3297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3298for as_dir in $PATH
3299do
3300 IFS=$as_save_IFS
3301 test -z "$as_dir" && as_dir=.
3302 for ac_exec_ext in '' $ac_executable_extensions; do
3303 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3304 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
3305 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3306 break 2
3307 fi
3308done
3309done
3310
3311 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
3312 ;;
3313esac
3314fi
3315PERL=$ac_cv_path_PERL
3316
3317if test -n "$PERL"; then
3318 echo "$as_me:$LINENO: result: $PERL" >&5
3319echo "${ECHO_T}$PERL" >&6
3320else
3321 echo "$as_me:$LINENO: result: no" >&5
3322echo "${ECHO_T}no" >&6
3323fi
3324
3325echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3326echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3327set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3328if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3329 echo $ECHO_N "(cached) $ECHO_C" >&6
3330else
3331 cat >conftest.make <<\_ACEOF
3332all:
3333 @echo 'ac_maketemp="$(MAKE)"'
3334_ACEOF
3335# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3336eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3337if test -n "$ac_maketemp"; then
3338 eval ac_cv_prog_make_${ac_make}_set=yes
3339else
3340 eval ac_cv_prog_make_${ac_make}_set=no
3341fi
3342rm -f conftest.make
3343fi
3344if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3345 echo "$as_me:$LINENO: result: yes" >&5
3346echo "${ECHO_T}yes" >&6
3347 SET_MAKE=
3348else
3349 echo "$as_me:$LINENO: result: no" >&5
3350echo "${ECHO_T}no" >&6
3351 SET_MAKE="MAKE=${MAKE-make}"
3352fi
3353
3354# Find a good install program. We prefer a C program (faster),
3355# so one script is as good as another. But avoid the broken or
3356# incompatible versions:
3357# SysV /etc/install, /usr/sbin/install
3358# SunOS /usr/etc/install
3359# IRIX /sbin/install
3360# AIX /bin/install
3361# AmigaOS /C/install, which installs bootblocks on floppy discs
3362# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3363# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3364# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3365# OS/2's system install, which has a completely different semantic
3366# ./install, which can be erroneously created by make from ./install.sh.
3367echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3368echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3369if test -z "$INSTALL"; then
3370if test "${ac_cv_path_install+set}" = set; then
3371 echo $ECHO_N "(cached) $ECHO_C" >&6
3372else
3373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3374for as_dir in $PATH
3375do
3376 IFS=$as_save_IFS
3377 test -z "$as_dir" && as_dir=.
3378 # Account for people who put trailing slashes in PATH elements.
3379case $as_dir/ in
3380 ./ | .// | /cC/* | \
3381 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3382 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3383 /usr/ucb/* ) ;;
3384 *)
3385 # OSF1 and SCO ODT 3.0 have their own names for install.
3386 # Don't use installbsd from OSF since it installs stuff as root
3387 # by default.
3388 for ac_prog in ginstall scoinst install; do
3389 for ac_exec_ext in '' $ac_executable_extensions; do
3390 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3391 if test $ac_prog = install &&
3392 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3393 # AIX install. It has an incompatible calling convention.
3394 :
3395 elif test $ac_prog = install &&
3396 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3397 # program-specific install script used by HP pwplus--don't use.
3398 :
3399 else
3400 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3401 break 3
3402 fi
3403 fi
3404 done
3405 done
3406 ;;
3407esac
3408done
3409
3410
3411fi
3412 if test "${ac_cv_path_install+set}" = set; then
3413 INSTALL=$ac_cv_path_install
3414 else
3415 # As a last resort, use the slow shell script. We don't cache a
3416 # path for INSTALL within a source directory, because that will
3417 # break other packages using the cache if that directory is
3418 # removed, or if the path is relative.
3419 INSTALL=$ac_install_sh
3420 fi
3421fi
3422echo "$as_me:$LINENO: result: $INSTALL" >&5
3423echo "${ECHO_T}$INSTALL" >&6
3424
3425# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3426# It thinks the first close brace ends the variable substitution.
3427test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3428
3429test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3430
3431test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3432
3433
3434# Configure libtool
3435# Check whether --enable-shared or --disable-shared was given.
3436if test "${enable_shared+set}" = set; then
3437 enableval="$enable_shared"
3438 p=${PACKAGE-default}
3439case $enableval in
3440yes) enable_shared=yes ;;
3441no) enable_shared=no ;;
3442*)
3443 enable_shared=no
3444 # Look at the argument we got. We use all the common list separators.
3445 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3446 for pkg in $enableval; do
3447 if test "X$pkg" = "X$p"; then
3448 enable_shared=yes
3449 fi
3450 done
3451 IFS="$ac_save_ifs"
3452 ;;
3453esac
3454else
3455 enable_shared=yes
3456fi;
3457# Check whether --enable-static or --disable-static was given.
3458if test "${enable_static+set}" = set; then
3459 enableval="$enable_static"
3460 p=${PACKAGE-default}
3461case $enableval in
3462yes) enable_static=yes ;;
3463no) enable_static=no ;;
3464*)
3465 enable_static=no
3466 # Look at the argument we got. We use all the common list separators.
3467 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3468 for pkg in $enableval; do
3469 if test "X$pkg" = "X$p"; then
3470 enable_static=yes
3471 fi
3472 done
3473 IFS="$ac_save_ifs"
3474 ;;
3475esac
3476else
3477 enable_static=yes
3478fi;
3479# Check whether --enable-fast-install or --disable-fast-install was given.
3480if test "${enable_fast_install+set}" = set; then
3481 enableval="$enable_fast_install"
3482 p=${PACKAGE-default}
3483case $enableval in
3484yes) enable_fast_install=yes ;;
3485no) enable_fast_install=no ;;
3486*)
3487 enable_fast_install=no
3488 # Look at the argument we got. We use all the common list separators.
3489 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3490 for pkg in $enableval; do
3491 if test "X$pkg" = "X$p"; then
3492 enable_fast_install=yes
3493 fi
3494 done
3495 IFS="$ac_save_ifs"
3496 ;;
3497esac
3498else
3499 enable_fast_install=yes
3500fi;
3501
3502# Check whether --with-gnu-ld or --without-gnu-ld was given.
3503if test "${with_gnu_ld+set}" = set; then
3504 withval="$with_gnu_ld"
3505 test "$withval" = no || with_gnu_ld=yes
3506else
3507 with_gnu_ld=no
3508fi;
3509ac_prog=ld
3510if test "$GCC" = yes; then
3511 # Check if gcc -print-prog-name=ld gives a path.
3512 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3513echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3514 case $host in
3515 *-*-mingw*)
3516 # gcc leaves a trailing carriage return which upsets mingw
3517 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3518 *)
3519 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3520 esac
3521 case $ac_prog in
3522 # Accept absolute paths.
3523 [\\/]* | [A-Za-z]:[\\/]*)
3524 re_direlt='/[^/][^/]*/\.\./'
3525 # Canonicalize the path of ld
3526 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3527 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3528 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3529 done
3530 test -z "$LD" && LD="$ac_prog"
3531 ;;
3532 "")
3533 # If it fails, then pretend we aren't using GCC.
3534 ac_prog=ld
3535 ;;
3536 *)
3537 # If it is relative, then search for the first ld in PATH.
3538 with_gnu_ld=unknown
3539 ;;
3540 esac
3541elif test "$with_gnu_ld" = yes; then
3542 echo "$as_me:$LINENO: checking for GNU ld" >&5
3543echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3544else
3545 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3546echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3547fi
3548if test "${lt_cv_path_LD+set}" = set; then
3549 echo $ECHO_N "(cached) $ECHO_C" >&6
3550else
3551 if test -z "$LD"; then
3552 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3553 for ac_dir in $PATH; do
3554 test -z "$ac_dir" && ac_dir=.
3555 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3556 lt_cv_path_LD="$ac_dir/$ac_prog"
3557 # Check to see if the program is GNU ld. I'd rather use --version,
3558 # but apparently some GNU ld's only accept -v.
3559 # Break only if it was the GNU/non-GNU ld that we prefer.
3560 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3561 test "$with_gnu_ld" != no && break
3562 else
3563 test "$with_gnu_ld" != yes && break
3564 fi
3565 fi
3566 done
3567 IFS="$ac_save_ifs"
3568else
3569 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3570fi
3571fi
3572
3573LD="$lt_cv_path_LD"
3574if test -n "$LD"; then
3575 echo "$as_me:$LINENO: result: $LD" >&5
3576echo "${ECHO_T}$LD" >&6
3577else
3578 echo "$as_me:$LINENO: result: no" >&5
3579echo "${ECHO_T}no" >&6
3580fi
3581test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3582echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3583 { (exit 1); exit 1; }; }
3584echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3585echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3586if test "${lt_cv_prog_gnu_ld+set}" = set; then
3587 echo $ECHO_N "(cached) $ECHO_C" >&6
3588else
3589 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3590if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3591 lt_cv_prog_gnu_ld=yes
3592else
3593 lt_cv_prog_gnu_ld=no
3594fi
3595fi
3596echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3597echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3598with_gnu_ld=$lt_cv_prog_gnu_ld
3599
3600
3601echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3602echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3603if test "${lt_cv_ld_reload_flag+set}" = set; then
3604 echo $ECHO_N "(cached) $ECHO_C" >&6
3605else
3606 lt_cv_ld_reload_flag='-r'
3607fi
3608echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3609echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3610reload_flag=$lt_cv_ld_reload_flag
3611test -n "$reload_flag" && reload_flag=" $reload_flag"
3612
3613echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3614echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3615if test "${lt_cv_path_NM+set}" = set; then
3616 echo $ECHO_N "(cached) $ECHO_C" >&6
3617else
3618 if test -n "$NM"; then
3619 # Let the user override the test.
3620 lt_cv_path_NM="$NM"
3621else
3622 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3623 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3624 test -z "$ac_dir" && ac_dir=.
3625 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3626 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3627 # Check to see if the nm accepts a BSD-compat flag.
3628 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3629 # nm: unknown option "B" ignored
3630 # Tru64's nm complains that /dev/null is an invalid object file
3631 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3632 lt_cv_path_NM="$tmp_nm -B"
3633 break
3634 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3635 lt_cv_path_NM="$tmp_nm -p"
3636 break
3637 else
3638 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3639 continue # so that we can try to find one that supports BSD flags
3640 fi
3641 fi
3642 done
3643 IFS="$ac_save_ifs"
3644 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3645fi
3646fi
3647
3648NM="$lt_cv_path_NM"
3649echo "$as_me:$LINENO: result: $NM" >&5
3650echo "${ECHO_T}$NM" >&6
3651
3652echo "$as_me:$LINENO: checking whether ln -s works" >&5
3653echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3654LN_S=$as_ln_s
3655if test "$LN_S" = "ln -s"; then
3656 echo "$as_me:$LINENO: result: yes" >&5
3657echo "${ECHO_T}yes" >&6
3658else
3659 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3660echo "${ECHO_T}no, using $LN_S" >&6
3661fi
3662
3663echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3664echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3665if test "${lt_cv_deplibs_check_method+set}" = set; then
3666 echo $ECHO_N "(cached) $ECHO_C" >&6
3667else
3668 lt_cv_file_magic_cmd='$MAGIC_CMD'
3669lt_cv_file_magic_test_file=
3670lt_cv_deplibs_check_method='unknown'
3671# Need to set the preceding variable on all platforms that support
3672# interlibrary dependencies.
3673# 'none' -- dependencies not supported.
3674# `unknown' -- same as none, but documents that we really don't know.
3675# 'pass_all' -- all dependencies passed with no checks.
3676# 'test_compile' -- check by making test program.
3677# 'file_magic [regex]' -- check by looking for files in library path
3678# which responds to the $file_magic_cmd with a given egrep regex.
3679# If you have `file' or equivalent on your system and you're not sure
3680# whether `pass_all' will *always* work, you probably want this one.
3681
3682case $host_os in
3683aix*)
3684 lt_cv_deplibs_check_method=pass_all
3685 ;;
3686
3687beos*)
3688 lt_cv_deplibs_check_method=pass_all
3689 ;;
3690
3691bsdi4*)
3692 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3693 lt_cv_file_magic_cmd='/usr/bin/file -L'
3694 lt_cv_file_magic_test_file=/shlib/libc.so
3695 ;;
3696
3697cygwin* | mingw* |pw32*)
3698 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3699 lt_cv_file_magic_cmd='$OBJDUMP -f'
3700 ;;
3701
3702darwin* | rhapsody*)
3703 # this will be overwritten by pass_all, but leave it in just in case
3704 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3705 lt_cv_file_magic_cmd='/usr/bin/file -L'
3706 case "$host_os" in
3707 rhapsody* | darwin1.012)
3708 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3709 ;;
3710 *) # Darwin 1.3 on
3711 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3712 ;;
3713 esac
3714 lt_cv_deplibs_check_method=pass_all
3715 ;;
3716
3717freebsd* | kfreebsd*-gnu)
3718 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3719 case $host_cpu in
3720 i*86 )
3721 # Not sure whether the presence of OpenBSD here was a mistake.
3722 # Let's accept both of them until this is cleared up.
3723 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3724 lt_cv_file_magic_cmd=/usr/bin/file
3725 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3726 ;;
3727 esac
3728 else
3729 lt_cv_deplibs_check_method=pass_all
3730 fi
3731 ;;
3732
3733gnu*)
3734 lt_cv_deplibs_check_method=pass_all
3735 ;;
3736
3737hpux10.20*|hpux11*)
3738 case $host_cpu in
3739 hppa*)
3740 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3741 lt_cv_file_magic_cmd=/usr/bin/file
3742 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3743 ;;
3744 ia64*)
3745 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3746 lt_cv_file_magic_cmd=/usr/bin/file
3747 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3748 ;;
3749 esac
3750 ;;
3751
3752irix5* | irix6*)
3753 case $host_os in
3754 irix5*)
3755 # this will be overridden with pass_all, but let us keep it just in case
3756 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3757 ;;
3758 *)
3759 case $LD in
3760 *-32|*"-32 ") libmagic=32-bit;;
3761 *-n32|*"-n32 ") libmagic=N32;;
3762 *-64|*"-64 ") libmagic=64-bit;;
3763 *) libmagic=never-match;;
3764 esac
3765 # this will be overridden with pass_all, but let us keep it just in case
3766 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3767 ;;
3768 esac
3769 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3770 lt_cv_deplibs_check_method=pass_all
3771 ;;
3772
3773# This must be Linux ELF.
3774linux-gnu*)
3775 lt_cv_deplibs_check_method=pass_all
3776 ;;
3777
3778netbsd* | knetbsd*-gnu)
3779 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3780 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3781 else
3782 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3783 fi
3784 ;;
3785
3786newsos6)
3787 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3788 lt_cv_file_magic_cmd=/usr/bin/file
3789 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3790 ;;
3791
3792osf3* | osf4* | osf5*)
3793 # this will be overridden with pass_all, but let us keep it just in case
3794 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3795 lt_cv_file_magic_test_file=/shlib/libc.so
3796 lt_cv_deplibs_check_method=pass_all
3797 ;;
3798
3799sco3.2v5*)
3800 lt_cv_deplibs_check_method=pass_all
3801 ;;
3802
3803solaris*)
3804 lt_cv_deplibs_check_method=pass_all
3805 lt_cv_file_magic_test_file=/lib/libc.so
3806 ;;
3807
3808sysv5uw[78]* | sysv4*uw2*)
3809 lt_cv_deplibs_check_method=pass_all
3810 ;;
3811
3812sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3813 case $host_vendor in
3814 ncr)
3815 lt_cv_deplibs_check_method=pass_all
3816 ;;
3817 motorola)
3818 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]'
3819 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3820 ;;
3821 esac
3822 ;;
3823esac
3824
3825fi
3826echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3827echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3828file_magic_cmd=$lt_cv_file_magic_cmd
3829deplibs_check_method=$lt_cv_deplibs_check_method
3830
3831
3832
3833
3834
3835# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3836
3837# find the maximum length of command line arguments
3838echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3839echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3840if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3841 echo $ECHO_N "(cached) $ECHO_C" >&6
3842else
3843 i=0
3844 teststring="ABCD"
3845
3846 case $build_os in
3847 msdosdjgpp*)
3848 # On DJGPP, this test can blow up pretty badly due to problems in libc
3849 # (any single argument exceeding 2000 bytes causes a buffer overrun
3850 # during glob expansion). Even if it were fixed, the result of this
3851 # check would be larger than it should be.
3852 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3853 ;;
3854
3855 cygwin* | mingw*)
3856 # On Win9x/ME, this test blows up -- it succeeds, but takes
3857 # about 5 minutes as the teststring grows exponentially.
3858 # Worse, since 9x/ME are not pre-emptively multitasking,
3859 # you end up with a "frozen" computer, even though with patience
3860 # the test eventually succeeds (with a max line length of 256k).
3861 # Instead, let's just punt: use the minimum linelength reported by
3862 # all of the supported platforms: 8192 (on NT/2K/XP).
3863 lt_cv_sys_max_cmd_len=8192;
3864 ;;
3865
3866 amigaos*)
3867 # On AmigaOS with pdksh, this test takes hours, literally.
3868 # So we just punt and use a minimum line length of 8192.
3869 lt_cv_sys_max_cmd_len=8192;
3870 ;;
3871
3872 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3873 # This has been around since 386BSD, at least. Likely further.
3874 if test -x /sbin/sysctl; then
3875 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3876 elif test -x /usr/sbin/sysctl; then
3877 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3878 else
3879 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
3880 fi
3881 # And add a safety zone
3882 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3883 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3884 ;;
3885 esac
3886
3887fi
3888
3889if test -n "$lt_cv_sys_max_cmd_len" ; then
3890 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3891echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
3892else
3893 echo "$as_me:$LINENO: result: none" >&5
3894echo "${ECHO_T}none" >&6
3895fi
3896
3897
3898# Only perform the check for file, if the check method requires it
3899case $deplibs_check_method in
3900file_magic*)
3901 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3902 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3903echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3904if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3905 echo $ECHO_N "(cached) $ECHO_C" >&6
3906else
3907 case $MAGIC_CMD in
3908 /*)
3909 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3910 ;;
3911 ?:/*)
3912 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3913 ;;
3914 *)
3915 ac_save_MAGIC_CMD="$MAGIC_CMD"
3916 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3917 ac_dummy="/usr/bin:$PATH"
3918 for ac_dir in $ac_dummy; do
3919 test -z "$ac_dir" && ac_dir=.
3920 if test -f $ac_dir/${ac_tool_prefix}file; then
3921 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3922 if test -n "$file_magic_test_file"; then
3923 case $deplibs_check_method in
3924 "file_magic "*)
3925 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3926 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3927 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3928 egrep "$file_magic_regex" > /dev/null; then
3929 :
3930 else
3931 cat <<EOF 1>&2
3932
3933*** Warning: the command libtool uses to detect shared libraries,
3934*** $file_magic_cmd, produces output that libtool cannot recognize.
3935*** The result is that libtool may fail to recognize shared libraries
3936*** as such. This will affect the creation of libtool libraries that
3937*** depend on shared libraries, but programs linked with such libtool
3938*** libraries will work regardless of this problem. Nevertheless, you
3939*** may want to report the problem to your system manager and/or to
3940*** bug-libtool@gnu.org
3941
3942EOF
3943 fi ;;
3944 esac
3945 fi
3946 break
3947 fi
3948 done
3949 IFS="$ac_save_ifs"
3950 MAGIC_CMD="$ac_save_MAGIC_CMD"
3951 ;;
3952esac
3953fi
3954
3955MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3956if test -n "$MAGIC_CMD"; then
3957 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3958echo "${ECHO_T}$MAGIC_CMD" >&6
3959else
3960 echo "$as_me:$LINENO: result: no" >&5
3961echo "${ECHO_T}no" >&6
3962fi
3963
3964if test -z "$lt_cv_path_MAGIC_CMD"; then
3965 if test -n "$ac_tool_prefix"; then
3966 echo "$as_me:$LINENO: checking for file" >&5
3967echo $ECHO_N "checking for file... $ECHO_C" >&6
3968if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3969 echo $ECHO_N "(cached) $ECHO_C" >&6
3970else
3971 case $MAGIC_CMD in
3972 /*)
3973 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3974 ;;
3975 ?:/*)
3976 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3977 ;;
3978 *)
3979 ac_save_MAGIC_CMD="$MAGIC_CMD"
3980 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3981 ac_dummy="/usr/bin:$PATH"
3982 for ac_dir in $ac_dummy; do
3983 test -z "$ac_dir" && ac_dir=.
3984 if test -f $ac_dir/file; then
3985 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3986 if test -n "$file_magic_test_file"; then
3987 case $deplibs_check_method in
3988 "file_magic "*)
3989 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3990 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3991 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3992 egrep "$file_magic_regex" > /dev/null; then
3993 :
3994 else
3995 cat <<EOF 1>&2
3996
3997*** Warning: the command libtool uses to detect shared libraries,
3998*** $file_magic_cmd, produces output that libtool cannot recognize.
3999*** The result is that libtool may fail to recognize shared libraries
4000*** as such. This will affect the creation of libtool libraries that
4001*** depend on shared libraries, but programs linked with such libtool
4002*** libraries will work regardless of this problem. Nevertheless, you
4003*** may want to report the problem to your system manager and/or to
4004*** bug-libtool@gnu.org
4005
4006EOF
4007 fi ;;
4008 esac
4009 fi
4010 break
4011 fi
4012 done
4013 IFS="$ac_save_ifs"
4014 MAGIC_CMD="$ac_save_MAGIC_CMD"
4015 ;;
4016esac
4017fi
4018
4019MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4020if test -n "$MAGIC_CMD"; then
4021 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4022echo "${ECHO_T}$MAGIC_CMD" >&6
4023else
4024 echo "$as_me:$LINENO: result: no" >&5
4025echo "${ECHO_T}no" >&6
4026fi
4027
4028 else
4029 MAGIC_CMD=:
4030 fi
4031fi
4032
4033 fi
4034 ;;
4035esac
4036
4037if test -n "$ac_tool_prefix"; then
4038 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4039set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4040echo "$as_me:$LINENO: checking for $ac_word" >&5
4041echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4042if test "${ac_cv_prog_RANLIB+set}" = set; then
4043 echo $ECHO_N "(cached) $ECHO_C" >&6
4044else
4045 if test -n "$RANLIB"; then
4046 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4047else
4048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4049for as_dir in $PATH
4050do
4051 IFS=$as_save_IFS
4052 test -z "$as_dir" && as_dir=.
4053 for ac_exec_ext in '' $ac_executable_extensions; do
4054 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4055 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4057 break 2
4058 fi
4059done
4060done
4061
4062fi
4063fi
4064RANLIB=$ac_cv_prog_RANLIB
4065if test -n "$RANLIB"; then
4066 echo "$as_me:$LINENO: result: $RANLIB" >&5
4067echo "${ECHO_T}$RANLIB" >&6
4068else
4069 echo "$as_me:$LINENO: result: no" >&5
4070echo "${ECHO_T}no" >&6
4071fi
4072
4073fi
4074if test -z "$ac_cv_prog_RANLIB"; then
4075 ac_ct_RANLIB=$RANLIB
4076 # Extract the first word of "ranlib", so it can be a program name with args.
4077set dummy ranlib; ac_word=$2
4078echo "$as_me:$LINENO: checking for $ac_word" >&5
4079echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4080if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4081 echo $ECHO_N "(cached) $ECHO_C" >&6
4082else
4083 if test -n "$ac_ct_RANLIB"; then
4084 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4085else
4086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4087for as_dir in $PATH
4088do
4089 IFS=$as_save_IFS
4090 test -z "$as_dir" && as_dir=.
4091 for ac_exec_ext in '' $ac_executable_extensions; do
4092 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4093 ac_cv_prog_ac_ct_RANLIB="ranlib"
4094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4095 break 2
4096 fi
4097done
4098done
4099
4100 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4101fi
4102fi
4103ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4104if test -n "$ac_ct_RANLIB"; then
4105 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4106echo "${ECHO_T}$ac_ct_RANLIB" >&6
4107else
4108 echo "$as_me:$LINENO: result: no" >&5
4109echo "${ECHO_T}no" >&6
4110fi
4111
4112 RANLIB=$ac_ct_RANLIB
4113else
4114 RANLIB="$ac_cv_prog_RANLIB"
4115fi
4116
4117if test -n "$ac_tool_prefix"; then
4118 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4119set dummy ${ac_tool_prefix}strip; ac_word=$2
4120echo "$as_me:$LINENO: checking for $ac_word" >&5
4121echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4122if test "${ac_cv_prog_STRIP+set}" = set; then
4123 echo $ECHO_N "(cached) $ECHO_C" >&6
4124else
4125 if test -n "$STRIP"; then
4126 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4127else
4128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4129for as_dir in $PATH
4130do
4131 IFS=$as_save_IFS
4132 test -z "$as_dir" && as_dir=.
4133 for ac_exec_ext in '' $ac_executable_extensions; do
4134 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4135 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4137 break 2
4138 fi
4139done
4140done
4141
4142fi
4143fi
4144STRIP=$ac_cv_prog_STRIP
4145if test -n "$STRIP"; then
4146 echo "$as_me:$LINENO: result: $STRIP" >&5
4147echo "${ECHO_T}$STRIP" >&6
4148else
4149 echo "$as_me:$LINENO: result: no" >&5
4150echo "${ECHO_T}no" >&6
4151fi
4152
4153fi
4154if test -z "$ac_cv_prog_STRIP"; then
4155 ac_ct_STRIP=$STRIP
4156 # Extract the first word of "strip", so it can be a program name with args.
4157set dummy strip; ac_word=$2
4158echo "$as_me:$LINENO: checking for $ac_word" >&5
4159echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4160if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4161 echo $ECHO_N "(cached) $ECHO_C" >&6
4162else
4163 if test -n "$ac_ct_STRIP"; then
4164 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4165else
4166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4167for as_dir in $PATH
4168do
4169 IFS=$as_save_IFS
4170 test -z "$as_dir" && as_dir=.
4171 for ac_exec_ext in '' $ac_executable_extensions; do
4172 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4173 ac_cv_prog_ac_ct_STRIP="strip"
4174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4175 break 2
4176 fi
4177done
4178done
4179
4180 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4181fi
4182fi
4183ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4184if test -n "$ac_ct_STRIP"; then
4185 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4186echo "${ECHO_T}$ac_ct_STRIP" >&6
4187else
4188 echo "$as_me:$LINENO: result: no" >&5
4189echo "${ECHO_T}no" >&6
4190fi
4191
4192 STRIP=$ac_ct_STRIP
4193else
4194 STRIP="$ac_cv_prog_STRIP"
4195fi
4196
4197
4198# Check for any special flags to pass to ltconfig.
4199libtool_flags="--cache-file=$cache_file"
4200test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4201test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4202test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4203test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4204test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4205
4206
4207# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4208if test "${enable_libtool_lock+set}" = set; then
4209 enableval="$enable_libtool_lock"
4210
4211fi;
4212test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4213test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4214
4215
4216# Check whether --with-pic or --without-pic was given.
4217if test "${with_pic+set}" = set; then
4218 withval="$with_pic"
4219 pic_mode="$withval"
4220else
4221 pic_mode=default
4222fi;
4223test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4224test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4225
4226# Some flags need to be propagated to the compiler or linker for good
4227# libtool support.
4228case $host in
4229*-*-irix6*)
4230 # Find out which ABI we are using.
59da30e1 4231 echo '#line 4231 "configure"' > conftest.$ac_ext
1e8e9920 4232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4233 (eval $ac_compile) 2>&5
4234 ac_status=$?
4235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236 (exit $ac_status); }; then
4237 if test "$lt_cv_prog_gnu_ld" = yes; then
4238 case `/usr/bin/file conftest.$ac_objext` in
4239 *32-bit*)
4240 LD="${LD-ld} -melf32bsmip"
4241 ;;
4242 *N32*)
4243 LD="${LD-ld} -melf32bmipn32"
4244 ;;
4245 *64-bit*)
4246 LD="${LD-ld} -melf64bmip"
4247 ;;
4248 esac
4249 else
4250 case `/usr/bin/file conftest.$ac_objext` in
4251 *32-bit*)
4252 LD="${LD-ld} -32"
4253 ;;
4254 *N32*)
4255 LD="${LD-ld} -n32"
4256 ;;
4257 *64-bit*)
4258 LD="${LD-ld} -64"
4259 ;;
4260 esac
4261 fi
4262 fi
4263 rm -rf conftest*
4264 ;;
4265
4266ia64-*-hpux*)
4267 # Find out which ABI we are using.
4268 echo 'int i;' > conftest.$ac_ext
4269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4270 (eval $ac_compile) 2>&5
4271 ac_status=$?
4272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273 (exit $ac_status); }; then
4274 case "`/usr/bin/file conftest.o`" in
4275 *ELF-32*)
4276 HPUX_IA64_MODE="32"
4277 ;;
4278 *ELF-64*)
4279 HPUX_IA64_MODE="64"
4280 ;;
4281 esac
4282 fi
4283 rm -rf conftest*
4284 ;;
4285
4286x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4287 # Find out which ABI we are using.
4288 echo 'int i;' > conftest.$ac_ext
4289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4290 (eval $ac_compile) 2>&5
4291 ac_status=$?
4292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293 (exit $ac_status); }; then
4294 case "`/usr/bin/file conftest.o`" in
4295 *32-bit*)
4296 case $host in
4297 x86_64-*linux*)
4298 LD="${LD-ld} -m elf_i386"
4299 ;;
4300 ppc64-*linux*|powerpc64-*linux*)
4301 LD="${LD-ld} -m elf32ppclinux"
4302 ;;
4303 s390x-*linux*)
4304 LD="${LD-ld} -m elf_s390"
4305 ;;
4306 sparc64-*linux*)
4307 LD="${LD-ld} -m elf32_sparc"
4308 ;;
4309 esac
4310 ;;
4311 *64-bit*)
4312 case $host in
4313 x86_64-*linux*)
4314 LD="${LD-ld} -m elf_x86_64"
4315 ;;
4316 ppc*-*linux*|powerpc*-*linux*)
4317 LD="${LD-ld} -m elf64ppc"
4318 ;;
4319 s390*-*linux*)
4320 LD="${LD-ld} -m elf64_s390"
4321 ;;
4322 sparc*-*linux*)
4323 LD="${LD-ld} -m elf64_sparc"
4324 ;;
4325 esac
4326 ;;
4327 esac
4328 fi
4329 rm -rf conftest*
4330 ;;
4331
4332*-*-sco3.2v5*)
4333 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4334 SAVE_CFLAGS="$CFLAGS"
4335 CFLAGS="$CFLAGS -belf"
4336 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4337echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4338if test "${lt_cv_cc_needs_belf+set}" = set; then
4339 echo $ECHO_N "(cached) $ECHO_C" >&6
4340else
4341
4342
4343 ac_ext=c
4344ac_cpp='$CPP $CPPFLAGS'
4345ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4346ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4347ac_compiler_gnu=$ac_cv_c_compiler_gnu
4348
4349 cat >conftest.$ac_ext <<_ACEOF
4350/* confdefs.h. */
4351_ACEOF
4352cat confdefs.h >>conftest.$ac_ext
4353cat >>conftest.$ac_ext <<_ACEOF
4354/* end confdefs.h. */
4355
4356int
4357main ()
4358{
4359
4360 ;
4361 return 0;
4362}
4363_ACEOF
4364rm -f conftest.$ac_objext conftest$ac_exeext
4365if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4366 (eval $ac_link) 2>conftest.er1
4367 ac_status=$?
4368 grep -v '^ *+' conftest.er1 >conftest.err
4369 rm -f conftest.er1
4370 cat conftest.err >&5
4371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372 (exit $ac_status); } &&
59da30e1 4373 { ac_try='test -z "$ac_c_werror_flag"
4374 || test ! -s conftest.err'
1e8e9920 4375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4376 (eval $ac_try) 2>&5
4377 ac_status=$?
4378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4379 (exit $ac_status); }; } &&
4380 { ac_try='test -s conftest$ac_exeext'
4381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4382 (eval $ac_try) 2>&5
4383 ac_status=$?
4384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385 (exit $ac_status); }; }; then
4386 lt_cv_cc_needs_belf=yes
4387else
4388 echo "$as_me: failed program was:" >&5
4389sed 's/^/| /' conftest.$ac_ext >&5
4390
4391lt_cv_cc_needs_belf=no
4392fi
4393rm -f conftest.err conftest.$ac_objext \
4394 conftest$ac_exeext conftest.$ac_ext
4395 ac_ext=c
4396ac_cpp='$CPP $CPPFLAGS'
4397ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4398ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4399ac_compiler_gnu=$ac_cv_c_compiler_gnu
4400
4401fi
4402echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4403echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4404 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4405 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4406 CFLAGS="$SAVE_CFLAGS"
4407 fi
4408 ;;
4409
4410
4411esac
4412
4413
4414# Save cache, so that ltconfig can load it
4415cat >confcache <<\_ACEOF
4416# This file is a shell script that caches the results of configure
4417# tests run on this system so they can be shared between configure
4418# scripts and configure runs, see configure's option --config-cache.
4419# It is not useful on other systems. If it contains results you don't
4420# want to keep, you may remove or edit it.
4421#
4422# config.status only pays attention to the cache file if you give it
4423# the --recheck option to rerun configure.
4424#
4425# `ac_cv_env_foo' variables (set or unset) will be overridden when
4426# loading this file, other *unset* `ac_cv_foo' will be assigned the
4427# following values.
4428
4429_ACEOF
4430
4431# The following way of writing the cache mishandles newlines in values,
4432# but we know of no workaround that is simple, portable, and efficient.
4433# So, don't put newlines in cache variables' values.
4434# Ultrix sh set writes to stderr and can't be redirected directly,
4435# and sets the high bit in the cache file unless we assign to the vars.
4436{
4437 (set) 2>&1 |
4438 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4439 *ac_space=\ *)
4440 # `set' does not quote correctly, so add quotes (double-quote
4441 # substitution turns \\\\ into \\, and sed turns \\ into \).
4442 sed -n \
4443 "s/'/'\\\\''/g;
4444 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4445 ;;
4446 *)
4447 # `set' quotes correctly as required by POSIX, so do not add quotes.
4448 sed -n \
4449 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4450 ;;
4451 esac;
4452} |
4453 sed '
4454 t clear
4455 : clear
4456 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4457 t end
4458 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4459 : end' >>confcache
4460if diff $cache_file confcache >/dev/null 2>&1; then :; else
4461 if test -w $cache_file; then
4462 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4463 cat confcache >$cache_file
4464 else
4465 echo "not updating unwritable cache $cache_file"
4466 fi
4467fi
4468rm -f confcache
4469
4470# Actually configure libtool. ac_aux_dir is where install-sh is found.
4471AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4472MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4473LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4474AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4475objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4476deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4477${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4478$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4479|| { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4480echo "$as_me: error: libtool configure failed" >&2;}
4481 { (exit 1); exit 1; }; }
4482
4483# Reload cache, that may have been modified by ltconfig
4484if test -r "$cache_file"; then
4485 # Some versions of bash will fail to source /dev/null (special
4486 # files actually), so we avoid doing that.
4487 if test -f "$cache_file"; then
4488 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4489echo "$as_me: loading cache $cache_file" >&6;}
4490 case $cache_file in
4491 [\\/]* | ?:[\\/]* ) . $cache_file;;
4492 *) . ./$cache_file;;
4493 esac
4494 fi
4495else
4496 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4497echo "$as_me: creating cache $cache_file" >&6;}
4498 >$cache_file
4499fi
4500
4501
4502# This can be used to rebuild libtool when needed
4503LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4504
4505# Always use our own libtool.
4506LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4507
4508# Redirect the config.log output again, so that the ltconfig log is not
4509# clobbered by the next message.
4510exec 5>>./config.log
4511
4512
4513
4514
4515
4516
4517
4518
4519
a263d1ab 4520echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4521echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4522 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4523if test "${enable_maintainer_mode+set}" = set; then
4524 enableval="$enable_maintainer_mode"
4525 USE_MAINTAINER_MODE=$enableval
4526else
4527 USE_MAINTAINER_MODE=no
4528fi;
4529 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4530echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4531
4532
4533if test $USE_MAINTAINER_MODE = yes; then
4534 MAINTAINER_MODE_TRUE=
4535 MAINTAINER_MODE_FALSE='#'
4536else
4537 MAINTAINER_MODE_TRUE='#'
4538 MAINTAINER_MODE_FALSE=
4539fi
4540
4541 MAINT=$MAINTAINER_MODE_TRUE
4542
4543
4544
1e8e9920 4545# We need gfortran to compile parts of the library
4546# We can't use AC_PROG_FC because it expects a fully working gfortran.
4547#AC_PROG_FC(gfortran)
4548FC="$GFORTRAN"
4549ac_ext=${FC_SRCEXT-f}
4550ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
4551ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
4552ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4553if test -n "$ac_tool_prefix"; then
4554 for ac_prog in gfortran
4555 do
4556 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4557set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4558echo "$as_me:$LINENO: checking for $ac_word" >&5
4559echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4560if test "${ac_cv_prog_FC+set}" = set; then
4561 echo $ECHO_N "(cached) $ECHO_C" >&6
4562else
4563 if test -n "$FC"; then
4564 ac_cv_prog_FC="$FC" # Let the user override the test.
4565else
4566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4567for as_dir in $PATH
4568do
4569 IFS=$as_save_IFS
4570 test -z "$as_dir" && as_dir=.
4571 for ac_exec_ext in '' $ac_executable_extensions; do
4572 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4573 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
4574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4575 break 2
4576 fi
4577done
4578done
4579
4580fi
4581fi
4582FC=$ac_cv_prog_FC
4583if test -n "$FC"; then
4584 echo "$as_me:$LINENO: result: $FC" >&5
4585echo "${ECHO_T}$FC" >&6
4586else
4587 echo "$as_me:$LINENO: result: no" >&5
4588echo "${ECHO_T}no" >&6
4589fi
4590
4591 test -n "$FC" && break
4592 done
4593fi
4594if test -z "$FC"; then
4595 ac_ct_FC=$FC
4596 for ac_prog in gfortran
4597do
4598 # Extract the first word of "$ac_prog", so it can be a program name with args.
4599set dummy $ac_prog; ac_word=$2
4600echo "$as_me:$LINENO: checking for $ac_word" >&5
4601echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4602if test "${ac_cv_prog_ac_ct_FC+set}" = set; then
4603 echo $ECHO_N "(cached) $ECHO_C" >&6
4604else
4605 if test -n "$ac_ct_FC"; then
4606 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
4607else
4608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4609for as_dir in $PATH
4610do
4611 IFS=$as_save_IFS
4612 test -z "$as_dir" && as_dir=.
4613 for ac_exec_ext in '' $ac_executable_extensions; do
4614 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4615 ac_cv_prog_ac_ct_FC="$ac_prog"
4616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4617 break 2
4618 fi
4619done
4620done
4621
4622fi
4623fi
4624ac_ct_FC=$ac_cv_prog_ac_ct_FC
4625if test -n "$ac_ct_FC"; then
4626 echo "$as_me:$LINENO: result: $ac_ct_FC" >&5
4627echo "${ECHO_T}$ac_ct_FC" >&6
4628else
4629 echo "$as_me:$LINENO: result: no" >&5
4630echo "${ECHO_T}no" >&6
4631fi
4632
4633 test -n "$ac_ct_FC" && break
4634done
4635
4636 FC=$ac_ct_FC
4637fi
4638
4639
4640# Provide some information about the compiler.
59da30e1 4641echo "$as_me:4641:" \
1e8e9920 4642 "checking for Fortran compiler version" >&5
4643ac_compiler=`set X $ac_compile; echo $2`
4644{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4645 (eval $ac_compiler --version </dev/null >&5) 2>&5
4646 ac_status=$?
4647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648 (exit $ac_status); }
4649{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4650 (eval $ac_compiler -v </dev/null >&5) 2>&5
4651 ac_status=$?
4652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4653 (exit $ac_status); }
4654{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4655 (eval $ac_compiler -V </dev/null >&5) 2>&5
4656 ac_status=$?
4657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4658 (exit $ac_status); }
4659rm -f a.out
4660
4661# If we don't use `.F' as extension, the preprocessor is not run on the
4662# input file. (Note that this only needs to work for GNU compilers.)
4663ac_save_ext=$ac_ext
4664ac_ext=F
4665echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5
4666echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6
4667if test "${ac_cv_fc_compiler_gnu+set}" = set; then
4668 echo $ECHO_N "(cached) $ECHO_C" >&6
4669else
4670 cat >conftest.$ac_ext <<_ACEOF
4671 program main
4672#ifndef __GNUC__
4673 choke me
4674#endif
4675
4676 end
4677_ACEOF
4678rm -f conftest.$ac_objext
4679if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4680 (eval $ac_compile) 2>conftest.er1
4681 ac_status=$?
4682 grep -v '^ *+' conftest.er1 >conftest.err
4683 rm -f conftest.er1
4684 cat conftest.err >&5
4685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4686 (exit $ac_status); } &&
59da30e1 4687 { ac_try='test -z "$ac_fc_werror_flag"
4688 || test ! -s conftest.err'
1e8e9920 4689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4690 (eval $ac_try) 2>&5
4691 ac_status=$?
4692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4693 (exit $ac_status); }; } &&
4694 { ac_try='test -s conftest.$ac_objext'
4695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4696 (eval $ac_try) 2>&5
4697 ac_status=$?
4698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4699 (exit $ac_status); }; }; then
4700 ac_compiler_gnu=yes
4701else
4702 echo "$as_me: failed program was:" >&5
4703sed 's/^/| /' conftest.$ac_ext >&5
4704
4705ac_compiler_gnu=no
4706fi
4707rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4708ac_cv_fc_compiler_gnu=$ac_compiler_gnu
4709
4710fi
4711echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5
4712echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6
4713ac_ext=$ac_save_ext
4714ac_test_FFLAGS=${FCFLAGS+set}
4715ac_save_FFLAGS=$FCFLAGS
4716FCFLAGS=
4717echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5
4718echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6
4719if test "${ac_cv_prog_fc_g+set}" = set; then
4720 echo $ECHO_N "(cached) $ECHO_C" >&6
4721else
4722 FCFLAGS=-g
4723cat >conftest.$ac_ext <<_ACEOF
4724 program main
4725
4726 end
4727_ACEOF
4728rm -f conftest.$ac_objext
4729if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4730 (eval $ac_compile) 2>conftest.er1
4731 ac_status=$?
4732 grep -v '^ *+' conftest.er1 >conftest.err
4733 rm -f conftest.er1
4734 cat conftest.err >&5
4735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736 (exit $ac_status); } &&
59da30e1 4737 { ac_try='test -z "$ac_fc_werror_flag"
4738 || test ! -s conftest.err'
1e8e9920 4739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4740 (eval $ac_try) 2>&5
4741 ac_status=$?
4742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4743 (exit $ac_status); }; } &&
4744 { ac_try='test -s conftest.$ac_objext'
4745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4746 (eval $ac_try) 2>&5
4747 ac_status=$?
4748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749 (exit $ac_status); }; }; then
4750 ac_cv_prog_fc_g=yes
4751else
4752 echo "$as_me: failed program was:" >&5
4753sed 's/^/| /' conftest.$ac_ext >&5
4754
4755ac_cv_prog_fc_g=no
4756fi
4757rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4758
4759fi
4760echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5
4761echo "${ECHO_T}$ac_cv_prog_fc_g" >&6
4762if test "$ac_test_FFLAGS" = set; then
4763 FCFLAGS=$ac_save_FFLAGS
4764elif test $ac_cv_prog_fc_g = yes; then
4765 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4766 FCFLAGS="-g -O2"
4767 else
4768 FCFLAGS="-g"
4769 fi
4770else
4771 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4772 FCFLAGS="-O2"
4773 else
4774 FCFLAGS=
4775 fi
4776fi
4777
4778ac_ext=c
4779ac_cpp='$CPP $CPPFLAGS'
4780ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4781ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4782ac_compiler_gnu=$ac_cv_c_compiler_gnu
4783
4784FCFLAGS="$FCFLAGS -Wall"
4785
4786# For libtool versioning info, format is CURRENT:REVISION:AGE
4787libtool_VERSION=1:0:0
4788
4789
4790# Check header files.
4791ac_ext=c
4792ac_cpp='$CPP $CPPFLAGS'
4793ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4794ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4795ac_compiler_gnu=$ac_cv_c_compiler_gnu
4796echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4797echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4798# On Suns, sometimes $CPP names a directory.
4799if test -n "$CPP" && test -d "$CPP"; then
4800 CPP=
4801fi
4802if test -z "$CPP"; then
4803 if test "${ac_cv_prog_CPP+set}" = set; then
4804 echo $ECHO_N "(cached) $ECHO_C" >&6
4805else
4806 # Double quotes because CPP needs to be expanded
4807 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4808 do
4809 ac_preproc_ok=false
4810for ac_c_preproc_warn_flag in '' yes
4811do
4812 # Use a header file that comes with gcc, so configuring glibc
4813 # with a fresh cross-compiler works.
4814 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4815 # <limits.h> exists even on freestanding compilers.
4816 # On the NeXT, cc -E runs the code through the compiler's parser,
4817 # not just through cpp. "Syntax error" is here to catch this case.
4818 cat >conftest.$ac_ext <<_ACEOF
4819/* confdefs.h. */
4820_ACEOF
4821cat confdefs.h >>conftest.$ac_ext
4822cat >>conftest.$ac_ext <<_ACEOF
4823/* end confdefs.h. */
4824#ifdef __STDC__
4825# include <limits.h>
4826#else
4827# include <assert.h>
4828#endif
4829 Syntax error
4830_ACEOF
4831if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4832 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4833 ac_status=$?
4834 grep -v '^ *+' conftest.er1 >conftest.err
4835 rm -f conftest.er1
4836 cat conftest.err >&5
4837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4838 (exit $ac_status); } >/dev/null; then
4839 if test -s conftest.err; then
4840 ac_cpp_err=$ac_c_preproc_warn_flag
4841 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4842 else
4843 ac_cpp_err=
4844 fi
4845else
4846 ac_cpp_err=yes
4847fi
4848if test -z "$ac_cpp_err"; then
4849 :
4850else
4851 echo "$as_me: failed program was:" >&5
4852sed 's/^/| /' conftest.$ac_ext >&5
4853
4854 # Broken: fails on valid input.
4855continue
4856fi
4857rm -f conftest.err conftest.$ac_ext
4858
4859 # OK, works on sane cases. Now check whether non-existent headers
4860 # can be detected and how.
4861 cat >conftest.$ac_ext <<_ACEOF
4862/* confdefs.h. */
4863_ACEOF
4864cat confdefs.h >>conftest.$ac_ext
4865cat >>conftest.$ac_ext <<_ACEOF
4866/* end confdefs.h. */
4867#include <ac_nonexistent.h>
4868_ACEOF
4869if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4870 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4871 ac_status=$?
4872 grep -v '^ *+' conftest.er1 >conftest.err
4873 rm -f conftest.er1
4874 cat conftest.err >&5
4875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4876 (exit $ac_status); } >/dev/null; then
4877 if test -s conftest.err; then
4878 ac_cpp_err=$ac_c_preproc_warn_flag
4879 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4880 else
4881 ac_cpp_err=
4882 fi
4883else
4884 ac_cpp_err=yes
4885fi
4886if test -z "$ac_cpp_err"; then
4887 # Broken: success on invalid input.
4888continue
4889else
4890 echo "$as_me: failed program was:" >&5
4891sed 's/^/| /' conftest.$ac_ext >&5
4892
4893 # Passes both tests.
4894ac_preproc_ok=:
4895break
4896fi
4897rm -f conftest.err conftest.$ac_ext
4898
4899done
4900# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4901rm -f conftest.err conftest.$ac_ext
4902if $ac_preproc_ok; then
4903 break
4904fi
4905
4906 done
4907 ac_cv_prog_CPP=$CPP
4908
4909fi
4910 CPP=$ac_cv_prog_CPP
4911else
4912 ac_cv_prog_CPP=$CPP
4913fi
4914echo "$as_me:$LINENO: result: $CPP" >&5
4915echo "${ECHO_T}$CPP" >&6
4916ac_preproc_ok=false
4917for ac_c_preproc_warn_flag in '' yes
4918do
4919 # Use a header file that comes with gcc, so configuring glibc
4920 # with a fresh cross-compiler works.
4921 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4922 # <limits.h> exists even on freestanding compilers.
4923 # On the NeXT, cc -E runs the code through the compiler's parser,
4924 # not just through cpp. "Syntax error" is here to catch this case.
4925 cat >conftest.$ac_ext <<_ACEOF
4926/* confdefs.h. */
4927_ACEOF
4928cat confdefs.h >>conftest.$ac_ext
4929cat >>conftest.$ac_ext <<_ACEOF
4930/* end confdefs.h. */
4931#ifdef __STDC__
4932# include <limits.h>
4933#else
4934# include <assert.h>
4935#endif
4936 Syntax error
4937_ACEOF
4938if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4939 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4940 ac_status=$?
4941 grep -v '^ *+' conftest.er1 >conftest.err
4942 rm -f conftest.er1
4943 cat conftest.err >&5
4944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945 (exit $ac_status); } >/dev/null; then
4946 if test -s conftest.err; then
4947 ac_cpp_err=$ac_c_preproc_warn_flag
4948 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4949 else
4950 ac_cpp_err=
4951 fi
4952else
4953 ac_cpp_err=yes
4954fi
4955if test -z "$ac_cpp_err"; then
4956 :
4957else
4958 echo "$as_me: failed program was:" >&5
4959sed 's/^/| /' conftest.$ac_ext >&5
4960
4961 # Broken: fails on valid input.
4962continue
4963fi
4964rm -f conftest.err conftest.$ac_ext
4965
4966 # OK, works on sane cases. Now check whether non-existent headers
4967 # can be detected and how.
4968 cat >conftest.$ac_ext <<_ACEOF
4969/* confdefs.h. */
4970_ACEOF
4971cat confdefs.h >>conftest.$ac_ext
4972cat >>conftest.$ac_ext <<_ACEOF
4973/* end confdefs.h. */
4974#include <ac_nonexistent.h>
4975_ACEOF
4976if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4977 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4978 ac_status=$?
4979 grep -v '^ *+' conftest.er1 >conftest.err
4980 rm -f conftest.er1
4981 cat conftest.err >&5
4982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983 (exit $ac_status); } >/dev/null; then
4984 if test -s conftest.err; then
4985 ac_cpp_err=$ac_c_preproc_warn_flag
4986 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4987 else
4988 ac_cpp_err=
4989 fi
4990else
4991 ac_cpp_err=yes
4992fi
4993if test -z "$ac_cpp_err"; then
4994 # Broken: success on invalid input.
4995continue
4996else
4997 echo "$as_me: failed program was:" >&5
4998sed 's/^/| /' conftest.$ac_ext >&5
4999
5000 # Passes both tests.
5001ac_preproc_ok=:
5002break
5003fi
5004rm -f conftest.err conftest.$ac_ext
5005
5006done
5007# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5008rm -f conftest.err conftest.$ac_ext
5009if $ac_preproc_ok; then
5010 :
5011else
5012 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5013See \`config.log' for more details." >&5
5014echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5015See \`config.log' for more details." >&2;}
5016 { (exit 1); exit 1; }; }
5017fi
5018
5019ac_ext=c
5020ac_cpp='$CPP $CPPFLAGS'
5021ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5022ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5023ac_compiler_gnu=$ac_cv_c_compiler_gnu
5024
5025
5026echo "$as_me:$LINENO: checking for egrep" >&5
5027echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5028if test "${ac_cv_prog_egrep+set}" = set; then
5029 echo $ECHO_N "(cached) $ECHO_C" >&6
5030else
5031 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5032 then ac_cv_prog_egrep='grep -E'
5033 else ac_cv_prog_egrep='egrep'
5034 fi
5035fi
5036echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5037echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5038 EGREP=$ac_cv_prog_egrep
5039
5040
5041echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5042echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5043if test "${ac_cv_header_stdc+set}" = set; then
5044 echo $ECHO_N "(cached) $ECHO_C" >&6
5045else
5046 cat >conftest.$ac_ext <<_ACEOF
5047/* confdefs.h. */
5048_ACEOF
5049cat confdefs.h >>conftest.$ac_ext
5050cat >>conftest.$ac_ext <<_ACEOF
5051/* end confdefs.h. */
5052#include <stdlib.h>
5053#include <stdarg.h>
5054#include <string.h>
5055#include <float.h>
5056
5057int
5058main ()
5059{
5060
5061 ;
5062 return 0;
5063}
5064_ACEOF
5065rm -f conftest.$ac_objext
5066if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5067 (eval $ac_compile) 2>conftest.er1
5068 ac_status=$?
5069 grep -v '^ *+' conftest.er1 >conftest.err
5070 rm -f conftest.er1
5071 cat conftest.err >&5
5072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5073 (exit $ac_status); } &&
59da30e1 5074 { ac_try='test -z "$ac_c_werror_flag"
5075 || test ! -s conftest.err'
1e8e9920 5076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5077 (eval $ac_try) 2>&5
5078 ac_status=$?
5079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5080 (exit $ac_status); }; } &&
5081 { ac_try='test -s conftest.$ac_objext'
5082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5083 (eval $ac_try) 2>&5
5084 ac_status=$?
5085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086 (exit $ac_status); }; }; then
5087 ac_cv_header_stdc=yes
5088else
5089 echo "$as_me: failed program was:" >&5
5090sed 's/^/| /' conftest.$ac_ext >&5
5091
5092ac_cv_header_stdc=no
5093fi
5094rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5095
5096if test $ac_cv_header_stdc = yes; then
5097 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5098 cat >conftest.$ac_ext <<_ACEOF
5099/* confdefs.h. */
5100_ACEOF
5101cat confdefs.h >>conftest.$ac_ext
5102cat >>conftest.$ac_ext <<_ACEOF
5103/* end confdefs.h. */
5104#include <string.h>
5105
5106_ACEOF
5107if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5108 $EGREP "memchr" >/dev/null 2>&1; then
5109 :
5110else
5111 ac_cv_header_stdc=no
5112fi
5113rm -f conftest*
5114
5115fi
5116
5117if test $ac_cv_header_stdc = yes; then
5118 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5119 cat >conftest.$ac_ext <<_ACEOF
5120/* confdefs.h. */
5121_ACEOF
5122cat confdefs.h >>conftest.$ac_ext
5123cat >>conftest.$ac_ext <<_ACEOF
5124/* end confdefs.h. */
5125#include <stdlib.h>
5126
5127_ACEOF
5128if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5129 $EGREP "free" >/dev/null 2>&1; then
5130 :
5131else
5132 ac_cv_header_stdc=no
5133fi
5134rm -f conftest*
5135
5136fi
5137
5138if test $ac_cv_header_stdc = yes; then
5139 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5140 if test "$cross_compiling" = yes; then
5141 :
5142else
5143 cat >conftest.$ac_ext <<_ACEOF
5144/* confdefs.h. */
5145_ACEOF
5146cat confdefs.h >>conftest.$ac_ext
5147cat >>conftest.$ac_ext <<_ACEOF
5148/* end confdefs.h. */
5149#include <ctype.h>
5150#if ((' ' & 0x0FF) == 0x020)
5151# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5152# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5153#else
5154# define ISLOWER(c) \
5155 (('a' <= (c) && (c) <= 'i') \
5156 || ('j' <= (c) && (c) <= 'r') \
5157 || ('s' <= (c) && (c) <= 'z'))
5158# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5159#endif
5160
5161#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5162int
5163main ()
5164{
5165 int i;
5166 for (i = 0; i < 256; i++)
5167 if (XOR (islower (i), ISLOWER (i))
5168 || toupper (i) != TOUPPER (i))
5169 exit(2);
5170 exit (0);
5171}
5172_ACEOF
5173rm -f conftest$ac_exeext
5174if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5175 (eval $ac_link) 2>&5
5176 ac_status=$?
5177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5178 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5180 (eval $ac_try) 2>&5
5181 ac_status=$?
5182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5183 (exit $ac_status); }; }; then
5184 :
5185else
5186 echo "$as_me: program exited with status $ac_status" >&5
5187echo "$as_me: failed program was:" >&5
5188sed 's/^/| /' conftest.$ac_ext >&5
5189
5190( exit $ac_status )
5191ac_cv_header_stdc=no
5192fi
5193rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5194fi
5195fi
5196fi
5197echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5198echo "${ECHO_T}$ac_cv_header_stdc" >&6
5199if test $ac_cv_header_stdc = yes; then
5200
5201cat >>confdefs.h <<\_ACEOF
5202#define STDC_HEADERS 1
5203_ACEOF
5204
5205fi
5206
5207echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5208echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5209if test "${ac_cv_header_time+set}" = set; then
5210 echo $ECHO_N "(cached) $ECHO_C" >&6
5211else
5212 cat >conftest.$ac_ext <<_ACEOF
5213/* confdefs.h. */
5214_ACEOF
5215cat confdefs.h >>conftest.$ac_ext
5216cat >>conftest.$ac_ext <<_ACEOF
5217/* end confdefs.h. */
5218#include <sys/types.h>
5219#include <sys/time.h>
5220#include <time.h>
5221
5222int
5223main ()
5224{
5225if ((struct tm *) 0)
5226return 0;
5227 ;
5228 return 0;
5229}
5230_ACEOF
5231rm -f conftest.$ac_objext
5232if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5233 (eval $ac_compile) 2>conftest.er1
5234 ac_status=$?
5235 grep -v '^ *+' conftest.er1 >conftest.err
5236 rm -f conftest.er1
5237 cat conftest.err >&5
5238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5239 (exit $ac_status); } &&
59da30e1 5240 { ac_try='test -z "$ac_c_werror_flag"
5241 || test ! -s conftest.err'
1e8e9920 5242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5243 (eval $ac_try) 2>&5
5244 ac_status=$?
5245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5246 (exit $ac_status); }; } &&
5247 { ac_try='test -s conftest.$ac_objext'
5248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5249 (eval $ac_try) 2>&5
5250 ac_status=$?
5251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5252 (exit $ac_status); }; }; then
5253 ac_cv_header_time=yes
5254else
5255 echo "$as_me: failed program was:" >&5
5256sed 's/^/| /' conftest.$ac_ext >&5
5257
5258ac_cv_header_time=no
5259fi
5260rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5261fi
5262echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5263echo "${ECHO_T}$ac_cv_header_time" >&6
5264if test $ac_cv_header_time = yes; then
5265
5266cat >>confdefs.h <<\_ACEOF
5267#define TIME_WITH_SYS_TIME 1
5268_ACEOF
5269
5270fi
5271
5272# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5283 inttypes.h stdint.h unistd.h
5284do
5285as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5286echo "$as_me:$LINENO: checking for $ac_header" >&5
5287echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5288if eval "test \"\${$as_ac_Header+set}\" = set"; then
5289 echo $ECHO_N "(cached) $ECHO_C" >&6
5290else
5291 cat >conftest.$ac_ext <<_ACEOF
5292/* confdefs.h. */
5293_ACEOF
5294cat confdefs.h >>conftest.$ac_ext
5295cat >>conftest.$ac_ext <<_ACEOF
5296/* end confdefs.h. */
5297$ac_includes_default
5298
5299#include <$ac_header>
5300_ACEOF
5301rm -f conftest.$ac_objext
5302if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5303 (eval $ac_compile) 2>conftest.er1
5304 ac_status=$?
5305 grep -v '^ *+' conftest.er1 >conftest.err
5306 rm -f conftest.er1
5307 cat conftest.err >&5
5308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309 (exit $ac_status); } &&
59da30e1 5310 { ac_try='test -z "$ac_c_werror_flag"
5311 || test ! -s conftest.err'
1e8e9920 5312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5313 (eval $ac_try) 2>&5
5314 ac_status=$?
5315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316 (exit $ac_status); }; } &&
5317 { ac_try='test -s conftest.$ac_objext'
5318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5319 (eval $ac_try) 2>&5
5320 ac_status=$?
5321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322 (exit $ac_status); }; }; then
5323 eval "$as_ac_Header=yes"
5324else
5325 echo "$as_me: failed program was:" >&5
5326sed 's/^/| /' conftest.$ac_ext >&5
5327
5328eval "$as_ac_Header=no"
5329fi
5330rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5331fi
5332echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5333echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5334if test `eval echo '${'$as_ac_Header'}'` = yes; then
5335 cat >>confdefs.h <<_ACEOF
5336#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5337_ACEOF
5338
5339fi
5340
5341done
5342
5343
5344
5345
5346
138f59be 5347
5348for ac_header in unistd.h semaphore.h sys/loadavg.h sys/time.h
1e8e9920 5349do
5350as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5351if eval "test \"\${$as_ac_Header+set}\" = set"; then
5352 echo "$as_me:$LINENO: checking for $ac_header" >&5
5353echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5354if eval "test \"\${$as_ac_Header+set}\" = set"; then
5355 echo $ECHO_N "(cached) $ECHO_C" >&6
5356fi
5357echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5358echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5359else
5360 # Is the header compilable?
5361echo "$as_me:$LINENO: checking $ac_header usability" >&5
5362echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5363cat >conftest.$ac_ext <<_ACEOF
5364/* confdefs.h. */
5365_ACEOF
5366cat confdefs.h >>conftest.$ac_ext
5367cat >>conftest.$ac_ext <<_ACEOF
5368/* end confdefs.h. */
5369$ac_includes_default
5370#include <$ac_header>
5371_ACEOF
5372rm -f conftest.$ac_objext
5373if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5374 (eval $ac_compile) 2>conftest.er1
5375 ac_status=$?
5376 grep -v '^ *+' conftest.er1 >conftest.err
5377 rm -f conftest.er1
5378 cat conftest.err >&5
5379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5380 (exit $ac_status); } &&
59da30e1 5381 { ac_try='test -z "$ac_c_werror_flag"
5382 || test ! -s conftest.err'
1e8e9920 5383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5384 (eval $ac_try) 2>&5
5385 ac_status=$?
5386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5387 (exit $ac_status); }; } &&
5388 { ac_try='test -s conftest.$ac_objext'
5389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5390 (eval $ac_try) 2>&5
5391 ac_status=$?
5392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5393 (exit $ac_status); }; }; then
5394 ac_header_compiler=yes
5395else
5396 echo "$as_me: failed program was:" >&5
5397sed 's/^/| /' conftest.$ac_ext >&5
5398
5399ac_header_compiler=no
5400fi
5401rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5402echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5403echo "${ECHO_T}$ac_header_compiler" >&6
5404
5405# Is the header present?
5406echo "$as_me:$LINENO: checking $ac_header presence" >&5
5407echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5408cat >conftest.$ac_ext <<_ACEOF
5409/* confdefs.h. */
5410_ACEOF
5411cat confdefs.h >>conftest.$ac_ext
5412cat >>conftest.$ac_ext <<_ACEOF
5413/* end confdefs.h. */
5414#include <$ac_header>
5415_ACEOF
5416if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5417 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5418 ac_status=$?
5419 grep -v '^ *+' conftest.er1 >conftest.err
5420 rm -f conftest.er1
5421 cat conftest.err >&5
5422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5423 (exit $ac_status); } >/dev/null; then
5424 if test -s conftest.err; then
5425 ac_cpp_err=$ac_c_preproc_warn_flag
5426 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5427 else
5428 ac_cpp_err=
5429 fi
5430else
5431 ac_cpp_err=yes
5432fi
5433if test -z "$ac_cpp_err"; then
5434 ac_header_preproc=yes
5435else
5436 echo "$as_me: failed program was:" >&5
5437sed 's/^/| /' conftest.$ac_ext >&5
5438
5439 ac_header_preproc=no
5440fi
5441rm -f conftest.err conftest.$ac_ext
5442echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5443echo "${ECHO_T}$ac_header_preproc" >&6
5444
5445# So? What about this header?
5446case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5447 yes:no: )
5448 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5449echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5450 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5451echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5452 ac_header_preproc=yes
5453 ;;
5454 no:yes:* )
5455 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5456echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5457 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5458echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5459 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5460echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5461 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5462echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5463 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5464echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5465 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5466echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5467 (
5468 cat <<\_ASBOX
5469## ----------------------------------------------------- ##
5470## Report this to the GNU OpenMP Runtime Library lists. ##
5471## ----------------------------------------------------- ##
5472_ASBOX
5473 ) |
5474 sed "s/^/$as_me: WARNING: /" >&2
5475 ;;
5476esac
5477echo "$as_me:$LINENO: checking for $ac_header" >&5
5478echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5479if eval "test \"\${$as_ac_Header+set}\" = set"; then
5480 echo $ECHO_N "(cached) $ECHO_C" >&6
5481else
5482 eval "$as_ac_Header=\$ac_header_preproc"
5483fi
5484echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5485echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5486
5487fi
5488if test `eval echo '${'$as_ac_Header'}'` = yes; then
5489 cat >>confdefs.h <<_ACEOF
5490#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5491_ACEOF
5492
5493fi
5494
5495done
5496
1e8e9920 5497
01473a49 5498
5499
5500inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
5501
5502acx_cv_header_stdint=stddef.h
5503acx_cv_header_stdint_kind="(already complete)"
5504for i in stdint.h $inttype_headers; do
5505 unset ac_cv_type_uintptr_t
5506 unset ac_cv_type_uintmax_t
5507 unset ac_cv_type_int_least32_t
5508 unset ac_cv_type_int_fast32_t
5509 unset ac_cv_type_uint64_t
5510 echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
5511 echo "$as_me:$LINENO: checking for uintmax_t" >&5
5512echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
5513if test "${ac_cv_type_uintmax_t+set}" = set; then
5514 echo $ECHO_N "(cached) $ECHO_C" >&6
5515else
5516 cat >conftest.$ac_ext <<_ACEOF
5517/* confdefs.h. */
5518_ACEOF
5519cat confdefs.h >>conftest.$ac_ext
5520cat >>conftest.$ac_ext <<_ACEOF
5521/* end confdefs.h. */
5522#include <sys/types.h>
5523#include <$i>
5524
5525int
5526main ()
5527{
5528if ((uintmax_t *) 0)
5529 return 0;
5530if (sizeof (uintmax_t))
5531 return 0;
5532 ;
5533 return 0;
5534}
5535_ACEOF
5536rm -f conftest.$ac_objext
5537if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5538 (eval $ac_compile) 2>conftest.er1
5539 ac_status=$?
5540 grep -v '^ *+' conftest.er1 >conftest.err
5541 rm -f conftest.er1
5542 cat conftest.err >&5
5543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544 (exit $ac_status); } &&
59da30e1 5545 { ac_try='test -z "$ac_c_werror_flag"
5546 || test ! -s conftest.err'
01473a49 5547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5548 (eval $ac_try) 2>&5
5549 ac_status=$?
5550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551 (exit $ac_status); }; } &&
5552 { ac_try='test -s conftest.$ac_objext'
5553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5554 (eval $ac_try) 2>&5
5555 ac_status=$?
5556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5557 (exit $ac_status); }; }; then
5558 ac_cv_type_uintmax_t=yes
5559else
5560 echo "$as_me: failed program was:" >&5
5561sed 's/^/| /' conftest.$ac_ext >&5
5562
5563ac_cv_type_uintmax_t=no
5564fi
5565rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5566fi
5567echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
5568echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
5569if test $ac_cv_type_uintmax_t = yes; then
5570 acx_cv_header_stdint=$i
5571else
5572 continue
5573fi
5574
5575 echo "$as_me:$LINENO: checking for uintptr_t" >&5
5576echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
5577if test "${ac_cv_type_uintptr_t+set}" = set; then
5578 echo $ECHO_N "(cached) $ECHO_C" >&6
5579else
5580 cat >conftest.$ac_ext <<_ACEOF
5581/* confdefs.h. */
5582_ACEOF
5583cat confdefs.h >>conftest.$ac_ext
5584cat >>conftest.$ac_ext <<_ACEOF
5585/* end confdefs.h. */
5586#include <sys/types.h>
5587#include <$i>
5588
5589int
5590main ()
5591{
5592if ((uintptr_t *) 0)
5593 return 0;
5594if (sizeof (uintptr_t))
5595 return 0;
5596 ;
5597 return 0;
5598}
5599_ACEOF
5600rm -f conftest.$ac_objext
5601if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5602 (eval $ac_compile) 2>conftest.er1
5603 ac_status=$?
5604 grep -v '^ *+' conftest.er1 >conftest.err
5605 rm -f conftest.er1
5606 cat conftest.err >&5
5607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608 (exit $ac_status); } &&
59da30e1 5609 { ac_try='test -z "$ac_c_werror_flag"
5610 || test ! -s conftest.err'
01473a49 5611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5612 (eval $ac_try) 2>&5
5613 ac_status=$?
5614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615 (exit $ac_status); }; } &&
5616 { ac_try='test -s conftest.$ac_objext'
5617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5618 (eval $ac_try) 2>&5
5619 ac_status=$?
5620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621 (exit $ac_status); }; }; then
5622 ac_cv_type_uintptr_t=yes
5623else
5624 echo "$as_me: failed program was:" >&5
5625sed 's/^/| /' conftest.$ac_ext >&5
5626
5627ac_cv_type_uintptr_t=no
5628fi
5629rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5630fi
5631echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
5632echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
5633if test $ac_cv_type_uintptr_t = yes; then
5634 :
5635else
5636 acx_cv_header_stdint_kind="(mostly complete)"
5637fi
5638
5639 echo "$as_me:$LINENO: checking for int_least32_t" >&5
5640echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
5641if test "${ac_cv_type_int_least32_t+set}" = set; then
5642 echo $ECHO_N "(cached) $ECHO_C" >&6
5643else
5644 cat >conftest.$ac_ext <<_ACEOF
5645/* confdefs.h. */
5646_ACEOF
5647cat confdefs.h >>conftest.$ac_ext
5648cat >>conftest.$ac_ext <<_ACEOF
5649/* end confdefs.h. */
5650#include <sys/types.h>
5651#include <$i>
5652
5653int
5654main ()
5655{
5656if ((int_least32_t *) 0)
5657 return 0;
5658if (sizeof (int_least32_t))
5659 return 0;
5660 ;
5661 return 0;
5662}
5663_ACEOF
5664rm -f conftest.$ac_objext
5665if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5666 (eval $ac_compile) 2>conftest.er1
5667 ac_status=$?
5668 grep -v '^ *+' conftest.er1 >conftest.err
5669 rm -f conftest.er1
5670 cat conftest.err >&5
5671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672 (exit $ac_status); } &&
59da30e1 5673 { ac_try='test -z "$ac_c_werror_flag"
5674 || test ! -s conftest.err'
01473a49 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); }; } &&
5680 { ac_try='test -s conftest.$ac_objext'
5681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5682 (eval $ac_try) 2>&5
5683 ac_status=$?
5684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685 (exit $ac_status); }; }; then
5686 ac_cv_type_int_least32_t=yes
5687else
5688 echo "$as_me: failed program was:" >&5
5689sed 's/^/| /' conftest.$ac_ext >&5
5690
5691ac_cv_type_int_least32_t=no
5692fi
5693rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5694fi
5695echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
5696echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
5697if test $ac_cv_type_int_least32_t = yes; then
5698 :
5699else
5700 acx_cv_header_stdint_kind="(mostly complete)"
5701fi
5702
5703 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
5704echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
5705if test "${ac_cv_type_int_fast32_t+set}" = set; then
5706 echo $ECHO_N "(cached) $ECHO_C" >&6
5707else
5708 cat >conftest.$ac_ext <<_ACEOF
5709/* confdefs.h. */
5710_ACEOF
5711cat confdefs.h >>conftest.$ac_ext
5712cat >>conftest.$ac_ext <<_ACEOF
5713/* end confdefs.h. */
5714#include <sys/types.h>
5715#include <$i>
5716
5717int
5718main ()
5719{
5720if ((int_fast32_t *) 0)
5721 return 0;
5722if (sizeof (int_fast32_t))
5723 return 0;
5724 ;
5725 return 0;
5726}
5727_ACEOF
5728rm -f conftest.$ac_objext
5729if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5730 (eval $ac_compile) 2>conftest.er1
5731 ac_status=$?
5732 grep -v '^ *+' conftest.er1 >conftest.err
5733 rm -f conftest.er1
5734 cat conftest.err >&5
5735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736 (exit $ac_status); } &&
59da30e1 5737 { ac_try='test -z "$ac_c_werror_flag"
5738 || test ! -s conftest.err'
01473a49 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); }; } &&
5744 { ac_try='test -s conftest.$ac_objext'
5745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5746 (eval $ac_try) 2>&5
5747 ac_status=$?
5748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5749 (exit $ac_status); }; }; then
5750 ac_cv_type_int_fast32_t=yes
5751else
5752 echo "$as_me: failed program was:" >&5
5753sed 's/^/| /' conftest.$ac_ext >&5
5754
5755ac_cv_type_int_fast32_t=no
5756fi
5757rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5758fi
5759echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
5760echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
5761if test $ac_cv_type_int_fast32_t = yes; then
5762 :
5763else
5764 acx_cv_header_stdint_kind="(mostly complete)"
5765fi
5766
5767 echo "$as_me:$LINENO: checking for uint64_t" >&5
5768echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
5769if test "${ac_cv_type_uint64_t+set}" = set; then
5770 echo $ECHO_N "(cached) $ECHO_C" >&6
5771else
5772 cat >conftest.$ac_ext <<_ACEOF
5773/* confdefs.h. */
5774_ACEOF
5775cat confdefs.h >>conftest.$ac_ext
5776cat >>conftest.$ac_ext <<_ACEOF
5777/* end confdefs.h. */
5778#include <sys/types.h>
5779#include <$i>
5780
5781int
5782main ()
5783{
5784if ((uint64_t *) 0)
5785 return 0;
5786if (sizeof (uint64_t))
5787 return 0;
5788 ;
5789 return 0;
5790}
5791_ACEOF
5792rm -f conftest.$ac_objext
5793if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5794 (eval $ac_compile) 2>conftest.er1
5795 ac_status=$?
5796 grep -v '^ *+' conftest.er1 >conftest.err
5797 rm -f conftest.er1
5798 cat conftest.err >&5
5799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800 (exit $ac_status); } &&
59da30e1 5801 { ac_try='test -z "$ac_c_werror_flag"
5802 || test ! -s conftest.err'
01473a49 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); }; } &&
5808 { ac_try='test -s conftest.$ac_objext'
5809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5810 (eval $ac_try) 2>&5
5811 ac_status=$?
5812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5813 (exit $ac_status); }; }; then
5814 ac_cv_type_uint64_t=yes
5815else
5816 echo "$as_me: failed program was:" >&5
5817sed 's/^/| /' conftest.$ac_ext >&5
5818
5819ac_cv_type_uint64_t=no
5820fi
5821rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5822fi
5823echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
5824echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
5825if test $ac_cv_type_uint64_t = yes; then
5826 :
5827else
5828 acx_cv_header_stdint_kind="(lacks uint64_t)"
5829fi
5830
5831 break
5832done
5833if test "$acx_cv_header_stdint" = stddef.h; then
5834 acx_cv_header_stdint_kind="(lacks uintptr_t)"
5835 for i in stdint.h $inttype_headers; do
5836 unset ac_cv_type_uint32_t
5837 unset ac_cv_type_uint64_t
5838 echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
5839 echo "$as_me:$LINENO: checking for uint32_t" >&5
5840echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
5841if test "${ac_cv_type_uint32_t+set}" = set; then
5842 echo $ECHO_N "(cached) $ECHO_C" >&6
5843else
5844 cat >conftest.$ac_ext <<_ACEOF
5845/* confdefs.h. */
5846_ACEOF
5847cat confdefs.h >>conftest.$ac_ext
5848cat >>conftest.$ac_ext <<_ACEOF
5849/* end confdefs.h. */
5850#include <sys/types.h>
5851#include <$i>
5852
5853int
5854main ()
5855{
5856if ((uint32_t *) 0)
5857 return 0;
5858if (sizeof (uint32_t))
5859 return 0;
5860 ;
5861 return 0;
5862}
5863_ACEOF
5864rm -f conftest.$ac_objext
5865if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5866 (eval $ac_compile) 2>conftest.er1
5867 ac_status=$?
5868 grep -v '^ *+' conftest.er1 >conftest.err
5869 rm -f conftest.er1
5870 cat conftest.err >&5
5871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872 (exit $ac_status); } &&
59da30e1 5873 { ac_try='test -z "$ac_c_werror_flag"
5874 || test ! -s conftest.err'
01473a49 5875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5876 (eval $ac_try) 2>&5
5877 ac_status=$?
5878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879 (exit $ac_status); }; } &&
5880 { ac_try='test -s conftest.$ac_objext'
5881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5882 (eval $ac_try) 2>&5
5883 ac_status=$?
5884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5885 (exit $ac_status); }; }; then
5886 ac_cv_type_uint32_t=yes
5887else
5888 echo "$as_me: failed program was:" >&5
5889sed 's/^/| /' conftest.$ac_ext >&5
5890
5891ac_cv_type_uint32_t=no
5892fi
5893rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5894fi
5895echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
5896echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
5897if test $ac_cv_type_uint32_t = yes; then
5898 acx_cv_header_stdint=$i
5899else
5900 continue
5901fi
5902
5903 echo "$as_me:$LINENO: checking for uint64_t" >&5
5904echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
5905if test "${ac_cv_type_uint64_t+set}" = set; then
5906 echo $ECHO_N "(cached) $ECHO_C" >&6
5907else
5908 cat >conftest.$ac_ext <<_ACEOF
5909/* confdefs.h. */
5910_ACEOF
5911cat confdefs.h >>conftest.$ac_ext
5912cat >>conftest.$ac_ext <<_ACEOF
5913/* end confdefs.h. */
5914#include <sys/types.h>
5915#include <$i>
5916
5917int
5918main ()
5919{
5920if ((uint64_t *) 0)
5921 return 0;
5922if (sizeof (uint64_t))
5923 return 0;
5924 ;
5925 return 0;
5926}
5927_ACEOF
5928rm -f conftest.$ac_objext
5929if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5930 (eval $ac_compile) 2>conftest.er1
5931 ac_status=$?
5932 grep -v '^ *+' conftest.er1 >conftest.err
5933 rm -f conftest.er1
5934 cat conftest.err >&5
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); } &&
59da30e1 5937 { ac_try='test -z "$ac_c_werror_flag"
5938 || test ! -s conftest.err'
01473a49 5939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5940 (eval $ac_try) 2>&5
5941 ac_status=$?
5942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943 (exit $ac_status); }; } &&
5944 { ac_try='test -s conftest.$ac_objext'
5945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5946 (eval $ac_try) 2>&5
5947 ac_status=$?
5948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949 (exit $ac_status); }; }; then
5950 ac_cv_type_uint64_t=yes
5951else
5952 echo "$as_me: failed program was:" >&5
5953sed 's/^/| /' conftest.$ac_ext >&5
5954
5955ac_cv_type_uint64_t=no
5956fi
5957rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5958fi
5959echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
5960echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
5961if test $ac_cv_type_uint64_t = yes; then
5962 :
5963else
5964 acx_cv_header_stdint_kind="(lacks uintptr_t and uint64_t)"
5965fi
5966
5967 break
5968 done
5969fi
5970if test "$acx_cv_header_stdint" = stddef.h; then
5971 acx_cv_header_stdint_kind="(u_intXX_t style)"
5972 for i in sys/types.h $inttype_headers; do
5973 unset ac_cv_type_u_int32_t
5974 unset ac_cv_type_u_int64_t
5975 echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
5976 echo "$as_me:$LINENO: checking for u_int32_t" >&5
5977echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
5978if test "${ac_cv_type_u_int32_t+set}" = set; then
5979 echo $ECHO_N "(cached) $ECHO_C" >&6
5980else
5981 cat >conftest.$ac_ext <<_ACEOF
5982/* confdefs.h. */
5983_ACEOF
5984cat confdefs.h >>conftest.$ac_ext
5985cat >>conftest.$ac_ext <<_ACEOF
5986/* end confdefs.h. */
5987#include <sys/types.h>
5988#include <$i>
5989
5990int
5991main ()
5992{
5993if ((u_int32_t *) 0)
5994 return 0;
5995if (sizeof (u_int32_t))
5996 return 0;
5997 ;
5998 return 0;
5999}
6000_ACEOF
6001rm -f conftest.$ac_objext
6002if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6003 (eval $ac_compile) 2>conftest.er1
6004 ac_status=$?
6005 grep -v '^ *+' conftest.er1 >conftest.err
6006 rm -f conftest.er1
6007 cat conftest.err >&5
6008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009 (exit $ac_status); } &&
59da30e1 6010 { ac_try='test -z "$ac_c_werror_flag"
6011 || test ! -s conftest.err'
01473a49 6012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6013 (eval $ac_try) 2>&5
6014 ac_status=$?
6015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6016 (exit $ac_status); }; } &&
6017 { ac_try='test -s conftest.$ac_objext'
6018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6019 (eval $ac_try) 2>&5
6020 ac_status=$?
6021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022 (exit $ac_status); }; }; then
6023 ac_cv_type_u_int32_t=yes
6024else
6025 echo "$as_me: failed program was:" >&5
6026sed 's/^/| /' conftest.$ac_ext >&5
6027
6028ac_cv_type_u_int32_t=no
6029fi
6030rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6031fi
6032echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
6033echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
6034if test $ac_cv_type_u_int32_t = yes; then
6035 acx_cv_header_stdint=$i
6036else
6037 continue
6038fi
6039
6040 echo "$as_me:$LINENO: checking for u_int64_t" >&5
6041echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
6042if test "${ac_cv_type_u_int64_t+set}" = set; then
6043 echo $ECHO_N "(cached) $ECHO_C" >&6
6044else
6045 cat >conftest.$ac_ext <<_ACEOF
6046/* confdefs.h. */
6047_ACEOF
6048cat confdefs.h >>conftest.$ac_ext
6049cat >>conftest.$ac_ext <<_ACEOF
6050/* end confdefs.h. */
6051#include <sys/types.h>
6052#include <$i>
6053
6054int
6055main ()
6056{
6057if ((u_int64_t *) 0)
6058 return 0;
6059if (sizeof (u_int64_t))
6060 return 0;
6061 ;
6062 return 0;
6063}
6064_ACEOF
6065rm -f conftest.$ac_objext
6066if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6067 (eval $ac_compile) 2>conftest.er1
6068 ac_status=$?
6069 grep -v '^ *+' conftest.er1 >conftest.err
6070 rm -f conftest.er1
6071 cat conftest.err >&5
6072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6073 (exit $ac_status); } &&
59da30e1 6074 { ac_try='test -z "$ac_c_werror_flag"
6075 || test ! -s conftest.err'
01473a49 6076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6077 (eval $ac_try) 2>&5
6078 ac_status=$?
6079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080 (exit $ac_status); }; } &&
6081 { ac_try='test -s conftest.$ac_objext'
6082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6083 (eval $ac_try) 2>&5
6084 ac_status=$?
6085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086 (exit $ac_status); }; }; then
6087 ac_cv_type_u_int64_t=yes
6088else
6089 echo "$as_me: failed program was:" >&5
6090sed 's/^/| /' conftest.$ac_ext >&5
6091
6092ac_cv_type_u_int64_t=no
6093fi
6094rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6095fi
6096echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
6097echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
6098if test $ac_cv_type_u_int64_t = yes; then
6099 :
6100else
6101 acx_cv_header_stdint_kind="(u_intXX_t style, lacks u_int64_t)"
6102fi
6103
6104 break
6105 done
6106fi
6107if test "$acx_cv_header_stdint" = stddef.h; then
6108 acx_cv_header_stdint_kind="(using manual detection)"
6109fi
6110
6111test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
6112test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
6113test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
6114test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
6115test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
6116
6117# ----------------- Summarize what we found so far
6118
6119echo "$as_me:$LINENO: checking what to include in gstdint.h" >&5
6120echo $ECHO_N "checking what to include in gstdint.h... $ECHO_C" >&6
6121
6122case `$as_basename gstdint.h ||
6123$as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
6124 Xgstdint.h : 'X\(//\)$' \| \
6125 Xgstdint.h : 'X\(/\)$' \| \
6126 . : '\(.\)' 2>/dev/null ||
6127echo X/gstdint.h |
6128 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6129 /^X\/\(\/\/\)$/{ s//\1/; q; }
6130 /^X\/\(\/\).*/{ s//\1/; q; }
6131 s/.*/./; q'` in
6132 stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
6133echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
6134 inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
6135echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
6136 *) ;;
6137esac
6138
6139echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
6140echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
6141
6142# ----------------- done included file, check C basic types --------
6143
6144# Lacking an uintptr_t? Test size of void *
6145case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
6146 stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
6147echo $ECHO_N "checking for void *... $ECHO_C" >&6
6148if test "${ac_cv_type_void_p+set}" = set; then
6149 echo $ECHO_N "(cached) $ECHO_C" >&6
6150else
6151 cat >conftest.$ac_ext <<_ACEOF
6152/* confdefs.h. */
6153_ACEOF
6154cat confdefs.h >>conftest.$ac_ext
6155cat >>conftest.$ac_ext <<_ACEOF
6156/* end confdefs.h. */
6157$ac_includes_default
6158int
6159main ()
6160{
6161if ((void * *) 0)
6162 return 0;
6163if (sizeof (void *))
6164 return 0;
6165 ;
6166 return 0;
6167}
6168_ACEOF
6169rm -f conftest.$ac_objext
6170if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6171 (eval $ac_compile) 2>conftest.er1
6172 ac_status=$?
6173 grep -v '^ *+' conftest.er1 >conftest.err
6174 rm -f conftest.er1
6175 cat conftest.err >&5
6176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6177 (exit $ac_status); } &&
59da30e1 6178 { ac_try='test -z "$ac_c_werror_flag"
6179 || test ! -s conftest.err'
01473a49 6180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6181 (eval $ac_try) 2>&5
6182 ac_status=$?
6183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184 (exit $ac_status); }; } &&
6185 { ac_try='test -s conftest.$ac_objext'
6186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6187 (eval $ac_try) 2>&5
6188 ac_status=$?
6189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6190 (exit $ac_status); }; }; then
6191 ac_cv_type_void_p=yes
6192else
6193 echo "$as_me: failed program was:" >&5
6194sed 's/^/| /' conftest.$ac_ext >&5
6195
6196ac_cv_type_void_p=no
6197fi
6198rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6199fi
6200echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
6201echo "${ECHO_T}$ac_cv_type_void_p" >&6
6202
6203echo "$as_me:$LINENO: checking size of void *" >&5
6204echo $ECHO_N "checking size of void *... $ECHO_C" >&6
6205if test "${ac_cv_sizeof_void_p+set}" = set; then
6206 echo $ECHO_N "(cached) $ECHO_C" >&6
6207else
6208 if test "$ac_cv_type_void_p" = yes; then
6209 # The cast to unsigned long works around a bug in the HP C Compiler
6210 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6211 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6212 # This bug is HP SR number 8606223364.
6213 if test "$cross_compiling" = yes; then
6214 # Depending upon the size, compute the lo and hi bounds.
6215cat >conftest.$ac_ext <<_ACEOF
6216/* confdefs.h. */
6217_ACEOF
6218cat confdefs.h >>conftest.$ac_ext
6219cat >>conftest.$ac_ext <<_ACEOF
6220/* end confdefs.h. */
6221$ac_includes_default
6222int
6223main ()
6224{
6225static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
6226test_array [0] = 0
6227
6228 ;
6229 return 0;
6230}
6231_ACEOF
6232rm -f conftest.$ac_objext
6233if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6234 (eval $ac_compile) 2>conftest.er1
6235 ac_status=$?
6236 grep -v '^ *+' conftest.er1 >conftest.err
6237 rm -f conftest.er1
6238 cat conftest.err >&5
6239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6240 (exit $ac_status); } &&
59da30e1 6241 { ac_try='test -z "$ac_c_werror_flag"
6242 || test ! -s conftest.err'
01473a49 6243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6244 (eval $ac_try) 2>&5
6245 ac_status=$?
6246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247 (exit $ac_status); }; } &&
6248 { ac_try='test -s conftest.$ac_objext'
6249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6250 (eval $ac_try) 2>&5
6251 ac_status=$?
6252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253 (exit $ac_status); }; }; then
6254 ac_lo=0 ac_mid=0
6255 while :; do
6256 cat >conftest.$ac_ext <<_ACEOF
6257/* confdefs.h. */
6258_ACEOF
6259cat confdefs.h >>conftest.$ac_ext
6260cat >>conftest.$ac_ext <<_ACEOF
6261/* end confdefs.h. */
6262$ac_includes_default
6263int
6264main ()
6265{
6266static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
6267test_array [0] = 0
6268
6269 ;
6270 return 0;
6271}
6272_ACEOF
6273rm -f conftest.$ac_objext
6274if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6275 (eval $ac_compile) 2>conftest.er1
6276 ac_status=$?
6277 grep -v '^ *+' conftest.er1 >conftest.err
6278 rm -f conftest.er1
6279 cat conftest.err >&5
6280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6281 (exit $ac_status); } &&
59da30e1 6282 { ac_try='test -z "$ac_c_werror_flag"
6283 || test ! -s conftest.err'
01473a49 6284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6285 (eval $ac_try) 2>&5
6286 ac_status=$?
6287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6288 (exit $ac_status); }; } &&
6289 { ac_try='test -s conftest.$ac_objext'
6290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6291 (eval $ac_try) 2>&5
6292 ac_status=$?
6293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294 (exit $ac_status); }; }; then
6295 ac_hi=$ac_mid; break
6296else
6297 echo "$as_me: failed program was:" >&5
6298sed 's/^/| /' conftest.$ac_ext >&5
6299
6300ac_lo=`expr $ac_mid + 1`
6301 if test $ac_lo -le $ac_mid; then
6302 ac_lo= ac_hi=
6303 break
6304 fi
6305 ac_mid=`expr 2 '*' $ac_mid + 1`
6306fi
6307rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6308 done
6309else
6310 echo "$as_me: failed program was:" >&5
6311sed 's/^/| /' conftest.$ac_ext >&5
6312
6313cat >conftest.$ac_ext <<_ACEOF
6314/* confdefs.h. */
6315_ACEOF
6316cat confdefs.h >>conftest.$ac_ext
6317cat >>conftest.$ac_ext <<_ACEOF
6318/* end confdefs.h. */
6319$ac_includes_default
6320int
6321main ()
6322{
6323static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
6324test_array [0] = 0
6325
6326 ;
6327 return 0;
6328}
6329_ACEOF
6330rm -f conftest.$ac_objext
6331if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6332 (eval $ac_compile) 2>conftest.er1
6333 ac_status=$?
6334 grep -v '^ *+' conftest.er1 >conftest.err
6335 rm -f conftest.er1
6336 cat conftest.err >&5
6337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338 (exit $ac_status); } &&
59da30e1 6339 { ac_try='test -z "$ac_c_werror_flag"
6340 || test ! -s conftest.err'
01473a49 6341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6342 (eval $ac_try) 2>&5
6343 ac_status=$?
6344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6345 (exit $ac_status); }; } &&
6346 { ac_try='test -s conftest.$ac_objext'
6347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6348 (eval $ac_try) 2>&5
6349 ac_status=$?
6350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6351 (exit $ac_status); }; }; then
6352 ac_hi=-1 ac_mid=-1
6353 while :; do
6354 cat >conftest.$ac_ext <<_ACEOF
6355/* confdefs.h. */
6356_ACEOF
6357cat confdefs.h >>conftest.$ac_ext
6358cat >>conftest.$ac_ext <<_ACEOF
6359/* end confdefs.h. */
6360$ac_includes_default
6361int
6362main ()
6363{
6364static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
6365test_array [0] = 0
6366
6367 ;
6368 return 0;
6369}
6370_ACEOF
6371rm -f conftest.$ac_objext
6372if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6373 (eval $ac_compile) 2>conftest.er1
6374 ac_status=$?
6375 grep -v '^ *+' conftest.er1 >conftest.err
6376 rm -f conftest.er1
6377 cat conftest.err >&5
6378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6379 (exit $ac_status); } &&
59da30e1 6380 { ac_try='test -z "$ac_c_werror_flag"
6381 || test ! -s conftest.err'
01473a49 6382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6383 (eval $ac_try) 2>&5
6384 ac_status=$?
6385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6386 (exit $ac_status); }; } &&
6387 { ac_try='test -s conftest.$ac_objext'
6388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6389 (eval $ac_try) 2>&5
6390 ac_status=$?
6391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6392 (exit $ac_status); }; }; then
6393 ac_lo=$ac_mid; break
6394else
6395 echo "$as_me: failed program was:" >&5
6396sed 's/^/| /' conftest.$ac_ext >&5
6397
6398ac_hi=`expr '(' $ac_mid ')' - 1`
6399 if test $ac_mid -le $ac_hi; then
6400 ac_lo= ac_hi=
6401 break
6402 fi
6403 ac_mid=`expr 2 '*' $ac_mid`
6404fi
6405rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6406 done
6407else
6408 echo "$as_me: failed program was:" >&5
6409sed 's/^/| /' conftest.$ac_ext >&5
6410
6411ac_lo= ac_hi=
6412fi
6413rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6414fi
6415rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6416# Binary search between lo and hi bounds.
6417while test "x$ac_lo" != "x$ac_hi"; do
6418 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6419 cat >conftest.$ac_ext <<_ACEOF
6420/* confdefs.h. */
6421_ACEOF
6422cat confdefs.h >>conftest.$ac_ext
6423cat >>conftest.$ac_ext <<_ACEOF
6424/* end confdefs.h. */
6425$ac_includes_default
6426int
6427main ()
6428{
6429static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
6430test_array [0] = 0
6431
6432 ;
6433 return 0;
6434}
6435_ACEOF
6436rm -f conftest.$ac_objext
6437if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6438 (eval $ac_compile) 2>conftest.er1
6439 ac_status=$?
6440 grep -v '^ *+' conftest.er1 >conftest.err
6441 rm -f conftest.er1
6442 cat conftest.err >&5
6443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6444 (exit $ac_status); } &&
59da30e1 6445 { ac_try='test -z "$ac_c_werror_flag"
6446 || test ! -s conftest.err'
01473a49 6447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6448 (eval $ac_try) 2>&5
6449 ac_status=$?
6450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6451 (exit $ac_status); }; } &&
6452 { ac_try='test -s conftest.$ac_objext'
6453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6454 (eval $ac_try) 2>&5
6455 ac_status=$?
6456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6457 (exit $ac_status); }; }; then
6458 ac_hi=$ac_mid
6459else
6460 echo "$as_me: failed program was:" >&5
6461sed 's/^/| /' conftest.$ac_ext >&5
6462
6463ac_lo=`expr '(' $ac_mid ')' + 1`
6464fi
6465rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6466done
6467case $ac_lo in
6468?*) ac_cv_sizeof_void_p=$ac_lo;;
6469'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
6470See \`config.log' for more details." >&5
6471echo "$as_me: error: cannot compute sizeof (void *), 77
6472See \`config.log' for more details." >&2;}
6473 { (exit 1); exit 1; }; } ;;
6474esac
6475else
6476 if test "$cross_compiling" = yes; then
59da30e1 6477 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6478See \`config.log' for more details." >&5
6479echo "$as_me: error: cannot run test program while cross compiling
6480See \`config.log' for more details." >&2;}
01473a49 6481 { (exit 1); exit 1; }; }
6482else
6483 cat >conftest.$ac_ext <<_ACEOF
6484/* confdefs.h. */
6485_ACEOF
6486cat confdefs.h >>conftest.$ac_ext
6487cat >>conftest.$ac_ext <<_ACEOF
6488/* end confdefs.h. */
6489$ac_includes_default
6490long longval () { return (long) (sizeof (void *)); }
6491unsigned long ulongval () { return (long) (sizeof (void *)); }
6492#include <stdio.h>
6493#include <stdlib.h>
6494int
6495main ()
6496{
6497
6498 FILE *f = fopen ("conftest.val", "w");
6499 if (! f)
6500 exit (1);
6501 if (((long) (sizeof (void *))) < 0)
6502 {
6503 long i = longval ();
6504 if (i != ((long) (sizeof (void *))))
6505 exit (1);
6506 fprintf (f, "%ld\n", i);
6507 }
6508 else
6509 {
6510 unsigned long i = ulongval ();
6511 if (i != ((long) (sizeof (void *))))
6512 exit (1);
6513 fprintf (f, "%lu\n", i);
6514 }
6515 exit (ferror (f) || fclose (f) != 0);
6516
6517 ;
6518 return 0;
6519}
6520_ACEOF
6521rm -f conftest$ac_exeext
6522if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6523 (eval $ac_link) 2>&5
6524 ac_status=$?
6525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6528 (eval $ac_try) 2>&5
6529 ac_status=$?
6530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6531 (exit $ac_status); }; }; then
6532 ac_cv_sizeof_void_p=`cat conftest.val`
6533else
6534 echo "$as_me: program exited with status $ac_status" >&5
6535echo "$as_me: failed program was:" >&5
6536sed 's/^/| /' conftest.$ac_ext >&5
6537
6538( exit $ac_status )
6539{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
6540See \`config.log' for more details." >&5
6541echo "$as_me: error: cannot compute sizeof (void *), 77
6542See \`config.log' for more details." >&2;}
6543 { (exit 1); exit 1; }; }
6544fi
6545rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6546fi
6547fi
6548rm -f conftest.val
6549else
6550 ac_cv_sizeof_void_p=0
6551fi
6552fi
6553echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
6554echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
6555cat >>confdefs.h <<_ACEOF
6556#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6557_ACEOF
6558
6559 ;;
6560esac
6561
6562# Lacking an uint64_t? Test size of long
6563case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
6564 stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
6565echo $ECHO_N "checking for long... $ECHO_C" >&6
6566if test "${ac_cv_type_long+set}" = set; then
6567 echo $ECHO_N "(cached) $ECHO_C" >&6
6568else
6569 cat >conftest.$ac_ext <<_ACEOF
6570/* confdefs.h. */
6571_ACEOF
6572cat confdefs.h >>conftest.$ac_ext
6573cat >>conftest.$ac_ext <<_ACEOF
6574/* end confdefs.h. */
6575$ac_includes_default
6576int
6577main ()
6578{
6579if ((long *) 0)
6580 return 0;
6581if (sizeof (long))
6582 return 0;
6583 ;
6584 return 0;
6585}
6586_ACEOF
6587rm -f conftest.$ac_objext
6588if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6589 (eval $ac_compile) 2>conftest.er1
6590 ac_status=$?
6591 grep -v '^ *+' conftest.er1 >conftest.err
6592 rm -f conftest.er1
6593 cat conftest.err >&5
6594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6595 (exit $ac_status); } &&
59da30e1 6596 { ac_try='test -z "$ac_c_werror_flag"
6597 || test ! -s conftest.err'
01473a49 6598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6599 (eval $ac_try) 2>&5
6600 ac_status=$?
6601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6602 (exit $ac_status); }; } &&
6603 { ac_try='test -s conftest.$ac_objext'
6604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6605 (eval $ac_try) 2>&5
6606 ac_status=$?
6607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608 (exit $ac_status); }; }; then
6609 ac_cv_type_long=yes
6610else
6611 echo "$as_me: failed program was:" >&5
6612sed 's/^/| /' conftest.$ac_ext >&5
6613
6614ac_cv_type_long=no
6615fi
6616rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6617fi
6618echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6619echo "${ECHO_T}$ac_cv_type_long" >&6
6620
6621echo "$as_me:$LINENO: checking size of long" >&5
6622echo $ECHO_N "checking size of long... $ECHO_C" >&6
6623if test "${ac_cv_sizeof_long+set}" = set; then
6624 echo $ECHO_N "(cached) $ECHO_C" >&6
6625else
6626 if test "$ac_cv_type_long" = yes; then
6627 # The cast to unsigned long works around a bug in the HP C Compiler
6628 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6629 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6630 # This bug is HP SR number 8606223364.
6631 if test "$cross_compiling" = yes; then
6632 # Depending upon the size, compute the lo and hi bounds.
6633cat >conftest.$ac_ext <<_ACEOF
6634/* confdefs.h. */
6635_ACEOF
6636cat confdefs.h >>conftest.$ac_ext
6637cat >>conftest.$ac_ext <<_ACEOF
6638/* end confdefs.h. */
6639$ac_includes_default
6640int
6641main ()
6642{
6643static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6644test_array [0] = 0
6645
6646 ;
6647 return 0;
6648}
6649_ACEOF
6650rm -f conftest.$ac_objext
6651if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6652 (eval $ac_compile) 2>conftest.er1
6653 ac_status=$?
6654 grep -v '^ *+' conftest.er1 >conftest.err
6655 rm -f conftest.er1
6656 cat conftest.err >&5
6657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6658 (exit $ac_status); } &&
59da30e1 6659 { ac_try='test -z "$ac_c_werror_flag"
6660 || test ! -s conftest.err'
01473a49 6661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6662 (eval $ac_try) 2>&5
6663 ac_status=$?
6664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6665 (exit $ac_status); }; } &&
6666 { ac_try='test -s conftest.$ac_objext'
6667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6668 (eval $ac_try) 2>&5
6669 ac_status=$?
6670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6671 (exit $ac_status); }; }; then
6672 ac_lo=0 ac_mid=0
6673 while :; do
6674 cat >conftest.$ac_ext <<_ACEOF
6675/* confdefs.h. */
6676_ACEOF
6677cat confdefs.h >>conftest.$ac_ext
6678cat >>conftest.$ac_ext <<_ACEOF
6679/* end confdefs.h. */
6680$ac_includes_default
6681int
6682main ()
6683{
6684static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6685test_array [0] = 0
6686
6687 ;
6688 return 0;
6689}
6690_ACEOF
6691rm -f conftest.$ac_objext
6692if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6693 (eval $ac_compile) 2>conftest.er1
6694 ac_status=$?
6695 grep -v '^ *+' conftest.er1 >conftest.err
6696 rm -f conftest.er1
6697 cat conftest.err >&5
6698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6699 (exit $ac_status); } &&
59da30e1 6700 { ac_try='test -z "$ac_c_werror_flag"
6701 || test ! -s conftest.err'
01473a49 6702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6703 (eval $ac_try) 2>&5
6704 ac_status=$?
6705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706 (exit $ac_status); }; } &&
6707 { ac_try='test -s conftest.$ac_objext'
6708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6709 (eval $ac_try) 2>&5
6710 ac_status=$?
6711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712 (exit $ac_status); }; }; then
6713 ac_hi=$ac_mid; break
6714else
6715 echo "$as_me: failed program was:" >&5
6716sed 's/^/| /' conftest.$ac_ext >&5
6717
6718ac_lo=`expr $ac_mid + 1`
6719 if test $ac_lo -le $ac_mid; then
6720 ac_lo= ac_hi=
6721 break
6722 fi
6723 ac_mid=`expr 2 '*' $ac_mid + 1`
6724fi
6725rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6726 done
6727else
6728 echo "$as_me: failed program was:" >&5
6729sed 's/^/| /' conftest.$ac_ext >&5
6730
6731cat >conftest.$ac_ext <<_ACEOF
6732/* confdefs.h. */
6733_ACEOF
6734cat confdefs.h >>conftest.$ac_ext
6735cat >>conftest.$ac_ext <<_ACEOF
6736/* end confdefs.h. */
6737$ac_includes_default
6738int
6739main ()
6740{
6741static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6742test_array [0] = 0
6743
6744 ;
6745 return 0;
6746}
6747_ACEOF
6748rm -f conftest.$ac_objext
6749if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6750 (eval $ac_compile) 2>conftest.er1
6751 ac_status=$?
6752 grep -v '^ *+' conftest.er1 >conftest.err
6753 rm -f conftest.er1
6754 cat conftest.err >&5
6755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6756 (exit $ac_status); } &&
59da30e1 6757 { ac_try='test -z "$ac_c_werror_flag"
6758 || test ! -s conftest.err'
01473a49 6759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6760 (eval $ac_try) 2>&5
6761 ac_status=$?
6762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763 (exit $ac_status); }; } &&
6764 { ac_try='test -s conftest.$ac_objext'
6765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6766 (eval $ac_try) 2>&5
6767 ac_status=$?
6768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6769 (exit $ac_status); }; }; then
6770 ac_hi=-1 ac_mid=-1
6771 while :; do
6772 cat >conftest.$ac_ext <<_ACEOF
6773/* confdefs.h. */
6774_ACEOF
6775cat confdefs.h >>conftest.$ac_ext
6776cat >>conftest.$ac_ext <<_ACEOF
6777/* end confdefs.h. */
6778$ac_includes_default
6779int
6780main ()
6781{
6782static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6783test_array [0] = 0
6784
6785 ;
6786 return 0;
6787}
6788_ACEOF
6789rm -f conftest.$ac_objext
6790if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6791 (eval $ac_compile) 2>conftest.er1
6792 ac_status=$?
6793 grep -v '^ *+' conftest.er1 >conftest.err
6794 rm -f conftest.er1
6795 cat conftest.err >&5
6796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6797 (exit $ac_status); } &&
59da30e1 6798 { ac_try='test -z "$ac_c_werror_flag"
6799 || test ! -s conftest.err'
01473a49 6800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6801 (eval $ac_try) 2>&5
6802 ac_status=$?
6803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6804 (exit $ac_status); }; } &&
6805 { ac_try='test -s conftest.$ac_objext'
6806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6807 (eval $ac_try) 2>&5
6808 ac_status=$?
6809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6810 (exit $ac_status); }; }; then
6811 ac_lo=$ac_mid; break
6812else
6813 echo "$as_me: failed program was:" >&5
6814sed 's/^/| /' conftest.$ac_ext >&5
6815
6816ac_hi=`expr '(' $ac_mid ')' - 1`
6817 if test $ac_mid -le $ac_hi; then
6818 ac_lo= ac_hi=
6819 break
6820 fi
6821 ac_mid=`expr 2 '*' $ac_mid`
6822fi
6823rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6824 done
6825else
6826 echo "$as_me: failed program was:" >&5
6827sed 's/^/| /' conftest.$ac_ext >&5
6828
6829ac_lo= ac_hi=
6830fi
6831rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6832fi
6833rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6834# Binary search between lo and hi bounds.
6835while test "x$ac_lo" != "x$ac_hi"; do
6836 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6837 cat >conftest.$ac_ext <<_ACEOF
6838/* confdefs.h. */
6839_ACEOF
6840cat confdefs.h >>conftest.$ac_ext
6841cat >>conftest.$ac_ext <<_ACEOF
6842/* end confdefs.h. */
6843$ac_includes_default
6844int
6845main ()
6846{
6847static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6848test_array [0] = 0
6849
6850 ;
6851 return 0;
6852}
6853_ACEOF
6854rm -f conftest.$ac_objext
6855if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6856 (eval $ac_compile) 2>conftest.er1
6857 ac_status=$?
6858 grep -v '^ *+' conftest.er1 >conftest.err
6859 rm -f conftest.er1
6860 cat conftest.err >&5
6861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6862 (exit $ac_status); } &&
59da30e1 6863 { ac_try='test -z "$ac_c_werror_flag"
6864 || test ! -s conftest.err'
01473a49 6865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6866 (eval $ac_try) 2>&5
6867 ac_status=$?
6868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6869 (exit $ac_status); }; } &&
6870 { ac_try='test -s conftest.$ac_objext'
6871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6872 (eval $ac_try) 2>&5
6873 ac_status=$?
6874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6875 (exit $ac_status); }; }; then
6876 ac_hi=$ac_mid
6877else
6878 echo "$as_me: failed program was:" >&5
6879sed 's/^/| /' conftest.$ac_ext >&5
6880
6881ac_lo=`expr '(' $ac_mid ')' + 1`
6882fi
6883rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6884done
6885case $ac_lo in
6886?*) ac_cv_sizeof_long=$ac_lo;;
6887'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6888See \`config.log' for more details." >&5
6889echo "$as_me: error: cannot compute sizeof (long), 77
6890See \`config.log' for more details." >&2;}
6891 { (exit 1); exit 1; }; } ;;
6892esac
6893else
6894 if test "$cross_compiling" = yes; then
59da30e1 6895 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6896See \`config.log' for more details." >&5
6897echo "$as_me: error: cannot run test program while cross compiling
6898See \`config.log' for more details." >&2;}
01473a49 6899 { (exit 1); exit 1; }; }
6900else
6901 cat >conftest.$ac_ext <<_ACEOF
6902/* confdefs.h. */
6903_ACEOF
6904cat confdefs.h >>conftest.$ac_ext
6905cat >>conftest.$ac_ext <<_ACEOF
6906/* end confdefs.h. */
6907$ac_includes_default
6908long longval () { return (long) (sizeof (long)); }
6909unsigned long ulongval () { return (long) (sizeof (long)); }
6910#include <stdio.h>
6911#include <stdlib.h>
6912int
6913main ()
6914{
6915
6916 FILE *f = fopen ("conftest.val", "w");
6917 if (! f)
6918 exit (1);
6919 if (((long) (sizeof (long))) < 0)
6920 {
6921 long i = longval ();
6922 if (i != ((long) (sizeof (long))))
6923 exit (1);
6924 fprintf (f, "%ld\n", i);
6925 }
6926 else
6927 {
6928 unsigned long i = ulongval ();
6929 if (i != ((long) (sizeof (long))))
6930 exit (1);
6931 fprintf (f, "%lu\n", i);
6932 }
6933 exit (ferror (f) || fclose (f) != 0);
6934
6935 ;
6936 return 0;
6937}
6938_ACEOF
6939rm -f conftest$ac_exeext
6940if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6941 (eval $ac_link) 2>&5
6942 ac_status=$?
6943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6944 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6946 (eval $ac_try) 2>&5
6947 ac_status=$?
6948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6949 (exit $ac_status); }; }; then
6950 ac_cv_sizeof_long=`cat conftest.val`
6951else
6952 echo "$as_me: program exited with status $ac_status" >&5
6953echo "$as_me: failed program was:" >&5
6954sed 's/^/| /' conftest.$ac_ext >&5
6955
6956( exit $ac_status )
6957{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6958See \`config.log' for more details." >&5
6959echo "$as_me: error: cannot compute sizeof (long), 77
6960See \`config.log' for more details." >&2;}
6961 { (exit 1); exit 1; }; }
6962fi
6963rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6964fi
6965fi
6966rm -f conftest.val
6967else
6968 ac_cv_sizeof_long=0
6969fi
6970fi
6971echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6972echo "${ECHO_T}$ac_cv_sizeof_long" >&6
6973cat >>confdefs.h <<_ACEOF
6974#define SIZEOF_LONG $ac_cv_sizeof_long
6975_ACEOF
6976
6977 ;;
6978esac
6979
6980if test $acx_cv_header_stdint = stddef.h; then
6981 # Lacking a good header? Test size of everything and deduce all types.
6982 echo "$as_me:$LINENO: checking for int" >&5
6983echo $ECHO_N "checking for int... $ECHO_C" >&6
6984if test "${ac_cv_type_int+set}" = set; then
6985 echo $ECHO_N "(cached) $ECHO_C" >&6
6986else
6987 cat >conftest.$ac_ext <<_ACEOF
6988/* confdefs.h. */
6989_ACEOF
6990cat confdefs.h >>conftest.$ac_ext
6991cat >>conftest.$ac_ext <<_ACEOF
6992/* end confdefs.h. */
6993$ac_includes_default
6994int
6995main ()
6996{
6997if ((int *) 0)
6998 return 0;
6999if (sizeof (int))
7000 return 0;
7001 ;
7002 return 0;
7003}
7004_ACEOF
7005rm -f conftest.$ac_objext
7006if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7007 (eval $ac_compile) 2>conftest.er1
7008 ac_status=$?
7009 grep -v '^ *+' conftest.er1 >conftest.err
7010 rm -f conftest.er1
7011 cat conftest.err >&5
7012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7013 (exit $ac_status); } &&
59da30e1 7014 { ac_try='test -z "$ac_c_werror_flag"
7015 || test ! -s conftest.err'
01473a49 7016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7017 (eval $ac_try) 2>&5
7018 ac_status=$?
7019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7020 (exit $ac_status); }; } &&
7021 { ac_try='test -s conftest.$ac_objext'
7022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7023 (eval $ac_try) 2>&5
7024 ac_status=$?
7025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7026 (exit $ac_status); }; }; then
7027 ac_cv_type_int=yes
7028else
7029 echo "$as_me: failed program was:" >&5
7030sed 's/^/| /' conftest.$ac_ext >&5
7031
7032ac_cv_type_int=no
7033fi
7034rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7035fi
7036echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
7037echo "${ECHO_T}$ac_cv_type_int" >&6
7038
7039echo "$as_me:$LINENO: checking size of int" >&5
7040echo $ECHO_N "checking size of int... $ECHO_C" >&6
7041if test "${ac_cv_sizeof_int+set}" = set; then
7042 echo $ECHO_N "(cached) $ECHO_C" >&6
7043else
7044 if test "$ac_cv_type_int" = yes; then
7045 # The cast to unsigned long works around a bug in the HP C Compiler
7046 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7047 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7048 # This bug is HP SR number 8606223364.
7049 if test "$cross_compiling" = yes; then
7050 # Depending upon the size, compute the lo and hi bounds.
7051cat >conftest.$ac_ext <<_ACEOF
7052/* confdefs.h. */
7053_ACEOF
7054cat confdefs.h >>conftest.$ac_ext
7055cat >>conftest.$ac_ext <<_ACEOF
7056/* end confdefs.h. */
7057$ac_includes_default
7058int
7059main ()
7060{
7061static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
7062test_array [0] = 0
7063
7064 ;
7065 return 0;
7066}
7067_ACEOF
7068rm -f conftest.$ac_objext
7069if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7070 (eval $ac_compile) 2>conftest.er1
7071 ac_status=$?
7072 grep -v '^ *+' conftest.er1 >conftest.err
7073 rm -f conftest.er1
7074 cat conftest.err >&5
7075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7076 (exit $ac_status); } &&
59da30e1 7077 { ac_try='test -z "$ac_c_werror_flag"
7078 || test ! -s conftest.err'
01473a49 7079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7080 (eval $ac_try) 2>&5
7081 ac_status=$?
7082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7083 (exit $ac_status); }; } &&
7084 { ac_try='test -s conftest.$ac_objext'
7085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7086 (eval $ac_try) 2>&5
7087 ac_status=$?
7088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7089 (exit $ac_status); }; }; then
7090 ac_lo=0 ac_mid=0
7091 while :; do
7092 cat >conftest.$ac_ext <<_ACEOF
7093/* confdefs.h. */
7094_ACEOF
7095cat confdefs.h >>conftest.$ac_ext
7096cat >>conftest.$ac_ext <<_ACEOF
7097/* end confdefs.h. */
7098$ac_includes_default
7099int
7100main ()
7101{
7102static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
7103test_array [0] = 0
7104
7105 ;
7106 return 0;
7107}
7108_ACEOF
7109rm -f conftest.$ac_objext
7110if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7111 (eval $ac_compile) 2>conftest.er1
7112 ac_status=$?
7113 grep -v '^ *+' conftest.er1 >conftest.err
7114 rm -f conftest.er1
7115 cat conftest.err >&5
7116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117 (exit $ac_status); } &&
59da30e1 7118 { ac_try='test -z "$ac_c_werror_flag"
7119 || test ! -s conftest.err'
01473a49 7120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7121 (eval $ac_try) 2>&5
7122 ac_status=$?
7123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124 (exit $ac_status); }; } &&
7125 { ac_try='test -s conftest.$ac_objext'
7126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7127 (eval $ac_try) 2>&5
7128 ac_status=$?
7129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7130 (exit $ac_status); }; }; then
7131 ac_hi=$ac_mid; break
7132else
7133 echo "$as_me: failed program was:" >&5
7134sed 's/^/| /' conftest.$ac_ext >&5
7135
7136ac_lo=`expr $ac_mid + 1`
7137 if test $ac_lo -le $ac_mid; then
7138 ac_lo= ac_hi=
7139 break
7140 fi
7141 ac_mid=`expr 2 '*' $ac_mid + 1`
7142fi
7143rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7144 done
7145else
7146 echo "$as_me: failed program was:" >&5
7147sed 's/^/| /' conftest.$ac_ext >&5
7148
7149cat >conftest.$ac_ext <<_ACEOF
7150/* confdefs.h. */
7151_ACEOF
7152cat confdefs.h >>conftest.$ac_ext
7153cat >>conftest.$ac_ext <<_ACEOF
7154/* end confdefs.h. */
7155$ac_includes_default
7156int
7157main ()
7158{
7159static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
7160test_array [0] = 0
7161
7162 ;
7163 return 0;
7164}
7165_ACEOF
7166rm -f conftest.$ac_objext
7167if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7168 (eval $ac_compile) 2>conftest.er1
7169 ac_status=$?
7170 grep -v '^ *+' conftest.er1 >conftest.err
7171 rm -f conftest.er1
7172 cat conftest.err >&5
7173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7174 (exit $ac_status); } &&
59da30e1 7175 { ac_try='test -z "$ac_c_werror_flag"
7176 || test ! -s conftest.err'
01473a49 7177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7178 (eval $ac_try) 2>&5
7179 ac_status=$?
7180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7181 (exit $ac_status); }; } &&
7182 { ac_try='test -s conftest.$ac_objext'
7183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7184 (eval $ac_try) 2>&5
7185 ac_status=$?
7186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7187 (exit $ac_status); }; }; then
7188 ac_hi=-1 ac_mid=-1
7189 while :; do
7190 cat >conftest.$ac_ext <<_ACEOF
7191/* confdefs.h. */
7192_ACEOF
7193cat confdefs.h >>conftest.$ac_ext
7194cat >>conftest.$ac_ext <<_ACEOF
7195/* end confdefs.h. */
7196$ac_includes_default
7197int
7198main ()
7199{
7200static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
7201test_array [0] = 0
7202
7203 ;
7204 return 0;
7205}
7206_ACEOF
7207rm -f conftest.$ac_objext
7208if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7209 (eval $ac_compile) 2>conftest.er1
7210 ac_status=$?
7211 grep -v '^ *+' conftest.er1 >conftest.err
7212 rm -f conftest.er1
7213 cat conftest.err >&5
7214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7215 (exit $ac_status); } &&
59da30e1 7216 { ac_try='test -z "$ac_c_werror_flag"
7217 || test ! -s conftest.err'
01473a49 7218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7219 (eval $ac_try) 2>&5
7220 ac_status=$?
7221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7222 (exit $ac_status); }; } &&
7223 { ac_try='test -s conftest.$ac_objext'
7224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7225 (eval $ac_try) 2>&5
7226 ac_status=$?
7227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7228 (exit $ac_status); }; }; then
7229 ac_lo=$ac_mid; break
7230else
7231 echo "$as_me: failed program was:" >&5
7232sed 's/^/| /' conftest.$ac_ext >&5
7233
7234ac_hi=`expr '(' $ac_mid ')' - 1`
7235 if test $ac_mid -le $ac_hi; then
7236 ac_lo= ac_hi=
7237 break
7238 fi
7239 ac_mid=`expr 2 '*' $ac_mid`
7240fi
7241rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7242 done
7243else
7244 echo "$as_me: failed program was:" >&5
7245sed 's/^/| /' conftest.$ac_ext >&5
7246
7247ac_lo= ac_hi=
7248fi
7249rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7250fi
7251rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7252# Binary search between lo and hi bounds.
7253while test "x$ac_lo" != "x$ac_hi"; do
7254 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7255 cat >conftest.$ac_ext <<_ACEOF
7256/* confdefs.h. */
7257_ACEOF
7258cat confdefs.h >>conftest.$ac_ext
7259cat >>conftest.$ac_ext <<_ACEOF
7260/* end confdefs.h. */
7261$ac_includes_default
7262int
7263main ()
7264{
7265static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
7266test_array [0] = 0
7267
7268 ;
7269 return 0;
7270}
7271_ACEOF
7272rm -f conftest.$ac_objext
7273if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7274 (eval $ac_compile) 2>conftest.er1
7275 ac_status=$?
7276 grep -v '^ *+' conftest.er1 >conftest.err
7277 rm -f conftest.er1
7278 cat conftest.err >&5
7279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7280 (exit $ac_status); } &&
59da30e1 7281 { ac_try='test -z "$ac_c_werror_flag"
7282 || test ! -s conftest.err'
01473a49 7283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7284 (eval $ac_try) 2>&5
7285 ac_status=$?
7286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7287 (exit $ac_status); }; } &&
7288 { ac_try='test -s conftest.$ac_objext'
7289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7290 (eval $ac_try) 2>&5
7291 ac_status=$?
7292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7293 (exit $ac_status); }; }; then
7294 ac_hi=$ac_mid
7295else
7296 echo "$as_me: failed program was:" >&5
7297sed 's/^/| /' conftest.$ac_ext >&5
7298
7299ac_lo=`expr '(' $ac_mid ')' + 1`
7300fi
7301rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7302done
7303case $ac_lo in
7304?*) ac_cv_sizeof_int=$ac_lo;;
7305'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
7306See \`config.log' for more details." >&5
7307echo "$as_me: error: cannot compute sizeof (int), 77
7308See \`config.log' for more details." >&2;}
7309 { (exit 1); exit 1; }; } ;;
7310esac
7311else
7312 if test "$cross_compiling" = yes; then
59da30e1 7313 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7314See \`config.log' for more details." >&5
7315echo "$as_me: error: cannot run test program while cross compiling
7316See \`config.log' for more details." >&2;}
01473a49 7317 { (exit 1); exit 1; }; }
7318else
7319 cat >conftest.$ac_ext <<_ACEOF
7320/* confdefs.h. */
7321_ACEOF
7322cat confdefs.h >>conftest.$ac_ext
7323cat >>conftest.$ac_ext <<_ACEOF
7324/* end confdefs.h. */
7325$ac_includes_default
7326long longval () { return (long) (sizeof (int)); }
7327unsigned long ulongval () { return (long) (sizeof (int)); }
7328#include <stdio.h>
7329#include <stdlib.h>
7330int
7331main ()
7332{
7333
7334 FILE *f = fopen ("conftest.val", "w");
7335 if (! f)
7336 exit (1);
7337 if (((long) (sizeof (int))) < 0)
7338 {
7339 long i = longval ();
7340 if (i != ((long) (sizeof (int))))
7341 exit (1);
7342 fprintf (f, "%ld\n", i);
7343 }
7344 else
7345 {
7346 unsigned long i = ulongval ();
7347 if (i != ((long) (sizeof (int))))
7348 exit (1);
7349 fprintf (f, "%lu\n", i);
7350 }
7351 exit (ferror (f) || fclose (f) != 0);
7352
7353 ;
7354 return 0;
7355}
7356_ACEOF
7357rm -f conftest$ac_exeext
7358if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7359 (eval $ac_link) 2>&5
7360 ac_status=$?
7361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7362 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7364 (eval $ac_try) 2>&5
7365 ac_status=$?
7366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7367 (exit $ac_status); }; }; then
7368 ac_cv_sizeof_int=`cat conftest.val`
7369else
7370 echo "$as_me: program exited with status $ac_status" >&5
7371echo "$as_me: failed program was:" >&5
7372sed 's/^/| /' conftest.$ac_ext >&5
7373
7374( exit $ac_status )
7375{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
7376See \`config.log' for more details." >&5
7377echo "$as_me: error: cannot compute sizeof (int), 77
7378See \`config.log' for more details." >&2;}
7379 { (exit 1); exit 1; }; }
7380fi
7381rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7382fi
7383fi
7384rm -f conftest.val
7385else
7386 ac_cv_sizeof_int=0
7387fi
7388fi
7389echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
7390echo "${ECHO_T}$ac_cv_sizeof_int" >&6
7391cat >>confdefs.h <<_ACEOF
7392#define SIZEOF_INT $ac_cv_sizeof_int
7393_ACEOF
7394
7395
7396 echo "$as_me:$LINENO: checking for short" >&5
7397echo $ECHO_N "checking for short... $ECHO_C" >&6
7398if test "${ac_cv_type_short+set}" = set; then
7399 echo $ECHO_N "(cached) $ECHO_C" >&6
7400else
7401 cat >conftest.$ac_ext <<_ACEOF
7402/* confdefs.h. */
7403_ACEOF
7404cat confdefs.h >>conftest.$ac_ext
7405cat >>conftest.$ac_ext <<_ACEOF
7406/* end confdefs.h. */
7407$ac_includes_default
7408int
7409main ()
7410{
7411if ((short *) 0)
7412 return 0;
7413if (sizeof (short))
7414 return 0;
7415 ;
7416 return 0;
7417}
7418_ACEOF
7419rm -f conftest.$ac_objext
7420if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7421 (eval $ac_compile) 2>conftest.er1
7422 ac_status=$?
7423 grep -v '^ *+' conftest.er1 >conftest.err
7424 rm -f conftest.er1
7425 cat conftest.err >&5
7426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7427 (exit $ac_status); } &&
59da30e1 7428 { ac_try='test -z "$ac_c_werror_flag"
7429 || test ! -s conftest.err'
01473a49 7430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7431 (eval $ac_try) 2>&5
7432 ac_status=$?
7433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7434 (exit $ac_status); }; } &&
7435 { ac_try='test -s conftest.$ac_objext'
7436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7437 (eval $ac_try) 2>&5
7438 ac_status=$?
7439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7440 (exit $ac_status); }; }; then
7441 ac_cv_type_short=yes
7442else
7443 echo "$as_me: failed program was:" >&5
7444sed 's/^/| /' conftest.$ac_ext >&5
7445
7446ac_cv_type_short=no
7447fi
7448rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7449fi
7450echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
7451echo "${ECHO_T}$ac_cv_type_short" >&6
7452
7453echo "$as_me:$LINENO: checking size of short" >&5
7454echo $ECHO_N "checking size of short... $ECHO_C" >&6
7455if test "${ac_cv_sizeof_short+set}" = set; then
7456 echo $ECHO_N "(cached) $ECHO_C" >&6
7457else
7458 if test "$ac_cv_type_short" = yes; then
7459 # The cast to unsigned long works around a bug in the HP C Compiler
7460 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7461 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7462 # This bug is HP SR number 8606223364.
7463 if test "$cross_compiling" = yes; then
7464 # Depending upon the size, compute the lo and hi bounds.
7465cat >conftest.$ac_ext <<_ACEOF
7466/* confdefs.h. */
7467_ACEOF
7468cat confdefs.h >>conftest.$ac_ext
7469cat >>conftest.$ac_ext <<_ACEOF
7470/* end confdefs.h. */
7471$ac_includes_default
7472int
7473main ()
7474{
7475static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
7476test_array [0] = 0
7477
7478 ;
7479 return 0;
7480}
7481_ACEOF
7482rm -f conftest.$ac_objext
7483if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7484 (eval $ac_compile) 2>conftest.er1
7485 ac_status=$?
7486 grep -v '^ *+' conftest.er1 >conftest.err
7487 rm -f conftest.er1
7488 cat conftest.err >&5
7489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7490 (exit $ac_status); } &&
59da30e1 7491 { ac_try='test -z "$ac_c_werror_flag"
7492 || test ! -s conftest.err'
01473a49 7493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7494 (eval $ac_try) 2>&5
7495 ac_status=$?
7496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7497 (exit $ac_status); }; } &&
7498 { ac_try='test -s conftest.$ac_objext'
7499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7500 (eval $ac_try) 2>&5
7501 ac_status=$?
7502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7503 (exit $ac_status); }; }; then
7504 ac_lo=0 ac_mid=0
7505 while :; do
7506 cat >conftest.$ac_ext <<_ACEOF
7507/* confdefs.h. */
7508_ACEOF
7509cat confdefs.h >>conftest.$ac_ext
7510cat >>conftest.$ac_ext <<_ACEOF
7511/* end confdefs.h. */
7512$ac_includes_default
7513int
7514main ()
7515{
7516static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7517test_array [0] = 0
7518
7519 ;
7520 return 0;
7521}
7522_ACEOF
7523rm -f conftest.$ac_objext
7524if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7525 (eval $ac_compile) 2>conftest.er1
7526 ac_status=$?
7527 grep -v '^ *+' conftest.er1 >conftest.err
7528 rm -f conftest.er1
7529 cat conftest.err >&5
7530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7531 (exit $ac_status); } &&
59da30e1 7532 { ac_try='test -z "$ac_c_werror_flag"
7533 || test ! -s conftest.err'
01473a49 7534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7535 (eval $ac_try) 2>&5
7536 ac_status=$?
7537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7538 (exit $ac_status); }; } &&
7539 { ac_try='test -s conftest.$ac_objext'
7540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7541 (eval $ac_try) 2>&5
7542 ac_status=$?
7543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7544 (exit $ac_status); }; }; then
7545 ac_hi=$ac_mid; break
7546else
7547 echo "$as_me: failed program was:" >&5
7548sed 's/^/| /' conftest.$ac_ext >&5
7549
7550ac_lo=`expr $ac_mid + 1`
7551 if test $ac_lo -le $ac_mid; then
7552 ac_lo= ac_hi=
7553 break
7554 fi
7555 ac_mid=`expr 2 '*' $ac_mid + 1`
7556fi
7557rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7558 done
7559else
7560 echo "$as_me: failed program was:" >&5
7561sed 's/^/| /' conftest.$ac_ext >&5
7562
7563cat >conftest.$ac_ext <<_ACEOF
7564/* confdefs.h. */
7565_ACEOF
7566cat confdefs.h >>conftest.$ac_ext
7567cat >>conftest.$ac_ext <<_ACEOF
7568/* end confdefs.h. */
7569$ac_includes_default
7570int
7571main ()
7572{
7573static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
7574test_array [0] = 0
7575
7576 ;
7577 return 0;
7578}
7579_ACEOF
7580rm -f conftest.$ac_objext
7581if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7582 (eval $ac_compile) 2>conftest.er1
7583 ac_status=$?
7584 grep -v '^ *+' conftest.er1 >conftest.err
7585 rm -f conftest.er1
7586 cat conftest.err >&5
7587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7588 (exit $ac_status); } &&
59da30e1 7589 { ac_try='test -z "$ac_c_werror_flag"
7590 || test ! -s conftest.err'
01473a49 7591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7592 (eval $ac_try) 2>&5
7593 ac_status=$?
7594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7595 (exit $ac_status); }; } &&
7596 { ac_try='test -s conftest.$ac_objext'
7597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7598 (eval $ac_try) 2>&5
7599 ac_status=$?
7600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7601 (exit $ac_status); }; }; then
7602 ac_hi=-1 ac_mid=-1
7603 while :; do
7604 cat >conftest.$ac_ext <<_ACEOF
7605/* confdefs.h. */
7606_ACEOF
7607cat confdefs.h >>conftest.$ac_ext
7608cat >>conftest.$ac_ext <<_ACEOF
7609/* end confdefs.h. */
7610$ac_includes_default
7611int
7612main ()
7613{
7614static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
7615test_array [0] = 0
7616
7617 ;
7618 return 0;
7619}
7620_ACEOF
7621rm -f conftest.$ac_objext
7622if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7623 (eval $ac_compile) 2>conftest.er1
7624 ac_status=$?
7625 grep -v '^ *+' conftest.er1 >conftest.err
7626 rm -f conftest.er1
7627 cat conftest.err >&5
7628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7629 (exit $ac_status); } &&
59da30e1 7630 { ac_try='test -z "$ac_c_werror_flag"
7631 || test ! -s conftest.err'
01473a49 7632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7633 (eval $ac_try) 2>&5
7634 ac_status=$?
7635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7636 (exit $ac_status); }; } &&
7637 { ac_try='test -s conftest.$ac_objext'
7638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7639 (eval $ac_try) 2>&5
7640 ac_status=$?
7641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7642 (exit $ac_status); }; }; then
7643 ac_lo=$ac_mid; break
7644else
7645 echo "$as_me: failed program was:" >&5
7646sed 's/^/| /' conftest.$ac_ext >&5
7647
7648ac_hi=`expr '(' $ac_mid ')' - 1`
7649 if test $ac_mid -le $ac_hi; then
7650 ac_lo= ac_hi=
7651 break
7652 fi
7653 ac_mid=`expr 2 '*' $ac_mid`
7654fi
7655rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7656 done
7657else
7658 echo "$as_me: failed program was:" >&5
7659sed 's/^/| /' conftest.$ac_ext >&5
7660
7661ac_lo= ac_hi=
7662fi
7663rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7664fi
7665rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7666# Binary search between lo and hi bounds.
7667while test "x$ac_lo" != "x$ac_hi"; do
7668 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7669 cat >conftest.$ac_ext <<_ACEOF
7670/* confdefs.h. */
7671_ACEOF
7672cat confdefs.h >>conftest.$ac_ext
7673cat >>conftest.$ac_ext <<_ACEOF
7674/* end confdefs.h. */
7675$ac_includes_default
7676int
7677main ()
7678{
7679static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7680test_array [0] = 0
7681
7682 ;
7683 return 0;
7684}
7685_ACEOF
7686rm -f conftest.$ac_objext
7687if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7688 (eval $ac_compile) 2>conftest.er1
7689 ac_status=$?
7690 grep -v '^ *+' conftest.er1 >conftest.err
7691 rm -f conftest.er1
7692 cat conftest.err >&5
7693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7694 (exit $ac_status); } &&
59da30e1 7695 { ac_try='test -z "$ac_c_werror_flag"
7696 || test ! -s conftest.err'
01473a49 7697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7698 (eval $ac_try) 2>&5
7699 ac_status=$?
7700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7701 (exit $ac_status); }; } &&
7702 { ac_try='test -s conftest.$ac_objext'
7703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7704 (eval $ac_try) 2>&5
7705 ac_status=$?
7706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7707 (exit $ac_status); }; }; then
7708 ac_hi=$ac_mid
7709else
7710 echo "$as_me: failed program was:" >&5
7711sed 's/^/| /' conftest.$ac_ext >&5
7712
7713ac_lo=`expr '(' $ac_mid ')' + 1`
7714fi
7715rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7716done
7717case $ac_lo in
7718?*) ac_cv_sizeof_short=$ac_lo;;
7719'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7720See \`config.log' for more details." >&5
7721echo "$as_me: error: cannot compute sizeof (short), 77
7722See \`config.log' for more details." >&2;}
7723 { (exit 1); exit 1; }; } ;;
7724esac
7725else
7726 if test "$cross_compiling" = yes; then
59da30e1 7727 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7728See \`config.log' for more details." >&5
7729echo "$as_me: error: cannot run test program while cross compiling
7730See \`config.log' for more details." >&2;}
01473a49 7731 { (exit 1); exit 1; }; }
7732else
7733 cat >conftest.$ac_ext <<_ACEOF
7734/* confdefs.h. */
7735_ACEOF
7736cat confdefs.h >>conftest.$ac_ext
7737cat >>conftest.$ac_ext <<_ACEOF
7738/* end confdefs.h. */
7739$ac_includes_default
7740long longval () { return (long) (sizeof (short)); }
7741unsigned long ulongval () { return (long) (sizeof (short)); }
7742#include <stdio.h>
7743#include <stdlib.h>
7744int
7745main ()
7746{
7747
7748 FILE *f = fopen ("conftest.val", "w");
7749 if (! f)
7750 exit (1);
7751 if (((long) (sizeof (short))) < 0)
7752 {
7753 long i = longval ();
7754 if (i != ((long) (sizeof (short))))
7755 exit (1);
7756 fprintf (f, "%ld\n", i);
7757 }
7758 else
7759 {
7760 unsigned long i = ulongval ();
7761 if (i != ((long) (sizeof (short))))
7762 exit (1);
7763 fprintf (f, "%lu\n", i);
7764 }
7765 exit (ferror (f) || fclose (f) != 0);
7766
7767 ;
7768 return 0;
7769}
7770_ACEOF
7771rm -f conftest$ac_exeext
7772if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7773 (eval $ac_link) 2>&5
7774 ac_status=$?
7775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7776 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7778 (eval $ac_try) 2>&5
7779 ac_status=$?
7780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7781 (exit $ac_status); }; }; then
7782 ac_cv_sizeof_short=`cat conftest.val`
7783else
7784 echo "$as_me: program exited with status $ac_status" >&5
7785echo "$as_me: failed program was:" >&5
7786sed 's/^/| /' conftest.$ac_ext >&5
7787
7788( exit $ac_status )
7789{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7790See \`config.log' for more details." >&5
7791echo "$as_me: error: cannot compute sizeof (short), 77
7792See \`config.log' for more details." >&2;}
7793 { (exit 1); exit 1; }; }
7794fi
7795rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7796fi
7797fi
7798rm -f conftest.val
7799else
7800 ac_cv_sizeof_short=0
7801fi
7802fi
7803echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
7804echo "${ECHO_T}$ac_cv_sizeof_short" >&6
7805cat >>confdefs.h <<_ACEOF
7806#define SIZEOF_SHORT $ac_cv_sizeof_short
7807_ACEOF
7808
7809
7810 echo "$as_me:$LINENO: checking for char" >&5
7811echo $ECHO_N "checking for char... $ECHO_C" >&6
7812if test "${ac_cv_type_char+set}" = set; then
7813 echo $ECHO_N "(cached) $ECHO_C" >&6
7814else
7815 cat >conftest.$ac_ext <<_ACEOF
7816/* confdefs.h. */
7817_ACEOF
7818cat confdefs.h >>conftest.$ac_ext
7819cat >>conftest.$ac_ext <<_ACEOF
7820/* end confdefs.h. */
7821$ac_includes_default
7822int
7823main ()
7824{
7825if ((char *) 0)
7826 return 0;
7827if (sizeof (char))
7828 return 0;
7829 ;
7830 return 0;
7831}
7832_ACEOF
7833rm -f conftest.$ac_objext
7834if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7835 (eval $ac_compile) 2>conftest.er1
7836 ac_status=$?
7837 grep -v '^ *+' conftest.er1 >conftest.err
7838 rm -f conftest.er1
7839 cat conftest.err >&5
7840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7841 (exit $ac_status); } &&
59da30e1 7842 { ac_try='test -z "$ac_c_werror_flag"
7843 || test ! -s conftest.err'
01473a49 7844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7845 (eval $ac_try) 2>&5
7846 ac_status=$?
7847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7848 (exit $ac_status); }; } &&
7849 { ac_try='test -s conftest.$ac_objext'
7850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7851 (eval $ac_try) 2>&5
7852 ac_status=$?
7853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7854 (exit $ac_status); }; }; then
7855 ac_cv_type_char=yes
7856else
7857 echo "$as_me: failed program was:" >&5
7858sed 's/^/| /' conftest.$ac_ext >&5
7859
7860ac_cv_type_char=no
7861fi
7862rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7863fi
7864echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
7865echo "${ECHO_T}$ac_cv_type_char" >&6
7866
7867echo "$as_me:$LINENO: checking size of char" >&5
7868echo $ECHO_N "checking size of char... $ECHO_C" >&6
7869if test "${ac_cv_sizeof_char+set}" = set; then
7870 echo $ECHO_N "(cached) $ECHO_C" >&6
7871else
7872 if test "$ac_cv_type_char" = yes; then
7873 # The cast to unsigned long works around a bug in the HP C Compiler
7874 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7875 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7876 # This bug is HP SR number 8606223364.
7877 if test "$cross_compiling" = yes; then
7878 # Depending upon the size, compute the lo and hi bounds.
7879cat >conftest.$ac_ext <<_ACEOF
7880/* confdefs.h. */
7881_ACEOF
7882cat confdefs.h >>conftest.$ac_ext
7883cat >>conftest.$ac_ext <<_ACEOF
7884/* end confdefs.h. */
7885$ac_includes_default
7886int
7887main ()
7888{
7889static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
7890test_array [0] = 0
7891
7892 ;
7893 return 0;
7894}
7895_ACEOF
7896rm -f conftest.$ac_objext
7897if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7898 (eval $ac_compile) 2>conftest.er1
7899 ac_status=$?
7900 grep -v '^ *+' conftest.er1 >conftest.err
7901 rm -f conftest.er1
7902 cat conftest.err >&5
7903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904 (exit $ac_status); } &&
59da30e1 7905 { ac_try='test -z "$ac_c_werror_flag"
7906 || test ! -s conftest.err'
01473a49 7907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7908 (eval $ac_try) 2>&5
7909 ac_status=$?
7910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7911 (exit $ac_status); }; } &&
7912 { ac_try='test -s conftest.$ac_objext'
7913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7914 (eval $ac_try) 2>&5
7915 ac_status=$?
7916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7917 (exit $ac_status); }; }; then
7918 ac_lo=0 ac_mid=0
7919 while :; do
7920 cat >conftest.$ac_ext <<_ACEOF
7921/* confdefs.h. */
7922_ACEOF
7923cat confdefs.h >>conftest.$ac_ext
7924cat >>conftest.$ac_ext <<_ACEOF
7925/* end confdefs.h. */
7926$ac_includes_default
7927int
7928main ()
7929{
7930static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
7931test_array [0] = 0
7932
7933 ;
7934 return 0;
7935}
7936_ACEOF
7937rm -f conftest.$ac_objext
7938if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7939 (eval $ac_compile) 2>conftest.er1
7940 ac_status=$?
7941 grep -v '^ *+' conftest.er1 >conftest.err
7942 rm -f conftest.er1
7943 cat conftest.err >&5
7944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7945 (exit $ac_status); } &&
59da30e1 7946 { ac_try='test -z "$ac_c_werror_flag"
7947 || test ! -s conftest.err'
01473a49 7948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7949 (eval $ac_try) 2>&5
7950 ac_status=$?
7951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7952 (exit $ac_status); }; } &&
7953 { ac_try='test -s conftest.$ac_objext'
7954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7955 (eval $ac_try) 2>&5
7956 ac_status=$?
7957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7958 (exit $ac_status); }; }; then
7959 ac_hi=$ac_mid; break
7960else
7961 echo "$as_me: failed program was:" >&5
7962sed 's/^/| /' conftest.$ac_ext >&5
7963
7964ac_lo=`expr $ac_mid + 1`
7965 if test $ac_lo -le $ac_mid; then
7966 ac_lo= ac_hi=
7967 break
7968 fi
7969 ac_mid=`expr 2 '*' $ac_mid + 1`
7970fi
7971rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7972 done
7973else
7974 echo "$as_me: failed program was:" >&5
7975sed 's/^/| /' conftest.$ac_ext >&5
7976
7977cat >conftest.$ac_ext <<_ACEOF
7978/* confdefs.h. */
7979_ACEOF
7980cat confdefs.h >>conftest.$ac_ext
7981cat >>conftest.$ac_ext <<_ACEOF
7982/* end confdefs.h. */
7983$ac_includes_default
7984int
7985main ()
7986{
7987static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
7988test_array [0] = 0
7989
7990 ;
7991 return 0;
7992}
7993_ACEOF
7994rm -f conftest.$ac_objext
7995if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7996 (eval $ac_compile) 2>conftest.er1
7997 ac_status=$?
7998 grep -v '^ *+' conftest.er1 >conftest.err
7999 rm -f conftest.er1
8000 cat conftest.err >&5
8001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8002 (exit $ac_status); } &&
59da30e1 8003 { ac_try='test -z "$ac_c_werror_flag"
8004 || test ! -s conftest.err'
01473a49 8005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8006 (eval $ac_try) 2>&5
8007 ac_status=$?
8008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8009 (exit $ac_status); }; } &&
8010 { ac_try='test -s conftest.$ac_objext'
8011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8012 (eval $ac_try) 2>&5
8013 ac_status=$?
8014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8015 (exit $ac_status); }; }; then
8016 ac_hi=-1 ac_mid=-1
8017 while :; do
8018 cat >conftest.$ac_ext <<_ACEOF
8019/* confdefs.h. */
8020_ACEOF
8021cat confdefs.h >>conftest.$ac_ext
8022cat >>conftest.$ac_ext <<_ACEOF
8023/* end confdefs.h. */
8024$ac_includes_default
8025int
8026main ()
8027{
8028static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
8029test_array [0] = 0
8030
8031 ;
8032 return 0;
8033}
8034_ACEOF
8035rm -f conftest.$ac_objext
8036if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8037 (eval $ac_compile) 2>conftest.er1
8038 ac_status=$?
8039 grep -v '^ *+' conftest.er1 >conftest.err
8040 rm -f conftest.er1
8041 cat conftest.err >&5
8042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8043 (exit $ac_status); } &&
59da30e1 8044 { ac_try='test -z "$ac_c_werror_flag"
8045 || test ! -s conftest.err'
01473a49 8046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8047 (eval $ac_try) 2>&5
8048 ac_status=$?
8049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8050 (exit $ac_status); }; } &&
8051 { ac_try='test -s conftest.$ac_objext'
8052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8053 (eval $ac_try) 2>&5
8054 ac_status=$?
8055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8056 (exit $ac_status); }; }; then
8057 ac_lo=$ac_mid; break
8058else
8059 echo "$as_me: failed program was:" >&5
8060sed 's/^/| /' conftest.$ac_ext >&5
8061
8062ac_hi=`expr '(' $ac_mid ')' - 1`
8063 if test $ac_mid -le $ac_hi; then
8064 ac_lo= ac_hi=
8065 break
8066 fi
8067 ac_mid=`expr 2 '*' $ac_mid`
8068fi
8069rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8070 done
8071else
8072 echo "$as_me: failed program was:" >&5
8073sed 's/^/| /' conftest.$ac_ext >&5
8074
8075ac_lo= ac_hi=
8076fi
8077rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8078fi
8079rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8080# Binary search between lo and hi bounds.
8081while test "x$ac_lo" != "x$ac_hi"; do
8082 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8083 cat >conftest.$ac_ext <<_ACEOF
8084/* confdefs.h. */
8085_ACEOF
8086cat confdefs.h >>conftest.$ac_ext
8087cat >>conftest.$ac_ext <<_ACEOF
8088/* end confdefs.h. */
8089$ac_includes_default
8090int
8091main ()
8092{
8093static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
8094test_array [0] = 0
8095
8096 ;
8097 return 0;
8098}
8099_ACEOF
8100rm -f conftest.$ac_objext
8101if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8102 (eval $ac_compile) 2>conftest.er1
8103 ac_status=$?
8104 grep -v '^ *+' conftest.er1 >conftest.err
8105 rm -f conftest.er1
8106 cat conftest.err >&5
8107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8108 (exit $ac_status); } &&
59da30e1 8109 { ac_try='test -z "$ac_c_werror_flag"
8110 || test ! -s conftest.err'
01473a49 8111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8112 (eval $ac_try) 2>&5
8113 ac_status=$?
8114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8115 (exit $ac_status); }; } &&
8116 { ac_try='test -s conftest.$ac_objext'
8117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8118 (eval $ac_try) 2>&5
8119 ac_status=$?
8120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121 (exit $ac_status); }; }; then
8122 ac_hi=$ac_mid
8123else
8124 echo "$as_me: failed program was:" >&5
8125sed 's/^/| /' conftest.$ac_ext >&5
8126
8127ac_lo=`expr '(' $ac_mid ')' + 1`
8128fi
8129rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8130done
8131case $ac_lo in
8132?*) ac_cv_sizeof_char=$ac_lo;;
8133'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
8134See \`config.log' for more details." >&5
8135echo "$as_me: error: cannot compute sizeof (char), 77
8136See \`config.log' for more details." >&2;}
8137 { (exit 1); exit 1; }; } ;;
8138esac
8139else
8140 if test "$cross_compiling" = yes; then
59da30e1 8141 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8142See \`config.log' for more details." >&5
8143echo "$as_me: error: cannot run test program while cross compiling
8144See \`config.log' for more details." >&2;}
01473a49 8145 { (exit 1); exit 1; }; }
8146else
8147 cat >conftest.$ac_ext <<_ACEOF
8148/* confdefs.h. */
8149_ACEOF
8150cat confdefs.h >>conftest.$ac_ext
8151cat >>conftest.$ac_ext <<_ACEOF
8152/* end confdefs.h. */
8153$ac_includes_default
8154long longval () { return (long) (sizeof (char)); }
8155unsigned long ulongval () { return (long) (sizeof (char)); }
8156#include <stdio.h>
8157#include <stdlib.h>
8158int
8159main ()
8160{
8161
8162 FILE *f = fopen ("conftest.val", "w");
8163 if (! f)
8164 exit (1);
8165 if (((long) (sizeof (char))) < 0)
8166 {
8167 long i = longval ();
8168 if (i != ((long) (sizeof (char))))
8169 exit (1);
8170 fprintf (f, "%ld\n", i);
8171 }
8172 else
8173 {
8174 unsigned long i = ulongval ();
8175 if (i != ((long) (sizeof (char))))
8176 exit (1);
8177 fprintf (f, "%lu\n", i);
8178 }
8179 exit (ferror (f) || fclose (f) != 0);
8180
8181 ;
8182 return 0;
8183}
8184_ACEOF
8185rm -f conftest$ac_exeext
8186if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8187 (eval $ac_link) 2>&5
8188 ac_status=$?
8189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8190 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8192 (eval $ac_try) 2>&5
8193 ac_status=$?
8194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8195 (exit $ac_status); }; }; then
8196 ac_cv_sizeof_char=`cat conftest.val`
8197else
8198 echo "$as_me: program exited with status $ac_status" >&5
8199echo "$as_me: failed program was:" >&5
8200sed 's/^/| /' conftest.$ac_ext >&5
8201
8202( exit $ac_status )
8203{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
8204See \`config.log' for more details." >&5
8205echo "$as_me: error: cannot compute sizeof (char), 77
8206See \`config.log' for more details." >&2;}
8207 { (exit 1); exit 1; }; }
8208fi
8209rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8210fi
8211fi
8212rm -f conftest.val
8213else
8214 ac_cv_sizeof_char=0
8215fi
8216fi
8217echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
8218echo "${ECHO_T}$ac_cv_sizeof_char" >&6
8219cat >>confdefs.h <<_ACEOF
8220#define SIZEOF_CHAR $ac_cv_sizeof_char
8221_ACEOF
8222
8223
8224
8225 echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
8226echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
8227 case "$ac_cv_sizeof_char" in
8228 1) acx_cv_type_int8_t=char ;;
8229 *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
8230echo "$as_me: error: no 8-bit type" >&2;}
8231 { (exit please report a bug); exit please report a bug; }; }
8232 esac
8233 echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
8234echo "${ECHO_T}$acx_cv_type_int8_t" >&6
8235
8236 echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
8237echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
8238 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
8239 2:*) acx_cv_type_int16_t=int ;;
8240 *:2) acx_cv_type_int16_t=short ;;
8241 *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
8242echo "$as_me: error: no 16-bit type" >&2;}
8243 { (exit please report a bug); exit please report a bug; }; }
8244 esac
8245 echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
8246echo "${ECHO_T}$acx_cv_type_int16_t" >&6
8247
8248 echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
8249echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
8250 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
8251 4:*) acx_cv_type_int32_t=int ;;
8252 *:4) acx_cv_type_int32_t=long ;;
8253 *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
8254echo "$as_me: error: no 32-bit type" >&2;}
8255 { (exit please report a bug); exit please report a bug; }; }
8256 esac
8257 echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
8258echo "${ECHO_T}$acx_cv_type_int32_t" >&6
8259fi
8260
8261# These tests are here to make the output prettier
8262
8263if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
8264 case "$ac_cv_sizeof_long" in
8265 8) acx_cv_type_int64_t=long ;;
8266 esac
8267 echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
8268echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
8269 echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
8270echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
8271fi
8272
8273# Now we can use the above types
8274
8275if test "$ac_cv_type_uintptr_t" != yes; then
8276 echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
8277echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
8278 case $ac_cv_sizeof_void_p in
8279 2) acx_cv_type_intptr_t=int16_t ;;
8280 4) acx_cv_type_intptr_t=int32_t ;;
8281 8) acx_cv_type_intptr_t=int64_t ;;
8282 *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
8283echo "$as_me: error: no equivalent for intptr_t" >&2;}
8284 { (exit please report a bug); exit please report a bug; }; }
8285 esac
8286 echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
8287echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
8288fi
8289
8290# ----------------- done all checks, emit header -------------
8291 ac_config_commands="$ac_config_commands gstdint.h"
8292
8293
8294
8295
1e8e9920 8296# Check to see if -pthread or -lpthread is needed. Prefer the former.
b00e3183 8297# In case the pthread.h system header is not found, this test will fail.
1e8e9920 8298XPCFLAGS=""
8299CFLAGS="$CFLAGS -pthread"
8300cat >conftest.$ac_ext <<_ACEOF
8301/* confdefs.h. */
8302_ACEOF
8303cat confdefs.h >>conftest.$ac_ext
8304cat >>conftest.$ac_ext <<_ACEOF
8305/* end confdefs.h. */
8306#include <pthread.h>
8307 void *g(void *d) { return NULL; }
8308int
8309main ()
8310{
8311pthread_t t; pthread_create(&t,NULL,g,NULL);
8312 ;
8313 return 0;
8314}
8315_ACEOF
8316rm -f conftest.$ac_objext conftest$ac_exeext
8317if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8318 (eval $ac_link) 2>conftest.er1
8319 ac_status=$?
8320 grep -v '^ *+' conftest.er1 >conftest.err
8321 rm -f conftest.er1
8322 cat conftest.err >&5
8323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8324 (exit $ac_status); } &&
59da30e1 8325 { ac_try='test -z "$ac_c_werror_flag"
8326 || test ! -s conftest.err'
1e8e9920 8327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8328 (eval $ac_try) 2>&5
8329 ac_status=$?
8330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331 (exit $ac_status); }; } &&
8332 { ac_try='test -s conftest$ac_exeext'
8333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8334 (eval $ac_try) 2>&5
8335 ac_status=$?
8336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8337 (exit $ac_status); }; }; then
8338 XPCFLAGS=" -Wc,-pthread"
8339else
8340 echo "$as_me: failed program was:" >&5
8341sed 's/^/| /' conftest.$ac_ext >&5
8342
8343CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
8344 cat >conftest.$ac_ext <<_ACEOF
8345/* confdefs.h. */
8346_ACEOF
8347cat confdefs.h >>conftest.$ac_ext
8348cat >>conftest.$ac_ext <<_ACEOF
8349/* end confdefs.h. */
8350#include <pthread.h>
8351 void *g(void *d) { return NULL; }
8352int
8353main ()
8354{
8355pthread_t t; pthread_create(&t,NULL,g,NULL);
8356 ;
8357 return 0;
8358}
8359_ACEOF
8360rm -f conftest.$ac_objext conftest$ac_exeext
8361if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8362 (eval $ac_link) 2>conftest.er1
8363 ac_status=$?
8364 grep -v '^ *+' conftest.er1 >conftest.err
8365 rm -f conftest.er1
8366 cat conftest.err >&5
8367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8368 (exit $ac_status); } &&
59da30e1 8369 { ac_try='test -z "$ac_c_werror_flag"
8370 || test ! -s conftest.err'
1e8e9920 8371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8372 (eval $ac_try) 2>&5
8373 ac_status=$?
8374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375 (exit $ac_status); }; } &&
8376 { ac_try='test -s conftest$ac_exeext'
8377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8378 (eval $ac_try) 2>&5
8379 ac_status=$?
8380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381 (exit $ac_status); }; }; then
8382 :
8383else
8384 echo "$as_me: failed program was:" >&5
8385sed 's/^/| /' conftest.$ac_ext >&5
8386
8387{ { echo "$as_me:$LINENO: error: Pthreads are required to build libgomp" >&5
8388echo "$as_me: error: Pthreads are required to build libgomp" >&2;}
8389 { (exit 1); exit 1; }; }
8390fi
8391rm -f conftest.err conftest.$ac_objext \
8392 conftest$ac_exeext conftest.$ac_ext
8393fi
8394rm -f conftest.err conftest.$ac_objext \
8395 conftest$ac_exeext conftest.$ac_ext
8396
8397# Check for functions needed.
8398
8399
8400for ac_func in getloadavg clock_gettime
8401do
8402as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8403echo "$as_me:$LINENO: checking for $ac_func" >&5
8404echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8405if eval "test \"\${$as_ac_var+set}\" = set"; then
8406 echo $ECHO_N "(cached) $ECHO_C" >&6
8407else
8408 cat >conftest.$ac_ext <<_ACEOF
8409/* confdefs.h. */
8410_ACEOF
8411cat confdefs.h >>conftest.$ac_ext
8412cat >>conftest.$ac_ext <<_ACEOF
8413/* end confdefs.h. */
8414/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8415 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8416#define $ac_func innocuous_$ac_func
8417
8418/* System header to define __stub macros and hopefully few prototypes,
8419 which can conflict with char $ac_func (); below.
8420 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8421 <limits.h> exists even on freestanding compilers. */
8422
8423#ifdef __STDC__
8424# include <limits.h>
8425#else
8426# include <assert.h>
8427#endif
8428
8429#undef $ac_func
8430
8431/* Override any gcc2 internal prototype to avoid an error. */
8432#ifdef __cplusplus
8433extern "C"
8434{
8435#endif
8436/* We use char because int might match the return type of a gcc2
8437 builtin and then its argument prototype would still apply. */
8438char $ac_func ();
8439/* The GNU C library defines this for functions which it implements
8440 to always fail with ENOSYS. Some functions are actually named
8441 something starting with __ and the normal name is an alias. */
8442#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8443choke me
8444#else
8445char (*f) () = $ac_func;
8446#endif
8447#ifdef __cplusplus
8448}
8449#endif
8450
8451int
8452main ()
8453{
8454return f != $ac_func;
8455 ;
8456 return 0;
8457}
8458_ACEOF
8459rm -f conftest.$ac_objext conftest$ac_exeext
8460if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8461 (eval $ac_link) 2>conftest.er1
8462 ac_status=$?
8463 grep -v '^ *+' conftest.er1 >conftest.err
8464 rm -f conftest.er1
8465 cat conftest.err >&5
8466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467 (exit $ac_status); } &&
59da30e1 8468 { ac_try='test -z "$ac_c_werror_flag"
8469 || test ! -s conftest.err'
1e8e9920 8470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8471 (eval $ac_try) 2>&5
8472 ac_status=$?
8473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474 (exit $ac_status); }; } &&
8475 { ac_try='test -s conftest$ac_exeext'
8476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8477 (eval $ac_try) 2>&5
8478 ac_status=$?
8479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8480 (exit $ac_status); }; }; then
8481 eval "$as_ac_var=yes"
8482else
8483 echo "$as_me: failed program was:" >&5
8484sed 's/^/| /' conftest.$ac_ext >&5
8485
8486eval "$as_ac_var=no"
8487fi
8488rm -f conftest.err conftest.$ac_objext \
8489 conftest$ac_exeext conftest.$ac_ext
8490fi
8491echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8492echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8493if test `eval echo '${'$as_ac_var'}'` = yes; then
8494 cat >>confdefs.h <<_ACEOF
8495#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8496_ACEOF
8497
8498fi
8499done
8500
8501
59da30e1 8502# Check for broken semaphore implementation on darwin.
8503# sem_init returns: sem_init error: Function not implemented.
8504case "$host" in
8505 *-darwin*)
8506
8507cat >>confdefs.h <<\_ACEOF
8508#define HAVE_BROKEN_POSIX_SEMAPHORES 1
8509_ACEOF
8510
8511 ;;
8512esac
8513
1e8e9920 8514# At least for glibc, clock_gettime is in librt. But don't pull that
8515# in if it still doesn't give us the function we want.
8516if test $ac_cv_func_clock_gettime = no; then
8517 echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
8518echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6
8519if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
8520 echo $ECHO_N "(cached) $ECHO_C" >&6
8521else
8522 ac_check_lib_save_LIBS=$LIBS
8523LIBS="-lrt $LIBS"
8524cat >conftest.$ac_ext <<_ACEOF
8525/* confdefs.h. */
8526_ACEOF
8527cat confdefs.h >>conftest.$ac_ext
8528cat >>conftest.$ac_ext <<_ACEOF
8529/* end confdefs.h. */
8530
8531/* Override any gcc2 internal prototype to avoid an error. */
8532#ifdef __cplusplus
8533extern "C"
8534#endif
8535/* We use char because int might match the return type of a gcc2
8536 builtin and then its argument prototype would still apply. */
8537char clock_gettime ();
8538int
8539main ()
8540{
8541clock_gettime ();
8542 ;
8543 return 0;
8544}
8545_ACEOF
8546rm -f conftest.$ac_objext conftest$ac_exeext
8547if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8548 (eval $ac_link) 2>conftest.er1
8549 ac_status=$?
8550 grep -v '^ *+' conftest.er1 >conftest.err
8551 rm -f conftest.er1
8552 cat conftest.err >&5
8553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8554 (exit $ac_status); } &&
59da30e1 8555 { ac_try='test -z "$ac_c_werror_flag"
8556 || test ! -s conftest.err'
1e8e9920 8557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8558 (eval $ac_try) 2>&5
8559 ac_status=$?
8560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8561 (exit $ac_status); }; } &&
8562 { ac_try='test -s conftest$ac_exeext'
8563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8564 (eval $ac_try) 2>&5
8565 ac_status=$?
8566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8567 (exit $ac_status); }; }; then
8568 ac_cv_lib_rt_clock_gettime=yes
8569else
8570 echo "$as_me: failed program was:" >&5
8571sed 's/^/| /' conftest.$ac_ext >&5
8572
8573ac_cv_lib_rt_clock_gettime=no
8574fi
8575rm -f conftest.err conftest.$ac_objext \
8576 conftest$ac_exeext conftest.$ac_ext
8577LIBS=$ac_check_lib_save_LIBS
8578fi
8579echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
8580echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6
8581if test $ac_cv_lib_rt_clock_gettime = yes; then
8582 LIBS="-lrt $LIBS"
8583 cat >>confdefs.h <<\_ACEOF
8584#define HAVE_CLOCK_GETTIME Define to 1 if you have the `clock_gettime' function.
8585_ACEOF
8586
8587fi
8588
8589fi
8590
8591# See if we support thread-local storage.
8592
8593 # Check whether --enable-tls or --disable-tls was given.
8594if test "${enable_tls+set}" = set; then
8595 enableval="$enable_tls"
8596
8597 case "$enableval" in
8598 yes|no) ;;
8599 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5
8600echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;}
8601 { (exit 1); exit 1; }; } ;;
8602 esac
8603
8604else
8605 enable_tls=yes
8606fi;
8607
8608 echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5
8609echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6
8610if test "${have_tls+set}" = set; then
8611 echo $ECHO_N "(cached) $ECHO_C" >&6
8612else
8613
8614 cat >conftest.$ac_ext <<_ACEOF
8615/* confdefs.h. */
8616_ACEOF
8617cat confdefs.h >>conftest.$ac_ext
8618cat >>conftest.$ac_ext <<_ACEOF
8619/* end confdefs.h. */
8620__thread int foo;
8621int
8622main ()
8623{
8624
8625 ;
8626 return 0;
8627}
8628_ACEOF
8629rm -f conftest.$ac_objext
8630if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8631 (eval $ac_compile) 2>conftest.er1
8632 ac_status=$?
8633 grep -v '^ *+' conftest.er1 >conftest.err
8634 rm -f conftest.er1
8635 cat conftest.err >&5
8636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8637 (exit $ac_status); } &&
59da30e1 8638 { ac_try='test -z "$ac_c_werror_flag"
8639 || test ! -s conftest.err'
1e8e9920 8640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8641 (eval $ac_try) 2>&5
8642 ac_status=$?
8643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8644 (exit $ac_status); }; } &&
8645 { ac_try='test -s conftest.$ac_objext'
8646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8647 (eval $ac_try) 2>&5
8648 ac_status=$?
8649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8650 (exit $ac_status); }; }; then
8651 have_tls=$enable_tls
8652else
8653 echo "$as_me: failed program was:" >&5
8654sed 's/^/| /' conftest.$ac_ext >&5
8655
8656have_tls=no
8657fi
8658rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8659fi
8660echo "$as_me:$LINENO: result: $have_tls" >&5
8661echo "${ECHO_T}$have_tls" >&6
8662 if test $have_tls = yes; then
8663
8664cat >>confdefs.h <<\_ACEOF
8665#define HAVE_TLS 1
8666_ACEOF
8667
8668 fi
8669
8670# See what sort of export controls are availible.
8671
8672 echo "$as_me:$LINENO: checking whether the target supports hidden visibility" >&5
8673echo $ECHO_N "checking whether the target supports hidden visibility... $ECHO_C" >&6
8674if test "${have_attribute_visibility+set}" = set; then
8675 echo $ECHO_N "(cached) $ECHO_C" >&6
8676else
8677
8678 save_CFLAGS="$CFLAGS"
8679 CFLAGS="$CFLAGS -Werror"
8680 cat >conftest.$ac_ext <<_ACEOF
8681/* confdefs.h. */
8682_ACEOF
8683cat confdefs.h >>conftest.$ac_ext
8684cat >>conftest.$ac_ext <<_ACEOF
8685/* end confdefs.h. */
8686void __attribute__((visibility("hidden"))) foo(void) { }
8687int
8688main ()
8689{
8690
8691 ;
8692 return 0;
8693}
8694_ACEOF
8695rm -f conftest.$ac_objext
8696if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8697 (eval $ac_compile) 2>conftest.er1
8698 ac_status=$?
8699 grep -v '^ *+' conftest.er1 >conftest.err
8700 rm -f conftest.er1
8701 cat conftest.err >&5
8702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703 (exit $ac_status); } &&
59da30e1 8704 { ac_try='test -z "$ac_c_werror_flag"
8705 || test ! -s conftest.err'
1e8e9920 8706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8707 (eval $ac_try) 2>&5
8708 ac_status=$?
8709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710 (exit $ac_status); }; } &&
8711 { ac_try='test -s conftest.$ac_objext'
8712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8713 (eval $ac_try) 2>&5
8714 ac_status=$?
8715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716 (exit $ac_status); }; }; then
8717 have_attribute_visibility=yes
8718else
8719 echo "$as_me: failed program was:" >&5
8720sed 's/^/| /' conftest.$ac_ext >&5
8721
8722have_attribute_visibility=no
8723fi
8724rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8725 CFLAGS="$save_CFLAGS"
8726fi
8727echo "$as_me:$LINENO: result: $have_attribute_visibility" >&5
8728echo "${ECHO_T}$have_attribute_visibility" >&6
8729 if test $have_attribute_visibility = yes; then
8730
8731cat >>confdefs.h <<\_ACEOF
8732#define HAVE_ATTRIBUTE_VISIBILITY 1
8733_ACEOF
8734
8735 fi
8736
8737 echo "$as_me:$LINENO: checking whether the target supports dllexport" >&5
8738echo $ECHO_N "checking whether the target supports dllexport... $ECHO_C" >&6
8739if test "${have_attribute_dllexport+set}" = set; then
8740 echo $ECHO_N "(cached) $ECHO_C" >&6
8741else
8742
8743 save_CFLAGS="$CFLAGS"
8744 CFLAGS="$CFLAGS -Werror"
8745 cat >conftest.$ac_ext <<_ACEOF
8746/* confdefs.h. */
8747_ACEOF
8748cat confdefs.h >>conftest.$ac_ext
8749cat >>conftest.$ac_ext <<_ACEOF
8750/* end confdefs.h. */
8751void __attribute__((dllexport)) foo(void) { }
8752int
8753main ()
8754{
8755
8756 ;
8757 return 0;
8758}
8759_ACEOF
8760rm -f conftest.$ac_objext
8761if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8762 (eval $ac_compile) 2>conftest.er1
8763 ac_status=$?
8764 grep -v '^ *+' conftest.er1 >conftest.err
8765 rm -f conftest.er1
8766 cat conftest.err >&5
8767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8768 (exit $ac_status); } &&
59da30e1 8769 { ac_try='test -z "$ac_c_werror_flag"
8770 || test ! -s conftest.err'
1e8e9920 8771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8772 (eval $ac_try) 2>&5
8773 ac_status=$?
8774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8775 (exit $ac_status); }; } &&
8776 { ac_try='test -s conftest.$ac_objext'
8777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8778 (eval $ac_try) 2>&5
8779 ac_status=$?
8780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8781 (exit $ac_status); }; }; then
8782 have_attribute_dllexport=yes
8783else
8784 echo "$as_me: failed program was:" >&5
8785sed 's/^/| /' conftest.$ac_ext >&5
8786
8787have_attribute_dllexport=no
8788fi
8789rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8790 CFLAGS="$save_CFLAGS"
8791fi
8792echo "$as_me:$LINENO: result: $have_attribute_dllexport" >&5
8793echo "${ECHO_T}$have_attribute_dllexport" >&6
8794 if test $have_attribute_dllexport = yes; then
8795
8796cat >>confdefs.h <<\_ACEOF
8797#define HAVE_ATTRIBUTE_DLLEXPORT 1
8798_ACEOF
8799
8800 fi
8801
8802 echo "$as_me:$LINENO: checking whether the target supports symbol aliases" >&5
8803echo $ECHO_N "checking whether the target supports symbol aliases... $ECHO_C" >&6
8804if test "${have_attribute_alias+set}" = set; then
8805 echo $ECHO_N "(cached) $ECHO_C" >&6
8806else
8807
8808 cat >conftest.$ac_ext <<_ACEOF
8809/* confdefs.h. */
8810_ACEOF
8811cat confdefs.h >>conftest.$ac_ext
8812cat >>conftest.$ac_ext <<_ACEOF
8813/* end confdefs.h. */
8814
8815#define ULP STR1(__USER_LABEL_PREFIX__)
8816#define STR1(x) STR2(x)
8817#define STR2(x) #x
8818void foo(void) { }
8819extern void bar(void) __attribute__((alias(ULP "foo")));
8820int
8821main ()
8822{
8823bar();
8824 ;
8825 return 0;
8826}
8827_ACEOF
8828rm -f conftest.$ac_objext conftest$ac_exeext
8829if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8830 (eval $ac_link) 2>conftest.er1
8831 ac_status=$?
8832 grep -v '^ *+' conftest.er1 >conftest.err
8833 rm -f conftest.er1
8834 cat conftest.err >&5
8835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8836 (exit $ac_status); } &&
59da30e1 8837 { ac_try='test -z "$ac_c_werror_flag"
8838 || test ! -s conftest.err'
1e8e9920 8839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8840 (eval $ac_try) 2>&5
8841 ac_status=$?
8842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843 (exit $ac_status); }; } &&
8844 { ac_try='test -s conftest$ac_exeext'
8845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8846 (eval $ac_try) 2>&5
8847 ac_status=$?
8848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8849 (exit $ac_status); }; }; then
8850 have_attribute_alias=yes
8851else
8852 echo "$as_me: failed program was:" >&5
8853sed 's/^/| /' conftest.$ac_ext >&5
8854
8855have_attribute_alias=no
8856fi
8857rm -f conftest.err conftest.$ac_objext \
8858 conftest$ac_exeext conftest.$ac_ext
8859fi
8860echo "$as_me:$LINENO: result: $have_attribute_alias" >&5
8861echo "${ECHO_T}$have_attribute_alias" >&6
8862 if test $have_attribute_alias = yes; then
8863
8864cat >>confdefs.h <<\_ACEOF
8865#define HAVE_ATTRIBUTE_ALIAS 1
8866_ACEOF
8867
8868 fi
8869
8870 # If we're not using GNU ld, then there's no point in even trying these
8871 # tests. Check for that first. We should have already tested for gld
8872 # by now (in libtool), but require it now just to be safe...
8873 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
8874 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
8875
8876
8877
8878 # The name set by libtool depends on the version of libtool. Shame on us
8879 # for depending on an impl detail, but c'est la vie. Older versions used
8880 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
8881 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
8882 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
8883 # set (hence we're using an older libtool), then set it.
8884 if test x${with_gnu_ld+set} != xset; then
8885 if test x${ac_cv_prog_gnu_ld+set} != xset; then
8886 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
8887 with_gnu_ld=no
8888 else
8889 with_gnu_ld=$ac_cv_prog_gnu_ld
8890 fi
8891 fi
8892
8893 # Start by getting the version number. I think the libtool test already
8894 # does some of this, but throws away the result.
8895
8896 ldver=`$LD --version 2>/dev/null | head -1 | \
8897 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
8898
8899 libgomp_gnu_ld_version=`echo $ldver | \
8900 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
8901
8902 # Set --gc-sections.
8903 if test "$with_gnu_ld" = "notbroken"; then
8904 # GNU ld it is! Joy and bunny rabbits!
8905
8906 # All these tests are for C++; save the language and the compiler flags.
8907 # Need to do this so that g++ won't try to link in libstdc++
8908 ac_test_CFLAGS="${CFLAGS+set}"
8909 ac_save_CFLAGS="$CFLAGS"
8910 CFLAGS='-x c++ -Wl,--gc-sections'
8911
8912 # Check for -Wl,--gc-sections
8913 # XXX This test is broken at the moment, as symbols required for linking
8914 # are now in libsupc++ (not built yet). In addition, this test has
8915 # cored on solaris in the past. In addition, --gc-sections doesn't
8916 # really work at the moment (keeps on discarding used sections, first
8917 # .eh_frame and now some of the glibc sections for iconv).
8918 # Bzzzzt. Thanks for playing, maybe next time.
8919 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
8920echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
8921 if test "$cross_compiling" = yes; then
8922 ac_sectionLDflags=yes
8923else
8924 cat >conftest.$ac_ext <<_ACEOF
8925/* confdefs.h. */
8926_ACEOF
8927cat confdefs.h >>conftest.$ac_ext
8928cat >>conftest.$ac_ext <<_ACEOF
8929/* end confdefs.h. */
8930
8931 int main(void)
8932 {
8933 try { throw 1; }
8934 catch (...) { };
8935 return 0;
8936 }
8937
8938_ACEOF
8939rm -f conftest$ac_exeext
8940if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8941 (eval $ac_link) 2>&5
8942 ac_status=$?
8943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8944 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8946 (eval $ac_try) 2>&5
8947 ac_status=$?
8948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949 (exit $ac_status); }; }; then
8950 ac_sectionLDflags=yes
8951else
8952 echo "$as_me: program exited with status $ac_status" >&5
8953echo "$as_me: failed program was:" >&5
8954sed 's/^/| /' conftest.$ac_ext >&5
8955
8956( exit $ac_status )
8957ac_sectionLDflags=no
8958fi
8959rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8960fi
8961 if test "$ac_test_CFLAGS" = set; then
8962 CFLAGS="$ac_save_CFLAGS"
8963 else
8964 # this is the suspicious part
8965 CFLAGS=''
8966 fi
8967 if test "$ac_sectionLDflags" = "yes"; then
8968 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
8969 fi
8970 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
8971echo "${ECHO_T}$ac_sectionLDflags" >&6
8972 fi
8973
8974 # Set linker optimization flags.
8975 if test x"$with_gnu_ld" = x"yes"; then
8976 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
8977 fi
8978
8979
8980
8981
8982
8983
8984 # Check whether --enable-symvers or --disable-symvers was given.
8985if test "${enable_symvers+set}" = set; then
8986 enableval="$enable_symvers"
8987
8988 case "$enableval" in
8989 yes|no|gnu) ;;
8990 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable symvers" >&5
8991echo "$as_me: error: Unknown argument to enable/disable symvers" >&2;}
8992 { (exit 1); exit 1; }; } ;;
8993 esac
8994
8995else
8996 enable_symvers=yes
8997fi;
8998
8999
9000# If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we
9001# don't know enough about $LD to do tricks...
9002
9003# FIXME The following test is too strict, in theory.
9004if test $enable_shared = no ||
9005 test "x$LD" = x ||
9006 test x$libgomp_gnu_ld_version = x; then
9007 enable_symvers=no
9008fi
9009
9010# Check to see if libgcc_s exists, indicating that shared libgcc is possible.
9011if test $enable_symvers != no; then
9012 echo "$as_me:$LINENO: checking for shared libgcc" >&5
9013echo $ECHO_N "checking for shared libgcc... $ECHO_C" >&6
9014 ac_save_CFLAGS="$CFLAGS"
9015 CFLAGS=' -lgcc_s'
9016 cat >conftest.$ac_ext <<_ACEOF
9017/* confdefs.h. */
9018_ACEOF
9019cat confdefs.h >>conftest.$ac_ext
9020cat >>conftest.$ac_ext <<_ACEOF
9021/* end confdefs.h. */
9022
9023int
9024main ()
9025{
9026return 0;
9027 ;
9028 return 0;
9029}
9030_ACEOF
9031rm -f conftest.$ac_objext conftest$ac_exeext
9032if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9033 (eval $ac_link) 2>conftest.er1
9034 ac_status=$?
9035 grep -v '^ *+' conftest.er1 >conftest.err
9036 rm -f conftest.er1
9037 cat conftest.err >&5
9038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9039 (exit $ac_status); } &&
59da30e1 9040 { ac_try='test -z "$ac_c_werror_flag"
9041 || test ! -s conftest.err'
1e8e9920 9042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9043 (eval $ac_try) 2>&5
9044 ac_status=$?
9045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9046 (exit $ac_status); }; } &&
9047 { ac_try='test -s conftest$ac_exeext'
9048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9049 (eval $ac_try) 2>&5
9050 ac_status=$?
9051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9052 (exit $ac_status); }; }; then
9053 libgomp_shared_libgcc=yes
9054else
9055 echo "$as_me: failed program was:" >&5
9056sed 's/^/| /' conftest.$ac_ext >&5
9057
9058libgomp_shared_libgcc=no
9059fi
9060rm -f conftest.err conftest.$ac_objext \
9061 conftest$ac_exeext conftest.$ac_ext
9062 CFLAGS="$ac_save_CFLAGS"
9063 if test $libgomp_shared_libgcc = no; then
9064 cat > conftest.c <<EOF
9065int main (void) { return 0; }
9066EOF
9067 libgomp_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
9068 -shared -shared-libgcc -o conftest.so \
9069 conftest.c -v 2>&1 >/dev/null \
9070 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
9071 rm -f conftest.c conftest.so
9072 if test x${libgomp_libgcc_s_suffix+set} = xset; then
9073 CFLAGS=" -lgcc_s$libgomp_libgcc_s_suffix"
9074 cat >conftest.$ac_ext <<_ACEOF
9075/* confdefs.h. */
9076_ACEOF
9077cat confdefs.h >>conftest.$ac_ext
9078cat >>conftest.$ac_ext <<_ACEOF
9079/* end confdefs.h. */
9080
9081int
9082main ()
9083{
9084return 0;
9085 ;
9086 return 0;
9087}
9088_ACEOF
9089rm -f conftest.$ac_objext conftest$ac_exeext
9090if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9091 (eval $ac_link) 2>conftest.er1
9092 ac_status=$?
9093 grep -v '^ *+' conftest.er1 >conftest.err
9094 rm -f conftest.er1
9095 cat conftest.err >&5
9096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9097 (exit $ac_status); } &&
59da30e1 9098 { ac_try='test -z "$ac_c_werror_flag"
9099 || test ! -s conftest.err'
1e8e9920 9100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9101 (eval $ac_try) 2>&5
9102 ac_status=$?
9103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9104 (exit $ac_status); }; } &&
9105 { ac_try='test -s conftest$ac_exeext'
9106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9107 (eval $ac_try) 2>&5
9108 ac_status=$?
9109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9110 (exit $ac_status); }; }; then
9111 libgomp_shared_libgcc=yes
9112else
9113 echo "$as_me: failed program was:" >&5
9114sed 's/^/| /' conftest.$ac_ext >&5
9115
9116fi
9117rm -f conftest.err conftest.$ac_objext \
9118 conftest$ac_exeext conftest.$ac_ext
9119 CFLAGS="$ac_save_CFLAGS"
9120 fi
9121 fi
9122 echo "$as_me:$LINENO: result: $libgomp_shared_libgcc" >&5
9123echo "${ECHO_T}$libgomp_shared_libgcc" >&6
9124fi
9125
9126# For GNU ld, we need at least this version. The format is described in
9127# LIBGOMP_CHECK_LINKER_FEATURES above.
9128libgomp_min_gnu_ld_version=21400
9129# XXXXXXXXXXX libgomp_gnu_ld_version=21390
9130
9131# Check to see if unspecified "yes" value can win, given results above.
9132# Change "yes" into either "no" or a style name.
9133if test $enable_symvers = yes; then
9134 if test $with_gnu_ld = yes &&
9135 test $libgomp_shared_libgcc = yes;
9136 then
9137 if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then
9138 enable_symvers=gnu
9139 else
9140 # The right tools, the right setup, but too old. Fallbacks?
9141 { echo "$as_me:$LINENO: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5
9142echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;}
9143 { echo "$as_me:$LINENO: WARNING: === full symbol versioning support in this release of GCC." >&5
9144echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
9145 { echo "$as_me:$LINENO: WARNING: === You would need to upgrade your binutils to version" >&5
9146echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
9147 { echo "$as_me:$LINENO: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5
9148echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;}
9149 if test $libgomp_gnu_ld_version -ge 21200 ; then
9150 # Globbing fix is present, proper block support is not.
9151 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
9152echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
9153 enable_symvers=no
9154 else
9155 # 2.11 or older.
9156 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
9157echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
9158 enable_symvers=no
9159 fi
9160 fi
9161 else
9162 # just fail for now
9163 { echo "$as_me:$LINENO: WARNING: === You have requested some kind of symbol versioning, but" >&5
9164echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
9165 { echo "$as_me:$LINENO: WARNING: === either you are not using a supported linker, or you are" >&5
9166echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
9167 { echo "$as_me:$LINENO: WARNING: === not building a shared libgcc_s (which is required)." >&5
9168echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
9169 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
9170echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
9171 enable_symvers=no
9172 fi
9173fi
9174
9175
9176
9177if test $enable_symvers != no; then
9178 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE=
9179 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE='#'
9180else
9181 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE='#'
9182 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE=
9183fi
9184
9185{ echo "$as_me:$LINENO: versioning on shared library symbols is $enable_symvers" >&5
9186echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
9187
9188
9189# Get target configury.
9190. ${srcdir}/configure.tgt
9191CFLAGS="$save_CFLAGS $XCFLAGS"
9192
9193# Check for __sync_val_compare_and_swap, but only after the target has
9194# had a chance to set XCFLAGS.
9195
9196 echo "$as_me:$LINENO: checking whether the target supports __sync_*_compare_and_swap" >&5
9197echo $ECHO_N "checking whether the target supports __sync_*_compare_and_swap... $ECHO_C" >&6
9198if test "${have_sync_builtins+set}" = set; then
9199 echo $ECHO_N "(cached) $ECHO_C" >&6
9200else
9201
9202 cat >conftest.$ac_ext <<_ACEOF
9203/* confdefs.h. */
9204_ACEOF
9205cat confdefs.h >>conftest.$ac_ext
9206cat >>conftest.$ac_ext <<_ACEOF
9207/* end confdefs.h. */
9208
9209int
9210main ()
9211{
9212int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
9213 ;
9214 return 0;
9215}
9216_ACEOF
9217rm -f conftest.$ac_objext conftest$ac_exeext
9218if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9219 (eval $ac_link) 2>conftest.er1
9220 ac_status=$?
9221 grep -v '^ *+' conftest.er1 >conftest.err
9222 rm -f conftest.er1
9223 cat conftest.err >&5
9224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9225 (exit $ac_status); } &&
59da30e1 9226 { ac_try='test -z "$ac_c_werror_flag"
9227 || test ! -s conftest.err'
1e8e9920 9228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9229 (eval $ac_try) 2>&5
9230 ac_status=$?
9231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232 (exit $ac_status); }; } &&
9233 { ac_try='test -s conftest$ac_exeext'
9234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9235 (eval $ac_try) 2>&5
9236 ac_status=$?
9237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9238 (exit $ac_status); }; }; then
9239 have_sync_builtins=yes
9240else
9241 echo "$as_me: failed program was:" >&5
9242sed 's/^/| /' conftest.$ac_ext >&5
9243
9244have_sync_builtins=no
9245fi
9246rm -f conftest.err conftest.$ac_objext \
9247 conftest$ac_exeext conftest.$ac_ext
9248fi
9249echo "$as_me:$LINENO: result: $have_sync_builtins" >&5
9250echo "${ECHO_T}$have_sync_builtins" >&6
9251 if test $have_sync_builtins = yes; then
9252
9253cat >>confdefs.h <<\_ACEOF
9254#define HAVE_SYNC_BUILTINS 1
9255_ACEOF
9256
9257 fi
9258
9259XCFLAGS="$XCFLAGS$XPCFLAGS"
9260
9261
9262
9263
9264
9265# Cleanup and exit.
9266CFLAGS="$save_CFLAGS"
9267cat >confcache <<\_ACEOF
9268# This file is a shell script that caches the results of configure
9269# tests run on this system so they can be shared between configure
9270# scripts and configure runs, see configure's option --config-cache.
9271# It is not useful on other systems. If it contains results you don't
9272# want to keep, you may remove or edit it.
9273#
9274# config.status only pays attention to the cache file if you give it
9275# the --recheck option to rerun configure.
9276#
9277# `ac_cv_env_foo' variables (set or unset) will be overridden when
9278# loading this file, other *unset* `ac_cv_foo' will be assigned the
9279# following values.
9280
9281_ACEOF
9282
9283# The following way of writing the cache mishandles newlines in values,
9284# but we know of no workaround that is simple, portable, and efficient.
9285# So, don't put newlines in cache variables' values.
9286# Ultrix sh set writes to stderr and can't be redirected directly,
9287# and sets the high bit in the cache file unless we assign to the vars.
9288{
9289 (set) 2>&1 |
9290 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9291 *ac_space=\ *)
9292 # `set' does not quote correctly, so add quotes (double-quote
9293 # substitution turns \\\\ into \\, and sed turns \\ into \).
9294 sed -n \
9295 "s/'/'\\\\''/g;
9296 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9297 ;;
9298 *)
9299 # `set' quotes correctly as required by POSIX, so do not add quotes.
9300 sed -n \
9301 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9302 ;;
9303 esac;
9304} |
9305 sed '
9306 t clear
9307 : clear
9308 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9309 t end
9310 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9311 : end' >>confcache
9312if diff $cache_file confcache >/dev/null 2>&1; then :; else
9313 if test -w $cache_file; then
9314 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9315 cat confcache >$cache_file
9316 else
9317 echo "not updating unwritable cache $cache_file"
9318 fi
9319fi
9320rm -f confcache
9321
9322if test ${multilib} = yes; then
9323 multilib_arg="--enable-multilib"
9324else
9325 multilib_arg=
9326fi
9327
9328# Set up the set of libraries that we need to link against for libgomp.
138f59be 9329# Note that the GOMP_SELF_SPEC in gcc.c will force -pthread for -fopenmp,
1e8e9920 9330# which will force linkage against -lpthread (or equivalent for the system).
9331# That's not 100% ideal, but about the best we can do easily.
9332if test $enable_shared = yes; then
9333 link_gomp="-lgomp %{static: $LIBS}"
9334else
9335 link_gomp="-lgomp $LIBS"
9336fi
9337
9338
9339
9340
9341if test "$ac_cv_fc_compiler_gnu" = yes; then
9342 USE_FORTRAN_TRUE=
9343 USE_FORTRAN_FALSE='#'
9344else
9345 USE_FORTRAN_TRUE='#'
9346 USE_FORTRAN_FALSE=
9347fi
9348
9349
107c3bbf 9350# ??? 2006-01-24: Paulo committed to asking autoconf folk to document
9351# and export AC_COMPUTE_INT. If that happens, then we'll need to remove
9352# the underscore here and update the PREREQ. If it doesn't, then we'll
9353# need to copy this macro to our acinclude.m4.
9354save_CFLAGS="$CFLAGS"
9355for i in $config_path; do
9356 if test -f $srcdir/config/$i/omp-lock.h; then
9357 CFLAGS="$CFLAGS -include $srcdir/config/$i/omp-lock.h"
9358 break
9359 fi
9360done
9361
9362if test "$cross_compiling" = yes; then
9363 # Depending upon the size, compute the lo and hi bounds.
9364cat >conftest.$ac_ext <<_ACEOF
9365/* confdefs.h. */
9366_ACEOF
9367cat confdefs.h >>conftest.$ac_ext
9368cat >>conftest.$ac_ext <<_ACEOF
9369/* end confdefs.h. */
9370
9371int
9372main ()
9373{
9374static int test_array [1 - 2 * !((sizeof (omp_lock_t)) >= 0)];
9375test_array [0] = 0
9376
9377 ;
9378 return 0;
9379}
9380_ACEOF
9381rm -f conftest.$ac_objext
9382if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9383 (eval $ac_compile) 2>conftest.er1
9384 ac_status=$?
9385 grep -v '^ *+' conftest.er1 >conftest.err
9386 rm -f conftest.er1
9387 cat conftest.err >&5
9388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9389 (exit $ac_status); } &&
59da30e1 9390 { ac_try='test -z "$ac_c_werror_flag"
9391 || test ! -s conftest.err'
107c3bbf 9392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9393 (eval $ac_try) 2>&5
9394 ac_status=$?
9395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9396 (exit $ac_status); }; } &&
9397 { ac_try='test -s conftest.$ac_objext'
9398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9399 (eval $ac_try) 2>&5
9400 ac_status=$?
9401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9402 (exit $ac_status); }; }; then
9403 ac_lo=0 ac_mid=0
9404 while :; do
9405 cat >conftest.$ac_ext <<_ACEOF
9406/* confdefs.h. */
9407_ACEOF
9408cat confdefs.h >>conftest.$ac_ext
9409cat >>conftest.$ac_ext <<_ACEOF
9410/* end confdefs.h. */
9411
9412int
9413main ()
9414{
9415static int test_array [1 - 2 * !((sizeof (omp_lock_t)) <= $ac_mid)];
9416test_array [0] = 0
9417
9418 ;
9419 return 0;
9420}
9421_ACEOF
9422rm -f conftest.$ac_objext
9423if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9424 (eval $ac_compile) 2>conftest.er1
9425 ac_status=$?
9426 grep -v '^ *+' conftest.er1 >conftest.err
9427 rm -f conftest.er1
9428 cat conftest.err >&5
9429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9430 (exit $ac_status); } &&
59da30e1 9431 { ac_try='test -z "$ac_c_werror_flag"
9432 || test ! -s conftest.err'
107c3bbf 9433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9434 (eval $ac_try) 2>&5
9435 ac_status=$?
9436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9437 (exit $ac_status); }; } &&
9438 { ac_try='test -s conftest.$ac_objext'
9439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9440 (eval $ac_try) 2>&5
9441 ac_status=$?
9442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9443 (exit $ac_status); }; }; then
9444 ac_hi=$ac_mid; break
9445else
9446 echo "$as_me: failed program was:" >&5
9447sed 's/^/| /' conftest.$ac_ext >&5
9448
9449ac_lo=`expr $ac_mid + 1`
9450 if test $ac_lo -le $ac_mid; then
9451 ac_lo= ac_hi=
9452 break
9453 fi
9454 ac_mid=`expr 2 '*' $ac_mid + 1`
9455fi
9456rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9457 done
9458else
9459 echo "$as_me: failed program was:" >&5
9460sed 's/^/| /' conftest.$ac_ext >&5
9461
9462cat >conftest.$ac_ext <<_ACEOF
9463/* confdefs.h. */
9464_ACEOF
9465cat confdefs.h >>conftest.$ac_ext
9466cat >>conftest.$ac_ext <<_ACEOF
9467/* end confdefs.h. */
9468
9469int
9470main ()
9471{
9472static int test_array [1 - 2 * !((sizeof (omp_lock_t)) < 0)];
9473test_array [0] = 0
9474
9475 ;
9476 return 0;
9477}
9478_ACEOF
9479rm -f conftest.$ac_objext
9480if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9481 (eval $ac_compile) 2>conftest.er1
9482 ac_status=$?
9483 grep -v '^ *+' conftest.er1 >conftest.err
9484 rm -f conftest.er1
9485 cat conftest.err >&5
9486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9487 (exit $ac_status); } &&
59da30e1 9488 { ac_try='test -z "$ac_c_werror_flag"
9489 || test ! -s conftest.err'
107c3bbf 9490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9491 (eval $ac_try) 2>&5
9492 ac_status=$?
9493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9494 (exit $ac_status); }; } &&
9495 { ac_try='test -s conftest.$ac_objext'
9496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9497 (eval $ac_try) 2>&5
9498 ac_status=$?
9499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9500 (exit $ac_status); }; }; then
9501 ac_hi=-1 ac_mid=-1
9502 while :; do
9503 cat >conftest.$ac_ext <<_ACEOF
9504/* confdefs.h. */
9505_ACEOF
9506cat confdefs.h >>conftest.$ac_ext
9507cat >>conftest.$ac_ext <<_ACEOF
9508/* end confdefs.h. */
9509
9510int
9511main ()
9512{
9513static int test_array [1 - 2 * !((sizeof (omp_lock_t)) >= $ac_mid)];
9514test_array [0] = 0
9515
9516 ;
9517 return 0;
9518}
9519_ACEOF
9520rm -f conftest.$ac_objext
9521if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9522 (eval $ac_compile) 2>conftest.er1
9523 ac_status=$?
9524 grep -v '^ *+' conftest.er1 >conftest.err
9525 rm -f conftest.er1
9526 cat conftest.err >&5
9527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9528 (exit $ac_status); } &&
59da30e1 9529 { ac_try='test -z "$ac_c_werror_flag"
9530 || test ! -s conftest.err'
107c3bbf 9531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9532 (eval $ac_try) 2>&5
9533 ac_status=$?
9534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9535 (exit $ac_status); }; } &&
9536 { ac_try='test -s conftest.$ac_objext'
9537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9538 (eval $ac_try) 2>&5
9539 ac_status=$?
9540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9541 (exit $ac_status); }; }; then
9542 ac_lo=$ac_mid; break
9543else
9544 echo "$as_me: failed program was:" >&5
9545sed 's/^/| /' conftest.$ac_ext >&5
9546
9547ac_hi=`expr '(' $ac_mid ')' - 1`
9548 if test $ac_mid -le $ac_hi; then
9549 ac_lo= ac_hi=
9550 break
9551 fi
9552 ac_mid=`expr 2 '*' $ac_mid`
9553fi
9554rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9555 done
9556else
9557 echo "$as_me: failed program was:" >&5
9558sed 's/^/| /' conftest.$ac_ext >&5
9559
9560ac_lo= ac_hi=
9561fi
9562rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9563fi
9564rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9565# Binary search between lo and hi bounds.
9566while test "x$ac_lo" != "x$ac_hi"; do
9567 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9568 cat >conftest.$ac_ext <<_ACEOF
9569/* confdefs.h. */
9570_ACEOF
9571cat confdefs.h >>conftest.$ac_ext
9572cat >>conftest.$ac_ext <<_ACEOF
9573/* end confdefs.h. */
9574
9575int
9576main ()
9577{
9578static int test_array [1 - 2 * !((sizeof (omp_lock_t)) <= $ac_mid)];
9579test_array [0] = 0
9580
9581 ;
9582 return 0;
9583}
9584_ACEOF
9585rm -f conftest.$ac_objext
9586if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9587 (eval $ac_compile) 2>conftest.er1
9588 ac_status=$?
9589 grep -v '^ *+' conftest.er1 >conftest.err
9590 rm -f conftest.er1
9591 cat conftest.err >&5
9592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9593 (exit $ac_status); } &&
59da30e1 9594 { ac_try='test -z "$ac_c_werror_flag"
9595 || test ! -s conftest.err'
107c3bbf 9596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9597 (eval $ac_try) 2>&5
9598 ac_status=$?
9599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9600 (exit $ac_status); }; } &&
9601 { ac_try='test -s conftest.$ac_objext'
9602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9603 (eval $ac_try) 2>&5
9604 ac_status=$?
9605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9606 (exit $ac_status); }; }; then
9607 ac_hi=$ac_mid
9608else
9609 echo "$as_me: failed program was:" >&5
9610sed 's/^/| /' conftest.$ac_ext >&5
9611
9612ac_lo=`expr '(' $ac_mid ')' + 1`
9613fi
9614rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9615done
9616case $ac_lo in
9617?*) OMP_LOCK_SIZE=$ac_lo;;
9618'') { { echo "$as_me:$LINENO: error: unsupported system, cannot find sizeof (omp_lock_t)" >&5
9619echo "$as_me: error: unsupported system, cannot find sizeof (omp_lock_t)" >&2;}
9620 { (exit 1); exit 1; }; } ;;
9621esac
9622else
9623 if test "$cross_compiling" = yes; then
59da30e1 9624 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9625See \`config.log' for more details." >&5
9626echo "$as_me: error: cannot run test program while cross compiling
9627See \`config.log' for more details." >&2;}
107c3bbf 9628 { (exit 1); exit 1; }; }
9629else
9630 cat >conftest.$ac_ext <<_ACEOF
9631/* confdefs.h. */
9632_ACEOF
9633cat confdefs.h >>conftest.$ac_ext
9634cat >>conftest.$ac_ext <<_ACEOF
9635/* end confdefs.h. */
9636
9637long longval () { return sizeof (omp_lock_t); }
9638unsigned long ulongval () { return sizeof (omp_lock_t); }
9639#include <stdio.h>
9640#include <stdlib.h>
9641int
9642main ()
9643{
9644
9645 FILE *f = fopen ("conftest.val", "w");
9646 if (! f)
9647 exit (1);
9648 if ((sizeof (omp_lock_t)) < 0)
9649 {
9650 long i = longval ();
9651 if (i != (sizeof (omp_lock_t)))
9652 exit (1);
9653 fprintf (f, "%ld\n", i);
9654 }
9655 else
9656 {
9657 unsigned long i = ulongval ();
9658 if (i != (sizeof (omp_lock_t)))
9659 exit (1);
9660 fprintf (f, "%lu\n", i);
9661 }
9662 exit (ferror (f) || fclose (f) != 0);
9663
9664 ;
9665 return 0;
9666}
9667_ACEOF
9668rm -f conftest$ac_exeext
9669if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9670 (eval $ac_link) 2>&5
9671 ac_status=$?
9672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9673 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9675 (eval $ac_try) 2>&5
9676 ac_status=$?
9677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9678 (exit $ac_status); }; }; then
9679 OMP_LOCK_SIZE=`cat conftest.val`
9680else
9681 echo "$as_me: program exited with status $ac_status" >&5
9682echo "$as_me: failed program was:" >&5
9683sed 's/^/| /' conftest.$ac_ext >&5
9684
9685( exit $ac_status )
9686{ { echo "$as_me:$LINENO: error: unsupported system, cannot find sizeof (omp_lock_t)" >&5
9687echo "$as_me: error: unsupported system, cannot find sizeof (omp_lock_t)" >&2;}
9688 { (exit 1); exit 1; }; }
9689fi
9690rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9691fi
9692fi
9693rm -f conftest.val
9694if test "$cross_compiling" = yes; then
9695 # Depending upon the size, compute the lo and hi bounds.
9696cat >conftest.$ac_ext <<_ACEOF
9697/* confdefs.h. */
9698_ACEOF
9699cat confdefs.h >>conftest.$ac_ext
9700cat >>conftest.$ac_ext <<_ACEOF
9701/* end confdefs.h. */
9702
9703int
9704main ()
9705{
9706static int test_array [1 - 2 * !((__alignof (omp_lock_t)) >= 0)];
9707test_array [0] = 0
9708
9709 ;
9710 return 0;
9711}
9712_ACEOF
9713rm -f conftest.$ac_objext
9714if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9715 (eval $ac_compile) 2>conftest.er1
9716 ac_status=$?
9717 grep -v '^ *+' conftest.er1 >conftest.err
9718 rm -f conftest.er1
9719 cat conftest.err >&5
9720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721 (exit $ac_status); } &&
59da30e1 9722 { ac_try='test -z "$ac_c_werror_flag"
9723 || test ! -s conftest.err'
107c3bbf 9724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9725 (eval $ac_try) 2>&5
9726 ac_status=$?
9727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9728 (exit $ac_status); }; } &&
9729 { ac_try='test -s conftest.$ac_objext'
9730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9731 (eval $ac_try) 2>&5
9732 ac_status=$?
9733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734 (exit $ac_status); }; }; then
9735 ac_lo=0 ac_mid=0
9736 while :; do
9737 cat >conftest.$ac_ext <<_ACEOF
9738/* confdefs.h. */
9739_ACEOF
9740cat confdefs.h >>conftest.$ac_ext
9741cat >>conftest.$ac_ext <<_ACEOF
9742/* end confdefs.h. */
9743
9744int
9745main ()
9746{
9747static int test_array [1 - 2 * !((__alignof (omp_lock_t)) <= $ac_mid)];
9748test_array [0] = 0
9749
9750 ;
9751 return 0;
9752}
9753_ACEOF
9754rm -f conftest.$ac_objext
9755if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9756 (eval $ac_compile) 2>conftest.er1
9757 ac_status=$?
9758 grep -v '^ *+' conftest.er1 >conftest.err
9759 rm -f conftest.er1
9760 cat conftest.err >&5
9761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762 (exit $ac_status); } &&
59da30e1 9763 { ac_try='test -z "$ac_c_werror_flag"
9764 || test ! -s conftest.err'
107c3bbf 9765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9766 (eval $ac_try) 2>&5
9767 ac_status=$?
9768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769 (exit $ac_status); }; } &&
9770 { ac_try='test -s conftest.$ac_objext'
9771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9772 (eval $ac_try) 2>&5
9773 ac_status=$?
9774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775 (exit $ac_status); }; }; then
9776 ac_hi=$ac_mid; break
9777else
9778 echo "$as_me: failed program was:" >&5
9779sed 's/^/| /' conftest.$ac_ext >&5
9780
9781ac_lo=`expr $ac_mid + 1`
9782 if test $ac_lo -le $ac_mid; then
9783 ac_lo= ac_hi=
9784 break
9785 fi
9786 ac_mid=`expr 2 '*' $ac_mid + 1`
9787fi
9788rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9789 done
9790else
9791 echo "$as_me: failed program was:" >&5
9792sed 's/^/| /' conftest.$ac_ext >&5
9793
9794cat >conftest.$ac_ext <<_ACEOF
9795/* confdefs.h. */
9796_ACEOF
9797cat confdefs.h >>conftest.$ac_ext
9798cat >>conftest.$ac_ext <<_ACEOF
9799/* end confdefs.h. */
9800
9801int
9802main ()
9803{
9804static int test_array [1 - 2 * !((__alignof (omp_lock_t)) < 0)];
9805test_array [0] = 0
9806
9807 ;
9808 return 0;
9809}
9810_ACEOF
9811rm -f conftest.$ac_objext
9812if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9813 (eval $ac_compile) 2>conftest.er1
9814 ac_status=$?
9815 grep -v '^ *+' conftest.er1 >conftest.err
9816 rm -f conftest.er1
9817 cat conftest.err >&5
9818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9819 (exit $ac_status); } &&
59da30e1 9820 { ac_try='test -z "$ac_c_werror_flag"
9821 || test ! -s conftest.err'
107c3bbf 9822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9823 (eval $ac_try) 2>&5
9824 ac_status=$?
9825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9826 (exit $ac_status); }; } &&
9827 { ac_try='test -s conftest.$ac_objext'
9828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9829 (eval $ac_try) 2>&5
9830 ac_status=$?
9831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9832 (exit $ac_status); }; }; then
9833 ac_hi=-1 ac_mid=-1
9834 while :; do
9835 cat >conftest.$ac_ext <<_ACEOF
9836/* confdefs.h. */
9837_ACEOF
9838cat confdefs.h >>conftest.$ac_ext
9839cat >>conftest.$ac_ext <<_ACEOF
9840/* end confdefs.h. */
9841
9842int
9843main ()
9844{
9845static int test_array [1 - 2 * !((__alignof (omp_lock_t)) >= $ac_mid)];
9846test_array [0] = 0
9847
9848 ;
9849 return 0;
9850}
9851_ACEOF
9852rm -f conftest.$ac_objext
9853if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9854 (eval $ac_compile) 2>conftest.er1
9855 ac_status=$?
9856 grep -v '^ *+' conftest.er1 >conftest.err
9857 rm -f conftest.er1
9858 cat conftest.err >&5
9859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9860 (exit $ac_status); } &&
59da30e1 9861 { ac_try='test -z "$ac_c_werror_flag"
9862 || test ! -s conftest.err'
107c3bbf 9863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9864 (eval $ac_try) 2>&5
9865 ac_status=$?
9866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9867 (exit $ac_status); }; } &&
9868 { ac_try='test -s conftest.$ac_objext'
9869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9870 (eval $ac_try) 2>&5
9871 ac_status=$?
9872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9873 (exit $ac_status); }; }; then
9874 ac_lo=$ac_mid; break
9875else
9876 echo "$as_me: failed program was:" >&5
9877sed 's/^/| /' conftest.$ac_ext >&5
9878
9879ac_hi=`expr '(' $ac_mid ')' - 1`
9880 if test $ac_mid -le $ac_hi; then
9881 ac_lo= ac_hi=
9882 break
9883 fi
9884 ac_mid=`expr 2 '*' $ac_mid`
9885fi
9886rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9887 done
9888else
9889 echo "$as_me: failed program was:" >&5
9890sed 's/^/| /' conftest.$ac_ext >&5
9891
9892ac_lo= ac_hi=
9893fi
9894rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9895fi
9896rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9897# Binary search between lo and hi bounds.
9898while test "x$ac_lo" != "x$ac_hi"; do
9899 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9900 cat >conftest.$ac_ext <<_ACEOF
9901/* confdefs.h. */
9902_ACEOF
9903cat confdefs.h >>conftest.$ac_ext
9904cat >>conftest.$ac_ext <<_ACEOF
9905/* end confdefs.h. */
9906
9907int
9908main ()
9909{
9910static int test_array [1 - 2 * !((__alignof (omp_lock_t)) <= $ac_mid)];
9911test_array [0] = 0
9912
9913 ;
9914 return 0;
9915}
9916_ACEOF
9917rm -f conftest.$ac_objext
9918if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9919 (eval $ac_compile) 2>conftest.er1
9920 ac_status=$?
9921 grep -v '^ *+' conftest.er1 >conftest.err
9922 rm -f conftest.er1
9923 cat conftest.err >&5
9924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9925 (exit $ac_status); } &&
59da30e1 9926 { ac_try='test -z "$ac_c_werror_flag"
9927 || test ! -s conftest.err'
107c3bbf 9928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9929 (eval $ac_try) 2>&5
9930 ac_status=$?
9931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9932 (exit $ac_status); }; } &&
9933 { ac_try='test -s conftest.$ac_objext'
9934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9935 (eval $ac_try) 2>&5
9936 ac_status=$?
9937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9938 (exit $ac_status); }; }; then
9939 ac_hi=$ac_mid
9940else
9941 echo "$as_me: failed program was:" >&5
9942sed 's/^/| /' conftest.$ac_ext >&5
9943
9944ac_lo=`expr '(' $ac_mid ')' + 1`
9945fi
9946rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9947done
9948case $ac_lo in
9949?*) OMP_LOCK_ALIGN=$ac_lo;;
9950'') ;;
9951esac
9952else
9953 if test "$cross_compiling" = yes; then
59da30e1 9954 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9955See \`config.log' for more details." >&5
9956echo "$as_me: error: cannot run test program while cross compiling
9957See \`config.log' for more details." >&2;}
107c3bbf 9958 { (exit 1); exit 1; }; }
9959else
9960 cat >conftest.$ac_ext <<_ACEOF
9961/* confdefs.h. */
9962_ACEOF
9963cat confdefs.h >>conftest.$ac_ext
9964cat >>conftest.$ac_ext <<_ACEOF
9965/* end confdefs.h. */
9966
9967long longval () { return __alignof (omp_lock_t); }
9968unsigned long ulongval () { return __alignof (omp_lock_t); }
9969#include <stdio.h>
9970#include <stdlib.h>
9971int
9972main ()
9973{
9974
9975 FILE *f = fopen ("conftest.val", "w");
9976 if (! f)
9977 exit (1);
9978 if ((__alignof (omp_lock_t)) < 0)
9979 {
9980 long i = longval ();
9981 if (i != (__alignof (omp_lock_t)))
9982 exit (1);
9983 fprintf (f, "%ld\n", i);
9984 }
9985 else
9986 {
9987 unsigned long i = ulongval ();
9988 if (i != (__alignof (omp_lock_t)))
9989 exit (1);
9990 fprintf (f, "%lu\n", i);
9991 }
9992 exit (ferror (f) || fclose (f) != 0);
9993
9994 ;
9995 return 0;
9996}
9997_ACEOF
9998rm -f conftest$ac_exeext
9999if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10000 (eval $ac_link) 2>&5
10001 ac_status=$?
10002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10003 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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 OMP_LOCK_ALIGN=`cat conftest.val`
10010else
10011 echo "$as_me: program exited with status $ac_status" >&5
10012echo "$as_me: failed program was:" >&5
10013sed 's/^/| /' conftest.$ac_ext >&5
10014
10015fi
10016rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10017fi
10018fi
10019rm -f conftest.val
10020if test "$cross_compiling" = yes; then
10021 # Depending upon the size, compute the lo and hi bounds.
10022cat >conftest.$ac_ext <<_ACEOF
10023/* confdefs.h. */
10024_ACEOF
10025cat confdefs.h >>conftest.$ac_ext
10026cat >>conftest.$ac_ext <<_ACEOF
10027/* end confdefs.h. */
10028
10029int
10030main ()
10031{
10032static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) >= 0)];
10033test_array [0] = 0
10034
10035 ;
10036 return 0;
10037}
10038_ACEOF
10039rm -f conftest.$ac_objext
10040if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10041 (eval $ac_compile) 2>conftest.er1
10042 ac_status=$?
10043 grep -v '^ *+' conftest.er1 >conftest.err
10044 rm -f conftest.er1
10045 cat conftest.err >&5
10046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10047 (exit $ac_status); } &&
59da30e1 10048 { ac_try='test -z "$ac_c_werror_flag"
10049 || test ! -s conftest.err'
107c3bbf 10050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10051 (eval $ac_try) 2>&5
10052 ac_status=$?
10053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10054 (exit $ac_status); }; } &&
10055 { ac_try='test -s conftest.$ac_objext'
10056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10057 (eval $ac_try) 2>&5
10058 ac_status=$?
10059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060 (exit $ac_status); }; }; then
10061 ac_lo=0 ac_mid=0
10062 while :; do
10063 cat >conftest.$ac_ext <<_ACEOF
10064/* confdefs.h. */
10065_ACEOF
10066cat confdefs.h >>conftest.$ac_ext
10067cat >>conftest.$ac_ext <<_ACEOF
10068/* end confdefs.h. */
10069
10070int
10071main ()
10072{
10073static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) <= $ac_mid)];
10074test_array [0] = 0
10075
10076 ;
10077 return 0;
10078}
10079_ACEOF
10080rm -f conftest.$ac_objext
10081if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10082 (eval $ac_compile) 2>conftest.er1
10083 ac_status=$?
10084 grep -v '^ *+' conftest.er1 >conftest.err
10085 rm -f conftest.er1
10086 cat conftest.err >&5
10087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10088 (exit $ac_status); } &&
59da30e1 10089 { ac_try='test -z "$ac_c_werror_flag"
10090 || test ! -s conftest.err'
107c3bbf 10091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10092 (eval $ac_try) 2>&5
10093 ac_status=$?
10094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10095 (exit $ac_status); }; } &&
10096 { ac_try='test -s conftest.$ac_objext'
10097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10098 (eval $ac_try) 2>&5
10099 ac_status=$?
10100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10101 (exit $ac_status); }; }; then
10102 ac_hi=$ac_mid; break
10103else
10104 echo "$as_me: failed program was:" >&5
10105sed 's/^/| /' conftest.$ac_ext >&5
10106
10107ac_lo=`expr $ac_mid + 1`
10108 if test $ac_lo -le $ac_mid; then
10109 ac_lo= ac_hi=
10110 break
10111 fi
10112 ac_mid=`expr 2 '*' $ac_mid + 1`
10113fi
10114rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10115 done
10116else
10117 echo "$as_me: failed program was:" >&5
10118sed 's/^/| /' conftest.$ac_ext >&5
10119
10120cat >conftest.$ac_ext <<_ACEOF
10121/* confdefs.h. */
10122_ACEOF
10123cat confdefs.h >>conftest.$ac_ext
10124cat >>conftest.$ac_ext <<_ACEOF
10125/* end confdefs.h. */
10126
10127int
10128main ()
10129{
10130static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) < 0)];
10131test_array [0] = 0
10132
10133 ;
10134 return 0;
10135}
10136_ACEOF
10137rm -f conftest.$ac_objext
10138if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10139 (eval $ac_compile) 2>conftest.er1
10140 ac_status=$?
10141 grep -v '^ *+' conftest.er1 >conftest.err
10142 rm -f conftest.er1
10143 cat conftest.err >&5
10144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10145 (exit $ac_status); } &&
59da30e1 10146 { ac_try='test -z "$ac_c_werror_flag"
10147 || test ! -s conftest.err'
107c3bbf 10148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10149 (eval $ac_try) 2>&5
10150 ac_status=$?
10151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10152 (exit $ac_status); }; } &&
10153 { ac_try='test -s conftest.$ac_objext'
10154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10155 (eval $ac_try) 2>&5
10156 ac_status=$?
10157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10158 (exit $ac_status); }; }; then
10159 ac_hi=-1 ac_mid=-1
10160 while :; do
10161 cat >conftest.$ac_ext <<_ACEOF
10162/* confdefs.h. */
10163_ACEOF
10164cat confdefs.h >>conftest.$ac_ext
10165cat >>conftest.$ac_ext <<_ACEOF
10166/* end confdefs.h. */
10167
10168int
10169main ()
10170{
10171static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) >= $ac_mid)];
10172test_array [0] = 0
10173
10174 ;
10175 return 0;
10176}
10177_ACEOF
10178rm -f conftest.$ac_objext
10179if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10180 (eval $ac_compile) 2>conftest.er1
10181 ac_status=$?
10182 grep -v '^ *+' conftest.er1 >conftest.err
10183 rm -f conftest.er1
10184 cat conftest.err >&5
10185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10186 (exit $ac_status); } &&
59da30e1 10187 { ac_try='test -z "$ac_c_werror_flag"
10188 || test ! -s conftest.err'
107c3bbf 10189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10190 (eval $ac_try) 2>&5
10191 ac_status=$?
10192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193 (exit $ac_status); }; } &&
10194 { ac_try='test -s conftest.$ac_objext'
10195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10196 (eval $ac_try) 2>&5
10197 ac_status=$?
10198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10199 (exit $ac_status); }; }; then
10200 ac_lo=$ac_mid; break
10201else
10202 echo "$as_me: failed program was:" >&5
10203sed 's/^/| /' conftest.$ac_ext >&5
10204
10205ac_hi=`expr '(' $ac_mid ')' - 1`
10206 if test $ac_mid -le $ac_hi; then
10207 ac_lo= ac_hi=
10208 break
10209 fi
10210 ac_mid=`expr 2 '*' $ac_mid`
10211fi
10212rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10213 done
10214else
10215 echo "$as_me: failed program was:" >&5
10216sed 's/^/| /' conftest.$ac_ext >&5
10217
10218ac_lo= ac_hi=
10219fi
10220rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10221fi
10222rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10223# Binary search between lo and hi bounds.
10224while test "x$ac_lo" != "x$ac_hi"; do
10225 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10226 cat >conftest.$ac_ext <<_ACEOF
10227/* confdefs.h. */
10228_ACEOF
10229cat confdefs.h >>conftest.$ac_ext
10230cat >>conftest.$ac_ext <<_ACEOF
10231/* end confdefs.h. */
10232
10233int
10234main ()
10235{
10236static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) <= $ac_mid)];
10237test_array [0] = 0
10238
10239 ;
10240 return 0;
10241}
10242_ACEOF
10243rm -f conftest.$ac_objext
10244if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10245 (eval $ac_compile) 2>conftest.er1
10246 ac_status=$?
10247 grep -v '^ *+' conftest.er1 >conftest.err
10248 rm -f conftest.er1
10249 cat conftest.err >&5
10250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10251 (exit $ac_status); } &&
59da30e1 10252 { ac_try='test -z "$ac_c_werror_flag"
10253 || test ! -s conftest.err'
107c3bbf 10254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10255 (eval $ac_try) 2>&5
10256 ac_status=$?
10257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10258 (exit $ac_status); }; } &&
10259 { ac_try='test -s conftest.$ac_objext'
10260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10261 (eval $ac_try) 2>&5
10262 ac_status=$?
10263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10264 (exit $ac_status); }; }; then
10265 ac_hi=$ac_mid
10266else
10267 echo "$as_me: failed program was:" >&5
10268sed 's/^/| /' conftest.$ac_ext >&5
10269
10270ac_lo=`expr '(' $ac_mid ')' + 1`
10271fi
10272rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10273done
10274case $ac_lo in
10275?*) OMP_NEST_LOCK_SIZE=$ac_lo;;
10276'') ;;
10277esac
10278else
10279 if test "$cross_compiling" = yes; then
59da30e1 10280 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10281See \`config.log' for more details." >&5
10282echo "$as_me: error: cannot run test program while cross compiling
10283See \`config.log' for more details." >&2;}
107c3bbf 10284 { (exit 1); exit 1; }; }
10285else
10286 cat >conftest.$ac_ext <<_ACEOF
10287/* confdefs.h. */
10288_ACEOF
10289cat confdefs.h >>conftest.$ac_ext
10290cat >>conftest.$ac_ext <<_ACEOF
10291/* end confdefs.h. */
10292
10293long longval () { return sizeof (omp_nest_lock_t); }
10294unsigned long ulongval () { return sizeof (omp_nest_lock_t); }
10295#include <stdio.h>
10296#include <stdlib.h>
10297int
10298main ()
10299{
10300
10301 FILE *f = fopen ("conftest.val", "w");
10302 if (! f)
10303 exit (1);
10304 if ((sizeof (omp_nest_lock_t)) < 0)
10305 {
10306 long i = longval ();
10307 if (i != (sizeof (omp_nest_lock_t)))
10308 exit (1);
10309 fprintf (f, "%ld\n", i);
10310 }
10311 else
10312 {
10313 unsigned long i = ulongval ();
10314 if (i != (sizeof (omp_nest_lock_t)))
10315 exit (1);
10316 fprintf (f, "%lu\n", i);
10317 }
10318 exit (ferror (f) || fclose (f) != 0);
10319
10320 ;
10321 return 0;
10322}
10323_ACEOF
10324rm -f conftest$ac_exeext
10325if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10326 (eval $ac_link) 2>&5
10327 ac_status=$?
10328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10329 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
10335 OMP_NEST_LOCK_SIZE=`cat conftest.val`
10336else
10337 echo "$as_me: program exited with status $ac_status" >&5
10338echo "$as_me: failed program was:" >&5
10339sed 's/^/| /' conftest.$ac_ext >&5
10340
10341fi
10342rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10343fi
10344fi
10345rm -f conftest.val
10346if test "$cross_compiling" = yes; then
10347 # Depending upon the size, compute the lo and hi bounds.
10348cat >conftest.$ac_ext <<_ACEOF
10349/* confdefs.h. */
10350_ACEOF
10351cat confdefs.h >>conftest.$ac_ext
10352cat >>conftest.$ac_ext <<_ACEOF
10353/* end confdefs.h. */
10354
10355int
10356main ()
10357{
10358static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) >= 0)];
10359test_array [0] = 0
10360
10361 ;
10362 return 0;
10363}
10364_ACEOF
10365rm -f conftest.$ac_objext
10366if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10367 (eval $ac_compile) 2>conftest.er1
10368 ac_status=$?
10369 grep -v '^ *+' conftest.er1 >conftest.err
10370 rm -f conftest.er1
10371 cat conftest.err >&5
10372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10373 (exit $ac_status); } &&
59da30e1 10374 { ac_try='test -z "$ac_c_werror_flag"
10375 || test ! -s conftest.err'
107c3bbf 10376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10377 (eval $ac_try) 2>&5
10378 ac_status=$?
10379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10380 (exit $ac_status); }; } &&
10381 { ac_try='test -s conftest.$ac_objext'
10382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10383 (eval $ac_try) 2>&5
10384 ac_status=$?
10385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10386 (exit $ac_status); }; }; then
10387 ac_lo=0 ac_mid=0
10388 while :; do
10389 cat >conftest.$ac_ext <<_ACEOF
10390/* confdefs.h. */
10391_ACEOF
10392cat confdefs.h >>conftest.$ac_ext
10393cat >>conftest.$ac_ext <<_ACEOF
10394/* end confdefs.h. */
10395
10396int
10397main ()
10398{
10399static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) <= $ac_mid)];
10400test_array [0] = 0
10401
10402 ;
10403 return 0;
10404}
10405_ACEOF
10406rm -f conftest.$ac_objext
10407if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10408 (eval $ac_compile) 2>conftest.er1
10409 ac_status=$?
10410 grep -v '^ *+' conftest.er1 >conftest.err
10411 rm -f conftest.er1
10412 cat conftest.err >&5
10413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10414 (exit $ac_status); } &&
59da30e1 10415 { ac_try='test -z "$ac_c_werror_flag"
10416 || test ! -s conftest.err'
107c3bbf 10417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10418 (eval $ac_try) 2>&5
10419 ac_status=$?
10420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10421 (exit $ac_status); }; } &&
10422 { ac_try='test -s conftest.$ac_objext'
10423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10424 (eval $ac_try) 2>&5
10425 ac_status=$?
10426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10427 (exit $ac_status); }; }; then
10428 ac_hi=$ac_mid; break
10429else
10430 echo "$as_me: failed program was:" >&5
10431sed 's/^/| /' conftest.$ac_ext >&5
10432
10433ac_lo=`expr $ac_mid + 1`
10434 if test $ac_lo -le $ac_mid; then
10435 ac_lo= ac_hi=
10436 break
10437 fi
10438 ac_mid=`expr 2 '*' $ac_mid + 1`
10439fi
10440rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10441 done
10442else
10443 echo "$as_me: failed program was:" >&5
10444sed 's/^/| /' conftest.$ac_ext >&5
10445
10446cat >conftest.$ac_ext <<_ACEOF
10447/* confdefs.h. */
10448_ACEOF
10449cat confdefs.h >>conftest.$ac_ext
10450cat >>conftest.$ac_ext <<_ACEOF
10451/* end confdefs.h. */
10452
10453int
10454main ()
10455{
10456static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) < 0)];
10457test_array [0] = 0
10458
10459 ;
10460 return 0;
10461}
10462_ACEOF
10463rm -f conftest.$ac_objext
10464if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10465 (eval $ac_compile) 2>conftest.er1
10466 ac_status=$?
10467 grep -v '^ *+' conftest.er1 >conftest.err
10468 rm -f conftest.er1
10469 cat conftest.err >&5
10470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10471 (exit $ac_status); } &&
59da30e1 10472 { ac_try='test -z "$ac_c_werror_flag"
10473 || test ! -s conftest.err'
107c3bbf 10474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10475 (eval $ac_try) 2>&5
10476 ac_status=$?
10477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10478 (exit $ac_status); }; } &&
10479 { ac_try='test -s conftest.$ac_objext'
10480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10481 (eval $ac_try) 2>&5
10482 ac_status=$?
10483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10484 (exit $ac_status); }; }; then
10485 ac_hi=-1 ac_mid=-1
10486 while :; do
10487 cat >conftest.$ac_ext <<_ACEOF
10488/* confdefs.h. */
10489_ACEOF
10490cat confdefs.h >>conftest.$ac_ext
10491cat >>conftest.$ac_ext <<_ACEOF
10492/* end confdefs.h. */
10493
10494int
10495main ()
10496{
10497static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) >= $ac_mid)];
10498test_array [0] = 0
10499
10500 ;
10501 return 0;
10502}
10503_ACEOF
10504rm -f conftest.$ac_objext
10505if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10506 (eval $ac_compile) 2>conftest.er1
10507 ac_status=$?
10508 grep -v '^ *+' conftest.er1 >conftest.err
10509 rm -f conftest.er1
10510 cat conftest.err >&5
10511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10512 (exit $ac_status); } &&
59da30e1 10513 { ac_try='test -z "$ac_c_werror_flag"
10514 || test ! -s conftest.err'
107c3bbf 10515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10516 (eval $ac_try) 2>&5
10517 ac_status=$?
10518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10519 (exit $ac_status); }; } &&
10520 { ac_try='test -s conftest.$ac_objext'
10521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10522 (eval $ac_try) 2>&5
10523 ac_status=$?
10524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10525 (exit $ac_status); }; }; then
10526 ac_lo=$ac_mid; break
10527else
10528 echo "$as_me: failed program was:" >&5
10529sed 's/^/| /' conftest.$ac_ext >&5
10530
10531ac_hi=`expr '(' $ac_mid ')' - 1`
10532 if test $ac_mid -le $ac_hi; then
10533 ac_lo= ac_hi=
10534 break
10535 fi
10536 ac_mid=`expr 2 '*' $ac_mid`
10537fi
10538rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10539 done
10540else
10541 echo "$as_me: failed program was:" >&5
10542sed 's/^/| /' conftest.$ac_ext >&5
10543
10544ac_lo= ac_hi=
10545fi
10546rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10547fi
10548rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10549# Binary search between lo and hi bounds.
10550while test "x$ac_lo" != "x$ac_hi"; do
10551 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10552 cat >conftest.$ac_ext <<_ACEOF
10553/* confdefs.h. */
10554_ACEOF
10555cat confdefs.h >>conftest.$ac_ext
10556cat >>conftest.$ac_ext <<_ACEOF
10557/* end confdefs.h. */
10558
10559int
10560main ()
10561{
10562static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) <= $ac_mid)];
10563test_array [0] = 0
10564
10565 ;
10566 return 0;
10567}
10568_ACEOF
10569rm -f conftest.$ac_objext
10570if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10571 (eval $ac_compile) 2>conftest.er1
10572 ac_status=$?
10573 grep -v '^ *+' conftest.er1 >conftest.err
10574 rm -f conftest.er1
10575 cat conftest.err >&5
10576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10577 (exit $ac_status); } &&
59da30e1 10578 { ac_try='test -z "$ac_c_werror_flag"
10579 || test ! -s conftest.err'
107c3bbf 10580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10581 (eval $ac_try) 2>&5
10582 ac_status=$?
10583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10584 (exit $ac_status); }; } &&
10585 { ac_try='test -s conftest.$ac_objext'
10586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10587 (eval $ac_try) 2>&5
10588 ac_status=$?
10589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10590 (exit $ac_status); }; }; then
10591 ac_hi=$ac_mid
10592else
10593 echo "$as_me: failed program was:" >&5
10594sed 's/^/| /' conftest.$ac_ext >&5
10595
10596ac_lo=`expr '(' $ac_mid ')' + 1`
10597fi
10598rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10599done
10600case $ac_lo in
10601?*) OMP_NEST_LOCK_ALIGN=$ac_lo;;
10602'') ;;
10603esac
10604else
10605 if test "$cross_compiling" = yes; then
59da30e1 10606 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10607See \`config.log' for more details." >&5
10608echo "$as_me: error: cannot run test program while cross compiling
10609See \`config.log' for more details." >&2;}
107c3bbf 10610 { (exit 1); exit 1; }; }
10611else
10612 cat >conftest.$ac_ext <<_ACEOF
10613/* confdefs.h. */
10614_ACEOF
10615cat confdefs.h >>conftest.$ac_ext
10616cat >>conftest.$ac_ext <<_ACEOF
10617/* end confdefs.h. */
10618
10619long longval () { return __alignof (omp_nest_lock_t); }
10620unsigned long ulongval () { return __alignof (omp_nest_lock_t); }
10621#include <stdio.h>
10622#include <stdlib.h>
10623int
10624main ()
10625{
10626
10627 FILE *f = fopen ("conftest.val", "w");
10628 if (! f)
10629 exit (1);
10630 if ((__alignof (omp_nest_lock_t)) < 0)
10631 {
10632 long i = longval ();
10633 if (i != (__alignof (omp_nest_lock_t)))
10634 exit (1);
10635 fprintf (f, "%ld\n", i);
10636 }
10637 else
10638 {
10639 unsigned long i = ulongval ();
10640 if (i != (__alignof (omp_nest_lock_t)))
10641 exit (1);
10642 fprintf (f, "%lu\n", i);
10643 }
10644 exit (ferror (f) || fclose (f) != 0);
10645
10646 ;
10647 return 0;
10648}
10649_ACEOF
10650rm -f conftest$ac_exeext
10651if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10652 (eval $ac_link) 2>&5
10653 ac_status=$?
10654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10655 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
10661 OMP_NEST_LOCK_ALIGN=`cat conftest.val`
10662else
10663 echo "$as_me: program exited with status $ac_status" >&5
10664echo "$as_me: failed program was:" >&5
10665sed 's/^/| /' conftest.$ac_ext >&5
10666
10667fi
10668rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10669fi
10670fi
10671rm -f conftest.val
10672
10673# If the lock fits in an integer, then arrange for Fortran to use that
10674# integer. If it doesn't, then arrange for Fortran to use a pointer.
10675# Except that we don't have a way at present to multi-lib the installed
10676# Fortran modules, so we assume 8 bytes for pointers, regardless of the
10677# actual target.
10678OMP_LOCK_KIND=$OMP_LOCK_SIZE
10679OMP_NEST_LOCK_KIND=$OMP_NEST_LOCK_SIZE
10680if test $OMP_LOCK_SIZE -gt 8 || test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then
10681 OMP_LOCK_KIND=8
10682fi
10683if test $OMP_NEST_LOCK_SIZE -gt 8 || test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then
10684 OMP_NEST_LOCK_KIND=8
10685fi
10686
10687
10688
10689
10690
10691
10692
10693CFLAGS="$save_CFLAGS"
10694
10695 ac_config_files="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h"
10696
1e8e9920 10697 ac_config_files="$ac_config_files Makefile testsuite/Makefile libgomp.spec"
10698
10699cat >confcache <<\_ACEOF
10700# This file is a shell script that caches the results of configure
10701# tests run on this system so they can be shared between configure
10702# scripts and configure runs, see configure's option --config-cache.
10703# It is not useful on other systems. If it contains results you don't
10704# want to keep, you may remove or edit it.
10705#
10706# config.status only pays attention to the cache file if you give it
10707# the --recheck option to rerun configure.
10708#
10709# `ac_cv_env_foo' variables (set or unset) will be overridden when
10710# loading this file, other *unset* `ac_cv_foo' will be assigned the
10711# following values.
10712
10713_ACEOF
10714
10715# The following way of writing the cache mishandles newlines in values,
10716# but we know of no workaround that is simple, portable, and efficient.
10717# So, don't put newlines in cache variables' values.
10718# Ultrix sh set writes to stderr and can't be redirected directly,
10719# and sets the high bit in the cache file unless we assign to the vars.
10720{
10721 (set) 2>&1 |
10722 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10723 *ac_space=\ *)
10724 # `set' does not quote correctly, so add quotes (double-quote
10725 # substitution turns \\\\ into \\, and sed turns \\ into \).
10726 sed -n \
10727 "s/'/'\\\\''/g;
10728 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10729 ;;
10730 *)
10731 # `set' quotes correctly as required by POSIX, so do not add quotes.
10732 sed -n \
10733 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10734 ;;
10735 esac;
10736} |
10737 sed '
10738 t clear
10739 : clear
10740 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10741 t end
10742 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10743 : end' >>confcache
10744if diff $cache_file confcache >/dev/null 2>&1; then :; else
10745 if test -w $cache_file; then
10746 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10747 cat confcache >$cache_file
10748 else
10749 echo "not updating unwritable cache $cache_file"
10750 fi
10751fi
10752rm -f confcache
10753
10754test "x$prefix" = xNONE && prefix=$ac_default_prefix
10755# Let make expand exec_prefix.
10756test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10757
10758# VPATH may cause trouble with some makes, so we remove $(srcdir),
10759# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10760# trailing colons and then remove the whole line if VPATH becomes empty
10761# (actually we leave an empty line to preserve line numbers).
10762if test "x$srcdir" = x.; then
10763 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10764s/:*\$(srcdir):*/:/;
10765s/:*\${srcdir}:*/:/;
10766s/:*@srcdir@:*/:/;
10767s/^\([^=]*=[ ]*\):*/\1/;
10768s/:*$//;
10769s/^[^=]*=[ ]*$//;
10770}'
10771fi
10772
10773DEFS=-DHAVE_CONFIG_H
10774
10775ac_libobjs=
10776ac_ltlibobjs=
10777for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10778 # 1. Remove the extension, and $U if already installed.
10779 ac_i=`echo "$ac_i" |
10780 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10781 # 2. Add them.
10782 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10783 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10784done
10785LIBOBJS=$ac_libobjs
10786
10787LTLIBOBJS=$ac_ltlibobjs
10788
10789
10790if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10791 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
10792Usually this means the macro was only invoked conditionally." >&5
10793echo "$as_me: error: conditional \"AMDEP\" was never defined.
10794Usually this means the macro was only invoked conditionally." >&2;}
10795 { (exit 1); exit 1; }; }
10796fi
10797if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10798 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10799Usually this means the macro was only invoked conditionally." >&5
10800echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10801Usually this means the macro was only invoked conditionally." >&2;}
10802 { (exit 1); exit 1; }; }
10803fi
a263d1ab 10804if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10805 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
10806Usually this means the macro was only invoked conditionally." >&5
10807echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
10808Usually this means the macro was only invoked conditionally." >&2;}
10809 { (exit 1); exit 1; }; }
10810fi
1e8e9920 10811if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then
10812 { { echo "$as_me:$LINENO: error: conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
10813Usually this means the macro was only invoked conditionally." >&5
10814echo "$as_me: error: conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
10815Usually this means the macro was only invoked conditionally." >&2;}
10816 { (exit 1); exit 1; }; }
10817fi
10818if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then
10819 { { echo "$as_me:$LINENO: error: conditional \"USE_FORTRAN\" was never defined.
10820Usually this means the macro was only invoked conditionally." >&5
10821echo "$as_me: error: conditional \"USE_FORTRAN\" was never defined.
10822Usually this means the macro was only invoked conditionally." >&2;}
10823 { (exit 1); exit 1; }; }
10824fi
10825
10826: ${CONFIG_STATUS=./config.status}
10827ac_clean_files_save=$ac_clean_files
10828ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10829{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10830echo "$as_me: creating $CONFIG_STATUS" >&6;}
10831cat >$CONFIG_STATUS <<_ACEOF
10832#! $SHELL
10833# Generated by $as_me.
10834# Run this file to recreate the current configuration.
10835# Compiler output produced by configure, useful for debugging
10836# configure, is in config.log if it exists.
10837
10838debug=false
10839ac_cs_recheck=false
10840ac_cs_silent=false
10841SHELL=\${CONFIG_SHELL-$SHELL}
10842_ACEOF
10843
10844cat >>$CONFIG_STATUS <<\_ACEOF
10845## --------------------- ##
10846## M4sh Initialization. ##
10847## --------------------- ##
10848
10849# Be Bourne compatible
10850if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10851 emulate sh
10852 NULLCMD=:
10853 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10854 # is contrary to our usage. Disable this feature.
10855 alias -g '${1+"$@"}'='"$@"'
10856elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10857 set -o posix
10858fi
10859DUALCASE=1; export DUALCASE # for MKS sh
10860
10861# Support unset when possible.
10862if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10863 as_unset=unset
10864else
10865 as_unset=false
10866fi
10867
10868
10869# Work around bugs in pre-3.0 UWIN ksh.
10870$as_unset ENV MAIL MAILPATH
10871PS1='$ '
10872PS2='> '
10873PS4='+ '
10874
10875# NLS nuisances.
10876for as_var in \
10877 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10878 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10879 LC_TELEPHONE LC_TIME
10880do
10881 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10882 eval $as_var=C; export $as_var
10883 else
10884 $as_unset $as_var
10885 fi
10886done
10887
10888# Required to use basename.
10889if expr a : '\(a\)' >/dev/null 2>&1; then
10890 as_expr=expr
10891else
10892 as_expr=false
10893fi
10894
10895if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10896 as_basename=basename
10897else
10898 as_basename=false
10899fi
10900
10901
10902# Name of the executable.
10903as_me=`$as_basename "$0" ||
10904$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10905 X"$0" : 'X\(//\)$' \| \
10906 X"$0" : 'X\(/\)$' \| \
10907 . : '\(.\)' 2>/dev/null ||
10908echo X/"$0" |
10909 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10910 /^X\/\(\/\/\)$/{ s//\1/; q; }
10911 /^X\/\(\/\).*/{ s//\1/; q; }
10912 s/.*/./; q'`
10913
10914
10915# PATH needs CR, and LINENO needs CR and PATH.
10916# Avoid depending upon Character Ranges.
10917as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10918as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10919as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10920as_cr_digits='0123456789'
10921as_cr_alnum=$as_cr_Letters$as_cr_digits
10922
10923# The user is always right.
10924if test "${PATH_SEPARATOR+set}" != set; then
10925 echo "#! /bin/sh" >conf$$.sh
10926 echo "exit 0" >>conf$$.sh
10927 chmod +x conf$$.sh
10928 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10929 PATH_SEPARATOR=';'
10930 else
10931 PATH_SEPARATOR=:
10932 fi
10933 rm -f conf$$.sh
10934fi
10935
10936
10937 as_lineno_1=$LINENO
10938 as_lineno_2=$LINENO
10939 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10940 test "x$as_lineno_1" != "x$as_lineno_2" &&
10941 test "x$as_lineno_3" = "x$as_lineno_2" || {
10942 # Find who we are. Look in the path if we contain no path at all
10943 # relative or not.
10944 case $0 in
10945 *[\\/]* ) as_myself=$0 ;;
10946 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10947for as_dir in $PATH
10948do
10949 IFS=$as_save_IFS
10950 test -z "$as_dir" && as_dir=.
10951 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10952done
10953
10954 ;;
10955 esac
10956 # We did not find ourselves, most probably we were run as `sh COMMAND'
10957 # in which case we are not to be found in the path.
10958 if test "x$as_myself" = x; then
10959 as_myself=$0
10960 fi
10961 if test ! -f "$as_myself"; then
10962 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
10963echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
10964 { (exit 1); exit 1; }; }
10965 fi
10966 case $CONFIG_SHELL in
10967 '')
10968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10969for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
10970do
10971 IFS=$as_save_IFS
10972 test -z "$as_dir" && as_dir=.
10973 for as_base in sh bash ksh sh5; do
10974 case $as_dir in
10975 /*)
10976 if ("$as_dir/$as_base" -c '
10977 as_lineno_1=$LINENO
10978 as_lineno_2=$LINENO
10979 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10980 test "x$as_lineno_1" != "x$as_lineno_2" &&
10981 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
10982 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
10983 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
10984 CONFIG_SHELL=$as_dir/$as_base
10985 export CONFIG_SHELL
10986 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
10987 fi;;
10988 esac
10989 done
10990done
10991;;
10992 esac
10993
10994 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10995 # uniformly replaced by the line number. The first 'sed' inserts a
10996 # line-number line before each line; the second 'sed' does the real
10997 # work. The second script uses 'N' to pair each line-number line
10998 # with the numbered line, and appends trailing '-' during
10999 # substitution so that $LINENO is not a special case at line end.
11000 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11001 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11002 sed '=' <$as_myself |
11003 sed '
11004 N
11005 s,$,-,
11006 : loop
11007 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11008 t loop
11009 s,-$,,
11010 s,^['$as_cr_digits']*\n,,
11011 ' >$as_me.lineno &&
11012 chmod +x $as_me.lineno ||
11013 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11014echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11015 { (exit 1); exit 1; }; }
11016
11017 # Don't try to exec as it changes $[0], causing all sort of problems
11018 # (the dirname of $[0] is not the place where we might find the
11019 # original and so on. Autoconf is especially sensible to this).
11020 . ./$as_me.lineno
11021 # Exit status is that of the last command.
11022 exit
11023}
11024
11025
11026case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11027 *c*,-n*) ECHO_N= ECHO_C='
11028' ECHO_T=' ' ;;
11029 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11030 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
11031esac
11032
11033if expr a : '\(a\)' >/dev/null 2>&1; then
11034 as_expr=expr
11035else
11036 as_expr=false
11037fi
11038
11039rm -f conf$$ conf$$.exe conf$$.file
11040echo >conf$$.file
11041if ln -s conf$$.file conf$$ 2>/dev/null; then
11042 # We could just check for DJGPP; but this test a) works b) is more generic
11043 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11044 if test -f conf$$.exe; then
11045 # Don't use ln at all; we don't have any links
11046 as_ln_s='cp -p'
11047 else
11048 as_ln_s='ln -s'
11049 fi
11050elif ln conf$$.file conf$$ 2>/dev/null; then
11051 as_ln_s=ln
11052else
11053 as_ln_s='cp -p'
11054fi
11055rm -f conf$$ conf$$.exe conf$$.file
11056
11057if mkdir -p . 2>/dev/null; then
11058 as_mkdir_p=:
11059else
11060 test -d ./-p && rmdir ./-p
11061 as_mkdir_p=false
11062fi
11063
11064as_executable_p="test -f"
11065
11066# Sed expression to map a string onto a valid CPP name.
11067as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11068
11069# Sed expression to map a string onto a valid variable name.
11070as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11071
11072
11073# IFS
11074# We need space, tab and new line, in precisely that order.
11075as_nl='
11076'
11077IFS=" $as_nl"
11078
11079# CDPATH.
11080$as_unset CDPATH
11081
11082exec 6>&1
11083
11084# Open the log real soon, to keep \$[0] and so on meaningful, and to
11085# report actual input values of CONFIG_FILES etc. instead of their
11086# values after options handling. Logging --version etc. is OK.
11087exec 5>>config.log
11088{
11089 echo
11090 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11091## Running $as_me. ##
11092_ASBOX
11093} >&5
11094cat >&5 <<_CSEOF
11095
11096This file was extended by GNU OpenMP Runtime Library $as_me 1.0, which was
11097generated by GNU Autoconf 2.59. Invocation command line was
11098
11099 CONFIG_FILES = $CONFIG_FILES
11100 CONFIG_HEADERS = $CONFIG_HEADERS
11101 CONFIG_LINKS = $CONFIG_LINKS
11102 CONFIG_COMMANDS = $CONFIG_COMMANDS
11103 $ $0 $@
11104
11105_CSEOF
11106echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11107echo >&5
11108_ACEOF
11109
11110# Files that config.status was made for.
11111if test -n "$ac_config_files"; then
11112 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11113fi
11114
11115if test -n "$ac_config_headers"; then
11116 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11117fi
11118
11119if test -n "$ac_config_links"; then
11120 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11121fi
11122
11123if test -n "$ac_config_commands"; then
11124 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11125fi
11126
11127cat >>$CONFIG_STATUS <<\_ACEOF
11128
11129ac_cs_usage="\
11130\`$as_me' instantiates files from templates according to the
11131current configuration.
11132
11133Usage: $0 [OPTIONS] [FILE]...
11134
11135 -h, --help print this help, then exit
11136 -V, --version print version number, then exit
11137 -q, --quiet do not print progress messages
11138 -d, --debug don't remove temporary files
11139 --recheck update $as_me by reconfiguring in the same conditions
11140 --file=FILE[:TEMPLATE]
11141 instantiate the configuration file FILE
11142 --header=FILE[:TEMPLATE]
11143 instantiate the configuration header FILE
11144
11145Configuration files:
11146$config_files
11147
11148Configuration headers:
11149$config_headers
11150
11151Configuration commands:
11152$config_commands
11153
11154Report bugs to <bug-autoconf@gnu.org>."
11155_ACEOF
11156
11157cat >>$CONFIG_STATUS <<_ACEOF
11158ac_cs_version="\\
11159GNU OpenMP Runtime Library config.status 1.0
11160configured by $0, generated by GNU Autoconf 2.59,
11161 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11162
11163Copyright (C) 2003 Free Software Foundation, Inc.
11164This config.status script is free software; the Free Software Foundation
11165gives unlimited permission to copy, distribute and modify it."
11166srcdir=$srcdir
11167INSTALL="$INSTALL"
11168_ACEOF
11169
11170cat >>$CONFIG_STATUS <<\_ACEOF
11171# If no file are specified by the user, then we need to provide default
11172# value. By we need to know if files were specified by the user.
11173ac_need_defaults=:
11174while test $# != 0
11175do
11176 case $1 in
11177 --*=*)
11178 ac_option=`expr "x$1" : 'x\([^=]*\)='`
11179 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11180 ac_shift=:
11181 ;;
11182 -*)
11183 ac_option=$1
11184 ac_optarg=$2
11185 ac_shift=shift
11186 ;;
11187 *) # This is not an option, so the user has probably given explicit
11188 # arguments.
11189 ac_option=$1
11190 ac_need_defaults=false;;
11191 esac
11192
11193 case $ac_option in
11194 # Handling of the options.
11195_ACEOF
11196cat >>$CONFIG_STATUS <<\_ACEOF
11197 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11198 ac_cs_recheck=: ;;
11199 --version | --vers* | -V )
11200 echo "$ac_cs_version"; exit 0 ;;
11201 --he | --h)
11202 # Conflict between --help and --header
11203 { { echo "$as_me:$LINENO: error: ambiguous option: $1
11204Try \`$0 --help' for more information." >&5
11205echo "$as_me: error: ambiguous option: $1
11206Try \`$0 --help' for more information." >&2;}
11207 { (exit 1); exit 1; }; };;
11208 --help | --hel | -h )
11209 echo "$ac_cs_usage"; exit 0 ;;
11210 --debug | --d* | -d )
11211 debug=: ;;
11212 --file | --fil | --fi | --f )
11213 $ac_shift
11214 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11215 ac_need_defaults=false;;
11216 --header | --heade | --head | --hea )
11217 $ac_shift
11218 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11219 ac_need_defaults=false;;
11220 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11221 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11222 ac_cs_silent=: ;;
11223
11224 # This is an error.
11225 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11226Try \`$0 --help' for more information." >&5
11227echo "$as_me: error: unrecognized option: $1
11228Try \`$0 --help' for more information." >&2;}
11229 { (exit 1); exit 1; }; } ;;
11230
11231 *) ac_config_targets="$ac_config_targets $1" ;;
11232
11233 esac
11234 shift
11235done
11236
11237ac_configure_extra_args=
11238
11239if $ac_cs_silent; then
11240 exec 6>/dev/null
11241 ac_configure_extra_args="$ac_configure_extra_args --silent"
11242fi
11243
11244_ACEOF
11245cat >>$CONFIG_STATUS <<_ACEOF
11246if \$ac_cs_recheck; then
11247 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11248 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11249fi
11250
11251_ACEOF
11252
11253cat >>$CONFIG_STATUS <<_ACEOF
11254#
11255# INIT-COMMANDS section.
11256#
11257
11258
11259srcdir="$srcdir"
11260host="$host"
11261target="$target"
11262with_multisubdir="$with_multisubdir"
11263with_multisrctop="$with_multisrctop"
11264with_target_subdir="$with_target_subdir"
11265ac_configure_args="${multilib_arg} ${ac_configure_args}"
11266multi_basedir="$multi_basedir"
11267CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
11268CC="$CC"
11269AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11270
01473a49 11271GCC="$GCC"
11272CC="$CC"
11273acx_cv_header_stdint="$acx_cv_header_stdint"
11274acx_cv_type_int8_t="$acx_cv_type_int8_t"
11275acx_cv_type_int16_t="$acx_cv_type_int16_t"
11276acx_cv_type_int32_t="$acx_cv_type_int32_t"
11277acx_cv_type_int64_t="$acx_cv_type_int64_t"
11278acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
11279ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
11280ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
11281ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
11282ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
11283ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
11284ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
11285ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
11286ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
11287
11288
1e8e9920 11289_ACEOF
11290
11291
11292
11293cat >>$CONFIG_STATUS <<\_ACEOF
11294for ac_config_target in $ac_config_targets
11295do
11296 case "$ac_config_target" in
11297 # Handling of arguments.
107c3bbf 11298 "omp.h" ) CONFIG_FILES="$CONFIG_FILES omp.h" ;;
11299 "omp_lib.h" ) CONFIG_FILES="$CONFIG_FILES omp_lib.h" ;;
11300 "omp_lib.f90" ) CONFIG_FILES="$CONFIG_FILES omp_lib.f90" ;;
11301 "libgomp_f.h" ) CONFIG_FILES="$CONFIG_FILES libgomp_f.h" ;;
1e8e9920 11302 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11303 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
11304 "libgomp.spec" ) CONFIG_FILES="$CONFIG_FILES libgomp.spec" ;;
11305 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
11306 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
01473a49 11307 "gstdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
1e8e9920 11308 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11309 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11310echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11311 { (exit 1); exit 1; }; };;
11312 esac
11313done
11314
11315# If the user did not use the arguments to specify the items to instantiate,
11316# then the envvar interface is used. Set only those that are not.
11317# We use the long form for the default assignment because of an extremely
11318# bizarre bug on SunOS 4.1.3.
11319if $ac_need_defaults; then
11320 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11321 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11322 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11323fi
11324
11325# Have a temporary directory for convenience. Make it in the build tree
11326# simply because there is no reason to put it here, and in addition,
11327# creating and moving files from /tmp can sometimes cause problems.
11328# Create a temporary directory, and hook for its removal unless debugging.
11329$debug ||
11330{
11331 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11332 trap '{ (exit 1); exit 1; }' 1 2 13 15
11333}
11334
11335# Create a (secure) tmp directory for tmp files.
11336
11337{
11338 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11339 test -n "$tmp" && test -d "$tmp"
11340} ||
11341{
11342 tmp=./confstat$$-$RANDOM
11343 (umask 077 && mkdir $tmp)
11344} ||
11345{
11346 echo "$me: cannot create a temporary directory in ." >&2
11347 { (exit 1); exit 1; }
11348}
11349
11350_ACEOF
11351
11352cat >>$CONFIG_STATUS <<_ACEOF
11353
11354#
11355# CONFIG_FILES section.
11356#
11357
11358# No need to generate the scripts if there are no CONFIG_FILES.
11359# This happens for instance when ./config.status config.h
11360if test -n "\$CONFIG_FILES"; then
11361 # Protect against being on the right side of a sed subst in config.status.
11362 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11363 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11364s,@SHELL@,$SHELL,;t t
11365s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11366s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11367s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11368s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11369s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11370s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11371s,@exec_prefix@,$exec_prefix,;t t
11372s,@prefix@,$prefix,;t t
11373s,@program_transform_name@,$program_transform_name,;t t
11374s,@bindir@,$bindir,;t t
11375s,@sbindir@,$sbindir,;t t
11376s,@libexecdir@,$libexecdir,;t t
11377s,@datadir@,$datadir,;t t
11378s,@sysconfdir@,$sysconfdir,;t t
11379s,@sharedstatedir@,$sharedstatedir,;t t
11380s,@localstatedir@,$localstatedir,;t t
11381s,@libdir@,$libdir,;t t
11382s,@includedir@,$includedir,;t t
11383s,@oldincludedir@,$oldincludedir,;t t
11384s,@infodir@,$infodir,;t t
11385s,@mandir@,$mandir,;t t
11386s,@build_alias@,$build_alias,;t t
11387s,@host_alias@,$host_alias,;t t
11388s,@target_alias@,$target_alias,;t t
11389s,@DEFS@,$DEFS,;t t
11390s,@ECHO_C@,$ECHO_C,;t t
11391s,@ECHO_N@,$ECHO_N,;t t
11392s,@ECHO_T@,$ECHO_T,;t t
11393s,@LIBS@,$LIBS,;t t
11394s,@build@,$build,;t t
11395s,@build_cpu@,$build_cpu,;t t
11396s,@build_vendor@,$build_vendor,;t t
11397s,@build_os@,$build_os,;t t
11398s,@host@,$host,;t t
11399s,@host_cpu@,$host_cpu,;t t
11400s,@host_vendor@,$host_vendor,;t t
11401s,@host_os@,$host_os,;t t
11402s,@target@,$target,;t t
11403s,@target_cpu@,$target_cpu,;t t
11404s,@target_vendor@,$target_vendor,;t t
11405s,@target_os@,$target_os,;t t
11406s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11407s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11408s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11409s,@CYGPATH_W@,$CYGPATH_W,;t t
11410s,@PACKAGE@,$PACKAGE,;t t
11411s,@VERSION@,$VERSION,;t t
11412s,@ACLOCAL@,$ACLOCAL,;t t
11413s,@AUTOCONF@,$AUTOCONF,;t t
11414s,@AUTOMAKE@,$AUTOMAKE,;t t
11415s,@AUTOHEADER@,$AUTOHEADER,;t t
11416s,@MAKEINFO@,$MAKEINFO,;t t
11417s,@install_sh@,$install_sh,;t t
11418s,@STRIP@,$STRIP,;t t
11419s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
11420s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
11421s,@mkdir_p@,$mkdir_p,;t t
11422s,@AWK@,$AWK,;t t
11423s,@SET_MAKE@,$SET_MAKE,;t t
11424s,@am__leading_dot@,$am__leading_dot,;t t
11425s,@AMTAR@,$AMTAR,;t t
11426s,@am__tar@,$am__tar,;t t
11427s,@am__untar@,$am__untar,;t t
11428s,@multi_basedir@,$multi_basedir,;t t
11429s,@toolexecdir@,$toolexecdir,;t t
11430s,@toolexeclibdir@,$toolexeclibdir,;t t
11431s,@CC@,$CC,;t t
11432s,@ac_ct_CC@,$ac_ct_CC,;t t
11433s,@EXEEXT@,$EXEEXT,;t t
11434s,@OBJEXT@,$OBJEXT,;t t
11435s,@DEPDIR@,$DEPDIR,;t t
11436s,@am__include@,$am__include,;t t
11437s,@am__quote@,$am__quote,;t t
11438s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
11439s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
11440s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
11441s,@CCDEPMODE@,$CCDEPMODE,;t t
11442s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
11443s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
11444s,@CFLAGS@,$CFLAGS,;t t
11445s,@AR@,$AR,;t t
11446s,@ac_ct_AR@,$ac_ct_AR,;t t
11447s,@RANLIB@,$RANLIB,;t t
11448s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11449s,@PERL@,$PERL,;t t
11450s,@LN_S@,$LN_S,;t t
11451s,@LIBTOOL@,$LIBTOOL,;t t
11452s,@enable_shared@,$enable_shared,;t t
11453s,@enable_static@,$enable_static,;t t
a263d1ab 11454s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
11455s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
11456s,@MAINT@,$MAINT,;t t
1e8e9920 11457s,@FC@,$FC,;t t
11458s,@FCFLAGS@,$FCFLAGS,;t t
11459s,@LDFLAGS@,$LDFLAGS,;t t
11460s,@ac_ct_FC@,$ac_ct_FC,;t t
11461s,@libtool_VERSION@,$libtool_VERSION,;t t
11462s,@CPP@,$CPP,;t t
11463s,@CPPFLAGS@,$CPPFLAGS,;t t
11464s,@EGREP@,$EGREP,;t t
11465s,@SECTION_LDFLAGS@,$SECTION_LDFLAGS,;t t
11466s,@OPT_LDFLAGS@,$OPT_LDFLAGS,;t t
11467s,@LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE@,$LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE,;t t
11468s,@LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE@,$LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE,;t t
11469s,@config_path@,$config_path,;t t
11470s,@XCFLAGS@,$XCFLAGS,;t t
11471s,@XLDFLAGS@,$XLDFLAGS,;t t
11472s,@link_gomp@,$link_gomp,;t t
11473s,@USE_FORTRAN_TRUE@,$USE_FORTRAN_TRUE,;t t
11474s,@USE_FORTRAN_FALSE@,$USE_FORTRAN_FALSE,;t t
107c3bbf 11475s,@OMP_LOCK_SIZE@,$OMP_LOCK_SIZE,;t t
11476s,@OMP_LOCK_ALIGN@,$OMP_LOCK_ALIGN,;t t
11477s,@OMP_NEST_LOCK_SIZE@,$OMP_NEST_LOCK_SIZE,;t t
11478s,@OMP_NEST_LOCK_ALIGN@,$OMP_NEST_LOCK_ALIGN,;t t
11479s,@OMP_LOCK_KIND@,$OMP_LOCK_KIND,;t t
11480s,@OMP_NEST_LOCK_KIND@,$OMP_NEST_LOCK_KIND,;t t
1e8e9920 11481s,@LIBOBJS@,$LIBOBJS,;t t
11482s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11483CEOF
11484
11485_ACEOF
11486
11487 cat >>$CONFIG_STATUS <<\_ACEOF
11488 # Split the substitutions into bite-sized pieces for seds with
11489 # small command number limits, like on Digital OSF/1 and HP-UX.
11490 ac_max_sed_lines=48
11491 ac_sed_frag=1 # Number of current file.
11492 ac_beg=1 # First line for current file.
11493 ac_end=$ac_max_sed_lines # Line after last line for current file.
11494 ac_more_lines=:
11495 ac_sed_cmds=
11496 while $ac_more_lines; do
11497 if test $ac_beg -gt 1; then
11498 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11499 else
11500 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11501 fi
11502 if test ! -s $tmp/subs.frag; then
11503 ac_more_lines=false
11504 else
11505 # The purpose of the label and of the branching condition is to
11506 # speed up the sed processing (if there are no `@' at all, there
11507 # is no need to browse any of the substitutions).
11508 # These are the two extra sed commands mentioned above.
11509 (echo ':t
11510 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11511 if test -z "$ac_sed_cmds"; then
11512 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11513 else
11514 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11515 fi
11516 ac_sed_frag=`expr $ac_sed_frag + 1`
11517 ac_beg=$ac_end
11518 ac_end=`expr $ac_end + $ac_max_sed_lines`
11519 fi
11520 done
11521 if test -z "$ac_sed_cmds"; then
11522 ac_sed_cmds=cat
11523 fi
11524fi # test -n "$CONFIG_FILES"
11525
11526_ACEOF
11527cat >>$CONFIG_STATUS <<\_ACEOF
11528for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11529 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11530 case $ac_file in
11531 - | *:- | *:-:* ) # input from stdin
11532 cat >$tmp/stdin
11533 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11534 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11535 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11536 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11537 * ) ac_file_in=$ac_file.in ;;
11538 esac
11539
11540 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11541 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11542$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11543 X"$ac_file" : 'X\(//\)[^/]' \| \
11544 X"$ac_file" : 'X\(//\)$' \| \
11545 X"$ac_file" : 'X\(/\)' \| \
11546 . : '\(.\)' 2>/dev/null ||
11547echo X"$ac_file" |
11548 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11549 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11550 /^X\(\/\/\)$/{ s//\1/; q; }
11551 /^X\(\/\).*/{ s//\1/; q; }
11552 s/.*/./; q'`
11553 { if $as_mkdir_p; then
11554 mkdir -p "$ac_dir"
11555 else
11556 as_dir="$ac_dir"
11557 as_dirs=
11558 while test ! -d "$as_dir"; do
11559 as_dirs="$as_dir $as_dirs"
11560 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11561$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11562 X"$as_dir" : 'X\(//\)[^/]' \| \
11563 X"$as_dir" : 'X\(//\)$' \| \
11564 X"$as_dir" : 'X\(/\)' \| \
11565 . : '\(.\)' 2>/dev/null ||
11566echo X"$as_dir" |
11567 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11568 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11569 /^X\(\/\/\)$/{ s//\1/; q; }
11570 /^X\(\/\).*/{ s//\1/; q; }
11571 s/.*/./; q'`
11572 done
11573 test ! -n "$as_dirs" || mkdir $as_dirs
11574 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11575echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11576 { (exit 1); exit 1; }; }; }
11577
11578 ac_builddir=.
11579
11580if test "$ac_dir" != .; then
11581 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11582 # A "../" for each directory in $ac_dir_suffix.
11583 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11584else
11585 ac_dir_suffix= ac_top_builddir=
11586fi
11587
11588case $srcdir in
11589 .) # No --srcdir option. We are building in place.
11590 ac_srcdir=.
11591 if test -z "$ac_top_builddir"; then
11592 ac_top_srcdir=.
11593 else
11594 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11595 fi ;;
11596 [\\/]* | ?:[\\/]* ) # Absolute path.
11597 ac_srcdir=$srcdir$ac_dir_suffix;
11598 ac_top_srcdir=$srcdir ;;
11599 *) # Relative path.
11600 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11601 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11602esac
11603
11604# Do not use `cd foo && pwd` to compute absolute paths, because
11605# the directories may not exist.
11606case `pwd` in
11607.) ac_abs_builddir="$ac_dir";;
11608*)
11609 case "$ac_dir" in
11610 .) ac_abs_builddir=`pwd`;;
11611 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11612 *) ac_abs_builddir=`pwd`/"$ac_dir";;
11613 esac;;
11614esac
11615case $ac_abs_builddir in
11616.) ac_abs_top_builddir=${ac_top_builddir}.;;
11617*)
11618 case ${ac_top_builddir}. in
11619 .) ac_abs_top_builddir=$ac_abs_builddir;;
11620 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11621 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11622 esac;;
11623esac
11624case $ac_abs_builddir in
11625.) ac_abs_srcdir=$ac_srcdir;;
11626*)
11627 case $ac_srcdir in
11628 .) ac_abs_srcdir=$ac_abs_builddir;;
11629 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11630 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11631 esac;;
11632esac
11633case $ac_abs_builddir in
11634.) ac_abs_top_srcdir=$ac_top_srcdir;;
11635*)
11636 case $ac_top_srcdir in
11637 .) ac_abs_top_srcdir=$ac_abs_builddir;;
11638 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11639 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11640 esac;;
11641esac
11642
11643
11644 case $INSTALL in
11645 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11646 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11647 esac
11648
59da30e1 11649 if test x"$ac_file" != x-; then
11650 { echo "$as_me:$LINENO: creating $ac_file" >&5
11651echo "$as_me: creating $ac_file" >&6;}
11652 rm -f "$ac_file"
11653 fi
1e8e9920 11654 # Let's still pretend it is `configure' which instantiates (i.e., don't
11655 # use $as_me), people would be surprised to read:
11656 # /* config.h. Generated by config.status. */
11657 if test x"$ac_file" = x-; then
11658 configure_input=
11659 else
11660 configure_input="$ac_file. "
11661 fi
11662 configure_input=$configure_input"Generated from `echo $ac_file_in |
11663 sed 's,.*/,,'` by configure."
11664
11665 # First look for the input files in the build tree, otherwise in the
11666 # src tree.
11667 ac_file_inputs=`IFS=:
11668 for f in $ac_file_in; do
11669 case $f in
11670 -) echo $tmp/stdin ;;
11671 [\\/$]*)
11672 # Absolute (can't be DOS-style, as IFS=:)
11673 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11674echo "$as_me: error: cannot find input file: $f" >&2;}
11675 { (exit 1); exit 1; }; }
11676 echo "$f";;
11677 *) # Relative
11678 if test -f "$f"; then
11679 # Build tree
11680 echo "$f"
11681 elif test -f "$srcdir/$f"; then
11682 # Source tree
11683 echo "$srcdir/$f"
11684 else
11685 # /dev/null tree
11686 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11687echo "$as_me: error: cannot find input file: $f" >&2;}
11688 { (exit 1); exit 1; }; }
11689 fi;;
11690 esac
11691 done` || { (exit 1); exit 1; }
11692_ACEOF
11693cat >>$CONFIG_STATUS <<_ACEOF
11694 sed "$ac_vpsub
11695$extrasub
11696_ACEOF
11697cat >>$CONFIG_STATUS <<\_ACEOF
11698:t
11699/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11700s,@configure_input@,$configure_input,;t t
11701s,@srcdir@,$ac_srcdir,;t t
11702s,@abs_srcdir@,$ac_abs_srcdir,;t t
11703s,@top_srcdir@,$ac_top_srcdir,;t t
11704s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11705s,@builddir@,$ac_builddir,;t t
11706s,@abs_builddir@,$ac_abs_builddir,;t t
11707s,@top_builddir@,$ac_top_builddir,;t t
11708s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11709s,@INSTALL@,$ac_INSTALL,;t t
11710" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11711 rm -f $tmp/stdin
11712 if test x"$ac_file" != x-; then
11713 mv $tmp/out $ac_file
11714 else
11715 cat $tmp/out
11716 rm -f $tmp/out
11717 fi
11718
11719done
11720_ACEOF
11721cat >>$CONFIG_STATUS <<\_ACEOF
11722
11723#
11724# CONFIG_HEADER section.
11725#
11726
11727# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11728# NAME is the cpp macro being defined and VALUE is the value it is being given.
11729#
11730# ac_d sets the value in "#define NAME VALUE" lines.
11731ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11732ac_dB='[ ].*$,\1#\2'
11733ac_dC=' '
11734ac_dD=',;t'
11735# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11736ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11737ac_uB='$,\1#\2define\3'
11738ac_uC=' '
11739ac_uD=',;t'
11740
11741for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11742 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11743 case $ac_file in
11744 - | *:- | *:-:* ) # input from stdin
11745 cat >$tmp/stdin
11746 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11747 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11748 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11749 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11750 * ) ac_file_in=$ac_file.in ;;
11751 esac
11752
11753 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11754echo "$as_me: creating $ac_file" >&6;}
11755
11756 # First look for the input files in the build tree, otherwise in the
11757 # src tree.
11758 ac_file_inputs=`IFS=:
11759 for f in $ac_file_in; do
11760 case $f in
11761 -) echo $tmp/stdin ;;
11762 [\\/$]*)
11763 # Absolute (can't be DOS-style, as IFS=:)
11764 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11765echo "$as_me: error: cannot find input file: $f" >&2;}
11766 { (exit 1); exit 1; }; }
11767 # Do quote $f, to prevent DOS paths from being IFS'd.
11768 echo "$f";;
11769 *) # Relative
11770 if test -f "$f"; then
11771 # Build tree
11772 echo "$f"
11773 elif test -f "$srcdir/$f"; then
11774 # Source tree
11775 echo "$srcdir/$f"
11776 else
11777 # /dev/null tree
11778 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11779echo "$as_me: error: cannot find input file: $f" >&2;}
11780 { (exit 1); exit 1; }; }
11781 fi;;
11782 esac
11783 done` || { (exit 1); exit 1; }
11784 # Remove the trailing spaces.
11785 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
11786
11787_ACEOF
11788
11789# Transform confdefs.h into two sed scripts, `conftest.defines' and
11790# `conftest.undefs', that substitutes the proper values into
11791# config.h.in to produce config.h. The first handles `#define'
11792# templates, and the second `#undef' templates.
11793# And first: Protect against being on the right side of a sed subst in
11794# config.status. Protect against being in an unquoted here document
11795# in config.status.
11796rm -f conftest.defines conftest.undefs
11797# Using a here document instead of a string reduces the quoting nightmare.
11798# Putting comments in sed scripts is not portable.
11799#
11800# `end' is used to avoid that the second main sed command (meant for
11801# 0-ary CPP macros) applies to n-ary macro definitions.
11802# See the Autoconf documentation for `clear'.
11803cat >confdef2sed.sed <<\_ACEOF
11804s/[\\&,]/\\&/g
11805s,[\\$`],\\&,g
11806t clear
11807: clear
11808s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11809t end
11810s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11811: end
11812_ACEOF
11813# If some macros were called several times there might be several times
11814# the same #defines, which is useless. Nevertheless, we may not want to
11815# sort them, since we want the *last* AC-DEFINE to be honored.
11816uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11817sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11818rm -f confdef2sed.sed
11819
11820# This sed command replaces #undef with comments. This is necessary, for
11821# example, in the case of _POSIX_SOURCE, which is predefined and required
11822# on some systems where configure will not decide to define it.
11823cat >>conftest.undefs <<\_ACEOF
11824s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11825_ACEOF
11826
11827# Break up conftest.defines because some shells have a limit on the size
11828# of here documents, and old seds have small limits too (100 cmds).
11829echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11830echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11831echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11832echo ' :' >>$CONFIG_STATUS
11833rm -f conftest.tail
11834while grep . conftest.defines >/dev/null
11835do
11836 # Write a limited-size here document to $tmp/defines.sed.
11837 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11838 # Speed up: don't consider the non `#define' lines.
11839 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
11840 # Work around the forget-to-reset-the-flag bug.
11841 echo 't clr' >>$CONFIG_STATUS
11842 echo ': clr' >>$CONFIG_STATUS
11843 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11844 echo 'CEOF
11845 sed -f $tmp/defines.sed $tmp/in >$tmp/out
11846 rm -f $tmp/in
11847 mv $tmp/out $tmp/in
11848' >>$CONFIG_STATUS
11849 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11850 rm -f conftest.defines
11851 mv conftest.tail conftest.defines
11852done
11853rm -f conftest.defines
11854echo ' fi # grep' >>$CONFIG_STATUS
11855echo >>$CONFIG_STATUS
11856
11857# Break up conftest.undefs because some shells have a limit on the size
11858# of here documents, and old seds have small limits too (100 cmds).
11859echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
11860rm -f conftest.tail
11861while grep . conftest.undefs >/dev/null
11862do
11863 # Write a limited-size here document to $tmp/undefs.sed.
11864 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11865 # Speed up: don't consider the non `#undef'
11866 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
11867 # Work around the forget-to-reset-the-flag bug.
11868 echo 't clr' >>$CONFIG_STATUS
11869 echo ': clr' >>$CONFIG_STATUS
11870 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11871 echo 'CEOF
11872 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11873 rm -f $tmp/in
11874 mv $tmp/out $tmp/in
11875' >>$CONFIG_STATUS
11876 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11877 rm -f conftest.undefs
11878 mv conftest.tail conftest.undefs
11879done
11880rm -f conftest.undefs
11881
11882cat >>$CONFIG_STATUS <<\_ACEOF
11883 # Let's still pretend it is `configure' which instantiates (i.e., don't
11884 # use $as_me), people would be surprised to read:
11885 # /* config.h. Generated by config.status. */
11886 if test x"$ac_file" = x-; then
11887 echo "/* Generated by configure. */" >$tmp/config.h
11888 else
11889 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
11890 fi
11891 cat $tmp/in >>$tmp/config.h
11892 rm -f $tmp/in
11893 if test x"$ac_file" != x-; then
11894 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
11895 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11896echo "$as_me: $ac_file is unchanged" >&6;}
11897 else
11898 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11899$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11900 X"$ac_file" : 'X\(//\)[^/]' \| \
11901 X"$ac_file" : 'X\(//\)$' \| \
11902 X"$ac_file" : 'X\(/\)' \| \
11903 . : '\(.\)' 2>/dev/null ||
11904echo X"$ac_file" |
11905 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11906 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11907 /^X\(\/\/\)$/{ s//\1/; q; }
11908 /^X\(\/\).*/{ s//\1/; q; }
11909 s/.*/./; q'`
11910 { if $as_mkdir_p; then
11911 mkdir -p "$ac_dir"
11912 else
11913 as_dir="$ac_dir"
11914 as_dirs=
11915 while test ! -d "$as_dir"; do
11916 as_dirs="$as_dir $as_dirs"
11917 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11918$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11919 X"$as_dir" : 'X\(//\)[^/]' \| \
11920 X"$as_dir" : 'X\(//\)$' \| \
11921 X"$as_dir" : 'X\(/\)' \| \
11922 . : '\(.\)' 2>/dev/null ||
11923echo X"$as_dir" |
11924 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11925 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11926 /^X\(\/\/\)$/{ s//\1/; q; }
11927 /^X\(\/\).*/{ s//\1/; q; }
11928 s/.*/./; q'`
11929 done
11930 test ! -n "$as_dirs" || mkdir $as_dirs
11931 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11932echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11933 { (exit 1); exit 1; }; }; }
11934
11935 rm -f $ac_file
11936 mv $tmp/config.h $ac_file
11937 fi
11938 else
11939 cat $tmp/config.h
11940 rm -f $tmp/config.h
11941 fi
11942# Compute $ac_file's index in $config_headers.
11943_am_stamp_count=1
11944for _am_header in $config_headers :; do
11945 case $_am_header in
11946 $ac_file | $ac_file:* )
11947 break ;;
11948 * )
11949 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11950 esac
11951done
11952echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
11953$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11954 X$ac_file : 'X\(//\)[^/]' \| \
11955 X$ac_file : 'X\(//\)$' \| \
11956 X$ac_file : 'X\(/\)' \| \
11957 . : '\(.\)' 2>/dev/null ||
11958echo X$ac_file |
11959 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11960 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11961 /^X\(\/\/\)$/{ s//\1/; q; }
11962 /^X\(\/\).*/{ s//\1/; q; }
11963 s/.*/./; q'`/stamp-h$_am_stamp_count
11964done
11965_ACEOF
11966cat >>$CONFIG_STATUS <<\_ACEOF
11967
11968#
11969# CONFIG_COMMANDS section.
11970#
11971for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
11972 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
11973 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
11974 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
11975$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11976 X"$ac_dest" : 'X\(//\)[^/]' \| \
11977 X"$ac_dest" : 'X\(//\)$' \| \
11978 X"$ac_dest" : 'X\(/\)' \| \
11979 . : '\(.\)' 2>/dev/null ||
11980echo X"$ac_dest" |
11981 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11982 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11983 /^X\(\/\/\)$/{ s//\1/; q; }
11984 /^X\(\/\).*/{ s//\1/; q; }
11985 s/.*/./; q'`
11986 { if $as_mkdir_p; then
11987 mkdir -p "$ac_dir"
11988 else
11989 as_dir="$ac_dir"
11990 as_dirs=
11991 while test ! -d "$as_dir"; do
11992 as_dirs="$as_dir $as_dirs"
11993 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11994$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11995 X"$as_dir" : 'X\(//\)[^/]' \| \
11996 X"$as_dir" : 'X\(//\)$' \| \
11997 X"$as_dir" : 'X\(/\)' \| \
11998 . : '\(.\)' 2>/dev/null ||
11999echo X"$as_dir" |
12000 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12001 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12002 /^X\(\/\/\)$/{ s//\1/; q; }
12003 /^X\(\/\).*/{ s//\1/; q; }
12004 s/.*/./; q'`
12005 done
12006 test ! -n "$as_dirs" || mkdir $as_dirs
12007 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12008echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12009 { (exit 1); exit 1; }; }; }
12010
12011 ac_builddir=.
12012
12013if test "$ac_dir" != .; then
12014 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12015 # A "../" for each directory in $ac_dir_suffix.
12016 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12017else
12018 ac_dir_suffix= ac_top_builddir=
12019fi
12020
12021case $srcdir in
12022 .) # No --srcdir option. We are building in place.
12023 ac_srcdir=.
12024 if test -z "$ac_top_builddir"; then
12025 ac_top_srcdir=.
12026 else
12027 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12028 fi ;;
12029 [\\/]* | ?:[\\/]* ) # Absolute path.
12030 ac_srcdir=$srcdir$ac_dir_suffix;
12031 ac_top_srcdir=$srcdir ;;
12032 *) # Relative path.
12033 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12034 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12035esac
12036
12037# Do not use `cd foo && pwd` to compute absolute paths, because
12038# the directories may not exist.
12039case `pwd` in
12040.) ac_abs_builddir="$ac_dir";;
12041*)
12042 case "$ac_dir" in
12043 .) ac_abs_builddir=`pwd`;;
12044 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12045 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12046 esac;;
12047esac
12048case $ac_abs_builddir in
12049.) ac_abs_top_builddir=${ac_top_builddir}.;;
12050*)
12051 case ${ac_top_builddir}. in
12052 .) ac_abs_top_builddir=$ac_abs_builddir;;
12053 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12054 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12055 esac;;
12056esac
12057case $ac_abs_builddir in
12058.) ac_abs_srcdir=$ac_srcdir;;
12059*)
12060 case $ac_srcdir in
12061 .) ac_abs_srcdir=$ac_abs_builddir;;
12062 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12063 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12064 esac;;
12065esac
12066case $ac_abs_builddir in
12067.) ac_abs_top_srcdir=$ac_top_srcdir;;
12068*)
12069 case $ac_top_srcdir in
12070 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12071 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12072 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12073 esac;;
12074esac
12075
12076
12077 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12078echo "$as_me: executing $ac_dest commands" >&6;}
12079 case $ac_dest in
12080 default-1 )
12081# Only add multilib support code if we just rebuilt the top-level
12082# Makefile.
12083case " $CONFIG_FILES " in
12084 *" Makefile "*)
12085 ac_file=Makefile . ${multi_basedir}/config-ml.in
12086 ;;
12087esac ;;
12088 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12089 # Strip MF so we end up with the name of the file.
12090 mf=`echo "$mf" | sed -e 's/:.*$//'`
12091 # Check whether this is an Automake generated Makefile or not.
12092 # We used to match only the files named `Makefile.in', but
12093 # some people rename them; so instead we look at the file content.
12094 # Grep'ing the first line is not enough: some people post-process
12095 # each Makefile.in and add a new line on top of each file to say so.
12096 # So let's grep whole file.
12097 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
12098 dirpart=`(dirname "$mf") 2>/dev/null ||
12099$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12100 X"$mf" : 'X\(//\)[^/]' \| \
12101 X"$mf" : 'X\(//\)$' \| \
12102 X"$mf" : 'X\(/\)' \| \
12103 . : '\(.\)' 2>/dev/null ||
12104echo X"$mf" |
12105 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12106 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12107 /^X\(\/\/\)$/{ s//\1/; q; }
12108 /^X\(\/\).*/{ s//\1/; q; }
12109 s/.*/./; q'`
12110 else
12111 continue
12112 fi
12113 # Extract the definition of DEPDIR, am__include, and am__quote
12114 # from the Makefile without running `make'.
12115 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12116 test -z "$DEPDIR" && continue
12117 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12118 test -z "am__include" && continue
12119 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12120 # When using ansi2knr, U may be empty or an underscore; expand it
12121 U=`sed -n 's/^U = //p' < "$mf"`
12122 # Find all dependency output files, they are included files with
12123 # $(DEPDIR) in their names. We invoke sed twice because it is the
12124 # simplest approach to changing $(DEPDIR) to its actual value in the
12125 # expansion.
12126 for file in `sed -n "
12127 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12128 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12129 # Make sure the directory exists.
12130 test -f "$dirpart/$file" && continue
12131 fdir=`(dirname "$file") 2>/dev/null ||
12132$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12133 X"$file" : 'X\(//\)[^/]' \| \
12134 X"$file" : 'X\(//\)$' \| \
12135 X"$file" : 'X\(/\)' \| \
12136 . : '\(.\)' 2>/dev/null ||
12137echo X"$file" |
12138 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12139 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12140 /^X\(\/\/\)$/{ s//\1/; q; }
12141 /^X\(\/\).*/{ s//\1/; q; }
12142 s/.*/./; q'`
12143 { if $as_mkdir_p; then
12144 mkdir -p $dirpart/$fdir
12145 else
12146 as_dir=$dirpart/$fdir
12147 as_dirs=
12148 while test ! -d "$as_dir"; do
12149 as_dirs="$as_dir $as_dirs"
12150 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12151$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12152 X"$as_dir" : 'X\(//\)[^/]' \| \
12153 X"$as_dir" : 'X\(//\)$' \| \
12154 X"$as_dir" : 'X\(/\)' \| \
12155 . : '\(.\)' 2>/dev/null ||
12156echo X"$as_dir" |
12157 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12158 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12159 /^X\(\/\/\)$/{ s//\1/; q; }
12160 /^X\(\/\).*/{ s//\1/; q; }
12161 s/.*/./; q'`
12162 done
12163 test ! -n "$as_dirs" || mkdir $as_dirs
12164 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
12165echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
12166 { (exit 1); exit 1; }; }; }
12167
12168 # echo "creating $dirpart/$file"
12169 echo '# dummy' > "$dirpart/$file"
12170 done
12171done
01473a49 12172 ;;
12173 gstdint.h )
12174if test "$GCC" = yes; then
12175 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
12176else
12177 echo "/* generated for $CC */" > tmp-stdint.h
12178fi
12179
12180sed 's/^ *//' >> tmp-stdint.h <<EOF
12181
12182 #ifndef GCC_GENERATED_STDINT_H
12183 #define GCC_GENERATED_STDINT_H 1
12184
12185 #include <sys/types.h>
12186EOF
12187
12188if test "$acx_cv_header_stdint" != stdint.h; then
12189 echo "#include <stddef.h>" >> tmp-stdint.h
12190fi
12191if test "$acx_cv_header_stdint" != stddef.h; then
12192 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
12193fi
12194
12195sed 's/^ *//' >> tmp-stdint.h <<EOF
12196 /* glibc uses these symbols as guards to prevent redefinitions. */
12197 #ifdef __int8_t_defined
12198 #define _INT8_T
12199 #define _INT16_T
12200 #define _INT32_T
12201 #endif
12202 #ifdef __uint32_t_defined
12203 #define _UINT32_T
12204 #endif
12205
12206EOF
12207
12208# ----------------- done header, emit basic int types -------------
12209if test "$acx_cv_header_stdint" = stddef.h; then
12210 sed 's/^ *//' >> tmp-stdint.h <<EOF
12211
12212 #ifndef _UINT8_T
12213 #define _UINT8_T
12214 typedef unsigned $acx_cv_type_int8_t uint8_t;
12215 #endif
12216
12217 #ifndef _UINT16_T
12218 #define _UINT16_T
12219 typedef unsigned $acx_cv_type_int16_t uint16_t;
12220 #endif
12221
12222 #ifndef _UINT32_T
12223 #define _UINT32_T
12224 typedef unsigned $acx_cv_type_int32_t uint32_t;
12225 #endif
12226
12227 #ifndef _INT8_T
12228 #define _INT8_T
12229 typedef $acx_cv_type_int8_t int8_t;
12230 #endif
12231
12232 #ifndef _INT16_T
12233 #define _INT16_T
12234 typedef $acx_cv_type_int16_t int16_t;
12235 #endif
12236
12237 #ifndef _INT32_T
12238 #define _INT32_T
12239 typedef $acx_cv_type_int32_t int32_t;
12240 #endif
12241EOF
12242elif test "$ac_cv_type_u_int32_t" = yes; then
12243 sed 's/^ *//' >> tmp-stdint.h <<EOF
12244
12245 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
12246 #ifndef _INT8_T
12247 #define _INT8_T
12248 #endif
12249 #ifndef _INT16_T
12250 #define _INT16_T
12251 #endif
12252 #ifndef _INT32_T
12253 #define _INT32_T
12254 #endif
12255
12256 #ifndef _UINT8_T
12257 #define _UINT8_T
12258 typedef u_int8_t uint8_t;
12259 #endif
12260
12261 #ifndef _UINT16_T
12262 #define _UINT16_T
12263 typedef u_int16_t uint16_t;
12264 #endif
12265
12266 #ifndef _UINT32_T
12267 #define _UINT32_T
12268 typedef u_int32_t uint32_t;
12269 #endif
12270EOF
12271else
12272 sed 's/^ *//' >> tmp-stdint.h <<EOF
12273
12274 /* Some systems have guard macros to prevent redefinitions, define them. */
12275 #ifndef _INT8_T
12276 #define _INT8_T
12277 #endif
12278 #ifndef _INT16_T
12279 #define _INT16_T
12280 #endif
12281 #ifndef _INT32_T
12282 #define _INT32_T
12283 #endif
12284 #ifndef _UINT8_T
12285 #define _UINT8_T
12286 #endif
12287 #ifndef _UINT16_T
12288 #define _UINT16_T
12289 #endif
12290 #ifndef _UINT32_T
12291 #define _UINT32_T
12292 #endif
12293EOF
12294fi
12295
12296# ------------- done basic int types, emit int64_t types ------------
12297if test "$ac_cv_type_uint64_t" = yes; then
12298 sed 's/^ *//' >> tmp-stdint.h <<EOF
12299
12300 /* system headers have good uint64_t and int64_t */
12301 #ifndef _INT64_T
12302 #define _INT64_T
12303 #endif
12304 #ifndef _UINT64_T
12305 #define _UINT64_T
12306 #endif
12307EOF
12308elif test "$ac_cv_type_u_int64_t" = yes; then
12309 sed 's/^ *//' >> tmp-stdint.h <<EOF
12310
12311 /* system headers have an u_int64_t (and int64_t) */
12312 #ifndef _INT64_T
12313 #define _INT64_T
12314 #endif
12315 #ifndef _UINT64_T
12316 #define _UINT64_T
12317 typedef u_int64_t uint64_t;
12318 #endif
12319EOF
12320elif test -n "$acx_cv_type_int64_t"; then
12321 sed 's/^ *//' >> tmp-stdint.h <<EOF
12322
12323 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
12324 #ifndef _INT64_T
12325 #define _INT64_T
12326 typedef $acx_cv_type_int64_t int64_t;
12327 #endif
12328 #ifndef _UINT64_T
12329 #define _UINT64_T
12330 typedef unsigned $acx_cv_type_int64_t uint64_t;
12331 #endif
12332EOF
12333else
12334 sed 's/^ *//' >> tmp-stdint.h <<EOF
12335
12336 /* some common heuristics for int64_t, using compiler-specific tests */
12337 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
12338 #ifndef _INT64_T
12339 #define _INT64_T
12340 typedef long long int64_t;
12341 #endif
12342 #ifndef _UINT64_T
12343 #define _UINT64_T
12344 typedef unsigned long long uint64_t;
12345 #endif
12346
12347 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
12348 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
12349 does not implement __extension__. But that compiler doesn't define
12350 __GNUC_MINOR__. */
12351 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
12352 # define __extension__
12353 # endif
12354
12355 # ifndef _INT64_T
12356 # define _INT64_T
12357 __extension__ typedef long long int64_t;
12358 # endif
12359 # ifndef _UINT64_T
12360 # define _UINT64_T
12361 __extension__ typedef unsigned long long uint64_t;
12362 # endif
12363
12364 #elif !defined __STRICT_ANSI__
12365 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
12366
12367 # ifndef _INT64_T
12368 # define _INT64_T
12369 typedef __int64 int64_t;
12370 # endif
12371 # ifndef _UINT64_T
12372 # define _UINT64_T
12373 typedef unsigned __int64 uint64_t;
12374 # endif
12375 # endif /* compiler */
12376
12377 #endif /* ANSI version */
12378EOF
12379fi
12380
12381# ------------- done int64_t types, emit intptr types ------------
12382if test "$ac_cv_type_uintptr_t" != yes; then
12383 sed 's/^ *//' >> tmp-stdint.h <<EOF
12384
12385 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
12386 typedef u$acx_cv_type_intptr_t uintptr_t;
12387 typedef $acx_cv_type_intptr_t intptr_t;
12388EOF
12389fi
12390
12391# ------------- done intptr types, emit int_least types ------------
12392if test "$ac_cv_type_int_least32_t" != yes; then
12393 sed 's/^ *//' >> tmp-stdint.h <<EOF
12394
12395 /* Define int_least types */
12396 typedef int8_t int_least8_t;
12397 typedef int16_t int_least16_t;
12398 typedef int32_t int_least32_t;
12399 #ifdef _INT64_T
12400 typedef int64_t int_least64_t;
12401 #endif
12402
12403 typedef uint8_t uint_least8_t;
12404 typedef uint16_t uint_least16_t;
12405 typedef uint32_t uint_least32_t;
12406 #ifdef _UINT64_T
12407 typedef uint64_t uint_least64_t;
12408 #endif
12409EOF
12410fi
12411
12412# ------------- done intptr types, emit int_fast types ------------
12413if test "$ac_cv_type_int_fast32_t" != yes; then
12414 sed 's/^ *//' >> tmp-stdint.h <<EOF
12415
12416 /* Define int_fast types. short is often slow */
12417 typedef int8_t int_fast8_t;
12418 typedef int int_fast16_t;
12419 typedef int32_t int_fast32_t;
12420 #ifdef _INT64_T
12421 typedef int64_t int_fast64_t;
12422 #endif
12423
12424 typedef uint8_t uint_fast8_t;
12425 typedef unsigned int uint_fast16_t;
12426 typedef uint32_t uint_fast32_t;
12427 #ifdef _UINT64_T
12428 typedef uint64_t uint_fast64_t;
12429 #endif
12430EOF
12431fi
12432
12433if test "$ac_cv_type_uintmax_t" != yes; then
12434 sed 's/^ *//' >> tmp-stdint.h <<EOF
12435
12436 /* Define intmax based on what we found */
12437 #ifdef _INT64_T
12438 typedef int64_t intmax_t;
12439 #else
12440 typedef long intmax_t;
12441 #endif
12442 #ifdef _UINT64_T
12443 typedef uint64_t uintmax_t;
12444 #else
12445 typedef unsigned long uintmax_t;
12446 #endif
12447EOF
12448fi
12449
12450sed 's/^ *//' >> tmp-stdint.h <<EOF
12451
12452 #endif /* GCC_GENERATED_STDINT_H */
12453EOF
12454
12455if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
12456 rm -f tmp-stdint.h
12457else
12458 mv -f tmp-stdint.h gstdint.h
12459fi
12460
1e8e9920 12461 ;;
12462 esac
12463done
12464_ACEOF
12465
12466cat >>$CONFIG_STATUS <<\_ACEOF
12467
12468{ (exit 0); exit 0; }
12469_ACEOF
12470chmod +x $CONFIG_STATUS
12471ac_clean_files=$ac_clean_files_save
12472
12473
12474# configure is writing to config.log, and then calls config.status.
12475# config.status does its own redirection, appending to config.log.
12476# Unfortunately, on DOS this fails, as config.log is still kept open
12477# by configure, so config.status won't be able to write to it; its
12478# output is simply discarded. So we exec the FD to /dev/null,
12479# effectively closing config.log, so it can be properly (re)opened and
12480# appended to by config.status. When coming back to configure, we
12481# need to make the FD available again.
12482if test "$no_create" != yes; then
12483 ac_cs_success=:
12484 ac_config_status_args=
12485 test "$silent" = yes &&
12486 ac_config_status_args="$ac_config_status_args --quiet"
12487 exec 5>/dev/null
12488 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12489 exec 5>>config.log
12490 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12491 # would make configure fail if this is the last instruction.
12492 $ac_cs_success || { (exit 1); exit 1; }
12493fi
12494