2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.52f.
5
# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6
# 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.
10
# Find the correct PATH separator. Usually this is `:', but
11
# DJGPP uses `;' like DOS.
12
if test "X${PATH_SEPARATOR+set}" != Xset; then
13
UNAME=${UNAME-`uname 2>/dev/null`}
15
*-DOS) lt_cv_sys_path_separator=';' ;;
16
*) lt_cv_sys_path_separator=':' ;;
18
PATH_SEPARATOR=$lt_cv_sys_path_separator
21
# Check that we are running under the correct shell.
22
SHELL=${CONFIG_SHELL-/bin/sh}
26
# Remove one level of quotation (which was required for Make).
27
ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
32
if test "X$1" = X--no-reexec; then
33
# Discard the --no-reexec flag, and continue.
35
elif test "X$1" = X--fallback-echo; then
36
# Avoid inline document here, it may be left over
38
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
39
# Yippee, $echo works!
42
# Restart under the correct shell.
43
exec $SHELL "$0" --no-reexec ${1+"$@"}
46
if test "X$1" = X--fallback-echo; then
47
# used as fallback echo
55
# The HP-UX ksh and POSIX shell print the target directory to stdout
57
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
59
if test -z "$ECHO"; then
60
if test "X${echo_test_string+set}" != Xset; then
61
# find a string as large as possible, as long as the shell can cope with it
62
for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
63
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
64
if (echo_test_string="`eval $cmd`") 2>/dev/null &&
65
echo_test_string="`eval $cmd`" &&
66
(test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
73
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
74
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
75
test "X$echo_testing_string" = "X$echo_test_string"; then
78
# The Solaris, AIX, and Digital Unix default echo programs unquote
79
# backslashes. This makes it impossible to quote backslashes using
80
# echo "$something" | sed 's/\\/\\\\/g'
82
# So, first we look for a working echo in the user's PATH.
84
IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
85
for dir in $PATH /usr/ucb; do
86
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
87
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
88
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
89
test "X$echo_testing_string" = "X$echo_test_string"; then
96
if test "X$echo" = Xecho; then
97
# We didn't find a better echo, so look for alternatives.
98
if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
99
echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
100
test "X$echo_testing_string" = "X$echo_test_string"; then
101
# This shell has a builtin print -r that does the trick.
103
elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
104
test "X$CONFIG_SHELL" != X/bin/ksh; then
105
# If we have ksh, try running configure again with it.
106
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
107
export ORIGINAL_CONFIG_SHELL
108
CONFIG_SHELL=/bin/ksh
110
exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
114
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
115
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
116
test "X$echo_testing_string" = "X$echo_test_string"; then
119
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
120
test "X$echo_testing_string" = 'X\t' &&
121
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
122
test "X$echo_testing_string" = "X$echo_test_string"; then
123
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
125
SHELL="$CONFIG_SHELL"
127
echo="$CONFIG_SHELL $0 --fallback-echo"
128
elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
129
test "X$echo_testing_string" = 'X\t' &&
130
echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
131
test "X$echo_testing_string" = "X$echo_test_string"; then
132
echo="$CONFIG_SHELL $0 --fallback-echo"
134
# maybe with a smaller string...
137
for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
138
if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
145
if test "$prev" != 'sed 50q "$0"'; then
146
echo_test_string=`eval $prev`
147
export echo_test_string
148
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
150
# Oops. We lost completely, so just stick with echo.
159
# Copy echo and quote the copy suitably for passing to libtool from
160
# the Makefile, instead of quoting the original, which is used later.
162
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
163
ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
166
if expr a : '\(a\)' >/dev/null 2>&1; then
172
## --------------------- ##
173
## M4sh Initialization. ##
174
## --------------------- ##
176
# Be Bourne compatible
177
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
180
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
185
# Support unset when possible.
186
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
192
(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
193
{ $as_unset LANG || test "${LANG+set}" != set; } ||
194
{ LANG=C; export LANG; }
195
(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
196
{ $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
197
{ LC_ALL=C; export LC_ALL; }
198
(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
199
{ $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
200
{ LC_TIME=C; export LC_TIME; }
201
(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
202
{ $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
203
{ LC_CTYPE=C; export LC_CTYPE; }
204
(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
205
{ $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
206
{ LANGUAGE=C; export LANGUAGE; }
207
(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
208
{ $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
209
{ LC_COLLATE=C; export LC_COLLATE; }
210
(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
211
{ $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
212
{ LC_NUMERIC=C; export LC_NUMERIC; }
213
(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
214
{ $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
215
{ LC_MESSAGES=C; export LC_MESSAGES; }
217
# Name of the executable.
218
as_me=`(basename "$0") 2>/dev/null ||
219
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
220
X"$0" : 'X\(//\)$' \| \
221
X"$0" : 'X\(/\)$' \| \
222
. : '\(.\)' 2>/dev/null ||
224
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
225
/^X\/\(\/\/\)$/{ s//\1/; q; }
226
/^X\/\(\/\).*/{ s//\1/; q; }
229
# PATH needs CR, and LINENO needs CR and PATH.
230
# Avoid depending upon Character Ranges.
231
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
232
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
233
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
234
as_cr_digits='0123456789'
235
as_cr_alnum=$as_cr_Letters$as_cr_digits
237
# The user is always right.
238
if test "${PATH_SEPARATOR+set}" != set; then
239
echo "#! $SHELL" >conftest.sh
240
echo "exit 0" >>conftest.sh
242
if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
252
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
253
test "x$as_lineno_1" != "x$as_lineno_2" &&
254
test "x$as_lineno_3" = "x$as_lineno_2" || {
255
# Find who we are. Look in the path if we contain no path at all
258
*[\\/]* ) as_myself=$0 ;;
259
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
263
test -z "$as_dir" && as_dir=.
264
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
269
# We did not find ourselves, most probably we were run as `sh COMMAND'
270
# in which case we are not to be found in the path.
271
if test "x$as_myself" = x; then
274
if test ! -f "$as_myself"; then
275
{ echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
276
{ (exit 1); exit 1; }; }
278
case $CONFIG_SHELL in
280
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
281
for as_dir in /bin:/usr/bin:$PATH
284
test -z "$as_dir" && as_dir=.
285
for as_base in sh bash ksh sh5; do
288
if ("$as_dir/$as_base" -c '
291
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
292
test "x$as_lineno_1" != "x$as_lineno_2" &&
293
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
294
CONFIG_SHELL=$as_dir/$as_base
296
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
304
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
305
# uniformly replaced by the line number. The first 'sed' inserts a
306
# line-number line before each line; the second 'sed' does the real
307
# work. The second script uses 'N' to pair each line-number line
308
# with the numbered line, and appends trailing '-' during
309
# substitution so that $LINENO is not a special case at line end.
310
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
311
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
312
sed '=' <$as_myself |
317
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
320
s,^['$as_cr_digits']*\n,,
322
chmod +x $as_me.lineno ||
323
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
324
{ (exit 1); exit 1; }; }
326
# Don't try to exec as it changes $[0], causing all sort of problems
327
# (the dirname of $[0] is not the place where we might find the
328
# original and so on. Autoconf is especially sensible to this).
330
# Exit status is that of the last command.
334
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
335
*c*,-n*) ECHO_N= ECHO_C='
337
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
338
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
341
if expr a : '\(a\)' >/dev/null 2>&1; then
347
rm -f conf$$ conf$$.exe conf$$.file
349
if ln -s conf$$.file conf$$ 2>/dev/null; then
350
# We could just check for DJGPP; but this test a) works b) is more generic
351
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
352
if test -f conf$$.exe; then
353
# Don't use ln at all; we don't have any links
358
elif ln conf$$.file conf$$ 2>/dev/null; then
363
rm -f conf$$ conf$$.exe conf$$.file
365
as_executable_p="test -f"
367
# Sed expression to map a string onto a valid CPP name.
368
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
370
# Sed expression to map a string onto a valid variable name.
371
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
374
# We need space, tab and new line, in precisely that order.
380
$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
383
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
384
# so uname gets run too.
385
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
392
ac_default_prefix=/usr/local
397
SHELL=${CONFIG_SHELL-/bin/sh}
399
# Maximum number of lines to put in a shell here document.
400
# This variable seems obsolete. It should probably be removed, and
401
# only ac_max_sed_lines should be used.
402
: ${ac_max_here_lines=38}
404
ac_unique_file="configure.in"
405
# Factoring default headers for most tests.
406
ac_includes_default="\
409
# include <sys/types.h>
412
# include <sys/stat.h>
423
# if !STDC_HEADERS && HAVE_MEMORY_H
429
# include <strings.h>
432
# include <inttypes.h>
442
# Initialize some variables set by options.
444
ac_init_version=false
445
# The variables have the same names as the options, with
446
# dashes changed to underlines.
454
program_transform_name=s,x,x,
462
# Installation directory options.
463
# These are left unexpanded so users can "make install exec_prefix=/foo"
464
# and all the variables that are supposed to be based on exec_prefix
465
# by default will actually change.
466
# Use braces instead of parens because sh, perl, etc. also accept them.
467
bindir='${exec_prefix}/bin'
468
sbindir='${exec_prefix}/sbin'
469
libexecdir='${exec_prefix}/libexec'
470
datadir='${prefix}/share'
471
sysconfdir='${prefix}/etc'
472
sharedstatedir='${prefix}/com'
473
localstatedir='${prefix}/var'
474
libdir='${exec_prefix}/lib'
475
includedir='${prefix}/include'
476
oldincludedir='/usr/include'
477
infodir='${prefix}/info'
478
mandir='${prefix}/man'
480
# Identity of this package.
490
# If the previous option needs an argument, assign it.
491
if test -n "$ac_prev"; then
492
eval "$ac_prev=\$ac_option"
497
ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
499
# Accept the important Cygnus configure options, so we can diagnose typos.
503
-bindir | --bindir | --bindi | --bind | --bin | --bi)
505
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
508
-build | --build | --buil | --bui | --bu)
509
ac_prev=build_alias ;;
510
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
511
build_alias=$ac_optarg ;;
513
-cache-file | --cache-file | --cache-fil | --cache-fi \
514
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
515
ac_prev=cache_file ;;
516
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
517
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
518
cache_file=$ac_optarg ;;
521
cache_file=config.cache ;;
523
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
525
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
527
datadir=$ac_optarg ;;
529
-disable-* | --disable-*)
530
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
531
# Reject names that are not valid shell variable names.
532
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
533
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
534
{ (exit 1); exit 1; }; }
535
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
536
eval "enable_$ac_feature=no" ;;
538
-enable-* | --enable-*)
539
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
540
# Reject names that are not valid shell variable names.
541
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
542
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
543
{ (exit 1); exit 1; }; }
544
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
546
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
549
eval "enable_$ac_feature='$ac_optarg'" ;;
551
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
552
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
553
| --exec | --exe | --ex)
554
ac_prev=exec_prefix ;;
555
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
556
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
557
| --exec=* | --exe=* | --ex=*)
558
exec_prefix=$ac_optarg ;;
560
-gas | --gas | --ga | --g)
561
# Obsolete; use --with-gas.
564
-help | --help | --hel | --he | -h)
566
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
567
ac_init_help=recursive ;;
568
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
569
ac_init_help=short ;;
571
-host | --host | --hos | --ho)
572
ac_prev=host_alias ;;
573
-host=* | --host=* | --hos=* | --ho=*)
574
host_alias=$ac_optarg ;;
576
-includedir | --includedir | --includedi | --included | --include \
577
| --includ | --inclu | --incl | --inc)
578
ac_prev=includedir ;;
579
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
580
| --includ=* | --inclu=* | --incl=* | --inc=*)
581
includedir=$ac_optarg ;;
583
-infodir | --infodir | --infodi | --infod | --info | --inf)
585
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
586
infodir=$ac_optarg ;;
588
-libdir | --libdir | --libdi | --libd)
590
-libdir=* | --libdir=* | --libdi=* | --libd=*)
593
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
594
| --libexe | --libex | --libe)
595
ac_prev=libexecdir ;;
596
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
597
| --libexe=* | --libex=* | --libe=*)
598
libexecdir=$ac_optarg ;;
600
-localstatedir | --localstatedir | --localstatedi | --localstated \
601
| --localstate | --localstat | --localsta | --localst \
602
| --locals | --local | --loca | --loc | --lo)
603
ac_prev=localstatedir ;;
604
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
605
| --localstate=* | --localstat=* | --localsta=* | --localst=* \
606
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
607
localstatedir=$ac_optarg ;;
609
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
611
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
615
# Obsolete; use --without-fp.
618
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
622
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
623
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
626
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
627
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
628
| --oldin | --oldi | --old | --ol | --o)
629
ac_prev=oldincludedir ;;
630
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
631
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
632
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
633
oldincludedir=$ac_optarg ;;
635
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
637
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
640
-program-prefix | --program-prefix | --program-prefi | --program-pref \
641
| --program-pre | --program-pr | --program-p)
642
ac_prev=program_prefix ;;
643
-program-prefix=* | --program-prefix=* | --program-prefi=* \
644
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
645
program_prefix=$ac_optarg ;;
647
-program-suffix | --program-suffix | --program-suffi | --program-suff \
648
| --program-suf | --program-su | --program-s)
649
ac_prev=program_suffix ;;
650
-program-suffix=* | --program-suffix=* | --program-suffi=* \
651
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
652
program_suffix=$ac_optarg ;;
654
-program-transform-name | --program-transform-name \
655
| --program-transform-nam | --program-transform-na \
656
| --program-transform-n | --program-transform- \
657
| --program-transform | --program-transfor \
658
| --program-transfo | --program-transf \
659
| --program-trans | --program-tran \
660
| --progr-tra | --program-tr | --program-t)
661
ac_prev=program_transform_name ;;
662
-program-transform-name=* | --program-transform-name=* \
663
| --program-transform-nam=* | --program-transform-na=* \
664
| --program-transform-n=* | --program-transform-=* \
665
| --program-transform=* | --program-transfor=* \
666
| --program-transfo=* | --program-transf=* \
667
| --program-trans=* | --program-tran=* \
668
| --progr-tra=* | --program-tr=* | --program-t=*)
669
program_transform_name=$ac_optarg ;;
671
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
672
| -silent | --silent | --silen | --sile | --sil)
675
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
677
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
679
sbindir=$ac_optarg ;;
681
-sharedstatedir | --sharedstatedir | --sharedstatedi \
682
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
683
| --sharedst | --shareds | --shared | --share | --shar \
685
ac_prev=sharedstatedir ;;
686
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
687
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
688
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
690
sharedstatedir=$ac_optarg ;;
692
-site | --site | --sit)
694
-site=* | --site=* | --sit=*)
697
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
699
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
702
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
703
| --syscon | --sysco | --sysc | --sys | --sy)
704
ac_prev=sysconfdir ;;
705
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
706
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
707
sysconfdir=$ac_optarg ;;
709
-target | --target | --targe | --targ | --tar | --ta | --t)
710
ac_prev=target_alias ;;
711
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
712
target_alias=$ac_optarg ;;
714
-v | -verbose | --verbose | --verbos | --verbo | --verb)
717
-version | --version | --versio | --versi | --vers | -V)
721
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
722
# Reject names that are not valid shell variable names.
723
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
724
{ echo "$as_me: error: invalid package name: $ac_package" >&2
725
{ (exit 1); exit 1; }; }
726
ac_package=`echo $ac_package| sed 's/-/_/g'`
728
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
731
eval "with_$ac_package='$ac_optarg'" ;;
733
-without-* | --without-*)
734
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
735
# Reject names that are not valid shell variable names.
736
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
737
{ echo "$as_me: error: invalid package name: $ac_package" >&2
738
{ (exit 1); exit 1; }; }
739
ac_package=`echo $ac_package | sed 's/-/_/g'`
740
eval "with_$ac_package=no" ;;
743
# Obsolete; use --with-x.
746
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
747
| --x-incl | --x-inc | --x-in | --x-i)
748
ac_prev=x_includes ;;
749
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
750
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
751
x_includes=$ac_optarg ;;
753
-x-libraries | --x-libraries | --x-librarie | --x-librari \
754
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
755
ac_prev=x_libraries ;;
756
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
757
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
758
x_libraries=$ac_optarg ;;
760
-*) { echo "$as_me: error: unrecognized option: $ac_option
761
Try \`$0 --help' for more information." >&2
762
{ (exit 1); exit 1; }; }
766
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
767
# Reject names that are not valid shell variable names.
768
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
769
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
770
{ (exit 1); exit 1; }; }
771
ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
772
eval "$ac_envvar='$ac_optarg'"
776
# FIXME: should be removed in autoconf 3.0.
777
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
778
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
779
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
780
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
786
if test -n "$ac_prev"; then
787
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
788
{ echo "$as_me: error: missing argument to $ac_option" >&2
789
{ (exit 1); exit 1; }; }
792
# Be sure to have absolute paths.
793
for ac_var in exec_prefix prefix
795
eval ac_val=$`echo $ac_var`
797
[\\/$]* | ?:[\\/]* | NONE | '' ) ;;
798
*) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
799
{ (exit 1); exit 1; }; };;
803
# Be sure to have absolute paths.
804
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
805
localstatedir libdir includedir oldincludedir infodir mandir
807
eval ac_val=$`echo $ac_var`
809
[\\/$]* | ?:[\\/]* ) ;;
810
*) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
811
{ (exit 1); exit 1; }; };;
815
# There might be people who depend on the old broken behavior: `$host'
816
# used to hold the argument of --host etc.
821
# FIXME: should be removed in autoconf 3.0.
822
if test "x$host_alias" != x; then
823
if test "x$build_alias" = x; then
824
cross_compiling=maybe
825
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
826
If a cross compiler is detected then cross compile mode will be used." >&2
827
elif test "x$build_alias" != "x$host_alias"; then
833
test -n "$host_alias" && ac_tool_prefix=$host_alias-
835
test "$silent" = yes && exec 6>/dev/null
837
# Find the source files, if location was not specified.
838
if test -z "$srcdir"; then
839
ac_srcdir_defaulted=yes
840
# Try the directory containing this script, then its parent.
841
ac_confdir=`(dirname "$0") 2>/dev/null ||
842
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
843
X"$0" : 'X\(//\)[^/]' \| \
844
X"$0" : 'X\(//\)$' \| \
845
X"$0" : 'X\(/\)' \| \
846
. : '\(.\)' 2>/dev/null ||
848
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
849
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
850
/^X\(\/\/\)$/{ s//\1/; q; }
851
/^X\(\/\).*/{ s//\1/; q; }
854
if test ! -r $srcdir/$ac_unique_file; then
858
ac_srcdir_defaulted=no
860
if test ! -r $srcdir/$ac_unique_file; then
861
if test "$ac_srcdir_defaulted" = yes; then
862
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
863
{ (exit 1); exit 1; }; }
865
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
866
{ (exit 1); exit 1; }; }
869
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
870
ac_env_build_alias_set=${build_alias+set}
871
ac_env_build_alias_value=$build_alias
872
ac_cv_env_build_alias_set=${build_alias+set}
873
ac_cv_env_build_alias_value=$build_alias
874
ac_env_host_alias_set=${host_alias+set}
875
ac_env_host_alias_value=$host_alias
876
ac_cv_env_host_alias_set=${host_alias+set}
877
ac_cv_env_host_alias_value=$host_alias
878
ac_env_target_alias_set=${target_alias+set}
879
ac_env_target_alias_value=$target_alias
880
ac_cv_env_target_alias_set=${target_alias+set}
881
ac_cv_env_target_alias_value=$target_alias
882
ac_env_CC_set=${CC+set}
884
ac_cv_env_CC_set=${CC+set}
885
ac_cv_env_CC_value=$CC
886
ac_env_CFLAGS_set=${CFLAGS+set}
887
ac_env_CFLAGS_value=$CFLAGS
888
ac_cv_env_CFLAGS_set=${CFLAGS+set}
889
ac_cv_env_CFLAGS_value=$CFLAGS
890
ac_env_LDFLAGS_set=${LDFLAGS+set}
891
ac_env_LDFLAGS_value=$LDFLAGS
892
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
893
ac_cv_env_LDFLAGS_value=$LDFLAGS
894
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
895
ac_env_CPPFLAGS_value=$CPPFLAGS
896
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
897
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
898
ac_env_CXX_set=${CXX+set}
899
ac_env_CXX_value=$CXX
900
ac_cv_env_CXX_set=${CXX+set}
901
ac_cv_env_CXX_value=$CXX
902
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
903
ac_env_CXXFLAGS_value=$CXXFLAGS
904
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
905
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
906
ac_env_CPP_set=${CPP+set}
907
ac_env_CPP_value=$CPP
908
ac_cv_env_CPP_set=${CPP+set}
909
ac_cv_env_CPP_value=$CPP
912
# Report the --help message.
914
if test "$ac_init_help" = "long"; then
915
# Omit some internal or obsolete options to make the list less imposing.
916
# This message is too long to be a string in the A/UX 3.1 sh.
918
\`configure' configures this package to adapt to many kinds of systems.
920
Usage: $0 [OPTION]... [VAR=VALUE]...
922
To assign environment variables (e.g., CC, CFLAGS...), specify them as
923
VAR=VALUE. See below for descriptions of some of the useful variables.
925
Defaults for the options are specified in brackets.
928
-h, --help display this help and exit
929
--help=short display options specific to this package
930
--help=recursive display the short help of all the included packages
931
-V, --version display version information and exit
932
-q, --quiet, --silent do not print \`checking...' messages
933
--cache-file=FILE cache test results in FILE [disabled]
934
-C, --config-cache alias for \`--cache-file=config.cache'
935
-n, --no-create do not create output files
936
--srcdir=DIR find the sources in DIR [configure dir or \`..']
941
Installation directories:
942
--prefix=PREFIX install architecture-independent files in PREFIX
944
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
947
By default, \`make install' will install all the files in
948
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
949
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
950
for instance \`--prefix=\$HOME'.
952
For better control, use the options below.
954
Fine tuning of the installation directories:
955
--bindir=DIR user executables [EPREFIX/bin]
956
--sbindir=DIR system admin executables [EPREFIX/sbin]
957
--libexecdir=DIR program executables [EPREFIX/libexec]
958
--datadir=DIR read-only architecture-independent data [PREFIX/share]
959
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
960
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
961
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
962
--libdir=DIR object code libraries [EPREFIX/lib]
963
--includedir=DIR C header files [PREFIX/include]
964
--oldincludedir=DIR C header files for non-gcc [/usr/include]
965
--infodir=DIR info documentation [PREFIX/info]
966
--mandir=DIR man documentation [PREFIX/man]
972
--program-prefix=PREFIX prepend PREFIX to installed program names
973
--program-suffix=SUFFIX append SUFFIX to installed program names
974
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
977
--x-includes=DIR X include files are in DIR
978
--x-libraries=DIR X library files are in DIR
981
--build=BUILD configure for building on BUILD [guessed]
982
--host=HOST build programs to run on HOST [BUILD]
983
--target=TARGET configure for building compilers for TARGET [HOST]
987
if test -n "$ac_init_help"; then
992
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
993
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
994
--enable-static=PKGS build static libraries default=no
995
--enable-shared=PKGS build shared libraries default=yes
996
--enable-fast-install=PKGS optimize for fast installation default=yes
997
--disable-libtool-lock avoid locking (might break parallel builds)
1000
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1001
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1002
--with-gnu-ld assume the C compiler uses GNU ld default=no
1003
--with-pic try to use only PIC/non-PIC objects default=use both
1004
--with-dmalloc use dmalloc for debugging memory use
1005
--with-efence use efence for debugging memory use
1006
--with-tcl=DIR use Tcl binaries from DIR
1007
--with-tk=DIR use Tk binaries from DIR
1008
--with-extraincludedir=DIR use extra includes from DIR
1009
--with-extralibdir=DIR use extra libraries from DIR
1010
--with-x use the X Window System
1011
--with-freetypeincludedir=DIR use FREETYPE includes from DIR
1012
--with-freetypelibdir=DIR use FREETYPE libraries from DIR
1013
--with-iconvincludedir=DIR use ICONV includes from DIR
1014
--with-iconvlibdir=DIR use ICONV libraries from DIR
1015
--with-zincludedir=DIR use Z includes from DIR
1016
--with-zlibdir=DIR use Z libraries from DIR
1017
--with-pngincludedir=DIR use PNG includes from DIR
1018
--with-pnglibdir=DIR use PNG libraries from DIR
1019
--with-jpegincludedir=DIR use JPEG includes from DIR
1020
--with-jpeglibdir=DIR use JPEG libraries from DIR
1021
--with-Xawincludedir=DIR use XAW includes from DIR
1022
--with-Xawlibdir=DIR use XAW libraries from DIR
1024
Some influential environment variables:
1025
CC C compiler command
1026
CFLAGS C compiler flags
1027
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1028
nonstandard directory <lib dir>
1029
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1030
headers in a nonstandard directory <include dir>
1031
CXX C++ compiler command
1032
CXXFLAGS C++ compiler flags
1035
Use these variables to override the choices made by `configure' or to help
1036
it to find libraries and programs with nonstandard names/locations.
1041
if test "$ac_init_help" = "recursive"; then
1042
# If there are subdirs, report their specific --help.
1044
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1045
test -d $ac_dir || continue
1048
if test "$ac_dir" != .; then
1049
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1050
# A "../" for each directory in $ac_dir_suffix.
1051
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1053
ac_dir_suffix= ac_top_builddir=
1057
.) # No --srcdir option. We are building in place.
1059
if test -z "$ac_top_builddir"; then
1062
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1064
[\\/]* | ?:[\\/]* ) # Absolute path.
1065
ac_srcdir=$srcdir$ac_dir_suffix;
1066
ac_top_srcdir=$srcdir ;;
1068
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1069
ac_top_srcdir=$ac_top_builddir$srcdir ;;
1071
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1073
ac_buildpath=`cd "$ac_dir" && cd $ac_builddir && pwd`
1074
ac_top_buildpath=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
1075
ac_srcpath=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1076
ac_top_srcpath=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1079
# Check for guested configure; otherwise get Cygnus style configure.
1080
if test -f $ac_srcdir/configure.gnu; then
1082
$SHELL $ac_srcdir/configure.gnu --help=recursive
1083
elif test -f $ac_srcdir/configure; then
1085
$SHELL $ac_srcdir/configure --help=recursive
1086
elif test -f $ac_srcdir/configure.ac ||
1087
test -f $ac_srcdir/configure.in; then
1089
$ac_configure --help
1091
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1097
test -n "$ac_init_help" && exit 0
1098
if $ac_init_version; then
1101
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
1102
Free Software Foundation, Inc.
1103
This configure script is free software; the Free Software Foundation
1104
gives unlimited permission to copy, distribute and modify it.
1110
This file contains any messages produced by compilers while
1111
running configure, to aid debugging if configure makes a mistake.
1113
It was created by $as_me, which was
1114
generated by GNU Autoconf 2.52f. Invocation command line was
1125
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1126
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1127
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1128
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1129
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1131
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1132
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1134
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1135
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1136
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1137
hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1138
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1139
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1140
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1144
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1148
test -z "$as_dir" && as_dir=.
1149
echo "PATH: $as_dir"
1162
# Keep a trace of the command line.
1163
# Strip out --no-create and --no-recursion so they do not pile up.
1164
# Also quote any args containing shell meta-characters.
1170
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
1171
| --no-cr | --no-c) ;;
1172
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
1173
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
1174
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1175
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
1176
ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1178
*) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
1181
# Get rid of the leading space.
1184
# When interrupted or exit'd, cleanup temporary files, and complete
1185
# config.log. We remove comments because anyway the quotes in there
1186
# would cause problems or look ugly.
1187
# WARNING: Be sure not to use single quotes in there, as some shells,
1188
# such as our DU 5.0 friend, will then `close' the trap.
1189
trap 'exit_status=$?
1190
# Save into config.log some information that might help in debugging.
1194
## ---------------- ##
1195
## Cache variables. ##
1196
## ---------------- ##
1199
# The following way of writing the cache mishandles newlines in values,
1202
case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1205
"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1206
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1210
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1215
if test -s confdefs.h; then
1222
sed "/^$/d" confdefs.h
1225
test "$ac_signal" != 0 &&
1226
echo "$as_me: caught signal $ac_signal"
1227
echo "$as_me: exit $exit_status"
1229
rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
1232
for ac_signal in 1 2 13 15; do
1233
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1237
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1238
rm -rf conftest* confdefs.h
1239
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1242
# Let the site file select an alternate cache file if it wants to.
1243
# Prefer explicitly selected file to automatically selected ones.
1244
if test -z "$CONFIG_SITE"; then
1245
if test "x$prefix" != xNONE; then
1246
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1248
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1251
for ac_site_file in $CONFIG_SITE; do
1252
if test -r "$ac_site_file"; then
1253
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1254
echo "$as_me: loading site script $ac_site_file" >&6;}
1255
sed 's/^/| /' "$ac_site_file" >&5
1260
if test -r "$cache_file"; then
1261
# Some versions of bash will fail to source /dev/null (special
1262
# files actually), so we avoid doing that.
1263
if test -f "$cache_file"; then
1264
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
1265
echo "$as_me: loading cache $cache_file" >&6;}
1267
[\\/]* | ?:[\\/]* ) . $cache_file;;
1268
*) . ./$cache_file;;
1272
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
1273
echo "$as_me: creating cache $cache_file" >&6;}
1277
# Check that the precious variables saved in the cache have kept the same
1279
ac_cache_corrupted=false
1280
for ac_var in `(set) 2>&1 |
1281
sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1282
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1283
eval ac_new_set=\$ac_env_${ac_var}_set
1284
eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1285
eval ac_new_val="\$ac_env_${ac_var}_value"
1286
case $ac_old_set,$ac_new_set in
1288
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1289
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1290
ac_cache_corrupted=: ;;
1292
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1293
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1294
ac_cache_corrupted=: ;;
1297
if test "x$ac_old_val" != "x$ac_new_val"; then
1298
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1299
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1300
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1301
echo "$as_me: former value: $ac_old_val" >&2;}
1302
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1303
echo "$as_me: current value: $ac_new_val" >&2;}
1304
ac_cache_corrupted=:
1307
# Pass precious variables to config.status. It doesn't matter if
1308
# we pass some twice (in addition to the command line arguments).
1309
if test "$ac_new_set" = set; then
1311
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1312
ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1313
ac_configure_args="$ac_configure_args '$ac_arg'"
1315
*) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1320
if $ac_cache_corrupted; then
1321
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1322
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1323
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1324
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1325
{ (exit 1); exit 1; }; }
1329
ac_cpp='$CPP $CPPFLAGS'
1330
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1331
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1332
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1334
# Checks for system type
1336
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1337
if test -f $ac_dir/install-sh; then
1339
ac_install_sh="$ac_aux_dir/install-sh -c"
1341
elif test -f $ac_dir/install.sh; then
1343
ac_install_sh="$ac_aux_dir/install.sh -c"
1345
elif test -f $ac_dir/shtool; then
1347
ac_install_sh="$ac_aux_dir/shtool install -c"
1351
if test -z "$ac_aux_dir"; then
1352
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1353
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1354
{ (exit 1); exit 1; }; }
1356
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1357
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1358
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1360
# Make sure we can run config.sub.
1361
$ac_config_sub sun4 >/dev/null 2>&1 ||
1362
{ { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1363
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1364
{ (exit 1); exit 1; }; }
1366
echo "$as_me:$LINENO: checking build system type" >&5
1367
echo $ECHO_N "checking build system type... $ECHO_C" >&6
1368
if test "${ac_cv_build+set}" = set; then
1369
echo $ECHO_N "(cached) $ECHO_C" >&6
1371
ac_cv_build_alias=$build_alias
1372
test -z "$ac_cv_build_alias" &&
1373
ac_cv_build_alias=`$ac_config_guess`
1374
test -z "$ac_cv_build_alias" &&
1375
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1376
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1377
{ (exit 1); exit 1; }; }
1378
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1379
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1380
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1381
{ (exit 1); exit 1; }; }
1384
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1385
echo "${ECHO_T}$ac_cv_build" >&6
1387
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1388
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1389
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1391
echo "$as_me:$LINENO: checking host system type" >&5
1392
echo $ECHO_N "checking host system type... $ECHO_C" >&6
1393
if test "${ac_cv_host+set}" = set; then
1394
echo $ECHO_N "(cached) $ECHO_C" >&6
1396
ac_cv_host_alias=$host_alias
1397
test -z "$ac_cv_host_alias" &&
1398
ac_cv_host_alias=$ac_cv_build_alias
1399
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1400
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1401
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1402
{ (exit 1); exit 1; }; }
1405
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1406
echo "${ECHO_T}$ac_cv_host" >&6
1408
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1409
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1410
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1412
echo "$as_me:$LINENO: checking target system type" >&5
1413
echo $ECHO_N "checking target system type... $ECHO_C" >&6
1414
if test "${ac_cv_target+set}" = set; then
1415
echo $ECHO_N "(cached) $ECHO_C" >&6
1417
ac_cv_target_alias=$target_alias
1418
test "x$ac_cv_target_alias" = "x" &&
1419
ac_cv_target_alias=$ac_cv_host_alias
1420
ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1421
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1422
echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1423
{ (exit 1); exit 1; }; }
1426
echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1427
echo "${ECHO_T}$ac_cv_target" >&6
1428
target=$ac_cv_target
1429
target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1430
target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1431
target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1433
# The aliases save the names the user supplied, while $host etc.
1434
# will get canonicalized.
1435
test -n "$target_alias" &&
1436
test "$program_prefix$program_suffix$program_transform_name" = \
1438
program_prefix=${target_alias}-
1440
# AM_CONFIG_HEADER must precede AM_INIT_AUTOMAKE !! Why???
1442
ac_config_headers="$ac_config_headers gvconfig.h"
1444
ac_config_commands="$ac_config_commands default-1"
1446
# Find a good install program. We prefer a C program (faster),
1447
# so one script is as good as another. But avoid the broken or
1448
# incompatible versions:
1449
# SysV /etc/install, /usr/sbin/install
1450
# SunOS /usr/etc/install
1451
# IRIX /sbin/install
1453
# AmigaOS /C/install, which installs bootblocks on floppy discs
1454
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1455
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1456
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1457
# ./install, which can be erroneously created by make from ./install.sh.
1458
echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
1459
echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
1460
if test -z "$INSTALL"; then
1461
if test "${ac_cv_path_install+set}" = set; then
1462
echo $ECHO_N "(cached) $ECHO_C" >&6
1464
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1468
test -z "$as_dir" && as_dir=.
1469
# Account for people who put trailing slashes in PATH elements.
1471
./ | .// | /cC/* | \
1472
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1475
# OSF1 and SCO ODT 3.0 have their own names for install.
1476
# Don't use installbsd from OSF since it installs stuff as root
1478
for ac_prog in ginstall scoinst install; do
1479
for ac_exec_ext in '' $ac_executable_extensions; do
1480
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1481
if test $ac_prog = install &&
1482
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1483
# AIX install. It has an incompatible calling convention.
1485
elif test $ac_prog = install &&
1486
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1487
# program-specific install script used by HP pwplus--don't use.
1490
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1501
if test "${ac_cv_path_install+set}" = set; then
1502
INSTALL=$ac_cv_path_install
1504
# As a last resort, use the slow shell script. We don't cache a
1505
# path for INSTALL within a source directory, because that will
1506
# break other packages using the cache if that directory is
1507
# removed, or if the path is relative.
1508
INSTALL=$ac_install_sh
1511
echo "$as_me:$LINENO: result: $INSTALL" >&5
1512
echo "${ECHO_T}$INSTALL" >&6
1514
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1515
# It thinks the first close brace ends the variable substitution.
1516
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1518
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1520
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1522
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1523
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1526
echo timestamp > conftestfile
1527
# Do `set' in a subshell so we don't clobber the current shell's
1528
# arguments. Must try -L first in case configure is actually a
1529
# symlink; some systems play weird games with the mod time of symlinks
1530
# (eg FreeBSD returns the mod time of the symlink's containing
1533
set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1534
if test "$*" = "X"; then
1536
set X `ls -t $srcdir/configure conftestfile`
1538
if test "$*" != "X $srcdir/configure conftestfile" \
1539
&& test "$*" != "X conftestfile $srcdir/configure"; then
1541
# If neither matched, then we have a broken ls. This can happen
1542
# if, for instance, CONFIG_SHELL is bash and it inherits a
1543
# broken ls alias from the environment. This has actually
1544
# happened. Such a system could not be considered "sane".
1545
{ { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1546
alias in your environment" >&5
1547
echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1548
alias in your environment" >&2;}
1549
{ (exit 1); exit 1; }; }
1552
test "$2" = conftestfile
1558
{ { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1559
Check your system clock" >&5
1560
echo "$as_me: error: newly created file is older than distributed files!
1561
Check your system clock" >&2;}
1562
{ (exit 1); exit 1; }; }
1565
echo "$as_me:$LINENO: result: yes" >&5
1566
echo "${ECHO_T}yes" >&6
1567
test "$program_prefix" != NONE &&
1568
program_transform_name="s,^,$program_prefix,;$program_transform_name"
1569
# Use a double $ so make ignores it.
1570
test "$program_suffix" != NONE &&
1571
program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1572
# Double any \ or $. echo might interpret backslashes.
1573
# By default was `s,x,x', remove it if useless.
1574
cat <<\_ACEOF >conftest.sed
1575
s/[\\$]/&&/g;s/;s,x,x,$//
1577
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1580
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1581
echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1582
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1583
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1584
echo $ECHO_N "(cached) $ECHO_C" >&6
1586
cat >conftest.make <<\_ACEOF
1588
@echo 'ac_maketemp="${MAKE}"'
1590
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1591
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1592
if test -n "$ac_maketemp"; then
1593
eval ac_cv_prog_make_${ac_make}_set=yes
1595
eval ac_cv_prog_make_${ac_make}_set=no
1599
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1600
echo "$as_me:$LINENO: result: yes" >&5
1601
echo "${ECHO_T}yes" >&6
1604
echo "$as_me:$LINENO: result: no" >&5
1605
echo "${ECHO_T}no" >&6
1606
SET_MAKE="MAKE=${MAKE-make}"
1613
if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1614
{ { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1615
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1616
{ (exit 1); exit 1; }; }
1619
cat >>confdefs.h <<_ACEOF
1620
#define PACKAGE "$PACKAGE"
1623
cat >>confdefs.h <<_ACEOF
1624
#define VERSION "$VERSION"
1627
missing_dir=`cd $ac_aux_dir && pwd`
1628
echo "$as_me:$LINENO: checking for working aclocal" >&5
1629
echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6
1630
# Run test in a subshell; some versions of sh will print an error if
1631
# an executable is not found, even if stderr is redirected.
1632
# Redirect stdin to placate older versions of autoconf. Sigh.
1633
if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1635
echo "$as_me:$LINENO: result: found" >&5
1636
echo "${ECHO_T}found" >&6
1638
ACLOCAL="$missing_dir/missing aclocal"
1639
echo "$as_me:$LINENO: result: missing" >&5
1640
echo "${ECHO_T}missing" >&6
1643
echo "$as_me:$LINENO: checking for working autoconf" >&5
1644
echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
1645
# Run test in a subshell; some versions of sh will print an error if
1646
# an executable is not found, even if stderr is redirected.
1647
# Redirect stdin to placate older versions of autoconf. Sigh.
1648
if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1650
echo "$as_me:$LINENO: result: found" >&5
1651
echo "${ECHO_T}found" >&6
1653
AUTOCONF="$missing_dir/missing autoconf"
1654
echo "$as_me:$LINENO: result: missing" >&5
1655
echo "${ECHO_T}missing" >&6
1658
echo "$as_me:$LINENO: checking for working automake" >&5
1659
echo $ECHO_N "checking for working automake... $ECHO_C" >&6
1660
# Run test in a subshell; some versions of sh will print an error if
1661
# an executable is not found, even if stderr is redirected.
1662
# Redirect stdin to placate older versions of autoconf. Sigh.
1663
if (automake --version) < /dev/null > /dev/null 2>&1; then
1665
echo "$as_me:$LINENO: result: found" >&5
1666
echo "${ECHO_T}found" >&6
1668
AUTOMAKE="$missing_dir/missing automake"
1669
echo "$as_me:$LINENO: result: missing" >&5
1670
echo "${ECHO_T}missing" >&6
1673
echo "$as_me:$LINENO: checking for working autoheader" >&5
1674
echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
1675
# Run test in a subshell; some versions of sh will print an error if
1676
# an executable is not found, even if stderr is redirected.
1677
# Redirect stdin to placate older versions of autoconf. Sigh.
1678
if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1679
AUTOHEADER=autoheader
1680
echo "$as_me:$LINENO: result: found" >&5
1681
echo "${ECHO_T}found" >&6
1683
AUTOHEADER="$missing_dir/missing autoheader"
1684
echo "$as_me:$LINENO: result: missing" >&5
1685
echo "${ECHO_T}missing" >&6
1688
echo "$as_me:$LINENO: checking for working makeinfo" >&5
1689
echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
1690
# Run test in a subshell; some versions of sh will print an error if
1691
# an executable is not found, even if stderr is redirected.
1692
# Redirect stdin to placate older versions of autoconf. Sigh.
1693
if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1695
echo "$as_me:$LINENO: result: found" >&5
1696
echo "${ECHO_T}found" >&6
1698
MAKEINFO="$missing_dir/missing makeinfo"
1699
echo "$as_me:$LINENO: result: missing" >&5
1700
echo "${ECHO_T}missing" >&6
1703
# Set of all available languages
1706
# Build shared libs only
1707
# Check whether --enable-static or --disable-static was given.
1708
if test "${enable_static+set}" = set; then
1709
enableval="$enable_static"
1710
p=${PACKAGE-default}
1712
yes) enable_static=yes ;;
1713
no) enable_static=no ;;
1716
# Look at the argument we got. We use all the common list separators.
1717
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1718
for pkg in $enableval; do
1719
if test "X$pkg" = "X$p"; then
1730
# checks for programs
1732
ac_cpp='$CPP $CPPFLAGS'
1733
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1734
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1735
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1736
if test -n "$ac_tool_prefix"; then
1737
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1738
set dummy ${ac_tool_prefix}gcc; ac_word=$2
1739
echo "$as_me:$LINENO: checking for $ac_word" >&5
1740
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1741
if test "${ac_cv_prog_CC+set}" = set; then
1742
echo $ECHO_N "(cached) $ECHO_C" >&6
1744
if test -n "$CC"; then
1745
ac_cv_prog_CC="$CC" # Let the user override the test.
1747
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1751
test -z "$as_dir" && as_dir=.
1752
for ac_exec_ext in '' $ac_executable_extensions; do
1753
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1754
ac_cv_prog_CC="${ac_tool_prefix}gcc"
1755
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1764
if test -n "$CC"; then
1765
echo "$as_me:$LINENO: result: $CC" >&5
1766
echo "${ECHO_T}$CC" >&6
1768
echo "$as_me:$LINENO: result: no" >&5
1769
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 $as_executable_p "$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
1801
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1802
if test -n "$ac_ct_CC"; then
1803
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1804
echo "${ECHO_T}$ac_ct_CC" >&6
1806
echo "$as_me:$LINENO: result: no" >&5
1807
echo "${ECHO_T}no" >&6
1815
if test -z "$CC"; then
1816
if test -n "$ac_tool_prefix"; then
1817
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1818
set dummy ${ac_tool_prefix}cc; ac_word=$2
1819
echo "$as_me:$LINENO: checking for $ac_word" >&5
1820
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1821
if test "${ac_cv_prog_CC+set}" = set; then
1822
echo $ECHO_N "(cached) $ECHO_C" >&6
1824
if test -n "$CC"; then
1825
ac_cv_prog_CC="$CC" # Let the user override the test.
1827
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1831
test -z "$as_dir" && as_dir=.
1832
for ac_exec_ext in '' $ac_executable_extensions; do
1833
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1834
ac_cv_prog_CC="${ac_tool_prefix}cc"
1835
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1844
if test -n "$CC"; then
1845
echo "$as_me:$LINENO: result: $CC" >&5
1846
echo "${ECHO_T}$CC" >&6
1848
echo "$as_me:$LINENO: result: no" >&5
1849
echo "${ECHO_T}no" >&6
1853
if test -z "$ac_cv_prog_CC"; then
1855
# Extract the first word of "cc", so it can be a program name with args.
1856
set dummy cc; ac_word=$2
1857
echo "$as_me:$LINENO: checking for $ac_word" >&5
1858
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1859
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1860
echo $ECHO_N "(cached) $ECHO_C" >&6
1862
if test -n "$ac_ct_CC"; then
1863
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1865
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1869
test -z "$as_dir" && as_dir=.
1870
for ac_exec_ext in '' $ac_executable_extensions; do
1871
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1872
ac_cv_prog_ac_ct_CC="cc"
1873
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1881
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1882
if test -n "$ac_ct_CC"; then
1883
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1884
echo "${ECHO_T}$ac_ct_CC" >&6
1886
echo "$as_me:$LINENO: result: no" >&5
1887
echo "${ECHO_T}no" >&6
1896
if test -z "$CC"; then
1897
# Extract the first word of "cc", so it can be a program name with args.
1898
set dummy cc; ac_word=$2
1899
echo "$as_me:$LINENO: checking for $ac_word" >&5
1900
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1901
if test "${ac_cv_prog_CC+set}" = set; then
1902
echo $ECHO_N "(cached) $ECHO_C" >&6
1904
if test -n "$CC"; then
1905
ac_cv_prog_CC="$CC" # Let the user override the test.
1908
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1912
test -z "$as_dir" && as_dir=.
1913
for ac_exec_ext in '' $ac_executable_extensions; do
1914
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1915
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1916
ac_prog_rejected=yes
1920
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1926
if test $ac_prog_rejected = yes; then
1927
# We found a bogon in the path, so make sure we never use it.
1928
set dummy $ac_cv_prog_CC
1930
if test $# != 0; then
1931
# We chose a different compiler from the bogus one.
1932
# However, it has the same basename, so the bogon will be chosen
1933
# first if we set CC to just the basename; use the full file name.
1935
set dummy "$as_dir/$ac_word" ${1+"$@"}
1943
if test -n "$CC"; then
1944
echo "$as_me:$LINENO: result: $CC" >&5
1945
echo "${ECHO_T}$CC" >&6
1947
echo "$as_me:$LINENO: result: no" >&5
1948
echo "${ECHO_T}no" >&6
1952
if test -z "$CC"; then
1953
if test -n "$ac_tool_prefix"; then
1956
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1957
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1958
echo "$as_me:$LINENO: checking for $ac_word" >&5
1959
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1960
if test "${ac_cv_prog_CC+set}" = set; then
1961
echo $ECHO_N "(cached) $ECHO_C" >&6
1963
if test -n "$CC"; then
1964
ac_cv_prog_CC="$CC" # Let the user override the test.
1966
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1970
test -z "$as_dir" && as_dir=.
1971
for ac_exec_ext in '' $ac_executable_extensions; do
1972
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1973
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1974
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1983
if test -n "$CC"; then
1984
echo "$as_me:$LINENO: result: $CC" >&5
1985
echo "${ECHO_T}$CC" >&6
1987
echo "$as_me:$LINENO: result: no" >&5
1988
echo "${ECHO_T}no" >&6
1991
test -n "$CC" && break
1994
if test -z "$CC"; then
1998
# Extract the first word of "$ac_prog", so it can be a program name with args.
1999
set dummy $ac_prog; ac_word=$2
2000
echo "$as_me:$LINENO: checking for $ac_word" >&5
2001
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2002
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2003
echo $ECHO_N "(cached) $ECHO_C" >&6
2005
if test -n "$ac_ct_CC"; then
2006
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2008
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2012
test -z "$as_dir" && as_dir=.
2013
for ac_exec_ext in '' $ac_executable_extensions; do
2014
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2015
ac_cv_prog_ac_ct_CC="$ac_prog"
2016
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2024
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2025
if test -n "$ac_ct_CC"; then
2026
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2027
echo "${ECHO_T}$ac_ct_CC" >&6
2029
echo "$as_me:$LINENO: result: no" >&5
2030
echo "${ECHO_T}no" >&6
2033
test -n "$ac_ct_CC" && break
2041
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
2042
echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
2043
{ (exit 1); exit 1; }; }
2045
# Provide some information about the compiler.
2046
echo "$as_me:$LINENO:" \
2047
"checking for C compiler version" >&5
2048
ac_compiler=`set X $ac_compile; echo $2`
2049
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2050
(eval $ac_compiler --version </dev/null >&5) 2>&5
2052
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2053
(exit $ac_status); }
2054
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2055
(eval $ac_compiler -v </dev/null >&5) 2>&5
2057
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2058
(exit $ac_status); }
2059
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2060
(eval $ac_compiler -V </dev/null >&5) 2>&5
2062
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2063
(exit $ac_status); }
2065
cat >conftest.$ac_ext <<_ACEOF
2066
#line $LINENO "configure"
2067
#include "confdefs.h"
2069
#ifdef F77_DUMMY_MAIN
2073
int F77_DUMMY_MAIN() { return 1; }
2083
ac_clean_files_save=$ac_clean_files
2084
ac_clean_files="$ac_clean_files a.out a.exe"
2085
# Try to create an executable without -o first, disregard a.out.
2086
# It will help us diagnose broken compilers, and finding out an intuition
2088
echo "$as_me:$LINENO: checking for C compiler default output" >&5
2089
echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2090
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2091
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2092
(eval $ac_link_default) 2>&5
2094
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2095
(exit $ac_status); }; then
2096
# Find the output, starting from the most likely. This scheme is
2097
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2099
for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2100
ls a.out conftest 2>/dev/null;
2101
ls a.* conftest.* 2>/dev/null`; do
2103
*.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2104
a.out ) # We found the default executable, but exeext='' is most
2107
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2108
# FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2115
echo "$as_me: failed program was:" >&5
2116
cat conftest.$ac_ext >&5
2117
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2118
echo "$as_me: error: C compiler cannot create executables" >&2;}
2119
{ (exit 77); exit 77; }; }
2122
ac_exeext=$ac_cv_exeext
2123
echo "$as_me:$LINENO: result: $ac_file" >&5
2124
echo "${ECHO_T}$ac_file" >&6
2126
# Check the compiler produces executables we can run. If not, either
2127
# the compiler is broken, or we cross compile.
2128
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2129
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2130
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2131
# If not cross compiling, check that we can run a simple program.
2132
if test "$cross_compiling" != yes; then
2133
if { ac_try='./$ac_file'
2134
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2137
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2138
(exit $ac_status); }; }; then
2141
if test "$cross_compiling" = maybe; then
2144
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2145
If you meant to cross compile, use \`--host'." >&5
2146
echo "$as_me: error: cannot run C compiled programs.
2147
If you meant to cross compile, use \`--host'." >&2;}
2148
{ (exit 1); exit 1; }; }
2152
echo "$as_me:$LINENO: result: yes" >&5
2153
echo "${ECHO_T}yes" >&6
2155
rm -f a.out a.exe conftest$ac_cv_exeext
2156
ac_clean_files=$ac_clean_files_save
2157
# Check the compiler produces executables we can run. If not, either
2158
# the compiler is broken, or we cross compile.
2159
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2160
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2161
echo "$as_me:$LINENO: result: $cross_compiling" >&5
2162
echo "${ECHO_T}$cross_compiling" >&6
2164
echo "$as_me:$LINENO: checking for executable suffix" >&5
2165
echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
2166
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2167
(eval $ac_link) 2>&5
2169
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2170
(exit $ac_status); }; then
2171
# If both `conftest.exe' and `conftest' are `present' (well, observable)
2172
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2173
# work properly (i.e., refer to `conftest.exe'), while it won't with
2175
for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2177
*.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2178
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2185
{ { echo "$as_me:$LINENO: error: cannot compute EXEEXT: cannot compile and link" >&5
2186
echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
2187
{ (exit 1); exit 1; }; }
2190
rm -f conftest$ac_cv_exeext
2191
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2192
echo "${ECHO_T}$ac_cv_exeext" >&6
2194
rm -f conftest.$ac_ext
2195
EXEEXT=$ac_cv_exeext
2197
echo "$as_me:$LINENO: checking for object suffix" >&5
2198
echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
2199
if test "${ac_cv_objext+set}" = set; then
2200
echo $ECHO_N "(cached) $ECHO_C" >&6
2202
cat >conftest.$ac_ext <<_ACEOF
2203
#line $LINENO "configure"
2204
#include "confdefs.h"
2206
#ifdef F77_DUMMY_MAIN
2210
int F77_DUMMY_MAIN() { return 1; }
2220
rm -f conftest.o conftest.obj
2221
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2222
(eval $ac_compile) 2>&5
2224
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2225
(exit $ac_status); }; then
2226
for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2228
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2229
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2234
echo "$as_me: failed program was:" >&5
2235
cat conftest.$ac_ext >&5
2236
{ { echo "$as_me:$LINENO: error: cannot compute OBJEXT: cannot compile" >&5
2237
echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
2238
{ (exit 1); exit 1; }; }
2241
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2243
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2244
echo "${ECHO_T}$ac_cv_objext" >&6
2245
OBJEXT=$ac_cv_objext
2247
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2248
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2249
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2250
echo $ECHO_N "(cached) $ECHO_C" >&6
2252
cat >conftest.$ac_ext <<_ACEOF
2253
#line $LINENO "configure"
2254
#include "confdefs.h"
2256
#ifdef F77_DUMMY_MAIN
2260
int F77_DUMMY_MAIN() { return 1; }
2273
rm -f conftest.$ac_objext
2274
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2275
(eval $ac_compile) 2>&5
2277
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278
(exit $ac_status); } &&
2279
{ ac_try='test -s conftest.$ac_objext'
2280
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2283
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2284
(exit $ac_status); }; }; then
2287
echo "$as_me: failed program was:" >&5
2288
cat conftest.$ac_ext >&5
2291
rm -f conftest.$ac_objext conftest.$ac_ext
2292
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2295
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2296
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2297
GCC=`test $ac_compiler_gnu = yes && echo yes`
2298
ac_test_CFLAGS=${CFLAGS+set}
2299
ac_save_CFLAGS=$CFLAGS
2301
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2302
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2303
if test "${ac_cv_prog_cc_g+set}" = set; then
2304
echo $ECHO_N "(cached) $ECHO_C" >&6
2306
cat >conftest.$ac_ext <<_ACEOF
2307
#line $LINENO "configure"
2308
#include "confdefs.h"
2310
#ifdef F77_DUMMY_MAIN
2314
int F77_DUMMY_MAIN() { return 1; }
2324
rm -f conftest.$ac_objext
2325
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2326
(eval $ac_compile) 2>&5
2328
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2329
(exit $ac_status); } &&
2330
{ ac_try='test -s conftest.$ac_objext'
2331
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2334
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2335
(exit $ac_status); }; }; then
2338
echo "$as_me: failed program was:" >&5
2339
cat conftest.$ac_ext >&5
2342
rm -f conftest.$ac_objext conftest.$ac_ext
2344
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2345
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2346
if test "$ac_test_CFLAGS" = set; then
2347
CFLAGS=$ac_save_CFLAGS
2348
elif test $ac_cv_prog_cc_g = yes; then
2349
if test "$GCC" = yes; then
2355
if test "$GCC" = yes; then
2361
# Some people use a C++ compiler to compile C. Since we use `exit',
2362
# in C++ we need to declare it. In case someone uses the same compiler
2363
# for both compiling C and C++ we need to have the C++ compiler decide
2364
# the declaration of exit, since it's the most demanding environment.
2365
cat >conftest.$ac_ext <<_ACEOF
2370
rm -f conftest.$ac_objext
2371
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2372
(eval $ac_compile) 2>&5
2374
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375
(exit $ac_status); } &&
2376
{ ac_try='test -s conftest.$ac_objext'
2377
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2380
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381
(exit $ac_status); }; }; then
2382
for ac_declaration in \
2384
'#include <stdlib.h>' \
2385
'extern "C" void std::exit (int) throw (); using std::exit;' \
2386
'extern "C" void std::exit (int); using std::exit;' \
2387
'extern "C" void exit (int) throw ();' \
2388
'extern "C" void exit (int);' \
2391
cat >conftest.$ac_ext <<_ACEOF
2392
#line $LINENO "configure"
2393
#include "confdefs.h"
2396
#ifdef F77_DUMMY_MAIN
2400
int F77_DUMMY_MAIN() { return 1; }
2410
rm -f conftest.$ac_objext
2411
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2412
(eval $ac_compile) 2>&5
2414
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415
(exit $ac_status); } &&
2416
{ ac_try='test -s conftest.$ac_objext'
2417
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2420
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421
(exit $ac_status); }; }; then
2424
echo "$as_me: failed program was:" >&5
2425
cat conftest.$ac_ext >&5
2428
rm -f conftest.$ac_objext conftest.$ac_ext
2429
cat >conftest.$ac_ext <<_ACEOF
2430
#line $LINENO "configure"
2431
#include "confdefs.h"
2433
#ifdef F77_DUMMY_MAIN
2437
int F77_DUMMY_MAIN() { return 1; }
2447
rm -f conftest.$ac_objext
2448
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2449
(eval $ac_compile) 2>&5
2451
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452
(exit $ac_status); } &&
2453
{ ac_try='test -s conftest.$ac_objext'
2454
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2457
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458
(exit $ac_status); }; }; then
2461
echo "$as_me: failed program was:" >&5
2462
cat conftest.$ac_ext >&5
2464
rm -f conftest.$ac_objext conftest.$ac_ext
2467
if test -n "$ac_declaration"; then
2468
echo '#ifdef __cplusplus' >>confdefs.h
2469
echo $ac_declaration >>confdefs.h
2470
echo '#endif' >>confdefs.h
2474
echo "$as_me: failed program was:" >&5
2475
cat conftest.$ac_ext >&5
2477
rm -f conftest.$ac_objext conftest.$ac_ext
2479
ac_cpp='$CPP $CPPFLAGS'
2480
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2481
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2482
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2485
ac_cpp='$CXXCPP $CPPFLAGS'
2486
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2487
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2488
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2489
if test -n "$ac_tool_prefix"; then
2490
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2492
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2493
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2494
echo "$as_me:$LINENO: checking for $ac_word" >&5
2495
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2496
if test "${ac_cv_prog_CXX+set}" = set; then
2497
echo $ECHO_N "(cached) $ECHO_C" >&6
2499
if test -n "$CXX"; then
2500
ac_cv_prog_CXX="$CXX" # Let the user override the test.
2502
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2506
test -z "$as_dir" && as_dir=.
2507
for ac_exec_ext in '' $ac_executable_extensions; do
2508
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2509
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2510
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2519
if test -n "$CXX"; then
2520
echo "$as_me:$LINENO: result: $CXX" >&5
2521
echo "${ECHO_T}$CXX" >&6
2523
echo "$as_me:$LINENO: result: no" >&5
2524
echo "${ECHO_T}no" >&6
2527
test -n "$CXX" && break
2530
if test -z "$CXX"; then
2532
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2534
# Extract the first word of "$ac_prog", so it can be a program name with args.
2535
set dummy $ac_prog; ac_word=$2
2536
echo "$as_me:$LINENO: checking for $ac_word" >&5
2537
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2538
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2539
echo $ECHO_N "(cached) $ECHO_C" >&6
2541
if test -n "$ac_ct_CXX"; then
2542
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2544
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2548
test -z "$as_dir" && as_dir=.
2549
for ac_exec_ext in '' $ac_executable_extensions; do
2550
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2551
ac_cv_prog_ac_ct_CXX="$ac_prog"
2552
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2560
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2561
if test -n "$ac_ct_CXX"; then
2562
echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2563
echo "${ECHO_T}$ac_ct_CXX" >&6
2565
echo "$as_me:$LINENO: result: no" >&5
2566
echo "${ECHO_T}no" >&6
2569
test -n "$ac_ct_CXX" && break
2571
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2576
# Provide some information about the compiler.
2577
echo "$as_me:$LINENO:" \
2578
"checking for C++ compiler version" >&5
2579
ac_compiler=`set X $ac_compile; echo $2`
2580
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2581
(eval $ac_compiler --version </dev/null >&5) 2>&5
2583
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584
(exit $ac_status); }
2585
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2586
(eval $ac_compiler -v </dev/null >&5) 2>&5
2588
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589
(exit $ac_status); }
2590
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2591
(eval $ac_compiler -V </dev/null >&5) 2>&5
2593
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594
(exit $ac_status); }
2596
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2597
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2598
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2599
echo $ECHO_N "(cached) $ECHO_C" >&6
2601
cat >conftest.$ac_ext <<_ACEOF
2602
#line $LINENO "configure"
2603
#include "confdefs.h"
2605
#ifdef F77_DUMMY_MAIN
2609
int F77_DUMMY_MAIN() { return 1; }
2622
rm -f conftest.$ac_objext
2623
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2624
(eval $ac_compile) 2>&5
2626
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627
(exit $ac_status); } &&
2628
{ ac_try='test -s conftest.$ac_objext'
2629
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2632
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633
(exit $ac_status); }; }; then
2636
echo "$as_me: failed program was:" >&5
2637
cat conftest.$ac_ext >&5
2640
rm -f conftest.$ac_objext conftest.$ac_ext
2641
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2644
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2645
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2646
GXX=`test $ac_compiler_gnu = yes && echo yes`
2647
ac_test_CXXFLAGS=${CXXFLAGS+set}
2648
ac_save_CXXFLAGS=$CXXFLAGS
2650
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2651
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2652
if test "${ac_cv_prog_cxx_g+set}" = set; then
2653
echo $ECHO_N "(cached) $ECHO_C" >&6
2655
cat >conftest.$ac_ext <<_ACEOF
2656
#line $LINENO "configure"
2657
#include "confdefs.h"
2659
#ifdef F77_DUMMY_MAIN
2663
int F77_DUMMY_MAIN() { return 1; }
2673
rm -f conftest.$ac_objext
2674
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2675
(eval $ac_compile) 2>&5
2677
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678
(exit $ac_status); } &&
2679
{ ac_try='test -s conftest.$ac_objext'
2680
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2683
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684
(exit $ac_status); }; }; then
2685
ac_cv_prog_cxx_g=yes
2687
echo "$as_me: failed program was:" >&5
2688
cat conftest.$ac_ext >&5
2691
rm -f conftest.$ac_objext conftest.$ac_ext
2693
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2694
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2695
if test "$ac_test_CXXFLAGS" = set; then
2696
CXXFLAGS=$ac_save_CXXFLAGS
2697
elif test $ac_cv_prog_cxx_g = yes; then
2698
if test "$GXX" = yes; then
2704
if test "$GXX" = yes; then
2710
for ac_declaration in \
2712
'#include <stdlib.h>' \
2713
'extern "C" void std::exit (int) throw (); using std::exit;' \
2714
'extern "C" void std::exit (int); using std::exit;' \
2715
'extern "C" void exit (int) throw ();' \
2716
'extern "C" void exit (int);' \
2719
cat >conftest.$ac_ext <<_ACEOF
2720
#line $LINENO "configure"
2721
#include "confdefs.h"
2724
#ifdef F77_DUMMY_MAIN
2728
int F77_DUMMY_MAIN() { return 1; }
2738
rm -f conftest.$ac_objext
2739
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2740
(eval $ac_compile) 2>&5
2742
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743
(exit $ac_status); } &&
2744
{ ac_try='test -s conftest.$ac_objext'
2745
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2748
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749
(exit $ac_status); }; }; then
2752
echo "$as_me: failed program was:" >&5
2753
cat conftest.$ac_ext >&5
2756
rm -f conftest.$ac_objext conftest.$ac_ext
2757
cat >conftest.$ac_ext <<_ACEOF
2758
#line $LINENO "configure"
2759
#include "confdefs.h"
2761
#ifdef F77_DUMMY_MAIN
2765
int F77_DUMMY_MAIN() { return 1; }
2775
rm -f conftest.$ac_objext
2776
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2777
(eval $ac_compile) 2>&5
2779
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780
(exit $ac_status); } &&
2781
{ ac_try='test -s conftest.$ac_objext'
2782
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2785
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786
(exit $ac_status); }; }; then
2789
echo "$as_me: failed program was:" >&5
2790
cat conftest.$ac_ext >&5
2792
rm -f conftest.$ac_objext conftest.$ac_ext
2795
if test -n "$ac_declaration"; then
2796
echo '#ifdef __cplusplus' >>confdefs.h
2797
echo $ac_declaration >>confdefs.h
2798
echo '#endif' >>confdefs.h
2802
ac_cpp='$CPP $CPPFLAGS'
2803
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2804
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2805
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2807
echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2808
echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2809
if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2810
echo $ECHO_N "(cached) $ECHO_C" >&6
2812
ac_check_lib_save_LIBS=$LIBS
2813
LIBS="-lcposix $LIBS"
2814
cat >conftest.$ac_ext <<_ACEOF
2815
#line $LINENO "configure"
2816
#include "confdefs.h"
2818
/* Override any gcc2 internal prototype to avoid an error. */
2822
/* We use char because int might match the return type of a gcc2
2823
builtin and then its argument prototype would still apply. */
2825
#ifdef F77_DUMMY_MAIN
2829
int F77_DUMMY_MAIN() { return 1; }
2839
rm -f conftest.$ac_objext conftest$ac_exeext
2840
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2841
(eval $ac_link) 2>&5
2843
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844
(exit $ac_status); } &&
2845
{ ac_try='test -s conftest$ac_exeext'
2846
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2849
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850
(exit $ac_status); }; }; then
2851
ac_cv_lib_cposix_strerror=yes
2853
echo "$as_me: failed program was:" >&5
2854
cat conftest.$ac_ext >&5
2855
ac_cv_lib_cposix_strerror=no
2857
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2858
LIBS=$ac_check_lib_save_LIBS
2860
echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
2861
echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2862
if test $ac_cv_lib_cposix_strerror = yes; then
2863
LIBS="$LIBS -lcposix"
2866
missing_dir=`cd $ac_aux_dir && pwd`
2867
for ac_prog in flex lex
2869
# Extract the first word of "$ac_prog", so it can be a program name with args.
2870
set dummy $ac_prog; ac_word=$2
2871
echo "$as_me:$LINENO: checking for $ac_word" >&5
2872
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2873
if test "${ac_cv_prog_LEX+set}" = set; then
2874
echo $ECHO_N "(cached) $ECHO_C" >&6
2876
if test -n "$LEX"; then
2877
ac_cv_prog_LEX="$LEX" # Let the user override the test.
2879
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2883
test -z "$as_dir" && as_dir=.
2884
for ac_exec_ext in '' $ac_executable_extensions; do
2885
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2886
ac_cv_prog_LEX="$ac_prog"
2887
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2896
if test -n "$LEX"; then
2897
echo "$as_me:$LINENO: result: $LEX" >&5
2898
echo "${ECHO_T}$LEX" >&6
2900
echo "$as_me:$LINENO: result: no" >&5
2901
echo "${ECHO_T}no" >&6
2904
test -n "$LEX" && break
2906
test -n "$LEX" || LEX=""$missing_dir/missing flex""
2908
for ac_prog in flex lex
2910
# Extract the first word of "$ac_prog", so it can be a program name with args.
2911
set dummy $ac_prog; ac_word=$2
2912
echo "$as_me:$LINENO: checking for $ac_word" >&5
2913
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2914
if test "${ac_cv_prog_LEX+set}" = set; then
2915
echo $ECHO_N "(cached) $ECHO_C" >&6
2917
if test -n "$LEX"; then
2918
ac_cv_prog_LEX="$LEX" # Let the user override the test.
2920
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2924
test -z "$as_dir" && as_dir=.
2925
for ac_exec_ext in '' $ac_executable_extensions; do
2926
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2927
ac_cv_prog_LEX="$ac_prog"
2928
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2937
if test -n "$LEX"; then
2938
echo "$as_me:$LINENO: result: $LEX" >&5
2939
echo "${ECHO_T}$LEX" >&6
2941
echo "$as_me:$LINENO: result: no" >&5
2942
echo "${ECHO_T}no" >&6
2945
test -n "$LEX" && break
2947
test -n "$LEX" || LEX=":"
2949
if test -z "$LEXLIB"
2951
echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
2952
echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
2953
if test "${ac_cv_lib_fl_yywrap+set}" = set; then
2954
echo $ECHO_N "(cached) $ECHO_C" >&6
2956
ac_check_lib_save_LIBS=$LIBS
2958
cat >conftest.$ac_ext <<_ACEOF
2959
#line $LINENO "configure"
2960
#include "confdefs.h"
2962
/* Override any gcc2 internal prototype to avoid an error. */
2966
/* We use char because int might match the return type of a gcc2
2967
builtin and then its argument prototype would still apply. */
2969
#ifdef F77_DUMMY_MAIN
2973
int F77_DUMMY_MAIN() { return 1; }
2983
rm -f conftest.$ac_objext conftest$ac_exeext
2984
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2985
(eval $ac_link) 2>&5
2987
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988
(exit $ac_status); } &&
2989
{ ac_try='test -s conftest$ac_exeext'
2990
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2993
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994
(exit $ac_status); }; }; then
2995
ac_cv_lib_fl_yywrap=yes
2997
echo "$as_me: failed program was:" >&5
2998
cat conftest.$ac_ext >&5
2999
ac_cv_lib_fl_yywrap=no
3001
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3002
LIBS=$ac_check_lib_save_LIBS
3004
echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3005
echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3006
if test $ac_cv_lib_fl_yywrap = yes; then
3009
echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3010
echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3011
if test "${ac_cv_lib_l_yywrap+set}" = set; then
3012
echo $ECHO_N "(cached) $ECHO_C" >&6
3014
ac_check_lib_save_LIBS=$LIBS
3016
cat >conftest.$ac_ext <<_ACEOF
3017
#line $LINENO "configure"
3018
#include "confdefs.h"
3020
/* Override any gcc2 internal prototype to avoid an error. */
3024
/* We use char because int might match the return type of a gcc2
3025
builtin and then its argument prototype would still apply. */
3027
#ifdef F77_DUMMY_MAIN
3031
int F77_DUMMY_MAIN() { return 1; }
3041
rm -f conftest.$ac_objext conftest$ac_exeext
3042
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3043
(eval $ac_link) 2>&5
3045
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046
(exit $ac_status); } &&
3047
{ ac_try='test -s conftest$ac_exeext'
3048
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3051
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052
(exit $ac_status); }; }; then
3053
ac_cv_lib_l_yywrap=yes
3055
echo "$as_me: failed program was:" >&5
3056
cat conftest.$ac_ext >&5
3057
ac_cv_lib_l_yywrap=no
3059
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3060
LIBS=$ac_check_lib_save_LIBS
3062
echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3063
echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3064
if test $ac_cv_lib_l_yywrap = yes; then
3072
if test "x$LEX" != "x:"; then
3073
echo "$as_me:$LINENO: checking lex output file root" >&5
3074
echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3075
if test "${ac_cv_prog_lex_root+set}" = set; then
3076
echo $ECHO_N "(cached) $ECHO_C" >&6
3078
# The minimal lex program is just a single line: %%. But some broken lexes
3079
# (Solaris, I think it was) want two %% lines, so accommodate them.
3080
cat >conftest.l <<_ACEOF
3084
{ ac_try='$LEX conftest.l'
3085
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3088
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089
(exit $ac_status); }; }
3090
if test -f lex.yy.c; then
3091
ac_cv_prog_lex_root=lex.yy
3092
elif test -f lexyy.c; then
3093
ac_cv_prog_lex_root=lexyy
3095
{ { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3096
echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3097
{ (exit 1); exit 1; }; }
3100
echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3101
echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3103
LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3105
echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3106
echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3107
if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3108
echo $ECHO_N "(cached) $ECHO_C" >&6
3110
# POSIX says lex can declare yytext either as a pointer or an array; the
3111
# default is implementation-dependent. Figure out which it is, since
3112
# not all implementations provide the %pointer and %array declarations.
3113
ac_cv_prog_lex_yytext_pointer=no
3114
echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3116
LIBS="$LIBS $LEXLIB"
3117
cat >conftest.$ac_ext <<_ACEOF
3118
`cat $LEX_OUTPUT_ROOT.c`
3120
rm -f conftest.$ac_objext conftest$ac_exeext
3121
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3122
(eval $ac_link) 2>&5
3124
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125
(exit $ac_status); } &&
3126
{ ac_try='test -s conftest$ac_exeext'
3127
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3130
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131
(exit $ac_status); }; }; then
3132
ac_cv_prog_lex_yytext_pointer=yes
3134
echo "$as_me: failed program was:" >&5
3135
cat conftest.$ac_ext >&5
3137
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3139
rm -f "${LEX_OUTPUT_ROOT}.c"
3142
echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3143
echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3144
if test $ac_cv_prog_lex_yytext_pointer = yes; then
3146
cat >>confdefs.h <<\_ACEOF
3147
#define YYTEXT_POINTER 1
3154
for ac_prog in 'bison -y' byacc
3156
# Extract the first word of "$ac_prog", so it can be a program name with args.
3157
set dummy $ac_prog; ac_word=$2
3158
echo "$as_me:$LINENO: checking for $ac_word" >&5
3159
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3160
if test "${ac_cv_prog_YACC+set}" = set; then
3161
echo $ECHO_N "(cached) $ECHO_C" >&6
3163
if test -n "$YACC"; then
3164
ac_cv_prog_YACC="$YACC" # Let the user override the test.
3166
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3170
test -z "$as_dir" && as_dir=.
3171
for ac_exec_ext in '' $ac_executable_extensions; do
3172
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3173
ac_cv_prog_YACC="$ac_prog"
3174
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3182
YACC=$ac_cv_prog_YACC
3183
if test -n "$YACC"; then
3184
echo "$as_me:$LINENO: result: $YACC" >&5
3185
echo "${ECHO_T}$YACC" >&6
3187
echo "$as_me:$LINENO: result: no" >&5
3188
echo "${ECHO_T}no" >&6
3191
test -n "$YACC" && break
3193
test -n "$YACC" || YACC="yacc"
3195
for ac_prog in gawk mawk nawk awk
3197
# Extract the first word of "$ac_prog", so it can be a program name with args.
3198
set dummy $ac_prog; ac_word=$2
3199
echo "$as_me:$LINENO: checking for $ac_word" >&5
3200
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3201
if test "${ac_cv_prog_AWK+set}" = set; then
3202
echo $ECHO_N "(cached) $ECHO_C" >&6
3204
if test -n "$AWK"; then
3205
ac_cv_prog_AWK="$AWK" # Let the user override the test.
3207
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3211
test -z "$as_dir" && as_dir=.
3212
for ac_exec_ext in '' $ac_executable_extensions; do
3213
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3214
ac_cv_prog_AWK="$ac_prog"
3215
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3224
if test -n "$AWK"; then
3225
echo "$as_me:$LINENO: result: $AWK" >&5
3226
echo "${ECHO_T}$AWK" >&6
3228
echo "$as_me:$LINENO: result: no" >&5
3229
echo "${ECHO_T}no" >&6
3232
test -n "$AWK" && break
3235
# AM_PROG_LIBTOOL includes check for ranlib and supercedes AC_CHECK_RANLIB
3237
# Check whether --enable-shared or --disable-shared was given.
3238
if test "${enable_shared+set}" = set; then
3239
enableval="$enable_shared"
3240
p=${PACKAGE-default}
3242
yes) enable_shared=yes ;;
3243
no) enable_shared=no ;;
3246
# Look at the argument we got. We use all the common list separators.
3247
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3248
for pkg in $enableval; do
3249
if test "X$pkg" = "X$p"; then
3259
# Check whether --enable-fast-install or --disable-fast-install was given.
3260
if test "${enable_fast_install+set}" = set; then
3261
enableval="$enable_fast_install"
3262
p=${PACKAGE-default}
3264
yes) enable_fast_install=yes ;;
3265
no) enable_fast_install=no ;;
3267
enable_fast_install=no
3268
# Look at the argument we got. We use all the common list separators.
3269
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3270
for pkg in $enableval; do
3271
if test "X$pkg" = "X$p"; then
3272
enable_fast_install=yes
3279
enable_fast_install=yes
3281
# Find the correct PATH separator. Usually this is `:', but
3282
# DJGPP uses `;' like DOS.
3283
if test "X${PATH_SEPARATOR+set}" != Xset; then
3284
UNAME=${UNAME-`uname 2>/dev/null`}
3286
*-DOS) lt_cv_sys_path_separator=';' ;;
3287
*) lt_cv_sys_path_separator=':' ;;
3289
PATH_SEPARATOR=$lt_cv_sys_path_separator
3292
# Check whether --with-gnu-ld or --without-gnu-ld was given.
3293
if test "${with_gnu_ld+set}" = set; then
3294
withval="$with_gnu_ld"
3295
test "$withval" = no || with_gnu_ld=yes
3300
if test "$GCC" = yes; then
3301
# Check if gcc -print-prog-name=ld gives a path.
3302
echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3303
echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3306
# gcc leaves a trailing carriage return which upsets mingw
3307
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3309
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3312
# Accept absolute paths.
3313
[\\/]* | [A-Za-z]:[\\/]*)
3314
re_direlt='/[^/][^/]*/\.\./'
3315
# Canonicalize the path of ld
3316
ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3317
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3318
ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3320
test -z "$LD" && LD="$ac_prog"
3323
# If it fails, then pretend we aren't using GCC.
3327
# If it is relative, then search for the first ld in PATH.
3331
elif test "$with_gnu_ld" = yes; then
3332
echo "$as_me:$LINENO: checking for GNU ld" >&5
3333
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3335
echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3336
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3338
if test "${lt_cv_path_LD+set}" = set; then
3339
echo $ECHO_N "(cached) $ECHO_C" >&6
3341
if test -z "$LD"; then
3342
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3343
for ac_dir in $PATH; do
3344
test -z "$ac_dir" && ac_dir=.
3345
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3346
lt_cv_path_LD="$ac_dir/$ac_prog"
3347
# Check to see if the program is GNU ld. I'd rather use --version,
3348
# but apparently some GNU ld's only accept -v.
3349
# Break only if it was the GNU/non-GNU ld that we prefer.
3350
if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3351
test "$with_gnu_ld" != no && break
3353
test "$with_gnu_ld" != yes && break
3359
lt_cv_path_LD="$LD" # Let the user override the test with a path.
3364
if test -n "$LD"; then
3365
echo "$as_me:$LINENO: result: $LD" >&5
3366
echo "${ECHO_T}$LD" >&6
3368
echo "$as_me:$LINENO: result: no" >&5
3369
echo "${ECHO_T}no" >&6
3371
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3372
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3373
{ (exit 1); exit 1; }; }
3374
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3375
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3376
if test "${lt_cv_prog_gnu_ld+set}" = set; then
3377
echo $ECHO_N "(cached) $ECHO_C" >&6
3379
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
3380
if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3381
lt_cv_prog_gnu_ld=yes
3383
lt_cv_prog_gnu_ld=no
3386
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3387
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3388
with_gnu_ld=$lt_cv_prog_gnu_ld
3390
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3391
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3392
if test "${lt_cv_ld_reload_flag+set}" = set; then
3393
echo $ECHO_N "(cached) $ECHO_C" >&6
3395
lt_cv_ld_reload_flag='-r'
3397
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3398
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3399
reload_flag=$lt_cv_ld_reload_flag
3400
test -n "$reload_flag" && reload_flag=" $reload_flag"
3402
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3403
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3404
if test "${lt_cv_path_NM+set}" = set; then
3405
echo $ECHO_N "(cached) $ECHO_C" >&6
3407
if test -n "$NM"; then
3408
# Let the user override the test.
3411
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3412
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3413
test -z "$ac_dir" && ac_dir=.
3414
tmp_nm=$ac_dir/${ac_tool_prefix}nm
3415
if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3416
# Check to see if the nm accepts a BSD-compat flag.
3417
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
3418
# nm: unknown option "B" ignored
3419
# Tru64's nm complains that /dev/null is an invalid object file
3420
if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3421
lt_cv_path_NM="$tmp_nm -B"
3423
elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3424
lt_cv_path_NM="$tmp_nm -p"
3427
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3428
continue # so that we can try to find one that supports BSD flags
3433
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3438
echo "$as_me:$LINENO: result: $NM" >&5
3439
echo "${ECHO_T}$NM" >&6
3441
echo "$as_me:$LINENO: checking whether ln -s works" >&5
3442
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3444
if test "$LN_S" = "ln -s"; then
3445
echo "$as_me:$LINENO: result: yes" >&5
3446
echo "${ECHO_T}yes" >&6
3448
echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3449
echo "${ECHO_T}no, using $LN_S" >&6
3452
echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3453
echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3454
if test "${lt_cv_deplibs_check_method+set}" = set; then
3455
echo $ECHO_N "(cached) $ECHO_C" >&6
3457
lt_cv_file_magic_cmd='$MAGIC_CMD'
3458
lt_cv_file_magic_test_file=
3459
lt_cv_deplibs_check_method='unknown'
3460
# Need to set the preceding variable on all platforms that support
3461
# interlibrary dependencies.
3462
# 'none' -- dependencies not supported.
3463
# `unknown' -- same as none, but documents that we really don't know.
3464
# 'pass_all' -- all dependencies passed with no checks.
3465
# 'test_compile' -- check by making test program.
3466
# 'file_magic [[regex]]' -- check by looking for files in library path
3467
# which responds to the $file_magic_cmd with a given egrep regex.
3468
# If you have `file' or equivalent on your system and you're not sure
3469
# whether `pass_all' will *always* work, you probably want this one.
3473
lt_cv_deplibs_check_method=pass_all
3477
lt_cv_deplibs_check_method=pass_all
3481
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3482
lt_cv_file_magic_cmd='/usr/bin/file -L'
3483
lt_cv_file_magic_test_file=/shlib/libc.so
3486
cygwin* | mingw* | pw32*)
3487
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3488
lt_cv_file_magic_cmd='$OBJDUMP -f'
3491
darwin* | rhapsody*)
3492
lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3493
lt_cv_file_magic_cmd='/usr/bin/file -L'
3495
rhapsody* | darwin1.[012])
3496
lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3499
lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3505
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3508
# Not sure whether the presence of OpenBSD here was a mistake.
3509
# Let's accept both of them until this is cleared up.
3510
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3511
lt_cv_file_magic_cmd=/usr/bin/file
3512
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3516
lt_cv_deplibs_check_method=pass_all
3521
lt_cv_deplibs_check_method=pass_all
3525
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3526
lt_cv_file_magic_cmd=/usr/bin/file
3527
lt_cv_file_magic_test_file=/usr/lib/libc.sl
3533
# this will be overridden with pass_all, but let us keep it just in case
3534
lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3538
*-32|*"-32 ") libmagic=32-bit;;
3539
*-n32|*"-n32 ") libmagic=N32;;
3540
*-64|*"-64 ") libmagic=64-bit;;
3541
*) libmagic=never-match;;
3543
# this will be overridden with pass_all, but let us keep it just in case
3544
lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3547
lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3548
lt_cv_deplibs_check_method=pass_all
3551
# This must be Linux ELF.
3553
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3554
lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3558
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3559
lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3561
lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3566
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3567
lt_cv_file_magic_cmd=/usr/bin/file
3568
lt_cv_file_magic_test_file=/usr/lib/libnls.so
3572
lt_cv_file_magic_cmd=/usr/bin/file
3573
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3574
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3575
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3577
lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3581
osf3* | osf4* | osf5*)
3582
# this will be overridden with pass_all, but let us keep it just in case
3583
lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3584
lt_cv_file_magic_test_file=/shlib/libc.so
3585
lt_cv_deplibs_check_method=pass_all
3589
lt_cv_deplibs_check_method=pass_all
3593
lt_cv_deplibs_check_method=pass_all
3594
lt_cv_file_magic_test_file=/lib/libc.so
3597
sysv5uw[78]* | sysv4*uw2*)
3598
lt_cv_deplibs_check_method=pass_all
3601
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3602
case $host_vendor in
3604
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
3605
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3608
lt_cv_deplibs_check_method=pass_all
3611
lt_cv_file_magic_cmd='/bin/file'
3612
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3615
lt_cv_file_magic_cmd='/bin/file'
3616
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3617
lt_cv_file_magic_test_file=/lib/libc.so
3624
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3625
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3626
file_magic_cmd=$lt_cv_file_magic_cmd
3627
deplibs_check_method=$lt_cv_deplibs_check_method
3629
# Check for command to grab the raw symbol name followed by C symbol from nm.
3630
echo "$as_me:$LINENO: checking command to parse $NM output" >&5
3631
echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
3632
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3633
echo $ECHO_N "(cached) $ECHO_C" >&6
3636
# These are sane defaults that work on at least a few old systems.
3637
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
3639
# Character class describing NM global symbol codes.
3640
symcode='[BCDEGRST]'
3642
# Regexp to match symbols that can be accessed directly from C.
3643
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3645
# Transform the above into a raw symbol and a C symbol.
3646
symxfrm='\1 \2\3 \3'
3648
# Transform an extracted symbol line into a proper C declaration
3649
lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3651
# Transform an extracted symbol line into symbol name and symbol address
3652
lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
3654
# Define system-specific variables.
3659
cygwin* | mingw* | pw32*)
3660
symcode='[ABCDGISTW]'
3662
hpux*) # Its linker distinguishes data from code symbols
3663
lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3664
lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
3667
symcode='[BCDEGRST]'
3677
# Handle CRLF in mingw tool chain
3681
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3685
# If we're using GNU nm, then use its standard symbol codes.
3686
if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3687
symcode='[ABCDGISTW]'
3690
# Try without a prefix undercore, then with it.
3691
for ac_symprfx in "" "_"; do
3693
# Write the raw and C identifiers.
3694
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3696
# Check to see that the pipe works correctly.
3699
cat > conftest.$ac_ext <<EOF
3704
void nm_test_func(){}
3708
int main(){nm_test_var='a';nm_test_func();return(0);}
3711
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3712
(eval $ac_compile) 2>&5
3714
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715
(exit $ac_status); }; then
3716
# Now try to grab the symbols.
3718
if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3719
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3721
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722
(exit $ac_status); } && test -s "$nlist"; then
3723
# Try sorting and uniquifying the output.
3724
if sort "$nlist" | uniq > "$nlist"T; then
3725
mv -f "$nlist"T "$nlist"
3730
# Make sure that we snagged all the symbols we need.
3731
if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3732
if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3733
cat <<EOF > conftest.$ac_ext
3739
# Now generate the symbol file.
3740
eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3742
cat <<EOF >> conftest.$ac_ext
3743
#if defined (__STDC__) && __STDC__
3744
# define lt_ptr void *
3746
# define lt_ptr char *
3750
/* The mapping between symbol names and symbols. */
3755
lt_preloaded_symbols[] =
3758
sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
3759
cat <<\EOF >> conftest.$ac_ext
3767
# Now try linking the two files.
3768
mv conftest.$ac_objext conftstm.$ac_objext
3770
save_CFLAGS="$CFLAGS"
3771
LIBS="conftstm.$ac_objext"
3772
CFLAGS="$CFLAGS$no_builtin_flag"
3773
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3774
(eval $ac_link) 2>&5
3776
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3777
(exit $ac_status); } && test -s conftest; then
3781
CFLAGS="$save_CFLAGS"
3783
echo "cannot find nm_test_func in $nlist" >&5
3786
echo "cannot find nm_test_var in $nlist" >&5
3789
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
3792
echo "$progname: failed program was:" >&5
3793
cat conftest.$ac_ext >&5
3795
rm -f conftest* conftst*
3797
# Do not use the global_symbol_pipe unless it works.
3798
if test "$pipe_works" = yes; then
3801
lt_cv_sys_global_symbol_pipe=
3807
global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
3808
if test -z "$lt_cv_sys_global_symbol_pipe"; then
3809
global_symbol_to_cdecl=
3810
global_symbol_to_c_name_address=
3812
global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
3813
global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
3815
if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
3817
echo "$as_me:$LINENO: result: failed" >&5
3818
echo "${ECHO_T}failed" >&6
3820
echo "$as_me:$LINENO: result: ok" >&5
3821
echo "${ECHO_T}ok" >&6
3825
ac_cpp='$CPP $CPPFLAGS'
3826
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3827
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3828
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3829
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3830
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3831
# On Suns, sometimes $CPP names a directory.
3832
if test -n "$CPP" && test -d "$CPP"; then
3835
if test -z "$CPP"; then
3836
if test "${ac_cv_prog_CPP+set}" = set; then
3837
echo $ECHO_N "(cached) $ECHO_C" >&6
3839
# Double quotes because CPP needs to be expanded
3840
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3843
for ac_c_preproc_warn_flag in '' yes
3845
# Use a header file that comes with gcc, so configuring glibc
3846
# with a fresh cross-compiler works.
3847
# On the NeXT, cc -E runs the code through the compiler's parser,
3848
# not just through cpp. "Syntax error" is here to catch this case.
3849
cat >conftest.$ac_ext <<_ACEOF
3850
#line $LINENO "configure"
3851
#include "confdefs.h"
3855
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3856
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3858
egrep -v '^ *\+' conftest.er1 >conftest.err
3860
cat conftest.err >&5
3861
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3862
(exit $ac_status); } >/dev/null; then
3863
if test -s conftest.err; then
3864
ac_cpp_err=$ac_c_preproc_warn_flag
3871
if test -z "$ac_cpp_err"; then
3874
echo "$as_me: failed program was:" >&5
3875
cat conftest.$ac_ext >&5
3876
# Broken: fails on valid input.
3879
rm -f conftest.err conftest.$ac_ext
3881
# OK, works on sane cases. Now check whether non-existent headers
3882
# can be detected and how.
3883
cat >conftest.$ac_ext <<_ACEOF
3884
#line $LINENO "configure"
3885
#include "confdefs.h"
3886
#include <ac_nonexistent.h>
3888
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3889
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3891
egrep -v '^ *\+' conftest.er1 >conftest.err
3893
cat conftest.err >&5
3894
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895
(exit $ac_status); } >/dev/null; then
3896
if test -s conftest.err; then
3897
ac_cpp_err=$ac_c_preproc_warn_flag
3904
if test -z "$ac_cpp_err"; then
3905
# Broken: success on invalid input.
3908
echo "$as_me: failed program was:" >&5
3909
cat conftest.$ac_ext >&5
3910
# Passes both tests.
3914
rm -f conftest.err conftest.$ac_ext
3917
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3918
rm -f conftest.err conftest.$ac_ext
3919
if $ac_preproc_ok; then
3931
echo "$as_me:$LINENO: result: $CPP" >&5
3932
echo "${ECHO_T}$CPP" >&6
3934
for ac_c_preproc_warn_flag in '' yes
3936
# Use a header file that comes with gcc, so configuring glibc
3937
# with a fresh cross-compiler works.
3938
# On the NeXT, cc -E runs the code through the compiler's parser,
3939
# not just through cpp. "Syntax error" is here to catch this case.
3940
cat >conftest.$ac_ext <<_ACEOF
3941
#line $LINENO "configure"
3942
#include "confdefs.h"
3946
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3947
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3949
egrep -v '^ *\+' conftest.er1 >conftest.err
3951
cat conftest.err >&5
3952
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953
(exit $ac_status); } >/dev/null; then
3954
if test -s conftest.err; then
3955
ac_cpp_err=$ac_c_preproc_warn_flag
3962
if test -z "$ac_cpp_err"; then
3965
echo "$as_me: failed program was:" >&5
3966
cat conftest.$ac_ext >&5
3967
# Broken: fails on valid input.
3970
rm -f conftest.err conftest.$ac_ext
3972
# OK, works on sane cases. Now check whether non-existent headers
3973
# can be detected and how.
3974
cat >conftest.$ac_ext <<_ACEOF
3975
#line $LINENO "configure"
3976
#include "confdefs.h"
3977
#include <ac_nonexistent.h>
3979
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3980
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3982
egrep -v '^ *\+' conftest.er1 >conftest.err
3984
cat conftest.err >&5
3985
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986
(exit $ac_status); } >/dev/null; then
3987
if test -s conftest.err; then
3988
ac_cpp_err=$ac_c_preproc_warn_flag
3995
if test -z "$ac_cpp_err"; then
3996
# Broken: success on invalid input.
3999
echo "$as_me: failed program was:" >&5
4000
cat conftest.$ac_ext >&5
4001
# Passes both tests.
4005
rm -f conftest.err conftest.$ac_ext
4008
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4009
rm -f conftest.err conftest.$ac_ext
4010
if $ac_preproc_ok; then
4013
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
4014
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
4015
{ (exit 1); exit 1; }; }
4019
ac_cpp='$CPP $CPPFLAGS'
4020
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4021
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4022
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4024
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4025
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4026
if test "${ac_cv_header_stdc+set}" = set; then
4027
echo $ECHO_N "(cached) $ECHO_C" >&6
4029
cat >conftest.$ac_ext <<_ACEOF
4030
#line $LINENO "configure"
4031
#include "confdefs.h"
4038
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4039
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4041
egrep -v '^ *\+' conftest.er1 >conftest.err
4043
cat conftest.err >&5
4044
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4045
(exit $ac_status); } >/dev/null; then
4046
if test -s conftest.err; then
4047
ac_cpp_err=$ac_c_preproc_warn_flag
4054
if test -z "$ac_cpp_err"; then
4055
ac_cv_header_stdc=yes
4057
echo "$as_me: failed program was:" >&5
4058
cat conftest.$ac_ext >&5
4059
ac_cv_header_stdc=no
4061
rm -f conftest.err conftest.$ac_ext
4063
if test $ac_cv_header_stdc = yes; then
4064
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4065
cat >conftest.$ac_ext <<_ACEOF
4066
#line $LINENO "configure"
4067
#include "confdefs.h"
4071
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4072
egrep "memchr" >/dev/null 2>&1; then
4075
ac_cv_header_stdc=no
4081
if test $ac_cv_header_stdc = yes; then
4082
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4083
cat >conftest.$ac_ext <<_ACEOF
4084
#line $LINENO "configure"
4085
#include "confdefs.h"
4089
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4090
egrep "free" >/dev/null 2>&1; then
4093
ac_cv_header_stdc=no
4099
if test $ac_cv_header_stdc = yes; then
4100
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4101
if test "$cross_compiling" = yes; then
4104
cat >conftest.$ac_ext <<_ACEOF
4105
#line $LINENO "configure"
4106
#include "confdefs.h"
4108
#if ((' ' & 0x0FF) == 0x020)
4109
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4110
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4112
# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4113
|| ('j' <= (c) && (c) <= 'r') \
4114
|| ('s' <= (c) && (c) <= 'z'))
4115
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4118
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4123
for (i = 0; i < 256; i++)
4124
if (XOR (islower (i), ISLOWER (i))
4125
|| toupper (i) != TOUPPER (i))
4130
rm -f conftest$ac_exeext
4131
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4132
(eval $ac_link) 2>&5
4134
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4136
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4139
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4140
(exit $ac_status); }; }; then
4143
echo "$as_me: program exited with status $ac_status" >&5
4144
echo "$as_me: failed program was:" >&5
4145
cat conftest.$ac_ext >&5
4147
ac_cv_header_stdc=no
4149
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4153
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4154
echo "${ECHO_T}$ac_cv_header_stdc" >&6
4155
if test $ac_cv_header_stdc = yes; then
4157
cat >>confdefs.h <<\_ACEOF
4158
#define STDC_HEADERS 1
4163
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4165
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4166
inttypes.h stdint.h unistd.h
4168
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4169
echo "$as_me:$LINENO: checking for $ac_header" >&5
4170
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4171
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4172
echo $ECHO_N "(cached) $ECHO_C" >&6
4174
cat >conftest.$ac_ext <<_ACEOF
4175
#line $LINENO "configure"
4176
#include "confdefs.h"
4177
$ac_includes_default
4179
#include <$ac_header>
4181
rm -f conftest.$ac_objext
4182
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4183
(eval $ac_compile) 2>&5
4185
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186
(exit $ac_status); } &&
4187
{ ac_try='test -s conftest.$ac_objext'
4188
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4191
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192
(exit $ac_status); }; }; then
4193
eval "$as_ac_Header=yes"
4195
echo "$as_me: failed program was:" >&5
4196
cat conftest.$ac_ext >&5
4197
eval "$as_ac_Header=no"
4199
rm -f conftest.$ac_objext conftest.$ac_ext
4201
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4202
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4203
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4204
cat >>confdefs.h <<_ACEOF
4205
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4212
for ac_header in dlfcn.h
4214
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4215
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4216
echo "$as_me:$LINENO: checking for $ac_header" >&5
4217
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4218
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4219
echo $ECHO_N "(cached) $ECHO_C" >&6
4221
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4222
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4224
# Is the header compilable?
4225
echo "$as_me:$LINENO: checking $ac_header usability" >&5
4226
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4227
cat >conftest.$ac_ext <<_ACEOF
4228
#line $LINENO "configure"
4229
#include "confdefs.h"
4230
$ac_includes_default
4231
#include <$ac_header>
4233
rm -f conftest.$ac_objext
4234
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4235
(eval $ac_compile) 2>&5
4237
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238
(exit $ac_status); } &&
4239
{ ac_try='test -s conftest.$ac_objext'
4240
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4243
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244
(exit $ac_status); }; }; then
4245
ac_header_compiler=yes
4247
echo "$as_me: failed program was:" >&5
4248
cat conftest.$ac_ext >&5
4249
ac_header_compiler=no
4251
rm -f conftest.$ac_objext conftest.$ac_ext
4252
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4253
echo "${ECHO_T}$ac_header_compiler" >&6
4255
# Is the header present?
4256
echo "$as_me:$LINENO: checking $ac_header presence" >&5
4257
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4258
cat >conftest.$ac_ext <<_ACEOF
4259
#line $LINENO "configure"
4260
#include "confdefs.h"
4261
#include <$ac_header>
4263
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4264
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4266
egrep -v '^ *\+' conftest.er1 >conftest.err
4268
cat conftest.err >&5
4269
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270
(exit $ac_status); } >/dev/null; then
4271
if test -s conftest.err; then
4272
ac_cpp_err=$ac_c_preproc_warn_flag
4279
if test -z "$ac_cpp_err"; then
4280
ac_header_preproc=yes
4282
echo "$as_me: failed program was:" >&5
4283
cat conftest.$ac_ext >&5
4284
ac_header_preproc=no
4286
rm -f conftest.err conftest.$ac_ext
4287
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4288
echo "${ECHO_T}$ac_header_preproc" >&6
4290
# So? What about this header?
4291
case $ac_header_compiler:$ac_header_preproc in
4293
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4294
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4295
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4296
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4298
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
4299
echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
4300
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4301
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4302
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4303
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4305
echo "$as_me:$LINENO: checking for $ac_header" >&5
4306
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4307
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4308
echo $ECHO_N "(cached) $ECHO_C" >&6
4310
eval "$as_ac_Header=$ac_header_preproc"
4312
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4313
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4316
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4317
cat >>confdefs.h <<_ACEOF
4318
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4325
# Only perform the check for file, if the check method requires it
4326
case $deplibs_check_method in
4328
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4329
echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4330
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4331
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4332
echo $ECHO_N "(cached) $ECHO_C" >&6
4336
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4339
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4342
ac_save_MAGIC_CMD="$MAGIC_CMD"
4343
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4344
ac_dummy="/usr/bin:$PATH"
4345
for ac_dir in $ac_dummy; do
4346
test -z "$ac_dir" && ac_dir=.
4347
if test -f $ac_dir/${ac_tool_prefix}file; then
4348
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4349
if test -n "$file_magic_test_file"; then
4350
case $deplibs_check_method in
4352
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4353
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4354
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4355
egrep "$file_magic_regex" > /dev/null; then
4360
*** Warning: the command libtool uses to detect shared libraries,
4361
*** $file_magic_cmd, produces output that libtool cannot recognize.
4362
*** The result is that libtool may fail to recognize shared libraries
4363
*** as such. This will affect the creation of libtool libraries that
4364
*** depend on shared libraries, but programs linked with such libtool
4365
*** libraries will work regardless of this problem. Nevertheless, you
4366
*** may want to report the problem to your system manager and/or to
4367
*** bug-libtool@gnu.org
4377
MAGIC_CMD="$ac_save_MAGIC_CMD"
4382
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4383
if test -n "$MAGIC_CMD"; then
4384
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4385
echo "${ECHO_T}$MAGIC_CMD" >&6
4387
echo "$as_me:$LINENO: result: no" >&5
4388
echo "${ECHO_T}no" >&6
4391
if test -z "$lt_cv_path_MAGIC_CMD"; then
4392
if test -n "$ac_tool_prefix"; then
4393
echo "$as_me:$LINENO: checking for file" >&5
4394
echo $ECHO_N "checking for file... $ECHO_C" >&6
4395
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4396
echo $ECHO_N "(cached) $ECHO_C" >&6
4400
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4403
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4406
ac_save_MAGIC_CMD="$MAGIC_CMD"
4407
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4408
ac_dummy="/usr/bin:$PATH"
4409
for ac_dir in $ac_dummy; do
4410
test -z "$ac_dir" && ac_dir=.
4411
if test -f $ac_dir/file; then
4412
lt_cv_path_MAGIC_CMD="$ac_dir/file"
4413
if test -n "$file_magic_test_file"; then
4414
case $deplibs_check_method in
4416
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4417
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4418
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4419
egrep "$file_magic_regex" > /dev/null; then
4424
*** Warning: the command libtool uses to detect shared libraries,
4425
*** $file_magic_cmd, produces output that libtool cannot recognize.
4426
*** The result is that libtool may fail to recognize shared libraries
4427
*** as such. This will affect the creation of libtool libraries that
4428
*** depend on shared libraries, but programs linked with such libtool
4429
*** libraries will work regardless of this problem. Nevertheless, you
4430
*** may want to report the problem to your system manager and/or to
4431
*** bug-libtool@gnu.org
4441
MAGIC_CMD="$ac_save_MAGIC_CMD"
4446
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4447
if test -n "$MAGIC_CMD"; then
4448
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4449
echo "${ECHO_T}$MAGIC_CMD" >&6
4451
echo "$as_me:$LINENO: result: no" >&5
4452
echo "${ECHO_T}no" >&6
4464
if test -n "$ac_tool_prefix"; then
4465
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4466
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4467
echo "$as_me:$LINENO: checking for $ac_word" >&5
4468
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4469
if test "${ac_cv_prog_RANLIB+set}" = set; then
4470
echo $ECHO_N "(cached) $ECHO_C" >&6
4472
if test -n "$RANLIB"; then
4473
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4475
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4479
test -z "$as_dir" && as_dir=.
4480
for ac_exec_ext in '' $ac_executable_extensions; do
4481
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4482
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4483
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4491
RANLIB=$ac_cv_prog_RANLIB
4492
if test -n "$RANLIB"; then
4493
echo "$as_me:$LINENO: result: $RANLIB" >&5
4494
echo "${ECHO_T}$RANLIB" >&6
4496
echo "$as_me:$LINENO: result: no" >&5
4497
echo "${ECHO_T}no" >&6
4501
if test -z "$ac_cv_prog_RANLIB"; then
4502
ac_ct_RANLIB=$RANLIB
4503
# Extract the first word of "ranlib", so it can be a program name with args.
4504
set dummy ranlib; ac_word=$2
4505
echo "$as_me:$LINENO: checking for $ac_word" >&5
4506
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4507
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4508
echo $ECHO_N "(cached) $ECHO_C" >&6
4510
if test -n "$ac_ct_RANLIB"; then
4511
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4513
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4517
test -z "$as_dir" && as_dir=.
4518
for ac_exec_ext in '' $ac_executable_extensions; do
4519
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4520
ac_cv_prog_ac_ct_RANLIB="ranlib"
4521
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4527
test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4530
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4531
if test -n "$ac_ct_RANLIB"; then
4532
echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4533
echo "${ECHO_T}$ac_ct_RANLIB" >&6
4535
echo "$as_me:$LINENO: result: no" >&5
4536
echo "${ECHO_T}no" >&6
4539
RANLIB=$ac_ct_RANLIB
4541
RANLIB="$ac_cv_prog_RANLIB"
4544
if test -n "$ac_tool_prefix"; then
4545
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4546
set dummy ${ac_tool_prefix}strip; ac_word=$2
4547
echo "$as_me:$LINENO: checking for $ac_word" >&5
4548
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4549
if test "${ac_cv_prog_STRIP+set}" = set; then
4550
echo $ECHO_N "(cached) $ECHO_C" >&6
4552
if test -n "$STRIP"; then
4553
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4555
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4559
test -z "$as_dir" && as_dir=.
4560
for ac_exec_ext in '' $ac_executable_extensions; do
4561
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4562
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4563
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4571
STRIP=$ac_cv_prog_STRIP
4572
if test -n "$STRIP"; then
4573
echo "$as_me:$LINENO: result: $STRIP" >&5
4574
echo "${ECHO_T}$STRIP" >&6
4576
echo "$as_me:$LINENO: result: no" >&5
4577
echo "${ECHO_T}no" >&6
4581
if test -z "$ac_cv_prog_STRIP"; then
4583
# Extract the first word of "strip", so it can be a program name with args.
4584
set dummy strip; ac_word=$2
4585
echo "$as_me:$LINENO: checking for $ac_word" >&5
4586
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4587
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4588
echo $ECHO_N "(cached) $ECHO_C" >&6
4590
if test -n "$ac_ct_STRIP"; then
4591
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4593
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4597
test -z "$as_dir" && as_dir=.
4598
for ac_exec_ext in '' $ac_executable_extensions; do
4599
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4600
ac_cv_prog_ac_ct_STRIP="strip"
4601
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4607
test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4610
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4611
if test -n "$ac_ct_STRIP"; then
4612
echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4613
echo "${ECHO_T}$ac_ct_STRIP" >&6
4615
echo "$as_me:$LINENO: result: no" >&5
4616
echo "${ECHO_T}no" >&6
4621
STRIP="$ac_cv_prog_STRIP"
4627
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4628
if test "${enable_libtool_lock+set}" = set; then
4629
enableval="$enable_libtool_lock"
4632
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4634
# Some flags need to be propagated to the compiler or linker for good
4638
# Find out which ABI we are using.
4639
echo '#line 4639 "configure"' > conftest.$ac_ext
4640
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4641
(eval $ac_compile) 2>&5
4643
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644
(exit $ac_status); }; then
4645
case `/usr/bin/file conftest.$ac_objext` in
4661
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
4662
SAVE_CFLAGS="$CFLAGS"
4663
CFLAGS="$CFLAGS -belf"
4664
echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4665
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4666
if test "${lt_cv_cc_needs_belf+set}" = set; then
4667
echo $ECHO_N "(cached) $ECHO_C" >&6
4671
ac_cpp='$CPP $CPPFLAGS'
4672
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4673
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4674
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4676
cat >conftest.$ac_ext <<_ACEOF
4677
#line $LINENO "configure"
4678
#include "confdefs.h"
4680
#ifdef F77_DUMMY_MAIN
4684
int F77_DUMMY_MAIN() { return 1; }
4694
rm -f conftest.$ac_objext conftest$ac_exeext
4695
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4696
(eval $ac_link) 2>&5
4698
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4699
(exit $ac_status); } &&
4700
{ ac_try='test -s conftest$ac_exeext'
4701
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4704
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705
(exit $ac_status); }; }; then
4706
lt_cv_cc_needs_belf=yes
4708
echo "$as_me: failed program was:" >&5
4709
cat conftest.$ac_ext >&5
4710
lt_cv_cc_needs_belf=no
4712
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4714
ac_cpp='$CPP $CPPFLAGS'
4715
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4716
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4717
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4720
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4721
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4722
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4723
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4724
CFLAGS="$SAVE_CFLAGS"
4730
# Sed substitution that helps us do robust quoting. It backslashifies
4731
# metacharacters that are still active within double-quoted strings.
4732
Xsed='sed -e s/^X//'
4733
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4735
# Same as above, but do not quote variable references.
4736
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4738
# Sed substitution to delay expansion of an escaped shell variable in a
4739
# double_quote_subst'ed string.
4740
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4746
default_ofile=libtool
4747
can_build_shared=yes
4749
# All known linkers require a `.a' archive for static linking (except M$VC,
4750
# which needs '.lib').
4752
ltmain="$ac_aux_dir/ltmain.sh"
4753
ofile="$default_ofile"
4754
with_gnu_ld="$lt_cv_prog_gnu_ld"
4755
need_locks="$enable_libtool_lock"
4758
old_CFLAGS="$CFLAGS"
4760
# Set sane defaults for various variables
4761
test -z "$AR" && AR=ar
4762
test -z "$AR_FLAGS" && AR_FLAGS=cru
4763
test -z "$AS" && AS=as
4764
test -z "$CC" && CC=cc
4765
test -z "$DLLTOOL" && DLLTOOL=dlltool
4766
test -z "$LD" && LD=ld
4767
test -z "$LN_S" && LN_S="ln -s"
4768
test -z "$MAGIC_CMD" && MAGIC_CMD=file
4769
test -z "$NM" && NM=nm
4770
test -z "$OBJDUMP" && OBJDUMP=objdump
4771
test -z "$RANLIB" && RANLIB=:
4772
test -z "$STRIP" && STRIP=:
4773
test -z "$ac_objext" && ac_objext=o
4775
if test x"$host" != x"$build"; then
4776
ac_tool_prefix=${host_alias}-
4781
# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4784
linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4789
# AIX sometimes has problems with the GCC collect2 program. For some
4790
# reason, if we set the COLLECT_NAMES environment variable, the problems
4791
# vanish in a puff of smoke.
4792
if test "X${COLLECT_NAMES+set}" != Xset; then
4794
export COLLECT_NAMES
4799
# Determine commands to create old-style static archives.
4800
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4801
old_postinstall_cmds='chmod 644 $oldlib'
4802
old_postuninstall_cmds=
4804
if test -n "$RANLIB"; then
4807
old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4810
old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4813
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4816
# Allow CC to be a program name with arguments.
4820
echo "$as_me:$LINENO: checking for objdir" >&5
4821
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
4822
rm -f .libs 2>/dev/null
4823
mkdir .libs 2>/dev/null
4824
if test -d .libs; then
4827
# MS-DOS does not allow filenames that begin with a dot.
4830
rmdir .libs 2>/dev/null
4831
echo "$as_me:$LINENO: result: $objdir" >&5
4832
echo "${ECHO_T}$objdir" >&6
4834
# Check whether --with-pic or --without-pic was given.
4835
if test "${with_pic+set}" = set; then
4841
test -z "$pic_mode" && pic_mode=default
4843
# We assume here that the value for lt_cv_prog_cc_pic will not be cached
4844
# in isolation, and that seeing it set (from the cache) indicates that
4845
# the associated values are set (in the cache) correctly too.
4846
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
4847
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
4848
if test "${lt_cv_prog_cc_pic+set}" = set; then
4849
echo $ECHO_N "(cached) $ECHO_C" >&6
4852
lt_cv_prog_cc_shlib=
4854
lt_cv_prog_cc_static=
4855
lt_cv_prog_cc_no_builtin=
4856
lt_cv_prog_cc_can_build_shared=$can_build_shared
4858
if test "$GCC" = yes; then
4859
lt_cv_prog_cc_wl='-Wl,'
4860
lt_cv_prog_cc_static='-static'
4864
# Below there is a dirty hack to force normal static linking with -ldl
4865
# The problem is because libdl dynamically linked with both libc and
4866
# libC (AIX C++ library), which obviously doesn't included in libraries
4867
# list by gcc. This cause undefined symbols with -static flags.
4868
# This hack allows C programs to be linked with "-static -ldl", but
4869
# not sure about C++ programs.
4870
lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
4873
# FIXME: we need at least 68020 code to build shared libraries, but
4874
# adding the `-m68020' flag to GCC prevents building anything better,
4876
lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
4878
beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
4879
# PIC is the default for these OSes.
4881
darwin* | rhapsody*)
4882
# PIC is the default on this platform
4883
# Common symbols not allowed in MH_DYLIB files
4884
lt_cv_prog_cc_pic='-fno-common'
4886
cygwin* | mingw* | pw32* | os2*)
4887
# This hack is so that the source file can tell whether it is being
4888
# built for inclusion in a dll (and should export symbols for example).
4889
lt_cv_prog_cc_pic='-DDLL_EXPORT'
4892
if test -d /usr/nec; then
4893
lt_cv_prog_cc_pic=-Kconform_pic
4897
lt_cv_prog_cc_pic='-fPIC'
4901
# PORTME Check for PIC flags for the system compiler.
4903
aix3* | aix4* | aix5*)
4904
lt_cv_prog_cc_wl='-Wl,'
4905
# All AIX code is PIC.
4906
if test "$host_cpu" = ia64; then
4907
# AIX 5 now supports IA64 processor
4908
lt_cv_prog_cc_static='-Bstatic'
4910
lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
4914
hpux9* | hpux10* | hpux11*)
4915
# Is there a better lt_cv_prog_cc_static that works with the bundled CC?
4916
lt_cv_prog_cc_wl='-Wl,'
4917
lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
4918
lt_cv_prog_cc_pic='+Z'
4922
lt_cv_prog_cc_wl='-Wl,'
4923
lt_cv_prog_cc_static='-non_shared'
4924
# PIC (with -KPIC) is the default.
4927
cygwin* | mingw* | pw32* | os2*)
4928
# This hack is so that the source file can tell whether it is being
4929
# built for inclusion in a dll (and should export symbols for example).
4930
lt_cv_prog_cc_pic='-DDLL_EXPORT'
4934
lt_cv_prog_cc_pic='-KPIC'
4935
lt_cv_prog_cc_static='-Bstatic'
4938
osf3* | osf4* | osf5*)
4939
# All OSF/1 code is PIC.
4940
lt_cv_prog_cc_wl='-Wl,'
4941
lt_cv_prog_cc_static='-non_shared'
4945
lt_cv_prog_cc_pic='-Kpic'
4946
lt_cv_prog_cc_static='-dn'
4947
lt_cv_prog_cc_shlib='-belf'
4951
lt_cv_prog_cc_pic='-KPIC'
4952
lt_cv_prog_cc_static='-Bstatic'
4953
lt_cv_prog_cc_wl='-Wl,'
4957
lt_cv_prog_cc_pic='-PIC'
4958
lt_cv_prog_cc_static='-Bstatic'
4959
lt_cv_prog_cc_wl='-Qoption ld '
4962
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4963
lt_cv_prog_cc_pic='-KPIC'
4964
lt_cv_prog_cc_static='-Bstatic'
4965
if test "x$host_vendor" = xsni; then
4966
lt_cv_prog_cc_wl='-LD'
4968
lt_cv_prog_cc_wl='-Wl,'
4973
lt_cv_prog_cc_pic='-pic'
4974
lt_cv_prog_cc_static='-Bstatic'
4978
if test -d /usr/nec ;then
4979
lt_cv_prog_cc_pic='-Kconform_pic'
4980
lt_cv_prog_cc_static='-Bstatic'
4985
lt_cv_prog_cc_can_build_shared=no
4992
if test -z "$lt_cv_prog_cc_pic"; then
4993
echo "$as_me:$LINENO: result: none" >&5
4994
echo "${ECHO_T}none" >&6
4996
echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
4997
echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
4999
# Check to make sure the pic_flag actually works.
5000
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5001
echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
5002
if test "${lt_cv_prog_cc_pic_works+set}" = set; then
5003
echo $ECHO_N "(cached) $ECHO_C" >&6
5005
save_CFLAGS="$CFLAGS"
5006
CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5007
cat >conftest.$ac_ext <<_ACEOF
5008
#line $LINENO "configure"
5009
#include "confdefs.h"
5011
#ifdef F77_DUMMY_MAIN
5015
int F77_DUMMY_MAIN() { return 1; }
5025
rm -f conftest.$ac_objext
5026
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5027
(eval $ac_compile) 2>&5
5029
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5030
(exit $ac_status); } &&
5031
{ ac_try='test -s conftest.$ac_objext'
5032
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5035
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036
(exit $ac_status); }; }; then
5038
hpux9* | hpux10* | hpux11*)
5039
# On HP-UX, both CC and GCC only warn that PIC is supported... then
5040
# they create non-PIC objects. So, if there were any warnings, we
5041
# assume that PIC is not supported.
5042
if test -s conftest.err; then
5043
lt_cv_prog_cc_pic_works=no
5045
lt_cv_prog_cc_pic_works=yes
5049
lt_cv_prog_cc_pic_works=yes
5054
echo "$as_me: failed program was:" >&5
5055
cat conftest.$ac_ext >&5
5056
lt_cv_prog_cc_pic_works=no
5059
rm -f conftest.$ac_objext conftest.$ac_ext
5060
CFLAGS="$save_CFLAGS"
5064
if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5066
lt_cv_prog_cc_can_build_shared=no
5068
lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5071
echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
5072
echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
5075
# Check for any special shared library compilation flags.
5076
if test -n "$lt_cv_prog_cc_shlib"; then
5077
{ echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
5078
echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
5079
if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5081
{ echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5082
echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5083
lt_cv_prog_cc_can_build_shared=no
5087
echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5088
echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
5089
if test "${lt_cv_prog_cc_static_works+set}" = set; then
5090
echo $ECHO_N "(cached) $ECHO_C" >&6
5092
lt_cv_prog_cc_static_works=no
5093
save_LDFLAGS="$LDFLAGS"
5094
LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5095
cat >conftest.$ac_ext <<_ACEOF
5096
#line $LINENO "configure"
5097
#include "confdefs.h"
5099
#ifdef F77_DUMMY_MAIN
5103
int F77_DUMMY_MAIN() { return 1; }
5113
rm -f conftest.$ac_objext conftest$ac_exeext
5114
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5115
(eval $ac_link) 2>&5
5117
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118
(exit $ac_status); } &&
5119
{ ac_try='test -s conftest$ac_exeext'
5120
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5123
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5124
(exit $ac_status); }; }; then
5125
lt_cv_prog_cc_static_works=yes
5127
echo "$as_me: failed program was:" >&5
5128
cat conftest.$ac_ext >&5
5130
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5131
LDFLAGS="$save_LDFLAGS"
5135
# Belt *and* braces to stop my trousers falling down:
5136
test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5137
echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
5138
echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
5140
pic_flag="$lt_cv_prog_cc_pic"
5141
special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5142
wl="$lt_cv_prog_cc_wl"
5143
link_static_flag="$lt_cv_prog_cc_static"
5144
no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5145
can_build_shared="$lt_cv_prog_cc_can_build_shared"
5147
# Check to see if options -o and -c are simultaneously supported by compiler
5148
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5149
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5150
if test "${lt_cv_compiler_c_o+set}" = set; then
5151
echo $ECHO_N "(cached) $ECHO_C" >&6
5154
$rm -r conftest 2>/dev/null
5157
echo "int some_variable = 0;" > conftest.$ac_ext
5159
# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5160
# that will create temporary files in the current directory regardless of
5161
# the output directory. Thus, making CWD read-only will cause this test
5162
# to fail, enabling locking or at least warning the user not to do parallel
5165
save_CFLAGS="$CFLAGS"
5166
CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5168
if { (eval echo configure:5168: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5169
# The compiler can only warn and ignore the option if not recognized
5170
# So say no if there are warnings
5171
if test -s out/conftest.err; then
5172
lt_cv_compiler_c_o=no
5174
lt_cv_compiler_c_o=yes
5177
# Append any errors to the config.log.
5178
cat out/conftest.err 1>&5
5179
lt_cv_compiler_c_o=no
5181
CFLAGS="$save_CFLAGS"
5187
$rm -r conftest 2>/dev/null
5191
compiler_c_o=$lt_cv_compiler_c_o
5192
echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5193
echo "${ECHO_T}$compiler_c_o" >&6
5195
if test x"$compiler_c_o" = x"yes"; then
5196
# Check to see if we can write to a .lo
5197
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
5198
echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
5199
if test "${lt_cv_compiler_o_lo+set}" = set; then
5200
echo $ECHO_N "(cached) $ECHO_C" >&6
5203
lt_cv_compiler_o_lo=no
5204
save_CFLAGS="$CFLAGS"
5205
CFLAGS="$CFLAGS -c -o conftest.lo"
5206
save_objext="$ac_objext"
5208
cat >conftest.$ac_ext <<_ACEOF
5209
#line $LINENO "configure"
5210
#include "confdefs.h"
5212
#ifdef F77_DUMMY_MAIN
5216
int F77_DUMMY_MAIN() { return 1; }
5221
int some_variable = 0;
5226
rm -f conftest.$ac_objext
5227
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5228
(eval $ac_compile) 2>&5
5230
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231
(exit $ac_status); } &&
5232
{ ac_try='test -s conftest.$ac_objext'
5233
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5236
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5237
(exit $ac_status); }; }; then
5238
# The compiler can only warn and ignore the option if not recognized
5239
# So say no if there are warnings
5240
if test -s conftest.err; then
5241
lt_cv_compiler_o_lo=no
5243
lt_cv_compiler_o_lo=yes
5247
echo "$as_me: failed program was:" >&5
5248
cat conftest.$ac_ext >&5
5250
rm -f conftest.$ac_objext conftest.$ac_ext
5251
ac_objext="$save_objext"
5252
CFLAGS="$save_CFLAGS"
5256
compiler_o_lo=$lt_cv_compiler_o_lo
5257
echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
5258
echo "${ECHO_T}$compiler_o_lo" >&6
5263
# Check to see if we can do hard links to lock some files if needed
5264
hard_links="nottested"
5265
if test "$compiler_c_o" = no && test "$need_locks" != no; then
5266
# do not overwrite the value of need_locks provided by the user
5267
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5268
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5271
ln conftest.a conftest.b 2>/dev/null && hard_links=no
5273
ln conftest.a conftest.b 2>&5 || hard_links=no
5274
ln conftest.a conftest.b 2>/dev/null && hard_links=no
5275
echo "$as_me:$LINENO: result: $hard_links" >&5
5276
echo "${ECHO_T}$hard_links" >&6
5277
if test "$hard_links" = no; then
5278
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5279
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5286
if test "$GCC" = yes; then
5287
# Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5288
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5289
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5290
echo "int some_variable = 0;" > conftest.$ac_ext
5291
save_CFLAGS="$CFLAGS"
5292
CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5293
compiler_rtti_exceptions=no
5294
cat >conftest.$ac_ext <<_ACEOF
5295
#line $LINENO "configure"
5296
#include "confdefs.h"
5298
#ifdef F77_DUMMY_MAIN
5302
int F77_DUMMY_MAIN() { return 1; }
5307
int some_variable = 0;
5312
rm -f conftest.$ac_objext
5313
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5314
(eval $ac_compile) 2>&5
5316
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5317
(exit $ac_status); } &&
5318
{ ac_try='test -s conftest.$ac_objext'
5319
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5322
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323
(exit $ac_status); }; }; then
5324
# The compiler can only warn and ignore the option if not recognized
5325
# So say no if there are warnings
5326
if test -s conftest.err; then
5327
compiler_rtti_exceptions=no
5329
compiler_rtti_exceptions=yes
5333
echo "$as_me: failed program was:" >&5
5334
cat conftest.$ac_ext >&5
5336
rm -f conftest.$ac_objext conftest.$ac_ext
5337
CFLAGS="$save_CFLAGS"
5338
echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5339
echo "${ECHO_T}$compiler_rtti_exceptions" >&6
5341
if test "$compiler_rtti_exceptions" = "yes"; then
5342
no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5344
no_builtin_flag=' -fno-builtin'
5348
# See if the linker supports building shared libraries.
5349
echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5350
echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5352
allow_undefined_flag=
5354
need_lib_prefix=unknown
5355
need_version=unknown
5356
# when you set need_version to no, make sure it does not cause -set_version
5357
# flags to be left without arguments
5359
archive_expsym_cmds=
5360
old_archive_from_new_cmds=
5361
old_archive_from_expsyms_cmds=
5362
export_dynamic_flag_spec=
5363
whole_archive_flag_spec=
5364
thread_safe_flag_spec=
5365
hardcode_into_libs=no
5366
hardcode_libdir_flag_spec=
5367
hardcode_libdir_separator=
5370
hardcode_shlibpath_var=unsupported
5372
link_all_deplibs=unknown
5373
always_export_symbols=no
5374
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5375
# include_expsyms should be a list of space-separated symbols to be *always*
5376
# included in the symbol list
5378
# exclude_expsyms can be an egrep regular expression of symbols to exclude
5379
# it will be wrapped by ` (' and `)$', so one must not match beginning or
5380
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5381
# as well as any symbol that contains `d'.
5382
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5383
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5384
# platforms (ab)use it in PIC code, but their linkers get confused if
5385
# the symbol is explicitly referenced. Since portable code cannot
5386
# rely on this symbol name, it's probably fine to never include it in
5387
# preloaded symbol tables.
5388
extract_expsyms_cmds=
5391
cygwin* | mingw* | pw32*)
5392
# FIXME: the MSVC++ port hasn't been tested in a loooong time
5393
# When not using gcc, we currently assume that we are using
5394
# Microsoft Visual C++.
5395
if test "$GCC" != yes; then
5405
if test "$with_gnu_ld" = yes; then
5406
# If archive_cmds runs LD, not CC, wlarc should be empty
5409
# See if GNU ld supports shared libraries.
5411
aix3* | aix4* | aix5*)
5412
# On AIX, the GNU linker is very broken
5413
# Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5417
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
5418
*** to be unable to reliably create shared libraries on AIX.
5419
*** Therefore, libtool is disabling shared libraries support. If you
5420
*** really care for shared libraries, you may want to modify your PATH
5421
*** so that a non-GNU linker is found, and then restart.
5427
archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
5428
hardcode_libdir_flag_spec='-L$libdir'
5429
hardcode_minus_L=yes
5431
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5432
# that the semantics of dynamic libraries on AmigaOS, at least up
5433
# to version 4, is to share data among multiple programs linked
5434
# with the same dynamic library. Since this doesn't match the
5435
# behavior of shared libraries on other platforms, we can use
5441
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5442
allow_undefined_flag=unsupported
5443
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5444
# support --undefined. This deserves some investigation. FIXME
5445
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5451
cygwin* | mingw* | pw32*)
5452
# hardcode_libdir_flag_spec is actually meaningless, as there is
5453
# no search path for DLLs.
5454
hardcode_libdir_flag_spec='-L$libdir'
5455
allow_undefined_flag=unsupported
5456
always_export_symbols=yes
5458
extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5459
sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5460
test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5461
if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5462
else $CC -o impgen impgen.c ; fi)~
5463
$output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5465
old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5467
# cygwin and mingw dlls have different entry points and sets of symbols
5469
# FIXME: what about values for MSVC?
5470
dll_entry=__cygwin_dll_entry@12
5471
dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5475
dll_entry=_DllMainCRTStartup@12
5476
dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5480
# mingw and cygwin differ, and it's simplest to just exclude the union
5481
# of the two symbol sets.
5482
dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5484
# recent cygwin and mingw systems supply a stub DllMain which the user
5485
# can override, but on older systems we have to supply one (in ltdll.c)
5486
if test "x$lt_cv_need_dllmain" = "xyes"; then
5487
ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5488
ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
5489
test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5495
# Extract the symbol export list from an `--export-all' def file,
5496
# then regenerate the def file from the symbol export list, so that
5497
# the compiled dll only exports the symbol export list.
5498
# Be careful not to strip the DATA tag left be newer dlltools.
5499
export_symbols_cmds="$ltdll_cmds"'
5500
$DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5501
sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5503
# If the export-symbols file already is a .def file (1st line
5504
# is EXPORTS), use it as is.
5505
# If DATA tags from a recent dlltool are present, honour them!
5506
archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
5507
cp $export_symbols $output_objdir/$soname-def;
5509
echo EXPORTS > $output_objdir/$soname-def;
5511
cat $export_symbols | while read symbol; do
5514
2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5515
*) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5517
_lt_hint=`expr 1 + \$_lt_hint`;
5521
$CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
5522
$DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
5523
$CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
5524
$DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
5525
$CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5529
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5530
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5533
archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5534
archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5539
if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5543
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
5544
*** create shared libraries on Solaris systems. Therefore, libtool
5545
*** is disabling shared libraries support. We urge you to upgrade GNU
5546
*** binutils to release 2.9.1 or newer. Another option is to modify
5547
*** your PATH or compiler configuration so that the native linker is
5548
*** used, and then restart.
5551
elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5552
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5553
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5560
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5563
hardcode_shlibpath_var=no
5567
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5568
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5569
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5576
if test "$ld_shlibs" = yes; then
5577
runpath_var=LD_RUN_PATH
5578
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5579
export_dynamic_flag_spec='${wl}--export-dynamic'
5581
cygwin* | mingw* | pw32*)
5582
# dlltool doesn't understand --whole-archive et. al.
5583
whole_archive_flag_spec=
5586
# ancient GNU ld didn't support --whole-archive et. al.
5587
if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5588
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5590
whole_archive_flag_spec=
5596
# PORTME fill in a description of your system's linker (not GNU ld)
5599
allow_undefined_flag=unsupported
5600
always_export_symbols=yes
5601
archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
5602
# Note: this linker hardcodes the directories in LIBPATH if there
5603
# are no directories specified by -L.
5604
hardcode_minus_L=yes
5605
if test "$GCC" = yes && test -z "$link_static_flag"; then
5606
# Neither direct hardcoding nor static linking is supported with a
5608
hardcode_direct=unsupported
5613
if test "$host_cpu" = ia64; then
5614
# On IA64, the linker does run time linking by default, so we don't
5615
# have to do anything special.
5616
aix_use_runtimelinking=no
5617
exp_sym_flag='-Bexport'
5620
aix_use_runtimelinking=no
5622
# Test if we are trying to use run time linking or normal
5623
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
5624
# need to do runtime linking.
5625
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5626
for ld_flag in $LDFLAGS; do
5627
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5628
aix_use_runtimelinking=yes
5634
exp_sym_flag='-bexport'
5635
no_entry_flag='-bnoentry'
5638
# When large executables or shared objects are built, AIX ld can
5639
# have problems creating the table of contents. If linking a library
5640
# or program results in "error TOC overflow" add -mminimal-toc to
5641
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5642
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5646
hardcode_libdir_separator=':'
5647
if test "$GCC" = yes; then
5648
case $host_os in aix4.[012]|aix4.[012].*)
5649
collect2name=`${CC} -print-prog-name=collect2`
5650
if test -f "$collect2name" && \
5651
strings "$collect2name" | grep resolve_lib_name >/dev/null
5653
# We have reworked collect2
5656
# We have old collect2
5657
hardcode_direct=unsupported
5658
# It fails to find uninstalled libraries when the uninstalled
5659
# path is not listed in the libpath. Setting hardcode_minus_L
5660
# to unsupported forces relinking
5661
hardcode_minus_L=yes
5662
hardcode_libdir_flag_spec='-L$libdir'
5663
hardcode_libdir_separator=
5667
shared_flag='-shared'
5670
if test "$host_cpu" = ia64; then
5671
shared_flag='${wl}-G'
5673
if test "$aix_use_runtimelinking" = yes; then
5674
shared_flag='${wl}-G'
5676
shared_flag='${wl}-bM:SRE'
5681
# It seems that -bexpall can do strange things, so it is better to
5682
# generate a list of symbols to export.
5683
always_export_symbols=yes
5684
if test "$aix_use_runtimelinking" = yes; then
5685
# Warning - without using the other runtime loading flags (-brtl),
5686
# -berok will link without error, but may produce a broken library.
5687
allow_undefined_flag='-berok'
5688
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5689
archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5691
if test "$host_cpu" = ia64; then
5692
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5693
allow_undefined_flag="-z nodefs"
5694
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
5696
hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5697
# Warning - without using the other run time loading flags,
5698
# -berok will link without error, but may produce a broken library.
5699
allow_undefined_flag='${wl}-berok'
5700
# This is a bit strange, but is similar to how AIX traditionally builds
5701
# it's shared libraries.
5702
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
5708
archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
5709
hardcode_libdir_flag_spec='-L$libdir'
5710
hardcode_minus_L=yes
5711
# see comment about different semantics on the GNU ld section
5715
cygwin* | mingw* | pw32*)
5716
# When not using gcc, we currently assume that we are using
5717
# Microsoft Visual C++.
5718
# hardcode_libdir_flag_spec is actually meaningless, as there is
5719
# no search path for DLLs.
5720
hardcode_libdir_flag_spec=' '
5721
allow_undefined_flag=unsupported
5722
# Tell ltmain to make .lib files, not .a files.
5724
# FIXME: Setting linknames here is a bad hack.
5725
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5726
# The linker will automatically build a .lib file if we build a DLL.
5727
old_archive_from_new_cmds='true'
5728
# FIXME: Should let the user specify the lib program.
5729
old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5730
fix_srcfile_path='`cygpath -w "$srcfile"`'
5733
darwin* | rhapsody*)
5735
rhapsody* | darwin1.[012])
5736
allow_undefined_flag='-undefined suppress'
5739
allow_undefined_flag='-flat_namespace -undefined suppress'
5742
# FIXME: Relying on posixy $() will cause problems for
5743
# cross-compilation, but unfortunately the echo tests do not
5744
# yet detect zsh echo's removal of \ escapes.
5745
archive_cmds='$nonopt $(test "x$module" = xyes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
5746
# We need to add '_' to the symbols in $export_symbols first
5747
#archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5749
hardcode_shlibpath_var=no
5750
whole_archive_flag_spec='-all_load $convenience'
5757
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5758
# support. Future versions do this automatically, but an explicit c++rt0.o
5759
# does not break anything, and helps significantly (at the cost of a little
5762
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5763
hardcode_libdir_flag_spec='-R$libdir'
5765
hardcode_shlibpath_var=no
5768
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
5770
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5772
hardcode_minus_L=yes
5773
hardcode_shlibpath_var=no
5776
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5778
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5779
hardcode_libdir_flag_spec='-R$libdir'
5781
hardcode_shlibpath_var=no
5784
hpux9* | hpux10* | hpux11*)
5786
hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
5787
*) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5789
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5790
hardcode_libdir_separator=:
5792
hardcode_minus_L=yes # Not in the search PATH, but as the default
5793
# location of the library.
5794
export_dynamic_flag_spec='${wl}-E'
5798
if test "$GCC" = yes; then
5799
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5801
archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5803
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5804
hardcode_libdir_separator=:
5805
link_all_deplibs=yes
5809
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5810
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5812
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5814
hardcode_libdir_flag_spec='-R$libdir'
5816
hardcode_shlibpath_var=no
5820
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5822
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5823
hardcode_libdir_separator=:
5824
hardcode_shlibpath_var=no
5829
hardcode_shlibpath_var=no
5830
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5831
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5832
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5833
export_dynamic_flag_spec='${wl}-E'
5836
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5837
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5838
hardcode_libdir_flag_spec='-R$libdir'
5841
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5842
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5849
hardcode_libdir_flag_spec='-L$libdir'
5850
hardcode_minus_L=yes
5851
allow_undefined_flag=unsupported
5852
archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
5853
old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5857
if test "$GCC" = yes; then
5858
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5859
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5861
allow_undefined_flag=' -expect_unresolved \*'
5862
archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5864
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5865
hardcode_libdir_separator=:
5868
osf4* | osf5*) # as osf3* with the addition of -msym flag
5869
if test "$GCC" = yes; then
5870
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5871
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5872
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5874
allow_undefined_flag=' -expect_unresolved \*'
5875
archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5876
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5877
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
5879
#Both c and cxx compiler support -rpath directly
5880
hardcode_libdir_flag_spec='-rpath $libdir'
5882
hardcode_libdir_separator=:
5886
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5887
hardcode_shlibpath_var=no
5888
runpath_var=LD_RUN_PATH
5889
hardcode_runpath_var=yes
5890
export_dynamic_flag_spec='${wl}-Bexport'
5894
# gcc --version < 3.0 without binutils cannot create self contained
5895
# shared libraries reliably, requiring libgcc.a to resolve some of
5896
# the object symbols generated in some cases. Libraries that use
5897
# assert need libgcc.a to resolve __eprintf, for example. Linking
5898
# a copy of libgcc.a into every shared library to guarantee resolving
5899
# such symbols causes other problems: According to Tim Van Holder
5900
# <tim.van.holder@pandora.be>, C++ libraries end up with a separate
5901
# (to the application) exception stack for one thing.
5902
no_undefined_flag=' -z defs'
5903
if test "$GCC" = yes; then
5904
case `$CC --version 2>/dev/null` in
5908
*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
5909
*** create self contained shared libraries on Solaris systems, without
5910
*** introducing a dependency on libgcc.a. Therefore, libtool is disabling
5911
*** -no-undefined support, which will at least allow you to build shared
5912
*** libraries. However, you may find that when you link such libraries
5913
*** into an application without using GCC, you have to manually add
5914
*** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
5915
*** upgrade to a newer version of GCC. Another option is to rebuild your
5916
*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
5923
# $CC -shared without GNU ld will not create a library from C++
5924
# object files and a static libstdc++, better avoid it by now
5925
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5926
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5927
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5928
hardcode_libdir_flag_spec='-R$libdir'
5929
hardcode_shlibpath_var=no
5931
solaris2.[0-5] | solaris2.[0-5].*) ;;
5932
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
5933
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5935
link_all_deplibs=yes
5939
if test "x$host_vendor" = xsequent; then
5940
# Use $CC to link under sequent, because it throws in some extra .o
5941
# files that make .init and .fini sections work.
5942
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5944
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5946
hardcode_libdir_flag_spec='-L$libdir'
5948
hardcode_minus_L=yes
5949
hardcode_shlibpath_var=no
5953
if test "x$host_vendor" = xsno; then
5954
archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
5955
hardcode_direct=yes # is this really true???
5957
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5958
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5960
runpath_var='LD_RUN_PATH'
5961
hardcode_shlibpath_var=no
5965
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5966
hardcode_shlibpath_var=no
5967
export_dynamic_flag_spec='-Bexport'
5971
no_undefined_flag=' -z text'
5972
# $CC -shared without GNU ld will not create a library from C++
5973
# object files and a static libstdc++, better avoid it by now
5974
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5975
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5976
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5977
hardcode_libdir_flag_spec=
5978
hardcode_shlibpath_var=no
5979
runpath_var='LD_RUN_PATH'
5983
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5984
hardcode_libdir_flag_spec='-L$libdir'
5985
hardcode_shlibpath_var=no
5989
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5990
hardcode_libdir_flag_spec='-L$libdir'
5991
hardcode_shlibpath_var=no
5995
if test -d /usr/nec; then
5996
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5997
hardcode_shlibpath_var=no
5998
runpath_var=LD_RUN_PATH
5999
hardcode_runpath_var=yes
6005
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6008
hardcode_shlibpath_var=no
6009
hardcode_runpath_var=yes
6010
runpath_var=LD_RUN_PATH
6013
sysv5uw7* | unixware7*)
6014
no_undefined_flag='${wl}-z ${wl}text'
6015
if test "$GCC" = yes; then
6016
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6018
archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6020
runpath_var='LD_RUN_PATH'
6021
hardcode_shlibpath_var=no
6029
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6030
echo "${ECHO_T}$ld_shlibs" >&6
6031
test "$ld_shlibs" = no && can_build_shared=no
6033
# Check hardcoding attributes.
6034
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6035
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6037
if test -n "$hardcode_libdir_flag_spec" || \
6038
test -n "$runpath_var"; then
6040
# We can hardcode non-existant directories.
6041
if test "$hardcode_direct" != no &&
6042
# If the only mechanism to avoid hardcoding is shlibpath_var, we
6043
# have to relink, otherwise we might link with an installed library
6044
# when we should be linking with a yet-to-be-installed one
6045
## test "$hardcode_shlibpath_var" != no &&
6046
test "$hardcode_minus_L" != no; then
6047
# Linking always hardcodes the temporary library directory.
6048
hardcode_action=relink
6050
# We can link without hardcoding, and we can hardcode nonexisting dirs.
6051
hardcode_action=immediate
6054
# We cannot hardcode anything, or else we can only hardcode existing
6056
hardcode_action=unsupported
6058
echo "$as_me:$LINENO: result: $hardcode_action" >&5
6059
echo "${ECHO_T}$hardcode_action" >&6
6063
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6064
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6065
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6066
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6067
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6068
echo "$as_me:$LINENO: result: yes" >&5
6069
echo "${ECHO_T}yes" >&6
6071
echo "$as_me:$LINENO: result: no" >&5
6072
echo "${ECHO_T}no" >&6
6075
reload_cmds='$LD$reload_flag -o $output$reload_objs'
6076
test -z "$deplibs_check_method" && deplibs_check_method=unknown
6078
# PORTME Fill in your ld.so characteristics
6079
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6080
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6082
libname_spec='lib$name'
6089
shlibpath_overrides_runpath=unknown
6091
dynamic_linker="$host_os ld.so"
6092
sys_lib_dlsearch_path_spec="/lib /usr/lib"
6093
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6098
library_names_spec='${libname}${release}.so$versuffix $libname.a'
6099
shlibpath_var=LIBPATH
6101
# AIX has no versioning support, so we append a major version to the name.
6102
soname_spec='${libname}${release}.so$major'
6107
if test "$host_cpu" = ia64; then
6108
# AIX 5 supports IA64
6109
library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6110
shlibpath_var=LD_LIBRARY_PATH
6112
# With GCC up to 2.95.x, collect2 would create an import file
6113
# for dependence libraries. The import file would start with
6114
# the line `#! .'. This would cause the generated library to
6115
# depend on `.', always an invalid library. This was fixed in
6116
# development snapshots of GCC prior to 3.0.
6118
aix4 | aix4.[01] | aix4.[01].*)
6119
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6121
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6128
# AIX (on Power*) has no versioning support, so currently we can
6129
# not hardcode correct soname into executable. Probably we can
6130
# add versioning support to collect2, so additional links can
6131
# be useful in future.
6132
if test "$aix_use_runtimelinking" = yes; then
6133
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
6134
# instead of lib<name>.a to let people know that these are not
6135
# typical AIX shared libraries.
6136
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6138
# We preserve .a as extension for shared libraries through AIX4.2
6139
# and later when we are not doing run time linking.
6140
library_names_spec='${libname}${release}.a $libname.a'
6141
soname_spec='${libname}${release}.so$major'
6143
shlibpath_var=LIBPATH
6148
library_names_spec='$libname.ixlibrary $libname.a'
6149
# Create ${libname}_ixlibrary.a entries in /sys/libs.
6150
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
6154
library_names_spec='${libname}.so'
6155
dynamic_linker="$host_os ld.so"
6156
shlibpath_var=LIBRARY_PATH
6162
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6163
soname_spec='${libname}${release}.so$major'
6164
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6165
shlibpath_var=LD_LIBRARY_PATH
6166
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6167
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6168
export_dynamic_flag_spec=-rdynamic
6169
# the default ld.so.conf also contains /usr/contrib/lib and
6170
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6171
# libtool to hard-code these into programs
6174
cygwin* | mingw* | pw32*)
6175
version_type=windows
6178
case $GCC,$host_os in
6180
library_names_spec='$libname.dll.a'
6181
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6182
postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6183
dldir=$destdir/`dirname \$dlpath`~
6184
test -d \$dldir || mkdir -p \$dldir~
6185
$install_prog .libs/$dlname \$dldir/$dlname'
6186
postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6187
dlpath=$dir/\$dldll~
6191
library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6192
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
6195
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6198
library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6201
dynamic_linker='Win32 ld.exe'
6202
# FIXME: first we should search . and the directory the executable is in
6206
darwin* | rhapsody*)
6207
dynamic_linker="$host_os dyld"
6211
# FIXME: Relying on posixy $() will cause problems for
6212
# cross-compilation, but unfortunately the echo tests do not
6213
# yet detect zsh echo's removal of \ escapes.
6214
library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
6215
soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6216
shlibpath_overrides_runpath=yes
6217
shlibpath_var=DYLD_LIBRARY_PATH
6225
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6226
version_type=freebsd-$objformat
6227
case $version_type in
6229
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6234
library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6238
shlibpath_var=LD_LIBRARY_PATH
6241
shlibpath_overrides_runpath=yes
6244
shlibpath_overrides_runpath=no
6245
hardcode_into_libs=yes
6254
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6255
soname_spec='${libname}${release}.so$major'
6256
shlibpath_var=LD_LIBRARY_PATH
6257
hardcode_into_libs=yes
6260
hpux9* | hpux10* | hpux11*)
6261
# Give a soname corresponding to the major version so that dld.sl refuses to
6262
# link against other versions.
6263
dynamic_linker="$host_os dld.sl"
6267
shlibpath_var=SHLIB_PATH
6268
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6269
library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6270
soname_spec='${libname}${release}.sl$major'
6271
# HP-UX runs *really* slowly unless shared libraries are mode 555.
6272
postinstall_cmds='chmod 555 $lib'
6279
soname_spec='${libname}${release}.so$major'
6280
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6286
case $LD in # libtool.m4 will add one of these switches to LD
6287
*-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6288
*-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6289
*-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6290
*) libsuff= shlibsuff= libmagic=never-match;;
6294
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6295
shlibpath_overrides_runpath=no
6296
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6297
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6300
# No shared lib support for Linux oldld, aout, or coff.
6301
linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6305
# This must be Linux ELF.
6310
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6311
soname_spec='${libname}${release}.so$major'
6312
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6313
shlibpath_var=LD_LIBRARY_PATH
6314
shlibpath_overrides_runpath=no
6315
# This implies no fast_install, which is unacceptable.
6316
# Some rework will be needed to allow for fast_install
6317
# before this can be enabled.
6318
hardcode_into_libs=yes
6320
# We used to test for /lib/ld.so.1 and disable shared libraries on
6321
# powerpc, because MkLinux only supported shared libraries with the
6322
# GNU dynamic linker. Since this was broken with cross compilers,
6323
# most powerpc-linux boxes support dynamic linking these days and
6324
# people can always --disable-shared, the test was removed, and we
6325
# assume the GNU/Linux dynamic linker is in use.
6326
dynamic_linker='GNU/Linux ld.so'
6333
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6334
library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6335
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6336
dynamic_linker='NetBSD (a.out) ld.so'
6338
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6339
soname_spec='${libname}${release}.so$major'
6340
dynamic_linker='NetBSD ld.elf_so'
6342
shlibpath_var=LD_LIBRARY_PATH
6343
shlibpath_overrides_runpath=yes
6344
hardcode_into_libs=yes
6349
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6350
shlibpath_var=LD_LIBRARY_PATH
6351
shlibpath_overrides_runpath=yes
6358
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6360
openbsd2.[89] | openbsd2.[89].*)
6361
shlibpath_overrides_runpath=no
6364
shlibpath_overrides_runpath=yes
6368
shlibpath_overrides_runpath=yes
6370
library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6371
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6372
shlibpath_var=LD_LIBRARY_PATH
6376
libname_spec='$name'
6378
library_names_spec='$libname.dll $libname.a'
6379
dynamic_linker='OS/2 ld.exe'
6380
shlibpath_var=LIBPATH
6383
osf3* | osf4* | osf5*)
6386
soname_spec='${libname}${release}.so'
6387
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6388
shlibpath_var=LD_LIBRARY_PATH
6389
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6390
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6395
soname_spec='${libname}${release}.so$major'
6396
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6397
shlibpath_var=LD_LIBRARY_PATH
6404
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6405
soname_spec='${libname}${release}.so$major'
6406
shlibpath_var=LD_LIBRARY_PATH
6407
shlibpath_overrides_runpath=yes
6408
hardcode_into_libs=yes
6409
# ldd complains unless libraries are executable
6410
postinstall_cmds='chmod +x $lib'
6415
library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6416
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6417
shlibpath_var=LD_LIBRARY_PATH
6418
shlibpath_overrides_runpath=yes
6419
if test "$with_gnu_ld" = yes; then
6425
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6427
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6428
soname_spec='${libname}${release}.so$major'
6429
shlibpath_var=LD_LIBRARY_PATH
6430
case $host_vendor in
6432
shlibpath_overrides_runpath=no
6437
shlibpath_overrides_runpath=no
6438
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6445
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6446
soname_spec='${libname}${release}.so$major'
6447
shlibpath_var=LD_LIBRARY_PATH
6454
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6455
soname_spec='${libname}${release}.so$major'
6456
shlibpath_var=LD_LIBRARY_PATH
6460
if test -d /usr/nec ;then
6462
library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6463
soname_spec='$libname.so.$major'
6464
shlibpath_var=LD_LIBRARY_PATH
6472
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6473
echo "${ECHO_T}$dynamic_linker" >&6
6474
test "$dynamic_linker" = no && can_build_shared=no
6476
# Report the final consequences.
6477
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6478
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6479
echo "$as_me:$LINENO: result: $can_build_shared" >&5
6480
echo "${ECHO_T}$can_build_shared" >&6
6482
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
6483
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
6484
test "$can_build_shared" = "no" && enable_shared=no
6486
# On AIX, shared libraries and static libraries use the same namespace, and
6487
# are all built from PIC.
6490
test "$enable_shared" = yes && enable_static=no
6491
if test -n "$RANLIB"; then
6492
archive_cmds="$archive_cmds~\$RANLIB \$lib"
6493
postinstall_cmds='$RANLIB $lib'
6498
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6499
test "$enable_shared" = yes && enable_static=no
6503
echo "$as_me:$LINENO: result: $enable_shared" >&5
6504
echo "${ECHO_T}$enable_shared" >&6
6506
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
6507
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
6508
# Make sure either enable_shared or enable_static is yes.
6509
test "$enable_shared" = yes || enable_static=yes
6510
echo "$as_me:$LINENO: result: $enable_static" >&5
6511
echo "${ECHO_T}$enable_static" >&6
6513
if test "$hardcode_action" = relink; then
6514
# Fast installation is not supported
6515
enable_fast_install=no
6516
elif test "$shlibpath_overrides_runpath" = yes ||
6517
test "$enable_shared" = no; then
6518
# Fast installation is not necessary
6519
enable_fast_install=needless
6522
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6523
if test "$GCC" = yes; then
6524
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6527
if test "x$enable_dlopen" != xyes; then
6528
enable_dlopen=unknown
6529
enable_dlopen_self=unknown
6530
enable_dlopen_self_static=unknown
6537
lt_cv_dlopen="load_add_on"
6539
lt_cv_dlopen_self=yes
6542
cygwin* | mingw* | pw32*)
6543
lt_cv_dlopen="LoadLibrary"
6548
echo "$as_me:$LINENO: checking for shl_load" >&5
6549
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
6550
if test "${ac_cv_func_shl_load+set}" = set; then
6551
echo $ECHO_N "(cached) $ECHO_C" >&6
6553
cat >conftest.$ac_ext <<_ACEOF
6554
#line $LINENO "configure"
6555
#include "confdefs.h"
6556
/* System header to define __stub macros and hopefully few prototypes,
6557
which can conflict with char shl_load (); below. */
6559
/* Override any gcc2 internal prototype to avoid an error. */
6563
/* We use char because int might match the return type of a gcc2
6564
builtin and then its argument prototype would still apply. */
6568
#ifdef F77_DUMMY_MAIN
6572
int F77_DUMMY_MAIN() { return 1; }
6577
/* The GNU C library defines this for functions which it implements
6578
to always fail with ENOSYS. Some functions are actually named
6579
something starting with __ and the normal name is an alias. */
6580
#if defined (__stub_shl_load) || defined (__stub___shl_load)
6590
rm -f conftest.$ac_objext conftest$ac_exeext
6591
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6592
(eval $ac_link) 2>&5
6594
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6595
(exit $ac_status); } &&
6596
{ ac_try='test -s conftest$ac_exeext'
6597
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6600
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601
(exit $ac_status); }; }; then
6602
ac_cv_func_shl_load=yes
6604
echo "$as_me: failed program was:" >&5
6605
cat conftest.$ac_ext >&5
6606
ac_cv_func_shl_load=no
6608
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6610
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
6611
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
6612
if test $ac_cv_func_shl_load = yes; then
6613
lt_cv_dlopen="shl_load"
6615
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
6616
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
6617
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
6618
echo $ECHO_N "(cached) $ECHO_C" >&6
6620
ac_check_lib_save_LIBS=$LIBS
6622
cat >conftest.$ac_ext <<_ACEOF
6623
#line $LINENO "configure"
6624
#include "confdefs.h"
6626
/* Override any gcc2 internal prototype to avoid an error. */
6630
/* We use char because int might match the return type of a gcc2
6631
builtin and then its argument prototype would still apply. */
6633
#ifdef F77_DUMMY_MAIN
6637
int F77_DUMMY_MAIN() { return 1; }
6647
rm -f conftest.$ac_objext conftest$ac_exeext
6648
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6649
(eval $ac_link) 2>&5
6651
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6652
(exit $ac_status); } &&
6653
{ ac_try='test -s conftest$ac_exeext'
6654
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6657
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6658
(exit $ac_status); }; }; then
6659
ac_cv_lib_dld_shl_load=yes
6661
echo "$as_me: failed program was:" >&5
6662
cat conftest.$ac_ext >&5
6663
ac_cv_lib_dld_shl_load=no
6665
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6666
LIBS=$ac_check_lib_save_LIBS
6668
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
6669
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
6670
if test $ac_cv_lib_dld_shl_load = yes; then
6671
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6673
echo "$as_me:$LINENO: checking for dlopen" >&5
6674
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
6675
if test "${ac_cv_func_dlopen+set}" = set; then
6676
echo $ECHO_N "(cached) $ECHO_C" >&6
6678
cat >conftest.$ac_ext <<_ACEOF
6679
#line $LINENO "configure"
6680
#include "confdefs.h"
6681
/* System header to define __stub macros and hopefully few prototypes,
6682
which can conflict with char dlopen (); below. */
6684
/* Override any gcc2 internal prototype to avoid an error. */
6688
/* We use char because int might match the return type of a gcc2
6689
builtin and then its argument prototype would still apply. */
6693
#ifdef F77_DUMMY_MAIN
6697
int F77_DUMMY_MAIN() { return 1; }
6702
/* The GNU C library defines this for functions which it implements
6703
to always fail with ENOSYS. Some functions are actually named
6704
something starting with __ and the normal name is an alias. */
6705
#if defined (__stub_dlopen) || defined (__stub___dlopen)
6715
rm -f conftest.$ac_objext conftest$ac_exeext
6716
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6717
(eval $ac_link) 2>&5
6719
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6720
(exit $ac_status); } &&
6721
{ ac_try='test -s conftest$ac_exeext'
6722
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6725
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6726
(exit $ac_status); }; }; then
6727
ac_cv_func_dlopen=yes
6729
echo "$as_me: failed program was:" >&5
6730
cat conftest.$ac_ext >&5
6731
ac_cv_func_dlopen=no
6733
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6735
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
6736
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
6737
if test $ac_cv_func_dlopen = yes; then
6738
lt_cv_dlopen="dlopen"
6740
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
6741
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
6742
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6743
echo $ECHO_N "(cached) $ECHO_C" >&6
6745
ac_check_lib_save_LIBS=$LIBS
6747
cat >conftest.$ac_ext <<_ACEOF
6748
#line $LINENO "configure"
6749
#include "confdefs.h"
6751
/* Override any gcc2 internal prototype to avoid an error. */
6755
/* We use char because int might match the return type of a gcc2
6756
builtin and then its argument prototype would still apply. */
6758
#ifdef F77_DUMMY_MAIN
6762
int F77_DUMMY_MAIN() { return 1; }
6772
rm -f conftest.$ac_objext conftest$ac_exeext
6773
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6774
(eval $ac_link) 2>&5
6776
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6777
(exit $ac_status); } &&
6778
{ ac_try='test -s conftest$ac_exeext'
6779
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6782
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6783
(exit $ac_status); }; }; then
6784
ac_cv_lib_dl_dlopen=yes
6786
echo "$as_me: failed program was:" >&5
6787
cat conftest.$ac_ext >&5
6788
ac_cv_lib_dl_dlopen=no
6790
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6791
LIBS=$ac_check_lib_save_LIBS
6793
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
6794
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
6795
if test $ac_cv_lib_dl_dlopen = yes; then
6796
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6798
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
6799
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
6800
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
6801
echo $ECHO_N "(cached) $ECHO_C" >&6
6803
ac_check_lib_save_LIBS=$LIBS
6805
cat >conftest.$ac_ext <<_ACEOF
6806
#line $LINENO "configure"
6807
#include "confdefs.h"
6809
/* Override any gcc2 internal prototype to avoid an error. */
6813
/* We use char because int might match the return type of a gcc2
6814
builtin and then its argument prototype would still apply. */
6816
#ifdef F77_DUMMY_MAIN
6820
int F77_DUMMY_MAIN() { return 1; }
6830
rm -f conftest.$ac_objext conftest$ac_exeext
6831
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6832
(eval $ac_link) 2>&5
6834
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6835
(exit $ac_status); } &&
6836
{ ac_try='test -s conftest$ac_exeext'
6837
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6840
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6841
(exit $ac_status); }; }; then
6842
ac_cv_lib_svld_dlopen=yes
6844
echo "$as_me: failed program was:" >&5
6845
cat conftest.$ac_ext >&5
6846
ac_cv_lib_svld_dlopen=no
6848
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6849
LIBS=$ac_check_lib_save_LIBS
6851
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
6852
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
6853
if test $ac_cv_lib_svld_dlopen = yes; then
6854
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6856
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
6857
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
6858
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
6859
echo $ECHO_N "(cached) $ECHO_C" >&6
6861
ac_check_lib_save_LIBS=$LIBS
6863
cat >conftest.$ac_ext <<_ACEOF
6864
#line $LINENO "configure"
6865
#include "confdefs.h"
6867
/* Override any gcc2 internal prototype to avoid an error. */
6871
/* We use char because int might match the return type of a gcc2
6872
builtin and then its argument prototype would still apply. */
6874
#ifdef F77_DUMMY_MAIN
6878
int F77_DUMMY_MAIN() { return 1; }
6888
rm -f conftest.$ac_objext conftest$ac_exeext
6889
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6890
(eval $ac_link) 2>&5
6892
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6893
(exit $ac_status); } &&
6894
{ ac_try='test -s conftest$ac_exeext'
6895
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6898
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6899
(exit $ac_status); }; }; then
6900
ac_cv_lib_dld_dld_link=yes
6902
echo "$as_me: failed program was:" >&5
6903
cat conftest.$ac_ext >&5
6904
ac_cv_lib_dld_dld_link=no
6906
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6907
LIBS=$ac_check_lib_save_LIBS
6909
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
6910
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
6911
if test $ac_cv_lib_dld_dld_link = yes; then
6912
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6928
if test "x$lt_cv_dlopen" != xno; then
6934
case $lt_cv_dlopen in
6936
save_CPPFLAGS="$CPPFLAGS"
6937
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6939
save_LDFLAGS="$LDFLAGS"
6940
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6943
LIBS="$lt_cv_dlopen_libs $LIBS"
6945
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
6946
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
6947
if test "${lt_cv_dlopen_self+set}" = set; then
6948
echo $ECHO_N "(cached) $ECHO_C" >&6
6950
if test "$cross_compiling" = yes; then :
6951
lt_cv_dlopen_self=cross
6953
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6954
lt_status=$lt_dlunknown
6955
cat > conftest.$ac_ext <<EOF
6956
#line 6956 "configure"
6957
#include "confdefs.h"
6966
# define LT_DLGLOBAL RTLD_GLOBAL
6969
# define LT_DLGLOBAL DL_GLOBAL
6971
# define LT_DLGLOBAL 0
6975
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6976
find out it does not work in some platform. */
6977
#ifndef LT_DLLAZY_OR_NOW
6979
# define LT_DLLAZY_OR_NOW RTLD_LAZY
6982
# define LT_DLLAZY_OR_NOW DL_LAZY
6985
# define LT_DLLAZY_OR_NOW RTLD_NOW
6988
# define LT_DLLAZY_OR_NOW DL_NOW
6990
# define LT_DLLAZY_OR_NOW 0
6998
extern "C" void exit (int);
7001
void fnord() { int i=42;}
7004
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7005
int status = $lt_dlunknown;
7009
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7010
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7011
/* dlclose (self); */
7017
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7018
(eval $ac_link) 2>&5
7020
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7022
(./conftest; exit; ) 2>/dev/null
7025
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7026
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7027
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7030
# compilation failed
7031
lt_cv_dlopen_self=no
7037
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
7038
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
7040
if test "x$lt_cv_dlopen_self" = xyes; then
7041
LDFLAGS="$LDFLAGS $link_static_flag"
7042
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
7043
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
7044
if test "${lt_cv_dlopen_self_static+set}" = set; then
7045
echo $ECHO_N "(cached) $ECHO_C" >&6
7047
if test "$cross_compiling" = yes; then :
7048
lt_cv_dlopen_self_static=cross
7050
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7051
lt_status=$lt_dlunknown
7052
cat > conftest.$ac_ext <<EOF
7053
#line 7053 "configure"
7054
#include "confdefs.h"
7063
# define LT_DLGLOBAL RTLD_GLOBAL
7066
# define LT_DLGLOBAL DL_GLOBAL
7068
# define LT_DLGLOBAL 0
7072
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7073
find out it does not work in some platform. */
7074
#ifndef LT_DLLAZY_OR_NOW
7076
# define LT_DLLAZY_OR_NOW RTLD_LAZY
7079
# define LT_DLLAZY_OR_NOW DL_LAZY
7082
# define LT_DLLAZY_OR_NOW RTLD_NOW
7085
# define LT_DLLAZY_OR_NOW DL_NOW
7087
# define LT_DLLAZY_OR_NOW 0
7095
extern "C" void exit (int);
7098
void fnord() { int i=42;}
7101
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7102
int status = $lt_dlunknown;
7106
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7107
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7108
/* dlclose (self); */
7114
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7115
(eval $ac_link) 2>&5
7117
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7118
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7119
(./conftest; exit; ) 2>/dev/null
7122
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7123
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7124
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7127
# compilation failed
7128
lt_cv_dlopen_self_static=no
7134
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
7135
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
7138
CPPFLAGS="$save_CPPFLAGS"
7139
LDFLAGS="$save_LDFLAGS"
7144
case $lt_cv_dlopen_self in
7145
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7146
*) enable_dlopen_self=unknown ;;
7149
case $lt_cv_dlopen_self_static in
7150
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7151
*) enable_dlopen_self_static=unknown ;;
7155
if test "$enable_shared" = yes && test "$GCC" = yes; then
7156
case $archive_cmds in
7158
# FIXME: we may have to deal with multi-command sequences.
7161
# Test whether the compiler implicitly links with -lc since on some
7162
# systems, -lgcc has to come before -lc. If gcc already passes -lc
7163
# to ld, don't add -lc before -lgcc.
7164
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7165
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7166
if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
7167
echo $ECHO_N "(cached) $ECHO_C" >&6
7170
echo 'static int dummy;' > conftest.$ac_ext
7172
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7173
(eval $ac_compile) 2>&5
7175
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7176
(exit $ac_status); }; then
7179
libobjs=conftest.$ac_objext
7181
wl=$lt_cv_prog_cc_wl
7187
save_allow_undefined_flag=$allow_undefined_flag
7188
allow_undefined_flag=
7189
if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7190
(eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7192
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7193
(exit $ac_status); }
7195
lt_cv_archive_cmds_need_lc=no
7197
lt_cv_archive_cmds_need_lc=yes
7199
allow_undefined_flag=$save_allow_undefined_flag
7201
cat conftest.err 1>&5
7205
echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
7206
echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
7210
need_lc=${lt_cv_archive_cmds_need_lc-yes}
7212
# The second clause should only fire when bootstrapping the
7213
# libtool distribution, otherwise you forgot to ship ltmain.sh
7214
# with your package, and you will get complaints that there are
7215
# no rules to generate ltmain.sh.
7216
if test -f "$ltmain"; then
7219
# If there is no Makefile yet, we rely on a make rule to execute
7220
# `config.status --recheck' to rerun these tests and create the
7221
# libtool script then.
7222
test -f Makefile && make "$ltmain"
7225
if test -f "$ltmain"; then
7226
trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7229
echo creating $ofile
7231
# Now quote all the things that may contain metacharacters while being
7232
# careful not to overquote the AC_SUBSTed values. We take copies of the
7233
# variables and quote the copies for generation of the libtool script.
7234
for var in echo old_CC old_CFLAGS \
7235
AR AR_FLAGS CC LD LN_S NM SHELL \
7236
reload_flag reload_cmds wl \
7237
pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7238
thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7239
library_names_spec soname_spec \
7240
RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7241
old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7242
postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7243
old_striplib striplib file_magic_cmd export_symbols_cmds \
7244
deplibs_check_method allow_undefined_flag no_undefined_flag \
7245
finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7246
global_symbol_to_c_name_address \
7247
hardcode_libdir_flag_spec hardcode_libdir_separator \
7248
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7249
compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7252
reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7253
old_postinstall_cmds | old_postuninstall_cmds | \
7254
export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7255
extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7256
postinstall_cmds | postuninstall_cmds | \
7257
finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7258
# Double-quote double-evaled strings.
7259
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7262
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7267
cat <<__EOF__ > "${ofile}T"
7270
# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7271
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7272
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
7274
# Copyright (C) 1996-2000 Free Software Foundation, Inc.
7275
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7277
# This program is free software; you can redistribute it and/or modify
7278
# it under the terms of the GNU General Public License as published by
7279
# the Free Software Foundation; either version 2 of the License, or
7280
# (at your option) any later version.
7282
# This program is distributed in the hope that it will be useful, but
7283
# WITHOUT ANY WARRANTY; without even the implied warranty of
7284
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7285
# General Public License for more details.
7287
# You should have received a copy of the GNU General Public License
7288
# along with this program; if not, write to the Free Software
7289
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7291
# As a special exception to the GNU General Public License, if you
7292
# distribute this file as part of a program that contains a
7293
# configuration script generated by Autoconf, you may include it under
7294
# the same distribution terms that you use for the rest of that program.
7296
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
7297
Xsed="sed -e s/^X//"
7299
# The HP-UX ksh and POSIX shell print the target directory to stdout
7301
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7303
# ### BEGIN LIBTOOL CONFIG
7305
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7307
# Shell to use when invoking shell scripts.
7310
# Whether or not to build shared libraries.
7311
build_libtool_libs=$enable_shared
7313
# Whether or not to build static libraries.
7314
build_old_libs=$enable_static
7316
# Whether or not to add -lc for building shared libraries.
7317
build_libtool_need_lc=$need_lc
7319
# Whether or not to optimize for fast installation.
7320
fast_install=$enable_fast_install
7323
host_alias=$host_alias
7326
# An echo program that does not interpret backslashes.
7331
AR_FLAGS=$lt_AR_FLAGS
7333
# The default C compiler.
7336
# Is the compiler the GNU C compiler?
7339
# The linker used to build libraries.
7342
# Whether we need hard or soft links.
7345
# A BSD-compatible nm program.
7348
# A symbol stripping program
7351
# Used to examine libraries when file_magic_cmd begins "file"
7352
MAGIC_CMD=$MAGIC_CMD
7354
# Used on cygwin: DLL creation program.
7357
# Used on cygwin: object dumper.
7360
# Used on cygwin: assembler.
7363
# The name of the directory that contains temporary libtool files.
7366
# How to create reloadable object files.
7367
reload_flag=$lt_reload_flag
7368
reload_cmds=$lt_reload_cmds
7370
# How to pass a linker flag through the compiler.
7373
# Object file suffix (normally "o").
7376
# Old archive suffix (normally "a").
7379
# Executable file suffix (normally "").
7382
# Additional compiler flags for building library objects.
7383
pic_flag=$lt_pic_flag
7386
# Does compiler simultaneously support -c and -o options?
7387
compiler_c_o=$lt_compiler_c_o
7389
# Can we write directly to a .lo ?
7390
compiler_o_lo=$lt_compiler_o_lo
7392
# Must we lock files when doing compilation ?
7393
need_locks=$lt_need_locks
7395
# Do we need the lib prefix for modules?
7396
need_lib_prefix=$need_lib_prefix
7398
# Do we need a version for libraries?
7399
need_version=$need_version
7401
# Whether dlopen is supported.
7402
dlopen_support=$enable_dlopen
7404
# Whether dlopen of programs is supported.
7405
dlopen_self=$enable_dlopen_self
7407
# Whether dlopen of statically linked programs is supported.
7408
dlopen_self_static=$enable_dlopen_self_static
7410
# Compiler flag to prevent dynamic linking.
7411
link_static_flag=$lt_link_static_flag
7413
# Compiler flag to turn off builtin functions.
7414
no_builtin_flag=$lt_no_builtin_flag
7416
# Compiler flag to allow reflexive dlopens.
7417
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7419
# Compiler flag to generate shared objects directly from archives.
7420
whole_archive_flag_spec=$lt_whole_archive_flag_spec
7422
# Compiler flag to generate thread-safe objects.
7423
thread_safe_flag_spec=$lt_thread_safe_flag_spec
7425
# Library versioning type.
7426
version_type=$version_type
7428
# Format of library name prefix.
7429
libname_spec=$lt_libname_spec
7431
# List of archive names. First name is the real one, the rest are links.
7432
# The last name is the one that the linker finds with -lNAME.
7433
library_names_spec=$lt_library_names_spec
7435
# The coded name of the library, if different from the real name.
7436
soname_spec=$lt_soname_spec
7438
# Commands used to build and install an old-style archive.
7440
old_archive_cmds=$lt_old_archive_cmds
7441
old_postinstall_cmds=$lt_old_postinstall_cmds
7442
old_postuninstall_cmds=$lt_old_postuninstall_cmds
7444
# Create an old-style archive from a shared archive.
7445
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7447
# Create a temporary old-style archive to link instead of a shared archive.
7448
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7450
# Commands used to build and install a shared archive.
7451
archive_cmds=$lt_archive_cmds
7452
archive_expsym_cmds=$lt_archive_expsym_cmds
7453
postinstall_cmds=$lt_postinstall_cmds
7454
postuninstall_cmds=$lt_postuninstall_cmds
7456
# Commands to strip libraries.
7457
old_striplib=$lt_old_striplib
7458
striplib=$lt_striplib
7460
# Method to check whether dependent libraries are shared objects.
7461
deplibs_check_method=$lt_deplibs_check_method
7463
# Command to use when deplibs_check_method == file_magic.
7464
file_magic_cmd=$lt_file_magic_cmd
7466
# Flag that allows shared libraries with undefined symbols to be built.
7467
allow_undefined_flag=$lt_allow_undefined_flag
7469
# Flag that forces no undefined symbols.
7470
no_undefined_flag=$lt_no_undefined_flag
7472
# Commands used to finish a libtool library installation in a directory.
7473
finish_cmds=$lt_finish_cmds
7475
# Same as above, but a single script fragment to be evaled but not shown.
7476
finish_eval=$lt_finish_eval
7478
# Take the output of nm and produce a listing of raw symbols and C names.
7479
global_symbol_pipe=$lt_global_symbol_pipe
7481
# Transform the output of nm in a proper C declaration
7482
global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7484
# Transform the output of nm in a C name address pair
7485
global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7487
# This is the shared library runtime path variable.
7488
runpath_var=$runpath_var
7490
# This is the shared library path variable.
7491
shlibpath_var=$shlibpath_var
7493
# Is shlibpath searched before the hard-coded library search path?
7494
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7496
# How to hardcode a shared library path into an executable.
7497
hardcode_action=$hardcode_action
7499
# Whether we should hardcode library paths into libraries.
7500
hardcode_into_libs=$hardcode_into_libs
7502
# Flag to hardcode \$libdir into a binary during linking.
7503
# This must work even if \$libdir does not exist.
7504
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7506
# Whether we need a single -rpath flag with a separated argument.
7507
hardcode_libdir_separator=$lt_hardcode_libdir_separator
7509
# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7511
hardcode_direct=$hardcode_direct
7513
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7515
hardcode_minus_L=$hardcode_minus_L
7517
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7518
# the resulting binary.
7519
hardcode_shlibpath_var=$hardcode_shlibpath_var
7521
# Variables whose values should be saved in libtool wrapper scripts and
7522
# restored at relink time.
7523
variables_saved_for_relink="$variables_saved_for_relink"
7525
# Whether libtool must link a program against all its dependency libraries.
7526
link_all_deplibs=$link_all_deplibs
7528
# Compile-time system search path for libraries
7529
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7531
# Run-time system search path for libraries
7532
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7534
# Fix the shell variable \$srcfile for the compiler.
7535
fix_srcfile_path="$fix_srcfile_path"
7537
# Set to yes if exported symbols are required.
7538
always_export_symbols=$always_export_symbols
7540
# The commands to list exported symbols.
7541
export_symbols_cmds=$lt_export_symbols_cmds
7543
# The commands to extract the exported symbol list from a shared archive.
7544
extract_expsyms_cmds=$lt_extract_expsyms_cmds
7546
# Symbols that should not be listed in the preloaded symbols.
7547
exclude_expsyms=$lt_exclude_expsyms
7549
# Symbols that must always be exported.
7550
include_expsyms=$lt_include_expsyms
7552
# ### END LIBTOOL CONFIG
7558
cat <<\EOF >> "${ofile}T"
7560
# AIX sometimes has problems with the GCC collect2 program. For some
7561
# reason, if we set the COLLECT_NAMES environment variable, the problems
7562
# vanish in a puff of smoke.
7563
if test "X${COLLECT_NAMES+set}" != Xset; then
7565
export COLLECT_NAMES
7572
cygwin* | mingw* | pw32* | os2*)
7573
cat <<'EOF' >> "${ofile}T"
7574
# This is a source program that is used to create dlls on Windows
7575
# Don't remove nor modify the starting and closing comments
7576
# /* ltdll.c starts here */
7577
# #define WIN32_LEAN_AND_MEAN
7578
# #include <windows.h>
7579
# #undef WIN32_LEAN_AND_MEAN
7580
# #include <stdio.h>
7582
# #ifndef __CYGWIN__
7583
# # ifdef __CYGWIN32__
7584
# # define __CYGWIN__ __CYGWIN32__
7588
# #ifdef __cplusplus
7591
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7592
# #ifdef __cplusplus
7597
# #include <cygwin/cygwin_dll.h>
7598
# DECLARE_CYGWIN_DLL( DllMain );
7600
# HINSTANCE __hDllInstance_base;
7603
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7605
# __hDllInstance_base = hInst;
7608
# /* ltdll.c ends here */
7609
# This is a source program that is used to create import libraries
7610
# on Windows for dlls which lack them. Don't remove nor modify the
7611
# starting and closing comments
7612
# /* impgen.c starts here */
7613
# /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7615
# This file is part of GNU libtool.
7617
# This program is free software; you can redistribute it and/or modify
7618
# it under the terms of the GNU General Public License as published by
7619
# the Free Software Foundation; either version 2 of the License, or
7620
# (at your option) any later version.
7622
# This program is distributed in the hope that it will be useful,
7623
# but WITHOUT ANY WARRANTY; without even the implied warranty of
7624
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7625
# GNU General Public License for more details.
7627
# You should have received a copy of the GNU General Public License
7628
# along with this program; if not, write to the Free Software
7629
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7632
# #include <stdio.h> /* for printf() */
7633
# #include <unistd.h> /* for open(), lseek(), read() */
7634
# #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7635
# #include <string.h> /* for strdup() */
7637
# /* O_BINARY isn't required (or even defined sometimes) under Unix */
7639
# #define O_BINARY 0
7642
# static unsigned int
7643
# pe_get16 (fd, offset)
7647
# unsigned char b[2];
7648
# lseek (fd, offset, SEEK_SET);
7650
# return b[0] + (b[1]<<8);
7653
# static unsigned int
7654
# pe_get32 (fd, offset)
7658
# unsigned char b[4];
7659
# lseek (fd, offset, SEEK_SET);
7661
# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7664
# static unsigned int
7668
# unsigned char *b = ptr;
7669
# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7678
# unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7679
# unsigned long export_rva, export_size, nsections, secptr, expptr;
7680
# unsigned long name_rvas, nexp;
7681
# unsigned char *expdata, *erva;
7682
# char *filename, *dll_name;
7684
# filename = argv[1];
7686
# dll = open(filename, O_RDONLY|O_BINARY);
7690
# dll_name = filename;
7692
# for (i=0; filename[i]; i++)
7693
# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7694
# dll_name = filename + i +1;
7696
# pe_header_offset = pe_get32 (dll, 0x3c);
7697
# opthdr_ofs = pe_header_offset + 4 + 20;
7698
# num_entries = pe_get32 (dll, opthdr_ofs + 92);
7700
# if (num_entries < 1) /* no exports */
7703
# export_rva = pe_get32 (dll, opthdr_ofs + 96);
7704
# export_size = pe_get32 (dll, opthdr_ofs + 100);
7705
# nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7706
# secptr = (pe_header_offset + 4 + 20 +
7707
# pe_get16 (dll, pe_header_offset + 4 + 16));
7710
# for (i = 0; i < nsections; i++)
7713
# unsigned long secptr1 = secptr + 40 * i;
7714
# unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7715
# unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7716
# unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7717
# lseek(dll, secptr1, SEEK_SET);
7718
# read(dll, sname, 8);
7719
# if (vaddr <= export_rva && vaddr+vsize > export_rva)
7721
# expptr = fptr + (export_rva - vaddr);
7722
# if (export_rva + export_size > vaddr + vsize)
7723
# export_size = vsize - (export_rva - vaddr);
7728
# expdata = (unsigned char*)malloc(export_size);
7729
# lseek (dll, expptr, SEEK_SET);
7730
# read (dll, expdata, export_size);
7731
# erva = expdata - export_rva;
7733
# nexp = pe_as32 (expdata+24);
7734
# name_rvas = pe_as32 (expdata+32);
7736
# printf ("EXPORTS\n");
7737
# for (i = 0; i<nexp; i++)
7739
# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7740
# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7745
# /* impgen.c ends here */
7751
# We use sed instead of cat because bash on DJGPP gets confused if
7752
# if finds mixed CR/LF and LF-only lines. Since sed operates in
7753
# text mode, it properly converts lines to CR/LF. This bash problem
7754
# is reportedly fixed, but why not run on old versions too?
7755
sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7757
mv -f "${ofile}T" "$ofile" || \
7758
(rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7762
# This can be used to rebuild libtool when needed
7763
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7765
# Always use our own libtool.
7766
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7768
# Prevent multiple expansion
7770
# Find a good install program. We prefer a C program (faster),
7771
# so one script is as good as another. But avoid the broken or
7772
# incompatible versions:
7773
# SysV /etc/install, /usr/sbin/install
7774
# SunOS /usr/etc/install
7775
# IRIX /sbin/install
7777
# AmigaOS /C/install, which installs bootblocks on floppy discs
7778
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7779
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7780
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7781
# ./install, which can be erroneously created by make from ./install.sh.
7782
echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
7783
echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
7784
if test -z "$INSTALL"; then
7785
if test "${ac_cv_path_install+set}" = set; then
7786
echo $ECHO_N "(cached) $ECHO_C" >&6
7788
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7792
test -z "$as_dir" && as_dir=.
7793
# Account for people who put trailing slashes in PATH elements.
7795
./ | .// | /cC/* | \
7796
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7799
# OSF1 and SCO ODT 3.0 have their own names for install.
7800
# Don't use installbsd from OSF since it installs stuff as root
7802
for ac_prog in ginstall scoinst install; do
7803
for ac_exec_ext in '' $ac_executable_extensions; do
7804
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
7805
if test $ac_prog = install &&
7806
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7807
# AIX install. It has an incompatible calling convention.
7809
elif test $ac_prog = install &&
7810
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7811
# program-specific install script used by HP pwplus--don't use.
7814
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7825
if test "${ac_cv_path_install+set}" = set; then
7826
INSTALL=$ac_cv_path_install
7828
# As a last resort, use the slow shell script. We don't cache a
7829
# path for INSTALL within a source directory, because that will
7830
# break other packages using the cache if that directory is
7831
# removed, or if the path is relative.
7832
INSTALL=$ac_install_sh
7835
echo "$as_me:$LINENO: result: $INSTALL" >&5
7836
echo "${ECHO_T}$INSTALL" >&6
7838
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7839
# It thinks the first close brace ends the variable substitution.
7840
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7842
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7844
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7846
echo "$as_me:$LINENO: checking whether ln -s works" >&5
7847
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7849
if test "$LN_S" = "ln -s"; then
7850
echo "$as_me:$LINENO: result: yes" >&5
7851
echo "${ECHO_T}yes" >&6
7853
echo "$as_me:$LINENO: result: no, using $LN_S" >&5
7854
echo "${ECHO_T}no, using $LN_S" >&6
7857
# Extract the first word of "sed", so it can be a program name with args.
7858
set dummy sed; ac_word=$2
7859
echo "$as_me:$LINENO: checking for $ac_word" >&5
7860
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7861
if test "${ac_cv_prog_SED+set}" = set; then
7862
echo $ECHO_N "(cached) $ECHO_C" >&6
7864
if test -n "$SED"; then
7865
ac_cv_prog_SED="$SED" # Let the user override the test.
7867
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7871
test -z "$as_dir" && as_dir=.
7872
for ac_exec_ext in '' $ac_executable_extensions; do
7873
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7874
ac_cv_prog_SED="sed"
7875
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7881
test -z "$ac_cv_prog_SED" && ac_cv_prog_SED="false"
7885
if test -n "$SED"; then
7886
echo "$as_me:$LINENO: result: $SED" >&5
7887
echo "${ECHO_T}$SED" >&6
7889
echo "$as_me:$LINENO: result: no" >&5
7890
echo "${ECHO_T}no" >&6
7893
# Extract the first word of "sort", so it can be a program name with args.
7894
set dummy sort; ac_word=$2
7895
echo "$as_me:$LINENO: checking for $ac_word" >&5
7896
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7897
if test "${ac_cv_prog_SORT+set}" = set; then
7898
echo $ECHO_N "(cached) $ECHO_C" >&6
7900
if test -n "$SORT"; then
7901
ac_cv_prog_SORT="$SORT" # Let the user override the test.
7903
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7907
test -z "$as_dir" && as_dir=.
7908
for ac_exec_ext in '' $ac_executable_extensions; do
7909
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7910
ac_cv_prog_SORT="sort"
7911
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7917
test -z "$ac_cv_prog_SORT" && ac_cv_prog_SORT="false"
7920
SORT=$ac_cv_prog_SORT
7921
if test -n "$SORT"; then
7922
echo "$as_me:$LINENO: result: $SORT" >&5
7923
echo "${ECHO_T}$SORT" >&6
7925
echo "$as_me:$LINENO: result: no" >&5
7926
echo "${ECHO_T}no" >&6
7929
# Extract the first word of "ksh", so it can be a program name with args.
7930
set dummy ksh; ac_word=$2
7931
echo "$as_me:$LINENO: checking for $ac_word" >&5
7932
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7933
if test "${ac_cv_prog_KSH+set}" = set; then
7934
echo $ECHO_N "(cached) $ECHO_C" >&6
7936
if test -n "$KSH"; then
7937
ac_cv_prog_KSH="$KSH" # Let the user override the test.
7939
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7943
test -z "$as_dir" && as_dir=.
7944
for ac_exec_ext in '' $ac_executable_extensions; do
7945
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7946
ac_cv_prog_KSH="ksh"
7947
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7953
test -z "$ac_cv_prog_KSH" && ac_cv_prog_KSH="sh"
7957
if test -n "$KSH"; then
7958
echo "$as_me:$LINENO: result: $KSH" >&5
7959
echo "${ECHO_T}$KSH" >&6
7961
echo "$as_me:$LINENO: result: no" >&5
7962
echo "${ECHO_T}no" >&6
7965
# are we building for windows?
7966
# (these tests must follow AC_ISC_POSIX)
7968
*cygwin* ) CYGWIN=yes;;
7973
*mingw32* ) MINGW32=yes;;
7977
if test "$ac_cv_cygwin" = yes; then
7978
DEFAULT_FONTPATH="C:/WINDOWS/FONTS;C:/WINNT/Fonts;C:/winnt/fonts"
7981
if test "$ac_cv_mingw32" = yes; then
7982
DEFAULT_FONTPATH="C:/WINDOWS/FONTS;C:/WINNT/Fonts;C:/winnt/fonts"
7985
# This sucks! Whatever happened to standards for file system layout?
7986
DEFAULT_FONTPATH="/usr/X11R6/lib/X11/fonts/TrueType:/usr/X11R6/lib/X11/fonts/truetype:/usr/share/fonts/TrueType:/usr/share/fonts/truetype:/usr/openwin/lib/X11/fonts/TrueType:/usr/openwin/lib/X11/fonts/TrueType"
7991
cat >>confdefs.h <<_ACEOF
7992
#define DEFAULT_FONTPATH "$DEFAULT_FONTPATH"
7995
cat >>confdefs.h <<_ACEOF
7996
#define PATHSEPARATOR "$PATHSEPARATOR"
8004
# Check whether --with-dmalloc or --without-dmalloc was given.
8005
if test "${with_dmalloc+set}" = set; then
8006
withval="$with_dmalloc"
8010
if test "x${DMALLOC}" != "x"; then
8011
LIBS="$LIBS -ldmalloc"
8012
CFLAGS="$CFLAGS -DDMALLOC -g -O0"
8015
# Check whether --with-efence or --without-efence was given.
8016
if test "${with_efence+set}" = set; then
8017
withval="$with_efence"
8021
if test "x${EFENCE}" != "x"; then
8022
LIBS="$LIBS -lefence"
8025
if test "${GCC}" != "yes" ; then
8028
CFLAGS="${CFLAGS} -Wp,-H30000"
8031
CFLAGS="${CFLAGS} -ieee"
8035
CFLAGS="${CFLAGS} -Wall -Wno-unknown-pragmas"
8038
CFLAGS="${CFLAGS} -mieee"
8041
CFLAGS="${CFLAGS} -mieee"
8045
#AC_PATH_PROG(TCLSH,tclsh8.4)
8046
#if test "x$TCLSH" = "x"; then
8047
# Extract the first word of "tclsh8.3", so it can be a program name with args.
8048
set dummy tclsh8.3; ac_word=$2
8049
echo "$as_me:$LINENO: checking for $ac_word" >&5
8050
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8051
if test "${ac_cv_path_TCLSH+set}" = set; then
8052
echo $ECHO_N "(cached) $ECHO_C" >&6
8056
ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8059
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8063
test -z "$as_dir" && as_dir=.
8064
for ac_exec_ext in '' $ac_executable_extensions; do
8065
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8066
ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8067
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8076
TCLSH=$ac_cv_path_TCLSH
8078
if test -n "$TCLSH"; then
8079
echo "$as_me:$LINENO: result: $TCLSH" >&5
8080
echo "${ECHO_T}$TCLSH" >&6
8082
echo "$as_me:$LINENO: result: no" >&5
8083
echo "${ECHO_T}no" >&6
8086
if test "x$TCLSH" = "x"; then
8087
# Extract the first word of "tclsh", so it can be a program name with args.
8088
set dummy tclsh; ac_word=$2
8089
echo "$as_me:$LINENO: checking for $ac_word" >&5
8090
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8091
if test "${ac_cv_path_TCLSH+set}" = set; then
8092
echo $ECHO_N "(cached) $ECHO_C" >&6
8096
ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8099
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8103
test -z "$as_dir" && as_dir=.
8104
for ac_exec_ext in '' $ac_executable_extensions; do
8105
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8106
ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8107
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8116
TCLSH=$ac_cv_path_TCLSH
8118
if test -n "$TCLSH"; then
8119
echo "$as_me:$LINENO: result: $TCLSH" >&5
8120
echo "${ECHO_T}$TCLSH" >&6
8122
echo "$as_me:$LINENO: result: no" >&5
8123
echo "${ECHO_T}no" >&6
8129
# can't assume ksh on all architectures
8130
# TCLSH_EXEC_PREFIX=${TCLSH%%/bin/tclsh.*}
8131
TCLSH_EXEC_PREFIX=`echo $TCLSH|sed -e 's%/bin/tclsh.*$%%'`
8133
# Check whether --with-tcl or --without-tcl was given.
8134
if test "${with_tcl+set}" = set; then
8136
TCLSH_EXEC_PREFIX=$withval
8139
# Some systems don't have Tcl. Don't build
8140
# the Tcl products if we don't have the library.
8141
TCLCONFIG=${TCLSH_EXEC_PREFIX}/lib/tclConfig.sh
8142
if test -f $TCLCONFIG; then
8143
echo "$as_me:$LINENO: result: using $TCLCONFIG" >&5
8144
echo "${ECHO_T}using $TCLCONFIG" >&6
8147
TCL_SUBDIRS="tclstubs tclhandle gdtclft tcldot tcldgr tcldgl tclpathplan"
8148
TCL_PKGINDEX="gdtclft/pkgIndex.tcl tcldot/pkgIndex.tcl tcldgr/pkgIndex.tcl tcldgl/pkgIndex.tcl tclpathplan/pkgIndex.tcl"
8150
{ echo "$as_me:$LINENO: WARNING: Unable to find tclConfig.sh. The packages: \"gdtclft tcldot tcldgr tcldgl tclpathplan\" will not be built" >&5
8151
echo "$as_me: WARNING: Unable to find tclConfig.sh. The packages: \"gdtclft tcldot tcldgr tcldgl tclpathplan\" will not be built" >&2;}
8156
if test "${TCL_SUPPORTS_STUBS}" = "1"; then
8157
TCL_CFLAGS="${TCL_CFLAGS} -DUSE_TCL_STUBS"
8160
WISH_EXEC_PREFIX=$TCLSH_EXEC_PREFIX
8162
# Check whether --with-tk or --without-tk was given.
8163
if test "${with_tk+set}" = set; then
8165
WISH_EXEC_PREFIX=$withval
8168
# Some systems have Tcl, but not TK. Don't build
8169
# the Tk products if we don't have the library.
8170
TKCONFIG=${WISH_EXEC_PREFIX}/lib/tkConfig.sh
8171
if test -f $TKCONFIG; then
8172
echo "$as_me:$LINENO: result: using $TKCONFIG" >&5
8173
echo "${ECHO_T}using $TKCONFIG" >&6
8176
TK_SUBDIRS="tkstubs tkspline"
8177
TK_PKGINDEX="tkspline/pkgIndex.tcl"
8179
{ echo "$as_me:$LINENO: WARNING: Unable to find tkConfig.sh. The package \"tkspline\" will not be built" >&5
8180
echo "$as_me: WARNING: Unable to find tkConfig.sh. The package \"tkspline\" will not be built" >&2;}
8185
# NB. No TK_SUPPORTS_STUBS set by tkConfig.sh
8186
if test "${TCL_SUPPORTS_STUBS}" = "1"; then
8187
TK_CFLAGS="${TK_CFLAGS} -DUSE_TK_STUBS"
8190
# Check whether --with-extraincludedir or --without-extraincludedir was given.
8191
if test "${with_extraincludedir+set}" = set; then
8192
withval="$with_extraincludedir"
8193
EXTRA_INCLUDES="-I$withval $INCLUDES"
8196
# Check whether --with-extralibdir or --without-extralibdir was given.
8197
if test "${with_extralibdir+set}" = set; then
8198
withval="$with_extralibdir"
8199
EXTRA_LIBS="-L$withval $LIBS"
8202
echo "$as_me:$LINENO: checking for main in -lm" >&5
8203
echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
8204
if test "${ac_cv_lib_m_main+set}" = set; then
8205
echo $ECHO_N "(cached) $ECHO_C" >&6
8207
ac_check_lib_save_LIBS=$LIBS
8209
cat >conftest.$ac_ext <<_ACEOF
8210
#line $LINENO "configure"
8211
#include "confdefs.h"
8213
#ifdef F77_DUMMY_MAIN
8217
int F77_DUMMY_MAIN() { return 1; }
8227
rm -f conftest.$ac_objext conftest$ac_exeext
8228
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8229
(eval $ac_link) 2>&5
8231
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8232
(exit $ac_status); } &&
8233
{ ac_try='test -s conftest$ac_exeext'
8234
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8237
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8238
(exit $ac_status); }; }; then
8239
ac_cv_lib_m_main=yes
8241
echo "$as_me: failed program was:" >&5
8242
cat conftest.$ac_ext >&5
8245
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8246
LIBS=$ac_check_lib_save_LIBS
8248
echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
8249
echo "${ECHO_T}$ac_cv_lib_m_main" >&6
8250
if test $ac_cv_lib_m_main = yes; then
8251
cat >>confdefs.h <<_ACEOF
8262
echo "$as_me:$LINENO: checking for connect" >&5
8263
echo $ECHO_N "checking for connect... $ECHO_C" >&6
8264
if test "${ac_cv_func_connect+set}" = set; then
8265
echo $ECHO_N "(cached) $ECHO_C" >&6
8267
cat >conftest.$ac_ext <<_ACEOF
8268
#line $LINENO "configure"
8269
#include "confdefs.h"
8270
/* System header to define __stub macros and hopefully few prototypes,
8271
which can conflict with char connect (); below. */
8273
/* Override any gcc2 internal prototype to avoid an error. */
8277
/* We use char because int might match the return type of a gcc2
8278
builtin and then its argument prototype would still apply. */
8282
#ifdef F77_DUMMY_MAIN
8286
int F77_DUMMY_MAIN() { return 1; }
8291
/* The GNU C library defines this for functions which it implements
8292
to always fail with ENOSYS. Some functions are actually named
8293
something starting with __ and the normal name is an alias. */
8294
#if defined (__stub_connect) || defined (__stub___connect)
8304
rm -f conftest.$ac_objext conftest$ac_exeext
8305
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8306
(eval $ac_link) 2>&5
8308
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8309
(exit $ac_status); } &&
8310
{ ac_try='test -s conftest$ac_exeext'
8311
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8314
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8315
(exit $ac_status); }; }; then
8316
ac_cv_func_connect=yes
8318
echo "$as_me: failed program was:" >&5
8319
cat conftest.$ac_ext >&5
8320
ac_cv_func_connect=no
8322
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8324
echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8325
echo "${ECHO_T}$ac_cv_func_connect" >&6
8326
if test $ac_cv_func_connect = yes; then
8332
if test "$tk_checkSocket" = 1; then
8333
echo "$as_me:$LINENO: checking for main in -lsocket" >&5
8334
echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
8335
if test "${ac_cv_lib_socket_main+set}" = set; then
8336
echo $ECHO_N "(cached) $ECHO_C" >&6
8338
ac_check_lib_save_LIBS=$LIBS
8339
LIBS="-lsocket $LIBS"
8340
cat >conftest.$ac_ext <<_ACEOF
8341
#line $LINENO "configure"
8342
#include "confdefs.h"
8344
#ifdef F77_DUMMY_MAIN
8348
int F77_DUMMY_MAIN() { return 1; }
8358
rm -f conftest.$ac_objext conftest$ac_exeext
8359
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8360
(eval $ac_link) 2>&5
8362
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8363
(exit $ac_status); } &&
8364
{ ac_try='test -s conftest$ac_exeext'
8365
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8368
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369
(exit $ac_status); }; }; then
8370
ac_cv_lib_socket_main=yes
8372
echo "$as_me: failed program was:" >&5
8373
cat conftest.$ac_ext >&5
8374
ac_cv_lib_socket_main=no
8376
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8377
LIBS=$ac_check_lib_save_LIBS
8379
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
8380
echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
8381
if test $ac_cv_lib_socket_main = yes; then
8382
LIBS="$LIBS -lsocket"
8388
if test "$tk_checkBoth" = 1; then
8390
LIBS="$LIBS -lsocket -lnsl"
8391
echo "$as_me:$LINENO: checking for accept" >&5
8392
echo $ECHO_N "checking for accept... $ECHO_C" >&6
8393
if test "${ac_cv_func_accept+set}" = set; then
8394
echo $ECHO_N "(cached) $ECHO_C" >&6
8396
cat >conftest.$ac_ext <<_ACEOF
8397
#line $LINENO "configure"
8398
#include "confdefs.h"
8399
/* System header to define __stub macros and hopefully few prototypes,
8400
which can conflict with char accept (); below. */
8402
/* Override any gcc2 internal prototype to avoid an error. */
8406
/* We use char because int might match the return type of a gcc2
8407
builtin and then its argument prototype would still apply. */
8411
#ifdef F77_DUMMY_MAIN
8415
int F77_DUMMY_MAIN() { return 1; }
8420
/* The GNU C library defines this for functions which it implements
8421
to always fail with ENOSYS. Some functions are actually named
8422
something starting with __ and the normal name is an alias. */
8423
#if defined (__stub_accept) || defined (__stub___accept)
8433
rm -f conftest.$ac_objext conftest$ac_exeext
8434
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8435
(eval $ac_link) 2>&5
8437
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8438
(exit $ac_status); } &&
8439
{ ac_try='test -s conftest$ac_exeext'
8440
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8443
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8444
(exit $ac_status); }; }; then
8445
ac_cv_func_accept=yes
8447
echo "$as_me: failed program was:" >&5
8448
cat conftest.$ac_ext >&5
8449
ac_cv_func_accept=no
8451
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8453
echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
8454
echo "${ECHO_T}$ac_cv_func_accept" >&6
8455
if test $ac_cv_func_accept = yes; then
8462
echo "$as_me:$LINENO: checking for gethostname" >&5
8463
echo $ECHO_N "checking for gethostname... $ECHO_C" >&6
8464
if test "${ac_cv_func_gethostname+set}" = set; then
8465
echo $ECHO_N "(cached) $ECHO_C" >&6
8467
cat >conftest.$ac_ext <<_ACEOF
8468
#line $LINENO "configure"
8469
#include "confdefs.h"
8470
/* System header to define __stub macros and hopefully few prototypes,
8471
which can conflict with char gethostname (); below. */
8473
/* Override any gcc2 internal prototype to avoid an error. */
8477
/* We use char because int might match the return type of a gcc2
8478
builtin and then its argument prototype would still apply. */
8479
char gethostname ();
8482
#ifdef F77_DUMMY_MAIN
8486
int F77_DUMMY_MAIN() { return 1; }
8491
/* The GNU C library defines this for functions which it implements
8492
to always fail with ENOSYS. Some functions are actually named
8493
something starting with __ and the normal name is an alias. */
8494
#if defined (__stub_gethostname) || defined (__stub___gethostname)
8504
rm -f conftest.$ac_objext conftest$ac_exeext
8505
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8506
(eval $ac_link) 2>&5
8508
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509
(exit $ac_status); } &&
8510
{ ac_try='test -s conftest$ac_exeext'
8511
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8514
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8515
(exit $ac_status); }; }; then
8516
ac_cv_func_gethostname=yes
8518
echo "$as_me: failed program was:" >&5
8519
cat conftest.$ac_ext >&5
8520
ac_cv_func_gethostname=no
8522
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8524
echo "$as_me:$LINENO: result: $ac_cv_func_gethostname" >&5
8525
echo "${ECHO_T}$ac_cv_func_gethostname" >&6
8526
if test $ac_cv_func_gethostname = yes; then
8529
echo "$as_me:$LINENO: checking for main in -lnsl" >&5
8530
echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
8531
if test "${ac_cv_lib_nsl_main+set}" = set; then
8532
echo $ECHO_N "(cached) $ECHO_C" >&6
8534
ac_check_lib_save_LIBS=$LIBS
8536
cat >conftest.$ac_ext <<_ACEOF
8537
#line $LINENO "configure"
8538
#include "confdefs.h"
8540
#ifdef F77_DUMMY_MAIN
8544
int F77_DUMMY_MAIN() { return 1; }
8554
rm -f conftest.$ac_objext conftest$ac_exeext
8555
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8556
(eval $ac_link) 2>&5
8558
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559
(exit $ac_status); } &&
8560
{ ac_try='test -s conftest$ac_exeext'
8561
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8564
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565
(exit $ac_status); }; }; then
8566
ac_cv_lib_nsl_main=yes
8568
echo "$as_me: failed program was:" >&5
8569
cat conftest.$ac_ext >&5
8570
ac_cv_lib_nsl_main=no
8572
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8573
LIBS=$ac_check_lib_save_LIBS
8575
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
8576
echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
8577
if test $ac_cv_lib_nsl_main = yes; then
8587
echo "$as_me:$LINENO: checking for X" >&5
8588
echo $ECHO_N "checking for X... $ECHO_C" >&6
8590
# Check whether --with-x or --without-x was given.
8591
if test "${with_x+set}" = set; then
8595
# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8596
if test "x$with_x" = xno; then
8597
# The user explicitly disabled X.
8600
if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8601
# Both variables are already set.
8604
if test "${ac_cv_have_x+set}" = set; then
8605
echo $ECHO_N "(cached) $ECHO_C" >&6
8607
# One or both of the vars are not set, and there is no cached value.
8608
ac_x_includes=no ac_x_libraries=no
8610
if mkdir conftest.dir; then
8612
# Make sure to not put "make" in the Imakefile rules, since we grep it out.
8613
cat >Imakefile <<'_ACEOF'
8615
@echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8617
if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8618
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8619
eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8620
# Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8621
for ac_extension in a so sl; do
8622
if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8623
test -f $ac_im_libdir/libX11.$ac_extension; then
8624
ac_im_usrlibdir=$ac_im_libdir; break
8627
# Screen out bogus values from the imake configuration. They are
8628
# bogus both because they are the default anyway, and because
8629
# using them would break gcc on systems where it needs fixed includes.
8630
case $ac_im_incroot in
8632
*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8634
case $ac_im_usrlibdir in
8636
*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8643
# Standard set of common directories for X headers.
8644
# Check X11 before X11Rn because it is often a symlink to the current release.
8656
/usr/local/X11/include
8657
/usr/local/X11R6/include
8658
/usr/local/X11R5/include
8659
/usr/local/X11R4/include
8661
/usr/local/include/X11
8662
/usr/local/include/X11R6
8663
/usr/local/include/X11R5
8664
/usr/local/include/X11R4
8668
/usr/XFree86/include/X11
8672
/usr/unsupported/include
8674
/usr/local/x11r5/include
8675
/usr/lpp/Xamples/include
8677
/usr/openwin/include
8678
/usr/openwin/share/include'
8680
if test "$ac_x_includes" = no; then
8681
# Guess where to find include files, by looking for Intrinsic.h.
8682
# First, try using that file with no special directory specified.
8683
cat >conftest.$ac_ext <<_ACEOF
8684
#line $LINENO "configure"
8685
#include "confdefs.h"
8686
#include <X11/Intrinsic.h>
8688
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8689
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8691
egrep -v '^ *\+' conftest.er1 >conftest.err
8693
cat conftest.err >&5
8694
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8695
(exit $ac_status); } >/dev/null; then
8696
if test -s conftest.err; then
8697
ac_cpp_err=$ac_c_preproc_warn_flag
8704
if test -z "$ac_cpp_err"; then
8705
# We can compile using X headers with no special include directory.
8708
echo "$as_me: failed program was:" >&5
8709
cat conftest.$ac_ext >&5
8710
for ac_dir in $ac_x_header_dirs; do
8711
if test -r "$ac_dir/X11/Intrinsic.h"; then
8712
ac_x_includes=$ac_dir
8717
rm -f conftest.err conftest.$ac_ext
8718
fi # $ac_x_includes = no
8720
if test "$ac_x_libraries" = no; then
8721
# Check for the libraries.
8722
# See if we find them without any special options.
8723
# Don't add to $LIBS permanently.
8726
cat >conftest.$ac_ext <<_ACEOF
8727
#line $LINENO "configure"
8728
#include "confdefs.h"
8729
#include <X11/Intrinsic.h>
8730
#ifdef F77_DUMMY_MAIN
8734
int F77_DUMMY_MAIN() { return 1; }
8744
rm -f conftest.$ac_objext conftest$ac_exeext
8745
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8746
(eval $ac_link) 2>&5
8748
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8749
(exit $ac_status); } &&
8750
{ ac_try='test -s conftest$ac_exeext'
8751
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8754
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8755
(exit $ac_status); }; }; then
8757
# We can link X programs with no special library path.
8760
echo "$as_me: failed program was:" >&5
8761
cat conftest.$ac_ext >&5
8763
for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8765
# Don't even attempt the hair of trying to link an X program!
8766
for ac_extension in a so sl; do
8767
if test -r $ac_dir/libXt.$ac_extension; then
8768
ac_x_libraries=$ac_dir
8774
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8775
fi # $ac_x_libraries = no
8777
if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8778
# Didn't find X anywhere. Cache the known absence of X.
8779
ac_cv_have_x="have_x=no"
8781
# Record where we found X for the cache.
8782
ac_cv_have_x="have_x=yes \
8783
ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8788
eval "$ac_cv_have_x"
8791
if test "$have_x" != yes; then
8792
echo "$as_me:$LINENO: result: $have_x" >&5
8793
echo "${ECHO_T}$have_x" >&6
8796
# If each of the values was on the command line, it overrides each guess.
8797
test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8798
test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8799
# Update the cache value to reflect the command line values.
8800
ac_cv_have_x="have_x=yes \
8801
ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8802
echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8803
echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8806
if test "$no_x" = yes; then
8807
# Not all programs may use this symbol, but it does not hurt to define it.
8809
cat >>confdefs.h <<\_ACEOF
8810
#define X_DISPLAY_MISSING 1
8813
X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8815
if test -n "$x_includes"; then
8816
X_CFLAGS="$X_CFLAGS -I$x_includes"
8819
# It would also be nice to do this for all -L options, not just this one.
8820
if test -n "$x_libraries"; then
8821
X_LIBS="$X_LIBS -L$x_libraries"
8822
# For Solaris; some versions of Sun CC require a space after -R and
8823
# others require no space. Words are not sufficient . . . .
8824
case `(uname -sr) 2>/dev/null` in
8826
echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
8827
echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
8828
ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8829
cat >conftest.$ac_ext <<_ACEOF
8830
#line $LINENO "configure"
8831
#include "confdefs.h"
8833
#ifdef F77_DUMMY_MAIN
8837
int F77_DUMMY_MAIN() { return 1; }
8847
rm -f conftest.$ac_objext conftest$ac_exeext
8848
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8849
(eval $ac_link) 2>&5
8851
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8852
(exit $ac_status); } &&
8853
{ ac_try='test -s conftest$ac_exeext'
8854
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8857
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858
(exit $ac_status); }; }; then
8861
echo "$as_me: failed program was:" >&5
8862
cat conftest.$ac_ext >&5
8865
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8866
if test $ac_R_nospace = yes; then
8867
echo "$as_me:$LINENO: result: no" >&5
8868
echo "${ECHO_T}no" >&6
8869
X_LIBS="$X_LIBS -R$x_libraries"
8871
LIBS="$ac_xsave_LIBS -R $x_libraries"
8872
cat >conftest.$ac_ext <<_ACEOF
8873
#line $LINENO "configure"
8874
#include "confdefs.h"
8876
#ifdef F77_DUMMY_MAIN
8880
int F77_DUMMY_MAIN() { return 1; }
8890
rm -f conftest.$ac_objext conftest$ac_exeext
8891
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8892
(eval $ac_link) 2>&5
8894
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8895
(exit $ac_status); } &&
8896
{ ac_try='test -s conftest$ac_exeext'
8897
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8900
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901
(exit $ac_status); }; }; then
8904
echo "$as_me: failed program was:" >&5
8905
cat conftest.$ac_ext >&5
8908
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8909
if test $ac_R_space = yes; then
8910
echo "$as_me:$LINENO: result: yes" >&5
8911
echo "${ECHO_T}yes" >&6
8912
X_LIBS="$X_LIBS -R $x_libraries"
8914
echo "$as_me:$LINENO: result: neither works" >&5
8915
echo "${ECHO_T}neither works" >&6
8922
# Check for system-dependent libraries X programs must link with.
8923
# Do this before checking for the system-independent R6 libraries
8924
# (-lICE), since we may need -lsocket or whatever for X linking.
8926
if test "$ISC" = yes; then
8927
X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8929
# Martyn Johnson says this is needed for Ultrix, if the X
8930
# libraries were built with DECnet support. And Karl Berry says
8931
# the Alpha needs dnet_stub (dnet does not exist).
8932
ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8933
cat >conftest.$ac_ext <<_ACEOF
8934
#line $LINENO "configure"
8935
#include "confdefs.h"
8937
/* Override any gcc2 internal prototype to avoid an error. */
8941
/* We use char because int might match the return type of a gcc2
8942
builtin and then its argument prototype would still apply. */
8943
char XOpenDisplay ();
8944
#ifdef F77_DUMMY_MAIN
8948
int F77_DUMMY_MAIN() { return 1; }
8958
rm -f conftest.$ac_objext conftest$ac_exeext
8959
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8960
(eval $ac_link) 2>&5
8962
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8963
(exit $ac_status); } &&
8964
{ ac_try='test -s conftest$ac_exeext'
8965
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8968
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8969
(exit $ac_status); }; }; then
8972
echo "$as_me: failed program was:" >&5
8973
cat conftest.$ac_ext >&5
8974
echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8975
echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8976
if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8977
echo $ECHO_N "(cached) $ECHO_C" >&6
8979
ac_check_lib_save_LIBS=$LIBS
8981
cat >conftest.$ac_ext <<_ACEOF
8982
#line $LINENO "configure"
8983
#include "confdefs.h"
8985
/* Override any gcc2 internal prototype to avoid an error. */
8989
/* We use char because int might match the return type of a gcc2
8990
builtin and then its argument prototype would still apply. */
8992
#ifdef F77_DUMMY_MAIN
8996
int F77_DUMMY_MAIN() { return 1; }
9006
rm -f conftest.$ac_objext conftest$ac_exeext
9007
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9008
(eval $ac_link) 2>&5
9010
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9011
(exit $ac_status); } &&
9012
{ ac_try='test -s conftest$ac_exeext'
9013
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9016
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9017
(exit $ac_status); }; }; then
9018
ac_cv_lib_dnet_dnet_ntoa=yes
9020
echo "$as_me: failed program was:" >&5
9021
cat conftest.$ac_ext >&5
9022
ac_cv_lib_dnet_dnet_ntoa=no
9024
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9025
LIBS=$ac_check_lib_save_LIBS
9027
echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9028
echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9029
if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9030
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
9033
if test $ac_cv_lib_dnet_dnet_ntoa = no; then
9034
echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
9035
echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
9036
if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
9037
echo $ECHO_N "(cached) $ECHO_C" >&6
9039
ac_check_lib_save_LIBS=$LIBS
9040
LIBS="-ldnet_stub $LIBS"
9041
cat >conftest.$ac_ext <<_ACEOF
9042
#line $LINENO "configure"
9043
#include "confdefs.h"
9045
/* Override any gcc2 internal prototype to avoid an error. */
9049
/* We use char because int might match the return type of a gcc2
9050
builtin and then its argument prototype would still apply. */
9052
#ifdef F77_DUMMY_MAIN
9056
int F77_DUMMY_MAIN() { return 1; }
9066
rm -f conftest.$ac_objext conftest$ac_exeext
9067
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9068
(eval $ac_link) 2>&5
9070
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9071
(exit $ac_status); } &&
9072
{ ac_try='test -s conftest$ac_exeext'
9073
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9076
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077
(exit $ac_status); }; }; then
9078
ac_cv_lib_dnet_stub_dnet_ntoa=yes
9080
echo "$as_me: failed program was:" >&5
9081
cat conftest.$ac_ext >&5
9082
ac_cv_lib_dnet_stub_dnet_ntoa=no
9084
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9085
LIBS=$ac_check_lib_save_LIBS
9087
echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
9088
echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
9089
if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
9090
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
9095
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9096
LIBS="$ac_xsave_LIBS"
9098
# msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
9099
# to get the SysV transport functions.
9100
# Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
9102
# The nsl library prevents programs from opening the X display
9103
# on Irix 5.2, according to T.E. Dickey.
9104
# The functions gethostbyname, getservbyname, and inet_addr are
9105
# in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
9106
echo "$as_me:$LINENO: checking for gethostbyname" >&5
9107
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
9108
if test "${ac_cv_func_gethostbyname+set}" = set; then
9109
echo $ECHO_N "(cached) $ECHO_C" >&6
9111
cat >conftest.$ac_ext <<_ACEOF
9112
#line $LINENO "configure"
9113
#include "confdefs.h"
9114
/* System header to define __stub macros and hopefully few prototypes,
9115
which can conflict with char gethostbyname (); below. */
9117
/* Override any gcc2 internal prototype to avoid an error. */
9121
/* We use char because int might match the return type of a gcc2
9122
builtin and then its argument prototype would still apply. */
9123
char gethostbyname ();
9126
#ifdef F77_DUMMY_MAIN
9130
int F77_DUMMY_MAIN() { return 1; }
9135
/* The GNU C library defines this for functions which it implements
9136
to always fail with ENOSYS. Some functions are actually named
9137
something starting with __ and the normal name is an alias. */
9138
#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
9148
rm -f conftest.$ac_objext conftest$ac_exeext
9149
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9150
(eval $ac_link) 2>&5
9152
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9153
(exit $ac_status); } &&
9154
{ ac_try='test -s conftest$ac_exeext'
9155
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9158
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9159
(exit $ac_status); }; }; then
9160
ac_cv_func_gethostbyname=yes
9162
echo "$as_me: failed program was:" >&5
9163
cat conftest.$ac_ext >&5
9164
ac_cv_func_gethostbyname=no
9166
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9168
echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
9169
echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
9171
if test $ac_cv_func_gethostbyname = no; then
9172
echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
9173
echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
9174
if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
9175
echo $ECHO_N "(cached) $ECHO_C" >&6
9177
ac_check_lib_save_LIBS=$LIBS
9179
cat >conftest.$ac_ext <<_ACEOF
9180
#line $LINENO "configure"
9181
#include "confdefs.h"
9183
/* Override any gcc2 internal prototype to avoid an error. */
9187
/* We use char because int might match the return type of a gcc2
9188
builtin and then its argument prototype would still apply. */
9189
char gethostbyname ();
9190
#ifdef F77_DUMMY_MAIN
9194
int F77_DUMMY_MAIN() { return 1; }
9204
rm -f conftest.$ac_objext conftest$ac_exeext
9205
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9206
(eval $ac_link) 2>&5
9208
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9209
(exit $ac_status); } &&
9210
{ ac_try='test -s conftest$ac_exeext'
9211
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9214
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9215
(exit $ac_status); }; }; then
9216
ac_cv_lib_nsl_gethostbyname=yes
9218
echo "$as_me: failed program was:" >&5
9219
cat conftest.$ac_ext >&5
9220
ac_cv_lib_nsl_gethostbyname=no
9222
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9223
LIBS=$ac_check_lib_save_LIBS
9225
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
9226
echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
9227
if test $ac_cv_lib_nsl_gethostbyname = yes; then
9228
X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
9231
if test $ac_cv_lib_nsl_gethostbyname = no; then
9232
echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
9233
echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
9234
if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
9235
echo $ECHO_N "(cached) $ECHO_C" >&6
9237
ac_check_lib_save_LIBS=$LIBS
9239
cat >conftest.$ac_ext <<_ACEOF
9240
#line $LINENO "configure"
9241
#include "confdefs.h"
9243
/* Override any gcc2 internal prototype to avoid an error. */
9247
/* We use char because int might match the return type of a gcc2
9248
builtin and then its argument prototype would still apply. */
9249
char gethostbyname ();
9250
#ifdef F77_DUMMY_MAIN
9254
int F77_DUMMY_MAIN() { return 1; }
9264
rm -f conftest.$ac_objext conftest$ac_exeext
9265
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9266
(eval $ac_link) 2>&5
9268
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9269
(exit $ac_status); } &&
9270
{ ac_try='test -s conftest$ac_exeext'
9271
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9274
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9275
(exit $ac_status); }; }; then
9276
ac_cv_lib_bsd_gethostbyname=yes
9278
echo "$as_me: failed program was:" >&5
9279
cat conftest.$ac_ext >&5
9280
ac_cv_lib_bsd_gethostbyname=no
9282
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9283
LIBS=$ac_check_lib_save_LIBS
9285
echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
9286
echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
9287
if test $ac_cv_lib_bsd_gethostbyname = yes; then
9288
X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
9294
# lieder@skyler.mavd.honeywell.com says without -lsocket,
9295
# socket/setsockopt and other routines are undefined under SCO ODT
9296
# 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
9297
# on later versions), says Simon Leinen: it contains gethostby*
9298
# variants that don't use the nameserver (or something). -lsocket
9299
# must be given before -lnsl if both are needed. We assume that
9300
# if connect needs -lnsl, so does gethostbyname.
9301
echo "$as_me:$LINENO: checking for connect" >&5
9302
echo $ECHO_N "checking for connect... $ECHO_C" >&6
9303
if test "${ac_cv_func_connect+set}" = set; then
9304
echo $ECHO_N "(cached) $ECHO_C" >&6
9306
cat >conftest.$ac_ext <<_ACEOF
9307
#line $LINENO "configure"
9308
#include "confdefs.h"
9309
/* System header to define __stub macros and hopefully few prototypes,
9310
which can conflict with char connect (); below. */
9312
/* Override any gcc2 internal prototype to avoid an error. */
9316
/* We use char because int might match the return type of a gcc2
9317
builtin and then its argument prototype would still apply. */
9321
#ifdef F77_DUMMY_MAIN
9325
int F77_DUMMY_MAIN() { return 1; }
9330
/* The GNU C library defines this for functions which it implements
9331
to always fail with ENOSYS. Some functions are actually named
9332
something starting with __ and the normal name is an alias. */
9333
#if defined (__stub_connect) || defined (__stub___connect)
9343
rm -f conftest.$ac_objext conftest$ac_exeext
9344
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9345
(eval $ac_link) 2>&5
9347
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9348
(exit $ac_status); } &&
9349
{ ac_try='test -s conftest$ac_exeext'
9350
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9353
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9354
(exit $ac_status); }; }; then
9355
ac_cv_func_connect=yes
9357
echo "$as_me: failed program was:" >&5
9358
cat conftest.$ac_ext >&5
9359
ac_cv_func_connect=no
9361
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9363
echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
9364
echo "${ECHO_T}$ac_cv_func_connect" >&6
9366
if test $ac_cv_func_connect = no; then
9367
echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
9368
echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
9369
if test "${ac_cv_lib_socket_connect+set}" = set; then
9370
echo $ECHO_N "(cached) $ECHO_C" >&6
9372
ac_check_lib_save_LIBS=$LIBS
9373
LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
9374
cat >conftest.$ac_ext <<_ACEOF
9375
#line $LINENO "configure"
9376
#include "confdefs.h"
9378
/* Override any gcc2 internal prototype to avoid an error. */
9382
/* We use char because int might match the return type of a gcc2
9383
builtin and then its argument prototype would still apply. */
9385
#ifdef F77_DUMMY_MAIN
9389
int F77_DUMMY_MAIN() { return 1; }
9399
rm -f conftest.$ac_objext conftest$ac_exeext
9400
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9401
(eval $ac_link) 2>&5
9403
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9404
(exit $ac_status); } &&
9405
{ ac_try='test -s conftest$ac_exeext'
9406
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9409
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9410
(exit $ac_status); }; }; then
9411
ac_cv_lib_socket_connect=yes
9413
echo "$as_me: failed program was:" >&5
9414
cat conftest.$ac_ext >&5
9415
ac_cv_lib_socket_connect=no
9417
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9418
LIBS=$ac_check_lib_save_LIBS
9420
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
9421
echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
9422
if test $ac_cv_lib_socket_connect = yes; then
9423
X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
9428
# Guillermo Gomez says -lposix is necessary on A/UX.
9429
echo "$as_me:$LINENO: checking for remove" >&5
9430
echo $ECHO_N "checking for remove... $ECHO_C" >&6
9431
if test "${ac_cv_func_remove+set}" = set; then
9432
echo $ECHO_N "(cached) $ECHO_C" >&6
9434
cat >conftest.$ac_ext <<_ACEOF
9435
#line $LINENO "configure"
9436
#include "confdefs.h"
9437
/* System header to define __stub macros and hopefully few prototypes,
9438
which can conflict with char remove (); below. */
9440
/* Override any gcc2 internal prototype to avoid an error. */
9444
/* We use char because int might match the return type of a gcc2
9445
builtin and then its argument prototype would still apply. */
9449
#ifdef F77_DUMMY_MAIN
9453
int F77_DUMMY_MAIN() { return 1; }
9458
/* The GNU C library defines this for functions which it implements
9459
to always fail with ENOSYS. Some functions are actually named
9460
something starting with __ and the normal name is an alias. */
9461
#if defined (__stub_remove) || defined (__stub___remove)
9471
rm -f conftest.$ac_objext conftest$ac_exeext
9472
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9473
(eval $ac_link) 2>&5
9475
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9476
(exit $ac_status); } &&
9477
{ ac_try='test -s conftest$ac_exeext'
9478
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9481
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9482
(exit $ac_status); }; }; then
9483
ac_cv_func_remove=yes
9485
echo "$as_me: failed program was:" >&5
9486
cat conftest.$ac_ext >&5
9487
ac_cv_func_remove=no
9489
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9491
echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
9492
echo "${ECHO_T}$ac_cv_func_remove" >&6
9494
if test $ac_cv_func_remove = no; then
9495
echo "$as_me:$LINENO: checking for remove in -lposix" >&5
9496
echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
9497
if test "${ac_cv_lib_posix_remove+set}" = set; then
9498
echo $ECHO_N "(cached) $ECHO_C" >&6
9500
ac_check_lib_save_LIBS=$LIBS
9501
LIBS="-lposix $LIBS"
9502
cat >conftest.$ac_ext <<_ACEOF
9503
#line $LINENO "configure"
9504
#include "confdefs.h"
9506
/* Override any gcc2 internal prototype to avoid an error. */
9510
/* We use char because int might match the return type of a gcc2
9511
builtin and then its argument prototype would still apply. */
9513
#ifdef F77_DUMMY_MAIN
9517
int F77_DUMMY_MAIN() { return 1; }
9527
rm -f conftest.$ac_objext conftest$ac_exeext
9528
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9529
(eval $ac_link) 2>&5
9531
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9532
(exit $ac_status); } &&
9533
{ ac_try='test -s conftest$ac_exeext'
9534
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9537
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9538
(exit $ac_status); }; }; then
9539
ac_cv_lib_posix_remove=yes
9541
echo "$as_me: failed program was:" >&5
9542
cat conftest.$ac_ext >&5
9543
ac_cv_lib_posix_remove=no
9545
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9546
LIBS=$ac_check_lib_save_LIBS
9548
echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
9549
echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
9550
if test $ac_cv_lib_posix_remove = yes; then
9551
X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
9556
# BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
9557
echo "$as_me:$LINENO: checking for shmat" >&5
9558
echo $ECHO_N "checking for shmat... $ECHO_C" >&6
9559
if test "${ac_cv_func_shmat+set}" = set; then
9560
echo $ECHO_N "(cached) $ECHO_C" >&6
9562
cat >conftest.$ac_ext <<_ACEOF
9563
#line $LINENO "configure"
9564
#include "confdefs.h"
9565
/* System header to define __stub macros and hopefully few prototypes,
9566
which can conflict with char shmat (); below. */
9568
/* Override any gcc2 internal prototype to avoid an error. */
9572
/* We use char because int might match the return type of a gcc2
9573
builtin and then its argument prototype would still apply. */
9577
#ifdef F77_DUMMY_MAIN
9581
int F77_DUMMY_MAIN() { return 1; }
9586
/* The GNU C library defines this for functions which it implements
9587
to always fail with ENOSYS. Some functions are actually named
9588
something starting with __ and the normal name is an alias. */
9589
#if defined (__stub_shmat) || defined (__stub___shmat)
9599
rm -f conftest.$ac_objext conftest$ac_exeext
9600
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9601
(eval $ac_link) 2>&5
9603
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9604
(exit $ac_status); } &&
9605
{ ac_try='test -s conftest$ac_exeext'
9606
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9609
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9610
(exit $ac_status); }; }; then
9611
ac_cv_func_shmat=yes
9613
echo "$as_me: failed program was:" >&5
9614
cat conftest.$ac_ext >&5
9617
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9619
echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
9620
echo "${ECHO_T}$ac_cv_func_shmat" >&6
9622
if test $ac_cv_func_shmat = no; then
9623
echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
9624
echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
9625
if test "${ac_cv_lib_ipc_shmat+set}" = set; then
9626
echo $ECHO_N "(cached) $ECHO_C" >&6
9628
ac_check_lib_save_LIBS=$LIBS
9630
cat >conftest.$ac_ext <<_ACEOF
9631
#line $LINENO "configure"
9632
#include "confdefs.h"
9634
/* Override any gcc2 internal prototype to avoid an error. */
9638
/* We use char because int might match the return type of a gcc2
9639
builtin and then its argument prototype would still apply. */
9641
#ifdef F77_DUMMY_MAIN
9645
int F77_DUMMY_MAIN() { return 1; }
9655
rm -f conftest.$ac_objext conftest$ac_exeext
9656
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9657
(eval $ac_link) 2>&5
9659
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9660
(exit $ac_status); } &&
9661
{ ac_try='test -s conftest$ac_exeext'
9662
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9665
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9666
(exit $ac_status); }; }; then
9667
ac_cv_lib_ipc_shmat=yes
9669
echo "$as_me: failed program was:" >&5
9670
cat conftest.$ac_ext >&5
9671
ac_cv_lib_ipc_shmat=no
9673
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9674
LIBS=$ac_check_lib_save_LIBS
9676
echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
9677
echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
9678
if test $ac_cv_lib_ipc_shmat = yes; then
9679
X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9685
# Check for libraries that X11R6 Xt/Xaw programs need.
9686
ac_save_LDFLAGS=$LDFLAGS
9687
test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9688
# SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9689
# check for ICE first), but we must link in the order -lSM -lICE or
9690
# we get undefined symbols. So assume we have SM if we have ICE.
9691
# These have to be linked with before -lX11, unlike the other
9692
# libraries we check for below, so use a different variable.
9693
# John Interrante, Karl Berry
9694
echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
9695
echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
9696
if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
9697
echo $ECHO_N "(cached) $ECHO_C" >&6
9699
ac_check_lib_save_LIBS=$LIBS
9700
LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9701
cat >conftest.$ac_ext <<_ACEOF
9702
#line $LINENO "configure"
9703
#include "confdefs.h"
9705
/* Override any gcc2 internal prototype to avoid an error. */
9709
/* We use char because int might match the return type of a gcc2
9710
builtin and then its argument prototype would still apply. */
9711
char IceConnectionNumber ();
9712
#ifdef F77_DUMMY_MAIN
9716
int F77_DUMMY_MAIN() { return 1; }
9721
IceConnectionNumber ();
9726
rm -f conftest.$ac_objext conftest$ac_exeext
9727
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9728
(eval $ac_link) 2>&5
9730
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731
(exit $ac_status); } &&
9732
{ ac_try='test -s conftest$ac_exeext'
9733
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9736
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9737
(exit $ac_status); }; }; then
9738
ac_cv_lib_ICE_IceConnectionNumber=yes
9740
echo "$as_me: failed program was:" >&5
9741
cat conftest.$ac_ext >&5
9742
ac_cv_lib_ICE_IceConnectionNumber=no
9744
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9745
LIBS=$ac_check_lib_save_LIBS
9747
echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9748
echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
9749
if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
9750
X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9753
LDFLAGS=$ac_save_LDFLAGS
9757
LIBS="$X_LIBS $SOCKET_LIBS"
9758
if test "$no_x" = yes; then
9759
{ echo "$as_me:$LINENO: WARNING: X11 not available." >&5
9760
echo "$as_me: WARNING: X11 not available." >&2;}
9765
echo "$as_me:$LINENO: checking for main in -lX11" >&5
9766
echo $ECHO_N "checking for main in -lX11... $ECHO_C" >&6
9767
if test "${ac_cv_lib_X11_main+set}" = set; then
9768
echo $ECHO_N "(cached) $ECHO_C" >&6
9770
ac_check_lib_save_LIBS=$LIBS
9772
cat >conftest.$ac_ext <<_ACEOF
9773
#line $LINENO "configure"
9774
#include "confdefs.h"
9776
#ifdef F77_DUMMY_MAIN
9780
int F77_DUMMY_MAIN() { return 1; }
9790
rm -f conftest.$ac_objext conftest$ac_exeext
9791
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9792
(eval $ac_link) 2>&5
9794
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795
(exit $ac_status); } &&
9796
{ ac_try='test -s conftest$ac_exeext'
9797
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9800
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9801
(exit $ac_status); }; }; then
9802
ac_cv_lib_X11_main=yes
9804
echo "$as_me: failed program was:" >&5
9805
cat conftest.$ac_ext >&5
9806
ac_cv_lib_X11_main=no
9808
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9809
LIBS=$ac_check_lib_save_LIBS
9811
echo "$as_me:$LINENO: result: $ac_cv_lib_X11_main" >&5
9812
echo "${ECHO_T}$ac_cv_lib_X11_main" >&6
9813
if test $ac_cv_lib_X11_main = yes; then
9814
cat >>confdefs.h <<_ACEOF
9815
#define HAVE_LIBX11 1
9821
{ { echo "$as_me:$LINENO: error: libX11 not found." >&5
9822
echo "$as_me: error: libX11 not found." >&2;}
9823
{ (exit 1); exit 1; }; }
9832
# gd only inputs from xbm files, no output is provided, so its of no use to us.
9834
# save_INCLUDES=$INCLUDES
9836
# if test -f "/usr/include/X11/xpm.h"; then
9837
# XPM_INCLUDES="-I/usr/include/X11"
9839
# if test -f "${x_includes}/xpm.h"; then
9840
# XPM_INCLUDES="-I${x_includes}"
9842
# if test -f "${x_includes}/X11/xpm.h"; then
9843
# XPM_INCLUDES="-I${x_includes}/X11"
9848
# if test "$no_x" = yes; then
9849
# AC_MSG_WARN(No X, so no XPM support.)
9851
# AC_ARG_WITH(Xpmincludedir,
9852
# [ --with-Xpmincludedir=DIR use Xpm includes from DIR],
9853
# XPM_INCLUDES="-I$withval",)
9854
# AC_ARG_WITH(Xpmlibdir,
9855
# [ --with-Xpmlibdir=DIR use Xpm libraries from DIR],
9856
# XPM_LIBS="-L$withval",)
9857
# INCLUDES="$INCLUDES $XPM_INCLUDES"
9858
# LIBS="$LIBS $XPM_LIBS -lXpm -lX11 $SOCKET_LIBS"
9859
# AC_CHECK_LIB(Xpm,main,,AC_MSG_WARN(Optional XPM library not available.))
9861
# if test "$ac_cv_lib_Xpm_main" = yes; then
9862
# XPM_LIBS="$XPM_LIBS -lXpm -lX11 $SOCKET_LIBS"
9865
# INCLUDES=$save_INCLUDES
9867
save_CPPFLAGS=$CPPFLAGS
9868
save_LDFLAGS=$LDFLAGS
9869
if test -f "/usr/include/freetype2/freetype/freetype.h"; then
9870
FT_INCLUDES="-I/usr/include/freetype2"
9872
if test -f "/usr/local/include/freetype2/freetype/freetype.h"; then
9873
FT_INCLUDES="-I/usr/local/include/freetype2"
9875
if test -f "/usr/local/include/freetype/freetype.h"; then
9876
FT_INCLUDES="-I/usr/local/include"
9881
# Check whether --with-freetypeincludedir or --without-freetypeincludedir was given.
9882
if test "${with_freetypeincludedir+set}" = set; then
9883
withval="$with_freetypeincludedir"
9884
FT_INCLUDES="-I$withval"
9886
CPPFLAGS="$CPPFLAGS $FT_INCLUDES"
9888
# Check whether --with-freetypelibdir or --without-freetypelibdir was given.
9889
if test "${with_freetypelibdir+set}" = set; then
9890
withval="$with_freetypelibdir"
9891
FT_LIBS="-L$withval"
9892
LDFLAGS="$LDFLAGS $FT_LIBS"
9894
if test "${ac_cv_header_freetype_freetype_h+set}" = set; then
9895
echo "$as_me:$LINENO: checking for freetype/freetype.h" >&5
9896
echo $ECHO_N "checking for freetype/freetype.h... $ECHO_C" >&6
9897
if test "${ac_cv_header_freetype_freetype_h+set}" = set; then
9898
echo $ECHO_N "(cached) $ECHO_C" >&6
9900
echo "$as_me:$LINENO: result: $ac_cv_header_freetype_freetype_h" >&5
9901
echo "${ECHO_T}$ac_cv_header_freetype_freetype_h" >&6
9903
# Is the header compilable?
9904
echo "$as_me:$LINENO: checking freetype/freetype.h usability" >&5
9905
echo $ECHO_N "checking freetype/freetype.h usability... $ECHO_C" >&6
9906
cat >conftest.$ac_ext <<_ACEOF
9907
#line $LINENO "configure"
9908
#include "confdefs.h"
9909
$ac_includes_default
9910
#include <freetype/freetype.h>
9912
rm -f conftest.$ac_objext
9913
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9914
(eval $ac_compile) 2>&5
9916
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9917
(exit $ac_status); } &&
9918
{ ac_try='test -s conftest.$ac_objext'
9919
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9922
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9923
(exit $ac_status); }; }; then
9924
ac_header_compiler=yes
9926
echo "$as_me: failed program was:" >&5
9927
cat conftest.$ac_ext >&5
9928
ac_header_compiler=no
9930
rm -f conftest.$ac_objext conftest.$ac_ext
9931
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9932
echo "${ECHO_T}$ac_header_compiler" >&6
9934
# Is the header present?
9935
echo "$as_me:$LINENO: checking freetype/freetype.h presence" >&5
9936
echo $ECHO_N "checking freetype/freetype.h presence... $ECHO_C" >&6
9937
cat >conftest.$ac_ext <<_ACEOF
9938
#line $LINENO "configure"
9939
#include "confdefs.h"
9940
#include <freetype/freetype.h>
9942
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9943
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9945
egrep -v '^ *\+' conftest.er1 >conftest.err
9947
cat conftest.err >&5
9948
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9949
(exit $ac_status); } >/dev/null; then
9950
if test -s conftest.err; then
9951
ac_cpp_err=$ac_c_preproc_warn_flag
9958
if test -z "$ac_cpp_err"; then
9959
ac_header_preproc=yes
9961
echo "$as_me: failed program was:" >&5
9962
cat conftest.$ac_ext >&5
9963
ac_header_preproc=no
9965
rm -f conftest.err conftest.$ac_ext
9966
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9967
echo "${ECHO_T}$ac_header_preproc" >&6
9969
# So? What about this header?
9970
case $ac_header_compiler:$ac_header_preproc in
9972
{ echo "$as_me:$LINENO: WARNING: freetype/freetype.h: accepted by the compiler, rejected by the preprocessor!" >&5
9973
echo "$as_me: WARNING: freetype/freetype.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9974
{ echo "$as_me:$LINENO: WARNING: freetype/freetype.h: proceeding with the preprocessor's result" >&5
9975
echo "$as_me: WARNING: freetype/freetype.h: proceeding with the preprocessor's result" >&2;};;
9977
{ echo "$as_me:$LINENO: WARNING: freetype/freetype.h: present but cannot be compiled." >&5
9978
echo "$as_me: WARNING: freetype/freetype.h: present but cannot be compiled." >&2;}
9979
{ echo "$as_me:$LINENO: WARNING: freetype/freetype.h: check for missing prerequisite headers?" >&5
9980
echo "$as_me: WARNING: freetype/freetype.h: check for missing prerequisite headers?" >&2;}
9981
{ echo "$as_me:$LINENO: WARNING: freetype/freetype.h: proceeding with the preprocessor's result" >&5
9982
echo "$as_me: WARNING: freetype/freetype.h: proceeding with the preprocessor's result" >&2;};;
9984
echo "$as_me:$LINENO: checking for freetype/freetype.h" >&5
9985
echo $ECHO_N "checking for freetype/freetype.h... $ECHO_C" >&6
9986
if test "${ac_cv_header_freetype_freetype_h+set}" = set; then
9987
echo $ECHO_N "(cached) $ECHO_C" >&6
9989
ac_cv_header_freetype_freetype_h=$ac_header_preproc
9991
echo "$as_me:$LINENO: result: $ac_cv_header_freetype_freetype_h" >&5
9992
echo "${ECHO_T}$ac_cv_header_freetype_freetype_h" >&6
9995
if test $ac_cv_header_freetype_freetype_h = yes; then
9996
echo "$as_me:$LINENO: checking for main in -lfreetype" >&5
9997
echo $ECHO_N "checking for main in -lfreetype... $ECHO_C" >&6
9998
if test "${ac_cv_lib_freetype_main+set}" = set; then
9999
echo $ECHO_N "(cached) $ECHO_C" >&6
10001
ac_check_lib_save_LIBS=$LIBS
10002
LIBS="-lfreetype $LIBS"
10003
cat >conftest.$ac_ext <<_ACEOF
10004
#line $LINENO "configure"
10005
#include "confdefs.h"
10007
#ifdef F77_DUMMY_MAIN
10008
# ifdef __cplusplus
10011
int F77_DUMMY_MAIN() { return 1; }
10021
rm -f conftest.$ac_objext conftest$ac_exeext
10022
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10023
(eval $ac_link) 2>&5
10025
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10026
(exit $ac_status); } &&
10027
{ ac_try='test -s conftest$ac_exeext'
10028
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10029
(eval $ac_try) 2>&5
10031
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032
(exit $ac_status); }; }; then
10033
ac_cv_lib_freetype_main=yes
10035
echo "$as_me: failed program was:" >&5
10036
cat conftest.$ac_ext >&5
10037
ac_cv_lib_freetype_main=no
10039
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10040
LIBS=$ac_check_lib_save_LIBS
10042
echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_main" >&5
10043
echo "${ECHO_T}$ac_cv_lib_freetype_main" >&6
10044
if test $ac_cv_lib_freetype_main = yes; then
10045
FT_LIBS="$FT_LIBS -lfreetype"
10047
cat >>confdefs.h <<_ACEOF
10048
#define HAVE_LIBFREETYPE 1
10052
{ echo "$as_me:$LINENO: WARNING: FreeType library not available. Will try for older TTF library instead." >&5
10053
echo "$as_me: WARNING: FreeType library not available. Will try for older TTF library instead." >&2;}
10054
echo "$as_me:$LINENO: checking for main in -lttf" >&5
10055
echo $ECHO_N "checking for main in -lttf... $ECHO_C" >&6
10056
if test "${ac_cv_lib_ttf_main+set}" = set; then
10057
echo $ECHO_N "(cached) $ECHO_C" >&6
10059
ac_check_lib_save_LIBS=$LIBS
10061
cat >conftest.$ac_ext <<_ACEOF
10062
#line $LINENO "configure"
10063
#include "confdefs.h"
10065
#ifdef F77_DUMMY_MAIN
10066
# ifdef __cplusplus
10069
int F77_DUMMY_MAIN() { return 1; }
10079
rm -f conftest.$ac_objext conftest$ac_exeext
10080
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10081
(eval $ac_link) 2>&5
10083
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10084
(exit $ac_status); } &&
10085
{ ac_try='test -s conftest$ac_exeext'
10086
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10087
(eval $ac_try) 2>&5
10089
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10090
(exit $ac_status); }; }; then
10091
ac_cv_lib_ttf_main=yes
10093
echo "$as_me: failed program was:" >&5
10094
cat conftest.$ac_ext >&5
10095
ac_cv_lib_ttf_main=no
10097
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10098
LIBS=$ac_check_lib_save_LIBS
10100
echo "$as_me:$LINENO: result: $ac_cv_lib_ttf_main" >&5
10101
echo "${ECHO_T}$ac_cv_lib_ttf_main" >&6
10102
if test $ac_cv_lib_ttf_main = yes; then
10103
FT_LIBS="$FT_LIBS -lttf"
10105
cat >>confdefs.h <<_ACEOF
10106
#define HAVE_LIBTTF 1
10110
{ echo "$as_me:$LINENO: WARNING: Required TTF library not available (need freetype + freetype-devel rpms)." >&5
10111
echo "$as_me: WARNING: Required TTF library not available (need freetype + freetype-devel rpms)." >&2;}
10117
{ echo "$as_me:$LINENO: WARNING: Optional freetype library not available - no freetype.h" >&5
10118
echo "$as_me: WARNING: Optional freetype library not available - no freetype.h" >&2;}
10121
CPPFLAGS=$save_CPPFLAGS
10122
LDFLAGS=$save_LDFLAGS
10124
save_CPPFLAGS=$CPPFLAGS
10125
save_LDFLAGS=$LDFLAGS
10127
# Check whether --with-iconvincludedir or --without-iconvincludedir was given.
10128
if test "${with_iconvincludedir+set}" = set; then
10129
withval="$with_iconvincludedir"
10130
ICONV_INCLUDES="-I$withval"
10131
CPPFLAGS="$CPPFLAGS -I$withval"
10134
# Check whether --with-iconvlibdir or --without-iconvlibdir was given.
10135
if test "${with_iconvlibdir+set}" = set; then
10136
withval="$with_iconvlibdir"
10137
ICONV_LIBS="-L$withval"
10138
LDFLAGS="$LDFLAGS -L$withval"
10140
# Some systems have iconv in a separate library (e.g. Tru64 UNIX)
10141
if test "${ac_cv_header_iconv_h+set}" = set; then
10142
echo "$as_me:$LINENO: checking for iconv.h" >&5
10143
echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
10144
if test "${ac_cv_header_iconv_h+set}" = set; then
10145
echo $ECHO_N "(cached) $ECHO_C" >&6
10147
echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
10148
echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
10150
# Is the header compilable?
10151
echo "$as_me:$LINENO: checking iconv.h usability" >&5
10152
echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
10153
cat >conftest.$ac_ext <<_ACEOF
10154
#line $LINENO "configure"
10155
#include "confdefs.h"
10156
$ac_includes_default
10159
rm -f conftest.$ac_objext
10160
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10161
(eval $ac_compile) 2>&5
10163
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10164
(exit $ac_status); } &&
10165
{ ac_try='test -s conftest.$ac_objext'
10166
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10167
(eval $ac_try) 2>&5
10169
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10170
(exit $ac_status); }; }; then
10171
ac_header_compiler=yes
10173
echo "$as_me: failed program was:" >&5
10174
cat conftest.$ac_ext >&5
10175
ac_header_compiler=no
10177
rm -f conftest.$ac_objext conftest.$ac_ext
10178
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10179
echo "${ECHO_T}$ac_header_compiler" >&6
10181
# Is the header present?
10182
echo "$as_me:$LINENO: checking iconv.h presence" >&5
10183
echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
10184
cat >conftest.$ac_ext <<_ACEOF
10185
#line $LINENO "configure"
10186
#include "confdefs.h"
10189
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10190
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10192
egrep -v '^ *\+' conftest.er1 >conftest.err
10194
cat conftest.err >&5
10195
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10196
(exit $ac_status); } >/dev/null; then
10197
if test -s conftest.err; then
10198
ac_cpp_err=$ac_c_preproc_warn_flag
10205
if test -z "$ac_cpp_err"; then
10206
ac_header_preproc=yes
10208
echo "$as_me: failed program was:" >&5
10209
cat conftest.$ac_ext >&5
10210
ac_header_preproc=no
10212
rm -f conftest.err conftest.$ac_ext
10213
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10214
echo "${ECHO_T}$ac_header_preproc" >&6
10216
# So? What about this header?
10217
case $ac_header_compiler:$ac_header_preproc in
10219
{ echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
10220
echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10221
{ echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
10222
echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;};;
10224
{ echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled." >&5
10225
echo "$as_me: WARNING: iconv.h: present but cannot be compiled." >&2;}
10226
{ echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
10227
echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
10228
{ echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
10229
echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;};;
10231
echo "$as_me:$LINENO: checking for iconv.h" >&5
10232
echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
10233
if test "${ac_cv_header_iconv_h+set}" = set; then
10234
echo $ECHO_N "(cached) $ECHO_C" >&6
10236
ac_cv_header_iconv_h=$ac_header_preproc
10238
echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
10239
echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
10242
if test $ac_cv_header_iconv_h = yes; then
10244
for ac_func in iconv
10246
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10247
echo "$as_me:$LINENO: checking for $ac_func" >&5
10248
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10249
if eval "test \"\${$as_ac_var+set}\" = set"; then
10250
echo $ECHO_N "(cached) $ECHO_C" >&6
10252
cat >conftest.$ac_ext <<_ACEOF
10253
#line $LINENO "configure"
10254
#include "confdefs.h"
10255
/* System header to define __stub macros and hopefully few prototypes
10257
which can conflict with char $ac_func (); below. */
10258
#include <assert.h>
10259
/* Override any gcc2 internal prototype to avoid an error. */
10263
/* We use char because int might match the return type of a gcc2
10264
builtin and then its argument prototype would still apply. */
10268
#ifdef F77_DUMMY_MAIN
10269
# ifdef __cplusplus
10272
int F77_DUMMY_MAIN() { return 1; }
10277
/* The GNU C library defines this for functions which it implements
10278
to always fail with ENOSYS. Some functions are actually named
10279
something starting with __ and the normal name is an alias. */
10280
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10290
rm -f conftest.$ac_objext conftest$ac_exeext
10291
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10292
(eval $ac_link) 2>&5
10294
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10295
(exit $ac_status); } &&
10296
{ ac_try='test -s conftest$ac_exeext'
10297
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10298
(eval $ac_try) 2>&5
10300
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10301
(exit $ac_status); }; }; then
10302
eval "$as_ac_var=yes"
10304
echo "$as_me: failed program was:" >&5
10305
cat conftest.$ac_ext >&5
10306
eval "$as_ac_var=no"
10308
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10310
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10311
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10312
if test `eval echo '${'$as_ac_var'}'` = yes; then
10313
cat >>confdefs.h <<_ACEOF
10314
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10318
echo "$as_me:$LINENO: checking for main in -liconv" >&5
10319
echo $ECHO_N "checking for main in -liconv... $ECHO_C" >&6
10320
if test "${ac_cv_lib_iconv_main+set}" = set; then
10321
echo $ECHO_N "(cached) $ECHO_C" >&6
10323
ac_check_lib_save_LIBS=$LIBS
10324
LIBS="-liconv $LIBS"
10325
cat >conftest.$ac_ext <<_ACEOF
10326
#line $LINENO "configure"
10327
#include "confdefs.h"
10329
#ifdef F77_DUMMY_MAIN
10330
# ifdef __cplusplus
10333
int F77_DUMMY_MAIN() { return 1; }
10343
rm -f conftest.$ac_objext conftest$ac_exeext
10344
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10345
(eval $ac_link) 2>&5
10347
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10348
(exit $ac_status); } &&
10349
{ ac_try='test -s conftest$ac_exeext'
10350
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10351
(eval $ac_try) 2>&5
10353
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10354
(exit $ac_status); }; }; then
10355
ac_cv_lib_iconv_main=yes
10357
echo "$as_me: failed program was:" >&5
10358
cat conftest.$ac_ext >&5
10359
ac_cv_lib_iconv_main=no
10361
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10362
LIBS=$ac_check_lib_save_LIBS
10364
echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_main" >&5
10365
echo "${ECHO_T}$ac_cv_lib_iconv_main" >&6
10366
if test $ac_cv_lib_iconv_main = yes; then
10367
ICONV_LIBS="$ICONV_LIBS -liconv"
10369
cat >>confdefs.h <<_ACEOF
10370
#define HAVE_LIBICONV 1
10374
{ echo "$as_me:$LINENO: WARNING: Optional iconv library not available - no iconv.h" >&5
10375
echo "$as_me: WARNING: Optional iconv library not available - no iconv.h" >&2;}
10383
LDFLAGS=$save_LDFLAGS
10384
CPPFLAGS=$save_CPPFLAGS
10386
save_CPPFLAGS=$CPPFLAGS
10387
save_LDFLAGS=$LDFLAGS
10389
# Check whether --with-zincludedir or --without-zincludedir was given.
10390
if test "${with_zincludedir+set}" = set; then
10391
withval="$with_zincludedir"
10392
Z_INCLUDES="-I$withval"
10393
CPPFLAGS="$CPPFLAGS -I$withval"
10396
# Check whether --with-zlibdir or --without-zlibdir was given.
10397
if test "${with_zlibdir+set}" = set; then
10398
withval="$with_zlibdir"
10399
Z_LIBS="-L$withval"
10400
LDFLAGS="$LDFLAGS -L$withval"
10402
if test "${ac_cv_header_zlib_h+set}" = set; then
10403
echo "$as_me:$LINENO: checking for zlib.h" >&5
10404
echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
10405
if test "${ac_cv_header_zlib_h+set}" = set; then
10406
echo $ECHO_N "(cached) $ECHO_C" >&6
10408
echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
10409
echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
10411
# Is the header compilable?
10412
echo "$as_me:$LINENO: checking zlib.h usability" >&5
10413
echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
10414
cat >conftest.$ac_ext <<_ACEOF
10415
#line $LINENO "configure"
10416
#include "confdefs.h"
10417
$ac_includes_default
10420
rm -f conftest.$ac_objext
10421
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10422
(eval $ac_compile) 2>&5
10424
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10425
(exit $ac_status); } &&
10426
{ ac_try='test -s conftest.$ac_objext'
10427
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10428
(eval $ac_try) 2>&5
10430
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10431
(exit $ac_status); }; }; then
10432
ac_header_compiler=yes
10434
echo "$as_me: failed program was:" >&5
10435
cat conftest.$ac_ext >&5
10436
ac_header_compiler=no
10438
rm -f conftest.$ac_objext conftest.$ac_ext
10439
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10440
echo "${ECHO_T}$ac_header_compiler" >&6
10442
# Is the header present?
10443
echo "$as_me:$LINENO: checking zlib.h presence" >&5
10444
echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
10445
cat >conftest.$ac_ext <<_ACEOF
10446
#line $LINENO "configure"
10447
#include "confdefs.h"
10450
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10451
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10453
egrep -v '^ *\+' conftest.er1 >conftest.err
10455
cat conftest.err >&5
10456
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10457
(exit $ac_status); } >/dev/null; then
10458
if test -s conftest.err; then
10459
ac_cpp_err=$ac_c_preproc_warn_flag
10466
if test -z "$ac_cpp_err"; then
10467
ac_header_preproc=yes
10469
echo "$as_me: failed program was:" >&5
10470
cat conftest.$ac_ext >&5
10471
ac_header_preproc=no
10473
rm -f conftest.err conftest.$ac_ext
10474
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10475
echo "${ECHO_T}$ac_header_preproc" >&6
10477
# So? What about this header?
10478
case $ac_header_compiler:$ac_header_preproc in
10480
{ echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
10481
echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10482
{ echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
10483
echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
10485
{ echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled." >&5
10486
echo "$as_me: WARNING: zlib.h: present but cannot be compiled." >&2;}
10487
{ echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
10488
echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
10489
{ echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
10490
echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
10492
echo "$as_me:$LINENO: checking for zlib.h" >&5
10493
echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
10494
if test "${ac_cv_header_zlib_h+set}" = set; then
10495
echo $ECHO_N "(cached) $ECHO_C" >&6
10497
ac_cv_header_zlib_h=$ac_header_preproc
10499
echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
10500
echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
10503
if test $ac_cv_header_zlib_h = yes; then
10504
echo "$as_me:$LINENO: checking for main in -lz" >&5
10505
echo $ECHO_N "checking for main in -lz... $ECHO_C" >&6
10506
if test "${ac_cv_lib_z_main+set}" = set; then
10507
echo $ECHO_N "(cached) $ECHO_C" >&6
10509
ac_check_lib_save_LIBS=$LIBS
10511
cat >conftest.$ac_ext <<_ACEOF
10512
#line $LINENO "configure"
10513
#include "confdefs.h"
10515
#ifdef F77_DUMMY_MAIN
10516
# ifdef __cplusplus
10519
int F77_DUMMY_MAIN() { return 1; }
10529
rm -f conftest.$ac_objext conftest$ac_exeext
10530
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10531
(eval $ac_link) 2>&5
10533
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10534
(exit $ac_status); } &&
10535
{ ac_try='test -s conftest$ac_exeext'
10536
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10537
(eval $ac_try) 2>&5
10539
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540
(exit $ac_status); }; }; then
10541
ac_cv_lib_z_main=yes
10543
echo "$as_me: failed program was:" >&5
10544
cat conftest.$ac_ext >&5
10545
ac_cv_lib_z_main=no
10547
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10548
LIBS=$ac_check_lib_save_LIBS
10550
echo "$as_me:$LINENO: result: $ac_cv_lib_z_main" >&5
10551
echo "${ECHO_T}$ac_cv_lib_z_main" >&6
10552
if test $ac_cv_lib_z_main = yes; then
10553
Z_LIBS="$Z_LIBS -lz"
10555
cat >>confdefs.h <<_ACEOF
10556
#define HAVE_LIBZ 1
10560
{ echo "$as_me:$LINENO: WARNING: Optional z library not available" >&5
10561
echo "$as_me: WARNING: Optional z library not available" >&2;}
10565
{ echo "$as_me:$LINENO: WARNING: Optional z library not available - no zlib.h" >&5
10566
echo "$as_me: WARNING: Optional z library not available - no zlib.h" >&2;}
10569
LDFLAGS=$save_LDFLAGS
10570
CPPFLAGS=$save_CPPFLAGS
10572
save_CPPFLAGS=$CPPFLAGS
10573
save_LDFLAGS=$LDFLAGS
10575
# Check whether --with-pngincludedir or --without-pngincludedir was given.
10576
if test "${with_pngincludedir+set}" = set; then
10577
withval="$with_pngincludedir"
10578
PNG_INCLUDES="-I$withval"
10579
CPPFLAGS="$CPPFLAGS -I$withval"
10582
# Check whether --with-pnglibdir or --without-pnglibdir was given.
10583
if test "${with_pnglibdir+set}" = set; then
10584
withval="$with_pnglibdir"
10585
PNG_LIBS="-L$withval"
10586
LDFLAGS="$LDFLAGS -L$withval"
10588
if test "${ac_cv_header_png_h+set}" = set; then
10589
echo "$as_me:$LINENO: checking for png.h" >&5
10590
echo $ECHO_N "checking for png.h... $ECHO_C" >&6
10591
if test "${ac_cv_header_png_h+set}" = set; then
10592
echo $ECHO_N "(cached) $ECHO_C" >&6
10594
echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
10595
echo "${ECHO_T}$ac_cv_header_png_h" >&6
10597
# Is the header compilable?
10598
echo "$as_me:$LINENO: checking png.h usability" >&5
10599
echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
10600
cat >conftest.$ac_ext <<_ACEOF
10601
#line $LINENO "configure"
10602
#include "confdefs.h"
10603
$ac_includes_default
10606
rm -f conftest.$ac_objext
10607
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10608
(eval $ac_compile) 2>&5
10610
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10611
(exit $ac_status); } &&
10612
{ ac_try='test -s conftest.$ac_objext'
10613
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10614
(eval $ac_try) 2>&5
10616
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10617
(exit $ac_status); }; }; then
10618
ac_header_compiler=yes
10620
echo "$as_me: failed program was:" >&5
10621
cat conftest.$ac_ext >&5
10622
ac_header_compiler=no
10624
rm -f conftest.$ac_objext conftest.$ac_ext
10625
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10626
echo "${ECHO_T}$ac_header_compiler" >&6
10628
# Is the header present?
10629
echo "$as_me:$LINENO: checking png.h presence" >&5
10630
echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
10631
cat >conftest.$ac_ext <<_ACEOF
10632
#line $LINENO "configure"
10633
#include "confdefs.h"
10636
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10637
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10639
egrep -v '^ *\+' conftest.er1 >conftest.err
10641
cat conftest.err >&5
10642
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643
(exit $ac_status); } >/dev/null; then
10644
if test -s conftest.err; then
10645
ac_cpp_err=$ac_c_preproc_warn_flag
10652
if test -z "$ac_cpp_err"; then
10653
ac_header_preproc=yes
10655
echo "$as_me: failed program was:" >&5
10656
cat conftest.$ac_ext >&5
10657
ac_header_preproc=no
10659
rm -f conftest.err conftest.$ac_ext
10660
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10661
echo "${ECHO_T}$ac_header_preproc" >&6
10663
# So? What about this header?
10664
case $ac_header_compiler:$ac_header_preproc in
10666
{ echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
10667
echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10668
{ echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
10669
echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;};;
10671
{ echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled." >&5
10672
echo "$as_me: WARNING: png.h: present but cannot be compiled." >&2;}
10673
{ echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
10674
echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
10675
{ echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
10676
echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;};;
10678
echo "$as_me:$LINENO: checking for png.h" >&5
10679
echo $ECHO_N "checking for png.h... $ECHO_C" >&6
10680
if test "${ac_cv_header_png_h+set}" = set; then
10681
echo $ECHO_N "(cached) $ECHO_C" >&6
10683
ac_cv_header_png_h=$ac_header_preproc
10685
echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
10686
echo "${ECHO_T}$ac_cv_header_png_h" >&6
10689
if test $ac_cv_header_png_h = yes; then
10690
echo "$as_me:$LINENO: checking for main in -lpng" >&5
10691
echo $ECHO_N "checking for main in -lpng... $ECHO_C" >&6
10692
if test "${ac_cv_lib_png_main+set}" = set; then
10693
echo $ECHO_N "(cached) $ECHO_C" >&6
10695
ac_check_lib_save_LIBS=$LIBS
10697
cat >conftest.$ac_ext <<_ACEOF
10698
#line $LINENO "configure"
10699
#include "confdefs.h"
10701
#ifdef F77_DUMMY_MAIN
10702
# ifdef __cplusplus
10705
int F77_DUMMY_MAIN() { return 1; }
10715
rm -f conftest.$ac_objext conftest$ac_exeext
10716
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10717
(eval $ac_link) 2>&5
10719
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10720
(exit $ac_status); } &&
10721
{ ac_try='test -s conftest$ac_exeext'
10722
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10723
(eval $ac_try) 2>&5
10725
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10726
(exit $ac_status); }; }; then
10727
ac_cv_lib_png_main=yes
10729
echo "$as_me: failed program was:" >&5
10730
cat conftest.$ac_ext >&5
10731
ac_cv_lib_png_main=no
10733
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10734
LIBS=$ac_check_lib_save_LIBS
10736
echo "$as_me:$LINENO: result: $ac_cv_lib_png_main" >&5
10737
echo "${ECHO_T}$ac_cv_lib_png_main" >&6
10738
if test $ac_cv_lib_png_main = yes; then
10739
PNG_LIBS="$PNG_LIBS -lpng"
10741
cat >>confdefs.h <<_ACEOF
10742
#define HAVE_LIBPNG 1
10746
{ echo "$as_me:$LINENO: WARNING: Optional png library not available" >&5
10747
echo "$as_me: WARNING: Optional png library not available" >&2;}
10751
{ echo "$as_me:$LINENO: WARNING: Optional png library not available - no png.h" >&5
10752
echo "$as_me: WARNING: Optional png library not available - no png.h" >&2;}
10755
LDFLAGS=$save_LDFLAGS
10756
CPPFLAGS=$save_CPPFLAGS
10758
save_CPPFLAGS=$CPPFLAGS
10759
save_LDFLAGS=$LDFLAGS
10761
# Check whether --with-jpegincludedir or --without-jpegincludedir was given.
10762
if test "${with_jpegincludedir+set}" = set; then
10763
withval="$with_jpegincludedir"
10764
JPEG_INCLUDES="-I$withval"
10765
CPPFLAGS="$CPPFLAGS -I$withval"
10768
# Check whether --with-jpeglibdir or --without-jpeglibdir was given.
10769
if test "${with_jpeglibdir+set}" = set; then
10770
withval="$with_jpeglibdir"
10771
JPEG_LIBS="-L$withval"
10772
LDFLAGS="$LDFLAGS -L$withval"
10774
if test "${ac_cv_header_jpeglib_h+set}" = set; then
10775
echo "$as_me:$LINENO: checking for jpeglib.h" >&5
10776
echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
10777
if test "${ac_cv_header_jpeglib_h+set}" = set; then
10778
echo $ECHO_N "(cached) $ECHO_C" >&6
10780
echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
10781
echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
10783
# Is the header compilable?
10784
echo "$as_me:$LINENO: checking jpeglib.h usability" >&5
10785
echo $ECHO_N "checking jpeglib.h usability... $ECHO_C" >&6
10786
cat >conftest.$ac_ext <<_ACEOF
10787
#line $LINENO "configure"
10788
#include "confdefs.h"
10789
$ac_includes_default
10790
#include <jpeglib.h>
10792
rm -f conftest.$ac_objext
10793
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10794
(eval $ac_compile) 2>&5
10796
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10797
(exit $ac_status); } &&
10798
{ ac_try='test -s conftest.$ac_objext'
10799
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10800
(eval $ac_try) 2>&5
10802
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10803
(exit $ac_status); }; }; then
10804
ac_header_compiler=yes
10806
echo "$as_me: failed program was:" >&5
10807
cat conftest.$ac_ext >&5
10808
ac_header_compiler=no
10810
rm -f conftest.$ac_objext conftest.$ac_ext
10811
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10812
echo "${ECHO_T}$ac_header_compiler" >&6
10814
# Is the header present?
10815
echo "$as_me:$LINENO: checking jpeglib.h presence" >&5
10816
echo $ECHO_N "checking jpeglib.h presence... $ECHO_C" >&6
10817
cat >conftest.$ac_ext <<_ACEOF
10818
#line $LINENO "configure"
10819
#include "confdefs.h"
10820
#include <jpeglib.h>
10822
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10823
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10825
egrep -v '^ *\+' conftest.er1 >conftest.err
10827
cat conftest.err >&5
10828
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10829
(exit $ac_status); } >/dev/null; then
10830
if test -s conftest.err; then
10831
ac_cpp_err=$ac_c_preproc_warn_flag
10838
if test -z "$ac_cpp_err"; then
10839
ac_header_preproc=yes
10841
echo "$as_me: failed program was:" >&5
10842
cat conftest.$ac_ext >&5
10843
ac_header_preproc=no
10845
rm -f conftest.err conftest.$ac_ext
10846
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10847
echo "${ECHO_T}$ac_header_preproc" >&6
10849
# So? What about this header?
10850
case $ac_header_compiler:$ac_header_preproc in
10852
{ echo "$as_me:$LINENO: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&5
10853
echo "$as_me: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10854
{ echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&5
10855
echo "$as_me: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&2;};;
10857
{ echo "$as_me:$LINENO: WARNING: jpeglib.h: present but cannot be compiled." >&5
10858
echo "$as_me: WARNING: jpeglib.h: present but cannot be compiled." >&2;}
10859
{ echo "$as_me:$LINENO: WARNING: jpeglib.h: check for missing prerequisite headers?" >&5
10860
echo "$as_me: WARNING: jpeglib.h: check for missing prerequisite headers?" >&2;}
10861
{ echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&5
10862
echo "$as_me: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&2;};;
10864
echo "$as_me:$LINENO: checking for jpeglib.h" >&5
10865
echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
10866
if test "${ac_cv_header_jpeglib_h+set}" = set; then
10867
echo $ECHO_N "(cached) $ECHO_C" >&6
10869
ac_cv_header_jpeglib_h=$ac_header_preproc
10871
echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
10872
echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
10875
if test $ac_cv_header_jpeglib_h = yes; then
10876
echo "$as_me:$LINENO: checking for main in -ljpeg" >&5
10877
echo $ECHO_N "checking for main in -ljpeg... $ECHO_C" >&6
10878
if test "${ac_cv_lib_jpeg_main+set}" = set; then
10879
echo $ECHO_N "(cached) $ECHO_C" >&6
10881
ac_check_lib_save_LIBS=$LIBS
10882
LIBS="-ljpeg $LIBS"
10883
cat >conftest.$ac_ext <<_ACEOF
10884
#line $LINENO "configure"
10885
#include "confdefs.h"
10887
#ifdef F77_DUMMY_MAIN
10888
# ifdef __cplusplus
10891
int F77_DUMMY_MAIN() { return 1; }
10901
rm -f conftest.$ac_objext conftest$ac_exeext
10902
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10903
(eval $ac_link) 2>&5
10905
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10906
(exit $ac_status); } &&
10907
{ ac_try='test -s conftest$ac_exeext'
10908
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10909
(eval $ac_try) 2>&5
10911
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10912
(exit $ac_status); }; }; then
10913
ac_cv_lib_jpeg_main=yes
10915
echo "$as_me: failed program was:" >&5
10916
cat conftest.$ac_ext >&5
10917
ac_cv_lib_jpeg_main=no
10919
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10920
LIBS=$ac_check_lib_save_LIBS
10922
echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_main" >&5
10923
echo "${ECHO_T}$ac_cv_lib_jpeg_main" >&6
10924
if test $ac_cv_lib_jpeg_main = yes; then
10925
JPEG_LIBS="$JPEG_LIBS -ljpeg"
10927
cat >>confdefs.h <<_ACEOF
10928
#define HAVE_LIBJPEG 1
10932
{ echo "$as_me:$LINENO: WARNING: Optional jpeg library not available" >&5
10933
echo "$as_me: WARNING: Optional jpeg library not available" >&2;}
10937
{ echo "$as_me:$LINENO: WARNING: Optional jpeg library not available - no jpeglib.h" >&5
10938
echo "$as_me: WARNING: Optional jpeg library not available - no jpeglib.h" >&2;}
10941
LDFLAGS=$save_LDFLAGS
10942
CPPFLAGS=$save_CPPFLAGS
10944
save_CPPFLAGS=$CPPFLAGS
10945
save_LDFLAGS=$LDFLAGS
10947
# Check whether --with-Xawincludedir or --without-Xawincludedir was given.
10948
if test "${with_Xawincludedir+set}" = set; then
10949
withval="$with_Xawincludedir"
10950
XAW_INCLUDES="-I$withval"
10951
CPPFLAGS="$CPPFLAGS -I$withval"
10954
# Check whether --with-Xawlibdir or --without-Xawlibdir was given.
10955
if test "${with_Xawlibdir+set}" = set; then
10956
withval="$with_Xawlibdir"
10957
XAW_LIBS="-L$withval"
10958
LDFLAGS="$LDFLAGS -L$withval"
10960
#On i386-pc-sysv, Xaw exists but the linker doesn't resolve
10961
#sub-dependencies. Give them all and hope this doesn't break
10963
LDFLAGS="$LDFLAGS $X_LIBS"
10964
if test "${ac_cv_header_X11_Xaw_XawInit_h+set}" = set; then
10965
echo "$as_me:$LINENO: checking for X11/Xaw/XawInit.h" >&5
10966
echo $ECHO_N "checking for X11/Xaw/XawInit.h... $ECHO_C" >&6
10967
if test "${ac_cv_header_X11_Xaw_XawInit_h+set}" = set; then
10968
echo $ECHO_N "(cached) $ECHO_C" >&6
10970
echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw_XawInit_h" >&5
10971
echo "${ECHO_T}$ac_cv_header_X11_Xaw_XawInit_h" >&6
10973
# Is the header compilable?
10974
echo "$as_me:$LINENO: checking X11/Xaw/XawInit.h usability" >&5
10975
echo $ECHO_N "checking X11/Xaw/XawInit.h usability... $ECHO_C" >&6
10976
cat >conftest.$ac_ext <<_ACEOF
10977
#line $LINENO "configure"
10978
#include "confdefs.h"
10979
$ac_includes_default
10980
#include <X11/Xaw/XawInit.h>
10982
rm -f conftest.$ac_objext
10983
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10984
(eval $ac_compile) 2>&5
10986
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10987
(exit $ac_status); } &&
10988
{ ac_try='test -s conftest.$ac_objext'
10989
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10990
(eval $ac_try) 2>&5
10992
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10993
(exit $ac_status); }; }; then
10994
ac_header_compiler=yes
10996
echo "$as_me: failed program was:" >&5
10997
cat conftest.$ac_ext >&5
10998
ac_header_compiler=no
11000
rm -f conftest.$ac_objext conftest.$ac_ext
11001
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11002
echo "${ECHO_T}$ac_header_compiler" >&6
11004
# Is the header present?
11005
echo "$as_me:$LINENO: checking X11/Xaw/XawInit.h presence" >&5
11006
echo $ECHO_N "checking X11/Xaw/XawInit.h presence... $ECHO_C" >&6
11007
cat >conftest.$ac_ext <<_ACEOF
11008
#line $LINENO "configure"
11009
#include "confdefs.h"
11010
#include <X11/Xaw/XawInit.h>
11012
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11013
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11015
egrep -v '^ *\+' conftest.er1 >conftest.err
11017
cat conftest.err >&5
11018
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11019
(exit $ac_status); } >/dev/null; then
11020
if test -s conftest.err; then
11021
ac_cpp_err=$ac_c_preproc_warn_flag
11028
if test -z "$ac_cpp_err"; then
11029
ac_header_preproc=yes
11031
echo "$as_me: failed program was:" >&5
11032
cat conftest.$ac_ext >&5
11033
ac_header_preproc=no
11035
rm -f conftest.err conftest.$ac_ext
11036
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11037
echo "${ECHO_T}$ac_header_preproc" >&6
11039
# So? What about this header?
11040
case $ac_header_compiler:$ac_header_preproc in
11042
{ echo "$as_me:$LINENO: WARNING: X11/Xaw/XawInit.h: accepted by the compiler, rejected by the preprocessor!" >&5
11043
echo "$as_me: WARNING: X11/Xaw/XawInit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11044
{ echo "$as_me:$LINENO: WARNING: X11/Xaw/XawInit.h: proceeding with the preprocessor's result" >&5
11045
echo "$as_me: WARNING: X11/Xaw/XawInit.h: proceeding with the preprocessor's result" >&2;};;
11047
{ echo "$as_me:$LINENO: WARNING: X11/Xaw/XawInit.h: present but cannot be compiled." >&5
11048
echo "$as_me: WARNING: X11/Xaw/XawInit.h: present but cannot be compiled." >&2;}
11049
{ echo "$as_me:$LINENO: WARNING: X11/Xaw/XawInit.h: check for missing prerequisite headers?" >&5
11050
echo "$as_me: WARNING: X11/Xaw/XawInit.h: check for missing prerequisite headers?" >&2;}
11051
{ echo "$as_me:$LINENO: WARNING: X11/Xaw/XawInit.h: proceeding with the preprocessor's result" >&5
11052
echo "$as_me: WARNING: X11/Xaw/XawInit.h: proceeding with the preprocessor's result" >&2;};;
11054
echo "$as_me:$LINENO: checking for X11/Xaw/XawInit.h" >&5
11055
echo $ECHO_N "checking for X11/Xaw/XawInit.h... $ECHO_C" >&6
11056
if test "${ac_cv_header_X11_Xaw_XawInit_h+set}" = set; then
11057
echo $ECHO_N "(cached) $ECHO_C" >&6
11059
ac_cv_header_X11_Xaw_XawInit_h=$ac_header_preproc
11061
echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw_XawInit_h" >&5
11062
echo "${ECHO_T}$ac_cv_header_X11_Xaw_XawInit_h" >&6
11065
if test $ac_cv_header_X11_Xaw_XawInit_h = yes; then
11066
echo "$as_me:$LINENO: checking for main in -lXaw" >&5
11067
echo $ECHO_N "checking for main in -lXaw... $ECHO_C" >&6
11068
if test "${ac_cv_lib_Xaw_main+set}" = set; then
11069
echo $ECHO_N "(cached) $ECHO_C" >&6
11071
ac_check_lib_save_LIBS=$LIBS
11072
LIBS="-lXaw -lXmu -lXt -lX11 -lXext -lnsl $LIBS"
11073
cat >conftest.$ac_ext <<_ACEOF
11074
#line $LINENO "configure"
11075
#include "confdefs.h"
11077
#ifdef F77_DUMMY_MAIN
11078
# ifdef __cplusplus
11081
int F77_DUMMY_MAIN() { return 1; }
11091
rm -f conftest.$ac_objext conftest$ac_exeext
11092
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11093
(eval $ac_link) 2>&5
11095
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11096
(exit $ac_status); } &&
11097
{ ac_try='test -s conftest$ac_exeext'
11098
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11099
(eval $ac_try) 2>&5
11101
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11102
(exit $ac_status); }; }; then
11103
ac_cv_lib_Xaw_main=yes
11105
echo "$as_me: failed program was:" >&5
11106
cat conftest.$ac_ext >&5
11107
ac_cv_lib_Xaw_main=no
11109
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11110
LIBS=$ac_check_lib_save_LIBS
11112
echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw_main" >&5
11113
echo "${ECHO_T}$ac_cv_lib_Xaw_main" >&6
11114
if test $ac_cv_lib_Xaw_main = yes; then
11115
XAW_LIBS="$XAW_LIBS -lXaw"
11117
cat >>confdefs.h <<_ACEOF
11118
#define HAVE_LIBXAW 1
11122
{ echo "$as_me:$LINENO: WARNING: Optional Xaw library not available" >&5
11123
echo "$as_me: WARNING: Optional Xaw library not available" >&2;}
11127
{ echo "$as_me:$LINENO: WARNING: Optional Xaw library not available - no X11/Xaw/XawInit.h" >&5
11128
echo "$as_me: WARNING: Optional Xaw library not available - no X11/Xaw/XawInit.h" >&2;}
11131
LDFLAGS=$save_LDFLAGS
11132
CPPFLAGS=$save_CPPFLAGS
11134
# -----------------------------------
11136
# Checks for library functions
11137
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11138
# for constant arguments. Useless!
11139
echo "$as_me:$LINENO: checking for working alloca.h" >&5
11140
echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
11141
if test "${ac_cv_working_alloca_h+set}" = set; then
11142
echo $ECHO_N "(cached) $ECHO_C" >&6
11144
cat >conftest.$ac_ext <<_ACEOF
11145
#line $LINENO "configure"
11146
#include "confdefs.h"
11147
#include <alloca.h>
11148
#ifdef F77_DUMMY_MAIN
11149
# ifdef __cplusplus
11152
int F77_DUMMY_MAIN() { return 1; }
11157
char *p = (char *) alloca (2 * sizeof (int));
11162
rm -f conftest.$ac_objext conftest$ac_exeext
11163
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11164
(eval $ac_link) 2>&5
11166
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11167
(exit $ac_status); } &&
11168
{ ac_try='test -s conftest$ac_exeext'
11169
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11170
(eval $ac_try) 2>&5
11172
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11173
(exit $ac_status); }; }; then
11174
ac_cv_working_alloca_h=yes
11176
echo "$as_me: failed program was:" >&5
11177
cat conftest.$ac_ext >&5
11178
ac_cv_working_alloca_h=no
11180
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11182
echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
11183
echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
11184
if test $ac_cv_working_alloca_h = yes; then
11186
cat >>confdefs.h <<\_ACEOF
11187
#define HAVE_ALLOCA_H 1
11192
echo "$as_me:$LINENO: checking for alloca" >&5
11193
echo $ECHO_N "checking for alloca... $ECHO_C" >&6
11194
if test "${ac_cv_func_alloca_works+set}" = set; then
11195
echo $ECHO_N "(cached) $ECHO_C" >&6
11197
cat >conftest.$ac_ext <<_ACEOF
11198
#line $LINENO "configure"
11199
#include "confdefs.h"
11201
# define alloca __builtin_alloca
11204
# include <malloc.h>
11205
# define alloca _alloca
11208
# include <alloca.h>
11213
# ifndef alloca /* predefined by HP cc +Olibcalls */
11221
#ifdef F77_DUMMY_MAIN
11222
# ifdef __cplusplus
11225
int F77_DUMMY_MAIN() { return 1; }
11230
char *p = (char *) alloca (1);
11235
rm -f conftest.$ac_objext conftest$ac_exeext
11236
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11237
(eval $ac_link) 2>&5
11239
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11240
(exit $ac_status); } &&
11241
{ ac_try='test -s conftest$ac_exeext'
11242
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11243
(eval $ac_try) 2>&5
11245
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11246
(exit $ac_status); }; }; then
11247
ac_cv_func_alloca_works=yes
11249
echo "$as_me: failed program was:" >&5
11250
cat conftest.$ac_ext >&5
11251
ac_cv_func_alloca_works=no
11253
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11255
echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
11256
echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
11258
if test $ac_cv_func_alloca_works = yes; then
11260
cat >>confdefs.h <<\_ACEOF
11261
#define HAVE_ALLOCA 1
11265
# The SVR3 libPW and SVR4 libucb both contain incompatible functions
11266
# that cause trouble. Some versions do not even contain alloca or
11267
# contain a buggy version. If you still want to use their alloca,
11268
# use ar to extract alloca.o from them instead of compiling alloca.c.
11270
ALLOCA=alloca.$ac_objext
11272
cat >>confdefs.h <<\_ACEOF
11276
echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
11277
echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
11278
if test "${ac_cv_os_cray+set}" = set; then
11279
echo $ECHO_N "(cached) $ECHO_C" >&6
11281
cat >conftest.$ac_ext <<_ACEOF
11282
#line $LINENO "configure"
11283
#include "confdefs.h"
11284
#if defined(CRAY) && ! defined(CRAY2)
11291
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11292
egrep "webecray" >/dev/null 2>&1; then
11300
echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
11301
echo "${ECHO_T}$ac_cv_os_cray" >&6
11302
if test $ac_cv_os_cray = yes; then
11303
for ac_func in _getb67 GETB67 getb67; do
11304
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11305
echo "$as_me:$LINENO: checking for $ac_func" >&5
11306
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11307
if eval "test \"\${$as_ac_var+set}\" = set"; then
11308
echo $ECHO_N "(cached) $ECHO_C" >&6
11310
cat >conftest.$ac_ext <<_ACEOF
11311
#line $LINENO "configure"
11312
#include "confdefs.h"
11313
/* System header to define __stub macros and hopefully few prototypes,
11314
which can conflict with char $ac_func (); below. */
11315
#include <assert.h>
11316
/* Override any gcc2 internal prototype to avoid an error. */
11320
/* We use char because int might match the return type of a gcc2
11321
builtin and then its argument prototype would still apply. */
11325
#ifdef F77_DUMMY_MAIN
11326
# ifdef __cplusplus
11329
int F77_DUMMY_MAIN() { return 1; }
11334
/* The GNU C library defines this for functions which it implements
11335
to always fail with ENOSYS. Some functions are actually named
11336
something starting with __ and the normal name is an alias. */
11337
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11347
rm -f conftest.$ac_objext conftest$ac_exeext
11348
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11349
(eval $ac_link) 2>&5
11351
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11352
(exit $ac_status); } &&
11353
{ ac_try='test -s conftest$ac_exeext'
11354
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11355
(eval $ac_try) 2>&5
11357
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11358
(exit $ac_status); }; }; then
11359
eval "$as_ac_var=yes"
11361
echo "$as_me: failed program was:" >&5
11362
cat conftest.$ac_ext >&5
11363
eval "$as_ac_var=no"
11365
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11367
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11368
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11369
if test `eval echo '${'$as_ac_var'}'` = yes; then
11371
cat >>confdefs.h <<_ACEOF
11372
#define CRAY_STACKSEG_END $ac_func
11381
echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
11382
echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
11383
if test "${ac_cv_c_stack_direction+set}" = set; then
11384
echo $ECHO_N "(cached) $ECHO_C" >&6
11386
if test "$cross_compiling" = yes; then
11387
ac_cv_c_stack_direction=0
11389
cat >conftest.$ac_ext <<_ACEOF
11390
#line $LINENO "configure"
11391
#include "confdefs.h"
11393
find_stack_direction ()
11395
static char *addr = 0;
11400
return find_stack_direction ();
11403
return (&dummy > addr) ? 1 : -1;
11409
exit (find_stack_direction () < 0);
11412
rm -f conftest$ac_exeext
11413
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11414
(eval $ac_link) 2>&5
11416
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11417
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11418
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11419
(eval $ac_try) 2>&5
11421
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11422
(exit $ac_status); }; }; then
11423
ac_cv_c_stack_direction=1
11425
echo "$as_me: program exited with status $ac_status" >&5
11426
echo "$as_me: failed program was:" >&5
11427
cat conftest.$ac_ext >&5
11428
( exit $ac_status )
11429
ac_cv_c_stack_direction=-1
11431
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11434
echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
11435
echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
11437
cat >>confdefs.h <<_ACEOF
11438
#define STACK_DIRECTION $ac_cv_c_stack_direction
11443
for ac_func in drand48 srand48 setmode setenv _sysconf getrusage strerror strcasecmp strncasecmp cbrt lsqrt sincos vsnprintf
11445
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11446
echo "$as_me:$LINENO: checking for $ac_func" >&5
11447
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11448
if eval "test \"\${$as_ac_var+set}\" = set"; then
11449
echo $ECHO_N "(cached) $ECHO_C" >&6
11451
cat >conftest.$ac_ext <<_ACEOF
11452
#line $LINENO "configure"
11453
#include "confdefs.h"
11454
/* System header to define __stub macros and hopefully few prototypes,
11455
which can conflict with char $ac_func (); below. */
11456
#include <assert.h>
11457
/* Override any gcc2 internal prototype to avoid an error. */
11461
/* We use char because int might match the return type of a gcc2
11462
builtin and then its argument prototype would still apply. */
11466
#ifdef F77_DUMMY_MAIN
11467
# ifdef __cplusplus
11470
int F77_DUMMY_MAIN() { return 1; }
11475
/* The GNU C library defines this for functions which it implements
11476
to always fail with ENOSYS. Some functions are actually named
11477
something starting with __ and the normal name is an alias. */
11478
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11488
rm -f conftest.$ac_objext conftest$ac_exeext
11489
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11490
(eval $ac_link) 2>&5
11492
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11493
(exit $ac_status); } &&
11494
{ ac_try='test -s conftest$ac_exeext'
11495
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11496
(eval $ac_try) 2>&5
11498
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11499
(exit $ac_status); }; }; then
11500
eval "$as_ac_var=yes"
11502
echo "$as_me: failed program was:" >&5
11503
cat conftest.$ac_ext >&5
11504
eval "$as_ac_var=no"
11506
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11508
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11509
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11510
if test `eval echo '${'$as_ac_var'}'` = yes; then
11511
cat >>confdefs.h <<_ACEOF
11512
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11518
for ac_func in strtoll
11520
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11521
echo "$as_me:$LINENO: checking for $ac_func" >&5
11522
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11523
if eval "test \"\${$as_ac_var+set}\" = set"; then
11524
echo $ECHO_N "(cached) $ECHO_C" >&6
11526
cat >conftest.$ac_ext <<_ACEOF
11527
#line $LINENO "configure"
11528
#include "confdefs.h"
11529
/* System header to define __stub macros and hopefully few prototypes,
11530
which can conflict with char $ac_func (); below. */
11531
#include <assert.h>
11532
/* Override any gcc2 internal prototype to avoid an error. */
11536
/* We use char because int might match the return type of a gcc2
11537
builtin and then its argument prototype would still apply. */
11541
#ifdef F77_DUMMY_MAIN
11542
# ifdef __cplusplus
11545
int F77_DUMMY_MAIN() { return 1; }
11550
/* The GNU C library defines this for functions which it implements
11551
to always fail with ENOSYS. Some functions are actually named
11552
something starting with __ and the normal name is an alias. */
11553
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11563
rm -f conftest.$ac_objext conftest$ac_exeext
11564
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11565
(eval $ac_link) 2>&5
11567
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11568
(exit $ac_status); } &&
11569
{ ac_try='test -s conftest$ac_exeext'
11570
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11571
(eval $ac_try) 2>&5
11573
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11574
(exit $ac_status); }; }; then
11575
eval "$as_ac_var=yes"
11577
echo "$as_me: failed program was:" >&5
11578
cat conftest.$ac_ext >&5
11579
eval "$as_ac_var=no"
11581
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11583
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11584
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11585
if test `eval echo '${'$as_ac_var'}'` = yes; then
11586
cat >>confdefs.h <<_ACEOF
11587
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11591
STRTOLL="-Dstrtoll=strtol"
11595
for ac_func in strtoull
11597
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11598
echo "$as_me:$LINENO: checking for $ac_func" >&5
11599
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11600
if eval "test \"\${$as_ac_var+set}\" = set"; then
11601
echo $ECHO_N "(cached) $ECHO_C" >&6
11603
cat >conftest.$ac_ext <<_ACEOF
11604
#line $LINENO "configure"
11605
#include "confdefs.h"
11606
/* System header to define __stub macros and hopefully few prototypes,
11607
which can conflict with char $ac_func (); below. */
11608
#include <assert.h>
11609
/* Override any gcc2 internal prototype to avoid an error. */
11613
/* We use char because int might match the return type of a gcc2
11614
builtin and then its argument prototype would still apply. */
11618
#ifdef F77_DUMMY_MAIN
11619
# ifdef __cplusplus
11622
int F77_DUMMY_MAIN() { return 1; }
11627
/* The GNU C library defines this for functions which it implements
11628
to always fail with ENOSYS. Some functions are actually named
11629
something starting with __ and the normal name is an alias. */
11630
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11640
rm -f conftest.$ac_objext conftest$ac_exeext
11641
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11642
(eval $ac_link) 2>&5
11644
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11645
(exit $ac_status); } &&
11646
{ ac_try='test -s conftest$ac_exeext'
11647
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11648
(eval $ac_try) 2>&5
11650
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11651
(exit $ac_status); }; }; then
11652
eval "$as_ac_var=yes"
11654
echo "$as_me: failed program was:" >&5
11655
cat conftest.$ac_ext >&5
11656
eval "$as_ac_var=no"
11658
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11660
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11661
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11662
if test `eval echo '${'$as_ac_var'}'` = yes; then
11663
cat >>confdefs.h <<_ACEOF
11664
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11668
STRTOULL="-Dstrtoull=\"(unsigned long)strtol\""
11672
# Check for st_blksize in struct stat
11675
# Internationalization macros
11678
# Checks for header files
11680
# AC_HAVE_HEADERS(string.h)
11682
for ac_header in values.h termios.h errno.h sys/time.h unistd.h
11684
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11685
if eval "test \"\${$as_ac_Header+set}\" = set"; then
11686
echo "$as_me:$LINENO: checking for $ac_header" >&5
11687
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11688
if eval "test \"\${$as_ac_Header+set}\" = set"; then
11689
echo $ECHO_N "(cached) $ECHO_C" >&6
11691
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11692
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11694
# Is the header compilable?
11695
echo "$as_me:$LINENO: checking $ac_header usability" >&5
11696
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11697
cat >conftest.$ac_ext <<_ACEOF
11698
#line $LINENO "configure"
11699
#include "confdefs.h"
11700
$ac_includes_default
11701
#include <$ac_header>
11703
rm -f conftest.$ac_objext
11704
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11705
(eval $ac_compile) 2>&5
11707
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11708
(exit $ac_status); } &&
11709
{ ac_try='test -s conftest.$ac_objext'
11710
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11711
(eval $ac_try) 2>&5
11713
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11714
(exit $ac_status); }; }; then
11715
ac_header_compiler=yes
11717
echo "$as_me: failed program was:" >&5
11718
cat conftest.$ac_ext >&5
11719
ac_header_compiler=no
11721
rm -f conftest.$ac_objext conftest.$ac_ext
11722
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11723
echo "${ECHO_T}$ac_header_compiler" >&6
11725
# Is the header present?
11726
echo "$as_me:$LINENO: checking $ac_header presence" >&5
11727
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11728
cat >conftest.$ac_ext <<_ACEOF
11729
#line $LINENO "configure"
11730
#include "confdefs.h"
11731
#include <$ac_header>
11733
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11734
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11736
egrep -v '^ *\+' conftest.er1 >conftest.err
11738
cat conftest.err >&5
11739
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11740
(exit $ac_status); } >/dev/null; then
11741
if test -s conftest.err; then
11742
ac_cpp_err=$ac_c_preproc_warn_flag
11749
if test -z "$ac_cpp_err"; then
11750
ac_header_preproc=yes
11752
echo "$as_me: failed program was:" >&5
11753
cat conftest.$ac_ext >&5
11754
ac_header_preproc=no
11756
rm -f conftest.err conftest.$ac_ext
11757
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11758
echo "${ECHO_T}$ac_header_preproc" >&6
11760
# So? What about this header?
11761
case $ac_header_compiler:$ac_header_preproc in
11763
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11764
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11765
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11766
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11768
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
11769
echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
11770
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11771
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11772
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11773
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11775
echo "$as_me:$LINENO: checking for $ac_header" >&5
11776
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11777
if eval "test \"\${$as_ac_Header+set}\" = set"; then
11778
echo $ECHO_N "(cached) $ECHO_C" >&6
11780
eval "$as_ac_Header=$ac_header_preproc"
11782
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11783
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11786
if test `eval echo '${'$as_ac_Header'}'` = yes; then
11787
cat >>confdefs.h <<_ACEOF
11788
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11795
echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11796
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
11797
if test "${ac_cv_header_time+set}" = set; then
11798
echo $ECHO_N "(cached) $ECHO_C" >&6
11800
cat >conftest.$ac_ext <<_ACEOF
11801
#line $LINENO "configure"
11802
#include "confdefs.h"
11803
#include <sys/types.h>
11804
#include <sys/time.h>
11807
#ifdef F77_DUMMY_MAIN
11808
# ifdef __cplusplus
11811
int F77_DUMMY_MAIN() { return 1; }
11816
if ((struct tm *) 0)
11822
rm -f conftest.$ac_objext
11823
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11824
(eval $ac_compile) 2>&5
11826
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11827
(exit $ac_status); } &&
11828
{ ac_try='test -s conftest.$ac_objext'
11829
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11830
(eval $ac_try) 2>&5
11832
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11833
(exit $ac_status); }; }; then
11834
ac_cv_header_time=yes
11836
echo "$as_me: failed program was:" >&5
11837
cat conftest.$ac_ext >&5
11838
ac_cv_header_time=no
11840
rm -f conftest.$ac_objext conftest.$ac_ext
11842
echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11843
echo "${ECHO_T}$ac_cv_header_time" >&6
11844
if test $ac_cv_header_time = yes; then
11846
cat >>confdefs.h <<\_ACEOF
11847
#define TIME_WITH_SYS_TIME 1
11852
ac_header_dirent=no
11853
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11854
as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11855
echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
11856
echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
11857
if eval "test \"\${$as_ac_Header+set}\" = set"; then
11858
echo $ECHO_N "(cached) $ECHO_C" >&6
11860
cat >conftest.$ac_ext <<_ACEOF
11861
#line $LINENO "configure"
11862
#include "confdefs.h"
11863
#include <sys/types.h>
11866
#ifdef F77_DUMMY_MAIN
11867
# ifdef __cplusplus
11870
int F77_DUMMY_MAIN() { return 1; }
11881
rm -f conftest.$ac_objext
11882
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11883
(eval $ac_compile) 2>&5
11885
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11886
(exit $ac_status); } &&
11887
{ ac_try='test -s conftest.$ac_objext'
11888
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11889
(eval $ac_try) 2>&5
11891
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892
(exit $ac_status); }; }; then
11893
eval "$as_ac_Header=yes"
11895
echo "$as_me: failed program was:" >&5
11896
cat conftest.$ac_ext >&5
11897
eval "$as_ac_Header=no"
11899
rm -f conftest.$ac_objext conftest.$ac_ext
11901
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11902
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11903
if test `eval echo '${'$as_ac_Header'}'` = yes; then
11904
cat >>confdefs.h <<_ACEOF
11905
#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11908
ac_header_dirent=$ac_hdr; break
11912
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11913
if test $ac_header_dirent = dirent.h; then
11914
echo "$as_me:$LINENO: checking for library containing opendir" >&5
11915
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11916
if test "${ac_cv_search_opendir+set}" = set; then
11917
echo $ECHO_N "(cached) $ECHO_C" >&6
11919
ac_func_search_save_LIBS=$LIBS
11920
ac_cv_search_opendir=no
11921
cat >conftest.$ac_ext <<_ACEOF
11922
#line $LINENO "configure"
11923
#include "confdefs.h"
11925
/* Override any gcc2 internal prototype to avoid an error. */
11929
/* We use char because int might match the return type of a gcc2
11930
builtin and then its argument prototype would still apply. */
11932
#ifdef F77_DUMMY_MAIN
11933
# ifdef __cplusplus
11936
int F77_DUMMY_MAIN() { return 1; }
11946
rm -f conftest.$ac_objext conftest$ac_exeext
11947
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11948
(eval $ac_link) 2>&5
11950
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11951
(exit $ac_status); } &&
11952
{ ac_try='test -s conftest$ac_exeext'
11953
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11954
(eval $ac_try) 2>&5
11956
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11957
(exit $ac_status); }; }; then
11958
ac_cv_search_opendir="none required"
11960
echo "$as_me: failed program was:" >&5
11961
cat conftest.$ac_ext >&5
11963
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11964
if test "$ac_cv_search_opendir" = no; then
11965
for ac_lib in dir; do
11966
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11967
cat >conftest.$ac_ext <<_ACEOF
11968
#line $LINENO "configure"
11969
#include "confdefs.h"
11971
/* Override any gcc2 internal prototype to avoid an error. */
11975
/* We use char because int might match the return type of a gcc2
11976
builtin and then its argument prototype would still apply. */
11978
#ifdef F77_DUMMY_MAIN
11979
# ifdef __cplusplus
11982
int F77_DUMMY_MAIN() { return 1; }
11992
rm -f conftest.$ac_objext conftest$ac_exeext
11993
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11994
(eval $ac_link) 2>&5
11996
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11997
(exit $ac_status); } &&
11998
{ ac_try='test -s conftest$ac_exeext'
11999
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12000
(eval $ac_try) 2>&5
12002
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12003
(exit $ac_status); }; }; then
12004
ac_cv_search_opendir="-l$ac_lib"
12007
echo "$as_me: failed program was:" >&5
12008
cat conftest.$ac_ext >&5
12010
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12013
LIBS=$ac_func_search_save_LIBS
12015
echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
12016
echo "${ECHO_T}$ac_cv_search_opendir" >&6
12017
if test "$ac_cv_search_opendir" != no; then
12018
test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
12023
echo "$as_me:$LINENO: checking for library containing opendir" >&5
12024
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
12025
if test "${ac_cv_search_opendir+set}" = set; then
12026
echo $ECHO_N "(cached) $ECHO_C" >&6
12028
ac_func_search_save_LIBS=$LIBS
12029
ac_cv_search_opendir=no
12030
cat >conftest.$ac_ext <<_ACEOF
12031
#line $LINENO "configure"
12032
#include "confdefs.h"
12034
/* Override any gcc2 internal prototype to avoid an error. */
12038
/* We use char because int might match the return type of a gcc2
12039
builtin and then its argument prototype would still apply. */
12041
#ifdef F77_DUMMY_MAIN
12042
# ifdef __cplusplus
12045
int F77_DUMMY_MAIN() { return 1; }
12055
rm -f conftest.$ac_objext conftest$ac_exeext
12056
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12057
(eval $ac_link) 2>&5
12059
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12060
(exit $ac_status); } &&
12061
{ ac_try='test -s conftest$ac_exeext'
12062
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12063
(eval $ac_try) 2>&5
12065
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12066
(exit $ac_status); }; }; then
12067
ac_cv_search_opendir="none required"
12069
echo "$as_me: failed program was:" >&5
12070
cat conftest.$ac_ext >&5
12072
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12073
if test "$ac_cv_search_opendir" = no; then
12074
for ac_lib in x; do
12075
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12076
cat >conftest.$ac_ext <<_ACEOF
12077
#line $LINENO "configure"
12078
#include "confdefs.h"
12080
/* Override any gcc2 internal prototype to avoid an error. */
12084
/* We use char because int might match the return type of a gcc2
12085
builtin and then its argument prototype would still apply. */
12087
#ifdef F77_DUMMY_MAIN
12088
# ifdef __cplusplus
12091
int F77_DUMMY_MAIN() { return 1; }
12101
rm -f conftest.$ac_objext conftest$ac_exeext
12102
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12103
(eval $ac_link) 2>&5
12105
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12106
(exit $ac_status); } &&
12107
{ ac_try='test -s conftest$ac_exeext'
12108
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12109
(eval $ac_try) 2>&5
12111
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12112
(exit $ac_status); }; }; then
12113
ac_cv_search_opendir="-l$ac_lib"
12116
echo "$as_me: failed program was:" >&5
12117
cat conftest.$ac_ext >&5
12119
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12122
LIBS=$ac_func_search_save_LIBS
12124
echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
12125
echo "${ECHO_T}$ac_cv_search_opendir" >&6
12126
if test "$ac_cv_search_opendir" != no; then
12127
test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
12133
# -----------------------------------
12135
if test -f "$TCL_SRC_DIR/generic/tclInt.h"; then
12136
TCLINT_INCLUDES="-I$TCL_SRC_DIR/generic"
12138
if test -f "/usr/include/tclInt.h"; then
12139
TCLINT_INCLUDES="-I/usr/include"
12141
if test -f "/usr/local/include/tclInt.h"; then
12142
TCLINT_INCLUDES="-I/usr/local/include"
12144
TCLINT_INCLUDES="-I$TOP_DIR/tclstubs"
12149
# -----------------------------------
12151
if test -f "$TK_SRC_DIR/generic/tkInt.h"; then
12152
TKINT_INCLUDES="-I$TK_SRC_DIR/generic"
12154
if test -f "/usr/include/tkInt.h"; then
12155
TKINT_INCLUDES="-I/usr/include"
12157
if test -f "/usr/local/include/tkInt.h"; then
12158
TKINT_INCLUDES="-I/usr/local/include"
12160
TKINT_INCLUDES="-I$TOP_DIR/tkstubs"
12165
# -----------------------------------
12168
echo "$as_me:$LINENO: checking if FILE struct contains _cnt" >&5
12169
echo $ECHO_N "checking if FILE struct contains _cnt... $ECHO_C" >&6
12170
cat >conftest.$ac_ext <<_ACEOF
12171
#line $LINENO "configure"
12172
#include "confdefs.h"
12175
#ifdef F77_DUMMY_MAIN
12176
# ifdef __cplusplus
12179
int F77_DUMMY_MAIN() { return 1; }
12192
rm -f conftest.$ac_objext
12193
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12194
(eval $ac_compile) 2>&5
12196
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12197
(exit $ac_status); } &&
12198
{ ac_try='test -s conftest.$ac_objext'
12199
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12200
(eval $ac_try) 2>&5
12202
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12203
(exit $ac_status); }; }; then
12204
echo "$as_me:$LINENO: result: yes" >&5
12205
echo "${ECHO_T}yes" >&6
12206
NO_CNT_IN_FILESTRUCT=""
12209
echo "$as_me: failed program was:" >&5
12210
cat conftest.$ac_ext >&5
12211
echo "$as_me:$LINENO: result: no" >&5
12212
echo "${ECHO_T}no" >&6
12213
NO_CNT_IN_FILESTRUCT="-DNO_CNT_IN_FILESTRUCT"
12216
rm -f conftest.$ac_objext conftest.$ac_ext
12218
# -----------------------------------
12220
echo "$as_me:$LINENO: checking if errno externs are declared" >&5
12221
echo $ECHO_N "checking if errno externs are declared... $ECHO_C" >&6
12222
cat >conftest.$ac_ext <<_ACEOF
12223
#line $LINENO "configure"
12224
#include "confdefs.h"
12227
#ifdef F77_DUMMY_MAIN
12228
# ifdef __cplusplus
12231
int F77_DUMMY_MAIN() { return 1; }
12236
if ( errno < sys_nerr ) return sys_errlist[errno];
12242
rm -f conftest.$ac_objext conftest$ac_exeext
12243
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12244
(eval $ac_link) 2>&5
12246
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12247
(exit $ac_status); } &&
12248
{ ac_try='test -s conftest$ac_exeext'
12249
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12250
(eval $ac_try) 2>&5
12252
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12253
(exit $ac_status); }; }; then
12254
echo "$as_me:$LINENO: result: yes" >&5
12255
echo "${ECHO_T}yes" >&6
12259
echo "$as_me: failed program was:" >&5
12260
cat conftest.$ac_ext >&5
12261
echo "$as_me:$LINENO: result: no" >&5
12262
echo "${ECHO_T}no" >&6
12263
NO_ERRNO_DECL="-DNO_ERRNO_DECL"
12266
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12268
# -----------------------------------
12270
# Check if getopt externs are declared in standard headers.
12271
echo "$as_me:$LINENO: checking if getopt and optopt are declared" >&5
12272
echo $ECHO_N "checking if getopt and optopt are declared... $ECHO_C" >&6
12273
cat >conftest.$ac_ext <<_ACEOF
12274
#line $LINENO "configure"
12275
#include "confdefs.h"
12276
#include <stdlib.h>
12279
#include <unistd.h>
12282
#ifdef F77_DUMMY_MAIN
12283
# ifdef __cplusplus
12286
int F77_DUMMY_MAIN() { return 1; }
12291
if ( optopt ) exit(0); else exit(1);
12297
rm -f conftest.$ac_objext conftest$ac_exeext
12298
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12299
(eval $ac_link) 2>&5
12301
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302
(exit $ac_status); } &&
12303
{ ac_try='test -s conftest$ac_exeext'
12304
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12305
(eval $ac_try) 2>&5
12307
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12308
(exit $ac_status); }; }; then
12309
echo "$as_me:$LINENO: result: yes" >&5
12310
echo "${ECHO_T}yes" >&6
12314
echo "$as_me: failed program was:" >&5
12315
cat conftest.$ac_ext >&5
12316
echo "$as_me:$LINENO: result: no" >&5
12317
echo "${ECHO_T}no" >&6
12318
NO_OPTOPT_DECL="-DNO_OPTOPT_DECL"
12321
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12323
# -----------------------------------
12325
echo "$as_me:$LINENO: checking if assert needs __eprintf" >&5
12326
echo $ECHO_N "checking if assert needs __eprintf... $ECHO_C" >&6
12327
cat > conftest.$ac_ext <<EOF
12328
#include "confdefs.h"
12329
#include "assert.h"
12336
${CC-cc} -c $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext 1>&5
12337
if test "x`nm conftest.o |grep __eprintf`" != "x"; then
12338
echo "$as_me:$LINENO: result: yes" >&5
12339
echo "${ECHO_T}yes" >&6
12340
CFLAGS="$CFLAGS -DNDEBUG"
12342
echo "$as_me:$LINENO: result: no" >&5
12343
echo "${ECHO_T}no" >&6
12347
# -----------------------------------------------------------------------
12349
# Generate Makefiles
12350
ac_config_files="$ac_config_files Makefile doc/Makefile contrib/Makefile graphs/Makefile graphs/directed/Makefile graphs/undirected/Makefile gd/Makefile cdt/Makefile agraph/Makefile graph/Makefile pathplan/Makefile dotneato/dotgen/Makefile dotneato/neatogen/Makefile dotneato/twopigen/Makefile dotneato/common/Makefile dotneato/Makefile dag/Makefile fdp/Makefile geo/Makefile grid/Makefile incr/Makefile shape/Makefile ns/Makefile agutil/Makefile tclhandle/Makefile tclstubs/Makefile tkstubs/Makefile tcldot/Makefile tcldot/demo/Makefile tcldgr/Makefile tcldgr/demo/Makefile tcldgl/Makefile tcldgl/demo/Makefile tclpathplan/Makefile tclpathplan/demo/Makefile tclpathplan/demo/pathplan_data/Makefile tkspline/Makefile tkspline/demo/Makefile gdtclft/Makefile gdtclft/demo/Makefile lefty/ws/x11/libfilereq/Makefile lefty/ws/x11/Makefile lefty/ws/Makefile lefty/os/unix/Makefile lefty/os/Makefile lefty/dot2l/Makefile lefty/cs2l/Makefile lefty/examples/Makefile lefty/Makefile lneato/Makefile dotty/Makefile tools/Makefile tools/vmalloc/Makefile tools/sfio/Makefile tools/sfio/Sfio_dc/Makefile tools/sfio/Sfio_f/Makefile tools/ast/Makefile tools/expr/Makefile tools/gpr/Makefile tools/src/Makefile graphviz.spec"
12351
cat >confcache <<\_ACEOF
12352
# This file is a shell script that caches the results of configure
12353
# tests run on this system so they can be shared between configure
12354
# scripts and configure runs, see configure's option --config-cache.
12355
# It is not useful on other systems. If it contains results you don't
12356
# want to keep, you may remove or edit it.
12358
# config.status only pays attention to the cache file if you give it
12359
# the --recheck option to rerun configure.
12361
# `ac_cv_env_foo' variables (set or unset) will be overriden when
12362
# loading this file, other *unset* `ac_cv_foo' will be assigned the
12363
# following values.
12367
# The following way of writing the cache mishandles newlines in values,
12368
# but we know of no workaround that is simple, portable, and efficient.
12369
# So, don't put newlines in cache variables' values.
12370
# Ultrix sh set writes to stderr and can't be redirected directly,
12371
# and sets the high bit in the cache file unless we assign to the vars.
12374
case `(ac_space=' '; set | grep ac_space) 2>&1` in
12376
# `set' does not quote correctly, so add quotes (double-quote
12377
# substitution turns \\\\ into \\, and sed turns \\ into \).
12380
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12383
# `set' quotes correctly as required by POSIX, so do not add quotes.
12385
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12392
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12394
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12396
if cmp -s $cache_file confcache; then :; else
12397
if test -w $cache_file; then
12398
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12399
cat confcache >$cache_file
12401
echo "not updating unwritable cache $cache_file"
12406
test "x$prefix" = xNONE && prefix=$ac_default_prefix
12407
# Let make expand exec_prefix.
12408
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12410
# VPATH may cause trouble with some makes, so we remove $(srcdir),
12411
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12412
# trailing colons and then remove the whole line if VPATH becomes empty
12413
# (actually we leave an empty line to preserve line numbers).
12414
if test "x$srcdir" = x.; then
12415
ac_vpsub='/^[ ]*VPATH[ ]*=/{
12416
s/:*\$(srcdir):*/:/;
12417
s/:*\${srcdir}:*/:/;
12419
s/^\([^=]*=[ ]*\):*/\1/;
12425
DEFS=-DHAVE_CONFIG_H
12427
: ${CONFIG_STATUS=./config.status}
12428
ac_clean_files_save=$ac_clean_files
12429
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12430
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12431
echo "$as_me: creating $CONFIG_STATUS" >&6;}
12432
cat >$CONFIG_STATUS <<_ACEOF
12434
# Generated by $as_me.
12435
# Run this file to recreate the current configuration.
12436
# Compiler output produced by configure, useful for debugging
12437
# configure, is in config.log if it exists.
12440
SHELL=\${CONFIG_SHELL-$SHELL}
12443
cat >>$CONFIG_STATUS <<\_ACEOF
12445
## --------------------- ##
12446
## M4sh Initialization. ##
12447
## --------------------- ##
12449
# Be Bourne compatible
12450
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12453
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12458
# Support unset when possible.
12459
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
12465
(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
12466
{ $as_unset LANG || test "${LANG+set}" != set; } ||
12467
{ LANG=C; export LANG; }
12468
(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
12469
{ $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
12470
{ LC_ALL=C; export LC_ALL; }
12471
(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
12472
{ $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
12473
{ LC_TIME=C; export LC_TIME; }
12474
(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
12475
{ $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
12476
{ LC_CTYPE=C; export LC_CTYPE; }
12477
(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
12478
{ $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
12479
{ LANGUAGE=C; export LANGUAGE; }
12480
(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
12481
{ $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
12482
{ LC_COLLATE=C; export LC_COLLATE; }
12483
(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
12484
{ $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
12485
{ LC_NUMERIC=C; export LC_NUMERIC; }
12486
(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
12487
{ $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
12488
{ LC_MESSAGES=C; export LC_MESSAGES; }
12490
# Name of the executable.
12491
as_me=`(basename "$0") 2>/dev/null ||
12492
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12493
X"$0" : 'X\(//\)$' \| \
12494
X"$0" : 'X\(/\)$' \| \
12495
. : '\(.\)' 2>/dev/null ||
12497
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12498
/^X\/\(\/\/\)$/{ s//\1/; q; }
12499
/^X\/\(\/\).*/{ s//\1/; q; }
12502
# PATH needs CR, and LINENO needs CR and PATH.
12503
# Avoid depending upon Character Ranges.
12504
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12505
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12506
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12507
as_cr_digits='0123456789'
12508
as_cr_alnum=$as_cr_Letters$as_cr_digits
12510
# The user is always right.
12511
if test "${PATH_SEPARATOR+set}" != set; then
12512
echo "#! $SHELL" >conftest.sh
12513
echo "exit 0" >>conftest.sh
12514
chmod +x conftest.sh
12515
if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
12523
as_lineno_1=$LINENO
12524
as_lineno_2=$LINENO
12525
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12526
test "x$as_lineno_1" != "x$as_lineno_2" &&
12527
test "x$as_lineno_3" = "x$as_lineno_2" || {
12528
# Find who we are. Look in the path if we contain no path at all
12531
*[\\/]* ) as_myself=$0 ;;
12532
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12533
for as_dir in $PATH
12536
test -z "$as_dir" && as_dir=.
12537
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12542
# We did not find ourselves, most probably we were run as `sh COMMAND'
12543
# in which case we are not to be found in the path.
12544
if test "x$as_myself" = x; then
12547
if test ! -f "$as_myself"; then
12548
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12549
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12550
{ (exit 1); exit 1; }; }
12552
case $CONFIG_SHELL in
12554
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12555
for as_dir in /bin:/usr/bin:$PATH
12558
test -z "$as_dir" && as_dir=.
12559
for as_base in sh bash ksh sh5; do
12562
if ("$as_dir/$as_base" -c '
12563
as_lineno_1=$LINENO
12564
as_lineno_2=$LINENO
12565
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12566
test "x$as_lineno_1" != "x$as_lineno_2" &&
12567
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12568
CONFIG_SHELL=$as_dir/$as_base
12569
export CONFIG_SHELL
12570
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12578
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12579
# uniformly replaced by the line number. The first 'sed' inserts a
12580
# line-number line before each line; the second 'sed' does the real
12581
# work. The second script uses 'N' to pair each line-number line
12582
# with the numbered line, and appends trailing '-' during
12583
# substitution so that $LINENO is not a special case at line end.
12584
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12585
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12586
sed '=' <$as_myself |
12591
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12594
s,^['$as_cr_digits']*\n,,
12595
' >$as_me.lineno &&
12596
chmod +x $as_me.lineno ||
12597
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12598
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12599
{ (exit 1); exit 1; }; }
12601
# Don't try to exec as it changes $[0], causing all sort of problems
12602
# (the dirname of $[0] is not the place where we might find the
12603
# original and so on. Autoconf is especially sensible to this).
12605
# Exit status is that of the last command.
12609
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12610
*c*,-n*) ECHO_N= ECHO_C='
12612
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12613
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12616
if expr a : '\(a\)' >/dev/null 2>&1; then
12622
rm -f conf$$ conf$$.exe conf$$.file
12624
if ln -s conf$$.file conf$$ 2>/dev/null; then
12625
# We could just check for DJGPP; but this test a) works b) is more generic
12626
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12627
if test -f conf$$.exe; then
12628
# Don't use ln at all; we don't have any links
12633
elif ln conf$$.file conf$$ 2>/dev/null; then
12638
rm -f conf$$ conf$$.exe conf$$.file
12640
as_executable_p="test -f"
12642
# Sed expression to map a string onto a valid CPP name.
12643
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
12645
# Sed expression to map a string onto a valid variable name.
12646
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
12649
# We need space, tab and new line, in precisely that order.
12655
$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
12659
# Open the log real soon, to keep \$[0] and so on meaningful, and to
12660
# report actual input values of CONFIG_FILES etc. instead of their
12661
# values after options handling. Logging --version etc. is OK.
12665
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12666
## Running $as_me. ##
12671
This file was extended by $as_me, which was
12672
generated by GNU Autoconf 2.52f. Invocation command line was
12674
CONFIG_FILES = $CONFIG_FILES
12675
CONFIG_HEADERS = $CONFIG_HEADERS
12676
CONFIG_LINKS = $CONFIG_LINKS
12677
CONFIG_COMMANDS = $CONFIG_COMMANDS
12681
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12685
# Files that config.status was made for.
12686
if test -n "$ac_config_files"; then
12687
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12690
if test -n "$ac_config_headers"; then
12691
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12694
if test -n "$ac_config_links"; then
12695
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12698
if test -n "$ac_config_commands"; then
12699
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12702
cat >>$CONFIG_STATUS <<\_ACEOF
12705
\`$as_me' instantiates files from templates according to the
12706
current configuration.
12708
Usage: $0 [OPTIONS] [FILE]...
12710
-h, --help print this help, then exit
12711
-V, --version print version number, then exit
12712
-d, --debug don't remove temporary files
12713
--recheck update $as_me by reconfiguring in the same conditions
12714
--file=FILE[:TEMPLATE]
12715
instantiate the configuration file FILE
12716
--header=FILE[:TEMPLATE]
12717
instantiate the configuration header FILE
12719
Configuration files:
12722
Configuration headers:
12725
Configuration commands:
12728
Report bugs to <bug-autoconf@gnu.org>."
12731
cat >>$CONFIG_STATUS <<_ACEOF
12734
configured by $0, generated by GNU Autoconf 2.52f,
12735
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12737
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
12738
Free Software Foundation, Inc.
12739
This config.status script is free software; the Free Software Foundation
12740
gives unlimited permission to copy, distribute and modify it."
12745
cat >>$CONFIG_STATUS <<\_ACEOF
12746
# If no file are specified by the user, then we need to provide default
12747
# value. By we need to know if files were specified by the user.
12753
ac_option=`expr "x$1" : 'x\([^=]*\)='`
12754
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12756
set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
12760
*) # This is not an option, so the user has probably given explicit
12762
ac_need_defaults=false;;
12766
# Handling of the options.
12768
cat >>$CONFIG_STATUS <<_ACEOF
12769
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12770
echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
12771
exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
12773
cat >>$CONFIG_STATUS <<\_ACEOF
12774
--version | --vers* | -V )
12775
echo "$ac_cs_version"; exit 0 ;;
12777
# Conflict between --help and --header
12778
{ { echo "$as_me:$LINENO: error: ambiguous option: $1
12779
Try \`$0 --help' for more information." >&5
12780
echo "$as_me: error: ambiguous option: $1
12781
Try \`$0 --help' for more information." >&2;}
12782
{ (exit 1); exit 1; }; };;
12783
--help | --hel | -h )
12784
echo "$ac_cs_usage"; exit 0 ;;
12785
--debug | --d* | -d )
12787
--file | --fil | --fi | --f )
12789
CONFIG_FILES="$CONFIG_FILES $1"
12790
ac_need_defaults=false;;
12791
--header | --heade | --head | --hea )
12793
CONFIG_HEADERS="$CONFIG_HEADERS $1"
12794
ac_need_defaults=false;;
12796
# This is an error.
12797
-*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12798
Try \`$0 --help' for more information." >&5
12799
echo "$as_me: error: unrecognized option: $1
12800
Try \`$0 --help' for more information." >&2;}
12801
{ (exit 1); exit 1; }; } ;;
12803
*) ac_config_targets="$ac_config_targets $1" ;;
12811
cat >>$CONFIG_STATUS <<_ACEOF
12813
# INIT-COMMANDS section.
12818
cat >>$CONFIG_STATUS <<\_ACEOF
12819
for ac_config_target in $ac_config_targets
12821
case "$ac_config_target" in
12822
# Handling of arguments.
12823
"Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12824
"doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
12825
"contrib/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
12826
"graphs/Makefile" ) CONFIG_FILES="$CONFIG_FILES graphs/Makefile" ;;
12827
"graphs/directed/Makefile" ) CONFIG_FILES="$CONFIG_FILES graphs/directed/Makefile" ;;
12828
"graphs/undirected/Makefile" ) CONFIG_FILES="$CONFIG_FILES graphs/undirected/Makefile" ;;
12829
"gd/Makefile" ) CONFIG_FILES="$CONFIG_FILES gd/Makefile" ;;
12830
"cdt/Makefile" ) CONFIG_FILES="$CONFIG_FILES cdt/Makefile" ;;
12831
"agraph/Makefile" ) CONFIG_FILES="$CONFIG_FILES agraph/Makefile" ;;
12832
"graph/Makefile" ) CONFIG_FILES="$CONFIG_FILES graph/Makefile" ;;
12833
"pathplan/Makefile" ) CONFIG_FILES="$CONFIG_FILES pathplan/Makefile" ;;
12834
"dotneato/dotgen/Makefile" ) CONFIG_FILES="$CONFIG_FILES dotneato/dotgen/Makefile" ;;
12835
"dotneato/neatogen/Makefile" ) CONFIG_FILES="$CONFIG_FILES dotneato/neatogen/Makefile" ;;
12836
"dotneato/twopigen/Makefile" ) CONFIG_FILES="$CONFIG_FILES dotneato/twopigen/Makefile" ;;
12837
"dotneato/common/Makefile" ) CONFIG_FILES="$CONFIG_FILES dotneato/common/Makefile" ;;
12838
"dotneato/Makefile" ) CONFIG_FILES="$CONFIG_FILES dotneato/Makefile" ;;
12839
"dag/Makefile" ) CONFIG_FILES="$CONFIG_FILES dag/Makefile" ;;
12840
"fdp/Makefile" ) CONFIG_FILES="$CONFIG_FILES fdp/Makefile" ;;
12841
"geo/Makefile" ) CONFIG_FILES="$CONFIG_FILES geo/Makefile" ;;
12842
"grid/Makefile" ) CONFIG_FILES="$CONFIG_FILES grid/Makefile" ;;
12843
"incr/Makefile" ) CONFIG_FILES="$CONFIG_FILES incr/Makefile" ;;
12844
"shape/Makefile" ) CONFIG_FILES="$CONFIG_FILES shape/Makefile" ;;
12845
"ns/Makefile" ) CONFIG_FILES="$CONFIG_FILES ns/Makefile" ;;
12846
"agutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES agutil/Makefile" ;;
12847
"tclhandle/Makefile" ) CONFIG_FILES="$CONFIG_FILES tclhandle/Makefile" ;;
12848
"tclstubs/Makefile" ) CONFIG_FILES="$CONFIG_FILES tclstubs/Makefile" ;;
12849
"tkstubs/Makefile" ) CONFIG_FILES="$CONFIG_FILES tkstubs/Makefile" ;;
12850
"tcldot/Makefile" ) CONFIG_FILES="$CONFIG_FILES tcldot/Makefile" ;;
12851
"tcldot/demo/Makefile" ) CONFIG_FILES="$CONFIG_FILES tcldot/demo/Makefile" ;;
12852
"tcldgr/Makefile" ) CONFIG_FILES="$CONFIG_FILES tcldgr/Makefile" ;;
12853
"tcldgr/demo/Makefile" ) CONFIG_FILES="$CONFIG_FILES tcldgr/demo/Makefile" ;;
12854
"tcldgl/Makefile" ) CONFIG_FILES="$CONFIG_FILES tcldgl/Makefile" ;;
12855
"tcldgl/demo/Makefile" ) CONFIG_FILES="$CONFIG_FILES tcldgl/demo/Makefile" ;;
12856
"tclpathplan/Makefile" ) CONFIG_FILES="$CONFIG_FILES tclpathplan/Makefile" ;;
12857
"tclpathplan/demo/Makefile" ) CONFIG_FILES="$CONFIG_FILES tclpathplan/demo/Makefile" ;;
12858
"tclpathplan/demo/pathplan_data/Makefile" ) CONFIG_FILES="$CONFIG_FILES tclpathplan/demo/pathplan_data/Makefile" ;;
12859
"tkspline/Makefile" ) CONFIG_FILES="$CONFIG_FILES tkspline/Makefile" ;;
12860
"tkspline/demo/Makefile" ) CONFIG_FILES="$CONFIG_FILES tkspline/demo/Makefile" ;;
12861
"gdtclft/Makefile" ) CONFIG_FILES="$CONFIG_FILES gdtclft/Makefile" ;;
12862
"gdtclft/demo/Makefile" ) CONFIG_FILES="$CONFIG_FILES gdtclft/demo/Makefile" ;;
12863
"lefty/ws/x11/libfilereq/Makefile" ) CONFIG_FILES="$CONFIG_FILES lefty/ws/x11/libfilereq/Makefile" ;;
12864
"lefty/ws/x11/Makefile" ) CONFIG_FILES="$CONFIG_FILES lefty/ws/x11/Makefile" ;;
12865
"lefty/ws/Makefile" ) CONFIG_FILES="$CONFIG_FILES lefty/ws/Makefile" ;;
12866
"lefty/os/unix/Makefile" ) CONFIG_FILES="$CONFIG_FILES lefty/os/unix/Makefile" ;;
12867
"lefty/os/Makefile" ) CONFIG_FILES="$CONFIG_FILES lefty/os/Makefile" ;;
12868
"lefty/dot2l/Makefile" ) CONFIG_FILES="$CONFIG_FILES lefty/dot2l/Makefile" ;;
12869
"lefty/cs2l/Makefile" ) CONFIG_FILES="$CONFIG_FILES lefty/cs2l/Makefile" ;;
12870
"lefty/examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES lefty/examples/Makefile" ;;
12871
"lefty/Makefile" ) CONFIG_FILES="$CONFIG_FILES lefty/Makefile" ;;
12872
"lneato/Makefile" ) CONFIG_FILES="$CONFIG_FILES lneato/Makefile" ;;
12873
"dotty/Makefile" ) CONFIG_FILES="$CONFIG_FILES dotty/Makefile" ;;
12874
"tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
12875
"tools/vmalloc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/vmalloc/Makefile" ;;
12876
"tools/sfio/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/sfio/Makefile" ;;
12877
"tools/sfio/Sfio_dc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/sfio/Sfio_dc/Makefile" ;;
12878
"tools/sfio/Sfio_f/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/sfio/Sfio_f/Makefile" ;;
12879
"tools/ast/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/ast/Makefile" ;;
12880
"tools/expr/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/expr/Makefile" ;;
12881
"tools/gpr/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/gpr/Makefile" ;;
12882
"tools/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/src/Makefile" ;;
12883
"graphviz.spec" ) CONFIG_FILES="$CONFIG_FILES graphviz.spec" ;;
12884
"default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12885
"gvconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gvconfig.h" ;;
12886
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12887
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12888
{ (exit 1); exit 1; }; };;
12892
# If the user did not use the arguments to specify the items to instantiate,
12893
# then the envvar interface is used. Set only those that are not.
12894
# We use the long form for the default assignment because of an extremely
12895
# bizarre bug on SunOS 4.1.3.
12896
if $ac_need_defaults; then
12897
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12898
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12899
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12902
# Create a temporary directory, and hook for its removal unless debugging.
12905
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12906
trap '{ (exit 1); exit 1; }' 1 2 13 15
12909
# Create a (secure) tmp directory for tmp files.
12912
tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
12913
test -n "$tmp" && test -d "$tmp"
12916
tmp=$TMPDIR/cs$$-$RANDOM
12917
(umask 077 && mkdir $tmp)
12920
echo "$me: cannot create a temporary directory in $TMPDIR" >&2
12921
{ (exit 1); exit 1; }
12926
cat >>$CONFIG_STATUS <<_ACEOF
12929
# CONFIG_FILES section.
12932
# No need to generate the scripts if there are no CONFIG_FILES.
12933
# This happens for instance when ./config.status config.h
12934
if test -n "\$CONFIG_FILES"; then
12935
# Protect against being on the right side of a sed subst in config.status.
12936
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12937
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12938
s,@SHELL@,$SHELL,;t t
12939
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12940
s,@exec_prefix@,$exec_prefix,;t t
12941
s,@prefix@,$prefix,;t t
12942
s,@program_transform_name@,$program_transform_name,;t t
12943
s,@bindir@,$bindir,;t t
12944
s,@sbindir@,$sbindir,;t t
12945
s,@libexecdir@,$libexecdir,;t t
12946
s,@datadir@,$datadir,;t t
12947
s,@sysconfdir@,$sysconfdir,;t t
12948
s,@sharedstatedir@,$sharedstatedir,;t t
12949
s,@localstatedir@,$localstatedir,;t t
12950
s,@libdir@,$libdir,;t t
12951
s,@includedir@,$includedir,;t t
12952
s,@oldincludedir@,$oldincludedir,;t t
12953
s,@infodir@,$infodir,;t t
12954
s,@mandir@,$mandir,;t t
12955
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12956
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12957
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12958
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12959
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12960
s,@build_alias@,$build_alias,;t t
12961
s,@host_alias@,$host_alias,;t t
12962
s,@target_alias@,$target_alias,;t t
12963
s,@DEFS@,$DEFS,;t t
12964
s,@ECHO_C@,$ECHO_C,;t t
12965
s,@ECHO_N@,$ECHO_N,;t t
12966
s,@ECHO_T@,$ECHO_T,;t t
12967
s,@LIBS@,$LIBS,;t t
12968
s,@build@,$build,;t t
12969
s,@build_cpu@,$build_cpu,;t t
12970
s,@build_vendor@,$build_vendor,;t t
12971
s,@build_os@,$build_os,;t t
12972
s,@host@,$host,;t t
12973
s,@host_cpu@,$host_cpu,;t t
12974
s,@host_vendor@,$host_vendor,;t t
12975
s,@host_os@,$host_os,;t t
12976
s,@target@,$target,;t t
12977
s,@target_cpu@,$target_cpu,;t t
12978
s,@target_vendor@,$target_vendor,;t t
12979
s,@target_os@,$target_os,;t t
12980
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12981
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12982
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12983
s,@PACKAGE@,$PACKAGE,;t t
12984
s,@VERSION@,$VERSION,;t t
12985
s,@ACLOCAL@,$ACLOCAL,;t t
12986
s,@AUTOCONF@,$AUTOCONF,;t t
12987
s,@AUTOMAKE@,$AUTOMAKE,;t t
12988
s,@AUTOHEADER@,$AUTOHEADER,;t t
12989
s,@MAKEINFO@,$MAKEINFO,;t t
12990
s,@SET_MAKE@,$SET_MAKE,;t t
12992
s,@CFLAGS@,$CFLAGS,;t t
12993
s,@LDFLAGS@,$LDFLAGS,;t t
12994
s,@CPPFLAGS@,$CPPFLAGS,;t t
12995
s,@ac_ct_CC@,$ac_ct_CC,;t t
12996
s,@EXEEXT@,$EXEEXT,;t t
12997
s,@OBJEXT@,$OBJEXT,;t t
12999
s,@CXXFLAGS@,$CXXFLAGS,;t t
13000
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
13002
s,@LEXLIB@,$LEXLIB,;t t
13003
s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
13004
s,@YACC@,$YACC,;t t
13006
s,@LN_S@,$LN_S,;t t
13007
s,@ECHO@,$ECHO,;t t
13008
s,@RANLIB@,$RANLIB,;t t
13009
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
13010
s,@STRIP@,$STRIP,;t t
13011
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
13013
s,@LIBTOOL@,$LIBTOOL,;t t
13015
s,@SORT@,$SORT,;t t
13017
s,@TOP_DIR@,$TOP_DIR,;t t
13018
s,@BUILD_DIR@,$BUILD_DIR,;t t
13019
s,@TCLSH@,$TCLSH,;t t
13020
s,@TCL_SUBDIRS@,$TCL_SUBDIRS,;t t
13021
s,@TCL_PKGINDEX@,$TCL_PKGINDEX,;t t
13022
s,@TCLSH_EXEC_PREFIX@,$TCLSH_EXEC_PREFIX,;t t
13023
s,@TCL_VERSION@,$TCL_VERSION,;t t
13024
s,@TCL_MAJOR_VERSION@,$TCL_MAJOR_VERSION,;t t
13025
s,@TCL_MINOR_VERSION@,$TCL_MINOR_VERSION,;t t
13026
s,@TCL_PATCH_LEVEL@,$TCL_PATCH_LEVEL,;t t
13027
s,@TCL_CC@,$TCL_CC,;t t
13028
s,@TCL_CXX@,$TCL_CXX,;t t
13029
s,@TCL_CFLAGS@,$TCL_CFLAGS,;t t
13030
s,@TCL_CXXFLAGS@,$TCL_CXXFLAGS,;t t
13031
s,@TCL_DEFS@,$TCL_DEFS,;t t
13032
s,@TCL_DBGX@,$TCL_DBGX,;t t
13033
s,@TCL_CFLAGS_DEBUG@,$TCL_CFLAGS_DEBUG,;t t
13034
s,@TCL_CFLAGS_OPTIMIZE@,$TCL_CFLAGS_OPTIMIZE,;t t
13035
s,@TCL_SHARED_BUILD@,$TCL_SHARED_BUILD,;t t
13036
s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
13037
s,@TCL_NEEDS_EXP_FILE@,$TCL_NEEDS_EXP_FILE,;t t
13038
s,@TCL_EXPORT_FILE_SUFFIX@,$TCL_EXPORT_FILE_SUFFIX,;t t
13039
s,@TCL_LIBS@,$TCL_LIBS,;t t
13040
s,@TCL_PREFIX@,$TCL_PREFIX,;t t
13041
s,@TCL_EXEC_PREFIX@,$TCL_EXEC_PREFIX,;t t
13042
s,@TCL_SHLIB_CFLAGS@,$TCL_SHLIB_CFLAGS,;t t
13043
s,@TCL_SHLIB_CXXFLAGS@,$TCL_SHLIB_CXXFLAGS,;t t
13044
s,@TCL_EXTRA_CFLAGS@,$TCL_EXTRA_CFLAGS,;t t
13045
s,@TCL_SHLIB_LD@,$TCL_SHLIB_LD,;t t
13046
s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
13047
s,@TCL_SHLIB_SUFFIX@,$TCL_SHLIB_SUFFIX,;t t
13048
s,@TCL_DL_LIBS@,$TCL_DL_LIBS,;t t
13049
s,@TCL_LD_FLAGS@,$TCL_LD_FLAGS,;t t
13050
s,@TCL_LD_SEARCH_FLAGS@,$TCL_LD_SEARCH_FLAGS,;t t
13051
s,@TCL_COMPAT_OBJS@,$TCL_COMPAT_OBJS,;t t
13052
s,@TCL_RANLIB@,$TCL_RANLIB,;t t
13053
s,@TCL_LIB_FLAG@,$TCL_LIB_FLAG,;t t
13054
s,@TCL_BUILD_LIB_SPEC@,$TCL_BUILD_LIB_SPEC,;t t
13055
s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
13056
s,@TCL_LIB_VERSIONS_OK@,$TCL_LIB_VERSIONS_OK,;t t
13057
s,@TCL_SHARED_LIB_SUFFIX@,$TCL_SHARED_LIB_SUFFIX,;t t
13058
s,@TCL_UNSHARED_LIB_SUFFIX@,$TCL_UNSHARED_LIB_SUFFIX,;t t
13059
s,@TCL_SRC_DIR@,$TCL_SRC_DIR,;t t
13060
s,@TCL_PACKAGE_PATH@,$TCL_PACKAGE_PATH,;t t
13061
s,@TCL_SUPPORTS_STUBS@,$TCL_SUPPORTS_STUBS,;t t
13062
s,@TCL_STUB_LIB_FILE@,$TCL_STUB_LIB_FILE,;t t
13063
s,@TCL_STUB_LIB_FLAG@,$TCL_STUB_LIB_FLAG,;t t
13064
s,@TCL_BUILD_STUB_LIB_SPEC@,$TCL_BUILD_STUB_LIB_SPEC,;t t
13065
s,@TCL_STUB_LIB_SPEC@,$TCL_STUB_LIB_SPEC,;t t
13066
s,@TCL_BUILD_STUB_LIB_PATH@,$TCL_BUILD_STUB_LIB_PATH,;t t
13067
s,@TCL_STUB_LIB_PATH@,$TCL_STUB_LIB_PATH,;t t
13068
s,@TK_SUBDIRS@,$TK_SUBDIRS,;t t
13069
s,@TK_PKGINDEX@,$TK_PKGINDEX,;t t
13070
s,@TK_VERSION@,$TK_VERSION,;t t
13071
s,@TK_MAJOR_VERSION@,$TK_MAJOR_VERSION,;t t
13072
s,@TK_MINOR_VERSION@,$TK_MINOR_VERSION,;t t
13073
s,@TK_PATCH_LEVEL@,$TK_PATCH_LEVEL,;t t
13074
s,@TK_DEFS@,$TK_DEFS,;t t
13075
s,@TK_SHARED_BUILD@,$TK_SHARED_BUILD,;t t
13076
s,@TK_LIB_FILE@,$TK_LIB_FILE,;t t
13077
s,@TK_LIBS@,$TK_LIBS,;t t
13078
s,@TK_PREFIX@,$TK_PREFIX,;t t
13079
s,@TK_EXEC_PREFIX@,$TK_EXEC_PREFIX,;t t
13080
s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
13081
s,@TK_XLIBSW@,$TK_XLIBSW,;t t
13082
s,@TK_BUILD_LIB_SPEC@,$TK_BUILD_LIB_SPEC,;t t
13083
s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
13084
s,@TK_SRC_DIR@,$TK_SRC_DIR,;t t
13085
s,@TK_CFLAGS@,$TK_CFLAGS,;t t
13086
s,@TK_SUPPORTS_STUBS@,$TK_SUPPORTS_STUBS,;t t
13087
s,@TK_STUB_LIB_FILE@,$TK_STUB_LIB_FILE,;t t
13088
s,@TK_STUB_LIB_FLAG@,$TK_STUB_LIB_FLAG,;t t
13089
s,@TK_BUILD_STUB_LIB_SPEC@,$TK_BUILD_STUB_LIB_SPEC,;t t
13090
s,@TK_STUB_LIB_SPEC@,$TK_STUB_LIB_SPEC,;t t
13091
s,@TK_BUILD_STUB_LIB_PATH@,$TK_BUILD_STUB_LIB_PATH,;t t
13092
s,@TK_STUB_LIB_PATH@,$TK_STUB_LIB_PATH,;t t
13093
s,@EXTRA_INCLUDES@,$EXTRA_INCLUDES,;t t
13094
s,@EXTRA_LIBS@,$EXTRA_LIBS,;t t
13095
s,@SOCKET_LIBS@,$SOCKET_LIBS,;t t
13096
s,@X_CFLAGS@,$X_CFLAGS,;t t
13097
s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
13098
s,@X_LIBS@,$X_LIBS,;t t
13099
s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
13100
s,@X_SUBDIRS@,$X_SUBDIRS,;t t
13101
s,@XPM_INCLUDES@,$XPM_INCLUDES,;t t
13102
s,@XPM_LIBS@,$XPM_LIBS,;t t
13103
s,@FT_INCLUDES@,$FT_INCLUDES,;t t
13104
s,@FT_LIBS@,$FT_LIBS,;t t
13105
s,@ICONV_INCLUDES@,$ICONV_INCLUDES,;t t
13106
s,@ICONV_LIBS@,$ICONV_LIBS,;t t
13107
s,@Z_INCLUDES@,$Z_INCLUDES,;t t
13108
s,@Z_LIBS@,$Z_LIBS,;t t
13109
s,@PNG_INCLUDES@,$PNG_INCLUDES,;t t
13110
s,@PNG_LIBS@,$PNG_LIBS,;t t
13111
s,@JPEG_INCLUDES@,$JPEG_INCLUDES,;t t
13112
s,@JPEG_LIBS@,$JPEG_LIBS,;t t
13113
s,@XAW_INCLUDES@,$XAW_INCLUDES,;t t
13114
s,@XAW_LIBS@,$XAW_LIBS,;t t
13115
s,@ALLOCA@,$ALLOCA,;t t
13116
s,@STRTOLL@,$STRTOLL,;t t
13117
s,@STRTOULL@,$STRTOULL,;t t
13118
s,@TCLINT_INCLUDES@,$TCLINT_INCLUDES,;t t
13119
s,@TKINT_INCLUDES@,$TKINT_INCLUDES,;t t
13120
s,@NO_CNT_IN_FILESTRUCT@,$NO_CNT_IN_FILESTRUCT,;t t
13121
s,@NO_ERRNO_DECL@,$NO_ERRNO_DECL,;t t
13122
s,@NO_OPTOPT_DECL@,$NO_OPTOPT_DECL,;t t
13127
cat >>$CONFIG_STATUS <<\_ACEOF
13128
# Split the substitutions into bite-sized pieces for seds with
13129
# small command number limits, like on Digital OSF/1 and HP-UX.
13130
ac_max_sed_lines=48
13131
ac_sed_frag=1 # Number of current file.
13132
ac_beg=1 # First line for current file.
13133
ac_end=$ac_max_sed_lines # Line after last line for current file.
13136
while $ac_more_lines; do
13137
if test $ac_beg -gt 1; then
13138
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13140
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13142
if test ! -s $tmp/subs.frag; then
13143
ac_more_lines=false
13145
# The purpose of the label and of the branching condition is to
13146
# speed up the sed processing (if there are no `@' at all, there
13147
# is no need to browse any of the substitutions).
13148
# These are the two extra sed commands mentioned above.
13150
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13151
if test -z "$ac_sed_cmds"; then
13152
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13154
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13156
ac_sed_frag=`expr $ac_sed_frag + 1`
13158
ac_end=`expr $ac_end + $ac_max_sed_lines`
13161
if test -z "$ac_sed_cmds"; then
13164
fi # test -n "$CONFIG_FILES"
13167
cat >>$CONFIG_STATUS <<\_ACEOF
13168
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13169
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13171
- | *:- | *:-:* ) # input from stdin
13173
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13174
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13175
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13176
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13177
* ) ac_file_in=$ac_file.in ;;
13180
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13181
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13182
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13183
X"$ac_file" : 'X\(//\)[^/]' \| \
13184
X"$ac_file" : 'X\(//\)$' \| \
13185
X"$ac_file" : 'X\(/\)' \| \
13186
. : '\(.\)' 2>/dev/null ||
13188
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13189
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
13190
/^X\(\/\/\)$/{ s//\1/; q; }
13191
/^X\(\/\).*/{ s//\1/; q; }
13193
{ case "$ac_dir" in
13194
[\\/]* | ?:[\\/]* ) as_incr_dir=;;
13198
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
13199
case $as_mkdir_dir in
13200
# Skip DOS drivespec
13201
?:) as_incr_dir=$as_mkdir_dir ;;
13203
as_incr_dir=$as_incr_dir/$as_mkdir_dir
13204
test -d "$as_incr_dir" ||
13205
mkdir "$as_incr_dir" ||
13206
{ { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
13207
echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
13208
{ (exit 1); exit 1; }; }
13215
if test "$ac_dir" != .; then
13216
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13217
# A "../" for each directory in $ac_dir_suffix.
13218
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13220
ac_dir_suffix= ac_top_builddir=
13224
.) # No --srcdir option. We are building in place.
13226
if test -z "$ac_top_builddir"; then
13229
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13231
[\\/]* | ?:[\\/]* ) # Absolute path.
13232
ac_srcdir=$srcdir$ac_dir_suffix;
13233
ac_top_srcdir=$srcdir ;;
13234
*) # Relative path.
13235
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13236
ac_top_srcdir=$ac_top_builddir$srcdir ;;
13238
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
13240
ac_buildpath=`cd "$ac_dir" && cd $ac_builddir && pwd`
13241
ac_top_buildpath=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
13242
ac_srcpath=`cd "$ac_dir" && cd $ac_srcdir && pwd`
13243
ac_top_srcpath=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
13246
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13247
*) ac_INSTALL=$ac_top_builddir$INSTALL ;;
13250
if test x"$ac_file" != x-; then
13251
{ echo "$as_me:$LINENO: creating $ac_file" >&5
13252
echo "$as_me: creating $ac_file" >&6;}
13255
# Let's still pretend it is `configure' which instantiates (i.e., don't
13256
# use $as_me), people would be surprised to read:
13257
# /* config.h. Generated by config.status. */
13258
if test x"$ac_file" = x-; then
13261
configure_input="$ac_file. "
13263
configure_input=$configure_input"Generated from `echo $ac_file_in |
13264
sed 's,.*/,,'` by configure."
13266
# First look for the input files in the build tree, otherwise in the
13268
ac_file_inputs=`IFS=:
13269
for f in $ac_file_in; do
13271
-) echo $tmp/stdin ;;
13273
# Absolute (can't be DOS-style, as IFS=:)
13274
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13275
echo "$as_me: error: cannot find input file: $f" >&2;}
13276
{ (exit 1); exit 1; }; }
13279
if test -f "$f"; then
13282
elif test -f "$srcdir/$f"; then
13287
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13288
echo "$as_me: error: cannot find input file: $f" >&2;}
13289
{ (exit 1); exit 1; }; }
13292
done` || { (exit 1); exit 1; }
13294
cat >>$CONFIG_STATUS <<_ACEOF
13298
cat >>$CONFIG_STATUS <<\_ACEOF
13300
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13301
s,@configure_input@,$configure_input,;t t
13302
s,@srcdir@,$ac_srcdir,;t t
13303
s,@srcpath@,$ac_srcpath,;t t
13304
s,@top_srcdir@,$ac_top_srcdir,;t t
13305
s,@top_srcpath@,$ac_top_srcpath,;t t
13306
s,@builddir@,$ac_builddir,;t t
13307
s,@buildpath@,$ac_buildpath,;t t
13308
s,@top_builddir@,$ac_top_builddir,;t t
13309
s,@top_buildpath@,$ac_top_buildpath,;t t
13310
s,@INSTALL@,$ac_INSTALL,;t t
13311
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13313
if test x"$ac_file" != x-; then
13314
mv $tmp/out $ac_file
13322
cat >>$CONFIG_STATUS <<\_ACEOF
13325
# CONFIG_HEADER section.
13328
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13329
# NAME is the cpp macro being defined and VALUE is the value it is being given.
13331
# ac_d sets the value in "#define NAME VALUE" lines.
13332
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13333
ac_dB='[ ].*$,\1#\2'
13336
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13337
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13338
ac_uB='$,\1#\2define\3'
13342
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13343
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13345
- | *:- | *:-:* ) # input from stdin
13347
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13348
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13349
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13350
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13351
* ) ac_file_in=$ac_file.in ;;
13354
test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13355
echo "$as_me: creating $ac_file" >&6;}
13357
# First look for the input files in the build tree, otherwise in the
13359
ac_file_inputs=`IFS=:
13360
for f in $ac_file_in; do
13362
-) echo $tmp/stdin ;;
13364
# Absolute (can't be DOS-style, as IFS=:)
13365
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13366
echo "$as_me: error: cannot find input file: $f" >&2;}
13367
{ (exit 1); exit 1; }; }
13370
if test -f "$f"; then
13373
elif test -f "$srcdir/$f"; then
13378
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13379
echo "$as_me: error: cannot find input file: $f" >&2;}
13380
{ (exit 1); exit 1; }; }
13383
done` || { (exit 1); exit 1; }
13384
# Remove the trailing spaces.
13385
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13389
# Transform confdefs.h into two sed scripts, `conftest.defines' and
13390
# `conftest.undefs', that substitutes the proper values into
13391
# config.h.in to produce config.h. The first handles `#define'
13392
# templates, and the second `#undef' templates.
13393
# And first: Protect against being on the right side of a sed subst in
13394
# config.status. Protect against being in an unquoted here document
13395
# in config.status.
13396
rm -f conftest.defines conftest.undefs
13397
# Using a here document instead of a string reduces the quoting nightmare.
13398
# Putting comments in sed scripts is not portable.
13400
# `end' is used to avoid that the second main sed command (meant for
13401
# 0-ary CPP macros) applies to n-ary macro definitions.
13402
# See the Autoconf documentation for `clear'.
13403
cat >confdef2sed.sed <<\_ACEOF
13408
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13410
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13413
# If some macros were called several times there might be several times
13414
# the same #defines, which is useless. Nevertheless, we may not want to
13415
# sort them, since we want the *last* AC-DEFINE to be honored.
13416
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13417
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13418
rm -f confdef2sed.sed
13420
# This sed command replaces #undef with comments. This is necessary, for
13421
# example, in the case of _POSIX_SOURCE, which is predefined and required
13422
# on some systems where configure will not decide to define it.
13423
cat >>conftest.undefs <<\_ACEOF
13424
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13427
# Break up conftest.defines because some shells have a limit on the size
13428
# of here documents, and old seds have small limits too (100 cmds).
13429
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13430
echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13431
echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13432
echo ' :' >>$CONFIG_STATUS
13433
rm -f conftest.tail
13434
while grep . conftest.defines >/dev/null
13436
# Write a limited-size here document to $tmp/defines.sed.
13437
echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13438
# Speed up: don't consider the non `#define' lines.
13439
echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13440
# Work around the forget-to-reset-the-flag bug.
13441
echo 't clr' >>$CONFIG_STATUS
13442
echo ': clr' >>$CONFIG_STATUS
13443
sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13445
sed -f $tmp/defines.sed $tmp/in >$tmp/out
13447
mv $tmp/out $tmp/in
13449
sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13450
rm -f conftest.defines
13451
mv conftest.tail conftest.defines
13453
rm -f conftest.defines
13454
echo ' fi # egrep' >>$CONFIG_STATUS
13455
echo >>$CONFIG_STATUS
13457
# Break up conftest.undefs because some shells have a limit on the size
13458
# of here documents, and old seds have small limits too (100 cmds).
13459
echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
13460
rm -f conftest.tail
13461
while grep . conftest.undefs >/dev/null
13463
# Write a limited-size here document to $tmp/undefs.sed.
13464
echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13465
# Speed up: don't consider the non `#undef'
13466
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13467
# Work around the forget-to-reset-the-flag bug.
13468
echo 't clr' >>$CONFIG_STATUS
13469
echo ': clr' >>$CONFIG_STATUS
13470
sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13472
sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13474
mv $tmp/out $tmp/in
13476
sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13477
rm -f conftest.undefs
13478
mv conftest.tail conftest.undefs
13480
rm -f conftest.undefs
13482
cat >>$CONFIG_STATUS <<\_ACEOF
13483
# Let's still pretend it is `configure' which instantiates (i.e., don't
13484
# use $as_me), people would be surprised to read:
13485
# /* config.h. Generated by config.status. */
13486
if test x"$ac_file" = x-; then
13487
echo "/* Generated by configure. */" >$tmp/config.h
13489
echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
13491
cat $tmp/in >>$tmp/config.h
13493
if test x"$ac_file" != x-; then
13494
if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
13495
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13496
echo "$as_me: $ac_file is unchanged" >&6;}
13498
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13499
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13500
X"$ac_file" : 'X\(//\)[^/]' \| \
13501
X"$ac_file" : 'X\(//\)$' \| \
13502
X"$ac_file" : 'X\(/\)' \| \
13503
. : '\(.\)' 2>/dev/null ||
13505
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13506
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
13507
/^X\(\/\/\)$/{ s//\1/; q; }
13508
/^X\(\/\).*/{ s//\1/; q; }
13510
{ case "$ac_dir" in
13511
[\\/]* | ?:[\\/]* ) as_incr_dir=;;
13515
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
13516
case $as_mkdir_dir in
13517
# Skip DOS drivespec
13518
?:) as_incr_dir=$as_mkdir_dir ;;
13520
as_incr_dir=$as_incr_dir/$as_mkdir_dir
13521
test -d "$as_incr_dir" ||
13522
mkdir "$as_incr_dir" ||
13523
{ { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
13524
echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
13525
{ (exit 1); exit 1; }; }
13531
mv $tmp/config.h $ac_file
13535
rm -f $tmp/config.h
13539
cat >>$CONFIG_STATUS <<\_ACEOF
13542
# CONFIG_COMMANDS section.
13544
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13545
ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13546
ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13547
ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
13548
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13549
X"$ac_dest" : 'X\(//\)[^/]' \| \
13550
X"$ac_dest" : 'X\(//\)$' \| \
13551
X"$ac_dest" : 'X\(/\)' \| \
13552
. : '\(.\)' 2>/dev/null ||
13554
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13555
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
13556
/^X\(\/\/\)$/{ s//\1/; q; }
13557
/^X\(\/\).*/{ s//\1/; q; }
13561
if test "$ac_dir" != .; then
13562
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13563
# A "../" for each directory in $ac_dir_suffix.
13564
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13566
ac_dir_suffix= ac_top_builddir=
13570
.) # No --srcdir option. We are building in place.
13572
if test -z "$ac_top_builddir"; then
13575
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13577
[\\/]* | ?:[\\/]* ) # Absolute path.
13578
ac_srcdir=$srcdir$ac_dir_suffix;
13579
ac_top_srcdir=$srcdir ;;
13580
*) # Relative path.
13581
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13582
ac_top_srcdir=$ac_top_builddir$srcdir ;;
13584
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
13586
ac_buildpath=`cd "$ac_dir" && cd $ac_builddir && pwd`
13587
ac_top_buildpath=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
13588
ac_srcpath=`cd "$ac_dir" && cd $ac_srcdir && pwd`
13589
ac_top_srcpath=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
13591
{ echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13592
echo "$as_me: executing $ac_dest commands" >&6;}
13594
default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
13599
cat >>$CONFIG_STATUS <<\_ACEOF
13601
{ (exit 0); exit 0; }
13603
chmod +x $CONFIG_STATUS
13604
ac_clean_files=$ac_clean_files_save
13606
# configure is writing to config.log, and then calls config.status.
13607
# config.status does its own redirection, appending to config.log.
13608
# Unfortunately, on DOS this fails, as config.log is still kept open
13609
# by configure, so config.status won't be able to write to it; its
13610
# output is simply discarded. So we exec the FD to /dev/null,
13611
# effectively closing config.log, so it can be properly (re)opened and
13612
# appended to by config.status. When coming back to configure, we
13613
# need to make the FD available again.
13614
if test "$no_create" != yes; then
13617
$SHELL $CONFIG_STATUS || ac_cs_success=false
13619
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
13620
# would make configure fail if this is the last instruction.
13621
$ac_cs_success || { (exit 1); exit 1; }
13624
# dynagraph/Makefile
13625
# dynagraph/common/Makefile
13626
# dynagraph/dynadag/Makefile