2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.57 for psqlodbc 07.03.0200.
5
# Report bugs to <pgsql-odbc@postgresql.org>.
7
# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8
# Free Software Foundation, Inc.
9
# This configure script is free software; the Free Software Foundation
10
# gives unlimited permission to copy, distribute and modify it.
11
## --------------------- ##
12
## M4sh Initialization. ##
13
## --------------------- ##
15
# Be Bourne compatible
16
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20
# is contrary to our usage. Disable this feature.
21
alias -g '${1+"$@"}'='"$@"'
22
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26
# Support unset when possible.
27
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
34
# Work around bugs in pre-3.0 UWIN ksh.
35
$as_unset ENV MAIL MAILPATH
42
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46
if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
47
eval $as_var=C; export $as_var
53
# Required to use basename.
54
if expr a : '\(a\)' >/dev/null 2>&1; then
60
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67
# Name of the executable.
68
as_me=`$as_basename "$0" ||
69
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70
X"$0" : 'X\(//\)$' \| \
71
X"$0" : 'X\(/\)$' \| \
72
. : '\(.\)' 2>/dev/null ||
74
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75
/^X\/\(\/\/\)$/{ s//\1/; q; }
76
/^X\/\(\/\).*/{ s//\1/; q; }
80
# PATH needs CR, and LINENO needs CR and PATH.
81
# Avoid depending upon Character Ranges.
82
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85
as_cr_digits='0123456789'
86
as_cr_alnum=$as_cr_Letters$as_cr_digits
88
# The user is always right.
89
if test "${PATH_SEPARATOR+set}" != set; then
90
echo "#! /bin/sh" >conf$$.sh
91
echo "exit 0" >>conf$$.sh
93
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
104
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105
test "x$as_lineno_1" != "x$as_lineno_2" &&
106
test "x$as_lineno_3" = "x$as_lineno_2" || {
107
# Find who we are. Look in the path if we contain no path at all
110
*[\\/]* ) as_myself=$0 ;;
111
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
115
test -z "$as_dir" && as_dir=.
116
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
121
# We did not find ourselves, most probably we were run as `sh COMMAND'
122
# in which case we are not to be found in the path.
123
if test "x$as_myself" = x; then
126
if test ! -f "$as_myself"; then
127
{ echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128
{ (exit 1); exit 1; }; }
130
case $CONFIG_SHELL in
132
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136
test -z "$as_dir" && as_dir=.
137
for as_base in sh bash ksh sh5; do
140
if ("$as_dir/$as_base" -c '
143
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144
test "x$as_lineno_1" != "x$as_lineno_2" &&
145
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148
CONFIG_SHELL=$as_dir/$as_base
150
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159
# uniformly replaced by the line number. The first 'sed' inserts a
160
# line-number line before each line; the second 'sed' does the real
161
# work. The second script uses 'N' to pair each line-number line
162
# with the numbered line, and appends trailing '-' during
163
# substitution so that $LINENO is not a special case at line end.
164
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166
sed '=' <$as_myself |
171
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174
s,^['$as_cr_digits']*\n,,
176
chmod +x $as_me.lineno ||
177
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178
{ (exit 1); exit 1; }; }
180
# Don't try to exec as it changes $[0], causing all sort of problems
181
# (the dirname of $[0] is not the place where we might find the
182
# original and so on. Autoconf is especially sensible to this).
184
# Exit status is that of the last command.
189
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190
*c*,-n*) ECHO_N= ECHO_C='
192
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
196
if expr a : '\(a\)' >/dev/null 2>&1; then
202
rm -f conf$$ conf$$.exe conf$$.file
204
if ln -s conf$$.file conf$$ 2>/dev/null; then
205
# We could just check for DJGPP; but this test a) works b) is more generic
206
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207
if test -f conf$$.exe; then
208
# Don't use ln at all; we don't have any links
213
elif ln conf$$.file conf$$ 2>/dev/null; then
218
rm -f conf$$ conf$$.exe conf$$.file
220
if mkdir -p . 2>/dev/null; then
226
as_executable_p="test -f"
228
# Sed expression to map a string onto a valid CPP name.
229
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
231
# Sed expression to map a string onto a valid variable name.
232
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
236
# We need space, tab and new line, in precisely that order.
245
# Find the correct PATH separator. Usually this is `:', but
246
# DJGPP uses `;' like DOS.
247
if test "X${PATH_SEPARATOR+set}" != Xset; then
248
UNAME=${UNAME-`uname 2>/dev/null`}
250
*-DOS) lt_cv_sys_path_separator=';' ;;
251
*) lt_cv_sys_path_separator=':' ;;
253
PATH_SEPARATOR=$lt_cv_sys_path_separator
257
# Check that we are running under the correct shell.
258
SHELL=${CONFIG_SHELL-/bin/sh}
262
# Remove one level of quotation (which was required for Make).
263
ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
268
if test "X$1" = X--no-reexec; then
269
# Discard the --no-reexec flag, and continue.
271
elif test "X$1" = X--fallback-echo; then
272
# Avoid inline document here, it may be left over
274
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
275
# Yippee, $echo works!
278
# Restart under the correct shell.
279
exec $SHELL "$0" --no-reexec ${1+"$@"}
282
if test "X$1" = X--fallback-echo; then
283
# used as fallback echo
291
# The HP-UX ksh and POSIX shell print the target directory to stdout
293
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
295
if test -z "$ECHO"; then
296
if test "X${echo_test_string+set}" != Xset; then
297
# find a string as large as possible, as long as the shell can cope with it
298
for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
299
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
300
if (echo_test_string="`eval $cmd`") 2>/dev/null &&
301
echo_test_string="`eval $cmd`" &&
302
(test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
309
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
310
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
311
test "X$echo_testing_string" = "X$echo_test_string"; then
314
# The Solaris, AIX, and Digital Unix default echo programs unquote
315
# backslashes. This makes it impossible to quote backslashes using
316
# echo "$something" | sed 's/\\/\\\\/g'
318
# So, first we look for a working echo in the user's PATH.
320
IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
321
for dir in $PATH /usr/ucb; do
322
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
323
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
324
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
325
test "X$echo_testing_string" = "X$echo_test_string"; then
332
if test "X$echo" = Xecho; then
333
# We didn't find a better echo, so look for alternatives.
334
if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
335
echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
336
test "X$echo_testing_string" = "X$echo_test_string"; then
337
# This shell has a builtin print -r that does the trick.
339
elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
340
test "X$CONFIG_SHELL" != X/bin/ksh; then
341
# If we have ksh, try running configure again with it.
342
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
343
export ORIGINAL_CONFIG_SHELL
344
CONFIG_SHELL=/bin/ksh
346
exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
350
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
351
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
352
test "X$echo_testing_string" = "X$echo_test_string"; then
355
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356
test "X$echo_testing_string" = 'X\t' &&
357
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358
test "X$echo_testing_string" = "X$echo_test_string"; then
359
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
361
SHELL="$CONFIG_SHELL"
363
echo="$CONFIG_SHELL $0 --fallback-echo"
364
elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
365
test "X$echo_testing_string" = 'X\t' &&
366
echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
367
test "X$echo_testing_string" = "X$echo_test_string"; then
368
echo="$CONFIG_SHELL $0 --fallback-echo"
370
# maybe with a smaller string...
373
for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
374
if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
381
if test "$prev" != 'sed 50q "$0"'; then
382
echo_test_string=`eval $prev`
383
export echo_test_string
384
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
386
# Oops. We lost completely, so just stick with echo.
395
# Copy echo and quote the copy suitably for passing to libtool from
396
# the Makefile, instead of quoting the original, which is used later.
398
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
399
ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
405
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
406
# so uname gets run too.
407
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
414
ac_default_prefix=/usr/local
415
ac_config_libobj_dir=.
420
SHELL=${CONFIG_SHELL-/bin/sh}
422
# Maximum number of lines to put in a shell here document.
423
# This variable seems obsolete. It should probably be removed, and
424
# only ac_max_sed_lines should be used.
425
: ${ac_max_here_lines=38}
427
# Identity of this package.
428
PACKAGE_NAME='psqlodbc'
429
PACKAGE_TARNAME='psqlodbc'
430
PACKAGE_VERSION='07.03.0200'
431
PACKAGE_STRING='psqlodbc 07.03.0200'
432
PACKAGE_BUGREPORT='pgsql-odbc@postgresql.org'
434
ac_unique_file="bind.c"
435
# Factoring default headers for most tests.
436
ac_includes_default="\
439
# include <sys/types.h>
442
# include <sys/stat.h>
453
# if !STDC_HEADERS && HAVE_MEMORY_H
459
# include <strings.h>
462
# include <inttypes.h>
472
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT with_unixodbc_TRUE with_unixodbc_FALSE with_iodbc_TRUE with_iodbc_FALSE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE odbcinst_ini_dir build build_cpu build_vendor build_os host host_cpu host_vendor host_os LN_S ECHO RANLIB ac_ct_RANLIB CPP EGREP LIBTOOL LIBOBJS LTLIBOBJS'
475
# Initialize some variables set by options.
477
ac_init_version=false
478
# The variables have the same names as the options, with
479
# dashes changed to underlines.
487
program_transform_name=s,x,x,
495
# Installation directory options.
496
# These are left unexpanded so users can "make install exec_prefix=/foo"
497
# and all the variables that are supposed to be based on exec_prefix
498
# by default will actually change.
499
# Use braces instead of parens because sh, perl, etc. also accept them.
500
bindir='${exec_prefix}/bin'
501
sbindir='${exec_prefix}/sbin'
502
libexecdir='${exec_prefix}/libexec'
503
datadir='${prefix}/share'
504
sysconfdir='${prefix}/etc'
505
sharedstatedir='${prefix}/com'
506
localstatedir='${prefix}/var'
507
libdir='${exec_prefix}/lib'
508
includedir='${prefix}/include'
509
oldincludedir='/usr/include'
510
infodir='${prefix}/info'
511
mandir='${prefix}/man'
516
# If the previous option needs an argument, assign it.
517
if test -n "$ac_prev"; then
518
eval "$ac_prev=\$ac_option"
523
ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
525
# Accept the important Cygnus configure options, so we can diagnose typos.
529
-bindir | --bindir | --bindi | --bind | --bin | --bi)
531
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
534
-build | --build | --buil | --bui | --bu)
535
ac_prev=build_alias ;;
536
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
537
build_alias=$ac_optarg ;;
539
-cache-file | --cache-file | --cache-fil | --cache-fi \
540
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
541
ac_prev=cache_file ;;
542
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
543
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
544
cache_file=$ac_optarg ;;
547
cache_file=config.cache ;;
549
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
551
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
553
datadir=$ac_optarg ;;
555
-disable-* | --disable-*)
556
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
557
# Reject names that are not valid shell variable names.
558
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
559
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
560
{ (exit 1); exit 1; }; }
561
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
562
eval "enable_$ac_feature=no" ;;
564
-enable-* | --enable-*)
565
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
566
# Reject names that are not valid shell variable names.
567
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
568
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
569
{ (exit 1); exit 1; }; }
570
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
572
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
575
eval "enable_$ac_feature='$ac_optarg'" ;;
577
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
578
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
579
| --exec | --exe | --ex)
580
ac_prev=exec_prefix ;;
581
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
582
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
583
| --exec=* | --exe=* | --ex=*)
584
exec_prefix=$ac_optarg ;;
586
-gas | --gas | --ga | --g)
587
# Obsolete; use --with-gas.
590
-help | --help | --hel | --he | -h)
592
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
593
ac_init_help=recursive ;;
594
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
595
ac_init_help=short ;;
597
-host | --host | --hos | --ho)
598
ac_prev=host_alias ;;
599
-host=* | --host=* | --hos=* | --ho=*)
600
host_alias=$ac_optarg ;;
602
-includedir | --includedir | --includedi | --included | --include \
603
| --includ | --inclu | --incl | --inc)
604
ac_prev=includedir ;;
605
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
606
| --includ=* | --inclu=* | --incl=* | --inc=*)
607
includedir=$ac_optarg ;;
609
-infodir | --infodir | --infodi | --infod | --info | --inf)
611
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
612
infodir=$ac_optarg ;;
614
-libdir | --libdir | --libdi | --libd)
616
-libdir=* | --libdir=* | --libdi=* | --libd=*)
619
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
620
| --libexe | --libex | --libe)
621
ac_prev=libexecdir ;;
622
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
623
| --libexe=* | --libex=* | --libe=*)
624
libexecdir=$ac_optarg ;;
626
-localstatedir | --localstatedir | --localstatedi | --localstated \
627
| --localstate | --localstat | --localsta | --localst \
628
| --locals | --local | --loca | --loc | --lo)
629
ac_prev=localstatedir ;;
630
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
631
| --localstate=* | --localstat=* | --localsta=* | --localst=* \
632
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
633
localstatedir=$ac_optarg ;;
635
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
637
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641
# Obsolete; use --without-fp.
644
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
645
| --no-cr | --no-c | -n)
648
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
649
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
652
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
653
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
654
| --oldin | --oldi | --old | --ol | --o)
655
ac_prev=oldincludedir ;;
656
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
657
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
658
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
659
oldincludedir=$ac_optarg ;;
661
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
663
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
666
-program-prefix | --program-prefix | --program-prefi | --program-pref \
667
| --program-pre | --program-pr | --program-p)
668
ac_prev=program_prefix ;;
669
-program-prefix=* | --program-prefix=* | --program-prefi=* \
670
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
671
program_prefix=$ac_optarg ;;
673
-program-suffix | --program-suffix | --program-suffi | --program-suff \
674
| --program-suf | --program-su | --program-s)
675
ac_prev=program_suffix ;;
676
-program-suffix=* | --program-suffix=* | --program-suffi=* \
677
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
678
program_suffix=$ac_optarg ;;
680
-program-transform-name | --program-transform-name \
681
| --program-transform-nam | --program-transform-na \
682
| --program-transform-n | --program-transform- \
683
| --program-transform | --program-transfor \
684
| --program-transfo | --program-transf \
685
| --program-trans | --program-tran \
686
| --progr-tra | --program-tr | --program-t)
687
ac_prev=program_transform_name ;;
688
-program-transform-name=* | --program-transform-name=* \
689
| --program-transform-nam=* | --program-transform-na=* \
690
| --program-transform-n=* | --program-transform-=* \
691
| --program-transform=* | --program-transfor=* \
692
| --program-transfo=* | --program-transf=* \
693
| --program-trans=* | --program-tran=* \
694
| --progr-tra=* | --program-tr=* | --program-t=*)
695
program_transform_name=$ac_optarg ;;
697
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
698
| -silent | --silent | --silen | --sile | --sil)
701
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
703
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
705
sbindir=$ac_optarg ;;
707
-sharedstatedir | --sharedstatedir | --sharedstatedi \
708
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
709
| --sharedst | --shareds | --shared | --share | --shar \
711
ac_prev=sharedstatedir ;;
712
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
713
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
714
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
716
sharedstatedir=$ac_optarg ;;
718
-site | --site | --sit)
720
-site=* | --site=* | --sit=*)
723
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
725
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
728
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
729
| --syscon | --sysco | --sysc | --sys | --sy)
730
ac_prev=sysconfdir ;;
731
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
732
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
733
sysconfdir=$ac_optarg ;;
735
-target | --target | --targe | --targ | --tar | --ta | --t)
736
ac_prev=target_alias ;;
737
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
738
target_alias=$ac_optarg ;;
740
-v | -verbose | --verbose | --verbos | --verbo | --verb)
743
-version | --version | --versio | --versi | --vers | -V)
747
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
748
# Reject names that are not valid shell variable names.
749
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
750
{ echo "$as_me: error: invalid package name: $ac_package" >&2
751
{ (exit 1); exit 1; }; }
752
ac_package=`echo $ac_package| sed 's/-/_/g'`
754
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
757
eval "with_$ac_package='$ac_optarg'" ;;
759
-without-* | --without-*)
760
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
761
# Reject names that are not valid shell variable names.
762
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
763
{ echo "$as_me: error: invalid package name: $ac_package" >&2
764
{ (exit 1); exit 1; }; }
765
ac_package=`echo $ac_package | sed 's/-/_/g'`
766
eval "with_$ac_package=no" ;;
769
# Obsolete; use --with-x.
772
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
773
| --x-incl | --x-inc | --x-in | --x-i)
774
ac_prev=x_includes ;;
775
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
776
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
777
x_includes=$ac_optarg ;;
779
-x-libraries | --x-libraries | --x-librarie | --x-librari \
780
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
781
ac_prev=x_libraries ;;
782
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
783
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
784
x_libraries=$ac_optarg ;;
786
-*) { echo "$as_me: error: unrecognized option: $ac_option
787
Try \`$0 --help' for more information." >&2
788
{ (exit 1); exit 1; }; }
792
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
793
# Reject names that are not valid shell variable names.
794
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
795
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
796
{ (exit 1); exit 1; }; }
797
ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
798
eval "$ac_envvar='$ac_optarg'"
802
# FIXME: should be removed in autoconf 3.0.
803
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
804
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
805
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
806
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
812
if test -n "$ac_prev"; then
813
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
814
{ echo "$as_me: error: missing argument to $ac_option" >&2
815
{ (exit 1); exit 1; }; }
818
# Be sure to have absolute paths.
819
for ac_var in exec_prefix prefix
821
eval ac_val=$`echo $ac_var`
823
[\\/$]* | ?:[\\/]* | NONE | '' ) ;;
824
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
825
{ (exit 1); exit 1; }; };;
829
# Be sure to have absolute paths.
830
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
831
localstatedir libdir includedir oldincludedir infodir mandir
833
eval ac_val=$`echo $ac_var`
835
[\\/$]* | ?:[\\/]* ) ;;
836
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
837
{ (exit 1); exit 1; }; };;
841
# There might be people who depend on the old broken behavior: `$host'
842
# used to hold the argument of --host etc.
843
# FIXME: To remove some day.
848
# FIXME: To remove some day.
849
if test "x$host_alias" != x; then
850
if test "x$build_alias" = x; then
851
cross_compiling=maybe
852
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
853
If a cross compiler is detected then cross compile mode will be used." >&2
854
elif test "x$build_alias" != "x$host_alias"; then
860
test -n "$host_alias" && ac_tool_prefix=$host_alias-
862
test "$silent" = yes && exec 6>/dev/null
865
# Find the source files, if location was not specified.
866
if test -z "$srcdir"; then
867
ac_srcdir_defaulted=yes
868
# Try the directory containing this script, then its parent.
869
ac_confdir=`(dirname "$0") 2>/dev/null ||
870
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
871
X"$0" : 'X\(//\)[^/]' \| \
872
X"$0" : 'X\(//\)$' \| \
873
X"$0" : 'X\(/\)' \| \
874
. : '\(.\)' 2>/dev/null ||
876
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
877
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
878
/^X\(\/\/\)$/{ s//\1/; q; }
879
/^X\(\/\).*/{ s//\1/; q; }
882
if test ! -r $srcdir/$ac_unique_file; then
886
ac_srcdir_defaulted=no
888
if test ! -r $srcdir/$ac_unique_file; then
889
if test "$ac_srcdir_defaulted" = yes; then
890
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
891
{ (exit 1); exit 1; }; }
893
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
894
{ (exit 1); exit 1; }; }
897
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
898
{ echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
899
{ (exit 1); exit 1; }; }
900
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
901
ac_env_build_alias_set=${build_alias+set}
902
ac_env_build_alias_value=$build_alias
903
ac_cv_env_build_alias_set=${build_alias+set}
904
ac_cv_env_build_alias_value=$build_alias
905
ac_env_host_alias_set=${host_alias+set}
906
ac_env_host_alias_value=$host_alias
907
ac_cv_env_host_alias_set=${host_alias+set}
908
ac_cv_env_host_alias_value=$host_alias
909
ac_env_target_alias_set=${target_alias+set}
910
ac_env_target_alias_value=$target_alias
911
ac_cv_env_target_alias_set=${target_alias+set}
912
ac_cv_env_target_alias_value=$target_alias
913
ac_env_CC_set=${CC+set}
915
ac_cv_env_CC_set=${CC+set}
916
ac_cv_env_CC_value=$CC
917
ac_env_CFLAGS_set=${CFLAGS+set}
918
ac_env_CFLAGS_value=$CFLAGS
919
ac_cv_env_CFLAGS_set=${CFLAGS+set}
920
ac_cv_env_CFLAGS_value=$CFLAGS
921
ac_env_LDFLAGS_set=${LDFLAGS+set}
922
ac_env_LDFLAGS_value=$LDFLAGS
923
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
924
ac_cv_env_LDFLAGS_value=$LDFLAGS
925
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
926
ac_env_CPPFLAGS_value=$CPPFLAGS
927
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
928
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
929
ac_env_CPP_set=${CPP+set}
930
ac_env_CPP_value=$CPP
931
ac_cv_env_CPP_set=${CPP+set}
932
ac_cv_env_CPP_value=$CPP
935
# Report the --help message.
937
if test "$ac_init_help" = "long"; then
938
# Omit some internal or obsolete options to make the list less imposing.
939
# This message is too long to be a string in the A/UX 3.1 sh.
941
\`configure' configures psqlodbc 07.03.0200 to adapt to many kinds of systems.
943
Usage: $0 [OPTION]... [VAR=VALUE]...
945
To assign environment variables (e.g., CC, CFLAGS...), specify them as
946
VAR=VALUE. See below for descriptions of some of the useful variables.
948
Defaults for the options are specified in brackets.
951
-h, --help display this help and exit
952
--help=short display options specific to this package
953
--help=recursive display the short help of all the included packages
954
-V, --version display version information and exit
955
-q, --quiet, --silent do not print \`checking...' messages
956
--cache-file=FILE cache test results in FILE [disabled]
957
-C, --config-cache alias for \`--cache-file=config.cache'
958
-n, --no-create do not create output files
959
--srcdir=DIR find the sources in DIR [configure dir or \`..']
964
Installation directories:
965
--prefix=PREFIX install architecture-independent files in PREFIX
967
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
970
By default, \`make install' will install all the files in
971
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
972
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
973
for instance \`--prefix=\$HOME'.
975
For better control, use the options below.
977
Fine tuning of the installation directories:
978
--bindir=DIR user executables [EPREFIX/bin]
979
--sbindir=DIR system admin executables [EPREFIX/sbin]
980
--libexecdir=DIR program executables [EPREFIX/libexec]
981
--datadir=DIR read-only architecture-independent data [PREFIX/share]
982
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
983
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
984
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
985
--libdir=DIR object code libraries [EPREFIX/lib]
986
--includedir=DIR C header files [PREFIX/include]
987
--oldincludedir=DIR C header files for non-gcc [/usr/include]
988
--infodir=DIR info documentation [PREFIX/info]
989
--mandir=DIR man documentation [PREFIX/man]
995
--program-prefix=PREFIX prepend PREFIX to installed program names
996
--program-suffix=SUFFIX append SUFFIX to installed program names
997
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
1000
--build=BUILD configure for building on BUILD [guessed]
1001
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1005
if test -n "$ac_init_help"; then
1006
case $ac_init_help in
1007
short | recursive ) echo "Configuration of psqlodbc 07.03.0200:";;
1012
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1013
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1014
--enable-maintainer-mode enable make rules and dependencies not useful
1015
(and sometimes confusing) to the casual installer
1016
--disable-dependency-tracking Speeds up one-time builds
1017
--enable-dependency-tracking Do not reject slow dependency extractors
1018
--enable-pthreads build pthread implementation if possible
1019
--enable-static=PKGS build static libraries default=no
1020
--enable-shared=PKGS build shared libraries default=yes
1021
--enable-fast-install=PKGS optimize for fast installation default=yes
1022
--disable-libtool-lock avoid locking (might break parallel builds)
1025
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1026
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1027
--with-unixodbc build ODBC driver for unixODBC
1028
--with-iodbc build ODBC driver for iODBC
1029
--with-odbcver=VERSION change default ODBC version number
1031
--with-odbcinst=DIR default directory for odbcinst.ini sysconfdir
1032
--with-gnu-ld assume the C compiler uses GNU ld default=no
1033
--with-pic try to use only PIC/non-PIC objects default=use both
1035
Some influential environment variables:
1036
CC C compiler command
1037
CFLAGS C compiler flags
1038
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1039
nonstandard directory <lib dir>
1040
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1041
headers in a nonstandard directory <include dir>
1044
Use these variables to override the choices made by `configure' or to help
1045
it to find libraries and programs with nonstandard names/locations.
1047
Report bugs to <pgsql-odbc@postgresql.org>.
1051
if test "$ac_init_help" = "recursive"; then
1052
# If there are subdirs, report their specific --help.
1054
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1055
test -d $ac_dir || continue
1058
if test "$ac_dir" != .; then
1059
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1060
# A "../" for each directory in $ac_dir_suffix.
1061
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1063
ac_dir_suffix= ac_top_builddir=
1067
.) # No --srcdir option. We are building in place.
1069
if test -z "$ac_top_builddir"; then
1072
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1074
[\\/]* | ?:[\\/]* ) # Absolute path.
1075
ac_srcdir=$srcdir$ac_dir_suffix;
1076
ac_top_srcdir=$srcdir ;;
1078
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1079
ac_top_srcdir=$ac_top_builddir$srcdir ;;
1081
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1083
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1084
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1085
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1086
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1089
# Check for guested configure; otherwise get Cygnus style configure.
1090
if test -f $ac_srcdir/configure.gnu; then
1092
$SHELL $ac_srcdir/configure.gnu --help=recursive
1093
elif test -f $ac_srcdir/configure; then
1095
$SHELL $ac_srcdir/configure --help=recursive
1096
elif test -f $ac_srcdir/configure.ac ||
1097
test -f $ac_srcdir/configure.in; then
1099
$ac_configure --help
1101
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1107
test -n "$ac_init_help" && exit 0
1108
if $ac_init_version; then
1110
psqlodbc configure 07.03.0200
1111
generated by GNU Autoconf 2.57
1113
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1114
Free Software Foundation, Inc.
1115
This configure script is free software; the Free Software Foundation
1116
gives unlimited permission to copy, distribute and modify it.
1122
This file contains any messages produced by compilers while
1123
running configure, to aid debugging if configure makes a mistake.
1125
It was created by psqlodbc $as_me 07.03.0200, which was
1126
generated by GNU Autoconf 2.57. Invocation command line was
1137
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1138
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1139
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1140
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1141
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1143
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1144
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1146
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1147
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1148
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1149
hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1150
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1151
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1152
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1156
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1160
test -z "$as_dir" && as_dir=.
1161
echo "PATH: $as_dir"
1176
# Keep a trace of the command line.
1177
# Strip out --no-create and --no-recursion so they do not pile up.
1178
# Strip out --silent because we don't want to record it for future runs.
1179
# Also quote any args containing shell meta-characters.
1180
# Make two passes to allow for proper duplicate-argument suppression.
1185
ac_must_keep_next=false
1191
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1192
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1193
| -silent | --silent | --silen | --sile | --sil)
1195
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1196
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1199
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1201
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1202
if test $ac_must_keep_next = true; then
1203
ac_must_keep_next=false # Got value, back to normal.
1206
*=* | --config-cache | -C | -disable-* | --disable-* \
1207
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1208
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1209
| -with-* | --with-* | -without-* | --without-* | --x)
1210
case "$ac_configure_args0 " in
1211
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1214
-* ) ac_must_keep_next=true ;;
1217
ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1218
# Get rid of the leading space.
1224
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1225
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1227
# When interrupted or exit'd, cleanup temporary files, and complete
1228
# config.log. We remove comments because anyway the quotes in there
1229
# would cause problems or look ugly.
1230
# WARNING: Be sure not to use single quotes in there, as some shells,
1231
# such as our DU 5.0 friend, will then `close' the trap.
1232
trap 'exit_status=$?
1233
# Save into config.log some information that might help in debugging.
1238
## ---------------- ##
1239
## Cache variables. ##
1240
## ---------------- ##
1243
# The following way of writing the cache mishandles newlines in values,
1246
case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1249
"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1250
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1254
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1261
## ----------------- ##
1262
## Output variables. ##
1263
## ----------------- ##
1266
for ac_var in $ac_subst_vars
1268
eval ac_val=$`echo $ac_var`
1269
echo "$ac_var='"'"'$ac_val'"'"'"
1273
if test -n "$ac_subst_files"; then
1280
for ac_var in $ac_subst_files
1282
eval ac_val=$`echo $ac_var`
1283
echo "$ac_var='"'"'$ac_val'"'"'"
1288
if test -s confdefs.h; then
1295
sed "/^$/d" confdefs.h | sort
1298
test "$ac_signal" != 0 &&
1299
echo "$as_me: caught signal $ac_signal"
1300
echo "$as_me: exit $exit_status"
1302
rm -f core core.* *.core &&
1303
rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1306
for ac_signal in 1 2 13 15; do
1307
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1311
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1312
rm -rf conftest* confdefs.h
1313
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1316
# Predefined preprocessor variables.
1318
cat >>confdefs.h <<_ACEOF
1319
#define PACKAGE_NAME "$PACKAGE_NAME"
1323
cat >>confdefs.h <<_ACEOF
1324
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1328
cat >>confdefs.h <<_ACEOF
1329
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1333
cat >>confdefs.h <<_ACEOF
1334
#define PACKAGE_STRING "$PACKAGE_STRING"
1338
cat >>confdefs.h <<_ACEOF
1339
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1343
# Let the site file select an alternate cache file if it wants to.
1344
# Prefer explicitly selected file to automatically selected ones.
1345
if test -z "$CONFIG_SITE"; then
1346
if test "x$prefix" != xNONE; then
1347
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1349
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1352
for ac_site_file in $CONFIG_SITE; do
1353
if test -r "$ac_site_file"; then
1354
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1355
echo "$as_me: loading site script $ac_site_file" >&6;}
1356
sed 's/^/| /' "$ac_site_file" >&5
1361
if test -r "$cache_file"; then
1362
# Some versions of bash will fail to source /dev/null (special
1363
# files actually), so we avoid doing that.
1364
if test -f "$cache_file"; then
1365
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
1366
echo "$as_me: loading cache $cache_file" >&6;}
1368
[\\/]* | ?:[\\/]* ) . $cache_file;;
1369
*) . ./$cache_file;;
1373
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
1374
echo "$as_me: creating cache $cache_file" >&6;}
1378
# Check that the precious variables saved in the cache have kept the same
1380
ac_cache_corrupted=false
1381
for ac_var in `(set) 2>&1 |
1382
sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1383
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1384
eval ac_new_set=\$ac_env_${ac_var}_set
1385
eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1386
eval ac_new_val="\$ac_env_${ac_var}_value"
1387
case $ac_old_set,$ac_new_set in
1389
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1390
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1391
ac_cache_corrupted=: ;;
1393
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1394
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1395
ac_cache_corrupted=: ;;
1398
if test "x$ac_old_val" != "x$ac_new_val"; then
1399
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1400
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1401
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1402
echo "$as_me: former value: $ac_old_val" >&2;}
1403
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1404
echo "$as_me: current value: $ac_new_val" >&2;}
1405
ac_cache_corrupted=:
1408
# Pass precious variables to config.status.
1409
if test "$ac_new_set" = set; then
1411
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1412
ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1413
*) ac_arg=$ac_var=$ac_new_val ;;
1415
case " $ac_configure_args " in
1416
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1417
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1421
if $ac_cache_corrupted; then
1422
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1423
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1424
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1425
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1426
{ (exit 1); exit 1; }; }
1430
ac_cpp='$CPP $CPPFLAGS'
1431
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1432
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1433
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1462
am__api_version="1.7"
1464
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1465
if test -f $ac_dir/install-sh; then
1467
ac_install_sh="$ac_aux_dir/install-sh -c"
1469
elif test -f $ac_dir/install.sh; then
1471
ac_install_sh="$ac_aux_dir/install.sh -c"
1473
elif test -f $ac_dir/shtool; then
1475
ac_install_sh="$ac_aux_dir/shtool install -c"
1479
if test -z "$ac_aux_dir"; then
1480
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1481
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1482
{ (exit 1); exit 1; }; }
1484
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1485
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1486
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1488
# Find a good install program. We prefer a C program (faster),
1489
# so one script is as good as another. But avoid the broken or
1490
# incompatible versions:
1491
# SysV /etc/install, /usr/sbin/install
1492
# SunOS /usr/etc/install
1493
# IRIX /sbin/install
1495
# AmigaOS /C/install, which installs bootblocks on floppy discs
1496
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1497
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1498
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1499
# ./install, which can be erroneously created by make from ./install.sh.
1500
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1501
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1502
if test -z "$INSTALL"; then
1503
if test "${ac_cv_path_install+set}" = set; then
1504
echo $ECHO_N "(cached) $ECHO_C" >&6
1506
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1510
test -z "$as_dir" && as_dir=.
1511
# Account for people who put trailing slashes in PATH elements.
1513
./ | .// | /cC/* | \
1514
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1517
# OSF1 and SCO ODT 3.0 have their own names for install.
1518
# Don't use installbsd from OSF since it installs stuff as root
1520
for ac_prog in ginstall scoinst install; do
1521
for ac_exec_ext in '' $ac_executable_extensions; do
1522
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1523
if test $ac_prog = install &&
1524
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1525
# AIX install. It has an incompatible calling convention.
1527
elif test $ac_prog = install &&
1528
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1529
# program-specific install script used by HP pwplus--don't use.
1532
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1544
if test "${ac_cv_path_install+set}" = set; then
1545
INSTALL=$ac_cv_path_install
1547
# As a last resort, use the slow shell script. We don't cache a
1548
# path for INSTALL within a source directory, because that will
1549
# break other packages using the cache if that directory is
1550
# removed, or if the path is relative.
1551
INSTALL=$ac_install_sh
1554
echo "$as_me:$LINENO: result: $INSTALL" >&5
1555
echo "${ECHO_T}$INSTALL" >&6
1557
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1558
# It thinks the first close brace ends the variable substitution.
1559
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1561
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1563
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1565
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1566
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1569
echo timestamp > conftest.file
1570
# Do `set' in a subshell so we don't clobber the current shell's
1571
# arguments. Must try -L first in case configure is actually a
1572
# symlink; some systems play weird games with the mod time of symlinks
1573
# (eg FreeBSD returns the mod time of the symlink's containing
1576
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1577
if test "$*" = "X"; then
1579
set X `ls -t $srcdir/configure conftest.file`
1582
if test "$*" != "X $srcdir/configure conftest.file" \
1583
&& test "$*" != "X conftest.file $srcdir/configure"; then
1585
# If neither matched, then we have a broken ls. This can happen
1586
# if, for instance, CONFIG_SHELL is bash and it inherits a
1587
# broken ls alias from the environment. This has actually
1588
# happened. Such a system could not be considered "sane".
1589
{ { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1590
alias in your environment" >&5
1591
echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1592
alias in your environment" >&2;}
1593
{ (exit 1); exit 1; }; }
1596
test "$2" = conftest.file
1602
{ { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1603
Check your system clock" >&5
1604
echo "$as_me: error: newly created file is older than distributed files!
1605
Check your system clock" >&2;}
1606
{ (exit 1); exit 1; }; }
1608
echo "$as_me:$LINENO: result: yes" >&5
1609
echo "${ECHO_T}yes" >&6
1610
test "$program_prefix" != NONE &&
1611
program_transform_name="s,^,$program_prefix,;$program_transform_name"
1612
# Use a double $ so make ignores it.
1613
test "$program_suffix" != NONE &&
1614
program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1615
# Double any \ or $. echo might interpret backslashes.
1616
# By default was `s,x,x', remove it if useless.
1617
cat <<\_ACEOF >conftest.sed
1618
s/[\\$]/&&/g;s/;s,x,x,$//
1620
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1624
# expand $ac_aux_dir to an absolute path
1625
am_aux_dir=`cd $ac_aux_dir && pwd`
1627
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1628
# Use eval to expand $SHELL
1629
if eval "$MISSING --run true"; then
1630
am_missing_run="$MISSING --run "
1633
{ echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1634
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1637
for ac_prog in gawk mawk nawk awk
1639
# Extract the first word of "$ac_prog", so it can be a program name with args.
1640
set dummy $ac_prog; ac_word=$2
1641
echo "$as_me:$LINENO: checking for $ac_word" >&5
1642
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1643
if test "${ac_cv_prog_AWK+set}" = set; then
1644
echo $ECHO_N "(cached) $ECHO_C" >&6
1646
if test -n "$AWK"; then
1647
ac_cv_prog_AWK="$AWK" # Let the user override the test.
1649
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1653
test -z "$as_dir" && as_dir=.
1654
for ac_exec_ext in '' $ac_executable_extensions; do
1655
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1656
ac_cv_prog_AWK="$ac_prog"
1657
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1666
if test -n "$AWK"; then
1667
echo "$as_me:$LINENO: result: $AWK" >&5
1668
echo "${ECHO_T}$AWK" >&6
1670
echo "$as_me:$LINENO: result: no" >&5
1671
echo "${ECHO_T}no" >&6
1674
test -n "$AWK" && break
1677
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1678
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1679
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1680
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1681
echo $ECHO_N "(cached) $ECHO_C" >&6
1683
cat >conftest.make <<\_ACEOF
1685
@echo 'ac_maketemp="$(MAKE)"'
1687
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1688
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1689
if test -n "$ac_maketemp"; then
1690
eval ac_cv_prog_make_${ac_make}_set=yes
1692
eval ac_cv_prog_make_${ac_make}_set=no
1696
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1697
echo "$as_me:$LINENO: result: yes" >&5
1698
echo "${ECHO_T}yes" >&6
1701
echo "$as_me:$LINENO: result: no" >&5
1702
echo "${ECHO_T}no" >&6
1703
SET_MAKE="MAKE=${MAKE-make}"
1706
rm -rf .tst 2>/dev/null
1707
mkdir .tst 2>/dev/null
1708
if test -d .tst; then
1713
rmdir .tst 2>/dev/null
1715
# test to see if srcdir already configured
1716
if test "`cd $srcdir && pwd`" != "`pwd`" &&
1717
test -f $srcdir/config.status; then
1718
{ { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1719
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1720
{ (exit 1); exit 1; }; }
1723
# test whether we have cygpath
1724
if test -z "$CYGPATH_W"; then
1725
if (cygpath --version) >/dev/null 2>/dev/null; then
1726
CYGPATH_W='cygpath -w'
1733
# Define the identity of the package.
1735
VERSION='07.03.0200'
1738
cat >>confdefs.h <<_ACEOF
1739
#define PACKAGE "$PACKAGE"
1743
cat >>confdefs.h <<_ACEOF
1744
#define VERSION "$VERSION"
1747
# Some tools Automake needs.
1749
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1752
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1755
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1758
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1761
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1764
AMTAR=${AMTAR-"${am_missing_run}tar"}
1766
install_sh=${install_sh-"$am_aux_dir/install-sh"}
1768
# Installed binaries are usually stripped using `strip' when the user
1769
# run `make install-strip'. However `strip' might not be the right
1770
# tool to use in cross-compilation environments, therefore Automake
1771
# will honor the `STRIP' environment variable to overrule this program.
1772
if test "$cross_compiling" != no; then
1773
if test -n "$ac_tool_prefix"; then
1774
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1775
set dummy ${ac_tool_prefix}strip; ac_word=$2
1776
echo "$as_me:$LINENO: checking for $ac_word" >&5
1777
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1778
if test "${ac_cv_prog_STRIP+set}" = set; then
1779
echo $ECHO_N "(cached) $ECHO_C" >&6
1781
if test -n "$STRIP"; then
1782
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1784
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1788
test -z "$as_dir" && as_dir=.
1789
for ac_exec_ext in '' $ac_executable_extensions; do
1790
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1791
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1792
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1800
STRIP=$ac_cv_prog_STRIP
1801
if test -n "$STRIP"; then
1802
echo "$as_me:$LINENO: result: $STRIP" >&5
1803
echo "${ECHO_T}$STRIP" >&6
1805
echo "$as_me:$LINENO: result: no" >&5
1806
echo "${ECHO_T}no" >&6
1810
if test -z "$ac_cv_prog_STRIP"; then
1812
# Extract the first word of "strip", so it can be a program name with args.
1813
set dummy strip; ac_word=$2
1814
echo "$as_me:$LINENO: checking for $ac_word" >&5
1815
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1816
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1817
echo $ECHO_N "(cached) $ECHO_C" >&6
1819
if test -n "$ac_ct_STRIP"; then
1820
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1822
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1826
test -z "$as_dir" && as_dir=.
1827
for ac_exec_ext in '' $ac_executable_extensions; do
1828
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1829
ac_cv_prog_ac_ct_STRIP="strip"
1830
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1836
test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1839
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1840
if test -n "$ac_ct_STRIP"; then
1841
echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1842
echo "${ECHO_T}$ac_ct_STRIP" >&6
1844
echo "$as_me:$LINENO: result: no" >&5
1845
echo "${ECHO_T}no" >&6
1850
STRIP="$ac_cv_prog_STRIP"
1854
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1856
# We need awk for the "check" target. The system "awk" is bad on
1862
ac_config_headers="$ac_config_headers config.h"
1864
echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1865
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1866
# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1867
if test "${enable_maintainer_mode+set}" = set; then
1868
enableval="$enable_maintainer_mode"
1869
USE_MAINTAINER_MODE=$enableval
1871
USE_MAINTAINER_MODE=no
1873
echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1874
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1877
if test $USE_MAINTAINER_MODE = yes; then
1878
MAINTAINER_MODE_TRUE=
1879
MAINTAINER_MODE_FALSE='#'
1881
MAINTAINER_MODE_TRUE='#'
1882
MAINTAINER_MODE_FALSE=
1885
MAINT=$MAINTAINER_MODE_TRUE
1891
cat >>confdefs.h <<\_ACEOF
1892
#define DRIVER_CURSOR_IMPLEMENT 1
1899
# Check whether --with-unixodbc or --without-unixodbc was given.
1900
if test "${with_unixodbc+set}" = set; then
1901
withval="$with_unixodbc"
1906
cat >>confdefs.h <<\_ACEOF
1907
#define WITH_UNIXODBC 1
1915
{ { echo "$as_me:$LINENO: error: no argument expected for --with-unixodbc option" >&5
1916
echo "$as_me: error: no argument expected for --with-unixodbc option" >&2;}
1917
{ (exit 1); exit 1; }; }
1930
# Check whether --with-iodbc or --without-iodbc was given.
1931
if test "${with_iodbc+set}" = set; then
1932
withval="$with_iodbc"
1937
cat >>confdefs.h <<\_ACEOF
1938
#define WITH_IODBC 1
1946
{ { echo "$as_me:$LINENO: error: no argument expected for --with-iodbc option" >&5
1947
echo "$as_me: error: no argument expected for --with-iodbc option" >&2;}
1948
{ (exit 1); exit 1; }; }
1958
if test "$with_unixodbc" = yes && test "$with_iodbc" = yes; then
1959
{ { echo "$as_me:$LINENO: error: ODBC driver cannot be built for both unixODBC and iODBC" >&5
1960
echo "$as_me: error: ODBC driver cannot be built for both unixODBC and iODBC" >&2;}
1961
{ (exit 1); exit 1; }; }
1965
# Default odbc version number (--with-odbcver), default 0x0300
1967
echo "$as_me:$LINENO: checking for ODBC version number" >&5
1968
echo $ECHO_N "checking for ODBC version number... $ECHO_C" >&6
1972
# Check whether --with-odbcver or --without-odbcver was given.
1973
if test "${with_odbcver+set}" = set; then
1974
withval="$with_odbcver"
1978
{ { echo "$as_me:$LINENO: error: argument required for --with-odbcver option" >&5
1979
echo "$as_me: error: argument required for --with-odbcver option" >&2;}
1980
{ (exit 1); exit 1; }; }
1983
{ { echo "$as_me:$LINENO: error: argument required for --with-odbcver option" >&5
1984
echo "$as_me: error: argument required for --with-odbcver option" >&2;}
1985
{ (exit 1); exit 1; }; }
1989
cat >>confdefs.h <<_ACEOF
1990
#define ODBCVER ${withval}
1998
echo "$as_me:$LINENO: result: $with_odbcver" >&5
1999
echo "${ECHO_T}$with_odbcver" >&6
2003
if test $with_unixodbc = yes; then
2005
with_unixodbc_FALSE='#'
2007
with_unixodbc_TRUE='#'
2008
with_unixodbc_FALSE=
2013
if test $with_iodbc = yes; then
2015
with_iodbc_FALSE='#'
2022
DEPDIR="${am__leading_dot}deps"
2024
ac_config_commands="$ac_config_commands depfiles"
2027
am_make=${MAKE-make}
2028
cat > confinc << 'END'
2032
# If we don't find an include directive, just comment out the code.
2033
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2034
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2038
# First try GNU make style include.
2039
echo "include confinc" > confmf
2040
# We grep out `Entering directory' and `Leaving directory'
2041
# messages which can occur if `w' ends up in MAKEFLAGS.
2042
# In particular we don't look at `^make:' because GNU make might
2043
# be invoked under some other name (usually "gmake"), in which
2044
# case it prints its new name instead of `make'.
2045
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2050
# Now try BSD make style include.
2051
if test "$am__include" = "#"; then
2052
echo '.include "confinc"' > confmf
2053
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2054
am__include=.include
2061
echo "$as_me:$LINENO: result: $_am_result" >&5
2062
echo "${ECHO_T}$_am_result" >&6
2063
rm -f confinc confmf
2065
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2066
if test "${enable_dependency_tracking+set}" = set; then
2067
enableval="$enable_dependency_tracking"
2070
if test "x$enable_dependency_tracking" != xno; then
2071
am_depcomp="$ac_aux_dir/depcomp"
2076
if test "x$enable_dependency_tracking" != xno; then
2087
ac_cpp='$CPP $CPPFLAGS'
2088
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2089
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2090
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2091
if test -n "$ac_tool_prefix"; then
2092
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2093
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2094
echo "$as_me:$LINENO: checking for $ac_word" >&5
2095
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2096
if test "${ac_cv_prog_CC+set}" = set; then
2097
echo $ECHO_N "(cached) $ECHO_C" >&6
2099
if test -n "$CC"; then
2100
ac_cv_prog_CC="$CC" # Let the user override the test.
2102
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2106
test -z "$as_dir" && as_dir=.
2107
for ac_exec_ext in '' $ac_executable_extensions; do
2108
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2109
ac_cv_prog_CC="${ac_tool_prefix}gcc"
2110
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2119
if test -n "$CC"; then
2120
echo "$as_me:$LINENO: result: $CC" >&5
2121
echo "${ECHO_T}$CC" >&6
2123
echo "$as_me:$LINENO: result: no" >&5
2124
echo "${ECHO_T}no" >&6
2128
if test -z "$ac_cv_prog_CC"; then
2130
# Extract the first word of "gcc", so it can be a program name with args.
2131
set dummy gcc; ac_word=$2
2132
echo "$as_me:$LINENO: checking for $ac_word" >&5
2133
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2134
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2135
echo $ECHO_N "(cached) $ECHO_C" >&6
2137
if test -n "$ac_ct_CC"; then
2138
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2140
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2144
test -z "$as_dir" && as_dir=.
2145
for ac_exec_ext in '' $ac_executable_extensions; do
2146
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2147
ac_cv_prog_ac_ct_CC="gcc"
2148
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2156
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2157
if test -n "$ac_ct_CC"; then
2158
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2159
echo "${ECHO_T}$ac_ct_CC" >&6
2161
echo "$as_me:$LINENO: result: no" >&5
2162
echo "${ECHO_T}no" >&6
2170
if test -z "$CC"; then
2171
if test -n "$ac_tool_prefix"; then
2172
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2173
set dummy ${ac_tool_prefix}cc; ac_word=$2
2174
echo "$as_me:$LINENO: checking for $ac_word" >&5
2175
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2176
if test "${ac_cv_prog_CC+set}" = set; then
2177
echo $ECHO_N "(cached) $ECHO_C" >&6
2179
if test -n "$CC"; then
2180
ac_cv_prog_CC="$CC" # Let the user override the test.
2182
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2186
test -z "$as_dir" && as_dir=.
2187
for ac_exec_ext in '' $ac_executable_extensions; do
2188
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2189
ac_cv_prog_CC="${ac_tool_prefix}cc"
2190
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2199
if test -n "$CC"; then
2200
echo "$as_me:$LINENO: result: $CC" >&5
2201
echo "${ECHO_T}$CC" >&6
2203
echo "$as_me:$LINENO: result: no" >&5
2204
echo "${ECHO_T}no" >&6
2208
if test -z "$ac_cv_prog_CC"; then
2210
# Extract the first word of "cc", so it can be a program name with args.
2211
set dummy cc; ac_word=$2
2212
echo "$as_me:$LINENO: checking for $ac_word" >&5
2213
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2214
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2215
echo $ECHO_N "(cached) $ECHO_C" >&6
2217
if test -n "$ac_ct_CC"; then
2218
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2220
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2224
test -z "$as_dir" && as_dir=.
2225
for ac_exec_ext in '' $ac_executable_extensions; do
2226
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2227
ac_cv_prog_ac_ct_CC="cc"
2228
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2236
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2237
if test -n "$ac_ct_CC"; then
2238
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2239
echo "${ECHO_T}$ac_ct_CC" >&6
2241
echo "$as_me:$LINENO: result: no" >&5
2242
echo "${ECHO_T}no" >&6
2251
if test -z "$CC"; then
2252
# Extract the first word of "cc", so it can be a program name with args.
2253
set dummy cc; ac_word=$2
2254
echo "$as_me:$LINENO: checking for $ac_word" >&5
2255
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2256
if test "${ac_cv_prog_CC+set}" = set; then
2257
echo $ECHO_N "(cached) $ECHO_C" >&6
2259
if test -n "$CC"; then
2260
ac_cv_prog_CC="$CC" # Let the user override the test.
2263
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2267
test -z "$as_dir" && as_dir=.
2268
for ac_exec_ext in '' $ac_executable_extensions; do
2269
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2270
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2271
ac_prog_rejected=yes
2275
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2281
if test $ac_prog_rejected = yes; then
2282
# We found a bogon in the path, so make sure we never use it.
2283
set dummy $ac_cv_prog_CC
2285
if test $# != 0; then
2286
# We chose a different compiler from the bogus one.
2287
# However, it has the same basename, so the bogon will be chosen
2288
# first if we set CC to just the basename; use the full file name.
2290
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2296
if test -n "$CC"; then
2297
echo "$as_me:$LINENO: result: $CC" >&5
2298
echo "${ECHO_T}$CC" >&6
2300
echo "$as_me:$LINENO: result: no" >&5
2301
echo "${ECHO_T}no" >&6
2305
if test -z "$CC"; then
2306
if test -n "$ac_tool_prefix"; then
2309
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2310
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2311
echo "$as_me:$LINENO: checking for $ac_word" >&5
2312
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2313
if test "${ac_cv_prog_CC+set}" = set; then
2314
echo $ECHO_N "(cached) $ECHO_C" >&6
2316
if test -n "$CC"; then
2317
ac_cv_prog_CC="$CC" # Let the user override the test.
2319
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2323
test -z "$as_dir" && as_dir=.
2324
for ac_exec_ext in '' $ac_executable_extensions; do
2325
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2326
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2327
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2336
if test -n "$CC"; then
2337
echo "$as_me:$LINENO: result: $CC" >&5
2338
echo "${ECHO_T}$CC" >&6
2340
echo "$as_me:$LINENO: result: no" >&5
2341
echo "${ECHO_T}no" >&6
2344
test -n "$CC" && break
2347
if test -z "$CC"; then
2351
# Extract the first word of "$ac_prog", so it can be a program name with args.
2352
set dummy $ac_prog; ac_word=$2
2353
echo "$as_me:$LINENO: checking for $ac_word" >&5
2354
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2355
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2356
echo $ECHO_N "(cached) $ECHO_C" >&6
2358
if test -n "$ac_ct_CC"; then
2359
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2361
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2365
test -z "$as_dir" && as_dir=.
2366
for ac_exec_ext in '' $ac_executable_extensions; do
2367
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2368
ac_cv_prog_ac_ct_CC="$ac_prog"
2369
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2377
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2378
if test -n "$ac_ct_CC"; then
2379
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2380
echo "${ECHO_T}$ac_ct_CC" >&6
2382
echo "$as_me:$LINENO: result: no" >&5
2383
echo "${ECHO_T}no" >&6
2386
test -n "$ac_ct_CC" && break
2395
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2396
See \`config.log' for more details." >&5
2397
echo "$as_me: error: no acceptable C compiler found in \$PATH
2398
See \`config.log' for more details." >&2;}
2399
{ (exit 1); exit 1; }; }
2401
# Provide some information about the compiler.
2402
echo "$as_me:$LINENO:" \
2403
"checking for C compiler version" >&5
2404
ac_compiler=`set X $ac_compile; echo $2`
2405
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2406
(eval $ac_compiler --version </dev/null >&5) 2>&5
2408
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409
(exit $ac_status); }
2410
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2411
(eval $ac_compiler -v </dev/null >&5) 2>&5
2413
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414
(exit $ac_status); }
2415
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2416
(eval $ac_compiler -V </dev/null >&5) 2>&5
2418
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419
(exit $ac_status); }
2421
cat >conftest.$ac_ext <<_ACEOF
2422
#line $LINENO "configure"
2425
cat confdefs.h >>conftest.$ac_ext
2426
cat >>conftest.$ac_ext <<_ACEOF
2427
/* end confdefs.h. */
2437
ac_clean_files_save=$ac_clean_files
2438
ac_clean_files="$ac_clean_files a.out a.exe b.out"
2439
# Try to create an executable without -o first, disregard a.out.
2440
# It will help us diagnose broken compilers, and finding out an intuition
2442
echo "$as_me:$LINENO: checking for C compiler default output" >&5
2443
echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2444
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2445
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2446
(eval $ac_link_default) 2>&5
2448
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449
(exit $ac_status); }; then
2450
# Find the output, starting from the most likely. This scheme is
2451
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2454
# Be careful to initialize this variable, since it used to be cached.
2455
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2457
# b.out is created by i960 compilers.
2458
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2460
test -f "$ac_file" || continue
2462
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2465
# This is the source file.
2468
# We found the default executable, but exeext='' is most
2472
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2473
# FIXME: I believe we export ac_cv_exeext for Libtool,
2474
# but it would be cool to find out if it's true. Does anybody
2475
# maintain Libtool? --akim.
2483
echo "$as_me: failed program was:" >&5
2484
sed 's/^/| /' conftest.$ac_ext >&5
2486
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2487
See \`config.log' for more details." >&5
2488
echo "$as_me: error: C compiler cannot create executables
2489
See \`config.log' for more details." >&2;}
2490
{ (exit 77); exit 77; }; }
2493
ac_exeext=$ac_cv_exeext
2494
echo "$as_me:$LINENO: result: $ac_file" >&5
2495
echo "${ECHO_T}$ac_file" >&6
2497
# Check the compiler produces executables we can run. If not, either
2498
# the compiler is broken, or we cross compile.
2499
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2500
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2501
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2502
# If not cross compiling, check that we can run a simple program.
2503
if test "$cross_compiling" != yes; then
2504
if { ac_try='./$ac_file'
2505
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2508
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509
(exit $ac_status); }; }; then
2512
if test "$cross_compiling" = maybe; then
2515
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2516
If you meant to cross compile, use \`--host'.
2517
See \`config.log' for more details." >&5
2518
echo "$as_me: error: cannot run C compiled programs.
2519
If you meant to cross compile, use \`--host'.
2520
See \`config.log' for more details." >&2;}
2521
{ (exit 1); exit 1; }; }
2525
echo "$as_me:$LINENO: result: yes" >&5
2526
echo "${ECHO_T}yes" >&6
2528
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2529
ac_clean_files=$ac_clean_files_save
2530
# Check the compiler produces executables we can run. If not, either
2531
# the compiler is broken, or we cross compile.
2532
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2533
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2534
echo "$as_me:$LINENO: result: $cross_compiling" >&5
2535
echo "${ECHO_T}$cross_compiling" >&6
2537
echo "$as_me:$LINENO: checking for suffix of executables" >&5
2538
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2539
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2540
(eval $ac_link) 2>&5
2542
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2543
(exit $ac_status); }; then
2544
# If both `conftest.exe' and `conftest' are `present' (well, observable)
2545
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2546
# work properly (i.e., refer to `conftest.exe'), while it won't with
2548
for ac_file in conftest.exe conftest conftest.*; do
2549
test -f "$ac_file" || continue
2551
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2552
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2559
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2560
See \`config.log' for more details." >&5
2561
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2562
See \`config.log' for more details." >&2;}
2563
{ (exit 1); exit 1; }; }
2566
rm -f conftest$ac_cv_exeext
2567
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2568
echo "${ECHO_T}$ac_cv_exeext" >&6
2570
rm -f conftest.$ac_ext
2571
EXEEXT=$ac_cv_exeext
2573
echo "$as_me:$LINENO: checking for suffix of object files" >&5
2574
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2575
if test "${ac_cv_objext+set}" = set; then
2576
echo $ECHO_N "(cached) $ECHO_C" >&6
2578
cat >conftest.$ac_ext <<_ACEOF
2579
#line $LINENO "configure"
2582
cat confdefs.h >>conftest.$ac_ext
2583
cat >>conftest.$ac_ext <<_ACEOF
2584
/* end confdefs.h. */
2594
rm -f conftest.o conftest.obj
2595
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2596
(eval $ac_compile) 2>&5
2598
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599
(exit $ac_status); }; then
2600
for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2602
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2603
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2608
echo "$as_me: failed program was:" >&5
2609
sed 's/^/| /' conftest.$ac_ext >&5
2611
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2612
See \`config.log' for more details." >&5
2613
echo "$as_me: error: cannot compute suffix of object files: cannot compile
2614
See \`config.log' for more details." >&2;}
2615
{ (exit 1); exit 1; }; }
2618
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2620
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2621
echo "${ECHO_T}$ac_cv_objext" >&6
2622
OBJEXT=$ac_cv_objext
2624
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2625
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2626
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2627
echo $ECHO_N "(cached) $ECHO_C" >&6
2629
cat >conftest.$ac_ext <<_ACEOF
2630
#line $LINENO "configure"
2633
cat confdefs.h >>conftest.$ac_ext
2634
cat >>conftest.$ac_ext <<_ACEOF
2635
/* end confdefs.h. */
2648
rm -f conftest.$ac_objext
2649
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2650
(eval $ac_compile) 2>&5
2652
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2653
(exit $ac_status); } &&
2654
{ ac_try='test -s conftest.$ac_objext'
2655
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2658
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659
(exit $ac_status); }; }; then
2662
echo "$as_me: failed program was:" >&5
2663
sed 's/^/| /' conftest.$ac_ext >&5
2667
rm -f conftest.$ac_objext conftest.$ac_ext
2668
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2671
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2672
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2673
GCC=`test $ac_compiler_gnu = yes && echo yes`
2674
ac_test_CFLAGS=${CFLAGS+set}
2675
ac_save_CFLAGS=$CFLAGS
2677
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2678
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2679
if test "${ac_cv_prog_cc_g+set}" = set; then
2680
echo $ECHO_N "(cached) $ECHO_C" >&6
2682
cat >conftest.$ac_ext <<_ACEOF
2683
#line $LINENO "configure"
2686
cat confdefs.h >>conftest.$ac_ext
2687
cat >>conftest.$ac_ext <<_ACEOF
2688
/* end confdefs.h. */
2698
rm -f conftest.$ac_objext
2699
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2700
(eval $ac_compile) 2>&5
2702
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703
(exit $ac_status); } &&
2704
{ ac_try='test -s conftest.$ac_objext'
2705
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2708
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709
(exit $ac_status); }; }; then
2712
echo "$as_me: failed program was:" >&5
2713
sed 's/^/| /' conftest.$ac_ext >&5
2717
rm -f conftest.$ac_objext conftest.$ac_ext
2719
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2720
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2721
if test "$ac_test_CFLAGS" = set; then
2722
CFLAGS=$ac_save_CFLAGS
2723
elif test $ac_cv_prog_cc_g = yes; then
2724
if test "$GCC" = yes; then
2730
if test "$GCC" = yes; then
2736
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2737
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2738
if test "${ac_cv_prog_cc_stdc+set}" = set; then
2739
echo $ECHO_N "(cached) $ECHO_C" >&6
2741
ac_cv_prog_cc_stdc=no
2743
cat >conftest.$ac_ext <<_ACEOF
2744
#line $LINENO "configure"
2747
cat confdefs.h >>conftest.$ac_ext
2748
cat >>conftest.$ac_ext <<_ACEOF
2749
/* end confdefs.h. */
2752
#include <sys/types.h>
2753
#include <sys/stat.h>
2754
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2755
struct buf { int x; };
2756
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2757
static char *e (p, i)
2763
static char *f (char * (*g) (char **, int), char **p, ...)
2768
s = g (p, va_arg (v,int));
2772
int test (int i, double x);
2773
struct s1 {int (*f) (int a);};
2774
struct s2 {int (*f) (double a);};
2775
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2781
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2786
# Don't try gcc -ansi; that turns off useful extensions and
2787
# breaks some systems' header files.
2788
# AIX -qlanglvl=ansi
2789
# Ultrix and OSF/1 -std1
2790
# HP-UX 10.20 and later -Ae
2791
# HP-UX older versions -Aa -D_HPUX_SOURCE
2792
# SVR4 -Xc -D__EXTENSIONS__
2793
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2795
CC="$ac_save_CC $ac_arg"
2796
rm -f conftest.$ac_objext
2797
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2798
(eval $ac_compile) 2>&5
2800
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801
(exit $ac_status); } &&
2802
{ ac_try='test -s conftest.$ac_objext'
2803
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2806
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807
(exit $ac_status); }; }; then
2808
ac_cv_prog_cc_stdc=$ac_arg
2811
echo "$as_me: failed program was:" >&5
2812
sed 's/^/| /' conftest.$ac_ext >&5
2815
rm -f conftest.$ac_objext
2817
rm -f conftest.$ac_ext conftest.$ac_objext
2822
case "x$ac_cv_prog_cc_stdc" in
2824
echo "$as_me:$LINENO: result: none needed" >&5
2825
echo "${ECHO_T}none needed" >&6 ;;
2827
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2828
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2829
CC="$CC $ac_cv_prog_cc_stdc" ;;
2832
# Some people use a C++ compiler to compile C. Since we use `exit',
2833
# in C++ we need to declare it. In case someone uses the same compiler
2834
# for both compiling C and C++ we need to have the C++ compiler decide
2835
# the declaration of exit, since it's the most demanding environment.
2836
cat >conftest.$ac_ext <<_ACEOF
2841
rm -f conftest.$ac_objext
2842
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2843
(eval $ac_compile) 2>&5
2845
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846
(exit $ac_status); } &&
2847
{ ac_try='test -s conftest.$ac_objext'
2848
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2851
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852
(exit $ac_status); }; }; then
2853
for ac_declaration in \
2855
'#include <stdlib.h>' \
2856
'extern "C" void std::exit (int) throw (); using std::exit;' \
2857
'extern "C" void std::exit (int); using std::exit;' \
2858
'extern "C" void exit (int) throw ();' \
2859
'extern "C" void exit (int);' \
2862
cat >conftest.$ac_ext <<_ACEOF
2863
#line $LINENO "configure"
2866
cat confdefs.h >>conftest.$ac_ext
2867
cat >>conftest.$ac_ext <<_ACEOF
2868
/* end confdefs.h. */
2879
rm -f conftest.$ac_objext
2880
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2881
(eval $ac_compile) 2>&5
2883
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884
(exit $ac_status); } &&
2885
{ ac_try='test -s conftest.$ac_objext'
2886
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2889
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890
(exit $ac_status); }; }; then
2893
echo "$as_me: failed program was:" >&5
2894
sed 's/^/| /' conftest.$ac_ext >&5
2898
rm -f conftest.$ac_objext conftest.$ac_ext
2899
cat >conftest.$ac_ext <<_ACEOF
2900
#line $LINENO "configure"
2903
cat confdefs.h >>conftest.$ac_ext
2904
cat >>conftest.$ac_ext <<_ACEOF
2905
/* end confdefs.h. */
2915
rm -f conftest.$ac_objext
2916
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2917
(eval $ac_compile) 2>&5
2919
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920
(exit $ac_status); } &&
2921
{ ac_try='test -s conftest.$ac_objext'
2922
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2925
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926
(exit $ac_status); }; }; then
2929
echo "$as_me: failed program was:" >&5
2930
sed 's/^/| /' conftest.$ac_ext >&5
2933
rm -f conftest.$ac_objext conftest.$ac_ext
2936
if test -n "$ac_declaration"; then
2937
echo '#ifdef __cplusplus' >>confdefs.h
2938
echo $ac_declaration >>confdefs.h
2939
echo '#endif' >>confdefs.h
2943
echo "$as_me: failed program was:" >&5
2944
sed 's/^/| /' conftest.$ac_ext >&5
2947
rm -f conftest.$ac_objext conftest.$ac_ext
2949
ac_cpp='$CPP $CPPFLAGS'
2950
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2951
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2952
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2954
depcc="$CC" am_compiler_list=
2956
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2957
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2958
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2959
echo $ECHO_N "(cached) $ECHO_C" >&6
2961
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2962
# We make a subdir and do the tests there. Otherwise we can end up
2963
# making bogus files that we don't know about and never remove. For
2964
# instance it was reported that on HP-UX the gcc test will end up
2965
# making a dummy file named `D' -- because `-MD' means `put the output
2968
# Copy depcomp to subdir because otherwise we won't find it if we're
2969
# using a relative directory.
2970
cp "$am_depcomp" conftest.dir
2973
am_cv_CC_dependencies_compiler_type=none
2974
if test "$am_compiler_list" = ""; then
2975
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2977
for depmode in $am_compiler_list; do
2978
# We need to recreate these files for each test, as the compiler may
2979
# overwrite some of them when testing with obscure command lines.
2980
# This happens at least with the AIX C compiler.
2981
echo '#include "conftest.h"' > conftest.c
2982
echo 'int i;' > conftest.h
2983
echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2987
# after this tag, mechanisms are not by side-effect, so they'll
2988
# only be used when explicitly requested
2989
if test "x$enable_dependency_tracking" = xyes; then
2997
# We check with `-c' and `-o' for the sake of the "dashmstdout"
2998
# mode. It turns out that the SunPro C++ compiler does not properly
2999
# handle `-M -o', and we need to detect this.
3000
if depmode=$depmode \
3001
source=conftest.c object=conftest.o \
3002
depfile=conftest.Po tmpdepfile=conftest.TPo \
3003
$SHELL ./depcomp $depcc -c -o conftest.o conftest.c \
3004
>/dev/null 2>conftest.err &&
3005
grep conftest.h conftest.Po > /dev/null 2>&1 &&
3006
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3007
# icc doesn't choke on unknown options, it will just issue warnings
3008
# (even with -Werror). So we grep stderr for any message
3009
# that says an option was ignored.
3010
if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3011
am_cv_CC_dependencies_compiler_type=$depmode
3020
am_cv_CC_dependencies_compiler_type=none
3024
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3025
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3026
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3031
test "x$enable_dependency_tracking" != xno \
3032
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3034
am__fastdepCC_FALSE='#'
3036
am__fastdepCC_TRUE='#'
3037
am__fastdepCC_FALSE=
3043
for ac_func in strtoll
3045
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3046
echo "$as_me:$LINENO: checking for $ac_func" >&5
3047
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3048
if eval "test \"\${$as_ac_var+set}\" = set"; then
3049
echo $ECHO_N "(cached) $ECHO_C" >&6
3051
cat >conftest.$ac_ext <<_ACEOF
3052
#line $LINENO "configure"
3055
cat confdefs.h >>conftest.$ac_ext
3056
cat >>conftest.$ac_ext <<_ACEOF
3057
/* end confdefs.h. */
3058
/* System header to define __stub macros and hopefully few prototypes,
3059
which can conflict with char $ac_func (); below.
3060
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3061
<limits.h> exists even on freestanding compilers. */
3063
# include <limits.h>
3065
# include <assert.h>
3067
/* Override any gcc2 internal prototype to avoid an error. */
3072
/* We use char because int might match the return type of a gcc2
3073
builtin and then its argument prototype would still apply. */
3075
/* The GNU C library defines this for functions which it implements
3076
to always fail with ENOSYS. Some functions are actually named
3077
something starting with __ and the normal name is an alias. */
3078
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3081
char (*f) () = $ac_func;
3090
return f != $ac_func;
3095
rm -f conftest.$ac_objext conftest$ac_exeext
3096
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3097
(eval $ac_link) 2>&5
3099
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100
(exit $ac_status); } &&
3101
{ ac_try='test -s conftest$ac_exeext'
3102
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3105
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106
(exit $ac_status); }; }; then
3107
eval "$as_ac_var=yes"
3109
echo "$as_me: failed program was:" >&5
3110
sed 's/^/| /' conftest.$ac_ext >&5
3112
eval "$as_ac_var=no"
3114
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3116
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3117
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3118
if test `eval echo '${'$as_ac_var'}'` = yes; then
3119
cat >>confdefs.h <<_ACEOF
3120
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3127
# to implement the thread-safe driver
3130
# Check whether --enable-pthreads or --disable-pthreads was given.
3131
if test "${enable_pthreads+set}" = set; then
3132
enableval="$enable_pthreads"
3137
cat >>confdefs.h <<\_ACEOF
3138
#define POSIX_MULTITHREAD_SUPPORT 1
3142
cat >>confdefs.h <<\_ACEOF
3143
#define _REENTRANT 1
3147
echo "$as_me:$LINENO: checking for gethostbyname in -lc_r" >&5
3148
echo $ECHO_N "checking for gethostbyname in -lc_r... $ECHO_C" >&6
3149
if test "${ac_cv_lib_c_r_gethostbyname+set}" = set; then
3150
echo $ECHO_N "(cached) $ECHO_C" >&6
3152
ac_check_lib_save_LIBS=$LIBS
3154
cat >conftest.$ac_ext <<_ACEOF
3155
#line $LINENO "configure"
3158
cat confdefs.h >>conftest.$ac_ext
3159
cat >>conftest.$ac_ext <<_ACEOF
3160
/* end confdefs.h. */
3162
/* Override any gcc2 internal prototype to avoid an error. */
3166
/* We use char because int might match the return type of a gcc2
3167
builtin and then its argument prototype would still apply. */
3168
char gethostbyname ();
3177
rm -f conftest.$ac_objext conftest$ac_exeext
3178
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3179
(eval $ac_link) 2>&5
3181
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182
(exit $ac_status); } &&
3183
{ ac_try='test -s conftest$ac_exeext'
3184
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3187
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188
(exit $ac_status); }; }; then
3189
ac_cv_lib_c_r_gethostbyname=yes
3191
echo "$as_me: failed program was:" >&5
3192
sed 's/^/| /' conftest.$ac_ext >&5
3194
ac_cv_lib_c_r_gethostbyname=no
3196
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3197
LIBS=$ac_check_lib_save_LIBS
3199
echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_gethostbyname" >&5
3200
echo "${ECHO_T}$ac_cv_lib_c_r_gethostbyname" >&6
3201
if test $ac_cv_lib_c_r_gethostbyname = yes; then
3202
cat >>confdefs.h <<_ACEOF
3203
#define HAVE_LIBC_R 1
3211
echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
3212
echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
3213
if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
3214
echo $ECHO_N "(cached) $ECHO_C" >&6
3216
ac_check_lib_save_LIBS=$LIBS
3218
cat >conftest.$ac_ext <<_ACEOF
3219
#line $LINENO "configure"
3222
cat confdefs.h >>conftest.$ac_ext
3223
cat >>conftest.$ac_ext <<_ACEOF
3224
/* end confdefs.h. */
3226
/* Override any gcc2 internal prototype to avoid an error. */
3230
/* We use char because int might match the return type of a gcc2
3231
builtin and then its argument prototype would still apply. */
3232
char gethostbyname_r ();
3241
rm -f conftest.$ac_objext conftest$ac_exeext
3242
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3243
(eval $ac_link) 2>&5
3245
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246
(exit $ac_status); } &&
3247
{ ac_try='test -s conftest$ac_exeext'
3248
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3251
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252
(exit $ac_status); }; }; then
3253
ac_cv_lib_nsl_gethostbyname_r=yes
3255
echo "$as_me: failed program was:" >&5
3256
sed 's/^/| /' conftest.$ac_ext >&5
3258
ac_cv_lib_nsl_gethostbyname_r=no
3260
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3261
LIBS=$ac_check_lib_save_LIBS
3263
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
3264
echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
3265
if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
3266
cat >>confdefs.h <<_ACEOF
3267
#define HAVE_LIBNSL 1
3275
for ac_func in getipnodebyname gethostbyname_r
3277
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3278
echo "$as_me:$LINENO: checking for $ac_func" >&5
3279
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3280
if eval "test \"\${$as_ac_var+set}\" = set"; then
3281
echo $ECHO_N "(cached) $ECHO_C" >&6
3283
cat >conftest.$ac_ext <<_ACEOF
3284
#line $LINENO "configure"
3287
cat confdefs.h >>conftest.$ac_ext
3288
cat >>conftest.$ac_ext <<_ACEOF
3289
/* end confdefs.h. */
3290
/* System header to define __stub macros and hopefully few prototypes,
3291
which can conflict with char $ac_func (); below.
3292
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3293
<limits.h> exists even on freestanding compilers. */
3295
# include <limits.h>
3297
# include <assert.h>
3299
/* Override any gcc2 internal prototype to avoid an error. */
3304
/* We use char because int might match the return type of a gcc2
3305
builtin and then its argument prototype would still apply. */
3307
/* The GNU C library defines this for functions which it implements
3308
to always fail with ENOSYS. Some functions are actually named
3309
something starting with __ and the normal name is an alias. */
3310
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3313
char (*f) () = $ac_func;
3322
return f != $ac_func;
3327
rm -f conftest.$ac_objext conftest$ac_exeext
3328
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3329
(eval $ac_link) 2>&5
3331
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3332
(exit $ac_status); } &&
3333
{ ac_try='test -s conftest$ac_exeext'
3334
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3337
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3338
(exit $ac_status); }; }; then
3339
eval "$as_ac_var=yes"
3341
echo "$as_me: failed program was:" >&5
3342
sed 's/^/| /' conftest.$ac_ext >&5
3344
eval "$as_ac_var=no"
3346
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3348
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3349
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3350
if test `eval echo '${'$as_ac_var'}'` = yes; then
3351
cat >>confdefs.h <<_ACEOF
3352
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3360
if test x"$ac_cv_func_gethostbyname_r" = xyes || test x"$ac_cv_lib_nsl_gethostbyname_r" = xyes; then
3361
cat >conftest.$ac_ext <<_ACEOF
3362
#line $LINENO "configure"
3365
cat confdefs.h >>conftest.$ac_ext
3366
cat >>conftest.$ac_ext <<_ACEOF
3367
/* end confdefs.h. */
3372
gethostbyname_r((char *) 0, (struct hostent *) 0, (char *) 0, 0, (int *) 0);
3377
rm -f conftest.$ac_objext
3378
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3379
(eval $ac_compile) 2>&5
3381
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382
(exit $ac_status); } &&
3383
{ ac_try='test -s conftest.$ac_objext'
3384
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3387
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388
(exit $ac_status); }; }; then
3390
cat >>confdefs.h <<\_ACEOF
3391
#define PGS_REENTRANT_API_1 1
3395
echo "$as_me: failed program was:" >&5
3396
sed 's/^/| /' conftest.$ac_ext >&5
3399
cat >>confdefs.h <<\_ACEOF
3400
#define PGS_REENTRANT_API_2 1
3404
rm -f conftest.$ac_objext conftest.$ac_ext
3408
for ac_func in localtime_r strtok_r
3410
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3411
echo "$as_me:$LINENO: checking for $ac_func" >&5
3412
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3413
if eval "test \"\${$as_ac_var+set}\" = set"; then
3414
echo $ECHO_N "(cached) $ECHO_C" >&6
3416
cat >conftest.$ac_ext <<_ACEOF
3417
#line $LINENO "configure"
3420
cat confdefs.h >>conftest.$ac_ext
3421
cat >>conftest.$ac_ext <<_ACEOF
3422
/* end confdefs.h. */
3423
/* System header to define __stub macros and hopefully few prototypes,
3424
which can conflict with char $ac_func (); below.
3425
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3426
<limits.h> exists even on freestanding compilers. */
3428
# include <limits.h>
3430
# include <assert.h>
3432
/* Override any gcc2 internal prototype to avoid an error. */
3437
/* We use char because int might match the return type of a gcc2
3438
builtin and then its argument prototype would still apply. */
3440
/* The GNU C library defines this for functions which it implements
3441
to always fail with ENOSYS. Some functions are actually named
3442
something starting with __ and the normal name is an alias. */
3443
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3446
char (*f) () = $ac_func;
3455
return f != $ac_func;
3460
rm -f conftest.$ac_objext conftest$ac_exeext
3461
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3462
(eval $ac_link) 2>&5
3464
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3465
(exit $ac_status); } &&
3466
{ ac_try='test -s conftest$ac_exeext'
3467
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3470
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3471
(exit $ac_status); }; }; then
3472
eval "$as_ac_var=yes"
3474
echo "$as_me: failed program was:" >&5
3475
sed 's/^/| /' conftest.$ac_ext >&5
3477
eval "$as_ac_var=no"
3479
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3481
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3482
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3483
if test `eval echo '${'$as_ac_var'}'` = yes; then
3484
cat >>confdefs.h <<_ACEOF
3485
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3492
echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
3493
echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
3494
if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
3495
echo $ECHO_N "(cached) $ECHO_C" >&6
3497
ac_check_lib_save_LIBS=$LIBS
3498
LIBS="-lpthreads $LIBS"
3499
cat >conftest.$ac_ext <<_ACEOF
3500
#line $LINENO "configure"
3503
cat confdefs.h >>conftest.$ac_ext
3504
cat >>conftest.$ac_ext <<_ACEOF
3505
/* end confdefs.h. */
3507
/* Override any gcc2 internal prototype to avoid an error. */
3511
/* We use char because int might match the return type of a gcc2
3512
builtin and then its argument prototype would still apply. */
3513
char pthread_create ();
3522
rm -f conftest.$ac_objext conftest$ac_exeext
3523
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3524
(eval $ac_link) 2>&5
3526
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527
(exit $ac_status); } &&
3528
{ ac_try='test -s conftest$ac_exeext'
3529
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3532
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533
(exit $ac_status); }; }; then
3534
ac_cv_lib_pthreads_pthread_create=yes
3536
echo "$as_me: failed program was:" >&5
3537
sed 's/^/| /' conftest.$ac_ext >&5
3539
ac_cv_lib_pthreads_pthread_create=no
3541
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3542
LIBS=$ac_check_lib_save_LIBS
3544
echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
3545
echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
3546
if test $ac_cv_lib_pthreads_pthread_create = yes; then
3547
cat >>confdefs.h <<_ACEOF
3548
#define HAVE_LIBPTHREADS 1
3551
LIBS="-lpthreads $LIBS"
3555
echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
3556
echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
3557
if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
3558
echo $ECHO_N "(cached) $ECHO_C" >&6
3560
ac_check_lib_save_LIBS=$LIBS
3561
LIBS="-lpthread $LIBS"
3562
cat >conftest.$ac_ext <<_ACEOF
3563
#line $LINENO "configure"
3566
cat confdefs.h >>conftest.$ac_ext
3567
cat >>conftest.$ac_ext <<_ACEOF
3568
/* end confdefs.h. */
3570
/* Override any gcc2 internal prototype to avoid an error. */
3574
/* We use char because int might match the return type of a gcc2
3575
builtin and then its argument prototype would still apply. */
3576
char pthread_create ();
3585
rm -f conftest.$ac_objext conftest$ac_exeext
3586
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3587
(eval $ac_link) 2>&5
3589
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590
(exit $ac_status); } &&
3591
{ ac_try='test -s conftest$ac_exeext'
3592
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3595
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596
(exit $ac_status); }; }; then
3597
ac_cv_lib_pthread_pthread_create=yes
3599
echo "$as_me: failed program was:" >&5
3600
sed 's/^/| /' conftest.$ac_ext >&5
3602
ac_cv_lib_pthread_pthread_create=no
3604
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3605
LIBS=$ac_check_lib_save_LIBS
3607
echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
3608
echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
3609
if test $ac_cv_lib_pthread_pthread_create = yes; then
3610
cat >>confdefs.h <<_ACEOF
3611
#define HAVE_LIBPTHREAD 1
3614
LIBS="-lpthread $LIBS"
3626
{ { echo "$as_me:$LINENO: error: no argument expected for --enable-pthreads option" >&5
3627
echo "$as_me: error: no argument expected for --enable-pthreads option" >&2;}
3628
{ (exit 1); exit 1; }; }
3638
# Allow for overriding the default location of the odbcinst.ini
3639
# file which is normally ${sysconfdir} (i.e., ${prefix}/etc).
3643
# Check whether --with-odbcinst or --without-odbcinst was given.
3644
if test "${with_odbcinst+set}" = set; then
3645
withval="$with_odbcinst"
3649
{ { echo "$as_me:$LINENO: error: argument required for --with-odbcinst option" >&5
3650
echo "$as_me: error: argument required for --with-odbcinst option" >&2;}
3651
{ (exit 1); exit 1; }; }
3654
{ { echo "$as_me:$LINENO: error: argument required for --with-odbcinst option" >&5
3655
echo "$as_me: error: argument required for --with-odbcinst option" >&2;}
3656
{ (exit 1); exit 1; }; }
3659
odbcinst_ini_dir=$withval
3664
odbcinst_ini_dir="\${sysconfdir}"
3670
ac_cpp='$CPP $CPPFLAGS'
3671
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3672
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3673
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3674
if test -n "$ac_tool_prefix"; then
3675
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3676
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3677
echo "$as_me:$LINENO: checking for $ac_word" >&5
3678
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3679
if test "${ac_cv_prog_CC+set}" = set; then
3680
echo $ECHO_N "(cached) $ECHO_C" >&6
3682
if test -n "$CC"; then
3683
ac_cv_prog_CC="$CC" # Let the user override the test.
3685
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3689
test -z "$as_dir" && as_dir=.
3690
for ac_exec_ext in '' $ac_executable_extensions; do
3691
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3692
ac_cv_prog_CC="${ac_tool_prefix}gcc"
3693
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3702
if test -n "$CC"; then
3703
echo "$as_me:$LINENO: result: $CC" >&5
3704
echo "${ECHO_T}$CC" >&6
3706
echo "$as_me:$LINENO: result: no" >&5
3707
echo "${ECHO_T}no" >&6
3711
if test -z "$ac_cv_prog_CC"; then
3713
# Extract the first word of "gcc", so it can be a program name with args.
3714
set dummy gcc; ac_word=$2
3715
echo "$as_me:$LINENO: checking for $ac_word" >&5
3716
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3717
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3718
echo $ECHO_N "(cached) $ECHO_C" >&6
3720
if test -n "$ac_ct_CC"; then
3721
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3723
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3727
test -z "$as_dir" && as_dir=.
3728
for ac_exec_ext in '' $ac_executable_extensions; do
3729
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3730
ac_cv_prog_ac_ct_CC="gcc"
3731
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3739
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3740
if test -n "$ac_ct_CC"; then
3741
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3742
echo "${ECHO_T}$ac_ct_CC" >&6
3744
echo "$as_me:$LINENO: result: no" >&5
3745
echo "${ECHO_T}no" >&6
3753
if test -z "$CC"; then
3754
if test -n "$ac_tool_prefix"; then
3755
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3756
set dummy ${ac_tool_prefix}cc; ac_word=$2
3757
echo "$as_me:$LINENO: checking for $ac_word" >&5
3758
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3759
if test "${ac_cv_prog_CC+set}" = set; then
3760
echo $ECHO_N "(cached) $ECHO_C" >&6
3762
if test -n "$CC"; then
3763
ac_cv_prog_CC="$CC" # Let the user override the test.
3765
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3769
test -z "$as_dir" && as_dir=.
3770
for ac_exec_ext in '' $ac_executable_extensions; do
3771
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3772
ac_cv_prog_CC="${ac_tool_prefix}cc"
3773
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3782
if test -n "$CC"; then
3783
echo "$as_me:$LINENO: result: $CC" >&5
3784
echo "${ECHO_T}$CC" >&6
3786
echo "$as_me:$LINENO: result: no" >&5
3787
echo "${ECHO_T}no" >&6
3791
if test -z "$ac_cv_prog_CC"; then
3793
# Extract the first word of "cc", so it can be a program name with args.
3794
set dummy cc; ac_word=$2
3795
echo "$as_me:$LINENO: checking for $ac_word" >&5
3796
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3797
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3798
echo $ECHO_N "(cached) $ECHO_C" >&6
3800
if test -n "$ac_ct_CC"; then
3801
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3803
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3807
test -z "$as_dir" && as_dir=.
3808
for ac_exec_ext in '' $ac_executable_extensions; do
3809
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3810
ac_cv_prog_ac_ct_CC="cc"
3811
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3819
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3820
if test -n "$ac_ct_CC"; then
3821
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3822
echo "${ECHO_T}$ac_ct_CC" >&6
3824
echo "$as_me:$LINENO: result: no" >&5
3825
echo "${ECHO_T}no" >&6
3834
if test -z "$CC"; then
3835
# Extract the first word of "cc", so it can be a program name with args.
3836
set dummy cc; ac_word=$2
3837
echo "$as_me:$LINENO: checking for $ac_word" >&5
3838
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3839
if test "${ac_cv_prog_CC+set}" = set; then
3840
echo $ECHO_N "(cached) $ECHO_C" >&6
3842
if test -n "$CC"; then
3843
ac_cv_prog_CC="$CC" # Let the user override the test.
3846
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3850
test -z "$as_dir" && as_dir=.
3851
for ac_exec_ext in '' $ac_executable_extensions; do
3852
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3853
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3854
ac_prog_rejected=yes
3858
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3864
if test $ac_prog_rejected = yes; then
3865
# We found a bogon in the path, so make sure we never use it.
3866
set dummy $ac_cv_prog_CC
3868
if test $# != 0; then
3869
# We chose a different compiler from the bogus one.
3870
# However, it has the same basename, so the bogon will be chosen
3871
# first if we set CC to just the basename; use the full file name.
3873
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3879
if test -n "$CC"; then
3880
echo "$as_me:$LINENO: result: $CC" >&5
3881
echo "${ECHO_T}$CC" >&6
3883
echo "$as_me:$LINENO: result: no" >&5
3884
echo "${ECHO_T}no" >&6
3888
if test -z "$CC"; then
3889
if test -n "$ac_tool_prefix"; then
3892
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3893
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3894
echo "$as_me:$LINENO: checking for $ac_word" >&5
3895
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3896
if test "${ac_cv_prog_CC+set}" = set; then
3897
echo $ECHO_N "(cached) $ECHO_C" >&6
3899
if test -n "$CC"; then
3900
ac_cv_prog_CC="$CC" # Let the user override the test.
3902
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3906
test -z "$as_dir" && as_dir=.
3907
for ac_exec_ext in '' $ac_executable_extensions; do
3908
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3909
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3910
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3919
if test -n "$CC"; then
3920
echo "$as_me:$LINENO: result: $CC" >&5
3921
echo "${ECHO_T}$CC" >&6
3923
echo "$as_me:$LINENO: result: no" >&5
3924
echo "${ECHO_T}no" >&6
3927
test -n "$CC" && break
3930
if test -z "$CC"; then
3934
# Extract the first word of "$ac_prog", so it can be a program name with args.
3935
set dummy $ac_prog; ac_word=$2
3936
echo "$as_me:$LINENO: checking for $ac_word" >&5
3937
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3938
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3939
echo $ECHO_N "(cached) $ECHO_C" >&6
3941
if test -n "$ac_ct_CC"; then
3942
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3944
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3948
test -z "$as_dir" && as_dir=.
3949
for ac_exec_ext in '' $ac_executable_extensions; do
3950
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3951
ac_cv_prog_ac_ct_CC="$ac_prog"
3952
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3960
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3961
if test -n "$ac_ct_CC"; then
3962
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3963
echo "${ECHO_T}$ac_ct_CC" >&6
3965
echo "$as_me:$LINENO: result: no" >&5
3966
echo "${ECHO_T}no" >&6
3969
test -n "$ac_ct_CC" && break
3978
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3979
See \`config.log' for more details." >&5
3980
echo "$as_me: error: no acceptable C compiler found in \$PATH
3981
See \`config.log' for more details." >&2;}
3982
{ (exit 1); exit 1; }; }
3984
# Provide some information about the compiler.
3985
echo "$as_me:$LINENO:" \
3986
"checking for C compiler version" >&5
3987
ac_compiler=`set X $ac_compile; echo $2`
3988
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3989
(eval $ac_compiler --version </dev/null >&5) 2>&5
3991
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992
(exit $ac_status); }
3993
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3994
(eval $ac_compiler -v </dev/null >&5) 2>&5
3996
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3997
(exit $ac_status); }
3998
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3999
(eval $ac_compiler -V </dev/null >&5) 2>&5
4001
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4002
(exit $ac_status); }
4004
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4005
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4006
if test "${ac_cv_c_compiler_gnu+set}" = set; then
4007
echo $ECHO_N "(cached) $ECHO_C" >&6
4009
cat >conftest.$ac_ext <<_ACEOF
4010
#line $LINENO "configure"
4013
cat confdefs.h >>conftest.$ac_ext
4014
cat >>conftest.$ac_ext <<_ACEOF
4015
/* end confdefs.h. */
4028
rm -f conftest.$ac_objext
4029
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4030
(eval $ac_compile) 2>&5
4032
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4033
(exit $ac_status); } &&
4034
{ ac_try='test -s conftest.$ac_objext'
4035
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4038
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4039
(exit $ac_status); }; }; then
4042
echo "$as_me: failed program was:" >&5
4043
sed 's/^/| /' conftest.$ac_ext >&5
4047
rm -f conftest.$ac_objext conftest.$ac_ext
4048
ac_cv_c_compiler_gnu=$ac_compiler_gnu
4051
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4052
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4053
GCC=`test $ac_compiler_gnu = yes && echo yes`
4054
ac_test_CFLAGS=${CFLAGS+set}
4055
ac_save_CFLAGS=$CFLAGS
4057
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4058
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4059
if test "${ac_cv_prog_cc_g+set}" = set; then
4060
echo $ECHO_N "(cached) $ECHO_C" >&6
4062
cat >conftest.$ac_ext <<_ACEOF
4063
#line $LINENO "configure"
4066
cat confdefs.h >>conftest.$ac_ext
4067
cat >>conftest.$ac_ext <<_ACEOF
4068
/* end confdefs.h. */
4078
rm -f conftest.$ac_objext
4079
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4080
(eval $ac_compile) 2>&5
4082
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4083
(exit $ac_status); } &&
4084
{ ac_try='test -s conftest.$ac_objext'
4085
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4088
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4089
(exit $ac_status); }; }; then
4092
echo "$as_me: failed program was:" >&5
4093
sed 's/^/| /' conftest.$ac_ext >&5
4097
rm -f conftest.$ac_objext conftest.$ac_ext
4099
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4100
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4101
if test "$ac_test_CFLAGS" = set; then
4102
CFLAGS=$ac_save_CFLAGS
4103
elif test $ac_cv_prog_cc_g = yes; then
4104
if test "$GCC" = yes; then
4110
if test "$GCC" = yes; then
4116
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4117
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4118
if test "${ac_cv_prog_cc_stdc+set}" = set; then
4119
echo $ECHO_N "(cached) $ECHO_C" >&6
4121
ac_cv_prog_cc_stdc=no
4123
cat >conftest.$ac_ext <<_ACEOF
4124
#line $LINENO "configure"
4127
cat confdefs.h >>conftest.$ac_ext
4128
cat >>conftest.$ac_ext <<_ACEOF
4129
/* end confdefs.h. */
4132
#include <sys/types.h>
4133
#include <sys/stat.h>
4134
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4135
struct buf { int x; };
4136
FILE * (*rcsopen) (struct buf *, struct stat *, int);
4137
static char *e (p, i)
4143
static char *f (char * (*g) (char **, int), char **p, ...)
4148
s = g (p, va_arg (v,int));
4152
int test (int i, double x);
4153
struct s1 {int (*f) (int a);};
4154
struct s2 {int (*f) (double a);};
4155
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4161
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4166
# Don't try gcc -ansi; that turns off useful extensions and
4167
# breaks some systems' header files.
4168
# AIX -qlanglvl=ansi
4169
# Ultrix and OSF/1 -std1
4170
# HP-UX 10.20 and later -Ae
4171
# HP-UX older versions -Aa -D_HPUX_SOURCE
4172
# SVR4 -Xc -D__EXTENSIONS__
4173
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4175
CC="$ac_save_CC $ac_arg"
4176
rm -f conftest.$ac_objext
4177
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4178
(eval $ac_compile) 2>&5
4180
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181
(exit $ac_status); } &&
4182
{ ac_try='test -s conftest.$ac_objext'
4183
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4186
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4187
(exit $ac_status); }; }; then
4188
ac_cv_prog_cc_stdc=$ac_arg
4191
echo "$as_me: failed program was:" >&5
4192
sed 's/^/| /' conftest.$ac_ext >&5
4195
rm -f conftest.$ac_objext
4197
rm -f conftest.$ac_ext conftest.$ac_objext
4202
case "x$ac_cv_prog_cc_stdc" in
4204
echo "$as_me:$LINENO: result: none needed" >&5
4205
echo "${ECHO_T}none needed" >&6 ;;
4207
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4208
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4209
CC="$CC $ac_cv_prog_cc_stdc" ;;
4212
# Some people use a C++ compiler to compile C. Since we use `exit',
4213
# in C++ we need to declare it. In case someone uses the same compiler
4214
# for both compiling C and C++ we need to have the C++ compiler decide
4215
# the declaration of exit, since it's the most demanding environment.
4216
cat >conftest.$ac_ext <<_ACEOF
4221
rm -f conftest.$ac_objext
4222
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4223
(eval $ac_compile) 2>&5
4225
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4226
(exit $ac_status); } &&
4227
{ ac_try='test -s conftest.$ac_objext'
4228
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4231
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232
(exit $ac_status); }; }; then
4233
for ac_declaration in \
4235
'#include <stdlib.h>' \
4236
'extern "C" void std::exit (int) throw (); using std::exit;' \
4237
'extern "C" void std::exit (int); using std::exit;' \
4238
'extern "C" void exit (int) throw ();' \
4239
'extern "C" void exit (int);' \
4242
cat >conftest.$ac_ext <<_ACEOF
4243
#line $LINENO "configure"
4246
cat confdefs.h >>conftest.$ac_ext
4247
cat >>conftest.$ac_ext <<_ACEOF
4248
/* end confdefs.h. */
4259
rm -f conftest.$ac_objext
4260
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4261
(eval $ac_compile) 2>&5
4263
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4264
(exit $ac_status); } &&
4265
{ ac_try='test -s conftest.$ac_objext'
4266
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4269
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270
(exit $ac_status); }; }; then
4273
echo "$as_me: failed program was:" >&5
4274
sed 's/^/| /' conftest.$ac_ext >&5
4278
rm -f conftest.$ac_objext conftest.$ac_ext
4279
cat >conftest.$ac_ext <<_ACEOF
4280
#line $LINENO "configure"
4283
cat confdefs.h >>conftest.$ac_ext
4284
cat >>conftest.$ac_ext <<_ACEOF
4285
/* end confdefs.h. */
4295
rm -f conftest.$ac_objext
4296
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4297
(eval $ac_compile) 2>&5
4299
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4300
(exit $ac_status); } &&
4301
{ ac_try='test -s conftest.$ac_objext'
4302
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4305
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306
(exit $ac_status); }; }; then
4309
echo "$as_me: failed program was:" >&5
4310
sed 's/^/| /' conftest.$ac_ext >&5
4313
rm -f conftest.$ac_objext conftest.$ac_ext
4316
if test -n "$ac_declaration"; then
4317
echo '#ifdef __cplusplus' >>confdefs.h
4318
echo $ac_declaration >>confdefs.h
4319
echo '#endif' >>confdefs.h
4323
echo "$as_me: failed program was:" >&5
4324
sed 's/^/| /' conftest.$ac_ext >&5
4327
rm -f conftest.$ac_objext conftest.$ac_ext
4329
ac_cpp='$CPP $CPPFLAGS'
4330
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4331
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4332
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4334
depcc="$CC" am_compiler_list=
4336
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4337
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4338
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4339
echo $ECHO_N "(cached) $ECHO_C" >&6
4341
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4342
# We make a subdir and do the tests there. Otherwise we can end up
4343
# making bogus files that we don't know about and never remove. For
4344
# instance it was reported that on HP-UX the gcc test will end up
4345
# making a dummy file named `D' -- because `-MD' means `put the output
4348
# Copy depcomp to subdir because otherwise we won't find it if we're
4349
# using a relative directory.
4350
cp "$am_depcomp" conftest.dir
4353
am_cv_CC_dependencies_compiler_type=none
4354
if test "$am_compiler_list" = ""; then
4355
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4357
for depmode in $am_compiler_list; do
4358
# We need to recreate these files for each test, as the compiler may
4359
# overwrite some of them when testing with obscure command lines.
4360
# This happens at least with the AIX C compiler.
4361
echo '#include "conftest.h"' > conftest.c
4362
echo 'int i;' > conftest.h
4363
echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
4367
# after this tag, mechanisms are not by side-effect, so they'll
4368
# only be used when explicitly requested
4369
if test "x$enable_dependency_tracking" = xyes; then
4377
# We check with `-c' and `-o' for the sake of the "dashmstdout"
4378
# mode. It turns out that the SunPro C++ compiler does not properly
4379
# handle `-M -o', and we need to detect this.
4380
if depmode=$depmode \
4381
source=conftest.c object=conftest.o \
4382
depfile=conftest.Po tmpdepfile=conftest.TPo \
4383
$SHELL ./depcomp $depcc -c -o conftest.o conftest.c \
4384
>/dev/null 2>conftest.err &&
4385
grep conftest.h conftest.Po > /dev/null 2>&1 &&
4386
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4387
# icc doesn't choke on unknown options, it will just issue warnings
4388
# (even with -Werror). So we grep stderr for any message
4389
# that says an option was ignored.
4390
if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
4391
am_cv_CC_dependencies_compiler_type=$depmode
4400
am_cv_CC_dependencies_compiler_type=none
4404
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4405
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4406
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4411
test "x$enable_dependency_tracking" != xno \
4412
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4414
am__fastdepCC_FALSE='#'
4416
am__fastdepCC_TRUE='#'
4417
am__fastdepCC_FALSE=
4423
# Check whether --enable-static or --disable-static was given.
4424
if test "${enable_static+set}" = set; then
4425
enableval="$enable_static"
4426
p=${PACKAGE-default}
4428
yes) enable_static=yes ;;
4429
no) enable_static=no ;;
4432
# Look at the argument we got. We use all the common list separators.
4433
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4434
for pkg in $enableval; do
4435
if test "X$pkg" = "X$p"; then
4446
# Check whether --enable-shared or --disable-shared was given.
4447
if test "${enable_shared+set}" = set; then
4448
enableval="$enable_shared"
4449
p=${PACKAGE-default}
4451
yes) enable_shared=yes ;;
4452
no) enable_shared=no ;;
4455
# Look at the argument we got. We use all the common list separators.
4456
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4457
for pkg in $enableval; do
4458
if test "X$pkg" = "X$p"; then
4468
# Check whether --enable-fast-install or --disable-fast-install was given.
4469
if test "${enable_fast_install+set}" = set; then
4470
enableval="$enable_fast_install"
4471
p=${PACKAGE-default}
4473
yes) enable_fast_install=yes ;;
4474
no) enable_fast_install=no ;;
4476
enable_fast_install=no
4477
# Look at the argument we got. We use all the common list separators.
4478
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4479
for pkg in $enableval; do
4480
if test "X$pkg" = "X$p"; then
4481
enable_fast_install=yes
4488
enable_fast_install=yes
4490
# Make sure we can run config.sub.
4491
$ac_config_sub sun4 >/dev/null 2>&1 ||
4492
{ { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4493
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4494
{ (exit 1); exit 1; }; }
4496
echo "$as_me:$LINENO: checking build system type" >&5
4497
echo $ECHO_N "checking build system type... $ECHO_C" >&6
4498
if test "${ac_cv_build+set}" = set; then
4499
echo $ECHO_N "(cached) $ECHO_C" >&6
4501
ac_cv_build_alias=$build_alias
4502
test -z "$ac_cv_build_alias" &&
4503
ac_cv_build_alias=`$ac_config_guess`
4504
test -z "$ac_cv_build_alias" &&
4505
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4506
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4507
{ (exit 1); exit 1; }; }
4508
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4509
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4510
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4511
{ (exit 1); exit 1; }; }
4514
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4515
echo "${ECHO_T}$ac_cv_build" >&6
4517
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4518
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4519
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4522
echo "$as_me:$LINENO: checking host system type" >&5
4523
echo $ECHO_N "checking host system type... $ECHO_C" >&6
4524
if test "${ac_cv_host+set}" = set; then
4525
echo $ECHO_N "(cached) $ECHO_C" >&6
4527
ac_cv_host_alias=$host_alias
4528
test -z "$ac_cv_host_alias" &&
4529
ac_cv_host_alias=$ac_cv_build_alias
4530
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4531
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4532
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4533
{ (exit 1); exit 1; }; }
4536
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4537
echo "${ECHO_T}$ac_cv_host" >&6
4539
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4540
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4541
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4544
# Find the correct PATH separator. Usually this is `:', but
4545
# DJGPP uses `;' like DOS.
4546
if test "X${PATH_SEPARATOR+set}" != Xset; then
4547
UNAME=${UNAME-`uname 2>/dev/null`}
4549
*-DOS) lt_cv_sys_path_separator=';' ;;
4550
*) lt_cv_sys_path_separator=':' ;;
4552
PATH_SEPARATOR=$lt_cv_sys_path_separator
4556
# Check whether --with-gnu-ld or --without-gnu-ld was given.
4557
if test "${with_gnu_ld+set}" = set; then
4558
withval="$with_gnu_ld"
4559
test "$withval" = no || with_gnu_ld=yes
4564
if test "$GCC" = yes; then
4565
# Check if gcc -print-prog-name=ld gives a path.
4566
echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4567
echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4570
# gcc leaves a trailing carriage return which upsets mingw
4571
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4573
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4576
# Accept absolute paths.
4577
[\\/]* | [A-Za-z]:[\\/]*)
4578
re_direlt='/[^/][^/]*/\.\./'
4579
# Canonicalize the path of ld
4580
ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4581
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4582
ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4584
test -z "$LD" && LD="$ac_prog"
4587
# If it fails, then pretend we aren't using GCC.
4591
# If it is relative, then search for the first ld in PATH.
4595
elif test "$with_gnu_ld" = yes; then
4596
echo "$as_me:$LINENO: checking for GNU ld" >&5
4597
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4599
echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4600
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4602
if test "${lt_cv_path_LD+set}" = set; then
4603
echo $ECHO_N "(cached) $ECHO_C" >&6
4605
if test -z "$LD"; then
4606
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4607
for ac_dir in $PATH; do
4608
test -z "$ac_dir" && ac_dir=.
4609
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4610
lt_cv_path_LD="$ac_dir/$ac_prog"
4611
# Check to see if the program is GNU ld. I'd rather use --version,
4612
# but apparently some GNU ld's only accept -v.
4613
# Break only if it was the GNU/non-GNU ld that we prefer.
4614
if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4615
test "$with_gnu_ld" != no && break
4617
test "$with_gnu_ld" != yes && break
4623
lt_cv_path_LD="$LD" # Let the user override the test with a path.
4628
if test -n "$LD"; then
4629
echo "$as_me:$LINENO: result: $LD" >&5
4630
echo "${ECHO_T}$LD" >&6
4632
echo "$as_me:$LINENO: result: no" >&5
4633
echo "${ECHO_T}no" >&6
4635
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4636
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4637
{ (exit 1); exit 1; }; }
4638
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4639
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4640
if test "${lt_cv_prog_gnu_ld+set}" = set; then
4641
echo $ECHO_N "(cached) $ECHO_C" >&6
4643
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
4644
if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4645
lt_cv_prog_gnu_ld=yes
4647
lt_cv_prog_gnu_ld=no
4650
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4651
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4652
with_gnu_ld=$lt_cv_prog_gnu_ld
4655
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4656
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4657
if test "${lt_cv_ld_reload_flag+set}" = set; then
4658
echo $ECHO_N "(cached) $ECHO_C" >&6
4660
lt_cv_ld_reload_flag='-r'
4662
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4663
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4664
reload_flag=$lt_cv_ld_reload_flag
4665
test -n "$reload_flag" && reload_flag=" $reload_flag"
4667
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4668
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4669
if test "${lt_cv_path_NM+set}" = set; then
4670
echo $ECHO_N "(cached) $ECHO_C" >&6
4672
if test -n "$NM"; then
4673
# Let the user override the test.
4676
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4677
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4678
test -z "$ac_dir" && ac_dir=.
4679
tmp_nm=$ac_dir/${ac_tool_prefix}nm
4680
if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
4681
# Check to see if the nm accepts a BSD-compat flag.
4682
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4683
# nm: unknown option "B" ignored
4684
# Tru64's nm complains that /dev/null is an invalid object file
4685
if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
4686
lt_cv_path_NM="$tmp_nm -B"
4688
elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
4689
lt_cv_path_NM="$tmp_nm -p"
4692
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4693
continue # so that we can try to find one that supports BSD flags
4698
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4703
echo "$as_me:$LINENO: result: $NM" >&5
4704
echo "${ECHO_T}$NM" >&6
4706
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4707
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4708
if test "${lt_cv_path_SED+set}" = set; then
4709
echo $ECHO_N "(cached) $ECHO_C" >&6
4711
# Loop through the user's path and test for sed and gsed.
4712
# Then use that list of sed's as ones to test for truncation.
4713
as_executable_p="test -f"
4714
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4718
test -z "$as_dir" && as_dir=.
4719
for ac_prog in sed gsed; do
4720
for ac_exec_ext in '' $ac_executable_extensions; do
4721
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4722
_sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
4728
# Create a temporary directory, and hook for its removal unless debugging.
4731
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4732
trap '{ (exit 1); exit 1; }' 1 2 13 15
4735
# Create a (secure) tmp directory for tmp files.
4738
tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
4739
test -n "$tmp" && test -d "$tmp"
4742
tmp=$TMPDIR/sed$$-$RANDOM
4743
(umask 077 && mkdir $tmp)
4746
echo "$me: cannot create a temporary directory in $TMPDIR" >&2
4747
{ (exit 1); exit 1; }
4751
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4752
# along with /bin/sed that truncates output.
4753
for _sed in $_sed_list /usr/xpg4/bin/sed; do
4754
test ! -f ${_sed} && break
4755
cat /dev/null > "$tmp/sed.in"
4757
echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
4758
# Check for GNU sed and select it if it is found.
4759
if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
4760
lt_cv_path_SED=${_sed}
4764
cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
4765
mv "$tmp/sed.tmp" "$tmp/sed.in"
4766
cp "$tmp/sed.in" "$tmp/sed.nl"
4767
echo >>"$tmp/sed.nl"
4768
${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
4769
cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
4770
# 40000 chars as input seems more than enough
4771
test $_count -gt 10 && break
4772
_count=`expr $_count + 1`
4773
if test $_count -gt $_max; then
4775
lt_cv_path_SED=$_sed
4783
if test "X$SED" != "X"; then
4788
echo "$as_me:$LINENO: result: $SED" >&5
4789
echo "${ECHO_T}$SED" >&6
4791
echo "$as_me:$LINENO: checking whether ln -s works" >&5
4792
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4794
if test "$LN_S" = "ln -s"; then
4795
echo "$as_me:$LINENO: result: yes" >&5
4796
echo "${ECHO_T}yes" >&6
4798
echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4799
echo "${ECHO_T}no, using $LN_S" >&6
4802
echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4803
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4804
if test "${lt_cv_deplibs_check_method+set}" = set; then
4805
echo $ECHO_N "(cached) $ECHO_C" >&6
4807
lt_cv_file_magic_cmd='$MAGIC_CMD'
4808
lt_cv_file_magic_test_file=
4809
lt_cv_deplibs_check_method='unknown'
4810
# Need to set the preceding variable on all platforms that support
4811
# interlibrary dependencies.
4812
# 'none' -- dependencies not supported.
4813
# `unknown' -- same as none, but documents that we really don't know.
4814
# 'pass_all' -- all dependencies passed with no checks.
4815
# 'test_compile' -- check by making test program.
4816
# 'file_magic [[regex]]' -- check by looking for files in library path
4817
# which responds to the $file_magic_cmd with a given egrep regex.
4818
# If you have `file' or equivalent on your system and you're not sure
4819
# whether `pass_all' will *always* work, you probably want this one.
4823
lt_cv_deplibs_check_method=pass_all
4827
lt_cv_deplibs_check_method=pass_all
4831
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4832
lt_cv_file_magic_cmd='/usr/bin/file -L'
4833
lt_cv_file_magic_test_file=/shlib/libc.so
4836
cygwin* | mingw* | pw32*)
4837
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4838
lt_cv_file_magic_cmd='$OBJDUMP -f'
4841
darwin* | rhapsody*)
4842
lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4843
lt_cv_file_magic_cmd='/usr/bin/file -L'
4845
rhapsody* | darwin1.[012])
4846
lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
4849
lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4855
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4858
# Not sure whether the presence of OpenBSD here was a mistake.
4859
# Let's accept both of them until this is cleared up.
4860
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4861
lt_cv_file_magic_cmd=/usr/bin/file
4862
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4866
lt_cv_deplibs_check_method=pass_all
4871
lt_cv_deplibs_check_method=pass_all
4875
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4876
lt_cv_file_magic_cmd=/usr/bin/file
4877
lt_cv_file_magic_test_file=/usr/lib/libc.sl
4880
irix5* | irix6* | nonstopux*)
4882
irix5* | nonstopux*)
4883
# this will be overridden with pass_all, but let us keep it just in case
4884
lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4888
*-32|*"-32 ") libmagic=32-bit;;
4889
*-n32|*"-n32 ") libmagic=N32;;
4890
*-64|*"-64 ") libmagic=64-bit;;
4891
*) libmagic=never-match;;
4893
# this will be overridden with pass_all, but let us keep it just in case
4894
lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4897
lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4898
lt_cv_deplibs_check_method=pass_all
4901
# This must be Linux ELF.
4904
alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64*)
4905
lt_cv_deplibs_check_method=pass_all ;;
4907
# glibc up to 2.1.1 does not perform some relocations on ARM
4908
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4910
lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4914
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4915
lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
4917
lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
4922
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4923
lt_cv_file_magic_cmd=/usr/bin/file
4924
lt_cv_file_magic_test_file=/usr/lib/libnls.so
4928
lt_cv_file_magic_cmd=/usr/bin/file
4929
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4930
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4931
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4933
lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4937
osf3* | osf4* | osf5*)
4938
# this will be overridden with pass_all, but let us keep it just in case
4939
lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4940
lt_cv_file_magic_test_file=/shlib/libc.so
4941
lt_cv_deplibs_check_method=pass_all
4945
lt_cv_deplibs_check_method=pass_all
4949
lt_cv_deplibs_check_method=pass_all
4950
lt_cv_file_magic_test_file=/lib/libc.so
4953
sysv5uw[78]* | sysv4*uw2*)
4954
lt_cv_deplibs_check_method=pass_all
4957
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4958
case $host_vendor in
4960
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]'
4961
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4964
lt_cv_deplibs_check_method=pass_all
4967
lt_cv_file_magic_cmd='/bin/file'
4968
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4971
lt_cv_file_magic_cmd='/bin/file'
4972
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4973
lt_cv_file_magic_test_file=/lib/libc.so
4976
lt_cv_deplibs_check_method=pass_all
4983
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4984
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4985
file_magic_cmd=$lt_cv_file_magic_cmd
4986
deplibs_check_method=$lt_cv_deplibs_check_method
4994
# Check for command to grab the raw symbol name followed by C symbol from nm.
4995
echo "$as_me:$LINENO: checking command to parse $NM output" >&5
4996
echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
4997
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4998
echo $ECHO_N "(cached) $ECHO_C" >&6
5001
# These are sane defaults that work on at least a few old systems.
5002
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5004
# Character class describing NM global symbol codes.
5005
symcode='[BCDEGRST]'
5007
# Regexp to match symbols that can be accessed directly from C.
5008
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5010
# Transform the above into a raw symbol and a C symbol.
5011
symxfrm='\1 \2\3 \3'
5013
# Transform an extracted symbol line into a proper C declaration
5014
lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
5016
# Transform an extracted symbol line into symbol name and symbol address
5017
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'"
5019
# Define system-specific variables.
5024
cygwin* | mingw* | pw32*)
5025
symcode='[ABCDGISTW]'
5027
hpux*) # Its linker distinguishes data from code symbols
5028
lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5029
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'"
5032
symcode='[BCDEGRST]'
5035
symcode='[BCDEGQRST]'
5045
# Handle CRLF in mingw tool chain
5049
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5053
# If we're using GNU nm, then use its standard symbol codes.
5054
if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
5055
symcode='[ABCDGISTW]'
5058
# Try without a prefix undercore, then with it.
5059
for ac_symprfx in "" "_"; do
5061
# Write the raw and C identifiers.
5062
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5064
# Check to see that the pipe works correctly.
5067
cat > conftest.$ac_ext <<EOF
5072
void nm_test_func(){}
5076
int main(){nm_test_var='a';nm_test_func();return(0);}
5079
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5080
(eval $ac_compile) 2>&5
5082
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5083
(exit $ac_status); }; then
5084
# Now try to grab the symbols.
5086
if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5087
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5089
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5090
(exit $ac_status); } && test -s "$nlist"; then
5091
# Try sorting and uniquifying the output.
5092
if sort "$nlist" | uniq > "$nlist"T; then
5093
mv -f "$nlist"T "$nlist"
5098
# Make sure that we snagged all the symbols we need.
5099
if egrep ' nm_test_var$' "$nlist" >/dev/null; then
5100
if egrep ' nm_test_func$' "$nlist" >/dev/null; then
5101
cat <<EOF > conftest.$ac_ext
5107
# Now generate the symbol file.
5108
eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
5110
cat <<EOF >> conftest.$ac_ext
5111
#if defined (__STDC__) && __STDC__
5112
# define lt_ptr void *
5114
# define lt_ptr char *
5118
/* The mapping between symbol names and symbols. */
5123
lt_preloaded_symbols[] =
5126
sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
5127
cat <<\EOF >> conftest.$ac_ext
5135
# Now try linking the two files.
5136
mv conftest.$ac_objext conftstm.$ac_objext
5138
save_CFLAGS="$CFLAGS"
5139
LIBS="conftstm.$ac_objext"
5140
CFLAGS="$CFLAGS$no_builtin_flag"
5141
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5142
(eval $ac_link) 2>&5
5144
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5145
(exit $ac_status); } && test -s conftest$ac_exeext; then
5149
CFLAGS="$save_CFLAGS"
5151
echo "cannot find nm_test_func in $nlist" >&5
5154
echo "cannot find nm_test_var in $nlist" >&5
5157
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5160
echo "$progname: failed program was:" >&5
5161
cat conftest.$ac_ext >&5
5163
rm -f conftest* conftst*
5165
# Do not use the global_symbol_pipe unless it works.
5166
if test "$pipe_works" = yes; then
5169
lt_cv_sys_global_symbol_pipe=
5175
global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
5176
if test -z "$lt_cv_sys_global_symbol_pipe"; then
5177
global_symbol_to_cdecl=
5178
global_symbol_to_c_name_address=
5180
global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
5181
global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
5183
if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
5185
echo "$as_me:$LINENO: result: failed" >&5
5186
echo "${ECHO_T}failed" >&6
5188
echo "$as_me:$LINENO: result: ok" >&5
5189
echo "${ECHO_T}ok" >&6
5193
ac_cpp='$CPP $CPPFLAGS'
5194
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5195
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5196
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5197
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5198
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5199
# On Suns, sometimes $CPP names a directory.
5200
if test -n "$CPP" && test -d "$CPP"; then
5203
if test -z "$CPP"; then
5204
if test "${ac_cv_prog_CPP+set}" = set; then
5205
echo $ECHO_N "(cached) $ECHO_C" >&6
5207
# Double quotes because CPP needs to be expanded
5208
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5211
for ac_c_preproc_warn_flag in '' yes
5213
# Use a header file that comes with gcc, so configuring glibc
5214
# with a fresh cross-compiler works.
5215
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5216
# <limits.h> exists even on freestanding compilers.
5217
# On the NeXT, cc -E runs the code through the compiler's parser,
5218
# not just through cpp. "Syntax error" is here to catch this case.
5219
cat >conftest.$ac_ext <<_ACEOF
5220
#line $LINENO "configure"
5223
cat confdefs.h >>conftest.$ac_ext
5224
cat >>conftest.$ac_ext <<_ACEOF
5225
/* end confdefs.h. */
5227
# include <limits.h>
5229
# include <assert.h>
5233
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5234
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5236
grep -v '^ *+' conftest.er1 >conftest.err
5238
cat conftest.err >&5
5239
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240
(exit $ac_status); } >/dev/null; then
5241
if test -s conftest.err; then
5242
ac_cpp_err=$ac_c_preproc_warn_flag
5249
if test -z "$ac_cpp_err"; then
5252
echo "$as_me: failed program was:" >&5
5253
sed 's/^/| /' conftest.$ac_ext >&5
5255
# Broken: fails on valid input.
5258
rm -f conftest.err conftest.$ac_ext
5260
# OK, works on sane cases. Now check whether non-existent headers
5261
# can be detected and how.
5262
cat >conftest.$ac_ext <<_ACEOF
5263
#line $LINENO "configure"
5266
cat confdefs.h >>conftest.$ac_ext
5267
cat >>conftest.$ac_ext <<_ACEOF
5268
/* end confdefs.h. */
5269
#include <ac_nonexistent.h>
5271
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5272
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5274
grep -v '^ *+' conftest.er1 >conftest.err
5276
cat conftest.err >&5
5277
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5278
(exit $ac_status); } >/dev/null; then
5279
if test -s conftest.err; then
5280
ac_cpp_err=$ac_c_preproc_warn_flag
5287
if test -z "$ac_cpp_err"; then
5288
# Broken: success on invalid input.
5291
echo "$as_me: failed program was:" >&5
5292
sed 's/^/| /' conftest.$ac_ext >&5
5294
# Passes both tests.
5298
rm -f conftest.err conftest.$ac_ext
5301
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5302
rm -f conftest.err conftest.$ac_ext
5303
if $ac_preproc_ok; then
5315
echo "$as_me:$LINENO: result: $CPP" >&5
5316
echo "${ECHO_T}$CPP" >&6
5318
for ac_c_preproc_warn_flag in '' yes
5320
# Use a header file that comes with gcc, so configuring glibc
5321
# with a fresh cross-compiler works.
5322
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5323
# <limits.h> exists even on freestanding compilers.
5324
# On the NeXT, cc -E runs the code through the compiler's parser,
5325
# not just through cpp. "Syntax error" is here to catch this case.
5326
cat >conftest.$ac_ext <<_ACEOF
5327
#line $LINENO "configure"
5330
cat confdefs.h >>conftest.$ac_ext
5331
cat >>conftest.$ac_ext <<_ACEOF
5332
/* end confdefs.h. */
5334
# include <limits.h>
5336
# include <assert.h>
5340
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5341
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5343
grep -v '^ *+' conftest.er1 >conftest.err
5345
cat conftest.err >&5
5346
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347
(exit $ac_status); } >/dev/null; then
5348
if test -s conftest.err; then
5349
ac_cpp_err=$ac_c_preproc_warn_flag
5356
if test -z "$ac_cpp_err"; then
5359
echo "$as_me: failed program was:" >&5
5360
sed 's/^/| /' conftest.$ac_ext >&5
5362
# Broken: fails on valid input.
5365
rm -f conftest.err conftest.$ac_ext
5367
# OK, works on sane cases. Now check whether non-existent headers
5368
# can be detected and how.
5369
cat >conftest.$ac_ext <<_ACEOF
5370
#line $LINENO "configure"
5373
cat confdefs.h >>conftest.$ac_ext
5374
cat >>conftest.$ac_ext <<_ACEOF
5375
/* end confdefs.h. */
5376
#include <ac_nonexistent.h>
5378
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5379
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5381
grep -v '^ *+' conftest.er1 >conftest.err
5383
cat conftest.err >&5
5384
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5385
(exit $ac_status); } >/dev/null; then
5386
if test -s conftest.err; then
5387
ac_cpp_err=$ac_c_preproc_warn_flag
5394
if test -z "$ac_cpp_err"; then
5395
# Broken: success on invalid input.
5398
echo "$as_me: failed program was:" >&5
5399
sed 's/^/| /' conftest.$ac_ext >&5
5401
# Passes both tests.
5405
rm -f conftest.err conftest.$ac_ext
5408
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5409
rm -f conftest.err conftest.$ac_ext
5410
if $ac_preproc_ok; then
5413
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5414
See \`config.log' for more details." >&5
5415
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5416
See \`config.log' for more details." >&2;}
5417
{ (exit 1); exit 1; }; }
5421
ac_cpp='$CPP $CPPFLAGS'
5422
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5423
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5424
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5427
echo "$as_me:$LINENO: checking for egrep" >&5
5428
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5429
if test "${ac_cv_prog_egrep+set}" = set; then
5430
echo $ECHO_N "(cached) $ECHO_C" >&6
5432
if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5433
then ac_cv_prog_egrep='grep -E'
5434
else ac_cv_prog_egrep='egrep'
5437
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5438
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5439
EGREP=$ac_cv_prog_egrep
5442
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5443
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5444
if test "${ac_cv_header_stdc+set}" = set; then
5445
echo $ECHO_N "(cached) $ECHO_C" >&6
5447
cat >conftest.$ac_ext <<_ACEOF
5448
#line $LINENO "configure"
5451
cat confdefs.h >>conftest.$ac_ext
5452
cat >>conftest.$ac_ext <<_ACEOF
5453
/* end confdefs.h. */
5467
rm -f conftest.$ac_objext
5468
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5469
(eval $ac_compile) 2>&5
5471
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5472
(exit $ac_status); } &&
5473
{ ac_try='test -s conftest.$ac_objext'
5474
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5477
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5478
(exit $ac_status); }; }; then
5479
ac_cv_header_stdc=yes
5481
echo "$as_me: failed program was:" >&5
5482
sed 's/^/| /' conftest.$ac_ext >&5
5484
ac_cv_header_stdc=no
5486
rm -f conftest.$ac_objext conftest.$ac_ext
5488
if test $ac_cv_header_stdc = yes; then
5489
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5490
cat >conftest.$ac_ext <<_ACEOF
5491
#line $LINENO "configure"
5494
cat confdefs.h >>conftest.$ac_ext
5495
cat >>conftest.$ac_ext <<_ACEOF
5496
/* end confdefs.h. */
5500
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5501
$EGREP "memchr" >/dev/null 2>&1; then
5504
ac_cv_header_stdc=no
5510
if test $ac_cv_header_stdc = yes; then
5511
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5512
cat >conftest.$ac_ext <<_ACEOF
5513
#line $LINENO "configure"
5516
cat confdefs.h >>conftest.$ac_ext
5517
cat >>conftest.$ac_ext <<_ACEOF
5518
/* end confdefs.h. */
5522
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5523
$EGREP "free" >/dev/null 2>&1; then
5526
ac_cv_header_stdc=no
5532
if test $ac_cv_header_stdc = yes; then
5533
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5534
if test "$cross_compiling" = yes; then
5537
cat >conftest.$ac_ext <<_ACEOF
5538
#line $LINENO "configure"
5541
cat confdefs.h >>conftest.$ac_ext
5542
cat >>conftest.$ac_ext <<_ACEOF
5543
/* end confdefs.h. */
5545
#if ((' ' & 0x0FF) == 0x020)
5546
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5547
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5549
# define ISLOWER(c) \
5550
(('a' <= (c) && (c) <= 'i') \
5551
|| ('j' <= (c) && (c) <= 'r') \
5552
|| ('s' <= (c) && (c) <= 'z'))
5553
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5556
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5561
for (i = 0; i < 256; i++)
5562
if (XOR (islower (i), ISLOWER (i))
5563
|| toupper (i) != TOUPPER (i))
5568
rm -f conftest$ac_exeext
5569
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5570
(eval $ac_link) 2>&5
5572
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5573
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5574
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5577
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5578
(exit $ac_status); }; }; then
5581
echo "$as_me: program exited with status $ac_status" >&5
5582
echo "$as_me: failed program was:" >&5
5583
sed 's/^/| /' conftest.$ac_ext >&5
5586
ac_cv_header_stdc=no
5588
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5592
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5593
echo "${ECHO_T}$ac_cv_header_stdc" >&6
5594
if test $ac_cv_header_stdc = yes; then
5596
cat >>confdefs.h <<\_ACEOF
5597
#define STDC_HEADERS 1
5602
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5612
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5613
inttypes.h stdint.h unistd.h
5615
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5616
echo "$as_me:$LINENO: checking for $ac_header" >&5
5617
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5618
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5619
echo $ECHO_N "(cached) $ECHO_C" >&6
5621
cat >conftest.$ac_ext <<_ACEOF
5622
#line $LINENO "configure"
5625
cat confdefs.h >>conftest.$ac_ext
5626
cat >>conftest.$ac_ext <<_ACEOF
5627
/* end confdefs.h. */
5628
$ac_includes_default
5630
#include <$ac_header>
5632
rm -f conftest.$ac_objext
5633
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5634
(eval $ac_compile) 2>&5
5636
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5637
(exit $ac_status); } &&
5638
{ ac_try='test -s conftest.$ac_objext'
5639
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5642
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5643
(exit $ac_status); }; }; then
5644
eval "$as_ac_Header=yes"
5646
echo "$as_me: failed program was:" >&5
5647
sed 's/^/| /' conftest.$ac_ext >&5
5649
eval "$as_ac_Header=no"
5651
rm -f conftest.$ac_objext conftest.$ac_ext
5653
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5654
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5655
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5656
cat >>confdefs.h <<_ACEOF
5657
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5666
for ac_header in dlfcn.h
5668
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5669
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5670
echo "$as_me:$LINENO: checking for $ac_header" >&5
5671
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5672
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5673
echo $ECHO_N "(cached) $ECHO_C" >&6
5675
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5676
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5678
# Is the header compilable?
5679
echo "$as_me:$LINENO: checking $ac_header usability" >&5
5680
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5681
cat >conftest.$ac_ext <<_ACEOF
5682
#line $LINENO "configure"
5685
cat confdefs.h >>conftest.$ac_ext
5686
cat >>conftest.$ac_ext <<_ACEOF
5687
/* end confdefs.h. */
5688
$ac_includes_default
5689
#include <$ac_header>
5691
rm -f conftest.$ac_objext
5692
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5693
(eval $ac_compile) 2>&5
5695
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696
(exit $ac_status); } &&
5697
{ ac_try='test -s conftest.$ac_objext'
5698
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5701
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5702
(exit $ac_status); }; }; then
5703
ac_header_compiler=yes
5705
echo "$as_me: failed program was:" >&5
5706
sed 's/^/| /' conftest.$ac_ext >&5
5708
ac_header_compiler=no
5710
rm -f conftest.$ac_objext conftest.$ac_ext
5711
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5712
echo "${ECHO_T}$ac_header_compiler" >&6
5714
# Is the header present?
5715
echo "$as_me:$LINENO: checking $ac_header presence" >&5
5716
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5717
cat >conftest.$ac_ext <<_ACEOF
5718
#line $LINENO "configure"
5721
cat confdefs.h >>conftest.$ac_ext
5722
cat >>conftest.$ac_ext <<_ACEOF
5723
/* end confdefs.h. */
5724
#include <$ac_header>
5726
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5727
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5729
grep -v '^ *+' conftest.er1 >conftest.err
5731
cat conftest.err >&5
5732
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733
(exit $ac_status); } >/dev/null; then
5734
if test -s conftest.err; then
5735
ac_cpp_err=$ac_c_preproc_warn_flag
5742
if test -z "$ac_cpp_err"; then
5743
ac_header_preproc=yes
5745
echo "$as_me: failed program was:" >&5
5746
sed 's/^/| /' conftest.$ac_ext >&5
5748
ac_header_preproc=no
5750
rm -f conftest.err conftest.$ac_ext
5751
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5752
echo "${ECHO_T}$ac_header_preproc" >&6
5754
# So? What about this header?
5755
case $ac_header_compiler:$ac_header_preproc in
5757
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5758
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5759
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5760
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5763
## ------------------------------------ ##
5764
## Report this to bug-autoconf@gnu.org. ##
5765
## ------------------------------------ ##
5768
sed "s/^/$as_me: WARNING: /" >&2
5771
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5772
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5773
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5774
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5775
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5776
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5779
## ------------------------------------ ##
5780
## Report this to bug-autoconf@gnu.org. ##
5781
## ------------------------------------ ##
5784
sed "s/^/$as_me: WARNING: /" >&2
5787
echo "$as_me:$LINENO: checking for $ac_header" >&5
5788
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5789
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5790
echo $ECHO_N "(cached) $ECHO_C" >&6
5792
eval "$as_ac_Header=$ac_header_preproc"
5794
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5795
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5798
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5799
cat >>confdefs.h <<_ACEOF
5800
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5812
# Only perform the check for file, if the check method requires it
5813
case $deplibs_check_method in
5815
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5816
echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5817
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5818
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5819
echo $ECHO_N "(cached) $ECHO_C" >&6
5823
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5826
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5829
ac_save_MAGIC_CMD="$MAGIC_CMD"
5830
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5831
ac_dummy="/usr/bin:$PATH"
5832
for ac_dir in $ac_dummy; do
5833
test -z "$ac_dir" && ac_dir=.
5834
if test -f $ac_dir/${ac_tool_prefix}file; then
5835
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5836
if test -n "$file_magic_test_file"; then
5837
case $deplibs_check_method in
5839
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5840
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5841
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5842
egrep "$file_magic_regex" > /dev/null; then
5847
*** Warning: the command libtool uses to detect shared libraries,
5848
*** $file_magic_cmd, produces output that libtool cannot recognize.
5849
*** The result is that libtool may fail to recognize shared libraries
5850
*** as such. This will affect the creation of libtool libraries that
5851
*** depend on shared libraries, but programs linked with such libtool
5852
*** libraries will work regardless of this problem. Nevertheless, you
5853
*** may want to report the problem to your system manager and/or to
5854
*** bug-libtool@gnu.org
5864
MAGIC_CMD="$ac_save_MAGIC_CMD"
5869
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5870
if test -n "$MAGIC_CMD"; then
5871
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5872
echo "${ECHO_T}$MAGIC_CMD" >&6
5874
echo "$as_me:$LINENO: result: no" >&5
5875
echo "${ECHO_T}no" >&6
5878
if test -z "$lt_cv_path_MAGIC_CMD"; then
5879
if test -n "$ac_tool_prefix"; then
5880
echo "$as_me:$LINENO: checking for file" >&5
5881
echo $ECHO_N "checking for file... $ECHO_C" >&6
5882
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5883
echo $ECHO_N "(cached) $ECHO_C" >&6
5887
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5890
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5893
ac_save_MAGIC_CMD="$MAGIC_CMD"
5894
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5895
ac_dummy="/usr/bin:$PATH"
5896
for ac_dir in $ac_dummy; do
5897
test -z "$ac_dir" && ac_dir=.
5898
if test -f $ac_dir/file; then
5899
lt_cv_path_MAGIC_CMD="$ac_dir/file"
5900
if test -n "$file_magic_test_file"; then
5901
case $deplibs_check_method in
5903
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5904
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5905
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5906
egrep "$file_magic_regex" > /dev/null; then
5911
*** Warning: the command libtool uses to detect shared libraries,
5912
*** $file_magic_cmd, produces output that libtool cannot recognize.
5913
*** The result is that libtool may fail to recognize shared libraries
5914
*** as such. This will affect the creation of libtool libraries that
5915
*** depend on shared libraries, but programs linked with such libtool
5916
*** libraries will work regardless of this problem. Nevertheless, you
5917
*** may want to report the problem to your system manager and/or to
5918
*** bug-libtool@gnu.org
5928
MAGIC_CMD="$ac_save_MAGIC_CMD"
5933
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5934
if test -n "$MAGIC_CMD"; then
5935
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5936
echo "${ECHO_T}$MAGIC_CMD" >&6
5938
echo "$as_me:$LINENO: result: no" >&5
5939
echo "${ECHO_T}no" >&6
5951
if test -n "$ac_tool_prefix"; then
5952
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5953
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5954
echo "$as_me:$LINENO: checking for $ac_word" >&5
5955
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5956
if test "${ac_cv_prog_RANLIB+set}" = set; then
5957
echo $ECHO_N "(cached) $ECHO_C" >&6
5959
if test -n "$RANLIB"; then
5960
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5962
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5966
test -z "$as_dir" && as_dir=.
5967
for ac_exec_ext in '' $ac_executable_extensions; do
5968
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5969
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5970
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5978
RANLIB=$ac_cv_prog_RANLIB
5979
if test -n "$RANLIB"; then
5980
echo "$as_me:$LINENO: result: $RANLIB" >&5
5981
echo "${ECHO_T}$RANLIB" >&6
5983
echo "$as_me:$LINENO: result: no" >&5
5984
echo "${ECHO_T}no" >&6
5988
if test -z "$ac_cv_prog_RANLIB"; then
5989
ac_ct_RANLIB=$RANLIB
5990
# Extract the first word of "ranlib", so it can be a program name with args.
5991
set dummy ranlib; ac_word=$2
5992
echo "$as_me:$LINENO: checking for $ac_word" >&5
5993
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5994
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5995
echo $ECHO_N "(cached) $ECHO_C" >&6
5997
if test -n "$ac_ct_RANLIB"; then
5998
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6000
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6004
test -z "$as_dir" && as_dir=.
6005
for ac_exec_ext in '' $ac_executable_extensions; do
6006
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6007
ac_cv_prog_ac_ct_RANLIB="ranlib"
6008
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6014
test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6017
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6018
if test -n "$ac_ct_RANLIB"; then
6019
echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6020
echo "${ECHO_T}$ac_ct_RANLIB" >&6
6022
echo "$as_me:$LINENO: result: no" >&5
6023
echo "${ECHO_T}no" >&6
6026
RANLIB=$ac_ct_RANLIB
6028
RANLIB="$ac_cv_prog_RANLIB"
6031
if test -n "$ac_tool_prefix"; then
6032
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6033
set dummy ${ac_tool_prefix}strip; ac_word=$2
6034
echo "$as_me:$LINENO: checking for $ac_word" >&5
6035
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6036
if test "${ac_cv_prog_STRIP+set}" = set; then
6037
echo $ECHO_N "(cached) $ECHO_C" >&6
6039
if test -n "$STRIP"; then
6040
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6042
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6046
test -z "$as_dir" && as_dir=.
6047
for ac_exec_ext in '' $ac_executable_extensions; do
6048
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6049
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6050
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6058
STRIP=$ac_cv_prog_STRIP
6059
if test -n "$STRIP"; then
6060
echo "$as_me:$LINENO: result: $STRIP" >&5
6061
echo "${ECHO_T}$STRIP" >&6
6063
echo "$as_me:$LINENO: result: no" >&5
6064
echo "${ECHO_T}no" >&6
6068
if test -z "$ac_cv_prog_STRIP"; then
6070
# Extract the first word of "strip", so it can be a program name with args.
6071
set dummy strip; ac_word=$2
6072
echo "$as_me:$LINENO: checking for $ac_word" >&5
6073
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6074
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6075
echo $ECHO_N "(cached) $ECHO_C" >&6
6077
if test -n "$ac_ct_STRIP"; then
6078
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6080
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6084
test -z "$as_dir" && as_dir=.
6085
for ac_exec_ext in '' $ac_executable_extensions; do
6086
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6087
ac_cv_prog_ac_ct_STRIP="strip"
6088
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6094
test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6097
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6098
if test -n "$ac_ct_STRIP"; then
6099
echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6100
echo "${ECHO_T}$ac_ct_STRIP" >&6
6102
echo "$as_me:$LINENO: result: no" >&5
6103
echo "${ECHO_T}no" >&6
6108
STRIP="$ac_cv_prog_STRIP"
6115
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6116
if test "${enable_libtool_lock+set}" = set; then
6117
enableval="$enable_libtool_lock"
6120
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6122
# Some flags need to be propagated to the compiler or linker for good
6126
# Find out which ABI we are using.
6127
echo '#line 6127 "configure"' > conftest.$ac_ext
6128
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6129
(eval $ac_compile) 2>&5
6131
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132
(exit $ac_status); }; then
6133
case `/usr/bin/file conftest.$ac_objext` in
6149
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
6150
SAVE_CFLAGS="$CFLAGS"
6151
CFLAGS="$CFLAGS -belf"
6152
echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6153
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6154
if test "${lt_cv_cc_needs_belf+set}" = set; then
6155
echo $ECHO_N "(cached) $ECHO_C" >&6
6160
ac_cpp='$CPP $CPPFLAGS'
6161
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6162
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6163
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6165
cat >conftest.$ac_ext <<_ACEOF
6166
#line $LINENO "configure"
6169
cat confdefs.h >>conftest.$ac_ext
6170
cat >>conftest.$ac_ext <<_ACEOF
6171
/* end confdefs.h. */
6181
rm -f conftest.$ac_objext conftest$ac_exeext
6182
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6183
(eval $ac_link) 2>&5
6185
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186
(exit $ac_status); } &&
6187
{ ac_try='test -s conftest$ac_exeext'
6188
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6191
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6192
(exit $ac_status); }; }; then
6193
lt_cv_cc_needs_belf=yes
6195
echo "$as_me: failed program was:" >&5
6196
sed 's/^/| /' conftest.$ac_ext >&5
6198
lt_cv_cc_needs_belf=no
6200
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6202
ac_cpp='$CPP $CPPFLAGS'
6203
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6204
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6205
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6208
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6209
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6210
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6211
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6212
CFLAGS="$SAVE_CFLAGS"
6219
# Sed substitution that helps us do robust quoting. It backslashifies
6220
# metacharacters that are still active within double-quoted strings.
6221
Xsed='sed -e s/^X//'
6222
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6224
# Same as above, but do not quote variable references.
6225
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6227
# Sed substitution to delay expansion of an escaped shell variable in a
6228
# double_quote_subst'ed string.
6229
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6235
default_ofile=libtool
6236
can_build_shared=yes
6238
# All known linkers require a `.a' archive for static linking (except M$VC,
6239
# which needs '.lib').
6241
ltmain="$ac_aux_dir/ltmain.sh"
6242
ofile="$default_ofile"
6243
with_gnu_ld="$lt_cv_prog_gnu_ld"
6244
need_locks="$enable_libtool_lock"
6247
old_CFLAGS="$CFLAGS"
6249
# Set sane defaults for various variables
6250
test -z "$AR" && AR=ar
6251
test -z "$AR_FLAGS" && AR_FLAGS=cru
6252
test -z "$AS" && AS=as
6253
test -z "$CC" && CC=cc
6254
test -z "$DLLTOOL" && DLLTOOL=dlltool
6255
test -z "$LD" && LD=ld
6256
test -z "$LN_S" && LN_S="ln -s"
6257
test -z "$MAGIC_CMD" && MAGIC_CMD=file
6258
test -z "$NM" && NM=nm
6259
test -z "$OBJDUMP" && OBJDUMP=objdump
6260
test -z "$RANLIB" && RANLIB=:
6261
test -z "$STRIP" && STRIP=:
6262
test -z "$ac_objext" && ac_objext=o
6264
if test x"$host" != x"$build"; then
6265
ac_tool_prefix=${host_alias}-
6270
# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
6273
linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
6278
# AIX sometimes has problems with the GCC collect2 program. For some
6279
# reason, if we set the COLLECT_NAMES environment variable, the problems
6280
# vanish in a puff of smoke.
6281
if test "X${COLLECT_NAMES+set}" != Xset; then
6283
export COLLECT_NAMES
6288
# Determine commands to create old-style static archives.
6289
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6290
old_postinstall_cmds='chmod 644 $oldlib'
6291
old_postuninstall_cmds=
6293
if test -n "$RANLIB"; then
6296
old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6299
old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6302
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6305
# Allow CC to be a program name with arguments.
6309
echo "$as_me:$LINENO: checking for objdir" >&5
6310
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6311
rm -f .libs 2>/dev/null
6312
mkdir .libs 2>/dev/null
6313
if test -d .libs; then
6316
# MS-DOS does not allow filenames that begin with a dot.
6319
rmdir .libs 2>/dev/null
6320
echo "$as_me:$LINENO: result: $objdir" >&5
6321
echo "${ECHO_T}$objdir" >&6
6325
# Check whether --with-pic or --without-pic was given.
6326
if test "${with_pic+set}" = set; then
6332
test -z "$pic_mode" && pic_mode=default
6334
# We assume here that the value for lt_cv_prog_cc_pic will not be cached
6335
# in isolation, and that seeing it set (from the cache) indicates that
6336
# the associated values are set (in the cache) correctly too.
6337
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6338
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6339
if test "${lt_cv_prog_cc_pic+set}" = set; then
6340
echo $ECHO_N "(cached) $ECHO_C" >&6
6343
lt_cv_prog_cc_shlib=
6345
lt_cv_prog_cc_static=
6346
lt_cv_prog_cc_no_builtin=
6347
lt_cv_prog_cc_can_build_shared=$can_build_shared
6349
if test "$GCC" = yes; then
6350
lt_cv_prog_cc_wl='-Wl,'
6351
lt_cv_prog_cc_static='-static'
6355
# Below there is a dirty hack to force normal static linking with -ldl
6356
# The problem is because libdl dynamically linked with both libc and
6357
# libC (AIX C++ library), which obviously doesn't included in libraries
6358
# list by gcc. This cause undefined symbols with -static flags.
6359
# This hack allows C programs to be linked with "-static -ldl", but
6360
# not sure about C++ programs.
6361
lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
6364
# FIXME: we need at least 68020 code to build shared libraries, but
6365
# adding the `-m68020' flag to GCC prevents building anything better,
6367
lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
6369
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6370
# PIC is the default for these OSes.
6372
darwin* | rhapsody*)
6373
# PIC is the default on this platform
6374
# Common symbols not allowed in MH_DYLIB files
6375
lt_cv_prog_cc_pic='-fno-common'
6377
cygwin* | mingw* | pw32* | os2*)
6378
# This hack is so that the source file can tell whether it is being
6379
# built for inclusion in a dll (and should export symbols for example).
6380
lt_cv_prog_cc_pic='-DDLL_EXPORT'
6383
if test -d /usr/nec; then
6384
lt_cv_prog_cc_pic=-Kconform_pic
6388
lt_cv_prog_cc_pic='-fPIC'
6392
# PORTME Check for PIC flags for the system compiler.
6394
aix3* | aix4* | aix5*)
6395
lt_cv_prog_cc_wl='-Wl,'
6396
# All AIX code is PIC.
6397
if test "$host_cpu" = ia64; then
6398
# AIX 5 now supports IA64 processor
6399
lt_cv_prog_cc_static='-Bstatic'
6401
lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
6405
hpux9* | hpux10* | hpux11*)
6406
# Is there a better lt_cv_prog_cc_static that works with the bundled CC?
6407
lt_cv_prog_cc_wl='-Wl,'
6408
lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
6409
lt_cv_prog_cc_pic='+Z'
6412
irix5* | irix6* | nonstopux*)
6413
lt_cv_prog_cc_wl='-Wl,'
6414
lt_cv_prog_cc_static='-non_shared'
6415
# PIC (with -KPIC) is the default.
6418
cygwin* | mingw* | pw32* | os2*)
6419
# This hack is so that the source file can tell whether it is being
6420
# built for inclusion in a dll (and should export symbols for example).
6421
lt_cv_prog_cc_pic='-DDLL_EXPORT'
6425
lt_cv_prog_cc_pic='-KPIC'
6426
lt_cv_prog_cc_static='-Bstatic'
6429
osf3* | osf4* | osf5*)
6430
# All OSF/1 code is PIC.
6431
lt_cv_prog_cc_wl='-Wl,'
6432
lt_cv_prog_cc_static='-non_shared'
6436
lt_cv_prog_cc_pic='-Kpic'
6437
lt_cv_prog_cc_static='-dn'
6438
lt_cv_prog_cc_shlib='-belf'
6442
lt_cv_prog_cc_pic='-KPIC'
6443
lt_cv_prog_cc_static='-Bstatic'
6444
lt_cv_prog_cc_wl='-Wl,'
6448
lt_cv_prog_cc_pic='-PIC'
6449
lt_cv_prog_cc_static='-Bstatic'
6450
lt_cv_prog_cc_wl='-Qoption ld '
6453
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6454
lt_cv_prog_cc_pic='-KPIC'
6455
lt_cv_prog_cc_static='-Bstatic'
6456
lt_cv_prog_cc_wl='-Wl,'
6460
lt_cv_prog_cc_pic='-pic'
6461
lt_cv_prog_cc_static='-Bstatic'
6465
if test -d /usr/nec ;then
6466
lt_cv_prog_cc_pic='-Kconform_pic'
6467
lt_cv_prog_cc_static='-Bstatic'
6472
lt_cv_prog_cc_can_build_shared=no
6479
if test -z "$lt_cv_prog_cc_pic"; then
6480
echo "$as_me:$LINENO: result: none" >&5
6481
echo "${ECHO_T}none" >&6
6483
echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
6484
echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
6486
# Check to make sure the pic_flag actually works.
6487
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
6488
echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
6489
if test "${lt_cv_prog_cc_pic_works+set}" = set; then
6490
echo $ECHO_N "(cached) $ECHO_C" >&6
6492
save_CFLAGS="$CFLAGS"
6493
CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
6494
cat >conftest.$ac_ext <<_ACEOF
6495
#line $LINENO "configure"
6498
cat confdefs.h >>conftest.$ac_ext
6499
cat >>conftest.$ac_ext <<_ACEOF
6500
/* end confdefs.h. */
6510
rm -f conftest.$ac_objext
6511
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6512
(eval $ac_compile) 2>&5
6514
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6515
(exit $ac_status); } &&
6516
{ ac_try='test -s conftest.$ac_objext'
6517
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6520
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6521
(exit $ac_status); }; }; then
6523
hpux9* | hpux10* | hpux11*)
6524
# On HP-UX, both CC and GCC only warn that PIC is supported... then
6525
# they create non-PIC objects. So, if there were any warnings, we
6526
# assume that PIC is not supported.
6527
if test -s conftest.err; then
6528
lt_cv_prog_cc_pic_works=no
6530
lt_cv_prog_cc_pic_works=yes
6534
lt_cv_prog_cc_pic_works=yes
6539
echo "$as_me: failed program was:" >&5
6540
sed 's/^/| /' conftest.$ac_ext >&5
6542
lt_cv_prog_cc_pic_works=no
6545
rm -f conftest.$ac_objext conftest.$ac_ext
6546
CFLAGS="$save_CFLAGS"
6551
if test "X$lt_cv_prog_cc_pic_works" = Xno; then
6553
lt_cv_prog_cc_can_build_shared=no
6555
lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
6558
echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
6559
echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
6562
# Check for any special shared library compilation flags.
6563
if test -n "$lt_cv_prog_cc_shlib"; then
6564
{ echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
6565
echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
6566
if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
6568
{ echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6569
echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6570
lt_cv_prog_cc_can_build_shared=no
6574
echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
6575
echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
6576
if test "${lt_cv_prog_cc_static_works+set}" = set; then
6577
echo $ECHO_N "(cached) $ECHO_C" >&6
6579
lt_cv_prog_cc_static_works=no
6580
save_LDFLAGS="$LDFLAGS"
6581
LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
6582
cat >conftest.$ac_ext <<_ACEOF
6583
#line $LINENO "configure"
6586
cat confdefs.h >>conftest.$ac_ext
6587
cat >>conftest.$ac_ext <<_ACEOF
6588
/* end confdefs.h. */
6598
rm -f conftest.$ac_objext conftest$ac_exeext
6599
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6600
(eval $ac_link) 2>&5
6602
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603
(exit $ac_status); } &&
6604
{ ac_try='test -s conftest$ac_exeext'
6605
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6608
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6609
(exit $ac_status); }; }; then
6610
lt_cv_prog_cc_static_works=yes
6612
echo "$as_me: failed program was:" >&5
6613
sed 's/^/| /' conftest.$ac_ext >&5
6616
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6617
LDFLAGS="$save_LDFLAGS"
6622
# Belt *and* braces to stop my trousers falling down:
6623
test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
6624
echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
6625
echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
6627
pic_flag="$lt_cv_prog_cc_pic"
6628
special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
6629
wl="$lt_cv_prog_cc_wl"
6630
link_static_flag="$lt_cv_prog_cc_static"
6631
no_builtin_flag="$lt_cv_prog_cc_no_builtin"
6632
can_build_shared="$lt_cv_prog_cc_can_build_shared"
6635
# Check to see if options -o and -c are simultaneously supported by compiler
6636
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6637
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6638
if test "${lt_cv_compiler_c_o+set}" = set; then
6639
echo $ECHO_N "(cached) $ECHO_C" >&6
6642
$rm -r conftest 2>/dev/null
6645
echo "int some_variable = 0;" > conftest.$ac_ext
6647
# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6648
# that will create temporary files in the current directory regardless of
6649
# the output directory. Thus, making CWD read-only will cause this test
6650
# to fail, enabling locking or at least warning the user not to do parallel
6653
save_CFLAGS="$CFLAGS"
6654
CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
6656
if { (eval echo configure:6656: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
6657
# The compiler can only warn and ignore the option if not recognized
6658
# So say no if there are warnings
6659
if test -s out/conftest.err; then
6660
lt_cv_compiler_c_o=no
6662
lt_cv_compiler_c_o=yes
6665
# Append any errors to the config.log.
6666
cat out/conftest.err 1>&5
6667
lt_cv_compiler_c_o=no
6669
CFLAGS="$save_CFLAGS"
6675
$rm -r conftest 2>/dev/null
6679
compiler_c_o=$lt_cv_compiler_c_o
6680
echo "$as_me:$LINENO: result: $compiler_c_o" >&5
6681
echo "${ECHO_T}$compiler_c_o" >&6
6683
if test x"$compiler_c_o" = x"yes"; then
6684
# Check to see if we can write to a .lo
6685
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
6686
echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
6687
if test "${lt_cv_compiler_o_lo+set}" = set; then
6688
echo $ECHO_N "(cached) $ECHO_C" >&6
6691
lt_cv_compiler_o_lo=no
6692
save_CFLAGS="$CFLAGS"
6693
CFLAGS="$CFLAGS -c -o conftest.lo"
6694
save_objext="$ac_objext"
6696
cat >conftest.$ac_ext <<_ACEOF
6697
#line $LINENO "configure"
6700
cat confdefs.h >>conftest.$ac_ext
6701
cat >>conftest.$ac_ext <<_ACEOF
6702
/* end confdefs.h. */
6707
int some_variable = 0;
6712
rm -f conftest.$ac_objext
6713
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6714
(eval $ac_compile) 2>&5
6716
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6717
(exit $ac_status); } &&
6718
{ ac_try='test -s conftest.$ac_objext'
6719
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6722
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6723
(exit $ac_status); }; }; then
6724
# The compiler can only warn and ignore the option if not recognized
6725
# So say no if there are warnings
6726
if test -s conftest.err; then
6727
lt_cv_compiler_o_lo=no
6729
lt_cv_compiler_o_lo=yes
6733
echo "$as_me: failed program was:" >&5
6734
sed 's/^/| /' conftest.$ac_ext >&5
6737
rm -f conftest.$ac_objext conftest.$ac_ext
6738
ac_objext="$save_objext"
6739
CFLAGS="$save_CFLAGS"
6743
compiler_o_lo=$lt_cv_compiler_o_lo
6744
echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
6745
echo "${ECHO_T}$compiler_o_lo" >&6
6750
# Check to see if we can do hard links to lock some files if needed
6751
hard_links="nottested"
6752
if test "$compiler_c_o" = no && test "$need_locks" != no; then
6753
# do not overwrite the value of need_locks provided by the user
6754
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6755
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6758
ln conftest.a conftest.b 2>/dev/null && hard_links=no
6760
ln conftest.a conftest.b 2>&5 || hard_links=no
6761
ln conftest.a conftest.b 2>/dev/null && hard_links=no
6762
echo "$as_me:$LINENO: result: $hard_links" >&5
6763
echo "${ECHO_T}$hard_links" >&6
6764
if test "$hard_links" = no; then
6765
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6766
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6773
if test "$GCC" = yes; then
6774
# Check to see if options -fno-rtti -fno-exceptions are supported by compiler
6775
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6776
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6777
echo "int some_variable = 0;" > conftest.$ac_ext
6778
save_CFLAGS="$CFLAGS"
6779
CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
6780
compiler_rtti_exceptions=no
6781
cat >conftest.$ac_ext <<_ACEOF
6782
#line $LINENO "configure"
6785
cat confdefs.h >>conftest.$ac_ext
6786
cat >>conftest.$ac_ext <<_ACEOF
6787
/* end confdefs.h. */
6792
int some_variable = 0;
6797
rm -f conftest.$ac_objext
6798
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6799
(eval $ac_compile) 2>&5
6801
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6802
(exit $ac_status); } &&
6803
{ ac_try='test -s conftest.$ac_objext'
6804
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6807
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808
(exit $ac_status); }; }; then
6809
# The compiler can only warn and ignore the option if not recognized
6810
# So say no if there are warnings
6811
if test -s conftest.err; then
6812
compiler_rtti_exceptions=no
6814
compiler_rtti_exceptions=yes
6818
echo "$as_me: failed program was:" >&5
6819
sed 's/^/| /' conftest.$ac_ext >&5
6822
rm -f conftest.$ac_objext conftest.$ac_ext
6823
CFLAGS="$save_CFLAGS"
6824
echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
6825
echo "${ECHO_T}$compiler_rtti_exceptions" >&6
6827
if test "$compiler_rtti_exceptions" = "yes"; then
6828
no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
6830
no_builtin_flag=' -fno-builtin'
6834
# See if the linker supports building shared libraries.
6835
echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
6836
echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
6838
allow_undefined_flag=
6840
need_lib_prefix=unknown
6841
need_version=unknown
6842
# when you set need_version to no, make sure it does not cause -set_version
6843
# flags to be left without arguments
6845
archive_expsym_cmds=
6846
old_archive_from_new_cmds=
6847
old_archive_from_expsyms_cmds=
6848
export_dynamic_flag_spec=
6849
whole_archive_flag_spec=
6850
thread_safe_flag_spec=
6851
hardcode_into_libs=no
6852
hardcode_libdir_flag_spec=
6853
hardcode_libdir_separator=
6856
hardcode_shlibpath_var=unsupported
6858
link_all_deplibs=unknown
6859
always_export_symbols=no
6860
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
6861
# include_expsyms should be a list of space-separated symbols to be *always*
6862
# included in the symbol list
6864
# exclude_expsyms can be an egrep regular expression of symbols to exclude
6865
# it will be wrapped by ` (' and `)$', so one must not match beginning or
6866
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6867
# as well as any symbol that contains `d'.
6868
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6869
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6870
# platforms (ab)use it in PIC code, but their linkers get confused if
6871
# the symbol is explicitly referenced. Since portable code cannot
6872
# rely on this symbol name, it's probably fine to never include it in
6873
# preloaded symbol tables.
6874
extract_expsyms_cmds=
6877
cygwin* | mingw* | pw32*)
6878
# FIXME: the MSVC++ port hasn't been tested in a loooong time
6879
# When not using gcc, we currently assume that we are using
6880
# Microsoft Visual C++.
6881
if test "$GCC" != yes; then
6891
if test "$with_gnu_ld" = yes; then
6892
# If archive_cmds runs LD, not CC, wlarc should be empty
6895
# See if GNU ld supports shared libraries.
6897
aix3* | aix4* | aix5*)
6898
# On AIX, the GNU linker is very broken
6899
# Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
6903
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6904
*** to be unable to reliably create shared libraries on AIX.
6905
*** Therefore, libtool is disabling shared libraries support. If you
6906
*** really care for shared libraries, you may want to modify your PATH
6907
*** so that a non-GNU linker is found, and then restart.
6913
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)'
6914
hardcode_libdir_flag_spec='-L$libdir'
6915
hardcode_minus_L=yes
6917
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6918
# that the semantics of dynamic libraries on AmigaOS, at least up
6919
# to version 4, is to share data among multiple programs linked
6920
# with the same dynamic library. Since this doesn't match the
6921
# behavior of shared libraries on other platforms, we can use
6927
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6928
allow_undefined_flag=unsupported
6929
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6930
# support --undefined. This deserves some investigation. FIXME
6931
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6937
cygwin* | mingw* | pw32*)
6938
# hardcode_libdir_flag_spec is actually meaningless, as there is
6939
# no search path for DLLs.
6940
hardcode_libdir_flag_spec='-L$libdir'
6941
allow_undefined_flag=unsupported
6942
always_export_symbols=yes
6944
extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
6945
sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
6946
test -f $output_objdir/impgen.exe || (cd $output_objdir && \
6947
if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
6948
else $CC -o impgen impgen.c ; fi)~
6949
$output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
6951
old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
6953
# cygwin and mingw dlls have different entry points and sets of symbols
6955
# FIXME: what about values for MSVC?
6956
dll_entry=__cygwin_dll_entry@12
6957
dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
6961
dll_entry=_DllMainCRTStartup@12
6962
dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
6966
# mingw and cygwin differ, and it's simplest to just exclude the union
6967
# of the two symbol sets.
6968
dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
6970
# recent cygwin and mingw systems supply a stub DllMain which the user
6971
# can override, but on older systems we have to supply one (in ltdll.c)
6972
if test "x$lt_cv_need_dllmain" = "xyes"; then
6973
ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
6974
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~
6975
test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
6981
# Extract the symbol export list from an `--export-all' def file,
6982
# then regenerate the def file from the symbol export list, so that
6983
# the compiled dll only exports the symbol export list.
6984
# Be careful not to strip the DATA tag left be newer dlltools.
6985
export_symbols_cmds="$ltdll_cmds"'
6986
$DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
6987
sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
6989
# If the export-symbols file already is a .def file (1st line
6990
# is EXPORTS), use it as is.
6991
# If DATA tags from a recent dlltool are present, honour them!
6992
archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
6993
cp $export_symbols $output_objdir/$soname-def;
6995
echo EXPORTS > $output_objdir/$soname-def;
6997
cat $export_symbols | while read symbol; do
7000
2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
7001
4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
7002
*) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
7004
_lt_hint=`expr 1 + \$_lt_hint`;
7008
$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~
7009
$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~
7010
$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~
7011
$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~
7012
$CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
7016
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7017
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7020
archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7021
archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7026
if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
7030
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7031
*** create shared libraries on Solaris systems. Therefore, libtool
7032
*** is disabling shared libraries support. We urge you to upgrade GNU
7033
*** binutils to release 2.9.1 or newer. Another option is to modify
7034
*** your PATH or compiler configuration so that the native linker is
7035
*** used, and then restart.
7038
elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
7039
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7040
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7047
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7050
hardcode_shlibpath_var=no
7054
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
7055
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7056
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7063
if test "$ld_shlibs" = yes; then
7064
runpath_var=LD_RUN_PATH
7065
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7066
export_dynamic_flag_spec='${wl}--export-dynamic'
7068
cygwin* | mingw* | pw32*)
7069
# dlltool doesn't understand --whole-archive et. al.
7070
whole_archive_flag_spec=
7073
# ancient GNU ld didn't support --whole-archive et. al.
7074
if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
7075
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7077
whole_archive_flag_spec=
7083
# PORTME fill in a description of your system's linker (not GNU ld)
7086
allow_undefined_flag=unsupported
7087
always_export_symbols=yes
7088
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'
7089
# Note: this linker hardcodes the directories in LIBPATH if there
7090
# are no directories specified by -L.
7091
hardcode_minus_L=yes
7092
if test "$GCC" = yes && test -z "$link_static_flag"; then
7093
# Neither direct hardcoding nor static linking is supported with a
7095
hardcode_direct=unsupported
7100
if test "$host_cpu" = ia64; then
7101
# On IA64, the linker does run time linking by default, so we don't
7102
# have to do anything special.
7103
aix_use_runtimelinking=no
7104
exp_sym_flag='-Bexport'
7107
aix_use_runtimelinking=no
7109
# Test if we are trying to use run time linking or normal
7110
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
7111
# need to do runtime linking.
7112
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7113
for ld_flag in $LDFLAGS; do
7116
aix_use_runtimelinking=yes
7123
exp_sym_flag='-bexport'
7124
no_entry_flag='-bnoentry'
7127
# When large executables or shared objects are built, AIX ld can
7128
# have problems creating the table of contents. If linking a library
7129
# or program results in "error TOC overflow" add -mminimal-toc to
7130
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7131
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7135
hardcode_libdir_separator=':'
7136
if test "$GCC" = yes; then
7137
case $host_os in aix4.[012]|aix4.[012].*)
7138
collect2name=`${CC} -print-prog-name=collect2`
7139
if test -f "$collect2name" && \
7140
strings "$collect2name" | grep resolve_lib_name >/dev/null
7142
# We have reworked collect2
7145
# We have old collect2
7146
hardcode_direct=unsupported
7147
# It fails to find uninstalled libraries when the uninstalled
7148
# path is not listed in the libpath. Setting hardcode_minus_L
7149
# to unsupported forces relinking
7150
hardcode_minus_L=yes
7151
hardcode_libdir_flag_spec='-L$libdir'
7152
hardcode_libdir_separator=
7156
shared_flag='-shared'
7159
if test "$host_cpu" = ia64; then
7160
shared_flag='${wl}-G'
7162
if test "$aix_use_runtimelinking" = yes; then
7163
shared_flag='${wl}-G'
7165
shared_flag='${wl}-bM:SRE'
7170
# It seems that -bexpall can do strange things, so it is better to
7171
# generate a list of symbols to export.
7172
always_export_symbols=yes
7173
if test "$aix_use_runtimelinking" = yes; then
7174
# Warning - without using the other runtime loading flags (-brtl),
7175
# -berok will link without error, but may produce a broken library.
7176
allow_undefined_flag='-berok'
7177
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
7178
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"
7180
if test "$host_cpu" = ia64; then
7181
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7182
allow_undefined_flag="-z nodefs"
7183
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"
7185
hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
7186
# Warning - without using the other run time loading flags,
7187
# -berok will link without error, but may produce a broken library.
7188
allow_undefined_flag='${wl}-berok'
7189
# This is a bit strange, but is similar to how AIX traditionally builds
7190
# it's shared libraries.
7191
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'
7197
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)'
7198
hardcode_libdir_flag_spec='-L$libdir'
7199
hardcode_minus_L=yes
7200
# see comment about different semantics on the GNU ld section
7204
cygwin* | mingw* | pw32*)
7205
# When not using gcc, we currently assume that we are using
7206
# Microsoft Visual C++.
7207
# hardcode_libdir_flag_spec is actually meaningless, as there is
7208
# no search path for DLLs.
7209
hardcode_libdir_flag_spec=' '
7210
allow_undefined_flag=unsupported
7211
# Tell ltmain to make .lib files, not .a files.
7213
# FIXME: Setting linknames here is a bad hack.
7214
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7215
# The linker will automatically build a .lib file if we build a DLL.
7216
old_archive_from_new_cmds='true'
7217
# FIXME: Should let the user specify the lib program.
7218
old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7219
fix_srcfile_path='`cygpath -w "$srcfile"`'
7222
darwin* | rhapsody*)
7224
rhapsody* | darwin1.[012])
7225
allow_undefined_flag='-undefined suppress'
7228
allow_undefined_flag='-flat_namespace -undefined suppress'
7231
# FIXME: Relying on posixy $() will cause problems for
7232
# cross-compilation, but unfortunately the echo tests do not
7233
# yet detect zsh echo's removal of \ escapes. Also zsh mangles
7234
# `"' quotes if we put them in here... so don't!
7235
archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'
7236
# We need to add '_' to the symbols in $export_symbols first
7237
#archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
7239
hardcode_shlibpath_var=no
7240
whole_archive_flag_spec='-all_load $convenience'
7247
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7248
# support. Future versions do this automatically, but an explicit c++rt0.o
7249
# does not break anything, and helps significantly (at the cost of a little
7252
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7253
hardcode_libdir_flag_spec='-R$libdir'
7255
hardcode_shlibpath_var=no
7258
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
7260
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7262
hardcode_minus_L=yes
7263
hardcode_shlibpath_var=no
7266
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7268
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7269
hardcode_libdir_flag_spec='-R$libdir'
7271
hardcode_shlibpath_var=no
7274
hpux9* | hpux10* | hpux11*)
7276
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' ;;
7277
*) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
7279
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7280
hardcode_libdir_separator=:
7282
hardcode_minus_L=yes # Not in the search PATH, but as the default
7283
# location of the library.
7284
export_dynamic_flag_spec='${wl}-E'
7287
irix5* | irix6* | nonstopux*)
7288
if test "$GCC" = yes; then
7289
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'
7290
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7292
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'
7293
hardcode_libdir_flag_spec='-rpath $libdir'
7295
hardcode_libdir_separator=:
7296
link_all_deplibs=yes
7300
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7301
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7303
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7305
hardcode_libdir_flag_spec='-R$libdir'
7307
hardcode_shlibpath_var=no
7311
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7313
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7314
hardcode_libdir_separator=:
7315
hardcode_shlibpath_var=no
7320
hardcode_shlibpath_var=no
7321
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7322
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7323
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7324
export_dynamic_flag_spec='${wl}-E'
7327
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7328
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7329
hardcode_libdir_flag_spec='-R$libdir'
7332
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7333
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7340
hardcode_libdir_flag_spec='-L$libdir'
7341
hardcode_minus_L=yes
7342
allow_undefined_flag=unsupported
7343
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'
7344
old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7348
if test "$GCC" = yes; then
7349
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7350
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'
7352
allow_undefined_flag=' -expect_unresolved \*'
7353
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'
7355
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7356
hardcode_libdir_separator=:
7359
osf4* | osf5*) # as osf3* with the addition of -msym flag
7360
if test "$GCC" = yes; then
7361
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7362
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'
7363
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7365
allow_undefined_flag=' -expect_unresolved \*'
7366
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'
7367
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7368
$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'
7370
#Both c and cxx compiler support -rpath directly
7371
hardcode_libdir_flag_spec='-rpath $libdir'
7373
hardcode_libdir_separator=:
7377
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7378
hardcode_shlibpath_var=no
7379
runpath_var=LD_RUN_PATH
7380
hardcode_runpath_var=yes
7381
export_dynamic_flag_spec='${wl}-Bexport'
7385
# gcc --version < 3.0 without binutils cannot create self contained
7386
# shared libraries reliably, requiring libgcc.a to resolve some of
7387
# the object symbols generated in some cases. Libraries that use
7388
# assert need libgcc.a to resolve __eprintf, for example. Linking
7389
# a copy of libgcc.a into every shared library to guarantee resolving
7390
# such symbols causes other problems: According to Tim Van Holder
7391
# <tim.van.holder@pandora.be>, C++ libraries end up with a separate
7392
# (to the application) exception stack for one thing.
7393
no_undefined_flag=' -z defs'
7394
if test "$GCC" = yes; then
7395
case `$CC --version 2>/dev/null` in
7399
*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
7400
*** create self contained shared libraries on Solaris systems, without
7401
*** introducing a dependency on libgcc.a. Therefore, libtool is disabling
7402
*** -no-undefined support, which will at least allow you to build shared
7403
*** libraries. However, you may find that when you link such libraries
7404
*** into an application without using GCC, you have to manually add
7405
*** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
7406
*** upgrade to a newer version of GCC. Another option is to rebuild your
7407
*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
7414
# $CC -shared without GNU ld will not create a library from C++
7415
# object files and a static libstdc++, better avoid it by now
7416
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7417
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7418
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7419
hardcode_libdir_flag_spec='-R$libdir'
7420
hardcode_shlibpath_var=no
7422
solaris2.[0-5] | solaris2.[0-5].*) ;;
7423
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
7424
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7426
link_all_deplibs=yes
7430
if test "x$host_vendor" = xsequent; then
7431
# Use $CC to link under sequent, because it throws in some extra .o
7432
# files that make .init and .fini sections work.
7433
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7435
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7437
hardcode_libdir_flag_spec='-L$libdir'
7439
hardcode_minus_L=yes
7440
hardcode_shlibpath_var=no
7444
case $host_vendor in
7446
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7447
hardcode_direct=yes # is this really true???
7450
## LD is ld it makes a PLAMLIB
7451
## CC just makes a GrossModule.
7452
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7453
reload_cmds='$CC -r -o $output$reload_objs'
7457
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7458
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7461
runpath_var='LD_RUN_PATH'
7462
hardcode_shlibpath_var=no
7466
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7467
hardcode_shlibpath_var=no
7468
export_dynamic_flag_spec='-Bexport'
7472
no_undefined_flag=' -z text'
7473
# $CC -shared without GNU ld will not create a library from C++
7474
# object files and a static libstdc++, better avoid it by now
7475
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7476
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7477
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7478
hardcode_libdir_flag_spec=
7479
hardcode_shlibpath_var=no
7480
runpath_var='LD_RUN_PATH'
7484
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7485
hardcode_libdir_flag_spec='-L$libdir'
7486
hardcode_shlibpath_var=no
7490
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7491
hardcode_libdir_flag_spec='-L$libdir'
7492
hardcode_shlibpath_var=no
7496
if test -d /usr/nec; then
7497
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7498
hardcode_shlibpath_var=no
7499
runpath_var=LD_RUN_PATH
7500
hardcode_runpath_var=yes
7506
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7509
hardcode_shlibpath_var=no
7510
hardcode_runpath_var=yes
7511
runpath_var=LD_RUN_PATH
7514
sysv5uw7* | unixware7*)
7515
no_undefined_flag='${wl}-z ${wl}text'
7516
if test "$GCC" = yes; then
7517
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7519
archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7521
runpath_var='LD_RUN_PATH'
7522
hardcode_shlibpath_var=no
7530
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7531
echo "${ECHO_T}$ld_shlibs" >&6
7532
test "$ld_shlibs" = no && can_build_shared=no
7534
# Check hardcoding attributes.
7535
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7536
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7538
if test -n "$hardcode_libdir_flag_spec" || \
7539
test -n "$runpath_var"; then
7541
# We can hardcode non-existant directories.
7542
if test "$hardcode_direct" != no &&
7543
# If the only mechanism to avoid hardcoding is shlibpath_var, we
7544
# have to relink, otherwise we might link with an installed library
7545
# when we should be linking with a yet-to-be-installed one
7546
## test "$hardcode_shlibpath_var" != no &&
7547
test "$hardcode_minus_L" != no; then
7548
# Linking always hardcodes the temporary library directory.
7549
hardcode_action=relink
7551
# We can link without hardcoding, and we can hardcode nonexisting dirs.
7552
hardcode_action=immediate
7555
# We cannot hardcode anything, or else we can only hardcode existing
7557
hardcode_action=unsupported
7559
echo "$as_me:$LINENO: result: $hardcode_action" >&5
7560
echo "${ECHO_T}$hardcode_action" >&6
7564
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7565
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7566
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7567
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7568
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7569
echo "$as_me:$LINENO: result: yes" >&5
7570
echo "${ECHO_T}yes" >&6
7572
echo "$as_me:$LINENO: result: no" >&5
7573
echo "${ECHO_T}no" >&6
7576
reload_cmds='$LD$reload_flag -o $output$reload_objs'
7577
test -z "$deplibs_check_method" && deplibs_check_method=unknown
7579
# PORTME Fill in your ld.so characteristics
7580
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7581
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7583
libname_spec='lib$name'
7590
shlibpath_overrides_runpath=unknown
7592
dynamic_linker="$host_os ld.so"
7593
sys_lib_dlsearch_path_spec="/lib /usr/lib"
7594
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7599
library_names_spec='${libname}${release}.so$versuffix $libname.a'
7600
shlibpath_var=LIBPATH
7602
# AIX has no versioning support, so we append a major version to the name.
7603
soname_spec='${libname}${release}.so$major'
7610
hardcode_into_libs=yes
7611
if test "$host_cpu" = ia64; then
7612
# AIX 5 supports IA64
7613
library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
7614
shlibpath_var=LD_LIBRARY_PATH
7616
# With GCC up to 2.95.x, collect2 would create an import file
7617
# for dependence libraries. The import file would start with
7618
# the line `#! .'. This would cause the generated library to
7619
# depend on `.', always an invalid library. This was fixed in
7620
# development snapshots of GCC prior to 3.0.
7622
aix4 | aix4.[01] | aix4.[01].*)
7623
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7625
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7632
# AIX (on Power*) has no versioning support, so currently we can
7633
# not hardcode correct soname into executable. Probably we can
7634
# add versioning support to collect2, so additional links can
7635
# be useful in future.
7636
if test "$aix_use_runtimelinking" = yes; then
7637
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
7638
# instead of lib<name>.a to let people know that these are not
7639
# typical AIX shared libraries.
7640
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7642
# We preserve .a as extension for shared libraries through AIX4.2
7643
# and later when we are not doing run time linking.
7644
library_names_spec='${libname}${release}.a $libname.a'
7645
soname_spec='${libname}${release}.so$major'
7647
shlibpath_var=LIBPATH
7649
hardcode_into_libs=yes
7653
library_names_spec='$libname.ixlibrary $libname.a'
7654
# Create ${libname}_ixlibrary.a entries in /sys/libs.
7655
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'
7659
library_names_spec='${libname}.so'
7660
dynamic_linker="$host_os ld.so"
7661
shlibpath_var=LIBRARY_PATH
7667
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7668
soname_spec='${libname}${release}.so$major'
7669
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7670
shlibpath_var=LD_LIBRARY_PATH
7671
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7672
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7673
export_dynamic_flag_spec=-rdynamic
7674
# the default ld.so.conf also contains /usr/contrib/lib and
7675
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7676
# libtool to hard-code these into programs
7679
cygwin* | mingw* | pw32*)
7680
version_type=windows
7683
case $GCC,$host_os in
7685
library_names_spec='$libname.dll.a'
7686
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
7687
postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
7688
dldir=$destdir/`dirname \$dlpath`~
7689
test -d \$dldir || mkdir -p \$dldir~
7690
$install_prog .libs/$dlname \$dldir/$dlname'
7691
postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
7692
dlpath=$dir/\$dldll~
7696
library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
7697
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
7700
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
7703
library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
7706
dynamic_linker='Win32 ld.exe'
7707
# FIXME: first we should search . and the directory the executable is in
7711
darwin* | rhapsody*)
7712
dynamic_linker="$host_os dyld"
7716
# FIXME: Relying on posixy $() will cause problems for
7717
# cross-compilation, but unfortunately the echo tests do not
7718
# yet detect zsh echo's removal of \ escapes.
7719
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)'
7720
soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
7721
shlibpath_overrides_runpath=yes
7722
shlibpath_var=DYLD_LIBRARY_PATH
7730
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7731
version_type=freebsd-$objformat
7732
case $version_type in
7734
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
7739
library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
7743
shlibpath_var=LD_LIBRARY_PATH
7746
shlibpath_overrides_runpath=yes
7749
shlibpath_overrides_runpath=no
7750
hardcode_into_libs=yes
7759
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
7760
soname_spec='${libname}${release}.so$major'
7761
shlibpath_var=LD_LIBRARY_PATH
7762
hardcode_into_libs=yes
7765
hpux9* | hpux10* | hpux11*)
7766
# Give a soname corresponding to the major version so that dld.sl refuses to
7767
# link against other versions.
7768
dynamic_linker="$host_os dld.sl"
7772
shlibpath_var=SHLIB_PATH
7773
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7774
library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
7775
soname_spec='${libname}${release}.sl$major'
7776
# HP-UX runs *really* slowly unless shared libraries are mode 555.
7777
postinstall_cmds='chmod 555 $lib'
7780
irix5* | irix6* | nonstopux*)
7782
nonstopux*) version_type=nonstopux ;;
7783
*) version_type=irix ;;
7787
soname_spec='${libname}${release}.so$major'
7788
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
7790
irix5* | nonstopux*)
7794
case $LD in # libtool.m4 will add one of these switches to LD
7795
*-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
7796
*-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
7797
*-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
7798
*) libsuff= shlibsuff= libmagic=never-match;;
7802
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7803
shlibpath_overrides_runpath=no
7804
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7805
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7808
# No shared lib support for Linux oldld, aout, or coff.
7809
linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
7813
# This must be Linux ELF.
7818
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7819
soname_spec='${libname}${release}.so$major'
7820
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7821
shlibpath_var=LD_LIBRARY_PATH
7822
shlibpath_overrides_runpath=no
7823
# This implies no fast_install, which is unacceptable.
7824
# Some rework will be needed to allow for fast_install
7825
# before this can be enabled.
7826
hardcode_into_libs=yes
7828
# We used to test for /lib/ld.so.1 and disable shared libraries on
7829
# powerpc, because MkLinux only supported shared libraries with the
7830
# GNU dynamic linker. Since this was broken with cross compilers,
7831
# most powerpc-linux boxes support dynamic linking these days and
7832
# people can always --disable-shared, the test was removed, and we
7833
# assume the GNU/Linux dynamic linker is in use.
7834
dynamic_linker='GNU/Linux ld.so'
7841
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7842
library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7843
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7844
dynamic_linker='NetBSD (a.out) ld.so'
7846
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
7847
soname_spec='${libname}${release}.so$major'
7848
dynamic_linker='NetBSD ld.elf_so'
7850
shlibpath_var=LD_LIBRARY_PATH
7851
shlibpath_overrides_runpath=yes
7852
hardcode_into_libs=yes
7857
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7858
shlibpath_var=LD_LIBRARY_PATH
7859
shlibpath_overrides_runpath=yes
7866
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7868
openbsd2.[89] | openbsd2.[89].*)
7869
shlibpath_overrides_runpath=no
7872
shlibpath_overrides_runpath=yes
7876
shlibpath_overrides_runpath=yes
7878
library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7879
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7880
shlibpath_var=LD_LIBRARY_PATH
7884
libname_spec='$name'
7886
library_names_spec='$libname.dll $libname.a'
7887
dynamic_linker='OS/2 ld.exe'
7888
shlibpath_var=LIBPATH
7891
osf3* | osf4* | osf5*)
7894
soname_spec='${libname}${release}.so$major'
7895
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7896
shlibpath_var=LD_LIBRARY_PATH
7897
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7898
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7899
hardcode_into_libs=yes
7904
soname_spec='${libname}${release}.so$major'
7905
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7906
shlibpath_var=LD_LIBRARY_PATH
7913
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7914
soname_spec='${libname}${release}.so$major'
7915
shlibpath_var=LD_LIBRARY_PATH
7916
shlibpath_overrides_runpath=yes
7917
hardcode_into_libs=yes
7918
# ldd complains unless libraries are executable
7919
postinstall_cmds='chmod +x $lib'
7924
library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7925
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7926
shlibpath_var=LD_LIBRARY_PATH
7927
shlibpath_overrides_runpath=yes
7928
if test "$with_gnu_ld" = yes; then
7934
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7936
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7937
soname_spec='${libname}${release}.so$major'
7938
shlibpath_var=LD_LIBRARY_PATH
7939
case $host_vendor in
7941
shlibpath_overrides_runpath=no
7943
export_dynamic_flag_spec='${wl}-Blargedynsym'
7944
runpath_var=LD_RUN_PATH
7952
shlibpath_overrides_runpath=no
7953
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7960
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7961
soname_spec='${libname}${release}.so$major'
7962
shlibpath_var=LD_LIBRARY_PATH
7969
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7970
soname_spec='${libname}${release}.so$major'
7971
shlibpath_var=LD_LIBRARY_PATH
7975
if test -d /usr/nec ;then
7977
library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
7978
soname_spec='$libname.so.$major'
7979
shlibpath_var=LD_LIBRARY_PATH
7987
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7988
echo "${ECHO_T}$dynamic_linker" >&6
7989
test "$dynamic_linker" = no && can_build_shared=no
7991
# Report the final consequences.
7992
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
7993
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
7994
echo "$as_me:$LINENO: result: $can_build_shared" >&5
7995
echo "${ECHO_T}$can_build_shared" >&6
7997
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
7998
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
7999
test "$can_build_shared" = "no" && enable_shared=no
8001
# On AIX, shared libraries and static libraries use the same namespace, and
8002
# are all built from PIC.
8005
test "$enable_shared" = yes && enable_static=no
8006
if test -n "$RANLIB"; then
8007
archive_cmds="$archive_cmds~\$RANLIB \$lib"
8008
postinstall_cmds='$RANLIB $lib'
8013
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8014
test "$enable_shared" = yes && enable_static=no
8018
echo "$as_me:$LINENO: result: $enable_shared" >&5
8019
echo "${ECHO_T}$enable_shared" >&6
8021
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8022
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8023
# Make sure either enable_shared or enable_static is yes.
8024
test "$enable_shared" = yes || enable_static=yes
8025
echo "$as_me:$LINENO: result: $enable_static" >&5
8026
echo "${ECHO_T}$enable_static" >&6
8028
if test "$hardcode_action" = relink; then
8029
# Fast installation is not supported
8030
enable_fast_install=no
8031
elif test "$shlibpath_overrides_runpath" = yes ||
8032
test "$enable_shared" = no; then
8033
# Fast installation is not necessary
8034
enable_fast_install=needless
8037
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8038
if test "$GCC" = yes; then
8039
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8042
if test "x$enable_dlopen" != xyes; then
8043
enable_dlopen=unknown
8044
enable_dlopen_self=unknown
8045
enable_dlopen_self_static=unknown
8052
lt_cv_dlopen="load_add_on"
8054
lt_cv_dlopen_self=yes
8057
cygwin* | mingw* | pw32*)
8058
lt_cv_dlopen="LoadLibrary"
8063
echo "$as_me:$LINENO: checking for shl_load" >&5
8064
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8065
if test "${ac_cv_func_shl_load+set}" = set; then
8066
echo $ECHO_N "(cached) $ECHO_C" >&6
8068
cat >conftest.$ac_ext <<_ACEOF
8069
#line $LINENO "configure"
8072
cat confdefs.h >>conftest.$ac_ext
8073
cat >>conftest.$ac_ext <<_ACEOF
8074
/* end confdefs.h. */
8075
/* System header to define __stub macros and hopefully few prototypes,
8076
which can conflict with char shl_load (); below.
8077
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8078
<limits.h> exists even on freestanding compilers. */
8080
# include <limits.h>
8082
# include <assert.h>
8084
/* Override any gcc2 internal prototype to avoid an error. */
8089
/* We use char because int might match the return type of a gcc2
8090
builtin and then its argument prototype would still apply. */
8092
/* The GNU C library defines this for functions which it implements
8093
to always fail with ENOSYS. Some functions are actually named
8094
something starting with __ and the normal name is an alias. */
8095
#if defined (__stub_shl_load) || defined (__stub___shl_load)
8098
char (*f) () = shl_load;
8107
return f != shl_load;
8112
rm -f conftest.$ac_objext conftest$ac_exeext
8113
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8114
(eval $ac_link) 2>&5
8116
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117
(exit $ac_status); } &&
8118
{ ac_try='test -s conftest$ac_exeext'
8119
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8122
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8123
(exit $ac_status); }; }; then
8124
ac_cv_func_shl_load=yes
8126
echo "$as_me: failed program was:" >&5
8127
sed 's/^/| /' conftest.$ac_ext >&5
8129
ac_cv_func_shl_load=no
8131
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8133
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8134
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8135
if test $ac_cv_func_shl_load = yes; then
8136
lt_cv_dlopen="shl_load"
8138
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8139
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8140
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8141
echo $ECHO_N "(cached) $ECHO_C" >&6
8143
ac_check_lib_save_LIBS=$LIBS
8145
cat >conftest.$ac_ext <<_ACEOF
8146
#line $LINENO "configure"
8149
cat confdefs.h >>conftest.$ac_ext
8150
cat >>conftest.$ac_ext <<_ACEOF
8151
/* end confdefs.h. */
8153
/* Override any gcc2 internal prototype to avoid an error. */
8157
/* We use char because int might match the return type of a gcc2
8158
builtin and then its argument prototype would still apply. */
8168
rm -f conftest.$ac_objext conftest$ac_exeext
8169
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8170
(eval $ac_link) 2>&5
8172
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8173
(exit $ac_status); } &&
8174
{ ac_try='test -s conftest$ac_exeext'
8175
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8178
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179
(exit $ac_status); }; }; then
8180
ac_cv_lib_dld_shl_load=yes
8182
echo "$as_me: failed program was:" >&5
8183
sed 's/^/| /' conftest.$ac_ext >&5
8185
ac_cv_lib_dld_shl_load=no
8187
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8188
LIBS=$ac_check_lib_save_LIBS
8190
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8191
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8192
if test $ac_cv_lib_dld_shl_load = yes; then
8193
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8195
echo "$as_me:$LINENO: checking for dlopen" >&5
8196
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8197
if test "${ac_cv_func_dlopen+set}" = set; then
8198
echo $ECHO_N "(cached) $ECHO_C" >&6
8200
cat >conftest.$ac_ext <<_ACEOF
8201
#line $LINENO "configure"
8204
cat confdefs.h >>conftest.$ac_ext
8205
cat >>conftest.$ac_ext <<_ACEOF
8206
/* end confdefs.h. */
8207
/* System header to define __stub macros and hopefully few prototypes,
8208
which can conflict with char dlopen (); below.
8209
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8210
<limits.h> exists even on freestanding compilers. */
8212
# include <limits.h>
8214
# include <assert.h>
8216
/* Override any gcc2 internal prototype to avoid an error. */
8221
/* We use char because int might match the return type of a gcc2
8222
builtin and then its argument prototype would still apply. */
8224
/* The GNU C library defines this for functions which it implements
8225
to always fail with ENOSYS. Some functions are actually named
8226
something starting with __ and the normal name is an alias. */
8227
#if defined (__stub_dlopen) || defined (__stub___dlopen)
8230
char (*f) () = dlopen;
8244
rm -f conftest.$ac_objext conftest$ac_exeext
8245
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8246
(eval $ac_link) 2>&5
8248
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8249
(exit $ac_status); } &&
8250
{ ac_try='test -s conftest$ac_exeext'
8251
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8254
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8255
(exit $ac_status); }; }; then
8256
ac_cv_func_dlopen=yes
8258
echo "$as_me: failed program was:" >&5
8259
sed 's/^/| /' conftest.$ac_ext >&5
8261
ac_cv_func_dlopen=no
8263
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8265
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8266
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8267
if test $ac_cv_func_dlopen = yes; then
8268
lt_cv_dlopen="dlopen"
8270
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8271
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8272
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8273
echo $ECHO_N "(cached) $ECHO_C" >&6
8275
ac_check_lib_save_LIBS=$LIBS
8277
cat >conftest.$ac_ext <<_ACEOF
8278
#line $LINENO "configure"
8281
cat confdefs.h >>conftest.$ac_ext
8282
cat >>conftest.$ac_ext <<_ACEOF
8283
/* end confdefs.h. */
8285
/* Override any gcc2 internal prototype to avoid an error. */
8289
/* We use char because int might match the return type of a gcc2
8290
builtin and then its argument prototype would still apply. */
8300
rm -f conftest.$ac_objext conftest$ac_exeext
8301
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8302
(eval $ac_link) 2>&5
8304
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8305
(exit $ac_status); } &&
8306
{ ac_try='test -s conftest$ac_exeext'
8307
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8310
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311
(exit $ac_status); }; }; then
8312
ac_cv_lib_dl_dlopen=yes
8314
echo "$as_me: failed program was:" >&5
8315
sed 's/^/| /' conftest.$ac_ext >&5
8317
ac_cv_lib_dl_dlopen=no
8319
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8320
LIBS=$ac_check_lib_save_LIBS
8322
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8323
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8324
if test $ac_cv_lib_dl_dlopen = yes; then
8325
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8327
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8328
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8329
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8330
echo $ECHO_N "(cached) $ECHO_C" >&6
8332
ac_check_lib_save_LIBS=$LIBS
8334
cat >conftest.$ac_ext <<_ACEOF
8335
#line $LINENO "configure"
8338
cat confdefs.h >>conftest.$ac_ext
8339
cat >>conftest.$ac_ext <<_ACEOF
8340
/* end confdefs.h. */
8342
/* Override any gcc2 internal prototype to avoid an error. */
8346
/* We use char because int might match the return type of a gcc2
8347
builtin and then its argument prototype would still apply. */
8357
rm -f conftest.$ac_objext conftest$ac_exeext
8358
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8359
(eval $ac_link) 2>&5
8361
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362
(exit $ac_status); } &&
8363
{ ac_try='test -s conftest$ac_exeext'
8364
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8367
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8368
(exit $ac_status); }; }; then
8369
ac_cv_lib_svld_dlopen=yes
8371
echo "$as_me: failed program was:" >&5
8372
sed 's/^/| /' conftest.$ac_ext >&5
8374
ac_cv_lib_svld_dlopen=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_svld_dlopen" >&5
8380
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8381
if test $ac_cv_lib_svld_dlopen = yes; then
8382
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8384
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8385
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8386
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8387
echo $ECHO_N "(cached) $ECHO_C" >&6
8389
ac_check_lib_save_LIBS=$LIBS
8391
cat >conftest.$ac_ext <<_ACEOF
8392
#line $LINENO "configure"
8395
cat confdefs.h >>conftest.$ac_ext
8396
cat >>conftest.$ac_ext <<_ACEOF
8397
/* end confdefs.h. */
8399
/* Override any gcc2 internal prototype to avoid an error. */
8403
/* We use char because int might match the return type of a gcc2
8404
builtin and then its argument prototype would still apply. */
8414
rm -f conftest.$ac_objext conftest$ac_exeext
8415
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8416
(eval $ac_link) 2>&5
8418
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8419
(exit $ac_status); } &&
8420
{ ac_try='test -s conftest$ac_exeext'
8421
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8424
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8425
(exit $ac_status); }; }; then
8426
ac_cv_lib_dld_dld_link=yes
8428
echo "$as_me: failed program was:" >&5
8429
sed 's/^/| /' conftest.$ac_ext >&5
8431
ac_cv_lib_dld_dld_link=no
8433
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8434
LIBS=$ac_check_lib_save_LIBS
8436
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8437
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8438
if test $ac_cv_lib_dld_dld_link = yes; then
8439
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8460
if test "x$lt_cv_dlopen" != xno; then
8466
case $lt_cv_dlopen in
8468
save_CPPFLAGS="$CPPFLAGS"
8469
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8471
save_LDFLAGS="$LDFLAGS"
8472
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8475
LIBS="$lt_cv_dlopen_libs $LIBS"
8477
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8478
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8479
if test "${lt_cv_dlopen_self+set}" = set; then
8480
echo $ECHO_N "(cached) $ECHO_C" >&6
8482
if test "$cross_compiling" = yes; then :
8483
lt_cv_dlopen_self=cross
8485
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8486
lt_status=$lt_dlunknown
8487
cat > conftest.$ac_ext <<EOF
8488
#line 8488 "configure"
8489
#include "confdefs.h"
8498
# define LT_DLGLOBAL RTLD_GLOBAL
8501
# define LT_DLGLOBAL DL_GLOBAL
8503
# define LT_DLGLOBAL 0
8507
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8508
find out it does not work in some platform. */
8509
#ifndef LT_DLLAZY_OR_NOW
8511
# define LT_DLLAZY_OR_NOW RTLD_LAZY
8514
# define LT_DLLAZY_OR_NOW DL_LAZY
8517
# define LT_DLLAZY_OR_NOW RTLD_NOW
8520
# define LT_DLLAZY_OR_NOW DL_NOW
8522
# define LT_DLLAZY_OR_NOW 0
8530
extern "C" void exit (int);
8533
void fnord() { int i=42;}
8536
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8537
int status = $lt_dlunknown;
8541
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8542
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8543
/* dlclose (self); */
8549
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8550
(eval $ac_link) 2>&5
8552
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8554
(./conftest; exit; ) 2>/dev/null
8557
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8558
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8559
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8562
# compilation failed
8563
lt_cv_dlopen_self=no
8570
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8571
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8573
if test "x$lt_cv_dlopen_self" = xyes; then
8574
LDFLAGS="$LDFLAGS $link_static_flag"
8575
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8576
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8577
if test "${lt_cv_dlopen_self_static+set}" = set; then
8578
echo $ECHO_N "(cached) $ECHO_C" >&6
8580
if test "$cross_compiling" = yes; then :
8581
lt_cv_dlopen_self_static=cross
8583
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8584
lt_status=$lt_dlunknown
8585
cat > conftest.$ac_ext <<EOF
8586
#line 8586 "configure"
8587
#include "confdefs.h"
8596
# define LT_DLGLOBAL RTLD_GLOBAL
8599
# define LT_DLGLOBAL DL_GLOBAL
8601
# define LT_DLGLOBAL 0
8605
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8606
find out it does not work in some platform. */
8607
#ifndef LT_DLLAZY_OR_NOW
8609
# define LT_DLLAZY_OR_NOW RTLD_LAZY
8612
# define LT_DLLAZY_OR_NOW DL_LAZY
8615
# define LT_DLLAZY_OR_NOW RTLD_NOW
8618
# define LT_DLLAZY_OR_NOW DL_NOW
8620
# define LT_DLLAZY_OR_NOW 0
8628
extern "C" void exit (int);
8631
void fnord() { int i=42;}
8634
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8635
int status = $lt_dlunknown;
8639
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8640
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8641
/* dlclose (self); */
8647
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8648
(eval $ac_link) 2>&5
8650
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8651
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8652
(./conftest; exit; ) 2>/dev/null
8655
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8656
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8657
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8660
# compilation failed
8661
lt_cv_dlopen_self_static=no
8668
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8669
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8672
CPPFLAGS="$save_CPPFLAGS"
8673
LDFLAGS="$save_LDFLAGS"
8678
case $lt_cv_dlopen_self in
8679
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8680
*) enable_dlopen_self=unknown ;;
8683
case $lt_cv_dlopen_self_static in
8684
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8685
*) enable_dlopen_self_static=unknown ;;
8690
if test "$enable_shared" = yes && test "$GCC" = yes; then
8691
case $archive_cmds in
8693
# FIXME: we may have to deal with multi-command sequences.
8696
# Test whether the compiler implicitly links with -lc since on some
8697
# systems, -lgcc has to come before -lc. If gcc already passes -lc
8698
# to ld, don't add -lc before -lgcc.
8699
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8700
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8701
if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
8702
echo $ECHO_N "(cached) $ECHO_C" >&6
8705
echo 'static int dummy;' > conftest.$ac_ext
8707
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8708
(eval $ac_compile) 2>&5
8710
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8711
(exit $ac_status); }; then
8714
libobjs=conftest.$ac_objext
8716
wl=$lt_cv_prog_cc_wl
8722
save_allow_undefined_flag=$allow_undefined_flag
8723
allow_undefined_flag=
8724
if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8725
(eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8727
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8728
(exit $ac_status); }
8730
lt_cv_archive_cmds_need_lc=no
8732
lt_cv_archive_cmds_need_lc=yes
8734
allow_undefined_flag=$save_allow_undefined_flag
8736
cat conftest.err 1>&5
8740
echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
8741
echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
8745
need_lc=${lt_cv_archive_cmds_need_lc-yes}
8747
# The second clause should only fire when bootstrapping the
8748
# libtool distribution, otherwise you forgot to ship ltmain.sh
8749
# with your package, and you will get complaints that there are
8750
# no rules to generate ltmain.sh.
8751
if test -f "$ltmain"; then
8754
# If there is no Makefile yet, we rely on a make rule to execute
8755
# `config.status --recheck' to rerun these tests and create the
8756
# libtool script then.
8757
test -f Makefile && make "$ltmain"
8760
if test -f "$ltmain"; then
8761
trap "$rm \"${ofile}T\"; exit 1" 1 2 15
8764
echo creating $ofile
8766
# Now quote all the things that may contain metacharacters while being
8767
# careful not to overquote the AC_SUBSTed values. We take copies of the
8768
# variables and quote the copies for generation of the libtool script.
8769
for var in echo old_CC old_CFLAGS SED \
8770
AR AR_FLAGS CC LD LN_S NM SHELL \
8771
reload_flag reload_cmds wl \
8772
pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
8773
thread_safe_flag_spec whole_archive_flag_spec libname_spec \
8774
library_names_spec soname_spec \
8775
RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
8776
old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
8777
postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
8778
old_striplib striplib file_magic_cmd export_symbols_cmds \
8779
deplibs_check_method allow_undefined_flag no_undefined_flag \
8780
finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
8781
global_symbol_to_c_name_address \
8782
hardcode_libdir_flag_spec hardcode_libdir_separator \
8783
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8784
compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
8787
reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
8788
old_postinstall_cmds | old_postuninstall_cmds | \
8789
export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
8790
extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
8791
postinstall_cmds | postuninstall_cmds | \
8792
finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8793
# Double-quote double-evaled strings.
8794
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8797
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8802
cat <<__EOF__ > "${ofile}T"
8805
# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8806
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8807
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
8809
# Copyright (C) 1996-2000 Free Software Foundation, Inc.
8810
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8812
# This program is free software; you can redistribute it and/or modify
8813
# it under the terms of the GNU General Public License as published by
8814
# the Free Software Foundation; either version 2 of the License, or
8815
# (at your option) any later version.
8817
# This program is distributed in the hope that it will be useful, but
8818
# WITHOUT ANY WARRANTY; without even the implied warranty of
8819
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8820
# General Public License for more details.
8822
# You should have received a copy of the GNU General Public License
8823
# along with this program; if not, write to the Free Software
8824
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8826
# As a special exception to the GNU General Public License, if you
8827
# distribute this file as part of a program that contains a
8828
# configuration script generated by Autoconf, you may include it under
8829
# the same distribution terms that you use for the rest of that program.
8831
# A sed that does not truncate output.
8834
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
8835
Xsed="${SED} -e s/^X//"
8837
# The HP-UX ksh and POSIX shell print the target directory to stdout
8839
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8841
# ### BEGIN LIBTOOL CONFIG
8843
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8845
# Shell to use when invoking shell scripts.
8848
# Whether or not to build shared libraries.
8849
build_libtool_libs=$enable_shared
8851
# Whether or not to build static libraries.
8852
build_old_libs=$enable_static
8854
# Whether or not to add -lc for building shared libraries.
8855
build_libtool_need_lc=$need_lc
8857
# Whether or not to optimize for fast installation.
8858
fast_install=$enable_fast_install
8861
host_alias=$host_alias
8864
# An echo program that does not interpret backslashes.
8869
AR_FLAGS=$lt_AR_FLAGS
8871
# The default C compiler.
8874
# Is the compiler the GNU C compiler?
8877
# The linker used to build libraries.
8880
# Whether we need hard or soft links.
8883
# A BSD-compatible nm program.
8886
# A symbol stripping program
8889
# Used to examine libraries when file_magic_cmd begins "file"
8890
MAGIC_CMD=$MAGIC_CMD
8892
# Used on cygwin: DLL creation program.
8895
# Used on cygwin: object dumper.
8898
# Used on cygwin: assembler.
8901
# The name of the directory that contains temporary libtool files.
8904
# How to create reloadable object files.
8905
reload_flag=$lt_reload_flag
8906
reload_cmds=$lt_reload_cmds
8908
# How to pass a linker flag through the compiler.
8911
# Object file suffix (normally "o").
8914
# Old archive suffix (normally "a").
8917
# Executable file suffix (normally "").
8920
# Additional compiler flags for building library objects.
8921
pic_flag=$lt_pic_flag
8924
# Does compiler simultaneously support -c and -o options?
8925
compiler_c_o=$lt_compiler_c_o
8927
# Can we write directly to a .lo ?
8928
compiler_o_lo=$lt_compiler_o_lo
8930
# Must we lock files when doing compilation ?
8931
need_locks=$lt_need_locks
8933
# Do we need the lib prefix for modules?
8934
need_lib_prefix=$need_lib_prefix
8936
# Do we need a version for libraries?
8937
need_version=$need_version
8939
# Whether dlopen is supported.
8940
dlopen_support=$enable_dlopen
8942
# Whether dlopen of programs is supported.
8943
dlopen_self=$enable_dlopen_self
8945
# Whether dlopen of statically linked programs is supported.
8946
dlopen_self_static=$enable_dlopen_self_static
8948
# Compiler flag to prevent dynamic linking.
8949
link_static_flag=$lt_link_static_flag
8951
# Compiler flag to turn off builtin functions.
8952
no_builtin_flag=$lt_no_builtin_flag
8954
# Compiler flag to allow reflexive dlopens.
8955
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8957
# Compiler flag to generate shared objects directly from archives.
8958
whole_archive_flag_spec=$lt_whole_archive_flag_spec
8960
# Compiler flag to generate thread-safe objects.
8961
thread_safe_flag_spec=$lt_thread_safe_flag_spec
8963
# Library versioning type.
8964
version_type=$version_type
8966
# Format of library name prefix.
8967
libname_spec=$lt_libname_spec
8969
# List of archive names. First name is the real one, the rest are links.
8970
# The last name is the one that the linker finds with -lNAME.
8971
library_names_spec=$lt_library_names_spec
8973
# The coded name of the library, if different from the real name.
8974
soname_spec=$lt_soname_spec
8976
# Commands used to build and install an old-style archive.
8978
old_archive_cmds=$lt_old_archive_cmds
8979
old_postinstall_cmds=$lt_old_postinstall_cmds
8980
old_postuninstall_cmds=$lt_old_postuninstall_cmds
8982
# Create an old-style archive from a shared archive.
8983
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8985
# Create a temporary old-style archive to link instead of a shared archive.
8986
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8988
# Commands used to build and install a shared archive.
8989
archive_cmds=$lt_archive_cmds
8990
archive_expsym_cmds=$lt_archive_expsym_cmds
8991
postinstall_cmds=$lt_postinstall_cmds
8992
postuninstall_cmds=$lt_postuninstall_cmds
8994
# Commands to strip libraries.
8995
old_striplib=$lt_old_striplib
8996
striplib=$lt_striplib
8998
# Method to check whether dependent libraries are shared objects.
8999
deplibs_check_method=$lt_deplibs_check_method
9001
# Command to use when deplibs_check_method == file_magic.
9002
file_magic_cmd=$lt_file_magic_cmd
9004
# Flag that allows shared libraries with undefined symbols to be built.
9005
allow_undefined_flag=$lt_allow_undefined_flag
9007
# Flag that forces no undefined symbols.
9008
no_undefined_flag=$lt_no_undefined_flag
9010
# Commands used to finish a libtool library installation in a directory.
9011
finish_cmds=$lt_finish_cmds
9013
# Same as above, but a single script fragment to be evaled but not shown.
9014
finish_eval=$lt_finish_eval
9016
# Take the output of nm and produce a listing of raw symbols and C names.
9017
global_symbol_pipe=$lt_global_symbol_pipe
9019
# Transform the output of nm in a proper C declaration
9020
global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
9022
# Transform the output of nm in a C name address pair
9023
global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
9025
# This is the shared library runtime path variable.
9026
runpath_var=$runpath_var
9028
# This is the shared library path variable.
9029
shlibpath_var=$shlibpath_var
9031
# Is shlibpath searched before the hard-coded library search path?
9032
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9034
# How to hardcode a shared library path into an executable.
9035
hardcode_action=$hardcode_action
9037
# Whether we should hardcode library paths into libraries.
9038
hardcode_into_libs=$hardcode_into_libs
9040
# Flag to hardcode \$libdir into a binary during linking.
9041
# This must work even if \$libdir does not exist.
9042
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9044
# Whether we need a single -rpath flag with a separated argument.
9045
hardcode_libdir_separator=$lt_hardcode_libdir_separator
9047
# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
9049
hardcode_direct=$hardcode_direct
9051
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9053
hardcode_minus_L=$hardcode_minus_L
9055
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9056
# the resulting binary.
9057
hardcode_shlibpath_var=$hardcode_shlibpath_var
9059
# Variables whose values should be saved in libtool wrapper scripts and
9060
# restored at relink time.
9061
variables_saved_for_relink="$variables_saved_for_relink"
9063
# Whether libtool must link a program against all its dependency libraries.
9064
link_all_deplibs=$link_all_deplibs
9066
# Compile-time system search path for libraries
9067
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9069
# Run-time system search path for libraries
9070
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9072
# Fix the shell variable \$srcfile for the compiler.
9073
fix_srcfile_path="$fix_srcfile_path"
9075
# Set to yes if exported symbols are required.
9076
always_export_symbols=$always_export_symbols
9078
# The commands to list exported symbols.
9079
export_symbols_cmds=$lt_export_symbols_cmds
9081
# The commands to extract the exported symbol list from a shared archive.
9082
extract_expsyms_cmds=$lt_extract_expsyms_cmds
9084
# Symbols that should not be listed in the preloaded symbols.
9085
exclude_expsyms=$lt_exclude_expsyms
9087
# Symbols that must always be exported.
9088
include_expsyms=$lt_include_expsyms
9090
# ### END LIBTOOL CONFIG
9096
cat <<\EOF >> "${ofile}T"
9098
# AIX sometimes has problems with the GCC collect2 program. For some
9099
# reason, if we set the COLLECT_NAMES environment variable, the problems
9100
# vanish in a puff of smoke.
9101
if test "X${COLLECT_NAMES+set}" != Xset; then
9103
export COLLECT_NAMES
9110
cygwin* | mingw* | pw32* | os2*)
9111
cat <<'EOF' >> "${ofile}T"
9112
# This is a source program that is used to create dlls on Windows
9113
# Don't remove nor modify the starting and closing comments
9114
# /* ltdll.c starts here */
9115
# #define WIN32_LEAN_AND_MEAN
9116
# #include <windows.h>
9117
# #undef WIN32_LEAN_AND_MEAN
9118
# #include <stdio.h>
9120
# #ifndef __CYGWIN__
9121
# # ifdef __CYGWIN32__
9122
# # define __CYGWIN__ __CYGWIN32__
9126
# #ifdef __cplusplus
9129
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
9130
# #ifdef __cplusplus
9135
# #include <cygwin/cygwin_dll.h>
9136
# DECLARE_CYGWIN_DLL( DllMain );
9138
# HINSTANCE __hDllInstance_base;
9141
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
9143
# __hDllInstance_base = hInst;
9146
# /* ltdll.c ends here */
9147
# This is a source program that is used to create import libraries
9148
# on Windows for dlls which lack them. Don't remove nor modify the
9149
# starting and closing comments
9150
# /* impgen.c starts here */
9151
# /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
9153
# This file is part of GNU libtool.
9155
# This program is free software; you can redistribute it and/or modify
9156
# it under the terms of the GNU General Public License as published by
9157
# the Free Software Foundation; either version 2 of the License, or
9158
# (at your option) any later version.
9160
# This program is distributed in the hope that it will be useful,
9161
# but WITHOUT ANY WARRANTY; without even the implied warranty of
9162
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9163
# GNU General Public License for more details.
9165
# You should have received a copy of the GNU General Public License
9166
# along with this program; if not, write to the Free Software
9167
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9170
# #include <stdio.h> /* for printf() */
9171
# #include <unistd.h> /* for open(), lseek(), read() */
9172
# #include <fcntl.h> /* for O_RDONLY, O_BINARY */
9173
# #include <string.h> /* for strdup() */
9175
# /* O_BINARY isn't required (or even defined sometimes) under Unix */
9177
# #define O_BINARY 0
9180
# static unsigned int
9181
# pe_get16 (fd, offset)
9185
# unsigned char b[2];
9186
# lseek (fd, offset, SEEK_SET);
9188
# return b[0] + (b[1]<<8);
9191
# static unsigned int
9192
# pe_get32 (fd, offset)
9196
# unsigned char b[4];
9197
# lseek (fd, offset, SEEK_SET);
9199
# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
9202
# static unsigned int
9206
# unsigned char *b = ptr;
9207
# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
9216
# unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
9217
# unsigned long export_rva, export_size, nsections, secptr, expptr;
9218
# unsigned long name_rvas, nexp;
9219
# unsigned char *expdata, *erva;
9220
# char *filename, *dll_name;
9222
# filename = argv[1];
9224
# dll = open(filename, O_RDONLY|O_BINARY);
9228
# dll_name = filename;
9230
# for (i=0; filename[i]; i++)
9231
# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
9232
# dll_name = filename + i +1;
9234
# pe_header_offset = pe_get32 (dll, 0x3c);
9235
# opthdr_ofs = pe_header_offset + 4 + 20;
9236
# num_entries = pe_get32 (dll, opthdr_ofs + 92);
9238
# if (num_entries < 1) /* no exports */
9241
# export_rva = pe_get32 (dll, opthdr_ofs + 96);
9242
# export_size = pe_get32 (dll, opthdr_ofs + 100);
9243
# nsections = pe_get16 (dll, pe_header_offset + 4 +2);
9244
# secptr = (pe_header_offset + 4 + 20 +
9245
# pe_get16 (dll, pe_header_offset + 4 + 16));
9248
# for (i = 0; i < nsections; i++)
9251
# unsigned long secptr1 = secptr + 40 * i;
9252
# unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
9253
# unsigned long vsize = pe_get32 (dll, secptr1 + 16);
9254
# unsigned long fptr = pe_get32 (dll, secptr1 + 20);
9255
# lseek(dll, secptr1, SEEK_SET);
9256
# read(dll, sname, 8);
9257
# if (vaddr <= export_rva && vaddr+vsize > export_rva)
9259
# expptr = fptr + (export_rva - vaddr);
9260
# if (export_rva + export_size > vaddr + vsize)
9261
# export_size = vsize - (export_rva - vaddr);
9266
# expdata = (unsigned char*)malloc(export_size);
9267
# lseek (dll, expptr, SEEK_SET);
9268
# read (dll, expdata, export_size);
9269
# erva = expdata - export_rva;
9271
# nexp = pe_as32 (expdata+24);
9272
# name_rvas = pe_as32 (expdata+32);
9274
# printf ("EXPORTS\n");
9275
# for (i = 0; i<nexp; i++)
9277
# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
9278
# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
9283
# /* impgen.c ends here */
9289
# We use sed instead of cat because bash on DJGPP gets confused if
9290
# if finds mixed CR/LF and LF-only lines. Since sed operates in
9291
# text mode, it properly converts lines to CR/LF. This bash problem
9292
# is reportedly fixed, but why not run on old versions too?
9293
sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
9295
mv -f "${ofile}T" "$ofile" || \
9296
(rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
9304
# This can be used to rebuild libtool when needed
9305
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
9307
# Always use our own libtool.
9308
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9310
# Prevent multiple expansion
9315
for ac_header in locale.h
9317
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9318
if eval "test \"\${$as_ac_Header+set}\" = set"; then
9319
echo "$as_me:$LINENO: checking for $ac_header" >&5
9320
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9321
if eval "test \"\${$as_ac_Header+set}\" = set"; then
9322
echo $ECHO_N "(cached) $ECHO_C" >&6
9324
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9325
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9327
# Is the header compilable?
9328
echo "$as_me:$LINENO: checking $ac_header usability" >&5
9329
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9330
cat >conftest.$ac_ext <<_ACEOF
9331
#line $LINENO "configure"
9334
cat confdefs.h >>conftest.$ac_ext
9335
cat >>conftest.$ac_ext <<_ACEOF
9336
/* end confdefs.h. */
9337
$ac_includes_default
9338
#include <$ac_header>
9340
rm -f conftest.$ac_objext
9341
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9342
(eval $ac_compile) 2>&5
9344
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9345
(exit $ac_status); } &&
9346
{ ac_try='test -s conftest.$ac_objext'
9347
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9350
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9351
(exit $ac_status); }; }; then
9352
ac_header_compiler=yes
9354
echo "$as_me: failed program was:" >&5
9355
sed 's/^/| /' conftest.$ac_ext >&5
9357
ac_header_compiler=no
9359
rm -f conftest.$ac_objext conftest.$ac_ext
9360
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9361
echo "${ECHO_T}$ac_header_compiler" >&6
9363
# Is the header present?
9364
echo "$as_me:$LINENO: checking $ac_header presence" >&5
9365
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9366
cat >conftest.$ac_ext <<_ACEOF
9367
#line $LINENO "configure"
9370
cat confdefs.h >>conftest.$ac_ext
9371
cat >>conftest.$ac_ext <<_ACEOF
9372
/* end confdefs.h. */
9373
#include <$ac_header>
9375
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9376
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9378
grep -v '^ *+' conftest.er1 >conftest.err
9380
cat conftest.err >&5
9381
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9382
(exit $ac_status); } >/dev/null; then
9383
if test -s conftest.err; then
9384
ac_cpp_err=$ac_c_preproc_warn_flag
9391
if test -z "$ac_cpp_err"; then
9392
ac_header_preproc=yes
9394
echo "$as_me: failed program was:" >&5
9395
sed 's/^/| /' conftest.$ac_ext >&5
9397
ac_header_preproc=no
9399
rm -f conftest.err conftest.$ac_ext
9400
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9401
echo "${ECHO_T}$ac_header_preproc" >&6
9403
# So? What about this header?
9404
case $ac_header_compiler:$ac_header_preproc in
9406
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9407
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9408
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9409
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9412
## ------------------------------------ ##
9413
## Report this to bug-autoconf@gnu.org. ##
9414
## ------------------------------------ ##
9417
sed "s/^/$as_me: WARNING: /" >&2
9420
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9421
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9422
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9423
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9424
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9425
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9428
## ------------------------------------ ##
9429
## Report this to bug-autoconf@gnu.org. ##
9430
## ------------------------------------ ##
9433
sed "s/^/$as_me: WARNING: /" >&2
9436
echo "$as_me:$LINENO: checking for $ac_header" >&5
9437
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9438
if eval "test \"\${$as_ac_Header+set}\" = set"; then
9439
echo $ECHO_N "(cached) $ECHO_C" >&6
9441
eval "$as_ac_Header=$ac_header_preproc"
9443
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9444
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9447
if test `eval echo '${'$as_ac_Header'}'` = yes; then
9448
cat >>confdefs.h <<_ACEOF
9449
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9456
echo "$as_me:$LINENO: checking for uint8" >&5
9457
echo $ECHO_N "checking for uint8... $ECHO_C" >&6
9458
if test "${ac_cv_type_uint8+set}" = set; then
9459
echo $ECHO_N "(cached) $ECHO_C" >&6
9461
cat >conftest.$ac_ext <<_ACEOF
9462
#line $LINENO "configure"
9465
cat confdefs.h >>conftest.$ac_ext
9466
cat >>conftest.$ac_ext <<_ACEOF
9467
/* end confdefs.h. */
9468
$ac_includes_default
9480
rm -f conftest.$ac_objext
9481
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9482
(eval $ac_compile) 2>&5
9484
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9485
(exit $ac_status); } &&
9486
{ ac_try='test -s conftest.$ac_objext'
9487
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9490
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9491
(exit $ac_status); }; }; then
9492
ac_cv_type_uint8=yes
9494
echo "$as_me: failed program was:" >&5
9495
sed 's/^/| /' conftest.$ac_ext >&5
9499
rm -f conftest.$ac_objext conftest.$ac_ext
9501
echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
9502
echo "${ECHO_T}$ac_cv_type_uint8" >&6
9503
if test $ac_cv_type_uint8 = yes; then
9505
cat >>confdefs.h <<_ACEOF
9506
#define HAVE_UINT8 1
9512
echo "$as_me:$LINENO: checking for int timezone" >&5
9513
echo $ECHO_N "checking for int timezone... $ECHO_C" >&6
9514
if test "${pgac_cv_var_int_timezone+set}" = set; then
9515
echo $ECHO_N "(cached) $ECHO_C" >&6
9517
cat >conftest.$ac_ext <<_ACEOF
9518
#line $LINENO "configure"
9521
cat confdefs.h >>conftest.$ac_ext
9522
cat >>conftest.$ac_ext <<_ACEOF
9523
/* end confdefs.h. */
9529
res = timezone / 60;
9534
rm -f conftest.$ac_objext conftest$ac_exeext
9535
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9536
(eval $ac_link) 2>&5
9538
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9539
(exit $ac_status); } &&
9540
{ ac_try='test -s conftest$ac_exeext'
9541
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9544
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9545
(exit $ac_status); }; }; then
9546
pgac_cv_var_int_timezone=yes
9548
echo "$as_me: failed program was:" >&5
9549
sed 's/^/| /' conftest.$ac_ext >&5
9551
pgac_cv_var_int_timezone=no
9553
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9555
echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
9556
echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6
9557
if test x"$pgac_cv_var_int_timezone" = xyes ; then
9559
cat >>confdefs.h <<\_ACEOF
9560
#define HAVE_INT_TIMEZONE
9565
ac_config_files="$ac_config_files Makefile"
9567
cat >confcache <<\_ACEOF
9568
# This file is a shell script that caches the results of configure
9569
# tests run on this system so they can be shared between configure
9570
# scripts and configure runs, see configure's option --config-cache.
9571
# It is not useful on other systems. If it contains results you don't
9572
# want to keep, you may remove or edit it.
9574
# config.status only pays attention to the cache file if you give it
9575
# the --recheck option to rerun configure.
9577
# `ac_cv_env_foo' variables (set or unset) will be overridden when
9578
# loading this file, other *unset* `ac_cv_foo' will be assigned the
9583
# The following way of writing the cache mishandles newlines in values,
9584
# but we know of no workaround that is simple, portable, and efficient.
9585
# So, don't put newlines in cache variables' values.
9586
# Ultrix sh set writes to stderr and can't be redirected directly,
9587
# and sets the high bit in the cache file unless we assign to the vars.
9590
case `(ac_space=' '; set | grep ac_space) 2>&1` in
9592
# `set' does not quote correctly, so add quotes (double-quote
9593
# substitution turns \\\\ into \\, and sed turns \\ into \).
9596
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9599
# `set' quotes correctly as required by POSIX, so do not add quotes.
9601
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9608
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9610
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9612
if diff $cache_file confcache >/dev/null 2>&1; then :; else
9613
if test -w $cache_file; then
9614
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9615
cat confcache >$cache_file
9617
echo "not updating unwritable cache $cache_file"
9622
test "x$prefix" = xNONE && prefix=$ac_default_prefix
9623
# Let make expand exec_prefix.
9624
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9626
# VPATH may cause trouble with some makes, so we remove $(srcdir),
9627
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9628
# trailing colons and then remove the whole line if VPATH becomes empty
9629
# (actually we leave an empty line to preserve line numbers).
9630
if test "x$srcdir" = x.; then
9631
ac_vpsub='/^[ ]*VPATH[ ]*=/{
9632
s/:*\$(srcdir):*/:/;
9633
s/:*\${srcdir}:*/:/;
9635
s/^\([^=]*=[ ]*\):*/\1/;
9641
DEFS=-DHAVE_CONFIG_H
9645
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9646
# 1. Remove the extension, and $U if already installed.
9647
ac_i=`echo "$ac_i" |
9648
sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9650
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9651
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9655
LTLIBOBJS=$ac_ltlibobjs
9658
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
9659
{ { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
9660
Usually this means the macro was only invoked conditionally." >&5
9661
echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
9662
Usually this means the macro was only invoked conditionally." >&2;}
9663
{ (exit 1); exit 1; }; }
9665
if test -z "${with_unixodbc_TRUE}" && test -z "${with_unixodbc_FALSE}"; then
9666
{ { echo "$as_me:$LINENO: error: conditional \"with_unixodbc\" was never defined.
9667
Usually this means the macro was only invoked conditionally." >&5
9668
echo "$as_me: error: conditional \"with_unixodbc\" was never defined.
9669
Usually this means the macro was only invoked conditionally." >&2;}
9670
{ (exit 1); exit 1; }; }
9672
if test -z "${with_iodbc_TRUE}" && test -z "${with_iodbc_FALSE}"; then
9673
{ { echo "$as_me:$LINENO: error: conditional \"with_iodbc\" was never defined.
9674
Usually this means the macro was only invoked conditionally." >&5
9675
echo "$as_me: error: conditional \"with_iodbc\" was never defined.
9676
Usually this means the macro was only invoked conditionally." >&2;}
9677
{ (exit 1); exit 1; }; }
9679
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9680
{ { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
9681
Usually this means the macro was only invoked conditionally." >&5
9682
echo "$as_me: error: conditional \"AMDEP\" was never defined.
9683
Usually this means the macro was only invoked conditionally." >&2;}
9684
{ (exit 1); exit 1; }; }
9686
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9687
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
9688
Usually this means the macro was only invoked conditionally." >&5
9689
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
9690
Usually this means the macro was only invoked conditionally." >&2;}
9691
{ (exit 1); exit 1; }; }
9693
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9694
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
9695
Usually this means the macro was only invoked conditionally." >&5
9696
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
9697
Usually this means the macro was only invoked conditionally." >&2;}
9698
{ (exit 1); exit 1; }; }
9701
: ${CONFIG_STATUS=./config.status}
9702
ac_clean_files_save=$ac_clean_files
9703
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9704
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9705
echo "$as_me: creating $CONFIG_STATUS" >&6;}
9706
cat >$CONFIG_STATUS <<_ACEOF
9708
# Generated by $as_me.
9709
# Run this file to recreate the current configuration.
9710
# Compiler output produced by configure, useful for debugging
9711
# configure, is in config.log if it exists.
9716
SHELL=\${CONFIG_SHELL-$SHELL}
9719
cat >>$CONFIG_STATUS <<\_ACEOF
9720
## --------------------- ##
9721
## M4sh Initialization. ##
9722
## --------------------- ##
9724
# Be Bourne compatible
9725
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9728
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9729
# is contrary to our usage. Disable this feature.
9730
alias -g '${1+"$@"}'='"$@"'
9731
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9735
# Support unset when possible.
9736
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
9743
# Work around bugs in pre-3.0 UWIN ksh.
9744
$as_unset ENV MAIL MAILPATH
9751
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9752
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9753
LC_TELEPHONE LC_TIME
9755
if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
9756
eval $as_var=C; export $as_var
9762
# Required to use basename.
9763
if expr a : '\(a\)' >/dev/null 2>&1; then
9769
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9770
as_basename=basename
9776
# Name of the executable.
9777
as_me=`$as_basename "$0" ||
9778
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9779
X"$0" : 'X\(//\)$' \| \
9780
X"$0" : 'X\(/\)$' \| \
9781
. : '\(.\)' 2>/dev/null ||
9783
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9784
/^X\/\(\/\/\)$/{ s//\1/; q; }
9785
/^X\/\(\/\).*/{ s//\1/; q; }
9789
# PATH needs CR, and LINENO needs CR and PATH.
9790
# Avoid depending upon Character Ranges.
9791
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9792
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9793
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9794
as_cr_digits='0123456789'
9795
as_cr_alnum=$as_cr_Letters$as_cr_digits
9797
# The user is always right.
9798
if test "${PATH_SEPARATOR+set}" != set; then
9799
echo "#! /bin/sh" >conf$$.sh
9800
echo "exit 0" >>conf$$.sh
9802
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9813
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9814
test "x$as_lineno_1" != "x$as_lineno_2" &&
9815
test "x$as_lineno_3" = "x$as_lineno_2" || {
9816
# Find who we are. Look in the path if we contain no path at all
9819
*[\\/]* ) as_myself=$0 ;;
9820
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9824
test -z "$as_dir" && as_dir=.
9825
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9830
# We did not find ourselves, most probably we were run as `sh COMMAND'
9831
# in which case we are not to be found in the path.
9832
if test "x$as_myself" = x; then
9835
if test ! -f "$as_myself"; then
9836
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9837
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9838
{ (exit 1); exit 1; }; }
9840
case $CONFIG_SHELL in
9842
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9843
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9846
test -z "$as_dir" && as_dir=.
9847
for as_base in sh bash ksh sh5; do
9850
if ("$as_dir/$as_base" -c '
9853
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9854
test "x$as_lineno_1" != "x$as_lineno_2" &&
9855
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
9856
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9857
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9858
CONFIG_SHELL=$as_dir/$as_base
9860
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9868
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9869
# uniformly replaced by the line number. The first 'sed' inserts a
9870
# line-number line before each line; the second 'sed' does the real
9871
# work. The second script uses 'N' to pair each line-number line
9872
# with the numbered line, and appends trailing '-' during
9873
# substitution so that $LINENO is not a special case at line end.
9874
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9875
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9876
sed '=' <$as_myself |
9881
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9884
s,^['$as_cr_digits']*\n,,
9886
chmod +x $as_me.lineno ||
9887
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9888
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9889
{ (exit 1); exit 1; }; }
9891
# Don't try to exec as it changes $[0], causing all sort of problems
9892
# (the dirname of $[0] is not the place where we might find the
9893
# original and so on. Autoconf is especially sensible to this).
9895
# Exit status is that of the last command.
9900
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9901
*c*,-n*) ECHO_N= ECHO_C='
9903
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9904
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
9907
if expr a : '\(a\)' >/dev/null 2>&1; then
9913
rm -f conf$$ conf$$.exe conf$$.file
9915
if ln -s conf$$.file conf$$ 2>/dev/null; then
9916
# We could just check for DJGPP; but this test a) works b) is more generic
9917
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9918
if test -f conf$$.exe; then
9919
# Don't use ln at all; we don't have any links
9924
elif ln conf$$.file conf$$ 2>/dev/null; then
9929
rm -f conf$$ conf$$.exe conf$$.file
9931
if mkdir -p . 2>/dev/null; then
9937
as_executable_p="test -f"
9939
# Sed expression to map a string onto a valid CPP name.
9940
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
9942
# Sed expression to map a string onto a valid variable name.
9943
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
9947
# We need space, tab and new line, in precisely that order.
9957
# Open the log real soon, to keep \$[0] and so on meaningful, and to
9958
# report actual input values of CONFIG_FILES etc. instead of their
9959
# values after options handling. Logging --version etc. is OK.
9963
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9964
## Running $as_me. ##
9969
This file was extended by psqlodbc $as_me 07.03.0200, which was
9970
generated by GNU Autoconf 2.57. Invocation command line was
9972
CONFIG_FILES = $CONFIG_FILES
9973
CONFIG_HEADERS = $CONFIG_HEADERS
9974
CONFIG_LINKS = $CONFIG_LINKS
9975
CONFIG_COMMANDS = $CONFIG_COMMANDS
9979
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9983
# Files that config.status was made for.
9984
if test -n "$ac_config_files"; then
9985
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9988
if test -n "$ac_config_headers"; then
9989
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9992
if test -n "$ac_config_links"; then
9993
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9996
if test -n "$ac_config_commands"; then
9997
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10000
cat >>$CONFIG_STATUS <<\_ACEOF
10003
\`$as_me' instantiates files from templates according to the
10004
current configuration.
10006
Usage: $0 [OPTIONS] [FILE]...
10008
-h, --help print this help, then exit
10009
-V, --version print version number, then exit
10010
-q, --quiet do not print progress messages
10011
-d, --debug don't remove temporary files
10012
--recheck update $as_me by reconfiguring in the same conditions
10013
--file=FILE[:TEMPLATE]
10014
instantiate the configuration file FILE
10015
--header=FILE[:TEMPLATE]
10016
instantiate the configuration header FILE
10018
Configuration files:
10021
Configuration headers:
10024
Configuration commands:
10027
Report bugs to <bug-autoconf@gnu.org>."
10030
cat >>$CONFIG_STATUS <<_ACEOF
10032
psqlodbc config.status 07.03.0200
10033
configured by $0, generated by GNU Autoconf 2.57,
10034
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10036
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
10037
Free Software Foundation, Inc.
10038
This config.status script is free software; the Free Software Foundation
10039
gives unlimited permission to copy, distribute and modify it."
10044
cat >>$CONFIG_STATUS <<\_ACEOF
10045
# If no file are specified by the user, then we need to provide default
10046
# value. By we need to know if files were specified by the user.
10052
ac_option=`expr "x$1" : 'x\([^=]*\)='`
10053
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10061
*) # This is not an option, so the user has probably given explicit
10064
ac_need_defaults=false;;
10068
# Handling of the options.
10070
cat >>$CONFIG_STATUS <<\_ACEOF
10071
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10073
--version | --vers* | -V )
10074
echo "$ac_cs_version"; exit 0 ;;
10076
# Conflict between --help and --header
10077
{ { echo "$as_me:$LINENO: error: ambiguous option: $1
10078
Try \`$0 --help' for more information." >&5
10079
echo "$as_me: error: ambiguous option: $1
10080
Try \`$0 --help' for more information." >&2;}
10081
{ (exit 1); exit 1; }; };;
10082
--help | --hel | -h )
10083
echo "$ac_cs_usage"; exit 0 ;;
10084
--debug | --d* | -d )
10086
--file | --fil | --fi | --f )
10088
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10089
ac_need_defaults=false;;
10090
--header | --heade | --head | --hea )
10092
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10093
ac_need_defaults=false;;
10094
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
10095
| -silent | --silent | --silen | --sile | --sil | --si | --s)
10098
# This is an error.
10099
-*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10100
Try \`$0 --help' for more information." >&5
10101
echo "$as_me: error: unrecognized option: $1
10102
Try \`$0 --help' for more information." >&2;}
10103
{ (exit 1); exit 1; }; } ;;
10105
*) ac_config_targets="$ac_config_targets $1" ;;
10111
ac_configure_extra_args=
10113
if $ac_cs_silent; then
10115
ac_configure_extra_args="$ac_configure_extra_args --silent"
10119
cat >>$CONFIG_STATUS <<_ACEOF
10120
if \$ac_cs_recheck; then
10121
echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10122
exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10127
cat >>$CONFIG_STATUS <<_ACEOF
10129
# INIT-COMMANDS section.
10132
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10138
cat >>$CONFIG_STATUS <<\_ACEOF
10139
for ac_config_target in $ac_config_targets
10141
case "$ac_config_target" in
10142
# Handling of arguments.
10143
"Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10144
"depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10145
"config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10146
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10147
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10148
{ (exit 1); exit 1; }; };;
10152
# If the user did not use the arguments to specify the items to instantiate,
10153
# then the envvar interface is used. Set only those that are not.
10154
# We use the long form for the default assignment because of an extremely
10155
# bizarre bug on SunOS 4.1.3.
10156
if $ac_need_defaults; then
10157
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10158
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10159
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10162
# Have a temporary directory for convenience. Make it in the build tree
10163
# simply because there is no reason to put it here, and in addition,
10164
# creating and moving files from /tmp can sometimes cause problems.
10165
# Create a temporary directory, and hook for its removal unless debugging.
10168
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10169
trap '{ (exit 1); exit 1; }' 1 2 13 15
10172
# Create a (secure) tmp directory for tmp files.
10175
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
10176
test -n "$tmp" && test -d "$tmp"
10179
tmp=./confstat$$-$RANDOM
10180
(umask 077 && mkdir $tmp)
10183
echo "$me: cannot create a temporary directory in ." >&2
10184
{ (exit 1); exit 1; }
10189
cat >>$CONFIG_STATUS <<_ACEOF
10192
# CONFIG_FILES section.
10195
# No need to generate the scripts if there are no CONFIG_FILES.
10196
# This happens for instance when ./config.status config.h
10197
if test -n "\$CONFIG_FILES"; then
10198
# Protect against being on the right side of a sed subst in config.status.
10199
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10200
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10201
s,@SHELL@,$SHELL,;t t
10202
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10203
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10204
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10205
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10206
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10207
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10208
s,@exec_prefix@,$exec_prefix,;t t
10209
s,@prefix@,$prefix,;t t
10210
s,@program_transform_name@,$program_transform_name,;t t
10211
s,@bindir@,$bindir,;t t
10212
s,@sbindir@,$sbindir,;t t
10213
s,@libexecdir@,$libexecdir,;t t
10214
s,@datadir@,$datadir,;t t
10215
s,@sysconfdir@,$sysconfdir,;t t
10216
s,@sharedstatedir@,$sharedstatedir,;t t
10217
s,@localstatedir@,$localstatedir,;t t
10218
s,@libdir@,$libdir,;t t
10219
s,@includedir@,$includedir,;t t
10220
s,@oldincludedir@,$oldincludedir,;t t
10221
s,@infodir@,$infodir,;t t
10222
s,@mandir@,$mandir,;t t
10223
s,@build_alias@,$build_alias,;t t
10224
s,@host_alias@,$host_alias,;t t
10225
s,@target_alias@,$target_alias,;t t
10226
s,@DEFS@,$DEFS,;t t
10227
s,@ECHO_C@,$ECHO_C,;t t
10228
s,@ECHO_N@,$ECHO_N,;t t
10229
s,@ECHO_T@,$ECHO_T,;t t
10230
s,@LIBS@,$LIBS,;t t
10231
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10232
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10233
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10234
s,@CYGPATH_W@,$CYGPATH_W,;t t
10235
s,@PACKAGE@,$PACKAGE,;t t
10236
s,@VERSION@,$VERSION,;t t
10237
s,@ACLOCAL@,$ACLOCAL,;t t
10238
s,@AUTOCONF@,$AUTOCONF,;t t
10239
s,@AUTOMAKE@,$AUTOMAKE,;t t
10240
s,@AUTOHEADER@,$AUTOHEADER,;t t
10241
s,@MAKEINFO@,$MAKEINFO,;t t
10242
s,@AMTAR@,$AMTAR,;t t
10243
s,@install_sh@,$install_sh,;t t
10244
s,@STRIP@,$STRIP,;t t
10245
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
10246
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
10248
s,@SET_MAKE@,$SET_MAKE,;t t
10249
s,@am__leading_dot@,$am__leading_dot,;t t
10250
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
10251
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
10252
s,@MAINT@,$MAINT,;t t
10253
s,@with_unixodbc_TRUE@,$with_unixodbc_TRUE,;t t
10254
s,@with_unixodbc_FALSE@,$with_unixodbc_FALSE,;t t
10255
s,@with_iodbc_TRUE@,$with_iodbc_TRUE,;t t
10256
s,@with_iodbc_FALSE@,$with_iodbc_FALSE,;t t
10258
s,@CFLAGS@,$CFLAGS,;t t
10259
s,@LDFLAGS@,$LDFLAGS,;t t
10260
s,@CPPFLAGS@,$CPPFLAGS,;t t
10261
s,@ac_ct_CC@,$ac_ct_CC,;t t
10262
s,@EXEEXT@,$EXEEXT,;t t
10263
s,@OBJEXT@,$OBJEXT,;t t
10264
s,@DEPDIR@,$DEPDIR,;t t
10265
s,@am__include@,$am__include,;t t
10266
s,@am__quote@,$am__quote,;t t
10267
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
10268
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
10269
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
10270
s,@CCDEPMODE@,$CCDEPMODE,;t t
10271
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
10272
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
10273
s,@odbcinst_ini_dir@,$odbcinst_ini_dir,;t t
10274
s,@build@,$build,;t t
10275
s,@build_cpu@,$build_cpu,;t t
10276
s,@build_vendor@,$build_vendor,;t t
10277
s,@build_os@,$build_os,;t t
10278
s,@host@,$host,;t t
10279
s,@host_cpu@,$host_cpu,;t t
10280
s,@host_vendor@,$host_vendor,;t t
10281
s,@host_os@,$host_os,;t t
10282
s,@LN_S@,$LN_S,;t t
10283
s,@ECHO@,$ECHO,;t t
10284
s,@RANLIB@,$RANLIB,;t t
10285
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
10287
s,@EGREP@,$EGREP,;t t
10288
s,@LIBTOOL@,$LIBTOOL,;t t
10289
s,@LIBOBJS@,$LIBOBJS,;t t
10290
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
10295
cat >>$CONFIG_STATUS <<\_ACEOF
10296
# Split the substitutions into bite-sized pieces for seds with
10297
# small command number limits, like on Digital OSF/1 and HP-UX.
10298
ac_max_sed_lines=48
10299
ac_sed_frag=1 # Number of current file.
10300
ac_beg=1 # First line for current file.
10301
ac_end=$ac_max_sed_lines # Line after last line for current file.
10304
while $ac_more_lines; do
10305
if test $ac_beg -gt 1; then
10306
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10308
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10310
if test ! -s $tmp/subs.frag; then
10311
ac_more_lines=false
10313
# The purpose of the label and of the branching condition is to
10314
# speed up the sed processing (if there are no `@' at all, there
10315
# is no need to browse any of the substitutions).
10316
# These are the two extra sed commands mentioned above.
10318
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10319
if test -z "$ac_sed_cmds"; then
10320
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10322
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10324
ac_sed_frag=`expr $ac_sed_frag + 1`
10326
ac_end=`expr $ac_end + $ac_max_sed_lines`
10329
if test -z "$ac_sed_cmds"; then
10332
fi # test -n "$CONFIG_FILES"
10335
cat >>$CONFIG_STATUS <<\_ACEOF
10336
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10337
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10339
- | *:- | *:-:* ) # input from stdin
10341
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10342
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10343
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10344
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10345
* ) ac_file_in=$ac_file.in ;;
10348
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10349
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10350
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10351
X"$ac_file" : 'X\(//\)[^/]' \| \
10352
X"$ac_file" : 'X\(//\)$' \| \
10353
X"$ac_file" : 'X\(/\)' \| \
10354
. : '\(.\)' 2>/dev/null ||
10356
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10357
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
10358
/^X\(\/\/\)$/{ s//\1/; q; }
10359
/^X\(\/\).*/{ s//\1/; q; }
10361
{ if $as_mkdir_p; then
10366
while test ! -d "$as_dir"; do
10367
as_dirs="$as_dir $as_dirs"
10368
as_dir=`(dirname "$as_dir") 2>/dev/null ||
10369
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10370
X"$as_dir" : 'X\(//\)[^/]' \| \
10371
X"$as_dir" : 'X\(//\)$' \| \
10372
X"$as_dir" : 'X\(/\)' \| \
10373
. : '\(.\)' 2>/dev/null ||
10375
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10376
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
10377
/^X\(\/\/\)$/{ s//\1/; q; }
10378
/^X\(\/\).*/{ s//\1/; q; }
10381
test ! -n "$as_dirs" || mkdir $as_dirs
10382
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10383
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10384
{ (exit 1); exit 1; }; }; }
10388
if test "$ac_dir" != .; then
10389
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10390
# A "../" for each directory in $ac_dir_suffix.
10391
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10393
ac_dir_suffix= ac_top_builddir=
10397
.) # No --srcdir option. We are building in place.
10399
if test -z "$ac_top_builddir"; then
10402
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10404
[\\/]* | ?:[\\/]* ) # Absolute path.
10405
ac_srcdir=$srcdir$ac_dir_suffix;
10406
ac_top_srcdir=$srcdir ;;
10407
*) # Relative path.
10408
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10409
ac_top_srcdir=$ac_top_builddir$srcdir ;;
10411
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10413
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
10414
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
10415
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10416
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10420
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10421
*) ac_INSTALL=$ac_top_builddir$INSTALL ;;
10424
if test x"$ac_file" != x-; then
10425
{ echo "$as_me:$LINENO: creating $ac_file" >&5
10426
echo "$as_me: creating $ac_file" >&6;}
10429
# Let's still pretend it is `configure' which instantiates (i.e., don't
10430
# use $as_me), people would be surprised to read:
10431
# /* config.h. Generated by config.status. */
10432
if test x"$ac_file" = x-; then
10435
configure_input="$ac_file. "
10437
configure_input=$configure_input"Generated from `echo $ac_file_in |
10438
sed 's,.*/,,'` by configure."
10440
# First look for the input files in the build tree, otherwise in the
10442
ac_file_inputs=`IFS=:
10443
for f in $ac_file_in; do
10445
-) echo $tmp/stdin ;;
10447
# Absolute (can't be DOS-style, as IFS=:)
10448
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10449
echo "$as_me: error: cannot find input file: $f" >&2;}
10450
{ (exit 1); exit 1; }; }
10453
if test -f "$f"; then
10456
elif test -f "$srcdir/$f"; then
10461
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10462
echo "$as_me: error: cannot find input file: $f" >&2;}
10463
{ (exit 1); exit 1; }; }
10466
done` || { (exit 1); exit 1; }
10468
cat >>$CONFIG_STATUS <<_ACEOF
10472
cat >>$CONFIG_STATUS <<\_ACEOF
10474
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10475
s,@configure_input@,$configure_input,;t t
10476
s,@srcdir@,$ac_srcdir,;t t
10477
s,@abs_srcdir@,$ac_abs_srcdir,;t t
10478
s,@top_srcdir@,$ac_top_srcdir,;t t
10479
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10480
s,@builddir@,$ac_builddir,;t t
10481
s,@abs_builddir@,$ac_abs_builddir,;t t
10482
s,@top_builddir@,$ac_top_builddir,;t t
10483
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10484
s,@INSTALL@,$ac_INSTALL,;t t
10485
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10487
if test x"$ac_file" != x-; then
10488
mv $tmp/out $ac_file
10496
cat >>$CONFIG_STATUS <<\_ACEOF
10499
# CONFIG_HEADER section.
10502
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10503
# NAME is the cpp macro being defined and VALUE is the value it is being given.
10505
# ac_d sets the value in "#define NAME VALUE" lines.
10506
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10507
ac_dB='[ ].*$,\1#\2'
10510
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10511
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10512
ac_uB='$,\1#\2define\3'
10516
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10517
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10519
- | *:- | *:-:* ) # input from stdin
10521
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10522
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10523
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10524
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10525
* ) ac_file_in=$ac_file.in ;;
10528
test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
10529
echo "$as_me: creating $ac_file" >&6;}
10531
# First look for the input files in the build tree, otherwise in the
10533
ac_file_inputs=`IFS=:
10534
for f in $ac_file_in; do
10536
-) echo $tmp/stdin ;;
10538
# Absolute (can't be DOS-style, as IFS=:)
10539
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10540
echo "$as_me: error: cannot find input file: $f" >&2;}
10541
{ (exit 1); exit 1; }; }
10544
if test -f "$f"; then
10547
elif test -f "$srcdir/$f"; then
10552
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10553
echo "$as_me: error: cannot find input file: $f" >&2;}
10554
{ (exit 1); exit 1; }; }
10557
done` || { (exit 1); exit 1; }
10558
# Remove the trailing spaces.
10559
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
10563
# Transform confdefs.h into two sed scripts, `conftest.defines' and
10564
# `conftest.undefs', that substitutes the proper values into
10565
# config.h.in to produce config.h. The first handles `#define'
10566
# templates, and the second `#undef' templates.
10567
# And first: Protect against being on the right side of a sed subst in
10568
# config.status. Protect against being in an unquoted here document
10569
# in config.status.
10570
rm -f conftest.defines conftest.undefs
10571
# Using a here document instead of a string reduces the quoting nightmare.
10572
# Putting comments in sed scripts is not portable.
10574
# `end' is used to avoid that the second main sed command (meant for
10575
# 0-ary CPP macros) applies to n-ary macro definitions.
10576
# See the Autoconf documentation for `clear'.
10577
cat >confdef2sed.sed <<\_ACEOF
10582
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10584
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10587
# If some macros were called several times there might be several times
10588
# the same #defines, which is useless. Nevertheless, we may not want to
10589
# sort them, since we want the *last* AC-DEFINE to be honored.
10590
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10591
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10592
rm -f confdef2sed.sed
10594
# This sed command replaces #undef with comments. This is necessary, for
10595
# example, in the case of _POSIX_SOURCE, which is predefined and required
10596
# on some systems where configure will not decide to define it.
10597
cat >>conftest.undefs <<\_ACEOF
10598
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10601
# Break up conftest.defines because some shells have a limit on the size
10602
# of here documents, and old seds have small limits too (100 cmds).
10603
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10604
echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10605
echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10606
echo ' :' >>$CONFIG_STATUS
10607
rm -f conftest.tail
10608
while grep . conftest.defines >/dev/null
10610
# Write a limited-size here document to $tmp/defines.sed.
10611
echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10612
# Speed up: don't consider the non `#define' lines.
10613
echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
10614
# Work around the forget-to-reset-the-flag bug.
10615
echo 't clr' >>$CONFIG_STATUS
10616
echo ': clr' >>$CONFIG_STATUS
10617
sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10619
sed -f $tmp/defines.sed $tmp/in >$tmp/out
10621
mv $tmp/out $tmp/in
10623
sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10624
rm -f conftest.defines
10625
mv conftest.tail conftest.defines
10627
rm -f conftest.defines
10628
echo ' fi # grep' >>$CONFIG_STATUS
10629
echo >>$CONFIG_STATUS
10631
# Break up conftest.undefs because some shells have a limit on the size
10632
# of here documents, and old seds have small limits too (100 cmds).
10633
echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10634
rm -f conftest.tail
10635
while grep . conftest.undefs >/dev/null
10637
# Write a limited-size here document to $tmp/undefs.sed.
10638
echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10639
# Speed up: don't consider the non `#undef'
10640
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
10641
# Work around the forget-to-reset-the-flag bug.
10642
echo 't clr' >>$CONFIG_STATUS
10643
echo ': clr' >>$CONFIG_STATUS
10644
sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10646
sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10648
mv $tmp/out $tmp/in
10650
sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10651
rm -f conftest.undefs
10652
mv conftest.tail conftest.undefs
10654
rm -f conftest.undefs
10656
cat >>$CONFIG_STATUS <<\_ACEOF
10657
# Let's still pretend it is `configure' which instantiates (i.e., don't
10658
# use $as_me), people would be surprised to read:
10659
# /* config.h. Generated by config.status. */
10660
if test x"$ac_file" = x-; then
10661
echo "/* Generated by configure. */" >$tmp/config.h
10663
echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
10665
cat $tmp/in >>$tmp/config.h
10667
if test x"$ac_file" != x-; then
10668
if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
10669
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10670
echo "$as_me: $ac_file is unchanged" >&6;}
10672
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10673
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10674
X"$ac_file" : 'X\(//\)[^/]' \| \
10675
X"$ac_file" : 'X\(//\)$' \| \
10676
X"$ac_file" : 'X\(/\)' \| \
10677
. : '\(.\)' 2>/dev/null ||
10679
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10680
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
10681
/^X\(\/\/\)$/{ s//\1/; q; }
10682
/^X\(\/\).*/{ s//\1/; q; }
10684
{ if $as_mkdir_p; then
10689
while test ! -d "$as_dir"; do
10690
as_dirs="$as_dir $as_dirs"
10691
as_dir=`(dirname "$as_dir") 2>/dev/null ||
10692
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10693
X"$as_dir" : 'X\(//\)[^/]' \| \
10694
X"$as_dir" : 'X\(//\)$' \| \
10695
X"$as_dir" : 'X\(/\)' \| \
10696
. : '\(.\)' 2>/dev/null ||
10698
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10699
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
10700
/^X\(\/\/\)$/{ s//\1/; q; }
10701
/^X\(\/\).*/{ s//\1/; q; }
10704
test ! -n "$as_dirs" || mkdir $as_dirs
10705
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10706
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10707
{ (exit 1); exit 1; }; }; }
10710
mv $tmp/config.h $ac_file
10714
rm -f $tmp/config.h
10716
# Compute $ac_file's index in $config_headers.
10718
for _am_header in $config_headers :; do
10719
case $_am_header in
10720
$ac_file | $ac_file:* )
10723
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
10726
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
10727
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10728
X$ac_file : 'X\(//\)[^/]' \| \
10729
X$ac_file : 'X\(//\)$' \| \
10730
X$ac_file : 'X\(/\)' \| \
10731
. : '\(.\)' 2>/dev/null ||
10733
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10734
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
10735
/^X\(\/\/\)$/{ s//\1/; q; }
10736
/^X\(\/\).*/{ s//\1/; q; }
10737
s/.*/./; q'`/stamp-h$_am_stamp_count
10740
cat >>$CONFIG_STATUS <<\_ACEOF
10743
# CONFIG_COMMANDS section.
10745
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10746
ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10747
ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10748
ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10749
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10750
X"$ac_dest" : 'X\(//\)[^/]' \| \
10751
X"$ac_dest" : 'X\(//\)$' \| \
10752
X"$ac_dest" : 'X\(/\)' \| \
10753
. : '\(.\)' 2>/dev/null ||
10755
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10756
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
10757
/^X\(\/\/\)$/{ s//\1/; q; }
10758
/^X\(\/\).*/{ s//\1/; q; }
10762
if test "$ac_dir" != .; then
10763
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10764
# A "../" for each directory in $ac_dir_suffix.
10765
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10767
ac_dir_suffix= ac_top_builddir=
10771
.) # No --srcdir option. We are building in place.
10773
if test -z "$ac_top_builddir"; then
10776
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10778
[\\/]* | ?:[\\/]* ) # Absolute path.
10779
ac_srcdir=$srcdir$ac_dir_suffix;
10780
ac_top_srcdir=$srcdir ;;
10781
*) # Relative path.
10782
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10783
ac_top_srcdir=$ac_top_builddir$srcdir ;;
10785
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10787
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
10788
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
10789
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10790
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10793
{ echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10794
echo "$as_me: executing $ac_dest commands" >&6;}
10796
depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
10797
# Strip MF so we end up with the name of the file.
10798
mf=`echo "$mf" | sed -e 's/:.*$//'`
10799
# Check whether this is an Automake generated Makefile or not.
10800
# We used to match only the files named `Makefile.in', but
10801
# some people rename them; so instead we look at the file content.
10802
# Grep'ing the first line is not enough: some people post-process
10803
# each Makefile.in and add a new line on top of each file to say so.
10804
# So let's grep whole file.
10805
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
10806
dirpart=`(dirname "$mf") 2>/dev/null ||
10807
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10808
X"$mf" : 'X\(//\)[^/]' \| \
10809
X"$mf" : 'X\(//\)$' \| \
10810
X"$mf" : 'X\(/\)' \| \
10811
. : '\(.\)' 2>/dev/null ||
10813
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10814
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
10815
/^X\(\/\/\)$/{ s//\1/; q; }
10816
/^X\(\/\).*/{ s//\1/; q; }
10821
grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
10822
# Extract the definition of DEP_FILES from the Makefile without
10824
DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
10825
test -z "$DEPDIR" && continue
10826
# When using ansi2knr, U may be empty or an underscore; expand it
10827
U=`sed -n -e '/^U = / s///p' < "$mf"`
10828
test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
10829
# We invoke sed twice because it is the simplest approach to
10830
# changing $(DEPDIR) to its actual value in the expansion.
10831
for file in `sed -n -e '
10832
/^DEP_FILES = .*\\\\$/ {
10841
/^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
10842
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10843
# Make sure the directory exists.
10844
test -f "$dirpart/$file" && continue
10845
fdir=`(dirname "$file") 2>/dev/null ||
10846
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10847
X"$file" : 'X\(//\)[^/]' \| \
10848
X"$file" : 'X\(//\)$' \| \
10849
X"$file" : 'X\(/\)' \| \
10850
. : '\(.\)' 2>/dev/null ||
10852
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10853
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
10854
/^X\(\/\/\)$/{ s//\1/; q; }
10855
/^X\(\/\).*/{ s//\1/; q; }
10857
{ if $as_mkdir_p; then
10858
mkdir -p $dirpart/$fdir
10860
as_dir=$dirpart/$fdir
10862
while test ! -d "$as_dir"; do
10863
as_dirs="$as_dir $as_dirs"
10864
as_dir=`(dirname "$as_dir") 2>/dev/null ||
10865
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10866
X"$as_dir" : 'X\(//\)[^/]' \| \
10867
X"$as_dir" : 'X\(//\)$' \| \
10868
X"$as_dir" : 'X\(/\)' \| \
10869
. : '\(.\)' 2>/dev/null ||
10871
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10872
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
10873
/^X\(\/\/\)$/{ s//\1/; q; }
10874
/^X\(\/\).*/{ s//\1/; q; }
10877
test ! -n "$as_dirs" || mkdir $as_dirs
10878
fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
10879
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
10880
{ (exit 1); exit 1; }; }; }
10882
# echo "creating $dirpart/$file"
10883
echo '# dummy' > "$dirpart/$file"
10891
cat >>$CONFIG_STATUS <<\_ACEOF
10893
{ (exit 0); exit 0; }
10895
chmod +x $CONFIG_STATUS
10896
ac_clean_files=$ac_clean_files_save
10899
# configure is writing to config.log, and then calls config.status.
10900
# config.status does its own redirection, appending to config.log.
10901
# Unfortunately, on DOS this fails, as config.log is still kept open
10902
# by configure, so config.status won't be able to write to it; its
10903
# output is simply discarded. So we exec the FD to /dev/null,
10904
# effectively closing config.log, so it can be properly (re)opened and
10905
# appended to by config.status. When coming back to configure, we
10906
# need to make the FD available again.
10907
if test "$no_create" != yes; then
10909
ac_config_status_args=
10910
test "$silent" = yes &&
10911
ac_config_status_args="$ac_config_status_args --quiet"
10913
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10915
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
10916
# would make configure fail if this is the last instruction.
10917
$ac_cs_success || { (exit 1); exit 1; }