2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.61.
5
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6
# 2002, 2003, 2004, 2005, 2006 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
# Zsh 3.x and 4.x performs 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
40
# The user is always right.
41
if test "${PATH_SEPARATOR+set}" != set; then
42
echo "#! /bin/sh" >conf$$.sh
43
echo "exit 0" >>conf$$.sh
45
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53
# Support unset when possible.
54
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62
# We need space, tab and new line, in precisely that order. Quoting is
63
# there to prevent editors from complaining about space-tab.
64
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65
# splitting by setting IFS to empty value.)
70
# Find who we are. Look in the path if we contain no directory separator.
72
*[\\/]* ) as_myself=$0 ;;
73
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77
test -z "$as_dir" && as_dir=.
78
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84
# We did not find ourselves, most probably we were run as `sh COMMAND'
85
# in which case we are not to be found in the path.
86
if test "x$as_myself" = x; then
89
if test ! -f "$as_myself"; then
90
echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94
# Work around bugs in pre-3.0 UWIN ksh.
95
for as_var in ENV MAIL MAILPATH
96
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109
eval $as_var=C; export $as_var
111
($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115
# Required to use basename.
116
if expr a : '\(a\)' >/dev/null 2>&1 &&
117
test "X`expr 00001 : '.*\(...\)'`" = X001; then
123
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130
# Name of the executable.
131
as_me=`$as_basename -- "$0" ||
132
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133
X"$0" : 'X\(//\)$' \| \
134
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136
sed '/^.*\/\([^/][^/]*\)\/*$/{
154
if test "x$CONFIG_SHELL" = x; then
155
if (eval ":") 2>/dev/null; then
161
if test $as_have_required = yes && (eval ":
171
as_func_ret_success () {
174
as_func_ret_failure () {
179
if as_func_success; then
183
echo as_func_success failed.
186
if as_func_failure; then
188
echo as_func_failure succeeded.
191
if as_func_ret_success; then
195
echo as_func_ret_success failed.
198
if as_func_ret_failure; then
200
echo as_func_ret_failure succeeded.
203
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207
echo positional parameters were not saved.
210
test \$exitcode = 0) || { (exit 1); exit 1; }
215
test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216
test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217
") 2> /dev/null; then
221
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225
test -z "$as_dir" && as_dir=.
228
for as_base in sh bash ksh sh5; do
229
as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236
for as_shell in $as_candidate_shells $SHELL; do
237
# Try only shells that exist, to save several forks.
238
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239
{ ("$as_shell") 2> /dev/null <<\_ASEOF
240
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244
# is contrary to our usage. Disable this feature.
245
alias -g '${1+"$@"}'='"$@"'
248
case `(set -o) 2>/dev/null` in
249
*posix*) set -o posix ;;
258
CONFIG_SHELL=$as_shell
260
if { "$as_shell" 2> /dev/null <<\_ASEOF
261
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265
# is contrary to our usage. Disable this feature.
266
alias -g '${1+"$@"}'='"$@"'
269
case `(set -o) 2>/dev/null` in
270
*posix*) set -o posix ;;
286
as_func_ret_success () {
289
as_func_ret_failure () {
294
if as_func_success; then
298
echo as_func_success failed.
301
if as_func_failure; then
303
echo as_func_failure succeeded.
306
if as_func_ret_success; then
310
echo as_func_ret_success failed.
313
if as_func_ret_failure; then
315
echo as_func_ret_failure succeeded.
318
if ( set x; as_func_ret_success y && test x = "$1" ); then
322
echo positional parameters were not saved.
325
test $exitcode = 0) || { (exit 1); exit 1; }
330
test "x$as_lineno_1" != "x$as_lineno_2" &&
331
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
342
if test "x$CONFIG_SHELL" != x; then
343
for as_var in BASH_ENV ENV
344
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347
exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351
if test $as_have_required = no; then
352
echo This script requires a shell more modern than all the
353
echo shells that I found on your system. Please install a
354
echo modern shell, or manually run the script under such a
355
echo shell if you do have one.
356
{ (exit 1); exit 1; }
366
(eval "as_func_return () {
375
as_func_ret_success () {
378
as_func_ret_failure () {
383
if as_func_success; then
387
echo as_func_success failed.
390
if as_func_failure; then
392
echo as_func_failure succeeded.
395
if as_func_ret_success; then
399
echo as_func_ret_success failed.
402
if as_func_ret_failure; then
404
echo as_func_ret_failure succeeded.
407
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411
echo positional parameters were not saved.
414
test \$exitcode = 0") || {
415
echo No shell found that supports shell functions.
416
echo Please tell autoconf@gnu.org about your system,
417
echo including any error possibly output before this
425
test "x$as_lineno_1" != "x$as_lineno_2" &&
426
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429
# uniformly replaced by the line number. The first 'sed' inserts a
430
# line-number line after each line using $LINENO; the second 'sed'
431
# does the real work. The second script uses 'N' to pair each
432
# line-number line with the line containing $LINENO, and appends
433
# trailing '-' during substitution so that $LINENO is not a special
435
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436
# scripts with optimization help from Paolo Bonzini. Blame Lee
437
# E. McMahon (1931-1989) for sed's syntax. :-)
449
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453
chmod +x "$as_me.lineno" ||
454
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455
{ (exit 1); exit 1; }; }
457
# Don't try to exec as it changes $[0], causing all sort of problems
458
# (the dirname of $[0] is not the place where we might find the
459
# original and so on. Autoconf is especially sensitive to this).
461
# Exit status is that of the last command.
466
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
472
ECHO_C= ECHO_N= ECHO_T=
476
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
483
if expr a : '\(a\)' >/dev/null 2>&1 &&
484
test "X`expr 00001 : '.*\(...\)'`" = X001; then
490
rm -f conf$$ conf$$.exe conf$$.file
491
if test -d conf$$.dir; then
492
rm -f conf$$.dir/conf$$.file
498
if ln -s conf$$.file conf$$ 2>/dev/null; then
500
# ... but there are two gotchas:
501
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503
# In both cases, we have to default to `cp -p'.
504
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506
elif ln conf$$.file conf$$ 2>/dev/null; then
511
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512
rmdir conf$$.dir 2>/dev/null
514
if mkdir -p . 2>/dev/null; then
517
test -d ./-p && rmdir ./-p
521
if test -x / >/dev/null 2>&1; then
524
if ls -dL / >/dev/null 2>&1; then
531
if test -d "$1"; then
537
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538
???[sx]*):;;*)false;;esac;fi
542
as_executable_p=$as_test_x
544
# Sed expression to map a string onto a valid CPP name.
545
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547
# Sed expression to map a string onto a valid variable name.
548
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552
exec 7<&0 </dev/null 6>&1
555
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556
# so uname gets run too.
557
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
562
ac_default_prefix=/usr/local
564
ac_config_libobj_dir=.
570
SHELL=${CONFIG_SHELL-/bin/sh}
572
# Identity of this package.
579
ac_unique_file="configure.base"
580
# Factoring default headers for most tests.
581
ac_includes_default="\
583
#ifdef HAVE_SYS_TYPES_H
584
# include <sys/types.h>
586
#ifdef HAVE_SYS_STAT_H
587
# include <sys/stat.h>
593
# ifdef HAVE_STDLIB_H
598
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
603
#ifdef HAVE_STRINGS_H
604
# include <strings.h>
606
#ifdef HAVE_INTTYPES_H
607
# include <inttypes.h>
625
program_transform_name
696
ac_precious_vars='build_alias
707
# Initialize some variables set by options.
709
ac_init_version=false
710
# The variables have the same names as the options, with
711
# dashes changed to underlines.
719
program_transform_name=s,x,x,
727
# Installation directory options.
728
# These are left unexpanded so users can "make install exec_prefix=/foo"
729
# and all the variables that are supposed to be based on exec_prefix
730
# by default will actually change.
731
# Use braces instead of parens because sh, perl, etc. also accept them.
732
# (The list follows the same order as the GNU Coding Standards.)
733
bindir='${exec_prefix}/bin'
734
sbindir='${exec_prefix}/sbin'
735
libexecdir='${exec_prefix}/libexec'
736
datarootdir='${prefix}/share'
737
datadir='${datarootdir}'
738
sysconfdir='${prefix}/etc'
739
sharedstatedir='${prefix}/com'
740
localstatedir='${prefix}/var'
741
includedir='${prefix}/include'
742
oldincludedir='/usr/include'
743
docdir='${datarootdir}/doc/${PACKAGE}'
744
infodir='${datarootdir}/info'
749
libdir='${exec_prefix}/lib'
750
localedir='${datarootdir}/locale'
751
mandir='${datarootdir}/man'
757
# If the previous option needs an argument, assign it.
758
if test -n "$ac_prev"; then
759
eval $ac_prev=\$ac_option
765
*=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
769
# Accept the important Cygnus configure options, so we can diagnose typos.
771
case $ac_dashdash$ac_option in
775
-bindir | --bindir | --bindi | --bind | --bin | --bi)
777
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
780
-build | --build | --buil | --bui | --bu)
781
ac_prev=build_alias ;;
782
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
783
build_alias=$ac_optarg ;;
785
-cache-file | --cache-file | --cache-fil | --cache-fi \
786
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
787
ac_prev=cache_file ;;
788
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
789
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
790
cache_file=$ac_optarg ;;
793
cache_file=config.cache ;;
795
-datadir | --datadir | --datadi | --datad)
797
-datadir=* | --datadir=* | --datadi=* | --datad=*)
798
datadir=$ac_optarg ;;
800
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
801
| --dataroo | --dataro | --datar)
802
ac_prev=datarootdir ;;
803
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
804
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
805
datarootdir=$ac_optarg ;;
807
-disable-* | --disable-*)
808
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
809
# Reject names that are not valid shell variable names.
810
expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
811
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
812
{ (exit 1); exit 1; }; }
813
ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
814
eval enable_$ac_feature=no ;;
816
-docdir | --docdir | --docdi | --doc | --do)
818
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
821
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
823
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
826
-enable-* | --enable-*)
827
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
828
# Reject names that are not valid shell variable names.
829
expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
830
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
831
{ (exit 1); exit 1; }; }
832
ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
833
eval enable_$ac_feature=\$ac_optarg ;;
835
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
836
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
837
| --exec | --exe | --ex)
838
ac_prev=exec_prefix ;;
839
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
840
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
841
| --exec=* | --exe=* | --ex=*)
842
exec_prefix=$ac_optarg ;;
844
-gas | --gas | --ga | --g)
845
# Obsolete; use --with-gas.
848
-help | --help | --hel | --he | -h)
850
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
851
ac_init_help=recursive ;;
852
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
853
ac_init_help=short ;;
855
-host | --host | --hos | --ho)
856
ac_prev=host_alias ;;
857
-host=* | --host=* | --hos=* | --ho=*)
858
host_alias=$ac_optarg ;;
860
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
862
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
864
htmldir=$ac_optarg ;;
866
-includedir | --includedir | --includedi | --included | --include \
867
| --includ | --inclu | --incl | --inc)
868
ac_prev=includedir ;;
869
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
870
| --includ=* | --inclu=* | --incl=* | --inc=*)
871
includedir=$ac_optarg ;;
873
-infodir | --infodir | --infodi | --infod | --info | --inf)
875
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
876
infodir=$ac_optarg ;;
878
-libdir | --libdir | --libdi | --libd)
880
-libdir=* | --libdir=* | --libdi=* | --libd=*)
883
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
884
| --libexe | --libex | --libe)
885
ac_prev=libexecdir ;;
886
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
887
| --libexe=* | --libex=* | --libe=*)
888
libexecdir=$ac_optarg ;;
890
-localedir | --localedir | --localedi | --localed | --locale)
892
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
893
localedir=$ac_optarg ;;
895
-localstatedir | --localstatedir | --localstatedi | --localstated \
896
| --localstate | --localstat | --localsta | --localst | --locals)
897
ac_prev=localstatedir ;;
898
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
899
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
900
localstatedir=$ac_optarg ;;
902
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
904
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
908
# Obsolete; use --without-fp.
911
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
912
| --no-cr | --no-c | -n)
915
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
916
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
919
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
920
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
921
| --oldin | --oldi | --old | --ol | --o)
922
ac_prev=oldincludedir ;;
923
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
924
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
925
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
926
oldincludedir=$ac_optarg ;;
928
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
930
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
933
-program-prefix | --program-prefix | --program-prefi | --program-pref \
934
| --program-pre | --program-pr | --program-p)
935
ac_prev=program_prefix ;;
936
-program-prefix=* | --program-prefix=* | --program-prefi=* \
937
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
938
program_prefix=$ac_optarg ;;
940
-program-suffix | --program-suffix | --program-suffi | --program-suff \
941
| --program-suf | --program-su | --program-s)
942
ac_prev=program_suffix ;;
943
-program-suffix=* | --program-suffix=* | --program-suffi=* \
944
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
945
program_suffix=$ac_optarg ;;
947
-program-transform-name | --program-transform-name \
948
| --program-transform-nam | --program-transform-na \
949
| --program-transform-n | --program-transform- \
950
| --program-transform | --program-transfor \
951
| --program-transfo | --program-transf \
952
| --program-trans | --program-tran \
953
| --progr-tra | --program-tr | --program-t)
954
ac_prev=program_transform_name ;;
955
-program-transform-name=* | --program-transform-name=* \
956
| --program-transform-nam=* | --program-transform-na=* \
957
| --program-transform-n=* | --program-transform-=* \
958
| --program-transform=* | --program-transfor=* \
959
| --program-transfo=* | --program-transf=* \
960
| --program-trans=* | --program-tran=* \
961
| --progr-tra=* | --program-tr=* | --program-t=*)
962
program_transform_name=$ac_optarg ;;
964
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
966
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
969
-psdir | --psdir | --psdi | --psd | --ps)
971
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
974
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
975
| -silent | --silent | --silen | --sile | --sil)
978
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
980
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
982
sbindir=$ac_optarg ;;
984
-sharedstatedir | --sharedstatedir | --sharedstatedi \
985
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
986
| --sharedst | --shareds | --shared | --share | --shar \
988
ac_prev=sharedstatedir ;;
989
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
990
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
991
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
993
sharedstatedir=$ac_optarg ;;
995
-site | --site | --sit)
997
-site=* | --site=* | --sit=*)
1000
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1002
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1003
srcdir=$ac_optarg ;;
1005
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1006
| --syscon | --sysco | --sysc | --sys | --sy)
1007
ac_prev=sysconfdir ;;
1008
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1009
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1010
sysconfdir=$ac_optarg ;;
1012
-target | --target | --targe | --targ | --tar | --ta | --t)
1013
ac_prev=target_alias ;;
1014
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1015
target_alias=$ac_optarg ;;
1017
-v | -verbose | --verbose | --verbos | --verbo | --verb)
1020
-version | --version | --versio | --versi | --vers | -V)
1021
ac_init_version=: ;;
1024
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1025
# Reject names that are not valid shell variable names.
1026
expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1027
{ echo "$as_me: error: invalid package name: $ac_package" >&2
1028
{ (exit 1); exit 1; }; }
1029
ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1030
eval with_$ac_package=\$ac_optarg ;;
1032
-without-* | --without-*)
1033
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1034
# Reject names that are not valid shell variable names.
1035
expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1036
{ echo "$as_me: error: invalid package name: $ac_package" >&2
1037
{ (exit 1); exit 1; }; }
1038
ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1039
eval with_$ac_package=no ;;
1042
# Obsolete; use --with-x.
1045
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1046
| --x-incl | --x-inc | --x-in | --x-i)
1047
ac_prev=x_includes ;;
1048
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1049
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1050
x_includes=$ac_optarg ;;
1052
-x-libraries | --x-libraries | --x-librarie | --x-librari \
1053
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1054
ac_prev=x_libraries ;;
1055
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1056
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1057
x_libraries=$ac_optarg ;;
1059
-*) { echo "$as_me: error: unrecognized option: $ac_option
1060
Try \`$0 --help' for more information." >&2
1061
{ (exit 1); exit 1; }; }
1065
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1066
# Reject names that are not valid shell variable names.
1067
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1068
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1069
{ (exit 1); exit 1; }; }
1070
eval $ac_envvar=\$ac_optarg
1071
export $ac_envvar ;;
1074
# FIXME: should be removed in autoconf 3.0.
1075
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1076
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1077
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1078
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1084
if test -n "$ac_prev"; then
1085
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1086
{ echo "$as_me: error: missing argument to $ac_option" >&2
1087
{ (exit 1); exit 1; }; }
1090
# Be sure to have absolute directory names.
1091
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1092
datadir sysconfdir sharedstatedir localstatedir includedir \
1093
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1094
libdir localedir mandir
1096
eval ac_val=\$$ac_var
1098
[\\/$]* | ?:[\\/]* ) continue;;
1099
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1101
{ echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1102
{ (exit 1); exit 1; }; }
1105
# There might be people who depend on the old broken behavior: `$host'
1106
# used to hold the argument of --host etc.
1107
# FIXME: To remove some day.
1110
target=$target_alias
1112
# FIXME: To remove some day.
1113
if test "x$host_alias" != x; then
1114
if test "x$build_alias" = x; then
1115
cross_compiling=maybe
1116
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1117
If a cross compiler is detected then cross compile mode will be used." >&2
1118
elif test "x$build_alias" != "x$host_alias"; then
1124
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1126
test "$silent" = yes && exec 6>/dev/null
1129
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1130
ac_ls_di=`ls -di .` &&
1131
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1132
{ echo "$as_me: error: Working directory cannot be determined" >&2
1133
{ (exit 1); exit 1; }; }
1134
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1135
{ echo "$as_me: error: pwd does not report name of working directory" >&2
1136
{ (exit 1); exit 1; }; }
1139
# Find the source files, if location was not specified.
1140
if test -z "$srcdir"; then
1141
ac_srcdir_defaulted=yes
1142
# Try the directory containing this script, then the parent directory.
1143
ac_confdir=`$as_dirname -- "$0" ||
1144
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1145
X"$0" : 'X\(//\)[^/]' \| \
1146
X"$0" : 'X\(//\)$' \| \
1147
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1149
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1167
if test ! -r "$srcdir/$ac_unique_file"; then
1171
ac_srcdir_defaulted=no
1173
if test ! -r "$srcdir/$ac_unique_file"; then
1174
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1175
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1176
{ (exit 1); exit 1; }; }
1178
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1180
cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1181
{ (exit 1); exit 1; }; }
1183
# When building in place, set srcdir=.
1184
if test "$ac_abs_confdir" = "$ac_pwd"; then
1187
# Remove unnecessary trailing slashes from srcdir.
1188
# Double slashes in file names in object file debugging info
1189
# mess up M-x gdb in Emacs.
1191
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1193
for ac_var in $ac_precious_vars; do
1194
eval ac_env_${ac_var}_set=\${${ac_var}+set}
1195
eval ac_env_${ac_var}_value=\$${ac_var}
1196
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1197
eval ac_cv_env_${ac_var}_value=\$${ac_var}
1201
# Report the --help message.
1203
if test "$ac_init_help" = "long"; then
1204
# Omit some internal or obsolete options to make the list less imposing.
1205
# This message is too long to be a string in the A/UX 3.1 sh.
1207
\`configure' configures this package to adapt to many kinds of systems.
1209
Usage: $0 [OPTION]... [VAR=VALUE]...
1211
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1212
VAR=VALUE. See below for descriptions of some of the useful variables.
1214
Defaults for the options are specified in brackets.
1217
-h, --help display this help and exit
1218
--help=short display options specific to this package
1219
--help=recursive display the short help of all the included packages
1220
-V, --version display version information and exit
1221
-q, --quiet, --silent do not print \`checking...' messages
1222
--cache-file=FILE cache test results in FILE [disabled]
1223
-C, --config-cache alias for \`--cache-file=config.cache'
1224
-n, --no-create do not create output files
1225
--srcdir=DIR find the sources in DIR [configure dir or \`..']
1227
Installation directories:
1228
--prefix=PREFIX install architecture-independent files in PREFIX
1229
[$ac_default_prefix]
1230
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1233
By default, \`make install' will install all the files in
1234
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1235
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1236
for instance \`--prefix=\$HOME'.
1238
For better control, use the options below.
1240
Fine tuning of the installation directories:
1241
--bindir=DIR user executables [EPREFIX/bin]
1242
--sbindir=DIR system admin executables [EPREFIX/sbin]
1243
--libexecdir=DIR program executables [EPREFIX/libexec]
1244
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1245
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1246
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1247
--libdir=DIR object code libraries [EPREFIX/lib]
1248
--includedir=DIR C header files [PREFIX/include]
1249
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1250
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1251
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1252
--infodir=DIR info documentation [DATAROOTDIR/info]
1253
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1254
--mandir=DIR man documentation [DATAROOTDIR/man]
1255
--docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1256
--htmldir=DIR html documentation [DOCDIR]
1257
--dvidir=DIR dvi documentation [DOCDIR]
1258
--pdfdir=DIR pdf documentation [DOCDIR]
1259
--psdir=DIR ps documentation [DOCDIR]
1266
if test -n "$ac_init_help"; then
1271
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1272
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1273
--with-path install path prefix
1274
--with-mpath override path for m-files
1275
--with-opath override path for oct-files
1276
--with-xpath override path for executables
1277
--with-altpath alternative functions install path prefix
1278
--with-altmpath override path for alternative m-files
1279
--with-altopath override path for alternative oct-files
1281
Some influential environment variables:
1282
CC C compiler command
1283
CFLAGS C compiler flags
1284
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1285
nonstandard directory <lib dir>
1286
LIBS libraries to pass to the linker, e.g. -l<library>
1287
CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1288
you have headers in a nonstandard directory <include dir>
1291
Use these variables to override the choices made by `configure' or to help
1292
it to find libraries and programs with nonstandard names/locations.
1298
if test "$ac_init_help" = "recursive"; then
1299
# If there are subdirs, report their specific --help.
1300
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1301
test -d "$ac_dir" || continue
1305
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1307
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1308
# A ".." for each directory in $ac_dir_suffix.
1309
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1310
case $ac_top_builddir_sub in
1311
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1312
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1315
ac_abs_top_builddir=$ac_pwd
1316
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1317
# for backward compatibility:
1318
ac_top_builddir=$ac_top_build_prefix
1321
.) # We are building in place.
1323
ac_top_srcdir=$ac_top_builddir_sub
1324
ac_abs_top_srcdir=$ac_pwd ;;
1325
[\\/]* | ?:[\\/]* ) # Absolute name.
1326
ac_srcdir=$srcdir$ac_dir_suffix;
1327
ac_top_srcdir=$srcdir
1328
ac_abs_top_srcdir=$srcdir ;;
1330
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1331
ac_top_srcdir=$ac_top_build_prefix$srcdir
1332
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1334
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1336
cd "$ac_dir" || { ac_status=$?; continue; }
1337
# Check for guested configure.
1338
if test -f "$ac_srcdir/configure.gnu"; then
1340
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
1341
elif test -f "$ac_srcdir/configure"; then
1343
$SHELL "$ac_srcdir/configure" --help=recursive
1345
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1347
cd "$ac_pwd" || { ac_status=$?; break; }
1351
test -n "$ac_init_help" && exit $ac_status
1352
if $ac_init_version; then
1355
generated by GNU Autoconf 2.61
1357
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1358
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1359
This configure script is free software; the Free Software Foundation
1360
gives unlimited permission to copy, distribute and modify it.
1364
cat >config.log <<_ACEOF
1365
This file contains any messages produced by compilers while
1366
running configure, to aid debugging if configure makes a mistake.
1368
It was created by $as_me, which was
1369
generated by GNU Autoconf 2.61. Invocation command line was
1381
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1382
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1383
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1384
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1385
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1387
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1388
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1390
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1391
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1392
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1393
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1394
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1395
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1396
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1400
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1404
test -z "$as_dir" && as_dir=.
1405
echo "PATH: $as_dir"
1421
# Keep a trace of the command line.
1422
# Strip out --no-create and --no-recursion so they do not pile up.
1423
# Strip out --silent because we don't want to record it for future runs.
1424
# Also quote any args containing shell meta-characters.
1425
# Make two passes to allow for proper duplicate-argument suppression.
1429
ac_must_keep_next=false
1435
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1436
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1437
| -silent | --silent | --silen | --sile | --sil)
1440
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1443
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1445
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1446
if test $ac_must_keep_next = true; then
1447
ac_must_keep_next=false # Got value, back to normal.
1450
*=* | --config-cache | -C | -disable-* | --disable-* \
1451
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1452
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1453
| -with-* | --with-* | -without-* | --without-* | --x)
1454
case "$ac_configure_args0 " in
1455
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1458
-* ) ac_must_keep_next=true ;;
1461
ac_configure_args="$ac_configure_args '$ac_arg'"
1466
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1467
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1469
# When interrupted or exit'd, cleanup temporary files, and complete
1470
# config.log. We remove comments because anyway the quotes in there
1471
# would cause problems or look ugly.
1472
# WARNING: Use '\'' to represent an apostrophe within the trap.
1473
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1474
trap 'exit_status=$?
1475
# Save into config.log some information that might help in debugging.
1480
## ---------------- ##
1481
## Cache variables. ##
1482
## ---------------- ##
1485
# The following way of writing the cache mishandles newlines in values,
1487
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1488
eval ac_val=\$$ac_var
1492
*_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1493
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1496
_ | IFS | as_nl) ;; #(
1497
*) $as_unset $ac_var ;;
1502
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1503
*${as_nl}ac_space=\ *)
1505
"s/'\''/'\''\\\\'\'''\''/g;
1506
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1509
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1517
## ----------------- ##
1518
## Output variables. ##
1519
## ----------------- ##
1522
for ac_var in $ac_subst_vars
1524
eval ac_val=\$$ac_var
1526
*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1528
echo "$ac_var='\''$ac_val'\''"
1532
if test -n "$ac_subst_files"; then
1534
## ------------------- ##
1535
## File substitutions. ##
1536
## ------------------- ##
1539
for ac_var in $ac_subst_files
1541
eval ac_val=\$$ac_var
1543
*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1545
echo "$ac_var='\''$ac_val'\''"
1550
if test -s confdefs.h; then
1560
test "$ac_signal" != 0 &&
1561
echo "$as_me: caught signal $ac_signal"
1562
echo "$as_me: exit $exit_status"
1564
rm -f core *.core core.conftest.* &&
1565
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1568
for ac_signal in 1 2 13 15; do
1569
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1573
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1574
rm -f -r conftest* confdefs.h
1576
# Predefined preprocessor variables.
1578
cat >>confdefs.h <<_ACEOF
1579
#define PACKAGE_NAME "$PACKAGE_NAME"
1583
cat >>confdefs.h <<_ACEOF
1584
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1588
cat >>confdefs.h <<_ACEOF
1589
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1593
cat >>confdefs.h <<_ACEOF
1594
#define PACKAGE_STRING "$PACKAGE_STRING"
1598
cat >>confdefs.h <<_ACEOF
1599
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1603
# Let the site file select an alternate cache file if it wants to.
1604
# Prefer explicitly selected file to automatically selected ones.
1605
if test -n "$CONFIG_SITE"; then
1606
set x "$CONFIG_SITE"
1607
elif test "x$prefix" != xNONE; then
1608
set x "$prefix/share/config.site" "$prefix/etc/config.site"
1610
set x "$ac_default_prefix/share/config.site" \
1611
"$ac_default_prefix/etc/config.site"
1616
if test -r "$ac_site_file"; then
1617
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1618
echo "$as_me: loading site script $ac_site_file" >&6;}
1619
sed 's/^/| /' "$ac_site_file" >&5
1624
if test -r "$cache_file"; then
1625
# Some versions of bash will fail to source /dev/null (special
1626
# files actually), so we avoid doing that.
1627
if test -f "$cache_file"; then
1628
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
1629
echo "$as_me: loading cache $cache_file" >&6;}
1631
[\\/]* | ?:[\\/]* ) . "$cache_file";;
1632
*) . "./$cache_file";;
1636
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
1637
echo "$as_me: creating cache $cache_file" >&6;}
1641
# Check that the precious variables saved in the cache have kept the same
1643
ac_cache_corrupted=false
1644
for ac_var in $ac_precious_vars; do
1645
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1646
eval ac_new_set=\$ac_env_${ac_var}_set
1647
eval ac_old_val=\$ac_cv_env_${ac_var}_value
1648
eval ac_new_val=\$ac_env_${ac_var}_value
1649
case $ac_old_set,$ac_new_set in
1651
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1652
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1653
ac_cache_corrupted=: ;;
1655
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1656
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1657
ac_cache_corrupted=: ;;
1660
if test "x$ac_old_val" != "x$ac_new_val"; then
1661
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1662
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1663
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1664
echo "$as_me: former value: $ac_old_val" >&2;}
1665
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1666
echo "$as_me: current value: $ac_new_val" >&2;}
1667
ac_cache_corrupted=:
1670
# Pass precious variables to config.status.
1671
if test "$ac_new_set" = set; then
1673
*\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1674
*) ac_arg=$ac_var=$ac_new_val ;;
1676
case " $ac_configure_args " in
1677
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1678
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1682
if $ac_cache_corrupted; then
1683
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1684
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1685
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1686
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1687
{ (exit 1); exit 1; }; }
1707
ac_cpp='$CPP $CPPFLAGS'
1708
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1709
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1710
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1714
PACKAGE=octave-forge
1721
VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PATCH_LEVEL
1730
ac_cpp='$CPP $CPPFLAGS'
1731
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1732
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1733
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1734
if test -n "$ac_tool_prefix"; then
1735
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1736
set dummy ${ac_tool_prefix}gcc; ac_word=$2
1737
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1738
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1739
if test "${ac_cv_prog_CC+set}" = set; then
1740
echo $ECHO_N "(cached) $ECHO_C" >&6
1742
if test -n "$CC"; then
1743
ac_cv_prog_CC="$CC" # Let the user override the test.
1745
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1749
test -z "$as_dir" && as_dir=.
1750
for ac_exec_ext in '' $ac_executable_extensions; do
1751
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1752
ac_cv_prog_CC="${ac_tool_prefix}gcc"
1753
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1763
if test -n "$CC"; then
1764
{ echo "$as_me:$LINENO: result: $CC" >&5
1765
echo "${ECHO_T}$CC" >&6; }
1767
{ echo "$as_me:$LINENO: result: no" >&5
1768
echo "${ECHO_T}no" >&6; }
1773
if test -z "$ac_cv_prog_CC"; then
1775
# Extract the first word of "gcc", so it can be a program name with args.
1776
set dummy gcc; ac_word=$2
1777
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1778
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1779
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1780
echo $ECHO_N "(cached) $ECHO_C" >&6
1782
if test -n "$ac_ct_CC"; then
1783
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1785
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1789
test -z "$as_dir" && as_dir=.
1790
for ac_exec_ext in '' $ac_executable_extensions; do
1791
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1792
ac_cv_prog_ac_ct_CC="gcc"
1793
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1802
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1803
if test -n "$ac_ct_CC"; then
1804
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1805
echo "${ECHO_T}$ac_ct_CC" >&6; }
1807
{ echo "$as_me:$LINENO: result: no" >&5
1808
echo "${ECHO_T}no" >&6; }
1811
if test "x$ac_ct_CC" = x; then
1814
case $cross_compiling:$ac_tool_warned in
1816
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1817
whose name does not start with the host triplet. If you think this
1818
configuration is useful to you, please write to autoconf@gnu.org." >&5
1819
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1820
whose name does not start with the host triplet. If you think this
1821
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1822
ac_tool_warned=yes ;;
1830
if test -z "$CC"; then
1831
if test -n "$ac_tool_prefix"; then
1832
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1833
set dummy ${ac_tool_prefix}cc; ac_word=$2
1834
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1835
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1836
if test "${ac_cv_prog_CC+set}" = set; then
1837
echo $ECHO_N "(cached) $ECHO_C" >&6
1839
if test -n "$CC"; then
1840
ac_cv_prog_CC="$CC" # Let the user override the test.
1842
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1846
test -z "$as_dir" && as_dir=.
1847
for ac_exec_ext in '' $ac_executable_extensions; do
1848
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1849
ac_cv_prog_CC="${ac_tool_prefix}cc"
1850
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1860
if test -n "$CC"; then
1861
{ echo "$as_me:$LINENO: result: $CC" >&5
1862
echo "${ECHO_T}$CC" >&6; }
1864
{ echo "$as_me:$LINENO: result: no" >&5
1865
echo "${ECHO_T}no" >&6; }
1871
if test -z "$CC"; then
1872
# Extract the first word of "cc", so it can be a program name with args.
1873
set dummy cc; ac_word=$2
1874
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1875
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1876
if test "${ac_cv_prog_CC+set}" = set; then
1877
echo $ECHO_N "(cached) $ECHO_C" >&6
1879
if test -n "$CC"; then
1880
ac_cv_prog_CC="$CC" # Let the user override the test.
1883
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1887
test -z "$as_dir" && as_dir=.
1888
for ac_exec_ext in '' $ac_executable_extensions; do
1889
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1890
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1891
ac_prog_rejected=yes
1895
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1902
if test $ac_prog_rejected = yes; then
1903
# We found a bogon in the path, so make sure we never use it.
1904
set dummy $ac_cv_prog_CC
1906
if test $# != 0; then
1907
# We chose a different compiler from the bogus one.
1908
# However, it has the same basename, so the bogon will be chosen
1909
# first if we set CC to just the basename; use the full file name.
1911
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1917
if test -n "$CC"; then
1918
{ echo "$as_me:$LINENO: result: $CC" >&5
1919
echo "${ECHO_T}$CC" >&6; }
1921
{ echo "$as_me:$LINENO: result: no" >&5
1922
echo "${ECHO_T}no" >&6; }
1927
if test -z "$CC"; then
1928
if test -n "$ac_tool_prefix"; then
1929
for ac_prog in cl.exe
1931
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1932
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1933
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1934
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1935
if test "${ac_cv_prog_CC+set}" = set; then
1936
echo $ECHO_N "(cached) $ECHO_C" >&6
1938
if test -n "$CC"; then
1939
ac_cv_prog_CC="$CC" # Let the user override the test.
1941
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1945
test -z "$as_dir" && as_dir=.
1946
for ac_exec_ext in '' $ac_executable_extensions; do
1947
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1948
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1949
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1959
if test -n "$CC"; then
1960
{ echo "$as_me:$LINENO: result: $CC" >&5
1961
echo "${ECHO_T}$CC" >&6; }
1963
{ echo "$as_me:$LINENO: result: no" >&5
1964
echo "${ECHO_T}no" >&6; }
1968
test -n "$CC" && break
1971
if test -z "$CC"; then
1973
for ac_prog in cl.exe
1975
# Extract the first word of "$ac_prog", so it can be a program name with args.
1976
set dummy $ac_prog; ac_word=$2
1977
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1978
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1979
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1980
echo $ECHO_N "(cached) $ECHO_C" >&6
1982
if test -n "$ac_ct_CC"; then
1983
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1985
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1989
test -z "$as_dir" && as_dir=.
1990
for ac_exec_ext in '' $ac_executable_extensions; do
1991
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1992
ac_cv_prog_ac_ct_CC="$ac_prog"
1993
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2002
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2003
if test -n "$ac_ct_CC"; then
2004
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2005
echo "${ECHO_T}$ac_ct_CC" >&6; }
2007
{ echo "$as_me:$LINENO: result: no" >&5
2008
echo "${ECHO_T}no" >&6; }
2012
test -n "$ac_ct_CC" && break
2015
if test "x$ac_ct_CC" = x; then
2018
case $cross_compiling:$ac_tool_warned in
2020
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2021
whose name does not start with the host triplet. If you think this
2022
configuration is useful to you, please write to autoconf@gnu.org." >&5
2023
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2024
whose name does not start with the host triplet. If you think this
2025
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2026
ac_tool_warned=yes ;;
2035
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2036
See \`config.log' for more details." >&5
2037
echo "$as_me: error: no acceptable C compiler found in \$PATH
2038
See \`config.log' for more details." >&2;}
2039
{ (exit 1); exit 1; }; }
2041
# Provide some information about the compiler.
2042
echo "$as_me:$LINENO: checking for C compiler version" >&5
2043
ac_compiler=`set X $ac_compile; echo $2`
2044
{ (ac_try="$ac_compiler --version >&5"
2046
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2047
*) ac_try_echo=$ac_try;;
2049
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2050
(eval "$ac_compiler --version >&5") 2>&5
2052
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2053
(exit $ac_status); }
2054
{ (ac_try="$ac_compiler -v >&5"
2056
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2057
*) ac_try_echo=$ac_try;;
2059
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2060
(eval "$ac_compiler -v >&5") 2>&5
2062
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2063
(exit $ac_status); }
2064
{ (ac_try="$ac_compiler -V >&5"
2066
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2067
*) ac_try_echo=$ac_try;;
2069
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2070
(eval "$ac_compiler -V >&5") 2>&5
2072
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2073
(exit $ac_status); }
2075
cat >conftest.$ac_ext <<_ACEOF
2078
cat confdefs.h >>conftest.$ac_ext
2079
cat >>conftest.$ac_ext <<_ACEOF
2080
/* end confdefs.h. */
2090
ac_clean_files_save=$ac_clean_files
2091
ac_clean_files="$ac_clean_files a.out a.exe b.out"
2092
# Try to create an executable without -o first, disregard a.out.
2093
# It will help us diagnose broken compilers, and finding out an intuition
2095
{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2096
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2097
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2099
# List of possible output files, starting from the most likely.
2100
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2101
# only as a last resort. b.out is created by i960 compilers.
2102
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2104
# The IRIX 6 linker writes into existing files which may not be
2105
# executable, retaining their permissions. Remove them first so a
2106
# subsequent execution test works.
2108
for ac_file in $ac_files
2111
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2112
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
2117
if { (ac_try="$ac_link_default"
2119
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2120
*) ac_try_echo=$ac_try;;
2122
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2123
(eval "$ac_link_default") 2>&5
2125
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2126
(exit $ac_status); }; then
2127
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2128
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2129
# in a Makefile. We should not override ac_cv_exeext if it was cached,
2130
# so that the user can short-circuit this test for compilers unknown to
2132
for ac_file in $ac_files ''
2134
test -f "$ac_file" || continue
2136
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2139
# We found the default executable, but exeext='' is most
2143
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2145
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2147
# We set ac_cv_exeext here because the later test for it is not
2148
# safe: cross compilers may not add the suffix if given an `-o'
2149
# argument, so we may need to know it at that point already.
2150
# Even if this section looks crufty: it has the advantage of
2157
test "$ac_cv_exeext" = no && ac_cv_exeext=
2163
{ echo "$as_me:$LINENO: result: $ac_file" >&5
2164
echo "${ECHO_T}$ac_file" >&6; }
2165
if test -z "$ac_file"; then
2166
echo "$as_me: failed program was:" >&5
2167
sed 's/^/| /' conftest.$ac_ext >&5
2169
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2170
See \`config.log' for more details." >&5
2171
echo "$as_me: error: C compiler cannot create executables
2172
See \`config.log' for more details." >&2;}
2173
{ (exit 77); exit 77; }; }
2176
ac_exeext=$ac_cv_exeext
2178
# Check that the compiler produces executables we can run. If not, either
2179
# the compiler is broken, or we cross compile.
2180
{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2181
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2182
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2183
# If not cross compiling, check that we can run a simple program.
2184
if test "$cross_compiling" != yes; then
2185
if { ac_try='./$ac_file'
2186
{ (case "(($ac_try" in
2187
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2188
*) ac_try_echo=$ac_try;;
2190
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2191
(eval "$ac_try") 2>&5
2193
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2194
(exit $ac_status); }; }; then
2197
if test "$cross_compiling" = maybe; then
2200
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2201
If you meant to cross compile, use \`--host'.
2202
See \`config.log' for more details." >&5
2203
echo "$as_me: error: cannot run C compiled programs.
2204
If you meant to cross compile, use \`--host'.
2205
See \`config.log' for more details." >&2;}
2206
{ (exit 1); exit 1; }; }
2210
{ echo "$as_me:$LINENO: result: yes" >&5
2211
echo "${ECHO_T}yes" >&6; }
2213
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2214
ac_clean_files=$ac_clean_files_save
2215
# Check that the compiler produces executables we can run. If not, either
2216
# the compiler is broken, or we cross compile.
2217
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2218
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2219
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2220
echo "${ECHO_T}$cross_compiling" >&6; }
2222
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2223
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2224
if { (ac_try="$ac_link"
2226
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2227
*) ac_try_echo=$ac_try;;
2229
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2230
(eval "$ac_link") 2>&5
2232
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2233
(exit $ac_status); }; then
2234
# If both `conftest.exe' and `conftest' are `present' (well, observable)
2235
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2236
# work properly (i.e., refer to `conftest.exe'), while it won't with
2238
for ac_file in conftest.exe conftest conftest.*; do
2239
test -f "$ac_file" || continue
2241
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2242
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2248
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2249
See \`config.log' for more details." >&5
2250
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2251
See \`config.log' for more details." >&2;}
2252
{ (exit 1); exit 1; }; }
2255
rm -f conftest$ac_cv_exeext
2256
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2257
echo "${ECHO_T}$ac_cv_exeext" >&6; }
2259
rm -f conftest.$ac_ext
2260
EXEEXT=$ac_cv_exeext
2262
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2263
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2264
if test "${ac_cv_objext+set}" = set; then
2265
echo $ECHO_N "(cached) $ECHO_C" >&6
2267
cat >conftest.$ac_ext <<_ACEOF
2270
cat confdefs.h >>conftest.$ac_ext
2271
cat >>conftest.$ac_ext <<_ACEOF
2272
/* end confdefs.h. */
2282
rm -f conftest.o conftest.obj
2283
if { (ac_try="$ac_compile"
2285
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2286
*) ac_try_echo=$ac_try;;
2288
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2289
(eval "$ac_compile") 2>&5
2291
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2292
(exit $ac_status); }; then
2293
for ac_file in conftest.o conftest.obj conftest.*; do
2294
test -f "$ac_file" || continue;
2296
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2297
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2302
echo "$as_me: failed program was:" >&5
2303
sed 's/^/| /' conftest.$ac_ext >&5
2305
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2306
See \`config.log' for more details." >&5
2307
echo "$as_me: error: cannot compute suffix of object files: cannot compile
2308
See \`config.log' for more details." >&2;}
2309
{ (exit 1); exit 1; }; }
2312
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2314
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2315
echo "${ECHO_T}$ac_cv_objext" >&6; }
2316
OBJEXT=$ac_cv_objext
2318
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2319
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2320
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2321
echo $ECHO_N "(cached) $ECHO_C" >&6
2323
cat >conftest.$ac_ext <<_ACEOF
2326
cat confdefs.h >>conftest.$ac_ext
2327
cat >>conftest.$ac_ext <<_ACEOF
2328
/* end confdefs.h. */
2341
rm -f conftest.$ac_objext
2342
if { (ac_try="$ac_compile"
2344
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2345
*) ac_try_echo=$ac_try;;
2347
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2348
(eval "$ac_compile") 2>conftest.er1
2350
grep -v '^ *+' conftest.er1 >conftest.err
2352
cat conftest.err >&5
2353
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2354
(exit $ac_status); } && {
2355
test -z "$ac_c_werror_flag" ||
2356
test ! -s conftest.err
2357
} && test -s conftest.$ac_objext; then
2360
echo "$as_me: failed program was:" >&5
2361
sed 's/^/| /' conftest.$ac_ext >&5
2366
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2367
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2370
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2371
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2372
GCC=`test $ac_compiler_gnu = yes && echo yes`
2373
ac_test_CFLAGS=${CFLAGS+set}
2374
ac_save_CFLAGS=$CFLAGS
2375
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2376
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2377
if test "${ac_cv_prog_cc_g+set}" = set; then
2378
echo $ECHO_N "(cached) $ECHO_C" >&6
2380
ac_save_c_werror_flag=$ac_c_werror_flag
2381
ac_c_werror_flag=yes
2384
cat >conftest.$ac_ext <<_ACEOF
2387
cat confdefs.h >>conftest.$ac_ext
2388
cat >>conftest.$ac_ext <<_ACEOF
2389
/* end confdefs.h. */
2399
rm -f conftest.$ac_objext
2400
if { (ac_try="$ac_compile"
2402
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2403
*) ac_try_echo=$ac_try;;
2405
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2406
(eval "$ac_compile") 2>conftest.er1
2408
grep -v '^ *+' conftest.er1 >conftest.err
2410
cat conftest.err >&5
2411
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412
(exit $ac_status); } && {
2413
test -z "$ac_c_werror_flag" ||
2414
test ! -s conftest.err
2415
} && test -s conftest.$ac_objext; then
2418
echo "$as_me: failed program was:" >&5
2419
sed 's/^/| /' conftest.$ac_ext >&5
2422
cat >conftest.$ac_ext <<_ACEOF
2425
cat confdefs.h >>conftest.$ac_ext
2426
cat >>conftest.$ac_ext <<_ACEOF
2427
/* end confdefs.h. */
2437
rm -f conftest.$ac_objext
2438
if { (ac_try="$ac_compile"
2440
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2441
*) ac_try_echo=$ac_try;;
2443
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2444
(eval "$ac_compile") 2>conftest.er1
2446
grep -v '^ *+' conftest.er1 >conftest.err
2448
cat conftest.err >&5
2449
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450
(exit $ac_status); } && {
2451
test -z "$ac_c_werror_flag" ||
2452
test ! -s conftest.err
2453
} && test -s conftest.$ac_objext; then
2456
echo "$as_me: failed program was:" >&5
2457
sed 's/^/| /' conftest.$ac_ext >&5
2459
ac_c_werror_flag=$ac_save_c_werror_flag
2461
cat >conftest.$ac_ext <<_ACEOF
2464
cat confdefs.h >>conftest.$ac_ext
2465
cat >>conftest.$ac_ext <<_ACEOF
2466
/* end confdefs.h. */
2476
rm -f conftest.$ac_objext
2477
if { (ac_try="$ac_compile"
2479
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2480
*) ac_try_echo=$ac_try;;
2482
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2483
(eval "$ac_compile") 2>conftest.er1
2485
grep -v '^ *+' conftest.er1 >conftest.err
2487
cat conftest.err >&5
2488
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489
(exit $ac_status); } && {
2490
test -z "$ac_c_werror_flag" ||
2491
test ! -s conftest.err
2492
} && test -s conftest.$ac_objext; then
2495
echo "$as_me: failed program was:" >&5
2496
sed 's/^/| /' conftest.$ac_ext >&5
2501
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2504
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2507
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2508
ac_c_werror_flag=$ac_save_c_werror_flag
2510
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2511
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2512
if test "$ac_test_CFLAGS" = set; then
2513
CFLAGS=$ac_save_CFLAGS
2514
elif test $ac_cv_prog_cc_g = yes; then
2515
if test "$GCC" = yes; then
2521
if test "$GCC" = yes; then
2527
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2528
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2529
if test "${ac_cv_prog_cc_c89+set}" = set; then
2530
echo $ECHO_N "(cached) $ECHO_C" >&6
2532
ac_cv_prog_cc_c89=no
2534
cat >conftest.$ac_ext <<_ACEOF
2537
cat confdefs.h >>conftest.$ac_ext
2538
cat >>conftest.$ac_ext <<_ACEOF
2539
/* end confdefs.h. */
2542
#include <sys/types.h>
2543
#include <sys/stat.h>
2544
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2545
struct buf { int x; };
2546
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2547
static char *e (p, i)
2553
static char *f (char * (*g) (char **, int), char **p, ...)
2558
s = g (p, va_arg (v,int));
2563
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2564
function prototypes and stuff, but not '\xHH' hex character constants.
2565
These don't provoke an error unfortunately, instead are silently treated
2566
as 'x'. The following induces an error, until -std is added to get
2567
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2568
array size at least. It's necessary to write '\x00'==0 to get something
2569
that's true only with -std. */
2570
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2572
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2573
inside strings and character constants. */
2575
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2577
int test (int i, double x);
2578
struct s1 {int (*f) (int a);};
2579
struct s2 {int (*f) (double a);};
2580
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2586
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2591
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2592
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2594
CC="$ac_save_CC $ac_arg"
2595
rm -f conftest.$ac_objext
2596
if { (ac_try="$ac_compile"
2598
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2599
*) ac_try_echo=$ac_try;;
2601
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2602
(eval "$ac_compile") 2>conftest.er1
2604
grep -v '^ *+' conftest.er1 >conftest.err
2606
cat conftest.err >&5
2607
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608
(exit $ac_status); } && {
2609
test -z "$ac_c_werror_flag" ||
2610
test ! -s conftest.err
2611
} && test -s conftest.$ac_objext; then
2612
ac_cv_prog_cc_c89=$ac_arg
2614
echo "$as_me: failed program was:" >&5
2615
sed 's/^/| /' conftest.$ac_ext >&5
2620
rm -f core conftest.err conftest.$ac_objext
2621
test "x$ac_cv_prog_cc_c89" != "xno" && break
2623
rm -f conftest.$ac_ext
2628
case "x$ac_cv_prog_cc_c89" in
2630
{ echo "$as_me:$LINENO: result: none needed" >&5
2631
echo "${ECHO_T}none needed" >&6; } ;;
2633
{ echo "$as_me:$LINENO: result: unsupported" >&5
2634
echo "${ECHO_T}unsupported" >&6; } ;;
2636
CC="$CC $ac_cv_prog_cc_c89"
2637
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2638
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2643
ac_cpp='$CPP $CPPFLAGS'
2644
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2645
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2646
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2652
# Extract the first word of "mkoctfile", so it can be a program name with args.
2653
set dummy mkoctfile; ac_word=$2
2654
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2655
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2656
if test "${ac_cv_prog_MKOCTFILE+set}" = set; then
2657
echo $ECHO_N "(cached) $ECHO_C" >&6
2659
if test -n "$MKOCTFILE"; then
2660
ac_cv_prog_MKOCTFILE="$MKOCTFILE" # Let the user override the test.
2662
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2666
test -z "$as_dir" && as_dir=.
2667
for ac_exec_ext in '' $ac_executable_extensions; do
2668
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2669
ac_cv_prog_MKOCTFILE="mkoctfile"
2670
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2679
MKOCTFILE=$ac_cv_prog_MKOCTFILE
2680
if test -n "$MKOCTFILE"; then
2681
{ echo "$as_me:$LINENO: result: $MKOCTFILE" >&5
2682
echo "${ECHO_T}$MKOCTFILE" >&6; }
2684
{ echo "$as_me:$LINENO: result: no" >&5
2685
echo "${ECHO_T}no" >&6; }
2689
test -z "$MKOCTFILE" && { echo "$as_me:$LINENO: WARNING: no mkoctfile found on path" >&5
2690
echo "$as_me: WARNING: no mkoctfile found on path" >&2;}
2702
# Check whether --with-path was given.
2703
if test "${with_path+set}" = set; then
2704
withval=$with_path; path=$withval
2708
# Check whether --with-mpath was given.
2709
if test "${with_mpath+set}" = set; then
2710
withval=$with_mpath; mpath=$withval
2714
# Check whether --with-opath was given.
2715
if test "${with_opath+set}" = set; then
2716
withval=$with_opath; opath=$withval
2720
# Check whether --with-xpath was given.
2721
if test "${with_xpath+set}" = set; then
2722
withval=$with_xpath; xpath=$withval
2726
# Check whether --with-altpath was given.
2727
if test "${with_altpath+set}" = set; then
2728
withval=$with_altpath; altpath=$withval
2732
# Check whether --with-altmpath was given.
2733
if test "${with_altmpath+set}" = set; then
2734
withval=$with_altmpath; altmpath=$withval
2738
# Check whether --with-altopath was given.
2739
if test "${with_altopath+set}" = set; then
2740
withval=$with_altopath; altopath=$withval
2744
if test -n "$path" ; then
2745
test -z "$mpath" && mpath=$path
2746
test -z "$opath" && opath=$path/oct
2747
test -z "$xpath" && xpath=$path/bin
2748
test -z "$altpath" && altpath=$path-alternatives
2751
if test -n "$altpath" ; then
2752
test -z "$altmpath" && altmpath=$altpath
2753
test -z "$altopath" && altopath=$altpath/oct
2756
#if test -z "$mpath" || test -z "$opath" || test -z "$xpath" || test -z "$altmpath" || test -z "$altopath" || test -z "$ver" ; then
2757
if test -z "$mpath" || test -z "$opath" || test -z "$xpath" || test -z "$ver" ; then
2758
cat > conftest.cc <<EOF
2759
#include <octave/config.h>
2760
#include <octave/version.h>
2761
#include <octave/defaults.h>
2763
#define INFOV "\nINFOV=" OCTAVE_VERSION "\n"
2765
#define INFOH "\nINFOH=" OCTAVE_CANONICAL_HOST_TYPE "\n"
2767
#ifdef OCTAVE_LOCALVERFCNFILEDIR
2768
# define INFOM "\nINFOM=" OCTAVE_LOCALVERFCNFILEDIR "\n"
2770
# define INFOM "\nINFOM=" OCTAVE_LOCALFCNFILEPATH "\n"
2773
#ifdef OCTAVE_LOCALVEROCTFILEDIR
2774
# define INFOO "\nINFOO=" OCTAVE_LOCALVEROCTFILEDIR "\n"
2776
# define INFOO "\nINFOO=" OCTAVE_LOCALOCTFILEPATH "\n"
2779
#ifdef OCTAVE_LOCALVERARCHLIBDIR
2780
# define INFOX "\nINFOX=" OCTAVE_LOCALVERARCHLIBDIR "\n"
2782
# define INFOX "\nINFOX=" OCTAVE_LOCALARCHLIBDIR "\n"
2785
const char *infom = INFOM;
2786
const char *infoo = INFOO;
2787
const char *infox = INFOX;
2788
const char *infoh = INFOH;
2789
const char *infov = INFOV;
2792
$MKOCTFILE conftest.cc || { { echo "$as_me:$LINENO: error: Could not run $MKOCTFILE" >&5
2793
echo "$as_me: error: Could not run $MKOCTFILE" >&2;}
2794
{ (exit 1); exit 1; }; }
2796
eval `strings conftest.o | grep "^INFO.=" | sed -e "s,//.*$,,"`
2799
ver=`echo $INFOV | sed -e "s/\.//" -e "s/\..*$//"`
2800
subver=`echo $INFOV | sed -e "s/^[^.]*[.][^.]*[.]//"`
2801
alt_mbase=`echo $INFOM | sed -e "s,\/[^\/]*$,,"`
2802
alt_obase=`echo $INFOO | sed -e "s,/site.*$,/site,"`
2803
test -z "$mpath" && mpath=$INFOM/octave-forge
2804
test -z "$opath" && opath=$INFOO/octave-forge
2805
test -z "$xpath" && xpath=$INFOX
2806
test -z "$altmpath" && altmpath=$alt_mbase/octave-forge-alternatives/m
2807
test -z "$altopath" && altopath=$alt_obase/octave-forge-alternatives/oct/$INFOH
2812
{ echo "$as_me:$LINENO: result: retrieving compile and link flags from $MKOCTFILE" >&5
2813
echo "${ECHO_T}retrieving compile and link flags from $MKOCTFILE" >&6; }
2814
CC=`$MKOCTFILE -p CC`
2815
CFLAGS=`$MKOCTFILE -p CFLAGS`
2816
CPPFLAGS=`$MKOCTFILE -p CPPFLAGS`
2817
CPICFLAG=`$MKOCTFILE -p CPICFLAG`
2818
LDFLAGS=`$MKOCTFILE -p LDFLAGS`
2819
LIBS=`$MKOCTFILE -p LIBS`
2825
F77=`$MKOCTFILE -p F77`
2826
FFLAGS=`$MKOCTFILE -p FFLAGS`
2827
FPICFLAG=`$MKOCTFILE -p FPICFLAG`
2832
CXX=`$MKOCTFILE -p CXX`
2833
CXXFLAGS=`$MKOCTFILE -p CXXFLAGS`
2834
CXXPICFLAG=`$MKOCTFILE -p CXXPICFLAG`
2845
{ echo "$as_me:$LINENO: checking for F77_FUNC" >&5
2846
echo $ECHO_N "checking for F77_FUNC... $ECHO_C" >&6; }
2847
cat > conftest.cc << EOF
2848
#include <octave/config.h>
2849
int F77_FUNC (hello, HELLO) (const int &n);
2851
ac_try="$MKOCTFILE -c conftest.cc"
2852
if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2855
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856
(exit $ac_status); } ; then
2857
{ echo "$as_me:$LINENO: result: yes" >&5
2858
echo "${ECHO_T}yes" >&6; }
2861
{ echo "$as_me:$LINENO: result: no" >&5
2862
echo "${ECHO_T}no" >&6; }
2863
MKOCTFILE="$MKOCTFILE -DF77_FUNC=F77_FCN"
2872
# Extract the first word of "octave", so it can be a program name with args.
2873
set dummy octave; ac_word=$2
2874
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2875
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2876
if test "${ac_cv_prog_OCTAVE+set}" = set; then
2877
echo $ECHO_N "(cached) $ECHO_C" >&6
2879
if test -n "$OCTAVE"; then
2880
ac_cv_prog_OCTAVE="$OCTAVE" # Let the user override the test.
2882
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2886
test -z "$as_dir" && as_dir=.
2887
for ac_exec_ext in '' $ac_executable_extensions; do
2888
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2889
ac_cv_prog_OCTAVE="octave"
2890
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2899
OCTAVE=$ac_cv_prog_OCTAVE
2900
if test -n "$OCTAVE"; then
2901
{ echo "$as_me:$LINENO: result: $OCTAVE" >&5
2902
echo "${ECHO_T}$OCTAVE" >&6; }
2904
{ echo "$as_me:$LINENO: result: no" >&5
2905
echo "${ECHO_T}no" >&6; }
2909
{ echo "$as_me:$LINENO: checking for OCTAVE_VERSION in Octave" >&5
2910
echo $ECHO_N "checking for OCTAVE_VERSION in Octave... $ECHO_C" >&6; }
2911
OCTAVE_VERSION=`echo "disp(OCTAVE_VERSION)" | $OCTAVE -qf`
2912
{ echo "$as_me:$LINENO: result: $OCTAVE_VERSION" >&5
2913
echo "${ECHO_T}$OCTAVE_VERSION" >&6; }
2917
{ echo "$as_me:$LINENO: checking for octave_config_info('canonical_host_type') in Octave" >&5
2918
echo $ECHO_N "checking for octave_config_info('canonical_host_type') in Octave... $ECHO_C" >&6; }
2919
canonical_host_type=`echo "disp(octave_config_info('canonical_host_type'))" | $OCTAVE -qf`
2920
{ echo "$as_me:$LINENO: result: $canonical_host_type" >&5
2921
echo "${ECHO_T}$canonical_host_type" >&6; }
2925
{ echo "$as_me:$LINENO: checking for octave_config_info('SHLEXT') in Octave" >&5
2926
echo $ECHO_N "checking for octave_config_info('SHLEXT') in Octave... $ECHO_C" >&6; }
2927
SHLEXT=`echo "disp(octave_config_info('SHLEXT'))" | $OCTAVE -qf`
2928
{ echo "$as_me:$LINENO: result: $SHLEXT" >&5
2929
echo "${ECHO_T}$SHLEXT" >&6; }
2933
{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
2934
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
2936
if test "$LN_S" = "ln -s"; then
2937
{ echo "$as_me:$LINENO: result: yes" >&5
2938
echo "${ECHO_T}yes" >&6; }
2940
{ echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2941
echo "${ECHO_T}no, using $LN_S" >&6; }
2945
if test -n "$ac_tool_prefix"; then
2946
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2947
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2948
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2949
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2950
if test "${ac_cv_prog_RANLIB+set}" = set; then
2951
echo $ECHO_N "(cached) $ECHO_C" >&6
2953
if test -n "$RANLIB"; then
2954
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2956
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2960
test -z "$as_dir" && as_dir=.
2961
for ac_exec_ext in '' $ac_executable_extensions; do
2962
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2963
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2964
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2973
RANLIB=$ac_cv_prog_RANLIB
2974
if test -n "$RANLIB"; then
2975
{ echo "$as_me:$LINENO: result: $RANLIB" >&5
2976
echo "${ECHO_T}$RANLIB" >&6; }
2978
{ echo "$as_me:$LINENO: result: no" >&5
2979
echo "${ECHO_T}no" >&6; }
2984
if test -z "$ac_cv_prog_RANLIB"; then
2985
ac_ct_RANLIB=$RANLIB
2986
# Extract the first word of "ranlib", so it can be a program name with args.
2987
set dummy ranlib; ac_word=$2
2988
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2989
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2990
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2991
echo $ECHO_N "(cached) $ECHO_C" >&6
2993
if test -n "$ac_ct_RANLIB"; then
2994
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2996
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3000
test -z "$as_dir" && as_dir=.
3001
for ac_exec_ext in '' $ac_executable_extensions; do
3002
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3003
ac_cv_prog_ac_ct_RANLIB="ranlib"
3004
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3013
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3014
if test -n "$ac_ct_RANLIB"; then
3015
{ echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3016
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3018
{ echo "$as_me:$LINENO: result: no" >&5
3019
echo "${ECHO_T}no" >&6; }
3022
if test "x$ac_ct_RANLIB" = x; then
3025
case $cross_compiling:$ac_tool_warned in
3027
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3028
whose name does not start with the host triplet. If you think this
3029
configuration is useful to you, please write to autoconf@gnu.org." >&5
3030
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3031
whose name does not start with the host triplet. If you think this
3032
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3033
ac_tool_warned=yes ;;
3035
RANLIB=$ac_ct_RANLIB
3038
RANLIB="$ac_cv_prog_RANLIB"
3043
case "$canonical_host_type" in
3050
STRIP=${STRIP-strip}
3051
# Extract the first word of "$STRIP", so it can be a program name with args.
3052
set dummy $STRIP; ac_word=$2
3053
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3054
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3055
if test "${ac_cv_prog_STRIP+set}" = set; then
3056
echo $ECHO_N "(cached) $ECHO_C" >&6
3058
if test -n "$STRIP"; then
3059
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3061
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3065
test -z "$as_dir" && as_dir=.
3066
for ac_exec_ext in '' $ac_executable_extensions; do
3067
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3068
ac_cv_prog_STRIP="$STRIP"
3069
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3076
test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
3079
STRIP=$ac_cv_prog_STRIP
3080
if test -n "$STRIP"; then
3081
{ echo "$as_me:$LINENO: result: $STRIP" >&5
3082
echo "${ECHO_T}$STRIP" >&6; }
3084
{ echo "$as_me:$LINENO: result: no" >&5
3085
echo "${ECHO_T}no" >&6; }
3090
case "$canonical_host_type" in
3091
powerpc-apple-darwin*|*-sgi-*)
3094
*-cygwin-*|*-mingw-*)
3095
MKOCTFILE="$MKOCTFILE -s"
3106
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3107
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
3108
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
3109
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
3110
echo $ECHO_N "(cached) $ECHO_C" >&6
3112
cat >conftest.$ac_ext <<_ACEOF
3115
cat confdefs.h >>conftest.$ac_ext
3116
cat >>conftest.$ac_ext <<_ACEOF
3117
/* end confdefs.h. */
3118
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3119
For example, HP-UX 11i <limits.h> declares gettimeofday. */
3120
#define $ac_func innocuous_$ac_func
3122
/* System header to define __stub macros and hopefully few prototypes,
3123
which can conflict with char $ac_func (); below.
3124
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3125
<limits.h> exists even on freestanding compilers. */
3128
# include <limits.h>
3130
# include <assert.h>
3135
/* Override any GCC internal prototype to avoid an error.
3136
Use char because int might match the return type of a GCC
3137
builtin and then its argument prototype would still apply. */
3142
/* The GNU C library defines this for functions which it implements
3143
to always fail with ENOSYS. Some functions are actually named
3144
something starting with __ and the normal name is an alias. */
3145
#if defined __stub_$ac_func || defined __stub___$ac_func
3157
rm -f conftest.$ac_objext conftest$ac_exeext
3158
if { (ac_try="$ac_link"
3160
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3161
*) ac_try_echo=$ac_try;;
3163
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3164
(eval "$ac_link") 2>conftest.er1
3166
grep -v '^ *+' conftest.er1 >conftest.err
3168
cat conftest.err >&5
3169
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170
(exit $ac_status); } && {
3171
test -z "$ac_c_werror_flag" ||
3172
test ! -s conftest.err
3173
} && test -s conftest$ac_exeext &&
3174
$as_test_x conftest$ac_exeext; then
3175
eval "$as_ac_var=yes"
3177
echo "$as_me: failed program was:" >&5
3178
sed 's/^/| /' conftest.$ac_ext >&5
3180
eval "$as_ac_var=no"
3183
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3184
conftest$ac_exeext conftest.$ac_ext
3186
ac_res=`eval echo '${'$as_ac_var'}'`
3187
{ echo "$as_me:$LINENO: result: $ac_res" >&5
3188
echo "${ECHO_T}$ac_res" >&6; }
3189
if test `eval echo '${'$as_ac_var'}'` = yes; then
3190
cat >>confdefs.h <<_ACEOF
3191
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3203
{ echo "$as_me:$LINENO: checking for socklen_t" >&5
3204
echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
3205
if test "${ac_cv_type_socklen_t+set}" = set; then
3206
echo $ECHO_N "(cached) $ECHO_C" >&6
3209
cat >conftest.$ac_ext <<_ACEOF
3212
cat confdefs.h >>conftest.$ac_ext
3213
cat >>conftest.$ac_ext <<_ACEOF
3214
/* end confdefs.h. */
3215
#include <sys/types.h>
3216
#include <sys/socket.h>
3220
socklen_t len = 42; return 0;
3225
rm -f conftest.$ac_objext
3226
if { (ac_try="$ac_compile"
3228
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3229
*) ac_try_echo=$ac_try;;
3231
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3232
(eval "$ac_compile") 2>conftest.er1
3234
grep -v '^ *+' conftest.er1 >conftest.err
3236
cat conftest.err >&5
3237
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238
(exit $ac_status); } && {
3239
test -z "$ac_c_werror_flag" ||
3240
test ! -s conftest.err
3241
} && test -s conftest.$ac_objext; then
3242
ac_cv_type_socklen_t=yes
3244
echo "$as_me: failed program was:" >&5
3245
sed 's/^/| /' conftest.$ac_ext >&5
3247
ac_cv_type_socklen_t=no
3250
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3253
{ echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
3254
echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
3255
if test $ac_cv_type_socklen_t != yes; then
3256
MISCDEFS="$MISCDEFS -Dsocklen_t=int"
3260
{ echo "$as_me:$LINENO: checking for octave_function(void)" >&5
3261
echo $ECHO_N "checking for octave_function(void)... $ECHO_C" >&6; }
3262
cat > conftest.cc << EOF
3263
#include <octave/config.h>
3264
#include <octave/ov-fcn.h>
3265
class myfun:octave_function {myfun():octave_function(){}};
3267
ac_try="$MKOCTFILE -c conftest.cc"
3268
if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3271
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272
(exit $ac_status); } ; then
3273
{ echo "$as_me:$LINENO: result: yes" >&5
3274
echo "${ECHO_T}yes" >&6; }
3277
{ echo "$as_me:$LINENO: result: no" >&5
3278
echo "${ECHO_T}no" >&6; }
3279
MISCDEFS="$MISCDEFS -DOCTAVE_FUNCTION_VOID_FAILS"
3283
case "$canonical_host_type" in
3290
ac_cpp='$CPP $CPPFLAGS'
3291
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3292
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3293
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3294
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3295
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3296
# On Suns, sometimes $CPP names a directory.
3297
if test -n "$CPP" && test -d "$CPP"; then
3300
if test -z "$CPP"; then
3301
if test "${ac_cv_prog_CPP+set}" = set; then
3302
echo $ECHO_N "(cached) $ECHO_C" >&6
3304
# Double quotes because CPP needs to be expanded
3305
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3308
for ac_c_preproc_warn_flag in '' yes
3310
# Use a header file that comes with gcc, so configuring glibc
3311
# with a fresh cross-compiler works.
3312
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3313
# <limits.h> exists even on freestanding compilers.
3314
# On the NeXT, cc -E runs the code through the compiler's parser,
3315
# not just through cpp. "Syntax error" is here to catch this case.
3316
cat >conftest.$ac_ext <<_ACEOF
3319
cat confdefs.h >>conftest.$ac_ext
3320
cat >>conftest.$ac_ext <<_ACEOF
3321
/* end confdefs.h. */
3323
# include <limits.h>
3325
# include <assert.h>
3329
if { (ac_try="$ac_cpp conftest.$ac_ext"
3331
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3332
*) ac_try_echo=$ac_try;;
3334
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3335
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3337
grep -v '^ *+' conftest.er1 >conftest.err
3339
cat conftest.err >&5
3340
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3341
(exit $ac_status); } >/dev/null && {
3342
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3343
test ! -s conftest.err
3347
echo "$as_me: failed program was:" >&5
3348
sed 's/^/| /' conftest.$ac_ext >&5
3350
# Broken: fails on valid input.
3354
rm -f conftest.err conftest.$ac_ext
3356
# OK, works on sane cases. Now check whether nonexistent headers
3357
# can be detected and how.
3358
cat >conftest.$ac_ext <<_ACEOF
3361
cat confdefs.h >>conftest.$ac_ext
3362
cat >>conftest.$ac_ext <<_ACEOF
3363
/* end confdefs.h. */
3364
#include <ac_nonexistent.h>
3366
if { (ac_try="$ac_cpp conftest.$ac_ext"
3368
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3369
*) ac_try_echo=$ac_try;;
3371
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3372
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3374
grep -v '^ *+' conftest.er1 >conftest.err
3376
cat conftest.err >&5
3377
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378
(exit $ac_status); } >/dev/null && {
3379
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3380
test ! -s conftest.err
3382
# Broken: success on invalid input.
3385
echo "$as_me: failed program was:" >&5
3386
sed 's/^/| /' conftest.$ac_ext >&5
3388
# Passes both tests.
3393
rm -f conftest.err conftest.$ac_ext
3396
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3397
rm -f conftest.err conftest.$ac_ext
3398
if $ac_preproc_ok; then
3410
{ echo "$as_me:$LINENO: result: $CPP" >&5
3411
echo "${ECHO_T}$CPP" >&6; }
3413
for ac_c_preproc_warn_flag in '' yes
3415
# Use a header file that comes with gcc, so configuring glibc
3416
# with a fresh cross-compiler works.
3417
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3418
# <limits.h> exists even on freestanding compilers.
3419
# On the NeXT, cc -E runs the code through the compiler's parser,
3420
# not just through cpp. "Syntax error" is here to catch this case.
3421
cat >conftest.$ac_ext <<_ACEOF
3424
cat confdefs.h >>conftest.$ac_ext
3425
cat >>conftest.$ac_ext <<_ACEOF
3426
/* end confdefs.h. */
3428
# include <limits.h>
3430
# include <assert.h>
3434
if { (ac_try="$ac_cpp conftest.$ac_ext"
3436
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3437
*) ac_try_echo=$ac_try;;
3439
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3440
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3442
grep -v '^ *+' conftest.er1 >conftest.err
3444
cat conftest.err >&5
3445
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446
(exit $ac_status); } >/dev/null && {
3447
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3448
test ! -s conftest.err
3452
echo "$as_me: failed program was:" >&5
3453
sed 's/^/| /' conftest.$ac_ext >&5
3455
# Broken: fails on valid input.
3459
rm -f conftest.err conftest.$ac_ext
3461
# OK, works on sane cases. Now check whether nonexistent headers
3462
# can be detected and how.
3463
cat >conftest.$ac_ext <<_ACEOF
3466
cat confdefs.h >>conftest.$ac_ext
3467
cat >>conftest.$ac_ext <<_ACEOF
3468
/* end confdefs.h. */
3469
#include <ac_nonexistent.h>
3471
if { (ac_try="$ac_cpp conftest.$ac_ext"
3473
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3474
*) ac_try_echo=$ac_try;;
3476
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3477
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3479
grep -v '^ *+' conftest.er1 >conftest.err
3481
cat conftest.err >&5
3482
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483
(exit $ac_status); } >/dev/null && {
3484
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3485
test ! -s conftest.err
3487
# Broken: success on invalid input.
3490
echo "$as_me: failed program was:" >&5
3491
sed 's/^/| /' conftest.$ac_ext >&5
3493
# Passes both tests.
3498
rm -f conftest.err conftest.$ac_ext
3501
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3502
rm -f conftest.err conftest.$ac_ext
3503
if $ac_preproc_ok; then
3506
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3507
See \`config.log' for more details." >&5
3508
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3509
See \`config.log' for more details." >&2;}
3510
{ (exit 1); exit 1; }; }
3514
ac_cpp='$CPP $CPPFLAGS'
3515
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3516
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3517
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3520
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3521
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3522
if test "${ac_cv_path_GREP+set}" = set; then
3523
echo $ECHO_N "(cached) $ECHO_C" >&6
3525
# Extract the first word of "grep ggrep" to use in msg output
3526
if test -z "$GREP"; then
3527
set dummy grep ggrep; ac_prog_name=$2
3528
if test "${ac_cv_path_GREP+set}" = set; then
3529
echo $ECHO_N "(cached) $ECHO_C" >&6
3531
ac_path_GREP_found=false
3532
# Loop through the user's path and test for each of PROGNAME-LIST
3533
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3534
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3537
test -z "$as_dir" && as_dir=.
3538
for ac_prog in grep ggrep; do
3539
for ac_exec_ext in '' $ac_executable_extensions; do
3540
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3541
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3542
# Check for GNU ac_path_GREP and select it if it is found.
3543
# Check for GNU $ac_path_GREP
3544
case `"$ac_path_GREP" --version 2>&1` in
3546
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3549
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3552
cat "conftest.in" "conftest.in" >"conftest.tmp"
3553
mv "conftest.tmp" "conftest.in"
3554
cp "conftest.in" "conftest.nl"
3555
echo 'GREP' >> "conftest.nl"
3556
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3557
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3558
ac_count=`expr $ac_count + 1`
3559
if test $ac_count -gt ${ac_path_GREP_max-0}; then
3560
# Best one so far, save it but keep looking for a better one
3561
ac_cv_path_GREP="$ac_path_GREP"
3562
ac_path_GREP_max=$ac_count
3564
# 10*(2^10) chars as input seems more than enough
3565
test $ac_count -gt 10 && break
3567
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3571
$ac_path_GREP_found && break 3
3581
GREP="$ac_cv_path_GREP"
3582
if test -z "$GREP"; then
3583
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3584
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3585
{ (exit 1); exit 1; }; }
3589
ac_cv_path_GREP=$GREP
3594
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3595
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3596
GREP="$ac_cv_path_GREP"
3599
{ echo "$as_me:$LINENO: checking for egrep" >&5
3600
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3601
if test "${ac_cv_path_EGREP+set}" = set; then
3602
echo $ECHO_N "(cached) $ECHO_C" >&6
3604
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3605
then ac_cv_path_EGREP="$GREP -E"
3607
# Extract the first word of "egrep" to use in msg output
3608
if test -z "$EGREP"; then
3609
set dummy egrep; ac_prog_name=$2
3610
if test "${ac_cv_path_EGREP+set}" = set; then
3611
echo $ECHO_N "(cached) $ECHO_C" >&6
3613
ac_path_EGREP_found=false
3614
# Loop through the user's path and test for each of PROGNAME-LIST
3615
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3616
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3619
test -z "$as_dir" && as_dir=.
3620
for ac_prog in egrep; do
3621
for ac_exec_ext in '' $ac_executable_extensions; do
3622
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3623
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3624
# Check for GNU ac_path_EGREP and select it if it is found.
3625
# Check for GNU $ac_path_EGREP
3626
case `"$ac_path_EGREP" --version 2>&1` in
3628
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3631
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3634
cat "conftest.in" "conftest.in" >"conftest.tmp"
3635
mv "conftest.tmp" "conftest.in"
3636
cp "conftest.in" "conftest.nl"
3637
echo 'EGREP' >> "conftest.nl"
3638
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3639
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3640
ac_count=`expr $ac_count + 1`
3641
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3642
# Best one so far, save it but keep looking for a better one
3643
ac_cv_path_EGREP="$ac_path_EGREP"
3644
ac_path_EGREP_max=$ac_count
3646
# 10*(2^10) chars as input seems more than enough
3647
test $ac_count -gt 10 && break
3649
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3653
$ac_path_EGREP_found && break 3
3663
EGREP="$ac_cv_path_EGREP"
3664
if test -z "$EGREP"; then
3665
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3666
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3667
{ (exit 1); exit 1; }; }
3671
ac_cv_path_EGREP=$EGREP
3677
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3678
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3679
EGREP="$ac_cv_path_EGREP"
3682
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3683
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3684
if test "${ac_cv_header_stdc+set}" = set; then
3685
echo $ECHO_N "(cached) $ECHO_C" >&6
3687
cat >conftest.$ac_ext <<_ACEOF
3690
cat confdefs.h >>conftest.$ac_ext
3691
cat >>conftest.$ac_ext <<_ACEOF
3692
/* end confdefs.h. */
3706
rm -f conftest.$ac_objext
3707
if { (ac_try="$ac_compile"
3709
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3710
*) ac_try_echo=$ac_try;;
3712
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3713
(eval "$ac_compile") 2>conftest.er1
3715
grep -v '^ *+' conftest.er1 >conftest.err
3717
cat conftest.err >&5
3718
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719
(exit $ac_status); } && {
3720
test -z "$ac_c_werror_flag" ||
3721
test ! -s conftest.err
3722
} && test -s conftest.$ac_objext; then
3723
ac_cv_header_stdc=yes
3725
echo "$as_me: failed program was:" >&5
3726
sed 's/^/| /' conftest.$ac_ext >&5
3728
ac_cv_header_stdc=no
3731
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3733
if test $ac_cv_header_stdc = yes; then
3734
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3735
cat >conftest.$ac_ext <<_ACEOF
3738
cat confdefs.h >>conftest.$ac_ext
3739
cat >>conftest.$ac_ext <<_ACEOF
3740
/* end confdefs.h. */
3744
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3745
$EGREP "memchr" >/dev/null 2>&1; then
3748
ac_cv_header_stdc=no
3754
if test $ac_cv_header_stdc = yes; then
3755
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3756
cat >conftest.$ac_ext <<_ACEOF
3759
cat confdefs.h >>conftest.$ac_ext
3760
cat >>conftest.$ac_ext <<_ACEOF
3761
/* end confdefs.h. */
3765
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3766
$EGREP "free" >/dev/null 2>&1; then
3769
ac_cv_header_stdc=no
3775
if test $ac_cv_header_stdc = yes; then
3776
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3777
if test "$cross_compiling" = yes; then
3780
cat >conftest.$ac_ext <<_ACEOF
3783
cat confdefs.h >>conftest.$ac_ext
3784
cat >>conftest.$ac_ext <<_ACEOF
3785
/* end confdefs.h. */
3788
#if ((' ' & 0x0FF) == 0x020)
3789
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3790
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3792
# define ISLOWER(c) \
3793
(('a' <= (c) && (c) <= 'i') \
3794
|| ('j' <= (c) && (c) <= 'r') \
3795
|| ('s' <= (c) && (c) <= 'z'))
3796
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3799
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3804
for (i = 0; i < 256; i++)
3805
if (XOR (islower (i), ISLOWER (i))
3806
|| toupper (i) != TOUPPER (i))
3811
rm -f conftest$ac_exeext
3812
if { (ac_try="$ac_link"
3814
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3815
*) ac_try_echo=$ac_try;;
3817
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3818
(eval "$ac_link") 2>&5
3820
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3822
{ (case "(($ac_try" in
3823
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3824
*) ac_try_echo=$ac_try;;
3826
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3827
(eval "$ac_try") 2>&5
3829
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3830
(exit $ac_status); }; }; then
3833
echo "$as_me: program exited with status $ac_status" >&5
3834
echo "$as_me: failed program was:" >&5
3835
sed 's/^/| /' conftest.$ac_ext >&5
3838
ac_cv_header_stdc=no
3840
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3846
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3847
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3848
if test $ac_cv_header_stdc = yes; then
3850
cat >>confdefs.h <<\_ACEOF
3851
#define STDC_HEADERS 1
3856
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3866
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3867
inttypes.h stdint.h unistd.h
3869
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3870
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
3871
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3872
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3873
echo $ECHO_N "(cached) $ECHO_C" >&6
3875
cat >conftest.$ac_ext <<_ACEOF
3878
cat confdefs.h >>conftest.$ac_ext
3879
cat >>conftest.$ac_ext <<_ACEOF
3880
/* end confdefs.h. */
3881
$ac_includes_default
3883
#include <$ac_header>
3885
rm -f conftest.$ac_objext
3886
if { (ac_try="$ac_compile"
3888
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3889
*) ac_try_echo=$ac_try;;
3891
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3892
(eval "$ac_compile") 2>conftest.er1
3894
grep -v '^ *+' conftest.er1 >conftest.err
3896
cat conftest.err >&5
3897
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3898
(exit $ac_status); } && {
3899
test -z "$ac_c_werror_flag" ||
3900
test ! -s conftest.err
3901
} && test -s conftest.$ac_objext; then
3902
eval "$as_ac_Header=yes"
3904
echo "$as_me: failed program was:" >&5
3905
sed 's/^/| /' conftest.$ac_ext >&5
3907
eval "$as_ac_Header=no"
3910
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3912
ac_res=`eval echo '${'$as_ac_Header'}'`
3913
{ echo "$as_me:$LINENO: result: $ac_res" >&5
3914
echo "${ECHO_T}$ac_res" >&6; }
3915
if test `eval echo '${'$as_ac_Header'}'` = yes; then
3916
cat >>confdefs.h <<_ACEOF
3917
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3925
if test "${ac_cv_header_term_h+set}" = set; then
3926
{ echo "$as_me:$LINENO: checking for term.h" >&5
3927
echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
3928
if test "${ac_cv_header_term_h+set}" = set; then
3929
echo $ECHO_N "(cached) $ECHO_C" >&6
3931
{ echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
3932
echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
3934
# Is the header compilable?
3935
{ echo "$as_me:$LINENO: checking term.h usability" >&5
3936
echo $ECHO_N "checking term.h usability... $ECHO_C" >&6; }
3937
cat >conftest.$ac_ext <<_ACEOF
3940
cat confdefs.h >>conftest.$ac_ext
3941
cat >>conftest.$ac_ext <<_ACEOF
3942
/* end confdefs.h. */
3943
$ac_includes_default
3946
rm -f conftest.$ac_objext
3947
if { (ac_try="$ac_compile"
3949
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3950
*) ac_try_echo=$ac_try;;
3952
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3953
(eval "$ac_compile") 2>conftest.er1
3955
grep -v '^ *+' conftest.er1 >conftest.err
3957
cat conftest.err >&5
3958
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3959
(exit $ac_status); } && {
3960
test -z "$ac_c_werror_flag" ||
3961
test ! -s conftest.err
3962
} && test -s conftest.$ac_objext; then
3963
ac_header_compiler=yes
3965
echo "$as_me: failed program was:" >&5
3966
sed 's/^/| /' conftest.$ac_ext >&5
3968
ac_header_compiler=no
3971
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3972
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3973
echo "${ECHO_T}$ac_header_compiler" >&6; }
3975
# Is the header present?
3976
{ echo "$as_me:$LINENO: checking term.h presence" >&5
3977
echo $ECHO_N "checking term.h presence... $ECHO_C" >&6; }
3978
cat >conftest.$ac_ext <<_ACEOF
3981
cat confdefs.h >>conftest.$ac_ext
3982
cat >>conftest.$ac_ext <<_ACEOF
3983
/* end confdefs.h. */
3986
if { (ac_try="$ac_cpp conftest.$ac_ext"
3988
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3989
*) ac_try_echo=$ac_try;;
3991
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3992
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3994
grep -v '^ *+' conftest.er1 >conftest.err
3996
cat conftest.err >&5
3997
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3998
(exit $ac_status); } >/dev/null && {
3999
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4000
test ! -s conftest.err
4002
ac_header_preproc=yes
4004
echo "$as_me: failed program was:" >&5
4005
sed 's/^/| /' conftest.$ac_ext >&5
4007
ac_header_preproc=no
4010
rm -f conftest.err conftest.$ac_ext
4011
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4012
echo "${ECHO_T}$ac_header_preproc" >&6; }
4014
# So? What about this header?
4015
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4017
{ echo "$as_me:$LINENO: WARNING: term.h: accepted by the compiler, rejected by the preprocessor!" >&5
4018
echo "$as_me: WARNING: term.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4019
{ echo "$as_me:$LINENO: WARNING: term.h: proceeding with the compiler's result" >&5
4020
echo "$as_me: WARNING: term.h: proceeding with the compiler's result" >&2;}
4021
ac_header_preproc=yes
4024
{ echo "$as_me:$LINENO: WARNING: term.h: present but cannot be compiled" >&5
4025
echo "$as_me: WARNING: term.h: present but cannot be compiled" >&2;}
4026
{ echo "$as_me:$LINENO: WARNING: term.h: check for missing prerequisite headers?" >&5
4027
echo "$as_me: WARNING: term.h: check for missing prerequisite headers?" >&2;}
4028
{ echo "$as_me:$LINENO: WARNING: term.h: see the Autoconf documentation" >&5
4029
echo "$as_me: WARNING: term.h: see the Autoconf documentation" >&2;}
4030
{ echo "$as_me:$LINENO: WARNING: term.h: section \"Present But Cannot Be Compiled\"" >&5
4031
echo "$as_me: WARNING: term.h: section \"Present But Cannot Be Compiled\"" >&2;}
4032
{ echo "$as_me:$LINENO: WARNING: term.h: proceeding with the preprocessor's result" >&5
4033
echo "$as_me: WARNING: term.h: proceeding with the preprocessor's result" >&2;}
4034
{ echo "$as_me:$LINENO: WARNING: term.h: in the future, the compiler will take precedence" >&5
4035
echo "$as_me: WARNING: term.h: in the future, the compiler will take precedence" >&2;}
4039
{ echo "$as_me:$LINENO: checking for term.h" >&5
4040
echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
4041
if test "${ac_cv_header_term_h+set}" = set; then
4042
echo $ECHO_N "(cached) $ECHO_C" >&6
4044
ac_cv_header_term_h=$ac_header_preproc
4046
{ echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
4047
echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
4050
if test $ac_cv_header_term_h = yes; then
4057
if test "${ac_cv_header_termcap_h+set}" = set; then
4058
{ echo "$as_me:$LINENO: checking for termcap.h" >&5
4059
echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
4060
if test "${ac_cv_header_termcap_h+set}" = set; then
4061
echo $ECHO_N "(cached) $ECHO_C" >&6
4063
{ echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
4064
echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
4066
# Is the header compilable?
4067
{ echo "$as_me:$LINENO: checking termcap.h usability" >&5
4068
echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6; }
4069
cat >conftest.$ac_ext <<_ACEOF
4072
cat confdefs.h >>conftest.$ac_ext
4073
cat >>conftest.$ac_ext <<_ACEOF
4074
/* end confdefs.h. */
4075
$ac_includes_default
4076
#include <termcap.h>
4078
rm -f conftest.$ac_objext
4079
if { (ac_try="$ac_compile"
4081
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4082
*) ac_try_echo=$ac_try;;
4084
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4085
(eval "$ac_compile") 2>conftest.er1
4087
grep -v '^ *+' conftest.er1 >conftest.err
4089
cat conftest.err >&5
4090
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091
(exit $ac_status); } && {
4092
test -z "$ac_c_werror_flag" ||
4093
test ! -s conftest.err
4094
} && test -s conftest.$ac_objext; then
4095
ac_header_compiler=yes
4097
echo "$as_me: failed program was:" >&5
4098
sed 's/^/| /' conftest.$ac_ext >&5
4100
ac_header_compiler=no
4103
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4104
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4105
echo "${ECHO_T}$ac_header_compiler" >&6; }
4107
# Is the header present?
4108
{ echo "$as_me:$LINENO: checking termcap.h presence" >&5
4109
echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6; }
4110
cat >conftest.$ac_ext <<_ACEOF
4113
cat confdefs.h >>conftest.$ac_ext
4114
cat >>conftest.$ac_ext <<_ACEOF
4115
/* end confdefs.h. */
4116
#include <termcap.h>
4118
if { (ac_try="$ac_cpp conftest.$ac_ext"
4120
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4121
*) ac_try_echo=$ac_try;;
4123
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4124
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4126
grep -v '^ *+' conftest.er1 >conftest.err
4128
cat conftest.err >&5
4129
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4130
(exit $ac_status); } >/dev/null && {
4131
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4132
test ! -s conftest.err
4134
ac_header_preproc=yes
4136
echo "$as_me: failed program was:" >&5
4137
sed 's/^/| /' conftest.$ac_ext >&5
4139
ac_header_preproc=no
4142
rm -f conftest.err conftest.$ac_ext
4143
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4144
echo "${ECHO_T}$ac_header_preproc" >&6; }
4146
# So? What about this header?
4147
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4149
{ echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
4150
echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4151
{ echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
4152
echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
4153
ac_header_preproc=yes
4156
{ echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
4157
echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
4158
{ echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
4159
echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
4160
{ echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
4161
echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
4162
{ echo "$as_me:$LINENO: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&5
4163
echo "$as_me: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&2;}
4164
{ echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
4165
echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
4166
{ echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
4167
echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
4171
{ echo "$as_me:$LINENO: checking for termcap.h" >&5
4172
echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
4173
if test "${ac_cv_header_termcap_h+set}" = set; then
4174
echo $ECHO_N "(cached) $ECHO_C" >&6
4176
ac_cv_header_termcap_h=$ac_header_preproc
4178
{ echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
4179
echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
4182
if test $ac_cv_header_termcap_h = yes; then
4192
if test $have_termcap = yes; then
4193
MISCDEFS="$MISCDEFS -DUSE_TERM -DHAVE_TERMCAP_H"
4195
{ echo "$as_me:$LINENO: checking for tgetnum in -ltermcap" >&5
4196
echo $ECHO_N "checking for tgetnum in -ltermcap... $ECHO_C" >&6; }
4197
if test "${ac_cv_lib_termcap_tgetnum+set}" = set; then
4198
echo $ECHO_N "(cached) $ECHO_C" >&6
4200
ac_check_lib_save_LIBS=$LIBS
4201
LIBS="-ltermcap $LIBS"
4202
cat >conftest.$ac_ext <<_ACEOF
4205
cat confdefs.h >>conftest.$ac_ext
4206
cat >>conftest.$ac_ext <<_ACEOF
4207
/* end confdefs.h. */
4209
/* Override any GCC internal prototype to avoid an error.
4210
Use char because int might match the return type of a GCC
4211
builtin and then its argument prototype would still apply. */
4224
rm -f conftest.$ac_objext conftest$ac_exeext
4225
if { (ac_try="$ac_link"
4227
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4228
*) ac_try_echo=$ac_try;;
4230
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4231
(eval "$ac_link") 2>conftest.er1
4233
grep -v '^ *+' conftest.er1 >conftest.err
4235
cat conftest.err >&5
4236
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237
(exit $ac_status); } && {
4238
test -z "$ac_c_werror_flag" ||
4239
test ! -s conftest.err
4240
} && test -s conftest$ac_exeext &&
4241
$as_test_x conftest$ac_exeext; then
4242
ac_cv_lib_termcap_tgetnum=yes
4244
echo "$as_me: failed program was:" >&5
4245
sed 's/^/| /' conftest.$ac_ext >&5
4247
ac_cv_lib_termcap_tgetnum=no
4250
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4251
conftest$ac_exeext conftest.$ac_ext
4252
LIBS=$ac_check_lib_save_LIBS
4254
{ echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetnum" >&5
4255
echo "${ECHO_T}$ac_cv_lib_termcap_tgetnum" >&6; }
4256
if test $ac_cv_lib_termcap_tgetnum = yes; then
4257
HAVE_LIB_TERMCAP=yes
4263
elif test $have_term = yes; then
4264
MISCDEFS="$MISCDEFS -DUSE_TERM -DHAVE_TERM_H"
4267
{ echo "$as_me:$LINENO: checking for tgetnum in -ltermcap" >&5
4268
echo $ECHO_N "checking for tgetnum in -ltermcap... $ECHO_C" >&6; }
4269
if test "${ac_cv_lib_termcap_tgetnum+set}" = set; then
4270
echo $ECHO_N "(cached) $ECHO_C" >&6
4272
ac_check_lib_save_LIBS=$LIBS
4273
LIBS="-ltermcap $LIBS"
4274
cat >conftest.$ac_ext <<_ACEOF
4277
cat confdefs.h >>conftest.$ac_ext
4278
cat >>conftest.$ac_ext <<_ACEOF
4279
/* end confdefs.h. */
4281
/* Override any GCC internal prototype to avoid an error.
4282
Use char because int might match the return type of a GCC
4283
builtin and then its argument prototype would still apply. */
4296
rm -f conftest.$ac_objext conftest$ac_exeext
4297
if { (ac_try="$ac_link"
4299
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4300
*) ac_try_echo=$ac_try;;
4302
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4303
(eval "$ac_link") 2>conftest.er1
4305
grep -v '^ *+' conftest.er1 >conftest.err
4307
cat conftest.err >&5
4308
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4309
(exit $ac_status); } && {
4310
test -z "$ac_c_werror_flag" ||
4311
test ! -s conftest.err
4312
} && test -s conftest$ac_exeext &&
4313
$as_test_x conftest$ac_exeext; then
4314
ac_cv_lib_termcap_tgetnum=yes
4316
echo "$as_me: failed program was:" >&5
4317
sed 's/^/| /' conftest.$ac_ext >&5
4319
ac_cv_lib_termcap_tgetnum=no
4322
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4323
conftest$ac_exeext conftest.$ac_ext
4324
LIBS=$ac_check_lib_save_LIBS
4326
{ echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetnum" >&5
4327
echo "${ECHO_T}$ac_cv_lib_termcap_tgetnum" >&6; }
4328
if test $ac_cv_lib_termcap_tgetnum = yes; then
4329
HAVE_LIB_TERMCAP=yes
4338
CONFIGURE_OUTPUTS="Makeconf"
4340
octave commands will install into the following directories:
4346
oct-files: $altopath
4348
shell commands will install into the following directories:
4352
headers: $includedir
4354
octave-forge is configured with
4355
octave: $OCTAVE (version $OCTAVE_VERSION)
4356
mkoctfile: $MKOCTFILE for Octave $subver
4357
have term.h or termcap.h: $TERMSTATUS"
4358
ac_config_files="$ac_config_files $CONFIGURE_OUTPUTS"
4362
test "x$prefix" = xNONE && prefix=$ac_default_prefix
4363
# Let make expand exec_prefix.
4364
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4366
# Transform confdefs.h into DEFS.
4367
# Protect against shell expansion while executing Makefile rules.
4368
# Protect against Makefile macro expansion.
4370
# If the first sed substitution is executed (which looks for macros that
4371
# take arguments), then branch to the quote section. Otherwise,
4372
# look for a macro that doesn't take arguments.
4376
s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
4378
s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
4382
s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
4395
DEFS=`sed -n "$ac_script" confdefs.h`
4400
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4401
# 1. Remove the extension, and $U if already installed.
4402
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4403
ac_i=`echo "$ac_i" | sed "$ac_script"`
4404
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4405
# will be set to the directory where LIBOBJS objects are built.
4406
ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4407
ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
4411
LTLIBOBJS=$ac_ltlibobjs
4415
: ${CONFIG_STATUS=./config.status}
4416
ac_clean_files_save=$ac_clean_files
4417
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4418
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4419
echo "$as_me: creating $CONFIG_STATUS" >&6;}
4420
cat >$CONFIG_STATUS <<_ACEOF
4422
# Generated by $as_me.
4423
# Run this file to recreate the current configuration.
4424
# Compiler output produced by configure, useful for debugging
4425
# configure, is in config.log if it exists.
4430
SHELL=\${CONFIG_SHELL-$SHELL}
4433
cat >>$CONFIG_STATUS <<\_ACEOF
4434
## --------------------- ##
4435
## M4sh Initialization. ##
4436
## --------------------- ##
4438
# Be more Bourne compatible
4439
DUALCASE=1; export DUALCASE # for MKS sh
4440
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4443
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4444
# is contrary to our usage. Disable this feature.
4445
alias -g '${1+"$@"}'='"$@"'
4446
setopt NO_GLOB_SUBST
4448
case `(set -o) 2>/dev/null` in
4449
*posix*) set -o posix ;;
4458
# Avoid depending upon Character Ranges.
4459
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4460
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4461
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4462
as_cr_digits='0123456789'
4463
as_cr_alnum=$as_cr_Letters$as_cr_digits
4465
# The user is always right.
4466
if test "${PATH_SEPARATOR+set}" != set; then
4467
echo "#! /bin/sh" >conf$$.sh
4468
echo "exit 0" >>conf$$.sh
4470
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4478
# Support unset when possible.
4479
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4487
# We need space, tab and new line, in precisely that order. Quoting is
4488
# there to prevent editors from complaining about space-tab.
4489
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
4490
# splitting by setting IFS to empty value.)
4495
# Find who we are. Look in the path if we contain no directory separator.
4497
*[\\/]* ) as_myself=$0 ;;
4498
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4502
test -z "$as_dir" && as_dir=.
4503
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4509
# We did not find ourselves, most probably we were run as `sh COMMAND'
4510
# in which case we are not to be found in the path.
4511
if test "x$as_myself" = x; then
4514
if test ! -f "$as_myself"; then
4515
echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4516
{ (exit 1); exit 1; }
4519
# Work around bugs in pre-3.0 UWIN ksh.
4520
for as_var in ENV MAIL MAILPATH
4521
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
4529
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4530
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4531
LC_TELEPHONE LC_TIME
4533
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
4534
eval $as_var=C; export $as_var
4536
($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
4540
# Required to use basename.
4541
if expr a : '\(a\)' >/dev/null 2>&1 &&
4542
test "X`expr 00001 : '.*\(...\)'`" = X001; then
4548
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4549
as_basename=basename
4555
# Name of the executable.
4556
as_me=`$as_basename -- "$0" ||
4557
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4558
X"$0" : 'X\(//\)$' \| \
4559
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4561
sed '/^.*\/\([^/][^/]*\)\/*$/{
4582
test "x$as_lineno_1" != "x$as_lineno_2" &&
4583
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
4585
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4586
# uniformly replaced by the line number. The first 'sed' inserts a
4587
# line-number line after each line using $LINENO; the second 'sed'
4588
# does the real work. The second script uses 'N' to pair each
4589
# line-number line with the line containing $LINENO, and appends
4590
# trailing '-' during substitution so that $LINENO is not a special
4592
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4593
# scripts with optimization help from Paolo Bonzini. Blame Lee
4594
# E. McMahon (1931-1989) for sed's syntax. :-)
4606
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
4610
chmod +x "$as_me.lineno" ||
4611
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
4612
{ (exit 1); exit 1; }; }
4614
# Don't try to exec as it changes $[0], causing all sort of problems
4615
# (the dirname of $[0] is not the place where we might find the
4616
# original and so on. Autoconf is especially sensitive to this).
4618
# Exit status is that of the last command.
4623
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4629
ECHO_C= ECHO_N= ECHO_T=
4632
case `echo 'x\c'` in
4633
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
4640
if expr a : '\(a\)' >/dev/null 2>&1 &&
4641
test "X`expr 00001 : '.*\(...\)'`" = X001; then
4647
rm -f conf$$ conf$$.exe conf$$.file
4648
if test -d conf$$.dir; then
4649
rm -f conf$$.dir/conf$$.file
4655
if ln -s conf$$.file conf$$ 2>/dev/null; then
4657
# ... but there are two gotchas:
4658
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4659
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4660
# In both cases, we have to default to `cp -p'.
4661
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4663
elif ln conf$$.file conf$$ 2>/dev/null; then
4668
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
4669
rmdir conf$$.dir 2>/dev/null
4671
if mkdir -p . 2>/dev/null; then
4674
test -d ./-p && rmdir ./-p
4678
if test -x / >/dev/null 2>&1; then
4681
if ls -dL / >/dev/null 2>&1; then
4688
if test -d "$1"; then
4694
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
4695
???[sx]*):;;*)false;;esac;fi
4699
as_executable_p=$as_test_x
4701
# Sed expression to map a string onto a valid CPP name.
4702
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4704
# Sed expression to map a string onto a valid variable name.
4705
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4710
# Save the log message, to keep $[0] and so on meaningful, and to
4711
# report actual input values of CONFIG_FILES etc. instead of their
4712
# values after options handling.
4714
This file was extended by $as_me, which was
4715
generated by GNU Autoconf 2.61. Invocation command line was
4717
CONFIG_FILES = $CONFIG_FILES
4718
CONFIG_HEADERS = $CONFIG_HEADERS
4719
CONFIG_LINKS = $CONFIG_LINKS
4720
CONFIG_COMMANDS = $CONFIG_COMMANDS
4723
on `(hostname || uname -n) 2>/dev/null | sed 1q`
4728
cat >>$CONFIG_STATUS <<_ACEOF
4729
# Files that config.status was made for.
4730
config_files="$ac_config_files"
4734
cat >>$CONFIG_STATUS <<\_ACEOF
4736
\`$as_me' instantiates files from templates according to the
4737
current configuration.
4739
Usage: $0 [OPTIONS] [FILE]...
4741
-h, --help print this help, then exit
4742
-V, --version print version number and configuration settings, then exit
4743
-q, --quiet do not print progress messages
4744
-d, --debug don't remove temporary files
4745
--recheck update $as_me by reconfiguring in the same conditions
4746
--file=FILE[:TEMPLATE]
4747
instantiate the configuration file FILE
4749
Configuration files:
4752
Report bugs to <bug-autoconf@gnu.org>."
4755
cat >>$CONFIG_STATUS <<_ACEOF
4758
configured by $0, generated by GNU Autoconf 2.61,
4759
with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
4761
Copyright (C) 2006 Free Software Foundation, Inc.
4762
This config.status script is free software; the Free Software Foundation
4763
gives unlimited permission to copy, distribute and modify it."
4769
cat >>$CONFIG_STATUS <<\_ACEOF
4770
# If no file are specified by the user, then we need to provide default
4771
# value. By we need to know if files were specified by the user.
4777
ac_option=`expr "X$1" : 'X\([^=]*\)='`
4778
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
4789
# Handling of the options.
4790
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4792
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
4793
echo "$ac_cs_version"; exit ;;
4794
--debug | --debu | --deb | --de | --d | -d )
4796
--file | --fil | --fi | --f )
4798
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
4799
ac_need_defaults=false;;
4800
--he | --h | --help | --hel | -h )
4801
echo "$ac_cs_usage"; exit ;;
4802
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
4803
| -silent | --silent | --silen | --sile | --sil | --si | --s)
4807
-*) { echo "$as_me: error: unrecognized option: $1
4808
Try \`$0 --help' for more information." >&2
4809
{ (exit 1); exit 1; }; } ;;
4811
*) ac_config_targets="$ac_config_targets $1"
4812
ac_need_defaults=false ;;
4818
ac_configure_extra_args=
4820
if $ac_cs_silent; then
4822
ac_configure_extra_args="$ac_configure_extra_args --silent"
4826
cat >>$CONFIG_STATUS <<_ACEOF
4827
if \$ac_cs_recheck; then
4828
echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
4831
exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4835
cat >>$CONFIG_STATUS <<\_ACEOF
4839
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4840
## Running $as_me. ##
4846
cat >>$CONFIG_STATUS <<_ACEOF
4849
cat >>$CONFIG_STATUS <<\_ACEOF
4851
# Handling of arguments.
4852
for ac_config_target in $ac_config_targets
4854
case $ac_config_target in
4855
"$CONFIGURE_OUTPUTS") CONFIG_FILES="$CONFIG_FILES $CONFIGURE_OUTPUTS" ;;
4857
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4858
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4859
{ (exit 1); exit 1; }; };;
4864
# If the user did not use the arguments to specify the items to instantiate,
4865
# then the envvar interface is used. Set only those that are not.
4866
# We use the long form for the default assignment because of an extremely
4867
# bizarre bug on SunOS 4.1.3.
4868
if $ac_need_defaults; then
4869
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4872
# Have a temporary directory for convenience. Make it in the build tree
4873
# simply because there is no reason against having it here, and in addition,
4874
# creating and moving files from /tmp can sometimes cause problems.
4875
# Hook for its removal unless debugging.
4876
# Note that there is a small window in which the directory will not be cleaned:
4877
# after its creation but before its name has been assigned to `$tmp'.
4881
trap 'exit_status=$?
4882
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
4884
trap '{ (exit 1); exit 1; }' 1 2 13 15
4886
# Create a (secure) tmp directory for tmp files.
4889
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
4890
test -n "$tmp" && test -d "$tmp"
4893
tmp=./conf$$-$RANDOM
4894
(umask 077 && mkdir "$tmp")
4897
echo "$me: cannot create a temporary directory in ." >&2
4898
{ (exit 1); exit 1; }
4902
# Set up the sed scripts for CONFIG_FILES section.
4905
# No need to generate the scripts if there are no CONFIG_FILES.
4906
# This happens for instance when ./config.status config.h
4907
if test -n "$CONFIG_FILES"; then
4914
for ac_last_try in false false false false false :; do
4915
cat >conf$$subs.sed <<_ACEOF
4916
SHELL!$SHELL$ac_delim
4917
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
4918
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
4919
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
4920
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
4921
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
4922
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
4923
exec_prefix!$exec_prefix$ac_delim
4924
prefix!$prefix$ac_delim
4925
program_transform_name!$program_transform_name$ac_delim
4926
bindir!$bindir$ac_delim
4927
sbindir!$sbindir$ac_delim
4928
libexecdir!$libexecdir$ac_delim
4929
datarootdir!$datarootdir$ac_delim
4930
datadir!$datadir$ac_delim
4931
sysconfdir!$sysconfdir$ac_delim
4932
sharedstatedir!$sharedstatedir$ac_delim
4933
localstatedir!$localstatedir$ac_delim
4934
includedir!$includedir$ac_delim
4935
oldincludedir!$oldincludedir$ac_delim
4936
docdir!$docdir$ac_delim
4937
infodir!$infodir$ac_delim
4938
htmldir!$htmldir$ac_delim
4939
dvidir!$dvidir$ac_delim
4940
pdfdir!$pdfdir$ac_delim
4941
psdir!$psdir$ac_delim
4942
libdir!$libdir$ac_delim
4943
localedir!$localedir$ac_delim
4944
mandir!$mandir$ac_delim
4946
ECHO_C!$ECHO_C$ac_delim
4947
ECHO_N!$ECHO_N$ac_delim
4948
ECHO_T!$ECHO_T$ac_delim
4950
build_alias!$build_alias$ac_delim
4951
host_alias!$host_alias$ac_delim
4952
target_alias!$target_alias$ac_delim
4953
PACKAGE!$PACKAGE$ac_delim
4954
VERSION!$VERSION$ac_delim
4955
TOPDIR!$TOPDIR$ac_delim
4957
CFLAGS!$CFLAGS$ac_delim
4958
LDFLAGS!$LDFLAGS$ac_delim
4959
CPPFLAGS!$CPPFLAGS$ac_delim
4960
ac_ct_CC!$ac_ct_CC$ac_delim
4961
EXEEXT!$EXEEXT$ac_delim
4962
OBJEXT!$OBJEXT$ac_delim
4963
MKOCTFILE!$MKOCTFILE$ac_delim
4965
subver!$subver$ac_delim
4966
mpath!$mpath$ac_delim
4967
opath!$opath$ac_delim
4968
xpath!$xpath$ac_delim
4969
altpath!$altpath$ac_delim
4970
altmpath!$altmpath$ac_delim
4971
altopath!$altopath$ac_delim
4972
CPICFLAG!$CPICFLAG$ac_delim
4974
FFLAGS!$FFLAGS$ac_delim
4975
FPICFLAG!$FPICFLAG$ac_delim
4977
CXXFLAGS!$CXXFLAGS$ac_delim
4978
CXXPICFLAG!$CXXPICFLAG$ac_delim
4979
OCTAVE!$OCTAVE$ac_delim
4980
OCTAVE_VERSION!$OCTAVE_VERSION$ac_delim
4981
canonical_host_type!$canonical_host_type$ac_delim
4982
SHLEXT!$SHLEXT$ac_delim
4984
RANLIB!$RANLIB$ac_delim
4985
COPY_FLAGS!$COPY_FLAGS$ac_delim
4986
STRIP!$STRIP$ac_delim
4987
MISCDEFS!$MISCDEFS$ac_delim
4988
HAVE_LIB_TERMCAP!$HAVE_LIB_TERMCAP$ac_delim
4989
have_fork!$have_fork$ac_delim
4992
EGREP!$EGREP$ac_delim
4993
LIBOBJS!$LIBOBJS$ac_delim
4994
LTLIBOBJS!$LTLIBOBJS$ac_delim
4997
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 79; then
4999
elif $ac_last_try; then
5000
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
5001
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
5002
{ (exit 1); exit 1; }; }
5004
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5008
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
5009
if test -n "$ac_eof"; then
5010
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
5011
ac_eof=`expr $ac_eof + 1`
5014
cat >>$CONFIG_STATUS <<_ACEOF
5015
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
5016
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
5019
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
5020
s/^/s,@/; s/!/@,|#_!!_#|/
5023
s/'"$ac_delim"'$/,g/; t
5025
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
5026
' >>$CONFIG_STATUS <conf$$subs.sed
5027
rm -f conf$$subs.sed
5028
cat >>$CONFIG_STATUS <<_ACEOF
5035
# VPATH may cause trouble with some makes, so we remove $(srcdir),
5036
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5037
# trailing colons and then remove the whole line if VPATH becomes empty
5038
# (actually we leave an empty line to preserve line numbers).
5039
if test "x$srcdir" = x.; then
5040
ac_vpsub='/^[ ]*VPATH[ ]*=/{
5044
s/^\([^=]*=[ ]*\):*/\1/
5050
cat >>$CONFIG_STATUS <<\_ACEOF
5051
fi # test -n "$CONFIG_FILES"
5054
for ac_tag in :F $CONFIG_FILES
5057
:[FHLC]) ac_mode=$ac_tag; continue;;
5059
case $ac_mode$ac_tag in
5061
:L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
5062
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
5063
{ (exit 1); exit 1; }; };;
5064
:[FH]-) ac_tag=-:-;;
5065
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5082
-) ac_f="$tmp/stdin";;
5083
*) # Look for the file first in the build tree, then in the source tree
5084
# (if the path is not absolute). The absolute path cannot be DOS-style,
5085
# because $ac_f cannot contain `:'.
5089
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5091
{ { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
5092
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
5093
{ (exit 1); exit 1; }; };;
5095
ac_file_inputs="$ac_file_inputs $ac_f"
5098
# Let's still pretend it is `configure' which instantiates (i.e., don't
5099
# use $as_me), people would be surprised to read:
5100
# /* config.h. Generated by config.status. */
5101
configure_input="Generated from "`IFS=:
5102
echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
5103
if test x"$ac_file" != x-; then
5104
configure_input="$ac_file. $configure_input"
5105
{ echo "$as_me:$LINENO: creating $ac_file" >&5
5106
echo "$as_me: creating $ac_file" >&6;}
5110
*:-:* | *:-) cat >"$tmp/stdin";;
5115
ac_dir=`$as_dirname -- "$ac_file" ||
5116
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5117
X"$ac_file" : 'X\(//\)[^/]' \| \
5118
X"$ac_file" : 'X\(//\)$' \| \
5119
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5121
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5140
-*) as_dir=./$as_dir;;
5142
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
5146
*\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
5147
*) as_qdir=$as_dir;;
5149
as_dirs="'$as_qdir' $as_dirs"
5150
as_dir=`$as_dirname -- "$as_dir" ||
5151
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5152
X"$as_dir" : 'X\(//\)[^/]' \| \
5153
X"$as_dir" : 'X\(//\)$' \| \
5154
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5156
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5173
test -d "$as_dir" && break
5175
test -z "$as_dirs" || eval "mkdir $as_dirs"
5176
} || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
5177
echo "$as_me: error: cannot create directory $as_dir" >&2;}
5178
{ (exit 1); exit 1; }; }; }
5182
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5184
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5185
# A ".." for each directory in $ac_dir_suffix.
5186
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
5187
case $ac_top_builddir_sub in
5188
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5189
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5192
ac_abs_top_builddir=$ac_pwd
5193
ac_abs_builddir=$ac_pwd$ac_dir_suffix
5194
# for backward compatibility:
5195
ac_top_builddir=$ac_top_build_prefix
5198
.) # We are building in place.
5200
ac_top_srcdir=$ac_top_builddir_sub
5201
ac_abs_top_srcdir=$ac_pwd ;;
5202
[\\/]* | ?:[\\/]* ) # Absolute name.
5203
ac_srcdir=$srcdir$ac_dir_suffix;
5204
ac_top_srcdir=$srcdir
5205
ac_abs_top_srcdir=$srcdir ;;
5207
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5208
ac_top_srcdir=$ac_top_build_prefix$srcdir
5209
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5211
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5222
cat >>$CONFIG_STATUS <<\_ACEOF
5223
# If the template does not know about datarootdir, expand it.
5224
# FIXME: This hack should be removed a few years after 2.60.
5225
ac_datarootdir_hack=; ac_datarootdir_seen=
5227
case `sed -n '/datarootdir/ {
5236
' $ac_file_inputs` in
5237
*datarootdir*) ac_datarootdir_seen=yes;;
5238
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5239
{ echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5240
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5242
cat >>$CONFIG_STATUS <<_ACEOF
5243
ac_datarootdir_hack='
5244
s&@datadir@&$datadir&g
5245
s&@docdir@&$docdir&g
5246
s&@infodir@&$infodir&g
5247
s&@localedir@&$localedir&g
5248
s&@mandir@&$mandir&g
5249
s&\\\${datarootdir}&$datarootdir&g' ;;
5253
# Neutralize VPATH when `$srcdir' = `.'.
5254
# Shell code in configure.ac might set extrasub.
5255
# FIXME: do we really want to maintain this feature?
5256
cat >>$CONFIG_STATUS <<_ACEOF
5260
cat >>$CONFIG_STATUS <<\_ACEOF
5262
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5263
s&@configure_input@&$configure_input&;t t
5264
s&@top_builddir@&$ac_top_builddir_sub&;t t
5265
s&@srcdir@&$ac_srcdir&;t t
5266
s&@abs_srcdir@&$ac_abs_srcdir&;t t
5267
s&@top_srcdir@&$ac_top_srcdir&;t t
5268
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5269
s&@builddir@&$ac_builddir&;t t
5270
s&@abs_builddir@&$ac_abs_builddir&;t t
5271
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5272
$ac_datarootdir_hack
5273
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
5275
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5276
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
5277
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
5278
{ echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5279
which seems to be undefined. Please make sure it is defined." >&5
5280
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5281
which seems to be undefined. Please make sure it is defined." >&2;}
5285
-) cat "$tmp/out"; rm -f "$tmp/out";;
5286
*) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
5297
{ (exit 0); exit 0; }
5299
chmod +x $CONFIG_STATUS
5300
ac_clean_files=$ac_clean_files_save
5303
# configure is writing to config.log, and then calls config.status.
5304
# config.status does its own redirection, appending to config.log.
5305
# Unfortunately, on DOS this fails, as config.log is still kept open
5306
# by configure, so config.status won't be able to write to it; its
5307
# output is simply discarded. So we exec the FD to /dev/null,
5308
# effectively closing config.log, so it can be properly (re)opened and
5309
# appended to by config.status. When coming back to configure, we
5310
# need to make the FD available again.
5311
if test "$no_create" != yes; then
5313
ac_config_status_args=
5314
test "$silent" = yes &&
5315
ac_config_status_args="$ac_config_status_args --quiet"
5317
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5319
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
5320
# would make configure fail if this is the last instruction.
5321
$ac_cs_success || { (exit 1); exit 1; }
5326
echo " \"\$prefix\" is $prefix"
5327
echo " \"\$exec_prefix\" is $exec_prefix"
5328
{ echo "$as_me:$LINENO: result: $STATUS_MSG
5330
find . -name NOINSTALL -print # shows which toolboxes won't be installed
5332
echo "${ECHO_T}$STATUS_MSG
5334
find . -name NOINSTALL -print # shows which toolboxes won't be installed