2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.59 for libatomic_ops 1.2.
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
## --------------------- ##
12
# Be Bourne compatible
13
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17
# is contrary to our usage. Disable this feature.
18
alias -g '${1+"$@"}'='"$@"'
19
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22
DUALCASE=1; export DUALCASE # for MKS sh
24
# Support unset when possible.
25
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32
# Work around bugs in pre-3.0 UWIN ksh.
33
$as_unset ENV MAIL MAILPATH
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 \
44
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45
eval $as_var=C; export $as_var
51
# Required to use basename.
52
if expr a : '\(a\)' >/dev/null 2>&1; then
58
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65
# Name of the executable.
66
as_me=`$as_basename "$0" ||
67
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68
X"$0" : 'X\(//\)$' \| \
69
X"$0" : 'X\(/\)$' \| \
70
. : '\(.\)' 2>/dev/null ||
72
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73
/^X\/\(\/\/\)$/{ s//\1/; q; }
74
/^X\/\(\/\).*/{ s//\1/; q; }
78
# PATH needs CR, and LINENO needs CR and PATH.
79
# Avoid depending upon Character Ranges.
80
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83
as_cr_digits='0123456789'
84
as_cr_alnum=$as_cr_Letters$as_cr_digits
86
# The user is always right.
87
if test "${PATH_SEPARATOR+set}" != set; then
88
echo "#! /bin/sh" >conf$$.sh
89
echo "exit 0" >>conf$$.sh
91
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
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
108
*[\\/]* ) as_myself=$0 ;;
109
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113
test -z "$as_dir" && as_dir=.
114
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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
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; }; }
128
case $CONFIG_SHELL in
130
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134
test -z "$as_dir" && as_dir=.
135
for as_base in sh bash ksh sh5; do
138
if ("$as_dir/$as_base" -c '
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
148
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
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 |
169
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172
s,^['$as_cr_digits']*\n,,
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; }; }
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).
182
# Exit status is that of the last command.
187
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188
*c*,-n*) ECHO_N= ECHO_C='
190
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194
if expr a : '\(a\)' >/dev/null 2>&1; then
200
rm -f conf$$ conf$$.exe conf$$.file
202
if ln -s conf$$.file conf$$ 2>/dev/null; then
203
# We could just check for DJGPP; but this test a) works b) is more generic
204
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205
if test -f conf$$.exe; then
206
# Don't use ln at all; we don't have any links
211
elif ln conf$$.file conf$$ 2>/dev/null; then
216
rm -f conf$$ conf$$.exe conf$$.file
218
if mkdir -p . 2>/dev/null; then
221
test -d ./-p && rmdir ./-p
225
as_executable_p="test -f"
227
# Sed expression to map a string onto a valid CPP name.
228
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230
# Sed expression to map a string onto a valid variable name.
231
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235
# We need space, tab and new line, in precisely that order.
245
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246
# so uname gets run too.
247
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
254
ac_default_prefix=/usr/local
255
ac_config_libobj_dir=.
260
SHELL=${CONFIG_SHELL-/bin/sh}
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}
267
# Identity of this package.
268
PACKAGE_NAME='libatomic_ops'
269
PACKAGE_TARNAME='libatomic_ops'
270
PACKAGE_VERSION='1.2'
271
PACKAGE_STRING='libatomic_ops 1.2'
274
ac_unique_file="src/atomic_ops.c"
275
# Factoring default headers for most tests.
276
ac_includes_default="\
279
# include <sys/types.h>
282
# include <sys/stat.h>
293
# if !STDC_HEADERS && HAVE_MEMORY_H
299
# include <strings.h>
302
# include <inttypes.h>
312
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar RANLIB ac_ct_RANLIB CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CCAS CCASFLAGS CPP EGREP PICFLAG NEED_ASM_TRUE NEED_ASM_FALSE LIBOBJS LTLIBOBJS'
315
# Initialize some variables set by options.
317
ac_init_version=false
318
# The variables have the same names as the options, with
319
# dashes changed to underlines.
327
program_transform_name=s,x,x,
335
# Installation directory options.
336
# These are left unexpanded so users can "make install exec_prefix=/foo"
337
# and all the variables that are supposed to be based on exec_prefix
338
# by default will actually change.
339
# Use braces instead of parens because sh, perl, etc. also accept them.
340
bindir='${exec_prefix}/bin'
341
sbindir='${exec_prefix}/sbin'
342
libexecdir='${exec_prefix}/libexec'
343
datadir='${prefix}/share'
344
sysconfdir='${prefix}/etc'
345
sharedstatedir='${prefix}/com'
346
localstatedir='${prefix}/var'
347
libdir='${exec_prefix}/lib'
348
includedir='${prefix}/include'
349
oldincludedir='/usr/include'
350
infodir='${prefix}/info'
351
mandir='${prefix}/man'
356
# If the previous option needs an argument, assign it.
357
if test -n "$ac_prev"; then
358
eval "$ac_prev=\$ac_option"
363
ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365
# Accept the important Cygnus configure options, so we can diagnose typos.
369
-bindir | --bindir | --bindi | --bind | --bin | --bi)
371
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374
-build | --build | --buil | --bui | --bu)
375
ac_prev=build_alias ;;
376
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
377
build_alias=$ac_optarg ;;
379
-cache-file | --cache-file | --cache-fil | --cache-fi \
380
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381
ac_prev=cache_file ;;
382
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384
cache_file=$ac_optarg ;;
387
cache_file=config.cache ;;
389
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393
datadir=$ac_optarg ;;
395
-disable-* | --disable-*)
396
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397
# Reject names that are not valid shell variable names.
398
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
400
{ (exit 1); exit 1; }; }
401
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402
eval "enable_$ac_feature=no" ;;
404
-enable-* | --enable-*)
405
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406
# Reject names that are not valid shell variable names.
407
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
409
{ (exit 1); exit 1; }; }
410
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415
eval "enable_$ac_feature='$ac_optarg'" ;;
417
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419
| --exec | --exe | --ex)
420
ac_prev=exec_prefix ;;
421
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423
| --exec=* | --exe=* | --ex=*)
424
exec_prefix=$ac_optarg ;;
426
-gas | --gas | --ga | --g)
427
# Obsolete; use --with-gas.
430
-help | --help | --hel | --he | -h)
432
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433
ac_init_help=recursive ;;
434
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435
ac_init_help=short ;;
437
-host | --host | --hos | --ho)
438
ac_prev=host_alias ;;
439
-host=* | --host=* | --hos=* | --ho=*)
440
host_alias=$ac_optarg ;;
442
-includedir | --includedir | --includedi | --included | --include \
443
| --includ | --inclu | --incl | --inc)
444
ac_prev=includedir ;;
445
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446
| --includ=* | --inclu=* | --incl=* | --inc=*)
447
includedir=$ac_optarg ;;
449
-infodir | --infodir | --infodi | --infod | --info | --inf)
451
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452
infodir=$ac_optarg ;;
454
-libdir | --libdir | --libdi | --libd)
456
-libdir=* | --libdir=* | --libdi=* | --libd=*)
459
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460
| --libexe | --libex | --libe)
461
ac_prev=libexecdir ;;
462
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463
| --libexe=* | --libex=* | --libe=*)
464
libexecdir=$ac_optarg ;;
466
-localstatedir | --localstatedir | --localstatedi | --localstated \
467
| --localstate | --localstat | --localsta | --localst \
468
| --locals | --local | --loca | --loc | --lo)
469
ac_prev=localstatedir ;;
470
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471
| --localstate=* | --localstat=* | --localsta=* | --localst=* \
472
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473
localstatedir=$ac_optarg ;;
475
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481
# Obsolete; use --without-fp.
484
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
485
| --no-cr | --no-c | -n)
488
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
489
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494
| --oldin | --oldi | --old | --ol | --o)
495
ac_prev=oldincludedir ;;
496
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499
oldincludedir=$ac_optarg ;;
501
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506
-program-prefix | --program-prefix | --program-prefi | --program-pref \
507
| --program-pre | --program-pr | --program-p)
508
ac_prev=program_prefix ;;
509
-program-prefix=* | --program-prefix=* | --program-prefi=* \
510
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511
program_prefix=$ac_optarg ;;
513
-program-suffix | --program-suffix | --program-suffi | --program-suff \
514
| --program-suf | --program-su | --program-s)
515
ac_prev=program_suffix ;;
516
-program-suffix=* | --program-suffix=* | --program-suffi=* \
517
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518
program_suffix=$ac_optarg ;;
520
-program-transform-name | --program-transform-name \
521
| --program-transform-nam | --program-transform-na \
522
| --program-transform-n | --program-transform- \
523
| --program-transform | --program-transfor \
524
| --program-transfo | --program-transf \
525
| --program-trans | --program-tran \
526
| --progr-tra | --program-tr | --program-t)
527
ac_prev=program_transform_name ;;
528
-program-transform-name=* | --program-transform-name=* \
529
| --program-transform-nam=* | --program-transform-na=* \
530
| --program-transform-n=* | --program-transform-=* \
531
| --program-transform=* | --program-transfor=* \
532
| --program-transfo=* | --program-transf=* \
533
| --program-trans=* | --program-tran=* \
534
| --progr-tra=* | --program-tr=* | --program-t=*)
535
program_transform_name=$ac_optarg ;;
537
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
538
| -silent | --silent | --silen | --sile | --sil)
541
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545
sbindir=$ac_optarg ;;
547
-sharedstatedir | --sharedstatedir | --sharedstatedi \
548
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549
| --sharedst | --shareds | --shared | --share | --shar \
551
ac_prev=sharedstatedir ;;
552
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556
sharedstatedir=$ac_optarg ;;
558
-site | --site | --sit)
560
-site=* | --site=* | --sit=*)
563
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569
| --syscon | --sysco | --sysc | --sys | --sy)
570
ac_prev=sysconfdir ;;
571
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573
sysconfdir=$ac_optarg ;;
575
-target | --target | --targe | --targ | --tar | --ta | --t)
576
ac_prev=target_alias ;;
577
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578
target_alias=$ac_optarg ;;
580
-v | -verbose | --verbose | --verbos | --verbo | --verb)
583
-version | --version | --versio | --versi | --vers | -V)
587
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588
# Reject names that are not valid shell variable names.
589
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590
{ echo "$as_me: error: invalid package name: $ac_package" >&2
591
{ (exit 1); exit 1; }; }
592
ac_package=`echo $ac_package| sed 's/-/_/g'`
594
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597
eval "with_$ac_package='$ac_optarg'" ;;
599
-without-* | --without-*)
600
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601
# Reject names that are not valid shell variable names.
602
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603
{ echo "$as_me: error: invalid package name: $ac_package" >&2
604
{ (exit 1); exit 1; }; }
605
ac_package=`echo $ac_package | sed 's/-/_/g'`
606
eval "with_$ac_package=no" ;;
609
# Obsolete; use --with-x.
612
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613
| --x-incl | --x-inc | --x-in | --x-i)
614
ac_prev=x_includes ;;
615
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617
x_includes=$ac_optarg ;;
619
-x-libraries | --x-libraries | --x-librarie | --x-librari \
620
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621
ac_prev=x_libraries ;;
622
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624
x_libraries=$ac_optarg ;;
626
-*) { echo "$as_me: error: unrecognized option: $ac_option
627
Try \`$0 --help' for more information." >&2
628
{ (exit 1); exit 1; }; }
632
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633
# Reject names that are not valid shell variable names.
634
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636
{ (exit 1); exit 1; }; }
637
ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638
eval "$ac_envvar='$ac_optarg'"
642
# FIXME: should be removed in autoconf 3.0.
643
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652
if test -n "$ac_prev"; then
653
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654
{ echo "$as_me: error: missing argument to $ac_option" >&2
655
{ (exit 1); exit 1; }; }
658
# Be sure to have absolute paths.
659
for ac_var in exec_prefix prefix
661
eval ac_val=$`echo $ac_var`
663
[\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665
{ (exit 1); exit 1; }; };;
669
# Be sure to have absolute paths.
670
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671
localstatedir libdir includedir oldincludedir infodir mandir
673
eval ac_val=$`echo $ac_var`
675
[\\/$]* | ?:[\\/]* ) ;;
676
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677
{ (exit 1); exit 1; }; };;
681
# There might be people who depend on the old broken behavior: `$host'
682
# used to hold the argument of --host etc.
683
# FIXME: To remove some day.
688
# FIXME: To remove some day.
689
if test "x$host_alias" != x; then
690
if test "x$build_alias" = x; then
691
cross_compiling=maybe
692
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693
If a cross compiler is detected then cross compile mode will be used." >&2
694
elif test "x$build_alias" != "x$host_alias"; then
700
test -n "$host_alias" && ac_tool_prefix=$host_alias-
702
test "$silent" = yes && exec 6>/dev/null
705
# Find the source files, if location was not specified.
706
if test -z "$srcdir"; then
707
ac_srcdir_defaulted=yes
708
# Try the directory containing this script, then its parent.
709
ac_confdir=`(dirname "$0") 2>/dev/null ||
710
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711
X"$0" : 'X\(//\)[^/]' \| \
712
X"$0" : 'X\(//\)$' \| \
713
X"$0" : 'X\(/\)' \| \
714
. : '\(.\)' 2>/dev/null ||
716
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
718
/^X\(\/\/\)$/{ s//\1/; q; }
719
/^X\(\/\).*/{ s//\1/; q; }
722
if test ! -r $srcdir/$ac_unique_file; then
726
ac_srcdir_defaulted=no
728
if test ! -r $srcdir/$ac_unique_file; then
729
if test "$ac_srcdir_defaulted" = yes; then
730
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731
{ (exit 1); exit 1; }; }
733
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734
{ (exit 1); exit 1; }; }
737
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738
{ echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739
{ (exit 1); exit 1; }; }
740
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741
ac_env_build_alias_set=${build_alias+set}
742
ac_env_build_alias_value=$build_alias
743
ac_cv_env_build_alias_set=${build_alias+set}
744
ac_cv_env_build_alias_value=$build_alias
745
ac_env_host_alias_set=${host_alias+set}
746
ac_env_host_alias_value=$host_alias
747
ac_cv_env_host_alias_set=${host_alias+set}
748
ac_cv_env_host_alias_value=$host_alias
749
ac_env_target_alias_set=${target_alias+set}
750
ac_env_target_alias_value=$target_alias
751
ac_cv_env_target_alias_set=${target_alias+set}
752
ac_cv_env_target_alias_value=$target_alias
753
ac_env_CC_set=${CC+set}
755
ac_cv_env_CC_set=${CC+set}
756
ac_cv_env_CC_value=$CC
757
ac_env_CFLAGS_set=${CFLAGS+set}
758
ac_env_CFLAGS_value=$CFLAGS
759
ac_cv_env_CFLAGS_set=${CFLAGS+set}
760
ac_cv_env_CFLAGS_value=$CFLAGS
761
ac_env_LDFLAGS_set=${LDFLAGS+set}
762
ac_env_LDFLAGS_value=$LDFLAGS
763
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764
ac_cv_env_LDFLAGS_value=$LDFLAGS
765
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766
ac_env_CPPFLAGS_value=$CPPFLAGS
767
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769
ac_env_CCAS_set=${CCAS+set}
770
ac_env_CCAS_value=$CCAS
771
ac_cv_env_CCAS_set=${CCAS+set}
772
ac_cv_env_CCAS_value=$CCAS
773
ac_env_CCASFLAGS_set=${CCASFLAGS+set}
774
ac_env_CCASFLAGS_value=$CCASFLAGS
775
ac_cv_env_CCASFLAGS_set=${CCASFLAGS+set}
776
ac_cv_env_CCASFLAGS_value=$CCASFLAGS
777
ac_env_CPP_set=${CPP+set}
778
ac_env_CPP_value=$CPP
779
ac_cv_env_CPP_set=${CPP+set}
780
ac_cv_env_CPP_value=$CPP
783
# Report the --help message.
785
if test "$ac_init_help" = "long"; then
786
# Omit some internal or obsolete options to make the list less imposing.
787
# This message is too long to be a string in the A/UX 3.1 sh.
789
\`configure' configures libatomic_ops 1.2 to adapt to many kinds of systems.
791
Usage: $0 [OPTION]... [VAR=VALUE]...
793
To assign environment variables (e.g., CC, CFLAGS...), specify them as
794
VAR=VALUE. See below for descriptions of some of the useful variables.
796
Defaults for the options are specified in brackets.
799
-h, --help display this help and exit
800
--help=short display options specific to this package
801
--help=recursive display the short help of all the included packages
802
-V, --version display version information and exit
803
-q, --quiet, --silent do not print \`checking...' messages
804
--cache-file=FILE cache test results in FILE [disabled]
805
-C, --config-cache alias for \`--cache-file=config.cache'
806
-n, --no-create do not create output files
807
--srcdir=DIR find the sources in DIR [configure dir or \`..']
812
Installation directories:
813
--prefix=PREFIX install architecture-independent files in PREFIX
815
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
818
By default, \`make install' will install all the files in
819
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
820
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
821
for instance \`--prefix=\$HOME'.
823
For better control, use the options below.
825
Fine tuning of the installation directories:
826
--bindir=DIR user executables [EPREFIX/bin]
827
--sbindir=DIR system admin executables [EPREFIX/sbin]
828
--libexecdir=DIR program executables [EPREFIX/libexec]
829
--datadir=DIR read-only architecture-independent data [PREFIX/share]
830
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
831
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
832
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
833
--libdir=DIR object code libraries [EPREFIX/lib]
834
--includedir=DIR C header files [PREFIX/include]
835
--oldincludedir=DIR C header files for non-gcc [/usr/include]
836
--infodir=DIR info documentation [PREFIX/info]
837
--mandir=DIR man documentation [PREFIX/man]
843
--program-prefix=PREFIX prepend PREFIX to installed program names
844
--program-suffix=SUFFIX append SUFFIX to installed program names
845
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
848
--build=BUILD configure for building on BUILD [guessed]
849
--host=HOST cross-compile to build programs to run on HOST [BUILD]
850
--target=TARGET configure for building compilers for TARGET [HOST]
854
if test -n "$ac_init_help"; then
855
case $ac_init_help in
856
short | recursive ) echo "Configuration of libatomic_ops 1.2:";;
861
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
862
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
863
--disable-dependency-tracking speeds up one-time build
864
--enable-dependency-tracking do not reject slow dependency extractors
866
Some influential environment variables:
867
CC C compiler command
868
CFLAGS C compiler flags
869
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
870
nonstandard directory <lib dir>
871
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
872
headers in a nonstandard directory <include dir>
873
CCAS assembler compiler command (defaults to CC)
874
CCASFLAGS assembler compiler flags (defaults to CFLAGS)
877
Use these variables to override the choices made by `configure' or to help
878
it to find libraries and programs with nonstandard names/locations.
883
if test "$ac_init_help" = "recursive"; then
884
# If there are subdirs, report their specific --help.
886
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
887
test -d $ac_dir || continue
890
if test "$ac_dir" != .; then
891
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
892
# A "../" for each directory in $ac_dir_suffix.
893
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
895
ac_dir_suffix= ac_top_builddir=
899
.) # No --srcdir option. We are building in place.
901
if test -z "$ac_top_builddir"; then
904
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
906
[\\/]* | ?:[\\/]* ) # Absolute path.
907
ac_srcdir=$srcdir$ac_dir_suffix;
908
ac_top_srcdir=$srcdir ;;
910
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
911
ac_top_srcdir=$ac_top_builddir$srcdir ;;
914
# Do not use `cd foo && pwd` to compute absolute paths, because
915
# the directories may not exist.
917
.) ac_abs_builddir="$ac_dir";;
920
.) ac_abs_builddir=`pwd`;;
921
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
922
*) ac_abs_builddir=`pwd`/"$ac_dir";;
925
case $ac_abs_builddir in
926
.) ac_abs_top_builddir=${ac_top_builddir}.;;
928
case ${ac_top_builddir}. in
929
.) ac_abs_top_builddir=$ac_abs_builddir;;
930
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
931
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
934
case $ac_abs_builddir in
935
.) ac_abs_srcdir=$ac_srcdir;;
938
.) ac_abs_srcdir=$ac_abs_builddir;;
939
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
940
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
943
case $ac_abs_builddir in
944
.) ac_abs_top_srcdir=$ac_top_srcdir;;
946
case $ac_top_srcdir in
947
.) ac_abs_top_srcdir=$ac_abs_builddir;;
948
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
949
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
954
# Check for guested configure; otherwise get Cygnus style configure.
955
if test -f $ac_srcdir/configure.gnu; then
957
$SHELL $ac_srcdir/configure.gnu --help=recursive
958
elif test -f $ac_srcdir/configure; then
960
$SHELL $ac_srcdir/configure --help=recursive
961
elif test -f $ac_srcdir/configure.ac ||
962
test -f $ac_srcdir/configure.in; then
966
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
972
test -n "$ac_init_help" && exit 0
973
if $ac_init_version; then
975
libatomic_ops configure 1.2
976
generated by GNU Autoconf 2.59
978
Copyright (C) 2003 Free Software Foundation, Inc.
979
This configure script is free software; the Free Software Foundation
980
gives unlimited permission to copy, distribute and modify it.
986
This file contains any messages produced by compilers while
987
running configure, to aid debugging if configure makes a mistake.
989
It was created by libatomic_ops $as_me 1.2, which was
990
generated by GNU Autoconf 2.59. Invocation command line was
1001
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1002
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1003
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1004
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1005
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1007
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1008
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1010
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1011
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1012
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1013
hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1014
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1015
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1016
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1020
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1024
test -z "$as_dir" && as_dir=.
1025
echo "PATH: $as_dir"
1040
# Keep a trace of the command line.
1041
# Strip out --no-create and --no-recursion so they do not pile up.
1042
# Strip out --silent because we don't want to record it for future runs.
1043
# Also quote any args containing shell meta-characters.
1044
# Make two passes to allow for proper duplicate-argument suppression.
1049
ac_must_keep_next=false
1055
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1056
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1057
| -silent | --silent | --silen | --sile | --sil)
1059
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1060
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1063
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1065
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1066
if test $ac_must_keep_next = true; then
1067
ac_must_keep_next=false # Got value, back to normal.
1070
*=* | --config-cache | -C | -disable-* | --disable-* \
1071
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1072
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1073
| -with-* | --with-* | -without-* | --without-* | --x)
1074
case "$ac_configure_args0 " in
1075
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1078
-* ) ac_must_keep_next=true ;;
1081
ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1082
# Get rid of the leading space.
1088
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1089
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1091
# When interrupted or exit'd, cleanup temporary files, and complete
1092
# config.log. We remove comments because anyway the quotes in there
1093
# would cause problems or look ugly.
1094
# WARNING: Be sure not to use single quotes in there, as some shells,
1095
# such as our DU 5.0 friend, will then `close' the trap.
1096
trap 'exit_status=$?
1097
# Save into config.log some information that might help in debugging.
1102
## ---------------- ##
1103
## Cache variables. ##
1104
## ---------------- ##
1107
# The following way of writing the cache mishandles newlines in values,
1110
case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1113
"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1114
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1118
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1125
## ----------------- ##
1126
## Output variables. ##
1127
## ----------------- ##
1130
for ac_var in $ac_subst_vars
1132
eval ac_val=$`echo $ac_var`
1133
echo "$ac_var='"'"'$ac_val'"'"'"
1137
if test -n "$ac_subst_files"; then
1144
for ac_var in $ac_subst_files
1146
eval ac_val=$`echo $ac_var`
1147
echo "$ac_var='"'"'$ac_val'"'"'"
1152
if test -s confdefs.h; then
1159
sed "/^$/d" confdefs.h | sort
1162
test "$ac_signal" != 0 &&
1163
echo "$as_me: caught signal $ac_signal"
1164
echo "$as_me: exit $exit_status"
1166
rm -f core *.core &&
1167
rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1170
for ac_signal in 1 2 13 15; do
1171
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1175
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1176
rm -rf conftest* confdefs.h
1177
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1180
# Predefined preprocessor variables.
1182
cat >>confdefs.h <<_ACEOF
1183
#define PACKAGE_NAME "$PACKAGE_NAME"
1187
cat >>confdefs.h <<_ACEOF
1188
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1192
cat >>confdefs.h <<_ACEOF
1193
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1197
cat >>confdefs.h <<_ACEOF
1198
#define PACKAGE_STRING "$PACKAGE_STRING"
1202
cat >>confdefs.h <<_ACEOF
1203
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1207
# Let the site file select an alternate cache file if it wants to.
1208
# Prefer explicitly selected file to automatically selected ones.
1209
if test -z "$CONFIG_SITE"; then
1210
if test "x$prefix" != xNONE; then
1211
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1213
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1216
for ac_site_file in $CONFIG_SITE; do
1217
if test -r "$ac_site_file"; then
1218
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1219
echo "$as_me: loading site script $ac_site_file" >&6;}
1220
sed 's/^/| /' "$ac_site_file" >&5
1225
if test -r "$cache_file"; then
1226
# Some versions of bash will fail to source /dev/null (special
1227
# files actually), so we avoid doing that.
1228
if test -f "$cache_file"; then
1229
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
1230
echo "$as_me: loading cache $cache_file" >&6;}
1232
[\\/]* | ?:[\\/]* ) . $cache_file;;
1233
*) . ./$cache_file;;
1237
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
1238
echo "$as_me: creating cache $cache_file" >&6;}
1242
# Check that the precious variables saved in the cache have kept the same
1244
ac_cache_corrupted=false
1245
for ac_var in `(set) 2>&1 |
1246
sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1247
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1248
eval ac_new_set=\$ac_env_${ac_var}_set
1249
eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1250
eval ac_new_val="\$ac_env_${ac_var}_value"
1251
case $ac_old_set,$ac_new_set in
1253
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1254
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1255
ac_cache_corrupted=: ;;
1257
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1258
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1259
ac_cache_corrupted=: ;;
1262
if test "x$ac_old_val" != "x$ac_new_val"; then
1263
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1264
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1265
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1266
echo "$as_me: former value: $ac_old_val" >&2;}
1267
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1268
echo "$as_me: current value: $ac_new_val" >&2;}
1269
ac_cache_corrupted=:
1272
# Pass precious variables to config.status.
1273
if test "$ac_new_set" = set; then
1275
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1276
ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1277
*) ac_arg=$ac_var=$ac_new_val ;;
1279
case " $ac_configure_args " in
1280
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1281
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1285
if $ac_cache_corrupted; then
1286
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1287
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1288
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1289
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1290
{ (exit 1); exit 1; }; }
1294
ac_cpp='$CPP $CPPFLAGS'
1295
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1296
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1297
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1326
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1327
if test -f $ac_dir/install-sh; then
1329
ac_install_sh="$ac_aux_dir/install-sh -c"
1331
elif test -f $ac_dir/install.sh; then
1333
ac_install_sh="$ac_aux_dir/install.sh -c"
1335
elif test -f $ac_dir/shtool; then
1337
ac_install_sh="$ac_aux_dir/shtool install -c"
1341
if test -z "$ac_aux_dir"; then
1342
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1343
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1344
{ (exit 1); exit 1; }; }
1346
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1347
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1348
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1350
# Make sure we can run config.sub.
1351
$ac_config_sub sun4 >/dev/null 2>&1 ||
1352
{ { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1353
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1354
{ (exit 1); exit 1; }; }
1356
echo "$as_me:$LINENO: checking build system type" >&5
1357
echo $ECHO_N "checking build system type... $ECHO_C" >&6
1358
if test "${ac_cv_build+set}" = set; then
1359
echo $ECHO_N "(cached) $ECHO_C" >&6
1361
ac_cv_build_alias=$build_alias
1362
test -z "$ac_cv_build_alias" &&
1363
ac_cv_build_alias=`$ac_config_guess`
1364
test -z "$ac_cv_build_alias" &&
1365
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1366
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1367
{ (exit 1); exit 1; }; }
1368
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1369
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1370
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1371
{ (exit 1); exit 1; }; }
1374
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1375
echo "${ECHO_T}$ac_cv_build" >&6
1377
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1378
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1379
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1382
echo "$as_me:$LINENO: checking host system type" >&5
1383
echo $ECHO_N "checking host system type... $ECHO_C" >&6
1384
if test "${ac_cv_host+set}" = set; then
1385
echo $ECHO_N "(cached) $ECHO_C" >&6
1387
ac_cv_host_alias=$host_alias
1388
test -z "$ac_cv_host_alias" &&
1389
ac_cv_host_alias=$ac_cv_build_alias
1390
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1391
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1392
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1393
{ (exit 1); exit 1; }; }
1396
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1397
echo "${ECHO_T}$ac_cv_host" >&6
1399
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1400
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1401
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1404
echo "$as_me:$LINENO: checking target system type" >&5
1405
echo $ECHO_N "checking target system type... $ECHO_C" >&6
1406
if test "${ac_cv_target+set}" = set; then
1407
echo $ECHO_N "(cached) $ECHO_C" >&6
1409
ac_cv_target_alias=$target_alias
1410
test "x$ac_cv_target_alias" = "x" &&
1411
ac_cv_target_alias=$ac_cv_host_alias
1412
ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1413
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1414
echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1415
{ (exit 1); exit 1; }; }
1418
echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1419
echo "${ECHO_T}$ac_cv_target" >&6
1420
target=$ac_cv_target
1421
target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1422
target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1423
target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1426
# The aliases save the names the user supplied, while $host etc.
1427
# will get canonicalized.
1428
test -n "$target_alias" &&
1429
test "$program_prefix$program_suffix$program_transform_name" = \
1431
program_prefix=${target_alias}-
1433
am__api_version="1.9"
1434
# Find a good install program. We prefer a C program (faster),
1435
# so one script is as good as another. But avoid the broken or
1436
# incompatible versions:
1437
# SysV /etc/install, /usr/sbin/install
1438
# SunOS /usr/etc/install
1439
# IRIX /sbin/install
1441
# AmigaOS /C/install, which installs bootblocks on floppy discs
1442
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1443
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1444
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1445
# OS/2's system install, which has a completely different semantic
1446
# ./install, which can be erroneously created by make from ./install.sh.
1447
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1448
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1449
if test -z "$INSTALL"; then
1450
if test "${ac_cv_path_install+set}" = set; then
1451
echo $ECHO_N "(cached) $ECHO_C" >&6
1453
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1457
test -z "$as_dir" && as_dir=.
1458
# Account for people who put trailing slashes in PATH elements.
1460
./ | .// | /cC/* | \
1461
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1462
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1465
# OSF1 and SCO ODT 3.0 have their own names for install.
1466
# Don't use installbsd from OSF since it installs stuff as root
1468
for ac_prog in ginstall scoinst install; do
1469
for ac_exec_ext in '' $ac_executable_extensions; do
1470
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1471
if test $ac_prog = install &&
1472
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1473
# AIX install. It has an incompatible calling convention.
1475
elif test $ac_prog = install &&
1476
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1477
# program-specific install script used by HP pwplus--don't use.
1480
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1492
if test "${ac_cv_path_install+set}" = set; then
1493
INSTALL=$ac_cv_path_install
1495
# As a last resort, use the slow shell script. We don't cache a
1496
# path for INSTALL within a source directory, because that will
1497
# break other packages using the cache if that directory is
1498
# removed, or if the path is relative.
1499
INSTALL=$ac_install_sh
1502
echo "$as_me:$LINENO: result: $INSTALL" >&5
1503
echo "${ECHO_T}$INSTALL" >&6
1505
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1506
# It thinks the first close brace ends the variable substitution.
1507
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1509
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1511
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1513
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1514
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1517
echo timestamp > conftest.file
1518
# Do `set' in a subshell so we don't clobber the current shell's
1519
# arguments. Must try -L first in case configure is actually a
1520
# symlink; some systems play weird games with the mod time of symlinks
1521
# (eg FreeBSD returns the mod time of the symlink's containing
1524
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1525
if test "$*" = "X"; then
1527
set X `ls -t $srcdir/configure conftest.file`
1530
if test "$*" != "X $srcdir/configure conftest.file" \
1531
&& test "$*" != "X conftest.file $srcdir/configure"; then
1533
# If neither matched, then we have a broken ls. This can happen
1534
# if, for instance, CONFIG_SHELL is bash and it inherits a
1535
# broken ls alias from the environment. This has actually
1536
# happened. Such a system could not be considered "sane".
1537
{ { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1538
alias in your environment" >&5
1539
echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1540
alias in your environment" >&2;}
1541
{ (exit 1); exit 1; }; }
1544
test "$2" = conftest.file
1550
{ { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1551
Check your system clock" >&5
1552
echo "$as_me: error: newly created file is older than distributed files!
1553
Check your system clock" >&2;}
1554
{ (exit 1); exit 1; }; }
1556
echo "$as_me:$LINENO: result: yes" >&5
1557
echo "${ECHO_T}yes" >&6
1558
test "$program_prefix" != NONE &&
1559
program_transform_name="s,^,$program_prefix,;$program_transform_name"
1560
# Use a double $ so make ignores it.
1561
test "$program_suffix" != NONE &&
1562
program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1563
# Double any \ or $. echo might interpret backslashes.
1564
# By default was `s,x,x', remove it if useless.
1565
cat <<\_ACEOF >conftest.sed
1566
s/[\\$]/&&/g;s/;s,x,x,$//
1568
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1571
# expand $ac_aux_dir to an absolute path
1572
am_aux_dir=`cd $ac_aux_dir && pwd`
1574
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1575
# Use eval to expand $SHELL
1576
if eval "$MISSING --run true"; then
1577
am_missing_run="$MISSING --run "
1580
{ echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1581
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1584
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1585
# We used to keeping the `.' as first argument, in order to
1586
# allow $(mkdir_p) to be used without argument. As in
1587
# $(mkdir_p) $(somedir)
1588
# where $(somedir) is conditionally defined. However this is wrong
1590
# 1. if the package is installed by a user who cannot write `.'
1591
# make install will fail,
1592
# 2. the above comment should most certainly read
1593
# $(mkdir_p) $(DESTDIR)$(somedir)
1594
# so it does not work when $(somedir) is undefined and
1595
# $(DESTDIR) is not.
1596
# To support the latter case, we have to write
1597
# test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1598
# so the `.' trick is pointless.
1599
mkdir_p='mkdir -p --'
1601
# On NextStep and OpenStep, the `mkdir' command does not
1602
# recognize any option. It will interpret all options as
1603
# directories to create, and then abort because `.' already
1605
for d in ./-p ./--version;
1607
test -d $d && rmdir $d
1609
# $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1610
if test -f "$ac_aux_dir/mkinstalldirs"; then
1611
mkdir_p='$(mkinstalldirs)'
1613
mkdir_p='$(install_sh) -d'
1617
for ac_prog in gawk mawk nawk awk
1619
# Extract the first word of "$ac_prog", so it can be a program name with args.
1620
set dummy $ac_prog; ac_word=$2
1621
echo "$as_me:$LINENO: checking for $ac_word" >&5
1622
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1623
if test "${ac_cv_prog_AWK+set}" = set; then
1624
echo $ECHO_N "(cached) $ECHO_C" >&6
1626
if test -n "$AWK"; then
1627
ac_cv_prog_AWK="$AWK" # Let the user override the test.
1629
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1633
test -z "$as_dir" && as_dir=.
1634
for ac_exec_ext in '' $ac_executable_extensions; do
1635
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1636
ac_cv_prog_AWK="$ac_prog"
1637
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1646
if test -n "$AWK"; then
1647
echo "$as_me:$LINENO: result: $AWK" >&5
1648
echo "${ECHO_T}$AWK" >&6
1650
echo "$as_me:$LINENO: result: no" >&5
1651
echo "${ECHO_T}no" >&6
1654
test -n "$AWK" && break
1657
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1658
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1659
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1660
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1661
echo $ECHO_N "(cached) $ECHO_C" >&6
1663
cat >conftest.make <<\_ACEOF
1665
@echo 'ac_maketemp="$(MAKE)"'
1667
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1668
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1669
if test -n "$ac_maketemp"; then
1670
eval ac_cv_prog_make_${ac_make}_set=yes
1672
eval ac_cv_prog_make_${ac_make}_set=no
1676
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1677
echo "$as_me:$LINENO: result: yes" >&5
1678
echo "${ECHO_T}yes" >&6
1681
echo "$as_me:$LINENO: result: no" >&5
1682
echo "${ECHO_T}no" >&6
1683
SET_MAKE="MAKE=${MAKE-make}"
1686
rm -rf .tst 2>/dev/null
1687
mkdir .tst 2>/dev/null
1688
if test -d .tst; then
1693
rmdir .tst 2>/dev/null
1695
# test to see if srcdir already configured
1696
if test "`cd $srcdir && pwd`" != "`pwd`" &&
1697
test -f $srcdir/config.status; then
1698
{ { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1699
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1700
{ (exit 1); exit 1; }; }
1703
# test whether we have cygpath
1704
if test -z "$CYGPATH_W"; then
1705
if (cygpath --version) >/dev/null 2>/dev/null; then
1706
CYGPATH_W='cygpath -w'
1713
# Define the identity of the package.
1714
PACKAGE='libatomic_ops'
1718
cat >>confdefs.h <<_ACEOF
1719
#define PACKAGE "$PACKAGE"
1723
cat >>confdefs.h <<_ACEOF
1724
#define VERSION "$VERSION"
1727
# Some tools Automake needs.
1729
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1732
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1735
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1738
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1741
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1743
install_sh=${install_sh-"$am_aux_dir/install-sh"}
1745
# Installed binaries are usually stripped using `strip' when the user
1746
# run `make install-strip'. However `strip' might not be the right
1747
# tool to use in cross-compilation environments, therefore Automake
1748
# will honor the `STRIP' environment variable to overrule this program.
1749
if test "$cross_compiling" != no; then
1750
if test -n "$ac_tool_prefix"; then
1751
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1752
set dummy ${ac_tool_prefix}strip; ac_word=$2
1753
echo "$as_me:$LINENO: checking for $ac_word" >&5
1754
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1755
if test "${ac_cv_prog_STRIP+set}" = set; then
1756
echo $ECHO_N "(cached) $ECHO_C" >&6
1758
if test -n "$STRIP"; then
1759
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1761
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1765
test -z "$as_dir" && as_dir=.
1766
for ac_exec_ext in '' $ac_executable_extensions; do
1767
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1768
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1769
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1777
STRIP=$ac_cv_prog_STRIP
1778
if test -n "$STRIP"; then
1779
echo "$as_me:$LINENO: result: $STRIP" >&5
1780
echo "${ECHO_T}$STRIP" >&6
1782
echo "$as_me:$LINENO: result: no" >&5
1783
echo "${ECHO_T}no" >&6
1787
if test -z "$ac_cv_prog_STRIP"; then
1789
# Extract the first word of "strip", so it can be a program name with args.
1790
set dummy strip; ac_word=$2
1791
echo "$as_me:$LINENO: checking for $ac_word" >&5
1792
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1793
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1794
echo $ECHO_N "(cached) $ECHO_C" >&6
1796
if test -n "$ac_ct_STRIP"; then
1797
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1799
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1803
test -z "$as_dir" && as_dir=.
1804
for ac_exec_ext in '' $ac_executable_extensions; do
1805
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1806
ac_cv_prog_ac_ct_STRIP="strip"
1807
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1813
test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1816
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1817
if test -n "$ac_ct_STRIP"; then
1818
echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1819
echo "${ECHO_T}$ac_ct_STRIP" >&6
1821
echo "$as_me:$LINENO: result: no" >&5
1822
echo "${ECHO_T}no" >&6
1827
STRIP="$ac_cv_prog_STRIP"
1831
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1833
# We need awk for the "check" target. The system "awk" is bad on
1835
# Always define AMTAR for backward compatibility.
1837
AMTAR=${AMTAR-"${am_missing_run}tar"}
1839
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1845
if test -n "$ac_tool_prefix"; then
1846
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1847
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1848
echo "$as_me:$LINENO: checking for $ac_word" >&5
1849
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1850
if test "${ac_cv_prog_RANLIB+set}" = set; then
1851
echo $ECHO_N "(cached) $ECHO_C" >&6
1853
if test -n "$RANLIB"; then
1854
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1856
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1860
test -z "$as_dir" && as_dir=.
1861
for ac_exec_ext in '' $ac_executable_extensions; do
1862
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1863
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1864
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1872
RANLIB=$ac_cv_prog_RANLIB
1873
if test -n "$RANLIB"; then
1874
echo "$as_me:$LINENO: result: $RANLIB" >&5
1875
echo "${ECHO_T}$RANLIB" >&6
1877
echo "$as_me:$LINENO: result: no" >&5
1878
echo "${ECHO_T}no" >&6
1882
if test -z "$ac_cv_prog_RANLIB"; then
1883
ac_ct_RANLIB=$RANLIB
1884
# Extract the first word of "ranlib", so it can be a program name with args.
1885
set dummy ranlib; ac_word=$2
1886
echo "$as_me:$LINENO: checking for $ac_word" >&5
1887
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1888
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
1889
echo $ECHO_N "(cached) $ECHO_C" >&6
1891
if test -n "$ac_ct_RANLIB"; then
1892
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
1894
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1898
test -z "$as_dir" && as_dir=.
1899
for ac_exec_ext in '' $ac_executable_extensions; do
1900
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1901
ac_cv_prog_ac_ct_RANLIB="ranlib"
1902
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1908
test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
1911
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
1912
if test -n "$ac_ct_RANLIB"; then
1913
echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
1914
echo "${ECHO_T}$ac_ct_RANLIB" >&6
1916
echo "$as_me:$LINENO: result: no" >&5
1917
echo "${ECHO_T}no" >&6
1920
RANLIB=$ac_ct_RANLIB
1922
RANLIB="$ac_cv_prog_RANLIB"
1926
ac_config_headers="$ac_config_headers src/config.h"
1929
# Checks for programs.
1931
ac_cpp='$CPP $CPPFLAGS'
1932
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1933
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1934
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1935
if test -n "$ac_tool_prefix"; then
1936
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1937
set dummy ${ac_tool_prefix}gcc; ac_word=$2
1938
echo "$as_me:$LINENO: checking for $ac_word" >&5
1939
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1940
if test "${ac_cv_prog_CC+set}" = set; then
1941
echo $ECHO_N "(cached) $ECHO_C" >&6
1943
if test -n "$CC"; then
1944
ac_cv_prog_CC="$CC" # Let the user override the test.
1946
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1950
test -z "$as_dir" && as_dir=.
1951
for ac_exec_ext in '' $ac_executable_extensions; do
1952
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1953
ac_cv_prog_CC="${ac_tool_prefix}gcc"
1954
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1963
if test -n "$CC"; then
1964
echo "$as_me:$LINENO: result: $CC" >&5
1965
echo "${ECHO_T}$CC" >&6
1967
echo "$as_me:$LINENO: result: no" >&5
1968
echo "${ECHO_T}no" >&6
1972
if test -z "$ac_cv_prog_CC"; then
1974
# Extract the first word of "gcc", so it can be a program name with args.
1975
set dummy gcc; ac_word=$2
1976
echo "$as_me:$LINENO: checking for $ac_word" >&5
1977
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1978
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1979
echo $ECHO_N "(cached) $ECHO_C" >&6
1981
if test -n "$ac_ct_CC"; then
1982
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1984
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1988
test -z "$as_dir" && as_dir=.
1989
for ac_exec_ext in '' $ac_executable_extensions; do
1990
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1991
ac_cv_prog_ac_ct_CC="gcc"
1992
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2000
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2001
if test -n "$ac_ct_CC"; then
2002
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2003
echo "${ECHO_T}$ac_ct_CC" >&6
2005
echo "$as_me:$LINENO: result: no" >&5
2006
echo "${ECHO_T}no" >&6
2014
if test -z "$CC"; then
2015
if test -n "$ac_tool_prefix"; then
2016
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2017
set dummy ${ac_tool_prefix}cc; ac_word=$2
2018
echo "$as_me:$LINENO: checking for $ac_word" >&5
2019
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2020
if test "${ac_cv_prog_CC+set}" = set; then
2021
echo $ECHO_N "(cached) $ECHO_C" >&6
2023
if test -n "$CC"; then
2024
ac_cv_prog_CC="$CC" # Let the user override the test.
2026
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2030
test -z "$as_dir" && as_dir=.
2031
for ac_exec_ext in '' $ac_executable_extensions; do
2032
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2033
ac_cv_prog_CC="${ac_tool_prefix}cc"
2034
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2043
if test -n "$CC"; then
2044
echo "$as_me:$LINENO: result: $CC" >&5
2045
echo "${ECHO_T}$CC" >&6
2047
echo "$as_me:$LINENO: result: no" >&5
2048
echo "${ECHO_T}no" >&6
2052
if test -z "$ac_cv_prog_CC"; then
2054
# Extract the first word of "cc", so it can be a program name with args.
2055
set dummy cc; ac_word=$2
2056
echo "$as_me:$LINENO: checking for $ac_word" >&5
2057
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2058
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2059
echo $ECHO_N "(cached) $ECHO_C" >&6
2061
if test -n "$ac_ct_CC"; then
2062
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2064
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2068
test -z "$as_dir" && as_dir=.
2069
for ac_exec_ext in '' $ac_executable_extensions; do
2070
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2071
ac_cv_prog_ac_ct_CC="cc"
2072
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2080
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2081
if test -n "$ac_ct_CC"; then
2082
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2083
echo "${ECHO_T}$ac_ct_CC" >&6
2085
echo "$as_me:$LINENO: result: no" >&5
2086
echo "${ECHO_T}no" >&6
2095
if test -z "$CC"; then
2096
# Extract the first word of "cc", so it can be a program name with args.
2097
set dummy cc; ac_word=$2
2098
echo "$as_me:$LINENO: checking for $ac_word" >&5
2099
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2100
if test "${ac_cv_prog_CC+set}" = set; then
2101
echo $ECHO_N "(cached) $ECHO_C" >&6
2103
if test -n "$CC"; then
2104
ac_cv_prog_CC="$CC" # Let the user override the test.
2107
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2111
test -z "$as_dir" && as_dir=.
2112
for ac_exec_ext in '' $ac_executable_extensions; do
2113
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2114
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2115
ac_prog_rejected=yes
2119
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2125
if test $ac_prog_rejected = yes; then
2126
# We found a bogon in the path, so make sure we never use it.
2127
set dummy $ac_cv_prog_CC
2129
if test $# != 0; then
2130
# We chose a different compiler from the bogus one.
2131
# However, it has the same basename, so the bogon will be chosen
2132
# first if we set CC to just the basename; use the full file name.
2134
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2140
if test -n "$CC"; then
2141
echo "$as_me:$LINENO: result: $CC" >&5
2142
echo "${ECHO_T}$CC" >&6
2144
echo "$as_me:$LINENO: result: no" >&5
2145
echo "${ECHO_T}no" >&6
2149
if test -z "$CC"; then
2150
if test -n "$ac_tool_prefix"; then
2153
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2154
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2155
echo "$as_me:$LINENO: checking for $ac_word" >&5
2156
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2157
if test "${ac_cv_prog_CC+set}" = set; then
2158
echo $ECHO_N "(cached) $ECHO_C" >&6
2160
if test -n "$CC"; then
2161
ac_cv_prog_CC="$CC" # Let the user override the test.
2163
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2167
test -z "$as_dir" && as_dir=.
2168
for ac_exec_ext in '' $ac_executable_extensions; do
2169
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2170
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2171
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2180
if test -n "$CC"; then
2181
echo "$as_me:$LINENO: result: $CC" >&5
2182
echo "${ECHO_T}$CC" >&6
2184
echo "$as_me:$LINENO: result: no" >&5
2185
echo "${ECHO_T}no" >&6
2188
test -n "$CC" && break
2191
if test -z "$CC"; then
2195
# Extract the first word of "$ac_prog", so it can be a program name with args.
2196
set dummy $ac_prog; ac_word=$2
2197
echo "$as_me:$LINENO: checking for $ac_word" >&5
2198
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2199
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2200
echo $ECHO_N "(cached) $ECHO_C" >&6
2202
if test -n "$ac_ct_CC"; then
2203
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2205
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2209
test -z "$as_dir" && as_dir=.
2210
for ac_exec_ext in '' $ac_executable_extensions; do
2211
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2212
ac_cv_prog_ac_ct_CC="$ac_prog"
2213
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2221
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2222
if test -n "$ac_ct_CC"; then
2223
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2224
echo "${ECHO_T}$ac_ct_CC" >&6
2226
echo "$as_me:$LINENO: result: no" >&5
2227
echo "${ECHO_T}no" >&6
2230
test -n "$ac_ct_CC" && break
2239
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2240
See \`config.log' for more details." >&5
2241
echo "$as_me: error: no acceptable C compiler found in \$PATH
2242
See \`config.log' for more details." >&2;}
2243
{ (exit 1); exit 1; }; }
2245
# Provide some information about the compiler.
2246
echo "$as_me:$LINENO:" \
2247
"checking for C compiler version" >&5
2248
ac_compiler=`set X $ac_compile; echo $2`
2249
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2250
(eval $ac_compiler --version </dev/null >&5) 2>&5
2252
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2253
(exit $ac_status); }
2254
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2255
(eval $ac_compiler -v </dev/null >&5) 2>&5
2257
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258
(exit $ac_status); }
2259
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2260
(eval $ac_compiler -V </dev/null >&5) 2>&5
2262
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263
(exit $ac_status); }
2265
cat >conftest.$ac_ext <<_ACEOF
2268
cat confdefs.h >>conftest.$ac_ext
2269
cat >>conftest.$ac_ext <<_ACEOF
2270
/* end confdefs.h. */
2280
ac_clean_files_save=$ac_clean_files
2281
ac_clean_files="$ac_clean_files a.out a.exe b.out"
2282
# Try to create an executable without -o first, disregard a.out.
2283
# It will help us diagnose broken compilers, and finding out an intuition
2285
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2286
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2287
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2288
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2289
(eval $ac_link_default) 2>&5
2291
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2292
(exit $ac_status); }; then
2293
# Find the output, starting from the most likely. This scheme is
2294
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2297
# Be careful to initialize this variable, since it used to be cached.
2298
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2300
# b.out is created by i960 compilers.
2301
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2303
test -f "$ac_file" || continue
2305
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2308
# This is the source file.
2311
# We found the default executable, but exeext='' is most
2315
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2316
# FIXME: I believe we export ac_cv_exeext for Libtool,
2317
# but it would be cool to find out if it's true. Does anybody
2318
# maintain Libtool? --akim.
2326
echo "$as_me: failed program was:" >&5
2327
sed 's/^/| /' conftest.$ac_ext >&5
2329
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2330
See \`config.log' for more details." >&5
2331
echo "$as_me: error: C compiler cannot create executables
2332
See \`config.log' for more details." >&2;}
2333
{ (exit 77); exit 77; }; }
2336
ac_exeext=$ac_cv_exeext
2337
echo "$as_me:$LINENO: result: $ac_file" >&5
2338
echo "${ECHO_T}$ac_file" >&6
2340
# Check the compiler produces executables we can run. If not, either
2341
# the compiler is broken, or we cross compile.
2342
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2343
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2344
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2345
# If not cross compiling, check that we can run a simple program.
2346
if test "$cross_compiling" != yes; then
2347
if { ac_try='./$ac_file'
2348
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2351
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352
(exit $ac_status); }; }; then
2355
if test "$cross_compiling" = maybe; then
2358
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2359
If you meant to cross compile, use \`--host'.
2360
See \`config.log' for more details." >&5
2361
echo "$as_me: error: cannot run C compiled programs.
2362
If you meant to cross compile, use \`--host'.
2363
See \`config.log' for more details." >&2;}
2364
{ (exit 1); exit 1; }; }
2368
echo "$as_me:$LINENO: result: yes" >&5
2369
echo "${ECHO_T}yes" >&6
2371
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2372
ac_clean_files=$ac_clean_files_save
2373
# Check the compiler produces executables we can run. If not, either
2374
# the compiler is broken, or we cross compile.
2375
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2376
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2377
echo "$as_me:$LINENO: result: $cross_compiling" >&5
2378
echo "${ECHO_T}$cross_compiling" >&6
2380
echo "$as_me:$LINENO: checking for suffix of executables" >&5
2381
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2382
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2383
(eval $ac_link) 2>&5
2385
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386
(exit $ac_status); }; then
2387
# If both `conftest.exe' and `conftest' are `present' (well, observable)
2388
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2389
# work properly (i.e., refer to `conftest.exe'), while it won't with
2391
for ac_file in conftest.exe conftest conftest.*; do
2392
test -f "$ac_file" || continue
2394
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2395
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2402
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2403
See \`config.log' for more details." >&5
2404
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2405
See \`config.log' for more details." >&2;}
2406
{ (exit 1); exit 1; }; }
2409
rm -f conftest$ac_cv_exeext
2410
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2411
echo "${ECHO_T}$ac_cv_exeext" >&6
2413
rm -f conftest.$ac_ext
2414
EXEEXT=$ac_cv_exeext
2416
echo "$as_me:$LINENO: checking for suffix of object files" >&5
2417
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2418
if test "${ac_cv_objext+set}" = set; then
2419
echo $ECHO_N "(cached) $ECHO_C" >&6
2421
cat >conftest.$ac_ext <<_ACEOF
2424
cat confdefs.h >>conftest.$ac_ext
2425
cat >>conftest.$ac_ext <<_ACEOF
2426
/* end confdefs.h. */
2436
rm -f conftest.o conftest.obj
2437
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2438
(eval $ac_compile) 2>&5
2440
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441
(exit $ac_status); }; then
2442
for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2444
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2445
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2450
echo "$as_me: failed program was:" >&5
2451
sed 's/^/| /' conftest.$ac_ext >&5
2453
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2454
See \`config.log' for more details." >&5
2455
echo "$as_me: error: cannot compute suffix of object files: cannot compile
2456
See \`config.log' for more details." >&2;}
2457
{ (exit 1); exit 1; }; }
2460
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2462
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2463
echo "${ECHO_T}$ac_cv_objext" >&6
2464
OBJEXT=$ac_cv_objext
2466
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2467
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2468
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2469
echo $ECHO_N "(cached) $ECHO_C" >&6
2471
cat >conftest.$ac_ext <<_ACEOF
2474
cat confdefs.h >>conftest.$ac_ext
2475
cat >>conftest.$ac_ext <<_ACEOF
2476
/* end confdefs.h. */
2489
rm -f conftest.$ac_objext
2490
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2491
(eval $ac_compile) 2>conftest.er1
2493
grep -v '^ *+' conftest.er1 >conftest.err
2495
cat conftest.err >&5
2496
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497
(exit $ac_status); } &&
2498
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2499
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2502
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503
(exit $ac_status); }; } &&
2504
{ ac_try='test -s conftest.$ac_objext'
2505
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2508
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509
(exit $ac_status); }; }; then
2512
echo "$as_me: failed program was:" >&5
2513
sed 's/^/| /' conftest.$ac_ext >&5
2517
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2518
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2521
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2522
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2523
GCC=`test $ac_compiler_gnu = yes && echo yes`
2524
ac_test_CFLAGS=${CFLAGS+set}
2525
ac_save_CFLAGS=$CFLAGS
2527
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2528
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2529
if test "${ac_cv_prog_cc_g+set}" = set; then
2530
echo $ECHO_N "(cached) $ECHO_C" >&6
2532
cat >conftest.$ac_ext <<_ACEOF
2535
cat confdefs.h >>conftest.$ac_ext
2536
cat >>conftest.$ac_ext <<_ACEOF
2537
/* end confdefs.h. */
2547
rm -f conftest.$ac_objext
2548
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2549
(eval $ac_compile) 2>conftest.er1
2551
grep -v '^ *+' conftest.er1 >conftest.err
2553
cat conftest.err >&5
2554
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2555
(exit $ac_status); } &&
2556
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2557
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2560
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561
(exit $ac_status); }; } &&
2562
{ ac_try='test -s conftest.$ac_objext'
2563
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2566
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567
(exit $ac_status); }; }; then
2570
echo "$as_me: failed program was:" >&5
2571
sed 's/^/| /' conftest.$ac_ext >&5
2575
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2577
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2578
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2579
if test "$ac_test_CFLAGS" = set; then
2580
CFLAGS=$ac_save_CFLAGS
2581
elif test $ac_cv_prog_cc_g = yes; then
2582
if test "$GCC" = yes; then
2588
if test "$GCC" = yes; then
2594
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2595
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2596
if test "${ac_cv_prog_cc_stdc+set}" = set; then
2597
echo $ECHO_N "(cached) $ECHO_C" >&6
2599
ac_cv_prog_cc_stdc=no
2601
cat >conftest.$ac_ext <<_ACEOF
2604
cat confdefs.h >>conftest.$ac_ext
2605
cat >>conftest.$ac_ext <<_ACEOF
2606
/* end confdefs.h. */
2609
#include <sys/types.h>
2610
#include <sys/stat.h>
2611
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2612
struct buf { int x; };
2613
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2614
static char *e (p, i)
2620
static char *f (char * (*g) (char **, int), char **p, ...)
2625
s = g (p, va_arg (v,int));
2630
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2631
function prototypes and stuff, but not '\xHH' hex character constants.
2632
These don't provoke an error unfortunately, instead are silently treated
2633
as 'x'. The following induces an error, until -std1 is added to get
2634
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2635
array size at least. It's necessary to write '\x00'==0 to get something
2636
that's true only with -std1. */
2637
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2639
int test (int i, double x);
2640
struct s1 {int (*f) (int a);};
2641
struct s2 {int (*f) (double a);};
2642
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2648
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2653
# Don't try gcc -ansi; that turns off useful extensions and
2654
# breaks some systems' header files.
2655
# AIX -qlanglvl=ansi
2656
# Ultrix and OSF/1 -std1
2657
# HP-UX 10.20 and later -Ae
2658
# HP-UX older versions -Aa -D_HPUX_SOURCE
2659
# SVR4 -Xc -D__EXTENSIONS__
2660
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2662
CC="$ac_save_CC $ac_arg"
2663
rm -f conftest.$ac_objext
2664
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2665
(eval $ac_compile) 2>conftest.er1
2667
grep -v '^ *+' conftest.er1 >conftest.err
2669
cat conftest.err >&5
2670
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671
(exit $ac_status); } &&
2672
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2673
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2676
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677
(exit $ac_status); }; } &&
2678
{ ac_try='test -s conftest.$ac_objext'
2679
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2682
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683
(exit $ac_status); }; }; then
2684
ac_cv_prog_cc_stdc=$ac_arg
2687
echo "$as_me: failed program was:" >&5
2688
sed 's/^/| /' conftest.$ac_ext >&5
2691
rm -f conftest.err conftest.$ac_objext
2693
rm -f conftest.$ac_ext conftest.$ac_objext
2698
case "x$ac_cv_prog_cc_stdc" in
2700
echo "$as_me:$LINENO: result: none needed" >&5
2701
echo "${ECHO_T}none needed" >&6 ;;
2703
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2704
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2705
CC="$CC $ac_cv_prog_cc_stdc" ;;
2708
# Some people use a C++ compiler to compile C. Since we use `exit',
2709
# in C++ we need to declare it. In case someone uses the same compiler
2710
# for both compiling C and C++ we need to have the C++ compiler decide
2711
# the declaration of exit, since it's the most demanding environment.
2712
cat >conftest.$ac_ext <<_ACEOF
2717
rm -f conftest.$ac_objext
2718
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2719
(eval $ac_compile) 2>conftest.er1
2721
grep -v '^ *+' conftest.er1 >conftest.err
2723
cat conftest.err >&5
2724
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725
(exit $ac_status); } &&
2726
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2727
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2730
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731
(exit $ac_status); }; } &&
2732
{ ac_try='test -s conftest.$ac_objext'
2733
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2736
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737
(exit $ac_status); }; }; then
2738
for ac_declaration in \
2740
'extern "C" void std::exit (int) throw (); using std::exit;' \
2741
'extern "C" void std::exit (int); using std::exit;' \
2742
'extern "C" void exit (int) throw ();' \
2743
'extern "C" void exit (int);' \
2746
cat >conftest.$ac_ext <<_ACEOF
2749
cat confdefs.h >>conftest.$ac_ext
2750
cat >>conftest.$ac_ext <<_ACEOF
2751
/* end confdefs.h. */
2762
rm -f conftest.$ac_objext
2763
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2764
(eval $ac_compile) 2>conftest.er1
2766
grep -v '^ *+' conftest.er1 >conftest.err
2768
cat conftest.err >&5
2769
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770
(exit $ac_status); } &&
2771
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2772
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2775
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776
(exit $ac_status); }; } &&
2777
{ ac_try='test -s conftest.$ac_objext'
2778
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2781
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782
(exit $ac_status); }; }; then
2785
echo "$as_me: failed program was:" >&5
2786
sed 's/^/| /' conftest.$ac_ext >&5
2790
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2791
cat >conftest.$ac_ext <<_ACEOF
2794
cat confdefs.h >>conftest.$ac_ext
2795
cat >>conftest.$ac_ext <<_ACEOF
2796
/* end confdefs.h. */
2806
rm -f conftest.$ac_objext
2807
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2808
(eval $ac_compile) 2>conftest.er1
2810
grep -v '^ *+' conftest.er1 >conftest.err
2812
cat conftest.err >&5
2813
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814
(exit $ac_status); } &&
2815
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2816
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2819
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820
(exit $ac_status); }; } &&
2821
{ ac_try='test -s conftest.$ac_objext'
2822
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2825
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826
(exit $ac_status); }; }; then
2829
echo "$as_me: failed program was:" >&5
2830
sed 's/^/| /' conftest.$ac_ext >&5
2833
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2836
if test -n "$ac_declaration"; then
2837
echo '#ifdef __cplusplus' >>confdefs.h
2838
echo $ac_declaration >>confdefs.h
2839
echo '#endif' >>confdefs.h
2843
echo "$as_me: failed program was:" >&5
2844
sed 's/^/| /' conftest.$ac_ext >&5
2847
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2849
ac_cpp='$CPP $CPPFLAGS'
2850
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2851
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2852
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2853
DEPDIR="${am__leading_dot}deps"
2855
ac_config_commands="$ac_config_commands depfiles"
2858
am_make=${MAKE-make}
2859
cat > confinc << 'END'
2864
# If we don't find an include directive, just comment out the code.
2865
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2866
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2870
# First try GNU make style include.
2871
echo "include confinc" > confmf
2872
# We grep out `Entering directory' and `Leaving directory'
2873
# messages which can occur if `w' ends up in MAKEFLAGS.
2874
# In particular we don't look at `^make:' because GNU make might
2875
# be invoked under some other name (usually "gmake"), in which
2876
# case it prints its new name instead of `make'.
2877
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2882
# Now try BSD make style include.
2883
if test "$am__include" = "#"; then
2884
echo '.include "confinc"' > confmf
2885
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2886
am__include=.include
2893
echo "$as_me:$LINENO: result: $_am_result" >&5
2894
echo "${ECHO_T}$_am_result" >&6
2895
rm -f confinc confmf
2897
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2898
if test "${enable_dependency_tracking+set}" = set; then
2899
enableval="$enable_dependency_tracking"
2902
if test "x$enable_dependency_tracking" != xno; then
2903
am_depcomp="$ac_aux_dir/depcomp"
2908
if test "x$enable_dependency_tracking" != xno; then
2919
depcc="$CC" am_compiler_list=
2921
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2922
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2923
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2924
echo $ECHO_N "(cached) $ECHO_C" >&6
2926
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2927
# We make a subdir and do the tests there. Otherwise we can end up
2928
# making bogus files that we don't know about and never remove. For
2929
# instance it was reported that on HP-UX the gcc test will end up
2930
# making a dummy file named `D' -- because `-MD' means `put the output
2933
# Copy depcomp to subdir because otherwise we won't find it if we're
2934
# using a relative directory.
2935
cp "$am_depcomp" conftest.dir
2937
# We will build objects and dependencies in a subdirectory because
2938
# it helps to detect inapplicable dependency modes. For instance
2939
# both Tru64's cc and ICC support -MD to output dependencies as a
2940
# side effect of compilation, but ICC will put the dependencies in
2941
# the current directory while Tru64 will put them in the object
2945
am_cv_CC_dependencies_compiler_type=none
2946
if test "$am_compiler_list" = ""; then
2947
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2949
for depmode in $am_compiler_list; do
2950
# Setup a source with many dependencies, because some compilers
2951
# like to wrap large dependency lists on column 80 (with \), and
2952
# we should not choose a depcomp mode which is confused by this.
2954
# We need to recreate these files for each test, as the compiler may
2955
# overwrite some of them when testing with obscure command lines.
2956
# This happens at least with the AIX C compiler.
2958
for i in 1 2 3 4 5 6; do
2959
echo '#include "conftst'$i'.h"' >> sub/conftest.c
2960
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2961
# Solaris 8's {/usr,}/bin/sh.
2962
touch sub/conftst$i.h
2964
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2968
# after this tag, mechanisms are not by side-effect, so they'll
2969
# only be used when explicitly requested
2970
if test "x$enable_dependency_tracking" = xyes; then
2978
# We check with `-c' and `-o' for the sake of the "dashmstdout"
2979
# mode. It turns out that the SunPro C++ compiler does not properly
2980
# handle `-M -o', and we need to detect this.
2981
if depmode=$depmode \
2982
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2983
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2984
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2985
>/dev/null 2>conftest.err &&
2986
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2987
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2988
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2989
# icc doesn't choke on unknown options, it will just issue warnings
2990
# or remarks (even with -Werror). So we grep stderr for any message
2991
# that says an option was ignored or not supported.
2992
# When given -MP, icc 7.0 and 7.1 complain thusly:
2993
# icc: Command line warning: ignoring option '-M'; no argument required
2994
# The diagnosis changed in icc 8.0:
2995
# icc: Command line remark: option '-MP' not supported
2996
if (grep 'ignoring option' conftest.err ||
2997
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2998
am_cv_CC_dependencies_compiler_type=$depmode
3007
am_cv_CC_dependencies_compiler_type=none
3011
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3012
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3013
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3018
test "x$enable_dependency_tracking" != xno \
3019
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3021
am__fastdepCC_FALSE='#'
3023
am__fastdepCC_TRUE='#'
3024
am__fastdepCC_FALSE=
3028
# By default we simply use the C compiler to build assembly code.
3030
test "${CCAS+set}" = set || CCAS=$CC
3031
test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
3036
# Checks for functions.
3039
ac_cpp='$CPP $CPPFLAGS'
3040
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3041
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3042
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3043
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3044
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3045
# On Suns, sometimes $CPP names a directory.
3046
if test -n "$CPP" && test -d "$CPP"; then
3049
if test -z "$CPP"; then
3050
if test "${ac_cv_prog_CPP+set}" = set; then
3051
echo $ECHO_N "(cached) $ECHO_C" >&6
3053
# Double quotes because CPP needs to be expanded
3054
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3057
for ac_c_preproc_warn_flag in '' yes
3059
# Use a header file that comes with gcc, so configuring glibc
3060
# with a fresh cross-compiler works.
3061
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3062
# <limits.h> exists even on freestanding compilers.
3063
# On the NeXT, cc -E runs the code through the compiler's parser,
3064
# not just through cpp. "Syntax error" is here to catch this case.
3065
cat >conftest.$ac_ext <<_ACEOF
3068
cat confdefs.h >>conftest.$ac_ext
3069
cat >>conftest.$ac_ext <<_ACEOF
3070
/* end confdefs.h. */
3072
# include <limits.h>
3074
# include <assert.h>
3078
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3079
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3081
grep -v '^ *+' conftest.er1 >conftest.err
3083
cat conftest.err >&5
3084
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3085
(exit $ac_status); } >/dev/null; then
3086
if test -s conftest.err; then
3087
ac_cpp_err=$ac_c_preproc_warn_flag
3088
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3095
if test -z "$ac_cpp_err"; then
3098
echo "$as_me: failed program was:" >&5
3099
sed 's/^/| /' conftest.$ac_ext >&5
3101
# Broken: fails on valid input.
3104
rm -f conftest.err conftest.$ac_ext
3106
# OK, works on sane cases. Now check whether non-existent headers
3107
# can be detected and how.
3108
cat >conftest.$ac_ext <<_ACEOF
3111
cat confdefs.h >>conftest.$ac_ext
3112
cat >>conftest.$ac_ext <<_ACEOF
3113
/* end confdefs.h. */
3114
#include <ac_nonexistent.h>
3116
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3117
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3119
grep -v '^ *+' conftest.er1 >conftest.err
3121
cat conftest.err >&5
3122
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123
(exit $ac_status); } >/dev/null; then
3124
if test -s conftest.err; then
3125
ac_cpp_err=$ac_c_preproc_warn_flag
3126
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3133
if test -z "$ac_cpp_err"; then
3134
# Broken: success on invalid input.
3137
echo "$as_me: failed program was:" >&5
3138
sed 's/^/| /' conftest.$ac_ext >&5
3140
# Passes both tests.
3144
rm -f conftest.err conftest.$ac_ext
3147
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3148
rm -f conftest.err conftest.$ac_ext
3149
if $ac_preproc_ok; then
3161
echo "$as_me:$LINENO: result: $CPP" >&5
3162
echo "${ECHO_T}$CPP" >&6
3164
for ac_c_preproc_warn_flag in '' yes
3166
# Use a header file that comes with gcc, so configuring glibc
3167
# with a fresh cross-compiler works.
3168
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3169
# <limits.h> exists even on freestanding compilers.
3170
# On the NeXT, cc -E runs the code through the compiler's parser,
3171
# not just through cpp. "Syntax error" is here to catch this case.
3172
cat >conftest.$ac_ext <<_ACEOF
3175
cat confdefs.h >>conftest.$ac_ext
3176
cat >>conftest.$ac_ext <<_ACEOF
3177
/* end confdefs.h. */
3179
# include <limits.h>
3181
# include <assert.h>
3185
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3186
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3188
grep -v '^ *+' conftest.er1 >conftest.err
3190
cat conftest.err >&5
3191
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3192
(exit $ac_status); } >/dev/null; then
3193
if test -s conftest.err; then
3194
ac_cpp_err=$ac_c_preproc_warn_flag
3195
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3202
if test -z "$ac_cpp_err"; then
3205
echo "$as_me: failed program was:" >&5
3206
sed 's/^/| /' conftest.$ac_ext >&5
3208
# Broken: fails on valid input.
3211
rm -f conftest.err conftest.$ac_ext
3213
# OK, works on sane cases. Now check whether non-existent headers
3214
# can be detected and how.
3215
cat >conftest.$ac_ext <<_ACEOF
3218
cat confdefs.h >>conftest.$ac_ext
3219
cat >>conftest.$ac_ext <<_ACEOF
3220
/* end confdefs.h. */
3221
#include <ac_nonexistent.h>
3223
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3224
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3226
grep -v '^ *+' conftest.er1 >conftest.err
3228
cat conftest.err >&5
3229
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230
(exit $ac_status); } >/dev/null; then
3231
if test -s conftest.err; then
3232
ac_cpp_err=$ac_c_preproc_warn_flag
3233
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3240
if test -z "$ac_cpp_err"; then
3241
# Broken: success on invalid input.
3244
echo "$as_me: failed program was:" >&5
3245
sed 's/^/| /' conftest.$ac_ext >&5
3247
# Passes both tests.
3251
rm -f conftest.err conftest.$ac_ext
3254
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3255
rm -f conftest.err conftest.$ac_ext
3256
if $ac_preproc_ok; then
3259
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3260
See \`config.log' for more details." >&5
3261
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3262
See \`config.log' for more details." >&2;}
3263
{ (exit 1); exit 1; }; }
3267
ac_cpp='$CPP $CPPFLAGS'
3268
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3269
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3270
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3273
echo "$as_me:$LINENO: checking for egrep" >&5
3274
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3275
if test "${ac_cv_prog_egrep+set}" = set; then
3276
echo $ECHO_N "(cached) $ECHO_C" >&6
3278
if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3279
then ac_cv_prog_egrep='grep -E'
3280
else ac_cv_prog_egrep='egrep'
3283
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3284
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3285
EGREP=$ac_cv_prog_egrep
3288
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3289
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3290
if test "${ac_cv_header_stdc+set}" = set; then
3291
echo $ECHO_N "(cached) $ECHO_C" >&6
3293
cat >conftest.$ac_ext <<_ACEOF
3296
cat confdefs.h >>conftest.$ac_ext
3297
cat >>conftest.$ac_ext <<_ACEOF
3298
/* end confdefs.h. */
3312
rm -f conftest.$ac_objext
3313
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3314
(eval $ac_compile) 2>conftest.er1
3316
grep -v '^ *+' conftest.er1 >conftest.err
3318
cat conftest.err >&5
3319
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320
(exit $ac_status); } &&
3321
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3322
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3325
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3326
(exit $ac_status); }; } &&
3327
{ ac_try='test -s conftest.$ac_objext'
3328
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3331
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3332
(exit $ac_status); }; }; then
3333
ac_cv_header_stdc=yes
3335
echo "$as_me: failed program was:" >&5
3336
sed 's/^/| /' conftest.$ac_ext >&5
3338
ac_cv_header_stdc=no
3340
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3342
if test $ac_cv_header_stdc = yes; then
3343
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3344
cat >conftest.$ac_ext <<_ACEOF
3347
cat confdefs.h >>conftest.$ac_ext
3348
cat >>conftest.$ac_ext <<_ACEOF
3349
/* end confdefs.h. */
3353
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3354
$EGREP "memchr" >/dev/null 2>&1; then
3357
ac_cv_header_stdc=no
3363
if test $ac_cv_header_stdc = yes; then
3364
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3365
cat >conftest.$ac_ext <<_ACEOF
3368
cat confdefs.h >>conftest.$ac_ext
3369
cat >>conftest.$ac_ext <<_ACEOF
3370
/* end confdefs.h. */
3374
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3375
$EGREP "free" >/dev/null 2>&1; then
3378
ac_cv_header_stdc=no
3384
if test $ac_cv_header_stdc = yes; then
3385
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3386
if test "$cross_compiling" = yes; then
3389
cat >conftest.$ac_ext <<_ACEOF
3392
cat confdefs.h >>conftest.$ac_ext
3393
cat >>conftest.$ac_ext <<_ACEOF
3394
/* end confdefs.h. */
3396
#if ((' ' & 0x0FF) == 0x020)
3397
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3398
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3400
# define ISLOWER(c) \
3401
(('a' <= (c) && (c) <= 'i') \
3402
|| ('j' <= (c) && (c) <= 'r') \
3403
|| ('s' <= (c) && (c) <= 'z'))
3404
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3407
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3412
for (i = 0; i < 256; i++)
3413
if (XOR (islower (i), ISLOWER (i))
3414
|| toupper (i) != TOUPPER (i))
3419
rm -f conftest$ac_exeext
3420
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3421
(eval $ac_link) 2>&5
3423
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3425
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3428
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3429
(exit $ac_status); }; }; then
3432
echo "$as_me: program exited with status $ac_status" >&5
3433
echo "$as_me: failed program was:" >&5
3434
sed 's/^/| /' conftest.$ac_ext >&5
3437
ac_cv_header_stdc=no
3439
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3443
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3444
echo "${ECHO_T}$ac_cv_header_stdc" >&6
3445
if test $ac_cv_header_stdc = yes; then
3447
cat >>confdefs.h <<\_ACEOF
3448
#define STDC_HEADERS 1
3453
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3463
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3464
inttypes.h stdint.h unistd.h
3466
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3467
echo "$as_me:$LINENO: checking for $ac_header" >&5
3468
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3469
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3470
echo $ECHO_N "(cached) $ECHO_C" >&6
3472
cat >conftest.$ac_ext <<_ACEOF
3475
cat confdefs.h >>conftest.$ac_ext
3476
cat >>conftest.$ac_ext <<_ACEOF
3477
/* end confdefs.h. */
3478
$ac_includes_default
3480
#include <$ac_header>
3482
rm -f conftest.$ac_objext
3483
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3484
(eval $ac_compile) 2>conftest.er1
3486
grep -v '^ *+' conftest.er1 >conftest.err
3488
cat conftest.err >&5
3489
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3490
(exit $ac_status); } &&
3491
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3492
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3495
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3496
(exit $ac_status); }; } &&
3497
{ ac_try='test -s conftest.$ac_objext'
3498
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3501
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502
(exit $ac_status); }; }; then
3503
eval "$as_ac_Header=yes"
3505
echo "$as_me: failed program was:" >&5
3506
sed 's/^/| /' conftest.$ac_ext >&5
3508
eval "$as_ac_Header=no"
3510
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3512
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3513
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3514
if test `eval echo '${'$as_ac_Header'}'` = yes; then
3515
cat >>confdefs.h <<_ACEOF
3516
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3526
for ac_header in stdlib.h unistd.h
3528
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3529
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3530
echo "$as_me:$LINENO: checking for $ac_header" >&5
3531
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3532
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3533
echo $ECHO_N "(cached) $ECHO_C" >&6
3535
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3536
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3538
# Is the header compilable?
3539
echo "$as_me:$LINENO: checking $ac_header usability" >&5
3540
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3541
cat >conftest.$ac_ext <<_ACEOF
3544
cat confdefs.h >>conftest.$ac_ext
3545
cat >>conftest.$ac_ext <<_ACEOF
3546
/* end confdefs.h. */
3547
$ac_includes_default
3548
#include <$ac_header>
3550
rm -f conftest.$ac_objext
3551
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3552
(eval $ac_compile) 2>conftest.er1
3554
grep -v '^ *+' conftest.er1 >conftest.err
3556
cat conftest.err >&5
3557
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558
(exit $ac_status); } &&
3559
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3560
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3563
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564
(exit $ac_status); }; } &&
3565
{ ac_try='test -s conftest.$ac_objext'
3566
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3569
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3570
(exit $ac_status); }; }; then
3571
ac_header_compiler=yes
3573
echo "$as_me: failed program was:" >&5
3574
sed 's/^/| /' conftest.$ac_ext >&5
3576
ac_header_compiler=no
3578
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3579
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3580
echo "${ECHO_T}$ac_header_compiler" >&6
3582
# Is the header present?
3583
echo "$as_me:$LINENO: checking $ac_header presence" >&5
3584
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3585
cat >conftest.$ac_ext <<_ACEOF
3588
cat confdefs.h >>conftest.$ac_ext
3589
cat >>conftest.$ac_ext <<_ACEOF
3590
/* end confdefs.h. */
3591
#include <$ac_header>
3593
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3594
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3596
grep -v '^ *+' conftest.er1 >conftest.err
3598
cat conftest.err >&5
3599
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600
(exit $ac_status); } >/dev/null; then
3601
if test -s conftest.err; then
3602
ac_cpp_err=$ac_c_preproc_warn_flag
3603
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3610
if test -z "$ac_cpp_err"; then
3611
ac_header_preproc=yes
3613
echo "$as_me: failed program was:" >&5
3614
sed 's/^/| /' conftest.$ac_ext >&5
3616
ac_header_preproc=no
3618
rm -f conftest.err conftest.$ac_ext
3619
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3620
echo "${ECHO_T}$ac_header_preproc" >&6
3622
# So? What about this header?
3623
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3625
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3626
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3627
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3628
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3629
ac_header_preproc=yes
3632
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3633
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3634
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3635
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3636
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3637
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3638
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3639
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3640
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3641
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3642
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3643
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3646
## ---------------------------------------- ##
3647
## Report this to the libatomic_ops lists. ##
3648
## ---------------------------------------- ##
3651
sed "s/^/$as_me: WARNING: /" >&2
3654
echo "$as_me:$LINENO: checking for $ac_header" >&5
3655
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3656
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3657
echo $ECHO_N "(cached) $ECHO_C" >&6
3659
eval "$as_ac_Header=\$ac_header_preproc"
3661
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3662
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3665
if test `eval echo '${'$as_ac_Header'}'` = yes; then
3666
cat >>confdefs.h <<_ACEOF
3667
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3675
for ac_func in getpagesize
3677
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3678
echo "$as_me:$LINENO: checking for $ac_func" >&5
3679
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3680
if eval "test \"\${$as_ac_var+set}\" = set"; then
3681
echo $ECHO_N "(cached) $ECHO_C" >&6
3683
cat >conftest.$ac_ext <<_ACEOF
3686
cat confdefs.h >>conftest.$ac_ext
3687
cat >>conftest.$ac_ext <<_ACEOF
3688
/* end confdefs.h. */
3689
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3690
For example, HP-UX 11i <limits.h> declares gettimeofday. */
3691
#define $ac_func innocuous_$ac_func
3693
/* System header to define __stub macros and hopefully few prototypes,
3694
which can conflict with char $ac_func (); below.
3695
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3696
<limits.h> exists even on freestanding compilers. */
3699
# include <limits.h>
3701
# include <assert.h>
3706
/* Override any gcc2 internal prototype to avoid an error. */
3711
/* We use char because int might match the return type of a gcc2
3712
builtin and then its argument prototype would still apply. */
3714
/* The GNU C library defines this for functions which it implements
3715
to always fail with ENOSYS. Some functions are actually named
3716
something starting with __ and the normal name is an alias. */
3717
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3720
char (*f) () = $ac_func;
3729
return f != $ac_func;
3734
rm -f conftest.$ac_objext conftest$ac_exeext
3735
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3736
(eval $ac_link) 2>conftest.er1
3738
grep -v '^ *+' conftest.er1 >conftest.err
3740
cat conftest.err >&5
3741
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3742
(exit $ac_status); } &&
3743
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3744
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3747
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3748
(exit $ac_status); }; } &&
3749
{ ac_try='test -s conftest$ac_exeext'
3750
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3753
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3754
(exit $ac_status); }; }; then
3755
eval "$as_ac_var=yes"
3757
echo "$as_me: failed program was:" >&5
3758
sed 's/^/| /' conftest.$ac_ext >&5
3760
eval "$as_ac_var=no"
3762
rm -f conftest.err conftest.$ac_objext \
3763
conftest$ac_exeext conftest.$ac_ext
3765
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3766
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3767
if test `eval echo '${'$as_ac_var'}'` = yes; then
3768
cat >>confdefs.h <<_ACEOF
3769
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3775
echo "$as_me:$LINENO: checking for working mmap" >&5
3776
echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
3777
if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
3778
echo $ECHO_N "(cached) $ECHO_C" >&6
3780
if test "$cross_compiling" = yes; then
3781
ac_cv_func_mmap_fixed_mapped=no
3783
cat >conftest.$ac_ext <<_ACEOF
3786
cat confdefs.h >>conftest.$ac_ext
3787
cat >>conftest.$ac_ext <<_ACEOF
3788
/* end confdefs.h. */
3789
$ac_includes_default
3790
/* malloc might have been renamed as rpl_malloc. */
3793
/* Thanks to Mike Haertel and Jim Avera for this test.
3794
Here is a matrix of mmap possibilities:
3795
mmap private not fixed
3796
mmap private fixed at somewhere currently unmapped
3797
mmap private fixed at somewhere already mapped
3798
mmap shared not fixed
3799
mmap shared fixed at somewhere currently unmapped
3800
mmap shared fixed at somewhere already mapped
3801
For private mappings, we should verify that changes cannot be read()
3802
back from the file, nor mmap's back from the file at a different
3803
address. (There have been systems where private was not correctly
3804
implemented like the infamous i386 svr4.0, and systems where the
3805
VM page cache was not coherent with the file system buffer cache
3806
like early versions of FreeBSD and possibly contemporary NetBSD.)
3807
For shared mappings, we should conversely verify that changes get
3808
propagated back to all the places they're supposed to be.
3810
Grep wants private fixed already mapped.
3811
The main things grep needs to know about mmap are:
3812
* does it exist and is it safe to write into the mmap'd area
3813
* how to use it (BSD variants) */
3816
#include <sys/mman.h>
3818
#if !STDC_HEADERS && !HAVE_STDLIB_H
3822
/* This mess was copied from the GNU getpagesize.h. */
3823
#if !HAVE_GETPAGESIZE
3824
/* Assume that all systems that can run configure have sys/param.h. */
3825
# if !HAVE_SYS_PARAM_H
3826
# define HAVE_SYS_PARAM_H 1
3829
# ifdef _SC_PAGESIZE
3830
# define getpagesize() sysconf(_SC_PAGESIZE)
3831
# else /* no _SC_PAGESIZE */
3832
# if HAVE_SYS_PARAM_H
3833
# include <sys/param.h>
3834
# ifdef EXEC_PAGESIZE
3835
# define getpagesize() EXEC_PAGESIZE
3836
# else /* no EXEC_PAGESIZE */
3838
# define getpagesize() NBPG * CLSIZE
3841
# endif /* no CLSIZE */
3842
# else /* no NBPG */
3844
# define getpagesize() NBPC
3845
# else /* no NBPC */
3847
# define getpagesize() PAGESIZE
3848
# endif /* PAGESIZE */
3849
# endif /* no NBPC */
3850
# endif /* no NBPG */
3851
# endif /* no EXEC_PAGESIZE */
3852
# else /* no HAVE_SYS_PARAM_H */
3853
# define getpagesize() 8192 /* punt totally */
3854
# endif /* no HAVE_SYS_PARAM_H */
3855
# endif /* no _SC_PAGESIZE */
3857
#endif /* no HAVE_GETPAGESIZE */
3862
char *data, *data2, *data3;
3866
pagesize = getpagesize ();
3868
/* First, make a file with some known garbage in it. */
3869
data = (char *) malloc (pagesize);
3872
for (i = 0; i < pagesize; ++i)
3873
*(data + i) = rand ();
3875
fd = creat ("conftest.mmap", 0600);
3878
if (write (fd, data, pagesize) != pagesize)
3882
/* Next, try to mmap the file at a fixed address which already has
3883
something else allocated at it. If we can, also make sure that
3884
we see the same garbage. */
3885
fd = open ("conftest.mmap", O_RDWR);
3888
data2 = (char *) malloc (2 * pagesize);
3891
data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
3892
if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
3893
MAP_PRIVATE | MAP_FIXED, fd, 0L))
3895
for (i = 0; i < pagesize; ++i)
3896
if (*(data + i) != *(data2 + i))
3899
/* Finally, make sure that changes to the mapped area do not
3900
percolate back to the file as seen by read(). (This is a bug on
3901
some variants of i386 svr4.0.) */
3902
for (i = 0; i < pagesize; ++i)
3903
*(data2 + i) = *(data2 + i) + 1;
3904
data3 = (char *) malloc (pagesize);
3907
if (read (fd, data3, pagesize) != pagesize)
3909
for (i = 0; i < pagesize; ++i)
3910
if (*(data + i) != *(data3 + i))
3916
rm -f conftest$ac_exeext
3917
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3918
(eval $ac_link) 2>&5
3920
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3921
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3922
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3925
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3926
(exit $ac_status); }; }; then
3927
ac_cv_func_mmap_fixed_mapped=yes
3929
echo "$as_me: program exited with status $ac_status" >&5
3930
echo "$as_me: failed program was:" >&5
3931
sed 's/^/| /' conftest.$ac_ext >&5
3934
ac_cv_func_mmap_fixed_mapped=no
3936
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3939
echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
3940
echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
3941
if test $ac_cv_func_mmap_fixed_mapped = yes; then
3943
cat >>confdefs.h <<\_ACEOF
3951
# Checks for header files.
3952
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3953
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3954
if test "${ac_cv_header_stdc+set}" = set; then
3955
echo $ECHO_N "(cached) $ECHO_C" >&6
3957
cat >conftest.$ac_ext <<_ACEOF
3960
cat confdefs.h >>conftest.$ac_ext
3961
cat >>conftest.$ac_ext <<_ACEOF
3962
/* end confdefs.h. */
3976
rm -f conftest.$ac_objext
3977
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3978
(eval $ac_compile) 2>conftest.er1
3980
grep -v '^ *+' conftest.er1 >conftest.err
3982
cat conftest.err >&5
3983
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984
(exit $ac_status); } &&
3985
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3986
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3989
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990
(exit $ac_status); }; } &&
3991
{ ac_try='test -s conftest.$ac_objext'
3992
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3995
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3996
(exit $ac_status); }; }; then
3997
ac_cv_header_stdc=yes
3999
echo "$as_me: failed program was:" >&5
4000
sed 's/^/| /' conftest.$ac_ext >&5
4002
ac_cv_header_stdc=no
4004
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4006
if test $ac_cv_header_stdc = yes; then
4007
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4008
cat >conftest.$ac_ext <<_ACEOF
4011
cat confdefs.h >>conftest.$ac_ext
4012
cat >>conftest.$ac_ext <<_ACEOF
4013
/* end confdefs.h. */
4017
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4018
$EGREP "memchr" >/dev/null 2>&1; then
4021
ac_cv_header_stdc=no
4027
if test $ac_cv_header_stdc = yes; then
4028
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4029
cat >conftest.$ac_ext <<_ACEOF
4032
cat confdefs.h >>conftest.$ac_ext
4033
cat >>conftest.$ac_ext <<_ACEOF
4034
/* end confdefs.h. */
4038
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4039
$EGREP "free" >/dev/null 2>&1; then
4042
ac_cv_header_stdc=no
4048
if test $ac_cv_header_stdc = yes; then
4049
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4050
if test "$cross_compiling" = yes; then
4053
cat >conftest.$ac_ext <<_ACEOF
4056
cat confdefs.h >>conftest.$ac_ext
4057
cat >>conftest.$ac_ext <<_ACEOF
4058
/* end confdefs.h. */
4060
#if ((' ' & 0x0FF) == 0x020)
4061
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4062
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4064
# define ISLOWER(c) \
4065
(('a' <= (c) && (c) <= 'i') \
4066
|| ('j' <= (c) && (c) <= 'r') \
4067
|| ('s' <= (c) && (c) <= 'z'))
4068
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4071
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4076
for (i = 0; i < 256; i++)
4077
if (XOR (islower (i), ISLOWER (i))
4078
|| toupper (i) != TOUPPER (i))
4083
rm -f conftest$ac_exeext
4084
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4085
(eval $ac_link) 2>&5
4087
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4089
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4092
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4093
(exit $ac_status); }; }; then
4096
echo "$as_me: program exited with status $ac_status" >&5
4097
echo "$as_me: failed program was:" >&5
4098
sed 's/^/| /' conftest.$ac_ext >&5
4101
ac_cv_header_stdc=no
4103
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4107
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4108
echo "${ECHO_T}$ac_cv_header_stdc" >&6
4109
if test $ac_cv_header_stdc = yes; then
4111
cat >>confdefs.h <<\_ACEOF
4112
#define STDC_HEADERS 1
4117
# AC_CHECK_HEADERS([ ])
4119
# Determine PIC flag, adjust default CFLAGS
4122
echo "$as_me:$LINENO: checking Determining PIC compiler flag" >&5
4123
echo $ECHO_N "checking Determining PIC compiler flag... $ECHO_C" >&6
4124
if test "$GCC" = yes; then
4125
echo "$as_me:$LINENO: result: -fPIC" >&5
4126
echo "${ECHO_T}-fPIC" >&6
4131
echo "$as_me:$LINENO: result: \"+Z\"" >&5
4132
echo "${ECHO_T}\"+Z\"" >&6
4134
if test "$GCC" != yes; then
4135
CFLAGS="$CFLAGS +O2 -mt"
4139
echo "$as_me:$LINENO: result: -Kpic" >&5
4140
echo "${ECHO_T}-Kpic" >&6
4142
if test "$GCC" != yes; then
4148
echo "$as_me:$LINENO: result: -fPIC" >&5
4149
echo "${ECHO_T}-fPIC" >&6
4151
# Any Linux compiler had better be gcc compatible.
4154
echo "$as_me:$LINENO: result: \"<none>\"" >&5
4155
echo "${ECHO_T}\"<none>\"" >&6
4159
CFLAGS="$CFLAGS -DNDEBUG"
4166
if test x$need_asm = xtrue; then
4175
ac_config_files="$ac_config_files Makefile src/Makefile src/atomic_ops/Makefile src/atomic_ops/sysdeps/Makefile doc/Makefile tests/Makefile"
4177
ac_config_commands="$ac_config_commands default"
4179
cat >confcache <<\_ACEOF
4180
# This file is a shell script that caches the results of configure
4181
# tests run on this system so they can be shared between configure
4182
# scripts and configure runs, see configure's option --config-cache.
4183
# It is not useful on other systems. If it contains results you don't
4184
# want to keep, you may remove or edit it.
4186
# config.status only pays attention to the cache file if you give it
4187
# the --recheck option to rerun configure.
4189
# `ac_cv_env_foo' variables (set or unset) will be overridden when
4190
# loading this file, other *unset* `ac_cv_foo' will be assigned the
4195
# The following way of writing the cache mishandles newlines in values,
4196
# but we know of no workaround that is simple, portable, and efficient.
4197
# So, don't put newlines in cache variables' values.
4198
# Ultrix sh set writes to stderr and can't be redirected directly,
4199
# and sets the high bit in the cache file unless we assign to the vars.
4202
case `(ac_space=' '; set | grep ac_space) 2>&1` in
4204
# `set' does not quote correctly, so add quotes (double-quote
4205
# substitution turns \\\\ into \\, and sed turns \\ into \).
4208
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4211
# `set' quotes correctly as required by POSIX, so do not add quotes.
4213
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4220
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4222
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4224
if diff $cache_file confcache >/dev/null 2>&1; then :; else
4225
if test -w $cache_file; then
4226
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4227
cat confcache >$cache_file
4229
echo "not updating unwritable cache $cache_file"
4234
test "x$prefix" = xNONE && prefix=$ac_default_prefix
4235
# Let make expand exec_prefix.
4236
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4238
# VPATH may cause trouble with some makes, so we remove $(srcdir),
4239
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4240
# trailing colons and then remove the whole line if VPATH becomes empty
4241
# (actually we leave an empty line to preserve line numbers).
4242
if test "x$srcdir" = x.; then
4243
ac_vpsub='/^[ ]*VPATH[ ]*=/{
4244
s/:*\$(srcdir):*/:/;
4245
s/:*\${srcdir}:*/:/;
4247
s/^\([^=]*=[ ]*\):*/\1/;
4253
DEFS=-DHAVE_CONFIG_H
4257
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4258
# 1. Remove the extension, and $U if already installed.
4259
ac_i=`echo "$ac_i" |
4260
sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
4262
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
4263
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
4267
LTLIBOBJS=$ac_ltlibobjs
4270
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
4271
{ { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
4272
Usually this means the macro was only invoked conditionally." >&5
4273
echo "$as_me: error: conditional \"AMDEP\" was never defined.
4274
Usually this means the macro was only invoked conditionally." >&2;}
4275
{ (exit 1); exit 1; }; }
4277
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
4278
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
4279
Usually this means the macro was only invoked conditionally." >&5
4280
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
4281
Usually this means the macro was only invoked conditionally." >&2;}
4282
{ (exit 1); exit 1; }; }
4284
if test -z "${NEED_ASM_TRUE}" && test -z "${NEED_ASM_FALSE}"; then
4285
{ { echo "$as_me:$LINENO: error: conditional \"NEED_ASM\" was never defined.
4286
Usually this means the macro was only invoked conditionally." >&5
4287
echo "$as_me: error: conditional \"NEED_ASM\" was never defined.
4288
Usually this means the macro was only invoked conditionally." >&2;}
4289
{ (exit 1); exit 1; }; }
4292
: ${CONFIG_STATUS=./config.status}
4293
ac_clean_files_save=$ac_clean_files
4294
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4295
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4296
echo "$as_me: creating $CONFIG_STATUS" >&6;}
4297
cat >$CONFIG_STATUS <<_ACEOF
4299
# Generated by $as_me.
4300
# Run this file to recreate the current configuration.
4301
# Compiler output produced by configure, useful for debugging
4302
# configure, is in config.log if it exists.
4307
SHELL=\${CONFIG_SHELL-$SHELL}
4310
cat >>$CONFIG_STATUS <<\_ACEOF
4311
## --------------------- ##
4312
## M4sh Initialization. ##
4313
## --------------------- ##
4315
# Be Bourne compatible
4316
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4319
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4320
# is contrary to our usage. Disable this feature.
4321
alias -g '${1+"$@"}'='"$@"'
4322
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4325
DUALCASE=1; export DUALCASE # for MKS sh
4327
# Support unset when possible.
4328
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4335
# Work around bugs in pre-3.0 UWIN ksh.
4336
$as_unset ENV MAIL MAILPATH
4343
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4344
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4345
LC_TELEPHONE LC_TIME
4347
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
4348
eval $as_var=C; export $as_var
4354
# Required to use basename.
4355
if expr a : '\(a\)' >/dev/null 2>&1; then
4361
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
4362
as_basename=basename
4368
# Name of the executable.
4369
as_me=`$as_basename "$0" ||
4370
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4371
X"$0" : 'X\(//\)$' \| \
4372
X"$0" : 'X\(/\)$' \| \
4373
. : '\(.\)' 2>/dev/null ||
4375
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4376
/^X\/\(\/\/\)$/{ s//\1/; q; }
4377
/^X\/\(\/\).*/{ s//\1/; q; }
4381
# PATH needs CR, and LINENO needs CR and PATH.
4382
# Avoid depending upon Character Ranges.
4383
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4384
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4385
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4386
as_cr_digits='0123456789'
4387
as_cr_alnum=$as_cr_Letters$as_cr_digits
4389
# The user is always right.
4390
if test "${PATH_SEPARATOR+set}" != set; then
4391
echo "#! /bin/sh" >conf$$.sh
4392
echo "exit 0" >>conf$$.sh
4394
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4405
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4406
test "x$as_lineno_1" != "x$as_lineno_2" &&
4407
test "x$as_lineno_3" = "x$as_lineno_2" || {
4408
# Find who we are. Look in the path if we contain no path at all
4411
*[\\/]* ) as_myself=$0 ;;
4412
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4416
test -z "$as_dir" && as_dir=.
4417
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4422
# We did not find ourselves, most probably we were run as `sh COMMAND'
4423
# in which case we are not to be found in the path.
4424
if test "x$as_myself" = x; then
4427
if test ! -f "$as_myself"; then
4428
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4429
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4430
{ (exit 1); exit 1; }; }
4432
case $CONFIG_SHELL in
4434
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4435
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4438
test -z "$as_dir" && as_dir=.
4439
for as_base in sh bash ksh sh5; do
4442
if ("$as_dir/$as_base" -c '
4445
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4446
test "x$as_lineno_1" != "x$as_lineno_2" &&
4447
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
4448
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
4449
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
4450
CONFIG_SHELL=$as_dir/$as_base
4452
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4460
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4461
# uniformly replaced by the line number. The first 'sed' inserts a
4462
# line-number line before each line; the second 'sed' does the real
4463
# work. The second script uses 'N' to pair each line-number line
4464
# with the numbered line, and appends trailing '-' during
4465
# substitution so that $LINENO is not a special case at line end.
4466
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4467
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
4468
sed '=' <$as_myself |
4473
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4476
s,^['$as_cr_digits']*\n,,
4478
chmod +x $as_me.lineno ||
4479
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4480
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4481
{ (exit 1); exit 1; }; }
4483
# Don't try to exec as it changes $[0], causing all sort of problems
4484
# (the dirname of $[0] is not the place where we might find the
4485
# original and so on. Autoconf is especially sensible to this).
4487
# Exit status is that of the last command.
4492
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4493
*c*,-n*) ECHO_N= ECHO_C='
4495
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4496
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
4499
if expr a : '\(a\)' >/dev/null 2>&1; then
4505
rm -f conf$$ conf$$.exe conf$$.file
4507
if ln -s conf$$.file conf$$ 2>/dev/null; then
4508
# We could just check for DJGPP; but this test a) works b) is more generic
4509
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4510
if test -f conf$$.exe; then
4511
# Don't use ln at all; we don't have any links
4516
elif ln conf$$.file conf$$ 2>/dev/null; then
4521
rm -f conf$$ conf$$.exe conf$$.file
4523
if mkdir -p . 2>/dev/null; then
4526
test -d ./-p && rmdir ./-p
4530
as_executable_p="test -f"
4532
# Sed expression to map a string onto a valid CPP name.
4533
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4535
# Sed expression to map a string onto a valid variable name.
4536
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4540
# We need space, tab and new line, in precisely that order.
4550
# Open the log real soon, to keep \$[0] and so on meaningful, and to
4551
# report actual input values of CONFIG_FILES etc. instead of their
4552
# values after options handling. Logging --version etc. is OK.
4556
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4557
## Running $as_me. ##
4562
This file was extended by libatomic_ops $as_me 1.2, which was
4563
generated by GNU Autoconf 2.59. Invocation command line was
4565
CONFIG_FILES = $CONFIG_FILES
4566
CONFIG_HEADERS = $CONFIG_HEADERS
4567
CONFIG_LINKS = $CONFIG_LINKS
4568
CONFIG_COMMANDS = $CONFIG_COMMANDS
4572
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4576
# Files that config.status was made for.
4577
if test -n "$ac_config_files"; then
4578
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4581
if test -n "$ac_config_headers"; then
4582
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4585
if test -n "$ac_config_links"; then
4586
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4589
if test -n "$ac_config_commands"; then
4590
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4593
cat >>$CONFIG_STATUS <<\_ACEOF
4596
\`$as_me' instantiates files from templates according to the
4597
current configuration.
4599
Usage: $0 [OPTIONS] [FILE]...
4601
-h, --help print this help, then exit
4602
-V, --version print version number, then exit
4603
-q, --quiet do not print progress messages
4604
-d, --debug don't remove temporary files
4605
--recheck update $as_me by reconfiguring in the same conditions
4606
--file=FILE[:TEMPLATE]
4607
instantiate the configuration file FILE
4608
--header=FILE[:TEMPLATE]
4609
instantiate the configuration header FILE
4611
Configuration files:
4614
Configuration headers:
4617
Configuration commands:
4620
Report bugs to <bug-autoconf@gnu.org>."
4623
cat >>$CONFIG_STATUS <<_ACEOF
4625
libatomic_ops config.status 1.2
4626
configured by $0, generated by GNU Autoconf 2.59,
4627
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4629
Copyright (C) 2003 Free Software Foundation, Inc.
4630
This config.status script is free software; the Free Software Foundation
4631
gives unlimited permission to copy, distribute and modify it."
4636
cat >>$CONFIG_STATUS <<\_ACEOF
4637
# If no file are specified by the user, then we need to provide default
4638
# value. By we need to know if files were specified by the user.
4644
ac_option=`expr "x$1" : 'x\([^=]*\)='`
4645
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4653
*) # This is not an option, so the user has probably given explicit
4656
ac_need_defaults=false;;
4660
# Handling of the options.
4662
cat >>$CONFIG_STATUS <<\_ACEOF
4663
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4665
--version | --vers* | -V )
4666
echo "$ac_cs_version"; exit 0 ;;
4668
# Conflict between --help and --header
4669
{ { echo "$as_me:$LINENO: error: ambiguous option: $1
4670
Try \`$0 --help' for more information." >&5
4671
echo "$as_me: error: ambiguous option: $1
4672
Try \`$0 --help' for more information." >&2;}
4673
{ (exit 1); exit 1; }; };;
4674
--help | --hel | -h )
4675
echo "$ac_cs_usage"; exit 0 ;;
4676
--debug | --d* | -d )
4678
--file | --fil | --fi | --f )
4680
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
4681
ac_need_defaults=false;;
4682
--header | --heade | --head | --hea )
4684
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
4685
ac_need_defaults=false;;
4686
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
4687
| -silent | --silent | --silen | --sile | --sil | --si | --s)
4691
-*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4692
Try \`$0 --help' for more information." >&5
4693
echo "$as_me: error: unrecognized option: $1
4694
Try \`$0 --help' for more information." >&2;}
4695
{ (exit 1); exit 1; }; } ;;
4697
*) ac_config_targets="$ac_config_targets $1" ;;
4703
ac_configure_extra_args=
4705
if $ac_cs_silent; then
4707
ac_configure_extra_args="$ac_configure_extra_args --silent"
4711
cat >>$CONFIG_STATUS <<_ACEOF
4712
if \$ac_cs_recheck; then
4713
echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
4714
exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4719
cat >>$CONFIG_STATUS <<_ACEOF
4721
# INIT-COMMANDS section.
4724
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
4733
cat >>$CONFIG_STATUS <<\_ACEOF
4734
for ac_config_target in $ac_config_targets
4736
case "$ac_config_target" in
4737
# Handling of arguments.
4738
"Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4739
"src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
4740
"src/atomic_ops/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/atomic_ops/Makefile" ;;
4741
"src/atomic_ops/sysdeps/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/atomic_ops/sysdeps/Makefile" ;;
4742
"doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
4743
"tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
4744
"depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
4745
"default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
4746
"src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
4747
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4748
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4749
{ (exit 1); exit 1; }; };;
4753
# If the user did not use the arguments to specify the items to instantiate,
4754
# then the envvar interface is used. Set only those that are not.
4755
# We use the long form for the default assignment because of an extremely
4756
# bizarre bug on SunOS 4.1.3.
4757
if $ac_need_defaults; then
4758
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4759
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4760
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
4763
# Have a temporary directory for convenience. Make it in the build tree
4764
# simply because there is no reason to put it here, and in addition,
4765
# creating and moving files from /tmp can sometimes cause problems.
4766
# Create a temporary directory, and hook for its removal unless debugging.
4769
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4770
trap '{ (exit 1); exit 1; }' 1 2 13 15
4773
# Create a (secure) tmp directory for tmp files.
4776
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
4777
test -n "$tmp" && test -d "$tmp"
4780
tmp=./confstat$$-$RANDOM
4781
(umask 077 && mkdir $tmp)
4784
echo "$me: cannot create a temporary directory in ." >&2
4785
{ (exit 1); exit 1; }
4790
cat >>$CONFIG_STATUS <<_ACEOF
4793
# CONFIG_FILES section.
4796
# No need to generate the scripts if there are no CONFIG_FILES.
4797
# This happens for instance when ./config.status config.h
4798
if test -n "\$CONFIG_FILES"; then
4799
# Protect against being on the right side of a sed subst in config.status.
4800
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4801
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4802
s,@SHELL@,$SHELL,;t t
4803
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4804
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4805
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4806
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4807
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4808
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4809
s,@exec_prefix@,$exec_prefix,;t t
4810
s,@prefix@,$prefix,;t t
4811
s,@program_transform_name@,$program_transform_name,;t t
4812
s,@bindir@,$bindir,;t t
4813
s,@sbindir@,$sbindir,;t t
4814
s,@libexecdir@,$libexecdir,;t t
4815
s,@datadir@,$datadir,;t t
4816
s,@sysconfdir@,$sysconfdir,;t t
4817
s,@sharedstatedir@,$sharedstatedir,;t t
4818
s,@localstatedir@,$localstatedir,;t t
4819
s,@libdir@,$libdir,;t t
4820
s,@includedir@,$includedir,;t t
4821
s,@oldincludedir@,$oldincludedir,;t t
4822
s,@infodir@,$infodir,;t t
4823
s,@mandir@,$mandir,;t t
4824
s,@build_alias@,$build_alias,;t t
4825
s,@host_alias@,$host_alias,;t t
4826
s,@target_alias@,$target_alias,;t t
4828
s,@ECHO_C@,$ECHO_C,;t t
4829
s,@ECHO_N@,$ECHO_N,;t t
4830
s,@ECHO_T@,$ECHO_T,;t t
4832
s,@build@,$build,;t t
4833
s,@build_cpu@,$build_cpu,;t t
4834
s,@build_vendor@,$build_vendor,;t t
4835
s,@build_os@,$build_os,;t t
4837
s,@host_cpu@,$host_cpu,;t t
4838
s,@host_vendor@,$host_vendor,;t t
4839
s,@host_os@,$host_os,;t t
4840
s,@target@,$target,;t t
4841
s,@target_cpu@,$target_cpu,;t t
4842
s,@target_vendor@,$target_vendor,;t t
4843
s,@target_os@,$target_os,;t t
4844
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
4845
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
4846
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
4847
s,@CYGPATH_W@,$CYGPATH_W,;t t
4848
s,@PACKAGE@,$PACKAGE,;t t
4849
s,@VERSION@,$VERSION,;t t
4850
s,@ACLOCAL@,$ACLOCAL,;t t
4851
s,@AUTOCONF@,$AUTOCONF,;t t
4852
s,@AUTOMAKE@,$AUTOMAKE,;t t
4853
s,@AUTOHEADER@,$AUTOHEADER,;t t
4854
s,@MAKEINFO@,$MAKEINFO,;t t
4855
s,@install_sh@,$install_sh,;t t
4856
s,@STRIP@,$STRIP,;t t
4857
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
4858
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
4859
s,@mkdir_p@,$mkdir_p,;t t
4861
s,@SET_MAKE@,$SET_MAKE,;t t
4862
s,@am__leading_dot@,$am__leading_dot,;t t
4863
s,@AMTAR@,$AMTAR,;t t
4864
s,@am__tar@,$am__tar,;t t
4865
s,@am__untar@,$am__untar,;t t
4866
s,@RANLIB@,$RANLIB,;t t
4867
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
4869
s,@CFLAGS@,$CFLAGS,;t t
4870
s,@LDFLAGS@,$LDFLAGS,;t t
4871
s,@CPPFLAGS@,$CPPFLAGS,;t t
4872
s,@ac_ct_CC@,$ac_ct_CC,;t t
4873
s,@EXEEXT@,$EXEEXT,;t t
4874
s,@OBJEXT@,$OBJEXT,;t t
4875
s,@DEPDIR@,$DEPDIR,;t t
4876
s,@am__include@,$am__include,;t t
4877
s,@am__quote@,$am__quote,;t t
4878
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
4879
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
4880
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
4881
s,@CCDEPMODE@,$CCDEPMODE,;t t
4882
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
4883
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
4885
s,@CCASFLAGS@,$CCASFLAGS,;t t
4887
s,@EGREP@,$EGREP,;t t
4888
s,@PICFLAG@,$PICFLAG,;t t
4889
s,@NEED_ASM_TRUE@,$NEED_ASM_TRUE,;t t
4890
s,@NEED_ASM_FALSE@,$NEED_ASM_FALSE,;t t
4891
s,@LIBOBJS@,$LIBOBJS,;t t
4892
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
4897
cat >>$CONFIG_STATUS <<\_ACEOF
4898
# Split the substitutions into bite-sized pieces for seds with
4899
# small command number limits, like on Digital OSF/1 and HP-UX.
4901
ac_sed_frag=1 # Number of current file.
4902
ac_beg=1 # First line for current file.
4903
ac_end=$ac_max_sed_lines # Line after last line for current file.
4906
while $ac_more_lines; do
4907
if test $ac_beg -gt 1; then
4908
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4910
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4912
if test ! -s $tmp/subs.frag; then
4915
# The purpose of the label and of the branching condition is to
4916
# speed up the sed processing (if there are no `@' at all, there
4917
# is no need to browse any of the substitutions).
4918
# These are the two extra sed commands mentioned above.
4920
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4921
if test -z "$ac_sed_cmds"; then
4922
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4924
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4926
ac_sed_frag=`expr $ac_sed_frag + 1`
4928
ac_end=`expr $ac_end + $ac_max_sed_lines`
4931
if test -z "$ac_sed_cmds"; then
4934
fi # test -n "$CONFIG_FILES"
4937
cat >>$CONFIG_STATUS <<\_ACEOF
4938
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4939
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4941
- | *:- | *:-:* ) # input from stdin
4943
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4944
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4945
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4946
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4947
* ) ac_file_in=$ac_file.in ;;
4950
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4951
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4952
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4953
X"$ac_file" : 'X\(//\)[^/]' \| \
4954
X"$ac_file" : 'X\(//\)$' \| \
4955
X"$ac_file" : 'X\(/\)' \| \
4956
. : '\(.\)' 2>/dev/null ||
4958
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4959
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
4960
/^X\(\/\/\)$/{ s//\1/; q; }
4961
/^X\(\/\).*/{ s//\1/; q; }
4963
{ if $as_mkdir_p; then
4968
while test ! -d "$as_dir"; do
4969
as_dirs="$as_dir $as_dirs"
4970
as_dir=`(dirname "$as_dir") 2>/dev/null ||
4971
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4972
X"$as_dir" : 'X\(//\)[^/]' \| \
4973
X"$as_dir" : 'X\(//\)$' \| \
4974
X"$as_dir" : 'X\(/\)' \| \
4975
. : '\(.\)' 2>/dev/null ||
4977
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4978
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
4979
/^X\(\/\/\)$/{ s//\1/; q; }
4980
/^X\(\/\).*/{ s//\1/; q; }
4983
test ! -n "$as_dirs" || mkdir $as_dirs
4984
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4985
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4986
{ (exit 1); exit 1; }; }; }
4990
if test "$ac_dir" != .; then
4991
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4992
# A "../" for each directory in $ac_dir_suffix.
4993
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4995
ac_dir_suffix= ac_top_builddir=
4999
.) # No --srcdir option. We are building in place.
5001
if test -z "$ac_top_builddir"; then
5004
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5006
[\\/]* | ?:[\\/]* ) # Absolute path.
5007
ac_srcdir=$srcdir$ac_dir_suffix;
5008
ac_top_srcdir=$srcdir ;;
5010
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5011
ac_top_srcdir=$ac_top_builddir$srcdir ;;
5014
# Do not use `cd foo && pwd` to compute absolute paths, because
5015
# the directories may not exist.
5017
.) ac_abs_builddir="$ac_dir";;
5020
.) ac_abs_builddir=`pwd`;;
5021
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5022
*) ac_abs_builddir=`pwd`/"$ac_dir";;
5025
case $ac_abs_builddir in
5026
.) ac_abs_top_builddir=${ac_top_builddir}.;;
5028
case ${ac_top_builddir}. in
5029
.) ac_abs_top_builddir=$ac_abs_builddir;;
5030
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5031
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5034
case $ac_abs_builddir in
5035
.) ac_abs_srcdir=$ac_srcdir;;
5038
.) ac_abs_srcdir=$ac_abs_builddir;;
5039
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5040
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5043
case $ac_abs_builddir in
5044
.) ac_abs_top_srcdir=$ac_top_srcdir;;
5046
case $ac_top_srcdir in
5047
.) ac_abs_top_srcdir=$ac_abs_builddir;;
5048
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5049
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5055
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5056
*) ac_INSTALL=$ac_top_builddir$INSTALL ;;
5059
# Let's still pretend it is `configure' which instantiates (i.e., don't
5060
# use $as_me), people would be surprised to read:
5061
# /* config.h. Generated by config.status. */
5062
if test x"$ac_file" = x-; then
5065
configure_input="$ac_file. "
5067
configure_input=$configure_input"Generated from `echo $ac_file_in |
5068
sed 's,.*/,,'` by configure."
5070
# First look for the input files in the build tree, otherwise in the
5072
ac_file_inputs=`IFS=:
5073
for f in $ac_file_in; do
5075
-) echo $tmp/stdin ;;
5077
# Absolute (can't be DOS-style, as IFS=:)
5078
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5079
echo "$as_me: error: cannot find input file: $f" >&2;}
5080
{ (exit 1); exit 1; }; }
5083
if test -f "$f"; then
5086
elif test -f "$srcdir/$f"; then
5091
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5092
echo "$as_me: error: cannot find input file: $f" >&2;}
5093
{ (exit 1); exit 1; }; }
5096
done` || { (exit 1); exit 1; }
5098
if test x"$ac_file" != x-; then
5099
{ echo "$as_me:$LINENO: creating $ac_file" >&5
5100
echo "$as_me: creating $ac_file" >&6;}
5104
cat >>$CONFIG_STATUS <<_ACEOF
5108
cat >>$CONFIG_STATUS <<\_ACEOF
5110
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5111
s,@configure_input@,$configure_input,;t t
5112
s,@srcdir@,$ac_srcdir,;t t
5113
s,@abs_srcdir@,$ac_abs_srcdir,;t t
5114
s,@top_srcdir@,$ac_top_srcdir,;t t
5115
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5116
s,@builddir@,$ac_builddir,;t t
5117
s,@abs_builddir@,$ac_abs_builddir,;t t
5118
s,@top_builddir@,$ac_top_builddir,;t t
5119
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5120
s,@INSTALL@,$ac_INSTALL,;t t
5121
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5123
if test x"$ac_file" != x-; then
5124
mv $tmp/out $ac_file
5132
cat >>$CONFIG_STATUS <<\_ACEOF
5135
# CONFIG_HEADER section.
5138
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5139
# NAME is the cpp macro being defined and VALUE is the value it is being given.
5141
# ac_d sets the value in "#define NAME VALUE" lines.
5142
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5143
ac_dB='[ ].*$,\1#\2'
5146
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5147
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5148
ac_uB='$,\1#\2define\3'
5152
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
5153
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5155
- | *:- | *:-:* ) # input from stdin
5157
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5158
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5159
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5160
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5161
* ) ac_file_in=$ac_file.in ;;
5164
test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
5165
echo "$as_me: creating $ac_file" >&6;}
5167
# First look for the input files in the build tree, otherwise in the
5169
ac_file_inputs=`IFS=:
5170
for f in $ac_file_in; do
5172
-) echo $tmp/stdin ;;
5174
# Absolute (can't be DOS-style, as IFS=:)
5175
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5176
echo "$as_me: error: cannot find input file: $f" >&2;}
5177
{ (exit 1); exit 1; }; }
5178
# Do quote $f, to prevent DOS paths from being IFS'd.
5181
if test -f "$f"; then
5184
elif test -f "$srcdir/$f"; then
5189
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5190
echo "$as_me: error: cannot find input file: $f" >&2;}
5191
{ (exit 1); exit 1; }; }
5194
done` || { (exit 1); exit 1; }
5195
# Remove the trailing spaces.
5196
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
5200
# Transform confdefs.h into two sed scripts, `conftest.defines' and
5201
# `conftest.undefs', that substitutes the proper values into
5202
# config.h.in to produce config.h. The first handles `#define'
5203
# templates, and the second `#undef' templates.
5204
# And first: Protect against being on the right side of a sed subst in
5205
# config.status. Protect against being in an unquoted here document
5207
rm -f conftest.defines conftest.undefs
5208
# Using a here document instead of a string reduces the quoting nightmare.
5209
# Putting comments in sed scripts is not portable.
5211
# `end' is used to avoid that the second main sed command (meant for
5212
# 0-ary CPP macros) applies to n-ary macro definitions.
5213
# See the Autoconf documentation for `clear'.
5214
cat >confdef2sed.sed <<\_ACEOF
5219
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
5221
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
5224
# If some macros were called several times there might be several times
5225
# the same #defines, which is useless. Nevertheless, we may not want to
5226
# sort them, since we want the *last* AC-DEFINE to be honored.
5227
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
5228
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
5229
rm -f confdef2sed.sed
5231
# This sed command replaces #undef with comments. This is necessary, for
5232
# example, in the case of _POSIX_SOURCE, which is predefined and required
5233
# on some systems where configure will not decide to define it.
5234
cat >>conftest.undefs <<\_ACEOF
5235
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
5238
# Break up conftest.defines because some shells have a limit on the size
5239
# of here documents, and old seds have small limits too (100 cmds).
5240
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
5241
echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
5242
echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
5243
echo ' :' >>$CONFIG_STATUS
5245
while grep . conftest.defines >/dev/null
5247
# Write a limited-size here document to $tmp/defines.sed.
5248
echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
5249
# Speed up: don't consider the non `#define' lines.
5250
echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
5251
# Work around the forget-to-reset-the-flag bug.
5252
echo 't clr' >>$CONFIG_STATUS
5253
echo ': clr' >>$CONFIG_STATUS
5254
sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
5256
sed -f $tmp/defines.sed $tmp/in >$tmp/out
5260
sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
5261
rm -f conftest.defines
5262
mv conftest.tail conftest.defines
5264
rm -f conftest.defines
5265
echo ' fi # grep' >>$CONFIG_STATUS
5266
echo >>$CONFIG_STATUS
5268
# Break up conftest.undefs because some shells have a limit on the size
5269
# of here documents, and old seds have small limits too (100 cmds).
5270
echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
5272
while grep . conftest.undefs >/dev/null
5274
# Write a limited-size here document to $tmp/undefs.sed.
5275
echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
5276
# Speed up: don't consider the non `#undef'
5277
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
5278
# Work around the forget-to-reset-the-flag bug.
5279
echo 't clr' >>$CONFIG_STATUS
5280
echo ': clr' >>$CONFIG_STATUS
5281
sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
5283
sed -f $tmp/undefs.sed $tmp/in >$tmp/out
5287
sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
5288
rm -f conftest.undefs
5289
mv conftest.tail conftest.undefs
5291
rm -f conftest.undefs
5293
cat >>$CONFIG_STATUS <<\_ACEOF
5294
# Let's still pretend it is `configure' which instantiates (i.e., don't
5295
# use $as_me), people would be surprised to read:
5296
# /* config.h. Generated by config.status. */
5297
if test x"$ac_file" = x-; then
5298
echo "/* Generated by configure. */" >$tmp/config.h
5300
echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
5302
cat $tmp/in >>$tmp/config.h
5304
if test x"$ac_file" != x-; then
5305
if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
5306
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
5307
echo "$as_me: $ac_file is unchanged" >&6;}
5309
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5310
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5311
X"$ac_file" : 'X\(//\)[^/]' \| \
5312
X"$ac_file" : 'X\(//\)$' \| \
5313
X"$ac_file" : 'X\(/\)' \| \
5314
. : '\(.\)' 2>/dev/null ||
5316
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5317
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
5318
/^X\(\/\/\)$/{ s//\1/; q; }
5319
/^X\(\/\).*/{ s//\1/; q; }
5321
{ if $as_mkdir_p; then
5326
while test ! -d "$as_dir"; do
5327
as_dirs="$as_dir $as_dirs"
5328
as_dir=`(dirname "$as_dir") 2>/dev/null ||
5329
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5330
X"$as_dir" : 'X\(//\)[^/]' \| \
5331
X"$as_dir" : 'X\(//\)$' \| \
5332
X"$as_dir" : 'X\(/\)' \| \
5333
. : '\(.\)' 2>/dev/null ||
5335
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5336
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
5337
/^X\(\/\/\)$/{ s//\1/; q; }
5338
/^X\(\/\).*/{ s//\1/; q; }
5341
test ! -n "$as_dirs" || mkdir $as_dirs
5342
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5343
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5344
{ (exit 1); exit 1; }; }; }
5347
mv $tmp/config.h $ac_file
5353
# Compute $ac_file's index in $config_headers.
5355
for _am_header in $config_headers :; do
5357
$ac_file | $ac_file:* )
5360
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
5363
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
5364
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5365
X$ac_file : 'X\(//\)[^/]' \| \
5366
X$ac_file : 'X\(//\)$' \| \
5367
X$ac_file : 'X\(/\)' \| \
5368
. : '\(.\)' 2>/dev/null ||
5370
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5371
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
5372
/^X\(\/\/\)$/{ s//\1/; q; }
5373
/^X\(\/\).*/{ s//\1/; q; }
5374
s/.*/./; q'`/stamp-h$_am_stamp_count
5377
cat >>$CONFIG_STATUS <<\_ACEOF
5380
# CONFIG_COMMANDS section.
5382
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
5383
ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
5384
ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
5385
ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
5386
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5387
X"$ac_dest" : 'X\(//\)[^/]' \| \
5388
X"$ac_dest" : 'X\(//\)$' \| \
5389
X"$ac_dest" : 'X\(/\)' \| \
5390
. : '\(.\)' 2>/dev/null ||
5392
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5393
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
5394
/^X\(\/\/\)$/{ s//\1/; q; }
5395
/^X\(\/\).*/{ s//\1/; q; }
5397
{ if $as_mkdir_p; then
5402
while test ! -d "$as_dir"; do
5403
as_dirs="$as_dir $as_dirs"
5404
as_dir=`(dirname "$as_dir") 2>/dev/null ||
5405
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5406
X"$as_dir" : 'X\(//\)[^/]' \| \
5407
X"$as_dir" : 'X\(//\)$' \| \
5408
X"$as_dir" : 'X\(/\)' \| \
5409
. : '\(.\)' 2>/dev/null ||
5411
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5412
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
5413
/^X\(\/\/\)$/{ s//\1/; q; }
5414
/^X\(\/\).*/{ s//\1/; q; }
5417
test ! -n "$as_dirs" || mkdir $as_dirs
5418
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5419
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5420
{ (exit 1); exit 1; }; }; }
5424
if test "$ac_dir" != .; then
5425
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5426
# A "../" for each directory in $ac_dir_suffix.
5427
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5429
ac_dir_suffix= ac_top_builddir=
5433
.) # No --srcdir option. We are building in place.
5435
if test -z "$ac_top_builddir"; then
5438
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5440
[\\/]* | ?:[\\/]* ) # Absolute path.
5441
ac_srcdir=$srcdir$ac_dir_suffix;
5442
ac_top_srcdir=$srcdir ;;
5444
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5445
ac_top_srcdir=$ac_top_builddir$srcdir ;;
5448
# Do not use `cd foo && pwd` to compute absolute paths, because
5449
# the directories may not exist.
5451
.) ac_abs_builddir="$ac_dir";;
5454
.) ac_abs_builddir=`pwd`;;
5455
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5456
*) ac_abs_builddir=`pwd`/"$ac_dir";;
5459
case $ac_abs_builddir in
5460
.) ac_abs_top_builddir=${ac_top_builddir}.;;
5462
case ${ac_top_builddir}. in
5463
.) ac_abs_top_builddir=$ac_abs_builddir;;
5464
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5465
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5468
case $ac_abs_builddir in
5469
.) ac_abs_srcdir=$ac_srcdir;;
5472
.) ac_abs_srcdir=$ac_abs_builddir;;
5473
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5474
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5477
case $ac_abs_builddir in
5478
.) ac_abs_top_srcdir=$ac_top_srcdir;;
5480
case $ac_top_srcdir in
5481
.) ac_abs_top_srcdir=$ac_abs_builddir;;
5482
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5483
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5488
{ echo "$as_me:$LINENO: executing $ac_dest commands" >&5
5489
echo "$as_me: executing $ac_dest commands" >&6;}
5491
depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
5492
# Strip MF so we end up with the name of the file.
5493
mf=`echo "$mf" | sed -e 's/:.*$//'`
5494
# Check whether this is an Automake generated Makefile or not.
5495
# We used to match only the files named `Makefile.in', but
5496
# some people rename them; so instead we look at the file content.
5497
# Grep'ing the first line is not enough: some people post-process
5498
# each Makefile.in and add a new line on top of each file to say so.
5499
# So let's grep whole file.
5500
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
5501
dirpart=`(dirname "$mf") 2>/dev/null ||
5502
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5503
X"$mf" : 'X\(//\)[^/]' \| \
5504
X"$mf" : 'X\(//\)$' \| \
5505
X"$mf" : 'X\(/\)' \| \
5506
. : '\(.\)' 2>/dev/null ||
5508
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5509
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
5510
/^X\(\/\/\)$/{ s//\1/; q; }
5511
/^X\(\/\).*/{ s//\1/; q; }
5516
# Extract the definition of DEPDIR, am__include, and am__quote
5517
# from the Makefile without running `make'.
5518
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
5519
test -z "$DEPDIR" && continue
5520
am__include=`sed -n 's/^am__include = //p' < "$mf"`
5521
test -z "am__include" && continue
5522
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
5523
# When using ansi2knr, U may be empty or an underscore; expand it
5524
U=`sed -n 's/^U = //p' < "$mf"`
5525
# Find all dependency output files, they are included files with
5526
# $(DEPDIR) in their names. We invoke sed twice because it is the
5527
# simplest approach to changing $(DEPDIR) to its actual value in the
5529
for file in `sed -n "
5530
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
5531
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
5532
# Make sure the directory exists.
5533
test -f "$dirpart/$file" && continue
5534
fdir=`(dirname "$file") 2>/dev/null ||
5535
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5536
X"$file" : 'X\(//\)[^/]' \| \
5537
X"$file" : 'X\(//\)$' \| \
5538
X"$file" : 'X\(/\)' \| \
5539
. : '\(.\)' 2>/dev/null ||
5541
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5542
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
5543
/^X\(\/\/\)$/{ s//\1/; q; }
5544
/^X\(\/\).*/{ s//\1/; q; }
5546
{ if $as_mkdir_p; then
5547
mkdir -p $dirpart/$fdir
5549
as_dir=$dirpart/$fdir
5551
while test ! -d "$as_dir"; do
5552
as_dirs="$as_dir $as_dirs"
5553
as_dir=`(dirname "$as_dir") 2>/dev/null ||
5554
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5555
X"$as_dir" : 'X\(//\)[^/]' \| \
5556
X"$as_dir" : 'X\(//\)$' \| \
5557
X"$as_dir" : 'X\(/\)' \| \
5558
. : '\(.\)' 2>/dev/null ||
5560
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5561
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
5562
/^X\(\/\/\)$/{ s//\1/; q; }
5563
/^X\(\/\).*/{ s//\1/; q; }
5566
test ! -n "$as_dirs" || mkdir $as_dirs
5567
fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
5568
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
5569
{ (exit 1); exit 1; }; }; }
5571
# echo "creating $dirpart/$file"
5572
echo '# dummy' > "$dirpart/$file"
5581
cat >>$CONFIG_STATUS <<\_ACEOF
5583
{ (exit 0); exit 0; }
5585
chmod +x $CONFIG_STATUS
5586
ac_clean_files=$ac_clean_files_save
5589
# configure is writing to config.log, and then calls config.status.
5590
# config.status does its own redirection, appending to config.log.
5591
# Unfortunately, on DOS this fails, as config.log is still kept open
5592
# by configure, so config.status won't be able to write to it; its
5593
# output is simply discarded. So we exec the FD to /dev/null,
5594
# effectively closing config.log, so it can be properly (re)opened and
5595
# appended to by config.status. When coming back to configure, we
5596
# need to make the FD available again.
5597
if test "$no_create" != yes; then
5599
ac_config_status_args=
5600
test "$silent" = yes &&
5601
ac_config_status_args="$ac_config_status_args --quiet"
5603
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5605
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
5606
# would make configure fail if this is the last instruction.
5607
$ac_cs_success || { (exit 1); exit 1; }