2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.63 for libffcall/trampoline 0x010B.
5
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6
# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7
# This configure script is free software; the Free Software Foundation
8
# gives unlimited permission to copy, distribute and modify it.
9
## --------------------- ##
10
## M4sh Initialization. ##
11
## --------------------- ##
13
# Be more Bourne compatible
14
DUALCASE=1; export DUALCASE # for MKS sh
15
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19
# is contrary to our usage. Disable this feature.
20
alias -g '${1+"$@"}'='"$@"'
23
case `(set -o) 2>/dev/null` in
24
*posix*) set -o posix ;;
33
# Avoid depending upon Character Ranges.
34
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37
as_cr_digits='0123456789'
38
as_cr_alnum=$as_cr_Letters$as_cr_digits
43
# Printing a long string crashes Solaris 7 /usr/bin/printf.
44
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47
if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53
as_echo_n='/usr/ucb/echo -n'
55
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60
expr "X$arg" : "X\\(.*\\)$as_nl";
61
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66
as_echo_n='sh -c $as_echo_n_body as_echo'
69
as_echo='sh -c $as_echo_body as_echo'
72
# The user is always right.
73
if test "${PATH_SEPARATOR+set}" != set; then
75
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81
# Support unset when possible.
82
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
90
# We need space, tab and new line, in precisely that order. Quoting is
91
# there to prevent editors from complaining about space-tab.
92
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
93
# splitting by setting IFS to empty value.)
96
# Find who we are. Look in the path if we contain no directory separator.
98
*[\\/]* ) as_myself=$0 ;;
99
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103
test -z "$as_dir" && as_dir=.
104
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
110
# We did not find ourselves, most probably we were run as `sh COMMAND'
111
# in which case we are not to be found in the path.
112
if test "x$as_myself" = x; then
115
if test ! -f "$as_myself"; then
116
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117
{ (exit 1); exit 1; }
120
# Work around bugs in pre-3.0 UWIN ksh.
121
for as_var in ENV MAIL MAILPATH
122
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
134
# Required to use basename.
135
if expr a : '\(a\)' >/dev/null 2>&1 &&
136
test "X`expr 00001 : '.*\(...\)'`" = X001; then
142
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
149
# Name of the executable.
150
as_me=`$as_basename -- "$0" ||
151
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152
X"$0" : 'X\(//\)$' \| \
153
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
155
sed '/^.*\/\([^/][^/]*\)\/*$/{
173
if test "x$CONFIG_SHELL" = x; then
174
if (eval ":") 2>/dev/null; then
180
if test $as_have_required = yes && (eval ":
190
as_func_ret_success () {
193
as_func_ret_failure () {
198
if as_func_success; then
202
echo as_func_success failed.
205
if as_func_failure; then
207
echo as_func_failure succeeded.
210
if as_func_ret_success; then
214
echo as_func_ret_success failed.
217
if as_func_ret_failure; then
219
echo as_func_ret_failure succeeded.
222
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
226
echo positional parameters were not saved.
229
test \$exitcode = 0) || { (exit 1); exit 1; }
234
test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235
test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236
") 2> /dev/null; then
240
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244
test -z "$as_dir" && as_dir=.
247
for as_base in sh bash ksh sh5; do
248
as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
255
for as_shell in $as_candidate_shells $SHELL; do
256
# Try only shells that exist, to save several forks.
257
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258
{ ("$as_shell") 2> /dev/null <<\_ASEOF
259
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263
# is contrary to our usage. Disable this feature.
264
alias -g '${1+"$@"}'='"$@"'
267
case `(set -o) 2>/dev/null` in
268
*posix*) set -o posix ;;
277
CONFIG_SHELL=$as_shell
279
if { "$as_shell" 2> /dev/null <<\_ASEOF
280
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284
# is contrary to our usage. Disable this feature.
285
alias -g '${1+"$@"}'='"$@"'
288
case `(set -o) 2>/dev/null` in
289
*posix*) set -o posix ;;
305
as_func_ret_success () {
308
as_func_ret_failure () {
313
if as_func_success; then
317
echo as_func_success failed.
320
if as_func_failure; then
322
echo as_func_failure succeeded.
325
if as_func_ret_success; then
329
echo as_func_ret_success failed.
332
if as_func_ret_failure; then
334
echo as_func_ret_failure succeeded.
337
if ( set x; as_func_ret_success y && test x = "$1" ); then
341
echo positional parameters were not saved.
344
test $exitcode = 0) || { (exit 1); exit 1; }
349
test "x$as_lineno_1" != "x$as_lineno_2" &&
350
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
361
if test "x$CONFIG_SHELL" != x; then
362
for as_var in BASH_ENV ENV
363
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366
exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370
if test $as_have_required = no; then
371
echo This script requires a shell more modern than all the
372
echo shells that I found on your system. Please install a
373
echo modern shell, or manually run the script under such a
374
echo shell if you do have one.
375
{ (exit 1); exit 1; }
385
(eval "as_func_return () {
394
as_func_ret_success () {
397
as_func_ret_failure () {
402
if as_func_success; then
406
echo as_func_success failed.
409
if as_func_failure; then
411
echo as_func_failure succeeded.
414
if as_func_ret_success; then
418
echo as_func_ret_success failed.
421
if as_func_ret_failure; then
423
echo as_func_ret_failure succeeded.
426
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
430
echo positional parameters were not saved.
433
test \$exitcode = 0") || {
434
echo No shell found that supports shell functions.
435
echo Please tell bug-autoconf@gnu.org about your system,
436
echo including any error possibly output before this message.
437
echo This can help us improve future autoconf versions.
438
echo Configuration will now proceed without shell functions.
445
test "x$as_lineno_1" != "x$as_lineno_2" &&
446
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
448
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449
# uniformly replaced by the line number. The first 'sed' inserts a
450
# line-number line after each line using $LINENO; the second 'sed'
451
# does the real work. The second script uses 'N' to pair each
452
# line-number line with the line containing $LINENO, and appends
453
# trailing '-' during substitution so that $LINENO is not a special
455
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456
# scripts with optimization help from Paolo Bonzini. Blame Lee
457
# E. McMahon (1931-1989) for sed's syntax. :-)
469
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
473
chmod +x "$as_me.lineno" ||
474
{ $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475
{ (exit 1); exit 1; }; }
477
# Don't try to exec as it changes $[0], causing all sort of problems
478
# (the dirname of $[0] is not the place where we might find the
479
# original and so on. Autoconf is especially sensitive to this).
481
# Exit status is that of the last command.
486
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
492
ECHO_C= ECHO_N= ECHO_T=
496
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
502
if expr a : '\(a\)' >/dev/null 2>&1 &&
503
test "X`expr 00001 : '.*\(...\)'`" = X001; then
509
rm -f conf$$ conf$$.exe conf$$.file
510
if test -d conf$$.dir; then
511
rm -f conf$$.dir/conf$$.file
514
mkdir conf$$.dir 2>/dev/null
516
if (echo >conf$$.file) 2>/dev/null; then
517
if ln -s conf$$.file conf$$ 2>/dev/null; then
519
# ... but there are two gotchas:
520
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522
# In both cases, we have to default to `cp -p'.
523
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
525
elif ln conf$$.file conf$$ 2>/dev/null; then
533
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534
rmdir conf$$.dir 2>/dev/null
536
if mkdir -p . 2>/dev/null; then
539
test -d ./-p && rmdir ./-p
543
if test -x / >/dev/null 2>&1; then
546
if ls -dL / >/dev/null 2>&1; then
553
if test -d "$1"; then
559
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560
???[sx]*):;;*)false;;esac;fi
564
as_executable_p=$as_test_x
566
# Sed expression to map a string onto a valid CPP name.
567
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569
# Sed expression to map a string onto a valid variable name.
570
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
574
exec 7<&0 </dev/null 6>&1
577
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578
# so uname gets run too.
579
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
584
ac_default_prefix=/usr/local
586
ac_config_libobj_dir=.
592
SHELL=${CONFIG_SHELL-/bin/sh}
594
# Identity of this package.
595
PACKAGE_NAME='libffcall/trampoline'
596
PACKAGE_TARNAME='libffcall-trampoline'
597
PACKAGE_VERSION='0x010B'
598
PACKAGE_STRING='libffcall/trampoline 0x010B'
601
ac_unique_file="trampoline.h.in"
602
# Factoring default headers for most tests.
603
ac_includes_default="\
605
#ifdef HAVE_SYS_TYPES_H
606
# include <sys/types.h>
608
#ifdef HAVE_SYS_STAT_H
609
# include <sys/stat.h>
615
# ifdef HAVE_STDLIB_H
620
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
625
#ifdef HAVE_STRINGS_H
626
# include <strings.h>
628
#ifdef HAVE_INTTYPES_H
629
# include <inttypes.h>
638
ac_subst_vars='LTLIBOBJS
697
program_transform_name
709
enable_option_checking
711
ac_precious_vars='build_alias
722
# Initialize some variables set by options.
724
ac_init_version=false
725
ac_unrecognized_opts=
727
# The variables have the same names as the options, with
728
# dashes changed to underlines.
736
program_transform_name=s,x,x,
744
# Installation directory options.
745
# These are left unexpanded so users can "make install exec_prefix=/foo"
746
# and all the variables that are supposed to be based on exec_prefix
747
# by default will actually change.
748
# Use braces instead of parens because sh, perl, etc. also accept them.
749
# (The list follows the same order as the GNU Coding Standards.)
750
bindir='${exec_prefix}/bin'
751
sbindir='${exec_prefix}/sbin'
752
libexecdir='${exec_prefix}/libexec'
753
datarootdir='${prefix}/share'
754
datadir='${datarootdir}'
755
sysconfdir='${prefix}/etc'
756
sharedstatedir='${prefix}/com'
757
localstatedir='${prefix}/var'
758
includedir='${prefix}/include'
759
oldincludedir='/usr/include'
760
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
761
infodir='${datarootdir}/info'
766
libdir='${exec_prefix}/lib'
767
localedir='${datarootdir}/locale'
768
mandir='${datarootdir}/man'
774
# If the previous option needs an argument, assign it.
775
if test -n "$ac_prev"; then
776
eval $ac_prev=\$ac_option
782
*=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
786
# Accept the important Cygnus configure options, so we can diagnose typos.
788
case $ac_dashdash$ac_option in
792
-bindir | --bindir | --bindi | --bind | --bin | --bi)
794
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
797
-build | --build | --buil | --bui | --bu)
798
ac_prev=build_alias ;;
799
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
800
build_alias=$ac_optarg ;;
802
-cache-file | --cache-file | --cache-fil | --cache-fi \
803
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
804
ac_prev=cache_file ;;
805
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
806
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
807
cache_file=$ac_optarg ;;
810
cache_file=config.cache ;;
812
-datadir | --datadir | --datadi | --datad)
814
-datadir=* | --datadir=* | --datadi=* | --datad=*)
815
datadir=$ac_optarg ;;
817
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
818
| --dataroo | --dataro | --datar)
819
ac_prev=datarootdir ;;
820
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
821
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
822
datarootdir=$ac_optarg ;;
824
-disable-* | --disable-*)
825
ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
826
# Reject names that are not valid shell variable names.
827
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
828
{ $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
829
{ (exit 1); exit 1; }; }
830
ac_useropt_orig=$ac_useropt
831
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
832
case $ac_user_opts in
836
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
837
ac_unrecognized_sep=', ';;
839
eval enable_$ac_useropt=no ;;
841
-docdir | --docdir | --docdi | --doc | --do)
843
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
846
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
848
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
851
-enable-* | --enable-*)
852
ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
853
# Reject names that are not valid shell variable names.
854
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
855
{ $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
856
{ (exit 1); exit 1; }; }
857
ac_useropt_orig=$ac_useropt
858
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
859
case $ac_user_opts in
863
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
864
ac_unrecognized_sep=', ';;
866
eval enable_$ac_useropt=\$ac_optarg ;;
868
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
869
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
870
| --exec | --exe | --ex)
871
ac_prev=exec_prefix ;;
872
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
873
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
874
| --exec=* | --exe=* | --ex=*)
875
exec_prefix=$ac_optarg ;;
877
-gas | --gas | --ga | --g)
878
# Obsolete; use --with-gas.
881
-help | --help | --hel | --he | -h)
883
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
884
ac_init_help=recursive ;;
885
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
886
ac_init_help=short ;;
888
-host | --host | --hos | --ho)
889
ac_prev=host_alias ;;
890
-host=* | --host=* | --hos=* | --ho=*)
891
host_alias=$ac_optarg ;;
893
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
895
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
897
htmldir=$ac_optarg ;;
899
-includedir | --includedir | --includedi | --included | --include \
900
| --includ | --inclu | --incl | --inc)
901
ac_prev=includedir ;;
902
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
903
| --includ=* | --inclu=* | --incl=* | --inc=*)
904
includedir=$ac_optarg ;;
906
-infodir | --infodir | --infodi | --infod | --info | --inf)
908
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
909
infodir=$ac_optarg ;;
911
-libdir | --libdir | --libdi | --libd)
913
-libdir=* | --libdir=* | --libdi=* | --libd=*)
916
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
917
| --libexe | --libex | --libe)
918
ac_prev=libexecdir ;;
919
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
920
| --libexe=* | --libex=* | --libe=*)
921
libexecdir=$ac_optarg ;;
923
-localedir | --localedir | --localedi | --localed | --locale)
925
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
926
localedir=$ac_optarg ;;
928
-localstatedir | --localstatedir | --localstatedi | --localstated \
929
| --localstate | --localstat | --localsta | --localst | --locals)
930
ac_prev=localstatedir ;;
931
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
932
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
933
localstatedir=$ac_optarg ;;
935
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
937
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
941
# Obsolete; use --without-fp.
944
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
945
| --no-cr | --no-c | -n)
948
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
949
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
952
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
953
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
954
| --oldin | --oldi | --old | --ol | --o)
955
ac_prev=oldincludedir ;;
956
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
957
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
958
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
959
oldincludedir=$ac_optarg ;;
961
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
963
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
966
-program-prefix | --program-prefix | --program-prefi | --program-pref \
967
| --program-pre | --program-pr | --program-p)
968
ac_prev=program_prefix ;;
969
-program-prefix=* | --program-prefix=* | --program-prefi=* \
970
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
971
program_prefix=$ac_optarg ;;
973
-program-suffix | --program-suffix | --program-suffi | --program-suff \
974
| --program-suf | --program-su | --program-s)
975
ac_prev=program_suffix ;;
976
-program-suffix=* | --program-suffix=* | --program-suffi=* \
977
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
978
program_suffix=$ac_optarg ;;
980
-program-transform-name | --program-transform-name \
981
| --program-transform-nam | --program-transform-na \
982
| --program-transform-n | --program-transform- \
983
| --program-transform | --program-transfor \
984
| --program-transfo | --program-transf \
985
| --program-trans | --program-tran \
986
| --progr-tra | --program-tr | --program-t)
987
ac_prev=program_transform_name ;;
988
-program-transform-name=* | --program-transform-name=* \
989
| --program-transform-nam=* | --program-transform-na=* \
990
| --program-transform-n=* | --program-transform-=* \
991
| --program-transform=* | --program-transfor=* \
992
| --program-transfo=* | --program-transf=* \
993
| --program-trans=* | --program-tran=* \
994
| --progr-tra=* | --program-tr=* | --program-t=*)
995
program_transform_name=$ac_optarg ;;
997
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
999
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1000
pdfdir=$ac_optarg ;;
1002
-psdir | --psdir | --psdi | --psd | --ps)
1004
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1007
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1008
| -silent | --silent | --silen | --sile | --sil)
1011
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1013
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1015
sbindir=$ac_optarg ;;
1017
-sharedstatedir | --sharedstatedir | --sharedstatedi \
1018
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1019
| --sharedst | --shareds | --shared | --share | --shar \
1021
ac_prev=sharedstatedir ;;
1022
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1023
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1024
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1026
sharedstatedir=$ac_optarg ;;
1028
-site | --site | --sit)
1030
-site=* | --site=* | --sit=*)
1033
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1035
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1036
srcdir=$ac_optarg ;;
1038
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1039
| --syscon | --sysco | --sysc | --sys | --sy)
1040
ac_prev=sysconfdir ;;
1041
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1042
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1043
sysconfdir=$ac_optarg ;;
1045
-target | --target | --targe | --targ | --tar | --ta | --t)
1046
ac_prev=target_alias ;;
1047
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1048
target_alias=$ac_optarg ;;
1050
-v | -verbose | --verbose | --verbos | --verbo | --verb)
1053
-version | --version | --versio | --versi | --vers | -V)
1054
ac_init_version=: ;;
1057
ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1058
# Reject names that are not valid shell variable names.
1059
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1060
{ $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1061
{ (exit 1); exit 1; }; }
1062
ac_useropt_orig=$ac_useropt
1063
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1064
case $ac_user_opts in
1068
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1069
ac_unrecognized_sep=', ';;
1071
eval with_$ac_useropt=\$ac_optarg ;;
1073
-without-* | --without-*)
1074
ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1075
# Reject names that are not valid shell variable names.
1076
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1077
{ $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1078
{ (exit 1); exit 1; }; }
1079
ac_useropt_orig=$ac_useropt
1080
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1081
case $ac_user_opts in
1085
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1086
ac_unrecognized_sep=', ';;
1088
eval with_$ac_useropt=no ;;
1091
# Obsolete; use --with-x.
1094
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1095
| --x-incl | --x-inc | --x-in | --x-i)
1096
ac_prev=x_includes ;;
1097
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1098
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1099
x_includes=$ac_optarg ;;
1101
-x-libraries | --x-libraries | --x-librarie | --x-librari \
1102
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1103
ac_prev=x_libraries ;;
1104
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1105
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1106
x_libraries=$ac_optarg ;;
1108
-*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1109
Try \`$0 --help' for more information." >&2
1110
{ (exit 1); exit 1; }; }
1114
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1115
# Reject names that are not valid shell variable names.
1116
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1117
{ $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1118
{ (exit 1); exit 1; }; }
1119
eval $ac_envvar=\$ac_optarg
1120
export $ac_envvar ;;
1123
# FIXME: should be removed in autoconf 3.0.
1124
$as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1125
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1126
$as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1127
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1133
if test -n "$ac_prev"; then
1134
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1135
{ $as_echo "$as_me: error: missing argument to $ac_option" >&2
1136
{ (exit 1); exit 1; }; }
1139
if test -n "$ac_unrecognized_opts"; then
1140
case $enable_option_checking in
1142
fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1143
{ (exit 1); exit 1; }; } ;;
1144
*) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1148
# Check all directory arguments for consistency.
1149
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1150
datadir sysconfdir sharedstatedir localstatedir includedir \
1151
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1152
libdir localedir mandir
1154
eval ac_val=\$$ac_var
1155
# Remove trailing slashes.
1158
ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1159
eval $ac_var=\$ac_val;;
1161
# Be sure to have absolute directory names.
1163
[\\/$]* | ?:[\\/]* ) continue;;
1164
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1166
{ $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1167
{ (exit 1); exit 1; }; }
1170
# There might be people who depend on the old broken behavior: `$host'
1171
# used to hold the argument of --host etc.
1172
# FIXME: To remove some day.
1175
target=$target_alias
1177
# FIXME: To remove some day.
1178
if test "x$host_alias" != x; then
1179
if test "x$build_alias" = x; then
1180
cross_compiling=maybe
1181
$as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1182
If a cross compiler is detected then cross compile mode will be used." >&2
1183
elif test "x$build_alias" != "x$host_alias"; then
1189
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1191
test "$silent" = yes && exec 6>/dev/null
1194
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1195
ac_ls_di=`ls -di .` &&
1196
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1197
{ $as_echo "$as_me: error: working directory cannot be determined" >&2
1198
{ (exit 1); exit 1; }; }
1199
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1200
{ $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1201
{ (exit 1); exit 1; }; }
1204
# Find the source files, if location was not specified.
1205
if test -z "$srcdir"; then
1206
ac_srcdir_defaulted=yes
1207
# Try the directory containing this script, then the parent directory.
1208
ac_confdir=`$as_dirname -- "$as_myself" ||
1209
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1210
X"$as_myself" : 'X\(//\)[^/]' \| \
1211
X"$as_myself" : 'X\(//\)$' \| \
1212
X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1213
$as_echo X"$as_myself" |
1214
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1232
if test ! -r "$srcdir/$ac_unique_file"; then
1236
ac_srcdir_defaulted=no
1238
if test ! -r "$srcdir/$ac_unique_file"; then
1239
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1240
{ $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1241
{ (exit 1); exit 1; }; }
1243
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1245
cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1246
{ (exit 1); exit 1; }; }
1248
# When building in place, set srcdir=.
1249
if test "$ac_abs_confdir" = "$ac_pwd"; then
1252
# Remove unnecessary trailing slashes from srcdir.
1253
# Double slashes in file names in object file debugging info
1254
# mess up M-x gdb in Emacs.
1256
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1258
for ac_var in $ac_precious_vars; do
1259
eval ac_env_${ac_var}_set=\${${ac_var}+set}
1260
eval ac_env_${ac_var}_value=\$${ac_var}
1261
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1262
eval ac_cv_env_${ac_var}_value=\$${ac_var}
1266
# Report the --help message.
1268
if test "$ac_init_help" = "long"; then
1269
# Omit some internal or obsolete options to make the list less imposing.
1270
# This message is too long to be a string in the A/UX 3.1 sh.
1272
\`configure' configures libffcall/trampoline 0x010B to adapt to many kinds of systems.
1274
Usage: $0 [OPTION]... [VAR=VALUE]...
1276
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1277
VAR=VALUE. See below for descriptions of some of the useful variables.
1279
Defaults for the options are specified in brackets.
1282
-h, --help display this help and exit
1283
--help=short display options specific to this package
1284
--help=recursive display the short help of all the included packages
1285
-V, --version display version information and exit
1286
-q, --quiet, --silent do not print \`checking...' messages
1287
--cache-file=FILE cache test results in FILE [disabled]
1288
-C, --config-cache alias for \`--cache-file=config.cache'
1289
-n, --no-create do not create output files
1290
--srcdir=DIR find the sources in DIR [configure dir or \`..']
1292
Installation directories:
1293
--prefix=PREFIX install architecture-independent files in PREFIX
1294
[$ac_default_prefix]
1295
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1298
By default, \`make install' will install all the files in
1299
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1300
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1301
for instance \`--prefix=\$HOME'.
1303
For better control, use the options below.
1305
Fine tuning of the installation directories:
1306
--bindir=DIR user executables [EPREFIX/bin]
1307
--sbindir=DIR system admin executables [EPREFIX/sbin]
1308
--libexecdir=DIR program executables [EPREFIX/libexec]
1309
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1310
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1311
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1312
--libdir=DIR object code libraries [EPREFIX/lib]
1313
--includedir=DIR C header files [PREFIX/include]
1314
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1315
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1316
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1317
--infodir=DIR info documentation [DATAROOTDIR/info]
1318
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1319
--mandir=DIR man documentation [DATAROOTDIR/man]
1320
--docdir=DIR documentation root
1321
[DATAROOTDIR/doc/libffcall-trampoline]
1322
--htmldir=DIR html documentation [DOCDIR]
1323
--dvidir=DIR dvi documentation [DOCDIR]
1324
--pdfdir=DIR pdf documentation [DOCDIR]
1325
--psdir=DIR ps documentation [DOCDIR]
1331
--build=BUILD configure for building on BUILD [guessed]
1332
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1336
if test -n "$ac_init_help"; then
1337
case $ac_init_help in
1338
short | recursive ) echo "Configuration of libffcall/trampoline 0x010B:";;
1342
Some influential environment variables:
1343
CC C compiler command
1344
CFLAGS C compiler flags
1345
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1346
nonstandard directory <lib dir>
1347
LIBS libraries to pass to the linker, e.g. -l<library>
1348
CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1349
you have headers in a nonstandard directory <include dir>
1352
Use these variables to override the choices made by `configure' or to help
1353
it to find libraries and programs with nonstandard names/locations.
1359
if test "$ac_init_help" = "recursive"; then
1360
# If there are subdirs, report their specific --help.
1361
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1362
test -d "$ac_dir" ||
1363
{ cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1368
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1370
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1371
# A ".." for each directory in $ac_dir_suffix.
1372
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1373
case $ac_top_builddir_sub in
1374
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1375
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1378
ac_abs_top_builddir=$ac_pwd
1379
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1380
# for backward compatibility:
1381
ac_top_builddir=$ac_top_build_prefix
1384
.) # We are building in place.
1386
ac_top_srcdir=$ac_top_builddir_sub
1387
ac_abs_top_srcdir=$ac_pwd ;;
1388
[\\/]* | ?:[\\/]* ) # Absolute name.
1389
ac_srcdir=$srcdir$ac_dir_suffix;
1390
ac_top_srcdir=$srcdir
1391
ac_abs_top_srcdir=$srcdir ;;
1393
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1394
ac_top_srcdir=$ac_top_build_prefix$srcdir
1395
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1397
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1399
cd "$ac_dir" || { ac_status=$?; continue; }
1400
# Check for guested configure.
1401
if test -f "$ac_srcdir/configure.gnu"; then
1403
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
1404
elif test -f "$ac_srcdir/configure"; then
1406
$SHELL "$ac_srcdir/configure" --help=recursive
1408
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1410
cd "$ac_pwd" || { ac_status=$?; break; }
1414
test -n "$ac_init_help" && exit $ac_status
1415
if $ac_init_version; then
1417
libffcall/trampoline configure 0x010B
1418
generated by GNU Autoconf 2.63
1420
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1421
2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1422
This configure script is free software; the Free Software Foundation
1423
gives unlimited permission to copy, distribute and modify it.
1427
cat >config.log <<_ACEOF
1428
This file contains any messages produced by compilers while
1429
running configure, to aid debugging if configure makes a mistake.
1431
It was created by libffcall/trampoline $as_me 0x010B, which was
1432
generated by GNU Autoconf 2.63. Invocation command line was
1444
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1445
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1446
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1447
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1448
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1450
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1451
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1453
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1454
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1455
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1456
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1457
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1458
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1459
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1463
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1467
test -z "$as_dir" && as_dir=.
1468
$as_echo "PATH: $as_dir"
1484
# Keep a trace of the command line.
1485
# Strip out --no-create and --no-recursion so they do not pile up.
1486
# Strip out --silent because we don't want to record it for future runs.
1487
# Also quote any args containing shell meta-characters.
1488
# Make two passes to allow for proper duplicate-argument suppression.
1492
ac_must_keep_next=false
1498
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1499
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1500
| -silent | --silent | --silen | --sile | --sil)
1503
ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1506
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1508
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1509
if test $ac_must_keep_next = true; then
1510
ac_must_keep_next=false # Got value, back to normal.
1513
*=* | --config-cache | -C | -disable-* | --disable-* \
1514
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1515
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1516
| -with-* | --with-* | -without-* | --without-* | --x)
1517
case "$ac_configure_args0 " in
1518
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1521
-* ) ac_must_keep_next=true ;;
1524
ac_configure_args="$ac_configure_args '$ac_arg'"
1529
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1530
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1532
# When interrupted or exit'd, cleanup temporary files, and complete
1533
# config.log. We remove comments because anyway the quotes in there
1534
# would cause problems or look ugly.
1535
# WARNING: Use '\'' to represent an apostrophe within the trap.
1536
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1537
trap 'exit_status=$?
1538
# Save into config.log some information that might help in debugging.
1543
## ---------------- ##
1544
## Cache variables. ##
1545
## ---------------- ##
1548
# The following way of writing the cache mishandles newlines in values,
1550
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1551
eval ac_val=\$$ac_var
1555
*_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1556
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1559
_ | IFS | as_nl) ;; #(
1560
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1561
*) $as_unset $ac_var ;;
1566
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1567
*${as_nl}ac_space=\ *)
1569
"s/'\''/'\''\\\\'\'''\''/g;
1570
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1573
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1581
## ----------------- ##
1582
## Output variables. ##
1583
## ----------------- ##
1586
for ac_var in $ac_subst_vars
1588
eval ac_val=\$$ac_var
1590
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1592
$as_echo "$ac_var='\''$ac_val'\''"
1596
if test -n "$ac_subst_files"; then
1598
## ------------------- ##
1599
## File substitutions. ##
1600
## ------------------- ##
1603
for ac_var in $ac_subst_files
1605
eval ac_val=\$$ac_var
1607
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1609
$as_echo "$ac_var='\''$ac_val'\''"
1614
if test -s confdefs.h; then
1624
test "$ac_signal" != 0 &&
1625
$as_echo "$as_me: caught signal $ac_signal"
1626
$as_echo "$as_me: exit $exit_status"
1628
rm -f core *.core core.conftest.* &&
1629
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1632
for ac_signal in 1 2 13 15; do
1633
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1637
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1638
rm -f -r conftest* confdefs.h
1640
# Predefined preprocessor variables.
1642
cat >>confdefs.h <<_ACEOF
1643
#define PACKAGE_NAME "$PACKAGE_NAME"
1647
cat >>confdefs.h <<_ACEOF
1648
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1652
cat >>confdefs.h <<_ACEOF
1653
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1657
cat >>confdefs.h <<_ACEOF
1658
#define PACKAGE_STRING "$PACKAGE_STRING"
1662
cat >>confdefs.h <<_ACEOF
1663
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1667
# Let the site file select an alternate cache file if it wants to.
1668
# Prefer an explicitly selected file to automatically selected ones.
1671
if test -n "$CONFIG_SITE"; then
1672
ac_site_file1=$CONFIG_SITE
1673
elif test "x$prefix" != xNONE; then
1674
ac_site_file1=$prefix/share/config.site
1675
ac_site_file2=$prefix/etc/config.site
1677
ac_site_file1=$ac_default_prefix/share/config.site
1678
ac_site_file2=$ac_default_prefix/etc/config.site
1680
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1682
test "x$ac_site_file" = xNONE && continue
1683
if test -r "$ac_site_file"; then
1684
{ $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1685
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1686
sed 's/^/| /' "$ac_site_file" >&5
1691
if test -r "$cache_file"; then
1692
# Some versions of bash will fail to source /dev/null (special
1693
# files actually), so we avoid doing that.
1694
if test -f "$cache_file"; then
1695
{ $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1696
$as_echo "$as_me: loading cache $cache_file" >&6;}
1698
[\\/]* | ?:[\\/]* ) . "$cache_file";;
1699
*) . "./$cache_file";;
1703
{ $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1704
$as_echo "$as_me: creating cache $cache_file" >&6;}
1708
# Check that the precious variables saved in the cache have kept the same
1710
ac_cache_corrupted=false
1711
for ac_var in $ac_precious_vars; do
1712
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1713
eval ac_new_set=\$ac_env_${ac_var}_set
1714
eval ac_old_val=\$ac_cv_env_${ac_var}_value
1715
eval ac_new_val=\$ac_env_${ac_var}_value
1716
case $ac_old_set,$ac_new_set in
1718
{ $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1719
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1720
ac_cache_corrupted=: ;;
1722
{ $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1723
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1724
ac_cache_corrupted=: ;;
1727
if test "x$ac_old_val" != "x$ac_new_val"; then
1728
# differences in whitespace do not lead to failure.
1729
ac_old_val_w=`echo x $ac_old_val`
1730
ac_new_val_w=`echo x $ac_new_val`
1731
if test "$ac_old_val_w" != "$ac_new_val_w"; then
1732
{ $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1733
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1734
ac_cache_corrupted=:
1736
{ $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1737
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1738
eval $ac_var=\$ac_old_val
1740
{ $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1741
$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1742
{ $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1743
$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1746
# Pass precious variables to config.status.
1747
if test "$ac_new_set" = set; then
1749
*\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1750
*) ac_arg=$ac_var=$ac_new_val ;;
1752
case " $ac_configure_args " in
1753
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1754
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1758
if $ac_cache_corrupted; then
1759
{ $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1760
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1761
{ $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1762
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1763
{ { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1764
$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1765
{ (exit 1); exit 1; }; }
1793
ac_cpp='$CPP $CPPFLAGS'
1794
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1795
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1796
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1800
ac_config_headers="$ac_config_headers config.h"
1802
ac_config_headers="$ac_config_headers trampoline.h"
1804
ac_config_files="$ac_config_files Makefile"
1807
ac_cpp='$CPP $CPPFLAGS'
1808
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1809
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1810
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1811
if test -n "$ac_tool_prefix"; then
1812
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1813
set dummy ${ac_tool_prefix}gcc; ac_word=$2
1814
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1815
$as_echo_n "checking for $ac_word... " >&6; }
1816
if test "${ac_cv_prog_CC+set}" = set; then
1817
$as_echo_n "(cached) " >&6
1819
if test -n "$CC"; then
1820
ac_cv_prog_CC="$CC" # Let the user override the test.
1822
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1826
test -z "$as_dir" && as_dir=.
1827
for ac_exec_ext in '' $ac_executable_extensions; do
1828
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1829
ac_cv_prog_CC="${ac_tool_prefix}gcc"
1830
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1840
if test -n "$CC"; then
1841
{ $as_echo "$as_me:$LINENO: result: $CC" >&5
1842
$as_echo "$CC" >&6; }
1844
{ $as_echo "$as_me:$LINENO: result: no" >&5
1845
$as_echo "no" >&6; }
1850
if test -z "$ac_cv_prog_CC"; then
1852
# Extract the first word of "gcc", so it can be a program name with args.
1853
set dummy gcc; ac_word=$2
1854
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1855
$as_echo_n "checking for $ac_word... " >&6; }
1856
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1857
$as_echo_n "(cached) " >&6
1859
if test -n "$ac_ct_CC"; then
1860
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1862
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1866
test -z "$as_dir" && as_dir=.
1867
for ac_exec_ext in '' $ac_executable_extensions; do
1868
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1869
ac_cv_prog_ac_ct_CC="gcc"
1870
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1879
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1880
if test -n "$ac_ct_CC"; then
1881
{ $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1882
$as_echo "$ac_ct_CC" >&6; }
1884
{ $as_echo "$as_me:$LINENO: result: no" >&5
1885
$as_echo "no" >&6; }
1888
if test "x$ac_ct_CC" = x; then
1891
case $cross_compiling:$ac_tool_warned in
1893
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
1894
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1895
ac_tool_warned=yes ;;
1903
if test -z "$CC"; then
1904
if test -n "$ac_tool_prefix"; then
1905
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1906
set dummy ${ac_tool_prefix}cc; ac_word=$2
1907
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1908
$as_echo_n "checking for $ac_word... " >&6; }
1909
if test "${ac_cv_prog_CC+set}" = set; then
1910
$as_echo_n "(cached) " >&6
1912
if test -n "$CC"; then
1913
ac_cv_prog_CC="$CC" # Let the user override the test.
1915
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1919
test -z "$as_dir" && as_dir=.
1920
for ac_exec_ext in '' $ac_executable_extensions; do
1921
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1922
ac_cv_prog_CC="${ac_tool_prefix}cc"
1923
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1933
if test -n "$CC"; then
1934
{ $as_echo "$as_me:$LINENO: result: $CC" >&5
1935
$as_echo "$CC" >&6; }
1937
{ $as_echo "$as_me:$LINENO: result: no" >&5
1938
$as_echo "no" >&6; }
1944
if test -z "$CC"; then
1945
# Extract the first word of "cc", so it can be a program name with args.
1946
set dummy cc; ac_word=$2
1947
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1948
$as_echo_n "checking for $ac_word... " >&6; }
1949
if test "${ac_cv_prog_CC+set}" = set; then
1950
$as_echo_n "(cached) " >&6
1952
if test -n "$CC"; then
1953
ac_cv_prog_CC="$CC" # Let the user override the test.
1956
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1960
test -z "$as_dir" && as_dir=.
1961
for ac_exec_ext in '' $ac_executable_extensions; do
1962
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1963
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1964
ac_prog_rejected=yes
1968
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1975
if test $ac_prog_rejected = yes; then
1976
# We found a bogon in the path, so make sure we never use it.
1977
set dummy $ac_cv_prog_CC
1979
if test $# != 0; then
1980
# We chose a different compiler from the bogus one.
1981
# However, it has the same basename, so the bogon will be chosen
1982
# first if we set CC to just the basename; use the full file name.
1984
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1990
if test -n "$CC"; then
1991
{ $as_echo "$as_me:$LINENO: result: $CC" >&5
1992
$as_echo "$CC" >&6; }
1994
{ $as_echo "$as_me:$LINENO: result: no" >&5
1995
$as_echo "no" >&6; }
2000
if test -z "$CC"; then
2001
if test -n "$ac_tool_prefix"; then
2002
for ac_prog in cl.exe
2004
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2005
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2006
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2007
$as_echo_n "checking for $ac_word... " >&6; }
2008
if test "${ac_cv_prog_CC+set}" = set; then
2009
$as_echo_n "(cached) " >&6
2011
if test -n "$CC"; then
2012
ac_cv_prog_CC="$CC" # Let the user override the test.
2014
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2018
test -z "$as_dir" && as_dir=.
2019
for ac_exec_ext in '' $ac_executable_extensions; do
2020
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2021
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2022
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2032
if test -n "$CC"; then
2033
{ $as_echo "$as_me:$LINENO: result: $CC" >&5
2034
$as_echo "$CC" >&6; }
2036
{ $as_echo "$as_me:$LINENO: result: no" >&5
2037
$as_echo "no" >&6; }
2041
test -n "$CC" && break
2044
if test -z "$CC"; then
2046
for ac_prog in cl.exe
2048
# Extract the first word of "$ac_prog", so it can be a program name with args.
2049
set dummy $ac_prog; ac_word=$2
2050
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2051
$as_echo_n "checking for $ac_word... " >&6; }
2052
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2053
$as_echo_n "(cached) " >&6
2055
if test -n "$ac_ct_CC"; then
2056
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2058
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2062
test -z "$as_dir" && as_dir=.
2063
for ac_exec_ext in '' $ac_executable_extensions; do
2064
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2065
ac_cv_prog_ac_ct_CC="$ac_prog"
2066
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2075
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2076
if test -n "$ac_ct_CC"; then
2077
{ $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2078
$as_echo "$ac_ct_CC" >&6; }
2080
{ $as_echo "$as_me:$LINENO: result: no" >&5
2081
$as_echo "no" >&6; }
2085
test -n "$ac_ct_CC" && break
2088
if test "x$ac_ct_CC" = x; then
2091
case $cross_compiling:$ac_tool_warned in
2093
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2094
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2095
ac_tool_warned=yes ;;
2104
test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2105
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2106
{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2107
See \`config.log' for more details." >&5
2108
$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2109
See \`config.log' for more details." >&2;}
2110
{ (exit 1); exit 1; }; }; }
2112
# Provide some information about the compiler.
2113
$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2116
{ (ac_try="$ac_compiler --version >&5"
2118
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2119
*) ac_try_echo=$ac_try;;
2121
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2122
$as_echo "$ac_try_echo") >&5
2123
(eval "$ac_compiler --version >&5") 2>&5
2125
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2126
(exit $ac_status); }
2127
{ (ac_try="$ac_compiler -v >&5"
2129
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2130
*) ac_try_echo=$ac_try;;
2132
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2133
$as_echo "$ac_try_echo") >&5
2134
(eval "$ac_compiler -v >&5") 2>&5
2136
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2137
(exit $ac_status); }
2138
{ (ac_try="$ac_compiler -V >&5"
2140
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2141
*) ac_try_echo=$ac_try;;
2143
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2144
$as_echo "$ac_try_echo") >&5
2145
(eval "$ac_compiler -V >&5") 2>&5
2147
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2148
(exit $ac_status); }
2150
cat >conftest.$ac_ext <<_ACEOF
2153
cat confdefs.h >>conftest.$ac_ext
2154
cat >>conftest.$ac_ext <<_ACEOF
2155
/* end confdefs.h. */
2165
ac_clean_files_save=$ac_clean_files
2166
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2167
# Try to create an executable without -o first, disregard a.out.
2168
# It will help us diagnose broken compilers, and finding out an intuition
2170
{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2171
$as_echo_n "checking for C compiler default output file name... " >&6; }
2172
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2174
# The possible output files:
2175
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2178
for ac_file in $ac_files
2181
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2182
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
2187
if { (ac_try="$ac_link_default"
2189
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2190
*) ac_try_echo=$ac_try;;
2192
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2193
$as_echo "$ac_try_echo") >&5
2194
(eval "$ac_link_default") 2>&5
2196
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2197
(exit $ac_status); }; then
2198
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2199
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2200
# in a Makefile. We should not override ac_cv_exeext if it was cached,
2201
# so that the user can short-circuit this test for compilers unknown to
2203
for ac_file in $ac_files ''
2205
test -f "$ac_file" || continue
2207
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2210
# We found the default executable, but exeext='' is most
2214
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2216
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2218
# We set ac_cv_exeext here because the later test for it is not
2219
# safe: cross compilers may not add the suffix if given an `-o'
2220
# argument, so we may need to know it at that point already.
2221
# Even if this section looks crufty: it has the advantage of
2228
test "$ac_cv_exeext" = no && ac_cv_exeext=
2234
{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2235
$as_echo "$ac_file" >&6; }
2236
if test -z "$ac_file"; then
2237
$as_echo "$as_me: failed program was:" >&5
2238
sed 's/^/| /' conftest.$ac_ext >&5
2240
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2241
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2242
{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2243
See \`config.log' for more details." >&5
2244
$as_echo "$as_me: error: C compiler cannot create executables
2245
See \`config.log' for more details." >&2;}
2246
{ (exit 77); exit 77; }; }; }
2249
ac_exeext=$ac_cv_exeext
2251
# Check that the compiler produces executables we can run. If not, either
2252
# the compiler is broken, or we cross compile.
2253
{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2254
$as_echo_n "checking whether the C compiler works... " >&6; }
2255
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2256
# If not cross compiling, check that we can run a simple program.
2257
if test "$cross_compiling" != yes; then
2258
if { ac_try='./$ac_file'
2259
{ (case "(($ac_try" in
2260
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2261
*) ac_try_echo=$ac_try;;
2263
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2264
$as_echo "$ac_try_echo") >&5
2265
(eval "$ac_try") 2>&5
2267
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268
(exit $ac_status); }; }; then
2271
if test "$cross_compiling" = maybe; then
2274
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2275
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2276
{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2277
If you meant to cross compile, use \`--host'.
2278
See \`config.log' for more details." >&5
2279
$as_echo "$as_me: error: cannot run C compiled programs.
2280
If you meant to cross compile, use \`--host'.
2281
See \`config.log' for more details." >&2;}
2282
{ (exit 1); exit 1; }; }; }
2286
{ $as_echo "$as_me:$LINENO: result: yes" >&5
2287
$as_echo "yes" >&6; }
2289
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2290
ac_clean_files=$ac_clean_files_save
2291
# Check that the compiler produces executables we can run. If not, either
2292
# the compiler is broken, or we cross compile.
2293
{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2294
$as_echo_n "checking whether we are cross compiling... " >&6; }
2295
{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2296
$as_echo "$cross_compiling" >&6; }
2298
{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2299
$as_echo_n "checking for suffix of executables... " >&6; }
2300
if { (ac_try="$ac_link"
2302
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2303
*) ac_try_echo=$ac_try;;
2305
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2306
$as_echo "$ac_try_echo") >&5
2307
(eval "$ac_link") 2>&5
2309
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2310
(exit $ac_status); }; then
2311
# If both `conftest.exe' and `conftest' are `present' (well, observable)
2312
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2313
# work properly (i.e., refer to `conftest.exe'), while it won't with
2315
for ac_file in conftest.exe conftest conftest.*; do
2316
test -f "$ac_file" || continue
2318
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2319
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2325
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2326
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2327
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2328
See \`config.log' for more details." >&5
2329
$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2330
See \`config.log' for more details." >&2;}
2331
{ (exit 1); exit 1; }; }; }
2334
rm -f conftest$ac_cv_exeext
2335
{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2336
$as_echo "$ac_cv_exeext" >&6; }
2338
rm -f conftest.$ac_ext
2339
EXEEXT=$ac_cv_exeext
2341
{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2342
$as_echo_n "checking for suffix of object files... " >&6; }
2343
if test "${ac_cv_objext+set}" = set; then
2344
$as_echo_n "(cached) " >&6
2346
cat >conftest.$ac_ext <<_ACEOF
2349
cat confdefs.h >>conftest.$ac_ext
2350
cat >>conftest.$ac_ext <<_ACEOF
2351
/* end confdefs.h. */
2361
rm -f conftest.o conftest.obj
2362
if { (ac_try="$ac_compile"
2364
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2365
*) ac_try_echo=$ac_try;;
2367
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2368
$as_echo "$ac_try_echo") >&5
2369
(eval "$ac_compile") 2>&5
2371
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372
(exit $ac_status); }; then
2373
for ac_file in conftest.o conftest.obj conftest.*; do
2374
test -f "$ac_file" || continue;
2376
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2377
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2382
$as_echo "$as_me: failed program was:" >&5
2383
sed 's/^/| /' conftest.$ac_ext >&5
2385
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2386
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2387
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2388
See \`config.log' for more details." >&5
2389
$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2390
See \`config.log' for more details." >&2;}
2391
{ (exit 1); exit 1; }; }; }
2394
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2396
{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2397
$as_echo "$ac_cv_objext" >&6; }
2398
OBJEXT=$ac_cv_objext
2400
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2401
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2402
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2403
$as_echo_n "(cached) " >&6
2405
cat >conftest.$ac_ext <<_ACEOF
2408
cat confdefs.h >>conftest.$ac_ext
2409
cat >>conftest.$ac_ext <<_ACEOF
2410
/* end confdefs.h. */
2423
rm -f conftest.$ac_objext
2424
if { (ac_try="$ac_compile"
2426
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2427
*) ac_try_echo=$ac_try;;
2429
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2430
$as_echo "$ac_try_echo") >&5
2431
(eval "$ac_compile") 2>conftest.er1
2433
grep -v '^ *+' conftest.er1 >conftest.err
2435
cat conftest.err >&5
2436
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437
(exit $ac_status); } && {
2438
test -z "$ac_c_werror_flag" ||
2439
test ! -s conftest.err
2440
} && test -s conftest.$ac_objext; then
2443
$as_echo "$as_me: failed program was:" >&5
2444
sed 's/^/| /' conftest.$ac_ext >&5
2449
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2450
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2453
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2454
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2455
if test $ac_compiler_gnu = yes; then
2460
ac_test_CFLAGS=${CFLAGS+set}
2461
ac_save_CFLAGS=$CFLAGS
2462
{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2463
$as_echo_n "checking whether $CC accepts -g... " >&6; }
2464
if test "${ac_cv_prog_cc_g+set}" = set; then
2465
$as_echo_n "(cached) " >&6
2467
ac_save_c_werror_flag=$ac_c_werror_flag
2468
ac_c_werror_flag=yes
2471
cat >conftest.$ac_ext <<_ACEOF
2474
cat confdefs.h >>conftest.$ac_ext
2475
cat >>conftest.$ac_ext <<_ACEOF
2476
/* end confdefs.h. */
2486
rm -f conftest.$ac_objext
2487
if { (ac_try="$ac_compile"
2489
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2490
*) ac_try_echo=$ac_try;;
2492
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2493
$as_echo "$ac_try_echo") >&5
2494
(eval "$ac_compile") 2>conftest.er1
2496
grep -v '^ *+' conftest.er1 >conftest.err
2498
cat conftest.err >&5
2499
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500
(exit $ac_status); } && {
2501
test -z "$ac_c_werror_flag" ||
2502
test ! -s conftest.err
2503
} && test -s conftest.$ac_objext; then
2506
$as_echo "$as_me: failed program was:" >&5
2507
sed 's/^/| /' conftest.$ac_ext >&5
2510
cat >conftest.$ac_ext <<_ACEOF
2513
cat confdefs.h >>conftest.$ac_ext
2514
cat >>conftest.$ac_ext <<_ACEOF
2515
/* end confdefs.h. */
2525
rm -f conftest.$ac_objext
2526
if { (ac_try="$ac_compile"
2528
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2529
*) ac_try_echo=$ac_try;;
2531
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2532
$as_echo "$ac_try_echo") >&5
2533
(eval "$ac_compile") 2>conftest.er1
2535
grep -v '^ *+' conftest.er1 >conftest.err
2537
cat conftest.err >&5
2538
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539
(exit $ac_status); } && {
2540
test -z "$ac_c_werror_flag" ||
2541
test ! -s conftest.err
2542
} && test -s conftest.$ac_objext; then
2545
$as_echo "$as_me: failed program was:" >&5
2546
sed 's/^/| /' conftest.$ac_ext >&5
2548
ac_c_werror_flag=$ac_save_c_werror_flag
2550
cat >conftest.$ac_ext <<_ACEOF
2553
cat confdefs.h >>conftest.$ac_ext
2554
cat >>conftest.$ac_ext <<_ACEOF
2555
/* end confdefs.h. */
2565
rm -f conftest.$ac_objext
2566
if { (ac_try="$ac_compile"
2568
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2569
*) ac_try_echo=$ac_try;;
2571
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2572
$as_echo "$ac_try_echo") >&5
2573
(eval "$ac_compile") 2>conftest.er1
2575
grep -v '^ *+' conftest.er1 >conftest.err
2577
cat conftest.err >&5
2578
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2579
(exit $ac_status); } && {
2580
test -z "$ac_c_werror_flag" ||
2581
test ! -s conftest.err
2582
} && test -s conftest.$ac_objext; then
2585
$as_echo "$as_me: failed program was:" >&5
2586
sed 's/^/| /' conftest.$ac_ext >&5
2591
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2594
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2597
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2598
ac_c_werror_flag=$ac_save_c_werror_flag
2600
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2601
$as_echo "$ac_cv_prog_cc_g" >&6; }
2602
if test "$ac_test_CFLAGS" = set; then
2603
CFLAGS=$ac_save_CFLAGS
2604
elif test $ac_cv_prog_cc_g = yes; then
2605
if test "$GCC" = yes; then
2611
if test "$GCC" = yes; then
2617
{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2618
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2619
if test "${ac_cv_prog_cc_c89+set}" = set; then
2620
$as_echo_n "(cached) " >&6
2622
ac_cv_prog_cc_c89=no
2624
cat >conftest.$ac_ext <<_ACEOF
2627
cat confdefs.h >>conftest.$ac_ext
2628
cat >>conftest.$ac_ext <<_ACEOF
2629
/* end confdefs.h. */
2632
#include <sys/types.h>
2633
#include <sys/stat.h>
2634
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2635
struct buf { int x; };
2636
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2637
static char *e (p, i)
2643
static char *f (char * (*g) (char **, int), char **p, ...)
2648
s = g (p, va_arg (v,int));
2653
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2654
function prototypes and stuff, but not '\xHH' hex character constants.
2655
These don't provoke an error unfortunately, instead are silently treated
2656
as 'x'. The following induces an error, until -std is added to get
2657
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2658
array size at least. It's necessary to write '\x00'==0 to get something
2659
that's true only with -std. */
2660
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2662
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2663
inside strings and character constants. */
2665
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2667
int test (int i, double x);
2668
struct s1 {int (*f) (int a);};
2669
struct s2 {int (*f) (double a);};
2670
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2676
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2681
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2682
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2684
CC="$ac_save_CC $ac_arg"
2685
rm -f conftest.$ac_objext
2686
if { (ac_try="$ac_compile"
2688
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2689
*) ac_try_echo=$ac_try;;
2691
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2692
$as_echo "$ac_try_echo") >&5
2693
(eval "$ac_compile") 2>conftest.er1
2695
grep -v '^ *+' conftest.er1 >conftest.err
2697
cat conftest.err >&5
2698
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699
(exit $ac_status); } && {
2700
test -z "$ac_c_werror_flag" ||
2701
test ! -s conftest.err
2702
} && test -s conftest.$ac_objext; then
2703
ac_cv_prog_cc_c89=$ac_arg
2705
$as_echo "$as_me: failed program was:" >&5
2706
sed 's/^/| /' conftest.$ac_ext >&5
2711
rm -f core conftest.err conftest.$ac_objext
2712
test "x$ac_cv_prog_cc_c89" != "xno" && break
2714
rm -f conftest.$ac_ext
2719
case "x$ac_cv_prog_cc_c89" in
2721
{ $as_echo "$as_me:$LINENO: result: none needed" >&5
2722
$as_echo "none needed" >&6; } ;;
2724
{ $as_echo "$as_me:$LINENO: result: unsupported" >&5
2725
$as_echo "unsupported" >&6; } ;;
2727
CC="$CC $ac_cv_prog_cc_c89"
2728
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2729
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2734
ac_cpp='$CPP $CPPFLAGS'
2735
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2736
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2737
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2740
ac_cpp='$CPP $CPPFLAGS'
2741
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2742
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2743
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2744
{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2745
$as_echo_n "checking how to run the C preprocessor... " >&6; }
2746
# On Suns, sometimes $CPP names a directory.
2747
if test -n "$CPP" && test -d "$CPP"; then
2750
if test -z "$CPP"; then
2751
if test "${ac_cv_prog_CPP+set}" = set; then
2752
$as_echo_n "(cached) " >&6
2754
# Double quotes because CPP needs to be expanded
2755
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2758
for ac_c_preproc_warn_flag in '' yes
2760
# Use a header file that comes with gcc, so configuring glibc
2761
# with a fresh cross-compiler works.
2762
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2763
# <limits.h> exists even on freestanding compilers.
2764
# On the NeXT, cc -E runs the code through the compiler's parser,
2765
# not just through cpp. "Syntax error" is here to catch this case.
2766
cat >conftest.$ac_ext <<_ACEOF
2769
cat confdefs.h >>conftest.$ac_ext
2770
cat >>conftest.$ac_ext <<_ACEOF
2771
/* end confdefs.h. */
2773
# include <limits.h>
2775
# include <assert.h>
2779
if { (ac_try="$ac_cpp conftest.$ac_ext"
2781
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2782
*) ac_try_echo=$ac_try;;
2784
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2785
$as_echo "$ac_try_echo") >&5
2786
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2788
grep -v '^ *+' conftest.er1 >conftest.err
2790
cat conftest.err >&5
2791
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792
(exit $ac_status); } >/dev/null && {
2793
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2794
test ! -s conftest.err
2798
$as_echo "$as_me: failed program was:" >&5
2799
sed 's/^/| /' conftest.$ac_ext >&5
2801
# Broken: fails on valid input.
2805
rm -f conftest.err conftest.$ac_ext
2807
# OK, works on sane cases. Now check whether nonexistent headers
2808
# can be detected and how.
2809
cat >conftest.$ac_ext <<_ACEOF
2812
cat confdefs.h >>conftest.$ac_ext
2813
cat >>conftest.$ac_ext <<_ACEOF
2814
/* end confdefs.h. */
2815
#include <ac_nonexistent.h>
2817
if { (ac_try="$ac_cpp conftest.$ac_ext"
2819
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2820
*) ac_try_echo=$ac_try;;
2822
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2823
$as_echo "$ac_try_echo") >&5
2824
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2826
grep -v '^ *+' conftest.er1 >conftest.err
2828
cat conftest.err >&5
2829
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2830
(exit $ac_status); } >/dev/null && {
2831
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2832
test ! -s conftest.err
2834
# Broken: success on invalid input.
2837
$as_echo "$as_me: failed program was:" >&5
2838
sed 's/^/| /' conftest.$ac_ext >&5
2840
# Passes both tests.
2845
rm -f conftest.err conftest.$ac_ext
2848
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2849
rm -f conftest.err conftest.$ac_ext
2850
if $ac_preproc_ok; then
2862
{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
2863
$as_echo "$CPP" >&6; }
2865
for ac_c_preproc_warn_flag in '' yes
2867
# Use a header file that comes with gcc, so configuring glibc
2868
# with a fresh cross-compiler works.
2869
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2870
# <limits.h> exists even on freestanding compilers.
2871
# On the NeXT, cc -E runs the code through the compiler's parser,
2872
# not just through cpp. "Syntax error" is here to catch this case.
2873
cat >conftest.$ac_ext <<_ACEOF
2876
cat confdefs.h >>conftest.$ac_ext
2877
cat >>conftest.$ac_ext <<_ACEOF
2878
/* end confdefs.h. */
2880
# include <limits.h>
2882
# include <assert.h>
2886
if { (ac_try="$ac_cpp conftest.$ac_ext"
2888
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2889
*) ac_try_echo=$ac_try;;
2891
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2892
$as_echo "$ac_try_echo") >&5
2893
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2895
grep -v '^ *+' conftest.er1 >conftest.err
2897
cat conftest.err >&5
2898
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899
(exit $ac_status); } >/dev/null && {
2900
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2901
test ! -s conftest.err
2905
$as_echo "$as_me: failed program was:" >&5
2906
sed 's/^/| /' conftest.$ac_ext >&5
2908
# Broken: fails on valid input.
2912
rm -f conftest.err conftest.$ac_ext
2914
# OK, works on sane cases. Now check whether nonexistent headers
2915
# can be detected and how.
2916
cat >conftest.$ac_ext <<_ACEOF
2919
cat confdefs.h >>conftest.$ac_ext
2920
cat >>conftest.$ac_ext <<_ACEOF
2921
/* end confdefs.h. */
2922
#include <ac_nonexistent.h>
2924
if { (ac_try="$ac_cpp conftest.$ac_ext"
2926
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2927
*) ac_try_echo=$ac_try;;
2929
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2930
$as_echo "$ac_try_echo") >&5
2931
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2933
grep -v '^ *+' conftest.er1 >conftest.err
2935
cat conftest.err >&5
2936
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937
(exit $ac_status); } >/dev/null && {
2938
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2939
test ! -s conftest.err
2941
# Broken: success on invalid input.
2944
$as_echo "$as_me: failed program was:" >&5
2945
sed 's/^/| /' conftest.$ac_ext >&5
2947
# Passes both tests.
2952
rm -f conftest.err conftest.$ac_ext
2955
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2956
rm -f conftest.err conftest.$ac_ext
2957
if $ac_preproc_ok; then
2960
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2961
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2962
{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2963
See \`config.log' for more details." >&5
2964
$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2965
See \`config.log' for more details." >&2;}
2966
{ (exit 1); exit 1; }; }; }
2970
ac_cpp='$CPP $CPPFLAGS'
2971
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2972
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2973
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2977
{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
2978
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
2979
if test "${ac_cv_path_GREP+set}" = set; then
2980
$as_echo_n "(cached) " >&6
2982
if test -z "$GREP"; then
2983
ac_path_GREP_found=false
2984
# Loop through the user's path and test for each of PROGNAME-LIST
2985
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2986
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
2989
test -z "$as_dir" && as_dir=.
2990
for ac_prog in grep ggrep; do
2991
for ac_exec_ext in '' $ac_executable_extensions; do
2992
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
2993
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
2994
# Check for GNU ac_path_GREP and select it if it is found.
2995
# Check for GNU $ac_path_GREP
2996
case `"$ac_path_GREP" --version 2>&1` in
2998
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3001
$as_echo_n 0123456789 >"conftest.in"
3004
cat "conftest.in" "conftest.in" >"conftest.tmp"
3005
mv "conftest.tmp" "conftest.in"
3006
cp "conftest.in" "conftest.nl"
3007
$as_echo 'GREP' >> "conftest.nl"
3008
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3009
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3010
ac_count=`expr $ac_count + 1`
3011
if test $ac_count -gt ${ac_path_GREP_max-0}; then
3012
# Best one so far, save it but keep looking for a better one
3013
ac_cv_path_GREP="$ac_path_GREP"
3014
ac_path_GREP_max=$ac_count
3016
# 10*(2^10) chars as input seems more than enough
3017
test $ac_count -gt 10 && break
3019
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3022
$ac_path_GREP_found && break 3
3027
if test -z "$ac_cv_path_GREP"; then
3028
{ { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3029
$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3030
{ (exit 1); exit 1; }; }
3033
ac_cv_path_GREP=$GREP
3037
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3038
$as_echo "$ac_cv_path_GREP" >&6; }
3039
GREP="$ac_cv_path_GREP"
3042
{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3043
$as_echo_n "checking for egrep... " >&6; }
3044
if test "${ac_cv_path_EGREP+set}" = set; then
3045
$as_echo_n "(cached) " >&6
3047
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3048
then ac_cv_path_EGREP="$GREP -E"
3050
if test -z "$EGREP"; then
3051
ac_path_EGREP_found=false
3052
# Loop through the user's path and test for each of PROGNAME-LIST
3053
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3054
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3057
test -z "$as_dir" && as_dir=.
3058
for ac_prog in egrep; do
3059
for ac_exec_ext in '' $ac_executable_extensions; do
3060
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3061
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3062
# Check for GNU ac_path_EGREP and select it if it is found.
3063
# Check for GNU $ac_path_EGREP
3064
case `"$ac_path_EGREP" --version 2>&1` in
3066
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3069
$as_echo_n 0123456789 >"conftest.in"
3072
cat "conftest.in" "conftest.in" >"conftest.tmp"
3073
mv "conftest.tmp" "conftest.in"
3074
cp "conftest.in" "conftest.nl"
3075
$as_echo 'EGREP' >> "conftest.nl"
3076
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3077
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3078
ac_count=`expr $ac_count + 1`
3079
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3080
# Best one so far, save it but keep looking for a better one
3081
ac_cv_path_EGREP="$ac_path_EGREP"
3082
ac_path_EGREP_max=$ac_count
3084
# 10*(2^10) chars as input seems more than enough
3085
test $ac_count -gt 10 && break
3087
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3090
$ac_path_EGREP_found && break 3
3095
if test -z "$ac_cv_path_EGREP"; then
3096
{ { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3097
$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3098
{ (exit 1); exit 1; }; }
3101
ac_cv_path_EGREP=$EGREP
3106
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3107
$as_echo "$ac_cv_path_EGREP" >&6; }
3108
EGREP="$ac_cv_path_EGREP"
3111
if test $ac_cv_c_compiler_gnu = yes; then
3112
{ $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3113
$as_echo_n "checking whether $CC needs -traditional... " >&6; }
3114
if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3115
$as_echo_n "(cached) " >&6
3117
ac_pattern="Autoconf.*'x'"
3118
cat >conftest.$ac_ext <<_ACEOF
3121
cat confdefs.h >>conftest.$ac_ext
3122
cat >>conftest.$ac_ext <<_ACEOF
3123
/* end confdefs.h. */
3127
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3128
$EGREP "$ac_pattern" >/dev/null 2>&1; then
3129
ac_cv_prog_gcc_traditional=yes
3131
ac_cv_prog_gcc_traditional=no
3136
if test $ac_cv_prog_gcc_traditional = no; then
3137
cat >conftest.$ac_ext <<_ACEOF
3140
cat confdefs.h >>conftest.$ac_ext
3141
cat >>conftest.$ac_ext <<_ACEOF
3142
/* end confdefs.h. */
3146
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3147
$EGREP "$ac_pattern" >/dev/null 2>&1; then
3148
ac_cv_prog_gcc_traditional=yes
3154
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3155
$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
3156
if test $ac_cv_prog_gcc_traditional = yes; then
3157
CC="$CC -traditional"
3162
{ $as_echo "$as_me:$LINENO: checking whether using GNU C" >&5
3163
$as_echo_n "checking whether using GNU C... " >&6; }
3164
if test "${cl_cv_prog_cc_gcc+set}" = set; then
3165
$as_echo_n "(cached) " >&6
3168
cat >conftest.$ac_ext <<_ACEOF
3171
cat confdefs.h >>conftest.$ac_ext
3172
cat >>conftest.$ac_ext <<_ACEOF
3173
/* end confdefs.h. */
3179
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3180
$EGREP "yes" >/dev/null 2>&1; then
3181
cl_cv_prog_cc_gcc=yes
3183
cl_cv_prog_cc_gcc=no
3189
{ $as_echo "$as_me:$LINENO: result: $cl_cv_prog_cc_gcc" >&5
3190
$as_echo "$cl_cv_prog_cc_gcc" >&6; }
3191
if test $cl_cv_prog_cc_gcc = yes; then
3193
GCC_X_NONE='-x none'
3201
{ $as_echo "$as_me:$LINENO: checking for underscore in external names" >&5
3202
$as_echo_n "checking for underscore in external names... " >&6; }
3203
if test "${cl_cv_prog_as_underscore+set}" = set; then
3204
$as_echo_n "(cached) " >&6
3207
cat > conftest.c <<EOF
3211
int foo() { return 0; }
3213
# look for the assembly language name in the .s file
3214
{ ac_try='${CC-cc} -S conftest.c'
3215
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3218
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219
(exit $ac_status); }; } >/dev/null 2>&1
3220
if grep _foo conftest.s >/dev/null ; then
3221
cl_cv_prog_as_underscore=yes
3223
cl_cv_prog_as_underscore=no
3228
{ $as_echo "$as_me:$LINENO: result: $cl_cv_prog_as_underscore" >&5
3229
$as_echo "$cl_cv_prog_as_underscore" >&6; }
3230
if test $cl_cv_prog_as_underscore = yes; then
3233
cat >>confdefs.h <<\_ACEOF
3234
#define ASM_UNDERSCORE /**/
3241
if test -n "$ac_tool_prefix"; then
3242
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3243
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3244
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3245
$as_echo_n "checking for $ac_word... " >&6; }
3246
if test "${ac_cv_prog_RANLIB+set}" = set; then
3247
$as_echo_n "(cached) " >&6
3249
if test -n "$RANLIB"; then
3250
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3252
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3256
test -z "$as_dir" && as_dir=.
3257
for ac_exec_ext in '' $ac_executable_extensions; do
3258
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3259
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3260
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3269
RANLIB=$ac_cv_prog_RANLIB
3270
if test -n "$RANLIB"; then
3271
{ $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
3272
$as_echo "$RANLIB" >&6; }
3274
{ $as_echo "$as_me:$LINENO: result: no" >&5
3275
$as_echo "no" >&6; }
3280
if test -z "$ac_cv_prog_RANLIB"; then
3281
ac_ct_RANLIB=$RANLIB
3282
# Extract the first word of "ranlib", so it can be a program name with args.
3283
set dummy ranlib; ac_word=$2
3284
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3285
$as_echo_n "checking for $ac_word... " >&6; }
3286
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3287
$as_echo_n "(cached) " >&6
3289
if test -n "$ac_ct_RANLIB"; then
3290
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3292
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3296
test -z "$as_dir" && as_dir=.
3297
for ac_exec_ext in '' $ac_executable_extensions; do
3298
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3299
ac_cv_prog_ac_ct_RANLIB="ranlib"
3300
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3309
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3310
if test -n "$ac_ct_RANLIB"; then
3311
{ $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3312
$as_echo "$ac_ct_RANLIB" >&6; }
3314
{ $as_echo "$as_me:$LINENO: result: no" >&5
3315
$as_echo "no" >&6; }
3318
if test "x$ac_ct_RANLIB" = x; then
3321
case $cross_compiling:$ac_tool_warned in
3323
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3324
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3325
ac_tool_warned=yes ;;
3327
RANLIB=$ac_ct_RANLIB
3330
RANLIB="$ac_cv_prog_RANLIB"
3333
{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3334
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3336
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3337
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3338
$as_echo_n "(cached) " >&6
3340
cat >conftest.make <<\_ACEOF
3343
@echo '@@@%%%=$(MAKE)=@@@%%%'
3345
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3346
case `${MAKE-make} -f conftest.make 2>/dev/null` in
3348
eval ac_cv_prog_make_${ac_make}_set=yes;;
3350
eval ac_cv_prog_make_${ac_make}_set=no;;
3354
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3355
{ $as_echo "$as_me:$LINENO: result: yes" >&5
3356
$as_echo "yes" >&6; }
3359
{ $as_echo "$as_me:$LINENO: result: no" >&5
3360
$as_echo "no" >&6; }
3361
SET_MAKE="MAKE=${MAKE-make}"
3365
for ac_dir in ../build-aux "$srcdir"/../build-aux; do
3366
if test -f "$ac_dir/install-sh"; then
3368
ac_install_sh="$ac_aux_dir/install-sh -c"
3370
elif test -f "$ac_dir/install.sh"; then
3372
ac_install_sh="$ac_aux_dir/install.sh -c"
3374
elif test -f "$ac_dir/shtool"; then
3376
ac_install_sh="$ac_aux_dir/shtool install -c"
3380
if test -z "$ac_aux_dir"; then
3381
{ { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../build-aux \"$srcdir\"/../build-aux" >&5
3382
$as_echo "$as_me: error: cannot find install-sh or install.sh in ../build-aux \"$srcdir\"/../build-aux" >&2;}
3383
{ (exit 1); exit 1; }; }
3386
# These three variables are undocumented and unsupported,
3387
# and are intended to be withdrawn in a future Autoconf release.
3388
# They can cause serious problems if a builder's source tree is in a directory
3389
# whose full name contains unusual characters.
3390
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3391
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3392
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3395
# Find a good install program. We prefer a C program (faster),
3396
# so one script is as good as another. But avoid the broken or
3397
# incompatible versions:
3398
# SysV /etc/install, /usr/sbin/install
3399
# SunOS /usr/etc/install
3400
# IRIX /sbin/install
3402
# AmigaOS /C/install, which installs bootblocks on floppy discs
3403
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3404
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3405
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3406
# OS/2's system install, which has a completely different semantic
3407
# ./install, which can be erroneously created by make from ./install.sh.
3408
# Reject install programs that cannot install multiple files.
3409
{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3410
$as_echo_n "checking for a BSD-compatible install... " >&6; }
3411
if test -z "$INSTALL"; then
3412
if test "${ac_cv_path_install+set}" = set; then
3413
$as_echo_n "(cached) " >&6
3415
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3419
test -z "$as_dir" && as_dir=.
3420
# Account for people who put trailing slashes in PATH elements.
3422
./ | .// | /cC/* | \
3423
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3424
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3427
# OSF1 and SCO ODT 3.0 have their own names for install.
3428
# Don't use installbsd from OSF since it installs stuff as root
3430
for ac_prog in ginstall scoinst install; do
3431
for ac_exec_ext in '' $ac_executable_extensions; do
3432
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3433
if test $ac_prog = install &&
3434
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3435
# AIX install. It has an incompatible calling convention.
3437
elif test $ac_prog = install &&
3438
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3439
# program-specific install script used by HP pwplus--don't use.
3442
rm -rf conftest.one conftest.two conftest.dir
3443
echo one > conftest.one
3444
echo two > conftest.two
3446
if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3447
test -s conftest.one && test -s conftest.two &&
3448
test -s conftest.dir/conftest.one &&
3449
test -s conftest.dir/conftest.two
3451
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3464
rm -rf conftest.one conftest.two conftest.dir
3467
if test "${ac_cv_path_install+set}" = set; then
3468
INSTALL=$ac_cv_path_install
3470
# As a last resort, use the slow shell script. Don't cache a
3471
# value for INSTALL within a source directory, because that will
3472
# break other packages using the cache if that directory is
3473
# removed, or if the value is a relative name.
3474
INSTALL=$ac_install_sh
3477
{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3478
$as_echo "$INSTALL" >&6; }
3480
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3481
# It thinks the first close brace ends the variable substitution.
3482
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3484
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3486
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3488
{ $as_echo "$as_me:$LINENO: checking how to make hard links" >&5
3489
$as_echo_n "checking how to make hard links... " >&6; }
3490
if test "${cl_cv_prog_LN+set}" = set; then
3491
$as_echo_n "(cached) " >&6
3494
rm -f conftestdata conftestfile
3495
echo data > conftestfile
3496
if ln conftestfile conftestdata 2>/dev/null; then
3499
cl_cv_prog_LN="cp -p"
3501
rm -f conftestdata conftestfile
3504
{ $as_echo "$as_me:$LINENO: result: $cl_cv_prog_LN" >&5
3505
$as_echo "$cl_cv_prog_LN" >&6; }
3508
{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3509
$as_echo_n "checking whether ln -s works... " >&6; }
3510
if test "${cl_cv_prog_LN_S_works+set}" = set; then
3511
$as_echo_n "(cached) " >&6
3514
if ln -s X conftestdata 2>/dev/null; then
3515
cl_cv_prog_LN_S_works=yes
3517
cl_cv_prog_LN_S_works=no
3522
{ $as_echo "$as_me:$LINENO: result: $cl_cv_prog_LN_S_works" >&5
3523
$as_echo "$cl_cv_prog_LN_S_works" >&6; }
3524
if test $cl_cv_prog_LN_S_works = yes; then
3527
LN_S="$cl_cv_prog_LN"
3530
# Make sure we can run config.sub.
3531
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3532
{ { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3533
$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3534
{ (exit 1); exit 1; }; }
3536
{ $as_echo "$as_me:$LINENO: checking build system type" >&5
3537
$as_echo_n "checking build system type... " >&6; }
3538
if test "${ac_cv_build+set}" = set; then
3539
$as_echo_n "(cached) " >&6
3541
ac_build_alias=$build_alias
3542
test "x$ac_build_alias" = x &&
3543
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3544
test "x$ac_build_alias" = x &&
3545
{ { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3546
$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3547
{ (exit 1); exit 1; }; }
3548
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3549
{ { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3550
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3551
{ (exit 1); exit 1; }; }
3554
{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3555
$as_echo "$ac_cv_build" >&6; }
3556
case $ac_cv_build in
3558
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3559
$as_echo "$as_me: error: invalid value of canonical build" >&2;}
3560
{ (exit 1); exit 1; }; };;
3563
ac_save_IFS=$IFS; IFS='-'
3569
# Remember, the first character of IFS is used to create $*,
3570
# except with old shells:
3573
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3576
{ $as_echo "$as_me:$LINENO: checking host system type" >&5
3577
$as_echo_n "checking host system type... " >&6; }
3578
if test "${ac_cv_host+set}" = set; then
3579
$as_echo_n "(cached) " >&6
3581
if test "x$host_alias" = x; then
3582
ac_cv_host=$ac_cv_build
3584
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3585
{ { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3586
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3587
{ (exit 1); exit 1; }; }
3591
{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3592
$as_echo "$ac_cv_host" >&6; }
3595
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3596
$as_echo "$as_me: error: invalid value of canonical host" >&2;}
3597
{ (exit 1); exit 1; }; };;
3600
ac_save_IFS=$IFS; IFS='-'
3606
# Remember, the first character of IFS is used to create $*,
3607
# except with old shells:
3610
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3618
alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] )
3621
hppa1.0 | hppa1.1 | hppa2.0* | hppa64 )
3625
host_cpu_abi=powerpc
3627
c1 | c2 | c32 | c34 | c38 | c4 )
3631
{ $as_echo "$as_me:$LINENO: checking for ARMel" >&5
3632
$as_echo_n "checking for ARMel... " >&6; }
3633
if test "${ffcall_cv_host_armel+set}" = set; then
3634
$as_echo_n "(cached) " >&6
3636
cat >conftest.$ac_ext <<_ACEOF
3639
cat confdefs.h >>conftest.$ac_ext
3640
cat >>conftest.$ac_ext <<_ACEOF
3641
/* end confdefs.h. */
3642
#if defined(__ARMEL__)
3647
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3648
$EGREP "yes" >/dev/null 2>&1; then
3649
ffcall_cv_host_armel=yes
3651
ffcall_cv_host_armel=no
3656
{ $as_echo "$as_me:$LINENO: result: $ffcall_cv_host_armel" >&5
3657
$as_echo "$ffcall_cv_host_armel" >&6; }
3658
if test $ffcall_cv_host_armel = yes; then
3665
{ $as_echo "$as_me:$LINENO: checking for 64-bit MIPS" >&5
3666
$as_echo_n "checking for 64-bit MIPS... " >&6; }
3667
if test "${ffcall_cv_host_mips64+set}" = set; then
3668
$as_echo_n "(cached) " >&6
3670
cat >conftest.$ac_ext <<_ACEOF
3673
cat confdefs.h >>conftest.$ac_ext
3674
cat >>conftest.$ac_ext <<_ACEOF
3675
/* end confdefs.h. */
3676
#if defined(_MIPS_SZLONG) && (_MIPS_SZLONG == 64)
3681
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3682
$EGREP "yes" >/dev/null 2>&1; then
3683
ffcall_cv_host_mips64=yes
3685
ffcall_cv_host_mips64=no
3690
{ $as_echo "$as_me:$LINENO: result: $ffcall_cv_host_mips64" >&5
3691
$as_echo "$ffcall_cv_host_mips64" >&6; }
3692
if test $ffcall_cv_host_mips64 = yes; then
3695
{ $as_echo "$as_me:$LINENO: checking for MIPS with n32 ABI" >&5
3696
$as_echo_n "checking for MIPS with n32 ABI... " >&6; }
3697
if test "${ffcall_cv_host_mipsn32+set}" = set; then
3698
$as_echo_n "(cached) " >&6
3700
cat >conftest.$ac_ext <<_ACEOF
3703
cat confdefs.h >>conftest.$ac_ext
3704
cat >>conftest.$ac_ext <<_ACEOF
3705
/* end confdefs.h. */
3711
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3712
$EGREP "yes" >/dev/null 2>&1; then
3713
ffcall_cv_host_mipsn32=yes
3715
ffcall_cv_host_mipsn32=no
3720
{ $as_echo "$as_me:$LINENO: result: $ffcall_cv_host_mipsn32" >&5
3721
$as_echo "$ffcall_cv_host_mipsn32" >&6; }
3722
if test $ffcall_cv_host_mipsn32 = yes; then
3723
host_cpu_abi=mipsn32
3730
{ $as_echo "$as_me:$LINENO: checking for 64-bit PowerPC" >&5
3731
$as_echo_n "checking for 64-bit PowerPC... " >&6; }
3732
if test "${ffcall_cv_host_powerpc64+set}" = set; then
3733
$as_echo_n "(cached) " >&6
3735
cat >conftest.$ac_ext <<_ACEOF
3738
cat confdefs.h >>conftest.$ac_ext
3739
cat >>conftest.$ac_ext <<_ACEOF
3740
/* end confdefs.h. */
3741
#if defined(__powerpc64__) || defined(_ARCH_PPC64)
3746
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3747
$EGREP "yes" >/dev/null 2>&1; then
3748
ffcall_cv_host_powerpc64=yes
3750
ffcall_cv_host_powerpc64=no
3755
{ $as_echo "$as_me:$LINENO: result: $ffcall_cv_host_powerpc64" >&5
3756
$as_echo "$ffcall_cv_host_powerpc64" >&6; }
3757
if test $ffcall_cv_host_powerpc64 = yes; then
3758
host_cpu_abi=powerpc64
3760
host_cpu_abi=powerpc
3764
{ $as_echo "$as_me:$LINENO: checking for 64-bit SPARC" >&5
3765
$as_echo_n "checking for 64-bit SPARC... " >&6; }
3766
if test "${ffcall_cv_host_sparc64+set}" = set; then
3767
$as_echo_n "(cached) " >&6
3769
cat >conftest.$ac_ext <<_ACEOF
3772
cat confdefs.h >>conftest.$ac_ext
3773
cat >>conftest.$ac_ext <<_ACEOF
3774
/* end confdefs.h. */
3775
#if defined(__sparcv9) || defined(__arch64__)
3780
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3781
$EGREP "yes" >/dev/null 2>&1; then
3782
ffcall_cv_host_sparc64=yes
3784
ffcall_cv_host_sparc64=no
3789
{ $as_echo "$as_me:$LINENO: result: $ffcall_cv_host_sparc64" >&5
3790
$as_echo "$ffcall_cv_host_sparc64" >&6; }
3791
if test $ffcall_cv_host_sparc64 = yes; then
3792
host_cpu_abi=sparc64
3798
{ $as_echo "$as_me:$LINENO: checking for 64-bit x86_64" >&5
3799
$as_echo_n "checking for 64-bit x86_64... " >&6; }
3800
if test "${ffcall_cv_host_x86_64+set}" = set; then
3801
$as_echo_n "(cached) " >&6
3803
cat >conftest.$ac_ext <<_ACEOF
3806
cat confdefs.h >>conftest.$ac_ext
3807
cat >>conftest.$ac_ext <<_ACEOF
3808
/* end confdefs.h. */
3809
#if defined(__LP64__) || defined(__x86_64__) || defined(__amd64__)
3814
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3815
$EGREP "yes" >/dev/null 2>&1; then
3816
ffcall_cv_host_x86_64=yes
3818
ffcall_cv_host_x86_64=no
3823
{ $as_echo "$as_me:$LINENO: result: $ffcall_cv_host_x86_64" >&5
3824
$as_echo "$ffcall_cv_host_x86_64" >&6; }
3825
if test $ffcall_cv_host_x86_64 = yes; then
3832
host_cpu_abi=$host_cpu
3836
cat >> confdefs.h <<EOF
3837
#ifndef __${host_cpu_abi}__
3838
#define __${host_cpu_abi}__ 1
3842
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3843
$as_echo_n "checking for ANSI C header files... " >&6; }
3844
if test "${ac_cv_header_stdc+set}" = set; then
3845
$as_echo_n "(cached) " >&6
3847
cat >conftest.$ac_ext <<_ACEOF
3850
cat confdefs.h >>conftest.$ac_ext
3851
cat >>conftest.$ac_ext <<_ACEOF
3852
/* end confdefs.h. */
3866
rm -f conftest.$ac_objext
3867
if { (ac_try="$ac_compile"
3869
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3870
*) ac_try_echo=$ac_try;;
3872
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3873
$as_echo "$ac_try_echo") >&5
3874
(eval "$ac_compile") 2>conftest.er1
3876
grep -v '^ *+' conftest.er1 >conftest.err
3878
cat conftest.err >&5
3879
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3880
(exit $ac_status); } && {
3881
test -z "$ac_c_werror_flag" ||
3882
test ! -s conftest.err
3883
} && test -s conftest.$ac_objext; then
3884
ac_cv_header_stdc=yes
3886
$as_echo "$as_me: failed program was:" >&5
3887
sed 's/^/| /' conftest.$ac_ext >&5
3889
ac_cv_header_stdc=no
3892
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3894
if test $ac_cv_header_stdc = yes; then
3895
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3896
cat >conftest.$ac_ext <<_ACEOF
3899
cat confdefs.h >>conftest.$ac_ext
3900
cat >>conftest.$ac_ext <<_ACEOF
3901
/* end confdefs.h. */
3905
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3906
$EGREP "memchr" >/dev/null 2>&1; then
3909
ac_cv_header_stdc=no
3915
if test $ac_cv_header_stdc = yes; then
3916
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3917
cat >conftest.$ac_ext <<_ACEOF
3920
cat confdefs.h >>conftest.$ac_ext
3921
cat >>conftest.$ac_ext <<_ACEOF
3922
/* end confdefs.h. */
3926
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3927
$EGREP "free" >/dev/null 2>&1; then
3930
ac_cv_header_stdc=no
3936
if test $ac_cv_header_stdc = yes; then
3937
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3938
if test "$cross_compiling" = yes; then
3941
cat >conftest.$ac_ext <<_ACEOF
3944
cat confdefs.h >>conftest.$ac_ext
3945
cat >>conftest.$ac_ext <<_ACEOF
3946
/* end confdefs.h. */
3949
#if ((' ' & 0x0FF) == 0x020)
3950
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3951
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3953
# define ISLOWER(c) \
3954
(('a' <= (c) && (c) <= 'i') \
3955
|| ('j' <= (c) && (c) <= 'r') \
3956
|| ('s' <= (c) && (c) <= 'z'))
3957
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3960
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3965
for (i = 0; i < 256; i++)
3966
if (XOR (islower (i), ISLOWER (i))
3967
|| toupper (i) != TOUPPER (i))
3972
rm -f conftest$ac_exeext
3973
if { (ac_try="$ac_link"
3975
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3976
*) ac_try_echo=$ac_try;;
3978
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3979
$as_echo "$ac_try_echo") >&5
3980
(eval "$ac_link") 2>&5
3982
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3984
{ (case "(($ac_try" in
3985
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3986
*) ac_try_echo=$ac_try;;
3988
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3989
$as_echo "$ac_try_echo") >&5
3990
(eval "$ac_try") 2>&5
3992
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993
(exit $ac_status); }; }; then
3996
$as_echo "$as_me: program exited with status $ac_status" >&5
3997
$as_echo "$as_me: failed program was:" >&5
3998
sed 's/^/| /' conftest.$ac_ext >&5
4001
ac_cv_header_stdc=no
4003
rm -rf conftest.dSYM
4004
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4010
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4011
$as_echo "$ac_cv_header_stdc" >&6; }
4012
if test $ac_cv_header_stdc = yes; then
4014
cat >>confdefs.h <<\_ACEOF
4015
#define STDC_HEADERS 1
4020
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4030
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4031
inttypes.h stdint.h unistd.h
4033
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4034
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4035
$as_echo_n "checking for $ac_header... " >&6; }
4036
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4037
$as_echo_n "(cached) " >&6
4039
cat >conftest.$ac_ext <<_ACEOF
4042
cat confdefs.h >>conftest.$ac_ext
4043
cat >>conftest.$ac_ext <<_ACEOF
4044
/* end confdefs.h. */
4045
$ac_includes_default
4047
#include <$ac_header>
4049
rm -f conftest.$ac_objext
4050
if { (ac_try="$ac_compile"
4052
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4053
*) ac_try_echo=$ac_try;;
4055
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4056
$as_echo "$ac_try_echo") >&5
4057
(eval "$ac_compile") 2>conftest.er1
4059
grep -v '^ *+' conftest.er1 >conftest.err
4061
cat conftest.err >&5
4062
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4063
(exit $ac_status); } && {
4064
test -z "$ac_c_werror_flag" ||
4065
test ! -s conftest.err
4066
} && test -s conftest.$ac_objext; then
4067
eval "$as_ac_Header=yes"
4069
$as_echo "$as_me: failed program was:" >&5
4070
sed 's/^/| /' conftest.$ac_ext >&5
4072
eval "$as_ac_Header=no"
4075
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4077
ac_res=`eval 'as_val=${'$as_ac_Header'}
4078
$as_echo "$as_val"'`
4079
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4080
$as_echo "$ac_res" >&6; }
4081
as_val=`eval 'as_val=${'$as_ac_Header'}
4082
$as_echo "$as_val"'`
4083
if test "x$as_val" = x""yes; then
4084
cat >>confdefs.h <<_ACEOF
4085
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4094
for ac_header in unistd_h
4096
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4097
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4098
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4099
$as_echo_n "checking for $ac_header... " >&6; }
4100
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4101
$as_echo_n "(cached) " >&6
4103
ac_res=`eval 'as_val=${'$as_ac_Header'}
4104
$as_echo "$as_val"'`
4105
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4106
$as_echo "$ac_res" >&6; }
4108
# Is the header compilable?
4109
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4110
$as_echo_n "checking $ac_header usability... " >&6; }
4111
cat >conftest.$ac_ext <<_ACEOF
4114
cat confdefs.h >>conftest.$ac_ext
4115
cat >>conftest.$ac_ext <<_ACEOF
4116
/* end confdefs.h. */
4117
$ac_includes_default
4118
#include <$ac_header>
4120
rm -f conftest.$ac_objext
4121
if { (ac_try="$ac_compile"
4123
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4124
*) ac_try_echo=$ac_try;;
4126
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4127
$as_echo "$ac_try_echo") >&5
4128
(eval "$ac_compile") 2>conftest.er1
4130
grep -v '^ *+' conftest.er1 >conftest.err
4132
cat conftest.err >&5
4133
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4134
(exit $ac_status); } && {
4135
test -z "$ac_c_werror_flag" ||
4136
test ! -s conftest.err
4137
} && test -s conftest.$ac_objext; then
4138
ac_header_compiler=yes
4140
$as_echo "$as_me: failed program was:" >&5
4141
sed 's/^/| /' conftest.$ac_ext >&5
4143
ac_header_compiler=no
4146
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4147
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4148
$as_echo "$ac_header_compiler" >&6; }
4150
# Is the header present?
4151
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4152
$as_echo_n "checking $ac_header presence... " >&6; }
4153
cat >conftest.$ac_ext <<_ACEOF
4156
cat confdefs.h >>conftest.$ac_ext
4157
cat >>conftest.$ac_ext <<_ACEOF
4158
/* end confdefs.h. */
4159
#include <$ac_header>
4161
if { (ac_try="$ac_cpp conftest.$ac_ext"
4163
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4164
*) ac_try_echo=$ac_try;;
4166
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4167
$as_echo "$ac_try_echo") >&5
4168
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4170
grep -v '^ *+' conftest.er1 >conftest.err
4172
cat conftest.err >&5
4173
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4174
(exit $ac_status); } >/dev/null && {
4175
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4176
test ! -s conftest.err
4178
ac_header_preproc=yes
4180
$as_echo "$as_me: failed program was:" >&5
4181
sed 's/^/| /' conftest.$ac_ext >&5
4183
ac_header_preproc=no
4186
rm -f conftest.err conftest.$ac_ext
4187
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4188
$as_echo "$ac_header_preproc" >&6; }
4190
# So? What about this header?
4191
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4193
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4194
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4195
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4196
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4197
ac_header_preproc=yes
4200
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4201
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4202
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4203
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4204
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4205
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4206
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4207
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4208
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4209
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4210
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4211
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4215
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4216
$as_echo_n "checking for $ac_header... " >&6; }
4217
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4218
$as_echo_n "(cached) " >&6
4220
eval "$as_ac_Header=\$ac_header_preproc"
4222
ac_res=`eval 'as_val=${'$as_ac_Header'}
4223
$as_echo "$as_val"'`
4224
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4225
$as_echo "$ac_res" >&6; }
4228
as_val=`eval 'as_val=${'$as_ac_Header'}
4229
$as_echo "$as_val"'`
4230
if test "x$as_val" = x""yes; then
4231
cat >>confdefs.h <<_ACEOF
4232
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4240
{ $as_echo "$as_me:$LINENO: checking for getpagesize" >&5
4241
$as_echo_n "checking for getpagesize... " >&6; }
4242
if test "${cl_cv_func_getpagesize+set}" = set; then
4243
$as_echo_n "(cached) " >&6
4245
cat >conftest.$ac_ext <<_ACEOF
4248
cat confdefs.h >>conftest.$ac_ext
4249
cat >>conftest.$ac_ext <<_ACEOF
4250
/* end confdefs.h. */
4252
#ifdef HAVE_UNISTD_H
4253
#include <sys/types.h>
4265
rm -f conftest.$ac_objext conftest$ac_exeext
4266
if { (ac_try="$ac_link"
4268
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4269
*) ac_try_echo=$ac_try;;
4271
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4272
$as_echo "$ac_try_echo") >&5
4273
(eval "$ac_link") 2>conftest.er1
4275
grep -v '^ *+' conftest.er1 >conftest.err
4277
cat conftest.err >&5
4278
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279
(exit $ac_status); } && {
4280
test -z "$ac_c_werror_flag" ||
4281
test ! -s conftest.err
4282
} && test -s conftest$ac_exeext && {
4283
test "$cross_compiling" = yes ||
4284
$as_test_x conftest$ac_exeext
4286
cl_cv_func_getpagesize=yes
4288
$as_echo "$as_me: failed program was:" >&5
4289
sed 's/^/| /' conftest.$ac_ext >&5
4291
cl_cv_func_getpagesize=no
4294
rm -rf conftest.dSYM
4295
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4296
conftest$ac_exeext conftest.$ac_ext
4298
{ $as_echo "$as_me:$LINENO: result: $cl_cv_func_getpagesize" >&5
4299
$as_echo "$cl_cv_func_getpagesize" >&6; }
4300
if test $cl_cv_func_getpagesize = yes; then
4302
cat >>confdefs.h <<\_ACEOF
4303
#define HAVE_GETPAGESIZE /**/
4309
if test -n "$have_getpagesize"; then
4310
{ $as_echo "$as_me:$LINENO: checking for getpagesize declaration" >&5
4311
$as_echo_n "checking for getpagesize declaration... " >&6; }
4312
if test "${cl_cv_proto_getpagesize+set}" = set; then
4313
$as_echo_n "(cached) " >&6
4316
cat >conftest.$ac_ext <<_ACEOF
4319
cat confdefs.h >>conftest.$ac_ext
4320
cat >>conftest.$ac_ext <<_ACEOF
4321
/* end confdefs.h. */
4324
#ifdef HAVE_UNISTD_H
4343
rm -f conftest.$ac_objext
4344
if { (ac_try="$ac_compile"
4346
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4347
*) ac_try_echo=$ac_try;;
4349
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4350
$as_echo "$ac_try_echo") >&5
4351
(eval "$ac_compile") 2>conftest.er1
4353
grep -v '^ *+' conftest.er1 >conftest.err
4355
cat conftest.err >&5
4356
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357
(exit $ac_status); } && {
4358
test -z "$ac_c_werror_flag" ||
4359
test ! -s conftest.err
4360
} && test -s conftest.$ac_objext; then
4361
cl_cv_proto_getpagesize_ret="int"
4363
$as_echo "$as_me: failed program was:" >&5
4364
sed 's/^/| /' conftest.$ac_ext >&5
4366
cl_cv_proto_getpagesize_ret="size_t"
4369
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4372
cl_cv_proto_getpagesize="extern $cl_cv_proto_getpagesize_ret getpagesize (void);"
4375
cl_cv_proto_getpagesize=`echo "$cl_cv_proto_getpagesize" | tr -s ' ' | sed -e 's/( /(/'`
4376
{ $as_echo "$as_me:$LINENO: result: ${ac_t:-
4377
}$cl_cv_proto_getpagesize" >&5
4379
}$cl_cv_proto_getpagesize" >&6; }
4382
cat >>confdefs.h <<_ACEOF
4383
#define RETGETPAGESIZETYPE $cl_cv_proto_getpagesize_ret
4388
for ac_header in sys/param.h
4390
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4391
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4392
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4393
$as_echo_n "checking for $ac_header... " >&6; }
4394
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4395
$as_echo_n "(cached) " >&6
4397
ac_res=`eval 'as_val=${'$as_ac_Header'}
4398
$as_echo "$as_val"'`
4399
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4400
$as_echo "$ac_res" >&6; }
4402
# Is the header compilable?
4403
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4404
$as_echo_n "checking $ac_header usability... " >&6; }
4405
cat >conftest.$ac_ext <<_ACEOF
4408
cat confdefs.h >>conftest.$ac_ext
4409
cat >>conftest.$ac_ext <<_ACEOF
4410
/* end confdefs.h. */
4411
$ac_includes_default
4412
#include <$ac_header>
4414
rm -f conftest.$ac_objext
4415
if { (ac_try="$ac_compile"
4417
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4418
*) ac_try_echo=$ac_try;;
4420
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4421
$as_echo "$ac_try_echo") >&5
4422
(eval "$ac_compile") 2>conftest.er1
4424
grep -v '^ *+' conftest.er1 >conftest.err
4426
cat conftest.err >&5
4427
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428
(exit $ac_status); } && {
4429
test -z "$ac_c_werror_flag" ||
4430
test ! -s conftest.err
4431
} && test -s conftest.$ac_objext; then
4432
ac_header_compiler=yes
4434
$as_echo "$as_me: failed program was:" >&5
4435
sed 's/^/| /' conftest.$ac_ext >&5
4437
ac_header_compiler=no
4440
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4441
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4442
$as_echo "$ac_header_compiler" >&6; }
4444
# Is the header present?
4445
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4446
$as_echo_n "checking $ac_header presence... " >&6; }
4447
cat >conftest.$ac_ext <<_ACEOF
4450
cat confdefs.h >>conftest.$ac_ext
4451
cat >>conftest.$ac_ext <<_ACEOF
4452
/* end confdefs.h. */
4453
#include <$ac_header>
4455
if { (ac_try="$ac_cpp conftest.$ac_ext"
4457
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4458
*) ac_try_echo=$ac_try;;
4460
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4461
$as_echo "$ac_try_echo") >&5
4462
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4464
grep -v '^ *+' conftest.er1 >conftest.err
4466
cat conftest.err >&5
4467
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468
(exit $ac_status); } >/dev/null && {
4469
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4470
test ! -s conftest.err
4472
ac_header_preproc=yes
4474
$as_echo "$as_me: failed program was:" >&5
4475
sed 's/^/| /' conftest.$ac_ext >&5
4477
ac_header_preproc=no
4480
rm -f conftest.err conftest.$ac_ext
4481
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4482
$as_echo "$ac_header_preproc" >&6; }
4484
# So? What about this header?
4485
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4487
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4488
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4489
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4490
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4491
ac_header_preproc=yes
4494
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4495
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4496
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4497
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4498
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4499
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4500
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4501
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4502
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4503
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4504
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4505
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4509
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4510
$as_echo_n "checking for $ac_header... " >&6; }
4511
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4512
$as_echo_n "(cached) " >&6
4514
eval "$as_ac_Header=\$ac_header_preproc"
4516
ac_res=`eval 'as_val=${'$as_ac_Header'}
4517
$as_echo "$as_val"'`
4518
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4519
$as_echo "$ac_res" >&6; }
4522
as_val=`eval 'as_val=${'$as_ac_Header'}
4523
$as_echo "$as_val"'`
4524
if test "x$as_val" = x""yes; then
4525
cat >>confdefs.h <<_ACEOF
4526
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4535
{ $as_echo "$as_me:$LINENO: checking for vm_allocate" >&5
4536
$as_echo_n "checking for vm_allocate... " >&6; }
4537
if test "${cl_cv_func_vm+set}" = set; then
4538
$as_echo_n "(cached) " >&6
4540
cat >conftest.$ac_ext <<_ACEOF
4543
cat confdefs.h >>conftest.$ac_ext
4544
cat >>conftest.$ac_ext <<_ACEOF
4545
/* end confdefs.h. */
4550
vm_allocate(); task_self();
4555
rm -f conftest.$ac_objext conftest$ac_exeext
4556
if { (ac_try="$ac_link"
4558
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4559
*) ac_try_echo=$ac_try;;
4561
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4562
$as_echo "$ac_try_echo") >&5
4563
(eval "$ac_link") 2>conftest.er1
4565
grep -v '^ *+' conftest.er1 >conftest.err
4567
cat conftest.err >&5
4568
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569
(exit $ac_status); } && {
4570
test -z "$ac_c_werror_flag" ||
4571
test ! -s conftest.err
4572
} && test -s conftest$ac_exeext && {
4573
test "$cross_compiling" = yes ||
4574
$as_test_x conftest$ac_exeext
4578
$as_echo "$as_me: failed program was:" >&5
4579
sed 's/^/| /' conftest.$ac_ext >&5
4584
rm -rf conftest.dSYM
4585
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4586
conftest$ac_exeext conftest.$ac_ext
4588
{ $as_echo "$as_me:$LINENO: result: $cl_cv_func_vm" >&5
4589
$as_echo "$cl_cv_func_vm" >&6; }
4590
if test $cl_cv_func_vm = yes; then
4592
cat >>confdefs.h <<\_ACEOF
4593
#define HAVE_MACH_VM /**/
4600
if test "${ac_cv_header_sys_mman_h+set}" = set; then
4601
{ $as_echo "$as_me:$LINENO: checking for sys/mman.h" >&5
4602
$as_echo_n "checking for sys/mman.h... " >&6; }
4603
if test "${ac_cv_header_sys_mman_h+set}" = set; then
4604
$as_echo_n "(cached) " >&6
4606
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
4607
$as_echo "$ac_cv_header_sys_mman_h" >&6; }
4609
# Is the header compilable?
4610
{ $as_echo "$as_me:$LINENO: checking sys/mman.h usability" >&5
4611
$as_echo_n "checking sys/mman.h usability... " >&6; }
4612
cat >conftest.$ac_ext <<_ACEOF
4615
cat confdefs.h >>conftest.$ac_ext
4616
cat >>conftest.$ac_ext <<_ACEOF
4617
/* end confdefs.h. */
4618
$ac_includes_default
4619
#include <sys/mman.h>
4621
rm -f conftest.$ac_objext
4622
if { (ac_try="$ac_compile"
4624
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4625
*) ac_try_echo=$ac_try;;
4627
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4628
$as_echo "$ac_try_echo") >&5
4629
(eval "$ac_compile") 2>conftest.er1
4631
grep -v '^ *+' conftest.er1 >conftest.err
4633
cat conftest.err >&5
4634
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4635
(exit $ac_status); } && {
4636
test -z "$ac_c_werror_flag" ||
4637
test ! -s conftest.err
4638
} && test -s conftest.$ac_objext; then
4639
ac_header_compiler=yes
4641
$as_echo "$as_me: failed program was:" >&5
4642
sed 's/^/| /' conftest.$ac_ext >&5
4644
ac_header_compiler=no
4647
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4648
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4649
$as_echo "$ac_header_compiler" >&6; }
4651
# Is the header present?
4652
{ $as_echo "$as_me:$LINENO: checking sys/mman.h presence" >&5
4653
$as_echo_n "checking sys/mman.h presence... " >&6; }
4654
cat >conftest.$ac_ext <<_ACEOF
4657
cat confdefs.h >>conftest.$ac_ext
4658
cat >>conftest.$ac_ext <<_ACEOF
4659
/* end confdefs.h. */
4660
#include <sys/mman.h>
4662
if { (ac_try="$ac_cpp conftest.$ac_ext"
4664
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4665
*) ac_try_echo=$ac_try;;
4667
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4668
$as_echo "$ac_try_echo") >&5
4669
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4671
grep -v '^ *+' conftest.er1 >conftest.err
4673
cat conftest.err >&5
4674
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675
(exit $ac_status); } >/dev/null && {
4676
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4677
test ! -s conftest.err
4679
ac_header_preproc=yes
4681
$as_echo "$as_me: failed program was:" >&5
4682
sed 's/^/| /' conftest.$ac_ext >&5
4684
ac_header_preproc=no
4687
rm -f conftest.err conftest.$ac_ext
4688
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4689
$as_echo "$ac_header_preproc" >&6; }
4691
# So? What about this header?
4692
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4694
{ $as_echo "$as_me:$LINENO: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&5
4695
$as_echo "$as_me: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4696
{ $as_echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the compiler's result" >&5
4697
$as_echo "$as_me: WARNING: sys/mman.h: proceeding with the compiler's result" >&2;}
4698
ac_header_preproc=yes
4701
{ $as_echo "$as_me:$LINENO: WARNING: sys/mman.h: present but cannot be compiled" >&5
4702
$as_echo "$as_me: WARNING: sys/mman.h: present but cannot be compiled" >&2;}
4703
{ $as_echo "$as_me:$LINENO: WARNING: sys/mman.h: check for missing prerequisite headers?" >&5
4704
$as_echo "$as_me: WARNING: sys/mman.h: check for missing prerequisite headers?" >&2;}
4705
{ $as_echo "$as_me:$LINENO: WARNING: sys/mman.h: see the Autoconf documentation" >&5
4706
$as_echo "$as_me: WARNING: sys/mman.h: see the Autoconf documentation" >&2;}
4707
{ $as_echo "$as_me:$LINENO: WARNING: sys/mman.h: section \"Present But Cannot Be Compiled\"" >&5
4708
$as_echo "$as_me: WARNING: sys/mman.h: section \"Present But Cannot Be Compiled\"" >&2;}
4709
{ $as_echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&5
4710
$as_echo "$as_me: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&2;}
4711
{ $as_echo "$as_me:$LINENO: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&5
4712
$as_echo "$as_me: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&2;}
4716
{ $as_echo "$as_me:$LINENO: checking for sys/mman.h" >&5
4717
$as_echo_n "checking for sys/mman.h... " >&6; }
4718
if test "${ac_cv_header_sys_mman_h+set}" = set; then
4719
$as_echo_n "(cached) " >&6
4721
ac_cv_header_sys_mman_h=$ac_header_preproc
4723
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
4724
$as_echo "$ac_cv_header_sys_mman_h" >&6; }
4727
if test "x$ac_cv_header_sys_mman_h" = x""yes; then
4733
if test -z "$no_mmap"; then
4734
{ $as_echo "$as_me:$LINENO: checking for mmap" >&5
4735
$as_echo_n "checking for mmap... " >&6; }
4736
if test "${ac_cv_func_mmap+set}" = set; then
4737
$as_echo_n "(cached) " >&6
4739
cat >conftest.$ac_ext <<_ACEOF
4742
cat confdefs.h >>conftest.$ac_ext
4743
cat >>conftest.$ac_ext <<_ACEOF
4744
/* end confdefs.h. */
4745
/* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
4746
For example, HP-UX 11i <limits.h> declares gettimeofday. */
4747
#define mmap innocuous_mmap
4749
/* System header to define __stub macros and hopefully few prototypes,
4750
which can conflict with char mmap (); below.
4751
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4752
<limits.h> exists even on freestanding compilers. */
4755
# include <limits.h>
4757
# include <assert.h>
4762
/* Override any GCC internal prototype to avoid an error.
4763
Use char because int might match the return type of a GCC
4764
builtin and then its argument prototype would still apply. */
4769
/* The GNU C library defines this for functions which it implements
4770
to always fail with ENOSYS. Some functions are actually named
4771
something starting with __ and the normal name is an alias. */
4772
#if defined __stub_mmap || defined __stub___mmap
4784
rm -f conftest.$ac_objext conftest$ac_exeext
4785
if { (ac_try="$ac_link"
4787
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4788
*) ac_try_echo=$ac_try;;
4790
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4791
$as_echo "$ac_try_echo") >&5
4792
(eval "$ac_link") 2>conftest.er1
4794
grep -v '^ *+' conftest.er1 >conftest.err
4796
cat conftest.err >&5
4797
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4798
(exit $ac_status); } && {
4799
test -z "$ac_c_werror_flag" ||
4800
test ! -s conftest.err
4801
} && test -s conftest$ac_exeext && {
4802
test "$cross_compiling" = yes ||
4803
$as_test_x conftest$ac_exeext
4807
$as_echo "$as_me: failed program was:" >&5
4808
sed 's/^/| /' conftest.$ac_ext >&5
4813
rm -rf conftest.dSYM
4814
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4815
conftest$ac_exeext conftest.$ac_ext
4817
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
4818
$as_echo "$ac_cv_func_mmap" >&6; }
4819
if test "x$ac_cv_func_mmap" = x""yes; then
4824
if test -z "$no_mmap"; then
4826
cat >>confdefs.h <<\_ACEOF
4827
#define HAVE_MMAP /**/
4830
{ $as_echo "$as_me:$LINENO: checking for working mmap" >&5
4831
$as_echo_n "checking for working mmap... " >&6; }
4832
if test "${cl_cv_func_mmap_works+set}" = set; then
4833
$as_echo_n "(cached) " >&6
4840
mips-sgi-irix* | mips-dec-ultrix*)
4841
# UNIX_IRIX, UNIX_DEC_ULTRIX
4851
#ifdef HAVE_UNISTD_H
4855
#include <sys/types.h>
4856
#include <sys/mman.h>
4859
mmap_prog_2="#define bits_to_avoid $avoid"'
4864
#define my_size 32768 /* hope that 32768 is a multiple of the page size */
4865
/* i*32 KB for i=1..31 gives a total of 15.5 MB, which is close to what we need */
4868
#define my_size 8192 /* hope that 8192 is a multiple of the page size */
4869
/* i*8 KB for i=1..64 gives a total of 16.25 MB, which is close to what we need */
4872
#define i_ok(i) ((i) & (bits_to_avoid >> my_shift) == 0)
4873
for (i=my_low; i<=my_high; i++)
4875
{ caddr_t addr = (caddr_t)(i << my_shift);
4876
/* Check for 8 MB, not 16 MB. This is more likely to work on Solaris 2. */
4878
long size = i*my_size;
4880
long size = ((i+1)/2)*my_size;
4882
if (mmap(addr,size,PROT_READ|PROT_WRITE,flags|MAP_FIXED,fd,0) == (void*)-1) exit(1);
4884
#define x(i) *(unsigned char *) ((i<<my_shift) + (i*i))
4885
#define y(i) (unsigned char)((3*i-4)*(7*i+3))
4886
for (i=my_low; i<=my_high; i++) if (i_ok(i)) { x(i) = y(i); }
4887
for (i=my_high; i>=my_low; i--) if (i_ok(i)) { if (x(i) != y(i)) exit(1); }
4891
if test "$cross_compiling" = yes; then
4892
: # When cross-compiling, don't assume anything.
4895
cat >conftest.$ac_ext <<_ACEOF
4898
cat confdefs.h >>conftest.$ac_ext
4899
cat >>conftest.$ac_ext <<_ACEOF
4900
/* end confdefs.h. */
4903
#if defined __MACH__ && defined __APPLE__
4904
/* Avoid a crash on MacOS X. */
4905
#include <mach/mach.h>
4906
#include <mach/mach_error.h>
4907
#include <mach/thread_status.h>
4908
#include <mach/exception.h>
4909
#include <mach/task.h>
4910
#include <pthread.h>
4911
/* The exception port on which our thread listens. */
4912
static mach_port_t our_exception_port;
4913
/* The main function of the thread listening for exceptions of type
4916
mach_exception_thread (void *arg)
4918
/* Buffer for a message to be received. */
4920
mach_msg_header_t head;
4921
mach_msg_body_t msgh_body;
4924
mach_msg_return_t retval;
4925
/* Wait for a message on the exception port. */
4926
retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
4927
our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
4928
if (retval != MACH_MSG_SUCCESS)
4935
mach_port_t self = mach_task_self ();
4936
/* Allocate a port on which the thread shall listen for exceptions. */
4937
if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
4939
/* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
4940
if (mach_port_insert_right (self, our_exception_port, our_exception_port,
4941
MACH_MSG_TYPE_MAKE_SEND)
4943
/* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
4945
exception_mask_t mask = EXC_MASK_BAD_ACCESS;
4946
/* Create the thread listening on the exception port. */
4947
pthread_attr_t attr;
4949
if (pthread_attr_init (&attr) == 0
4950
&& pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
4951
&& pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
4952
pthread_attr_destroy (&attr);
4953
/* Replace the exception port info for these exceptions with our own.
4954
Note that we replace the exception port for the entire task, not only
4955
for a particular thread. This has the effect that when our exception
4956
port gets the message, the thread specific exception port has already
4957
been asked, and we don't need to bother about it.
4958
See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
4959
task_set_exception_ports (self, mask, our_exception_port,
4960
EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
4966
/* Avoid a crash on POSIX systems. */
4968
/* A POSIX signal handler. */
4970
exception_handler (int sig)
4978
signal (SIGSEGV, exception_handler);
4981
signal (SIGBUS, exception_handler);
4986
int flags = MAP_ANON | MAP_PRIVATE;
4992
rm -f conftest$ac_exeext
4993
if { (ac_try="$ac_link"
4995
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4996
*) ac_try_echo=$ac_try;;
4998
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4999
$as_echo "$ac_try_echo") >&5
5000
(eval "$ac_link") 2>&5
5002
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5003
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5004
{ (case "(($ac_try" in
5005
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5006
*) ac_try_echo=$ac_try;;
5008
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5009
$as_echo "$ac_try_echo") >&5
5010
(eval "$ac_try") 2>&5
5012
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013
(exit $ac_status); }; }; then
5015
cl_cv_func_mmap_anon=yes
5017
$as_echo "$as_me: program exited with status $ac_status" >&5
5018
$as_echo "$as_me: failed program was:" >&5
5019
sed 's/^/| /' conftest.$ac_ext >&5
5022
rm -rf conftest.dSYM
5023
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5027
if test "$cross_compiling" = yes; then
5028
: # When cross-compiling, don't assume anything.
5031
cat >conftest.$ac_ext <<_ACEOF
5034
cat confdefs.h >>conftest.$ac_ext
5035
cat >>conftest.$ac_ext <<_ACEOF
5036
/* end confdefs.h. */
5039
#if defined __MACH__ && defined __APPLE__
5040
/* Avoid a crash on MacOS X. */
5041
#include <mach/mach.h>
5042
#include <mach/mach_error.h>
5043
#include <mach/thread_status.h>
5044
#include <mach/exception.h>
5045
#include <mach/task.h>
5046
#include <pthread.h>
5047
/* The exception port on which our thread listens. */
5048
static mach_port_t our_exception_port;
5049
/* The main function of the thread listening for exceptions of type
5052
mach_exception_thread (void *arg)
5054
/* Buffer for a message to be received. */
5056
mach_msg_header_t head;
5057
mach_msg_body_t msgh_body;
5060
mach_msg_return_t retval;
5061
/* Wait for a message on the exception port. */
5062
retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
5063
our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
5064
if (retval != MACH_MSG_SUCCESS)
5071
mach_port_t self = mach_task_self ();
5072
/* Allocate a port on which the thread shall listen for exceptions. */
5073
if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
5075
/* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
5076
if (mach_port_insert_right (self, our_exception_port, our_exception_port,
5077
MACH_MSG_TYPE_MAKE_SEND)
5079
/* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
5081
exception_mask_t mask = EXC_MASK_BAD_ACCESS;
5082
/* Create the thread listening on the exception port. */
5083
pthread_attr_t attr;
5085
if (pthread_attr_init (&attr) == 0
5086
&& pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
5087
&& pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
5088
pthread_attr_destroy (&attr);
5089
/* Replace the exception port info for these exceptions with our own.
5090
Note that we replace the exception port for the entire task, not only
5091
for a particular thread. This has the effect that when our exception
5092
port gets the message, the thread specific exception port has already
5093
been asked, and we don't need to bother about it.
5094
See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
5095
task_set_exception_ports (self, mask, our_exception_port,
5096
EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
5102
/* Avoid a crash on POSIX systems. */
5104
/* A POSIX signal handler. */
5106
exception_handler (int sig)
5114
signal (SIGSEGV, exception_handler);
5117
signal (SIGBUS, exception_handler);
5122
int flags = MAP_ANONYMOUS | MAP_PRIVATE;
5128
rm -f conftest$ac_exeext
5129
if { (ac_try="$ac_link"
5131
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5132
*) ac_try_echo=$ac_try;;
5134
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5135
$as_echo "$ac_try_echo") >&5
5136
(eval "$ac_link") 2>&5
5138
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5139
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5140
{ (case "(($ac_try" in
5141
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5142
*) ac_try_echo=$ac_try;;
5144
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5145
$as_echo "$ac_try_echo") >&5
5146
(eval "$ac_try") 2>&5
5148
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5149
(exit $ac_status); }; }; then
5151
cl_cv_func_mmap_anonymous=yes
5153
$as_echo "$as_me: program exited with status $ac_status" >&5
5154
$as_echo "$as_me: failed program was:" >&5
5155
sed 's/^/| /' conftest.$ac_ext >&5
5158
rm -rf conftest.dSYM
5159
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5163
if test "$cross_compiling" = yes; then
5164
: # When cross-compiling, don't assume anything.
5167
cat >conftest.$ac_ext <<_ACEOF
5170
cat confdefs.h >>conftest.$ac_ext
5171
cat >>conftest.$ac_ext <<_ACEOF
5172
/* end confdefs.h. */
5175
#if defined __MACH__ && defined __APPLE__
5176
/* Avoid a crash on MacOS X. */
5177
#include <mach/mach.h>
5178
#include <mach/mach_error.h>
5179
#include <mach/thread_status.h>
5180
#include <mach/exception.h>
5181
#include <mach/task.h>
5182
#include <pthread.h>
5183
/* The exception port on which our thread listens. */
5184
static mach_port_t our_exception_port;
5185
/* The main function of the thread listening for exceptions of type
5188
mach_exception_thread (void *arg)
5190
/* Buffer for a message to be received. */
5192
mach_msg_header_t head;
5193
mach_msg_body_t msgh_body;
5196
mach_msg_return_t retval;
5197
/* Wait for a message on the exception port. */
5198
retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
5199
our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
5200
if (retval != MACH_MSG_SUCCESS)
5207
mach_port_t self = mach_task_self ();
5208
/* Allocate a port on which the thread shall listen for exceptions. */
5209
if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
5211
/* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
5212
if (mach_port_insert_right (self, our_exception_port, our_exception_port,
5213
MACH_MSG_TYPE_MAKE_SEND)
5215
/* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
5217
exception_mask_t mask = EXC_MASK_BAD_ACCESS;
5218
/* Create the thread listening on the exception port. */
5219
pthread_attr_t attr;
5221
if (pthread_attr_init (&attr) == 0
5222
&& pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
5223
&& pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
5224
pthread_attr_destroy (&attr);
5225
/* Replace the exception port info for these exceptions with our own.
5226
Note that we replace the exception port for the entire task, not only
5227
for a particular thread. This has the effect that when our exception
5228
port gets the message, the thread specific exception port has already
5229
been asked, and we don't need to bother about it.
5230
See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
5231
task_set_exception_ports (self, mask, our_exception_port,
5232
EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
5238
/* Avoid a crash on POSIX systems. */
5240
/* A POSIX signal handler. */
5242
exception_handler (int sig)
5250
signal (SIGSEGV, exception_handler);
5253
signal (SIGBUS, exception_handler);
5261
int flags = MAP_FILE | MAP_PRIVATE;
5262
int fd = open("/dev/zero",O_RDONLY,0666);
5268
rm -f conftest$ac_exeext
5269
if { (ac_try="$ac_link"
5271
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5272
*) ac_try_echo=$ac_try;;
5274
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5275
$as_echo "$ac_try_echo") >&5
5276
(eval "$ac_link") 2>&5
5278
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5279
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5280
{ (case "(($ac_try" in
5281
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5282
*) ac_try_echo=$ac_try;;
5284
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5285
$as_echo "$ac_try_echo") >&5
5286
(eval "$ac_try") 2>&5
5288
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5289
(exit $ac_status); }; }; then
5291
cl_cv_func_mmap_devzero=yes
5293
$as_echo "$as_me: program exited with status $ac_status" >&5
5294
$as_echo "$as_me: failed program was:" >&5
5295
sed 's/^/| /' conftest.$ac_ext >&5
5300
rm -rf conftest.dSYM
5301
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5305
if test -n "$retry_mmap"; then
5306
if test "$cross_compiling" = yes; then
5307
: # When cross-compiling, don't assume anything.
5310
cat >conftest.$ac_ext <<_ACEOF
5313
cat confdefs.h >>conftest.$ac_ext
5314
cat >>conftest.$ac_ext <<_ACEOF
5315
/* end confdefs.h. */
5318
#if defined __MACH__ && defined __APPLE__
5319
/* Avoid a crash on MacOS X. */
5320
#include <mach/mach.h>
5321
#include <mach/mach_error.h>
5322
#include <mach/thread_status.h>
5323
#include <mach/exception.h>
5324
#include <mach/task.h>
5325
#include <pthread.h>
5326
/* The exception port on which our thread listens. */
5327
static mach_port_t our_exception_port;
5328
/* The main function of the thread listening for exceptions of type
5331
mach_exception_thread (void *arg)
5333
/* Buffer for a message to be received. */
5335
mach_msg_header_t head;
5336
mach_msg_body_t msgh_body;
5339
mach_msg_return_t retval;
5340
/* Wait for a message on the exception port. */
5341
retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
5342
our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
5343
if (retval != MACH_MSG_SUCCESS)
5350
mach_port_t self = mach_task_self ();
5351
/* Allocate a port on which the thread shall listen for exceptions. */
5352
if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
5354
/* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
5355
if (mach_port_insert_right (self, our_exception_port, our_exception_port,
5356
MACH_MSG_TYPE_MAKE_SEND)
5358
/* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
5360
exception_mask_t mask = EXC_MASK_BAD_ACCESS;
5361
/* Create the thread listening on the exception port. */
5362
pthread_attr_t attr;
5364
if (pthread_attr_init (&attr) == 0
5365
&& pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
5366
&& pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
5367
pthread_attr_destroy (&attr);
5368
/* Replace the exception port info for these exceptions with our own.
5369
Note that we replace the exception port for the entire task, not only
5370
for a particular thread. This has the effect that when our exception
5371
port gets the message, the thread specific exception port has already
5372
been asked, and we don't need to bother about it.
5373
See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
5374
task_set_exception_ports (self, mask, our_exception_port,
5375
EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
5381
/* Avoid a crash on POSIX systems. */
5383
/* A POSIX signal handler. */
5385
exception_handler (int sig)
5393
signal (SIGSEGV, exception_handler);
5396
signal (SIGBUS, exception_handler);
5405
int flags = MAP_FILE | MAP_PRIVATE;
5406
int fd = open("/dev/zero",O_RDONLY,0666);
5412
rm -f conftest$ac_exeext
5413
if { (ac_try="$ac_link"
5415
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5416
*) ac_try_echo=$ac_try;;
5418
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5419
$as_echo "$ac_try_echo") >&5
5420
(eval "$ac_link") 2>&5
5422
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5423
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5424
{ (case "(($ac_try" in
5425
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5426
*) ac_try_echo=$ac_try;;
5428
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5429
$as_echo "$ac_try_echo") >&5
5430
(eval "$ac_try") 2>&5
5432
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5433
(exit $ac_status); }; }; then
5435
cl_cv_func_mmap_devzero_sun4_29=yes
5437
$as_echo "$as_me: program exited with status $ac_status" >&5
5438
$as_echo "$as_me: failed program was:" >&5
5439
sed 's/^/| /' conftest.$ac_ext >&5
5442
rm -rf conftest.dSYM
5443
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5448
if test -n "$have_mmap_anon" -o -n "$have_mmap_devzero"; then
5449
cl_cv_func_mmap_works=yes
5451
cl_cv_func_mmap_works=no
5455
{ $as_echo "$as_me:$LINENO: result: $cl_cv_func_mmap_works" >&5
5456
$as_echo "$cl_cv_func_mmap_works" >&6; }
5457
if test "$cl_cv_func_mmap_anon" = yes; then
5459
cat >>confdefs.h <<\_ACEOF
5460
#define HAVE_MMAP_ANON /**/
5464
if test "$cl_cv_func_mmap_anonymous" = yes; then
5466
cat >>confdefs.h <<\_ACEOF
5467
#define HAVE_MMAP_ANONYMOUS /**/
5471
if test "$cl_cv_func_mmap_devzero" = yes; then
5473
cat >>confdefs.h <<\_ACEOF
5474
#define HAVE_MMAP_DEVZERO /**/
5478
if test "$cl_cv_func_mmap_devzero_sun4_29" = yes; then
5480
cat >>confdefs.h <<\_ACEOF
5481
#define HAVE_MMAP_DEVZERO_SUN4_29 /**/
5489
for ac_func in mprotect
5491
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5492
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
5493
$as_echo_n "checking for $ac_func... " >&6; }
5494
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5495
$as_echo_n "(cached) " >&6
5497
cat >conftest.$ac_ext <<_ACEOF
5500
cat confdefs.h >>conftest.$ac_ext
5501
cat >>conftest.$ac_ext <<_ACEOF
5502
/* end confdefs.h. */
5503
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5504
For example, HP-UX 11i <limits.h> declares gettimeofday. */
5505
#define $ac_func innocuous_$ac_func
5507
/* System header to define __stub macros and hopefully few prototypes,
5508
which can conflict with char $ac_func (); below.
5509
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5510
<limits.h> exists even on freestanding compilers. */
5513
# include <limits.h>
5515
# include <assert.h>
5520
/* Override any GCC internal prototype to avoid an error.
5521
Use char because int might match the return type of a GCC
5522
builtin and then its argument prototype would still apply. */
5527
/* The GNU C library defines this for functions which it implements
5528
to always fail with ENOSYS. Some functions are actually named
5529
something starting with __ and the normal name is an alias. */
5530
#if defined __stub_$ac_func || defined __stub___$ac_func
5542
rm -f conftest.$ac_objext conftest$ac_exeext
5543
if { (ac_try="$ac_link"
5545
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5546
*) ac_try_echo=$ac_try;;
5548
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5549
$as_echo "$ac_try_echo") >&5
5550
(eval "$ac_link") 2>conftest.er1
5552
grep -v '^ *+' conftest.er1 >conftest.err
5554
cat conftest.err >&5
5555
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5556
(exit $ac_status); } && {
5557
test -z "$ac_c_werror_flag" ||
5558
test ! -s conftest.err
5559
} && test -s conftest$ac_exeext && {
5560
test "$cross_compiling" = yes ||
5561
$as_test_x conftest$ac_exeext
5563
eval "$as_ac_var=yes"
5565
$as_echo "$as_me: failed program was:" >&5
5566
sed 's/^/| /' conftest.$ac_ext >&5
5568
eval "$as_ac_var=no"
5571
rm -rf conftest.dSYM
5572
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5573
conftest$ac_exeext conftest.$ac_ext
5575
ac_res=`eval 'as_val=${'$as_ac_var'}
5576
$as_echo "$as_val"'`
5577
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5578
$as_echo "$ac_res" >&6; }
5579
as_val=`eval 'as_val=${'$as_ac_var'}
5580
$as_echo "$as_val"'`
5581
if test "x$as_val" = x""yes; then
5582
cat >>confdefs.h <<_ACEOF
5583
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5588
if test $ac_cv_func_mprotect = yes; then
5589
{ $as_echo "$as_me:$LINENO: checking for working mprotect" >&5
5590
$as_echo_n "checking for working mprotect... " >&6; }
5591
if test "${cl_cv_func_mprotect_works+set}" = set; then
5592
$as_echo_n "(cached) " >&6
5596
#include <sys/types.h>
5597
/* declare malloc() */
5599
#ifdef HAVE_UNISTD_H
5602
/* declare getpagesize() and mprotect() */
5603
#include <sys/mman.h>
5604
#ifndef HAVE_GETPAGESIZE
5605
#include <sys/param.h>
5606
#define getpagesize() PAGESIZE
5613
RETGETPAGESIZETYPE getpagesize (void);
5617
unsigned long pagesize = getpagesize();
5618
#define page_align(address) (char*)((unsigned long)(address) & -pagesize)
5620
if test "$cross_compiling" = yes; then
5621
# When cross-compiling, don't assume anything.
5624
cat >conftest.$ac_ext <<_ACEOF
5627
cat confdefs.h >>conftest.$ac_ext
5628
cat >>conftest.$ac_ext <<_ACEOF
5629
/* end confdefs.h. */
5631
if ((pagesize-1) & pagesize) exit(1);
5634
rm -f conftest$ac_exeext
5635
if { (ac_try="$ac_link"
5637
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5638
*) ac_try_echo=$ac_try;;
5640
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5641
$as_echo "$ac_try_echo") >&5
5642
(eval "$ac_link") 2>&5
5644
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5645
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5646
{ (case "(($ac_try" in
5647
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5648
*) ac_try_echo=$ac_try;;
5650
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5651
$as_echo "$ac_try_echo") >&5
5652
(eval "$ac_try") 2>&5
5654
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5655
(exit $ac_status); }; }; then
5658
$as_echo "$as_me: program exited with status $ac_status" >&5
5659
$as_echo "$as_me: failed program was:" >&5
5660
sed 's/^/| /' conftest.$ac_ext >&5
5665
rm -rf conftest.dSYM
5666
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5670
mprotect_prog="$mprotect_prog"'
5671
char* area = (char*) malloc(6*pagesize);
5672
char* fault_address = area + pagesize*7/2;
5674
if test -z "$no_mprotect"; then
5675
if test "$cross_compiling" = yes; then
5676
: # When cross-compiling, don't assume anything.
5679
cat >conftest.$ac_ext <<_ACEOF
5682
cat confdefs.h >>conftest.$ac_ext
5683
cat >>conftest.$ac_ext <<_ACEOF
5684
/* end confdefs.h. */
5687
#if defined __MACH__ && defined __APPLE__
5688
/* Avoid a crash on MacOS X. */
5689
#include <mach/mach.h>
5690
#include <mach/mach_error.h>
5691
#include <mach/thread_status.h>
5692
#include <mach/exception.h>
5693
#include <mach/task.h>
5694
#include <pthread.h>
5695
/* The exception port on which our thread listens. */
5696
static mach_port_t our_exception_port;
5697
/* The main function of the thread listening for exceptions of type
5700
mach_exception_thread (void *arg)
5702
/* Buffer for a message to be received. */
5704
mach_msg_header_t head;
5705
mach_msg_body_t msgh_body;
5708
mach_msg_return_t retval;
5709
/* Wait for a message on the exception port. */
5710
retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
5711
our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
5712
if (retval != MACH_MSG_SUCCESS)
5719
mach_port_t self = mach_task_self ();
5720
/* Allocate a port on which the thread shall listen for exceptions. */
5721
if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
5723
/* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
5724
if (mach_port_insert_right (self, our_exception_port, our_exception_port,
5725
MACH_MSG_TYPE_MAKE_SEND)
5727
/* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
5729
exception_mask_t mask = EXC_MASK_BAD_ACCESS;
5730
/* Create the thread listening on the exception port. */
5731
pthread_attr_t attr;
5733
if (pthread_attr_init (&attr) == 0
5734
&& pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
5735
&& pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
5736
pthread_attr_destroy (&attr);
5737
/* Replace the exception port info for these exceptions with our own.
5738
Note that we replace the exception port for the entire task, not only
5739
for a particular thread. This has the effect that when our exception
5740
port gets the message, the thread specific exception port has already
5741
been asked, and we don't need to bother about it.
5742
See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
5743
task_set_exception_ports (self, mask, our_exception_port,
5744
EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
5750
/* Avoid a crash on POSIX systems. */
5752
/* A POSIX signal handler. */
5754
exception_handler (int sig)
5762
signal (SIGSEGV, exception_handler);
5765
signal (SIGBUS, exception_handler);
5771
if (mprotect(page_align(fault_address),pagesize,PROT_NONE) < 0) exit(0);
5772
foo = *fault_address; /* this should cause an exception or signal */
5775
rm -f conftest$ac_exeext
5776
if { (ac_try="$ac_link"
5778
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5779
*) ac_try_echo=$ac_try;;
5781
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5782
$as_echo "$ac_try_echo") >&5
5783
(eval "$ac_link") 2>&5
5785
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5786
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5787
{ (case "(($ac_try" in
5788
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5789
*) ac_try_echo=$ac_try;;
5791
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5792
$as_echo "$ac_try_echo") >&5
5793
(eval "$ac_try") 2>&5
5795
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796
(exit $ac_status); }; }; then
5799
$as_echo "$as_me: program exited with status $ac_status" >&5
5800
$as_echo "$as_me: failed program was:" >&5
5801
sed 's/^/| /' conftest.$ac_ext >&5
5804
rm -rf conftest.dSYM
5805
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5810
if test -z "$no_mprotect"; then
5811
if test "$cross_compiling" = yes; then
5812
: # When cross-compiling, don't assume anything.
5815
cat >conftest.$ac_ext <<_ACEOF
5818
cat confdefs.h >>conftest.$ac_ext
5819
cat >>conftest.$ac_ext <<_ACEOF
5820
/* end confdefs.h. */
5823
#if defined __MACH__ && defined __APPLE__
5824
/* Avoid a crash on MacOS X. */
5825
#include <mach/mach.h>
5826
#include <mach/mach_error.h>
5827
#include <mach/thread_status.h>
5828
#include <mach/exception.h>
5829
#include <mach/task.h>
5830
#include <pthread.h>
5831
/* The exception port on which our thread listens. */
5832
static mach_port_t our_exception_port;
5833
/* The main function of the thread listening for exceptions of type
5836
mach_exception_thread (void *arg)
5838
/* Buffer for a message to be received. */
5840
mach_msg_header_t head;
5841
mach_msg_body_t msgh_body;
5844
mach_msg_return_t retval;
5845
/* Wait for a message on the exception port. */
5846
retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
5847
our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
5848
if (retval != MACH_MSG_SUCCESS)
5855
mach_port_t self = mach_task_self ();
5856
/* Allocate a port on which the thread shall listen for exceptions. */
5857
if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
5859
/* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
5860
if (mach_port_insert_right (self, our_exception_port, our_exception_port,
5861
MACH_MSG_TYPE_MAKE_SEND)
5863
/* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
5865
exception_mask_t mask = EXC_MASK_BAD_ACCESS;
5866
/* Create the thread listening on the exception port. */
5867
pthread_attr_t attr;
5869
if (pthread_attr_init (&attr) == 0
5870
&& pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
5871
&& pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
5872
pthread_attr_destroy (&attr);
5873
/* Replace the exception port info for these exceptions with our own.
5874
Note that we replace the exception port for the entire task, not only
5875
for a particular thread. This has the effect that when our exception
5876
port gets the message, the thread specific exception port has already
5877
been asked, and we don't need to bother about it.
5878
See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
5879
task_set_exception_ports (self, mask, our_exception_port,
5880
EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
5886
/* Avoid a crash on POSIX systems. */
5888
/* A POSIX signal handler. */
5890
exception_handler (int sig)
5898
signal (SIGSEGV, exception_handler);
5901
signal (SIGBUS, exception_handler);
5907
if (mprotect(page_align(fault_address),pagesize,PROT_NONE) < 0) exit(0);
5908
*fault_address = 'z'; /* this should cause an exception or signal */
5911
rm -f conftest$ac_exeext
5912
if { (ac_try="$ac_link"
5914
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5915
*) ac_try_echo=$ac_try;;
5917
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5918
$as_echo "$ac_try_echo") >&5
5919
(eval "$ac_link") 2>&5
5921
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5922
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5923
{ (case "(($ac_try" in
5924
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5925
*) ac_try_echo=$ac_try;;
5927
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5928
$as_echo "$ac_try_echo") >&5
5929
(eval "$ac_try") 2>&5
5931
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932
(exit $ac_status); }; }; then
5935
$as_echo "$as_me: program exited with status $ac_status" >&5
5936
$as_echo "$as_me: failed program was:" >&5
5937
sed 's/^/| /' conftest.$ac_ext >&5
5940
rm -rf conftest.dSYM
5941
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5946
if test -z "$no_mprotect"; then
5947
if test "$cross_compiling" = yes; then
5948
: # When cross-compiling, don't assume anything.
5951
cat >conftest.$ac_ext <<_ACEOF
5954
cat confdefs.h >>conftest.$ac_ext
5955
cat >>conftest.$ac_ext <<_ACEOF
5956
/* end confdefs.h. */
5959
#if defined __MACH__ && defined __APPLE__
5960
/* Avoid a crash on MacOS X. */
5961
#include <mach/mach.h>
5962
#include <mach/mach_error.h>
5963
#include <mach/thread_status.h>
5964
#include <mach/exception.h>
5965
#include <mach/task.h>
5966
#include <pthread.h>
5967
/* The exception port on which our thread listens. */
5968
static mach_port_t our_exception_port;
5969
/* The main function of the thread listening for exceptions of type
5972
mach_exception_thread (void *arg)
5974
/* Buffer for a message to be received. */
5976
mach_msg_header_t head;
5977
mach_msg_body_t msgh_body;
5980
mach_msg_return_t retval;
5981
/* Wait for a message on the exception port. */
5982
retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
5983
our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
5984
if (retval != MACH_MSG_SUCCESS)
5991
mach_port_t self = mach_task_self ();
5992
/* Allocate a port on which the thread shall listen for exceptions. */
5993
if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
5995
/* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
5996
if (mach_port_insert_right (self, our_exception_port, our_exception_port,
5997
MACH_MSG_TYPE_MAKE_SEND)
5999
/* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
6001
exception_mask_t mask = EXC_MASK_BAD_ACCESS;
6002
/* Create the thread listening on the exception port. */
6003
pthread_attr_t attr;
6005
if (pthread_attr_init (&attr) == 0
6006
&& pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
6007
&& pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
6008
pthread_attr_destroy (&attr);
6009
/* Replace the exception port info for these exceptions with our own.
6010
Note that we replace the exception port for the entire task, not only
6011
for a particular thread. This has the effect that when our exception
6012
port gets the message, the thread specific exception port has already
6013
been asked, and we don't need to bother about it.
6014
See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
6015
task_set_exception_ports (self, mask, our_exception_port,
6016
EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
6022
/* Avoid a crash on POSIX systems. */
6024
/* A POSIX signal handler. */
6026
exception_handler (int sig)
6034
signal (SIGSEGV, exception_handler);
6037
signal (SIGBUS, exception_handler);
6043
if (mprotect(page_align(fault_address),pagesize,PROT_READ) < 0) exit(0);
6044
*fault_address = 'z'; /* this should cause an exception or signal */
6047
rm -f conftest$ac_exeext
6048
if { (ac_try="$ac_link"
6050
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6051
*) ac_try_echo=$ac_try;;
6053
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6054
$as_echo "$ac_try_echo") >&5
6055
(eval "$ac_link") 2>&5
6057
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6058
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6059
{ (case "(($ac_try" in
6060
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6061
*) ac_try_echo=$ac_try;;
6063
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6064
$as_echo "$ac_try_echo") >&5
6065
(eval "$ac_try") 2>&5
6067
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068
(exit $ac_status); }; }; then
6071
$as_echo "$as_me: program exited with status $ac_status" >&5
6072
$as_echo "$as_me: failed program was:" >&5
6073
sed 's/^/| /' conftest.$ac_ext >&5
6076
rm -rf conftest.dSYM
6077
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6082
if test -z "$no_mprotect"; then
6083
if test "$cross_compiling" = yes; then
6084
: # When cross-compiling, don't assume anything.
6087
cat >conftest.$ac_ext <<_ACEOF
6090
cat confdefs.h >>conftest.$ac_ext
6091
cat >>conftest.$ac_ext <<_ACEOF
6092
/* end confdefs.h. */
6095
#if defined __MACH__ && defined __APPLE__
6096
/* Avoid a crash on MacOS X. */
6097
#include <mach/mach.h>
6098
#include <mach/mach_error.h>
6099
#include <mach/thread_status.h>
6100
#include <mach/exception.h>
6101
#include <mach/task.h>
6102
#include <pthread.h>
6103
/* The exception port on which our thread listens. */
6104
static mach_port_t our_exception_port;
6105
/* The main function of the thread listening for exceptions of type
6108
mach_exception_thread (void *arg)
6110
/* Buffer for a message to be received. */
6112
mach_msg_header_t head;
6113
mach_msg_body_t msgh_body;
6116
mach_msg_return_t retval;
6117
/* Wait for a message on the exception port. */
6118
retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
6119
our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
6120
if (retval != MACH_MSG_SUCCESS)
6127
mach_port_t self = mach_task_self ();
6128
/* Allocate a port on which the thread shall listen for exceptions. */
6129
if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
6131
/* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
6132
if (mach_port_insert_right (self, our_exception_port, our_exception_port,
6133
MACH_MSG_TYPE_MAKE_SEND)
6135
/* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
6137
exception_mask_t mask = EXC_MASK_BAD_ACCESS;
6138
/* Create the thread listening on the exception port. */
6139
pthread_attr_t attr;
6141
if (pthread_attr_init (&attr) == 0
6142
&& pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
6143
&& pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
6144
pthread_attr_destroy (&attr);
6145
/* Replace the exception port info for these exceptions with our own.
6146
Note that we replace the exception port for the entire task, not only
6147
for a particular thread. This has the effect that when our exception
6148
port gets the message, the thread specific exception port has already
6149
been asked, and we don't need to bother about it.
6150
See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
6151
task_set_exception_ports (self, mask, our_exception_port,
6152
EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
6158
/* Avoid a crash on POSIX systems. */
6160
/* A POSIX signal handler. */
6162
exception_handler (int sig)
6170
signal (SIGSEGV, exception_handler);
6173
signal (SIGBUS, exception_handler);
6179
if (mprotect(page_align(fault_address),pagesize,PROT_READ) < 0) exit(1);
6180
if (mprotect(page_align(fault_address),pagesize,PROT_READ|PROT_WRITE) < 0) exit(1);
6181
*fault_address = 'z'; /* this should not cause an exception or signal */
6184
rm -f conftest$ac_exeext
6185
if { (ac_try="$ac_link"
6187
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6188
*) ac_try_echo=$ac_try;;
6190
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6191
$as_echo "$ac_try_echo") >&5
6192
(eval "$ac_link") 2>&5
6194
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6196
{ (case "(($ac_try" in
6197
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6198
*) ac_try_echo=$ac_try;;
6200
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6201
$as_echo "$ac_try_echo") >&5
6202
(eval "$ac_try") 2>&5
6204
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6205
(exit $ac_status); }; }; then
6208
$as_echo "$as_me: program exited with status $ac_status" >&5
6209
$as_echo "$as_me: failed program was:" >&5
6210
sed 's/^/| /' conftest.$ac_ext >&5
6215
rm -rf conftest.dSYM
6216
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6221
if test -z "$no_mprotect"; then
6222
cl_cv_func_mprotect_works=yes
6224
cl_cv_func_mprotect_works=no
6228
{ $as_echo "$as_me:$LINENO: result: $cl_cv_func_mprotect_works" >&5
6229
$as_echo "$cl_cv_func_mprotect_works" >&6; }
6230
if test $cl_cv_func_mprotect_works = yes; then
6232
cat >>confdefs.h <<\_ACEOF
6233
#define HAVE_WORKING_MPROTECT /**/
6240
for ac_header in sys/shm.h
6242
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6243
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6244
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6245
$as_echo_n "checking for $ac_header... " >&6; }
6246
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6247
$as_echo_n "(cached) " >&6
6249
ac_res=`eval 'as_val=${'$as_ac_Header'}
6250
$as_echo "$as_val"'`
6251
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6252
$as_echo "$ac_res" >&6; }
6254
# Is the header compilable?
6255
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6256
$as_echo_n "checking $ac_header usability... " >&6; }
6257
cat >conftest.$ac_ext <<_ACEOF
6260
cat confdefs.h >>conftest.$ac_ext
6261
cat >>conftest.$ac_ext <<_ACEOF
6262
/* end confdefs.h. */
6263
$ac_includes_default
6264
#include <$ac_header>
6266
rm -f conftest.$ac_objext
6267
if { (ac_try="$ac_compile"
6269
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6270
*) ac_try_echo=$ac_try;;
6272
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6273
$as_echo "$ac_try_echo") >&5
6274
(eval "$ac_compile") 2>conftest.er1
6276
grep -v '^ *+' conftest.er1 >conftest.err
6278
cat conftest.err >&5
6279
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280
(exit $ac_status); } && {
6281
test -z "$ac_c_werror_flag" ||
6282
test ! -s conftest.err
6283
} && test -s conftest.$ac_objext; then
6284
ac_header_compiler=yes
6286
$as_echo "$as_me: failed program was:" >&5
6287
sed 's/^/| /' conftest.$ac_ext >&5
6289
ac_header_compiler=no
6292
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6293
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6294
$as_echo "$ac_header_compiler" >&6; }
6296
# Is the header present?
6297
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6298
$as_echo_n "checking $ac_header presence... " >&6; }
6299
cat >conftest.$ac_ext <<_ACEOF
6302
cat confdefs.h >>conftest.$ac_ext
6303
cat >>conftest.$ac_ext <<_ACEOF
6304
/* end confdefs.h. */
6305
#include <$ac_header>
6307
if { (ac_try="$ac_cpp conftest.$ac_ext"
6309
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6310
*) ac_try_echo=$ac_try;;
6312
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6313
$as_echo "$ac_try_echo") >&5
6314
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6316
grep -v '^ *+' conftest.er1 >conftest.err
6318
cat conftest.err >&5
6319
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320
(exit $ac_status); } >/dev/null && {
6321
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6322
test ! -s conftest.err
6324
ac_header_preproc=yes
6326
$as_echo "$as_me: failed program was:" >&5
6327
sed 's/^/| /' conftest.$ac_ext >&5
6329
ac_header_preproc=no
6332
rm -f conftest.err conftest.$ac_ext
6333
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6334
$as_echo "$ac_header_preproc" >&6; }
6336
# So? What about this header?
6337
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6339
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6340
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6341
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6342
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6343
ac_header_preproc=yes
6346
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6347
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6348
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6349
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6350
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6351
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6352
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6353
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6354
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6355
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6356
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6357
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6361
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6362
$as_echo_n "checking for $ac_header... " >&6; }
6363
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6364
$as_echo_n "(cached) " >&6
6366
eval "$as_ac_Header=\$ac_header_preproc"
6368
ac_res=`eval 'as_val=${'$as_ac_Header'}
6369
$as_echo "$as_val"'`
6370
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6371
$as_echo "$ac_res" >&6; }
6374
as_val=`eval 'as_val=${'$as_ac_Header'}
6375
$as_echo "$as_val"'`
6376
if test "x$as_val" = x""yes; then
6377
cat >>confdefs.h <<_ACEOF
6378
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6385
if test $ac_cv_header_sys_shm_h = yes; then
6387
for ac_header in sys/ipc.h
6389
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6390
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6391
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6392
$as_echo_n "checking for $ac_header... " >&6; }
6393
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6394
$as_echo_n "(cached) " >&6
6396
ac_res=`eval 'as_val=${'$as_ac_Header'}
6397
$as_echo "$as_val"'`
6398
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6399
$as_echo "$ac_res" >&6; }
6401
# Is the header compilable?
6402
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6403
$as_echo_n "checking $ac_header usability... " >&6; }
6404
cat >conftest.$ac_ext <<_ACEOF
6407
cat confdefs.h >>conftest.$ac_ext
6408
cat >>conftest.$ac_ext <<_ACEOF
6409
/* end confdefs.h. */
6410
$ac_includes_default
6411
#include <$ac_header>
6413
rm -f conftest.$ac_objext
6414
if { (ac_try="$ac_compile"
6416
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6417
*) ac_try_echo=$ac_try;;
6419
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6420
$as_echo "$ac_try_echo") >&5
6421
(eval "$ac_compile") 2>conftest.er1
6423
grep -v '^ *+' conftest.er1 >conftest.err
6425
cat conftest.err >&5
6426
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6427
(exit $ac_status); } && {
6428
test -z "$ac_c_werror_flag" ||
6429
test ! -s conftest.err
6430
} && test -s conftest.$ac_objext; then
6431
ac_header_compiler=yes
6433
$as_echo "$as_me: failed program was:" >&5
6434
sed 's/^/| /' conftest.$ac_ext >&5
6436
ac_header_compiler=no
6439
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6440
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6441
$as_echo "$ac_header_compiler" >&6; }
6443
# Is the header present?
6444
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6445
$as_echo_n "checking $ac_header presence... " >&6; }
6446
cat >conftest.$ac_ext <<_ACEOF
6449
cat confdefs.h >>conftest.$ac_ext
6450
cat >>conftest.$ac_ext <<_ACEOF
6451
/* end confdefs.h. */
6452
#include <$ac_header>
6454
if { (ac_try="$ac_cpp conftest.$ac_ext"
6456
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6457
*) ac_try_echo=$ac_try;;
6459
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6460
$as_echo "$ac_try_echo") >&5
6461
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6463
grep -v '^ *+' conftest.er1 >conftest.err
6465
cat conftest.err >&5
6466
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6467
(exit $ac_status); } >/dev/null && {
6468
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6469
test ! -s conftest.err
6471
ac_header_preproc=yes
6473
$as_echo "$as_me: failed program was:" >&5
6474
sed 's/^/| /' conftest.$ac_ext >&5
6476
ac_header_preproc=no
6479
rm -f conftest.err conftest.$ac_ext
6480
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6481
$as_echo "$ac_header_preproc" >&6; }
6483
# So? What about this header?
6484
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6486
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6487
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6488
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6489
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6490
ac_header_preproc=yes
6493
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6494
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6495
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6496
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6497
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6498
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6499
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6500
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6501
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6502
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6503
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6504
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6508
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6509
$as_echo_n "checking for $ac_header... " >&6; }
6510
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6511
$as_echo_n "(cached) " >&6
6513
eval "$as_ac_Header=\$ac_header_preproc"
6515
ac_res=`eval 'as_val=${'$as_ac_Header'}
6516
$as_echo "$as_val"'`
6517
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6518
$as_echo "$ac_res" >&6; }
6521
as_val=`eval 'as_val=${'$as_ac_Header'}
6522
$as_echo "$as_val"'`
6523
if test "x$as_val" = x""yes; then
6524
cat >>confdefs.h <<_ACEOF
6525
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6534
if test "$ac_cv_header_sys_shm_h" = yes -a "$ac_cv_header_sys_ipc_h" = yes; then
6535
# This test is from Marcus Daniels
6536
{ $as_echo "$as_me:$LINENO: checking for working shared memory" >&5
6537
$as_echo_n "checking for working shared memory... " >&6; }
6538
if test "${cl_cv_sys_shm_works+set}" = set; then
6539
$as_echo_n "(cached) " >&6
6542
if test "$cross_compiling" = yes; then
6543
cl_cv_sys_shm_works="guessing no"
6545
cat >conftest.$ac_ext <<_ACEOF
6548
cat confdefs.h >>conftest.$ac_ext
6549
cat >>conftest.$ac_ext <<_ACEOF
6550
/* end confdefs.h. */
6551
#include <sys/types.h>
6552
#include <sys/ipc.h>
6553
#include <sys/shm.h>
6554
/* try attaching a single segment to multiple addresses */
6555
#define segsize 0x10000
6556
#define attaches 128
6557
#define base_addr 0x01000000
6559
{ int shmid, i; char* addr; char* result;
6560
if ((shmid = shmget(IPC_PRIVATE,segsize,0400)) < 0) exit(1);
6561
for (i=0, addr = (char*)0x01000000; i<attaches; i++, addr += segsize)
6562
if ((result = (char*)shmat(shmid,addr,SHM_RDONLY)) == (char*)(-1)) break;
6563
for (i=0, addr = (char*)0x01000000; i<attaches; i++, addr += segsize)
6565
shmctl(shmid,IPC_RMID,0);
6566
exit(result == (char*)(-1));
6569
rm -f conftest$ac_exeext
6570
if { (ac_try="$ac_link"
6572
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6573
*) ac_try_echo=$ac_try;;
6575
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6576
$as_echo "$ac_try_echo") >&5
6577
(eval "$ac_link") 2>&5
6579
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6580
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6581
{ (case "(($ac_try" in
6582
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6583
*) ac_try_echo=$ac_try;;
6585
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6586
$as_echo "$ac_try_echo") >&5
6587
(eval "$ac_try") 2>&5
6589
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6590
(exit $ac_status); }; }; then
6591
cl_cv_sys_shm_works=yes
6593
$as_echo "$as_me: program exited with status $ac_status" >&5
6594
$as_echo "$as_me: failed program was:" >&5
6595
sed 's/^/| /' conftest.$ac_ext >&5
6598
cl_cv_sys_shm_works=no
6600
rm -rf conftest.dSYM
6601
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6607
{ $as_echo "$as_me:$LINENO: result: $cl_cv_sys_shm_works" >&5
6608
$as_echo "$cl_cv_sys_shm_works" >&6; }
6610
case "$cl_cv_sys_shm_works" in
6613
cat >>confdefs.h <<\_ACEOF
6614
#define HAVE_SHM /**/
6618
for ac_header in sys/sysmacros.h
6620
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6621
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6622
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6623
$as_echo_n "checking for $ac_header... " >&6; }
6624
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6625
$as_echo_n "(cached) " >&6
6627
ac_res=`eval 'as_val=${'$as_ac_Header'}
6628
$as_echo "$as_val"'`
6629
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6630
$as_echo "$ac_res" >&6; }
6632
# Is the header compilable?
6633
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6634
$as_echo_n "checking $ac_header usability... " >&6; }
6635
cat >conftest.$ac_ext <<_ACEOF
6638
cat confdefs.h >>conftest.$ac_ext
6639
cat >>conftest.$ac_ext <<_ACEOF
6640
/* end confdefs.h. */
6641
$ac_includes_default
6642
#include <$ac_header>
6644
rm -f conftest.$ac_objext
6645
if { (ac_try="$ac_compile"
6647
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6648
*) ac_try_echo=$ac_try;;
6650
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6651
$as_echo "$ac_try_echo") >&5
6652
(eval "$ac_compile") 2>conftest.er1
6654
grep -v '^ *+' conftest.er1 >conftest.err
6656
cat conftest.err >&5
6657
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6658
(exit $ac_status); } && {
6659
test -z "$ac_c_werror_flag" ||
6660
test ! -s conftest.err
6661
} && test -s conftest.$ac_objext; then
6662
ac_header_compiler=yes
6664
$as_echo "$as_me: failed program was:" >&5
6665
sed 's/^/| /' conftest.$ac_ext >&5
6667
ac_header_compiler=no
6670
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6671
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6672
$as_echo "$ac_header_compiler" >&6; }
6674
# Is the header present?
6675
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6676
$as_echo_n "checking $ac_header presence... " >&6; }
6677
cat >conftest.$ac_ext <<_ACEOF
6680
cat confdefs.h >>conftest.$ac_ext
6681
cat >>conftest.$ac_ext <<_ACEOF
6682
/* end confdefs.h. */
6683
#include <$ac_header>
6685
if { (ac_try="$ac_cpp conftest.$ac_ext"
6687
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6688
*) ac_try_echo=$ac_try;;
6690
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6691
$as_echo "$ac_try_echo") >&5
6692
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6694
grep -v '^ *+' conftest.er1 >conftest.err
6696
cat conftest.err >&5
6697
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6698
(exit $ac_status); } >/dev/null && {
6699
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6700
test ! -s conftest.err
6702
ac_header_preproc=yes
6704
$as_echo "$as_me: failed program was:" >&5
6705
sed 's/^/| /' conftest.$ac_ext >&5
6707
ac_header_preproc=no
6710
rm -f conftest.err conftest.$ac_ext
6711
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6712
$as_echo "$ac_header_preproc" >&6; }
6714
# So? What about this header?
6715
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6717
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6718
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6719
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6720
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6721
ac_header_preproc=yes
6724
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6725
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6726
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6727
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6728
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6729
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6730
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6731
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6732
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6733
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6734
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6735
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6739
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6740
$as_echo_n "checking for $ac_header... " >&6; }
6741
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6742
$as_echo_n "(cached) " >&6
6744
eval "$as_ac_Header=\$ac_header_preproc"
6746
ac_res=`eval 'as_val=${'$as_ac_Header'}
6747
$as_echo "$as_val"'`
6748
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6749
$as_echo "$ac_res" >&6; }
6752
as_val=`eval 'as_val=${'$as_ac_Header'}
6753
$as_echo "$as_val"'`
6754
if test "x$as_val" = x""yes; then
6755
cat >>confdefs.h <<_ACEOF
6756
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6767
{ $as_echo "$as_me:$LINENO: checking whether code in malloc()ed memory is executable" >&5
6768
$as_echo_n "checking whether code in malloc()ed memory is executable... " >&6; }
6769
if test "${ffcall_cv_codeexec+set}" = set; then
6770
$as_echo_n "(cached) " >&6
6773
hpux*) ffcall_cv_codeexec="guessing yes" ;;
6775
case "$host_cpu_abi"-"$host_os" in
6776
# On host=rs6000-*-aix3.2.5 malloc'ed memory is indeed not executable.
6777
powerpc-aix*) ffcall_cv_codeexec="guessing no" ;;
6779
if test "$cross_compiling" = yes; then
6780
ffcall_cv_codeexec="guessing yes"
6782
cat >conftest.$ac_ext <<_ACEOF
6785
cat confdefs.h >>conftest.$ac_ext
6786
cat >>conftest.$ac_ext <<_ACEOF
6787
/* end confdefs.h. */
6790
#if defined __MACH__ && defined __APPLE__
6791
/* Avoid a crash on MacOS X. */
6792
#include <mach/mach.h>
6793
#include <mach/mach_error.h>
6794
#include <mach/thread_status.h>
6795
#include <mach/exception.h>
6796
#include <mach/task.h>
6797
#include <pthread.h>
6798
/* The exception port on which our thread listens. */
6799
static mach_port_t our_exception_port;
6800
/* The main function of the thread listening for exceptions of type
6803
mach_exception_thread (void *arg)
6805
/* Buffer for a message to be received. */
6807
mach_msg_header_t head;
6808
mach_msg_body_t msgh_body;
6811
mach_msg_return_t retval;
6812
/* Wait for a message on the exception port. */
6813
retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
6814
our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
6815
if (retval != MACH_MSG_SUCCESS)
6822
mach_port_t self = mach_task_self ();
6823
/* Allocate a port on which the thread shall listen for exceptions. */
6824
if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
6826
/* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
6827
if (mach_port_insert_right (self, our_exception_port, our_exception_port,
6828
MACH_MSG_TYPE_MAKE_SEND)
6830
/* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
6832
exception_mask_t mask = EXC_MASK_BAD_ACCESS;
6833
/* Create the thread listening on the exception port. */
6834
pthread_attr_t attr;
6836
if (pthread_attr_init (&attr) == 0
6837
&& pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
6838
&& pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
6839
pthread_attr_destroy (&attr);
6840
/* Replace the exception port info for these exceptions with our own.
6841
Note that we replace the exception port for the entire task, not only
6842
for a particular thread. This has the effect that when our exception
6843
port gets the message, the thread specific exception port has already
6844
been asked, and we don't need to bother about it.
6845
See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
6846
task_set_exception_ports (self, mask, our_exception_port,
6847
EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
6853
/* Avoid a crash on POSIX systems. */
6855
/* A POSIX signal handler. */
6857
exception_handler (int sig)
6865
signal (SIGSEGV, exception_handler);
6868
signal (SIGBUS, exception_handler);
6873
#include <sys/types.h>
6874
/* declare malloc() */
6876
int fun () { return 31415926; }
6879
{long size = (char*)&main - (char*)&fun;
6880
char* funcopy = (char*) malloc(size);
6882
for (i = 0; i < size; i++) { funcopy[i] = ((char*)&fun)[i]; }
6883
return !((*(int(*)())funcopy)() == 31415926);
6886
rm -f conftest$ac_exeext
6887
if { (ac_try="$ac_link"
6889
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6890
*) ac_try_echo=$ac_try;;
6892
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6893
$as_echo "$ac_try_echo") >&5
6894
(eval "$ac_link") 2>&5
6896
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6897
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6898
{ (case "(($ac_try" in
6899
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6900
*) ac_try_echo=$ac_try;;
6902
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6903
$as_echo "$ac_try_echo") >&5
6904
(eval "$ac_try") 2>&5
6906
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6907
(exit $ac_status); }; }; then
6908
ffcall_cv_codeexec=yes
6910
$as_echo "$as_me: program exited with status $ac_status" >&5
6911
$as_echo "$as_me: failed program was:" >&5
6912
sed 's/^/| /' conftest.$ac_ext >&5
6915
ffcall_cv_codeexec=no
6917
rm -rf conftest.dSYM
6918
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6928
{ $as_echo "$as_me:$LINENO: result: $ffcall_cv_codeexec" >&5
6929
$as_echo "$ffcall_cv_codeexec" >&6; }
6930
case "$ffcall_cv_codeexec" in
6932
cat >>confdefs.h <<\_ACEOF
6933
#define CODE_EXECUTABLE /**/
6941
if test ${host_cpu_abi} = hppa -o ${host_cpu_abi} = powerpc64 -o ${host_cpu_abi} = ia64; then
6942
CPU_OBJECTS="$CPU_OBJECTS "'tramp-$(CPU).o'
6944
if test ${host_cpu_abi} = powerpc; then
6945
case "${host_os}" in
6946
aix*) CPU_OBJECTS="$CPU_OBJECTS "'tramp-$(CPU).o' ;;
6950
if test ${host_cpu_abi} = sparc -o ${host_cpu_abi} = sparc64 -o ${host_cpu_abi} = alpha -o ${host_cpu_abi} = hppa -o ${host_cpu_abi} = convex -o ${host_cpu_abi} = arm -o ${host_cpu_abi} = armel; then
6951
CPU_OBJECTS="$CPU_OBJECTS "'cache-$(CPU).o'
6953
if test ${host_cpu_abi} = powerpc; then
6954
case "${host_os}" in
6956
*) CPU_OBJECTS="$CPU_OBJECTS "'cache-$(CPU).o' ;;
6960
if test ${host_cpu_abi} = mips -o ${host_cpu_abi} = mipsn32 -o ${host_cpu_abi} = mips64; then
6962
for ac_header in sys/cachectl.h
6964
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6965
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6966
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6967
$as_echo_n "checking for $ac_header... " >&6; }
6968
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6969
$as_echo_n "(cached) " >&6
6971
ac_res=`eval 'as_val=${'$as_ac_Header'}
6972
$as_echo "$as_val"'`
6973
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6974
$as_echo "$ac_res" >&6; }
6976
# Is the header compilable?
6977
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6978
$as_echo_n "checking $ac_header usability... " >&6; }
6979
cat >conftest.$ac_ext <<_ACEOF
6982
cat confdefs.h >>conftest.$ac_ext
6983
cat >>conftest.$ac_ext <<_ACEOF
6984
/* end confdefs.h. */
6985
$ac_includes_default
6986
#include <$ac_header>
6988
rm -f conftest.$ac_objext
6989
if { (ac_try="$ac_compile"
6991
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6992
*) ac_try_echo=$ac_try;;
6994
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6995
$as_echo "$ac_try_echo") >&5
6996
(eval "$ac_compile") 2>conftest.er1
6998
grep -v '^ *+' conftest.er1 >conftest.err
7000
cat conftest.err >&5
7001
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7002
(exit $ac_status); } && {
7003
test -z "$ac_c_werror_flag" ||
7004
test ! -s conftest.err
7005
} && test -s conftest.$ac_objext; then
7006
ac_header_compiler=yes
7008
$as_echo "$as_me: failed program was:" >&5
7009
sed 's/^/| /' conftest.$ac_ext >&5
7011
ac_header_compiler=no
7014
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7015
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7016
$as_echo "$ac_header_compiler" >&6; }
7018
# Is the header present?
7019
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7020
$as_echo_n "checking $ac_header presence... " >&6; }
7021
cat >conftest.$ac_ext <<_ACEOF
7024
cat confdefs.h >>conftest.$ac_ext
7025
cat >>conftest.$ac_ext <<_ACEOF
7026
/* end confdefs.h. */
7027
#include <$ac_header>
7029
if { (ac_try="$ac_cpp conftest.$ac_ext"
7031
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7032
*) ac_try_echo=$ac_try;;
7034
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7035
$as_echo "$ac_try_echo") >&5
7036
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7038
grep -v '^ *+' conftest.er1 >conftest.err
7040
cat conftest.err >&5
7041
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7042
(exit $ac_status); } >/dev/null && {
7043
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7044
test ! -s conftest.err
7046
ac_header_preproc=yes
7048
$as_echo "$as_me: failed program was:" >&5
7049
sed 's/^/| /' conftest.$ac_ext >&5
7051
ac_header_preproc=no
7054
rm -f conftest.err conftest.$ac_ext
7055
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7056
$as_echo "$ac_header_preproc" >&6; }
7058
# So? What about this header?
7059
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7061
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7062
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7063
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7064
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7065
ac_header_preproc=yes
7068
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7069
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7070
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7071
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7072
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7073
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7074
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7075
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7076
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7077
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7078
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7079
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7083
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7084
$as_echo_n "checking for $ac_header... " >&6; }
7085
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7086
$as_echo_n "(cached) " >&6
7088
eval "$as_ac_Header=\$ac_header_preproc"
7090
ac_res=`eval 'as_val=${'$as_ac_Header'}
7091
$as_echo "$as_val"'`
7092
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7093
$as_echo "$ac_res" >&6; }
7096
as_val=`eval 'as_val=${'$as_ac_Header'}
7097
$as_echo "$as_val"'`
7098
if test "x$as_val" = x""yes; then
7099
cat >>confdefs.h <<_ACEOF
7100
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7108
if test ${host_cpu_abi} = m88k; then
7110
for ac_header in sys/m88kbcs.h
7112
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7113
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7114
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7115
$as_echo_n "checking for $ac_header... " >&6; }
7116
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7117
$as_echo_n "(cached) " >&6
7119
ac_res=`eval 'as_val=${'$as_ac_Header'}
7120
$as_echo "$as_val"'`
7121
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7122
$as_echo "$ac_res" >&6; }
7124
# Is the header compilable?
7125
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7126
$as_echo_n "checking $ac_header usability... " >&6; }
7127
cat >conftest.$ac_ext <<_ACEOF
7130
cat confdefs.h >>conftest.$ac_ext
7131
cat >>conftest.$ac_ext <<_ACEOF
7132
/* end confdefs.h. */
7133
$ac_includes_default
7134
#include <$ac_header>
7136
rm -f conftest.$ac_objext
7137
if { (ac_try="$ac_compile"
7139
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7140
*) ac_try_echo=$ac_try;;
7142
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7143
$as_echo "$ac_try_echo") >&5
7144
(eval "$ac_compile") 2>conftest.er1
7146
grep -v '^ *+' conftest.er1 >conftest.err
7148
cat conftest.err >&5
7149
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7150
(exit $ac_status); } && {
7151
test -z "$ac_c_werror_flag" ||
7152
test ! -s conftest.err
7153
} && test -s conftest.$ac_objext; then
7154
ac_header_compiler=yes
7156
$as_echo "$as_me: failed program was:" >&5
7157
sed 's/^/| /' conftest.$ac_ext >&5
7159
ac_header_compiler=no
7162
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7163
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7164
$as_echo "$ac_header_compiler" >&6; }
7166
# Is the header present?
7167
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7168
$as_echo_n "checking $ac_header presence... " >&6; }
7169
cat >conftest.$ac_ext <<_ACEOF
7172
cat confdefs.h >>conftest.$ac_ext
7173
cat >>conftest.$ac_ext <<_ACEOF
7174
/* end confdefs.h. */
7175
#include <$ac_header>
7177
if { (ac_try="$ac_cpp conftest.$ac_ext"
7179
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7180
*) ac_try_echo=$ac_try;;
7182
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7183
$as_echo "$ac_try_echo") >&5
7184
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7186
grep -v '^ *+' conftest.er1 >conftest.err
7188
cat conftest.err >&5
7189
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7190
(exit $ac_status); } >/dev/null && {
7191
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7192
test ! -s conftest.err
7194
ac_header_preproc=yes
7196
$as_echo "$as_me: failed program was:" >&5
7197
sed 's/^/| /' conftest.$ac_ext >&5
7199
ac_header_preproc=no
7202
rm -f conftest.err conftest.$ac_ext
7203
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7204
$as_echo "$ac_header_preproc" >&6; }
7206
# So? What about this header?
7207
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7209
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7210
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7211
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7212
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7213
ac_header_preproc=yes
7216
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7217
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7218
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7219
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7220
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7221
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7222
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7223
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7224
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7225
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7226
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7227
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7231
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7232
$as_echo_n "checking for $ac_header... " >&6; }
7233
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7234
$as_echo_n "(cached) " >&6
7236
eval "$as_ac_Header=\$ac_header_preproc"
7238
ac_res=`eval 'as_val=${'$as_ac_Header'}
7239
$as_echo "$as_val"'`
7240
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7241
$as_echo "$ac_res" >&6; }
7244
as_val=`eval 'as_val=${'$as_ac_Header'}
7245
$as_echo "$as_val"'`
7246
if test "x$as_val" = x""yes; then
7247
cat >>confdefs.h <<_ACEOF
7248
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7256
cat >confcache <<\_ACEOF
7257
# This file is a shell script that caches the results of configure
7258
# tests run on this system so they can be shared between configure
7259
# scripts and configure runs, see configure's option --config-cache.
7260
# It is not useful on other systems. If it contains results you don't
7261
# want to keep, you may remove or edit it.
7263
# config.status only pays attention to the cache file if you give it
7264
# the --recheck option to rerun configure.
7266
# `ac_cv_env_foo' variables (set or unset) will be overridden when
7267
# loading this file, other *unset* `ac_cv_foo' will be assigned the
7272
# The following way of writing the cache mishandles newlines in values,
7273
# but we know of no workaround that is simple, portable, and efficient.
7274
# So, we kill variables containing newlines.
7275
# Ultrix sh set writes to stderr and can't be redirected directly,
7276
# and sets the high bit in the cache file unless we assign to the vars.
7278
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7279
eval ac_val=\$$ac_var
7283
*_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
7284
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7287
_ | IFS | as_nl) ;; #(
7288
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7289
*) $as_unset $ac_var ;;
7295
case $as_nl`(ac_space=' '; set) 2>&1` in #(
7296
*${as_nl}ac_space=\ *)
7297
# `set' does not quote correctly, so add quotes (double-quote
7298
# substitution turns \\\\ into \\, and sed turns \\ into \).
7301
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7304
# `set' quotes correctly as required by POSIX, so do not add quotes.
7305
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7314
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7316
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7318
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7319
if test -w "$cache_file"; then
7320
test "x$cache_file" != "x/dev/null" &&
7321
{ $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
7322
$as_echo "$as_me: updating cache $cache_file" >&6;}
7323
cat confcache >$cache_file
7325
{ $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
7326
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7331
test "x$prefix" = xNONE && prefix=$ac_default_prefix
7332
# Let make expand exec_prefix.
7333
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7335
DEFS=-DHAVE_CONFIG_H
7339
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7340
# 1. Remove the extension, and $U if already installed.
7341
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7342
ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7343
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7344
# will be set to the directory where LIBOBJS objects are built.
7345
ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7346
ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
7350
LTLIBOBJS=$ac_ltlibobjs
7354
: ${CONFIG_STATUS=./config.status}
7356
ac_clean_files_save=$ac_clean_files
7357
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7358
{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7359
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7360
cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7362
# Generated by $as_me.
7363
# Run this file to recreate the current configuration.
7364
# Compiler output produced by configure, useful for debugging
7365
# configure, is in config.log if it exists.
7370
SHELL=\${CONFIG_SHELL-$SHELL}
7373
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7374
## --------------------- ##
7375
## M4sh Initialization. ##
7376
## --------------------- ##
7378
# Be more Bourne compatible
7379
DUALCASE=1; export DUALCASE # for MKS sh
7380
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7383
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7384
# is contrary to our usage. Disable this feature.
7385
alias -g '${1+"$@"}'='"$@"'
7386
setopt NO_GLOB_SUBST
7388
case `(set -o) 2>/dev/null` in
7389
*posix*) set -o posix ;;
7398
# Avoid depending upon Character Ranges.
7399
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7400
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7401
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7402
as_cr_digits='0123456789'
7403
as_cr_alnum=$as_cr_Letters$as_cr_digits
7408
# Printing a long string crashes Solaris 7 /usr/bin/printf.
7409
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7410
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7411
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7412
if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7413
as_echo='printf %s\n'
7414
as_echo_n='printf %s'
7416
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7417
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7418
as_echo_n='/usr/ucb/echo -n'
7420
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7421
as_echo_n_body='eval
7425
expr "X$arg" : "X\\(.*\\)$as_nl";
7426
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7428
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7430
export as_echo_n_body
7431
as_echo_n='sh -c $as_echo_n_body as_echo'
7434
as_echo='sh -c $as_echo_body as_echo'
7437
# The user is always right.
7438
if test "${PATH_SEPARATOR+set}" != set; then
7440
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7441
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7446
# Support unset when possible.
7447
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7455
# We need space, tab and new line, in precisely that order. Quoting is
7456
# there to prevent editors from complaining about space-tab.
7457
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
7458
# splitting by setting IFS to empty value.)
7461
# Find who we are. Look in the path if we contain no directory separator.
7463
*[\\/]* ) as_myself=$0 ;;
7464
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7468
test -z "$as_dir" && as_dir=.
7469
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7475
# We did not find ourselves, most probably we were run as `sh COMMAND'
7476
# in which case we are not to be found in the path.
7477
if test "x$as_myself" = x; then
7480
if test ! -f "$as_myself"; then
7481
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7482
{ (exit 1); exit 1; }
7485
# Work around bugs in pre-3.0 UWIN ksh.
7486
for as_var in ENV MAIL MAILPATH
7487
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
7499
# Required to use basename.
7500
if expr a : '\(a\)' >/dev/null 2>&1 &&
7501
test "X`expr 00001 : '.*\(...\)'`" = X001; then
7507
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7508
as_basename=basename
7514
# Name of the executable.
7515
as_me=`$as_basename -- "$0" ||
7516
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7517
X"$0" : 'X\(//\)$' \| \
7518
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7520
sed '/^.*\/\([^/][^/]*\)\/*$/{
7541
test "x$as_lineno_1" != "x$as_lineno_2" &&
7542
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
7544
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7545
# uniformly replaced by the line number. The first 'sed' inserts a
7546
# line-number line after each line using $LINENO; the second 'sed'
7547
# does the real work. The second script uses 'N' to pair each
7548
# line-number line with the line containing $LINENO, and appends
7549
# trailing '-' during substitution so that $LINENO is not a special
7551
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7552
# scripts with optimization help from Paolo Bonzini. Blame Lee
7553
# E. McMahon (1931-1989) for sed's syntax. :-)
7565
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
7569
chmod +x "$as_me.lineno" ||
7570
{ $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
7571
{ (exit 1); exit 1; }; }
7573
# Don't try to exec as it changes $[0], causing all sort of problems
7574
# (the dirname of $[0] is not the place where we might find the
7575
# original and so on. Autoconf is especially sensitive to this).
7577
# Exit status is that of the last command.
7582
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7588
ECHO_C= ECHO_N= ECHO_T=
7591
case `echo 'x\c'` in
7592
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
7598
if expr a : '\(a\)' >/dev/null 2>&1 &&
7599
test "X`expr 00001 : '.*\(...\)'`" = X001; then
7605
rm -f conf$$ conf$$.exe conf$$.file
7606
if test -d conf$$.dir; then
7607
rm -f conf$$.dir/conf$$.file
7610
mkdir conf$$.dir 2>/dev/null
7612
if (echo >conf$$.file) 2>/dev/null; then
7613
if ln -s conf$$.file conf$$ 2>/dev/null; then
7615
# ... but there are two gotchas:
7616
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7617
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7618
# In both cases, we have to default to `cp -p'.
7619
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7621
elif ln conf$$.file conf$$ 2>/dev/null; then
7629
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7630
rmdir conf$$.dir 2>/dev/null
7632
if mkdir -p . 2>/dev/null; then
7635
test -d ./-p && rmdir ./-p
7639
if test -x / >/dev/null 2>&1; then
7642
if ls -dL / >/dev/null 2>&1; then
7649
if test -d "$1"; then
7655
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
7656
???[sx]*):;;*)false;;esac;fi
7660
as_executable_p=$as_test_x
7662
# Sed expression to map a string onto a valid CPP name.
7663
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7665
# Sed expression to map a string onto a valid variable name.
7666
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7671
# Save the log message, to keep $[0] and so on meaningful, and to
7672
# report actual input values of CONFIG_FILES etc. instead of their
7673
# values after options handling.
7675
This file was extended by libffcall/trampoline $as_me 0x010B, which was
7676
generated by GNU Autoconf 2.63. Invocation command line was
7678
CONFIG_FILES = $CONFIG_FILES
7679
CONFIG_HEADERS = $CONFIG_HEADERS
7680
CONFIG_LINKS = $CONFIG_LINKS
7681
CONFIG_COMMANDS = $CONFIG_COMMANDS
7684
on `(hostname || uname -n) 2>/dev/null | sed 1q`
7689
case $ac_config_files in *"
7690
"*) set x $ac_config_files; shift; ac_config_files=$*;;
7693
case $ac_config_headers in *"
7694
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7698
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7699
# Files that config.status was made for.
7700
config_files="$ac_config_files"
7701
config_headers="$ac_config_headers"
7705
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7707
\`$as_me' instantiates files from templates according to the
7708
current configuration.
7710
Usage: $0 [OPTION]... [FILE]...
7712
-h, --help print this help, then exit
7713
-V, --version print version number and configuration settings, then exit
7714
-q, --quiet, --silent
7715
do not print progress messages
7716
-d, --debug don't remove temporary files
7717
--recheck update $as_me by reconfiguring in the same conditions
7718
--file=FILE[:TEMPLATE]
7719
instantiate the configuration file FILE
7720
--header=FILE[:TEMPLATE]
7721
instantiate the configuration header FILE
7723
Configuration files:
7726
Configuration headers:
7729
Report bugs to <bug-autoconf@gnu.org>."
7732
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7734
libffcall/trampoline config.status 0x010B
7735
configured by $0, generated by GNU Autoconf 2.63,
7736
with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
7738
Copyright (C) 2008 Free Software Foundation, Inc.
7739
This config.status script is free software; the Free Software Foundation
7740
gives unlimited permission to copy, distribute and modify it."
7745
test -n "\$AWK" || AWK=awk
7748
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7749
# The default lists apply if the user does not specify any file.
7755
ac_option=`expr "X$1" : 'X\([^=]*\)='`
7756
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7767
# Handling of the options.
7768
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7770
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7771
$as_echo "$ac_cs_version"; exit ;;
7772
--debug | --debu | --deb | --de | --d | -d )
7774
--file | --fil | --fi | --f )
7777
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7779
CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
7780
ac_need_defaults=false;;
7781
--header | --heade | --head | --hea )
7784
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7786
CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
7787
ac_need_defaults=false;;
7789
# Conflict between --help and --header
7790
{ $as_echo "$as_me: error: ambiguous option: $1
7791
Try \`$0 --help' for more information." >&2
7792
{ (exit 1); exit 1; }; };;
7793
--help | --hel | -h )
7794
$as_echo "$ac_cs_usage"; exit ;;
7795
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
7796
| -silent | --silent | --silen | --sile | --sil | --si | --s)
7800
-*) { $as_echo "$as_me: error: unrecognized option: $1
7801
Try \`$0 --help' for more information." >&2
7802
{ (exit 1); exit 1; }; } ;;
7804
*) ac_config_targets="$ac_config_targets $1"
7805
ac_need_defaults=false ;;
7811
ac_configure_extra_args=
7813
if $ac_cs_silent; then
7815
ac_configure_extra_args="$ac_configure_extra_args --silent"
7819
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7820
if \$ac_cs_recheck; then
7821
set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7823
\$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7824
CONFIG_SHELL='$SHELL'
7830
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7834
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7835
## Running $as_me. ##
7841
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7845
LIBFFCALL_VERSION=$PACKAGE_VERSION
7849
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7851
# Handling of arguments.
7852
for ac_config_target in $ac_config_targets
7854
case $ac_config_target in
7855
"config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7856
"trampoline.h") CONFIG_HEADERS="$CONFIG_HEADERS trampoline.h" ;;
7857
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7859
*) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7860
$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7861
{ (exit 1); exit 1; }; };;
7866
# If the user did not use the arguments to specify the items to instantiate,
7867
# then the envvar interface is used. Set only those that are not.
7868
# We use the long form for the default assignment because of an extremely
7869
# bizarre bug on SunOS 4.1.3.
7870
if $ac_need_defaults; then
7871
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7872
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7875
# Have a temporary directory for convenience. Make it in the build tree
7876
# simply because there is no reason against having it here, and in addition,
7877
# creating and moving files from /tmp can sometimes cause problems.
7878
# Hook for its removal unless debugging.
7879
# Note that there is a small window in which the directory will not be cleaned:
7880
# after its creation but before its name has been assigned to `$tmp'.
7884
trap 'exit_status=$?
7885
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
7887
trap '{ (exit 1); exit 1; }' 1 2 13 15
7889
# Create a (secure) tmp directory for tmp files.
7892
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7893
test -n "$tmp" && test -d "$tmp"
7896
tmp=./conf$$-$RANDOM
7897
(umask 077 && mkdir "$tmp")
7900
$as_echo "$as_me: cannot create a temporary directory in ." >&2
7901
{ (exit 1); exit 1; }
7904
# Set up the scripts for CONFIG_FILES section.
7905
# No need to generate them if there are no CONFIG_FILES.
7906
# This happens for instance with `./config.status config.h'.
7907
if test -n "$CONFIG_FILES"; then
7911
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7912
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7918
echo 'BEGIN {' >"$tmp/subs1.awk" &&
7923
echo "cat >conf$$subs.awk <<_ACEOF" &&
7924
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7927
{ { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
7928
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
7929
{ (exit 1); exit 1; }; }
7930
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
7932
for ac_last_try in false false false false false :; do
7933
. ./conf$$subs.sh ||
7934
{ { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
7935
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
7936
{ (exit 1); exit 1; }; }
7938
ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7939
if test $ac_delim_n = $ac_delim_num; then
7941
elif $ac_last_try; then
7942
{ { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
7943
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
7944
{ (exit 1); exit 1; }; }
7946
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7951
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7952
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
7956
s/^/S["/; s/!.*/"]=/
7966
s/\(.\{148\}\).*/\1/
7968
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7973
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7980
s/\(.\{148\}\).*/\1/
7982
s/["\\]/\\&/g; s/^/"/; s/$/"/
7986
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7991
' <conf$$subs.awk | sed '
7996
' >>$CONFIG_STATUS || ac_write_fail=1
7997
rm -f conf$$subs.awk
7998
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8000
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
8001
for (key in S) S_is_set[key] = 1
8007
nfields = split(line, field, "@")
8009
len = length(field[1])
8010
for (i = 2; i < nfields; i++) {
8012
keylen = length(key)
8013
if (S_is_set[key]) {
8015
line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8016
len += length(value) + length(field[++i])
8027
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8028
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8029
sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8032
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
8033
|| { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
8034
$as_echo "$as_me: error: could not setup config files machinery" >&2;}
8035
{ (exit 1); exit 1; }; }
8038
# VPATH may cause trouble with some makes, so we remove $(srcdir),
8039
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8040
# trailing colons and then remove the whole line if VPATH becomes empty
8041
# (actually we leave an empty line to preserve line numbers).
8042
if test "x$srcdir" = x.; then
8043
ac_vpsub='/^[ ]*VPATH[ ]*=/{
8047
s/^\([^=]*=[ ]*\):*/\1/
8053
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8054
fi # test -n "$CONFIG_FILES"
8056
# Set up the scripts for CONFIG_HEADERS section.
8057
# No need to generate them if there are no CONFIG_HEADERS.
8058
# This happens for instance with `./config.status Makefile'.
8059
if test -n "$CONFIG_HEADERS"; then
8060
cat >"$tmp/defines.awk" <<\_ACAWK ||
8064
# Transform confdefs.h into an awk script `defines.awk', embedded as
8065
# here-document in config.status, that substitutes the proper values into
8066
# config.h.in to produce config.h.
8068
# Create a delimiter string that does not exist in confdefs.h, to ease
8069
# handling of long lines.
8071
for ac_last_try in false false :; do
8072
ac_t=`sed -n "/$ac_delim/p" confdefs.h`
8073
if test -z "$ac_t"; then
8075
elif $ac_last_try; then
8076
{ { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
8077
$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
8078
{ (exit 1); exit 1; }; }
8080
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8084
# For the awk script, D is an array of macro values keyed by name,
8085
# likewise P contains macro parameters if any. Preserve backslash
8086
# newline sequences.
8088
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8090
s/.\{148\}/&'"$ac_delim"'/g
8093
s/^[ ]*#[ ]*define[ ][ ]*/ /
8100
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8102
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
8106
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8107
D["\1"]=" \3\\\\\\n"\\/p
8109
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8114
s/.\{148\}/&'"$ac_delim"'/g
8119
s/["\\]/\\&/g; s/^/"/; s/$/"/p
8122
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8124
' <confdefs.h | sed '
8125
s/'"$ac_delim"'/"\\\
8126
"/g' >>$CONFIG_STATUS || ac_write_fail=1
8128
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8129
for (key in D) D_is_set[key] = 1
8132
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8134
split(line, arg, " ")
8135
if (arg[1] == "#") {
8139
defundef = substr(arg[1], 2)
8142
split(mac1, mac2, "(") #)
8144
prefix = substr(line, 1, index(line, defundef) - 1)
8145
if (D_is_set[macro]) {
8146
# Preserve the white space surrounding the "#".
8147
print prefix "define", macro P[macro] D[macro]
8150
# Replace #undef with comments. This is necessary, for example,
8151
# in the case of _POSIX_SOURCE, which is predefined and required
8152
# on some systems where configure will not decide to define it.
8153
if (defundef == "undef") {
8154
print "/*", prefix defundef, macro, "*/"
8162
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8163
{ { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
8164
$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
8165
{ (exit 1); exit 1; }; }
8166
fi # test -n "$CONFIG_HEADERS"
8169
eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
8174
:[FHLC]) ac_mode=$ac_tag; continue;;
8176
case $ac_mode$ac_tag in
8178
:L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
8179
$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
8180
{ (exit 1); exit 1; }; };;
8181
:[FH]-) ac_tag=-:-;;
8182
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8199
-) ac_f="$tmp/stdin";;
8200
*) # Look for the file first in the build tree, then in the source tree
8201
# (if the path is not absolute). The absolute path cannot be DOS-style,
8202
# because $ac_f cannot contain `:'.
8206
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8208
{ { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
8209
$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
8210
{ (exit 1); exit 1; }; };;
8212
case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8213
ac_file_inputs="$ac_file_inputs '$ac_f'"
8216
# Let's still pretend it is `configure' which instantiates (i.e., don't
8217
# use $as_me), people would be surprised to read:
8218
# /* config.h. Generated by config.status. */
8219
configure_input='Generated from '`
8220
$as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8222
if test x"$ac_file" != x-; then
8223
configure_input="$ac_file. $configure_input"
8224
{ $as_echo "$as_me:$LINENO: creating $ac_file" >&5
8225
$as_echo "$as_me: creating $ac_file" >&6;}
8227
# Neutralize special characters interpreted by sed in replacement strings.
8228
case $configure_input in #(
8229
*\&* | *\|* | *\\* )
8230
ac_sed_conf_input=`$as_echo "$configure_input" |
8231
sed 's/[\\\\&|]/\\\\&/g'`;; #(
8232
*) ac_sed_conf_input=$configure_input;;
8236
*:-:* | *:-) cat >"$tmp/stdin" \
8237
|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
8238
$as_echo "$as_me: error: could not create $ac_file" >&2;}
8239
{ (exit 1); exit 1; }; } ;;
8244
ac_dir=`$as_dirname -- "$ac_file" ||
8245
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8246
X"$ac_file" : 'X\(//\)[^/]' \| \
8247
X"$ac_file" : 'X\(//\)$' \| \
8248
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8249
$as_echo X"$ac_file" |
8250
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8269
-*) as_dir=./$as_dir;;
8271
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
8275
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8276
*) as_qdir=$as_dir;;
8278
as_dirs="'$as_qdir' $as_dirs"
8279
as_dir=`$as_dirname -- "$as_dir" ||
8280
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8281
X"$as_dir" : 'X\(//\)[^/]' \| \
8282
X"$as_dir" : 'X\(//\)$' \| \
8283
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8284
$as_echo X"$as_dir" |
8285
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8302
test -d "$as_dir" && break
8304
test -z "$as_dirs" || eval "mkdir $as_dirs"
8305
} || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
8306
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
8307
{ (exit 1); exit 1; }; }; }
8311
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8313
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8314
# A ".." for each directory in $ac_dir_suffix.
8315
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8316
case $ac_top_builddir_sub in
8317
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8318
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8321
ac_abs_top_builddir=$ac_pwd
8322
ac_abs_builddir=$ac_pwd$ac_dir_suffix
8323
# for backward compatibility:
8324
ac_top_builddir=$ac_top_build_prefix
8327
.) # We are building in place.
8329
ac_top_srcdir=$ac_top_builddir_sub
8330
ac_abs_top_srcdir=$ac_pwd ;;
8331
[\\/]* | ?:[\\/]* ) # Absolute name.
8332
ac_srcdir=$srcdir$ac_dir_suffix;
8333
ac_top_srcdir=$srcdir
8334
ac_abs_top_srcdir=$srcdir ;;
8336
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8337
ac_top_srcdir=$ac_top_build_prefix$srcdir
8338
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8340
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8350
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8351
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8355
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8356
# If the template does not know about datarootdir, expand it.
8357
# FIXME: This hack should be removed a few years after 2.60.
8358
ac_datarootdir_hack=; ac_datarootdir_seen=
8371
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8372
*datarootdir*) ac_datarootdir_seen=yes;;
8373
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8374
{ $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8375
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8377
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8378
ac_datarootdir_hack='
8379
s&@datadir@&$datadir&g
8380
s&@docdir@&$docdir&g
8381
s&@infodir@&$infodir&g
8382
s&@localedir@&$localedir&g
8383
s&@mandir@&$mandir&g
8384
s&\\\${datarootdir}&$datarootdir&g' ;;
8388
# Neutralize VPATH when `$srcdir' = `.'.
8389
# Shell code in configure.ac might set extrasub.
8390
# FIXME: do we really want to maintain this feature?
8391
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8392
ac_sed_extra="$ac_vpsub
8395
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8397
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8398
s|@configure_input@|$ac_sed_conf_input|;t t
8399
s&@top_builddir@&$ac_top_builddir_sub&;t t
8400
s&@top_build_prefix@&$ac_top_build_prefix&;t t
8401
s&@srcdir@&$ac_srcdir&;t t
8402
s&@abs_srcdir@&$ac_abs_srcdir&;t t
8403
s&@top_srcdir@&$ac_top_srcdir&;t t
8404
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8405
s&@builddir@&$ac_builddir&;t t
8406
s&@abs_builddir@&$ac_abs_builddir&;t t
8407
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8408
s&@INSTALL@&$ac_INSTALL&;t t
8409
$ac_datarootdir_hack
8411
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
8412
|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
8413
$as_echo "$as_me: error: could not create $ac_file" >&2;}
8414
{ (exit 1); exit 1; }; }
8416
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8417
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
8418
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
8419
{ $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8420
which seems to be undefined. Please make sure it is defined." >&5
8421
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8422
which seems to be undefined. Please make sure it is defined." >&2;}
8426
-) cat "$tmp/out" && rm -f "$tmp/out";;
8427
*) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
8429
|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
8430
$as_echo "$as_me: error: could not create $ac_file" >&2;}
8431
{ (exit 1); exit 1; }; }
8437
if test x"$ac_file" != x-; then
8439
$as_echo "/* $configure_input */" \
8440
&& eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
8441
} >"$tmp/config.h" \
8442
|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
8443
$as_echo "$as_me: error: could not create $ac_file" >&2;}
8444
{ (exit 1); exit 1; }; }
8445
if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
8446
{ $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8447
$as_echo "$as_me: $ac_file is unchanged" >&6;}
8450
mv "$tmp/config.h" "$ac_file" \
8451
|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
8452
$as_echo "$as_me: error: could not create $ac_file" >&2;}
8453
{ (exit 1); exit 1; }; }
8456
$as_echo "/* $configure_input */" \
8457
&& eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
8458
|| { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
8459
$as_echo "$as_me: error: could not create -" >&2;}
8460
{ (exit 1); exit 1; }; }
8468
case $ac_file$ac_mode in
8469
"trampoline.h":H) sed "s/@LIBFFCALL_VERSION@/${LIBFFCALL_VERSION}/" trampoline.h > tmp
8470
mv -f tmp trampoline.h ;;
8476
{ (exit 0); exit 0; }
8478
chmod +x $CONFIG_STATUS
8479
ac_clean_files=$ac_clean_files_save
8481
test $ac_write_fail = 0 ||
8482
{ { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
8483
$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
8484
{ (exit 1); exit 1; }; }
8487
# configure is writing to config.log, and then calls config.status.
8488
# config.status does its own redirection, appending to config.log.
8489
# Unfortunately, on DOS this fails, as config.log is still kept open
8490
# by configure, so config.status won't be able to write to it; its
8491
# output is simply discarded. So we exec the FD to /dev/null,
8492
# effectively closing config.log, so it can be properly (re)opened and
8493
# appended to by config.status. When coming back to configure, we
8494
# need to make the FD available again.
8495
if test "$no_create" != yes; then
8497
ac_config_status_args=
8498
test "$silent" = yes &&
8499
ac_config_status_args="$ac_config_status_args --quiet"
8501
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8503
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
8504
# would make configure fail if this is the last instruction.
8505
$ac_cs_success || { (exit 1); exit 1; }
8507
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8508
{ $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8509
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}