2
# From configure.in configure.in 1.00.
3
# Guess values for system-dependent variables and create Makefiles.
4
# Generated by GNU Autoconf 2.59.
6
# Copyright (C) 2003 Free Software Foundation, Inc.
7
# This configure script is free software; the Free Software Foundation
8
# gives unlimited permission to copy, distribute and modify it.
9
## --------------------- ##
10
## M4sh Initialization. ##
11
## --------------------- ##
13
# Be Bourne compatible
14
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18
# is contrary to our usage. Disable this feature.
19
alias -g '${1+"$@"}'='"$@"'
20
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23
DUALCASE=1; export DUALCASE # for MKS sh
25
# Support unset when possible.
26
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
33
# Work around bugs in pre-3.0 UWIN ksh.
34
$as_unset ENV MAIL MAILPATH
41
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
46
eval $as_var=C; export $as_var
52
# Required to use basename.
53
if expr a : '\(a\)' >/dev/null 2>&1; then
59
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
66
# Name of the executable.
67
as_me=`$as_basename "$0" ||
68
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
69
X"$0" : 'X\(//\)$' \| \
70
X"$0" : 'X\(/\)$' \| \
71
. : '\(.\)' 2>/dev/null ||
73
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
74
/^X\/\(\/\/\)$/{ s//\1/; q; }
75
/^X\/\(\/\).*/{ s//\1/; q; }
79
# PATH needs CR, and LINENO needs CR and PATH.
80
# Avoid depending upon Character Ranges.
81
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
82
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
83
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
84
as_cr_digits='0123456789'
85
as_cr_alnum=$as_cr_Letters$as_cr_digits
87
# The user is always right.
88
if test "${PATH_SEPARATOR+set}" != set; then
89
echo "#! /bin/sh" >conf$$.sh
90
echo "exit 0" >>conf$$.sh
92
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
103
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
104
test "x$as_lineno_1" != "x$as_lineno_2" &&
105
test "x$as_lineno_3" = "x$as_lineno_2" || {
106
# Find who we are. Look in the path if we contain no path at all
109
*[\\/]* ) as_myself=$0 ;;
110
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
114
test -z "$as_dir" && as_dir=.
115
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
120
# We did not find ourselves, most probably we were run as `sh COMMAND'
121
# in which case we are not to be found in the path.
122
if test "x$as_myself" = x; then
125
if test ! -f "$as_myself"; then
126
{ echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
127
{ (exit 1); exit 1; }; }
129
case $CONFIG_SHELL in
131
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
132
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135
test -z "$as_dir" && as_dir=.
136
for as_base in sh bash ksh sh5; do
139
if ("$as_dir/$as_base" -c '
142
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
143
test "x$as_lineno_1" != "x$as_lineno_2" &&
144
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
145
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
146
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
147
CONFIG_SHELL=$as_dir/$as_base
149
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
158
# uniformly replaced by the line number. The first 'sed' inserts a
159
# line-number line before each line; the second 'sed' does the real
160
# work. The second script uses 'N' to pair each line-number line
161
# with the numbered line, and appends trailing '-' during
162
# substitution so that $LINENO is not a special case at line end.
163
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
164
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
165
sed '=' <$as_myself |
170
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173
s,^['$as_cr_digits']*\n,,
175
chmod +x $as_me.lineno ||
176
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
177
{ (exit 1); exit 1; }; }
179
# Don't try to exec as it changes $[0], causing all sort of problems
180
# (the dirname of $[0] is not the place where we might find the
181
# original and so on. Autoconf is especially sensible to this).
183
# Exit status is that of the last command.
188
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
189
*c*,-n*) ECHO_N= ECHO_C='
191
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
192
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
195
if expr a : '\(a\)' >/dev/null 2>&1; then
201
rm -f conf$$ conf$$.exe conf$$.file
203
if ln -s conf$$.file conf$$ 2>/dev/null; then
204
# We could just check for DJGPP; but this test a) works b) is more generic
205
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
206
if test -f conf$$.exe; then
207
# Don't use ln at all; we don't have any links
212
elif ln conf$$.file conf$$ 2>/dev/null; then
217
rm -f conf$$ conf$$.exe conf$$.file
219
if mkdir -p . 2>/dev/null; then
222
test -d ./-p && rmdir ./-p
226
as_executable_p="test -f"
228
# Sed expression to map a string onto a valid CPP name.
229
as_tr_cpp="eval 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="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
236
# We need space, tab and new line, in precisely that order.
246
# Check that we are running under the correct shell.
247
SHELL=${CONFIG_SHELL-/bin/sh}
251
# Remove one level of quotation (which was required for Make).
252
ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
257
if test "X$1" = X--no-reexec; then
258
# Discard the --no-reexec flag, and continue.
260
elif test "X$1" = X--fallback-echo; then
261
# Avoid inline document here, it may be left over
263
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
264
# Yippee, $echo works!
267
# Restart under the correct shell.
268
exec $SHELL "$0" --no-reexec ${1+"$@"}
271
if test "X$1" = X--fallback-echo; then
272
# used as fallback echo
280
# The HP-UX ksh and POSIX shell print the target directory to stdout
282
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
284
if test -z "$ECHO"; then
285
if test "X${echo_test_string+set}" != Xset; then
286
# find a string as large as possible, as long as the shell can cope with it
287
for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
288
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
289
if (echo_test_string="`eval $cmd`") 2>/dev/null &&
290
echo_test_string="`eval $cmd`" &&
291
(test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
298
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
299
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
300
test "X$echo_testing_string" = "X$echo_test_string"; then
303
# The Solaris, AIX, and Digital Unix default echo programs unquote
304
# backslashes. This makes it impossible to quote backslashes using
305
# echo "$something" | sed 's/\\/\\\\/g'
307
# So, first we look for a working echo in the user's PATH.
309
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
310
for dir in $PATH /usr/ucb; do
312
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
313
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
314
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
315
test "X$echo_testing_string" = "X$echo_test_string"; then
322
if test "X$echo" = Xecho; then
323
# We didn't find a better echo, so look for alternatives.
324
if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
325
echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
326
test "X$echo_testing_string" = "X$echo_test_string"; then
327
# This shell has a builtin print -r that does the trick.
329
elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
330
test "X$CONFIG_SHELL" != X/bin/ksh; then
331
# If we have ksh, try running configure again with it.
332
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
333
export ORIGINAL_CONFIG_SHELL
334
CONFIG_SHELL=/bin/ksh
336
exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
340
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
341
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
342
test "X$echo_testing_string" = "X$echo_test_string"; then
345
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
346
test "X$echo_testing_string" = 'X\t' &&
347
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
348
test "X$echo_testing_string" = "X$echo_test_string"; then
349
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
351
SHELL="$CONFIG_SHELL"
353
echo="$CONFIG_SHELL $0 --fallback-echo"
354
elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
355
test "X$echo_testing_string" = 'X\t' &&
356
echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
357
test "X$echo_testing_string" = "X$echo_test_string"; then
358
echo="$CONFIG_SHELL $0 --fallback-echo"
360
# maybe with a smaller string...
363
for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
364
if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
371
if test "$prev" != 'sed 50q "$0"'; then
372
echo_test_string=`eval $prev`
373
export echo_test_string
374
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376
# Oops. We lost completely, so just stick with echo.
385
# Copy echo and quote the copy suitably for passing to libtool from
386
# the Makefile, instead of quoting the original, which is used later.
388
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
389
ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
395
tagnames=${tagnames+${tagnames},}CXX
397
tagnames=${tagnames+${tagnames},}F77
400
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
401
# so uname gets run too.
402
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
409
ac_default_prefix=/usr/local
410
ac_config_libobj_dir=.
415
SHELL=${CONFIG_SHELL-/bin/sh}
417
# Maximum number of lines to put in a shell here document.
418
# This variable seems obsolete. It should probably be removed, and
419
# only ac_max_sed_lines should be used.
420
: ${ac_max_here_lines=38}
422
# Identity of this package.
429
ac_unique_file="lib/t1lib/t1base.c"
430
# Factoring default headers for most tests.
431
ac_includes_default="\
434
# include <sys/types.h>
437
# include <sys/stat.h>
448
# if !STDC_HEADERS && HAVE_MEMORY_H
454
# include <strings.h>
457
# include <inttypes.h>
467
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 LDLIBS PROGEXT CFLAGS LDFLAGS T1LIB_LT_CURRENT T1LIB_LT_REVISION T1LIB_LT_AGE T1LIB_DATA_DIR T1LIB_IDENTIFIER MAIN_TARGET MAIN_HEADER OPTIONS no_x CC T1_AA_TYPE16 T1_AA_TYPE32 T1_AA_TYPE64 T1_INT16 T1_INT32 XSUBDIRS T1LIBX_OBJS T1LIBX_SRCS T1LIBX_HEADERS XOBJS T1LIB_VERSION T1LIB_REVISION T1LIB_PATCHLEVEL T1LIB_VERSIONSTRING SET_MAKE CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CXX CXXFLAGS ac_ct_CXX CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LIBOBJS LTLIBOBJS'
470
# Initialize some variables set by options.
472
ac_init_version=false
473
# The variables have the same names as the options, with
474
# dashes changed to underlines.
482
program_transform_name=s,x,x,
490
# Installation directory options.
491
# These are left unexpanded so users can "make install exec_prefix=/foo"
492
# and all the variables that are supposed to be based on exec_prefix
493
# by default will actually change.
494
# Use braces instead of parens because sh, perl, etc. also accept them.
495
bindir='${exec_prefix}/bin'
496
sbindir='${exec_prefix}/sbin'
497
libexecdir='${exec_prefix}/libexec'
498
datadir='${prefix}/share'
499
sysconfdir='${prefix}/etc'
500
sharedstatedir='${prefix}/com'
501
localstatedir='${prefix}/var'
502
libdir='${exec_prefix}/lib'
503
includedir='${prefix}/include'
504
oldincludedir='/usr/include'
505
infodir='${prefix}/info'
506
mandir='${prefix}/man'
511
# If the previous option needs an argument, assign it.
512
if test -n "$ac_prev"; then
513
eval "$ac_prev=\$ac_option"
518
ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520
# Accept the important Cygnus configure options, so we can diagnose typos.
524
-bindir | --bindir | --bindi | --bind | --bin | --bi)
526
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
529
-build | --build | --buil | --bui | --bu)
530
ac_prev=build_alias ;;
531
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
532
build_alias=$ac_optarg ;;
534
-cache-file | --cache-file | --cache-fil | --cache-fi \
535
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
536
ac_prev=cache_file ;;
537
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
538
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
539
cache_file=$ac_optarg ;;
542
cache_file=config.cache ;;
544
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548
datadir=$ac_optarg ;;
550
-disable-* | --disable-*)
551
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
552
# Reject names that are not valid shell variable names.
553
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
555
{ (exit 1); exit 1; }; }
556
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
557
eval "enable_$ac_feature=no" ;;
559
-enable-* | --enable-*)
560
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
561
# Reject names that are not valid shell variable names.
562
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
563
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
564
{ (exit 1); exit 1; }; }
565
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
570
eval "enable_$ac_feature='$ac_optarg'" ;;
572
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
573
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
574
| --exec | --exe | --ex)
575
ac_prev=exec_prefix ;;
576
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
577
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
578
| --exec=* | --exe=* | --ex=*)
579
exec_prefix=$ac_optarg ;;
581
-gas | --gas | --ga | --g)
582
# Obsolete; use --with-gas.
585
-help | --help | --hel | --he | -h)
587
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
588
ac_init_help=recursive ;;
589
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
590
ac_init_help=short ;;
592
-host | --host | --hos | --ho)
593
ac_prev=host_alias ;;
594
-host=* | --host=* | --hos=* | --ho=*)
595
host_alias=$ac_optarg ;;
597
-includedir | --includedir | --includedi | --included | --include \
598
| --includ | --inclu | --incl | --inc)
599
ac_prev=includedir ;;
600
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
601
| --includ=* | --inclu=* | --incl=* | --inc=*)
602
includedir=$ac_optarg ;;
604
-infodir | --infodir | --infodi | --infod | --info | --inf)
606
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
607
infodir=$ac_optarg ;;
609
-libdir | --libdir | --libdi | --libd)
611
-libdir=* | --libdir=* | --libdi=* | --libd=*)
614
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
615
| --libexe | --libex | --libe)
616
ac_prev=libexecdir ;;
617
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
618
| --libexe=* | --libex=* | --libe=*)
619
libexecdir=$ac_optarg ;;
621
-localstatedir | --localstatedir | --localstatedi | --localstated \
622
| --localstate | --localstat | --localsta | --localst \
623
| --locals | --local | --loca | --loc | --lo)
624
ac_prev=localstatedir ;;
625
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
626
| --localstate=* | --localstat=* | --localsta=* | --localst=* \
627
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
628
localstatedir=$ac_optarg ;;
630
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
636
# Obsolete; use --without-fp.
639
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
640
| --no-cr | --no-c | -n)
643
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
644
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
647
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
648
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
649
| --oldin | --oldi | --old | --ol | --o)
650
ac_prev=oldincludedir ;;
651
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
652
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
653
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
654
oldincludedir=$ac_optarg ;;
656
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
661
-program-prefix | --program-prefix | --program-prefi | --program-pref \
662
| --program-pre | --program-pr | --program-p)
663
ac_prev=program_prefix ;;
664
-program-prefix=* | --program-prefix=* | --program-prefi=* \
665
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
666
program_prefix=$ac_optarg ;;
668
-program-suffix | --program-suffix | --program-suffi | --program-suff \
669
| --program-suf | --program-su | --program-s)
670
ac_prev=program_suffix ;;
671
-program-suffix=* | --program-suffix=* | --program-suffi=* \
672
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
673
program_suffix=$ac_optarg ;;
675
-program-transform-name | --program-transform-name \
676
| --program-transform-nam | --program-transform-na \
677
| --program-transform-n | --program-transform- \
678
| --program-transform | --program-transfor \
679
| --program-transfo | --program-transf \
680
| --program-trans | --program-tran \
681
| --progr-tra | --program-tr | --program-t)
682
ac_prev=program_transform_name ;;
683
-program-transform-name=* | --program-transform-name=* \
684
| --program-transform-nam=* | --program-transform-na=* \
685
| --program-transform-n=* | --program-transform-=* \
686
| --program-transform=* | --program-transfor=* \
687
| --program-transfo=* | --program-transf=* \
688
| --program-trans=* | --program-tran=* \
689
| --progr-tra=* | --program-tr=* | --program-t=*)
690
program_transform_name=$ac_optarg ;;
692
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
693
| -silent | --silent | --silen | --sile | --sil)
696
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700
sbindir=$ac_optarg ;;
702
-sharedstatedir | --sharedstatedir | --sharedstatedi \
703
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
704
| --sharedst | --shareds | --shared | --share | --shar \
706
ac_prev=sharedstatedir ;;
707
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
708
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
709
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711
sharedstatedir=$ac_optarg ;;
713
-site | --site | --sit)
715
-site=* | --site=* | --sit=*)
718
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
723
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
724
| --syscon | --sysco | --sysc | --sys | --sy)
725
ac_prev=sysconfdir ;;
726
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
727
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
728
sysconfdir=$ac_optarg ;;
730
-target | --target | --targe | --targ | --tar | --ta | --t)
731
ac_prev=target_alias ;;
732
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
733
target_alias=$ac_optarg ;;
735
-v | -verbose | --verbose | --verbos | --verbo | --verb)
738
-version | --version | --versio | --versi | --vers | -V)
742
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
743
# Reject names that are not valid shell variable names.
744
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
745
{ echo "$as_me: error: invalid package name: $ac_package" >&2
746
{ (exit 1); exit 1; }; }
747
ac_package=`echo $ac_package| sed 's/-/_/g'`
749
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
752
eval "with_$ac_package='$ac_optarg'" ;;
754
-without-* | --without-*)
755
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
756
# Reject names that are not valid shell variable names.
757
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
758
{ echo "$as_me: error: invalid package name: $ac_package" >&2
759
{ (exit 1); exit 1; }; }
760
ac_package=`echo $ac_package | sed 's/-/_/g'`
761
eval "with_$ac_package=no" ;;
764
# Obsolete; use --with-x.
767
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
768
| --x-incl | --x-inc | --x-in | --x-i)
769
ac_prev=x_includes ;;
770
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
771
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
772
x_includes=$ac_optarg ;;
774
-x-libraries | --x-libraries | --x-librarie | --x-librari \
775
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
776
ac_prev=x_libraries ;;
777
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
778
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
779
x_libraries=$ac_optarg ;;
781
-*) { echo "$as_me: error: unrecognized option: $ac_option
782
Try \`$0 --help' for more information." >&2
783
{ (exit 1); exit 1; }; }
787
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
788
# Reject names that are not valid shell variable names.
789
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
790
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
791
{ (exit 1); exit 1; }; }
792
ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
793
eval "$ac_envvar='$ac_optarg'"
797
# FIXME: should be removed in autoconf 3.0.
798
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
799
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
800
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
801
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
807
if test -n "$ac_prev"; then
808
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
809
{ echo "$as_me: error: missing argument to $ac_option" >&2
810
{ (exit 1); exit 1; }; }
813
# Be sure to have absolute paths.
814
for ac_var in exec_prefix prefix
816
eval ac_val=$`echo $ac_var`
818
[\\/$]* | ?:[\\/]* | NONE | '' ) ;;
819
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
820
{ (exit 1); exit 1; }; };;
824
# Be sure to have absolute paths.
825
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
826
localstatedir libdir includedir oldincludedir infodir mandir
828
eval ac_val=$`echo $ac_var`
830
[\\/$]* | ?:[\\/]* ) ;;
831
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832
{ (exit 1); exit 1; }; };;
836
# There might be people who depend on the old broken behavior: `$host'
837
# used to hold the argument of --host etc.
838
# FIXME: To remove some day.
843
# FIXME: To remove some day.
844
if test "x$host_alias" != x; then
845
if test "x$build_alias" = x; then
846
cross_compiling=maybe
847
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
848
If a cross compiler is detected then cross compile mode will be used." >&2
849
elif test "x$build_alias" != "x$host_alias"; then
855
test -n "$host_alias" && ac_tool_prefix=$host_alias-
857
test "$silent" = yes && exec 6>/dev/null
860
# Find the source files, if location was not specified.
861
if test -z "$srcdir"; then
862
ac_srcdir_defaulted=yes
863
# Try the directory containing this script, then its parent.
864
ac_confdir=`(dirname "$0") 2>/dev/null ||
865
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
866
X"$0" : 'X\(//\)[^/]' \| \
867
X"$0" : 'X\(//\)$' \| \
868
X"$0" : 'X\(/\)' \| \
869
. : '\(.\)' 2>/dev/null ||
871
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
872
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
873
/^X\(\/\/\)$/{ s//\1/; q; }
874
/^X\(\/\).*/{ s//\1/; q; }
877
if test ! -r $srcdir/$ac_unique_file; then
881
ac_srcdir_defaulted=no
883
if test ! -r $srcdir/$ac_unique_file; then
884
if test "$ac_srcdir_defaulted" = yes; then
885
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
886
{ (exit 1); exit 1; }; }
888
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
889
{ (exit 1); exit 1; }; }
892
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
893
{ echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
894
{ (exit 1); exit 1; }; }
895
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
896
ac_env_build_alias_set=${build_alias+set}
897
ac_env_build_alias_value=$build_alias
898
ac_cv_env_build_alias_set=${build_alias+set}
899
ac_cv_env_build_alias_value=$build_alias
900
ac_env_host_alias_set=${host_alias+set}
901
ac_env_host_alias_value=$host_alias
902
ac_cv_env_host_alias_set=${host_alias+set}
903
ac_cv_env_host_alias_value=$host_alias
904
ac_env_target_alias_set=${target_alias+set}
905
ac_env_target_alias_value=$target_alias
906
ac_cv_env_target_alias_set=${target_alias+set}
907
ac_cv_env_target_alias_value=$target_alias
908
ac_env_CC_set=${CC+set}
910
ac_cv_env_CC_set=${CC+set}
911
ac_cv_env_CC_value=$CC
912
ac_env_CFLAGS_set=${CFLAGS+set}
913
ac_env_CFLAGS_value=$CFLAGS
914
ac_cv_env_CFLAGS_set=${CFLAGS+set}
915
ac_cv_env_CFLAGS_value=$CFLAGS
916
ac_env_LDFLAGS_set=${LDFLAGS+set}
917
ac_env_LDFLAGS_value=$LDFLAGS
918
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
919
ac_cv_env_LDFLAGS_value=$LDFLAGS
920
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
921
ac_env_CPPFLAGS_value=$CPPFLAGS
922
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
923
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
924
ac_env_CPP_set=${CPP+set}
925
ac_env_CPP_value=$CPP
926
ac_cv_env_CPP_set=${CPP+set}
927
ac_cv_env_CPP_value=$CPP
928
ac_env_CXX_set=${CXX+set}
929
ac_env_CXX_value=$CXX
930
ac_cv_env_CXX_set=${CXX+set}
931
ac_cv_env_CXX_value=$CXX
932
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
933
ac_env_CXXFLAGS_value=$CXXFLAGS
934
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
935
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
936
ac_env_CXXCPP_set=${CXXCPP+set}
937
ac_env_CXXCPP_value=$CXXCPP
938
ac_cv_env_CXXCPP_set=${CXXCPP+set}
939
ac_cv_env_CXXCPP_value=$CXXCPP
940
ac_env_F77_set=${F77+set}
941
ac_env_F77_value=$F77
942
ac_cv_env_F77_set=${F77+set}
943
ac_cv_env_F77_value=$F77
944
ac_env_FFLAGS_set=${FFLAGS+set}
945
ac_env_FFLAGS_value=$FFLAGS
946
ac_cv_env_FFLAGS_set=${FFLAGS+set}
947
ac_cv_env_FFLAGS_value=$FFLAGS
950
# Report the --help message.
952
if test "$ac_init_help" = "long"; then
953
# Omit some internal or obsolete options to make the list less imposing.
954
# This message is too long to be a string in the A/UX 3.1 sh.
956
\`configure' configures this package to adapt to many kinds of systems.
958
Usage: $0 [OPTION]... [VAR=VALUE]...
960
To assign environment variables (e.g., CC, CFLAGS...), specify them as
961
VAR=VALUE. See below for descriptions of some of the useful variables.
963
Defaults for the options are specified in brackets.
966
-h, --help display this help and exit
967
--help=short display options specific to this package
968
--help=recursive display the short help of all the included packages
969
-V, --version display version information and exit
970
-q, --quiet, --silent do not print \`checking...' messages
971
--cache-file=FILE cache test results in FILE [disabled]
972
-C, --config-cache alias for \`--cache-file=config.cache'
973
-n, --no-create do not create output files
974
--srcdir=DIR find the sources in DIR [configure dir or \`..']
979
Installation directories:
980
--prefix=PREFIX install architecture-independent files in PREFIX
982
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
985
By default, \`make install' will install all the files in
986
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
987
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
988
for instance \`--prefix=\$HOME'.
990
For better control, use the options below.
992
Fine tuning of the installation directories:
993
--bindir=DIR user executables [EPREFIX/bin]
994
--sbindir=DIR system admin executables [EPREFIX/sbin]
995
--libexecdir=DIR program executables [EPREFIX/libexec]
996
--datadir=DIR read-only architecture-independent data [PREFIX/share]
997
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
998
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
999
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1000
--libdir=DIR object code libraries [EPREFIX/lib]
1001
--includedir=DIR C header files [PREFIX/include]
1002
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1003
--infodir=DIR info documentation [PREFIX/info]
1004
--mandir=DIR man documentation [PREFIX/man]
1010
--x-includes=DIR X include files are in DIR
1011
--x-libraries=DIR X library files are in DIR
1014
--build=BUILD configure for building on BUILD [guessed]
1015
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1019
if test -n "$ac_init_help"; then
1024
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1025
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1026
--enable-shared[=PKGS]
1027
build shared libraries [default=yes]
1028
--enable-static[=PKGS]
1029
build static libraries [default=yes]
1030
--enable-fast-install[=PKGS]
1031
optimize for fast installation [default=yes]
1032
--disable-libtool-lock avoid locking (might break parallel builds)
1035
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1036
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1037
--with-x use the X Window System
1038
--without-athena do not use Athena widgets
1039
--with-athena-includes=DIR Athena include files are in DIR
1040
--with-athena-libraries=DIR Athena libraries are in DIR
1041
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
1042
--with-pic try to use only PIC/non-PIC objects [default=use
1045
include additional configurations [automatic]
1047
Some influential environment variables:
1048
CC C compiler command
1049
CFLAGS C compiler flags
1050
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1051
nonstandard directory <lib dir>
1052
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1053
headers in a nonstandard directory <include dir>
1055
CXX C++ compiler command
1056
CXXFLAGS C++ compiler flags
1057
CXXCPP C++ preprocessor
1058
F77 Fortran 77 compiler command
1059
FFLAGS Fortran 77 compiler flags
1061
Use these variables to override the choices made by `configure' or to help
1062
it to find libraries and programs with nonstandard names/locations.
1067
if test "$ac_init_help" = "recursive"; then
1068
# If there are subdirs, report their specific --help.
1070
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1071
test -d $ac_dir || continue
1074
if test "$ac_dir" != .; then
1075
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1076
# A "../" for each directory in $ac_dir_suffix.
1077
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1079
ac_dir_suffix= ac_top_builddir=
1083
.) # No --srcdir option. We are building in place.
1085
if test -z "$ac_top_builddir"; then
1088
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1090
[\\/]* | ?:[\\/]* ) # Absolute path.
1091
ac_srcdir=$srcdir$ac_dir_suffix;
1092
ac_top_srcdir=$srcdir ;;
1094
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1095
ac_top_srcdir=$ac_top_builddir$srcdir ;;
1098
# Do not use `cd foo && pwd` to compute absolute paths, because
1099
# the directories may not exist.
1101
.) ac_abs_builddir="$ac_dir";;
1104
.) ac_abs_builddir=`pwd`;;
1105
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1106
*) ac_abs_builddir=`pwd`/"$ac_dir";;
1109
case $ac_abs_builddir in
1110
.) ac_abs_top_builddir=${ac_top_builddir}.;;
1112
case ${ac_top_builddir}. in
1113
.) ac_abs_top_builddir=$ac_abs_builddir;;
1114
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1115
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1118
case $ac_abs_builddir in
1119
.) ac_abs_srcdir=$ac_srcdir;;
1122
.) ac_abs_srcdir=$ac_abs_builddir;;
1123
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1124
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1127
case $ac_abs_builddir in
1128
.) ac_abs_top_srcdir=$ac_top_srcdir;;
1130
case $ac_top_srcdir in
1131
.) ac_abs_top_srcdir=$ac_abs_builddir;;
1132
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1133
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1138
# Check for guested configure; otherwise get Cygnus style configure.
1139
if test -f $ac_srcdir/configure.gnu; then
1141
$SHELL $ac_srcdir/configure.gnu --help=recursive
1142
elif test -f $ac_srcdir/configure; then
1144
$SHELL $ac_srcdir/configure --help=recursive
1145
elif test -f $ac_srcdir/configure.ac ||
1146
test -f $ac_srcdir/configure.in; then
1148
$ac_configure --help
1150
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1156
test -n "$ac_init_help" && exit 0
1157
if $ac_init_version; then
1160
Copyright (C) 2003 Free Software Foundation, Inc.
1161
This configure script is free software; the Free Software Foundation
1162
gives unlimited permission to copy, distribute and modify it.
1168
This file contains any messages produced by compilers while
1169
running configure, to aid debugging if configure makes a mistake.
1171
It was created by $as_me, which was
1172
generated by GNU Autoconf 2.59. Invocation command line was
1183
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1184
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1185
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1186
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1187
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1189
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1190
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1192
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1193
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1194
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1195
hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1196
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1197
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1198
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1202
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1206
test -z "$as_dir" && as_dir=.
1207
echo "PATH: $as_dir"
1222
# Keep a trace of the command line.
1223
# Strip out --no-create and --no-recursion so they do not pile up.
1224
# Strip out --silent because we don't want to record it for future runs.
1225
# Also quote any args containing shell meta-characters.
1226
# Make two passes to allow for proper duplicate-argument suppression.
1231
ac_must_keep_next=false
1237
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1238
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1239
| -silent | --silent | --silen | --sile | --sil)
1241
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1242
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1245
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1247
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1248
if test $ac_must_keep_next = true; then
1249
ac_must_keep_next=false # Got value, back to normal.
1252
*=* | --config-cache | -C | -disable-* | --disable-* \
1253
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1254
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1255
| -with-* | --with-* | -without-* | --without-* | --x)
1256
case "$ac_configure_args0 " in
1257
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1260
-* ) ac_must_keep_next=true ;;
1263
ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1264
# Get rid of the leading space.
1270
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1271
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1273
# When interrupted or exit'd, cleanup temporary files, and complete
1274
# config.log. We remove comments because anyway the quotes in there
1275
# would cause problems or look ugly.
1276
# WARNING: Be sure not to use single quotes in there, as some shells,
1277
# such as our DU 5.0 friend, will then `close' the trap.
1278
trap 'exit_status=$?
1279
# Save into config.log some information that might help in debugging.
1284
## ---------------- ##
1285
## Cache variables. ##
1286
## ---------------- ##
1289
# The following way of writing the cache mishandles newlines in values,
1292
case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1295
"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1296
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1300
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1307
## ----------------- ##
1308
## Output variables. ##
1309
## ----------------- ##
1312
for ac_var in $ac_subst_vars
1314
eval ac_val=$`echo $ac_var`
1315
echo "$ac_var='"'"'$ac_val'"'"'"
1319
if test -n "$ac_subst_files"; then
1326
for ac_var in $ac_subst_files
1328
eval ac_val=$`echo $ac_var`
1329
echo "$ac_var='"'"'$ac_val'"'"'"
1334
if test -s confdefs.h; then
1341
sed "/^$/d" confdefs.h | sort
1344
test "$ac_signal" != 0 &&
1345
echo "$as_me: caught signal $ac_signal"
1346
echo "$as_me: exit $exit_status"
1348
rm -f core *.core &&
1349
rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1352
for ac_signal in 1 2 13 15; do
1353
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1357
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1358
rm -rf conftest* confdefs.h
1359
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1362
# Predefined preprocessor variables.
1364
cat >>confdefs.h <<_ACEOF
1365
#define PACKAGE_NAME "$PACKAGE_NAME"
1369
cat >>confdefs.h <<_ACEOF
1370
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1374
cat >>confdefs.h <<_ACEOF
1375
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1379
cat >>confdefs.h <<_ACEOF
1380
#define PACKAGE_STRING "$PACKAGE_STRING"
1384
cat >>confdefs.h <<_ACEOF
1385
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1389
# Let the site file select an alternate cache file if it wants to.
1390
# Prefer explicitly selected file to automatically selected ones.
1391
if test -z "$CONFIG_SITE"; then
1392
if test "x$prefix" != xNONE; then
1393
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1395
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1398
for ac_site_file in $CONFIG_SITE; do
1399
if test -r "$ac_site_file"; then
1400
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1401
echo "$as_me: loading site script $ac_site_file" >&6;}
1402
sed 's/^/| /' "$ac_site_file" >&5
1407
if test -r "$cache_file"; then
1408
# Some versions of bash will fail to source /dev/null (special
1409
# files actually), so we avoid doing that.
1410
if test -f "$cache_file"; then
1411
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
1412
echo "$as_me: loading cache $cache_file" >&6;}
1414
[\\/]* | ?:[\\/]* ) . $cache_file;;
1415
*) . ./$cache_file;;
1419
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
1420
echo "$as_me: creating cache $cache_file" >&6;}
1424
# Check that the precious variables saved in the cache have kept the same
1426
ac_cache_corrupted=false
1427
for ac_var in `(set) 2>&1 |
1428
sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1429
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1430
eval ac_new_set=\$ac_env_${ac_var}_set
1431
eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1432
eval ac_new_val="\$ac_env_${ac_var}_value"
1433
case $ac_old_set,$ac_new_set in
1435
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1436
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1437
ac_cache_corrupted=: ;;
1439
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1440
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1441
ac_cache_corrupted=: ;;
1444
if test "x$ac_old_val" != "x$ac_new_val"; then
1445
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1446
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1447
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1448
echo "$as_me: former value: $ac_old_val" >&2;}
1449
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1450
echo "$as_me: current value: $ac_new_val" >&2;}
1451
ac_cache_corrupted=:
1454
# Pass precious variables to config.status.
1455
if test "$ac_new_set" = set; then
1457
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1458
ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1459
*) ac_arg=$ac_var=$ac_new_val ;;
1461
case " $ac_configure_args " in
1462
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1463
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1467
if $ac_cache_corrupted; then
1468
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1469
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1470
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1471
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1472
{ (exit 1); exit 1; }; }
1476
ac_cpp='$CPP $CPPFLAGS'
1477
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1478
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1479
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1499
ac_config_headers="$ac_config_headers lib/t1lib/sysconf.h:lib/t1lib/sysconf.h.in"
1502
for ac_dir in ac-tools $srcdir/ac-tools; do
1503
if test -f $ac_dir/install-sh; then
1505
ac_install_sh="$ac_aux_dir/install-sh -c"
1507
elif test -f $ac_dir/install.sh; then
1509
ac_install_sh="$ac_aux_dir/install.sh -c"
1511
elif test -f $ac_dir/shtool; then
1513
ac_install_sh="$ac_aux_dir/shtool install -c"
1517
if test -z "$ac_aux_dir"; then
1518
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ac-tools $srcdir/ac-tools" >&5
1519
echo "$as_me: error: cannot find install-sh or install.sh in ac-tools $srcdir/ac-tools" >&2;}
1520
{ (exit 1); exit 1; }; }
1522
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1523
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1524
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1543
T1LIB_IDENTIFIER="5.1.2"
1548
T1LIB_VERSIONSTRING=\""5.1.2"\"
1553
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
1554
## Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004
1555
## Free Software Foundation, Inc.
1556
## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
1558
## This program is free software; you can redistribute it and/or modify
1559
## it under the terms of the GNU General Public License as published by
1560
## the Free Software Foundation; either version 2 of the License, or
1561
## (at your option) any later version.
1563
## This program is distributed in the hope that it will be useful, but
1564
## WITHOUT ANY WARRANTY; without even the implied warranty of
1565
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1566
## General Public License for more details.
1568
## You should have received a copy of the GNU General Public License
1569
## along with this program; if not, write to the Free Software
1570
## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
1572
## As a special exception to the GNU General Public License, if you
1573
## distribute this file as part of a program that contains a
1574
## configuration script generated by Autoconf, you may include it under
1575
## the same distribution terms that you use for the rest of that program.
1577
# serial 47 AC_PROG_LIBTOOL
1580
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
1581
# -----------------------------------------------------------
1582
# If this macro is not defined by Autoconf, define it here.
1601
# _LT_AC_SYS_COMPILER
1602
# -------------------
1603
# _LT_AC_SYS_COMPILER
1606
# _LT_AC_SYS_LIBPATH_AIX
1607
# ----------------------
1608
# Links a minimal program and checks the executable
1609
# for the system default hardcoded library path. In most cases,
1610
# this is /usr/lib:/lib, but when the MPI compilers are used
1611
# the location of the communication and MPI libs are included too.
1612
# If we don't find anything, use the default library path according
1613
# to the aix ld manual.
1614
# _LT_AC_SYS_LIBPATH_AIX
1617
# _LT_AC_SHELL_INIT(ARG)
1618
# ----------------------
1622
# _LT_AC_PROG_ECHO_BACKSLASH
1623
# --------------------------
1624
# Add some code to the start of the generated configure script which
1625
# will find an echo command which doesn't interpret backslashes.
1626
# _LT_AC_PROG_ECHO_BACKSLASH
1634
# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1635
# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
1636
# ----------------------------------------------------------------
1637
# Check whether the given compiler option works
1638
# AC_LIBTOOL_COMPILER_OPTION
1641
# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1642
# [ACTION-SUCCESS], [ACTION-FAILURE])
1643
# ------------------------------------------------------------
1644
# Check whether the given compiler option works
1645
# AC_LIBTOOL_LINKER_OPTION
1648
# AC_LIBTOOL_SYS_MAX_CMD_LEN
1649
# --------------------------
1650
# AC_LIBTOOL_SYS_MAX_CMD_LEN
1653
# _LT_AC_CHECK_DLFCN
1654
# --------------------
1655
# _LT_AC_CHECK_DLFCN
1658
# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1659
# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1660
# ------------------------------------------------------------------
1661
# _LT_AC_TRY_DLOPEN_SELF
1664
# AC_LIBTOOL_DLOPEN_SELF
1665
# -------------------
1666
# AC_LIBTOOL_DLOPEN_SELF
1669
# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
1670
# ---------------------------------
1671
# Check to see if options -c and -o are simultaneously supported by compiler
1672
# AC_LIBTOOL_PROG_CC_C_O
1675
# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
1676
# -----------------------------------------
1677
# Check to see if we can do hard links to lock some files if needed
1678
# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
1686
# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
1687
# ----------------------------------------------
1688
# Check hardcoding attributes.
1689
# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
1692
# AC_LIBTOOL_SYS_LIB_STRIP
1693
# ------------------------
1694
# AC_LIBTOOL_SYS_LIB_STRIP
1697
# AC_LIBTOOL_SYS_DYNAMIC_LINKER
1698
# -----------------------------
1699
# PORTME Fill in your ld.so characteristics
1700
# AC_LIBTOOL_SYS_DYNAMIC_LINKER
1710
# enable checks for dlopen support
1714
# AC_LIBTOOL_WIN32_DLL
1715
# --------------------
1716
# declare package support for building win32 dll's
1717
# AC_LIBTOOL_WIN32_DLL
1720
# AC_ENABLE_SHARED([DEFAULT])
1721
# ---------------------------
1722
# implement the --enable-shared flag
1723
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
1729
#- set the default shared flag to --disable-shared
1733
# AC_ENABLE_STATIC([DEFAULT])
1734
# ---------------------------
1735
# implement the --enable-static flag
1736
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
1742
# set the default static flag to --disable-static
1746
# AC_ENABLE_FAST_INSTALL([DEFAULT])
1747
# ---------------------------------
1748
# implement the --enable-fast-install flag
1749
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
1750
# AC_ENABLE_FAST_INSTALL
1753
# AC_DISABLE_FAST_INSTALL
1754
# -----------------------
1755
# set the default to --disable-fast-install
1756
# AC_DISABLE_FAST_INSTALL
1759
# AC_LIBTOOL_PICMODE([MODE])
1760
# --------------------------
1761
# implement the --with-pic flag
1762
# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
1763
# AC_LIBTOOL_PICMODE
1768
# This is predefined starting with Autoconf 2.54, so this conditional
1769
# definition can be removed once we require Autoconf 2.54 or later.
1773
# AC_PATH_TOOL_PREFIX
1774
# -------------------
1775
# find a file program which can recognise shared library
1776
# AC_PATH_TOOL_PREFIX
1781
# find a file program which can recognise a shared library
1787
# find the pathname to the GNU or non-GNU linker
1796
# AC_PROG_LD_RELOAD_FLAG
1797
# ----------------------
1798
# find reload flag for linker
1799
# -- PORTME Some linkers may need a different reload flag.
1800
# AC_PROG_LD_RELOAD_FLAG
1803
# AC_DEPLIBS_CHECK_METHOD
1804
# -----------------------
1805
# how to check for library dependencies
1806
# -- PORTME fill in with the dynamic library characteristics
1807
# AC_DEPLIBS_CHECK_METHOD
1812
# find the pathname to a BSD-compatible name lister
1818
# check for math library
1822
# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
1823
# -----------------------------------
1824
# sets LIBLTDL to the link flags for the libltdl convenience library and
1825
# LTDLINCL to the include flags for the libltdl header and adds
1826
# --enable-ltdl-convenience to the configure arguments. Note that LIBLTDL
1827
# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
1828
# DIRECTORY is not provided, it is assumed to be `libltdl'. LIBLTDL will
1829
# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with
1830
# '${top_srcdir}/' (note the single quotes!). If your package is not
1831
# flat and you're not using automake, define top_builddir and
1832
# top_srcdir appropriately in the Makefiles.
1833
# AC_LIBLTDL_CONVENIENCE
1836
# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
1837
# -----------------------------------
1838
# sets LIBLTDL to the link flags for the libltdl installable library and
1839
# LTDLINCL to the include flags for the libltdl header and adds
1840
# --enable-ltdl-install to the configure arguments. Note that LIBLTDL
1841
# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
1842
# DIRECTORY is not provided and an installed libltdl is not found, it is
1843
# assumed to be `libltdl'. LIBLTDL will be prefixed with '${top_builddir}/'
1844
# and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single
1845
# quotes!). If your package is not flat and you're not using automake,
1846
# define top_builddir and top_srcdir appropriately in the Makefiles.
1847
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
1848
# AC_LIBLTDL_INSTALLABLE
1853
# enable support for C++ libraries
1861
# _LT_AC_PROG_CXXCPP
1863
# _LT_AC_PROG_CXXCPP
1867
# enable support for Fortran 77 libraries
1878
# enable support for GCJ libraries
1889
# enable support for Windows resource files
1893
# AC_LIBTOOL_LANG_C_CONFIG
1894
# ------------------------
1895
# Ensure that the configuration vars for the C compiler are
1896
# suitably defined. Those variables are subsequently used by
1897
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
1899
# AC_LIBTOOL_LANG_C_CONFIG
1902
# AC_LIBTOOL_LANG_CXX_CONFIG
1903
# --------------------------
1904
# Ensure that the configuration vars for the C compiler are
1905
# suitably defined. Those variables are subsequently used by
1906
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
1908
# AC_LIBTOOL_LANG_CXX_CONFIG
1910
# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
1911
# ------------------------
1912
# Figure out "hidden" library dependencies from verbose
1913
# compiler output when linking a shared library.
1914
# Parse the compiler output and extract the necessary
1915
# objects, libraries and library flags.
1916
# AC_LIBTOOL_POSTDEP_PREDEP
1918
# AC_LIBTOOL_LANG_F77_CONFIG
1919
# ------------------------
1920
# Ensure that the configuration vars for the C compiler are
1921
# suitably defined. Those variables are subsequently used by
1922
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
1924
# AC_LIBTOOL_LANG_F77_CONFIG
1927
# AC_LIBTOOL_LANG_GCJ_CONFIG
1928
# --------------------------
1929
# Ensure that the configuration vars for the C compiler are
1930
# suitably defined. Those variables are subsequently used by
1931
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
1933
# AC_LIBTOOL_LANG_GCJ_CONFIG
1936
# AC_LIBTOOL_LANG_RC_CONFIG
1937
# --------------------------
1938
# Ensure that the configuration vars for the Windows resource compiler are
1939
# suitably defined. Those variables are subsequently used by
1940
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
1942
# AC_LIBTOOL_LANG_RC_CONFIG
1945
# AC_LIBTOOL_CONFIG([TAGNAME])
1946
# ----------------------------
1947
# If TAGNAME is not passed, then create an initial libtool script
1948
# with a default configuration from the untagged config vars. Otherwise
1949
# add code to config.status for appending the configuration named by
1950
# TAGNAME from the matching tagged config vars.
1954
# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
1955
# -------------------------------------------
1956
# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
1959
# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
1960
# ---------------------------------
1961
# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
1964
# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
1965
# ---------------------------------------
1969
# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
1970
# ------------------------------------
1971
# See if the linker supports building shared libraries.
1972
# AC_LIBTOOL_PROG_LD_SHLIBS
1975
# _LT_AC_FILE_LTDLL_C
1976
# -------------------
1977
# Be careful that the start marker always follows a newline.
1978
# _LT_AC_FILE_LTDLL_C
1981
# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
1982
# ---------------------------------
1995
# This is just to silence aclocal about the macro not being used
2002
############################################################
2003
# NOTE: This macro has been submitted for inclusion into #
2004
# GNU Autoconf as AC_PROG_SED. When it is available in #
2005
# a released version of Autoconf we should remove this #
2006
# macro and use it instead. #
2007
############################################################
2010
# Check for a fully-functional sed program, that truncates
2011
# as few characters as possible. Prefer GNU sed if found.
2015
test -z "$LDLIBS" && LDLIBS=-lm
2016
test -z "$PROGEXT" && PROGEXT=""
2020
T1LIB_DATA_DIR="${datadir}/t1lib"
2049
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2050
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2051
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2052
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2053
echo $ECHO_N "(cached) $ECHO_C" >&6
2055
cat >conftest.make <<\_ACEOF
2057
@echo 'ac_maketemp="$(MAKE)"'
2059
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2060
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2061
if test -n "$ac_maketemp"; then
2062
eval ac_cv_prog_make_${ac_make}_set=yes
2064
eval ac_cv_prog_make_${ac_make}_set=no
2068
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2069
echo "$as_me:$LINENO: result: yes" >&5
2070
echo "${ECHO_T}yes" >&6
2073
echo "$as_me:$LINENO: result: no" >&5
2074
echo "${ECHO_T}no" >&6
2075
SET_MAKE="MAKE=${MAKE-make}"
2079
ac_cpp='$CPP $CPPFLAGS'
2080
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2081
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2082
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2083
if test -n "$ac_tool_prefix"; then
2084
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2085
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2086
echo "$as_me:$LINENO: checking for $ac_word" >&5
2087
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2088
if test "${ac_cv_prog_CC+set}" = set; then
2089
echo $ECHO_N "(cached) $ECHO_C" >&6
2091
if test -n "$CC"; then
2092
ac_cv_prog_CC="$CC" # Let the user override the test.
2094
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2098
test -z "$as_dir" && as_dir=.
2099
for ac_exec_ext in '' $ac_executable_extensions; do
2100
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2101
ac_cv_prog_CC="${ac_tool_prefix}gcc"
2102
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2111
if test -n "$CC"; then
2112
echo "$as_me:$LINENO: result: $CC" >&5
2113
echo "${ECHO_T}$CC" >&6
2115
echo "$as_me:$LINENO: result: no" >&5
2116
echo "${ECHO_T}no" >&6
2120
if test -z "$ac_cv_prog_CC"; then
2122
# Extract the first word of "gcc", so it can be a program name with args.
2123
set dummy gcc; ac_word=$2
2124
echo "$as_me:$LINENO: checking for $ac_word" >&5
2125
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2126
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2127
echo $ECHO_N "(cached) $ECHO_C" >&6
2129
if test -n "$ac_ct_CC"; then
2130
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2132
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2136
test -z "$as_dir" && as_dir=.
2137
for ac_exec_ext in '' $ac_executable_extensions; do
2138
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2139
ac_cv_prog_ac_ct_CC="gcc"
2140
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2148
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2149
if test -n "$ac_ct_CC"; then
2150
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2151
echo "${ECHO_T}$ac_ct_CC" >&6
2153
echo "$as_me:$LINENO: result: no" >&5
2154
echo "${ECHO_T}no" >&6
2162
if test -z "$CC"; then
2163
if test -n "$ac_tool_prefix"; then
2164
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2165
set dummy ${ac_tool_prefix}cc; ac_word=$2
2166
echo "$as_me:$LINENO: checking for $ac_word" >&5
2167
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2168
if test "${ac_cv_prog_CC+set}" = set; then
2169
echo $ECHO_N "(cached) $ECHO_C" >&6
2171
if test -n "$CC"; then
2172
ac_cv_prog_CC="$CC" # Let the user override the test.
2174
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2178
test -z "$as_dir" && as_dir=.
2179
for ac_exec_ext in '' $ac_executable_extensions; do
2180
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2181
ac_cv_prog_CC="${ac_tool_prefix}cc"
2182
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2191
if test -n "$CC"; then
2192
echo "$as_me:$LINENO: result: $CC" >&5
2193
echo "${ECHO_T}$CC" >&6
2195
echo "$as_me:$LINENO: result: no" >&5
2196
echo "${ECHO_T}no" >&6
2200
if test -z "$ac_cv_prog_CC"; then
2202
# Extract the first word of "cc", so it can be a program name with args.
2203
set dummy cc; ac_word=$2
2204
echo "$as_me:$LINENO: checking for $ac_word" >&5
2205
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2206
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2207
echo $ECHO_N "(cached) $ECHO_C" >&6
2209
if test -n "$ac_ct_CC"; then
2210
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2212
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2216
test -z "$as_dir" && as_dir=.
2217
for ac_exec_ext in '' $ac_executable_extensions; do
2218
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2219
ac_cv_prog_ac_ct_CC="cc"
2220
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2228
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2229
if test -n "$ac_ct_CC"; then
2230
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2231
echo "${ECHO_T}$ac_ct_CC" >&6
2233
echo "$as_me:$LINENO: result: no" >&5
2234
echo "${ECHO_T}no" >&6
2243
if test -z "$CC"; then
2244
# Extract the first word of "cc", so it can be a program name with args.
2245
set dummy cc; ac_word=$2
2246
echo "$as_me:$LINENO: checking for $ac_word" >&5
2247
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2248
if test "${ac_cv_prog_CC+set}" = set; then
2249
echo $ECHO_N "(cached) $ECHO_C" >&6
2251
if test -n "$CC"; then
2252
ac_cv_prog_CC="$CC" # Let the user override the test.
2255
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2259
test -z "$as_dir" && as_dir=.
2260
for ac_exec_ext in '' $ac_executable_extensions; do
2261
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2262
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2263
ac_prog_rejected=yes
2267
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2273
if test $ac_prog_rejected = yes; then
2274
# We found a bogon in the path, so make sure we never use it.
2275
set dummy $ac_cv_prog_CC
2277
if test $# != 0; then
2278
# We chose a different compiler from the bogus one.
2279
# However, it has the same basename, so the bogon will be chosen
2280
# first if we set CC to just the basename; use the full file name.
2282
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2288
if test -n "$CC"; then
2289
echo "$as_me:$LINENO: result: $CC" >&5
2290
echo "${ECHO_T}$CC" >&6
2292
echo "$as_me:$LINENO: result: no" >&5
2293
echo "${ECHO_T}no" >&6
2297
if test -z "$CC"; then
2298
if test -n "$ac_tool_prefix"; then
2301
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2302
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2303
echo "$as_me:$LINENO: checking for $ac_word" >&5
2304
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2305
if test "${ac_cv_prog_CC+set}" = set; then
2306
echo $ECHO_N "(cached) $ECHO_C" >&6
2308
if test -n "$CC"; then
2309
ac_cv_prog_CC="$CC" # Let the user override the test.
2311
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2315
test -z "$as_dir" && as_dir=.
2316
for ac_exec_ext in '' $ac_executable_extensions; do
2317
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2318
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2319
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2328
if test -n "$CC"; then
2329
echo "$as_me:$LINENO: result: $CC" >&5
2330
echo "${ECHO_T}$CC" >&6
2332
echo "$as_me:$LINENO: result: no" >&5
2333
echo "${ECHO_T}no" >&6
2336
test -n "$CC" && break
2339
if test -z "$CC"; then
2343
# Extract the first word of "$ac_prog", so it can be a program name with args.
2344
set dummy $ac_prog; ac_word=$2
2345
echo "$as_me:$LINENO: checking for $ac_word" >&5
2346
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2347
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2348
echo $ECHO_N "(cached) $ECHO_C" >&6
2350
if test -n "$ac_ct_CC"; then
2351
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2353
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2357
test -z "$as_dir" && as_dir=.
2358
for ac_exec_ext in '' $ac_executable_extensions; do
2359
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2360
ac_cv_prog_ac_ct_CC="$ac_prog"
2361
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2369
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2370
if test -n "$ac_ct_CC"; then
2371
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2372
echo "${ECHO_T}$ac_ct_CC" >&6
2374
echo "$as_me:$LINENO: result: no" >&5
2375
echo "${ECHO_T}no" >&6
2378
test -n "$ac_ct_CC" && break
2387
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2388
See \`config.log' for more details." >&5
2389
echo "$as_me: error: no acceptable C compiler found in \$PATH
2390
See \`config.log' for more details." >&2;}
2391
{ (exit 1); exit 1; }; }
2393
# Provide some information about the compiler.
2394
echo "$as_me:$LINENO:" \
2395
"checking for C compiler version" >&5
2396
ac_compiler=`set X $ac_compile; echo $2`
2397
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2398
(eval $ac_compiler --version </dev/null >&5) 2>&5
2400
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401
(exit $ac_status); }
2402
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2403
(eval $ac_compiler -v </dev/null >&5) 2>&5
2405
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406
(exit $ac_status); }
2407
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2408
(eval $ac_compiler -V </dev/null >&5) 2>&5
2410
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411
(exit $ac_status); }
2413
cat >conftest.$ac_ext <<_ACEOF
2416
cat confdefs.h >>conftest.$ac_ext
2417
cat >>conftest.$ac_ext <<_ACEOF
2418
/* end confdefs.h. */
2428
ac_clean_files_save=$ac_clean_files
2429
ac_clean_files="$ac_clean_files a.out a.exe b.out"
2430
# Try to create an executable without -o first, disregard a.out.
2431
# It will help us diagnose broken compilers, and finding out an intuition
2433
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2434
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2435
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2436
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2437
(eval $ac_link_default) 2>&5
2439
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440
(exit $ac_status); }; then
2441
# Find the output, starting from the most likely. This scheme is
2442
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2445
# Be careful to initialize this variable, since it used to be cached.
2446
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2448
# b.out is created by i960 compilers.
2449
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2451
test -f "$ac_file" || continue
2453
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2456
# This is the source file.
2459
# We found the default executable, but exeext='' is most
2463
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2464
# FIXME: I believe we export ac_cv_exeext for Libtool,
2465
# but it would be cool to find out if it's true. Does anybody
2466
# maintain Libtool? --akim.
2474
echo "$as_me: failed program was:" >&5
2475
sed 's/^/| /' conftest.$ac_ext >&5
2477
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2478
See \`config.log' for more details." >&5
2479
echo "$as_me: error: C compiler cannot create executables
2480
See \`config.log' for more details." >&2;}
2481
{ (exit 77); exit 77; }; }
2484
ac_exeext=$ac_cv_exeext
2485
echo "$as_me:$LINENO: result: $ac_file" >&5
2486
echo "${ECHO_T}$ac_file" >&6
2488
# Check the compiler produces executables we can run. If not, either
2489
# the compiler is broken, or we cross compile.
2490
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2491
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2492
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2493
# If not cross compiling, check that we can run a simple program.
2494
if test "$cross_compiling" != yes; then
2495
if { ac_try='./$ac_file'
2496
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2499
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500
(exit $ac_status); }; }; then
2503
if test "$cross_compiling" = maybe; then
2506
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2507
If you meant to cross compile, use \`--host'.
2508
See \`config.log' for more details." >&5
2509
echo "$as_me: error: cannot run C compiled programs.
2510
If you meant to cross compile, use \`--host'.
2511
See \`config.log' for more details." >&2;}
2512
{ (exit 1); exit 1; }; }
2516
echo "$as_me:$LINENO: result: yes" >&5
2517
echo "${ECHO_T}yes" >&6
2519
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2520
ac_clean_files=$ac_clean_files_save
2521
# Check the compiler produces executables we can run. If not, either
2522
# the compiler is broken, or we cross compile.
2523
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2524
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2525
echo "$as_me:$LINENO: result: $cross_compiling" >&5
2526
echo "${ECHO_T}$cross_compiling" >&6
2528
echo "$as_me:$LINENO: checking for suffix of executables" >&5
2529
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2530
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2531
(eval $ac_link) 2>&5
2533
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534
(exit $ac_status); }; then
2535
# If both `conftest.exe' and `conftest' are `present' (well, observable)
2536
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2537
# work properly (i.e., refer to `conftest.exe'), while it won't with
2539
for ac_file in conftest.exe conftest conftest.*; do
2540
test -f "$ac_file" || continue
2542
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2543
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2550
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2551
See \`config.log' for more details." >&5
2552
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2553
See \`config.log' for more details." >&2;}
2554
{ (exit 1); exit 1; }; }
2557
rm -f conftest$ac_cv_exeext
2558
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2559
echo "${ECHO_T}$ac_cv_exeext" >&6
2561
rm -f conftest.$ac_ext
2562
EXEEXT=$ac_cv_exeext
2564
echo "$as_me:$LINENO: checking for suffix of object files" >&5
2565
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2566
if test "${ac_cv_objext+set}" = set; then
2567
echo $ECHO_N "(cached) $ECHO_C" >&6
2569
cat >conftest.$ac_ext <<_ACEOF
2572
cat confdefs.h >>conftest.$ac_ext
2573
cat >>conftest.$ac_ext <<_ACEOF
2574
/* end confdefs.h. */
2584
rm -f conftest.o conftest.obj
2585
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2586
(eval $ac_compile) 2>&5
2588
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589
(exit $ac_status); }; then
2590
for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2592
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2593
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2598
echo "$as_me: failed program was:" >&5
2599
sed 's/^/| /' conftest.$ac_ext >&5
2601
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2602
See \`config.log' for more details." >&5
2603
echo "$as_me: error: cannot compute suffix of object files: cannot compile
2604
See \`config.log' for more details." >&2;}
2605
{ (exit 1); exit 1; }; }
2608
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2610
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2611
echo "${ECHO_T}$ac_cv_objext" >&6
2612
OBJEXT=$ac_cv_objext
2614
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2615
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2616
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2617
echo $ECHO_N "(cached) $ECHO_C" >&6
2619
cat >conftest.$ac_ext <<_ACEOF
2622
cat confdefs.h >>conftest.$ac_ext
2623
cat >>conftest.$ac_ext <<_ACEOF
2624
/* end confdefs.h. */
2637
rm -f conftest.$ac_objext
2638
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2639
(eval $ac_compile) 2>conftest.er1
2641
grep -v '^ *+' conftest.er1 >conftest.err
2643
cat conftest.err >&5
2644
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2645
(exit $ac_status); } &&
2646
{ ac_try='test -z "$ac_c_werror_flag"
2647
|| test ! -s conftest.err'
2648
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2651
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652
(exit $ac_status); }; } &&
2653
{ ac_try='test -s conftest.$ac_objext'
2654
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2657
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658
(exit $ac_status); }; }; then
2661
echo "$as_me: failed program was:" >&5
2662
sed 's/^/| /' conftest.$ac_ext >&5
2666
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2667
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2670
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2671
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2672
GCC=`test $ac_compiler_gnu = yes && echo yes`
2673
ac_test_CFLAGS=${CFLAGS+set}
2674
ac_save_CFLAGS=$CFLAGS
2676
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2677
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2678
if test "${ac_cv_prog_cc_g+set}" = set; then
2679
echo $ECHO_N "(cached) $ECHO_C" >&6
2681
cat >conftest.$ac_ext <<_ACEOF
2684
cat confdefs.h >>conftest.$ac_ext
2685
cat >>conftest.$ac_ext <<_ACEOF
2686
/* end confdefs.h. */
2696
rm -f conftest.$ac_objext
2697
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2698
(eval $ac_compile) 2>conftest.er1
2700
grep -v '^ *+' conftest.er1 >conftest.err
2702
cat conftest.err >&5
2703
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704
(exit $ac_status); } &&
2705
{ ac_try='test -z "$ac_c_werror_flag"
2706
|| test ! -s conftest.err'
2707
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2710
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711
(exit $ac_status); }; } &&
2712
{ ac_try='test -s conftest.$ac_objext'
2713
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2716
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717
(exit $ac_status); }; }; then
2720
echo "$as_me: failed program was:" >&5
2721
sed 's/^/| /' conftest.$ac_ext >&5
2725
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2727
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2728
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2729
if test "$ac_test_CFLAGS" = set; then
2730
CFLAGS=$ac_save_CFLAGS
2731
elif test $ac_cv_prog_cc_g = yes; then
2732
if test "$GCC" = yes; then
2738
if test "$GCC" = yes; then
2744
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2745
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2746
if test "${ac_cv_prog_cc_stdc+set}" = set; then
2747
echo $ECHO_N "(cached) $ECHO_C" >&6
2749
ac_cv_prog_cc_stdc=no
2751
cat >conftest.$ac_ext <<_ACEOF
2754
cat confdefs.h >>conftest.$ac_ext
2755
cat >>conftest.$ac_ext <<_ACEOF
2756
/* end confdefs.h. */
2759
#include <sys/types.h>
2760
#include <sys/stat.h>
2761
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2762
struct buf { int x; };
2763
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2764
static char *e (p, i)
2770
static char *f (char * (*g) (char **, int), char **p, ...)
2775
s = g (p, va_arg (v,int));
2780
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2781
function prototypes and stuff, but not '\xHH' hex character constants.
2782
These don't provoke an error unfortunately, instead are silently treated
2783
as 'x'. The following induces an error, until -std1 is added to get
2784
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2785
array size at least. It's necessary to write '\x00'==0 to get something
2786
that's true only with -std1. */
2787
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2789
int test (int i, double x);
2790
struct s1 {int (*f) (int a);};
2791
struct s2 {int (*f) (double a);};
2792
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2798
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2803
# Don't try gcc -ansi; that turns off useful extensions and
2804
# breaks some systems' header files.
2805
# AIX -qlanglvl=ansi
2806
# Ultrix and OSF/1 -std1
2807
# HP-UX 10.20 and later -Ae
2808
# HP-UX older versions -Aa -D_HPUX_SOURCE
2809
# SVR4 -Xc -D__EXTENSIONS__
2810
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2812
CC="$ac_save_CC $ac_arg"
2813
rm -f conftest.$ac_objext
2814
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2815
(eval $ac_compile) 2>conftest.er1
2817
grep -v '^ *+' conftest.er1 >conftest.err
2819
cat conftest.err >&5
2820
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2821
(exit $ac_status); } &&
2822
{ ac_try='test -z "$ac_c_werror_flag"
2823
|| test ! -s conftest.err'
2824
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2827
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2828
(exit $ac_status); }; } &&
2829
{ ac_try='test -s conftest.$ac_objext'
2830
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2833
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834
(exit $ac_status); }; }; then
2835
ac_cv_prog_cc_stdc=$ac_arg
2838
echo "$as_me: failed program was:" >&5
2839
sed 's/^/| /' conftest.$ac_ext >&5
2842
rm -f conftest.err conftest.$ac_objext
2844
rm -f conftest.$ac_ext conftest.$ac_objext
2849
case "x$ac_cv_prog_cc_stdc" in
2851
echo "$as_me:$LINENO: result: none needed" >&5
2852
echo "${ECHO_T}none needed" >&6 ;;
2854
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2855
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2856
CC="$CC $ac_cv_prog_cc_stdc" ;;
2859
# Some people use a C++ compiler to compile C. Since we use `exit',
2860
# in C++ we need to declare it. In case someone uses the same compiler
2861
# for both compiling C and C++ we need to have the C++ compiler decide
2862
# the declaration of exit, since it's the most demanding environment.
2863
cat >conftest.$ac_ext <<_ACEOF
2868
rm -f conftest.$ac_objext
2869
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2870
(eval $ac_compile) 2>conftest.er1
2872
grep -v '^ *+' conftest.er1 >conftest.err
2874
cat conftest.err >&5
2875
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876
(exit $ac_status); } &&
2877
{ ac_try='test -z "$ac_c_werror_flag"
2878
|| test ! -s conftest.err'
2879
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2882
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2883
(exit $ac_status); }; } &&
2884
{ ac_try='test -s conftest.$ac_objext'
2885
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2888
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889
(exit $ac_status); }; }; then
2890
for ac_declaration in \
2892
'extern "C" void std::exit (int) throw (); using std::exit;' \
2893
'extern "C" void std::exit (int); using std::exit;' \
2894
'extern "C" void exit (int) throw ();' \
2895
'extern "C" void exit (int);' \
2898
cat >conftest.$ac_ext <<_ACEOF
2901
cat confdefs.h >>conftest.$ac_ext
2902
cat >>conftest.$ac_ext <<_ACEOF
2903
/* end confdefs.h. */
2914
rm -f conftest.$ac_objext
2915
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2916
(eval $ac_compile) 2>conftest.er1
2918
grep -v '^ *+' conftest.er1 >conftest.err
2920
cat conftest.err >&5
2921
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2922
(exit $ac_status); } &&
2923
{ ac_try='test -z "$ac_c_werror_flag"
2924
|| test ! -s conftest.err'
2925
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2928
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2929
(exit $ac_status); }; } &&
2930
{ ac_try='test -s conftest.$ac_objext'
2931
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2934
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935
(exit $ac_status); }; }; then
2938
echo "$as_me: failed program was:" >&5
2939
sed 's/^/| /' conftest.$ac_ext >&5
2943
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2944
cat >conftest.$ac_ext <<_ACEOF
2947
cat confdefs.h >>conftest.$ac_ext
2948
cat >>conftest.$ac_ext <<_ACEOF
2949
/* end confdefs.h. */
2959
rm -f conftest.$ac_objext
2960
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2961
(eval $ac_compile) 2>conftest.er1
2963
grep -v '^ *+' conftest.er1 >conftest.err
2965
cat conftest.err >&5
2966
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2967
(exit $ac_status); } &&
2968
{ ac_try='test -z "$ac_c_werror_flag"
2969
|| test ! -s conftest.err'
2970
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2973
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2974
(exit $ac_status); }; } &&
2975
{ ac_try='test -s conftest.$ac_objext'
2976
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2979
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980
(exit $ac_status); }; }; then
2983
echo "$as_me: failed program was:" >&5
2984
sed 's/^/| /' conftest.$ac_ext >&5
2987
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2990
if test -n "$ac_declaration"; then
2991
echo '#ifdef __cplusplus' >>confdefs.h
2992
echo $ac_declaration >>confdefs.h
2993
echo '#endif' >>confdefs.h
2997
echo "$as_me: failed program was:" >&5
2998
sed 's/^/| /' conftest.$ac_ext >&5
3001
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3003
ac_cpp='$CPP $CPPFLAGS'
3004
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3005
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3006
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3009
ac_cpp='$CPP $CPPFLAGS'
3010
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3011
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3012
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3013
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3014
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3015
# On Suns, sometimes $CPP names a directory.
3016
if test -n "$CPP" && test -d "$CPP"; then
3019
if test -z "$CPP"; then
3020
if test "${ac_cv_prog_CPP+set}" = set; then
3021
echo $ECHO_N "(cached) $ECHO_C" >&6
3023
# Double quotes because CPP needs to be expanded
3024
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3027
for ac_c_preproc_warn_flag in '' yes
3029
# Use a header file that comes with gcc, so configuring glibc
3030
# with a fresh cross-compiler works.
3031
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3032
# <limits.h> exists even on freestanding compilers.
3033
# On the NeXT, cc -E runs the code through the compiler's parser,
3034
# not just through cpp. "Syntax error" is here to catch this case.
3035
cat >conftest.$ac_ext <<_ACEOF
3038
cat confdefs.h >>conftest.$ac_ext
3039
cat >>conftest.$ac_ext <<_ACEOF
3040
/* end confdefs.h. */
3042
# include <limits.h>
3044
# include <assert.h>
3048
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3049
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3051
grep -v '^ *+' conftest.er1 >conftest.err
3053
cat conftest.err >&5
3054
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055
(exit $ac_status); } >/dev/null; then
3056
if test -s conftest.err; then
3057
ac_cpp_err=$ac_c_preproc_warn_flag
3058
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3065
if test -z "$ac_cpp_err"; then
3068
echo "$as_me: failed program was:" >&5
3069
sed 's/^/| /' conftest.$ac_ext >&5
3071
# Broken: fails on valid input.
3074
rm -f conftest.err conftest.$ac_ext
3076
# OK, works on sane cases. Now check whether non-existent headers
3077
# can be detected and how.
3078
cat >conftest.$ac_ext <<_ACEOF
3081
cat confdefs.h >>conftest.$ac_ext
3082
cat >>conftest.$ac_ext <<_ACEOF
3083
/* end confdefs.h. */
3084
#include <ac_nonexistent.h>
3086
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3087
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3089
grep -v '^ *+' conftest.er1 >conftest.err
3091
cat conftest.err >&5
3092
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093
(exit $ac_status); } >/dev/null; then
3094
if test -s conftest.err; then
3095
ac_cpp_err=$ac_c_preproc_warn_flag
3096
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3103
if test -z "$ac_cpp_err"; then
3104
# Broken: success on invalid input.
3107
echo "$as_me: failed program was:" >&5
3108
sed 's/^/| /' conftest.$ac_ext >&5
3110
# Passes both tests.
3114
rm -f conftest.err conftest.$ac_ext
3117
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3118
rm -f conftest.err conftest.$ac_ext
3119
if $ac_preproc_ok; then
3131
echo "$as_me:$LINENO: result: $CPP" >&5
3132
echo "${ECHO_T}$CPP" >&6
3134
for ac_c_preproc_warn_flag in '' yes
3136
# Use a header file that comes with gcc, so configuring glibc
3137
# with a fresh cross-compiler works.
3138
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3139
# <limits.h> exists even on freestanding compilers.
3140
# On the NeXT, cc -E runs the code through the compiler's parser,
3141
# not just through cpp. "Syntax error" is here to catch this case.
3142
cat >conftest.$ac_ext <<_ACEOF
3145
cat confdefs.h >>conftest.$ac_ext
3146
cat >>conftest.$ac_ext <<_ACEOF
3147
/* end confdefs.h. */
3149
# include <limits.h>
3151
# include <assert.h>
3155
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3156
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3158
grep -v '^ *+' conftest.er1 >conftest.err
3160
cat conftest.err >&5
3161
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3162
(exit $ac_status); } >/dev/null; then
3163
if test -s conftest.err; then
3164
ac_cpp_err=$ac_c_preproc_warn_flag
3165
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3172
if test -z "$ac_cpp_err"; then
3175
echo "$as_me: failed program was:" >&5
3176
sed 's/^/| /' conftest.$ac_ext >&5
3178
# Broken: fails on valid input.
3181
rm -f conftest.err conftest.$ac_ext
3183
# OK, works on sane cases. Now check whether non-existent headers
3184
# can be detected and how.
3185
cat >conftest.$ac_ext <<_ACEOF
3188
cat confdefs.h >>conftest.$ac_ext
3189
cat >>conftest.$ac_ext <<_ACEOF
3190
/* end confdefs.h. */
3191
#include <ac_nonexistent.h>
3193
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3194
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3196
grep -v '^ *+' conftest.er1 >conftest.err
3198
cat conftest.err >&5
3199
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200
(exit $ac_status); } >/dev/null; then
3201
if test -s conftest.err; then
3202
ac_cpp_err=$ac_c_preproc_warn_flag
3203
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3210
if test -z "$ac_cpp_err"; then
3211
# Broken: success on invalid input.
3214
echo "$as_me: failed program was:" >&5
3215
sed 's/^/| /' conftest.$ac_ext >&5
3217
# Passes both tests.
3221
rm -f conftest.err conftest.$ac_ext
3224
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3225
rm -f conftest.err conftest.$ac_ext
3226
if $ac_preproc_ok; then
3229
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3230
See \`config.log' for more details." >&5
3231
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3232
See \`config.log' for more details." >&2;}
3233
{ (exit 1); exit 1; }; }
3237
ac_cpp='$CPP $CPPFLAGS'
3238
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3239
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3240
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3244
echo "$as_me:$LINENO: checking for X" >&5
3245
echo $ECHO_N "checking for X... $ECHO_C" >&6
3248
# Check whether --with-x or --without-x was given.
3249
if test "${with_x+set}" = set; then
3253
# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3254
if test "x$with_x" = xno; then
3255
# The user explicitly disabled X.
3258
if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
3259
# Both variables are already set.
3262
if test "${ac_cv_have_x+set}" = set; then
3263
echo $ECHO_N "(cached) $ECHO_C" >&6
3265
# One or both of the vars are not set, and there is no cached value.
3266
ac_x_includes=no ac_x_libraries=no
3268
if mkdir conftest.dir; then
3270
# Make sure to not put "make" in the Imakefile rules, since we grep it out.
3271
cat >Imakefile <<'_ACEOF'
3273
@echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3275
if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
3276
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3277
eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3278
# Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3279
for ac_extension in a so sl; do
3280
if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
3281
test -f $ac_im_libdir/libX11.$ac_extension; then
3282
ac_im_usrlibdir=$ac_im_libdir; break
3285
# Screen out bogus values from the imake configuration. They are
3286
# bogus both because they are the default anyway, and because
3287
# using them would break gcc on systems where it needs fixed includes.
3288
case $ac_im_incroot in
3290
*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
3292
case $ac_im_usrlibdir in
3294
*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
3301
# Standard set of common directories for X headers.
3302
# Check X11 before X11Rn because it is often a symlink to the current release.
3314
/usr/local/X11/include
3315
/usr/local/X11R6/include
3316
/usr/local/X11R5/include
3317
/usr/local/X11R4/include
3319
/usr/local/include/X11
3320
/usr/local/include/X11R6
3321
/usr/local/include/X11R5
3322
/usr/local/include/X11R4
3326
/usr/XFree86/include/X11
3330
/usr/unsupported/include
3332
/usr/local/x11r5/include
3333
/usr/lpp/Xamples/include
3335
/usr/openwin/include
3336
/usr/openwin/share/include'
3338
if test "$ac_x_includes" = no; then
3339
# Guess where to find include files, by looking for Intrinsic.h.
3340
# First, try using that file with no special directory specified.
3341
cat >conftest.$ac_ext <<_ACEOF
3344
cat confdefs.h >>conftest.$ac_ext
3345
cat >>conftest.$ac_ext <<_ACEOF
3346
/* end confdefs.h. */
3347
#include <X11/Intrinsic.h>
3349
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3350
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3352
grep -v '^ *+' conftest.er1 >conftest.err
3354
cat conftest.err >&5
3355
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356
(exit $ac_status); } >/dev/null; then
3357
if test -s conftest.err; then
3358
ac_cpp_err=$ac_c_preproc_warn_flag
3359
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3366
if test -z "$ac_cpp_err"; then
3367
# We can compile using X headers with no special include directory.
3370
echo "$as_me: failed program was:" >&5
3371
sed 's/^/| /' conftest.$ac_ext >&5
3373
for ac_dir in $ac_x_header_dirs; do
3374
if test -r "$ac_dir/X11/Intrinsic.h"; then
3375
ac_x_includes=$ac_dir
3380
rm -f conftest.err conftest.$ac_ext
3381
fi # $ac_x_includes = no
3383
if test "$ac_x_libraries" = no; then
3384
# Check for the libraries.
3385
# See if we find them without any special options.
3386
# Don't add to $LIBS permanently.
3389
cat >conftest.$ac_ext <<_ACEOF
3392
cat confdefs.h >>conftest.$ac_ext
3393
cat >>conftest.$ac_ext <<_ACEOF
3394
/* end confdefs.h. */
3395
#include <X11/Intrinsic.h>
3404
rm -f conftest.$ac_objext conftest$ac_exeext
3405
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3406
(eval $ac_link) 2>conftest.er1
3408
grep -v '^ *+' conftest.er1 >conftest.err
3410
cat conftest.err >&5
3411
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412
(exit $ac_status); } &&
3413
{ ac_try='test -z "$ac_c_werror_flag"
3414
|| test ! -s conftest.err'
3415
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3418
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3419
(exit $ac_status); }; } &&
3420
{ ac_try='test -s conftest$ac_exeext'
3421
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3424
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3425
(exit $ac_status); }; }; then
3427
# We can link X programs with no special library path.
3430
echo "$as_me: failed program was:" >&5
3431
sed 's/^/| /' conftest.$ac_ext >&5
3434
for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
3436
# Don't even attempt the hair of trying to link an X program!
3437
for ac_extension in a so sl; do
3438
if test -r $ac_dir/libXt.$ac_extension; then
3439
ac_x_libraries=$ac_dir
3445
rm -f conftest.err conftest.$ac_objext \
3446
conftest$ac_exeext conftest.$ac_ext
3447
fi # $ac_x_libraries = no
3449
if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
3450
# Didn't find X anywhere. Cache the known absence of X.
3451
ac_cv_have_x="have_x=no"
3453
# Record where we found X for the cache.
3454
ac_cv_have_x="have_x=yes \
3455
ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3460
eval "$ac_cv_have_x"
3463
if test "$have_x" != yes; then
3464
echo "$as_me:$LINENO: result: $have_x" >&5
3465
echo "${ECHO_T}$have_x" >&6
3468
# If each of the values was on the command line, it overrides each guess.
3469
test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3470
test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3471
# Update the cache value to reflect the command line values.
3472
ac_cv_have_x="have_x=yes \
3473
ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3474
echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
3475
echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
3478
if test "$no_x" = yes; then
3479
# Not all programs may use this symbol, but it does not hurt to define it.
3481
cat >>confdefs.h <<\_ACEOF
3482
#define X_DISPLAY_MISSING 1
3485
X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3487
if test -n "$x_includes"; then
3488
X_CFLAGS="$X_CFLAGS -I$x_includes"
3491
# It would also be nice to do this for all -L options, not just this one.
3492
if test -n "$x_libraries"; then
3493
X_LIBS="$X_LIBS -L$x_libraries"
3494
# For Solaris; some versions of Sun CC require a space after -R and
3495
# others require no space. Words are not sufficient . . . .
3496
case `(uname -sr) 2>/dev/null` in
3498
echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
3499
echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
3500
ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
3501
cat >conftest.$ac_ext <<_ACEOF
3504
cat confdefs.h >>conftest.$ac_ext
3505
cat >>conftest.$ac_ext <<_ACEOF
3506
/* end confdefs.h. */
3516
rm -f conftest.$ac_objext conftest$ac_exeext
3517
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3518
(eval $ac_link) 2>conftest.er1
3520
grep -v '^ *+' conftest.er1 >conftest.err
3522
cat conftest.err >&5
3523
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524
(exit $ac_status); } &&
3525
{ ac_try='test -z "$ac_c_werror_flag"
3526
|| test ! -s conftest.err'
3527
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3530
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531
(exit $ac_status); }; } &&
3532
{ ac_try='test -s conftest$ac_exeext'
3533
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3536
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3537
(exit $ac_status); }; }; then
3540
echo "$as_me: failed program was:" >&5
3541
sed 's/^/| /' conftest.$ac_ext >&5
3545
rm -f conftest.err conftest.$ac_objext \
3546
conftest$ac_exeext conftest.$ac_ext
3547
if test $ac_R_nospace = yes; then
3548
echo "$as_me:$LINENO: result: no" >&5
3549
echo "${ECHO_T}no" >&6
3550
X_LIBS="$X_LIBS -R$x_libraries"
3552
LIBS="$ac_xsave_LIBS -R $x_libraries"
3553
cat >conftest.$ac_ext <<_ACEOF
3556
cat confdefs.h >>conftest.$ac_ext
3557
cat >>conftest.$ac_ext <<_ACEOF
3558
/* end confdefs.h. */
3568
rm -f conftest.$ac_objext conftest$ac_exeext
3569
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3570
(eval $ac_link) 2>conftest.er1
3572
grep -v '^ *+' conftest.er1 >conftest.err
3574
cat conftest.err >&5
3575
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3576
(exit $ac_status); } &&
3577
{ ac_try='test -z "$ac_c_werror_flag"
3578
|| test ! -s conftest.err'
3579
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3582
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3583
(exit $ac_status); }; } &&
3584
{ ac_try='test -s conftest$ac_exeext'
3585
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3588
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589
(exit $ac_status); }; }; then
3592
echo "$as_me: failed program was:" >&5
3593
sed 's/^/| /' conftest.$ac_ext >&5
3597
rm -f conftest.err conftest.$ac_objext \
3598
conftest$ac_exeext conftest.$ac_ext
3599
if test $ac_R_space = yes; then
3600
echo "$as_me:$LINENO: result: yes" >&5
3601
echo "${ECHO_T}yes" >&6
3602
X_LIBS="$X_LIBS -R $x_libraries"
3604
echo "$as_me:$LINENO: result: neither works" >&5
3605
echo "${ECHO_T}neither works" >&6
3612
# Check for system-dependent libraries X programs must link with.
3613
# Do this before checking for the system-independent R6 libraries
3614
# (-lICE), since we may need -lsocket or whatever for X linking.
3616
if test "$ISC" = yes; then
3617
X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3619
# Martyn Johnson says this is needed for Ultrix, if the X
3620
# libraries were built with DECnet support. And Karl Berry says
3621
# the Alpha needs dnet_stub (dnet does not exist).
3622
ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
3623
cat >conftest.$ac_ext <<_ACEOF
3626
cat confdefs.h >>conftest.$ac_ext
3627
cat >>conftest.$ac_ext <<_ACEOF
3628
/* end confdefs.h. */
3630
/* Override any gcc2 internal prototype to avoid an error. */
3634
/* We use char because int might match the return type of a gcc2
3635
builtin and then its argument prototype would still apply. */
3636
char XOpenDisplay ();
3645
rm -f conftest.$ac_objext conftest$ac_exeext
3646
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3647
(eval $ac_link) 2>conftest.er1
3649
grep -v '^ *+' conftest.er1 >conftest.err
3651
cat conftest.err >&5
3652
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3653
(exit $ac_status); } &&
3654
{ ac_try='test -z "$ac_c_werror_flag"
3655
|| test ! -s conftest.err'
3656
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3659
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3660
(exit $ac_status); }; } &&
3661
{ ac_try='test -s conftest$ac_exeext'
3662
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3665
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666
(exit $ac_status); }; }; then
3669
echo "$as_me: failed program was:" >&5
3670
sed 's/^/| /' conftest.$ac_ext >&5
3672
echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
3673
echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
3674
if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
3675
echo $ECHO_N "(cached) $ECHO_C" >&6
3677
ac_check_lib_save_LIBS=$LIBS
3679
cat >conftest.$ac_ext <<_ACEOF
3682
cat confdefs.h >>conftest.$ac_ext
3683
cat >>conftest.$ac_ext <<_ACEOF
3684
/* end confdefs.h. */
3686
/* Override any gcc2 internal prototype to avoid an error. */
3690
/* We use char because int might match the return type of a gcc2
3691
builtin and then its argument prototype would still apply. */
3701
rm -f conftest.$ac_objext conftest$ac_exeext
3702
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3703
(eval $ac_link) 2>conftest.er1
3705
grep -v '^ *+' conftest.er1 >conftest.err
3707
cat conftest.err >&5
3708
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709
(exit $ac_status); } &&
3710
{ ac_try='test -z "$ac_c_werror_flag"
3711
|| test ! -s conftest.err'
3712
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3715
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716
(exit $ac_status); }; } &&
3717
{ ac_try='test -s conftest$ac_exeext'
3718
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3721
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722
(exit $ac_status); }; }; then
3723
ac_cv_lib_dnet_dnet_ntoa=yes
3725
echo "$as_me: failed program was:" >&5
3726
sed 's/^/| /' conftest.$ac_ext >&5
3728
ac_cv_lib_dnet_dnet_ntoa=no
3730
rm -f conftest.err conftest.$ac_objext \
3731
conftest$ac_exeext conftest.$ac_ext
3732
LIBS=$ac_check_lib_save_LIBS
3734
echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
3735
echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
3736
if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
3737
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3740
if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3741
echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
3742
echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
3743
if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
3744
echo $ECHO_N "(cached) $ECHO_C" >&6
3746
ac_check_lib_save_LIBS=$LIBS
3747
LIBS="-ldnet_stub $LIBS"
3748
cat >conftest.$ac_ext <<_ACEOF
3751
cat confdefs.h >>conftest.$ac_ext
3752
cat >>conftest.$ac_ext <<_ACEOF
3753
/* end confdefs.h. */
3755
/* Override any gcc2 internal prototype to avoid an error. */
3759
/* We use char because int might match the return type of a gcc2
3760
builtin and then its argument prototype would still apply. */
3770
rm -f conftest.$ac_objext conftest$ac_exeext
3771
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3772
(eval $ac_link) 2>conftest.er1
3774
grep -v '^ *+' conftest.er1 >conftest.err
3776
cat conftest.err >&5
3777
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3778
(exit $ac_status); } &&
3779
{ ac_try='test -z "$ac_c_werror_flag"
3780
|| test ! -s conftest.err'
3781
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3784
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3785
(exit $ac_status); }; } &&
3786
{ ac_try='test -s conftest$ac_exeext'
3787
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3790
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791
(exit $ac_status); }; }; then
3792
ac_cv_lib_dnet_stub_dnet_ntoa=yes
3794
echo "$as_me: failed program was:" >&5
3795
sed 's/^/| /' conftest.$ac_ext >&5
3797
ac_cv_lib_dnet_stub_dnet_ntoa=no
3799
rm -f conftest.err conftest.$ac_objext \
3800
conftest$ac_exeext conftest.$ac_ext
3801
LIBS=$ac_check_lib_save_LIBS
3803
echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
3804
echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
3805
if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
3806
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3811
rm -f conftest.err conftest.$ac_objext \
3812
conftest$ac_exeext conftest.$ac_ext
3813
LIBS="$ac_xsave_LIBS"
3815
# msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3816
# to get the SysV transport functions.
3817
# Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
3819
# The nsl library prevents programs from opening the X display
3820
# on Irix 5.2, according to T.E. Dickey.
3821
# The functions gethostbyname, getservbyname, and inet_addr are
3822
# in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
3823
echo "$as_me:$LINENO: checking for gethostbyname" >&5
3824
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3825
if test "${ac_cv_func_gethostbyname+set}" = set; then
3826
echo $ECHO_N "(cached) $ECHO_C" >&6
3828
cat >conftest.$ac_ext <<_ACEOF
3831
cat confdefs.h >>conftest.$ac_ext
3832
cat >>conftest.$ac_ext <<_ACEOF
3833
/* end confdefs.h. */
3834
/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
3835
For example, HP-UX 11i <limits.h> declares gettimeofday. */
3836
#define gethostbyname innocuous_gethostbyname
3838
/* System header to define __stub macros and hopefully few prototypes,
3839
which can conflict with char gethostbyname (); below.
3840
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3841
<limits.h> exists even on freestanding compilers. */
3844
# include <limits.h>
3846
# include <assert.h>
3849
#undef gethostbyname
3851
/* Override any gcc2 internal prototype to avoid an error. */
3856
/* We use char because int might match the return type of a gcc2
3857
builtin and then its argument prototype would still apply. */
3858
char gethostbyname ();
3859
/* The GNU C library defines this for functions which it implements
3860
to always fail with ENOSYS. Some functions are actually named
3861
something starting with __ and the normal name is an alias. */
3862
#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3865
char (*f) () = gethostbyname;
3874
return f != gethostbyname;
3879
rm -f conftest.$ac_objext conftest$ac_exeext
3880
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3881
(eval $ac_link) 2>conftest.er1
3883
grep -v '^ *+' conftest.er1 >conftest.err
3885
cat conftest.err >&5
3886
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3887
(exit $ac_status); } &&
3888
{ ac_try='test -z "$ac_c_werror_flag"
3889
|| test ! -s conftest.err'
3890
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3893
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3894
(exit $ac_status); }; } &&
3895
{ ac_try='test -s conftest$ac_exeext'
3896
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3899
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3900
(exit $ac_status); }; }; then
3901
ac_cv_func_gethostbyname=yes
3903
echo "$as_me: failed program was:" >&5
3904
sed 's/^/| /' conftest.$ac_ext >&5
3906
ac_cv_func_gethostbyname=no
3908
rm -f conftest.err conftest.$ac_objext \
3909
conftest$ac_exeext conftest.$ac_ext
3911
echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3912
echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3914
if test $ac_cv_func_gethostbyname = no; then
3915
echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3916
echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3917
if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3918
echo $ECHO_N "(cached) $ECHO_C" >&6
3920
ac_check_lib_save_LIBS=$LIBS
3922
cat >conftest.$ac_ext <<_ACEOF
3925
cat confdefs.h >>conftest.$ac_ext
3926
cat >>conftest.$ac_ext <<_ACEOF
3927
/* end confdefs.h. */
3929
/* Override any gcc2 internal prototype to avoid an error. */
3933
/* We use char because int might match the return type of a gcc2
3934
builtin and then its argument prototype would still apply. */
3935
char gethostbyname ();
3944
rm -f conftest.$ac_objext conftest$ac_exeext
3945
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3946
(eval $ac_link) 2>conftest.er1
3948
grep -v '^ *+' conftest.er1 >conftest.err
3950
cat conftest.err >&5
3951
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3952
(exit $ac_status); } &&
3953
{ ac_try='test -z "$ac_c_werror_flag"
3954
|| test ! -s conftest.err'
3955
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3958
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3959
(exit $ac_status); }; } &&
3960
{ ac_try='test -s conftest$ac_exeext'
3961
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3964
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965
(exit $ac_status); }; }; then
3966
ac_cv_lib_nsl_gethostbyname=yes
3968
echo "$as_me: failed program was:" >&5
3969
sed 's/^/| /' conftest.$ac_ext >&5
3971
ac_cv_lib_nsl_gethostbyname=no
3973
rm -f conftest.err conftest.$ac_objext \
3974
conftest$ac_exeext conftest.$ac_ext
3975
LIBS=$ac_check_lib_save_LIBS
3977
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3978
echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3979
if test $ac_cv_lib_nsl_gethostbyname = yes; then
3980
X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3983
if test $ac_cv_lib_nsl_gethostbyname = no; then
3984
echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
3985
echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
3986
if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3987
echo $ECHO_N "(cached) $ECHO_C" >&6
3989
ac_check_lib_save_LIBS=$LIBS
3991
cat >conftest.$ac_ext <<_ACEOF
3994
cat confdefs.h >>conftest.$ac_ext
3995
cat >>conftest.$ac_ext <<_ACEOF
3996
/* end confdefs.h. */
3998
/* Override any gcc2 internal prototype to avoid an error. */
4002
/* We use char because int might match the return type of a gcc2
4003
builtin and then its argument prototype would still apply. */
4004
char gethostbyname ();
4013
rm -f conftest.$ac_objext conftest$ac_exeext
4014
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4015
(eval $ac_link) 2>conftest.er1
4017
grep -v '^ *+' conftest.er1 >conftest.err
4019
cat conftest.err >&5
4020
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021
(exit $ac_status); } &&
4022
{ ac_try='test -z "$ac_c_werror_flag"
4023
|| test ! -s conftest.err'
4024
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4027
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4028
(exit $ac_status); }; } &&
4029
{ ac_try='test -s conftest$ac_exeext'
4030
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4033
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034
(exit $ac_status); }; }; then
4035
ac_cv_lib_bsd_gethostbyname=yes
4037
echo "$as_me: failed program was:" >&5
4038
sed 's/^/| /' conftest.$ac_ext >&5
4040
ac_cv_lib_bsd_gethostbyname=no
4042
rm -f conftest.err conftest.$ac_objext \
4043
conftest$ac_exeext conftest.$ac_ext
4044
LIBS=$ac_check_lib_save_LIBS
4046
echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
4047
echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
4048
if test $ac_cv_lib_bsd_gethostbyname = yes; then
4049
X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
4055
# lieder@skyler.mavd.honeywell.com says without -lsocket,
4056
# socket/setsockopt and other routines are undefined under SCO ODT
4057
# 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
4058
# on later versions), says Simon Leinen: it contains gethostby*
4059
# variants that don't use the name server (or something). -lsocket
4060
# must be given before -lnsl if both are needed. We assume that
4061
# if connect needs -lnsl, so does gethostbyname.
4062
echo "$as_me:$LINENO: checking for connect" >&5
4063
echo $ECHO_N "checking for connect... $ECHO_C" >&6
4064
if test "${ac_cv_func_connect+set}" = set; then
4065
echo $ECHO_N "(cached) $ECHO_C" >&6
4067
cat >conftest.$ac_ext <<_ACEOF
4070
cat confdefs.h >>conftest.$ac_ext
4071
cat >>conftest.$ac_ext <<_ACEOF
4072
/* end confdefs.h. */
4073
/* Define connect to an innocuous variant, in case <limits.h> declares connect.
4074
For example, HP-UX 11i <limits.h> declares gettimeofday. */
4075
#define connect innocuous_connect
4077
/* System header to define __stub macros and hopefully few prototypes,
4078
which can conflict with char connect (); below.
4079
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4080
<limits.h> exists even on freestanding compilers. */
4083
# include <limits.h>
4085
# include <assert.h>
4090
/* Override any gcc2 internal prototype to avoid an error. */
4095
/* We use char because int might match the return type of a gcc2
4096
builtin and then its argument prototype would still apply. */
4098
/* The GNU C library defines this for functions which it implements
4099
to always fail with ENOSYS. Some functions are actually named
4100
something starting with __ and the normal name is an alias. */
4101
#if defined (__stub_connect) || defined (__stub___connect)
4104
char (*f) () = connect;
4113
return f != connect;
4118
rm -f conftest.$ac_objext conftest$ac_exeext
4119
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4120
(eval $ac_link) 2>conftest.er1
4122
grep -v '^ *+' conftest.er1 >conftest.err
4124
cat conftest.err >&5
4125
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126
(exit $ac_status); } &&
4127
{ ac_try='test -z "$ac_c_werror_flag"
4128
|| test ! -s conftest.err'
4129
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4132
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4133
(exit $ac_status); }; } &&
4134
{ ac_try='test -s conftest$ac_exeext'
4135
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4138
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4139
(exit $ac_status); }; }; then
4140
ac_cv_func_connect=yes
4142
echo "$as_me: failed program was:" >&5
4143
sed 's/^/| /' conftest.$ac_ext >&5
4145
ac_cv_func_connect=no
4147
rm -f conftest.err conftest.$ac_objext \
4148
conftest$ac_exeext conftest.$ac_ext
4150
echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4151
echo "${ECHO_T}$ac_cv_func_connect" >&6
4153
if test $ac_cv_func_connect = no; then
4154
echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4155
echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
4156
if test "${ac_cv_lib_socket_connect+set}" = set; then
4157
echo $ECHO_N "(cached) $ECHO_C" >&6
4159
ac_check_lib_save_LIBS=$LIBS
4160
LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4161
cat >conftest.$ac_ext <<_ACEOF
4164
cat confdefs.h >>conftest.$ac_ext
4165
cat >>conftest.$ac_ext <<_ACEOF
4166
/* end confdefs.h. */
4168
/* Override any gcc2 internal prototype to avoid an error. */
4172
/* We use char because int might match the return type of a gcc2
4173
builtin and then its argument prototype would still apply. */
4183
rm -f conftest.$ac_objext conftest$ac_exeext
4184
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4185
(eval $ac_link) 2>conftest.er1
4187
grep -v '^ *+' conftest.er1 >conftest.err
4189
cat conftest.err >&5
4190
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4191
(exit $ac_status); } &&
4192
{ ac_try='test -z "$ac_c_werror_flag"
4193
|| test ! -s conftest.err'
4194
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4197
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4198
(exit $ac_status); }; } &&
4199
{ ac_try='test -s conftest$ac_exeext'
4200
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4203
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4204
(exit $ac_status); }; }; then
4205
ac_cv_lib_socket_connect=yes
4207
echo "$as_me: failed program was:" >&5
4208
sed 's/^/| /' conftest.$ac_ext >&5
4210
ac_cv_lib_socket_connect=no
4212
rm -f conftest.err conftest.$ac_objext \
4213
conftest$ac_exeext conftest.$ac_ext
4214
LIBS=$ac_check_lib_save_LIBS
4216
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
4217
echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
4218
if test $ac_cv_lib_socket_connect = yes; then
4219
X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4224
# Guillermo Gomez says -lposix is necessary on A/UX.
4225
echo "$as_me:$LINENO: checking for remove" >&5
4226
echo $ECHO_N "checking for remove... $ECHO_C" >&6
4227
if test "${ac_cv_func_remove+set}" = set; then
4228
echo $ECHO_N "(cached) $ECHO_C" >&6
4230
cat >conftest.$ac_ext <<_ACEOF
4233
cat confdefs.h >>conftest.$ac_ext
4234
cat >>conftest.$ac_ext <<_ACEOF
4235
/* end confdefs.h. */
4236
/* Define remove to an innocuous variant, in case <limits.h> declares remove.
4237
For example, HP-UX 11i <limits.h> declares gettimeofday. */
4238
#define remove innocuous_remove
4240
/* System header to define __stub macros and hopefully few prototypes,
4241
which can conflict with char remove (); below.
4242
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4243
<limits.h> exists even on freestanding compilers. */
4246
# include <limits.h>
4248
# include <assert.h>
4253
/* Override any gcc2 internal prototype to avoid an error. */
4258
/* We use char because int might match the return type of a gcc2
4259
builtin and then its argument prototype would still apply. */
4261
/* The GNU C library defines this for functions which it implements
4262
to always fail with ENOSYS. Some functions are actually named
4263
something starting with __ and the normal name is an alias. */
4264
#if defined (__stub_remove) || defined (__stub___remove)
4267
char (*f) () = remove;
4281
rm -f conftest.$ac_objext conftest$ac_exeext
4282
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4283
(eval $ac_link) 2>conftest.er1
4285
grep -v '^ *+' conftest.er1 >conftest.err
4287
cat conftest.err >&5
4288
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289
(exit $ac_status); } &&
4290
{ ac_try='test -z "$ac_c_werror_flag"
4291
|| test ! -s conftest.err'
4292
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4295
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296
(exit $ac_status); }; } &&
4297
{ ac_try='test -s conftest$ac_exeext'
4298
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4301
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4302
(exit $ac_status); }; }; then
4303
ac_cv_func_remove=yes
4305
echo "$as_me: failed program was:" >&5
4306
sed 's/^/| /' conftest.$ac_ext >&5
4308
ac_cv_func_remove=no
4310
rm -f conftest.err conftest.$ac_objext \
4311
conftest$ac_exeext conftest.$ac_ext
4313
echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
4314
echo "${ECHO_T}$ac_cv_func_remove" >&6
4316
if test $ac_cv_func_remove = no; then
4317
echo "$as_me:$LINENO: checking for remove in -lposix" >&5
4318
echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
4319
if test "${ac_cv_lib_posix_remove+set}" = set; then
4320
echo $ECHO_N "(cached) $ECHO_C" >&6
4322
ac_check_lib_save_LIBS=$LIBS
4323
LIBS="-lposix $LIBS"
4324
cat >conftest.$ac_ext <<_ACEOF
4327
cat confdefs.h >>conftest.$ac_ext
4328
cat >>conftest.$ac_ext <<_ACEOF
4329
/* end confdefs.h. */
4331
/* Override any gcc2 internal prototype to avoid an error. */
4335
/* We use char because int might match the return type of a gcc2
4336
builtin and then its argument prototype would still apply. */
4346
rm -f conftest.$ac_objext conftest$ac_exeext
4347
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4348
(eval $ac_link) 2>conftest.er1
4350
grep -v '^ *+' conftest.er1 >conftest.err
4352
cat conftest.err >&5
4353
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354
(exit $ac_status); } &&
4355
{ ac_try='test -z "$ac_c_werror_flag"
4356
|| test ! -s conftest.err'
4357
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4360
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4361
(exit $ac_status); }; } &&
4362
{ ac_try='test -s conftest$ac_exeext'
4363
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4366
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367
(exit $ac_status); }; }; then
4368
ac_cv_lib_posix_remove=yes
4370
echo "$as_me: failed program was:" >&5
4371
sed 's/^/| /' conftest.$ac_ext >&5
4373
ac_cv_lib_posix_remove=no
4375
rm -f conftest.err conftest.$ac_objext \
4376
conftest$ac_exeext conftest.$ac_ext
4377
LIBS=$ac_check_lib_save_LIBS
4379
echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
4380
echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
4381
if test $ac_cv_lib_posix_remove = yes; then
4382
X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
4387
# BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4388
echo "$as_me:$LINENO: checking for shmat" >&5
4389
echo $ECHO_N "checking for shmat... $ECHO_C" >&6
4390
if test "${ac_cv_func_shmat+set}" = set; then
4391
echo $ECHO_N "(cached) $ECHO_C" >&6
4393
cat >conftest.$ac_ext <<_ACEOF
4396
cat confdefs.h >>conftest.$ac_ext
4397
cat >>conftest.$ac_ext <<_ACEOF
4398
/* end confdefs.h. */
4399
/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
4400
For example, HP-UX 11i <limits.h> declares gettimeofday. */
4401
#define shmat innocuous_shmat
4403
/* System header to define __stub macros and hopefully few prototypes,
4404
which can conflict with char shmat (); below.
4405
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4406
<limits.h> exists even on freestanding compilers. */
4409
# include <limits.h>
4411
# include <assert.h>
4416
/* Override any gcc2 internal prototype to avoid an error. */
4421
/* We use char because int might match the return type of a gcc2
4422
builtin and then its argument prototype would still apply. */
4424
/* The GNU C library defines this for functions which it implements
4425
to always fail with ENOSYS. Some functions are actually named
4426
something starting with __ and the normal name is an alias. */
4427
#if defined (__stub_shmat) || defined (__stub___shmat)
4430
char (*f) () = shmat;
4444
rm -f conftest.$ac_objext conftest$ac_exeext
4445
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4446
(eval $ac_link) 2>conftest.er1
4448
grep -v '^ *+' conftest.er1 >conftest.err
4450
cat conftest.err >&5
4451
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4452
(exit $ac_status); } &&
4453
{ ac_try='test -z "$ac_c_werror_flag"
4454
|| test ! -s conftest.err'
4455
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4458
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459
(exit $ac_status); }; } &&
4460
{ ac_try='test -s conftest$ac_exeext'
4461
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4464
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465
(exit $ac_status); }; }; then
4466
ac_cv_func_shmat=yes
4468
echo "$as_me: failed program was:" >&5
4469
sed 's/^/| /' conftest.$ac_ext >&5
4473
rm -f conftest.err conftest.$ac_objext \
4474
conftest$ac_exeext conftest.$ac_ext
4476
echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
4477
echo "${ECHO_T}$ac_cv_func_shmat" >&6
4479
if test $ac_cv_func_shmat = no; then
4480
echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
4481
echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
4482
if test "${ac_cv_lib_ipc_shmat+set}" = set; then
4483
echo $ECHO_N "(cached) $ECHO_C" >&6
4485
ac_check_lib_save_LIBS=$LIBS
4487
cat >conftest.$ac_ext <<_ACEOF
4490
cat confdefs.h >>conftest.$ac_ext
4491
cat >>conftest.$ac_ext <<_ACEOF
4492
/* end confdefs.h. */
4494
/* Override any gcc2 internal prototype to avoid an error. */
4498
/* We use char because int might match the return type of a gcc2
4499
builtin and then its argument prototype would still apply. */
4509
rm -f conftest.$ac_objext conftest$ac_exeext
4510
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4511
(eval $ac_link) 2>conftest.er1
4513
grep -v '^ *+' conftest.er1 >conftest.err
4515
cat conftest.err >&5
4516
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4517
(exit $ac_status); } &&
4518
{ ac_try='test -z "$ac_c_werror_flag"
4519
|| test ! -s conftest.err'
4520
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4523
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4524
(exit $ac_status); }; } &&
4525
{ ac_try='test -s conftest$ac_exeext'
4526
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4529
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530
(exit $ac_status); }; }; then
4531
ac_cv_lib_ipc_shmat=yes
4533
echo "$as_me: failed program was:" >&5
4534
sed 's/^/| /' conftest.$ac_ext >&5
4536
ac_cv_lib_ipc_shmat=no
4538
rm -f conftest.err conftest.$ac_objext \
4539
conftest$ac_exeext conftest.$ac_ext
4540
LIBS=$ac_check_lib_save_LIBS
4542
echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
4543
echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
4544
if test $ac_cv_lib_ipc_shmat = yes; then
4545
X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4551
# Check for libraries that X11R6 Xt/Xaw programs need.
4552
ac_save_LDFLAGS=$LDFLAGS
4553
test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4554
# SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4555
# check for ICE first), but we must link in the order -lSM -lICE or
4556
# we get undefined symbols. So assume we have SM if we have ICE.
4557
# These have to be linked with before -lX11, unlike the other
4558
# libraries we check for below, so use a different variable.
4559
# John Interrante, Karl Berry
4560
echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
4561
echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
4562
if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
4563
echo $ECHO_N "(cached) $ECHO_C" >&6
4565
ac_check_lib_save_LIBS=$LIBS
4566
LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4567
cat >conftest.$ac_ext <<_ACEOF
4570
cat confdefs.h >>conftest.$ac_ext
4571
cat >>conftest.$ac_ext <<_ACEOF
4572
/* end confdefs.h. */
4574
/* Override any gcc2 internal prototype to avoid an error. */
4578
/* We use char because int might match the return type of a gcc2
4579
builtin and then its argument prototype would still apply. */
4580
char IceConnectionNumber ();
4584
IceConnectionNumber ();
4589
rm -f conftest.$ac_objext conftest$ac_exeext
4590
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4591
(eval $ac_link) 2>conftest.er1
4593
grep -v '^ *+' conftest.er1 >conftest.err
4595
cat conftest.err >&5
4596
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4597
(exit $ac_status); } &&
4598
{ ac_try='test -z "$ac_c_werror_flag"
4599
|| test ! -s conftest.err'
4600
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4603
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604
(exit $ac_status); }; } &&
4605
{ ac_try='test -s conftest$ac_exeext'
4606
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4609
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610
(exit $ac_status); }; }; then
4611
ac_cv_lib_ICE_IceConnectionNumber=yes
4613
echo "$as_me: failed program was:" >&5
4614
sed 's/^/| /' conftest.$ac_ext >&5
4616
ac_cv_lib_ICE_IceConnectionNumber=no
4618
rm -f conftest.err conftest.$ac_objext \
4619
conftest$ac_exeext conftest.$ac_ext
4620
LIBS=$ac_check_lib_save_LIBS
4622
echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
4623
echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
4624
if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
4625
X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4628
LDFLAGS=$ac_save_LDFLAGS
4637
# Check whether --with-athena or --without-athena was given.
4638
if test "${with_athena+set}" = set; then
4639
withval="$with_athena"
4642
if test "$with_athena" = "no"
4648
# Check whether --with-athena-includes or --without-athena-includes was given.
4649
if test "${with_athena_includes+set}" = set; then
4650
withval="$with_athena_includes"
4651
athena_includes="$withval"
4654
# Check whether --with-athena-libraries or --without-athena-libraries was given.
4655
if test "${with_athena_libraries+set}" = set; then
4656
withval="$with_athena_libraries"
4657
athena_libraries="$withval"
4659
echo "$as_me:$LINENO: checking for Athena" >&5
4660
echo $ECHO_N "checking for Athena... $ECHO_C" >&6
4663
# Search the include files.
4665
if test "$athena_includes" = ""; then
4666
if test "${ice_cv_athena_includes+set}" = set; then
4667
echo $ECHO_N "(cached) $ECHO_C" >&6
4670
ice_athena_save_LIBS="$LIBS"
4671
ice_athena_save_CFLAGS="$CFLAGS"
4672
ice_athena_save_CPPFLAGS="$CPPFLAGS"
4673
ice_athena_save_LDFLAGS="$LDFLAGS"
4675
LIBS="$X_PRE_LIBS -lXaw -lXmu -lXext -lXt -lX11 $X_EXTRA_LIBS $LIBS"
4676
CFLAGS="$X_CFLAGS $CFLAGS"
4677
CPPFLAGS="$X_CFLAGS $CPPFLAGS"
4678
LDFLAGS="$X_LIBS $LDFLAGS"
4680
cat >conftest.$ac_ext <<_ACEOF
4683
cat confdefs.h >>conftest.$ac_ext
4684
cat >>conftest.$ac_ext <<_ACEOF
4685
/* end confdefs.h. */
4687
#include <X11/Intrinsic.h>
4688
#include <X11/Xaw/Text.h>
4698
rm -f conftest.$ac_objext
4699
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4700
(eval $ac_compile) 2>conftest.er1
4702
grep -v '^ *+' conftest.er1 >conftest.err
4704
cat conftest.err >&5
4705
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4706
(exit $ac_status); } &&
4707
{ ac_try='test -z "$ac_c_werror_flag"
4708
|| test ! -s conftest.err'
4709
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4712
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713
(exit $ac_status); }; } &&
4714
{ ac_try='test -s conftest.$ac_objext'
4715
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4718
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4719
(exit $ac_status); }; }; then
4721
# X11/Xaw/Text.h is in the standard search path.
4722
ice_cv_athena_includes=
4725
echo "$as_me: failed program was:" >&5
4726
sed 's/^/| /' conftest.$ac_ext >&5
4729
# X11/Xaw/Text.h is not in the standard search path.
4730
# Locate it and put its directory in `athena_includes'
4732
# /usr/include/Motif* are used on HP-UX (Motif).
4733
# /usr/include/X11* are used on HP-UX (X and Athena).
4734
# /usr/dt is used on Solaris (Motif).
4735
# /usr/openwin is used on Solaris (X and Athena).
4736
# Other directories are just guesses.
4737
for dir in "$x_includes" "${prefix}/include" /usr/include /usr/local/include \
4738
/usr/include/Motif2.0 /usr/include/Motif1.2 /usr/include/Motif1.1 \
4739
/usr/include/X11R6 /usr/include/X11R5 /usr/include/X11R4 \
4740
/usr/dt/include /usr/openwin/include \
4741
/usr/dt/*/include /opt/*/include /usr/include/Motif* \
4742
"${prefix}"/*/include /usr/*/include /usr/local/*/include \
4743
"${prefix}"/include/* /usr/include/* /usr/local/include/*; do
4744
if test -f "$dir/X11/Xaw/Text.h"; then
4745
ice_cv_athena_includes="$dir"
4751
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4753
LIBS="$ice_athena_save_LIBS"
4754
CFLAGS="$ice_athena_save_CFLAGS"
4755
CPPFLAGS="$ice_athena_save_CPPFLAGS"
4756
LDFLAGS="$ice_athena_save_LDFLAGS"
4760
athena_includes="$ice_cv_athena_includes"
4764
# Now for the libraries.
4766
if test "$athena_libraries" = ""; then
4767
if test "${ice_cv_athena_libraries+set}" = set; then
4768
echo $ECHO_N "(cached) $ECHO_C" >&6
4771
ice_athena_save_LIBS="$LIBS"
4772
ice_athena_save_CFLAGS="$CFLAGS"
4773
ice_athena_save_CPPFLAGS="$CPPFLAGS"
4774
ice_athena_save_LDFLAGS="$LDFLAGS"
4776
LIBS="$X_PRE_LIBS -lXaw -lXmu -lXext -lXt -lX11 $X_EXTRA_LIBS $LIBS"
4777
CFLAGS="$X_CFLAGS $CFLAGS"
4778
CPPFLAGS="$X_CFLAGS $CPPFLAGS"
4779
LDFLAGS="$X_LIBS $LDFLAGS"
4781
cat >conftest.$ac_ext <<_ACEOF
4784
cat confdefs.h >>conftest.$ac_ext
4785
cat >>conftest.$ac_ext <<_ACEOF
4786
/* end confdefs.h. */
4788
#include <X11/Intrinsic.h>
4789
#include <X11/Xaw/Text.h>
4794
XtToolkitInitialize();
4799
rm -f conftest.$ac_objext conftest$ac_exeext
4800
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4801
(eval $ac_link) 2>conftest.er1
4803
grep -v '^ *+' conftest.er1 >conftest.err
4805
cat conftest.err >&5
4806
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807
(exit $ac_status); } &&
4808
{ ac_try='test -z "$ac_c_werror_flag"
4809
|| test ! -s conftest.err'
4810
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4813
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814
(exit $ac_status); }; } &&
4815
{ ac_try='test -s conftest$ac_exeext'
4816
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4819
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820
(exit $ac_status); }; }; then
4822
# libXaw.a is in the standard search path.
4823
ice_cv_athena_libraries=
4826
echo "$as_me: failed program was:" >&5
4827
sed 's/^/| /' conftest.$ac_ext >&5
4830
# libXaw.a is not in the standard search path.
4831
# Locate it and put its directory in `athena_libraries'
4834
# /usr/lib/Motif* are used on HP-UX (Motif).
4835
# /usr/lib/X11* are used on HP-UX (X and Athena).
4836
# /usr/dt is used on Solaris (Motif).
4837
# /usr/openwin is used on Solaris (X and Athena).
4838
# Other directories are just guesses.
4839
for dir in "$x_libraries" "${prefix}/lib" /usr/lib /usr/local/lib \
4840
/usr/lib/Motif2.0 /usr/lib/Motif1.2 /usr/lib/Motif1.1 \
4841
/usr/lib/X11R6 /usr/lib/X11R5 /usr/lib/X11R4 /usr/lib/X11 \
4842
/usr/dt/lib /usr/openwin/lib \
4843
/usr/dt/*/lib /opt/*/lib /usr/lib/Motif* \
4844
"${prefix}"/*/lib /usr/*/lib /usr/local/*/lib \
4845
"${prefix}"/lib/* /usr/lib/* /usr/local/lib/*; do
4846
if test -d "$dir" && test "`ls $dir/libXaw.* 2> /dev/null`" != ""; then
4847
ice_cv_athena_libraries="$dir"
4853
rm -f conftest.err conftest.$ac_objext \
4854
conftest$ac_exeext conftest.$ac_ext
4856
LIBS="$ice_athena_save_LIBS"
4857
CFLAGS="$ice_athena_save_CFLAGS"
4858
CPPFLAGS="$ice_athena_save_CPPFLAGS"
4859
LDFLAGS="$ice_athena_save_LDFLAGS"
4864
athena_libraries="$ice_cv_athena_libraries"
4866
# Add Athena definitions to X flags
4868
if test "$athena_includes" != "" && test "$athena_includes" != "$x_includes" && test "$athena_includes" != "no"
4870
X_CFLAGS="-I$athena_includes $X_CFLAGS"
4872
if test "$athena_libraries" != "" && test "$athena_libraries" != "$x_libraries" && test "$athena_libraries" != "no"
4875
*-R\ *) X_LIBS="-L$athena_libraries -R $athena_libraries $X_LIBS";;
4876
*-R*) X_LIBS="-L$athena_libraries -R$athena_libraries $X_LIBS";;
4877
*) X_LIBS="-L$athena_libraries $X_LIBS";;
4882
athena_libraries_result="$athena_libraries"
4883
athena_includes_result="$athena_includes"
4884
test "$athena_libraries_result" = "" &&
4885
athena_libraries_result="in default path"
4886
test "$athena_includes_result" = "" &&
4887
athena_includes_result="in default path"
4888
test "$athena_libraries_result" = "no" &&
4889
athena_libraries_result="(none)"
4890
test "$athena_includes_result" = "no" &&
4891
athena_includes_result="(none)"
4892
echo "$as_me:$LINENO: result: libraries $athena_libraries_result, headers $athena_includes_result" >&5
4893
echo "${ECHO_T}libraries $athena_libraries_result, headers $athena_includes_result" >&6
4895
# Check whether --enable-shared or --disable-shared was given.
4896
if test "${enable_shared+set}" = set; then
4897
enableval="$enable_shared"
4898
p=${PACKAGE-default}
4900
yes) enable_shared=yes ;;
4901
no) enable_shared=no ;;
4904
# Look at the argument we got. We use all the common list separators.
4905
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4906
for pkg in $enableval; do
4908
if test "X$pkg" = "X$p"; then
4919
# Check whether --enable-static or --disable-static was given.
4920
if test "${enable_static+set}" = set; then
4921
enableval="$enable_static"
4922
p=${PACKAGE-default}
4924
yes) enable_static=yes ;;
4925
no) enable_static=no ;;
4928
# Look at the argument we got. We use all the common list separators.
4929
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4930
for pkg in $enableval; do
4932
if test "X$pkg" = "X$p"; then
4943
# Check whether --enable-fast-install or --disable-fast-install was given.
4944
if test "${enable_fast_install+set}" = set; then
4945
enableval="$enable_fast_install"
4946
p=${PACKAGE-default}
4948
yes) enable_fast_install=yes ;;
4949
no) enable_fast_install=no ;;
4951
enable_fast_install=no
4952
# Look at the argument we got. We use all the common list separators.
4953
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4954
for pkg in $enableval; do
4956
if test "X$pkg" = "X$p"; then
4957
enable_fast_install=yes
4964
enable_fast_install=yes
4967
# Make sure we can run config.sub.
4968
$ac_config_sub sun4 >/dev/null 2>&1 ||
4969
{ { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4970
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4971
{ (exit 1); exit 1; }; }
4973
echo "$as_me:$LINENO: checking build system type" >&5
4974
echo $ECHO_N "checking build system type... $ECHO_C" >&6
4975
if test "${ac_cv_build+set}" = set; then
4976
echo $ECHO_N "(cached) $ECHO_C" >&6
4978
ac_cv_build_alias=$build_alias
4979
test -z "$ac_cv_build_alias" &&
4980
ac_cv_build_alias=`$ac_config_guess`
4981
test -z "$ac_cv_build_alias" &&
4982
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4983
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4984
{ (exit 1); exit 1; }; }
4985
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4986
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4987
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4988
{ (exit 1); exit 1; }; }
4991
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4992
echo "${ECHO_T}$ac_cv_build" >&6
4994
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4995
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4996
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4999
echo "$as_me:$LINENO: checking host system type" >&5
5000
echo $ECHO_N "checking host system type... $ECHO_C" >&6
5001
if test "${ac_cv_host+set}" = set; then
5002
echo $ECHO_N "(cached) $ECHO_C" >&6
5004
ac_cv_host_alias=$host_alias
5005
test -z "$ac_cv_host_alias" &&
5006
ac_cv_host_alias=$ac_cv_build_alias
5007
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5008
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5009
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5010
{ (exit 1); exit 1; }; }
5013
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5014
echo "${ECHO_T}$ac_cv_host" >&6
5016
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5017
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5018
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5021
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5022
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5023
if test "${lt_cv_path_SED+set}" = set; then
5024
echo $ECHO_N "(cached) $ECHO_C" >&6
5026
# Loop through the user's path and test for sed and gsed.
5027
# Then use that list of sed's as ones to test for truncation.
5028
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5032
test -z "$as_dir" && as_dir=.
5033
for lt_ac_prog in sed gsed; do
5034
for ac_exec_ext in '' $ac_executable_extensions; do
5035
if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5036
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5043
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5044
# along with /bin/sed that truncates output.
5045
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5046
test ! -f $lt_ac_sed && break
5047
cat /dev/null > conftest.in
5049
echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5050
# Check for GNU sed and select it if it is found.
5051
if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5052
lt_cv_path_SED=$lt_ac_sed
5056
cat conftest.in conftest.in >conftest.tmp
5057
mv conftest.tmp conftest.in
5058
cp conftest.in conftest.nl
5060
$lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5061
cmp -s conftest.out conftest.nl || break
5062
# 10000 chars as input seems more than enough
5063
test $lt_ac_count -gt 10 && break
5064
lt_ac_count=`expr $lt_ac_count + 1`
5065
if test $lt_ac_count -gt $lt_ac_max; then
5066
lt_ac_max=$lt_ac_count
5067
lt_cv_path_SED=$lt_ac_sed
5075
echo "$as_me:$LINENO: result: $SED" >&5
5076
echo "${ECHO_T}$SED" >&6
5078
echo "$as_me:$LINENO: checking for egrep" >&5
5079
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5080
if test "${ac_cv_prog_egrep+set}" = set; then
5081
echo $ECHO_N "(cached) $ECHO_C" >&6
5083
if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5084
then ac_cv_prog_egrep='grep -E'
5085
else ac_cv_prog_egrep='egrep'
5088
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5089
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5090
EGREP=$ac_cv_prog_egrep
5094
# Check whether --with-gnu-ld or --without-gnu-ld was given.
5095
if test "${with_gnu_ld+set}" = set; then
5096
withval="$with_gnu_ld"
5097
test "$withval" = no || with_gnu_ld=yes
5102
if test "$GCC" = yes; then
5103
# Check if gcc -print-prog-name=ld gives a path.
5104
echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5105
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5108
# gcc leaves a trailing carriage return which upsets mingw
5109
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5111
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5114
# Accept absolute paths.
5116
re_direlt='/[^/][^/]*/\.\./'
5117
# Canonicalize the pathname of ld
5118
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5119
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5120
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5122
test -z "$LD" && LD="$ac_prog"
5125
# If it fails, then pretend we aren't using GCC.
5129
# If it is relative, then search for the first ld in PATH.
5133
elif test "$with_gnu_ld" = yes; then
5134
echo "$as_me:$LINENO: checking for GNU ld" >&5
5135
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5137
echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5138
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5140
if test "${lt_cv_path_LD+set}" = set; then
5141
echo $ECHO_N "(cached) $ECHO_C" >&6
5143
if test -z "$LD"; then
5144
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5145
for ac_dir in $PATH; do
5147
test -z "$ac_dir" && ac_dir=.
5148
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5149
lt_cv_path_LD="$ac_dir/$ac_prog"
5150
# Check to see if the program is GNU ld. I'd rather use --version,
5151
# but apparently some GNU ld's only accept -v.
5152
# Break only if it was the GNU/non-GNU ld that we prefer.
5153
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5154
*GNU* | *'with BFD'*)
5155
test "$with_gnu_ld" != no && break
5158
test "$with_gnu_ld" != yes && break
5165
lt_cv_path_LD="$LD" # Let the user override the test with a path.
5170
if test -n "$LD"; then
5171
echo "$as_me:$LINENO: result: $LD" >&5
5172
echo "${ECHO_T}$LD" >&6
5174
echo "$as_me:$LINENO: result: no" >&5
5175
echo "${ECHO_T}no" >&6
5177
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5178
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5179
{ (exit 1); exit 1; }; }
5180
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5181
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5182
if test "${lt_cv_prog_gnu_ld+set}" = set; then
5183
echo $ECHO_N "(cached) $ECHO_C" >&6
5185
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
5186
case `$LD -v 2>&1 </dev/null` in
5187
*GNU* | *'with BFD'*)
5188
lt_cv_prog_gnu_ld=yes
5191
lt_cv_prog_gnu_ld=no
5195
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5196
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5197
with_gnu_ld=$lt_cv_prog_gnu_ld
5200
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5201
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5202
if test "${lt_cv_ld_reload_flag+set}" = set; then
5203
echo $ECHO_N "(cached) $ECHO_C" >&6
5205
lt_cv_ld_reload_flag='-r'
5207
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5208
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5209
reload_flag=$lt_cv_ld_reload_flag
5210
case $reload_flag in
5212
*) reload_flag=" $reload_flag" ;;
5214
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5217
if test "$GCC" = yes; then
5218
reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
5220
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5225
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5226
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5227
if test "${lt_cv_path_NM+set}" = set; then
5228
echo $ECHO_N "(cached) $ECHO_C" >&6
5230
if test -n "$NM"; then
5231
# Let the user override the test.
5234
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5235
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5237
test -z "$ac_dir" && ac_dir=.
5238
tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5239
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5240
# Check to see if the nm accepts a BSD-compat flag.
5241
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5242
# nm: unknown option "B" ignored
5243
# Tru64's nm complains that /dev/null is an invalid object file
5244
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5245
*/dev/null* | *'Invalid file or object type'*)
5246
lt_cv_path_NM="$tmp_nm -B"
5250
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5252
lt_cv_path_NM="$tmp_nm -p"
5256
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5257
continue # so that we can try to find one that supports BSD flags
5264
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5267
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5268
echo "${ECHO_T}$lt_cv_path_NM" >&6
5271
echo "$as_me:$LINENO: checking whether ln -s works" >&5
5272
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5274
if test "$LN_S" = "ln -s"; then
5275
echo "$as_me:$LINENO: result: yes" >&5
5276
echo "${ECHO_T}yes" >&6
5278
echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5279
echo "${ECHO_T}no, using $LN_S" >&6
5282
echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5283
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5284
if test "${lt_cv_deplibs_check_method+set}" = set; then
5285
echo $ECHO_N "(cached) $ECHO_C" >&6
5287
lt_cv_file_magic_cmd='$MAGIC_CMD'
5288
lt_cv_file_magic_test_file=
5289
lt_cv_deplibs_check_method='unknown'
5290
# Need to set the preceding variable on all platforms that support
5291
# interlibrary dependencies.
5292
# 'none' -- dependencies not supported.
5293
# `unknown' -- same as none, but documents that we really don't know.
5294
# 'pass_all' -- all dependencies passed with no checks.
5295
# 'test_compile' -- check by making test program.
5296
# 'file_magic [[regex]]' -- check by looking for files in library path
5297
# which responds to the $file_magic_cmd with a given extended regex.
5298
# If you have `file' or equivalent on your system and you're not sure
5299
# whether `pass_all' will *always* work, you probably want this one.
5303
lt_cv_deplibs_check_method=pass_all
5307
lt_cv_deplibs_check_method=pass_all
5311
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5312
lt_cv_file_magic_cmd='/usr/bin/file -L'
5313
lt_cv_file_magic_test_file=/shlib/libc.so
5317
# func_win32_libid is a shell function defined in ltmain.sh
5318
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5319
lt_cv_file_magic_cmd='func_win32_libid'
5323
# Base MSYS/MinGW do not provide the 'file' command needed by
5324
# func_win32_libid shell function, so use a weaker test based on 'objdump'.
5325
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5326
lt_cv_file_magic_cmd='$OBJDUMP -f'
5329
darwin* | rhapsody*)
5330
lt_cv_deplibs_check_method=pass_all
5333
freebsd* | kfreebsd*-gnu)
5334
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5337
# Not sure whether the presence of OpenBSD here was a mistake.
5338
# Let's accept both of them until this is cleared up.
5339
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
5340
lt_cv_file_magic_cmd=/usr/bin/file
5341
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5345
lt_cv_deplibs_check_method=pass_all
5350
lt_cv_deplibs_check_method=pass_all
5353
hpux10.20* | hpux11*)
5354
lt_cv_file_magic_cmd=/usr/bin/file
5357
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5358
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5361
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5362
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5365
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5366
lt_cv_file_magic_test_file=/usr/lib/libc.sl
5371
irix5* | irix6* | nonstopux*)
5373
*-32|*"-32 ") libmagic=32-bit;;
5374
*-n32|*"-n32 ") libmagic=N32;;
5375
*-64|*"-64 ") libmagic=64-bit;;
5376
*) libmagic=never-match;;
5378
lt_cv_deplibs_check_method=pass_all
5381
# This must be Linux ELF.
5383
lt_cv_deplibs_check_method=pass_all
5387
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5388
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5390
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5395
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5396
lt_cv_file_magic_cmd=/usr/bin/file
5397
lt_cv_file_magic_test_file=/usr/lib/libnls.so
5401
lt_cv_deplibs_check_method=unknown
5405
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5406
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5408
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5412
osf3* | osf4* | osf5*)
5413
lt_cv_deplibs_check_method=pass_all
5417
lt_cv_deplibs_check_method=pass_all
5421
lt_cv_deplibs_check_method=pass_all
5424
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5425
case $host_vendor in
5427
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]'
5428
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5431
lt_cv_deplibs_check_method=pass_all
5434
lt_cv_file_magic_cmd='/bin/file'
5435
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5438
lt_cv_file_magic_cmd='/bin/file'
5439
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5440
lt_cv_file_magic_test_file=/lib/libc.so
5443
lt_cv_deplibs_check_method=pass_all
5448
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5449
lt_cv_deplibs_check_method=pass_all
5454
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5455
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5456
file_magic_cmd=$lt_cv_file_magic_cmd
5457
deplibs_check_method=$lt_cv_deplibs_check_method
5458
test -z "$deplibs_check_method" && deplibs_check_method=unknown
5463
# If no C compiler was specified, use CC.
5466
# Allow CC to be a program name with arguments.
5469
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5470
if test "${enable_libtool_lock+set}" = set; then
5471
enableval="$enable_libtool_lock"
5474
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5476
# Some flags need to be propagated to the compiler or linker for good
5480
# Find out which ABI we are using.
5481
echo 'int i;' > conftest.$ac_ext
5482
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5483
(eval $ac_compile) 2>&5
5485
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5486
(exit $ac_status); }; then
5487
case `/usr/bin/file conftest.$ac_objext` in
5499
# Find out which ABI we are using.
5500
echo '#line 5500 "configure"' > conftest.$ac_ext
5501
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5502
(eval $ac_compile) 2>&5
5504
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5505
(exit $ac_status); }; then
5506
if test "$lt_cv_prog_gnu_ld" = yes; then
5507
case `/usr/bin/file conftest.$ac_objext` in
5509
LD="${LD-ld} -melf32bsmip"
5512
LD="${LD-ld} -melf32bmipn32"
5515
LD="${LD-ld} -melf64bmip"
5519
case `/usr/bin/file conftest.$ac_objext` in
5535
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5536
# Find out which ABI we are using.
5537
echo 'int i;' > conftest.$ac_ext
5538
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5539
(eval $ac_compile) 2>&5
5541
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542
(exit $ac_status); }; then
5543
case "`/usr/bin/file conftest.o`" in
5547
LD="${LD-ld} -m elf_i386"
5549
ppc64-*linux*|powerpc64-*linux*)
5550
LD="${LD-ld} -m elf32ppclinux"
5553
LD="${LD-ld} -m elf_s390"
5556
LD="${LD-ld} -m elf32_sparc"
5563
LD="${LD-ld} -m elf_x86_64"
5565
ppc*-*linux*|powerpc*-*linux*)
5566
LD="${LD-ld} -m elf64ppc"
5569
LD="${LD-ld} -m elf64_s390"
5572
LD="${LD-ld} -m elf64_sparc"
5582
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
5583
SAVE_CFLAGS="$CFLAGS"
5584
CFLAGS="$CFLAGS -belf"
5585
echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5586
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5587
if test "${lt_cv_cc_needs_belf+set}" = set; then
5588
echo $ECHO_N "(cached) $ECHO_C" >&6
5591
ac_cpp='$CPP $CPPFLAGS'
5592
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5593
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5594
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5596
cat >conftest.$ac_ext <<_ACEOF
5599
cat confdefs.h >>conftest.$ac_ext
5600
cat >>conftest.$ac_ext <<_ACEOF
5601
/* end confdefs.h. */
5611
rm -f conftest.$ac_objext conftest$ac_exeext
5612
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5613
(eval $ac_link) 2>conftest.er1
5615
grep -v '^ *+' conftest.er1 >conftest.err
5617
cat conftest.err >&5
5618
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5619
(exit $ac_status); } &&
5620
{ ac_try='test -z "$ac_c_werror_flag"
5621
|| test ! -s conftest.err'
5622
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5625
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626
(exit $ac_status); }; } &&
5627
{ ac_try='test -s conftest$ac_exeext'
5628
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5631
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632
(exit $ac_status); }; }; then
5633
lt_cv_cc_needs_belf=yes
5635
echo "$as_me: failed program was:" >&5
5636
sed 's/^/| /' conftest.$ac_ext >&5
5638
lt_cv_cc_needs_belf=no
5640
rm -f conftest.err conftest.$ac_objext \
5641
conftest$ac_exeext conftest.$ac_ext
5643
ac_cpp='$CPP $CPPFLAGS'
5644
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5645
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5646
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5649
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5650
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5651
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5652
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5653
CFLAGS="$SAVE_CFLAGS"
5659
need_locks="$enable_libtool_lock"
5662
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5663
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5664
if test "${ac_cv_header_stdc+set}" = set; then
5665
echo $ECHO_N "(cached) $ECHO_C" >&6
5667
cat >conftest.$ac_ext <<_ACEOF
5670
cat confdefs.h >>conftest.$ac_ext
5671
cat >>conftest.$ac_ext <<_ACEOF
5672
/* end confdefs.h. */
5686
rm -f conftest.$ac_objext
5687
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5688
(eval $ac_compile) 2>conftest.er1
5690
grep -v '^ *+' conftest.er1 >conftest.err
5692
cat conftest.err >&5
5693
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694
(exit $ac_status); } &&
5695
{ ac_try='test -z "$ac_c_werror_flag"
5696
|| test ! -s conftest.err'
5697
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5700
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5701
(exit $ac_status); }; } &&
5702
{ ac_try='test -s conftest.$ac_objext'
5703
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5706
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5707
(exit $ac_status); }; }; then
5708
ac_cv_header_stdc=yes
5710
echo "$as_me: failed program was:" >&5
5711
sed 's/^/| /' conftest.$ac_ext >&5
5713
ac_cv_header_stdc=no
5715
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5717
if test $ac_cv_header_stdc = yes; then
5718
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5719
cat >conftest.$ac_ext <<_ACEOF
5722
cat confdefs.h >>conftest.$ac_ext
5723
cat >>conftest.$ac_ext <<_ACEOF
5724
/* end confdefs.h. */
5728
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5729
$EGREP "memchr" >/dev/null 2>&1; then
5732
ac_cv_header_stdc=no
5738
if test $ac_cv_header_stdc = yes; then
5739
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5740
cat >conftest.$ac_ext <<_ACEOF
5743
cat confdefs.h >>conftest.$ac_ext
5744
cat >>conftest.$ac_ext <<_ACEOF
5745
/* end confdefs.h. */
5749
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5750
$EGREP "free" >/dev/null 2>&1; then
5753
ac_cv_header_stdc=no
5759
if test $ac_cv_header_stdc = yes; then
5760
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5761
if test "$cross_compiling" = yes; then
5764
cat >conftest.$ac_ext <<_ACEOF
5767
cat confdefs.h >>conftest.$ac_ext
5768
cat >>conftest.$ac_ext <<_ACEOF
5769
/* end confdefs.h. */
5771
#if ((' ' & 0x0FF) == 0x020)
5772
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5773
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5775
# define ISLOWER(c) \
5776
(('a' <= (c) && (c) <= 'i') \
5777
|| ('j' <= (c) && (c) <= 'r') \
5778
|| ('s' <= (c) && (c) <= 'z'))
5779
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5782
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5787
for (i = 0; i < 256; i++)
5788
if (XOR (islower (i), ISLOWER (i))
5789
|| toupper (i) != TOUPPER (i))
5794
rm -f conftest$ac_exeext
5795
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5796
(eval $ac_link) 2>&5
5798
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5800
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5803
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5804
(exit $ac_status); }; }; then
5807
echo "$as_me: program exited with status $ac_status" >&5
5808
echo "$as_me: failed program was:" >&5
5809
sed 's/^/| /' conftest.$ac_ext >&5
5812
ac_cv_header_stdc=no
5814
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5818
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5819
echo "${ECHO_T}$ac_cv_header_stdc" >&6
5820
if test $ac_cv_header_stdc = yes; then
5822
cat >>confdefs.h <<\_ACEOF
5823
#define STDC_HEADERS 1
5828
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5838
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5839
inttypes.h stdint.h unistd.h
5841
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5842
echo "$as_me:$LINENO: checking for $ac_header" >&5
5843
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5844
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5845
echo $ECHO_N "(cached) $ECHO_C" >&6
5847
cat >conftest.$ac_ext <<_ACEOF
5850
cat confdefs.h >>conftest.$ac_ext
5851
cat >>conftest.$ac_ext <<_ACEOF
5852
/* end confdefs.h. */
5853
$ac_includes_default
5855
#include <$ac_header>
5857
rm -f conftest.$ac_objext
5858
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5859
(eval $ac_compile) 2>conftest.er1
5861
grep -v '^ *+' conftest.er1 >conftest.err
5863
cat conftest.err >&5
5864
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5865
(exit $ac_status); } &&
5866
{ ac_try='test -z "$ac_c_werror_flag"
5867
|| test ! -s conftest.err'
5868
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5871
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872
(exit $ac_status); }; } &&
5873
{ ac_try='test -s conftest.$ac_objext'
5874
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5877
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878
(exit $ac_status); }; }; then
5879
eval "$as_ac_Header=yes"
5881
echo "$as_me: failed program was:" >&5
5882
sed 's/^/| /' conftest.$ac_ext >&5
5884
eval "$as_ac_Header=no"
5886
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5888
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5889
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5890
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5891
cat >>confdefs.h <<_ACEOF
5892
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5901
for ac_header in dlfcn.h
5903
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5904
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5905
echo "$as_me:$LINENO: checking for $ac_header" >&5
5906
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5907
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5908
echo $ECHO_N "(cached) $ECHO_C" >&6
5910
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5911
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5913
# Is the header compilable?
5914
echo "$as_me:$LINENO: checking $ac_header usability" >&5
5915
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5916
cat >conftest.$ac_ext <<_ACEOF
5919
cat confdefs.h >>conftest.$ac_ext
5920
cat >>conftest.$ac_ext <<_ACEOF
5921
/* end confdefs.h. */
5922
$ac_includes_default
5923
#include <$ac_header>
5925
rm -f conftest.$ac_objext
5926
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5927
(eval $ac_compile) 2>conftest.er1
5929
grep -v '^ *+' conftest.er1 >conftest.err
5931
cat conftest.err >&5
5932
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5933
(exit $ac_status); } &&
5934
{ ac_try='test -z "$ac_c_werror_flag"
5935
|| test ! -s conftest.err'
5936
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5939
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940
(exit $ac_status); }; } &&
5941
{ ac_try='test -s conftest.$ac_objext'
5942
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5945
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946
(exit $ac_status); }; }; then
5947
ac_header_compiler=yes
5949
echo "$as_me: failed program was:" >&5
5950
sed 's/^/| /' conftest.$ac_ext >&5
5952
ac_header_compiler=no
5954
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5955
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5956
echo "${ECHO_T}$ac_header_compiler" >&6
5958
# Is the header present?
5959
echo "$as_me:$LINENO: checking $ac_header presence" >&5
5960
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5961
cat >conftest.$ac_ext <<_ACEOF
5964
cat confdefs.h >>conftest.$ac_ext
5965
cat >>conftest.$ac_ext <<_ACEOF
5966
/* end confdefs.h. */
5967
#include <$ac_header>
5969
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5970
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5972
grep -v '^ *+' conftest.er1 >conftest.err
5974
cat conftest.err >&5
5975
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5976
(exit $ac_status); } >/dev/null; then
5977
if test -s conftest.err; then
5978
ac_cpp_err=$ac_c_preproc_warn_flag
5979
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5986
if test -z "$ac_cpp_err"; then
5987
ac_header_preproc=yes
5989
echo "$as_me: failed program was:" >&5
5990
sed 's/^/| /' conftest.$ac_ext >&5
5992
ac_header_preproc=no
5994
rm -f conftest.err conftest.$ac_ext
5995
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5996
echo "${ECHO_T}$ac_header_preproc" >&6
5998
# So? What about this header?
5999
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6001
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6002
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6003
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6004
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6005
ac_header_preproc=yes
6008
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6009
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6010
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6011
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6012
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6013
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6014
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6015
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6016
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6017
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6018
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6019
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6022
## ------------------------------------------ ##
6023
## Report this to the AC_PACKAGE_NAME lists. ##
6024
## ------------------------------------------ ##
6027
sed "s/^/$as_me: WARNING: /" >&2
6030
echo "$as_me:$LINENO: checking for $ac_header" >&5
6031
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6032
if eval "test \"\${$as_ac_Header+set}\" = set"; then
6033
echo $ECHO_N "(cached) $ECHO_C" >&6
6035
eval "$as_ac_Header=\$ac_header_preproc"
6037
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6038
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6041
if test `eval echo '${'$as_ac_Header'}'` = yes; then
6042
cat >>confdefs.h <<_ACEOF
6043
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6051
ac_cpp='$CXXCPP $CPPFLAGS'
6052
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6053
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6054
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6055
if test -n "$ac_tool_prefix"; then
6056
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6058
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6059
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6060
echo "$as_me:$LINENO: checking for $ac_word" >&5
6061
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6062
if test "${ac_cv_prog_CXX+set}" = set; then
6063
echo $ECHO_N "(cached) $ECHO_C" >&6
6065
if test -n "$CXX"; then
6066
ac_cv_prog_CXX="$CXX" # Let the user override the test.
6068
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6072
test -z "$as_dir" && as_dir=.
6073
for ac_exec_ext in '' $ac_executable_extensions; do
6074
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6075
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6076
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6085
if test -n "$CXX"; then
6086
echo "$as_me:$LINENO: result: $CXX" >&5
6087
echo "${ECHO_T}$CXX" >&6
6089
echo "$as_me:$LINENO: result: no" >&5
6090
echo "${ECHO_T}no" >&6
6093
test -n "$CXX" && break
6096
if test -z "$CXX"; then
6098
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6100
# Extract the first word of "$ac_prog", so it can be a program name with args.
6101
set dummy $ac_prog; ac_word=$2
6102
echo "$as_me:$LINENO: checking for $ac_word" >&5
6103
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6104
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6105
echo $ECHO_N "(cached) $ECHO_C" >&6
6107
if test -n "$ac_ct_CXX"; then
6108
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6110
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6114
test -z "$as_dir" && as_dir=.
6115
for ac_exec_ext in '' $ac_executable_extensions; do
6116
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6117
ac_cv_prog_ac_ct_CXX="$ac_prog"
6118
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6126
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6127
if test -n "$ac_ct_CXX"; then
6128
echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6129
echo "${ECHO_T}$ac_ct_CXX" >&6
6131
echo "$as_me:$LINENO: result: no" >&5
6132
echo "${ECHO_T}no" >&6
6135
test -n "$ac_ct_CXX" && break
6137
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
6143
# Provide some information about the compiler.
6144
echo "$as_me:$LINENO:" \
6145
"checking for C++ compiler version" >&5
6146
ac_compiler=`set X $ac_compile; echo $2`
6147
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6148
(eval $ac_compiler --version </dev/null >&5) 2>&5
6150
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151
(exit $ac_status); }
6152
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6153
(eval $ac_compiler -v </dev/null >&5) 2>&5
6155
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156
(exit $ac_status); }
6157
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6158
(eval $ac_compiler -V </dev/null >&5) 2>&5
6160
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161
(exit $ac_status); }
6163
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6164
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
6165
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6166
echo $ECHO_N "(cached) $ECHO_C" >&6
6168
cat >conftest.$ac_ext <<_ACEOF
6171
cat confdefs.h >>conftest.$ac_ext
6172
cat >>conftest.$ac_ext <<_ACEOF
6173
/* end confdefs.h. */
6186
rm -f conftest.$ac_objext
6187
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6188
(eval $ac_compile) 2>conftest.er1
6190
grep -v '^ *+' conftest.er1 >conftest.err
6192
cat conftest.err >&5
6193
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6194
(exit $ac_status); } &&
6195
{ ac_try='test -z "$ac_cxx_werror_flag"
6196
|| test ! -s conftest.err'
6197
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6200
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201
(exit $ac_status); }; } &&
6202
{ ac_try='test -s conftest.$ac_objext'
6203
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6206
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6207
(exit $ac_status); }; }; then
6210
echo "$as_me: failed program was:" >&5
6211
sed 's/^/| /' conftest.$ac_ext >&5
6215
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6216
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6219
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6220
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
6221
GXX=`test $ac_compiler_gnu = yes && echo yes`
6222
ac_test_CXXFLAGS=${CXXFLAGS+set}
6223
ac_save_CXXFLAGS=$CXXFLAGS
6225
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6226
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
6227
if test "${ac_cv_prog_cxx_g+set}" = set; then
6228
echo $ECHO_N "(cached) $ECHO_C" >&6
6230
cat >conftest.$ac_ext <<_ACEOF
6233
cat confdefs.h >>conftest.$ac_ext
6234
cat >>conftest.$ac_ext <<_ACEOF
6235
/* end confdefs.h. */
6245
rm -f conftest.$ac_objext
6246
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6247
(eval $ac_compile) 2>conftest.er1
6249
grep -v '^ *+' conftest.er1 >conftest.err
6251
cat conftest.err >&5
6252
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253
(exit $ac_status); } &&
6254
{ ac_try='test -z "$ac_cxx_werror_flag"
6255
|| test ! -s conftest.err'
6256
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6259
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260
(exit $ac_status); }; } &&
6261
{ ac_try='test -s conftest.$ac_objext'
6262
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6265
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266
(exit $ac_status); }; }; then
6267
ac_cv_prog_cxx_g=yes
6269
echo "$as_me: failed program was:" >&5
6270
sed 's/^/| /' conftest.$ac_ext >&5
6274
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6276
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6277
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
6278
if test "$ac_test_CXXFLAGS" = set; then
6279
CXXFLAGS=$ac_save_CXXFLAGS
6280
elif test $ac_cv_prog_cxx_g = yes; then
6281
if test "$GXX" = yes; then
6287
if test "$GXX" = yes; then
6293
for ac_declaration in \
6295
'extern "C" void std::exit (int) throw (); using std::exit;' \
6296
'extern "C" void std::exit (int); using std::exit;' \
6297
'extern "C" void exit (int) throw ();' \
6298
'extern "C" void exit (int);' \
6301
cat >conftest.$ac_ext <<_ACEOF
6304
cat confdefs.h >>conftest.$ac_ext
6305
cat >>conftest.$ac_ext <<_ACEOF
6306
/* end confdefs.h. */
6317
rm -f conftest.$ac_objext
6318
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6319
(eval $ac_compile) 2>conftest.er1
6321
grep -v '^ *+' conftest.er1 >conftest.err
6323
cat conftest.err >&5
6324
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6325
(exit $ac_status); } &&
6326
{ ac_try='test -z "$ac_cxx_werror_flag"
6327
|| test ! -s conftest.err'
6328
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6331
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6332
(exit $ac_status); }; } &&
6333
{ ac_try='test -s conftest.$ac_objext'
6334
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6337
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338
(exit $ac_status); }; }; then
6341
echo "$as_me: failed program was:" >&5
6342
sed 's/^/| /' conftest.$ac_ext >&5
6346
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6347
cat >conftest.$ac_ext <<_ACEOF
6350
cat confdefs.h >>conftest.$ac_ext
6351
cat >>conftest.$ac_ext <<_ACEOF
6352
/* end confdefs.h. */
6362
rm -f conftest.$ac_objext
6363
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6364
(eval $ac_compile) 2>conftest.er1
6366
grep -v '^ *+' conftest.er1 >conftest.err
6368
cat conftest.err >&5
6369
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370
(exit $ac_status); } &&
6371
{ ac_try='test -z "$ac_cxx_werror_flag"
6372
|| test ! -s conftest.err'
6373
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6376
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6377
(exit $ac_status); }; } &&
6378
{ ac_try='test -s conftest.$ac_objext'
6379
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6382
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6383
(exit $ac_status); }; }; then
6386
echo "$as_me: failed program was:" >&5
6387
sed 's/^/| /' conftest.$ac_ext >&5
6390
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6393
if test -n "$ac_declaration"; then
6394
echo '#ifdef __cplusplus' >>confdefs.h
6395
echo $ac_declaration >>confdefs.h
6396
echo '#endif' >>confdefs.h
6400
ac_cpp='$CXXCPP $CPPFLAGS'
6401
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6402
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6403
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6407
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6408
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6409
(test "X$CXX" != "Xg++"))) ; then
6411
ac_cpp='$CXXCPP $CPPFLAGS'
6412
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6413
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6414
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6415
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6416
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6417
if test -z "$CXXCPP"; then
6418
if test "${ac_cv_prog_CXXCPP+set}" = set; then
6419
echo $ECHO_N "(cached) $ECHO_C" >&6
6421
# Double quotes because CXXCPP needs to be expanded
6422
for CXXCPP in "$CXX -E" "/lib/cpp"
6425
for ac_cxx_preproc_warn_flag in '' yes
6427
# Use a header file that comes with gcc, so configuring glibc
6428
# with a fresh cross-compiler works.
6429
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6430
# <limits.h> exists even on freestanding compilers.
6431
# On the NeXT, cc -E runs the code through the compiler's parser,
6432
# not just through cpp. "Syntax error" is here to catch this case.
6433
cat >conftest.$ac_ext <<_ACEOF
6436
cat confdefs.h >>conftest.$ac_ext
6437
cat >>conftest.$ac_ext <<_ACEOF
6438
/* end confdefs.h. */
6440
# include <limits.h>
6442
# include <assert.h>
6446
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6447
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6449
grep -v '^ *+' conftest.er1 >conftest.err
6451
cat conftest.err >&5
6452
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453
(exit $ac_status); } >/dev/null; then
6454
if test -s conftest.err; then
6455
ac_cpp_err=$ac_cxx_preproc_warn_flag
6456
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6463
if test -z "$ac_cpp_err"; then
6466
echo "$as_me: failed program was:" >&5
6467
sed 's/^/| /' conftest.$ac_ext >&5
6469
# Broken: fails on valid input.
6472
rm -f conftest.err conftest.$ac_ext
6474
# OK, works on sane cases. Now check whether non-existent headers
6475
# can be detected and how.
6476
cat >conftest.$ac_ext <<_ACEOF
6479
cat confdefs.h >>conftest.$ac_ext
6480
cat >>conftest.$ac_ext <<_ACEOF
6481
/* end confdefs.h. */
6482
#include <ac_nonexistent.h>
6484
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6485
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6487
grep -v '^ *+' conftest.er1 >conftest.err
6489
cat conftest.err >&5
6490
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491
(exit $ac_status); } >/dev/null; then
6492
if test -s conftest.err; then
6493
ac_cpp_err=$ac_cxx_preproc_warn_flag
6494
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6501
if test -z "$ac_cpp_err"; then
6502
# Broken: success on invalid input.
6505
echo "$as_me: failed program was:" >&5
6506
sed 's/^/| /' conftest.$ac_ext >&5
6508
# Passes both tests.
6512
rm -f conftest.err conftest.$ac_ext
6515
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6516
rm -f conftest.err conftest.$ac_ext
6517
if $ac_preproc_ok; then
6522
ac_cv_prog_CXXCPP=$CXXCPP
6525
CXXCPP=$ac_cv_prog_CXXCPP
6527
ac_cv_prog_CXXCPP=$CXXCPP
6529
echo "$as_me:$LINENO: result: $CXXCPP" >&5
6530
echo "${ECHO_T}$CXXCPP" >&6
6532
for ac_cxx_preproc_warn_flag in '' yes
6534
# Use a header file that comes with gcc, so configuring glibc
6535
# with a fresh cross-compiler works.
6536
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6537
# <limits.h> exists even on freestanding compilers.
6538
# On the NeXT, cc -E runs the code through the compiler's parser,
6539
# not just through cpp. "Syntax error" is here to catch this case.
6540
cat >conftest.$ac_ext <<_ACEOF
6543
cat confdefs.h >>conftest.$ac_ext
6544
cat >>conftest.$ac_ext <<_ACEOF
6545
/* end confdefs.h. */
6547
# include <limits.h>
6549
# include <assert.h>
6553
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6554
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6556
grep -v '^ *+' conftest.er1 >conftest.err
6558
cat conftest.err >&5
6559
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6560
(exit $ac_status); } >/dev/null; then
6561
if test -s conftest.err; then
6562
ac_cpp_err=$ac_cxx_preproc_warn_flag
6563
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6570
if test -z "$ac_cpp_err"; then
6573
echo "$as_me: failed program was:" >&5
6574
sed 's/^/| /' conftest.$ac_ext >&5
6576
# Broken: fails on valid input.
6579
rm -f conftest.err conftest.$ac_ext
6581
# OK, works on sane cases. Now check whether non-existent headers
6582
# can be detected and how.
6583
cat >conftest.$ac_ext <<_ACEOF
6586
cat confdefs.h >>conftest.$ac_ext
6587
cat >>conftest.$ac_ext <<_ACEOF
6588
/* end confdefs.h. */
6589
#include <ac_nonexistent.h>
6591
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6592
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6594
grep -v '^ *+' conftest.er1 >conftest.err
6596
cat conftest.err >&5
6597
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6598
(exit $ac_status); } >/dev/null; then
6599
if test -s conftest.err; then
6600
ac_cpp_err=$ac_cxx_preproc_warn_flag
6601
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6608
if test -z "$ac_cpp_err"; then
6609
# Broken: success on invalid input.
6612
echo "$as_me: failed program was:" >&5
6613
sed 's/^/| /' conftest.$ac_ext >&5
6615
# Passes both tests.
6619
rm -f conftest.err conftest.$ac_ext
6622
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6623
rm -f conftest.err conftest.$ac_ext
6624
if $ac_preproc_ok; then
6627
{ { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6628
See \`config.log' for more details." >&5
6629
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6630
See \`config.log' for more details." >&2;}
6631
{ (exit 1); exit 1; }; }
6635
ac_cpp='$CXXCPP $CPPFLAGS'
6636
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6637
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6638
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6644
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6645
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6646
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6647
if test -n "$ac_tool_prefix"; then
6648
for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6650
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6651
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6652
echo "$as_me:$LINENO: checking for $ac_word" >&5
6653
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6654
if test "${ac_cv_prog_F77+set}" = set; then
6655
echo $ECHO_N "(cached) $ECHO_C" >&6
6657
if test -n "$F77"; then
6658
ac_cv_prog_F77="$F77" # Let the user override the test.
6660
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6664
test -z "$as_dir" && as_dir=.
6665
for ac_exec_ext in '' $ac_executable_extensions; do
6666
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6667
ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6668
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6677
if test -n "$F77"; then
6678
echo "$as_me:$LINENO: result: $F77" >&5
6679
echo "${ECHO_T}$F77" >&6
6681
echo "$as_me:$LINENO: result: no" >&5
6682
echo "${ECHO_T}no" >&6
6685
test -n "$F77" && break
6688
if test -z "$F77"; then
6690
for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6692
# Extract the first word of "$ac_prog", so it can be a program name with args.
6693
set dummy $ac_prog; ac_word=$2
6694
echo "$as_me:$LINENO: checking for $ac_word" >&5
6695
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6696
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6697
echo $ECHO_N "(cached) $ECHO_C" >&6
6699
if test -n "$ac_ct_F77"; then
6700
ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6702
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6706
test -z "$as_dir" && as_dir=.
6707
for ac_exec_ext in '' $ac_executable_extensions; do
6708
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6709
ac_cv_prog_ac_ct_F77="$ac_prog"
6710
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6718
ac_ct_F77=$ac_cv_prog_ac_ct_F77
6719
if test -n "$ac_ct_F77"; then
6720
echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6721
echo "${ECHO_T}$ac_ct_F77" >&6
6723
echo "$as_me:$LINENO: result: no" >&5
6724
echo "${ECHO_T}no" >&6
6727
test -n "$ac_ct_F77" && break
6734
# Provide some information about the compiler.
6735
echo "$as_me:6735:" \
6736
"checking for Fortran 77 compiler version" >&5
6737
ac_compiler=`set X $ac_compile; echo $2`
6738
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6739
(eval $ac_compiler --version </dev/null >&5) 2>&5
6741
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6742
(exit $ac_status); }
6743
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6744
(eval $ac_compiler -v </dev/null >&5) 2>&5
6746
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6747
(exit $ac_status); }
6748
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6749
(eval $ac_compiler -V </dev/null >&5) 2>&5
6751
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6752
(exit $ac_status); }
6755
# If we don't use `.F' as extension, the preprocessor is not run on the
6756
# input file. (Note that this only needs to work for GNU compilers.)
6759
echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6760
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
6761
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6762
echo $ECHO_N "(cached) $ECHO_C" >&6
6764
cat >conftest.$ac_ext <<_ACEOF
6772
rm -f conftest.$ac_objext
6773
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6774
(eval $ac_compile) 2>conftest.er1
6776
grep -v '^ *+' conftest.er1 >conftest.err
6778
cat conftest.err >&5
6779
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780
(exit $ac_status); } &&
6781
{ ac_try='test -z "$ac_f77_werror_flag"
6782
|| test ! -s conftest.err'
6783
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6786
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6787
(exit $ac_status); }; } &&
6788
{ ac_try='test -s conftest.$ac_objext'
6789
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6792
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6793
(exit $ac_status); }; }; then
6796
echo "$as_me: failed program was:" >&5
6797
sed 's/^/| /' conftest.$ac_ext >&5
6801
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6802
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6805
echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6806
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
6808
ac_test_FFLAGS=${FFLAGS+set}
6809
ac_save_FFLAGS=$FFLAGS
6811
echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6812
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
6813
if test "${ac_cv_prog_f77_g+set}" = set; then
6814
echo $ECHO_N "(cached) $ECHO_C" >&6
6817
cat >conftest.$ac_ext <<_ACEOF
6822
rm -f conftest.$ac_objext
6823
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6824
(eval $ac_compile) 2>conftest.er1
6826
grep -v '^ *+' conftest.er1 >conftest.err
6828
cat conftest.err >&5
6829
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830
(exit $ac_status); } &&
6831
{ ac_try='test -z "$ac_f77_werror_flag"
6832
|| test ! -s conftest.err'
6833
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6836
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6837
(exit $ac_status); }; } &&
6838
{ ac_try='test -s conftest.$ac_objext'
6839
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6842
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6843
(exit $ac_status); }; }; then
6844
ac_cv_prog_f77_g=yes
6846
echo "$as_me: failed program was:" >&5
6847
sed 's/^/| /' conftest.$ac_ext >&5
6851
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6854
echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6855
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
6856
if test "$ac_test_FFLAGS" = set; then
6857
FFLAGS=$ac_save_FFLAGS
6858
elif test $ac_cv_prog_f77_g = yes; then
6859
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6865
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6872
G77=`test $ac_compiler_gnu = yes && echo yes`
6874
ac_cpp='$CPP $CPPFLAGS'
6875
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6876
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6877
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6881
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6883
# find the maximum length of command line arguments
6884
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6885
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6886
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6887
echo $ECHO_N "(cached) $ECHO_C" >&6
6894
# On DJGPP, this test can blow up pretty badly due to problems in libc
6895
# (any single argument exceeding 2000 bytes causes a buffer overrun
6896
# during glob expansion). Even if it were fixed, the result of this
6897
# check would be larger than it should be.
6898
lt_cv_sys_max_cmd_len=12288; # 12K is about right
6902
# Under GNU Hurd, this test is not required because there is
6903
# no limit to the length of command line arguments.
6904
# Libtool will interpret -1 as no limit whatsoever
6905
lt_cv_sys_max_cmd_len=-1;
6909
# On Win9x/ME, this test blows up -- it succeeds, but takes
6910
# about 5 minutes as the teststring grows exponentially.
6911
# Worse, since 9x/ME are not pre-emptively multitasking,
6912
# you end up with a "frozen" computer, even though with patience
6913
# the test eventually succeeds (with a max line length of 256k).
6914
# Instead, let's just punt: use the minimum linelength reported by
6915
# all of the supported platforms: 8192 (on NT/2K/XP).
6916
lt_cv_sys_max_cmd_len=8192;
6920
# On AmigaOS with pdksh, this test takes hours, literally.
6921
# So we just punt and use a minimum line length of 8192.
6922
lt_cv_sys_max_cmd_len=8192;
6925
netbsd* | freebsd* | openbsd* | darwin* )
6926
# This has been around since 386BSD, at least. Likely further.
6927
if test -x /sbin/sysctl; then
6928
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6929
elif test -x /usr/sbin/sysctl; then
6930
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6932
lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
6934
# And add a safety zone
6935
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6939
# If test is not a shell built-in, we'll probably end up computing a
6940
# maximum length that is only half of the actual maximum length, but
6942
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6943
while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6944
= "XX$teststring") >/dev/null 2>&1 &&
6945
new_result=`expr "X$teststring" : ".*" 2>&1` &&
6946
lt_cv_sys_max_cmd_len=$new_result &&
6947
test $i != 17 # 1/2 MB should be enough
6950
teststring=$teststring$teststring
6953
# Add a significant safety factor because C++ compilers can tack on massive
6954
# amounts of additional arguments before passing them to the linker.
6955
# It appears as though 1/2 is a usable value.
6956
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6962
if test -n $lt_cv_sys_max_cmd_len ; then
6963
echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6964
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6966
echo "$as_me:$LINENO: result: none" >&5
6967
echo "${ECHO_T}none" >&6
6973
# Check for command to grab the raw symbol name followed by C symbol from nm.
6974
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6975
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6976
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6977
echo $ECHO_N "(cached) $ECHO_C" >&6
6980
# These are sane defaults that work on at least a few old systems.
6981
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6983
# Character class describing NM global symbol codes.
6984
symcode='[BCDEGRST]'
6986
# Regexp to match symbols that can be accessed directly from C.
6987
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6989
# Transform the above into a raw symbol and a C symbol.
6990
symxfrm='\1 \2\3 \3'
6992
# Transform an extracted symbol line into a proper C declaration
6993
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6995
# Transform an extracted symbol line into symbol name and symbol address
6996
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6998
# Define system-specific variables.
7003
cygwin* | mingw* | pw32*)
7004
symcode='[ABCDGISTW]'
7006
hpux*) # Its linker distinguishes data from code symbols
7007
if test "$host_cpu" = ia64; then
7008
symcode='[ABCDEGRST]'
7010
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7011
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
7014
if test "$host_cpu" = ia64; then
7015
symcode='[ABCDGIRSTW]'
7016
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7017
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
7021
symcode='[BCDEGRST]'
7024
symcode='[BCDEGQRST]'
7034
# Handle CRLF in mingw tool chain
7038
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7042
# If we're using GNU nm, then use its standard symbol codes.
7043
case `$NM -V 2>&1` in
7044
*GNU* | *'with BFD'*)
7045
symcode='[ABCDGIRSTW]' ;;
7048
# Try without a prefix undercore, then with it.
7049
for ac_symprfx in "" "_"; do
7051
# Write the raw and C identifiers.
7052
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7054
# Check to see that the pipe works correctly.
7058
cat > conftest.$ac_ext <<EOF
7063
void nm_test_func(){}
7067
int main(){nm_test_var='a';nm_test_func();return(0);}
7070
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7071
(eval $ac_compile) 2>&5
7073
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7074
(exit $ac_status); }; then
7075
# Now try to grab the symbols.
7077
if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7078
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7080
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7081
(exit $ac_status); } && test -s "$nlist"; then
7082
# Try sorting and uniquifying the output.
7083
if sort "$nlist" | uniq > "$nlist"T; then
7084
mv -f "$nlist"T "$nlist"
7089
# Make sure that we snagged all the symbols we need.
7090
if grep ' nm_test_var$' "$nlist" >/dev/null; then
7091
if grep ' nm_test_func$' "$nlist" >/dev/null; then
7092
cat <<EOF > conftest.$ac_ext
7098
# Now generate the symbol file.
7099
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7101
cat <<EOF >> conftest.$ac_ext
7102
#if defined (__STDC__) && __STDC__
7103
# define lt_ptr_t void *
7105
# define lt_ptr_t char *
7109
/* The mapping between symbol names and symbols. */
7114
lt_preloaded_symbols[] =
7117
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7118
cat <<\EOF >> conftest.$ac_ext
7126
# Now try linking the two files.
7127
mv conftest.$ac_objext conftstm.$ac_objext
7128
lt_save_LIBS="$LIBS"
7129
lt_save_CFLAGS="$CFLAGS"
7130
LIBS="conftstm.$ac_objext"
7131
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7132
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7133
(eval $ac_link) 2>&5
7135
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7136
(exit $ac_status); } && test -s conftest${ac_exeext}; then
7139
LIBS="$lt_save_LIBS"
7140
CFLAGS="$lt_save_CFLAGS"
7142
echo "cannot find nm_test_func in $nlist" >&5
7145
echo "cannot find nm_test_var in $nlist" >&5
7148
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7151
echo "$progname: failed program was:" >&5
7152
cat conftest.$ac_ext >&5
7154
rm -f conftest* conftst*
7156
# Do not use the global_symbol_pipe unless it works.
7157
if test "$pipe_works" = yes; then
7160
lt_cv_sys_global_symbol_pipe=
7166
if test -z "$lt_cv_sys_global_symbol_pipe"; then
7167
lt_cv_sys_global_symbol_to_cdecl=
7169
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7170
echo "$as_me:$LINENO: result: failed" >&5
7171
echo "${ECHO_T}failed" >&6
7173
echo "$as_me:$LINENO: result: ok" >&5
7174
echo "${ECHO_T}ok" >&6
7177
echo "$as_me:$LINENO: checking for objdir" >&5
7178
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7179
if test "${lt_cv_objdir+set}" = set; then
7180
echo $ECHO_N "(cached) $ECHO_C" >&6
7182
rm -f .libs 2>/dev/null
7183
mkdir .libs 2>/dev/null
7184
if test -d .libs; then
7187
# MS-DOS does not allow filenames that begin with a dot.
7190
rmdir .libs 2>/dev/null
7192
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7193
echo "${ECHO_T}$lt_cv_objdir" >&6
7194
objdir=$lt_cv_objdir
7202
# AIX sometimes has problems with the GCC collect2 program. For some
7203
# reason, if we set the COLLECT_NAMES environment variable, the problems
7204
# vanish in a puff of smoke.
7205
if test "X${COLLECT_NAMES+set}" != Xset; then
7207
export COLLECT_NAMES
7212
# Sed substitution that helps us do robust quoting. It backslashifies
7213
# metacharacters that are still active within double-quoted strings.
7214
Xsed='sed -e s/^X//'
7215
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7217
# Same as above, but do not quote variable references.
7218
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7220
# Sed substitution to delay expansion of an escaped shell variable in a
7221
# double_quote_subst'ed string.
7222
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7224
# Sed substitution to avoid accidental globbing in evaled expressions
7225
no_glob_subst='s/\*/\\\*/g'
7231
default_ofile=libtool
7232
can_build_shared=yes
7234
# All known linkers require a `.a' archive for static linking (except M$VC,
7235
# which needs '.lib').
7237
ltmain="$ac_aux_dir/ltmain.sh"
7238
ofile="$default_ofile"
7239
with_gnu_ld="$lt_cv_prog_gnu_ld"
7241
if test -n "$ac_tool_prefix"; then
7242
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7243
set dummy ${ac_tool_prefix}ar; ac_word=$2
7244
echo "$as_me:$LINENO: checking for $ac_word" >&5
7245
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7246
if test "${ac_cv_prog_AR+set}" = set; then
7247
echo $ECHO_N "(cached) $ECHO_C" >&6
7249
if test -n "$AR"; then
7250
ac_cv_prog_AR="$AR" # Let the user override the test.
7252
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7256
test -z "$as_dir" && as_dir=.
7257
for ac_exec_ext in '' $ac_executable_extensions; do
7258
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7259
ac_cv_prog_AR="${ac_tool_prefix}ar"
7260
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7269
if test -n "$AR"; then
7270
echo "$as_me:$LINENO: result: $AR" >&5
7271
echo "${ECHO_T}$AR" >&6
7273
echo "$as_me:$LINENO: result: no" >&5
7274
echo "${ECHO_T}no" >&6
7278
if test -z "$ac_cv_prog_AR"; then
7280
# Extract the first word of "ar", so it can be a program name with args.
7281
set dummy ar; ac_word=$2
7282
echo "$as_me:$LINENO: checking for $ac_word" >&5
7283
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7284
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7285
echo $ECHO_N "(cached) $ECHO_C" >&6
7287
if test -n "$ac_ct_AR"; then
7288
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7290
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7294
test -z "$as_dir" && as_dir=.
7295
for ac_exec_ext in '' $ac_executable_extensions; do
7296
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7297
ac_cv_prog_ac_ct_AR="ar"
7298
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7304
test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7307
ac_ct_AR=$ac_cv_prog_ac_ct_AR
7308
if test -n "$ac_ct_AR"; then
7309
echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7310
echo "${ECHO_T}$ac_ct_AR" >&6
7312
echo "$as_me:$LINENO: result: no" >&5
7313
echo "${ECHO_T}no" >&6
7321
if test -n "$ac_tool_prefix"; then
7322
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7323
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7324
echo "$as_me:$LINENO: checking for $ac_word" >&5
7325
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7326
if test "${ac_cv_prog_RANLIB+set}" = set; then
7327
echo $ECHO_N "(cached) $ECHO_C" >&6
7329
if test -n "$RANLIB"; then
7330
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7332
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7336
test -z "$as_dir" && as_dir=.
7337
for ac_exec_ext in '' $ac_executable_extensions; do
7338
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7339
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7340
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7348
RANLIB=$ac_cv_prog_RANLIB
7349
if test -n "$RANLIB"; then
7350
echo "$as_me:$LINENO: result: $RANLIB" >&5
7351
echo "${ECHO_T}$RANLIB" >&6
7353
echo "$as_me:$LINENO: result: no" >&5
7354
echo "${ECHO_T}no" >&6
7358
if test -z "$ac_cv_prog_RANLIB"; then
7359
ac_ct_RANLIB=$RANLIB
7360
# Extract the first word of "ranlib", so it can be a program name with args.
7361
set dummy ranlib; ac_word=$2
7362
echo "$as_me:$LINENO: checking for $ac_word" >&5
7363
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7364
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7365
echo $ECHO_N "(cached) $ECHO_C" >&6
7367
if test -n "$ac_ct_RANLIB"; then
7368
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7370
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7374
test -z "$as_dir" && as_dir=.
7375
for ac_exec_ext in '' $ac_executable_extensions; do
7376
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7377
ac_cv_prog_ac_ct_RANLIB="ranlib"
7378
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7384
test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7387
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7388
if test -n "$ac_ct_RANLIB"; then
7389
echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7390
echo "${ECHO_T}$ac_ct_RANLIB" >&6
7392
echo "$as_me:$LINENO: result: no" >&5
7393
echo "${ECHO_T}no" >&6
7396
RANLIB=$ac_ct_RANLIB
7398
RANLIB="$ac_cv_prog_RANLIB"
7401
if test -n "$ac_tool_prefix"; then
7402
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7403
set dummy ${ac_tool_prefix}strip; ac_word=$2
7404
echo "$as_me:$LINENO: checking for $ac_word" >&5
7405
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7406
if test "${ac_cv_prog_STRIP+set}" = set; then
7407
echo $ECHO_N "(cached) $ECHO_C" >&6
7409
if test -n "$STRIP"; then
7410
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7412
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7416
test -z "$as_dir" && as_dir=.
7417
for ac_exec_ext in '' $ac_executable_extensions; do
7418
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7419
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7420
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7428
STRIP=$ac_cv_prog_STRIP
7429
if test -n "$STRIP"; then
7430
echo "$as_me:$LINENO: result: $STRIP" >&5
7431
echo "${ECHO_T}$STRIP" >&6
7433
echo "$as_me:$LINENO: result: no" >&5
7434
echo "${ECHO_T}no" >&6
7438
if test -z "$ac_cv_prog_STRIP"; then
7440
# Extract the first word of "strip", so it can be a program name with args.
7441
set dummy strip; ac_word=$2
7442
echo "$as_me:$LINENO: checking for $ac_word" >&5
7443
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7444
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7445
echo $ECHO_N "(cached) $ECHO_C" >&6
7447
if test -n "$ac_ct_STRIP"; then
7448
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7450
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7454
test -z "$as_dir" && as_dir=.
7455
for ac_exec_ext in '' $ac_executable_extensions; do
7456
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7457
ac_cv_prog_ac_ct_STRIP="strip"
7458
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7464
test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7467
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7468
if test -n "$ac_ct_STRIP"; then
7469
echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7470
echo "${ECHO_T}$ac_ct_STRIP" >&6
7472
echo "$as_me:$LINENO: result: no" >&5
7473
echo "${ECHO_T}no" >&6
7478
STRIP="$ac_cv_prog_STRIP"
7483
old_CFLAGS="$CFLAGS"
7485
# Set sane defaults for various variables
7486
test -z "$AR" && AR=ar
7487
test -z "$AR_FLAGS" && AR_FLAGS=cru
7488
test -z "$AS" && AS=as
7489
test -z "$CC" && CC=cc
7490
test -z "$LTCC" && LTCC=$CC
7491
test -z "$DLLTOOL" && DLLTOOL=dlltool
7492
test -z "$LD" && LD=ld
7493
test -z "$LN_S" && LN_S="ln -s"
7494
test -z "$MAGIC_CMD" && MAGIC_CMD=file
7495
test -z "$NM" && NM=nm
7496
test -z "$SED" && SED=sed
7497
test -z "$OBJDUMP" && OBJDUMP=objdump
7498
test -z "$RANLIB" && RANLIB=:
7499
test -z "$STRIP" && STRIP=:
7500
test -z "$ac_objext" && ac_objext=o
7502
# Determine commands to create old-style static archives.
7503
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7504
old_postinstall_cmds='chmod 644 $oldlib'
7505
old_postuninstall_cmds=
7507
if test -n "$RANLIB"; then
7510
old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7513
old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7516
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7519
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
7521
# Only perform the check for file, if the check method requires it
7522
case $deplibs_check_method in
7524
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7525
echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7526
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7527
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7528
echo $ECHO_N "(cached) $ECHO_C" >&6
7532
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7535
lt_save_MAGIC_CMD="$MAGIC_CMD"
7536
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7537
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7538
for ac_dir in $ac_dummy; do
7540
test -z "$ac_dir" && ac_dir=.
7541
if test -f $ac_dir/${ac_tool_prefix}file; then
7542
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7543
if test -n "$file_magic_test_file"; then
7544
case $deplibs_check_method in
7546
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7547
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7548
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7549
$EGREP "$file_magic_regex" > /dev/null; then
7554
*** Warning: the command libtool uses to detect shared libraries,
7555
*** $file_magic_cmd, produces output that libtool cannot recognize.
7556
*** The result is that libtool may fail to recognize shared libraries
7557
*** as such. This will affect the creation of libtool libraries that
7558
*** depend on shared libraries, but programs linked with such libtool
7559
*** libraries will work regardless of this problem. Nevertheless, you
7560
*** may want to report the problem to your system manager and/or to
7561
*** bug-libtool@gnu.org
7571
MAGIC_CMD="$lt_save_MAGIC_CMD"
7576
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7577
if test -n "$MAGIC_CMD"; then
7578
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7579
echo "${ECHO_T}$MAGIC_CMD" >&6
7581
echo "$as_me:$LINENO: result: no" >&5
7582
echo "${ECHO_T}no" >&6
7585
if test -z "$lt_cv_path_MAGIC_CMD"; then
7586
if test -n "$ac_tool_prefix"; then
7587
echo "$as_me:$LINENO: checking for file" >&5
7588
echo $ECHO_N "checking for file... $ECHO_C" >&6
7589
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7590
echo $ECHO_N "(cached) $ECHO_C" >&6
7594
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7597
lt_save_MAGIC_CMD="$MAGIC_CMD"
7598
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7599
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7600
for ac_dir in $ac_dummy; do
7602
test -z "$ac_dir" && ac_dir=.
7603
if test -f $ac_dir/file; then
7604
lt_cv_path_MAGIC_CMD="$ac_dir/file"
7605
if test -n "$file_magic_test_file"; then
7606
case $deplibs_check_method in
7608
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7609
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7610
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7611
$EGREP "$file_magic_regex" > /dev/null; then
7616
*** Warning: the command libtool uses to detect shared libraries,
7617
*** $file_magic_cmd, produces output that libtool cannot recognize.
7618
*** The result is that libtool may fail to recognize shared libraries
7619
*** as such. This will affect the creation of libtool libraries that
7620
*** depend on shared libraries, but programs linked with such libtool
7621
*** libraries will work regardless of this problem. Nevertheless, you
7622
*** may want to report the problem to your system manager and/or to
7623
*** bug-libtool@gnu.org
7633
MAGIC_CMD="$lt_save_MAGIC_CMD"
7638
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7639
if test -n "$MAGIC_CMD"; then
7640
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7641
echo "${ECHO_T}$MAGIC_CMD" >&6
7643
echo "$as_me:$LINENO: result: no" >&5
7644
echo "${ECHO_T}no" >&6
7659
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7660
if test "${enable_libtool_lock+set}" = set; then
7661
enableval="$enable_libtool_lock"
7664
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7667
# Check whether --with-pic or --without-pic was given.
7668
if test "${with_pic+set}" = set; then
7674
test -z "$pic_mode" && pic_mode=default
7676
# Use C for the default configuration in the libtool script
7680
ac_cpp='$CPP $CPPFLAGS'
7681
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7682
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7683
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7686
# Source file extension for C test sources.
7689
# Object file extension for compiled C test sources.
7693
# Code to be used in simple compile tests
7694
lt_simple_compile_test_code="int some_variable = 0;\n"
7696
# Code to be used in simple link tests
7697
lt_simple_link_test_code='int main(){return(0);}\n'
7700
# If no C compiler was specified, use CC.
7703
# Allow CC to be a program name with arguments.
7708
# Check for any special shared library compilation flags.
7711
if test "$GCC" = no; then
7714
lt_prog_cc_shlib='-belf'
7718
if test -n "$lt_prog_cc_shlib"; then
7719
{ echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7720
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7721
if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
7723
{ echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7724
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7725
lt_cv_prog_cc_can_build_shared=no
7731
# Check to make sure the static flag actually works.
7733
echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7734
echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
7735
if test "${lt_prog_compiler_static_works+set}" = set; then
7736
echo $ECHO_N "(cached) $ECHO_C" >&6
7738
lt_prog_compiler_static_works=no
7739
save_LDFLAGS="$LDFLAGS"
7740
LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7741
printf "$lt_simple_link_test_code" > conftest.$ac_ext
7742
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7743
# The compiler can only warn and ignore the option if not recognized
7744
# So say no if there are warnings
7745
if test -s conftest.err; then
7746
# Append any errors to the config.log.
7747
cat conftest.err 1>&5
7749
lt_prog_compiler_static_works=yes
7753
LDFLAGS="$save_LDFLAGS"
7756
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7757
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7759
if test x"$lt_prog_compiler_static_works" = xyes; then
7762
lt_prog_compiler_static=
7768
## There is no encapsulation within the following macros, do not change
7769
## the running order or otherwise move them around unless you know exactly
7770
## what you are doing...
7772
lt_prog_compiler_no_builtin_flag=
7774
if test "$GCC" = yes; then
7775
lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7778
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7779
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7780
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7781
echo $ECHO_N "(cached) $ECHO_C" >&6
7783
lt_cv_prog_compiler_rtti_exceptions=no
7784
ac_outfile=conftest.$ac_objext
7785
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7786
lt_compiler_flag="-fno-rtti -fno-exceptions"
7787
# Insert the option either (1) after the last *FLAGS variable, or
7788
# (2) before a word containing "conftest.", or (3) at the end.
7789
# Note that $ac_compile itself does not contain backslashes and begins
7790
# with a dollar sign (not a hyphen), so the echo should work correctly.
7791
# The option is referenced via a variable to avoid confusing sed.
7792
lt_compile=`echo "$ac_compile" | $SED \
7793
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7794
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7795
-e 's:$: $lt_compiler_flag:'`
7796
(eval echo "\"\$as_me:7796: $lt_compile\"" >&5)
7797
(eval "$lt_compile" 2>conftest.err)
7799
cat conftest.err >&5
7800
echo "$as_me:7800: \$? = $ac_status" >&5
7801
if (exit $ac_status) && test -s "$ac_outfile"; then
7802
# The compiler can only warn and ignore the option if not recognized
7803
# So say no if there are warnings
7804
if test ! -s conftest.err; then
7805
lt_cv_prog_compiler_rtti_exceptions=yes
7811
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7812
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7814
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7815
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7822
lt_prog_compiler_wl=
7823
lt_prog_compiler_pic=
7824
lt_prog_compiler_static=
7826
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7827
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7829
if test "$GCC" = yes; then
7830
lt_prog_compiler_wl='-Wl,'
7831
lt_prog_compiler_static='-static'
7835
# All AIX code is PIC.
7836
if test "$host_cpu" = ia64; then
7837
# AIX 5 now supports IA64 processor
7838
lt_prog_compiler_static='-Bstatic'
7843
# FIXME: we need at least 68020 code to build shared libraries, but
7844
# adding the `-m68020' flag to GCC prevents building anything better,
7846
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7849
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7850
# PIC is the default for these OSes.
7853
mingw* | pw32* | os2*)
7854
# This hack is so that the source file can tell whether it is being
7855
# built for inclusion in a dll (and should export symbols for example).
7856
lt_prog_compiler_pic='-DDLL_EXPORT'
7859
darwin* | rhapsody*)
7860
# PIC is the default on this platform
7861
# Common symbols not allowed in MH_DYLIB files
7862
lt_prog_compiler_pic='-fno-common'
7866
# Just because we use GCC doesn't mean we suddenly get shared libraries
7867
# on systems that don't support them.
7868
lt_prog_compiler_can_build_shared=no
7873
if test -d /usr/nec; then
7874
lt_prog_compiler_pic=-Kconform_pic
7879
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7886
lt_prog_compiler_pic='-fPIC'
7892
lt_prog_compiler_pic='-fPIC'
7896
# PORTME Check for flag to pass linker flags through the system compiler.
7899
lt_prog_compiler_wl='-Wl,'
7900
if test "$host_cpu" = ia64; then
7901
# AIX 5 now supports IA64 processor
7902
lt_prog_compiler_static='-Bstatic'
7904
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7908
# PIC is the default on this platform
7909
# Common symbols not allowed in MH_DYLIB files
7910
case "$cc_basename" in
7912
lt_prog_compiler_pic='-qnocommon'
7913
lt_prog_compiler_wl='-Wl,'
7918
mingw* | pw32* | os2*)
7919
# This hack is so that the source file can tell whether it is being
7920
# built for inclusion in a dll (and should export symbols for example).
7921
lt_prog_compiler_pic='-DDLL_EXPORT'
7924
hpux9* | hpux10* | hpux11*)
7925
lt_prog_compiler_wl='-Wl,'
7926
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7933
lt_prog_compiler_pic='+Z'
7936
# Is there a better lt_prog_compiler_static that works with the bundled CC?
7937
lt_prog_compiler_static='${wl}-a ${wl}archive'
7940
irix5* | irix6* | nonstopux*)
7941
lt_prog_compiler_wl='-Wl,'
7942
# PIC (with -KPIC) is the default.
7943
lt_prog_compiler_static='-non_shared'
7947
lt_prog_compiler_pic='-KPIC'
7948
lt_prog_compiler_static='-Bstatic'
7954
lt_prog_compiler_wl='-Wl,'
7955
lt_prog_compiler_pic='-KPIC'
7956
lt_prog_compiler_static='-static'
7959
lt_prog_compiler_wl='-Wl,'
7960
# All Alpha code is PIC.
7961
lt_prog_compiler_static='-non_shared'
7966
osf3* | osf4* | osf5*)
7967
lt_prog_compiler_wl='-Wl,'
7968
# All OSF/1 code is PIC.
7969
lt_prog_compiler_static='-non_shared'
7973
lt_prog_compiler_pic='-Kpic'
7974
lt_prog_compiler_static='-dn'
7978
lt_prog_compiler_wl='-Wl,'
7979
lt_prog_compiler_pic='-KPIC'
7980
lt_prog_compiler_static='-Bstatic'
7984
lt_prog_compiler_wl='-Qoption ld '
7985
lt_prog_compiler_pic='-PIC'
7986
lt_prog_compiler_static='-Bstatic'
7989
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7990
lt_prog_compiler_wl='-Wl,'
7991
lt_prog_compiler_pic='-KPIC'
7992
lt_prog_compiler_static='-Bstatic'
7996
if test -d /usr/nec ;then
7997
lt_prog_compiler_pic='-Kconform_pic'
7998
lt_prog_compiler_static='-Bstatic'
8003
lt_prog_compiler_pic='-pic'
8004
lt_prog_compiler_static='-Bstatic'
8008
lt_prog_compiler_can_build_shared=no
8013
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8014
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8017
# Check to make sure the PIC flag actually works.
8019
if test -n "$lt_prog_compiler_pic"; then
8021
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8022
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8023
if test "${lt_prog_compiler_pic_works+set}" = set; then
8024
echo $ECHO_N "(cached) $ECHO_C" >&6
8026
lt_prog_compiler_pic_works=no
8027
ac_outfile=conftest.$ac_objext
8028
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8029
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8030
# Insert the option either (1) after the last *FLAGS variable, or
8031
# (2) before a word containing "conftest.", or (3) at the end.
8032
# Note that $ac_compile itself does not contain backslashes and begins
8033
# with a dollar sign (not a hyphen), so the echo should work correctly.
8034
# The option is referenced via a variable to avoid confusing sed.
8035
lt_compile=`echo "$ac_compile" | $SED \
8036
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8037
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8038
-e 's:$: $lt_compiler_flag:'`
8039
(eval echo "\"\$as_me:8039: $lt_compile\"" >&5)
8040
(eval "$lt_compile" 2>conftest.err)
8042
cat conftest.err >&5
8043
echo "$as_me:8043: \$? = $ac_status" >&5
8044
if (exit $ac_status) && test -s "$ac_outfile"; then
8045
# The compiler can only warn and ignore the option if not recognized
8046
# So say no if there are warnings
8047
if test ! -s conftest.err; then
8048
lt_prog_compiler_pic_works=yes
8054
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8055
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8057
if test x"$lt_prog_compiler_pic_works" = xyes; then
8058
case $lt_prog_compiler_pic in
8060
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8063
lt_prog_compiler_pic=
8064
lt_prog_compiler_can_build_shared=no
8069
# For platforms which do not support PIC, -DPIC is meaningless:
8071
lt_prog_compiler_pic=
8074
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8078
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8079
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8080
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8081
echo $ECHO_N "(cached) $ECHO_C" >&6
8083
lt_cv_prog_compiler_c_o=no
8084
$rm -r conftest 2>/dev/null
8088
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8090
lt_compiler_flag="-o out/conftest2.$ac_objext"
8091
# Insert the option either (1) after the last *FLAGS variable, or
8092
# (2) before a word containing "conftest.", or (3) at the end.
8093
# Note that $ac_compile itself does not contain backslashes and begins
8094
# with a dollar sign (not a hyphen), so the echo should work correctly.
8095
lt_compile=`echo "$ac_compile" | $SED \
8096
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8097
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8098
-e 's:$: $lt_compiler_flag:'`
8099
(eval echo "\"\$as_me:8099: $lt_compile\"" >&5)
8100
(eval "$lt_compile" 2>out/conftest.err)
8102
cat out/conftest.err >&5
8103
echo "$as_me:8103: \$? = $ac_status" >&5
8104
if (exit $ac_status) && test -s out/conftest2.$ac_objext
8106
# The compiler can only warn and ignore the option if not recognized
8107
# So say no if there are warnings
8108
if test ! -s out/conftest.err; then
8109
lt_cv_prog_compiler_c_o=yes
8114
# SGI C++ compiler will create directory out/ii_files/ for
8115
# template instantiation
8116
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8117
$rm out/* && rmdir out
8123
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8124
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8127
hard_links="nottested"
8128
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8129
# do not overwrite the value of need_locks provided by the user
8130
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8131
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8134
ln conftest.a conftest.b 2>/dev/null && hard_links=no
8136
ln conftest.a conftest.b 2>&5 || hard_links=no
8137
ln conftest.a conftest.b 2>/dev/null && hard_links=no
8138
echo "$as_me:$LINENO: result: $hard_links" >&5
8139
echo "${ECHO_T}$hard_links" >&6
8140
if test "$hard_links" = no; then
8141
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8142
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8149
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8150
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8153
allow_undefined_flag=
8154
enable_shared_with_static_runtimes=no
8156
archive_expsym_cmds=
8157
old_archive_From_new_cmds=
8158
old_archive_from_expsyms_cmds=
8159
export_dynamic_flag_spec=
8160
whole_archive_flag_spec=
8161
thread_safe_flag_spec=
8162
hardcode_libdir_flag_spec=
8163
hardcode_libdir_flag_spec_ld=
8164
hardcode_libdir_separator=
8167
hardcode_shlibpath_var=unsupported
8168
link_all_deplibs=unknown
8169
hardcode_automatic=no
8172
always_export_symbols=no
8173
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8174
# include_expsyms should be a list of space-separated symbols to be *always*
8175
# included in the symbol list
8177
# exclude_expsyms can be an extended regexp of symbols to exclude
8178
# it will be wrapped by ` (' and `)$', so one must not match beginning or
8179
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8180
# as well as any symbol that contains `d'.
8181
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8182
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8183
# platforms (ab)use it in PIC code, but their linkers get confused if
8184
# the symbol is explicitly referenced. Since portable code cannot
8185
# rely on this symbol name, it's probably fine to never include it in
8186
# preloaded symbol tables.
8187
extract_expsyms_cmds=
8190
cygwin* | mingw* | pw32*)
8191
# FIXME: the MSVC++ port hasn't been tested in a loooong time
8192
# When not using gcc, we currently assume that we are using
8193
# Microsoft Visual C++.
8194
if test "$GCC" != yes; then
8204
if test "$with_gnu_ld" = yes; then
8205
# If archive_cmds runs LD, not CC, wlarc should be empty
8208
# See if GNU ld supports shared libraries.
8210
aix3* | aix4* | aix5*)
8211
# On AIX/PPC, the GNU linker is very broken
8212
if test "$host_cpu" != ia64; then
8216
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8217
*** to be unable to reliably create shared libraries on AIX.
8218
*** Therefore, libtool is disabling shared libraries support. If you
8219
*** really care for shared libraries, you may want to modify your PATH
8220
*** so that a non-GNU linker is found, and then restart.
8227
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)'
8228
hardcode_libdir_flag_spec='-L$libdir'
8229
hardcode_minus_L=yes
8231
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8232
# that the semantics of dynamic libraries on AmigaOS, at least up
8233
# to version 4, is to share data among multiple programs linked
8234
# with the same dynamic library. Since this doesn't match the
8235
# behavior of shared libraries on other platforms, we can't use
8241
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8242
allow_undefined_flag=unsupported
8243
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8244
# support --undefined. This deserves some investigation. FIXME
8245
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8251
cygwin* | mingw* | pw32*)
8252
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8253
# as there is no search path for DLLs.
8254
hardcode_libdir_flag_spec='-L$libdir'
8255
allow_undefined_flag=unsupported
8256
always_export_symbols=no
8257
enable_shared_with_static_runtimes=yes
8258
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8260
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8261
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8262
# If the export-symbols file already is a .def file (1st line
8263
# is EXPORTS), use it as is; otherwise, prepend...
8264
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8265
cp $export_symbols $output_objdir/$soname.def;
8267
echo EXPORTS > $output_objdir/$soname.def;
8268
cat $export_symbols >> $output_objdir/$soname.def;
8270
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8277
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8278
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8281
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8282
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8287
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8291
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8292
*** create shared libraries on Solaris systems. Therefore, libtool
8293
*** is disabling shared libraries support. We urge you to upgrade GNU
8294
*** binutils to release 2.9.1 or newer. Another option is to modify
8295
*** your PATH or compiler configuration so that the native linker is
8296
*** used, and then restart.
8299
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8300
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8301
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8308
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8311
hardcode_shlibpath_var=no
8315
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8316
tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8317
archive_cmds="$tmp_archive_cmds"
8318
supports_anon_versioning=no
8319
case `$LD -v 2>/dev/null` in
8320
*\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8321
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8322
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8323
*\ 2.11.*) ;; # other 2.11 versions
8324
*) supports_anon_versioning=yes ;;
8326
if test $supports_anon_versioning = yes; then
8327
archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8328
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8329
$echo "local: *; };" >> $output_objdir/$libname.ver~
8330
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8332
archive_expsym_cmds="$tmp_archive_cmds"
8340
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8341
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8342
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8349
if test "$ld_shlibs" = yes; then
8350
runpath_var=LD_RUN_PATH
8351
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8352
export_dynamic_flag_spec='${wl}--export-dynamic'
8353
# ancient GNU ld didn't support --whole-archive et. al.
8354
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8355
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8357
whole_archive_flag_spec=
8361
# PORTME fill in a description of your system's linker (not GNU ld)
8364
allow_undefined_flag=unsupported
8365
always_export_symbols=yes
8366
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'
8367
# Note: this linker hardcodes the directories in LIBPATH if there
8368
# are no directories specified by -L.
8369
hardcode_minus_L=yes
8370
if test "$GCC" = yes && test -z "$link_static_flag"; then
8371
# Neither direct hardcoding nor static linking is supported with a
8373
hardcode_direct=unsupported
8378
if test "$host_cpu" = ia64; then
8379
# On IA64, the linker does run time linking by default, so we don't
8380
# have to do anything special.
8381
aix_use_runtimelinking=no
8382
exp_sym_flag='-Bexport'
8385
# If we're using GNU nm, then we don't want the "-C" option.
8386
# -C means demangle to AIX nm, but means don't demangle with GNU nm
8387
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8388
export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8390
export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8392
aix_use_runtimelinking=no
8394
# Test if we are trying to use run time linking or normal
8395
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8396
# need to do runtime linking.
8397
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8398
for ld_flag in $LDFLAGS; do
8399
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8400
aix_use_runtimelinking=yes
8406
exp_sym_flag='-bexport'
8407
no_entry_flag='-bnoentry'
8410
# When large executables or shared objects are built, AIX ld can
8411
# have problems creating the table of contents. If linking a library
8412
# or program results in "error TOC overflow" add -mminimal-toc to
8413
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8414
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8418
hardcode_libdir_separator=':'
8419
link_all_deplibs=yes
8421
if test "$GCC" = yes; then
8422
case $host_os in aix4.012|aix4.012.*)
8423
# We only want to do this on AIX 4.2 and lower, the check
8424
# below for broken collect2 doesn't work under 4.3+
8425
collect2name=`${CC} -print-prog-name=collect2`
8426
if test -f "$collect2name" && \
8427
strings "$collect2name" | grep resolve_lib_name >/dev/null
8429
# We have reworked collect2
8432
# We have old collect2
8433
hardcode_direct=unsupported
8434
# It fails to find uninstalled libraries when the uninstalled
8435
# path is not listed in the libpath. Setting hardcode_minus_L
8436
# to unsupported forces relinking
8437
hardcode_minus_L=yes
8438
hardcode_libdir_flag_spec='-L$libdir'
8439
hardcode_libdir_separator=
8442
shared_flag='-shared'
8445
if test "$host_cpu" = ia64; then
8446
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8447
# chokes on -Wl,-G. The following line is correct:
8450
if test "$aix_use_runtimelinking" = yes; then
8451
shared_flag='${wl}-G'
8453
shared_flag='${wl}-bM:SRE'
8458
# It seems that -bexpall does not export symbols beginning with
8459
# underscore (_), so it is better to generate a list of symbols to export.
8460
always_export_symbols=yes
8461
if test "$aix_use_runtimelinking" = yes; then
8462
# Warning - without using the other runtime loading flags (-brtl),
8463
# -berok will link without error, but may produce a broken library.
8464
allow_undefined_flag='-berok'
8465
# Determine the default libpath from the value encoded in an empty executable.
8466
cat >conftest.$ac_ext <<_ACEOF
8469
cat confdefs.h >>conftest.$ac_ext
8470
cat >>conftest.$ac_ext <<_ACEOF
8471
/* end confdefs.h. */
8481
rm -f conftest.$ac_objext conftest$ac_exeext
8482
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8483
(eval $ac_link) 2>conftest.er1
8485
grep -v '^ *+' conftest.er1 >conftest.err
8487
cat conftest.err >&5
8488
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489
(exit $ac_status); } &&
8490
{ ac_try='test -z "$ac_c_werror_flag"
8491
|| test ! -s conftest.err'
8492
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8495
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496
(exit $ac_status); }; } &&
8497
{ ac_try='test -s conftest$ac_exeext'
8498
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8501
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502
(exit $ac_status); }; }; then
8504
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8506
# Check for a 64-bit object if we didn't find anything.
8507
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8510
echo "$as_me: failed program was:" >&5
8511
sed 's/^/| /' conftest.$ac_ext >&5
8514
rm -f conftest.err conftest.$ac_objext \
8515
conftest$ac_exeext conftest.$ac_ext
8516
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8518
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8519
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"
8521
if test "$host_cpu" = ia64; then
8522
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8523
allow_undefined_flag="-z nodefs"
8524
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
8526
# Determine the default libpath from the value encoded in an empty executable.
8527
cat >conftest.$ac_ext <<_ACEOF
8530
cat confdefs.h >>conftest.$ac_ext
8531
cat >>conftest.$ac_ext <<_ACEOF
8532
/* end confdefs.h. */
8542
rm -f conftest.$ac_objext conftest$ac_exeext
8543
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8544
(eval $ac_link) 2>conftest.er1
8546
grep -v '^ *+' conftest.er1 >conftest.err
8548
cat conftest.err >&5
8549
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8550
(exit $ac_status); } &&
8551
{ ac_try='test -z "$ac_c_werror_flag"
8552
|| test ! -s conftest.err'
8553
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8556
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8557
(exit $ac_status); }; } &&
8558
{ ac_try='test -s conftest$ac_exeext'
8559
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8562
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8563
(exit $ac_status); }; }; then
8565
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8567
# Check for a 64-bit object if we didn't find anything.
8568
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8571
echo "$as_me: failed program was:" >&5
8572
sed 's/^/| /' conftest.$ac_ext >&5
8575
rm -f conftest.err conftest.$ac_objext \
8576
conftest$ac_exeext conftest.$ac_ext
8577
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8579
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8580
# Warning - without using the other run time loading flags,
8581
# -berok will link without error, but may produce a broken library.
8582
no_undefined_flag=' ${wl}-bernotok'
8583
allow_undefined_flag=' ${wl}-berok'
8584
# -bexpall does not export symbols beginning with underscore (_)
8585
always_export_symbols=yes
8586
# Exported symbols can be pulled into shared objects from archives
8587
whole_archive_flag_spec=' '
8588
archive_cmds_need_lc=yes
8589
# This is similar to how AIX traditionally builds it's shared libraries.
8590
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8596
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)'
8597
hardcode_libdir_flag_spec='-L$libdir'
8598
hardcode_minus_L=yes
8599
# see comment about different semantics on the GNU ld section
8604
export_dynamic_flag_spec=-rdynamic
8607
cygwin* | mingw* | pw32*)
8608
# When not using gcc, we currently assume that we are using
8609
# Microsoft Visual C++.
8610
# hardcode_libdir_flag_spec is actually meaningless, as there is
8611
# no search path for DLLs.
8612
hardcode_libdir_flag_spec=' '
8613
allow_undefined_flag=unsupported
8614
# Tell ltmain to make .lib files, not .a files.
8616
# Tell ltmain to make .dll files, not .so files.
8618
# FIXME: Setting linknames here is a bad hack.
8619
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8620
# The linker will automatically build a .lib file if we build a DLL.
8621
old_archive_From_new_cmds='true'
8622
# FIXME: Should let the user specify the lib program.
8623
old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8624
fix_srcfile_path='`cygpath -w "$srcfile"`'
8625
enable_shared_with_static_runtimes=yes
8628
darwin* | rhapsody*)
8630
rhapsody* | darwin1.[012])
8631
allow_undefined_flag='${wl}-undefined ${wl}suppress'
8634
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8635
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8637
case ${MACOSX_DEPLOYMENT_TARGET} in
8639
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8642
allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8648
archive_cmds_need_lc=no
8650
hardcode_automatic=yes
8651
hardcode_shlibpath_var=unsupported
8652
whole_archive_flag_spec=''
8653
link_all_deplibs=yes
8654
if test "$GCC" = yes ; then
8655
output_verbose_link_cmd='echo'
8656
archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8657
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8658
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8659
archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8660
module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8662
case "$cc_basename" in
8664
output_verbose_link_cmd='echo'
8665
archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8666
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8667
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8668
archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8669
module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8679
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8680
hardcode_libdir_flag_spec='-L$libdir'
8681
hardcode_shlibpath_var=no
8688
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8689
# support. Future versions do this automatically, but an explicit c++rt0.o
8690
# does not break anything, and helps significantly (at the cost of a little
8693
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8694
hardcode_libdir_flag_spec='-R$libdir'
8696
hardcode_shlibpath_var=no
8699
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
8701
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8703
hardcode_minus_L=yes
8704
hardcode_shlibpath_var=no
8707
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8708
freebsd* | kfreebsd*-gnu)
8709
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8710
hardcode_libdir_flag_spec='-R$libdir'
8712
hardcode_shlibpath_var=no
8716
if test "$GCC" = yes; then
8717
archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8719
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'
8721
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8722
hardcode_libdir_separator=:
8725
# hardcode_minus_L: Not really in the search PATH,
8726
# but as the default location of the library.
8727
hardcode_minus_L=yes
8728
export_dynamic_flag_spec='${wl}-E'
8732
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8735
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8738
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8744
archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8747
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8751
if test "$with_gnu_ld" = no; then
8754
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8755
hardcode_libdir_flag_spec_ld='+b $libdir'
8756
hardcode_libdir_separator=:
8758
hardcode_shlibpath_var=no
8761
hardcode_libdir_flag_spec='-L$libdir'
8763
hardcode_shlibpath_var=no
8765
# hardcode_minus_L: Not really in the search PATH,
8766
# but as the default location of the library.
8767
hardcode_minus_L=yes
8770
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8771
hardcode_libdir_separator=:
8773
export_dynamic_flag_spec='${wl}-E'
8775
# hardcode_minus_L: Not really in the search PATH,
8776
# but as the default location of the library.
8777
hardcode_minus_L=yes
8783
irix5* | irix6* | nonstopux*)
8784
if test "$GCC" = yes; then
8785
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'
8787
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'
8788
hardcode_libdir_flag_spec_ld='-rpath $libdir'
8790
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8791
hardcode_libdir_separator=:
8792
link_all_deplibs=yes
8796
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8797
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8799
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8801
hardcode_libdir_flag_spec='-R$libdir'
8803
hardcode_shlibpath_var=no
8807
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8809
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8810
hardcode_libdir_separator=:
8811
hardcode_shlibpath_var=no
8816
hardcode_shlibpath_var=no
8817
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8818
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8819
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8820
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8821
export_dynamic_flag_spec='${wl}-E'
8824
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8825
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8826
hardcode_libdir_flag_spec='-R$libdir'
8829
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8830
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8837
hardcode_libdir_flag_spec='-L$libdir'
8838
hardcode_minus_L=yes
8839
allow_undefined_flag=unsupported
8840
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'
8841
old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8845
if test "$GCC" = yes; then
8846
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8847
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'
8849
allow_undefined_flag=' -expect_unresolved \*'
8850
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'
8852
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8853
hardcode_libdir_separator=:
8856
osf4* | osf5*) # as osf3* with the addition of -msym flag
8857
if test "$GCC" = yes; then
8858
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8859
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'
8860
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8862
allow_undefined_flag=' -expect_unresolved \*'
8863
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'
8864
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8865
$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'
8867
# Both c and cxx compiler support -rpath directly
8868
hardcode_libdir_flag_spec='-rpath $libdir'
8870
hardcode_libdir_separator=:
8874
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8875
hardcode_shlibpath_var=no
8876
export_dynamic_flag_spec='${wl}-Bexport'
8877
runpath_var=LD_RUN_PATH
8878
hardcode_runpath_var=yes
8882
no_undefined_flag=' -z text'
8883
if test "$GCC" = yes; then
8884
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8885
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8886
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8888
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8889
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8890
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8892
hardcode_libdir_flag_spec='-R$libdir'
8893
hardcode_shlibpath_var=no
8895
solaris2.[0-5] | solaris2.[0-5].*) ;;
8896
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
8897
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8899
link_all_deplibs=yes
8903
if test "x$host_vendor" = xsequent; then
8904
# Use $CC to link under sequent, because it throws in some extra .o
8905
# files that make .init and .fini sections work.
8906
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8908
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8910
hardcode_libdir_flag_spec='-L$libdir'
8912
hardcode_minus_L=yes
8913
hardcode_shlibpath_var=no
8917
case $host_vendor in
8919
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8920
hardcode_direct=yes # is this really true???
8923
## LD is ld it makes a PLAMLIB
8924
## CC just makes a GrossModule.
8925
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8926
reload_cmds='$CC -r -o $output$reload_objs'
8930
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8931
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8934
runpath_var='LD_RUN_PATH'
8935
hardcode_shlibpath_var=no
8939
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8940
hardcode_shlibpath_var=no
8941
export_dynamic_flag_spec='-Bexport'
8945
if test -d /usr/nec; then
8946
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8947
hardcode_shlibpath_var=no
8948
runpath_var=LD_RUN_PATH
8949
hardcode_runpath_var=yes
8955
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8958
hardcode_shlibpath_var=no
8959
hardcode_runpath_var=yes
8960
runpath_var=LD_RUN_PATH
8963
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
8964
no_undefined_flag='${wl}-z ${wl}text'
8965
if test "$GCC" = yes; then
8966
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8968
archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8970
runpath_var='LD_RUN_PATH'
8971
hardcode_shlibpath_var=no
8975
no_undefined_flag=' -z text'
8976
# $CC -shared without GNU ld will not create a library from C++
8977
# object files and a static libstdc++, better avoid it by now
8978
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8979
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8980
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8981
hardcode_libdir_flag_spec=
8982
hardcode_shlibpath_var=no
8983
runpath_var='LD_RUN_PATH'
8987
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8988
hardcode_libdir_flag_spec='-L$libdir'
8989
hardcode_shlibpath_var=no
8998
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8999
echo "${ECHO_T}$ld_shlibs" >&6
9000
test "$ld_shlibs" = no && can_build_shared=no
9002
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9003
if test "$GCC" = yes; then
9004
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9008
# Do we need to explicitly link libc?
9010
case "x$archive_cmds_need_lc" in
9012
# Assume -lc should be added
9013
archive_cmds_need_lc=yes
9015
if test "$enable_shared" = yes && test "$GCC" = yes; then
9016
case $archive_cmds in
9018
# FIXME: we may have to deal with multi-command sequences.
9021
# Test whether the compiler implicitly links with -lc since on some
9022
# systems, -lgcc has to come before -lc. If gcc already passes -lc
9023
# to ld, don't add -lc before -lgcc.
9024
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9025
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9027
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9029
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9030
(eval $ac_compile) 2>&5
9032
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9033
(exit $ac_status); } 2>conftest.err; then
9036
libobjs=conftest.$ac_objext
9038
wl=$lt_prog_compiler_wl
9044
lt_save_allow_undefined_flag=$allow_undefined_flag
9045
allow_undefined_flag=
9046
if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9047
(eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9049
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9050
(exit $ac_status); }
9052
archive_cmds_need_lc=no
9054
archive_cmds_need_lc=yes
9056
allow_undefined_flag=$lt_save_allow_undefined_flag
9058
cat conftest.err 1>&5
9061
echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9062
echo "${ECHO_T}$archive_cmds_need_lc" >&6
9069
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9070
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9072
libname_spec='lib$name'
9080
shlibpath_overrides_runpath=unknown
9082
dynamic_linker="$host_os ld.so"
9083
sys_lib_dlsearch_path_spec="/lib /usr/lib"
9084
if test "$GCC" = yes; then
9085
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9086
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9087
# if the path contains ";" then we assume it to be the separator
9088
# otherwise default to the standard path separator (i.e. ":") - it is
9089
# assumed that no part of a normal pathname contains ";" but that should
9090
# okay in the real world where ";" in dirpaths is itself problematic.
9091
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9093
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9096
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9098
need_lib_prefix=unknown
9099
hardcode_into_libs=no
9101
# when you set need_version to no, make sure it does not cause -set_version
9102
# flags to be left without arguments
9103
need_version=unknown
9108
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9109
shlibpath_var=LIBPATH
9111
# AIX 3 has no versioning support, so we append a major version to the name.
9112
soname_spec='${libname}${release}${shared_ext}$major'
9119
hardcode_into_libs=yes
9120
if test "$host_cpu" = ia64; then
9121
# AIX 5 supports IA64
9122
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9123
shlibpath_var=LD_LIBRARY_PATH
9125
# With GCC up to 2.95.x, collect2 would create an import file
9126
# for dependence libraries. The import file would start with
9127
# the line `#! .'. This would cause the generated library to
9128
# depend on `.', always an invalid library. This was fixed in
9129
# development snapshots of GCC prior to 3.0.
9131
aix4 | aix4.[01] | aix4.[01].*)
9132
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9134
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9141
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9142
# soname into executable. Probably we can add versioning support to
9143
# collect2, so additional links can be useful in future.
9144
if test "$aix_use_runtimelinking" = yes; then
9145
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
9146
# instead of lib<name>.a to let people know that these are not
9147
# typical AIX shared libraries.
9148
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9150
# We preserve .a as extension for shared libraries through AIX4.2
9151
# and later when we are not doing run time linking.
9152
library_names_spec='${libname}${release}.a $libname.a'
9153
soname_spec='${libname}${release}${shared_ext}$major'
9155
shlibpath_var=LIBPATH
9160
library_names_spec='$libname.ixlibrary $libname.a'
9161
# Create ${libname}_ixlibrary.a entries in /sys/libs.
9162
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'
9166
library_names_spec='${libname}${shared_ext}'
9167
dynamic_linker="$host_os ld.so"
9168
shlibpath_var=LIBRARY_PATH
9174
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9175
soname_spec='${libname}${release}${shared_ext}$major'
9176
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9177
shlibpath_var=LD_LIBRARY_PATH
9178
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9179
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9180
# the default ld.so.conf also contains /usr/contrib/lib and
9181
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9182
# libtool to hard-code these into programs
9185
cygwin* | mingw* | pw32*)
9186
version_type=windows
9191
case $GCC,$host_os in
9192
yes,cygwin* | yes,mingw* | yes,pw32*)
9193
library_names_spec='$libname.dll.a'
9194
# DLL is installed to $(libdir)/../bin by postinstall_cmds
9195
postinstall_cmds='base_file=`basename \${file}`~
9196
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9197
dldir=$destdir/`dirname \$dlpath`~
9198
test -d \$dldir || mkdir -p \$dldir~
9199
$install_prog $dir/$dlname \$dldir/$dlname'
9200
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9201
dlpath=$dir/\$dldll~
9203
shlibpath_overrides_runpath=yes
9207
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
9208
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9209
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9212
# MinGW DLLs use traditional 'lib' prefix
9213
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9214
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9215
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9216
# It is most probably a Windows format PATH printed by
9217
# mingw gcc, but we are running on Cygwin. Gcc prints its search
9218
# path with ; separators, and with drive letters. We can handle the
9219
# drive letters (cygwin fileutils understands them), so leave them,
9220
# especially as we might pass files found there to a mingw objdump,
9221
# which wouldn't understand a cygwinified path. Ahh.
9222
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9224
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9228
# pw32 DLLs use 'pw' prefix rather than 'lib'
9229
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
9235
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9238
dynamic_linker='Win32 ld.exe'
9239
# FIXME: first we should search . and the directory the executable is in
9243
darwin* | rhapsody*)
9244
dynamic_linker="$host_os dyld"
9248
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9249
soname_spec='${libname}${release}${major}$shared_ext'
9250
shlibpath_overrides_runpath=yes
9251
shlibpath_var=DYLD_LIBRARY_PATH
9252
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
9253
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9254
if test "$GCC" = yes; then
9255
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
9257
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9259
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9266
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9267
soname_spec='${libname}${release}${shared_ext}$major'
9268
shlibpath_var=LD_LIBRARY_PATH
9279
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9280
soname_spec='${libname}${release}${shared_ext}$major'
9281
shlibpath_var=LD_LIBRARY_PATH
9282
shlibpath_overrides_runpath=no
9283
hardcode_into_libs=yes
9284
dynamic_linker='GNU ld.so'
9288
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
9289
version_type=freebsd-$objformat
9290
case $version_type in
9292
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9297
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9301
shlibpath_var=LD_LIBRARY_PATH
9304
shlibpath_overrides_runpath=yes
9306
freebsd3.01* | freebsdelf3.01*)
9307
shlibpath_overrides_runpath=yes
9308
hardcode_into_libs=yes
9311
shlibpath_overrides_runpath=no
9312
hardcode_into_libs=yes
9321
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9322
soname_spec='${libname}${release}${shared_ext}$major'
9323
shlibpath_var=LD_LIBRARY_PATH
9324
hardcode_into_libs=yes
9327
hpux9* | hpux10* | hpux11*)
9328
# Give a soname corresponding to the major version so that dld.sl refuses to
9329
# link against other versions.
9336
hardcode_into_libs=yes
9337
dynamic_linker="$host_os dld.so"
9338
shlibpath_var=LD_LIBRARY_PATH
9339
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9340
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9341
soname_spec='${libname}${release}${shared_ext}$major'
9342
if test "X$HPUX_IA64_MODE" = X32; then
9343
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9345
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9347
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9351
hardcode_into_libs=yes
9352
dynamic_linker="$host_os dld.sl"
9353
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9354
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9355
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9356
soname_spec='${libname}${release}${shared_ext}$major'
9357
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9358
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9362
dynamic_linker="$host_os dld.sl"
9363
shlibpath_var=SHLIB_PATH
9364
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9365
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9366
soname_spec='${libname}${release}${shared_ext}$major'
9369
# HP-UX runs *really* slowly unless shared libraries are mode 555.
9370
postinstall_cmds='chmod 555 $lib'
9373
irix5* | irix6* | nonstopux*)
9375
nonstopux*) version_type=nonstopux ;;
9377
if test "$lt_cv_prog_gnu_ld" = yes; then
9385
soname_spec='${libname}${release}${shared_ext}$major'
9386
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9388
irix5* | nonstopux*)
9392
case $LD in # libtool.m4 will add one of these switches to LD
9393
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9394
libsuff= shlibsuff= libmagic=32-bit;;
9395
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9396
libsuff=32 shlibsuff=N32 libmagic=N32;;
9397
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9398
libsuff=64 shlibsuff=64 libmagic=64-bit;;
9399
*) libsuff= shlibsuff= libmagic=never-match;;
9403
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9404
shlibpath_overrides_runpath=no
9405
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9406
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9407
hardcode_into_libs=yes
9410
# No shared lib support for Linux oldld, aout, or coff.
9411
linux*oldld* | linux*aout* | linux*coff*)
9415
# This must be Linux ELF.
9420
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9421
soname_spec='${libname}${release}${shared_ext}$major'
9422
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9423
shlibpath_var=LD_LIBRARY_PATH
9424
shlibpath_overrides_runpath=no
9425
# This implies no fast_install, which is unacceptable.
9426
# Some rework will be needed to allow for fast_install
9427
# before this can be enabled.
9428
hardcode_into_libs=yes
9430
# Append ld.so.conf contents to the search path
9431
if test -f /etc/ld.so.conf; then
9432
lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
9433
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9436
# We used to test for /lib/ld.so.1 and disable shared libraries on
9437
# powerpc, because MkLinux only supported shared libraries with the
9438
# GNU dynamic linker. Since this was broken with cross compilers,
9439
# most powerpc-linux boxes support dynamic linking these days and
9440
# people can always --disable-shared, the test was removed, and we
9441
# assume the GNU/Linux dynamic linker is in use.
9442
dynamic_linker='GNU/Linux ld.so'
9449
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9450
soname_spec='${libname}${release}${shared_ext}$major'
9451
shlibpath_var=LD_LIBRARY_PATH
9452
shlibpath_overrides_runpath=no
9453
hardcode_into_libs=yes
9454
dynamic_linker='GNU ld.so'
9461
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9462
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9463
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9464
dynamic_linker='NetBSD (a.out) ld.so'
9466
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9467
soname_spec='${libname}${release}${shared_ext}$major'
9468
dynamic_linker='NetBSD ld.elf_so'
9470
shlibpath_var=LD_LIBRARY_PATH
9471
shlibpath_overrides_runpath=yes
9472
hardcode_into_libs=yes
9477
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9478
shlibpath_var=LD_LIBRARY_PATH
9479
shlibpath_overrides_runpath=yes
9486
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9487
soname_spec='${libname}${release}${shared_ext}$major'
9488
shlibpath_var=LD_LIBRARY_PATH
9489
shlibpath_overrides_runpath=yes
9496
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9497
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9498
shlibpath_var=LD_LIBRARY_PATH
9499
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9501
openbsd2.[89] | openbsd2.[89].*)
9502
shlibpath_overrides_runpath=no
9505
shlibpath_overrides_runpath=yes
9509
shlibpath_overrides_runpath=yes
9514
libname_spec='$name'
9517
library_names_spec='$libname${shared_ext} $libname.a'
9518
dynamic_linker='OS/2 ld.exe'
9519
shlibpath_var=LIBPATH
9522
osf3* | osf4* | osf5*)
9526
soname_spec='${libname}${release}${shared_ext}$major'
9527
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9528
shlibpath_var=LD_LIBRARY_PATH
9529
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9530
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9535
soname_spec='${libname}${release}${shared_ext}$major'
9536
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9537
shlibpath_var=LD_LIBRARY_PATH
9544
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9545
soname_spec='${libname}${release}${shared_ext}$major'
9546
shlibpath_var=LD_LIBRARY_PATH
9547
shlibpath_overrides_runpath=yes
9548
hardcode_into_libs=yes
9549
# ldd complains unless libraries are executable
9550
postinstall_cmds='chmod +x $lib'
9555
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9556
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9557
shlibpath_var=LD_LIBRARY_PATH
9558
shlibpath_overrides_runpath=yes
9559
if test "$with_gnu_ld" = yes; then
9565
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9567
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9568
soname_spec='${libname}${release}${shared_ext}$major'
9569
shlibpath_var=LD_LIBRARY_PATH
9570
case $host_vendor in
9572
shlibpath_overrides_runpath=no
9574
export_dynamic_flag_spec='${wl}-Blargedynsym'
9575
runpath_var=LD_RUN_PATH
9583
shlibpath_overrides_runpath=no
9584
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9590
if test -d /usr/nec ;then
9592
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9593
soname_spec='$libname${shared_ext}.$major'
9594
shlibpath_var=LD_LIBRARY_PATH
9600
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9601
soname_spec='${libname}${release}${shared_ext}$major'
9602
shlibpath_var=LD_LIBRARY_PATH
9609
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9610
echo "${ECHO_T}$dynamic_linker" >&6
9611
test "$dynamic_linker" = no && can_build_shared=no
9613
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9614
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9616
if test -n "$hardcode_libdir_flag_spec" || \
9617
test -n "$runpath_var" || \
9618
test "X$hardcode_automatic" = "Xyes" ; then
9620
# We can hardcode non-existant directories.
9621
if test "$hardcode_direct" != no &&
9622
# If the only mechanism to avoid hardcoding is shlibpath_var, we
9623
# have to relink, otherwise we might link with an installed library
9624
# when we should be linking with a yet-to-be-installed one
9625
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9626
test "$hardcode_minus_L" != no; then
9627
# Linking always hardcodes the temporary library directory.
9628
hardcode_action=relink
9630
# We can link without hardcoding, and we can hardcode nonexisting dirs.
9631
hardcode_action=immediate
9634
# We cannot hardcode anything, or else we can only hardcode existing
9636
hardcode_action=unsupported
9638
echo "$as_me:$LINENO: result: $hardcode_action" >&5
9639
echo "${ECHO_T}$hardcode_action" >&6
9641
if test "$hardcode_action" = relink; then
9642
# Fast installation is not supported
9643
enable_fast_install=no
9644
elif test "$shlibpath_overrides_runpath" = yes ||
9645
test "$enable_shared" = no; then
9646
# Fast installation is not necessary
9647
enable_fast_install=needless
9652
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9653
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9654
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9655
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9656
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9657
echo "$as_me:$LINENO: result: yes" >&5
9658
echo "${ECHO_T}yes" >&6
9660
# FIXME - insert some real tests, host_os isn't really good enough
9663
if test -n "$STRIP" ; then
9664
striplib="$STRIP -x"
9665
echo "$as_me:$LINENO: result: yes" >&5
9666
echo "${ECHO_T}yes" >&6
9668
echo "$as_me:$LINENO: result: no" >&5
9669
echo "${ECHO_T}no" >&6
9673
echo "$as_me:$LINENO: result: no" >&5
9674
echo "${ECHO_T}no" >&6
9679
if test "x$enable_dlopen" != xyes; then
9680
enable_dlopen=unknown
9681
enable_dlopen_self=unknown
9682
enable_dlopen_self_static=unknown
9689
lt_cv_dlopen="load_add_on"
9691
lt_cv_dlopen_self=yes
9695
lt_cv_dlopen="LoadLibrary"
9700
lt_cv_dlopen="dlopen"
9705
# if libdl is installed we need to link against it
9706
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9707
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9708
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9709
echo $ECHO_N "(cached) $ECHO_C" >&6
9711
ac_check_lib_save_LIBS=$LIBS
9713
cat >conftest.$ac_ext <<_ACEOF
9716
cat confdefs.h >>conftest.$ac_ext
9717
cat >>conftest.$ac_ext <<_ACEOF
9718
/* end confdefs.h. */
9720
/* Override any gcc2 internal prototype to avoid an error. */
9724
/* We use char because int might match the return type of a gcc2
9725
builtin and then its argument prototype would still apply. */
9735
rm -f conftest.$ac_objext conftest$ac_exeext
9736
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9737
(eval $ac_link) 2>conftest.er1
9739
grep -v '^ *+' conftest.er1 >conftest.err
9741
cat conftest.err >&5
9742
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9743
(exit $ac_status); } &&
9744
{ ac_try='test -z "$ac_c_werror_flag"
9745
|| test ! -s conftest.err'
9746
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9749
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9750
(exit $ac_status); }; } &&
9751
{ ac_try='test -s conftest$ac_exeext'
9752
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9755
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9756
(exit $ac_status); }; }; then
9757
ac_cv_lib_dl_dlopen=yes
9759
echo "$as_me: failed program was:" >&5
9760
sed 's/^/| /' conftest.$ac_ext >&5
9762
ac_cv_lib_dl_dlopen=no
9764
rm -f conftest.err conftest.$ac_objext \
9765
conftest$ac_exeext conftest.$ac_ext
9766
LIBS=$ac_check_lib_save_LIBS
9768
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9769
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9770
if test $ac_cv_lib_dl_dlopen = yes; then
9771
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9776
lt_cv_dlopen_self=yes
9783
echo "$as_me:$LINENO: checking for shl_load" >&5
9784
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9785
if test "${ac_cv_func_shl_load+set}" = set; then
9786
echo $ECHO_N "(cached) $ECHO_C" >&6
9788
cat >conftest.$ac_ext <<_ACEOF
9791
cat confdefs.h >>conftest.$ac_ext
9792
cat >>conftest.$ac_ext <<_ACEOF
9793
/* end confdefs.h. */
9794
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9795
For example, HP-UX 11i <limits.h> declares gettimeofday. */
9796
#define shl_load innocuous_shl_load
9798
/* System header to define __stub macros and hopefully few prototypes,
9799
which can conflict with char shl_load (); below.
9800
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9801
<limits.h> exists even on freestanding compilers. */
9804
# include <limits.h>
9806
# include <assert.h>
9811
/* Override any gcc2 internal prototype to avoid an error. */
9816
/* We use char because int might match the return type of a gcc2
9817
builtin and then its argument prototype would still apply. */
9819
/* The GNU C library defines this for functions which it implements
9820
to always fail with ENOSYS. Some functions are actually named
9821
something starting with __ and the normal name is an alias. */
9822
#if defined (__stub_shl_load) || defined (__stub___shl_load)
9825
char (*f) () = shl_load;
9834
return f != shl_load;
9839
rm -f conftest.$ac_objext conftest$ac_exeext
9840
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9841
(eval $ac_link) 2>conftest.er1
9843
grep -v '^ *+' conftest.er1 >conftest.err
9845
cat conftest.err >&5
9846
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9847
(exit $ac_status); } &&
9848
{ ac_try='test -z "$ac_c_werror_flag"
9849
|| test ! -s conftest.err'
9850
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9853
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854
(exit $ac_status); }; } &&
9855
{ ac_try='test -s conftest$ac_exeext'
9856
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9859
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9860
(exit $ac_status); }; }; then
9861
ac_cv_func_shl_load=yes
9863
echo "$as_me: failed program was:" >&5
9864
sed 's/^/| /' conftest.$ac_ext >&5
9866
ac_cv_func_shl_load=no
9868
rm -f conftest.err conftest.$ac_objext \
9869
conftest$ac_exeext conftest.$ac_ext
9871
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9872
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9873
if test $ac_cv_func_shl_load = yes; then
9874
lt_cv_dlopen="shl_load"
9876
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9877
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9878
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9879
echo $ECHO_N "(cached) $ECHO_C" >&6
9881
ac_check_lib_save_LIBS=$LIBS
9883
cat >conftest.$ac_ext <<_ACEOF
9886
cat confdefs.h >>conftest.$ac_ext
9887
cat >>conftest.$ac_ext <<_ACEOF
9888
/* end confdefs.h. */
9890
/* Override any gcc2 internal prototype to avoid an error. */
9894
/* We use char because int might match the return type of a gcc2
9895
builtin and then its argument prototype would still apply. */
9905
rm -f conftest.$ac_objext conftest$ac_exeext
9906
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9907
(eval $ac_link) 2>conftest.er1
9909
grep -v '^ *+' conftest.er1 >conftest.err
9911
cat conftest.err >&5
9912
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913
(exit $ac_status); } &&
9914
{ ac_try='test -z "$ac_c_werror_flag"
9915
|| test ! -s conftest.err'
9916
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9919
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9920
(exit $ac_status); }; } &&
9921
{ ac_try='test -s conftest$ac_exeext'
9922
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9925
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926
(exit $ac_status); }; }; then
9927
ac_cv_lib_dld_shl_load=yes
9929
echo "$as_me: failed program was:" >&5
9930
sed 's/^/| /' conftest.$ac_ext >&5
9932
ac_cv_lib_dld_shl_load=no
9934
rm -f conftest.err conftest.$ac_objext \
9935
conftest$ac_exeext conftest.$ac_ext
9936
LIBS=$ac_check_lib_save_LIBS
9938
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9939
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9940
if test $ac_cv_lib_dld_shl_load = yes; then
9941
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9943
echo "$as_me:$LINENO: checking for dlopen" >&5
9944
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9945
if test "${ac_cv_func_dlopen+set}" = set; then
9946
echo $ECHO_N "(cached) $ECHO_C" >&6
9948
cat >conftest.$ac_ext <<_ACEOF
9951
cat confdefs.h >>conftest.$ac_ext
9952
cat >>conftest.$ac_ext <<_ACEOF
9953
/* end confdefs.h. */
9954
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9955
For example, HP-UX 11i <limits.h> declares gettimeofday. */
9956
#define dlopen innocuous_dlopen
9958
/* System header to define __stub macros and hopefully few prototypes,
9959
which can conflict with char dlopen (); below.
9960
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9961
<limits.h> exists even on freestanding compilers. */
9964
# include <limits.h>
9966
# include <assert.h>
9971
/* Override any gcc2 internal prototype to avoid an error. */
9976
/* We use char because int might match the return type of a gcc2
9977
builtin and then its argument prototype would still apply. */
9979
/* The GNU C library defines this for functions which it implements
9980
to always fail with ENOSYS. Some functions are actually named
9981
something starting with __ and the normal name is an alias. */
9982
#if defined (__stub_dlopen) || defined (__stub___dlopen)
9985
char (*f) () = dlopen;
9999
rm -f conftest.$ac_objext conftest$ac_exeext
10000
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10001
(eval $ac_link) 2>conftest.er1
10003
grep -v '^ *+' conftest.er1 >conftest.err
10005
cat conftest.err >&5
10006
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10007
(exit $ac_status); } &&
10008
{ ac_try='test -z "$ac_c_werror_flag"
10009
|| test ! -s conftest.err'
10010
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10011
(eval $ac_try) 2>&5
10013
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10014
(exit $ac_status); }; } &&
10015
{ ac_try='test -s conftest$ac_exeext'
10016
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10017
(eval $ac_try) 2>&5
10019
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10020
(exit $ac_status); }; }; then
10021
ac_cv_func_dlopen=yes
10023
echo "$as_me: failed program was:" >&5
10024
sed 's/^/| /' conftest.$ac_ext >&5
10026
ac_cv_func_dlopen=no
10028
rm -f conftest.err conftest.$ac_objext \
10029
conftest$ac_exeext conftest.$ac_ext
10031
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10032
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10033
if test $ac_cv_func_dlopen = yes; then
10034
lt_cv_dlopen="dlopen"
10036
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10037
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10038
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10039
echo $ECHO_N "(cached) $ECHO_C" >&6
10041
ac_check_lib_save_LIBS=$LIBS
10043
cat >conftest.$ac_ext <<_ACEOF
10046
cat confdefs.h >>conftest.$ac_ext
10047
cat >>conftest.$ac_ext <<_ACEOF
10048
/* end confdefs.h. */
10050
/* Override any gcc2 internal prototype to avoid an error. */
10054
/* We use char because int might match the return type of a gcc2
10055
builtin and then its argument prototype would still apply. */
10065
rm -f conftest.$ac_objext conftest$ac_exeext
10066
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10067
(eval $ac_link) 2>conftest.er1
10069
grep -v '^ *+' conftest.er1 >conftest.err
10071
cat conftest.err >&5
10072
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10073
(exit $ac_status); } &&
10074
{ ac_try='test -z "$ac_c_werror_flag"
10075
|| test ! -s conftest.err'
10076
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10077
(eval $ac_try) 2>&5
10079
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080
(exit $ac_status); }; } &&
10081
{ ac_try='test -s conftest$ac_exeext'
10082
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10083
(eval $ac_try) 2>&5
10085
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10086
(exit $ac_status); }; }; then
10087
ac_cv_lib_dl_dlopen=yes
10089
echo "$as_me: failed program was:" >&5
10090
sed 's/^/| /' conftest.$ac_ext >&5
10092
ac_cv_lib_dl_dlopen=no
10094
rm -f conftest.err conftest.$ac_objext \
10095
conftest$ac_exeext conftest.$ac_ext
10096
LIBS=$ac_check_lib_save_LIBS
10098
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10099
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10100
if test $ac_cv_lib_dl_dlopen = yes; then
10101
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10103
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10104
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10105
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10106
echo $ECHO_N "(cached) $ECHO_C" >&6
10108
ac_check_lib_save_LIBS=$LIBS
10109
LIBS="-lsvld $LIBS"
10110
cat >conftest.$ac_ext <<_ACEOF
10113
cat confdefs.h >>conftest.$ac_ext
10114
cat >>conftest.$ac_ext <<_ACEOF
10115
/* end confdefs.h. */
10117
/* Override any gcc2 internal prototype to avoid an error. */
10121
/* We use char because int might match the return type of a gcc2
10122
builtin and then its argument prototype would still apply. */
10132
rm -f conftest.$ac_objext conftest$ac_exeext
10133
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10134
(eval $ac_link) 2>conftest.er1
10136
grep -v '^ *+' conftest.er1 >conftest.err
10138
cat conftest.err >&5
10139
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10140
(exit $ac_status); } &&
10141
{ ac_try='test -z "$ac_c_werror_flag"
10142
|| test ! -s conftest.err'
10143
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10144
(eval $ac_try) 2>&5
10146
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10147
(exit $ac_status); }; } &&
10148
{ ac_try='test -s conftest$ac_exeext'
10149
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10150
(eval $ac_try) 2>&5
10152
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10153
(exit $ac_status); }; }; then
10154
ac_cv_lib_svld_dlopen=yes
10156
echo "$as_me: failed program was:" >&5
10157
sed 's/^/| /' conftest.$ac_ext >&5
10159
ac_cv_lib_svld_dlopen=no
10161
rm -f conftest.err conftest.$ac_objext \
10162
conftest$ac_exeext conftest.$ac_ext
10163
LIBS=$ac_check_lib_save_LIBS
10165
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10166
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10167
if test $ac_cv_lib_svld_dlopen = yes; then
10168
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10170
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10171
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10172
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10173
echo $ECHO_N "(cached) $ECHO_C" >&6
10175
ac_check_lib_save_LIBS=$LIBS
10177
cat >conftest.$ac_ext <<_ACEOF
10180
cat confdefs.h >>conftest.$ac_ext
10181
cat >>conftest.$ac_ext <<_ACEOF
10182
/* end confdefs.h. */
10184
/* Override any gcc2 internal prototype to avoid an error. */
10188
/* We use char because int might match the return type of a gcc2
10189
builtin and then its argument prototype would still apply. */
10199
rm -f conftest.$ac_objext conftest$ac_exeext
10200
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10201
(eval $ac_link) 2>conftest.er1
10203
grep -v '^ *+' conftest.er1 >conftest.err
10205
cat conftest.err >&5
10206
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207
(exit $ac_status); } &&
10208
{ ac_try='test -z "$ac_c_werror_flag"
10209
|| test ! -s conftest.err'
10210
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10211
(eval $ac_try) 2>&5
10213
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10214
(exit $ac_status); }; } &&
10215
{ ac_try='test -s conftest$ac_exeext'
10216
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10217
(eval $ac_try) 2>&5
10219
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220
(exit $ac_status); }; }; then
10221
ac_cv_lib_dld_dld_link=yes
10223
echo "$as_me: failed program was:" >&5
10224
sed 's/^/| /' conftest.$ac_ext >&5
10226
ac_cv_lib_dld_dld_link=no
10228
rm -f conftest.err conftest.$ac_objext \
10229
conftest$ac_exeext conftest.$ac_ext
10230
LIBS=$ac_check_lib_save_LIBS
10232
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10233
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10234
if test $ac_cv_lib_dld_dld_link = yes; then
10235
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10256
if test "x$lt_cv_dlopen" != xno; then
10262
case $lt_cv_dlopen in
10264
save_CPPFLAGS="$CPPFLAGS"
10265
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10267
save_LDFLAGS="$LDFLAGS"
10268
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10271
LIBS="$lt_cv_dlopen_libs $LIBS"
10273
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10274
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10275
if test "${lt_cv_dlopen_self+set}" = set; then
10276
echo $ECHO_N "(cached) $ECHO_C" >&6
10278
if test "$cross_compiling" = yes; then :
10279
lt_cv_dlopen_self=cross
10281
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10282
lt_status=$lt_dlunknown
10283
cat > conftest.$ac_ext <<EOF
10284
#line 10284 "configure"
10285
#include "confdefs.h"
10294
# define LT_DLGLOBAL RTLD_GLOBAL
10297
# define LT_DLGLOBAL DL_GLOBAL
10299
# define LT_DLGLOBAL 0
10303
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10304
find out it does not work in some platform. */
10305
#ifndef LT_DLLAZY_OR_NOW
10307
# define LT_DLLAZY_OR_NOW RTLD_LAZY
10310
# define LT_DLLAZY_OR_NOW DL_LAZY
10313
# define LT_DLLAZY_OR_NOW RTLD_NOW
10316
# define LT_DLLAZY_OR_NOW DL_NOW
10318
# define LT_DLLAZY_OR_NOW 0
10326
extern "C" void exit (int);
10329
void fnord() { int i=42;}
10332
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10333
int status = $lt_dlunknown;
10337
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10338
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10339
/* dlclose (self); */
10345
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10346
(eval $ac_link) 2>&5
10348
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10349
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10350
(./conftest; exit; ) 2>/dev/null
10352
case x$lt_status in
10353
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10354
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10355
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10358
# compilation failed
10359
lt_cv_dlopen_self=no
10366
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10367
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10369
if test "x$lt_cv_dlopen_self" = xyes; then
10370
LDFLAGS="$LDFLAGS $link_static_flag"
10371
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10372
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10373
if test "${lt_cv_dlopen_self_static+set}" = set; then
10374
echo $ECHO_N "(cached) $ECHO_C" >&6
10376
if test "$cross_compiling" = yes; then :
10377
lt_cv_dlopen_self_static=cross
10379
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10380
lt_status=$lt_dlunknown
10381
cat > conftest.$ac_ext <<EOF
10382
#line 10382 "configure"
10383
#include "confdefs.h"
10392
# define LT_DLGLOBAL RTLD_GLOBAL
10395
# define LT_DLGLOBAL DL_GLOBAL
10397
# define LT_DLGLOBAL 0
10401
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10402
find out it does not work in some platform. */
10403
#ifndef LT_DLLAZY_OR_NOW
10405
# define LT_DLLAZY_OR_NOW RTLD_LAZY
10408
# define LT_DLLAZY_OR_NOW DL_LAZY
10411
# define LT_DLLAZY_OR_NOW RTLD_NOW
10414
# define LT_DLLAZY_OR_NOW DL_NOW
10416
# define LT_DLLAZY_OR_NOW 0
10424
extern "C" void exit (int);
10427
void fnord() { int i=42;}
10430
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10431
int status = $lt_dlunknown;
10435
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10436
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10437
/* dlclose (self); */
10443
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10444
(eval $ac_link) 2>&5
10446
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10447
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10448
(./conftest; exit; ) 2>/dev/null
10450
case x$lt_status in
10451
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10452
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10453
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10456
# compilation failed
10457
lt_cv_dlopen_self_static=no
10464
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10465
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10468
CPPFLAGS="$save_CPPFLAGS"
10469
LDFLAGS="$save_LDFLAGS"
10474
case $lt_cv_dlopen_self in
10475
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10476
*) enable_dlopen_self=unknown ;;
10479
case $lt_cv_dlopen_self_static in
10480
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10481
*) enable_dlopen_self_static=unknown ;;
10486
# Report which librarie types wil actually be built
10487
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10488
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10489
echo "$as_me:$LINENO: result: $can_build_shared" >&5
10490
echo "${ECHO_T}$can_build_shared" >&6
10492
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10493
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10494
test "$can_build_shared" = "no" && enable_shared=no
10496
# On AIX, shared libraries and static libraries use the same namespace, and
10497
# are all built from PIC.
10500
test "$enable_shared" = yes && enable_static=no
10501
if test -n "$RANLIB"; then
10502
archive_cmds="$archive_cmds~\$RANLIB \$lib"
10503
postinstall_cmds='$RANLIB $lib'
10508
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10509
test "$enable_shared" = yes && enable_static=no
10513
echo "$as_me:$LINENO: result: $enable_shared" >&5
10514
echo "${ECHO_T}$enable_shared" >&6
10516
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10517
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10518
# Make sure either enable_shared or enable_static is yes.
10519
test "$enable_shared" = yes || enable_static=yes
10520
echo "$as_me:$LINENO: result: $enable_static" >&5
10521
echo "${ECHO_T}$enable_static" >&6
10523
# The else clause should only fire when bootstrapping the
10524
# libtool distribution, otherwise you forgot to ship ltmain.sh
10525
# with your package, and you will get complaints that there are
10526
# no rules to generate ltmain.sh.
10527
if test -f "$ltmain"; then
10528
# See if we are running on zsh, and set the options which allow our commands through
10529
# without removal of \ escapes.
10530
if test -n "${ZSH_VERSION+set}" ; then
10531
setopt NO_GLOB_SUBST
10533
# Now quote all the things that may contain metacharacters while being
10534
# careful not to overquote the AC_SUBSTed values. We take copies of the
10535
# variables and quote the copies for generation of the libtool script.
10536
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10538
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10539
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10540
deplibs_check_method reload_flag reload_cmds need_locks \
10541
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10542
lt_cv_sys_global_symbol_to_c_name_address \
10543
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10544
old_postinstall_cmds old_postuninstall_cmds \
10548
lt_prog_compiler_wl \
10549
lt_prog_compiler_pic \
10550
lt_prog_compiler_static \
10551
lt_prog_compiler_no_builtin_flag \
10552
export_dynamic_flag_spec \
10553
thread_safe_flag_spec \
10554
whole_archive_flag_spec \
10555
enable_shared_with_static_runtimes \
10557
old_archive_from_new_cmds \
10562
compiler_lib_search_path \
10564
archive_expsym_cmds \
10566
postuninstall_cmds \
10567
old_archive_from_expsyms_cmds \
10568
allow_undefined_flag \
10569
no_undefined_flag \
10570
export_symbols_cmds \
10571
hardcode_libdir_flag_spec \
10572
hardcode_libdir_flag_spec_ld \
10573
hardcode_libdir_separator \
10574
hardcode_automatic \
10576
module_expsym_cmds \
10577
lt_cv_prog_compiler_c_o \
10579
include_expsyms; do
10582
old_archive_cmds | \
10583
old_archive_from_new_cmds | \
10585
archive_expsym_cmds | \
10587
module_expsym_cmds | \
10588
old_archive_from_expsyms_cmds | \
10589
export_symbols_cmds | \
10590
extract_expsyms_cmds | reload_cmds | finish_cmds | \
10591
postinstall_cmds | postuninstall_cmds | \
10592
old_postinstall_cmds | old_postuninstall_cmds | \
10593
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10594
# Double-quote double-evaled strings.
10595
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10598
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10604
*'\$0 --fallback-echo"')
10605
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10609
cfgfile="${ofile}T"
10610
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10612
{ echo "$as_me:$LINENO: creating $ofile" >&5
10613
echo "$as_me: creating $ofile" >&6;}
10615
cat <<__EOF__ >> "$cfgfile"
10618
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10619
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10620
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10622
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10623
# Free Software Foundation, Inc.
10625
# This file is part of GNU Libtool:
10626
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10628
# This program is free software; you can redistribute it and/or modify
10629
# it under the terms of the GNU General Public License as published by
10630
# the Free Software Foundation; either version 2 of the License, or
10631
# (at your option) any later version.
10633
# This program is distributed in the hope that it will be useful, but
10634
# WITHOUT ANY WARRANTY; without even the implied warranty of
10635
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10636
# General Public License for more details.
10638
# You should have received a copy of the GNU General Public License
10639
# along with this program; if not, write to the Free Software
10640
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
10642
# As a special exception to the GNU General Public License, if you
10643
# distribute this file as part of a program that contains a
10644
# configuration script generated by Autoconf, you may include it under
10645
# the same distribution terms that you use for the rest of that program.
10647
# A sed program that does not truncate output.
10650
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10651
Xsed="$SED -e s/^X//"
10653
# The HP-UX ksh and POSIX shell print the target directory to stdout
10654
# if CDPATH is set.
10655
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10657
# The names of the tagged configurations supported by this script.
10660
# ### BEGIN LIBTOOL CONFIG
10662
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10664
# Shell to use when invoking shell scripts.
10667
# Whether or not to build shared libraries.
10668
build_libtool_libs=$enable_shared
10670
# Whether or not to build static libraries.
10671
build_old_libs=$enable_static
10673
# Whether or not to add -lc for building shared libraries.
10674
build_libtool_need_lc=$archive_cmds_need_lc
10676
# Whether or not to disallow shared libs when runtime libs are static
10677
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10679
# Whether or not to optimize for fast installation.
10680
fast_install=$enable_fast_install
10683
host_alias=$host_alias
10686
# An echo program that does not interpret backslashes.
10691
AR_FLAGS=$lt_AR_FLAGS
10696
# A language-specific compiler.
10699
# Is the compiler the GNU C compiler?
10705
# The linker used to build libraries.
10708
# Whether we need hard or soft links.
10711
# A BSD-compatible nm program.
10714
# A symbol stripping program
10717
# Used to examine libraries when file_magic_cmd begins "file"
10718
MAGIC_CMD=$MAGIC_CMD
10720
# Used on cygwin: DLL creation program.
10723
# Used on cygwin: object dumper.
10726
# Used on cygwin: assembler.
10729
# The name of the directory that contains temporary libtool files.
10732
# How to create reloadable object files.
10733
reload_flag=$lt_reload_flag
10734
reload_cmds=$lt_reload_cmds
10736
# How to pass a linker flag through the compiler.
10737
wl=$lt_lt_prog_compiler_wl
10739
# Object file suffix (normally "o").
10740
objext="$ac_objext"
10742
# Old archive suffix (normally "a").
10745
# Shared library suffix (normally ".so").
10746
shrext_cmds='$shrext_cmds'
10748
# Executable file suffix (normally "").
10751
# Additional compiler flags for building library objects.
10752
pic_flag=$lt_lt_prog_compiler_pic
10755
# What is the maximum length of a command?
10756
max_cmd_len=$lt_cv_sys_max_cmd_len
10758
# Does compiler simultaneously support -c and -o options?
10759
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10761
# Must we lock files when doing compilation ?
10762
need_locks=$lt_need_locks
10764
# Do we need the lib prefix for modules?
10765
need_lib_prefix=$need_lib_prefix
10767
# Do we need a version for libraries?
10768
need_version=$need_version
10770
# Whether dlopen is supported.
10771
dlopen_support=$enable_dlopen
10773
# Whether dlopen of programs is supported.
10774
dlopen_self=$enable_dlopen_self
10776
# Whether dlopen of statically linked programs is supported.
10777
dlopen_self_static=$enable_dlopen_self_static
10779
# Compiler flag to prevent dynamic linking.
10780
link_static_flag=$lt_lt_prog_compiler_static
10782
# Compiler flag to turn off builtin functions.
10783
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10785
# Compiler flag to allow reflexive dlopens.
10786
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10788
# Compiler flag to generate shared objects directly from archives.
10789
whole_archive_flag_spec=$lt_whole_archive_flag_spec
10791
# Compiler flag to generate thread-safe objects.
10792
thread_safe_flag_spec=$lt_thread_safe_flag_spec
10794
# Library versioning type.
10795
version_type=$version_type
10797
# Format of library name prefix.
10798
libname_spec=$lt_libname_spec
10800
# List of archive names. First name is the real one, the rest are links.
10801
# The last name is the one that the linker finds with -lNAME.
10802
library_names_spec=$lt_library_names_spec
10804
# The coded name of the library, if different from the real name.
10805
soname_spec=$lt_soname_spec
10807
# Commands used to build and install an old-style archive.
10809
old_archive_cmds=$lt_old_archive_cmds
10810
old_postinstall_cmds=$lt_old_postinstall_cmds
10811
old_postuninstall_cmds=$lt_old_postuninstall_cmds
10813
# Create an old-style archive from a shared archive.
10814
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10816
# Create a temporary old-style archive to link instead of a shared archive.
10817
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10819
# Commands used to build and install a shared archive.
10820
archive_cmds=$lt_archive_cmds
10821
archive_expsym_cmds=$lt_archive_expsym_cmds
10822
postinstall_cmds=$lt_postinstall_cmds
10823
postuninstall_cmds=$lt_postuninstall_cmds
10825
# Commands used to build a loadable module (assumed same as above if empty)
10826
module_cmds=$lt_module_cmds
10827
module_expsym_cmds=$lt_module_expsym_cmds
10829
# Commands to strip libraries.
10830
old_striplib=$lt_old_striplib
10831
striplib=$lt_striplib
10833
# Dependencies to place before the objects being linked to create a
10835
predep_objects=$lt_predep_objects
10837
# Dependencies to place after the objects being linked to create a
10839
postdep_objects=$lt_postdep_objects
10841
# Dependencies to place before the objects being linked to create a
10843
predeps=$lt_predeps
10845
# Dependencies to place after the objects being linked to create a
10847
postdeps=$lt_postdeps
10849
# The library search path used internally by the compiler when linking
10850
# a shared library.
10851
compiler_lib_search_path=$lt_compiler_lib_search_path
10853
# Method to check whether dependent libraries are shared objects.
10854
deplibs_check_method=$lt_deplibs_check_method
10856
# Command to use when deplibs_check_method == file_magic.
10857
file_magic_cmd=$lt_file_magic_cmd
10859
# Flag that allows shared libraries with undefined symbols to be built.
10860
allow_undefined_flag=$lt_allow_undefined_flag
10862
# Flag that forces no undefined symbols.
10863
no_undefined_flag=$lt_no_undefined_flag
10865
# Commands used to finish a libtool library installation in a directory.
10866
finish_cmds=$lt_finish_cmds
10868
# Same as above, but a single script fragment to be evaled but not shown.
10869
finish_eval=$lt_finish_eval
10871
# Take the output of nm and produce a listing of raw symbols and C names.
10872
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10874
# Transform the output of nm in a proper C declaration
10875
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10877
# Transform the output of nm in a C name address pair
10878
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10880
# This is the shared library runtime path variable.
10881
runpath_var=$runpath_var
10883
# This is the shared library path variable.
10884
shlibpath_var=$shlibpath_var
10886
# Is shlibpath searched before the hard-coded library search path?
10887
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10889
# How to hardcode a shared library path into an executable.
10890
hardcode_action=$hardcode_action
10892
# Whether we should hardcode library paths into libraries.
10893
hardcode_into_libs=$hardcode_into_libs
10895
# Flag to hardcode \$libdir into a binary during linking.
10896
# This must work even if \$libdir does not exist.
10897
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10899
# If ld is used when linking, flag to hardcode \$libdir into
10900
# a binary during linking. This must work even if \$libdir does
10902
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10904
# Whether we need a single -rpath flag with a separated argument.
10905
hardcode_libdir_separator=$lt_hardcode_libdir_separator
10907
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10908
# resulting binary.
10909
hardcode_direct=$hardcode_direct
10911
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10912
# resulting binary.
10913
hardcode_minus_L=$hardcode_minus_L
10915
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10916
# the resulting binary.
10917
hardcode_shlibpath_var=$hardcode_shlibpath_var
10919
# Set to yes if building a shared library automatically hardcodes DIR into the library
10920
# and all subsequent libraries and executables linked against it.
10921
hardcode_automatic=$hardcode_automatic
10923
# Variables whose values should be saved in libtool wrapper scripts and
10924
# restored at relink time.
10925
variables_saved_for_relink="$variables_saved_for_relink"
10927
# Whether libtool must link a program against all its dependency libraries.
10928
link_all_deplibs=$link_all_deplibs
10930
# Compile-time system search path for libraries
10931
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10933
# Run-time system search path for libraries
10934
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10936
# Fix the shell variable \$srcfile for the compiler.
10937
fix_srcfile_path="$fix_srcfile_path"
10939
# Set to yes if exported symbols are required.
10940
always_export_symbols=$always_export_symbols
10942
# The commands to list exported symbols.
10943
export_symbols_cmds=$lt_export_symbols_cmds
10945
# The commands to extract the exported symbol list from a shared archive.
10946
extract_expsyms_cmds=$lt_extract_expsyms_cmds
10948
# Symbols that should not be listed in the preloaded symbols.
10949
exclude_expsyms=$lt_exclude_expsyms
10951
# Symbols that must always be exported.
10952
include_expsyms=$lt_include_expsyms
10954
# ### END LIBTOOL CONFIG
10961
cat <<\EOF >> "$cfgfile"
10963
# AIX sometimes has problems with the GCC collect2 program. For some
10964
# reason, if we set the COLLECT_NAMES environment variable, the problems
10965
# vanish in a puff of smoke.
10966
if test "X${COLLECT_NAMES+set}" != Xset; then
10968
export COLLECT_NAMES
10974
# We use sed instead of cat because bash on DJGPP gets confused if
10975
# if finds mixed CR/LF and LF-only lines. Since sed operates in
10976
# text mode, it properly converts lines to CR/LF. This bash problem
10977
# is reportedly fixed, but why not run on old versions too?
10978
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10980
mv -f "$cfgfile" "$ofile" || \
10981
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10985
# If there is no Makefile yet, we rely on a make rule to execute
10986
# `config.status --recheck' to rerun these tests and create the
10987
# libtool script then.
10988
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10989
if test -f "$ltmain_in"; then
10990
test -f Makefile && make "$ltmain"
10996
ac_cpp='$CPP $CPPFLAGS'
10997
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10998
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10999
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11004
# Check whether --with-tags or --without-tags was given.
11005
if test "${with_tags+set}" = set; then
11006
withval="$with_tags"
11007
tagnames="$withval"
11010
if test -f "$ltmain" && test -n "$tagnames"; then
11011
if test ! -f "${ofile}"; then
11012
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11013
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11016
if test -z "$LTCC"; then
11017
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11018
if test -z "$LTCC"; then
11019
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11020
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11022
{ echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11023
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11027
# Extract list of available tagged configurations in $ofile.
11028
# Note that this assumes the entire list is on one line.
11029
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11031
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11032
for tagname in $tagnames; do
11034
# Check whether tagname contains only valid characters
11035
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11037
*) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11038
echo "$as_me: error: invalid tag name: $tagname" >&2;}
11039
{ (exit 1); exit 1; }; }
11043
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11045
{ { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11046
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11047
{ (exit 1); exit 1; }; }
11050
# Update the list of available tags.
11051
if test -n "$tagname"; then
11052
echo appending configuration tag \"$tagname\" to $ofile
11056
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11057
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11058
(test "X$CXX" != "Xg++"))) ; then
11060
ac_cpp='$CXXCPP $CPPFLAGS'
11061
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11062
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11063
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11068
archive_cmds_need_lc_CXX=no
11069
allow_undefined_flag_CXX=
11070
always_export_symbols_CXX=no
11071
archive_expsym_cmds_CXX=
11072
export_dynamic_flag_spec_CXX=
11073
hardcode_direct_CXX=no
11074
hardcode_libdir_flag_spec_CXX=
11075
hardcode_libdir_flag_spec_ld_CXX=
11076
hardcode_libdir_separator_CXX=
11077
hardcode_minus_L_CXX=no
11078
hardcode_automatic_CXX=no
11080
module_expsym_cmds_CXX=
11081
link_all_deplibs_CXX=unknown
11082
old_archive_cmds_CXX=$old_archive_cmds
11083
no_undefined_flag_CXX=
11084
whole_archive_flag_spec_CXX=
11085
enable_shared_with_static_runtimes_CXX=no
11087
# Dependencies to place before and after the object being linked:
11088
predep_objects_CXX=
11089
postdep_objects_CXX=
11092
compiler_lib_search_path_CXX=
11094
# Source file extension for C++ test sources.
11097
# Object file extension for compiled C++ test sources.
11101
# Code to be used in simple compile tests
11102
lt_simple_compile_test_code="int some_variable = 0;\n"
11104
# Code to be used in simple link tests
11105
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
11107
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11109
# If no C compiler was specified, use CC.
11112
# Allow CC to be a program name with arguments.
11116
# Allow CC to be a program name with arguments.
11121
lt_save_with_gnu_ld=$with_gnu_ld
11122
lt_save_path_LD=$lt_cv_path_LD
11123
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11124
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11126
unset lt_cv_prog_gnu_ld
11128
if test -n "${lt_cv_path_LDCXX+set}"; then
11129
lt_cv_path_LD=$lt_cv_path_LDCXX
11131
unset lt_cv_path_LD
11133
test -z "${LDCXX+set}" || LD=$LDCXX
11137
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11139
# We don't want -fno-exception wen compiling C++ code, so set the
11140
# no_builtin_flag separately
11141
if test "$GXX" = yes; then
11142
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11144
lt_prog_compiler_no_builtin_flag_CXX=
11147
if test "$GXX" = yes; then
11148
# Set up default GNU C++ configuration
11151
# Check whether --with-gnu-ld or --without-gnu-ld was given.
11152
if test "${with_gnu_ld+set}" = set; then
11153
withval="$with_gnu_ld"
11154
test "$withval" = no || with_gnu_ld=yes
11159
if test "$GCC" = yes; then
11160
# Check if gcc -print-prog-name=ld gives a path.
11161
echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11162
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
11165
# gcc leaves a trailing carriage return which upsets mingw
11166
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11168
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11171
# Accept absolute paths.
11173
re_direlt='/[^/][^/]*/\.\./'
11174
# Canonicalize the pathname of ld
11175
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11176
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11177
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11179
test -z "$LD" && LD="$ac_prog"
11182
# If it fails, then pretend we aren't using GCC.
11186
# If it is relative, then search for the first ld in PATH.
11187
with_gnu_ld=unknown
11190
elif test "$with_gnu_ld" = yes; then
11191
echo "$as_me:$LINENO: checking for GNU ld" >&5
11192
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11194
echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11195
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11197
if test "${lt_cv_path_LD+set}" = set; then
11198
echo $ECHO_N "(cached) $ECHO_C" >&6
11200
if test -z "$LD"; then
11201
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11202
for ac_dir in $PATH; do
11204
test -z "$ac_dir" && ac_dir=.
11205
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11206
lt_cv_path_LD="$ac_dir/$ac_prog"
11207
# Check to see if the program is GNU ld. I'd rather use --version,
11208
# but apparently some GNU ld's only accept -v.
11209
# Break only if it was the GNU/non-GNU ld that we prefer.
11210
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11211
*GNU* | *'with BFD'*)
11212
test "$with_gnu_ld" != no && break
11215
test "$with_gnu_ld" != yes && break
11222
lt_cv_path_LD="$LD" # Let the user override the test with a path.
11226
LD="$lt_cv_path_LD"
11227
if test -n "$LD"; then
11228
echo "$as_me:$LINENO: result: $LD" >&5
11229
echo "${ECHO_T}$LD" >&6
11231
echo "$as_me:$LINENO: result: no" >&5
11232
echo "${ECHO_T}no" >&6
11234
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11235
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11236
{ (exit 1); exit 1; }; }
11237
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11238
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11239
if test "${lt_cv_prog_gnu_ld+set}" = set; then
11240
echo $ECHO_N "(cached) $ECHO_C" >&6
11242
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
11243
case `$LD -v 2>&1 </dev/null` in
11244
*GNU* | *'with BFD'*)
11245
lt_cv_prog_gnu_ld=yes
11248
lt_cv_prog_gnu_ld=no
11252
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11253
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
11254
with_gnu_ld=$lt_cv_prog_gnu_ld
11258
# Check if GNU C++ uses GNU ld as the underlying linker, since the
11259
# archiving commands below assume that GNU ld is being used.
11260
if test "$with_gnu_ld" = yes; then
11261
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11262
archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11264
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11265
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11267
# If archive_cmds runs LD, not CC, wlarc should be empty
11268
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11269
# investigate it a little bit more. (MM)
11272
# ancient GNU ld didn't support --whole-archive et. al.
11273
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11274
grep 'no-whole-archive' > /dev/null; then
11275
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11277
whole_archive_flag_spec_CXX=
11283
# A generic and very simple default shared library creation
11284
# command for GNU C++ for the case where it uses the native
11285
# linker, instead of GNU ld. If possible, this setting should
11286
# overridden to take advantage of the native linker features on
11287
# the platform it is being used on.
11288
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11291
# Commands to make compiler produce verbose output that lists
11292
# what "hidden" libraries, object files and flags are used when
11293
# linking a shared library.
11294
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11302
# PORTME: fill in a description of your system's C++ link characteristics
11303
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11304
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11308
# FIXME: insert proper C++ library support
11312
if test "$host_cpu" = ia64; then
11313
# On IA64, the linker does run time linking by default, so we don't
11314
# have to do anything special.
11315
aix_use_runtimelinking=no
11316
exp_sym_flag='-Bexport'
11319
aix_use_runtimelinking=no
11321
# Test if we are trying to use run time linking or normal
11322
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11323
# need to do runtime linking.
11324
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11325
for ld_flag in $LDFLAGS; do
11328
aix_use_runtimelinking=yes
11335
exp_sym_flag='-bexport'
11336
no_entry_flag='-bnoentry'
11339
# When large executables or shared objects are built, AIX ld can
11340
# have problems creating the table of contents. If linking a library
11341
# or program results in "error TOC overflow" add -mminimal-toc to
11342
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11343
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11345
archive_cmds_CXX=''
11346
hardcode_direct_CXX=yes
11347
hardcode_libdir_separator_CXX=':'
11348
link_all_deplibs_CXX=yes
11350
if test "$GXX" = yes; then
11351
case $host_os in aix4.012|aix4.012.*)
11352
# We only want to do this on AIX 4.2 and lower, the check
11353
# below for broken collect2 doesn't work under 4.3+
11354
collect2name=`${CC} -print-prog-name=collect2`
11355
if test -f "$collect2name" && \
11356
strings "$collect2name" | grep resolve_lib_name >/dev/null
11358
# We have reworked collect2
11359
hardcode_direct_CXX=yes
11361
# We have old collect2
11362
hardcode_direct_CXX=unsupported
11363
# It fails to find uninstalled libraries when the uninstalled
11364
# path is not listed in the libpath. Setting hardcode_minus_L
11365
# to unsupported forces relinking
11366
hardcode_minus_L_CXX=yes
11367
hardcode_libdir_flag_spec_CXX='-L$libdir'
11368
hardcode_libdir_separator_CXX=
11371
shared_flag='-shared'
11374
if test "$host_cpu" = ia64; then
11375
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11376
# chokes on -Wl,-G. The following line is correct:
11379
if test "$aix_use_runtimelinking" = yes; then
11380
shared_flag='${wl}-G'
11382
shared_flag='${wl}-bM:SRE'
11387
# It seems that -bexpall does not export symbols beginning with
11388
# underscore (_), so it is better to generate a list of symbols to export.
11389
always_export_symbols_CXX=yes
11390
if test "$aix_use_runtimelinking" = yes; then
11391
# Warning - without using the other runtime loading flags (-brtl),
11392
# -berok will link without error, but may produce a broken library.
11393
allow_undefined_flag_CXX='-berok'
11394
# Determine the default libpath from the value encoded in an empty executable.
11395
cat >conftest.$ac_ext <<_ACEOF
11398
cat confdefs.h >>conftest.$ac_ext
11399
cat >>conftest.$ac_ext <<_ACEOF
11400
/* end confdefs.h. */
11410
rm -f conftest.$ac_objext conftest$ac_exeext
11411
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11412
(eval $ac_link) 2>conftest.er1
11414
grep -v '^ *+' conftest.er1 >conftest.err
11416
cat conftest.err >&5
11417
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11418
(exit $ac_status); } &&
11419
{ ac_try='test -z "$ac_cxx_werror_flag"
11420
|| test ! -s conftest.err'
11421
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11422
(eval $ac_try) 2>&5
11424
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11425
(exit $ac_status); }; } &&
11426
{ ac_try='test -s conftest$ac_exeext'
11427
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11428
(eval $ac_try) 2>&5
11430
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11431
(exit $ac_status); }; }; then
11433
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11435
# Check for a 64-bit object if we didn't find anything.
11436
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11439
echo "$as_me: failed program was:" >&5
11440
sed 's/^/| /' conftest.$ac_ext >&5
11443
rm -f conftest.err conftest.$ac_objext \
11444
conftest$ac_exeext conftest.$ac_ext
11445
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11447
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11449
archive_expsym_cmds_CXX="\$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"
11451
if test "$host_cpu" = ia64; then
11452
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11453
allow_undefined_flag_CXX="-z nodefs"
11454
archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
11456
# Determine the default libpath from the value encoded in an empty executable.
11457
cat >conftest.$ac_ext <<_ACEOF
11460
cat confdefs.h >>conftest.$ac_ext
11461
cat >>conftest.$ac_ext <<_ACEOF
11462
/* end confdefs.h. */
11472
rm -f conftest.$ac_objext conftest$ac_exeext
11473
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11474
(eval $ac_link) 2>conftest.er1
11476
grep -v '^ *+' conftest.er1 >conftest.err
11478
cat conftest.err >&5
11479
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11480
(exit $ac_status); } &&
11481
{ ac_try='test -z "$ac_cxx_werror_flag"
11482
|| test ! -s conftest.err'
11483
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11484
(eval $ac_try) 2>&5
11486
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11487
(exit $ac_status); }; } &&
11488
{ ac_try='test -s conftest$ac_exeext'
11489
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11490
(eval $ac_try) 2>&5
11492
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11493
(exit $ac_status); }; }; then
11495
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11497
# Check for a 64-bit object if we didn't find anything.
11498
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11501
echo "$as_me: failed program was:" >&5
11502
sed 's/^/| /' conftest.$ac_ext >&5
11505
rm -f conftest.err conftest.$ac_objext \
11506
conftest$ac_exeext conftest.$ac_ext
11507
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11509
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11510
# Warning - without using the other run time loading flags,
11511
# -berok will link without error, but may produce a broken library.
11512
no_undefined_flag_CXX=' ${wl}-bernotok'
11513
allow_undefined_flag_CXX=' ${wl}-berok'
11514
# -bexpall does not export symbols beginning with underscore (_)
11515
always_export_symbols_CXX=yes
11516
# Exported symbols can be pulled into shared objects from archives
11517
whole_archive_flag_spec_CXX=' '
11518
archive_cmds_need_lc_CXX=yes
11519
# This is similar to how AIX traditionally builds it's shared libraries.
11520
archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11525
case $cc_basename in
11527
# FIXME: insert proper C++ library support
11534
cygwin* | mingw* | pw32*)
11535
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11536
# as there is no search path for DLLs.
11537
hardcode_libdir_flag_spec_CXX='-L$libdir'
11538
allow_undefined_flag_CXX=unsupported
11539
always_export_symbols_CXX=no
11540
enable_shared_with_static_runtimes_CXX=yes
11542
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11543
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
11544
# If the export-symbols file already is a .def file (1st line
11545
# is EXPORTS), use it as is; otherwise, prepend...
11546
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11547
cp $export_symbols $output_objdir/$soname.def;
11549
echo EXPORTS > $output_objdir/$soname.def;
11550
cat $export_symbols >> $output_objdir/$soname.def;
11552
$CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
11557
darwin* | rhapsody*)
11559
rhapsody* | darwin1.[012])
11560
allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11563
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11564
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11566
case ${MACOSX_DEPLOYMENT_TARGET} in
11568
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11571
allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11577
archive_cmds_need_lc_CXX=no
11578
hardcode_direct_CXX=no
11579
hardcode_automatic_CXX=yes
11580
hardcode_shlibpath_var_CXX=unsupported
11581
whole_archive_flag_spec_CXX=''
11582
link_all_deplibs_CXX=yes
11584
if test "$GXX" = yes ; then
11585
lt_int_apple_cc_single_mod=no
11586
output_verbose_link_cmd='echo'
11587
if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11588
lt_int_apple_cc_single_mod=yes
11590
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11591
archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11593
archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11595
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11596
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
11597
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11598
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11600
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11602
module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11604
case "$cc_basename" in
11606
output_verbose_link_cmd='echo'
11607
archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11608
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11609
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
11610
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11611
module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11621
case $cc_basename in
11623
# FIXME: insert proper C++ library support
11627
# Green Hills C++ Compiler
11628
# FIXME: insert proper C++ library support
11632
# FIXME: insert proper C++ library support
11638
# C++ shared libraries reported to be fairly broken before switch to ELF
11642
archive_cmds_need_lc_CXX=no
11644
freebsd* | kfreebsd*-gnu)
11645
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11652
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11653
hardcode_libdir_separator_CXX=:
11654
export_dynamic_flag_spec_CXX='${wl}-E'
11655
hardcode_direct_CXX=yes
11656
hardcode_minus_L_CXX=yes # Not in the search PATH,
11657
# but as the default
11658
# location of the library.
11660
case $cc_basename in
11662
# FIXME: insert proper C++ library support
11666
archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11667
# Commands to make compiler produce verbose output that lists
11668
# what "hidden" libraries, object files and flags are used when
11669
# linking a shared library.
11671
# There doesn't appear to be a way to prevent this compiler from
11672
# explicitly linking system object files so we need to strip them
11673
# from the output so that they don't get included in the library
11675
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11678
if test "$GXX" = yes; then
11679
archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11681
# FIXME: insert proper C++ library support
11688
if test $with_gnu_ld = no; then
11689
case "$host_cpu" in
11691
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11692
hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11693
hardcode_libdir_separator_CXX=:
11696
hardcode_libdir_flag_spec_CXX='-L$libdir'
11699
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11700
hardcode_libdir_separator_CXX=:
11701
export_dynamic_flag_spec_CXX='${wl}-E'
11705
case "$host_cpu" in
11707
hardcode_direct_CXX=no
11708
hardcode_shlibpath_var_CXX=no
11711
hardcode_direct_CXX=no
11712
hardcode_shlibpath_var_CXX=no
11713
hardcode_minus_L_CXX=yes # Not in the search PATH,
11714
# but as the default
11715
# location of the library.
11718
hardcode_direct_CXX=yes
11719
hardcode_minus_L_CXX=yes # Not in the search PATH,
11720
# but as the default
11721
# location of the library.
11725
case $cc_basename in
11727
# FIXME: insert proper C++ library support
11731
case "$host_cpu" in
11733
archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11736
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11739
# Commands to make compiler produce verbose output that lists
11740
# what "hidden" libraries, object files and flags are used when
11741
# linking a shared library.
11743
# There doesn't appear to be a way to prevent this compiler from
11744
# explicitly linking system object files so we need to strip them
11745
# from the output so that they don't get included in the library
11747
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11750
if test "$GXX" = yes; then
11751
if test $with_gnu_ld = no; then
11752
case "$host_cpu" in
11754
archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11757
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11762
# FIXME: insert proper C++ library support
11769
case $cc_basename in
11772
archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
11774
# Archives containing C++ object files must be created using
11775
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
11776
# necessary to make sure instantiated templates are included
11778
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11781
if test "$GXX" = yes; then
11782
if test "$with_gnu_ld" = no; then
11783
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
11785
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
11788
link_all_deplibs_CXX=yes
11791
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11792
hardcode_libdir_separator_CXX=:
11795
case $cc_basename in
11797
# Kuck and Associates, Inc. (KAI) C++ Compiler
11799
# KCC will only create a shared library if the output file
11800
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11801
# to its proper name (with version) after linking.
11802
archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11803
archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
11804
# Commands to make compiler produce verbose output that lists
11805
# what "hidden" libraries, object files and flags are used when
11806
# linking a shared library.
11808
# There doesn't appear to be a way to prevent this compiler from
11809
# explicitly linking system object files so we need to strip them
11810
# from the output so that they don't get included in the library
11812
output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11814
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11815
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11817
# Archives containing C++ object files must be created using
11818
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11819
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11824
# version 8.0 and above of icpc choke on multiply defined symbols
11825
# if we add $predep_objects and $postdep_objects, however 7.1 and
11826
# earlier do not add the objects themselves.
11827
case `$CC -V 2>&1` in
11829
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11830
archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11832
*) # Version 8.0 or newer
11833
archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11834
archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11837
archive_cmds_need_lc_CXX=no
11838
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11839
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11840
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11844
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11845
archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
11847
runpath_var=LD_RUN_PATH
11848
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11849
hardcode_libdir_separator_CXX=:
11851
# Commands to make compiler produce verbose output that lists
11852
# what "hidden" libraries, object files and flags are used when
11853
# linking a shared library.
11855
# There doesn't appear to be a way to prevent this compiler from
11856
# explicitly linking system object files so we need to strip them
11857
# from the output so that they don't get included in the library
11859
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11864
# FIXME: insert proper C++ library support
11868
# FIXME: insert proper C++ library support
11872
case $cc_basename in
11874
# FIXME: insert proper C++ library support
11878
# FIXME: insert proper C++ library support
11884
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11885
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11887
hardcode_libdir_flag_spec_CXX='-R$libdir'
11888
hardcode_direct_CXX=yes
11889
hardcode_shlibpath_var_CXX=no
11891
# Workaround some broken pre-1.5 toolchains
11892
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11895
# C++ shared libraries are fairly broken
11899
hardcode_direct_CXX=yes
11900
hardcode_shlibpath_var_CXX=no
11901
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11902
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11903
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11904
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11905
export_dynamic_flag_spec_CXX='${wl}-E'
11906
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11908
output_verbose_link_cmd='echo'
11911
case $cc_basename in
11913
# Kuck and Associates, Inc. (KAI) C++ Compiler
11915
# KCC will only create a shared library if the output file
11916
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11917
# to its proper name (with version) after linking.
11918
archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11920
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11921
hardcode_libdir_separator_CXX=:
11923
# Archives containing C++ object files must be created using
11924
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11925
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11929
# Rational C++ 2.4.1
11930
# FIXME: insert proper C++ library support
11934
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11935
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
11937
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11938
hardcode_libdir_separator_CXX=:
11940
# Commands to make compiler produce verbose output that lists
11941
# what "hidden" libraries, object files and flags are used when
11942
# linking a shared library.
11944
# There doesn't appear to be a way to prevent this compiler from
11945
# explicitly linking system object files so we need to strip them
11946
# from the output so that they don't get included in the library
11948
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11951
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11952
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11953
archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
11955
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11956
hardcode_libdir_separator_CXX=:
11958
# Commands to make compiler produce verbose output that lists
11959
# what "hidden" libraries, object files and flags are used when
11960
# linking a shared library.
11961
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11964
# FIXME: insert proper C++ library support
11971
case $cc_basename in
11973
# Kuck and Associates, Inc. (KAI) C++ Compiler
11975
# KCC will only create a shared library if the output file
11976
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11977
# to its proper name (with version) after linking.
11978
archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11980
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11981
hardcode_libdir_separator_CXX=:
11983
# Archives containing C++ object files must be created using
11984
# the KAI C++ compiler.
11985
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11988
# Rational C++ 2.4.1
11989
# FIXME: insert proper C++ library support
11993
allow_undefined_flag_CXX=' -expect_unresolved \*'
11994
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
11995
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11996
echo "-hidden">> $lib.exp~
11997
$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
12000
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12001
hardcode_libdir_separator_CXX=:
12003
# Commands to make compiler produce verbose output that lists
12004
# what "hidden" libraries, object files and flags are used when
12005
# linking a shared library.
12007
# There doesn't appear to be a way to prevent this compiler from
12008
# explicitly linking system object files so we need to strip them
12009
# from the output so that they don't get included in the library
12011
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12014
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12015
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12016
archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
12018
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12019
hardcode_libdir_separator_CXX=:
12021
# Commands to make compiler produce verbose output that lists
12022
# what "hidden" libraries, object files and flags are used when
12023
# linking a shared library.
12024
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12027
# FIXME: insert proper C++ library support
12034
# FIXME: insert proper C++ library support
12038
archive_cmds_need_lc_CXX=no
12039
case $cc_basename in
12041
# FIXME: insert proper C++ library support
12045
# FIXME: insert proper C++ library support
12051
case $cc_basename in
12054
# FIXME: insert proper C++ library support
12059
# FIXME: insert proper C++ library support
12063
# FIXME: insert proper C++ library support
12069
case $cc_basename in
12071
# Sun C++ 4.2, 5.x and Centerline C++
12072
no_undefined_flag_CXX=' -zdefs'
12073
archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12074
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12075
$CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12077
hardcode_libdir_flag_spec_CXX='-R$libdir'
12078
hardcode_shlibpath_var_CXX=no
12080
solaris2.0-5 | solaris2.0-5.*) ;;
12082
# The C++ compiler is used as linker so we must use $wl
12083
# flag to pass the commands to the underlying system
12085
# Supported since Solaris 2.6 (maybe 2.5.1?)
12086
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12089
link_all_deplibs_CXX=yes
12091
# Commands to make compiler produce verbose output that lists
12092
# what "hidden" libraries, object files and flags are used when
12093
# linking a shared library.
12095
# There doesn't appear to be a way to prevent this compiler from
12096
# explicitly linking system object files so we need to strip them
12097
# from the output so that they don't get included in the library
12099
output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12101
# Archives containing C++ object files must be created using
12102
# "CC -xar", where "CC" is the Sun C++ compiler. This is
12103
# necessary to make sure instantiated templates are included
12105
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12108
# Green Hills C++ Compiler
12109
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12111
# The C++ compiler must be used to create the archive.
12112
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12115
# GNU C++ compiler with Solaris linker
12116
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12117
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12118
if $CC --version | grep -v '^2\.7' > /dev/null; then
12119
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12120
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12121
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12123
# Commands to make compiler produce verbose output that lists
12124
# what "hidden" libraries, object files and flags are used when
12125
# linking a shared library.
12126
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12128
# g++ 2.7 appears to require `-G' NOT `-shared' on this
12130
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12131
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12132
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12134
# Commands to make compiler produce verbose output that lists
12135
# what "hidden" libraries, object files and flags are used when
12136
# linking a shared library.
12137
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12140
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12145
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12146
archive_cmds_need_lc_CXX=no
12149
case $cc_basename in
12151
# NonStop-UX NCC 3.20
12152
# FIXME: insert proper C++ library support
12156
# FIXME: insert proper C++ library support
12162
# FIXME: insert proper C++ library support
12166
# FIXME: insert proper C++ library support
12170
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12171
echo "${ECHO_T}$ld_shlibs_CXX" >&6
12172
test "$ld_shlibs_CXX" = no && can_build_shared=no
12178
## There is no encapsulation within the following macros, do not change
12179
## the running order or otherwise move them around unless you know exactly
12180
## what you are doing...
12182
cat > conftest.$ac_ext <<EOF
12186
Foo (void) { a = 0; }
12192
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12193
(eval $ac_compile) 2>&5
12195
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12196
(exit $ac_status); }; then
12197
# Parse the compiler output and extract the necessary
12198
# objects, libraries and library flags.
12200
# Sentinel used to keep track of whether or not we are before
12201
# the conftest object file.
12202
pre_test_object_deps_done=no
12204
# The `*' in the case matches for architectures that use `case' in
12205
# $output_verbose_cmd can trigger glob expansion during the loop
12206
# eval without this substitution.
12207
output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
12209
for p in `eval $output_verbose_link_cmd`; do
12213
# Some compilers place space between "-{L,R}" and the path.
12214
# Remove the space.
12215
if test $p = "-L" \
12216
|| test $p = "-R"; then
12223
if test "$pre_test_object_deps_done" = no; then
12226
# Internal compiler library paths should come after those
12227
# provided the user. The postdeps already come after the
12228
# user supplied libs so there is no need to process them.
12229
if test -z "$compiler_lib_search_path_CXX"; then
12230
compiler_lib_search_path_CXX="${prev}${p}"
12232
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12235
# The "-l" case would never come before the object being
12236
# linked, so don't bother handling this case.
12239
if test -z "$postdeps_CXX"; then
12240
postdeps_CXX="${prev}${p}"
12242
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12248
# This assumes that the test object file only shows up
12249
# once in the compiler output.
12250
if test "$p" = "conftest.$objext"; then
12251
pre_test_object_deps_done=yes
12255
if test "$pre_test_object_deps_done" = no; then
12256
if test -z "$predep_objects_CXX"; then
12257
predep_objects_CXX="$p"
12259
predep_objects_CXX="$predep_objects_CXX $p"
12262
if test -z "$postdep_objects_CXX"; then
12263
postdep_objects_CXX="$p"
12265
postdep_objects_CXX="$postdep_objects_CXX $p"
12270
*) ;; # Ignore the rest.
12278
echo "libtool.m4: error: problem compiling CXX test program"
12281
$rm -f confest.$objext
12283
case " $postdeps_CXX " in
12284
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12287
lt_prog_compiler_wl_CXX=
12288
lt_prog_compiler_pic_CXX=
12289
lt_prog_compiler_static_CXX=
12291
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12292
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12294
# C++ specific cases for pic, static, wl, etc.
12295
if test "$GXX" = yes; then
12296
lt_prog_compiler_wl_CXX='-Wl,'
12297
lt_prog_compiler_static_CXX='-static'
12301
# All AIX code is PIC.
12302
if test "$host_cpu" = ia64; then
12303
# AIX 5 now supports IA64 processor
12304
lt_prog_compiler_static_CXX='-Bstatic'
12308
# FIXME: we need at least 68020 code to build shared libraries, but
12309
# adding the `-m68020' flag to GCC prevents building anything better,
12311
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12313
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12314
# PIC is the default for these OSes.
12316
mingw* | os2* | pw32*)
12317
# This hack is so that the source file can tell whether it is being
12318
# built for inclusion in a dll (and should export symbols for example).
12319
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12321
darwin* | rhapsody*)
12322
# PIC is the default on this platform
12323
# Common symbols not allowed in MH_DYLIB files
12324
lt_prog_compiler_pic_CXX='-fno-common'
12327
# DJGPP does not support shared libraries at all
12328
lt_prog_compiler_pic_CXX=
12331
if test -d /usr/nec; then
12332
lt_prog_compiler_pic_CXX=-Kconform_pic
12336
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12337
# not for PA HP-UX.
12338
case "$host_cpu" in
12342
lt_prog_compiler_pic_CXX='-fPIC'
12347
lt_prog_compiler_pic_CXX='-fPIC'
12353
# All AIX code is PIC.
12354
if test "$host_cpu" = ia64; then
12355
# AIX 5 now supports IA64 processor
12356
lt_prog_compiler_static_CXX='-Bstatic'
12358
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12362
case $cc_basename in
12364
# Green Hills C++ Compiler
12365
# _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
12370
# PIC is the default on this platform
12371
# Common symbols not allowed in MH_DYLIB files
12372
case "$cc_basename" in
12374
lt_prog_compiler_pic_CXX='-qnocommon'
12375
lt_prog_compiler_wl_CXX='-Wl,'
12380
case $cc_basename in
12382
lt_prog_compiler_pic_CXX='-KPIC'
12385
# Green Hills C++ Compiler
12386
lt_prog_compiler_pic_CXX='-pic'
12392
freebsd* | kfreebsd*-gnu)
12393
# FreeBSD uses GNU C++
12395
hpux9* | hpux10* | hpux11*)
12396
case $cc_basename in
12398
lt_prog_compiler_wl_CXX='-Wl,'
12399
lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12400
if test "$host_cpu" != ia64; then
12401
lt_prog_compiler_pic_CXX='+Z'
12405
lt_prog_compiler_wl_CXX='-Wl,'
12406
lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12407
case "$host_cpu" in
12412
lt_prog_compiler_pic_CXX='+Z'
12420
irix5* | irix6* | nonstopux*)
12421
case $cc_basename in
12423
lt_prog_compiler_wl_CXX='-Wl,'
12424
lt_prog_compiler_static_CXX='-non_shared'
12425
# CC pic flag -KPIC is the default.
12432
case $cc_basename in
12435
lt_prog_compiler_wl_CXX='--backend -Wl,'
12436
lt_prog_compiler_pic_CXX='-fPIC'
12440
lt_prog_compiler_wl_CXX='-Wl,'
12441
lt_prog_compiler_pic_CXX='-KPIC'
12442
lt_prog_compiler_static_CXX='-static'
12446
# Make sure the PIC flag is empty. It appears that all Alpha
12447
# Linux and Compaq Tru64 Unix objects are PIC.
12448
lt_prog_compiler_pic_CXX=
12449
lt_prog_compiler_static_CXX='-non_shared'
12460
case $cc_basename in
12462
lt_prog_compiler_pic_CXX='-W c,exportall'
12470
osf3* | osf4* | osf5*)
12471
case $cc_basename in
12473
lt_prog_compiler_wl_CXX='--backend -Wl,'
12476
# Rational C++ 2.4.1
12477
lt_prog_compiler_pic_CXX='-pic'
12480
# Digital/Compaq C++
12481
lt_prog_compiler_wl_CXX='-Wl,'
12482
# Make sure the PIC flag is empty. It appears that all Alpha
12483
# Linux and Compaq Tru64 Unix objects are PIC.
12484
lt_prog_compiler_pic_CXX=
12485
lt_prog_compiler_static_CXX='-non_shared'
12494
case $cc_basename in
12496
lt_prog_compiler_pic_CXX='-fPIC'
12503
case $cc_basename in
12505
# Sun C++ 4.2, 5.x and Centerline C++
12506
lt_prog_compiler_pic_CXX='-KPIC'
12507
lt_prog_compiler_static_CXX='-Bstatic'
12508
lt_prog_compiler_wl_CXX='-Qoption ld '
12511
# Green Hills C++ Compiler
12512
lt_prog_compiler_pic_CXX='-PIC'
12519
case $cc_basename in
12522
lt_prog_compiler_pic_CXX='-pic'
12523
lt_prog_compiler_static_CXX='-Bstatic'
12527
lt_prog_compiler_pic_CXX='-pic'
12534
case $cc_basename in
12536
# NonStop-UX NCC 3.20
12537
lt_prog_compiler_pic_CXX='-KPIC'
12548
lt_prog_compiler_can_build_shared_CXX=no
12553
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12554
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
12557
# Check to make sure the PIC flag actually works.
12559
if test -n "$lt_prog_compiler_pic_CXX"; then
12561
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12562
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
12563
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12564
echo $ECHO_N "(cached) $ECHO_C" >&6
12566
lt_prog_compiler_pic_works_CXX=no
12567
ac_outfile=conftest.$ac_objext
12568
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12569
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12570
# Insert the option either (1) after the last *FLAGS variable, or
12571
# (2) before a word containing "conftest.", or (3) at the end.
12572
# Note that $ac_compile itself does not contain backslashes and begins
12573
# with a dollar sign (not a hyphen), so the echo should work correctly.
12574
# The option is referenced via a variable to avoid confusing sed.
12575
lt_compile=`echo "$ac_compile" | $SED \
12576
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12577
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12578
-e 's:$: $lt_compiler_flag:'`
12579
(eval echo "\"\$as_me:12579: $lt_compile\"" >&5)
12580
(eval "$lt_compile" 2>conftest.err)
12582
cat conftest.err >&5
12583
echo "$as_me:12583: \$? = $ac_status" >&5
12584
if (exit $ac_status) && test -s "$ac_outfile"; then
12585
# The compiler can only warn and ignore the option if not recognized
12586
# So say no if there are warnings
12587
if test ! -s conftest.err; then
12588
lt_prog_compiler_pic_works_CXX=yes
12594
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12595
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
12597
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12598
case $lt_prog_compiler_pic_CXX in
12600
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12603
lt_prog_compiler_pic_CXX=
12604
lt_prog_compiler_can_build_shared_CXX=no
12609
# For platforms which do not support PIC, -DPIC is meaningless:
12611
lt_prog_compiler_pic_CXX=
12614
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12618
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12619
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12620
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12621
echo $ECHO_N "(cached) $ECHO_C" >&6
12623
lt_cv_prog_compiler_c_o_CXX=no
12624
$rm -r conftest 2>/dev/null
12628
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12630
lt_compiler_flag="-o out/conftest2.$ac_objext"
12631
# Insert the option either (1) after the last *FLAGS variable, or
12632
# (2) before a word containing "conftest.", or (3) at the end.
12633
# Note that $ac_compile itself does not contain backslashes and begins
12634
# with a dollar sign (not a hyphen), so the echo should work correctly.
12635
lt_compile=`echo "$ac_compile" | $SED \
12636
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12637
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12638
-e 's:$: $lt_compiler_flag:'`
12639
(eval echo "\"\$as_me:12639: $lt_compile\"" >&5)
12640
(eval "$lt_compile" 2>out/conftest.err)
12642
cat out/conftest.err >&5
12643
echo "$as_me:12643: \$? = $ac_status" >&5
12644
if (exit $ac_status) && test -s out/conftest2.$ac_objext
12646
# The compiler can only warn and ignore the option if not recognized
12647
# So say no if there are warnings
12648
if test ! -s out/conftest.err; then
12649
lt_cv_prog_compiler_c_o_CXX=yes
12654
# SGI C++ compiler will create directory out/ii_files/ for
12655
# template instantiation
12656
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12657
$rm out/* && rmdir out
12663
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12664
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
12667
hard_links="nottested"
12668
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12669
# do not overwrite the value of need_locks provided by the user
12670
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12671
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12674
ln conftest.a conftest.b 2>/dev/null && hard_links=no
12676
ln conftest.a conftest.b 2>&5 || hard_links=no
12677
ln conftest.a conftest.b 2>/dev/null && hard_links=no
12678
echo "$as_me:$LINENO: result: $hard_links" >&5
12679
echo "${ECHO_T}$hard_links" >&6
12680
if test "$hard_links" = no; then
12681
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12682
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12689
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12690
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12692
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12695
# If we're using GNU nm, then we don't want the "-C" option.
12696
# -C means demangle to AIX nm, but means don't demangle with GNU nm
12697
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12698
export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12700
export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12704
export_symbols_cmds_CXX="$ltdll_cmds"
12707
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12710
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12714
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12715
echo "${ECHO_T}$ld_shlibs_CXX" >&6
12716
test "$ld_shlibs_CXX" = no && can_build_shared=no
12718
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12719
if test "$GCC" = yes; then
12720
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12724
# Do we need to explicitly link libc?
12726
case "x$archive_cmds_need_lc_CXX" in
12728
# Assume -lc should be added
12729
archive_cmds_need_lc_CXX=yes
12731
if test "$enable_shared" = yes && test "$GCC" = yes; then
12732
case $archive_cmds_CXX in
12734
# FIXME: we may have to deal with multi-command sequences.
12737
# Test whether the compiler implicitly links with -lc since on some
12738
# systems, -lgcc has to come before -lc. If gcc already passes -lc
12739
# to ld, don't add -lc before -lgcc.
12740
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12741
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12743
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12745
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12746
(eval $ac_compile) 2>&5
12748
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12749
(exit $ac_status); } 2>conftest.err; then
12752
libobjs=conftest.$ac_objext
12754
wl=$lt_prog_compiler_wl_CXX
12760
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12761
allow_undefined_flag_CXX=
12762
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12763
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12765
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12766
(exit $ac_status); }
12768
archive_cmds_need_lc_CXX=no
12770
archive_cmds_need_lc_CXX=yes
12772
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12774
cat conftest.err 1>&5
12777
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12778
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12785
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12786
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12787
library_names_spec=
12788
libname_spec='lib$name'
12792
postuninstall_cmds=
12796
shlibpath_overrides_runpath=unknown
12798
dynamic_linker="$host_os ld.so"
12799
sys_lib_dlsearch_path_spec="/lib /usr/lib"
12800
if test "$GCC" = yes; then
12801
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12802
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12803
# if the path contains ";" then we assume it to be the separator
12804
# otherwise default to the standard path separator (i.e. ":") - it is
12805
# assumed that no part of a normal pathname contains ";" but that should
12806
# okay in the real world where ";" in dirpaths is itself problematic.
12807
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12809
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12812
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12814
need_lib_prefix=unknown
12815
hardcode_into_libs=no
12817
# when you set need_version to no, make sure it does not cause -set_version
12818
# flags to be left without arguments
12819
need_version=unknown
12824
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12825
shlibpath_var=LIBPATH
12827
# AIX 3 has no versioning support, so we append a major version to the name.
12828
soname_spec='${libname}${release}${shared_ext}$major'
12835
hardcode_into_libs=yes
12836
if test "$host_cpu" = ia64; then
12837
# AIX 5 supports IA64
12838
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12839
shlibpath_var=LD_LIBRARY_PATH
12841
# With GCC up to 2.95.x, collect2 would create an import file
12842
# for dependence libraries. The import file would start with
12843
# the line `#! .'. This would cause the generated library to
12844
# depend on `.', always an invalid library. This was fixed in
12845
# development snapshots of GCC prior to 3.0.
12847
aix4 | aix4.[01] | aix4.[01].*)
12848
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12850
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12853
can_build_shared=no
12857
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12858
# soname into executable. Probably we can add versioning support to
12859
# collect2, so additional links can be useful in future.
12860
if test "$aix_use_runtimelinking" = yes; then
12861
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
12862
# instead of lib<name>.a to let people know that these are not
12863
# typical AIX shared libraries.
12864
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12866
# We preserve .a as extension for shared libraries through AIX4.2
12867
# and later when we are not doing run time linking.
12868
library_names_spec='${libname}${release}.a $libname.a'
12869
soname_spec='${libname}${release}${shared_ext}$major'
12871
shlibpath_var=LIBPATH
12876
library_names_spec='$libname.ixlibrary $libname.a'
12877
# Create ${libname}_ixlibrary.a entries in /sys/libs.
12878
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'
12882
library_names_spec='${libname}${shared_ext}'
12883
dynamic_linker="$host_os ld.so"
12884
shlibpath_var=LIBRARY_PATH
12890
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12891
soname_spec='${libname}${release}${shared_ext}$major'
12892
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12893
shlibpath_var=LD_LIBRARY_PATH
12894
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12895
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12896
# the default ld.so.conf also contains /usr/contrib/lib and
12897
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12898
# libtool to hard-code these into programs
12901
cygwin* | mingw* | pw32*)
12902
version_type=windows
12907
case $GCC,$host_os in
12908
yes,cygwin* | yes,mingw* | yes,pw32*)
12909
library_names_spec='$libname.dll.a'
12910
# DLL is installed to $(libdir)/../bin by postinstall_cmds
12911
postinstall_cmds='base_file=`basename \${file}`~
12912
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12913
dldir=$destdir/`dirname \$dlpath`~
12914
test -d \$dldir || mkdir -p \$dldir~
12915
$install_prog $dir/$dlname \$dldir/$dlname'
12916
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12917
dlpath=$dir/\$dldll~
12919
shlibpath_overrides_runpath=yes
12923
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
12924
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12925
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12928
# MinGW DLLs use traditional 'lib' prefix
12929
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12930
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12931
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12932
# It is most probably a Windows format PATH printed by
12933
# mingw gcc, but we are running on Cygwin. Gcc prints its search
12934
# path with ; separators, and with drive letters. We can handle the
12935
# drive letters (cygwin fileutils understands them), so leave them,
12936
# especially as we might pass files found there to a mingw objdump,
12937
# which wouldn't understand a cygwinified path. Ahh.
12938
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12940
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12944
# pw32 DLLs use 'pw' prefix rather than 'lib'
12945
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
12951
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12954
dynamic_linker='Win32 ld.exe'
12955
# FIXME: first we should search . and the directory the executable is in
12959
darwin* | rhapsody*)
12960
dynamic_linker="$host_os dyld"
12961
version_type=darwin
12964
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12965
soname_spec='${libname}${release}${major}$shared_ext'
12966
shlibpath_overrides_runpath=yes
12967
shlibpath_var=DYLD_LIBRARY_PATH
12968
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
12969
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12970
if test "$GCC" = yes; then
12971
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12973
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12975
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12982
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12983
soname_spec='${libname}${release}${shared_ext}$major'
12984
shlibpath_var=LD_LIBRARY_PATH
12995
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12996
soname_spec='${libname}${release}${shared_ext}$major'
12997
shlibpath_var=LD_LIBRARY_PATH
12998
shlibpath_overrides_runpath=no
12999
hardcode_into_libs=yes
13000
dynamic_linker='GNU ld.so'
13004
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13005
version_type=freebsd-$objformat
13006
case $version_type in
13008
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13013
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13017
shlibpath_var=LD_LIBRARY_PATH
13020
shlibpath_overrides_runpath=yes
13022
freebsd3.01* | freebsdelf3.01*)
13023
shlibpath_overrides_runpath=yes
13024
hardcode_into_libs=yes
13027
shlibpath_overrides_runpath=no
13028
hardcode_into_libs=yes
13037
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13038
soname_spec='${libname}${release}${shared_ext}$major'
13039
shlibpath_var=LD_LIBRARY_PATH
13040
hardcode_into_libs=yes
13043
hpux9* | hpux10* | hpux11*)
13044
# Give a soname corresponding to the major version so that dld.sl refuses to
13045
# link against other versions.
13049
case "$host_cpu" in
13052
hardcode_into_libs=yes
13053
dynamic_linker="$host_os dld.so"
13054
shlibpath_var=LD_LIBRARY_PATH
13055
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13056
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13057
soname_spec='${libname}${release}${shared_ext}$major'
13058
if test "X$HPUX_IA64_MODE" = X32; then
13059
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13061
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13063
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13067
hardcode_into_libs=yes
13068
dynamic_linker="$host_os dld.sl"
13069
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13070
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13071
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13072
soname_spec='${libname}${release}${shared_ext}$major'
13073
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13074
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13078
dynamic_linker="$host_os dld.sl"
13079
shlibpath_var=SHLIB_PATH
13080
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13081
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13082
soname_spec='${libname}${release}${shared_ext}$major'
13085
# HP-UX runs *really* slowly unless shared libraries are mode 555.
13086
postinstall_cmds='chmod 555 $lib'
13089
irix5* | irix6* | nonstopux*)
13091
nonstopux*) version_type=nonstopux ;;
13093
if test "$lt_cv_prog_gnu_ld" = yes; then
13101
soname_spec='${libname}${release}${shared_ext}$major'
13102
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13104
irix5* | nonstopux*)
13105
libsuff= shlibsuff=
13108
case $LD in # libtool.m4 will add one of these switches to LD
13109
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13110
libsuff= shlibsuff= libmagic=32-bit;;
13111
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13112
libsuff=32 shlibsuff=N32 libmagic=N32;;
13113
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13114
libsuff=64 shlibsuff=64 libmagic=64-bit;;
13115
*) libsuff= shlibsuff= libmagic=never-match;;
13119
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13120
shlibpath_overrides_runpath=no
13121
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13122
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13123
hardcode_into_libs=yes
13126
# No shared lib support for Linux oldld, aout, or coff.
13127
linux*oldld* | linux*aout* | linux*coff*)
13131
# This must be Linux ELF.
13136
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13137
soname_spec='${libname}${release}${shared_ext}$major'
13138
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13139
shlibpath_var=LD_LIBRARY_PATH
13140
shlibpath_overrides_runpath=no
13141
# This implies no fast_install, which is unacceptable.
13142
# Some rework will be needed to allow for fast_install
13143
# before this can be enabled.
13144
hardcode_into_libs=yes
13146
# Append ld.so.conf contents to the search path
13147
if test -f /etc/ld.so.conf; then
13148
lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13149
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13152
# We used to test for /lib/ld.so.1 and disable shared libraries on
13153
# powerpc, because MkLinux only supported shared libraries with the
13154
# GNU dynamic linker. Since this was broken with cross compilers,
13155
# most powerpc-linux boxes support dynamic linking these days and
13156
# people can always --disable-shared, the test was removed, and we
13157
# assume the GNU/Linux dynamic linker is in use.
13158
dynamic_linker='GNU/Linux ld.so'
13165
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13166
soname_spec='${libname}${release}${shared_ext}$major'
13167
shlibpath_var=LD_LIBRARY_PATH
13168
shlibpath_overrides_runpath=no
13169
hardcode_into_libs=yes
13170
dynamic_linker='GNU ld.so'
13177
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13178
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13179
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13180
dynamic_linker='NetBSD (a.out) ld.so'
13182
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13183
soname_spec='${libname}${release}${shared_ext}$major'
13184
dynamic_linker='NetBSD ld.elf_so'
13186
shlibpath_var=LD_LIBRARY_PATH
13187
shlibpath_overrides_runpath=yes
13188
hardcode_into_libs=yes
13193
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13194
shlibpath_var=LD_LIBRARY_PATH
13195
shlibpath_overrides_runpath=yes
13202
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13203
soname_spec='${libname}${release}${shared_ext}$major'
13204
shlibpath_var=LD_LIBRARY_PATH
13205
shlibpath_overrides_runpath=yes
13212
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13213
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13214
shlibpath_var=LD_LIBRARY_PATH
13215
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13217
openbsd2.[89] | openbsd2.[89].*)
13218
shlibpath_overrides_runpath=no
13221
shlibpath_overrides_runpath=yes
13225
shlibpath_overrides_runpath=yes
13230
libname_spec='$name'
13233
library_names_spec='$libname${shared_ext} $libname.a'
13234
dynamic_linker='OS/2 ld.exe'
13235
shlibpath_var=LIBPATH
13238
osf3* | osf4* | osf5*)
13242
soname_spec='${libname}${release}${shared_ext}$major'
13243
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13244
shlibpath_var=LD_LIBRARY_PATH
13245
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13246
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13251
soname_spec='${libname}${release}${shared_ext}$major'
13252
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13253
shlibpath_var=LD_LIBRARY_PATH
13260
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13261
soname_spec='${libname}${release}${shared_ext}$major'
13262
shlibpath_var=LD_LIBRARY_PATH
13263
shlibpath_overrides_runpath=yes
13264
hardcode_into_libs=yes
13265
# ldd complains unless libraries are executable
13266
postinstall_cmds='chmod +x $lib'
13271
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13272
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13273
shlibpath_var=LD_LIBRARY_PATH
13274
shlibpath_overrides_runpath=yes
13275
if test "$with_gnu_ld" = yes; then
13281
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13283
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13284
soname_spec='${libname}${release}${shared_ext}$major'
13285
shlibpath_var=LD_LIBRARY_PATH
13286
case $host_vendor in
13288
shlibpath_overrides_runpath=no
13290
export_dynamic_flag_spec='${wl}-Blargedynsym'
13291
runpath_var=LD_RUN_PATH
13299
shlibpath_overrides_runpath=no
13300
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13306
if test -d /usr/nec ;then
13308
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13309
soname_spec='$libname${shared_ext}.$major'
13310
shlibpath_var=LD_LIBRARY_PATH
13316
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13317
soname_spec='${libname}${release}${shared_ext}$major'
13318
shlibpath_var=LD_LIBRARY_PATH
13325
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13326
echo "${ECHO_T}$dynamic_linker" >&6
13327
test "$dynamic_linker" = no && can_build_shared=no
13329
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13330
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13331
hardcode_action_CXX=
13332
if test -n "$hardcode_libdir_flag_spec_CXX" || \
13333
test -n "$runpath_var_CXX" || \
13334
test "X$hardcode_automatic_CXX" = "Xyes" ; then
13336
# We can hardcode non-existant directories.
13337
if test "$hardcode_direct_CXX" != no &&
13338
# If the only mechanism to avoid hardcoding is shlibpath_var, we
13339
# have to relink, otherwise we might link with an installed library
13340
# when we should be linking with a yet-to-be-installed one
13341
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13342
test "$hardcode_minus_L_CXX" != no; then
13343
# Linking always hardcodes the temporary library directory.
13344
hardcode_action_CXX=relink
13346
# We can link without hardcoding, and we can hardcode nonexisting dirs.
13347
hardcode_action_CXX=immediate
13350
# We cannot hardcode anything, or else we can only hardcode existing
13352
hardcode_action_CXX=unsupported
13354
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13355
echo "${ECHO_T}$hardcode_action_CXX" >&6
13357
if test "$hardcode_action_CXX" = relink; then
13358
# Fast installation is not supported
13359
enable_fast_install=no
13360
elif test "$shlibpath_overrides_runpath" = yes ||
13361
test "$enable_shared" = no; then
13362
# Fast installation is not necessary
13363
enable_fast_install=needless
13368
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13369
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13370
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13371
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13372
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13373
echo "$as_me:$LINENO: result: yes" >&5
13374
echo "${ECHO_T}yes" >&6
13376
# FIXME - insert some real tests, host_os isn't really good enough
13379
if test -n "$STRIP" ; then
13380
striplib="$STRIP -x"
13381
echo "$as_me:$LINENO: result: yes" >&5
13382
echo "${ECHO_T}yes" >&6
13384
echo "$as_me:$LINENO: result: no" >&5
13385
echo "${ECHO_T}no" >&6
13389
echo "$as_me:$LINENO: result: no" >&5
13390
echo "${ECHO_T}no" >&6
13395
if test "x$enable_dlopen" != xyes; then
13396
enable_dlopen=unknown
13397
enable_dlopen_self=unknown
13398
enable_dlopen_self_static=unknown
13405
lt_cv_dlopen="load_add_on"
13407
lt_cv_dlopen_self=yes
13411
lt_cv_dlopen="LoadLibrary"
13416
lt_cv_dlopen="dlopen"
13421
# if libdl is installed we need to link against it
13422
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13423
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13424
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13425
echo $ECHO_N "(cached) $ECHO_C" >&6
13427
ac_check_lib_save_LIBS=$LIBS
13429
cat >conftest.$ac_ext <<_ACEOF
13432
cat confdefs.h >>conftest.$ac_ext
13433
cat >>conftest.$ac_ext <<_ACEOF
13434
/* end confdefs.h. */
13436
/* Override any gcc2 internal prototype to avoid an error. */
13440
/* We use char because int might match the return type of a gcc2
13441
builtin and then its argument prototype would still apply. */
13451
rm -f conftest.$ac_objext conftest$ac_exeext
13452
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13453
(eval $ac_link) 2>conftest.er1
13455
grep -v '^ *+' conftest.er1 >conftest.err
13457
cat conftest.err >&5
13458
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13459
(exit $ac_status); } &&
13460
{ ac_try='test -z "$ac_cxx_werror_flag"
13461
|| test ! -s conftest.err'
13462
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13463
(eval $ac_try) 2>&5
13465
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13466
(exit $ac_status); }; } &&
13467
{ ac_try='test -s conftest$ac_exeext'
13468
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13469
(eval $ac_try) 2>&5
13471
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13472
(exit $ac_status); }; }; then
13473
ac_cv_lib_dl_dlopen=yes
13475
echo "$as_me: failed program was:" >&5
13476
sed 's/^/| /' conftest.$ac_ext >&5
13478
ac_cv_lib_dl_dlopen=no
13480
rm -f conftest.err conftest.$ac_objext \
13481
conftest$ac_exeext conftest.$ac_ext
13482
LIBS=$ac_check_lib_save_LIBS
13484
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13485
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13486
if test $ac_cv_lib_dl_dlopen = yes; then
13487
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13490
lt_cv_dlopen="dyld"
13492
lt_cv_dlopen_self=yes
13499
echo "$as_me:$LINENO: checking for shl_load" >&5
13500
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13501
if test "${ac_cv_func_shl_load+set}" = set; then
13502
echo $ECHO_N "(cached) $ECHO_C" >&6
13504
cat >conftest.$ac_ext <<_ACEOF
13507
cat confdefs.h >>conftest.$ac_ext
13508
cat >>conftest.$ac_ext <<_ACEOF
13509
/* end confdefs.h. */
13510
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13511
For example, HP-UX 11i <limits.h> declares gettimeofday. */
13512
#define shl_load innocuous_shl_load
13514
/* System header to define __stub macros and hopefully few prototypes,
13515
which can conflict with char shl_load (); below.
13516
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13517
<limits.h> exists even on freestanding compilers. */
13520
# include <limits.h>
13522
# include <assert.h>
13527
/* Override any gcc2 internal prototype to avoid an error. */
13532
/* We use char because int might match the return type of a gcc2
13533
builtin and then its argument prototype would still apply. */
13535
/* The GNU C library defines this for functions which it implements
13536
to always fail with ENOSYS. Some functions are actually named
13537
something starting with __ and the normal name is an alias. */
13538
#if defined (__stub_shl_load) || defined (__stub___shl_load)
13541
char (*f) () = shl_load;
13550
return f != shl_load;
13555
rm -f conftest.$ac_objext conftest$ac_exeext
13556
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13557
(eval $ac_link) 2>conftest.er1
13559
grep -v '^ *+' conftest.er1 >conftest.err
13561
cat conftest.err >&5
13562
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13563
(exit $ac_status); } &&
13564
{ ac_try='test -z "$ac_cxx_werror_flag"
13565
|| test ! -s conftest.err'
13566
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13567
(eval $ac_try) 2>&5
13569
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13570
(exit $ac_status); }; } &&
13571
{ ac_try='test -s conftest$ac_exeext'
13572
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13573
(eval $ac_try) 2>&5
13575
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13576
(exit $ac_status); }; }; then
13577
ac_cv_func_shl_load=yes
13579
echo "$as_me: failed program was:" >&5
13580
sed 's/^/| /' conftest.$ac_ext >&5
13582
ac_cv_func_shl_load=no
13584
rm -f conftest.err conftest.$ac_objext \
13585
conftest$ac_exeext conftest.$ac_ext
13587
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13588
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13589
if test $ac_cv_func_shl_load = yes; then
13590
lt_cv_dlopen="shl_load"
13592
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13593
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13594
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13595
echo $ECHO_N "(cached) $ECHO_C" >&6
13597
ac_check_lib_save_LIBS=$LIBS
13599
cat >conftest.$ac_ext <<_ACEOF
13602
cat confdefs.h >>conftest.$ac_ext
13603
cat >>conftest.$ac_ext <<_ACEOF
13604
/* end confdefs.h. */
13606
/* Override any gcc2 internal prototype to avoid an error. */
13610
/* We use char because int might match the return type of a gcc2
13611
builtin and then its argument prototype would still apply. */
13621
rm -f conftest.$ac_objext conftest$ac_exeext
13622
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13623
(eval $ac_link) 2>conftest.er1
13625
grep -v '^ *+' conftest.er1 >conftest.err
13627
cat conftest.err >&5
13628
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13629
(exit $ac_status); } &&
13630
{ ac_try='test -z "$ac_cxx_werror_flag"
13631
|| test ! -s conftest.err'
13632
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13633
(eval $ac_try) 2>&5
13635
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13636
(exit $ac_status); }; } &&
13637
{ ac_try='test -s conftest$ac_exeext'
13638
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13639
(eval $ac_try) 2>&5
13641
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13642
(exit $ac_status); }; }; then
13643
ac_cv_lib_dld_shl_load=yes
13645
echo "$as_me: failed program was:" >&5
13646
sed 's/^/| /' conftest.$ac_ext >&5
13648
ac_cv_lib_dld_shl_load=no
13650
rm -f conftest.err conftest.$ac_objext \
13651
conftest$ac_exeext conftest.$ac_ext
13652
LIBS=$ac_check_lib_save_LIBS
13654
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13655
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13656
if test $ac_cv_lib_dld_shl_load = yes; then
13657
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13659
echo "$as_me:$LINENO: checking for dlopen" >&5
13660
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13661
if test "${ac_cv_func_dlopen+set}" = set; then
13662
echo $ECHO_N "(cached) $ECHO_C" >&6
13664
cat >conftest.$ac_ext <<_ACEOF
13667
cat confdefs.h >>conftest.$ac_ext
13668
cat >>conftest.$ac_ext <<_ACEOF
13669
/* end confdefs.h. */
13670
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13671
For example, HP-UX 11i <limits.h> declares gettimeofday. */
13672
#define dlopen innocuous_dlopen
13674
/* System header to define __stub macros and hopefully few prototypes,
13675
which can conflict with char dlopen (); below.
13676
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13677
<limits.h> exists even on freestanding compilers. */
13680
# include <limits.h>
13682
# include <assert.h>
13687
/* Override any gcc2 internal prototype to avoid an error. */
13692
/* We use char because int might match the return type of a gcc2
13693
builtin and then its argument prototype would still apply. */
13695
/* The GNU C library defines this for functions which it implements
13696
to always fail with ENOSYS. Some functions are actually named
13697
something starting with __ and the normal name is an alias. */
13698
#if defined (__stub_dlopen) || defined (__stub___dlopen)
13701
char (*f) () = dlopen;
13710
return f != dlopen;
13715
rm -f conftest.$ac_objext conftest$ac_exeext
13716
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13717
(eval $ac_link) 2>conftest.er1
13719
grep -v '^ *+' conftest.er1 >conftest.err
13721
cat conftest.err >&5
13722
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13723
(exit $ac_status); } &&
13724
{ ac_try='test -z "$ac_cxx_werror_flag"
13725
|| test ! -s conftest.err'
13726
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13727
(eval $ac_try) 2>&5
13729
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13730
(exit $ac_status); }; } &&
13731
{ ac_try='test -s conftest$ac_exeext'
13732
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13733
(eval $ac_try) 2>&5
13735
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13736
(exit $ac_status); }; }; then
13737
ac_cv_func_dlopen=yes
13739
echo "$as_me: failed program was:" >&5
13740
sed 's/^/| /' conftest.$ac_ext >&5
13742
ac_cv_func_dlopen=no
13744
rm -f conftest.err conftest.$ac_objext \
13745
conftest$ac_exeext conftest.$ac_ext
13747
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13748
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
13749
if test $ac_cv_func_dlopen = yes; then
13750
lt_cv_dlopen="dlopen"
13752
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13753
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13754
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13755
echo $ECHO_N "(cached) $ECHO_C" >&6
13757
ac_check_lib_save_LIBS=$LIBS
13759
cat >conftest.$ac_ext <<_ACEOF
13762
cat confdefs.h >>conftest.$ac_ext
13763
cat >>conftest.$ac_ext <<_ACEOF
13764
/* end confdefs.h. */
13766
/* Override any gcc2 internal prototype to avoid an error. */
13770
/* We use char because int might match the return type of a gcc2
13771
builtin and then its argument prototype would still apply. */
13781
rm -f conftest.$ac_objext conftest$ac_exeext
13782
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13783
(eval $ac_link) 2>conftest.er1
13785
grep -v '^ *+' conftest.er1 >conftest.err
13787
cat conftest.err >&5
13788
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13789
(exit $ac_status); } &&
13790
{ ac_try='test -z "$ac_cxx_werror_flag"
13791
|| test ! -s conftest.err'
13792
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13793
(eval $ac_try) 2>&5
13795
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13796
(exit $ac_status); }; } &&
13797
{ ac_try='test -s conftest$ac_exeext'
13798
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13799
(eval $ac_try) 2>&5
13801
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13802
(exit $ac_status); }; }; then
13803
ac_cv_lib_dl_dlopen=yes
13805
echo "$as_me: failed program was:" >&5
13806
sed 's/^/| /' conftest.$ac_ext >&5
13808
ac_cv_lib_dl_dlopen=no
13810
rm -f conftest.err conftest.$ac_objext \
13811
conftest$ac_exeext conftest.$ac_ext
13812
LIBS=$ac_check_lib_save_LIBS
13814
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13815
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13816
if test $ac_cv_lib_dl_dlopen = yes; then
13817
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13819
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13820
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
13821
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13822
echo $ECHO_N "(cached) $ECHO_C" >&6
13824
ac_check_lib_save_LIBS=$LIBS
13825
LIBS="-lsvld $LIBS"
13826
cat >conftest.$ac_ext <<_ACEOF
13829
cat confdefs.h >>conftest.$ac_ext
13830
cat >>conftest.$ac_ext <<_ACEOF
13831
/* end confdefs.h. */
13833
/* Override any gcc2 internal prototype to avoid an error. */
13837
/* We use char because int might match the return type of a gcc2
13838
builtin and then its argument prototype would still apply. */
13848
rm -f conftest.$ac_objext conftest$ac_exeext
13849
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13850
(eval $ac_link) 2>conftest.er1
13852
grep -v '^ *+' conftest.er1 >conftest.err
13854
cat conftest.err >&5
13855
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13856
(exit $ac_status); } &&
13857
{ ac_try='test -z "$ac_cxx_werror_flag"
13858
|| test ! -s conftest.err'
13859
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13860
(eval $ac_try) 2>&5
13862
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13863
(exit $ac_status); }; } &&
13864
{ ac_try='test -s conftest$ac_exeext'
13865
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13866
(eval $ac_try) 2>&5
13868
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13869
(exit $ac_status); }; }; then
13870
ac_cv_lib_svld_dlopen=yes
13872
echo "$as_me: failed program was:" >&5
13873
sed 's/^/| /' conftest.$ac_ext >&5
13875
ac_cv_lib_svld_dlopen=no
13877
rm -f conftest.err conftest.$ac_objext \
13878
conftest$ac_exeext conftest.$ac_ext
13879
LIBS=$ac_check_lib_save_LIBS
13881
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13882
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
13883
if test $ac_cv_lib_svld_dlopen = yes; then
13884
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13886
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13887
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
13888
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13889
echo $ECHO_N "(cached) $ECHO_C" >&6
13891
ac_check_lib_save_LIBS=$LIBS
13893
cat >conftest.$ac_ext <<_ACEOF
13896
cat confdefs.h >>conftest.$ac_ext
13897
cat >>conftest.$ac_ext <<_ACEOF
13898
/* end confdefs.h. */
13900
/* Override any gcc2 internal prototype to avoid an error. */
13904
/* We use char because int might match the return type of a gcc2
13905
builtin and then its argument prototype would still apply. */
13915
rm -f conftest.$ac_objext conftest$ac_exeext
13916
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13917
(eval $ac_link) 2>conftest.er1
13919
grep -v '^ *+' conftest.er1 >conftest.err
13921
cat conftest.err >&5
13922
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13923
(exit $ac_status); } &&
13924
{ ac_try='test -z "$ac_cxx_werror_flag"
13925
|| test ! -s conftest.err'
13926
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13927
(eval $ac_try) 2>&5
13929
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13930
(exit $ac_status); }; } &&
13931
{ ac_try='test -s conftest$ac_exeext'
13932
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13933
(eval $ac_try) 2>&5
13935
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13936
(exit $ac_status); }; }; then
13937
ac_cv_lib_dld_dld_link=yes
13939
echo "$as_me: failed program was:" >&5
13940
sed 's/^/| /' conftest.$ac_ext >&5
13942
ac_cv_lib_dld_dld_link=no
13944
rm -f conftest.err conftest.$ac_objext \
13945
conftest$ac_exeext conftest.$ac_ext
13946
LIBS=$ac_check_lib_save_LIBS
13948
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13949
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
13950
if test $ac_cv_lib_dld_dld_link = yes; then
13951
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
13972
if test "x$lt_cv_dlopen" != xno; then
13978
case $lt_cv_dlopen in
13980
save_CPPFLAGS="$CPPFLAGS"
13981
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13983
save_LDFLAGS="$LDFLAGS"
13984
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13987
LIBS="$lt_cv_dlopen_libs $LIBS"
13989
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13990
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
13991
if test "${lt_cv_dlopen_self+set}" = set; then
13992
echo $ECHO_N "(cached) $ECHO_C" >&6
13994
if test "$cross_compiling" = yes; then :
13995
lt_cv_dlopen_self=cross
13997
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13998
lt_status=$lt_dlunknown
13999
cat > conftest.$ac_ext <<EOF
14000
#line 14000 "configure"
14001
#include "confdefs.h"
14010
# define LT_DLGLOBAL RTLD_GLOBAL
14013
# define LT_DLGLOBAL DL_GLOBAL
14015
# define LT_DLGLOBAL 0
14019
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14020
find out it does not work in some platform. */
14021
#ifndef LT_DLLAZY_OR_NOW
14023
# define LT_DLLAZY_OR_NOW RTLD_LAZY
14026
# define LT_DLLAZY_OR_NOW DL_LAZY
14029
# define LT_DLLAZY_OR_NOW RTLD_NOW
14032
# define LT_DLLAZY_OR_NOW DL_NOW
14034
# define LT_DLLAZY_OR_NOW 0
14042
extern "C" void exit (int);
14045
void fnord() { int i=42;}
14048
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14049
int status = $lt_dlunknown;
14053
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14054
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14055
/* dlclose (self); */
14061
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14062
(eval $ac_link) 2>&5
14064
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14065
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14066
(./conftest; exit; ) 2>/dev/null
14068
case x$lt_status in
14069
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14070
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14071
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14074
# compilation failed
14075
lt_cv_dlopen_self=no
14082
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14083
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14085
if test "x$lt_cv_dlopen_self" = xyes; then
14086
LDFLAGS="$LDFLAGS $link_static_flag"
14087
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14088
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14089
if test "${lt_cv_dlopen_self_static+set}" = set; then
14090
echo $ECHO_N "(cached) $ECHO_C" >&6
14092
if test "$cross_compiling" = yes; then :
14093
lt_cv_dlopen_self_static=cross
14095
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14096
lt_status=$lt_dlunknown
14097
cat > conftest.$ac_ext <<EOF
14098
#line 14098 "configure"
14099
#include "confdefs.h"
14108
# define LT_DLGLOBAL RTLD_GLOBAL
14111
# define LT_DLGLOBAL DL_GLOBAL
14113
# define LT_DLGLOBAL 0
14117
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14118
find out it does not work in some platform. */
14119
#ifndef LT_DLLAZY_OR_NOW
14121
# define LT_DLLAZY_OR_NOW RTLD_LAZY
14124
# define LT_DLLAZY_OR_NOW DL_LAZY
14127
# define LT_DLLAZY_OR_NOW RTLD_NOW
14130
# define LT_DLLAZY_OR_NOW DL_NOW
14132
# define LT_DLLAZY_OR_NOW 0
14140
extern "C" void exit (int);
14143
void fnord() { int i=42;}
14146
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14147
int status = $lt_dlunknown;
14151
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14152
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14153
/* dlclose (self); */
14159
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14160
(eval $ac_link) 2>&5
14162
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14163
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14164
(./conftest; exit; ) 2>/dev/null
14166
case x$lt_status in
14167
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14168
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14169
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14172
# compilation failed
14173
lt_cv_dlopen_self_static=no
14180
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14181
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14184
CPPFLAGS="$save_CPPFLAGS"
14185
LDFLAGS="$save_LDFLAGS"
14190
case $lt_cv_dlopen_self in
14191
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14192
*) enable_dlopen_self=unknown ;;
14195
case $lt_cv_dlopen_self_static in
14196
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14197
*) enable_dlopen_self_static=unknown ;;
14202
# The else clause should only fire when bootstrapping the
14203
# libtool distribution, otherwise you forgot to ship ltmain.sh
14204
# with your package, and you will get complaints that there are
14205
# no rules to generate ltmain.sh.
14206
if test -f "$ltmain"; then
14207
# See if we are running on zsh, and set the options which allow our commands through
14208
# without removal of \ escapes.
14209
if test -n "${ZSH_VERSION+set}" ; then
14210
setopt NO_GLOB_SUBST
14212
# Now quote all the things that may contain metacharacters while being
14213
# careful not to overquote the AC_SUBSTed values. We take copies of the
14214
# variables and quote the copies for generation of the libtool script.
14215
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14217
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14218
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14219
deplibs_check_method reload_flag reload_cmds need_locks \
14220
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14221
lt_cv_sys_global_symbol_to_c_name_address \
14222
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14223
old_postinstall_cmds old_postuninstall_cmds \
14227
lt_prog_compiler_wl_CXX \
14228
lt_prog_compiler_pic_CXX \
14229
lt_prog_compiler_static_CXX \
14230
lt_prog_compiler_no_builtin_flag_CXX \
14231
export_dynamic_flag_spec_CXX \
14232
thread_safe_flag_spec_CXX \
14233
whole_archive_flag_spec_CXX \
14234
enable_shared_with_static_runtimes_CXX \
14235
old_archive_cmds_CXX \
14236
old_archive_from_new_cmds_CXX \
14237
predep_objects_CXX \
14238
postdep_objects_CXX \
14241
compiler_lib_search_path_CXX \
14243
archive_expsym_cmds_CXX \
14244
postinstall_cmds_CXX \
14245
postuninstall_cmds_CXX \
14246
old_archive_from_expsyms_cmds_CXX \
14247
allow_undefined_flag_CXX \
14248
no_undefined_flag_CXX \
14249
export_symbols_cmds_CXX \
14250
hardcode_libdir_flag_spec_CXX \
14251
hardcode_libdir_flag_spec_ld_CXX \
14252
hardcode_libdir_separator_CXX \
14253
hardcode_automatic_CXX \
14255
module_expsym_cmds_CXX \
14256
lt_cv_prog_compiler_c_o_CXX \
14257
exclude_expsyms_CXX \
14258
include_expsyms_CXX; do
14261
old_archive_cmds_CXX | \
14262
old_archive_from_new_cmds_CXX | \
14263
archive_cmds_CXX | \
14264
archive_expsym_cmds_CXX | \
14265
module_cmds_CXX | \
14266
module_expsym_cmds_CXX | \
14267
old_archive_from_expsyms_cmds_CXX | \
14268
export_symbols_cmds_CXX | \
14269
extract_expsyms_cmds | reload_cmds | finish_cmds | \
14270
postinstall_cmds | postuninstall_cmds | \
14271
old_postinstall_cmds | old_postuninstall_cmds | \
14272
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14273
# Double-quote double-evaled strings.
14274
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14277
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14283
*'\$0 --fallback-echo"')
14284
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14290
cat <<__EOF__ >> "$cfgfile"
14291
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14293
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14295
# Shell to use when invoking shell scripts.
14298
# Whether or not to build shared libraries.
14299
build_libtool_libs=$enable_shared
14301
# Whether or not to build static libraries.
14302
build_old_libs=$enable_static
14304
# Whether or not to add -lc for building shared libraries.
14305
build_libtool_need_lc=$archive_cmds_need_lc_CXX
14307
# Whether or not to disallow shared libs when runtime libs are static
14308
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14310
# Whether or not to optimize for fast installation.
14311
fast_install=$enable_fast_install
14314
host_alias=$host_alias
14317
# An echo program that does not interpret backslashes.
14322
AR_FLAGS=$lt_AR_FLAGS
14327
# A language-specific compiler.
14328
CC=$lt_compiler_CXX
14330
# Is the compiler the GNU C compiler?
14336
# The linker used to build libraries.
14339
# Whether we need hard or soft links.
14342
# A BSD-compatible nm program.
14345
# A symbol stripping program
14348
# Used to examine libraries when file_magic_cmd begins "file"
14349
MAGIC_CMD=$MAGIC_CMD
14351
# Used on cygwin: DLL creation program.
14354
# Used on cygwin: object dumper.
14357
# Used on cygwin: assembler.
14360
# The name of the directory that contains temporary libtool files.
14363
# How to create reloadable object files.
14364
reload_flag=$lt_reload_flag
14365
reload_cmds=$lt_reload_cmds
14367
# How to pass a linker flag through the compiler.
14368
wl=$lt_lt_prog_compiler_wl_CXX
14370
# Object file suffix (normally "o").
14371
objext="$ac_objext"
14373
# Old archive suffix (normally "a").
14376
# Shared library suffix (normally ".so").
14377
shrext_cmds='$shrext_cmds'
14379
# Executable file suffix (normally "").
14382
# Additional compiler flags for building library objects.
14383
pic_flag=$lt_lt_prog_compiler_pic_CXX
14386
# What is the maximum length of a command?
14387
max_cmd_len=$lt_cv_sys_max_cmd_len
14389
# Does compiler simultaneously support -c and -o options?
14390
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14392
# Must we lock files when doing compilation ?
14393
need_locks=$lt_need_locks
14395
# Do we need the lib prefix for modules?
14396
need_lib_prefix=$need_lib_prefix
14398
# Do we need a version for libraries?
14399
need_version=$need_version
14401
# Whether dlopen is supported.
14402
dlopen_support=$enable_dlopen
14404
# Whether dlopen of programs is supported.
14405
dlopen_self=$enable_dlopen_self
14407
# Whether dlopen of statically linked programs is supported.
14408
dlopen_self_static=$enable_dlopen_self_static
14410
# Compiler flag to prevent dynamic linking.
14411
link_static_flag=$lt_lt_prog_compiler_static_CXX
14413
# Compiler flag to turn off builtin functions.
14414
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14416
# Compiler flag to allow reflexive dlopens.
14417
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14419
# Compiler flag to generate shared objects directly from archives.
14420
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14422
# Compiler flag to generate thread-safe objects.
14423
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14425
# Library versioning type.
14426
version_type=$version_type
14428
# Format of library name prefix.
14429
libname_spec=$lt_libname_spec
14431
# List of archive names. First name is the real one, the rest are links.
14432
# The last name is the one that the linker finds with -lNAME.
14433
library_names_spec=$lt_library_names_spec
14435
# The coded name of the library, if different from the real name.
14436
soname_spec=$lt_soname_spec
14438
# Commands used to build and install an old-style archive.
14440
old_archive_cmds=$lt_old_archive_cmds_CXX
14441
old_postinstall_cmds=$lt_old_postinstall_cmds
14442
old_postuninstall_cmds=$lt_old_postuninstall_cmds
14444
# Create an old-style archive from a shared archive.
14445
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14447
# Create a temporary old-style archive to link instead of a shared archive.
14448
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14450
# Commands used to build and install a shared archive.
14451
archive_cmds=$lt_archive_cmds_CXX
14452
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14453
postinstall_cmds=$lt_postinstall_cmds
14454
postuninstall_cmds=$lt_postuninstall_cmds
14456
# Commands used to build a loadable module (assumed same as above if empty)
14457
module_cmds=$lt_module_cmds_CXX
14458
module_expsym_cmds=$lt_module_expsym_cmds_CXX
14460
# Commands to strip libraries.
14461
old_striplib=$lt_old_striplib
14462
striplib=$lt_striplib
14464
# Dependencies to place before the objects being linked to create a
14466
predep_objects=$lt_predep_objects_CXX
14468
# Dependencies to place after the objects being linked to create a
14470
postdep_objects=$lt_postdep_objects_CXX
14472
# Dependencies to place before the objects being linked to create a
14474
predeps=$lt_predeps_CXX
14476
# Dependencies to place after the objects being linked to create a
14478
postdeps=$lt_postdeps_CXX
14480
# The library search path used internally by the compiler when linking
14481
# a shared library.
14482
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14484
# Method to check whether dependent libraries are shared objects.
14485
deplibs_check_method=$lt_deplibs_check_method
14487
# Command to use when deplibs_check_method == file_magic.
14488
file_magic_cmd=$lt_file_magic_cmd
14490
# Flag that allows shared libraries with undefined symbols to be built.
14491
allow_undefined_flag=$lt_allow_undefined_flag_CXX
14493
# Flag that forces no undefined symbols.
14494
no_undefined_flag=$lt_no_undefined_flag_CXX
14496
# Commands used to finish a libtool library installation in a directory.
14497
finish_cmds=$lt_finish_cmds
14499
# Same as above, but a single script fragment to be evaled but not shown.
14500
finish_eval=$lt_finish_eval
14502
# Take the output of nm and produce a listing of raw symbols and C names.
14503
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14505
# Transform the output of nm in a proper C declaration
14506
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14508
# Transform the output of nm in a C name address pair
14509
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14511
# This is the shared library runtime path variable.
14512
runpath_var=$runpath_var
14514
# This is the shared library path variable.
14515
shlibpath_var=$shlibpath_var
14517
# Is shlibpath searched before the hard-coded library search path?
14518
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14520
# How to hardcode a shared library path into an executable.
14521
hardcode_action=$hardcode_action_CXX
14523
# Whether we should hardcode library paths into libraries.
14524
hardcode_into_libs=$hardcode_into_libs
14526
# Flag to hardcode \$libdir into a binary during linking.
14527
# This must work even if \$libdir does not exist.
14528
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14530
# If ld is used when linking, flag to hardcode \$libdir into
14531
# a binary during linking. This must work even if \$libdir does
14533
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14535
# Whether we need a single -rpath flag with a separated argument.
14536
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14538
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14539
# resulting binary.
14540
hardcode_direct=$hardcode_direct_CXX
14542
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14543
# resulting binary.
14544
hardcode_minus_L=$hardcode_minus_L_CXX
14546
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14547
# the resulting binary.
14548
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14550
# Set to yes if building a shared library automatically hardcodes DIR into the library
14551
# and all subsequent libraries and executables linked against it.
14552
hardcode_automatic=$hardcode_automatic_CXX
14554
# Variables whose values should be saved in libtool wrapper scripts and
14555
# restored at relink time.
14556
variables_saved_for_relink="$variables_saved_for_relink"
14558
# Whether libtool must link a program against all its dependency libraries.
14559
link_all_deplibs=$link_all_deplibs_CXX
14561
# Compile-time system search path for libraries
14562
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14564
# Run-time system search path for libraries
14565
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14567
# Fix the shell variable \$srcfile for the compiler.
14568
fix_srcfile_path="$fix_srcfile_path_CXX"
14570
# Set to yes if exported symbols are required.
14571
always_export_symbols=$always_export_symbols_CXX
14573
# The commands to list exported symbols.
14574
export_symbols_cmds=$lt_export_symbols_cmds_CXX
14576
# The commands to extract the exported symbol list from a shared archive.
14577
extract_expsyms_cmds=$lt_extract_expsyms_cmds
14579
# Symbols that should not be listed in the preloaded symbols.
14580
exclude_expsyms=$lt_exclude_expsyms_CXX
14582
# Symbols that must always be exported.
14583
include_expsyms=$lt_include_expsyms_CXX
14585
# ### END LIBTOOL TAG CONFIG: $tagname
14591
# If there is no Makefile yet, we rely on a make rule to execute
14592
# `config.status --recheck' to rerun these tests and create the
14593
# libtool script then.
14594
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14595
if test -f "$ltmain_in"; then
14596
test -f Makefile && make "$ltmain"
14602
ac_cpp='$CPP $CPPFLAGS'
14603
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14604
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14605
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14611
with_gnu_ldcxx=$with_gnu_ld
14612
with_gnu_ld=$lt_save_with_gnu_ld
14613
lt_cv_path_LDCXX=$lt_cv_path_LD
14614
lt_cv_path_LD=$lt_save_path_LD
14615
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14616
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14624
if test -n "$F77" && test "X$F77" != "Xno"; then
14627
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14628
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14629
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14632
archive_cmds_need_lc_F77=no
14633
allow_undefined_flag_F77=
14634
always_export_symbols_F77=no
14635
archive_expsym_cmds_F77=
14636
export_dynamic_flag_spec_F77=
14637
hardcode_direct_F77=no
14638
hardcode_libdir_flag_spec_F77=
14639
hardcode_libdir_flag_spec_ld_F77=
14640
hardcode_libdir_separator_F77=
14641
hardcode_minus_L_F77=no
14642
hardcode_automatic_F77=no
14644
module_expsym_cmds_F77=
14645
link_all_deplibs_F77=unknown
14646
old_archive_cmds_F77=$old_archive_cmds
14647
no_undefined_flag_F77=
14648
whole_archive_flag_spec_F77=
14649
enable_shared_with_static_runtimes_F77=no
14651
# Source file extension for f77 test sources.
14654
# Object file extension for compiled f77 test sources.
14658
# Code to be used in simple compile tests
14659
lt_simple_compile_test_code=" subroutine t\n return\n end\n"
14661
# Code to be used in simple link tests
14662
lt_simple_link_test_code=" program t\n end\n"
14664
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14666
# If no C compiler was specified, use CC.
14669
# Allow CC to be a program name with arguments.
14673
# Allow CC to be a program name with arguments.
14678
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
14680
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14681
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14682
echo "$as_me:$LINENO: result: $can_build_shared" >&5
14683
echo "${ECHO_T}$can_build_shared" >&6
14685
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14686
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14687
test "$can_build_shared" = "no" && enable_shared=no
14689
# On AIX, shared libraries and static libraries use the same namespace, and
14690
# are all built from PIC.
14693
test "$enable_shared" = yes && enable_static=no
14694
if test -n "$RANLIB"; then
14695
archive_cmds="$archive_cmds~\$RANLIB \$lib"
14696
postinstall_cmds='$RANLIB $lib'
14700
test "$enable_shared" = yes && enable_static=no
14703
echo "$as_me:$LINENO: result: $enable_shared" >&5
14704
echo "${ECHO_T}$enable_shared" >&6
14706
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14707
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14708
# Make sure either enable_shared or enable_static is yes.
14709
test "$enable_shared" = yes || enable_static=yes
14710
echo "$as_me:$LINENO: result: $enable_static" >&5
14711
echo "${ECHO_T}$enable_static" >&6
14713
test "$ld_shlibs_F77" = no && can_build_shared=no
14718
lt_prog_compiler_wl_F77=
14719
lt_prog_compiler_pic_F77=
14720
lt_prog_compiler_static_F77=
14722
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14723
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14725
if test "$GCC" = yes; then
14726
lt_prog_compiler_wl_F77='-Wl,'
14727
lt_prog_compiler_static_F77='-static'
14731
# All AIX code is PIC.
14732
if test "$host_cpu" = ia64; then
14733
# AIX 5 now supports IA64 processor
14734
lt_prog_compiler_static_F77='-Bstatic'
14739
# FIXME: we need at least 68020 code to build shared libraries, but
14740
# adding the `-m68020' flag to GCC prevents building anything better,
14742
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14745
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14746
# PIC is the default for these OSes.
14749
mingw* | pw32* | os2*)
14750
# This hack is so that the source file can tell whether it is being
14751
# built for inclusion in a dll (and should export symbols for example).
14752
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14755
darwin* | rhapsody*)
14756
# PIC is the default on this platform
14757
# Common symbols not allowed in MH_DYLIB files
14758
lt_prog_compiler_pic_F77='-fno-common'
14762
# Just because we use GCC doesn't mean we suddenly get shared libraries
14763
# on systems that don't support them.
14764
lt_prog_compiler_can_build_shared_F77=no
14769
if test -d /usr/nec; then
14770
lt_prog_compiler_pic_F77=-Kconform_pic
14775
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14776
# not for PA HP-UX.
14777
case "$host_cpu" in
14782
lt_prog_compiler_pic_F77='-fPIC'
14788
lt_prog_compiler_pic_F77='-fPIC'
14792
# PORTME Check for flag to pass linker flags through the system compiler.
14795
lt_prog_compiler_wl_F77='-Wl,'
14796
if test "$host_cpu" = ia64; then
14797
# AIX 5 now supports IA64 processor
14798
lt_prog_compiler_static_F77='-Bstatic'
14800
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14804
# PIC is the default on this platform
14805
# Common symbols not allowed in MH_DYLIB files
14806
case "$cc_basename" in
14808
lt_prog_compiler_pic_F77='-qnocommon'
14809
lt_prog_compiler_wl_F77='-Wl,'
14814
mingw* | pw32* | os2*)
14815
# This hack is so that the source file can tell whether it is being
14816
# built for inclusion in a dll (and should export symbols for example).
14817
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14820
hpux9* | hpux10* | hpux11*)
14821
lt_prog_compiler_wl_F77='-Wl,'
14822
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14823
# not for PA HP-UX.
14824
case "$host_cpu" in
14829
lt_prog_compiler_pic_F77='+Z'
14832
# Is there a better lt_prog_compiler_static that works with the bundled CC?
14833
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14836
irix5* | irix6* | nonstopux*)
14837
lt_prog_compiler_wl_F77='-Wl,'
14838
# PIC (with -KPIC) is the default.
14839
lt_prog_compiler_static_F77='-non_shared'
14843
lt_prog_compiler_pic_F77='-KPIC'
14844
lt_prog_compiler_static_F77='-Bstatic'
14850
lt_prog_compiler_wl_F77='-Wl,'
14851
lt_prog_compiler_pic_F77='-KPIC'
14852
lt_prog_compiler_static_F77='-static'
14855
lt_prog_compiler_wl_F77='-Wl,'
14856
# All Alpha code is PIC.
14857
lt_prog_compiler_static_F77='-non_shared'
14862
osf3* | osf4* | osf5*)
14863
lt_prog_compiler_wl_F77='-Wl,'
14864
# All OSF/1 code is PIC.
14865
lt_prog_compiler_static_F77='-non_shared'
14869
lt_prog_compiler_pic_F77='-Kpic'
14870
lt_prog_compiler_static_F77='-dn'
14874
lt_prog_compiler_wl_F77='-Wl,'
14875
lt_prog_compiler_pic_F77='-KPIC'
14876
lt_prog_compiler_static_F77='-Bstatic'
14880
lt_prog_compiler_wl_F77='-Qoption ld '
14881
lt_prog_compiler_pic_F77='-PIC'
14882
lt_prog_compiler_static_F77='-Bstatic'
14885
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14886
lt_prog_compiler_wl_F77='-Wl,'
14887
lt_prog_compiler_pic_F77='-KPIC'
14888
lt_prog_compiler_static_F77='-Bstatic'
14892
if test -d /usr/nec ;then
14893
lt_prog_compiler_pic_F77='-Kconform_pic'
14894
lt_prog_compiler_static_F77='-Bstatic'
14899
lt_prog_compiler_pic_F77='-pic'
14900
lt_prog_compiler_static_F77='-Bstatic'
14904
lt_prog_compiler_can_build_shared_F77=no
14909
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14910
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
14913
# Check to make sure the PIC flag actually works.
14915
if test -n "$lt_prog_compiler_pic_F77"; then
14917
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14918
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
14919
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14920
echo $ECHO_N "(cached) $ECHO_C" >&6
14922
lt_prog_compiler_pic_works_F77=no
14923
ac_outfile=conftest.$ac_objext
14924
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14925
lt_compiler_flag="$lt_prog_compiler_pic_F77"
14926
# Insert the option either (1) after the last *FLAGS variable, or
14927
# (2) before a word containing "conftest.", or (3) at the end.
14928
# Note that $ac_compile itself does not contain backslashes and begins
14929
# with a dollar sign (not a hyphen), so the echo should work correctly.
14930
# The option is referenced via a variable to avoid confusing sed.
14931
lt_compile=`echo "$ac_compile" | $SED \
14932
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14933
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14934
-e 's:$: $lt_compiler_flag:'`
14935
(eval echo "\"\$as_me:14935: $lt_compile\"" >&5)
14936
(eval "$lt_compile" 2>conftest.err)
14938
cat conftest.err >&5
14939
echo "$as_me:14939: \$? = $ac_status" >&5
14940
if (exit $ac_status) && test -s "$ac_outfile"; then
14941
# The compiler can only warn and ignore the option if not recognized
14942
# So say no if there are warnings
14943
if test ! -s conftest.err; then
14944
lt_prog_compiler_pic_works_F77=yes
14950
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14951
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
14953
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14954
case $lt_prog_compiler_pic_F77 in
14956
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14959
lt_prog_compiler_pic_F77=
14960
lt_prog_compiler_can_build_shared_F77=no
14965
# For platforms which do not support PIC, -DPIC is meaningless:
14967
lt_prog_compiler_pic_F77=
14970
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14974
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14975
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14976
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14977
echo $ECHO_N "(cached) $ECHO_C" >&6
14979
lt_cv_prog_compiler_c_o_F77=no
14980
$rm -r conftest 2>/dev/null
14984
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14986
lt_compiler_flag="-o out/conftest2.$ac_objext"
14987
# Insert the option either (1) after the last *FLAGS variable, or
14988
# (2) before a word containing "conftest.", or (3) at the end.
14989
# Note that $ac_compile itself does not contain backslashes and begins
14990
# with a dollar sign (not a hyphen), so the echo should work correctly.
14991
lt_compile=`echo "$ac_compile" | $SED \
14992
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14993
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14994
-e 's:$: $lt_compiler_flag:'`
14995
(eval echo "\"\$as_me:14995: $lt_compile\"" >&5)
14996
(eval "$lt_compile" 2>out/conftest.err)
14998
cat out/conftest.err >&5
14999
echo "$as_me:14999: \$? = $ac_status" >&5
15000
if (exit $ac_status) && test -s out/conftest2.$ac_objext
15002
# The compiler can only warn and ignore the option if not recognized
15003
# So say no if there are warnings
15004
if test ! -s out/conftest.err; then
15005
lt_cv_prog_compiler_c_o_F77=yes
15010
# SGI C++ compiler will create directory out/ii_files/ for
15011
# template instantiation
15012
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15013
$rm out/* && rmdir out
15019
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15020
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
15023
hard_links="nottested"
15024
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15025
# do not overwrite the value of need_locks provided by the user
15026
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15027
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15030
ln conftest.a conftest.b 2>/dev/null && hard_links=no
15032
ln conftest.a conftest.b 2>&5 || hard_links=no
15033
ln conftest.a conftest.b 2>/dev/null && hard_links=no
15034
echo "$as_me:$LINENO: result: $hard_links" >&5
15035
echo "${ECHO_T}$hard_links" >&6
15036
if test "$hard_links" = no; then
15037
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15038
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15045
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15046
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15049
allow_undefined_flag_F77=
15050
enable_shared_with_static_runtimes_F77=no
15052
archive_expsym_cmds_F77=
15053
old_archive_From_new_cmds_F77=
15054
old_archive_from_expsyms_cmds_F77=
15055
export_dynamic_flag_spec_F77=
15056
whole_archive_flag_spec_F77=
15057
thread_safe_flag_spec_F77=
15058
hardcode_libdir_flag_spec_F77=
15059
hardcode_libdir_flag_spec_ld_F77=
15060
hardcode_libdir_separator_F77=
15061
hardcode_direct_F77=no
15062
hardcode_minus_L_F77=no
15063
hardcode_shlibpath_var_F77=unsupported
15064
link_all_deplibs_F77=unknown
15065
hardcode_automatic_F77=no
15067
module_expsym_cmds_F77=
15068
always_export_symbols_F77=no
15069
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15070
# include_expsyms should be a list of space-separated symbols to be *always*
15071
# included in the symbol list
15072
include_expsyms_F77=
15073
# exclude_expsyms can be an extended regexp of symbols to exclude
15074
# it will be wrapped by ` (' and `)$', so one must not match beginning or
15075
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15076
# as well as any symbol that contains `d'.
15077
exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15078
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15079
# platforms (ab)use it in PIC code, but their linkers get confused if
15080
# the symbol is explicitly referenced. Since portable code cannot
15081
# rely on this symbol name, it's probably fine to never include it in
15082
# preloaded symbol tables.
15083
extract_expsyms_cmds=
15086
cygwin* | mingw* | pw32*)
15087
# FIXME: the MSVC++ port hasn't been tested in a loooong time
15088
# When not using gcc, we currently assume that we are using
15089
# Microsoft Visual C++.
15090
if test "$GCC" != yes; then
15100
if test "$with_gnu_ld" = yes; then
15101
# If archive_cmds runs LD, not CC, wlarc should be empty
15104
# See if GNU ld supports shared libraries.
15106
aix3* | aix4* | aix5*)
15107
# On AIX/PPC, the GNU linker is very broken
15108
if test "$host_cpu" != ia64; then
15112
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15113
*** to be unable to reliably create shared libraries on AIX.
15114
*** Therefore, libtool is disabling shared libraries support. If you
15115
*** really care for shared libraries, you may want to modify your PATH
15116
*** so that a non-GNU linker is found, and then restart.
15123
archive_cmds_F77='$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)'
15124
hardcode_libdir_flag_spec_F77='-L$libdir'
15125
hardcode_minus_L_F77=yes
15127
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15128
# that the semantics of dynamic libraries on AmigaOS, at least up
15129
# to version 4, is to share data among multiple programs linked
15130
# with the same dynamic library. Since this doesn't match the
15131
# behavior of shared libraries on other platforms, we can't use
15137
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15138
allow_undefined_flag_F77=unsupported
15139
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15140
# support --undefined. This deserves some investigation. FIXME
15141
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15147
cygwin* | mingw* | pw32*)
15148
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15149
# as there is no search path for DLLs.
15150
hardcode_libdir_flag_spec_F77='-L$libdir'
15151
allow_undefined_flag_F77=unsupported
15152
always_export_symbols_F77=no
15153
enable_shared_with_static_runtimes_F77=yes
15154
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15156
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15157
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15158
# If the export-symbols file already is a .def file (1st line
15159
# is EXPORTS), use it as is; otherwise, prepend...
15160
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15161
cp $export_symbols $output_objdir/$soname.def;
15163
echo EXPORTS > $output_objdir/$soname.def;
15164
cat $export_symbols >> $output_objdir/$soname.def;
15166
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15173
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15174
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15177
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15178
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15183
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15187
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15188
*** create shared libraries on Solaris systems. Therefore, libtool
15189
*** is disabling shared libraries support. We urge you to upgrade GNU
15190
*** binutils to release 2.9.1 or newer. Another option is to modify
15191
*** your PATH or compiler configuration so that the native linker is
15192
*** used, and then restart.
15195
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15196
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15197
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15204
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15206
hardcode_direct_F77=yes
15207
hardcode_shlibpath_var_F77=no
15211
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15212
tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15213
archive_cmds_F77="$tmp_archive_cmds"
15214
supports_anon_versioning=no
15215
case `$LD -v 2>/dev/null` in
15216
*\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15217
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15218
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15219
*\ 2.11.*) ;; # other 2.11 versions
15220
*) supports_anon_versioning=yes ;;
15222
if test $supports_anon_versioning = yes; then
15223
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15224
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15225
$echo "local: *; };" >> $output_objdir/$libname.ver~
15226
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15228
archive_expsym_cmds_F77="$tmp_archive_cmds"
15236
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15237
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15238
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15245
if test "$ld_shlibs_F77" = yes; then
15246
runpath_var=LD_RUN_PATH
15247
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15248
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15249
# ancient GNU ld didn't support --whole-archive et. al.
15250
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15251
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15253
whole_archive_flag_spec_F77=
15257
# PORTME fill in a description of your system's linker (not GNU ld)
15260
allow_undefined_flag_F77=unsupported
15261
always_export_symbols_F77=yes
15262
archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
15263
# Note: this linker hardcodes the directories in LIBPATH if there
15264
# are no directories specified by -L.
15265
hardcode_minus_L_F77=yes
15266
if test "$GCC" = yes && test -z "$link_static_flag"; then
15267
# Neither direct hardcoding nor static linking is supported with a
15269
hardcode_direct_F77=unsupported
15274
if test "$host_cpu" = ia64; then
15275
# On IA64, the linker does run time linking by default, so we don't
15276
# have to do anything special.
15277
aix_use_runtimelinking=no
15278
exp_sym_flag='-Bexport'
15281
# If we're using GNU nm, then we don't want the "-C" option.
15282
# -C means demangle to AIX nm, but means don't demangle with GNU nm
15283
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15284
export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15286
export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15288
aix_use_runtimelinking=no
15290
# Test if we are trying to use run time linking or normal
15291
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15292
# need to do runtime linking.
15293
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15294
for ld_flag in $LDFLAGS; do
15295
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15296
aix_use_runtimelinking=yes
15302
exp_sym_flag='-bexport'
15303
no_entry_flag='-bnoentry'
15306
# When large executables or shared objects are built, AIX ld can
15307
# have problems creating the table of contents. If linking a library
15308
# or program results in "error TOC overflow" add -mminimal-toc to
15309
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15310
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15312
archive_cmds_F77=''
15313
hardcode_direct_F77=yes
15314
hardcode_libdir_separator_F77=':'
15315
link_all_deplibs_F77=yes
15317
if test "$GCC" = yes; then
15318
case $host_os in aix4.012|aix4.012.*)
15319
# We only want to do this on AIX 4.2 and lower, the check
15320
# below for broken collect2 doesn't work under 4.3+
15321
collect2name=`${CC} -print-prog-name=collect2`
15322
if test -f "$collect2name" && \
15323
strings "$collect2name" | grep resolve_lib_name >/dev/null
15325
# We have reworked collect2
15326
hardcode_direct_F77=yes
15328
# We have old collect2
15329
hardcode_direct_F77=unsupported
15330
# It fails to find uninstalled libraries when the uninstalled
15331
# path is not listed in the libpath. Setting hardcode_minus_L
15332
# to unsupported forces relinking
15333
hardcode_minus_L_F77=yes
15334
hardcode_libdir_flag_spec_F77='-L$libdir'
15335
hardcode_libdir_separator_F77=
15338
shared_flag='-shared'
15341
if test "$host_cpu" = ia64; then
15342
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15343
# chokes on -Wl,-G. The following line is correct:
15346
if test "$aix_use_runtimelinking" = yes; then
15347
shared_flag='${wl}-G'
15349
shared_flag='${wl}-bM:SRE'
15354
# It seems that -bexpall does not export symbols beginning with
15355
# underscore (_), so it is better to generate a list of symbols to export.
15356
always_export_symbols_F77=yes
15357
if test "$aix_use_runtimelinking" = yes; then
15358
# Warning - without using the other runtime loading flags (-brtl),
15359
# -berok will link without error, but may produce a broken library.
15360
allow_undefined_flag_F77='-berok'
15361
# Determine the default libpath from the value encoded in an empty executable.
15362
cat >conftest.$ac_ext <<_ACEOF
15367
rm -f conftest.$ac_objext conftest$ac_exeext
15368
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15369
(eval $ac_link) 2>conftest.er1
15371
grep -v '^ *+' conftest.er1 >conftest.err
15373
cat conftest.err >&5
15374
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15375
(exit $ac_status); } &&
15376
{ ac_try='test -z "$ac_f77_werror_flag"
15377
|| test ! -s conftest.err'
15378
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15379
(eval $ac_try) 2>&5
15381
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15382
(exit $ac_status); }; } &&
15383
{ ac_try='test -s conftest$ac_exeext'
15384
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15385
(eval $ac_try) 2>&5
15387
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15388
(exit $ac_status); }; }; then
15390
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15392
# Check for a 64-bit object if we didn't find anything.
15393
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15396
echo "$as_me: failed program was:" >&5
15397
sed 's/^/| /' conftest.$ac_ext >&5
15400
rm -f conftest.err conftest.$ac_objext \
15401
conftest$ac_exeext conftest.$ac_ext
15402
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15404
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15405
archive_expsym_cmds_F77="\$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"
15407
if test "$host_cpu" = ia64; then
15408
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15409
allow_undefined_flag_F77="-z nodefs"
15410
archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
15412
# Determine the default libpath from the value encoded in an empty executable.
15413
cat >conftest.$ac_ext <<_ACEOF
15418
rm -f conftest.$ac_objext conftest$ac_exeext
15419
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15420
(eval $ac_link) 2>conftest.er1
15422
grep -v '^ *+' conftest.er1 >conftest.err
15424
cat conftest.err >&5
15425
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15426
(exit $ac_status); } &&
15427
{ ac_try='test -z "$ac_f77_werror_flag"
15428
|| test ! -s conftest.err'
15429
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15430
(eval $ac_try) 2>&5
15432
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15433
(exit $ac_status); }; } &&
15434
{ ac_try='test -s conftest$ac_exeext'
15435
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15436
(eval $ac_try) 2>&5
15438
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15439
(exit $ac_status); }; }; then
15441
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15443
# Check for a 64-bit object if we didn't find anything.
15444
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15447
echo "$as_me: failed program was:" >&5
15448
sed 's/^/| /' conftest.$ac_ext >&5
15451
rm -f conftest.err conftest.$ac_objext \
15452
conftest$ac_exeext conftest.$ac_ext
15453
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15455
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15456
# Warning - without using the other run time loading flags,
15457
# -berok will link without error, but may produce a broken library.
15458
no_undefined_flag_F77=' ${wl}-bernotok'
15459
allow_undefined_flag_F77=' ${wl}-berok'
15460
# -bexpall does not export symbols beginning with underscore (_)
15461
always_export_symbols_F77=yes
15462
# Exported symbols can be pulled into shared objects from archives
15463
whole_archive_flag_spec_F77=' '
15464
archive_cmds_need_lc_F77=yes
15465
# This is similar to how AIX traditionally builds it's shared libraries.
15466
archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15472
archive_cmds_F77='$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)'
15473
hardcode_libdir_flag_spec_F77='-L$libdir'
15474
hardcode_minus_L_F77=yes
15475
# see comment about different semantics on the GNU ld section
15480
export_dynamic_flag_spec_F77=-rdynamic
15483
cygwin* | mingw* | pw32*)
15484
# When not using gcc, we currently assume that we are using
15485
# Microsoft Visual C++.
15486
# hardcode_libdir_flag_spec is actually meaningless, as there is
15487
# no search path for DLLs.
15488
hardcode_libdir_flag_spec_F77=' '
15489
allow_undefined_flag_F77=unsupported
15490
# Tell ltmain to make .lib files, not .a files.
15492
# Tell ltmain to make .dll files, not .so files.
15494
# FIXME: Setting linknames here is a bad hack.
15495
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15496
# The linker will automatically build a .lib file if we build a DLL.
15497
old_archive_From_new_cmds_F77='true'
15498
# FIXME: Should let the user specify the lib program.
15499
old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15500
fix_srcfile_path='`cygpath -w "$srcfile"`'
15501
enable_shared_with_static_runtimes_F77=yes
15504
darwin* | rhapsody*)
15506
rhapsody* | darwin1.[012])
15507
allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15510
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15511
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15513
case ${MACOSX_DEPLOYMENT_TARGET} in
15515
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15518
allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15524
archive_cmds_need_lc_F77=no
15525
hardcode_direct_F77=no
15526
hardcode_automatic_F77=yes
15527
hardcode_shlibpath_var_F77=unsupported
15528
whole_archive_flag_spec_F77=''
15529
link_all_deplibs_F77=yes
15530
if test "$GCC" = yes ; then
15531
output_verbose_link_cmd='echo'
15532
archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15533
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15534
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15535
archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15536
module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15538
case "$cc_basename" in
15540
output_verbose_link_cmd='echo'
15541
archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15542
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15543
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15544
archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15545
module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15555
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15556
hardcode_libdir_flag_spec_F77='-L$libdir'
15557
hardcode_shlibpath_var_F77=no
15564
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15565
# support. Future versions do this automatically, but an explicit c++rt0.o
15566
# does not break anything, and helps significantly (at the cost of a little
15569
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15570
hardcode_libdir_flag_spec_F77='-R$libdir'
15571
hardcode_direct_F77=yes
15572
hardcode_shlibpath_var_F77=no
15575
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
15577
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15578
hardcode_direct_F77=yes
15579
hardcode_minus_L_F77=yes
15580
hardcode_shlibpath_var_F77=no
15583
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15584
freebsd* | kfreebsd*-gnu)
15585
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15586
hardcode_libdir_flag_spec_F77='-R$libdir'
15587
hardcode_direct_F77=yes
15588
hardcode_shlibpath_var_F77=no
15592
if test "$GCC" = yes; then
15593
archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15595
archive_cmds_F77='$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'
15597
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15598
hardcode_libdir_separator_F77=:
15599
hardcode_direct_F77=yes
15601
# hardcode_minus_L: Not really in the search PATH,
15602
# but as the default location of the library.
15603
hardcode_minus_L_F77=yes
15604
export_dynamic_flag_spec_F77='${wl}-E'
15608
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15609
case "$host_cpu" in
15611
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15614
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15618
case "$host_cpu" in
15620
archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15623
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15627
if test "$with_gnu_ld" = no; then
15628
case "$host_cpu" in
15630
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15631
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15632
hardcode_libdir_separator_F77=:
15633
hardcode_direct_F77=no
15634
hardcode_shlibpath_var_F77=no
15637
hardcode_libdir_flag_spec_F77='-L$libdir'
15638
hardcode_direct_F77=no
15639
hardcode_shlibpath_var_F77=no
15641
# hardcode_minus_L: Not really in the search PATH,
15642
# but as the default location of the library.
15643
hardcode_minus_L_F77=yes
15646
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15647
hardcode_libdir_separator_F77=:
15648
hardcode_direct_F77=yes
15649
export_dynamic_flag_spec_F77='${wl}-E'
15651
# hardcode_minus_L: Not really in the search PATH,
15652
# but as the default location of the library.
15653
hardcode_minus_L_F77=yes
15659
irix5* | irix6* | nonstopux*)
15660
if test "$GCC" = yes; then
15661
archive_cmds_F77='$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'
15663
archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15664
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15666
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15667
hardcode_libdir_separator_F77=:
15668
link_all_deplibs_F77=yes
15672
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15673
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15675
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15677
hardcode_libdir_flag_spec_F77='-R$libdir'
15678
hardcode_direct_F77=yes
15679
hardcode_shlibpath_var_F77=no
15683
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15684
hardcode_direct_F77=yes
15685
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15686
hardcode_libdir_separator_F77=:
15687
hardcode_shlibpath_var_F77=no
15691
hardcode_direct_F77=yes
15692
hardcode_shlibpath_var_F77=no
15693
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15694
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15695
archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15696
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15697
export_dynamic_flag_spec_F77='${wl}-E'
15700
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15701
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15702
hardcode_libdir_flag_spec_F77='-R$libdir'
15705
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15706
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15713
hardcode_libdir_flag_spec_F77='-L$libdir'
15714
hardcode_minus_L_F77=yes
15715
allow_undefined_flag_F77=unsupported
15716
archive_cmds_F77='$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'
15717
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15721
if test "$GCC" = yes; then
15722
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15723
archive_cmds_F77='$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'
15725
allow_undefined_flag_F77=' -expect_unresolved \*'
15726
archive_cmds_F77='$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'
15728
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15729
hardcode_libdir_separator_F77=:
15732
osf4* | osf5*) # as osf3* with the addition of -msym flag
15733
if test "$GCC" = yes; then
15734
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15735
archive_cmds_F77='$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'
15736
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15738
allow_undefined_flag_F77=' -expect_unresolved \*'
15739
archive_cmds_F77='$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'
15740
archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15741
$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'
15743
# Both c and cxx compiler support -rpath directly
15744
hardcode_libdir_flag_spec_F77='-rpath $libdir'
15746
hardcode_libdir_separator_F77=:
15750
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15751
hardcode_shlibpath_var_F77=no
15752
export_dynamic_flag_spec_F77='${wl}-Bexport'
15753
runpath_var=LD_RUN_PATH
15754
hardcode_runpath_var=yes
15758
no_undefined_flag_F77=' -z text'
15759
if test "$GCC" = yes; then
15760
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15761
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15762
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15764
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15765
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15766
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15768
hardcode_libdir_flag_spec_F77='-R$libdir'
15769
hardcode_shlibpath_var_F77=no
15771
solaris2.[0-5] | solaris2.[0-5].*) ;;
15772
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
15773
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15775
link_all_deplibs_F77=yes
15779
if test "x$host_vendor" = xsequent; then
15780
# Use $CC to link under sequent, because it throws in some extra .o
15781
# files that make .init and .fini sections work.
15782
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15784
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15786
hardcode_libdir_flag_spec_F77='-L$libdir'
15787
hardcode_direct_F77=yes
15788
hardcode_minus_L_F77=yes
15789
hardcode_shlibpath_var_F77=no
15793
case $host_vendor in
15795
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15796
hardcode_direct_F77=yes # is this really true???
15799
## LD is ld it makes a PLAMLIB
15800
## CC just makes a GrossModule.
15801
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15802
reload_cmds_F77='$CC -r -o $output$reload_objs'
15803
hardcode_direct_F77=no
15806
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15807
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15810
runpath_var='LD_RUN_PATH'
15811
hardcode_shlibpath_var_F77=no
15815
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15816
hardcode_shlibpath_var_F77=no
15817
export_dynamic_flag_spec_F77='-Bexport'
15821
if test -d /usr/nec; then
15822
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15823
hardcode_shlibpath_var_F77=no
15824
runpath_var=LD_RUN_PATH
15825
hardcode_runpath_var=yes
15831
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15832
hardcode_direct_F77=yes
15833
hardcode_minus_L_F77=no
15834
hardcode_shlibpath_var_F77=no
15835
hardcode_runpath_var=yes
15836
runpath_var=LD_RUN_PATH
15839
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15840
no_undefined_flag_F77='${wl}-z ${wl}text'
15841
if test "$GCC" = yes; then
15842
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15844
archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15846
runpath_var='LD_RUN_PATH'
15847
hardcode_shlibpath_var_F77=no
15851
no_undefined_flag_F77=' -z text'
15852
# $CC -shared without GNU ld will not create a library from C++
15853
# object files and a static libstdc++, better avoid it by now
15854
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15855
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15856
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15857
hardcode_libdir_flag_spec_F77=
15858
hardcode_shlibpath_var_F77=no
15859
runpath_var='LD_RUN_PATH'
15863
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15864
hardcode_libdir_flag_spec_F77='-L$libdir'
15865
hardcode_shlibpath_var_F77=no
15874
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15875
echo "${ECHO_T}$ld_shlibs_F77" >&6
15876
test "$ld_shlibs_F77" = no && can_build_shared=no
15878
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15879
if test "$GCC" = yes; then
15880
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15884
# Do we need to explicitly link libc?
15886
case "x$archive_cmds_need_lc_F77" in
15888
# Assume -lc should be added
15889
archive_cmds_need_lc_F77=yes
15891
if test "$enable_shared" = yes && test "$GCC" = yes; then
15892
case $archive_cmds_F77 in
15894
# FIXME: we may have to deal with multi-command sequences.
15897
# Test whether the compiler implicitly links with -lc since on some
15898
# systems, -lgcc has to come before -lc. If gcc already passes -lc
15899
# to ld, don't add -lc before -lgcc.
15900
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15901
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15903
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15905
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15906
(eval $ac_compile) 2>&5
15908
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15909
(exit $ac_status); } 2>conftest.err; then
15912
libobjs=conftest.$ac_objext
15914
wl=$lt_prog_compiler_wl_F77
15920
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15921
allow_undefined_flag_F77=
15922
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15923
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15925
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15926
(exit $ac_status); }
15928
archive_cmds_need_lc_F77=no
15930
archive_cmds_need_lc_F77=yes
15932
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15934
cat conftest.err 1>&5
15937
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15938
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
15945
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15946
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15947
library_names_spec=
15948
libname_spec='lib$name'
15952
postuninstall_cmds=
15956
shlibpath_overrides_runpath=unknown
15958
dynamic_linker="$host_os ld.so"
15959
sys_lib_dlsearch_path_spec="/lib /usr/lib"
15960
if test "$GCC" = yes; then
15961
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15962
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15963
# if the path contains ";" then we assume it to be the separator
15964
# otherwise default to the standard path separator (i.e. ":") - it is
15965
# assumed that no part of a normal pathname contains ";" but that should
15966
# okay in the real world where ";" in dirpaths is itself problematic.
15967
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15969
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15972
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15974
need_lib_prefix=unknown
15975
hardcode_into_libs=no
15977
# when you set need_version to no, make sure it does not cause -set_version
15978
# flags to be left without arguments
15979
need_version=unknown
15984
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15985
shlibpath_var=LIBPATH
15987
# AIX 3 has no versioning support, so we append a major version to the name.
15988
soname_spec='${libname}${release}${shared_ext}$major'
15995
hardcode_into_libs=yes
15996
if test "$host_cpu" = ia64; then
15997
# AIX 5 supports IA64
15998
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15999
shlibpath_var=LD_LIBRARY_PATH
16001
# With GCC up to 2.95.x, collect2 would create an import file
16002
# for dependence libraries. The import file would start with
16003
# the line `#! .'. This would cause the generated library to
16004
# depend on `.', always an invalid library. This was fixed in
16005
# development snapshots of GCC prior to 3.0.
16007
aix4 | aix4.[01] | aix4.[01].*)
16008
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16010
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16013
can_build_shared=no
16017
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16018
# soname into executable. Probably we can add versioning support to
16019
# collect2, so additional links can be useful in future.
16020
if test "$aix_use_runtimelinking" = yes; then
16021
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
16022
# instead of lib<name>.a to let people know that these are not
16023
# typical AIX shared libraries.
16024
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16026
# We preserve .a as extension for shared libraries through AIX4.2
16027
# and later when we are not doing run time linking.
16028
library_names_spec='${libname}${release}.a $libname.a'
16029
soname_spec='${libname}${release}${shared_ext}$major'
16031
shlibpath_var=LIBPATH
16036
library_names_spec='$libname.ixlibrary $libname.a'
16037
# Create ${libname}_ixlibrary.a entries in /sys/libs.
16038
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'
16042
library_names_spec='${libname}${shared_ext}'
16043
dynamic_linker="$host_os ld.so"
16044
shlibpath_var=LIBRARY_PATH
16050
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16051
soname_spec='${libname}${release}${shared_ext}$major'
16052
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16053
shlibpath_var=LD_LIBRARY_PATH
16054
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16055
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16056
# the default ld.so.conf also contains /usr/contrib/lib and
16057
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16058
# libtool to hard-code these into programs
16061
cygwin* | mingw* | pw32*)
16062
version_type=windows
16067
case $GCC,$host_os in
16068
yes,cygwin* | yes,mingw* | yes,pw32*)
16069
library_names_spec='$libname.dll.a'
16070
# DLL is installed to $(libdir)/../bin by postinstall_cmds
16071
postinstall_cmds='base_file=`basename \${file}`~
16072
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16073
dldir=$destdir/`dirname \$dlpath`~
16074
test -d \$dldir || mkdir -p \$dldir~
16075
$install_prog $dir/$dlname \$dldir/$dlname'
16076
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16077
dlpath=$dir/\$dldll~
16079
shlibpath_overrides_runpath=yes
16083
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
16084
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16085
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16088
# MinGW DLLs use traditional 'lib' prefix
16089
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16090
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16091
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16092
# It is most probably a Windows format PATH printed by
16093
# mingw gcc, but we are running on Cygwin. Gcc prints its search
16094
# path with ; separators, and with drive letters. We can handle the
16095
# drive letters (cygwin fileutils understands them), so leave them,
16096
# especially as we might pass files found there to a mingw objdump,
16097
# which wouldn't understand a cygwinified path. Ahh.
16098
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16100
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16104
# pw32 DLLs use 'pw' prefix rather than 'lib'
16105
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16111
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16114
dynamic_linker='Win32 ld.exe'
16115
# FIXME: first we should search . and the directory the executable is in
16119
darwin* | rhapsody*)
16120
dynamic_linker="$host_os dyld"
16121
version_type=darwin
16124
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16125
soname_spec='${libname}${release}${major}$shared_ext'
16126
shlibpath_overrides_runpath=yes
16127
shlibpath_var=DYLD_LIBRARY_PATH
16128
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16129
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16130
if test "$GCC" = yes; then
16131
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
16133
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16135
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16142
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16143
soname_spec='${libname}${release}${shared_ext}$major'
16144
shlibpath_var=LD_LIBRARY_PATH
16155
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16156
soname_spec='${libname}${release}${shared_ext}$major'
16157
shlibpath_var=LD_LIBRARY_PATH
16158
shlibpath_overrides_runpath=no
16159
hardcode_into_libs=yes
16160
dynamic_linker='GNU ld.so'
16164
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16165
version_type=freebsd-$objformat
16166
case $version_type in
16168
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16173
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16177
shlibpath_var=LD_LIBRARY_PATH
16180
shlibpath_overrides_runpath=yes
16182
freebsd3.01* | freebsdelf3.01*)
16183
shlibpath_overrides_runpath=yes
16184
hardcode_into_libs=yes
16187
shlibpath_overrides_runpath=no
16188
hardcode_into_libs=yes
16197
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16198
soname_spec='${libname}${release}${shared_ext}$major'
16199
shlibpath_var=LD_LIBRARY_PATH
16200
hardcode_into_libs=yes
16203
hpux9* | hpux10* | hpux11*)
16204
# Give a soname corresponding to the major version so that dld.sl refuses to
16205
# link against other versions.
16209
case "$host_cpu" in
16212
hardcode_into_libs=yes
16213
dynamic_linker="$host_os dld.so"
16214
shlibpath_var=LD_LIBRARY_PATH
16215
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16216
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16217
soname_spec='${libname}${release}${shared_ext}$major'
16218
if test "X$HPUX_IA64_MODE" = X32; then
16219
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16221
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16223
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16227
hardcode_into_libs=yes
16228
dynamic_linker="$host_os dld.sl"
16229
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16230
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16231
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16232
soname_spec='${libname}${release}${shared_ext}$major'
16233
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16234
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16238
dynamic_linker="$host_os dld.sl"
16239
shlibpath_var=SHLIB_PATH
16240
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16241
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16242
soname_spec='${libname}${release}${shared_ext}$major'
16245
# HP-UX runs *really* slowly unless shared libraries are mode 555.
16246
postinstall_cmds='chmod 555 $lib'
16249
irix5* | irix6* | nonstopux*)
16251
nonstopux*) version_type=nonstopux ;;
16253
if test "$lt_cv_prog_gnu_ld" = yes; then
16261
soname_spec='${libname}${release}${shared_ext}$major'
16262
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16264
irix5* | nonstopux*)
16265
libsuff= shlibsuff=
16268
case $LD in # libtool.m4 will add one of these switches to LD
16269
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16270
libsuff= shlibsuff= libmagic=32-bit;;
16271
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16272
libsuff=32 shlibsuff=N32 libmagic=N32;;
16273
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16274
libsuff=64 shlibsuff=64 libmagic=64-bit;;
16275
*) libsuff= shlibsuff= libmagic=never-match;;
16279
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16280
shlibpath_overrides_runpath=no
16281
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16282
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16283
hardcode_into_libs=yes
16286
# No shared lib support for Linux oldld, aout, or coff.
16287
linux*oldld* | linux*aout* | linux*coff*)
16291
# This must be Linux ELF.
16296
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16297
soname_spec='${libname}${release}${shared_ext}$major'
16298
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16299
shlibpath_var=LD_LIBRARY_PATH
16300
shlibpath_overrides_runpath=no
16301
# This implies no fast_install, which is unacceptable.
16302
# Some rework will be needed to allow for fast_install
16303
# before this can be enabled.
16304
hardcode_into_libs=yes
16306
# Append ld.so.conf contents to the search path
16307
if test -f /etc/ld.so.conf; then
16308
lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
16309
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16312
# We used to test for /lib/ld.so.1 and disable shared libraries on
16313
# powerpc, because MkLinux only supported shared libraries with the
16314
# GNU dynamic linker. Since this was broken with cross compilers,
16315
# most powerpc-linux boxes support dynamic linking these days and
16316
# people can always --disable-shared, the test was removed, and we
16317
# assume the GNU/Linux dynamic linker is in use.
16318
dynamic_linker='GNU/Linux ld.so'
16325
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16326
soname_spec='${libname}${release}${shared_ext}$major'
16327
shlibpath_var=LD_LIBRARY_PATH
16328
shlibpath_overrides_runpath=no
16329
hardcode_into_libs=yes
16330
dynamic_linker='GNU ld.so'
16337
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16338
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16339
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16340
dynamic_linker='NetBSD (a.out) ld.so'
16342
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16343
soname_spec='${libname}${release}${shared_ext}$major'
16344
dynamic_linker='NetBSD ld.elf_so'
16346
shlibpath_var=LD_LIBRARY_PATH
16347
shlibpath_overrides_runpath=yes
16348
hardcode_into_libs=yes
16353
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16354
shlibpath_var=LD_LIBRARY_PATH
16355
shlibpath_overrides_runpath=yes
16362
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16363
soname_spec='${libname}${release}${shared_ext}$major'
16364
shlibpath_var=LD_LIBRARY_PATH
16365
shlibpath_overrides_runpath=yes
16372
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16373
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16374
shlibpath_var=LD_LIBRARY_PATH
16375
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16377
openbsd2.[89] | openbsd2.[89].*)
16378
shlibpath_overrides_runpath=no
16381
shlibpath_overrides_runpath=yes
16385
shlibpath_overrides_runpath=yes
16390
libname_spec='$name'
16393
library_names_spec='$libname${shared_ext} $libname.a'
16394
dynamic_linker='OS/2 ld.exe'
16395
shlibpath_var=LIBPATH
16398
osf3* | osf4* | osf5*)
16402
soname_spec='${libname}${release}${shared_ext}$major'
16403
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16404
shlibpath_var=LD_LIBRARY_PATH
16405
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16406
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16411
soname_spec='${libname}${release}${shared_ext}$major'
16412
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16413
shlibpath_var=LD_LIBRARY_PATH
16420
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16421
soname_spec='${libname}${release}${shared_ext}$major'
16422
shlibpath_var=LD_LIBRARY_PATH
16423
shlibpath_overrides_runpath=yes
16424
hardcode_into_libs=yes
16425
# ldd complains unless libraries are executable
16426
postinstall_cmds='chmod +x $lib'
16431
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16432
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16433
shlibpath_var=LD_LIBRARY_PATH
16434
shlibpath_overrides_runpath=yes
16435
if test "$with_gnu_ld" = yes; then
16441
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16443
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16444
soname_spec='${libname}${release}${shared_ext}$major'
16445
shlibpath_var=LD_LIBRARY_PATH
16446
case $host_vendor in
16448
shlibpath_overrides_runpath=no
16450
export_dynamic_flag_spec='${wl}-Blargedynsym'
16451
runpath_var=LD_RUN_PATH
16459
shlibpath_overrides_runpath=no
16460
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16466
if test -d /usr/nec ;then
16468
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16469
soname_spec='$libname${shared_ext}.$major'
16470
shlibpath_var=LD_LIBRARY_PATH
16476
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16477
soname_spec='${libname}${release}${shared_ext}$major'
16478
shlibpath_var=LD_LIBRARY_PATH
16485
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16486
echo "${ECHO_T}$dynamic_linker" >&6
16487
test "$dynamic_linker" = no && can_build_shared=no
16489
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16490
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16491
hardcode_action_F77=
16492
if test -n "$hardcode_libdir_flag_spec_F77" || \
16493
test -n "$runpath_var_F77" || \
16494
test "X$hardcode_automatic_F77" = "Xyes" ; then
16496
# We can hardcode non-existant directories.
16497
if test "$hardcode_direct_F77" != no &&
16498
# If the only mechanism to avoid hardcoding is shlibpath_var, we
16499
# have to relink, otherwise we might link with an installed library
16500
# when we should be linking with a yet-to-be-installed one
16501
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16502
test "$hardcode_minus_L_F77" != no; then
16503
# Linking always hardcodes the temporary library directory.
16504
hardcode_action_F77=relink
16506
# We can link without hardcoding, and we can hardcode nonexisting dirs.
16507
hardcode_action_F77=immediate
16510
# We cannot hardcode anything, or else we can only hardcode existing
16512
hardcode_action_F77=unsupported
16514
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16515
echo "${ECHO_T}$hardcode_action_F77" >&6
16517
if test "$hardcode_action_F77" = relink; then
16518
# Fast installation is not supported
16519
enable_fast_install=no
16520
elif test "$shlibpath_overrides_runpath" = yes ||
16521
test "$enable_shared" = no; then
16522
# Fast installation is not necessary
16523
enable_fast_install=needless
16528
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16529
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16530
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16531
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16532
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16533
echo "$as_me:$LINENO: result: yes" >&5
16534
echo "${ECHO_T}yes" >&6
16536
# FIXME - insert some real tests, host_os isn't really good enough
16539
if test -n "$STRIP" ; then
16540
striplib="$STRIP -x"
16541
echo "$as_me:$LINENO: result: yes" >&5
16542
echo "${ECHO_T}yes" >&6
16544
echo "$as_me:$LINENO: result: no" >&5
16545
echo "${ECHO_T}no" >&6
16549
echo "$as_me:$LINENO: result: no" >&5
16550
echo "${ECHO_T}no" >&6
16557
# The else clause should only fire when bootstrapping the
16558
# libtool distribution, otherwise you forgot to ship ltmain.sh
16559
# with your package, and you will get complaints that there are
16560
# no rules to generate ltmain.sh.
16561
if test -f "$ltmain"; then
16562
# See if we are running on zsh, and set the options which allow our commands through
16563
# without removal of \ escapes.
16564
if test -n "${ZSH_VERSION+set}" ; then
16565
setopt NO_GLOB_SUBST
16567
# Now quote all the things that may contain metacharacters while being
16568
# careful not to overquote the AC_SUBSTed values. We take copies of the
16569
# variables and quote the copies for generation of the libtool script.
16570
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
16572
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16573
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16574
deplibs_check_method reload_flag reload_cmds need_locks \
16575
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16576
lt_cv_sys_global_symbol_to_c_name_address \
16577
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16578
old_postinstall_cmds old_postuninstall_cmds \
16582
lt_prog_compiler_wl_F77 \
16583
lt_prog_compiler_pic_F77 \
16584
lt_prog_compiler_static_F77 \
16585
lt_prog_compiler_no_builtin_flag_F77 \
16586
export_dynamic_flag_spec_F77 \
16587
thread_safe_flag_spec_F77 \
16588
whole_archive_flag_spec_F77 \
16589
enable_shared_with_static_runtimes_F77 \
16590
old_archive_cmds_F77 \
16591
old_archive_from_new_cmds_F77 \
16592
predep_objects_F77 \
16593
postdep_objects_F77 \
16596
compiler_lib_search_path_F77 \
16598
archive_expsym_cmds_F77 \
16599
postinstall_cmds_F77 \
16600
postuninstall_cmds_F77 \
16601
old_archive_from_expsyms_cmds_F77 \
16602
allow_undefined_flag_F77 \
16603
no_undefined_flag_F77 \
16604
export_symbols_cmds_F77 \
16605
hardcode_libdir_flag_spec_F77 \
16606
hardcode_libdir_flag_spec_ld_F77 \
16607
hardcode_libdir_separator_F77 \
16608
hardcode_automatic_F77 \
16610
module_expsym_cmds_F77 \
16611
lt_cv_prog_compiler_c_o_F77 \
16612
exclude_expsyms_F77 \
16613
include_expsyms_F77; do
16616
old_archive_cmds_F77 | \
16617
old_archive_from_new_cmds_F77 | \
16618
archive_cmds_F77 | \
16619
archive_expsym_cmds_F77 | \
16620
module_cmds_F77 | \
16621
module_expsym_cmds_F77 | \
16622
old_archive_from_expsyms_cmds_F77 | \
16623
export_symbols_cmds_F77 | \
16624
extract_expsyms_cmds | reload_cmds | finish_cmds | \
16625
postinstall_cmds | postuninstall_cmds | \
16626
old_postinstall_cmds | old_postuninstall_cmds | \
16627
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16628
# Double-quote double-evaled strings.
16629
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16632
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16638
*'\$0 --fallback-echo"')
16639
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16645
cat <<__EOF__ >> "$cfgfile"
16646
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16648
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16650
# Shell to use when invoking shell scripts.
16653
# Whether or not to build shared libraries.
16654
build_libtool_libs=$enable_shared
16656
# Whether or not to build static libraries.
16657
build_old_libs=$enable_static
16659
# Whether or not to add -lc for building shared libraries.
16660
build_libtool_need_lc=$archive_cmds_need_lc_F77
16662
# Whether or not to disallow shared libs when runtime libs are static
16663
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16665
# Whether or not to optimize for fast installation.
16666
fast_install=$enable_fast_install
16669
host_alias=$host_alias
16672
# An echo program that does not interpret backslashes.
16677
AR_FLAGS=$lt_AR_FLAGS
16682
# A language-specific compiler.
16683
CC=$lt_compiler_F77
16685
# Is the compiler the GNU C compiler?
16691
# The linker used to build libraries.
16694
# Whether we need hard or soft links.
16697
# A BSD-compatible nm program.
16700
# A symbol stripping program
16703
# Used to examine libraries when file_magic_cmd begins "file"
16704
MAGIC_CMD=$MAGIC_CMD
16706
# Used on cygwin: DLL creation program.
16709
# Used on cygwin: object dumper.
16712
# Used on cygwin: assembler.
16715
# The name of the directory that contains temporary libtool files.
16718
# How to create reloadable object files.
16719
reload_flag=$lt_reload_flag
16720
reload_cmds=$lt_reload_cmds
16722
# How to pass a linker flag through the compiler.
16723
wl=$lt_lt_prog_compiler_wl_F77
16725
# Object file suffix (normally "o").
16726
objext="$ac_objext"
16728
# Old archive suffix (normally "a").
16731
# Shared library suffix (normally ".so").
16732
shrext_cmds='$shrext_cmds'
16734
# Executable file suffix (normally "").
16737
# Additional compiler flags for building library objects.
16738
pic_flag=$lt_lt_prog_compiler_pic_F77
16741
# What is the maximum length of a command?
16742
max_cmd_len=$lt_cv_sys_max_cmd_len
16744
# Does compiler simultaneously support -c and -o options?
16745
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16747
# Must we lock files when doing compilation ?
16748
need_locks=$lt_need_locks
16750
# Do we need the lib prefix for modules?
16751
need_lib_prefix=$need_lib_prefix
16753
# Do we need a version for libraries?
16754
need_version=$need_version
16756
# Whether dlopen is supported.
16757
dlopen_support=$enable_dlopen
16759
# Whether dlopen of programs is supported.
16760
dlopen_self=$enable_dlopen_self
16762
# Whether dlopen of statically linked programs is supported.
16763
dlopen_self_static=$enable_dlopen_self_static
16765
# Compiler flag to prevent dynamic linking.
16766
link_static_flag=$lt_lt_prog_compiler_static_F77
16768
# Compiler flag to turn off builtin functions.
16769
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16771
# Compiler flag to allow reflexive dlopens.
16772
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16774
# Compiler flag to generate shared objects directly from archives.
16775
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16777
# Compiler flag to generate thread-safe objects.
16778
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16780
# Library versioning type.
16781
version_type=$version_type
16783
# Format of library name prefix.
16784
libname_spec=$lt_libname_spec
16786
# List of archive names. First name is the real one, the rest are links.
16787
# The last name is the one that the linker finds with -lNAME.
16788
library_names_spec=$lt_library_names_spec
16790
# The coded name of the library, if different from the real name.
16791
soname_spec=$lt_soname_spec
16793
# Commands used to build and install an old-style archive.
16795
old_archive_cmds=$lt_old_archive_cmds_F77
16796
old_postinstall_cmds=$lt_old_postinstall_cmds
16797
old_postuninstall_cmds=$lt_old_postuninstall_cmds
16799
# Create an old-style archive from a shared archive.
16800
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16802
# Create a temporary old-style archive to link instead of a shared archive.
16803
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16805
# Commands used to build and install a shared archive.
16806
archive_cmds=$lt_archive_cmds_F77
16807
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16808
postinstall_cmds=$lt_postinstall_cmds
16809
postuninstall_cmds=$lt_postuninstall_cmds
16811
# Commands used to build a loadable module (assumed same as above if empty)
16812
module_cmds=$lt_module_cmds_F77
16813
module_expsym_cmds=$lt_module_expsym_cmds_F77
16815
# Commands to strip libraries.
16816
old_striplib=$lt_old_striplib
16817
striplib=$lt_striplib
16819
# Dependencies to place before the objects being linked to create a
16821
predep_objects=$lt_predep_objects_F77
16823
# Dependencies to place after the objects being linked to create a
16825
postdep_objects=$lt_postdep_objects_F77
16827
# Dependencies to place before the objects being linked to create a
16829
predeps=$lt_predeps_F77
16831
# Dependencies to place after the objects being linked to create a
16833
postdeps=$lt_postdeps_F77
16835
# The library search path used internally by the compiler when linking
16836
# a shared library.
16837
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16839
# Method to check whether dependent libraries are shared objects.
16840
deplibs_check_method=$lt_deplibs_check_method
16842
# Command to use when deplibs_check_method == file_magic.
16843
file_magic_cmd=$lt_file_magic_cmd
16845
# Flag that allows shared libraries with undefined symbols to be built.
16846
allow_undefined_flag=$lt_allow_undefined_flag_F77
16848
# Flag that forces no undefined symbols.
16849
no_undefined_flag=$lt_no_undefined_flag_F77
16851
# Commands used to finish a libtool library installation in a directory.
16852
finish_cmds=$lt_finish_cmds
16854
# Same as above, but a single script fragment to be evaled but not shown.
16855
finish_eval=$lt_finish_eval
16857
# Take the output of nm and produce a listing of raw symbols and C names.
16858
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16860
# Transform the output of nm in a proper C declaration
16861
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16863
# Transform the output of nm in a C name address pair
16864
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16866
# This is the shared library runtime path variable.
16867
runpath_var=$runpath_var
16869
# This is the shared library path variable.
16870
shlibpath_var=$shlibpath_var
16872
# Is shlibpath searched before the hard-coded library search path?
16873
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16875
# How to hardcode a shared library path into an executable.
16876
hardcode_action=$hardcode_action_F77
16878
# Whether we should hardcode library paths into libraries.
16879
hardcode_into_libs=$hardcode_into_libs
16881
# Flag to hardcode \$libdir into a binary during linking.
16882
# This must work even if \$libdir does not exist.
16883
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16885
# If ld is used when linking, flag to hardcode \$libdir into
16886
# a binary during linking. This must work even if \$libdir does
16888
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16890
# Whether we need a single -rpath flag with a separated argument.
16891
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16893
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16894
# resulting binary.
16895
hardcode_direct=$hardcode_direct_F77
16897
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16898
# resulting binary.
16899
hardcode_minus_L=$hardcode_minus_L_F77
16901
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16902
# the resulting binary.
16903
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16905
# Set to yes if building a shared library automatically hardcodes DIR into the library
16906
# and all subsequent libraries and executables linked against it.
16907
hardcode_automatic=$hardcode_automatic_F77
16909
# Variables whose values should be saved in libtool wrapper scripts and
16910
# restored at relink time.
16911
variables_saved_for_relink="$variables_saved_for_relink"
16913
# Whether libtool must link a program against all its dependency libraries.
16914
link_all_deplibs=$link_all_deplibs_F77
16916
# Compile-time system search path for libraries
16917
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16919
# Run-time system search path for libraries
16920
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16922
# Fix the shell variable \$srcfile for the compiler.
16923
fix_srcfile_path="$fix_srcfile_path_F77"
16925
# Set to yes if exported symbols are required.
16926
always_export_symbols=$always_export_symbols_F77
16928
# The commands to list exported symbols.
16929
export_symbols_cmds=$lt_export_symbols_cmds_F77
16931
# The commands to extract the exported symbol list from a shared archive.
16932
extract_expsyms_cmds=$lt_extract_expsyms_cmds
16934
# Symbols that should not be listed in the preloaded symbols.
16935
exclude_expsyms=$lt_exclude_expsyms_F77
16937
# Symbols that must always be exported.
16938
include_expsyms=$lt_include_expsyms_F77
16940
# ### END LIBTOOL TAG CONFIG: $tagname
16946
# If there is no Makefile yet, we rely on a make rule to execute
16947
# `config.status --recheck' to rerun these tests and create the
16948
# libtool script then.
16949
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16950
if test -f "$ltmain_in"; then
16951
test -f Makefile && make "$ltmain"
16957
ac_cpp='$CPP $CPPFLAGS'
16958
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16959
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16960
ac_compiler_gnu=$ac_cv_c_compiler_gnu
16970
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16974
# Source file extension for Java test sources.
16977
# Object file extension for compiled Java test sources.
16981
# Code to be used in simple compile tests
16982
lt_simple_compile_test_code="class foo {}\n"
16984
# Code to be used in simple link tests
16985
lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
16987
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16989
# If no C compiler was specified, use CC.
16992
# Allow CC to be a program name with arguments.
16996
# Allow CC to be a program name with arguments.
17002
# GCJ did not exist at the time GCC didn't implicitly link libc in.
17003
archive_cmds_need_lc_GCJ=no
17006
## There is no encapsulation within the following macros, do not change
17007
## the running order or otherwise move them around unless you know exactly
17008
## what you are doing...
17010
lt_prog_compiler_no_builtin_flag_GCJ=
17012
if test "$GCC" = yes; then
17013
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17016
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17017
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
17018
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17019
echo $ECHO_N "(cached) $ECHO_C" >&6
17021
lt_cv_prog_compiler_rtti_exceptions=no
17022
ac_outfile=conftest.$ac_objext
17023
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17024
lt_compiler_flag="-fno-rtti -fno-exceptions"
17025
# Insert the option either (1) after the last *FLAGS variable, or
17026
# (2) before a word containing "conftest.", or (3) at the end.
17027
# Note that $ac_compile itself does not contain backslashes and begins
17028
# with a dollar sign (not a hyphen), so the echo should work correctly.
17029
# The option is referenced via a variable to avoid confusing sed.
17030
lt_compile=`echo "$ac_compile" | $SED \
17031
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17032
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17033
-e 's:$: $lt_compiler_flag:'`
17034
(eval echo "\"\$as_me:17034: $lt_compile\"" >&5)
17035
(eval "$lt_compile" 2>conftest.err)
17037
cat conftest.err >&5
17038
echo "$as_me:17038: \$? = $ac_status" >&5
17039
if (exit $ac_status) && test -s "$ac_outfile"; then
17040
# The compiler can only warn and ignore the option if not recognized
17041
# So say no if there are warnings
17042
if test ! -s conftest.err; then
17043
lt_cv_prog_compiler_rtti_exceptions=yes
17049
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17050
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
17052
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17053
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17060
lt_prog_compiler_wl_GCJ=
17061
lt_prog_compiler_pic_GCJ=
17062
lt_prog_compiler_static_GCJ=
17064
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17065
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17067
if test "$GCC" = yes; then
17068
lt_prog_compiler_wl_GCJ='-Wl,'
17069
lt_prog_compiler_static_GCJ='-static'
17073
# All AIX code is PIC.
17074
if test "$host_cpu" = ia64; then
17075
# AIX 5 now supports IA64 processor
17076
lt_prog_compiler_static_GCJ='-Bstatic'
17081
# FIXME: we need at least 68020 code to build shared libraries, but
17082
# adding the `-m68020' flag to GCC prevents building anything better,
17084
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17087
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17088
# PIC is the default for these OSes.
17091
mingw* | pw32* | os2*)
17092
# This hack is so that the source file can tell whether it is being
17093
# built for inclusion in a dll (and should export symbols for example).
17094
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17097
darwin* | rhapsody*)
17098
# PIC is the default on this platform
17099
# Common symbols not allowed in MH_DYLIB files
17100
lt_prog_compiler_pic_GCJ='-fno-common'
17104
# Just because we use GCC doesn't mean we suddenly get shared libraries
17105
# on systems that don't support them.
17106
lt_prog_compiler_can_build_shared_GCJ=no
17111
if test -d /usr/nec; then
17112
lt_prog_compiler_pic_GCJ=-Kconform_pic
17117
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17118
# not for PA HP-UX.
17119
case "$host_cpu" in
17124
lt_prog_compiler_pic_GCJ='-fPIC'
17130
lt_prog_compiler_pic_GCJ='-fPIC'
17134
# PORTME Check for flag to pass linker flags through the system compiler.
17137
lt_prog_compiler_wl_GCJ='-Wl,'
17138
if test "$host_cpu" = ia64; then
17139
# AIX 5 now supports IA64 processor
17140
lt_prog_compiler_static_GCJ='-Bstatic'
17142
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17146
# PIC is the default on this platform
17147
# Common symbols not allowed in MH_DYLIB files
17148
case "$cc_basename" in
17150
lt_prog_compiler_pic_GCJ='-qnocommon'
17151
lt_prog_compiler_wl_GCJ='-Wl,'
17156
mingw* | pw32* | os2*)
17157
# This hack is so that the source file can tell whether it is being
17158
# built for inclusion in a dll (and should export symbols for example).
17159
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17162
hpux9* | hpux10* | hpux11*)
17163
lt_prog_compiler_wl_GCJ='-Wl,'
17164
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17165
# not for PA HP-UX.
17166
case "$host_cpu" in
17171
lt_prog_compiler_pic_GCJ='+Z'
17174
# Is there a better lt_prog_compiler_static that works with the bundled CC?
17175
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17178
irix5* | irix6* | nonstopux*)
17179
lt_prog_compiler_wl_GCJ='-Wl,'
17180
# PIC (with -KPIC) is the default.
17181
lt_prog_compiler_static_GCJ='-non_shared'
17185
lt_prog_compiler_pic_GCJ='-KPIC'
17186
lt_prog_compiler_static_GCJ='-Bstatic'
17192
lt_prog_compiler_wl_GCJ='-Wl,'
17193
lt_prog_compiler_pic_GCJ='-KPIC'
17194
lt_prog_compiler_static_GCJ='-static'
17197
lt_prog_compiler_wl_GCJ='-Wl,'
17198
# All Alpha code is PIC.
17199
lt_prog_compiler_static_GCJ='-non_shared'
17204
osf3* | osf4* | osf5*)
17205
lt_prog_compiler_wl_GCJ='-Wl,'
17206
# All OSF/1 code is PIC.
17207
lt_prog_compiler_static_GCJ='-non_shared'
17211
lt_prog_compiler_pic_GCJ='-Kpic'
17212
lt_prog_compiler_static_GCJ='-dn'
17216
lt_prog_compiler_wl_GCJ='-Wl,'
17217
lt_prog_compiler_pic_GCJ='-KPIC'
17218
lt_prog_compiler_static_GCJ='-Bstatic'
17222
lt_prog_compiler_wl_GCJ='-Qoption ld '
17223
lt_prog_compiler_pic_GCJ='-PIC'
17224
lt_prog_compiler_static_GCJ='-Bstatic'
17227
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17228
lt_prog_compiler_wl_GCJ='-Wl,'
17229
lt_prog_compiler_pic_GCJ='-KPIC'
17230
lt_prog_compiler_static_GCJ='-Bstatic'
17234
if test -d /usr/nec ;then
17235
lt_prog_compiler_pic_GCJ='-Kconform_pic'
17236
lt_prog_compiler_static_GCJ='-Bstatic'
17241
lt_prog_compiler_pic_GCJ='-pic'
17242
lt_prog_compiler_static_GCJ='-Bstatic'
17246
lt_prog_compiler_can_build_shared_GCJ=no
17251
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17252
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
17255
# Check to make sure the PIC flag actually works.
17257
if test -n "$lt_prog_compiler_pic_GCJ"; then
17259
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17260
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
17261
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17262
echo $ECHO_N "(cached) $ECHO_C" >&6
17264
lt_prog_compiler_pic_works_GCJ=no
17265
ac_outfile=conftest.$ac_objext
17266
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17267
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17268
# Insert the option either (1) after the last *FLAGS variable, or
17269
# (2) before a word containing "conftest.", or (3) at the end.
17270
# Note that $ac_compile itself does not contain backslashes and begins
17271
# with a dollar sign (not a hyphen), so the echo should work correctly.
17272
# The option is referenced via a variable to avoid confusing sed.
17273
lt_compile=`echo "$ac_compile" | $SED \
17274
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17275
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17276
-e 's:$: $lt_compiler_flag:'`
17277
(eval echo "\"\$as_me:17277: $lt_compile\"" >&5)
17278
(eval "$lt_compile" 2>conftest.err)
17280
cat conftest.err >&5
17281
echo "$as_me:17281: \$? = $ac_status" >&5
17282
if (exit $ac_status) && test -s "$ac_outfile"; then
17283
# The compiler can only warn and ignore the option if not recognized
17284
# So say no if there are warnings
17285
if test ! -s conftest.err; then
17286
lt_prog_compiler_pic_works_GCJ=yes
17292
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17293
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
17295
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17296
case $lt_prog_compiler_pic_GCJ in
17298
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17301
lt_prog_compiler_pic_GCJ=
17302
lt_prog_compiler_can_build_shared_GCJ=no
17307
# For platforms which do not support PIC, -DPIC is meaningless:
17309
lt_prog_compiler_pic_GCJ=
17312
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17316
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17317
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17318
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17319
echo $ECHO_N "(cached) $ECHO_C" >&6
17321
lt_cv_prog_compiler_c_o_GCJ=no
17322
$rm -r conftest 2>/dev/null
17326
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17328
lt_compiler_flag="-o out/conftest2.$ac_objext"
17329
# Insert the option either (1) after the last *FLAGS variable, or
17330
# (2) before a word containing "conftest.", or (3) at the end.
17331
# Note that $ac_compile itself does not contain backslashes and begins
17332
# with a dollar sign (not a hyphen), so the echo should work correctly.
17333
lt_compile=`echo "$ac_compile" | $SED \
17334
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17335
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17336
-e 's:$: $lt_compiler_flag:'`
17337
(eval echo "\"\$as_me:17337: $lt_compile\"" >&5)
17338
(eval "$lt_compile" 2>out/conftest.err)
17340
cat out/conftest.err >&5
17341
echo "$as_me:17341: \$? = $ac_status" >&5
17342
if (exit $ac_status) && test -s out/conftest2.$ac_objext
17344
# The compiler can only warn and ignore the option if not recognized
17345
# So say no if there are warnings
17346
if test ! -s out/conftest.err; then
17347
lt_cv_prog_compiler_c_o_GCJ=yes
17352
# SGI C++ compiler will create directory out/ii_files/ for
17353
# template instantiation
17354
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17355
$rm out/* && rmdir out
17361
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17362
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
17365
hard_links="nottested"
17366
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17367
# do not overwrite the value of need_locks provided by the user
17368
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17369
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17372
ln conftest.a conftest.b 2>/dev/null && hard_links=no
17374
ln conftest.a conftest.b 2>&5 || hard_links=no
17375
ln conftest.a conftest.b 2>/dev/null && hard_links=no
17376
echo "$as_me:$LINENO: result: $hard_links" >&5
17377
echo "${ECHO_T}$hard_links" >&6
17378
if test "$hard_links" = no; then
17379
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17380
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17387
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17388
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17391
allow_undefined_flag_GCJ=
17392
enable_shared_with_static_runtimes_GCJ=no
17394
archive_expsym_cmds_GCJ=
17395
old_archive_From_new_cmds_GCJ=
17396
old_archive_from_expsyms_cmds_GCJ=
17397
export_dynamic_flag_spec_GCJ=
17398
whole_archive_flag_spec_GCJ=
17399
thread_safe_flag_spec_GCJ=
17400
hardcode_libdir_flag_spec_GCJ=
17401
hardcode_libdir_flag_spec_ld_GCJ=
17402
hardcode_libdir_separator_GCJ=
17403
hardcode_direct_GCJ=no
17404
hardcode_minus_L_GCJ=no
17405
hardcode_shlibpath_var_GCJ=unsupported
17406
link_all_deplibs_GCJ=unknown
17407
hardcode_automatic_GCJ=no
17409
module_expsym_cmds_GCJ=
17410
always_export_symbols_GCJ=no
17411
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17412
# include_expsyms should be a list of space-separated symbols to be *always*
17413
# included in the symbol list
17414
include_expsyms_GCJ=
17415
# exclude_expsyms can be an extended regexp of symbols to exclude
17416
# it will be wrapped by ` (' and `)$', so one must not match beginning or
17417
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17418
# as well as any symbol that contains `d'.
17419
exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17420
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17421
# platforms (ab)use it in PIC code, but their linkers get confused if
17422
# the symbol is explicitly referenced. Since portable code cannot
17423
# rely on this symbol name, it's probably fine to never include it in
17424
# preloaded symbol tables.
17425
extract_expsyms_cmds=
17428
cygwin* | mingw* | pw32*)
17429
# FIXME: the MSVC++ port hasn't been tested in a loooong time
17430
# When not using gcc, we currently assume that we are using
17431
# Microsoft Visual C++.
17432
if test "$GCC" != yes; then
17442
if test "$with_gnu_ld" = yes; then
17443
# If archive_cmds runs LD, not CC, wlarc should be empty
17446
# See if GNU ld supports shared libraries.
17448
aix3* | aix4* | aix5*)
17449
# On AIX/PPC, the GNU linker is very broken
17450
if test "$host_cpu" != ia64; then
17454
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17455
*** to be unable to reliably create shared libraries on AIX.
17456
*** Therefore, libtool is disabling shared libraries support. If you
17457
*** really care for shared libraries, you may want to modify your PATH
17458
*** so that a non-GNU linker is found, and then restart.
17465
archive_cmds_GCJ='$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)'
17466
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17467
hardcode_minus_L_GCJ=yes
17469
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17470
# that the semantics of dynamic libraries on AmigaOS, at least up
17471
# to version 4, is to share data among multiple programs linked
17472
# with the same dynamic library. Since this doesn't match the
17473
# behavior of shared libraries on other platforms, we can't use
17479
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17480
allow_undefined_flag_GCJ=unsupported
17481
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17482
# support --undefined. This deserves some investigation. FIXME
17483
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17489
cygwin* | mingw* | pw32*)
17490
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17491
# as there is no search path for DLLs.
17492
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17493
allow_undefined_flag_GCJ=unsupported
17494
always_export_symbols_GCJ=no
17495
enable_shared_with_static_runtimes_GCJ=yes
17496
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17498
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17499
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17500
# If the export-symbols file already is a .def file (1st line
17501
# is EXPORTS), use it as is; otherwise, prepend...
17502
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17503
cp $export_symbols $output_objdir/$soname.def;
17505
echo EXPORTS > $output_objdir/$soname.def;
17506
cat $export_symbols >> $output_objdir/$soname.def;
17508
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17515
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17516
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17519
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17520
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17525
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17529
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17530
*** create shared libraries on Solaris systems. Therefore, libtool
17531
*** is disabling shared libraries support. We urge you to upgrade GNU
17532
*** binutils to release 2.9.1 or newer. Another option is to modify
17533
*** your PATH or compiler configuration so that the native linker is
17534
*** used, and then restart.
17537
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17538
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17539
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17546
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17548
hardcode_direct_GCJ=yes
17549
hardcode_shlibpath_var_GCJ=no
17553
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17554
tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17555
archive_cmds_GCJ="$tmp_archive_cmds"
17556
supports_anon_versioning=no
17557
case `$LD -v 2>/dev/null` in
17558
*\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17559
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17560
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17561
*\ 2.11.*) ;; # other 2.11 versions
17562
*) supports_anon_versioning=yes ;;
17564
if test $supports_anon_versioning = yes; then
17565
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17566
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17567
$echo "local: *; };" >> $output_objdir/$libname.ver~
17568
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17570
archive_expsym_cmds_GCJ="$tmp_archive_cmds"
17578
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17579
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17580
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17587
if test "$ld_shlibs_GCJ" = yes; then
17588
runpath_var=LD_RUN_PATH
17589
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17590
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17591
# ancient GNU ld didn't support --whole-archive et. al.
17592
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17593
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17595
whole_archive_flag_spec_GCJ=
17599
# PORTME fill in a description of your system's linker (not GNU ld)
17602
allow_undefined_flag_GCJ=unsupported
17603
always_export_symbols_GCJ=yes
17604
archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
17605
# Note: this linker hardcodes the directories in LIBPATH if there
17606
# are no directories specified by -L.
17607
hardcode_minus_L_GCJ=yes
17608
if test "$GCC" = yes && test -z "$link_static_flag"; then
17609
# Neither direct hardcoding nor static linking is supported with a
17611
hardcode_direct_GCJ=unsupported
17616
if test "$host_cpu" = ia64; then
17617
# On IA64, the linker does run time linking by default, so we don't
17618
# have to do anything special.
17619
aix_use_runtimelinking=no
17620
exp_sym_flag='-Bexport'
17623
# If we're using GNU nm, then we don't want the "-C" option.
17624
# -C means demangle to AIX nm, but means don't demangle with GNU nm
17625
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17626
export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17628
export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17630
aix_use_runtimelinking=no
17632
# Test if we are trying to use run time linking or normal
17633
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17634
# need to do runtime linking.
17635
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17636
for ld_flag in $LDFLAGS; do
17637
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17638
aix_use_runtimelinking=yes
17644
exp_sym_flag='-bexport'
17645
no_entry_flag='-bnoentry'
17648
# When large executables or shared objects are built, AIX ld can
17649
# have problems creating the table of contents. If linking a library
17650
# or program results in "error TOC overflow" add -mminimal-toc to
17651
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17652
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17654
archive_cmds_GCJ=''
17655
hardcode_direct_GCJ=yes
17656
hardcode_libdir_separator_GCJ=':'
17657
link_all_deplibs_GCJ=yes
17659
if test "$GCC" = yes; then
17660
case $host_os in aix4.012|aix4.012.*)
17661
# We only want to do this on AIX 4.2 and lower, the check
17662
# below for broken collect2 doesn't work under 4.3+
17663
collect2name=`${CC} -print-prog-name=collect2`
17664
if test -f "$collect2name" && \
17665
strings "$collect2name" | grep resolve_lib_name >/dev/null
17667
# We have reworked collect2
17668
hardcode_direct_GCJ=yes
17670
# We have old collect2
17671
hardcode_direct_GCJ=unsupported
17672
# It fails to find uninstalled libraries when the uninstalled
17673
# path is not listed in the libpath. Setting hardcode_minus_L
17674
# to unsupported forces relinking
17675
hardcode_minus_L_GCJ=yes
17676
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17677
hardcode_libdir_separator_GCJ=
17680
shared_flag='-shared'
17683
if test "$host_cpu" = ia64; then
17684
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17685
# chokes on -Wl,-G. The following line is correct:
17688
if test "$aix_use_runtimelinking" = yes; then
17689
shared_flag='${wl}-G'
17691
shared_flag='${wl}-bM:SRE'
17696
# It seems that -bexpall does not export symbols beginning with
17697
# underscore (_), so it is better to generate a list of symbols to export.
17698
always_export_symbols_GCJ=yes
17699
if test "$aix_use_runtimelinking" = yes; then
17700
# Warning - without using the other runtime loading flags (-brtl),
17701
# -berok will link without error, but may produce a broken library.
17702
allow_undefined_flag_GCJ='-berok'
17703
# Determine the default libpath from the value encoded in an empty executable.
17704
cat >conftest.$ac_ext <<_ACEOF
17707
cat confdefs.h >>conftest.$ac_ext
17708
cat >>conftest.$ac_ext <<_ACEOF
17709
/* end confdefs.h. */
17719
rm -f conftest.$ac_objext conftest$ac_exeext
17720
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17721
(eval $ac_link) 2>conftest.er1
17723
grep -v '^ *+' conftest.er1 >conftest.err
17725
cat conftest.err >&5
17726
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17727
(exit $ac_status); } &&
17728
{ ac_try='test -z "$ac_c_werror_flag"
17729
|| test ! -s conftest.err'
17730
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17731
(eval $ac_try) 2>&5
17733
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17734
(exit $ac_status); }; } &&
17735
{ ac_try='test -s conftest$ac_exeext'
17736
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17737
(eval $ac_try) 2>&5
17739
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17740
(exit $ac_status); }; }; then
17742
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17744
# Check for a 64-bit object if we didn't find anything.
17745
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17748
echo "$as_me: failed program was:" >&5
17749
sed 's/^/| /' conftest.$ac_ext >&5
17752
rm -f conftest.err conftest.$ac_objext \
17753
conftest$ac_exeext conftest.$ac_ext
17754
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17756
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17757
archive_expsym_cmds_GCJ="\$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"
17759
if test "$host_cpu" = ia64; then
17760
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17761
allow_undefined_flag_GCJ="-z nodefs"
17762
archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
17764
# Determine the default libpath from the value encoded in an empty executable.
17765
cat >conftest.$ac_ext <<_ACEOF
17768
cat confdefs.h >>conftest.$ac_ext
17769
cat >>conftest.$ac_ext <<_ACEOF
17770
/* end confdefs.h. */
17780
rm -f conftest.$ac_objext conftest$ac_exeext
17781
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17782
(eval $ac_link) 2>conftest.er1
17784
grep -v '^ *+' conftest.er1 >conftest.err
17786
cat conftest.err >&5
17787
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17788
(exit $ac_status); } &&
17789
{ ac_try='test -z "$ac_c_werror_flag"
17790
|| test ! -s conftest.err'
17791
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17792
(eval $ac_try) 2>&5
17794
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17795
(exit $ac_status); }; } &&
17796
{ ac_try='test -s conftest$ac_exeext'
17797
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17798
(eval $ac_try) 2>&5
17800
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17801
(exit $ac_status); }; }; then
17803
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17805
# Check for a 64-bit object if we didn't find anything.
17806
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17809
echo "$as_me: failed program was:" >&5
17810
sed 's/^/| /' conftest.$ac_ext >&5
17813
rm -f conftest.err conftest.$ac_objext \
17814
conftest$ac_exeext conftest.$ac_ext
17815
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17817
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17818
# Warning - without using the other run time loading flags,
17819
# -berok will link without error, but may produce a broken library.
17820
no_undefined_flag_GCJ=' ${wl}-bernotok'
17821
allow_undefined_flag_GCJ=' ${wl}-berok'
17822
# -bexpall does not export symbols beginning with underscore (_)
17823
always_export_symbols_GCJ=yes
17824
# Exported symbols can be pulled into shared objects from archives
17825
whole_archive_flag_spec_GCJ=' '
17826
archive_cmds_need_lc_GCJ=yes
17827
# This is similar to how AIX traditionally builds it's shared libraries.
17828
archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17834
archive_cmds_GCJ='$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)'
17835
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17836
hardcode_minus_L_GCJ=yes
17837
# see comment about different semantics on the GNU ld section
17842
export_dynamic_flag_spec_GCJ=-rdynamic
17845
cygwin* | mingw* | pw32*)
17846
# When not using gcc, we currently assume that we are using
17847
# Microsoft Visual C++.
17848
# hardcode_libdir_flag_spec is actually meaningless, as there is
17849
# no search path for DLLs.
17850
hardcode_libdir_flag_spec_GCJ=' '
17851
allow_undefined_flag_GCJ=unsupported
17852
# Tell ltmain to make .lib files, not .a files.
17854
# Tell ltmain to make .dll files, not .so files.
17856
# FIXME: Setting linknames here is a bad hack.
17857
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17858
# The linker will automatically build a .lib file if we build a DLL.
17859
old_archive_From_new_cmds_GCJ='true'
17860
# FIXME: Should let the user specify the lib program.
17861
old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17862
fix_srcfile_path='`cygpath -w "$srcfile"`'
17863
enable_shared_with_static_runtimes_GCJ=yes
17866
darwin* | rhapsody*)
17868
rhapsody* | darwin1.[012])
17869
allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17872
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17873
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17875
case ${MACOSX_DEPLOYMENT_TARGET} in
17877
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17880
allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17886
archive_cmds_need_lc_GCJ=no
17887
hardcode_direct_GCJ=no
17888
hardcode_automatic_GCJ=yes
17889
hardcode_shlibpath_var_GCJ=unsupported
17890
whole_archive_flag_spec_GCJ=''
17891
link_all_deplibs_GCJ=yes
17892
if test "$GCC" = yes ; then
17893
output_verbose_link_cmd='echo'
17894
archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17895
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17896
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17897
archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17898
module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17900
case "$cc_basename" in
17902
output_verbose_link_cmd='echo'
17903
archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17904
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17905
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17906
archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17907
module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17917
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17918
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17919
hardcode_shlibpath_var_GCJ=no
17926
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17927
# support. Future versions do this automatically, but an explicit c++rt0.o
17928
# does not break anything, and helps significantly (at the cost of a little
17931
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17932
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17933
hardcode_direct_GCJ=yes
17934
hardcode_shlibpath_var_GCJ=no
17937
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
17939
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17940
hardcode_direct_GCJ=yes
17941
hardcode_minus_L_GCJ=yes
17942
hardcode_shlibpath_var_GCJ=no
17945
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17946
freebsd* | kfreebsd*-gnu)
17947
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17948
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17949
hardcode_direct_GCJ=yes
17950
hardcode_shlibpath_var_GCJ=no
17954
if test "$GCC" = yes; then
17955
archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17957
archive_cmds_GCJ='$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'
17959
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17960
hardcode_libdir_separator_GCJ=:
17961
hardcode_direct_GCJ=yes
17963
# hardcode_minus_L: Not really in the search PATH,
17964
# but as the default location of the library.
17965
hardcode_minus_L_GCJ=yes
17966
export_dynamic_flag_spec_GCJ='${wl}-E'
17970
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17971
case "$host_cpu" in
17973
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17976
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17980
case "$host_cpu" in
17982
archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
17985
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17989
if test "$with_gnu_ld" = no; then
17990
case "$host_cpu" in
17992
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17993
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17994
hardcode_libdir_separator_GCJ=:
17995
hardcode_direct_GCJ=no
17996
hardcode_shlibpath_var_GCJ=no
17999
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18000
hardcode_direct_GCJ=no
18001
hardcode_shlibpath_var_GCJ=no
18003
# hardcode_minus_L: Not really in the search PATH,
18004
# but as the default location of the library.
18005
hardcode_minus_L_GCJ=yes
18008
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18009
hardcode_libdir_separator_GCJ=:
18010
hardcode_direct_GCJ=yes
18011
export_dynamic_flag_spec_GCJ='${wl}-E'
18013
# hardcode_minus_L: Not really in the search PATH,
18014
# but as the default location of the library.
18015
hardcode_minus_L_GCJ=yes
18021
irix5* | irix6* | nonstopux*)
18022
if test "$GCC" = yes; then
18023
archive_cmds_GCJ='$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'
18025
archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18026
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18028
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18029
hardcode_libdir_separator_GCJ=:
18030
link_all_deplibs_GCJ=yes
18034
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18035
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18037
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18039
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18040
hardcode_direct_GCJ=yes
18041
hardcode_shlibpath_var_GCJ=no
18045
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18046
hardcode_direct_GCJ=yes
18047
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18048
hardcode_libdir_separator_GCJ=:
18049
hardcode_shlibpath_var_GCJ=no
18053
hardcode_direct_GCJ=yes
18054
hardcode_shlibpath_var_GCJ=no
18055
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18056
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18057
archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18058
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18059
export_dynamic_flag_spec_GCJ='${wl}-E'
18062
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18063
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18064
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18067
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18068
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18075
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18076
hardcode_minus_L_GCJ=yes
18077
allow_undefined_flag_GCJ=unsupported
18078
archive_cmds_GCJ='$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'
18079
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18083
if test "$GCC" = yes; then
18084
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18085
archive_cmds_GCJ='$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'
18087
allow_undefined_flag_GCJ=' -expect_unresolved \*'
18088
archive_cmds_GCJ='$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'
18090
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18091
hardcode_libdir_separator_GCJ=:
18094
osf4* | osf5*) # as osf3* with the addition of -msym flag
18095
if test "$GCC" = yes; then
18096
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18097
archive_cmds_GCJ='$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'
18098
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18100
allow_undefined_flag_GCJ=' -expect_unresolved \*'
18101
archive_cmds_GCJ='$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'
18102
archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
18103
$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'
18105
# Both c and cxx compiler support -rpath directly
18106
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18108
hardcode_libdir_separator_GCJ=:
18112
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18113
hardcode_shlibpath_var_GCJ=no
18114
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18115
runpath_var=LD_RUN_PATH
18116
hardcode_runpath_var=yes
18120
no_undefined_flag_GCJ=' -z text'
18121
if test "$GCC" = yes; then
18122
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18123
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18124
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18126
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18127
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18128
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18130
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18131
hardcode_shlibpath_var_GCJ=no
18133
solaris2.[0-5] | solaris2.[0-5].*) ;;
18134
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
18135
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18137
link_all_deplibs_GCJ=yes
18141
if test "x$host_vendor" = xsequent; then
18142
# Use $CC to link under sequent, because it throws in some extra .o
18143
# files that make .init and .fini sections work.
18144
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18146
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18148
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18149
hardcode_direct_GCJ=yes
18150
hardcode_minus_L_GCJ=yes
18151
hardcode_shlibpath_var_GCJ=no
18155
case $host_vendor in
18157
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18158
hardcode_direct_GCJ=yes # is this really true???
18161
## LD is ld it makes a PLAMLIB
18162
## CC just makes a GrossModule.
18163
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18164
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18165
hardcode_direct_GCJ=no
18168
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18169
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18172
runpath_var='LD_RUN_PATH'
18173
hardcode_shlibpath_var_GCJ=no
18177
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18178
hardcode_shlibpath_var_GCJ=no
18179
export_dynamic_flag_spec_GCJ='-Bexport'
18183
if test -d /usr/nec; then
18184
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18185
hardcode_shlibpath_var_GCJ=no
18186
runpath_var=LD_RUN_PATH
18187
hardcode_runpath_var=yes
18193
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18194
hardcode_direct_GCJ=yes
18195
hardcode_minus_L_GCJ=no
18196
hardcode_shlibpath_var_GCJ=no
18197
hardcode_runpath_var=yes
18198
runpath_var=LD_RUN_PATH
18201
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
18202
no_undefined_flag_GCJ='${wl}-z ${wl}text'
18203
if test "$GCC" = yes; then
18204
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18206
archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18208
runpath_var='LD_RUN_PATH'
18209
hardcode_shlibpath_var_GCJ=no
18213
no_undefined_flag_GCJ=' -z text'
18214
# $CC -shared without GNU ld will not create a library from C++
18215
# object files and a static libstdc++, better avoid it by now
18216
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18217
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18218
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18219
hardcode_libdir_flag_spec_GCJ=
18220
hardcode_shlibpath_var_GCJ=no
18221
runpath_var='LD_RUN_PATH'
18225
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18226
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18227
hardcode_shlibpath_var_GCJ=no
18236
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18237
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
18238
test "$ld_shlibs_GCJ" = no && can_build_shared=no
18240
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18241
if test "$GCC" = yes; then
18242
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18246
# Do we need to explicitly link libc?
18248
case "x$archive_cmds_need_lc_GCJ" in
18250
# Assume -lc should be added
18251
archive_cmds_need_lc_GCJ=yes
18253
if test "$enable_shared" = yes && test "$GCC" = yes; then
18254
case $archive_cmds_GCJ in
18256
# FIXME: we may have to deal with multi-command sequences.
18259
# Test whether the compiler implicitly links with -lc since on some
18260
# systems, -lgcc has to come before -lc. If gcc already passes -lc
18261
# to ld, don't add -lc before -lgcc.
18262
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18263
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18265
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18267
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18268
(eval $ac_compile) 2>&5
18270
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18271
(exit $ac_status); } 2>conftest.err; then
18274
libobjs=conftest.$ac_objext
18276
wl=$lt_prog_compiler_wl_GCJ
18282
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18283
allow_undefined_flag_GCJ=
18284
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18285
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18287
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18288
(exit $ac_status); }
18290
archive_cmds_need_lc_GCJ=no
18292
archive_cmds_need_lc_GCJ=yes
18294
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18296
cat conftest.err 1>&5
18299
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18300
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
18307
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18308
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18309
library_names_spec=
18310
libname_spec='lib$name'
18314
postuninstall_cmds=
18318
shlibpath_overrides_runpath=unknown
18320
dynamic_linker="$host_os ld.so"
18321
sys_lib_dlsearch_path_spec="/lib /usr/lib"
18322
if test "$GCC" = yes; then
18323
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18324
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18325
# if the path contains ";" then we assume it to be the separator
18326
# otherwise default to the standard path separator (i.e. ":") - it is
18327
# assumed that no part of a normal pathname contains ";" but that should
18328
# okay in the real world where ";" in dirpaths is itself problematic.
18329
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18331
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18334
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18336
need_lib_prefix=unknown
18337
hardcode_into_libs=no
18339
# when you set need_version to no, make sure it does not cause -set_version
18340
# flags to be left without arguments
18341
need_version=unknown
18346
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18347
shlibpath_var=LIBPATH
18349
# AIX 3 has no versioning support, so we append a major version to the name.
18350
soname_spec='${libname}${release}${shared_ext}$major'
18357
hardcode_into_libs=yes
18358
if test "$host_cpu" = ia64; then
18359
# AIX 5 supports IA64
18360
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18361
shlibpath_var=LD_LIBRARY_PATH
18363
# With GCC up to 2.95.x, collect2 would create an import file
18364
# for dependence libraries. The import file would start with
18365
# the line `#! .'. This would cause the generated library to
18366
# depend on `.', always an invalid library. This was fixed in
18367
# development snapshots of GCC prior to 3.0.
18369
aix4 | aix4.[01] | aix4.[01].*)
18370
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18372
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18375
can_build_shared=no
18379
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18380
# soname into executable. Probably we can add versioning support to
18381
# collect2, so additional links can be useful in future.
18382
if test "$aix_use_runtimelinking" = yes; then
18383
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
18384
# instead of lib<name>.a to let people know that these are not
18385
# typical AIX shared libraries.
18386
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18388
# We preserve .a as extension for shared libraries through AIX4.2
18389
# and later when we are not doing run time linking.
18390
library_names_spec='${libname}${release}.a $libname.a'
18391
soname_spec='${libname}${release}${shared_ext}$major'
18393
shlibpath_var=LIBPATH
18398
library_names_spec='$libname.ixlibrary $libname.a'
18399
# Create ${libname}_ixlibrary.a entries in /sys/libs.
18400
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'
18404
library_names_spec='${libname}${shared_ext}'
18405
dynamic_linker="$host_os ld.so"
18406
shlibpath_var=LIBRARY_PATH
18412
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18413
soname_spec='${libname}${release}${shared_ext}$major'
18414
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18415
shlibpath_var=LD_LIBRARY_PATH
18416
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18417
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18418
# the default ld.so.conf also contains /usr/contrib/lib and
18419
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18420
# libtool to hard-code these into programs
18423
cygwin* | mingw* | pw32*)
18424
version_type=windows
18429
case $GCC,$host_os in
18430
yes,cygwin* | yes,mingw* | yes,pw32*)
18431
library_names_spec='$libname.dll.a'
18432
# DLL is installed to $(libdir)/../bin by postinstall_cmds
18433
postinstall_cmds='base_file=`basename \${file}`~
18434
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18435
dldir=$destdir/`dirname \$dlpath`~
18436
test -d \$dldir || mkdir -p \$dldir~
18437
$install_prog $dir/$dlname \$dldir/$dlname'
18438
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18439
dlpath=$dir/\$dldll~
18441
shlibpath_overrides_runpath=yes
18445
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
18446
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18447
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18450
# MinGW DLLs use traditional 'lib' prefix
18451
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18452
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18453
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18454
# It is most probably a Windows format PATH printed by
18455
# mingw gcc, but we are running on Cygwin. Gcc prints its search
18456
# path with ; separators, and with drive letters. We can handle the
18457
# drive letters (cygwin fileutils understands them), so leave them,
18458
# especially as we might pass files found there to a mingw objdump,
18459
# which wouldn't understand a cygwinified path. Ahh.
18460
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18462
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18466
# pw32 DLLs use 'pw' prefix rather than 'lib'
18467
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
18473
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18476
dynamic_linker='Win32 ld.exe'
18477
# FIXME: first we should search . and the directory the executable is in
18481
darwin* | rhapsody*)
18482
dynamic_linker="$host_os dyld"
18483
version_type=darwin
18486
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18487
soname_spec='${libname}${release}${major}$shared_ext'
18488
shlibpath_overrides_runpath=yes
18489
shlibpath_var=DYLD_LIBRARY_PATH
18490
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
18491
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18492
if test "$GCC" = yes; then
18493
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
18495
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18497
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18504
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18505
soname_spec='${libname}${release}${shared_ext}$major'
18506
shlibpath_var=LD_LIBRARY_PATH
18517
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18518
soname_spec='${libname}${release}${shared_ext}$major'
18519
shlibpath_var=LD_LIBRARY_PATH
18520
shlibpath_overrides_runpath=no
18521
hardcode_into_libs=yes
18522
dynamic_linker='GNU ld.so'
18526
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
18527
version_type=freebsd-$objformat
18528
case $version_type in
18530
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18535
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18539
shlibpath_var=LD_LIBRARY_PATH
18542
shlibpath_overrides_runpath=yes
18544
freebsd3.01* | freebsdelf3.01*)
18545
shlibpath_overrides_runpath=yes
18546
hardcode_into_libs=yes
18549
shlibpath_overrides_runpath=no
18550
hardcode_into_libs=yes
18559
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18560
soname_spec='${libname}${release}${shared_ext}$major'
18561
shlibpath_var=LD_LIBRARY_PATH
18562
hardcode_into_libs=yes
18565
hpux9* | hpux10* | hpux11*)
18566
# Give a soname corresponding to the major version so that dld.sl refuses to
18567
# link against other versions.
18571
case "$host_cpu" in
18574
hardcode_into_libs=yes
18575
dynamic_linker="$host_os dld.so"
18576
shlibpath_var=LD_LIBRARY_PATH
18577
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18578
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18579
soname_spec='${libname}${release}${shared_ext}$major'
18580
if test "X$HPUX_IA64_MODE" = X32; then
18581
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18583
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18585
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18589
hardcode_into_libs=yes
18590
dynamic_linker="$host_os dld.sl"
18591
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18592
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18593
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18594
soname_spec='${libname}${release}${shared_ext}$major'
18595
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18596
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18600
dynamic_linker="$host_os dld.sl"
18601
shlibpath_var=SHLIB_PATH
18602
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18603
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18604
soname_spec='${libname}${release}${shared_ext}$major'
18607
# HP-UX runs *really* slowly unless shared libraries are mode 555.
18608
postinstall_cmds='chmod 555 $lib'
18611
irix5* | irix6* | nonstopux*)
18613
nonstopux*) version_type=nonstopux ;;
18615
if test "$lt_cv_prog_gnu_ld" = yes; then
18623
soname_spec='${libname}${release}${shared_ext}$major'
18624
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18626
irix5* | nonstopux*)
18627
libsuff= shlibsuff=
18630
case $LD in # libtool.m4 will add one of these switches to LD
18631
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18632
libsuff= shlibsuff= libmagic=32-bit;;
18633
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18634
libsuff=32 shlibsuff=N32 libmagic=N32;;
18635
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18636
libsuff=64 shlibsuff=64 libmagic=64-bit;;
18637
*) libsuff= shlibsuff= libmagic=never-match;;
18641
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18642
shlibpath_overrides_runpath=no
18643
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18644
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18645
hardcode_into_libs=yes
18648
# No shared lib support for Linux oldld, aout, or coff.
18649
linux*oldld* | linux*aout* | linux*coff*)
18653
# This must be Linux ELF.
18658
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18659
soname_spec='${libname}${release}${shared_ext}$major'
18660
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18661
shlibpath_var=LD_LIBRARY_PATH
18662
shlibpath_overrides_runpath=no
18663
# This implies no fast_install, which is unacceptable.
18664
# Some rework will be needed to allow for fast_install
18665
# before this can be enabled.
18666
hardcode_into_libs=yes
18668
# Append ld.so.conf contents to the search path
18669
if test -f /etc/ld.so.conf; then
18670
lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
18671
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18674
# We used to test for /lib/ld.so.1 and disable shared libraries on
18675
# powerpc, because MkLinux only supported shared libraries with the
18676
# GNU dynamic linker. Since this was broken with cross compilers,
18677
# most powerpc-linux boxes support dynamic linking these days and
18678
# people can always --disable-shared, the test was removed, and we
18679
# assume the GNU/Linux dynamic linker is in use.
18680
dynamic_linker='GNU/Linux ld.so'
18687
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18688
soname_spec='${libname}${release}${shared_ext}$major'
18689
shlibpath_var=LD_LIBRARY_PATH
18690
shlibpath_overrides_runpath=no
18691
hardcode_into_libs=yes
18692
dynamic_linker='GNU ld.so'
18699
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18700
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18701
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18702
dynamic_linker='NetBSD (a.out) ld.so'
18704
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18705
soname_spec='${libname}${release}${shared_ext}$major'
18706
dynamic_linker='NetBSD ld.elf_so'
18708
shlibpath_var=LD_LIBRARY_PATH
18709
shlibpath_overrides_runpath=yes
18710
hardcode_into_libs=yes
18715
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18716
shlibpath_var=LD_LIBRARY_PATH
18717
shlibpath_overrides_runpath=yes
18724
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18725
soname_spec='${libname}${release}${shared_ext}$major'
18726
shlibpath_var=LD_LIBRARY_PATH
18727
shlibpath_overrides_runpath=yes
18734
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18735
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18736
shlibpath_var=LD_LIBRARY_PATH
18737
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18739
openbsd2.[89] | openbsd2.[89].*)
18740
shlibpath_overrides_runpath=no
18743
shlibpath_overrides_runpath=yes
18747
shlibpath_overrides_runpath=yes
18752
libname_spec='$name'
18755
library_names_spec='$libname${shared_ext} $libname.a'
18756
dynamic_linker='OS/2 ld.exe'
18757
shlibpath_var=LIBPATH
18760
osf3* | osf4* | osf5*)
18764
soname_spec='${libname}${release}${shared_ext}$major'
18765
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18766
shlibpath_var=LD_LIBRARY_PATH
18767
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18768
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18773
soname_spec='${libname}${release}${shared_ext}$major'
18774
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18775
shlibpath_var=LD_LIBRARY_PATH
18782
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18783
soname_spec='${libname}${release}${shared_ext}$major'
18784
shlibpath_var=LD_LIBRARY_PATH
18785
shlibpath_overrides_runpath=yes
18786
hardcode_into_libs=yes
18787
# ldd complains unless libraries are executable
18788
postinstall_cmds='chmod +x $lib'
18793
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18794
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18795
shlibpath_var=LD_LIBRARY_PATH
18796
shlibpath_overrides_runpath=yes
18797
if test "$with_gnu_ld" = yes; then
18803
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18805
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18806
soname_spec='${libname}${release}${shared_ext}$major'
18807
shlibpath_var=LD_LIBRARY_PATH
18808
case $host_vendor in
18810
shlibpath_overrides_runpath=no
18812
export_dynamic_flag_spec='${wl}-Blargedynsym'
18813
runpath_var=LD_RUN_PATH
18821
shlibpath_overrides_runpath=no
18822
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18828
if test -d /usr/nec ;then
18830
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18831
soname_spec='$libname${shared_ext}.$major'
18832
shlibpath_var=LD_LIBRARY_PATH
18838
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18839
soname_spec='${libname}${release}${shared_ext}$major'
18840
shlibpath_var=LD_LIBRARY_PATH
18847
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18848
echo "${ECHO_T}$dynamic_linker" >&6
18849
test "$dynamic_linker" = no && can_build_shared=no
18851
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18852
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18853
hardcode_action_GCJ=
18854
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18855
test -n "$runpath_var_GCJ" || \
18856
test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18858
# We can hardcode non-existant directories.
18859
if test "$hardcode_direct_GCJ" != no &&
18860
# If the only mechanism to avoid hardcoding is shlibpath_var, we
18861
# have to relink, otherwise we might link with an installed library
18862
# when we should be linking with a yet-to-be-installed one
18863
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18864
test "$hardcode_minus_L_GCJ" != no; then
18865
# Linking always hardcodes the temporary library directory.
18866
hardcode_action_GCJ=relink
18868
# We can link without hardcoding, and we can hardcode nonexisting dirs.
18869
hardcode_action_GCJ=immediate
18872
# We cannot hardcode anything, or else we can only hardcode existing
18874
hardcode_action_GCJ=unsupported
18876
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18877
echo "${ECHO_T}$hardcode_action_GCJ" >&6
18879
if test "$hardcode_action_GCJ" = relink; then
18880
# Fast installation is not supported
18881
enable_fast_install=no
18882
elif test "$shlibpath_overrides_runpath" = yes ||
18883
test "$enable_shared" = no; then
18884
# Fast installation is not necessary
18885
enable_fast_install=needless
18890
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18891
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
18892
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18893
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18894
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18895
echo "$as_me:$LINENO: result: yes" >&5
18896
echo "${ECHO_T}yes" >&6
18898
# FIXME - insert some real tests, host_os isn't really good enough
18901
if test -n "$STRIP" ; then
18902
striplib="$STRIP -x"
18903
echo "$as_me:$LINENO: result: yes" >&5
18904
echo "${ECHO_T}yes" >&6
18906
echo "$as_me:$LINENO: result: no" >&5
18907
echo "${ECHO_T}no" >&6
18911
echo "$as_me:$LINENO: result: no" >&5
18912
echo "${ECHO_T}no" >&6
18917
if test "x$enable_dlopen" != xyes; then
18918
enable_dlopen=unknown
18919
enable_dlopen_self=unknown
18920
enable_dlopen_self_static=unknown
18927
lt_cv_dlopen="load_add_on"
18929
lt_cv_dlopen_self=yes
18933
lt_cv_dlopen="LoadLibrary"
18938
lt_cv_dlopen="dlopen"
18943
# if libdl is installed we need to link against it
18944
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18945
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18946
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18947
echo $ECHO_N "(cached) $ECHO_C" >&6
18949
ac_check_lib_save_LIBS=$LIBS
18951
cat >conftest.$ac_ext <<_ACEOF
18954
cat confdefs.h >>conftest.$ac_ext
18955
cat >>conftest.$ac_ext <<_ACEOF
18956
/* end confdefs.h. */
18958
/* Override any gcc2 internal prototype to avoid an error. */
18962
/* We use char because int might match the return type of a gcc2
18963
builtin and then its argument prototype would still apply. */
18973
rm -f conftest.$ac_objext conftest$ac_exeext
18974
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18975
(eval $ac_link) 2>conftest.er1
18977
grep -v '^ *+' conftest.er1 >conftest.err
18979
cat conftest.err >&5
18980
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18981
(exit $ac_status); } &&
18982
{ ac_try='test -z "$ac_c_werror_flag"
18983
|| test ! -s conftest.err'
18984
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18985
(eval $ac_try) 2>&5
18987
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18988
(exit $ac_status); }; } &&
18989
{ ac_try='test -s conftest$ac_exeext'
18990
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18991
(eval $ac_try) 2>&5
18993
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18994
(exit $ac_status); }; }; then
18995
ac_cv_lib_dl_dlopen=yes
18997
echo "$as_me: failed program was:" >&5
18998
sed 's/^/| /' conftest.$ac_ext >&5
19000
ac_cv_lib_dl_dlopen=no
19002
rm -f conftest.err conftest.$ac_objext \
19003
conftest$ac_exeext conftest.$ac_ext
19004
LIBS=$ac_check_lib_save_LIBS
19006
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19007
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19008
if test $ac_cv_lib_dl_dlopen = yes; then
19009
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19012
lt_cv_dlopen="dyld"
19014
lt_cv_dlopen_self=yes
19021
echo "$as_me:$LINENO: checking for shl_load" >&5
19022
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
19023
if test "${ac_cv_func_shl_load+set}" = set; then
19024
echo $ECHO_N "(cached) $ECHO_C" >&6
19026
cat >conftest.$ac_ext <<_ACEOF
19029
cat confdefs.h >>conftest.$ac_ext
19030
cat >>conftest.$ac_ext <<_ACEOF
19031
/* end confdefs.h. */
19032
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
19033
For example, HP-UX 11i <limits.h> declares gettimeofday. */
19034
#define shl_load innocuous_shl_load
19036
/* System header to define __stub macros and hopefully few prototypes,
19037
which can conflict with char shl_load (); below.
19038
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19039
<limits.h> exists even on freestanding compilers. */
19042
# include <limits.h>
19044
# include <assert.h>
19049
/* Override any gcc2 internal prototype to avoid an error. */
19054
/* We use char because int might match the return type of a gcc2
19055
builtin and then its argument prototype would still apply. */
19057
/* The GNU C library defines this for functions which it implements
19058
to always fail with ENOSYS. Some functions are actually named
19059
something starting with __ and the normal name is an alias. */
19060
#if defined (__stub_shl_load) || defined (__stub___shl_load)
19063
char (*f) () = shl_load;
19072
return f != shl_load;
19077
rm -f conftest.$ac_objext conftest$ac_exeext
19078
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19079
(eval $ac_link) 2>conftest.er1
19081
grep -v '^ *+' conftest.er1 >conftest.err
19083
cat conftest.err >&5
19084
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19085
(exit $ac_status); } &&
19086
{ ac_try='test -z "$ac_c_werror_flag"
19087
|| test ! -s conftest.err'
19088
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19089
(eval $ac_try) 2>&5
19091
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19092
(exit $ac_status); }; } &&
19093
{ ac_try='test -s conftest$ac_exeext'
19094
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19095
(eval $ac_try) 2>&5
19097
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19098
(exit $ac_status); }; }; then
19099
ac_cv_func_shl_load=yes
19101
echo "$as_me: failed program was:" >&5
19102
sed 's/^/| /' conftest.$ac_ext >&5
19104
ac_cv_func_shl_load=no
19106
rm -f conftest.err conftest.$ac_objext \
19107
conftest$ac_exeext conftest.$ac_ext
19109
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
19110
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
19111
if test $ac_cv_func_shl_load = yes; then
19112
lt_cv_dlopen="shl_load"
19114
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
19115
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
19116
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
19117
echo $ECHO_N "(cached) $ECHO_C" >&6
19119
ac_check_lib_save_LIBS=$LIBS
19121
cat >conftest.$ac_ext <<_ACEOF
19124
cat confdefs.h >>conftest.$ac_ext
19125
cat >>conftest.$ac_ext <<_ACEOF
19126
/* end confdefs.h. */
19128
/* Override any gcc2 internal prototype to avoid an error. */
19132
/* We use char because int might match the return type of a gcc2
19133
builtin and then its argument prototype would still apply. */
19143
rm -f conftest.$ac_objext conftest$ac_exeext
19144
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19145
(eval $ac_link) 2>conftest.er1
19147
grep -v '^ *+' conftest.er1 >conftest.err
19149
cat conftest.err >&5
19150
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19151
(exit $ac_status); } &&
19152
{ ac_try='test -z "$ac_c_werror_flag"
19153
|| test ! -s conftest.err'
19154
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19155
(eval $ac_try) 2>&5
19157
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19158
(exit $ac_status); }; } &&
19159
{ ac_try='test -s conftest$ac_exeext'
19160
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19161
(eval $ac_try) 2>&5
19163
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19164
(exit $ac_status); }; }; then
19165
ac_cv_lib_dld_shl_load=yes
19167
echo "$as_me: failed program was:" >&5
19168
sed 's/^/| /' conftest.$ac_ext >&5
19170
ac_cv_lib_dld_shl_load=no
19172
rm -f conftest.err conftest.$ac_objext \
19173
conftest$ac_exeext conftest.$ac_ext
19174
LIBS=$ac_check_lib_save_LIBS
19176
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
19177
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
19178
if test $ac_cv_lib_dld_shl_load = yes; then
19179
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
19181
echo "$as_me:$LINENO: checking for dlopen" >&5
19182
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
19183
if test "${ac_cv_func_dlopen+set}" = set; then
19184
echo $ECHO_N "(cached) $ECHO_C" >&6
19186
cat >conftest.$ac_ext <<_ACEOF
19189
cat confdefs.h >>conftest.$ac_ext
19190
cat >>conftest.$ac_ext <<_ACEOF
19191
/* end confdefs.h. */
19192
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
19193
For example, HP-UX 11i <limits.h> declares gettimeofday. */
19194
#define dlopen innocuous_dlopen
19196
/* System header to define __stub macros and hopefully few prototypes,
19197
which can conflict with char dlopen (); below.
19198
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19199
<limits.h> exists even on freestanding compilers. */
19202
# include <limits.h>
19204
# include <assert.h>
19209
/* Override any gcc2 internal prototype to avoid an error. */
19214
/* We use char because int might match the return type of a gcc2
19215
builtin and then its argument prototype would still apply. */
19217
/* The GNU C library defines this for functions which it implements
19218
to always fail with ENOSYS. Some functions are actually named
19219
something starting with __ and the normal name is an alias. */
19220
#if defined (__stub_dlopen) || defined (__stub___dlopen)
19223
char (*f) () = dlopen;
19232
return f != dlopen;
19237
rm -f conftest.$ac_objext conftest$ac_exeext
19238
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19239
(eval $ac_link) 2>conftest.er1
19241
grep -v '^ *+' conftest.er1 >conftest.err
19243
cat conftest.err >&5
19244
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19245
(exit $ac_status); } &&
19246
{ ac_try='test -z "$ac_c_werror_flag"
19247
|| test ! -s conftest.err'
19248
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19249
(eval $ac_try) 2>&5
19251
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19252
(exit $ac_status); }; } &&
19253
{ ac_try='test -s conftest$ac_exeext'
19254
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19255
(eval $ac_try) 2>&5
19257
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19258
(exit $ac_status); }; }; then
19259
ac_cv_func_dlopen=yes
19261
echo "$as_me: failed program was:" >&5
19262
sed 's/^/| /' conftest.$ac_ext >&5
19264
ac_cv_func_dlopen=no
19266
rm -f conftest.err conftest.$ac_objext \
19267
conftest$ac_exeext conftest.$ac_ext
19269
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
19270
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
19271
if test $ac_cv_func_dlopen = yes; then
19272
lt_cv_dlopen="dlopen"
19274
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19275
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19276
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19277
echo $ECHO_N "(cached) $ECHO_C" >&6
19279
ac_check_lib_save_LIBS=$LIBS
19281
cat >conftest.$ac_ext <<_ACEOF
19284
cat confdefs.h >>conftest.$ac_ext
19285
cat >>conftest.$ac_ext <<_ACEOF
19286
/* end confdefs.h. */
19288
/* Override any gcc2 internal prototype to avoid an error. */
19292
/* We use char because int might match the return type of a gcc2
19293
builtin and then its argument prototype would still apply. */
19303
rm -f conftest.$ac_objext conftest$ac_exeext
19304
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19305
(eval $ac_link) 2>conftest.er1
19307
grep -v '^ *+' conftest.er1 >conftest.err
19309
cat conftest.err >&5
19310
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19311
(exit $ac_status); } &&
19312
{ ac_try='test -z "$ac_c_werror_flag"
19313
|| test ! -s conftest.err'
19314
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19315
(eval $ac_try) 2>&5
19317
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19318
(exit $ac_status); }; } &&
19319
{ ac_try='test -s conftest$ac_exeext'
19320
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19321
(eval $ac_try) 2>&5
19323
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19324
(exit $ac_status); }; }; then
19325
ac_cv_lib_dl_dlopen=yes
19327
echo "$as_me: failed program was:" >&5
19328
sed 's/^/| /' conftest.$ac_ext >&5
19330
ac_cv_lib_dl_dlopen=no
19332
rm -f conftest.err conftest.$ac_objext \
19333
conftest$ac_exeext conftest.$ac_ext
19334
LIBS=$ac_check_lib_save_LIBS
19336
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19337
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19338
if test $ac_cv_lib_dl_dlopen = yes; then
19339
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19341
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19342
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
19343
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19344
echo $ECHO_N "(cached) $ECHO_C" >&6
19346
ac_check_lib_save_LIBS=$LIBS
19347
LIBS="-lsvld $LIBS"
19348
cat >conftest.$ac_ext <<_ACEOF
19351
cat confdefs.h >>conftest.$ac_ext
19352
cat >>conftest.$ac_ext <<_ACEOF
19353
/* end confdefs.h. */
19355
/* Override any gcc2 internal prototype to avoid an error. */
19359
/* We use char because int might match the return type of a gcc2
19360
builtin and then its argument prototype would still apply. */
19370
rm -f conftest.$ac_objext conftest$ac_exeext
19371
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19372
(eval $ac_link) 2>conftest.er1
19374
grep -v '^ *+' conftest.er1 >conftest.err
19376
cat conftest.err >&5
19377
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19378
(exit $ac_status); } &&
19379
{ ac_try='test -z "$ac_c_werror_flag"
19380
|| test ! -s conftest.err'
19381
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19382
(eval $ac_try) 2>&5
19384
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19385
(exit $ac_status); }; } &&
19386
{ ac_try='test -s conftest$ac_exeext'
19387
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19388
(eval $ac_try) 2>&5
19390
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19391
(exit $ac_status); }; }; then
19392
ac_cv_lib_svld_dlopen=yes
19394
echo "$as_me: failed program was:" >&5
19395
sed 's/^/| /' conftest.$ac_ext >&5
19397
ac_cv_lib_svld_dlopen=no
19399
rm -f conftest.err conftest.$ac_objext \
19400
conftest$ac_exeext conftest.$ac_ext
19401
LIBS=$ac_check_lib_save_LIBS
19403
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19404
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
19405
if test $ac_cv_lib_svld_dlopen = yes; then
19406
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19408
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
19409
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
19410
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
19411
echo $ECHO_N "(cached) $ECHO_C" >&6
19413
ac_check_lib_save_LIBS=$LIBS
19415
cat >conftest.$ac_ext <<_ACEOF
19418
cat confdefs.h >>conftest.$ac_ext
19419
cat >>conftest.$ac_ext <<_ACEOF
19420
/* end confdefs.h. */
19422
/* Override any gcc2 internal prototype to avoid an error. */
19426
/* We use char because int might match the return type of a gcc2
19427
builtin and then its argument prototype would still apply. */
19437
rm -f conftest.$ac_objext conftest$ac_exeext
19438
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19439
(eval $ac_link) 2>conftest.er1
19441
grep -v '^ *+' conftest.er1 >conftest.err
19443
cat conftest.err >&5
19444
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19445
(exit $ac_status); } &&
19446
{ ac_try='test -z "$ac_c_werror_flag"
19447
|| test ! -s conftest.err'
19448
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19449
(eval $ac_try) 2>&5
19451
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19452
(exit $ac_status); }; } &&
19453
{ ac_try='test -s conftest$ac_exeext'
19454
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19455
(eval $ac_try) 2>&5
19457
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19458
(exit $ac_status); }; }; then
19459
ac_cv_lib_dld_dld_link=yes
19461
echo "$as_me: failed program was:" >&5
19462
sed 's/^/| /' conftest.$ac_ext >&5
19464
ac_cv_lib_dld_dld_link=no
19466
rm -f conftest.err conftest.$ac_objext \
19467
conftest$ac_exeext conftest.$ac_ext
19468
LIBS=$ac_check_lib_save_LIBS
19470
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
19471
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
19472
if test $ac_cv_lib_dld_dld_link = yes; then
19473
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
19494
if test "x$lt_cv_dlopen" != xno; then
19500
case $lt_cv_dlopen in
19502
save_CPPFLAGS="$CPPFLAGS"
19503
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19505
save_LDFLAGS="$LDFLAGS"
19506
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19509
LIBS="$lt_cv_dlopen_libs $LIBS"
19511
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
19512
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
19513
if test "${lt_cv_dlopen_self+set}" = set; then
19514
echo $ECHO_N "(cached) $ECHO_C" >&6
19516
if test "$cross_compiling" = yes; then :
19517
lt_cv_dlopen_self=cross
19519
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19520
lt_status=$lt_dlunknown
19521
cat > conftest.$ac_ext <<EOF
19522
#line 19522 "configure"
19523
#include "confdefs.h"
19532
# define LT_DLGLOBAL RTLD_GLOBAL
19535
# define LT_DLGLOBAL DL_GLOBAL
19537
# define LT_DLGLOBAL 0
19541
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19542
find out it does not work in some platform. */
19543
#ifndef LT_DLLAZY_OR_NOW
19545
# define LT_DLLAZY_OR_NOW RTLD_LAZY
19548
# define LT_DLLAZY_OR_NOW DL_LAZY
19551
# define LT_DLLAZY_OR_NOW RTLD_NOW
19554
# define LT_DLLAZY_OR_NOW DL_NOW
19556
# define LT_DLLAZY_OR_NOW 0
19564
extern "C" void exit (int);
19567
void fnord() { int i=42;}
19570
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19571
int status = $lt_dlunknown;
19575
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19576
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19577
/* dlclose (self); */
19583
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19584
(eval $ac_link) 2>&5
19586
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19587
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19588
(./conftest; exit; ) 2>/dev/null
19590
case x$lt_status in
19591
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19592
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19593
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
19596
# compilation failed
19597
lt_cv_dlopen_self=no
19604
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
19605
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
19607
if test "x$lt_cv_dlopen_self" = xyes; then
19608
LDFLAGS="$LDFLAGS $link_static_flag"
19609
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
19610
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
19611
if test "${lt_cv_dlopen_self_static+set}" = set; then
19612
echo $ECHO_N "(cached) $ECHO_C" >&6
19614
if test "$cross_compiling" = yes; then :
19615
lt_cv_dlopen_self_static=cross
19617
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19618
lt_status=$lt_dlunknown
19619
cat > conftest.$ac_ext <<EOF
19620
#line 19620 "configure"
19621
#include "confdefs.h"
19630
# define LT_DLGLOBAL RTLD_GLOBAL
19633
# define LT_DLGLOBAL DL_GLOBAL
19635
# define LT_DLGLOBAL 0
19639
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19640
find out it does not work in some platform. */
19641
#ifndef LT_DLLAZY_OR_NOW
19643
# define LT_DLLAZY_OR_NOW RTLD_LAZY
19646
# define LT_DLLAZY_OR_NOW DL_LAZY
19649
# define LT_DLLAZY_OR_NOW RTLD_NOW
19652
# define LT_DLLAZY_OR_NOW DL_NOW
19654
# define LT_DLLAZY_OR_NOW 0
19662
extern "C" void exit (int);
19665
void fnord() { int i=42;}
19668
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19669
int status = $lt_dlunknown;
19673
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19674
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19675
/* dlclose (self); */
19681
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19682
(eval $ac_link) 2>&5
19684
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19685
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19686
(./conftest; exit; ) 2>/dev/null
19688
case x$lt_status in
19689
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19690
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19691
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
19694
# compilation failed
19695
lt_cv_dlopen_self_static=no
19702
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19703
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
19706
CPPFLAGS="$save_CPPFLAGS"
19707
LDFLAGS="$save_LDFLAGS"
19712
case $lt_cv_dlopen_self in
19713
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19714
*) enable_dlopen_self=unknown ;;
19717
case $lt_cv_dlopen_self_static in
19718
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19719
*) enable_dlopen_self_static=unknown ;;
19724
# The else clause should only fire when bootstrapping the
19725
# libtool distribution, otherwise you forgot to ship ltmain.sh
19726
# with your package, and you will get complaints that there are
19727
# no rules to generate ltmain.sh.
19728
if test -f "$ltmain"; then
19729
# See if we are running on zsh, and set the options which allow our commands through
19730
# without removal of \ escapes.
19731
if test -n "${ZSH_VERSION+set}" ; then
19732
setopt NO_GLOB_SUBST
19734
# Now quote all the things that may contain metacharacters while being
19735
# careful not to overquote the AC_SUBSTed values. We take copies of the
19736
# variables and quote the copies for generation of the libtool script.
19737
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19739
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19740
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19741
deplibs_check_method reload_flag reload_cmds need_locks \
19742
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19743
lt_cv_sys_global_symbol_to_c_name_address \
19744
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19745
old_postinstall_cmds old_postuninstall_cmds \
19749
lt_prog_compiler_wl_GCJ \
19750
lt_prog_compiler_pic_GCJ \
19751
lt_prog_compiler_static_GCJ \
19752
lt_prog_compiler_no_builtin_flag_GCJ \
19753
export_dynamic_flag_spec_GCJ \
19754
thread_safe_flag_spec_GCJ \
19755
whole_archive_flag_spec_GCJ \
19756
enable_shared_with_static_runtimes_GCJ \
19757
old_archive_cmds_GCJ \
19758
old_archive_from_new_cmds_GCJ \
19759
predep_objects_GCJ \
19760
postdep_objects_GCJ \
19763
compiler_lib_search_path_GCJ \
19765
archive_expsym_cmds_GCJ \
19766
postinstall_cmds_GCJ \
19767
postuninstall_cmds_GCJ \
19768
old_archive_from_expsyms_cmds_GCJ \
19769
allow_undefined_flag_GCJ \
19770
no_undefined_flag_GCJ \
19771
export_symbols_cmds_GCJ \
19772
hardcode_libdir_flag_spec_GCJ \
19773
hardcode_libdir_flag_spec_ld_GCJ \
19774
hardcode_libdir_separator_GCJ \
19775
hardcode_automatic_GCJ \
19777
module_expsym_cmds_GCJ \
19778
lt_cv_prog_compiler_c_o_GCJ \
19779
exclude_expsyms_GCJ \
19780
include_expsyms_GCJ; do
19783
old_archive_cmds_GCJ | \
19784
old_archive_from_new_cmds_GCJ | \
19785
archive_cmds_GCJ | \
19786
archive_expsym_cmds_GCJ | \
19787
module_cmds_GCJ | \
19788
module_expsym_cmds_GCJ | \
19789
old_archive_from_expsyms_cmds_GCJ | \
19790
export_symbols_cmds_GCJ | \
19791
extract_expsyms_cmds | reload_cmds | finish_cmds | \
19792
postinstall_cmds | postuninstall_cmds | \
19793
old_postinstall_cmds | old_postuninstall_cmds | \
19794
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19795
# Double-quote double-evaled strings.
19796
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19799
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19805
*'\$0 --fallback-echo"')
19806
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19812
cat <<__EOF__ >> "$cfgfile"
19813
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19815
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19817
# Shell to use when invoking shell scripts.
19820
# Whether or not to build shared libraries.
19821
build_libtool_libs=$enable_shared
19823
# Whether or not to build static libraries.
19824
build_old_libs=$enable_static
19826
# Whether or not to add -lc for building shared libraries.
19827
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19829
# Whether or not to disallow shared libs when runtime libs are static
19830
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19832
# Whether or not to optimize for fast installation.
19833
fast_install=$enable_fast_install
19836
host_alias=$host_alias
19839
# An echo program that does not interpret backslashes.
19844
AR_FLAGS=$lt_AR_FLAGS
19849
# A language-specific compiler.
19850
CC=$lt_compiler_GCJ
19852
# Is the compiler the GNU C compiler?
19858
# The linker used to build libraries.
19861
# Whether we need hard or soft links.
19864
# A BSD-compatible nm program.
19867
# A symbol stripping program
19870
# Used to examine libraries when file_magic_cmd begins "file"
19871
MAGIC_CMD=$MAGIC_CMD
19873
# Used on cygwin: DLL creation program.
19876
# Used on cygwin: object dumper.
19879
# Used on cygwin: assembler.
19882
# The name of the directory that contains temporary libtool files.
19885
# How to create reloadable object files.
19886
reload_flag=$lt_reload_flag
19887
reload_cmds=$lt_reload_cmds
19889
# How to pass a linker flag through the compiler.
19890
wl=$lt_lt_prog_compiler_wl_GCJ
19892
# Object file suffix (normally "o").
19893
objext="$ac_objext"
19895
# Old archive suffix (normally "a").
19898
# Shared library suffix (normally ".so").
19899
shrext_cmds='$shrext_cmds'
19901
# Executable file suffix (normally "").
19904
# Additional compiler flags for building library objects.
19905
pic_flag=$lt_lt_prog_compiler_pic_GCJ
19908
# What is the maximum length of a command?
19909
max_cmd_len=$lt_cv_sys_max_cmd_len
19911
# Does compiler simultaneously support -c and -o options?
19912
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19914
# Must we lock files when doing compilation ?
19915
need_locks=$lt_need_locks
19917
# Do we need the lib prefix for modules?
19918
need_lib_prefix=$need_lib_prefix
19920
# Do we need a version for libraries?
19921
need_version=$need_version
19923
# Whether dlopen is supported.
19924
dlopen_support=$enable_dlopen
19926
# Whether dlopen of programs is supported.
19927
dlopen_self=$enable_dlopen_self
19929
# Whether dlopen of statically linked programs is supported.
19930
dlopen_self_static=$enable_dlopen_self_static
19932
# Compiler flag to prevent dynamic linking.
19933
link_static_flag=$lt_lt_prog_compiler_static_GCJ
19935
# Compiler flag to turn off builtin functions.
19936
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19938
# Compiler flag to allow reflexive dlopens.
19939
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19941
# Compiler flag to generate shared objects directly from archives.
19942
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19944
# Compiler flag to generate thread-safe objects.
19945
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19947
# Library versioning type.
19948
version_type=$version_type
19950
# Format of library name prefix.
19951
libname_spec=$lt_libname_spec
19953
# List of archive names. First name is the real one, the rest are links.
19954
# The last name is the one that the linker finds with -lNAME.
19955
library_names_spec=$lt_library_names_spec
19957
# The coded name of the library, if different from the real name.
19958
soname_spec=$lt_soname_spec
19960
# Commands used to build and install an old-style archive.
19962
old_archive_cmds=$lt_old_archive_cmds_GCJ
19963
old_postinstall_cmds=$lt_old_postinstall_cmds
19964
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19966
# Create an old-style archive from a shared archive.
19967
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19969
# Create a temporary old-style archive to link instead of a shared archive.
19970
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19972
# Commands used to build and install a shared archive.
19973
archive_cmds=$lt_archive_cmds_GCJ
19974
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19975
postinstall_cmds=$lt_postinstall_cmds
19976
postuninstall_cmds=$lt_postuninstall_cmds
19978
# Commands used to build a loadable module (assumed same as above if empty)
19979
module_cmds=$lt_module_cmds_GCJ
19980
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19982
# Commands to strip libraries.
19983
old_striplib=$lt_old_striplib
19984
striplib=$lt_striplib
19986
# Dependencies to place before the objects being linked to create a
19988
predep_objects=$lt_predep_objects_GCJ
19990
# Dependencies to place after the objects being linked to create a
19992
postdep_objects=$lt_postdep_objects_GCJ
19994
# Dependencies to place before the objects being linked to create a
19996
predeps=$lt_predeps_GCJ
19998
# Dependencies to place after the objects being linked to create a
20000
postdeps=$lt_postdeps_GCJ
20002
# The library search path used internally by the compiler when linking
20003
# a shared library.
20004
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
20006
# Method to check whether dependent libraries are shared objects.
20007
deplibs_check_method=$lt_deplibs_check_method
20009
# Command to use when deplibs_check_method == file_magic.
20010
file_magic_cmd=$lt_file_magic_cmd
20012
# Flag that allows shared libraries with undefined symbols to be built.
20013
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20015
# Flag that forces no undefined symbols.
20016
no_undefined_flag=$lt_no_undefined_flag_GCJ
20018
# Commands used to finish a libtool library installation in a directory.
20019
finish_cmds=$lt_finish_cmds
20021
# Same as above, but a single script fragment to be evaled but not shown.
20022
finish_eval=$lt_finish_eval
20024
# Take the output of nm and produce a listing of raw symbols and C names.
20025
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20027
# Transform the output of nm in a proper C declaration
20028
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20030
# Transform the output of nm in a C name address pair
20031
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20033
# This is the shared library runtime path variable.
20034
runpath_var=$runpath_var
20036
# This is the shared library path variable.
20037
shlibpath_var=$shlibpath_var
20039
# Is shlibpath searched before the hard-coded library search path?
20040
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20042
# How to hardcode a shared library path into an executable.
20043
hardcode_action=$hardcode_action_GCJ
20045
# Whether we should hardcode library paths into libraries.
20046
hardcode_into_libs=$hardcode_into_libs
20048
# Flag to hardcode \$libdir into a binary during linking.
20049
# This must work even if \$libdir does not exist.
20050
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20052
# If ld is used when linking, flag to hardcode \$libdir into
20053
# a binary during linking. This must work even if \$libdir does
20055
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20057
# Whether we need a single -rpath flag with a separated argument.
20058
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20060
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20061
# resulting binary.
20062
hardcode_direct=$hardcode_direct_GCJ
20064
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20065
# resulting binary.
20066
hardcode_minus_L=$hardcode_minus_L_GCJ
20068
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20069
# the resulting binary.
20070
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20072
# Set to yes if building a shared library automatically hardcodes DIR into the library
20073
# and all subsequent libraries and executables linked against it.
20074
hardcode_automatic=$hardcode_automatic_GCJ
20076
# Variables whose values should be saved in libtool wrapper scripts and
20077
# restored at relink time.
20078
variables_saved_for_relink="$variables_saved_for_relink"
20080
# Whether libtool must link a program against all its dependency libraries.
20081
link_all_deplibs=$link_all_deplibs_GCJ
20083
# Compile-time system search path for libraries
20084
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20086
# Run-time system search path for libraries
20087
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20089
# Fix the shell variable \$srcfile for the compiler.
20090
fix_srcfile_path="$fix_srcfile_path_GCJ"
20092
# Set to yes if exported symbols are required.
20093
always_export_symbols=$always_export_symbols_GCJ
20095
# The commands to list exported symbols.
20096
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20098
# The commands to extract the exported symbol list from a shared archive.
20099
extract_expsyms_cmds=$lt_extract_expsyms_cmds
20101
# Symbols that should not be listed in the preloaded symbols.
20102
exclude_expsyms=$lt_exclude_expsyms_GCJ
20104
# Symbols that must always be exported.
20105
include_expsyms=$lt_include_expsyms_GCJ
20107
# ### END LIBTOOL TAG CONFIG: $tagname
20113
# If there is no Makefile yet, we rely on a make rule to execute
20114
# `config.status --recheck' to rerun these tests and create the
20115
# libtool script then.
20116
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20117
if test -f "$ltmain_in"; then
20118
test -f Makefile && make "$ltmain"
20124
ac_cpp='$CPP $CPPFLAGS'
20125
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20126
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20127
ac_compiler_gnu=$ac_cv_c_compiler_gnu
20140
# Source file extension for RC test sources.
20143
# Object file extension for compiled RC test sources.
20147
# Code to be used in simple compile tests
20148
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
20150
# Code to be used in simple link tests
20151
lt_simple_link_test_code="$lt_simple_compile_test_code"
20153
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
20155
# If no C compiler was specified, use CC.
20158
# Allow CC to be a program name with arguments.
20162
# Allow CC to be a program name with arguments.
20167
lt_cv_prog_compiler_c_o_RC=yes
20169
# The else clause should only fire when bootstrapping the
20170
# libtool distribution, otherwise you forgot to ship ltmain.sh
20171
# with your package, and you will get complaints that there are
20172
# no rules to generate ltmain.sh.
20173
if test -f "$ltmain"; then
20174
# See if we are running on zsh, and set the options which allow our commands through
20175
# without removal of \ escapes.
20176
if test -n "${ZSH_VERSION+set}" ; then
20177
setopt NO_GLOB_SUBST
20179
# Now quote all the things that may contain metacharacters while being
20180
# careful not to overquote the AC_SUBSTed values. We take copies of the
20181
# variables and quote the copies for generation of the libtool script.
20182
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20184
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20185
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20186
deplibs_check_method reload_flag reload_cmds need_locks \
20187
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20188
lt_cv_sys_global_symbol_to_c_name_address \
20189
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20190
old_postinstall_cmds old_postuninstall_cmds \
20194
lt_prog_compiler_wl_RC \
20195
lt_prog_compiler_pic_RC \
20196
lt_prog_compiler_static_RC \
20197
lt_prog_compiler_no_builtin_flag_RC \
20198
export_dynamic_flag_spec_RC \
20199
thread_safe_flag_spec_RC \
20200
whole_archive_flag_spec_RC \
20201
enable_shared_with_static_runtimes_RC \
20202
old_archive_cmds_RC \
20203
old_archive_from_new_cmds_RC \
20204
predep_objects_RC \
20205
postdep_objects_RC \
20208
compiler_lib_search_path_RC \
20210
archive_expsym_cmds_RC \
20211
postinstall_cmds_RC \
20212
postuninstall_cmds_RC \
20213
old_archive_from_expsyms_cmds_RC \
20214
allow_undefined_flag_RC \
20215
no_undefined_flag_RC \
20216
export_symbols_cmds_RC \
20217
hardcode_libdir_flag_spec_RC \
20218
hardcode_libdir_flag_spec_ld_RC \
20219
hardcode_libdir_separator_RC \
20220
hardcode_automatic_RC \
20222
module_expsym_cmds_RC \
20223
lt_cv_prog_compiler_c_o_RC \
20224
exclude_expsyms_RC \
20225
include_expsyms_RC; do
20228
old_archive_cmds_RC | \
20229
old_archive_from_new_cmds_RC | \
20230
archive_cmds_RC | \
20231
archive_expsym_cmds_RC | \
20233
module_expsym_cmds_RC | \
20234
old_archive_from_expsyms_cmds_RC | \
20235
export_symbols_cmds_RC | \
20236
extract_expsyms_cmds | reload_cmds | finish_cmds | \
20237
postinstall_cmds | postuninstall_cmds | \
20238
old_postinstall_cmds | old_postuninstall_cmds | \
20239
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20240
# Double-quote double-evaled strings.
20241
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20244
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20250
*'\$0 --fallback-echo"')
20251
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20257
cat <<__EOF__ >> "$cfgfile"
20258
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20260
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20262
# Shell to use when invoking shell scripts.
20265
# Whether or not to build shared libraries.
20266
build_libtool_libs=$enable_shared
20268
# Whether or not to build static libraries.
20269
build_old_libs=$enable_static
20271
# Whether or not to add -lc for building shared libraries.
20272
build_libtool_need_lc=$archive_cmds_need_lc_RC
20274
# Whether or not to disallow shared libs when runtime libs are static
20275
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20277
# Whether or not to optimize for fast installation.
20278
fast_install=$enable_fast_install
20281
host_alias=$host_alias
20284
# An echo program that does not interpret backslashes.
20289
AR_FLAGS=$lt_AR_FLAGS
20294
# A language-specific compiler.
20297
# Is the compiler the GNU C compiler?
20303
# The linker used to build libraries.
20306
# Whether we need hard or soft links.
20309
# A BSD-compatible nm program.
20312
# A symbol stripping program
20315
# Used to examine libraries when file_magic_cmd begins "file"
20316
MAGIC_CMD=$MAGIC_CMD
20318
# Used on cygwin: DLL creation program.
20321
# Used on cygwin: object dumper.
20324
# Used on cygwin: assembler.
20327
# The name of the directory that contains temporary libtool files.
20330
# How to create reloadable object files.
20331
reload_flag=$lt_reload_flag
20332
reload_cmds=$lt_reload_cmds
20334
# How to pass a linker flag through the compiler.
20335
wl=$lt_lt_prog_compiler_wl_RC
20337
# Object file suffix (normally "o").
20338
objext="$ac_objext"
20340
# Old archive suffix (normally "a").
20343
# Shared library suffix (normally ".so").
20344
shrext_cmds='$shrext_cmds'
20346
# Executable file suffix (normally "").
20349
# Additional compiler flags for building library objects.
20350
pic_flag=$lt_lt_prog_compiler_pic_RC
20353
# What is the maximum length of a command?
20354
max_cmd_len=$lt_cv_sys_max_cmd_len
20356
# Does compiler simultaneously support -c and -o options?
20357
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20359
# Must we lock files when doing compilation ?
20360
need_locks=$lt_need_locks
20362
# Do we need the lib prefix for modules?
20363
need_lib_prefix=$need_lib_prefix
20365
# Do we need a version for libraries?
20366
need_version=$need_version
20368
# Whether dlopen is supported.
20369
dlopen_support=$enable_dlopen
20371
# Whether dlopen of programs is supported.
20372
dlopen_self=$enable_dlopen_self
20374
# Whether dlopen of statically linked programs is supported.
20375
dlopen_self_static=$enable_dlopen_self_static
20377
# Compiler flag to prevent dynamic linking.
20378
link_static_flag=$lt_lt_prog_compiler_static_RC
20380
# Compiler flag to turn off builtin functions.
20381
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20383
# Compiler flag to allow reflexive dlopens.
20384
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20386
# Compiler flag to generate shared objects directly from archives.
20387
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20389
# Compiler flag to generate thread-safe objects.
20390
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20392
# Library versioning type.
20393
version_type=$version_type
20395
# Format of library name prefix.
20396
libname_spec=$lt_libname_spec
20398
# List of archive names. First name is the real one, the rest are links.
20399
# The last name is the one that the linker finds with -lNAME.
20400
library_names_spec=$lt_library_names_spec
20402
# The coded name of the library, if different from the real name.
20403
soname_spec=$lt_soname_spec
20405
# Commands used to build and install an old-style archive.
20407
old_archive_cmds=$lt_old_archive_cmds_RC
20408
old_postinstall_cmds=$lt_old_postinstall_cmds
20409
old_postuninstall_cmds=$lt_old_postuninstall_cmds
20411
# Create an old-style archive from a shared archive.
20412
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20414
# Create a temporary old-style archive to link instead of a shared archive.
20415
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20417
# Commands used to build and install a shared archive.
20418
archive_cmds=$lt_archive_cmds_RC
20419
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20420
postinstall_cmds=$lt_postinstall_cmds
20421
postuninstall_cmds=$lt_postuninstall_cmds
20423
# Commands used to build a loadable module (assumed same as above if empty)
20424
module_cmds=$lt_module_cmds_RC
20425
module_expsym_cmds=$lt_module_expsym_cmds_RC
20427
# Commands to strip libraries.
20428
old_striplib=$lt_old_striplib
20429
striplib=$lt_striplib
20431
# Dependencies to place before the objects being linked to create a
20433
predep_objects=$lt_predep_objects_RC
20435
# Dependencies to place after the objects being linked to create a
20437
postdep_objects=$lt_postdep_objects_RC
20439
# Dependencies to place before the objects being linked to create a
20441
predeps=$lt_predeps_RC
20443
# Dependencies to place after the objects being linked to create a
20445
postdeps=$lt_postdeps_RC
20447
# The library search path used internally by the compiler when linking
20448
# a shared library.
20449
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20451
# Method to check whether dependent libraries are shared objects.
20452
deplibs_check_method=$lt_deplibs_check_method
20454
# Command to use when deplibs_check_method == file_magic.
20455
file_magic_cmd=$lt_file_magic_cmd
20457
# Flag that allows shared libraries with undefined symbols to be built.
20458
allow_undefined_flag=$lt_allow_undefined_flag_RC
20460
# Flag that forces no undefined symbols.
20461
no_undefined_flag=$lt_no_undefined_flag_RC
20463
# Commands used to finish a libtool library installation in a directory.
20464
finish_cmds=$lt_finish_cmds
20466
# Same as above, but a single script fragment to be evaled but not shown.
20467
finish_eval=$lt_finish_eval
20469
# Take the output of nm and produce a listing of raw symbols and C names.
20470
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20472
# Transform the output of nm in a proper C declaration
20473
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20475
# Transform the output of nm in a C name address pair
20476
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20478
# This is the shared library runtime path variable.
20479
runpath_var=$runpath_var
20481
# This is the shared library path variable.
20482
shlibpath_var=$shlibpath_var
20484
# Is shlibpath searched before the hard-coded library search path?
20485
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20487
# How to hardcode a shared library path into an executable.
20488
hardcode_action=$hardcode_action_RC
20490
# Whether we should hardcode library paths into libraries.
20491
hardcode_into_libs=$hardcode_into_libs
20493
# Flag to hardcode \$libdir into a binary during linking.
20494
# This must work even if \$libdir does not exist.
20495
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20497
# If ld is used when linking, flag to hardcode \$libdir into
20498
# a binary during linking. This must work even if \$libdir does
20500
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20502
# Whether we need a single -rpath flag with a separated argument.
20503
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20505
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20506
# resulting binary.
20507
hardcode_direct=$hardcode_direct_RC
20509
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20510
# resulting binary.
20511
hardcode_minus_L=$hardcode_minus_L_RC
20513
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20514
# the resulting binary.
20515
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20517
# Set to yes if building a shared library automatically hardcodes DIR into the library
20518
# and all subsequent libraries and executables linked against it.
20519
hardcode_automatic=$hardcode_automatic_RC
20521
# Variables whose values should be saved in libtool wrapper scripts and
20522
# restored at relink time.
20523
variables_saved_for_relink="$variables_saved_for_relink"
20525
# Whether libtool must link a program against all its dependency libraries.
20526
link_all_deplibs=$link_all_deplibs_RC
20528
# Compile-time system search path for libraries
20529
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20531
# Run-time system search path for libraries
20532
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20534
# Fix the shell variable \$srcfile for the compiler.
20535
fix_srcfile_path="$fix_srcfile_path_RC"
20537
# Set to yes if exported symbols are required.
20538
always_export_symbols=$always_export_symbols_RC
20540
# The commands to list exported symbols.
20541
export_symbols_cmds=$lt_export_symbols_cmds_RC
20543
# The commands to extract the exported symbol list from a shared archive.
20544
extract_expsyms_cmds=$lt_extract_expsyms_cmds
20546
# Symbols that should not be listed in the preloaded symbols.
20547
exclude_expsyms=$lt_exclude_expsyms_RC
20549
# Symbols that must always be exported.
20550
include_expsyms=$lt_include_expsyms_RC
20552
# ### END LIBTOOL TAG CONFIG: $tagname
20558
# If there is no Makefile yet, we rely on a make rule to execute
20559
# `config.status --recheck' to rerun these tests and create the
20560
# libtool script then.
20561
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20562
if test -f "$ltmain_in"; then
20563
test -f Makefile && make "$ltmain"
20569
ac_cpp='$CPP $CPPFLAGS'
20570
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20571
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20572
ac_compiler_gnu=$ac_cv_c_compiler_gnu
20579
{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20580
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20581
{ (exit 1); exit 1; }; }
20585
# Append the new tag name to the list of available tags.
20586
if test -n "$tagname" ; then
20587
available_tags="$available_tags $tagname"
20593
# Now substitute the updated list of available tags.
20594
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20595
mv "${ofile}T" "$ofile"
20599
{ { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20600
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20601
{ (exit 1); exit 1; }; }
20607
# This can be used to rebuild libtool when needed
20608
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20610
# Always use our own libtool.
20611
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20613
# Prevent multiple expansion
20634
# Find a good install program. We prefer a C program (faster),
20635
# so one script is as good as another. But avoid the broken or
20636
# incompatible versions:
20637
# SysV /etc/install, /usr/sbin/install
20638
# SunOS /usr/etc/install
20639
# IRIX /sbin/install
20641
# AmigaOS /C/install, which installs bootblocks on floppy discs
20642
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
20643
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
20644
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
20645
# OS/2's system install, which has a completely different semantic
20646
# ./install, which can be erroneously created by make from ./install.sh.
20647
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
20648
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
20649
if test -z "$INSTALL"; then
20650
if test "${ac_cv_path_install+set}" = set; then
20651
echo $ECHO_N "(cached) $ECHO_C" >&6
20653
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20654
for as_dir in $PATH
20657
test -z "$as_dir" && as_dir=.
20658
# Account for people who put trailing slashes in PATH elements.
20660
./ | .// | /cC/* | \
20661
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
20662
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
20665
# OSF1 and SCO ODT 3.0 have their own names for install.
20666
# Don't use installbsd from OSF since it installs stuff as root
20668
for ac_prog in ginstall scoinst install; do
20669
for ac_exec_ext in '' $ac_executable_extensions; do
20670
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
20671
if test $ac_prog = install &&
20672
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
20673
# AIX install. It has an incompatible calling convention.
20675
elif test $ac_prog = install &&
20676
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
20677
# program-specific install script used by HP pwplus--don't use.
20680
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
20692
if test "${ac_cv_path_install+set}" = set; then
20693
INSTALL=$ac_cv_path_install
20695
# As a last resort, use the slow shell script. We don't cache a
20696
# path for INSTALL within a source directory, because that will
20697
# break other packages using the cache if that directory is
20698
# removed, or if the path is relative.
20699
INSTALL=$ac_install_sh
20702
echo "$as_me:$LINENO: result: $INSTALL" >&5
20703
echo "${ECHO_T}$INSTALL" >&6
20705
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
20706
# It thinks the first close brace ends the variable substitution.
20707
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
20709
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
20711
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
20716
echo "$as_me:$LINENO: checking whether char is unsigned" >&5
20717
echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
20718
if test "${ac_cv_c_char_unsigned+set}" = set; then
20719
echo $ECHO_N "(cached) $ECHO_C" >&6
20721
cat >conftest.$ac_ext <<_ACEOF
20724
cat confdefs.h >>conftest.$ac_ext
20725
cat >>conftest.$ac_ext <<_ACEOF
20726
/* end confdefs.h. */
20727
$ac_includes_default
20731
static int test_array [1 - 2 * !(((char) -1) < 0)];
20738
rm -f conftest.$ac_objext
20739
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20740
(eval $ac_compile) 2>conftest.er1
20742
grep -v '^ *+' conftest.er1 >conftest.err
20744
cat conftest.err >&5
20745
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20746
(exit $ac_status); } &&
20747
{ ac_try='test -z "$ac_c_werror_flag"
20748
|| test ! -s conftest.err'
20749
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20750
(eval $ac_try) 2>&5
20752
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20753
(exit $ac_status); }; } &&
20754
{ ac_try='test -s conftest.$ac_objext'
20755
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20756
(eval $ac_try) 2>&5
20758
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20759
(exit $ac_status); }; }; then
20760
ac_cv_c_char_unsigned=no
20762
echo "$as_me: failed program was:" >&5
20763
sed 's/^/| /' conftest.$ac_ext >&5
20765
ac_cv_c_char_unsigned=yes
20767
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20769
echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
20770
echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
20771
if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
20772
cat >>confdefs.h <<\_ACEOF
20773
#define __CHAR_UNSIGNED__ 1
20778
echo "$as_me:$LINENO: checking for char" >&5
20779
echo $ECHO_N "checking for char... $ECHO_C" >&6
20780
if test "${ac_cv_type_char+set}" = set; then
20781
echo $ECHO_N "(cached) $ECHO_C" >&6
20783
cat >conftest.$ac_ext <<_ACEOF
20786
cat confdefs.h >>conftest.$ac_ext
20787
cat >>conftest.$ac_ext <<_ACEOF
20788
/* end confdefs.h. */
20789
$ac_includes_default
20801
rm -f conftest.$ac_objext
20802
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20803
(eval $ac_compile) 2>conftest.er1
20805
grep -v '^ *+' conftest.er1 >conftest.err
20807
cat conftest.err >&5
20808
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20809
(exit $ac_status); } &&
20810
{ ac_try='test -z "$ac_c_werror_flag"
20811
|| test ! -s conftest.err'
20812
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20813
(eval $ac_try) 2>&5
20815
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20816
(exit $ac_status); }; } &&
20817
{ ac_try='test -s conftest.$ac_objext'
20818
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20819
(eval $ac_try) 2>&5
20821
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20822
(exit $ac_status); }; }; then
20823
ac_cv_type_char=yes
20825
echo "$as_me: failed program was:" >&5
20826
sed 's/^/| /' conftest.$ac_ext >&5
20830
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20832
echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
20833
echo "${ECHO_T}$ac_cv_type_char" >&6
20835
echo "$as_me:$LINENO: checking size of char" >&5
20836
echo $ECHO_N "checking size of char... $ECHO_C" >&6
20837
if test "${ac_cv_sizeof_char+set}" = set; then
20838
echo $ECHO_N "(cached) $ECHO_C" >&6
20840
if test "$ac_cv_type_char" = yes; then
20841
# The cast to unsigned long works around a bug in the HP C Compiler
20842
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20843
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20844
# This bug is HP SR number 8606223364.
20845
if test "$cross_compiling" = yes; then
20846
# Depending upon the size, compute the lo and hi bounds.
20847
cat >conftest.$ac_ext <<_ACEOF
20850
cat confdefs.h >>conftest.$ac_ext
20851
cat >>conftest.$ac_ext <<_ACEOF
20852
/* end confdefs.h. */
20853
$ac_includes_default
20857
static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
20864
rm -f conftest.$ac_objext
20865
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20866
(eval $ac_compile) 2>conftest.er1
20868
grep -v '^ *+' conftest.er1 >conftest.err
20870
cat conftest.err >&5
20871
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20872
(exit $ac_status); } &&
20873
{ ac_try='test -z "$ac_c_werror_flag"
20874
|| test ! -s conftest.err'
20875
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20876
(eval $ac_try) 2>&5
20878
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20879
(exit $ac_status); }; } &&
20880
{ ac_try='test -s conftest.$ac_objext'
20881
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20882
(eval $ac_try) 2>&5
20884
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20885
(exit $ac_status); }; }; then
20888
cat >conftest.$ac_ext <<_ACEOF
20891
cat confdefs.h >>conftest.$ac_ext
20892
cat >>conftest.$ac_ext <<_ACEOF
20893
/* end confdefs.h. */
20894
$ac_includes_default
20898
static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
20905
rm -f conftest.$ac_objext
20906
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20907
(eval $ac_compile) 2>conftest.er1
20909
grep -v '^ *+' conftest.er1 >conftest.err
20911
cat conftest.err >&5
20912
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20913
(exit $ac_status); } &&
20914
{ ac_try='test -z "$ac_c_werror_flag"
20915
|| test ! -s conftest.err'
20916
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20917
(eval $ac_try) 2>&5
20919
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20920
(exit $ac_status); }; } &&
20921
{ ac_try='test -s conftest.$ac_objext'
20922
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20923
(eval $ac_try) 2>&5
20925
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20926
(exit $ac_status); }; }; then
20927
ac_hi=$ac_mid; break
20929
echo "$as_me: failed program was:" >&5
20930
sed 's/^/| /' conftest.$ac_ext >&5
20932
ac_lo=`expr $ac_mid + 1`
20933
if test $ac_lo -le $ac_mid; then
20937
ac_mid=`expr 2 '*' $ac_mid + 1`
20939
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20942
echo "$as_me: failed program was:" >&5
20943
sed 's/^/| /' conftest.$ac_ext >&5
20945
cat >conftest.$ac_ext <<_ACEOF
20948
cat confdefs.h >>conftest.$ac_ext
20949
cat >>conftest.$ac_ext <<_ACEOF
20950
/* end confdefs.h. */
20951
$ac_includes_default
20955
static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
20962
rm -f conftest.$ac_objext
20963
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20964
(eval $ac_compile) 2>conftest.er1
20966
grep -v '^ *+' conftest.er1 >conftest.err
20968
cat conftest.err >&5
20969
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20970
(exit $ac_status); } &&
20971
{ ac_try='test -z "$ac_c_werror_flag"
20972
|| test ! -s conftest.err'
20973
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20974
(eval $ac_try) 2>&5
20976
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20977
(exit $ac_status); }; } &&
20978
{ ac_try='test -s conftest.$ac_objext'
20979
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20980
(eval $ac_try) 2>&5
20982
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20983
(exit $ac_status); }; }; then
20986
cat >conftest.$ac_ext <<_ACEOF
20989
cat confdefs.h >>conftest.$ac_ext
20990
cat >>conftest.$ac_ext <<_ACEOF
20991
/* end confdefs.h. */
20992
$ac_includes_default
20996
static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
21003
rm -f conftest.$ac_objext
21004
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21005
(eval $ac_compile) 2>conftest.er1
21007
grep -v '^ *+' conftest.er1 >conftest.err
21009
cat conftest.err >&5
21010
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21011
(exit $ac_status); } &&
21012
{ ac_try='test -z "$ac_c_werror_flag"
21013
|| test ! -s conftest.err'
21014
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21015
(eval $ac_try) 2>&5
21017
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21018
(exit $ac_status); }; } &&
21019
{ ac_try='test -s conftest.$ac_objext'
21020
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21021
(eval $ac_try) 2>&5
21023
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21024
(exit $ac_status); }; }; then
21025
ac_lo=$ac_mid; break
21027
echo "$as_me: failed program was:" >&5
21028
sed 's/^/| /' conftest.$ac_ext >&5
21030
ac_hi=`expr '(' $ac_mid ')' - 1`
21031
if test $ac_mid -le $ac_hi; then
21035
ac_mid=`expr 2 '*' $ac_mid`
21037
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21040
echo "$as_me: failed program was:" >&5
21041
sed 's/^/| /' conftest.$ac_ext >&5
21045
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21047
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21048
# Binary search between lo and hi bounds.
21049
while test "x$ac_lo" != "x$ac_hi"; do
21050
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21051
cat >conftest.$ac_ext <<_ACEOF
21054
cat confdefs.h >>conftest.$ac_ext
21055
cat >>conftest.$ac_ext <<_ACEOF
21056
/* end confdefs.h. */
21057
$ac_includes_default
21061
static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
21068
rm -f conftest.$ac_objext
21069
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21070
(eval $ac_compile) 2>conftest.er1
21072
grep -v '^ *+' conftest.er1 >conftest.err
21074
cat conftest.err >&5
21075
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21076
(exit $ac_status); } &&
21077
{ ac_try='test -z "$ac_c_werror_flag"
21078
|| test ! -s conftest.err'
21079
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21080
(eval $ac_try) 2>&5
21082
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21083
(exit $ac_status); }; } &&
21084
{ ac_try='test -s conftest.$ac_objext'
21085
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21086
(eval $ac_try) 2>&5
21088
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21089
(exit $ac_status); }; }; then
21092
echo "$as_me: failed program was:" >&5
21093
sed 's/^/| /' conftest.$ac_ext >&5
21095
ac_lo=`expr '(' $ac_mid ')' + 1`
21097
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21100
?*) ac_cv_sizeof_char=$ac_lo;;
21101
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
21102
See \`config.log' for more details." >&5
21103
echo "$as_me: error: cannot compute sizeof (char), 77
21104
See \`config.log' for more details." >&2;}
21105
{ (exit 1); exit 1; }; } ;;
21108
if test "$cross_compiling" = yes; then
21109
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21110
See \`config.log' for more details." >&5
21111
echo "$as_me: error: cannot run test program while cross compiling
21112
See \`config.log' for more details." >&2;}
21113
{ (exit 1); exit 1; }; }
21115
cat >conftest.$ac_ext <<_ACEOF
21118
cat confdefs.h >>conftest.$ac_ext
21119
cat >>conftest.$ac_ext <<_ACEOF
21120
/* end confdefs.h. */
21121
$ac_includes_default
21122
long longval () { return (long) (sizeof (char)); }
21123
unsigned long ulongval () { return (long) (sizeof (char)); }
21125
#include <stdlib.h>
21130
FILE *f = fopen ("conftest.val", "w");
21133
if (((long) (sizeof (char))) < 0)
21135
long i = longval ();
21136
if (i != ((long) (sizeof (char))))
21138
fprintf (f, "%ld\n", i);
21142
unsigned long i = ulongval ();
21143
if (i != ((long) (sizeof (char))))
21145
fprintf (f, "%lu\n", i);
21147
exit (ferror (f) || fclose (f) != 0);
21153
rm -f conftest$ac_exeext
21154
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21155
(eval $ac_link) 2>&5
21157
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21158
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21159
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21160
(eval $ac_try) 2>&5
21162
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21163
(exit $ac_status); }; }; then
21164
ac_cv_sizeof_char=`cat conftest.val`
21166
echo "$as_me: program exited with status $ac_status" >&5
21167
echo "$as_me: failed program was:" >&5
21168
sed 's/^/| /' conftest.$ac_ext >&5
21170
( exit $ac_status )
21171
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
21172
See \`config.log' for more details." >&5
21173
echo "$as_me: error: cannot compute sizeof (char), 77
21174
See \`config.log' for more details." >&2;}
21175
{ (exit 1); exit 1; }; }
21177
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21182
ac_cv_sizeof_char=0
21185
echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
21186
echo "${ECHO_T}$ac_cv_sizeof_char" >&6
21187
cat >>confdefs.h <<_ACEOF
21188
#define SIZEOF_CHAR $ac_cv_sizeof_char
21192
echo "$as_me:$LINENO: checking for short" >&5
21193
echo $ECHO_N "checking for short... $ECHO_C" >&6
21194
if test "${ac_cv_type_short+set}" = set; then
21195
echo $ECHO_N "(cached) $ECHO_C" >&6
21197
cat >conftest.$ac_ext <<_ACEOF
21200
cat confdefs.h >>conftest.$ac_ext
21201
cat >>conftest.$ac_ext <<_ACEOF
21202
/* end confdefs.h. */
21203
$ac_includes_default
21209
if (sizeof (short))
21215
rm -f conftest.$ac_objext
21216
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21217
(eval $ac_compile) 2>conftest.er1
21219
grep -v '^ *+' conftest.er1 >conftest.err
21221
cat conftest.err >&5
21222
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21223
(exit $ac_status); } &&
21224
{ ac_try='test -z "$ac_c_werror_flag"
21225
|| test ! -s conftest.err'
21226
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21227
(eval $ac_try) 2>&5
21229
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21230
(exit $ac_status); }; } &&
21231
{ ac_try='test -s conftest.$ac_objext'
21232
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21233
(eval $ac_try) 2>&5
21235
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21236
(exit $ac_status); }; }; then
21237
ac_cv_type_short=yes
21239
echo "$as_me: failed program was:" >&5
21240
sed 's/^/| /' conftest.$ac_ext >&5
21242
ac_cv_type_short=no
21244
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21246
echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
21247
echo "${ECHO_T}$ac_cv_type_short" >&6
21249
echo "$as_me:$LINENO: checking size of short" >&5
21250
echo $ECHO_N "checking size of short... $ECHO_C" >&6
21251
if test "${ac_cv_sizeof_short+set}" = set; then
21252
echo $ECHO_N "(cached) $ECHO_C" >&6
21254
if test "$ac_cv_type_short" = yes; then
21255
# The cast to unsigned long works around a bug in the HP C Compiler
21256
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21257
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21258
# This bug is HP SR number 8606223364.
21259
if test "$cross_compiling" = yes; then
21260
# Depending upon the size, compute the lo and hi bounds.
21261
cat >conftest.$ac_ext <<_ACEOF
21264
cat confdefs.h >>conftest.$ac_ext
21265
cat >>conftest.$ac_ext <<_ACEOF
21266
/* end confdefs.h. */
21267
$ac_includes_default
21271
static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
21278
rm -f conftest.$ac_objext
21279
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21280
(eval $ac_compile) 2>conftest.er1
21282
grep -v '^ *+' conftest.er1 >conftest.err
21284
cat conftest.err >&5
21285
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21286
(exit $ac_status); } &&
21287
{ ac_try='test -z "$ac_c_werror_flag"
21288
|| test ! -s conftest.err'
21289
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21290
(eval $ac_try) 2>&5
21292
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21293
(exit $ac_status); }; } &&
21294
{ ac_try='test -s conftest.$ac_objext'
21295
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21296
(eval $ac_try) 2>&5
21298
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21299
(exit $ac_status); }; }; then
21302
cat >conftest.$ac_ext <<_ACEOF
21305
cat confdefs.h >>conftest.$ac_ext
21306
cat >>conftest.$ac_ext <<_ACEOF
21307
/* end confdefs.h. */
21308
$ac_includes_default
21312
static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
21319
rm -f conftest.$ac_objext
21320
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21321
(eval $ac_compile) 2>conftest.er1
21323
grep -v '^ *+' conftest.er1 >conftest.err
21325
cat conftest.err >&5
21326
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21327
(exit $ac_status); } &&
21328
{ ac_try='test -z "$ac_c_werror_flag"
21329
|| test ! -s conftest.err'
21330
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21331
(eval $ac_try) 2>&5
21333
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21334
(exit $ac_status); }; } &&
21335
{ ac_try='test -s conftest.$ac_objext'
21336
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21337
(eval $ac_try) 2>&5
21339
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21340
(exit $ac_status); }; }; then
21341
ac_hi=$ac_mid; break
21343
echo "$as_me: failed program was:" >&5
21344
sed 's/^/| /' conftest.$ac_ext >&5
21346
ac_lo=`expr $ac_mid + 1`
21347
if test $ac_lo -le $ac_mid; then
21351
ac_mid=`expr 2 '*' $ac_mid + 1`
21353
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21356
echo "$as_me: failed program was:" >&5
21357
sed 's/^/| /' conftest.$ac_ext >&5
21359
cat >conftest.$ac_ext <<_ACEOF
21362
cat confdefs.h >>conftest.$ac_ext
21363
cat >>conftest.$ac_ext <<_ACEOF
21364
/* end confdefs.h. */
21365
$ac_includes_default
21369
static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
21376
rm -f conftest.$ac_objext
21377
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21378
(eval $ac_compile) 2>conftest.er1
21380
grep -v '^ *+' conftest.er1 >conftest.err
21382
cat conftest.err >&5
21383
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21384
(exit $ac_status); } &&
21385
{ ac_try='test -z "$ac_c_werror_flag"
21386
|| test ! -s conftest.err'
21387
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21388
(eval $ac_try) 2>&5
21390
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21391
(exit $ac_status); }; } &&
21392
{ ac_try='test -s conftest.$ac_objext'
21393
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21394
(eval $ac_try) 2>&5
21396
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21397
(exit $ac_status); }; }; then
21400
cat >conftest.$ac_ext <<_ACEOF
21403
cat confdefs.h >>conftest.$ac_ext
21404
cat >>conftest.$ac_ext <<_ACEOF
21405
/* end confdefs.h. */
21406
$ac_includes_default
21410
static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
21417
rm -f conftest.$ac_objext
21418
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21419
(eval $ac_compile) 2>conftest.er1
21421
grep -v '^ *+' conftest.er1 >conftest.err
21423
cat conftest.err >&5
21424
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21425
(exit $ac_status); } &&
21426
{ ac_try='test -z "$ac_c_werror_flag"
21427
|| test ! -s conftest.err'
21428
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21429
(eval $ac_try) 2>&5
21431
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21432
(exit $ac_status); }; } &&
21433
{ ac_try='test -s conftest.$ac_objext'
21434
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21435
(eval $ac_try) 2>&5
21437
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21438
(exit $ac_status); }; }; then
21439
ac_lo=$ac_mid; break
21441
echo "$as_me: failed program was:" >&5
21442
sed 's/^/| /' conftest.$ac_ext >&5
21444
ac_hi=`expr '(' $ac_mid ')' - 1`
21445
if test $ac_mid -le $ac_hi; then
21449
ac_mid=`expr 2 '*' $ac_mid`
21451
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21454
echo "$as_me: failed program was:" >&5
21455
sed 's/^/| /' conftest.$ac_ext >&5
21459
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21461
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21462
# Binary search between lo and hi bounds.
21463
while test "x$ac_lo" != "x$ac_hi"; do
21464
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21465
cat >conftest.$ac_ext <<_ACEOF
21468
cat confdefs.h >>conftest.$ac_ext
21469
cat >>conftest.$ac_ext <<_ACEOF
21470
/* end confdefs.h. */
21471
$ac_includes_default
21475
static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
21482
rm -f conftest.$ac_objext
21483
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21484
(eval $ac_compile) 2>conftest.er1
21486
grep -v '^ *+' conftest.er1 >conftest.err
21488
cat conftest.err >&5
21489
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21490
(exit $ac_status); } &&
21491
{ ac_try='test -z "$ac_c_werror_flag"
21492
|| test ! -s conftest.err'
21493
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21494
(eval $ac_try) 2>&5
21496
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21497
(exit $ac_status); }; } &&
21498
{ ac_try='test -s conftest.$ac_objext'
21499
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21500
(eval $ac_try) 2>&5
21502
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21503
(exit $ac_status); }; }; then
21506
echo "$as_me: failed program was:" >&5
21507
sed 's/^/| /' conftest.$ac_ext >&5
21509
ac_lo=`expr '(' $ac_mid ')' + 1`
21511
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21514
?*) ac_cv_sizeof_short=$ac_lo;;
21515
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
21516
See \`config.log' for more details." >&5
21517
echo "$as_me: error: cannot compute sizeof (short), 77
21518
See \`config.log' for more details." >&2;}
21519
{ (exit 1); exit 1; }; } ;;
21522
if test "$cross_compiling" = yes; then
21523
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21524
See \`config.log' for more details." >&5
21525
echo "$as_me: error: cannot run test program while cross compiling
21526
See \`config.log' for more details." >&2;}
21527
{ (exit 1); exit 1; }; }
21529
cat >conftest.$ac_ext <<_ACEOF
21532
cat confdefs.h >>conftest.$ac_ext
21533
cat >>conftest.$ac_ext <<_ACEOF
21534
/* end confdefs.h. */
21535
$ac_includes_default
21536
long longval () { return (long) (sizeof (short)); }
21537
unsigned long ulongval () { return (long) (sizeof (short)); }
21539
#include <stdlib.h>
21544
FILE *f = fopen ("conftest.val", "w");
21547
if (((long) (sizeof (short))) < 0)
21549
long i = longval ();
21550
if (i != ((long) (sizeof (short))))
21552
fprintf (f, "%ld\n", i);
21556
unsigned long i = ulongval ();
21557
if (i != ((long) (sizeof (short))))
21559
fprintf (f, "%lu\n", i);
21561
exit (ferror (f) || fclose (f) != 0);
21567
rm -f conftest$ac_exeext
21568
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21569
(eval $ac_link) 2>&5
21571
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21572
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21573
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21574
(eval $ac_try) 2>&5
21576
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21577
(exit $ac_status); }; }; then
21578
ac_cv_sizeof_short=`cat conftest.val`
21580
echo "$as_me: program exited with status $ac_status" >&5
21581
echo "$as_me: failed program was:" >&5
21582
sed 's/^/| /' conftest.$ac_ext >&5
21584
( exit $ac_status )
21585
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
21586
See \`config.log' for more details." >&5
21587
echo "$as_me: error: cannot compute sizeof (short), 77
21588
See \`config.log' for more details." >&2;}
21589
{ (exit 1); exit 1; }; }
21591
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21596
ac_cv_sizeof_short=0
21599
echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
21600
echo "${ECHO_T}$ac_cv_sizeof_short" >&6
21601
cat >>confdefs.h <<_ACEOF
21602
#define SIZEOF_SHORT $ac_cv_sizeof_short
21606
echo "$as_me:$LINENO: checking for int" >&5
21607
echo $ECHO_N "checking for int... $ECHO_C" >&6
21608
if test "${ac_cv_type_int+set}" = set; then
21609
echo $ECHO_N "(cached) $ECHO_C" >&6
21611
cat >conftest.$ac_ext <<_ACEOF
21614
cat confdefs.h >>conftest.$ac_ext
21615
cat >>conftest.$ac_ext <<_ACEOF
21616
/* end confdefs.h. */
21617
$ac_includes_default
21629
rm -f conftest.$ac_objext
21630
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21631
(eval $ac_compile) 2>conftest.er1
21633
grep -v '^ *+' conftest.er1 >conftest.err
21635
cat conftest.err >&5
21636
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21637
(exit $ac_status); } &&
21638
{ ac_try='test -z "$ac_c_werror_flag"
21639
|| test ! -s conftest.err'
21640
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21641
(eval $ac_try) 2>&5
21643
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21644
(exit $ac_status); }; } &&
21645
{ ac_try='test -s conftest.$ac_objext'
21646
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21647
(eval $ac_try) 2>&5
21649
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21650
(exit $ac_status); }; }; then
21653
echo "$as_me: failed program was:" >&5
21654
sed 's/^/| /' conftest.$ac_ext >&5
21658
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21660
echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
21661
echo "${ECHO_T}$ac_cv_type_int" >&6
21663
echo "$as_me:$LINENO: checking size of int" >&5
21664
echo $ECHO_N "checking size of int... $ECHO_C" >&6
21665
if test "${ac_cv_sizeof_int+set}" = set; then
21666
echo $ECHO_N "(cached) $ECHO_C" >&6
21668
if test "$ac_cv_type_int" = yes; then
21669
# The cast to unsigned long works around a bug in the HP C Compiler
21670
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21671
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21672
# This bug is HP SR number 8606223364.
21673
if test "$cross_compiling" = yes; then
21674
# Depending upon the size, compute the lo and hi bounds.
21675
cat >conftest.$ac_ext <<_ACEOF
21678
cat confdefs.h >>conftest.$ac_ext
21679
cat >>conftest.$ac_ext <<_ACEOF
21680
/* end confdefs.h. */
21681
$ac_includes_default
21685
static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
21692
rm -f conftest.$ac_objext
21693
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21694
(eval $ac_compile) 2>conftest.er1
21696
grep -v '^ *+' conftest.er1 >conftest.err
21698
cat conftest.err >&5
21699
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21700
(exit $ac_status); } &&
21701
{ ac_try='test -z "$ac_c_werror_flag"
21702
|| test ! -s conftest.err'
21703
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21704
(eval $ac_try) 2>&5
21706
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21707
(exit $ac_status); }; } &&
21708
{ ac_try='test -s conftest.$ac_objext'
21709
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21710
(eval $ac_try) 2>&5
21712
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21713
(exit $ac_status); }; }; then
21716
cat >conftest.$ac_ext <<_ACEOF
21719
cat confdefs.h >>conftest.$ac_ext
21720
cat >>conftest.$ac_ext <<_ACEOF
21721
/* end confdefs.h. */
21722
$ac_includes_default
21726
static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
21733
rm -f conftest.$ac_objext
21734
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21735
(eval $ac_compile) 2>conftest.er1
21737
grep -v '^ *+' conftest.er1 >conftest.err
21739
cat conftest.err >&5
21740
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21741
(exit $ac_status); } &&
21742
{ ac_try='test -z "$ac_c_werror_flag"
21743
|| test ! -s conftest.err'
21744
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21745
(eval $ac_try) 2>&5
21747
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21748
(exit $ac_status); }; } &&
21749
{ ac_try='test -s conftest.$ac_objext'
21750
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21751
(eval $ac_try) 2>&5
21753
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21754
(exit $ac_status); }; }; then
21755
ac_hi=$ac_mid; break
21757
echo "$as_me: failed program was:" >&5
21758
sed 's/^/| /' conftest.$ac_ext >&5
21760
ac_lo=`expr $ac_mid + 1`
21761
if test $ac_lo -le $ac_mid; then
21765
ac_mid=`expr 2 '*' $ac_mid + 1`
21767
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21770
echo "$as_me: failed program was:" >&5
21771
sed 's/^/| /' conftest.$ac_ext >&5
21773
cat >conftest.$ac_ext <<_ACEOF
21776
cat confdefs.h >>conftest.$ac_ext
21777
cat >>conftest.$ac_ext <<_ACEOF
21778
/* end confdefs.h. */
21779
$ac_includes_default
21783
static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
21790
rm -f conftest.$ac_objext
21791
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21792
(eval $ac_compile) 2>conftest.er1
21794
grep -v '^ *+' conftest.er1 >conftest.err
21796
cat conftest.err >&5
21797
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21798
(exit $ac_status); } &&
21799
{ ac_try='test -z "$ac_c_werror_flag"
21800
|| test ! -s conftest.err'
21801
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21802
(eval $ac_try) 2>&5
21804
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21805
(exit $ac_status); }; } &&
21806
{ ac_try='test -s conftest.$ac_objext'
21807
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21808
(eval $ac_try) 2>&5
21810
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21811
(exit $ac_status); }; }; then
21814
cat >conftest.$ac_ext <<_ACEOF
21817
cat confdefs.h >>conftest.$ac_ext
21818
cat >>conftest.$ac_ext <<_ACEOF
21819
/* end confdefs.h. */
21820
$ac_includes_default
21824
static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
21831
rm -f conftest.$ac_objext
21832
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21833
(eval $ac_compile) 2>conftest.er1
21835
grep -v '^ *+' conftest.er1 >conftest.err
21837
cat conftest.err >&5
21838
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21839
(exit $ac_status); } &&
21840
{ ac_try='test -z "$ac_c_werror_flag"
21841
|| test ! -s conftest.err'
21842
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21843
(eval $ac_try) 2>&5
21845
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21846
(exit $ac_status); }; } &&
21847
{ ac_try='test -s conftest.$ac_objext'
21848
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21849
(eval $ac_try) 2>&5
21851
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21852
(exit $ac_status); }; }; then
21853
ac_lo=$ac_mid; break
21855
echo "$as_me: failed program was:" >&5
21856
sed 's/^/| /' conftest.$ac_ext >&5
21858
ac_hi=`expr '(' $ac_mid ')' - 1`
21859
if test $ac_mid -le $ac_hi; then
21863
ac_mid=`expr 2 '*' $ac_mid`
21865
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21868
echo "$as_me: failed program was:" >&5
21869
sed 's/^/| /' conftest.$ac_ext >&5
21873
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21875
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21876
# Binary search between lo and hi bounds.
21877
while test "x$ac_lo" != "x$ac_hi"; do
21878
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21879
cat >conftest.$ac_ext <<_ACEOF
21882
cat confdefs.h >>conftest.$ac_ext
21883
cat >>conftest.$ac_ext <<_ACEOF
21884
/* end confdefs.h. */
21885
$ac_includes_default
21889
static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
21896
rm -f conftest.$ac_objext
21897
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21898
(eval $ac_compile) 2>conftest.er1
21900
grep -v '^ *+' conftest.er1 >conftest.err
21902
cat conftest.err >&5
21903
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21904
(exit $ac_status); } &&
21905
{ ac_try='test -z "$ac_c_werror_flag"
21906
|| test ! -s conftest.err'
21907
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21908
(eval $ac_try) 2>&5
21910
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21911
(exit $ac_status); }; } &&
21912
{ ac_try='test -s conftest.$ac_objext'
21913
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21914
(eval $ac_try) 2>&5
21916
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21917
(exit $ac_status); }; }; then
21920
echo "$as_me: failed program was:" >&5
21921
sed 's/^/| /' conftest.$ac_ext >&5
21923
ac_lo=`expr '(' $ac_mid ')' + 1`
21925
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21928
?*) ac_cv_sizeof_int=$ac_lo;;
21929
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
21930
See \`config.log' for more details." >&5
21931
echo "$as_me: error: cannot compute sizeof (int), 77
21932
See \`config.log' for more details." >&2;}
21933
{ (exit 1); exit 1; }; } ;;
21936
if test "$cross_compiling" = yes; then
21937
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21938
See \`config.log' for more details." >&5
21939
echo "$as_me: error: cannot run test program while cross compiling
21940
See \`config.log' for more details." >&2;}
21941
{ (exit 1); exit 1; }; }
21943
cat >conftest.$ac_ext <<_ACEOF
21946
cat confdefs.h >>conftest.$ac_ext
21947
cat >>conftest.$ac_ext <<_ACEOF
21948
/* end confdefs.h. */
21949
$ac_includes_default
21950
long longval () { return (long) (sizeof (int)); }
21951
unsigned long ulongval () { return (long) (sizeof (int)); }
21953
#include <stdlib.h>
21958
FILE *f = fopen ("conftest.val", "w");
21961
if (((long) (sizeof (int))) < 0)
21963
long i = longval ();
21964
if (i != ((long) (sizeof (int))))
21966
fprintf (f, "%ld\n", i);
21970
unsigned long i = ulongval ();
21971
if (i != ((long) (sizeof (int))))
21973
fprintf (f, "%lu\n", i);
21975
exit (ferror (f) || fclose (f) != 0);
21981
rm -f conftest$ac_exeext
21982
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21983
(eval $ac_link) 2>&5
21985
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21986
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21987
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21988
(eval $ac_try) 2>&5
21990
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21991
(exit $ac_status); }; }; then
21992
ac_cv_sizeof_int=`cat conftest.val`
21994
echo "$as_me: program exited with status $ac_status" >&5
21995
echo "$as_me: failed program was:" >&5
21996
sed 's/^/| /' conftest.$ac_ext >&5
21998
( exit $ac_status )
21999
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
22000
See \`config.log' for more details." >&5
22001
echo "$as_me: error: cannot compute sizeof (int), 77
22002
See \`config.log' for more details." >&2;}
22003
{ (exit 1); exit 1; }; }
22005
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22013
echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
22014
echo "${ECHO_T}$ac_cv_sizeof_int" >&6
22015
cat >>confdefs.h <<_ACEOF
22016
#define SIZEOF_INT $ac_cv_sizeof_int
22020
echo "$as_me:$LINENO: checking for long" >&5
22021
echo $ECHO_N "checking for long... $ECHO_C" >&6
22022
if test "${ac_cv_type_long+set}" = set; then
22023
echo $ECHO_N "(cached) $ECHO_C" >&6
22025
cat >conftest.$ac_ext <<_ACEOF
22028
cat confdefs.h >>conftest.$ac_ext
22029
cat >>conftest.$ac_ext <<_ACEOF
22030
/* end confdefs.h. */
22031
$ac_includes_default
22043
rm -f conftest.$ac_objext
22044
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22045
(eval $ac_compile) 2>conftest.er1
22047
grep -v '^ *+' conftest.er1 >conftest.err
22049
cat conftest.err >&5
22050
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22051
(exit $ac_status); } &&
22052
{ ac_try='test -z "$ac_c_werror_flag"
22053
|| test ! -s conftest.err'
22054
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22055
(eval $ac_try) 2>&5
22057
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22058
(exit $ac_status); }; } &&
22059
{ ac_try='test -s conftest.$ac_objext'
22060
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22061
(eval $ac_try) 2>&5
22063
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22064
(exit $ac_status); }; }; then
22065
ac_cv_type_long=yes
22067
echo "$as_me: failed program was:" >&5
22068
sed 's/^/| /' conftest.$ac_ext >&5
22072
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22074
echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
22075
echo "${ECHO_T}$ac_cv_type_long" >&6
22077
echo "$as_me:$LINENO: checking size of long" >&5
22078
echo $ECHO_N "checking size of long... $ECHO_C" >&6
22079
if test "${ac_cv_sizeof_long+set}" = set; then
22080
echo $ECHO_N "(cached) $ECHO_C" >&6
22082
if test "$ac_cv_type_long" = yes; then
22083
# The cast to unsigned long works around a bug in the HP C Compiler
22084
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22085
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22086
# This bug is HP SR number 8606223364.
22087
if test "$cross_compiling" = yes; then
22088
# Depending upon the size, compute the lo and hi bounds.
22089
cat >conftest.$ac_ext <<_ACEOF
22092
cat confdefs.h >>conftest.$ac_ext
22093
cat >>conftest.$ac_ext <<_ACEOF
22094
/* end confdefs.h. */
22095
$ac_includes_default
22099
static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
22106
rm -f conftest.$ac_objext
22107
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22108
(eval $ac_compile) 2>conftest.er1
22110
grep -v '^ *+' conftest.er1 >conftest.err
22112
cat conftest.err >&5
22113
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22114
(exit $ac_status); } &&
22115
{ ac_try='test -z "$ac_c_werror_flag"
22116
|| test ! -s conftest.err'
22117
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22118
(eval $ac_try) 2>&5
22120
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22121
(exit $ac_status); }; } &&
22122
{ ac_try='test -s conftest.$ac_objext'
22123
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22124
(eval $ac_try) 2>&5
22126
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22127
(exit $ac_status); }; }; then
22130
cat >conftest.$ac_ext <<_ACEOF
22133
cat confdefs.h >>conftest.$ac_ext
22134
cat >>conftest.$ac_ext <<_ACEOF
22135
/* end confdefs.h. */
22136
$ac_includes_default
22140
static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
22147
rm -f conftest.$ac_objext
22148
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22149
(eval $ac_compile) 2>conftest.er1
22151
grep -v '^ *+' conftest.er1 >conftest.err
22153
cat conftest.err >&5
22154
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22155
(exit $ac_status); } &&
22156
{ ac_try='test -z "$ac_c_werror_flag"
22157
|| test ! -s conftest.err'
22158
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22159
(eval $ac_try) 2>&5
22161
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22162
(exit $ac_status); }; } &&
22163
{ ac_try='test -s conftest.$ac_objext'
22164
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22165
(eval $ac_try) 2>&5
22167
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22168
(exit $ac_status); }; }; then
22169
ac_hi=$ac_mid; break
22171
echo "$as_me: failed program was:" >&5
22172
sed 's/^/| /' conftest.$ac_ext >&5
22174
ac_lo=`expr $ac_mid + 1`
22175
if test $ac_lo -le $ac_mid; then
22179
ac_mid=`expr 2 '*' $ac_mid + 1`
22181
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22184
echo "$as_me: failed program was:" >&5
22185
sed 's/^/| /' conftest.$ac_ext >&5
22187
cat >conftest.$ac_ext <<_ACEOF
22190
cat confdefs.h >>conftest.$ac_ext
22191
cat >>conftest.$ac_ext <<_ACEOF
22192
/* end confdefs.h. */
22193
$ac_includes_default
22197
static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
22204
rm -f conftest.$ac_objext
22205
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22206
(eval $ac_compile) 2>conftest.er1
22208
grep -v '^ *+' conftest.er1 >conftest.err
22210
cat conftest.err >&5
22211
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22212
(exit $ac_status); } &&
22213
{ ac_try='test -z "$ac_c_werror_flag"
22214
|| test ! -s conftest.err'
22215
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22216
(eval $ac_try) 2>&5
22218
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22219
(exit $ac_status); }; } &&
22220
{ ac_try='test -s conftest.$ac_objext'
22221
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22222
(eval $ac_try) 2>&5
22224
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22225
(exit $ac_status); }; }; then
22228
cat >conftest.$ac_ext <<_ACEOF
22231
cat confdefs.h >>conftest.$ac_ext
22232
cat >>conftest.$ac_ext <<_ACEOF
22233
/* end confdefs.h. */
22234
$ac_includes_default
22238
static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
22245
rm -f conftest.$ac_objext
22246
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22247
(eval $ac_compile) 2>conftest.er1
22249
grep -v '^ *+' conftest.er1 >conftest.err
22251
cat conftest.err >&5
22252
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22253
(exit $ac_status); } &&
22254
{ ac_try='test -z "$ac_c_werror_flag"
22255
|| test ! -s conftest.err'
22256
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22257
(eval $ac_try) 2>&5
22259
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22260
(exit $ac_status); }; } &&
22261
{ ac_try='test -s conftest.$ac_objext'
22262
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22263
(eval $ac_try) 2>&5
22265
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22266
(exit $ac_status); }; }; then
22267
ac_lo=$ac_mid; break
22269
echo "$as_me: failed program was:" >&5
22270
sed 's/^/| /' conftest.$ac_ext >&5
22272
ac_hi=`expr '(' $ac_mid ')' - 1`
22273
if test $ac_mid -le $ac_hi; then
22277
ac_mid=`expr 2 '*' $ac_mid`
22279
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22282
echo "$as_me: failed program was:" >&5
22283
sed 's/^/| /' conftest.$ac_ext >&5
22287
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22289
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22290
# Binary search between lo and hi bounds.
22291
while test "x$ac_lo" != "x$ac_hi"; do
22292
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22293
cat >conftest.$ac_ext <<_ACEOF
22296
cat confdefs.h >>conftest.$ac_ext
22297
cat >>conftest.$ac_ext <<_ACEOF
22298
/* end confdefs.h. */
22299
$ac_includes_default
22303
static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
22310
rm -f conftest.$ac_objext
22311
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22312
(eval $ac_compile) 2>conftest.er1
22314
grep -v '^ *+' conftest.er1 >conftest.err
22316
cat conftest.err >&5
22317
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22318
(exit $ac_status); } &&
22319
{ ac_try='test -z "$ac_c_werror_flag"
22320
|| test ! -s conftest.err'
22321
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22322
(eval $ac_try) 2>&5
22324
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22325
(exit $ac_status); }; } &&
22326
{ ac_try='test -s conftest.$ac_objext'
22327
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22328
(eval $ac_try) 2>&5
22330
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22331
(exit $ac_status); }; }; then
22334
echo "$as_me: failed program was:" >&5
22335
sed 's/^/| /' conftest.$ac_ext >&5
22337
ac_lo=`expr '(' $ac_mid ')' + 1`
22339
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22342
?*) ac_cv_sizeof_long=$ac_lo;;
22343
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
22344
See \`config.log' for more details." >&5
22345
echo "$as_me: error: cannot compute sizeof (long), 77
22346
See \`config.log' for more details." >&2;}
22347
{ (exit 1); exit 1; }; } ;;
22350
if test "$cross_compiling" = yes; then
22351
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22352
See \`config.log' for more details." >&5
22353
echo "$as_me: error: cannot run test program while cross compiling
22354
See \`config.log' for more details." >&2;}
22355
{ (exit 1); exit 1; }; }
22357
cat >conftest.$ac_ext <<_ACEOF
22360
cat confdefs.h >>conftest.$ac_ext
22361
cat >>conftest.$ac_ext <<_ACEOF
22362
/* end confdefs.h. */
22363
$ac_includes_default
22364
long longval () { return (long) (sizeof (long)); }
22365
unsigned long ulongval () { return (long) (sizeof (long)); }
22367
#include <stdlib.h>
22372
FILE *f = fopen ("conftest.val", "w");
22375
if (((long) (sizeof (long))) < 0)
22377
long i = longval ();
22378
if (i != ((long) (sizeof (long))))
22380
fprintf (f, "%ld\n", i);
22384
unsigned long i = ulongval ();
22385
if (i != ((long) (sizeof (long))))
22387
fprintf (f, "%lu\n", i);
22389
exit (ferror (f) || fclose (f) != 0);
22395
rm -f conftest$ac_exeext
22396
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22397
(eval $ac_link) 2>&5
22399
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22400
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22401
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22402
(eval $ac_try) 2>&5
22404
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22405
(exit $ac_status); }; }; then
22406
ac_cv_sizeof_long=`cat conftest.val`
22408
echo "$as_me: program exited with status $ac_status" >&5
22409
echo "$as_me: failed program was:" >&5
22410
sed 's/^/| /' conftest.$ac_ext >&5
22412
( exit $ac_status )
22413
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
22414
See \`config.log' for more details." >&5
22415
echo "$as_me: error: cannot compute sizeof (long), 77
22416
See \`config.log' for more details." >&2;}
22417
{ (exit 1); exit 1; }; }
22419
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22424
ac_cv_sizeof_long=0
22427
echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
22428
echo "${ECHO_T}$ac_cv_sizeof_long" >&6
22429
cat >>confdefs.h <<_ACEOF
22430
#define SIZEOF_LONG $ac_cv_sizeof_long
22434
echo "$as_me:$LINENO: checking for long long" >&5
22435
echo $ECHO_N "checking for long long... $ECHO_C" >&6
22436
if test "${ac_cv_type_long_long+set}" = set; then
22437
echo $ECHO_N "(cached) $ECHO_C" >&6
22439
cat >conftest.$ac_ext <<_ACEOF
22442
cat confdefs.h >>conftest.$ac_ext
22443
cat >>conftest.$ac_ext <<_ACEOF
22444
/* end confdefs.h. */
22445
$ac_includes_default
22449
if ((long long *) 0)
22451
if (sizeof (long long))
22457
rm -f conftest.$ac_objext
22458
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22459
(eval $ac_compile) 2>conftest.er1
22461
grep -v '^ *+' conftest.er1 >conftest.err
22463
cat conftest.err >&5
22464
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22465
(exit $ac_status); } &&
22466
{ ac_try='test -z "$ac_c_werror_flag"
22467
|| test ! -s conftest.err'
22468
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22469
(eval $ac_try) 2>&5
22471
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22472
(exit $ac_status); }; } &&
22473
{ ac_try='test -s conftest.$ac_objext'
22474
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22475
(eval $ac_try) 2>&5
22477
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22478
(exit $ac_status); }; }; then
22479
ac_cv_type_long_long=yes
22481
echo "$as_me: failed program was:" >&5
22482
sed 's/^/| /' conftest.$ac_ext >&5
22484
ac_cv_type_long_long=no
22486
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22488
echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
22489
echo "${ECHO_T}$ac_cv_type_long_long" >&6
22491
echo "$as_me:$LINENO: checking size of long long" >&5
22492
echo $ECHO_N "checking size of long long... $ECHO_C" >&6
22493
if test "${ac_cv_sizeof_long_long+set}" = set; then
22494
echo $ECHO_N "(cached) $ECHO_C" >&6
22496
if test "$ac_cv_type_long_long" = yes; then
22497
# The cast to unsigned long works around a bug in the HP C Compiler
22498
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22499
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22500
# This bug is HP SR number 8606223364.
22501
if test "$cross_compiling" = yes; then
22502
# Depending upon the size, compute the lo and hi bounds.
22503
cat >conftest.$ac_ext <<_ACEOF
22506
cat confdefs.h >>conftest.$ac_ext
22507
cat >>conftest.$ac_ext <<_ACEOF
22508
/* end confdefs.h. */
22509
$ac_includes_default
22513
static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
22520
rm -f conftest.$ac_objext
22521
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22522
(eval $ac_compile) 2>conftest.er1
22524
grep -v '^ *+' conftest.er1 >conftest.err
22526
cat conftest.err >&5
22527
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22528
(exit $ac_status); } &&
22529
{ ac_try='test -z "$ac_c_werror_flag"
22530
|| test ! -s conftest.err'
22531
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22532
(eval $ac_try) 2>&5
22534
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22535
(exit $ac_status); }; } &&
22536
{ ac_try='test -s conftest.$ac_objext'
22537
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22538
(eval $ac_try) 2>&5
22540
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22541
(exit $ac_status); }; }; then
22544
cat >conftest.$ac_ext <<_ACEOF
22547
cat confdefs.h >>conftest.$ac_ext
22548
cat >>conftest.$ac_ext <<_ACEOF
22549
/* end confdefs.h. */
22550
$ac_includes_default
22554
static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
22561
rm -f conftest.$ac_objext
22562
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22563
(eval $ac_compile) 2>conftest.er1
22565
grep -v '^ *+' conftest.er1 >conftest.err
22567
cat conftest.err >&5
22568
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22569
(exit $ac_status); } &&
22570
{ ac_try='test -z "$ac_c_werror_flag"
22571
|| test ! -s conftest.err'
22572
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22573
(eval $ac_try) 2>&5
22575
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22576
(exit $ac_status); }; } &&
22577
{ ac_try='test -s conftest.$ac_objext'
22578
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22579
(eval $ac_try) 2>&5
22581
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22582
(exit $ac_status); }; }; then
22583
ac_hi=$ac_mid; break
22585
echo "$as_me: failed program was:" >&5
22586
sed 's/^/| /' conftest.$ac_ext >&5
22588
ac_lo=`expr $ac_mid + 1`
22589
if test $ac_lo -le $ac_mid; then
22593
ac_mid=`expr 2 '*' $ac_mid + 1`
22595
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22598
echo "$as_me: failed program was:" >&5
22599
sed 's/^/| /' conftest.$ac_ext >&5
22601
cat >conftest.$ac_ext <<_ACEOF
22604
cat confdefs.h >>conftest.$ac_ext
22605
cat >>conftest.$ac_ext <<_ACEOF
22606
/* end confdefs.h. */
22607
$ac_includes_default
22611
static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
22618
rm -f conftest.$ac_objext
22619
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22620
(eval $ac_compile) 2>conftest.er1
22622
grep -v '^ *+' conftest.er1 >conftest.err
22624
cat conftest.err >&5
22625
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22626
(exit $ac_status); } &&
22627
{ ac_try='test -z "$ac_c_werror_flag"
22628
|| test ! -s conftest.err'
22629
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22630
(eval $ac_try) 2>&5
22632
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22633
(exit $ac_status); }; } &&
22634
{ ac_try='test -s conftest.$ac_objext'
22635
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22636
(eval $ac_try) 2>&5
22638
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22639
(exit $ac_status); }; }; then
22642
cat >conftest.$ac_ext <<_ACEOF
22645
cat confdefs.h >>conftest.$ac_ext
22646
cat >>conftest.$ac_ext <<_ACEOF
22647
/* end confdefs.h. */
22648
$ac_includes_default
22652
static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
22659
rm -f conftest.$ac_objext
22660
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22661
(eval $ac_compile) 2>conftest.er1
22663
grep -v '^ *+' conftest.er1 >conftest.err
22665
cat conftest.err >&5
22666
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22667
(exit $ac_status); } &&
22668
{ ac_try='test -z "$ac_c_werror_flag"
22669
|| test ! -s conftest.err'
22670
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22671
(eval $ac_try) 2>&5
22673
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22674
(exit $ac_status); }; } &&
22675
{ ac_try='test -s conftest.$ac_objext'
22676
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22677
(eval $ac_try) 2>&5
22679
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22680
(exit $ac_status); }; }; then
22681
ac_lo=$ac_mid; break
22683
echo "$as_me: failed program was:" >&5
22684
sed 's/^/| /' conftest.$ac_ext >&5
22686
ac_hi=`expr '(' $ac_mid ')' - 1`
22687
if test $ac_mid -le $ac_hi; then
22691
ac_mid=`expr 2 '*' $ac_mid`
22693
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22696
echo "$as_me: failed program was:" >&5
22697
sed 's/^/| /' conftest.$ac_ext >&5
22701
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22703
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22704
# Binary search between lo and hi bounds.
22705
while test "x$ac_lo" != "x$ac_hi"; do
22706
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22707
cat >conftest.$ac_ext <<_ACEOF
22710
cat confdefs.h >>conftest.$ac_ext
22711
cat >>conftest.$ac_ext <<_ACEOF
22712
/* end confdefs.h. */
22713
$ac_includes_default
22717
static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
22724
rm -f conftest.$ac_objext
22725
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22726
(eval $ac_compile) 2>conftest.er1
22728
grep -v '^ *+' conftest.er1 >conftest.err
22730
cat conftest.err >&5
22731
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22732
(exit $ac_status); } &&
22733
{ ac_try='test -z "$ac_c_werror_flag"
22734
|| test ! -s conftest.err'
22735
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22736
(eval $ac_try) 2>&5
22738
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22739
(exit $ac_status); }; } &&
22740
{ ac_try='test -s conftest.$ac_objext'
22741
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22742
(eval $ac_try) 2>&5
22744
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22745
(exit $ac_status); }; }; then
22748
echo "$as_me: failed program was:" >&5
22749
sed 's/^/| /' conftest.$ac_ext >&5
22751
ac_lo=`expr '(' $ac_mid ')' + 1`
22753
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22756
?*) ac_cv_sizeof_long_long=$ac_lo;;
22757
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
22758
See \`config.log' for more details." >&5
22759
echo "$as_me: error: cannot compute sizeof (long long), 77
22760
See \`config.log' for more details." >&2;}
22761
{ (exit 1); exit 1; }; } ;;
22764
if test "$cross_compiling" = yes; then
22765
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22766
See \`config.log' for more details." >&5
22767
echo "$as_me: error: cannot run test program while cross compiling
22768
See \`config.log' for more details." >&2;}
22769
{ (exit 1); exit 1; }; }
22771
cat >conftest.$ac_ext <<_ACEOF
22774
cat confdefs.h >>conftest.$ac_ext
22775
cat >>conftest.$ac_ext <<_ACEOF
22776
/* end confdefs.h. */
22777
$ac_includes_default
22778
long longval () { return (long) (sizeof (long long)); }
22779
unsigned long ulongval () { return (long) (sizeof (long long)); }
22781
#include <stdlib.h>
22786
FILE *f = fopen ("conftest.val", "w");
22789
if (((long) (sizeof (long long))) < 0)
22791
long i = longval ();
22792
if (i != ((long) (sizeof (long long))))
22794
fprintf (f, "%ld\n", i);
22798
unsigned long i = ulongval ();
22799
if (i != ((long) (sizeof (long long))))
22801
fprintf (f, "%lu\n", i);
22803
exit (ferror (f) || fclose (f) != 0);
22809
rm -f conftest$ac_exeext
22810
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22811
(eval $ac_link) 2>&5
22813
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22814
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22815
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22816
(eval $ac_try) 2>&5
22818
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22819
(exit $ac_status); }; }; then
22820
ac_cv_sizeof_long_long=`cat conftest.val`
22822
echo "$as_me: program exited with status $ac_status" >&5
22823
echo "$as_me: failed program was:" >&5
22824
sed 's/^/| /' conftest.$ac_ext >&5
22826
( exit $ac_status )
22827
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
22828
See \`config.log' for more details." >&5
22829
echo "$as_me: error: cannot compute sizeof (long long), 77
22830
See \`config.log' for more details." >&2;}
22831
{ (exit 1); exit 1; }; }
22833
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22838
ac_cv_sizeof_long_long=0
22841
echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
22842
echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
22843
cat >>confdefs.h <<_ACEOF
22844
#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
22848
echo "$as_me:$LINENO: checking for float" >&5
22849
echo $ECHO_N "checking for float... $ECHO_C" >&6
22850
if test "${ac_cv_type_float+set}" = set; then
22851
echo $ECHO_N "(cached) $ECHO_C" >&6
22853
cat >conftest.$ac_ext <<_ACEOF
22856
cat confdefs.h >>conftest.$ac_ext
22857
cat >>conftest.$ac_ext <<_ACEOF
22858
/* end confdefs.h. */
22859
$ac_includes_default
22865
if (sizeof (float))
22871
rm -f conftest.$ac_objext
22872
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22873
(eval $ac_compile) 2>conftest.er1
22875
grep -v '^ *+' conftest.er1 >conftest.err
22877
cat conftest.err >&5
22878
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22879
(exit $ac_status); } &&
22880
{ ac_try='test -z "$ac_c_werror_flag"
22881
|| test ! -s conftest.err'
22882
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22883
(eval $ac_try) 2>&5
22885
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22886
(exit $ac_status); }; } &&
22887
{ ac_try='test -s conftest.$ac_objext'
22888
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22889
(eval $ac_try) 2>&5
22891
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22892
(exit $ac_status); }; }; then
22893
ac_cv_type_float=yes
22895
echo "$as_me: failed program was:" >&5
22896
sed 's/^/| /' conftest.$ac_ext >&5
22898
ac_cv_type_float=no
22900
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22902
echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
22903
echo "${ECHO_T}$ac_cv_type_float" >&6
22905
echo "$as_me:$LINENO: checking size of float" >&5
22906
echo $ECHO_N "checking size of float... $ECHO_C" >&6
22907
if test "${ac_cv_sizeof_float+set}" = set; then
22908
echo $ECHO_N "(cached) $ECHO_C" >&6
22910
if test "$ac_cv_type_float" = yes; then
22911
# The cast to unsigned long works around a bug in the HP C Compiler
22912
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22913
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22914
# This bug is HP SR number 8606223364.
22915
if test "$cross_compiling" = yes; then
22916
# Depending upon the size, compute the lo and hi bounds.
22917
cat >conftest.$ac_ext <<_ACEOF
22920
cat confdefs.h >>conftest.$ac_ext
22921
cat >>conftest.$ac_ext <<_ACEOF
22922
/* end confdefs.h. */
22923
$ac_includes_default
22927
static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)];
22934
rm -f conftest.$ac_objext
22935
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22936
(eval $ac_compile) 2>conftest.er1
22938
grep -v '^ *+' conftest.er1 >conftest.err
22940
cat conftest.err >&5
22941
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22942
(exit $ac_status); } &&
22943
{ ac_try='test -z "$ac_c_werror_flag"
22944
|| test ! -s conftest.err'
22945
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22946
(eval $ac_try) 2>&5
22948
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22949
(exit $ac_status); }; } &&
22950
{ ac_try='test -s conftest.$ac_objext'
22951
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22952
(eval $ac_try) 2>&5
22954
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22955
(exit $ac_status); }; }; then
22958
cat >conftest.$ac_ext <<_ACEOF
22961
cat confdefs.h >>conftest.$ac_ext
22962
cat >>conftest.$ac_ext <<_ACEOF
22963
/* end confdefs.h. */
22964
$ac_includes_default
22968
static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
22975
rm -f conftest.$ac_objext
22976
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22977
(eval $ac_compile) 2>conftest.er1
22979
grep -v '^ *+' conftest.er1 >conftest.err
22981
cat conftest.err >&5
22982
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22983
(exit $ac_status); } &&
22984
{ ac_try='test -z "$ac_c_werror_flag"
22985
|| test ! -s conftest.err'
22986
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22987
(eval $ac_try) 2>&5
22989
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22990
(exit $ac_status); }; } &&
22991
{ ac_try='test -s conftest.$ac_objext'
22992
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22993
(eval $ac_try) 2>&5
22995
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22996
(exit $ac_status); }; }; then
22997
ac_hi=$ac_mid; break
22999
echo "$as_me: failed program was:" >&5
23000
sed 's/^/| /' conftest.$ac_ext >&5
23002
ac_lo=`expr $ac_mid + 1`
23003
if test $ac_lo -le $ac_mid; then
23007
ac_mid=`expr 2 '*' $ac_mid + 1`
23009
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23012
echo "$as_me: failed program was:" >&5
23013
sed 's/^/| /' conftest.$ac_ext >&5
23015
cat >conftest.$ac_ext <<_ACEOF
23018
cat confdefs.h >>conftest.$ac_ext
23019
cat >>conftest.$ac_ext <<_ACEOF
23020
/* end confdefs.h. */
23021
$ac_includes_default
23025
static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)];
23032
rm -f conftest.$ac_objext
23033
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23034
(eval $ac_compile) 2>conftest.er1
23036
grep -v '^ *+' conftest.er1 >conftest.err
23038
cat conftest.err >&5
23039
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23040
(exit $ac_status); } &&
23041
{ ac_try='test -z "$ac_c_werror_flag"
23042
|| test ! -s conftest.err'
23043
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23044
(eval $ac_try) 2>&5
23046
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23047
(exit $ac_status); }; } &&
23048
{ ac_try='test -s conftest.$ac_objext'
23049
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23050
(eval $ac_try) 2>&5
23052
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23053
(exit $ac_status); }; }; then
23056
cat >conftest.$ac_ext <<_ACEOF
23059
cat confdefs.h >>conftest.$ac_ext
23060
cat >>conftest.$ac_ext <<_ACEOF
23061
/* end confdefs.h. */
23062
$ac_includes_default
23066
static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)];
23073
rm -f conftest.$ac_objext
23074
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23075
(eval $ac_compile) 2>conftest.er1
23077
grep -v '^ *+' conftest.er1 >conftest.err
23079
cat conftest.err >&5
23080
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23081
(exit $ac_status); } &&
23082
{ ac_try='test -z "$ac_c_werror_flag"
23083
|| test ! -s conftest.err'
23084
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23085
(eval $ac_try) 2>&5
23087
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23088
(exit $ac_status); }; } &&
23089
{ ac_try='test -s conftest.$ac_objext'
23090
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23091
(eval $ac_try) 2>&5
23093
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23094
(exit $ac_status); }; }; then
23095
ac_lo=$ac_mid; break
23097
echo "$as_me: failed program was:" >&5
23098
sed 's/^/| /' conftest.$ac_ext >&5
23100
ac_hi=`expr '(' $ac_mid ')' - 1`
23101
if test $ac_mid -le $ac_hi; then
23105
ac_mid=`expr 2 '*' $ac_mid`
23107
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23110
echo "$as_me: failed program was:" >&5
23111
sed 's/^/| /' conftest.$ac_ext >&5
23115
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23117
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23118
# Binary search between lo and hi bounds.
23119
while test "x$ac_lo" != "x$ac_hi"; do
23120
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23121
cat >conftest.$ac_ext <<_ACEOF
23124
cat confdefs.h >>conftest.$ac_ext
23125
cat >>conftest.$ac_ext <<_ACEOF
23126
/* end confdefs.h. */
23127
$ac_includes_default
23131
static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
23138
rm -f conftest.$ac_objext
23139
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23140
(eval $ac_compile) 2>conftest.er1
23142
grep -v '^ *+' conftest.er1 >conftest.err
23144
cat conftest.err >&5
23145
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23146
(exit $ac_status); } &&
23147
{ ac_try='test -z "$ac_c_werror_flag"
23148
|| test ! -s conftest.err'
23149
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23150
(eval $ac_try) 2>&5
23152
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23153
(exit $ac_status); }; } &&
23154
{ ac_try='test -s conftest.$ac_objext'
23155
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23156
(eval $ac_try) 2>&5
23158
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23159
(exit $ac_status); }; }; then
23162
echo "$as_me: failed program was:" >&5
23163
sed 's/^/| /' conftest.$ac_ext >&5
23165
ac_lo=`expr '(' $ac_mid ')' + 1`
23167
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23170
?*) ac_cv_sizeof_float=$ac_lo;;
23171
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
23172
See \`config.log' for more details." >&5
23173
echo "$as_me: error: cannot compute sizeof (float), 77
23174
See \`config.log' for more details." >&2;}
23175
{ (exit 1); exit 1; }; } ;;
23178
if test "$cross_compiling" = yes; then
23179
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23180
See \`config.log' for more details." >&5
23181
echo "$as_me: error: cannot run test program while cross compiling
23182
See \`config.log' for more details." >&2;}
23183
{ (exit 1); exit 1; }; }
23185
cat >conftest.$ac_ext <<_ACEOF
23188
cat confdefs.h >>conftest.$ac_ext
23189
cat >>conftest.$ac_ext <<_ACEOF
23190
/* end confdefs.h. */
23191
$ac_includes_default
23192
long longval () { return (long) (sizeof (float)); }
23193
unsigned long ulongval () { return (long) (sizeof (float)); }
23195
#include <stdlib.h>
23200
FILE *f = fopen ("conftest.val", "w");
23203
if (((long) (sizeof (float))) < 0)
23205
long i = longval ();
23206
if (i != ((long) (sizeof (float))))
23208
fprintf (f, "%ld\n", i);
23212
unsigned long i = ulongval ();
23213
if (i != ((long) (sizeof (float))))
23215
fprintf (f, "%lu\n", i);
23217
exit (ferror (f) || fclose (f) != 0);
23223
rm -f conftest$ac_exeext
23224
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23225
(eval $ac_link) 2>&5
23227
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23228
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23229
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23230
(eval $ac_try) 2>&5
23232
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23233
(exit $ac_status); }; }; then
23234
ac_cv_sizeof_float=`cat conftest.val`
23236
echo "$as_me: program exited with status $ac_status" >&5
23237
echo "$as_me: failed program was:" >&5
23238
sed 's/^/| /' conftest.$ac_ext >&5
23240
( exit $ac_status )
23241
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
23242
See \`config.log' for more details." >&5
23243
echo "$as_me: error: cannot compute sizeof (float), 77
23244
See \`config.log' for more details." >&2;}
23245
{ (exit 1); exit 1; }; }
23247
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23252
ac_cv_sizeof_float=0
23255
echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
23256
echo "${ECHO_T}$ac_cv_sizeof_float" >&6
23257
cat >>confdefs.h <<_ACEOF
23258
#define SIZEOF_FLOAT $ac_cv_sizeof_float
23262
echo "$as_me:$LINENO: checking for double" >&5
23263
echo $ECHO_N "checking for double... $ECHO_C" >&6
23264
if test "${ac_cv_type_double+set}" = set; then
23265
echo $ECHO_N "(cached) $ECHO_C" >&6
23267
cat >conftest.$ac_ext <<_ACEOF
23270
cat confdefs.h >>conftest.$ac_ext
23271
cat >>conftest.$ac_ext <<_ACEOF
23272
/* end confdefs.h. */
23273
$ac_includes_default
23279
if (sizeof (double))
23285
rm -f conftest.$ac_objext
23286
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23287
(eval $ac_compile) 2>conftest.er1
23289
grep -v '^ *+' conftest.er1 >conftest.err
23291
cat conftest.err >&5
23292
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23293
(exit $ac_status); } &&
23294
{ ac_try='test -z "$ac_c_werror_flag"
23295
|| test ! -s conftest.err'
23296
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23297
(eval $ac_try) 2>&5
23299
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23300
(exit $ac_status); }; } &&
23301
{ ac_try='test -s conftest.$ac_objext'
23302
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23303
(eval $ac_try) 2>&5
23305
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23306
(exit $ac_status); }; }; then
23307
ac_cv_type_double=yes
23309
echo "$as_me: failed program was:" >&5
23310
sed 's/^/| /' conftest.$ac_ext >&5
23312
ac_cv_type_double=no
23314
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23316
echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
23317
echo "${ECHO_T}$ac_cv_type_double" >&6
23319
echo "$as_me:$LINENO: checking size of double" >&5
23320
echo $ECHO_N "checking size of double... $ECHO_C" >&6
23321
if test "${ac_cv_sizeof_double+set}" = set; then
23322
echo $ECHO_N "(cached) $ECHO_C" >&6
23324
if test "$ac_cv_type_double" = yes; then
23325
# The cast to unsigned long works around a bug in the HP C Compiler
23326
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23327
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23328
# This bug is HP SR number 8606223364.
23329
if test "$cross_compiling" = yes; then
23330
# Depending upon the size, compute the lo and hi bounds.
23331
cat >conftest.$ac_ext <<_ACEOF
23334
cat confdefs.h >>conftest.$ac_ext
23335
cat >>conftest.$ac_ext <<_ACEOF
23336
/* end confdefs.h. */
23337
$ac_includes_default
23341
static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
23348
rm -f conftest.$ac_objext
23349
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23350
(eval $ac_compile) 2>conftest.er1
23352
grep -v '^ *+' conftest.er1 >conftest.err
23354
cat conftest.err >&5
23355
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23356
(exit $ac_status); } &&
23357
{ ac_try='test -z "$ac_c_werror_flag"
23358
|| test ! -s conftest.err'
23359
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23360
(eval $ac_try) 2>&5
23362
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23363
(exit $ac_status); }; } &&
23364
{ ac_try='test -s conftest.$ac_objext'
23365
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23366
(eval $ac_try) 2>&5
23368
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23369
(exit $ac_status); }; }; then
23372
cat >conftest.$ac_ext <<_ACEOF
23375
cat confdefs.h >>conftest.$ac_ext
23376
cat >>conftest.$ac_ext <<_ACEOF
23377
/* end confdefs.h. */
23378
$ac_includes_default
23382
static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
23389
rm -f conftest.$ac_objext
23390
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23391
(eval $ac_compile) 2>conftest.er1
23393
grep -v '^ *+' conftest.er1 >conftest.err
23395
cat conftest.err >&5
23396
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23397
(exit $ac_status); } &&
23398
{ ac_try='test -z "$ac_c_werror_flag"
23399
|| test ! -s conftest.err'
23400
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23401
(eval $ac_try) 2>&5
23403
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23404
(exit $ac_status); }; } &&
23405
{ ac_try='test -s conftest.$ac_objext'
23406
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23407
(eval $ac_try) 2>&5
23409
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23410
(exit $ac_status); }; }; then
23411
ac_hi=$ac_mid; break
23413
echo "$as_me: failed program was:" >&5
23414
sed 's/^/| /' conftest.$ac_ext >&5
23416
ac_lo=`expr $ac_mid + 1`
23417
if test $ac_lo -le $ac_mid; then
23421
ac_mid=`expr 2 '*' $ac_mid + 1`
23423
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23426
echo "$as_me: failed program was:" >&5
23427
sed 's/^/| /' conftest.$ac_ext >&5
23429
cat >conftest.$ac_ext <<_ACEOF
23432
cat confdefs.h >>conftest.$ac_ext
23433
cat >>conftest.$ac_ext <<_ACEOF
23434
/* end confdefs.h. */
23435
$ac_includes_default
23439
static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
23446
rm -f conftest.$ac_objext
23447
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23448
(eval $ac_compile) 2>conftest.er1
23450
grep -v '^ *+' conftest.er1 >conftest.err
23452
cat conftest.err >&5
23453
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23454
(exit $ac_status); } &&
23455
{ ac_try='test -z "$ac_c_werror_flag"
23456
|| test ! -s conftest.err'
23457
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23458
(eval $ac_try) 2>&5
23460
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23461
(exit $ac_status); }; } &&
23462
{ ac_try='test -s conftest.$ac_objext'
23463
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23464
(eval $ac_try) 2>&5
23466
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23467
(exit $ac_status); }; }; then
23470
cat >conftest.$ac_ext <<_ACEOF
23473
cat confdefs.h >>conftest.$ac_ext
23474
cat >>conftest.$ac_ext <<_ACEOF
23475
/* end confdefs.h. */
23476
$ac_includes_default
23480
static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
23487
rm -f conftest.$ac_objext
23488
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23489
(eval $ac_compile) 2>conftest.er1
23491
grep -v '^ *+' conftest.er1 >conftest.err
23493
cat conftest.err >&5
23494
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23495
(exit $ac_status); } &&
23496
{ ac_try='test -z "$ac_c_werror_flag"
23497
|| test ! -s conftest.err'
23498
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23499
(eval $ac_try) 2>&5
23501
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23502
(exit $ac_status); }; } &&
23503
{ ac_try='test -s conftest.$ac_objext'
23504
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23505
(eval $ac_try) 2>&5
23507
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23508
(exit $ac_status); }; }; then
23509
ac_lo=$ac_mid; break
23511
echo "$as_me: failed program was:" >&5
23512
sed 's/^/| /' conftest.$ac_ext >&5
23514
ac_hi=`expr '(' $ac_mid ')' - 1`
23515
if test $ac_mid -le $ac_hi; then
23519
ac_mid=`expr 2 '*' $ac_mid`
23521
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23524
echo "$as_me: failed program was:" >&5
23525
sed 's/^/| /' conftest.$ac_ext >&5
23529
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23531
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23532
# Binary search between lo and hi bounds.
23533
while test "x$ac_lo" != "x$ac_hi"; do
23534
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23535
cat >conftest.$ac_ext <<_ACEOF
23538
cat confdefs.h >>conftest.$ac_ext
23539
cat >>conftest.$ac_ext <<_ACEOF
23540
/* end confdefs.h. */
23541
$ac_includes_default
23545
static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
23552
rm -f conftest.$ac_objext
23553
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23554
(eval $ac_compile) 2>conftest.er1
23556
grep -v '^ *+' conftest.er1 >conftest.err
23558
cat conftest.err >&5
23559
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23560
(exit $ac_status); } &&
23561
{ ac_try='test -z "$ac_c_werror_flag"
23562
|| test ! -s conftest.err'
23563
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23564
(eval $ac_try) 2>&5
23566
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23567
(exit $ac_status); }; } &&
23568
{ ac_try='test -s conftest.$ac_objext'
23569
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23570
(eval $ac_try) 2>&5
23572
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23573
(exit $ac_status); }; }; then
23576
echo "$as_me: failed program was:" >&5
23577
sed 's/^/| /' conftest.$ac_ext >&5
23579
ac_lo=`expr '(' $ac_mid ')' + 1`
23581
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23584
?*) ac_cv_sizeof_double=$ac_lo;;
23585
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
23586
See \`config.log' for more details." >&5
23587
echo "$as_me: error: cannot compute sizeof (double), 77
23588
See \`config.log' for more details." >&2;}
23589
{ (exit 1); exit 1; }; } ;;
23592
if test "$cross_compiling" = yes; then
23593
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23594
See \`config.log' for more details." >&5
23595
echo "$as_me: error: cannot run test program while cross compiling
23596
See \`config.log' for more details." >&2;}
23597
{ (exit 1); exit 1; }; }
23599
cat >conftest.$ac_ext <<_ACEOF
23602
cat confdefs.h >>conftest.$ac_ext
23603
cat >>conftest.$ac_ext <<_ACEOF
23604
/* end confdefs.h. */
23605
$ac_includes_default
23606
long longval () { return (long) (sizeof (double)); }
23607
unsigned long ulongval () { return (long) (sizeof (double)); }
23609
#include <stdlib.h>
23614
FILE *f = fopen ("conftest.val", "w");
23617
if (((long) (sizeof (double))) < 0)
23619
long i = longval ();
23620
if (i != ((long) (sizeof (double))))
23622
fprintf (f, "%ld\n", i);
23626
unsigned long i = ulongval ();
23627
if (i != ((long) (sizeof (double))))
23629
fprintf (f, "%lu\n", i);
23631
exit (ferror (f) || fclose (f) != 0);
23637
rm -f conftest$ac_exeext
23638
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23639
(eval $ac_link) 2>&5
23641
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23642
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23643
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23644
(eval $ac_try) 2>&5
23646
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23647
(exit $ac_status); }; }; then
23648
ac_cv_sizeof_double=`cat conftest.val`
23650
echo "$as_me: program exited with status $ac_status" >&5
23651
echo "$as_me: failed program was:" >&5
23652
sed 's/^/| /' conftest.$ac_ext >&5
23654
( exit $ac_status )
23655
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
23656
See \`config.log' for more details." >&5
23657
echo "$as_me: error: cannot compute sizeof (double), 77
23658
See \`config.log' for more details." >&2;}
23659
{ (exit 1); exit 1; }; }
23661
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23666
ac_cv_sizeof_double=0
23669
echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
23670
echo "${ECHO_T}$ac_cv_sizeof_double" >&6
23671
cat >>confdefs.h <<_ACEOF
23672
#define SIZEOF_DOUBLE $ac_cv_sizeof_double
23676
echo "$as_me:$LINENO: checking for long double" >&5
23677
echo $ECHO_N "checking for long double... $ECHO_C" >&6
23678
if test "${ac_cv_type_long_double+set}" = set; then
23679
echo $ECHO_N "(cached) $ECHO_C" >&6
23681
cat >conftest.$ac_ext <<_ACEOF
23684
cat confdefs.h >>conftest.$ac_ext
23685
cat >>conftest.$ac_ext <<_ACEOF
23686
/* end confdefs.h. */
23687
$ac_includes_default
23691
if ((long double *) 0)
23693
if (sizeof (long double))
23699
rm -f conftest.$ac_objext
23700
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23701
(eval $ac_compile) 2>conftest.er1
23703
grep -v '^ *+' conftest.er1 >conftest.err
23705
cat conftest.err >&5
23706
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23707
(exit $ac_status); } &&
23708
{ ac_try='test -z "$ac_c_werror_flag"
23709
|| test ! -s conftest.err'
23710
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23711
(eval $ac_try) 2>&5
23713
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23714
(exit $ac_status); }; } &&
23715
{ ac_try='test -s conftest.$ac_objext'
23716
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23717
(eval $ac_try) 2>&5
23719
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23720
(exit $ac_status); }; }; then
23721
ac_cv_type_long_double=yes
23723
echo "$as_me: failed program was:" >&5
23724
sed 's/^/| /' conftest.$ac_ext >&5
23726
ac_cv_type_long_double=no
23728
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23730
echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
23731
echo "${ECHO_T}$ac_cv_type_long_double" >&6
23733
echo "$as_me:$LINENO: checking size of long double" >&5
23734
echo $ECHO_N "checking size of long double... $ECHO_C" >&6
23735
if test "${ac_cv_sizeof_long_double+set}" = set; then
23736
echo $ECHO_N "(cached) $ECHO_C" >&6
23738
if test "$ac_cv_type_long_double" = yes; then
23739
# The cast to unsigned long works around a bug in the HP C Compiler
23740
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23741
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23742
# This bug is HP SR number 8606223364.
23743
if test "$cross_compiling" = yes; then
23744
# Depending upon the size, compute the lo and hi bounds.
23745
cat >conftest.$ac_ext <<_ACEOF
23748
cat confdefs.h >>conftest.$ac_ext
23749
cat >>conftest.$ac_ext <<_ACEOF
23750
/* end confdefs.h. */
23751
$ac_includes_default
23755
static int test_array [1 - 2 * !(((long) (sizeof (long double))) >= 0)];
23762
rm -f conftest.$ac_objext
23763
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23764
(eval $ac_compile) 2>conftest.er1
23766
grep -v '^ *+' conftest.er1 >conftest.err
23768
cat conftest.err >&5
23769
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23770
(exit $ac_status); } &&
23771
{ ac_try='test -z "$ac_c_werror_flag"
23772
|| test ! -s conftest.err'
23773
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23774
(eval $ac_try) 2>&5
23776
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23777
(exit $ac_status); }; } &&
23778
{ ac_try='test -s conftest.$ac_objext'
23779
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23780
(eval $ac_try) 2>&5
23782
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23783
(exit $ac_status); }; }; then
23786
cat >conftest.$ac_ext <<_ACEOF
23789
cat confdefs.h >>conftest.$ac_ext
23790
cat >>conftest.$ac_ext <<_ACEOF
23791
/* end confdefs.h. */
23792
$ac_includes_default
23796
static int test_array [1 - 2 * !(((long) (sizeof (long double))) <= $ac_mid)];
23803
rm -f conftest.$ac_objext
23804
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23805
(eval $ac_compile) 2>conftest.er1
23807
grep -v '^ *+' conftest.er1 >conftest.err
23809
cat conftest.err >&5
23810
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23811
(exit $ac_status); } &&
23812
{ ac_try='test -z "$ac_c_werror_flag"
23813
|| test ! -s conftest.err'
23814
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23815
(eval $ac_try) 2>&5
23817
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23818
(exit $ac_status); }; } &&
23819
{ ac_try='test -s conftest.$ac_objext'
23820
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23821
(eval $ac_try) 2>&5
23823
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23824
(exit $ac_status); }; }; then
23825
ac_hi=$ac_mid; break
23827
echo "$as_me: failed program was:" >&5
23828
sed 's/^/| /' conftest.$ac_ext >&5
23830
ac_lo=`expr $ac_mid + 1`
23831
if test $ac_lo -le $ac_mid; then
23835
ac_mid=`expr 2 '*' $ac_mid + 1`
23837
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23840
echo "$as_me: failed program was:" >&5
23841
sed 's/^/| /' conftest.$ac_ext >&5
23843
cat >conftest.$ac_ext <<_ACEOF
23846
cat confdefs.h >>conftest.$ac_ext
23847
cat >>conftest.$ac_ext <<_ACEOF
23848
/* end confdefs.h. */
23849
$ac_includes_default
23853
static int test_array [1 - 2 * !(((long) (sizeof (long double))) < 0)];
23860
rm -f conftest.$ac_objext
23861
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23862
(eval $ac_compile) 2>conftest.er1
23864
grep -v '^ *+' conftest.er1 >conftest.err
23866
cat conftest.err >&5
23867
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23868
(exit $ac_status); } &&
23869
{ ac_try='test -z "$ac_c_werror_flag"
23870
|| test ! -s conftest.err'
23871
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23872
(eval $ac_try) 2>&5
23874
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23875
(exit $ac_status); }; } &&
23876
{ ac_try='test -s conftest.$ac_objext'
23877
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23878
(eval $ac_try) 2>&5
23880
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23881
(exit $ac_status); }; }; then
23884
cat >conftest.$ac_ext <<_ACEOF
23887
cat confdefs.h >>conftest.$ac_ext
23888
cat >>conftest.$ac_ext <<_ACEOF
23889
/* end confdefs.h. */
23890
$ac_includes_default
23894
static int test_array [1 - 2 * !(((long) (sizeof (long double))) >= $ac_mid)];
23901
rm -f conftest.$ac_objext
23902
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23903
(eval $ac_compile) 2>conftest.er1
23905
grep -v '^ *+' conftest.er1 >conftest.err
23907
cat conftest.err >&5
23908
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23909
(exit $ac_status); } &&
23910
{ ac_try='test -z "$ac_c_werror_flag"
23911
|| test ! -s conftest.err'
23912
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23913
(eval $ac_try) 2>&5
23915
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23916
(exit $ac_status); }; } &&
23917
{ ac_try='test -s conftest.$ac_objext'
23918
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23919
(eval $ac_try) 2>&5
23921
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23922
(exit $ac_status); }; }; then
23923
ac_lo=$ac_mid; break
23925
echo "$as_me: failed program was:" >&5
23926
sed 's/^/| /' conftest.$ac_ext >&5
23928
ac_hi=`expr '(' $ac_mid ')' - 1`
23929
if test $ac_mid -le $ac_hi; then
23933
ac_mid=`expr 2 '*' $ac_mid`
23935
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23938
echo "$as_me: failed program was:" >&5
23939
sed 's/^/| /' conftest.$ac_ext >&5
23943
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23945
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23946
# Binary search between lo and hi bounds.
23947
while test "x$ac_lo" != "x$ac_hi"; do
23948
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23949
cat >conftest.$ac_ext <<_ACEOF
23952
cat confdefs.h >>conftest.$ac_ext
23953
cat >>conftest.$ac_ext <<_ACEOF
23954
/* end confdefs.h. */
23955
$ac_includes_default
23959
static int test_array [1 - 2 * !(((long) (sizeof (long double))) <= $ac_mid)];
23966
rm -f conftest.$ac_objext
23967
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23968
(eval $ac_compile) 2>conftest.er1
23970
grep -v '^ *+' conftest.er1 >conftest.err
23972
cat conftest.err >&5
23973
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23974
(exit $ac_status); } &&
23975
{ ac_try='test -z "$ac_c_werror_flag"
23976
|| test ! -s conftest.err'
23977
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23978
(eval $ac_try) 2>&5
23980
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23981
(exit $ac_status); }; } &&
23982
{ ac_try='test -s conftest.$ac_objext'
23983
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23984
(eval $ac_try) 2>&5
23986
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23987
(exit $ac_status); }; }; then
23990
echo "$as_me: failed program was:" >&5
23991
sed 's/^/| /' conftest.$ac_ext >&5
23993
ac_lo=`expr '(' $ac_mid ')' + 1`
23995
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23998
?*) ac_cv_sizeof_long_double=$ac_lo;;
23999
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double), 77
24000
See \`config.log' for more details." >&5
24001
echo "$as_me: error: cannot compute sizeof (long double), 77
24002
See \`config.log' for more details." >&2;}
24003
{ (exit 1); exit 1; }; } ;;
24006
if test "$cross_compiling" = yes; then
24007
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24008
See \`config.log' for more details." >&5
24009
echo "$as_me: error: cannot run test program while cross compiling
24010
See \`config.log' for more details." >&2;}
24011
{ (exit 1); exit 1; }; }
24013
cat >conftest.$ac_ext <<_ACEOF
24016
cat confdefs.h >>conftest.$ac_ext
24017
cat >>conftest.$ac_ext <<_ACEOF
24018
/* end confdefs.h. */
24019
$ac_includes_default
24020
long longval () { return (long) (sizeof (long double)); }
24021
unsigned long ulongval () { return (long) (sizeof (long double)); }
24023
#include <stdlib.h>
24028
FILE *f = fopen ("conftest.val", "w");
24031
if (((long) (sizeof (long double))) < 0)
24033
long i = longval ();
24034
if (i != ((long) (sizeof (long double))))
24036
fprintf (f, "%ld\n", i);
24040
unsigned long i = ulongval ();
24041
if (i != ((long) (sizeof (long double))))
24043
fprintf (f, "%lu\n", i);
24045
exit (ferror (f) || fclose (f) != 0);
24051
rm -f conftest$ac_exeext
24052
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24053
(eval $ac_link) 2>&5
24055
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24056
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24057
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24058
(eval $ac_try) 2>&5
24060
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24061
(exit $ac_status); }; }; then
24062
ac_cv_sizeof_long_double=`cat conftest.val`
24064
echo "$as_me: program exited with status $ac_status" >&5
24065
echo "$as_me: failed program was:" >&5
24066
sed 's/^/| /' conftest.$ac_ext >&5
24068
( exit $ac_status )
24069
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long double), 77
24070
See \`config.log' for more details." >&5
24071
echo "$as_me: error: cannot compute sizeof (long double), 77
24072
See \`config.log' for more details." >&2;}
24073
{ (exit 1); exit 1; }; }
24075
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24080
ac_cv_sizeof_long_double=0
24083
echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
24084
echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6
24085
cat >>confdefs.h <<_ACEOF
24086
#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
24090
echo "$as_me:$LINENO: checking for void *" >&5
24091
echo $ECHO_N "checking for void *... $ECHO_C" >&6
24092
if test "${ac_cv_type_void_p+set}" = set; then
24093
echo $ECHO_N "(cached) $ECHO_C" >&6
24095
cat >conftest.$ac_ext <<_ACEOF
24098
cat confdefs.h >>conftest.$ac_ext
24099
cat >>conftest.$ac_ext <<_ACEOF
24100
/* end confdefs.h. */
24101
$ac_includes_default
24107
if (sizeof (void *))
24113
rm -f conftest.$ac_objext
24114
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24115
(eval $ac_compile) 2>conftest.er1
24117
grep -v '^ *+' conftest.er1 >conftest.err
24119
cat conftest.err >&5
24120
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24121
(exit $ac_status); } &&
24122
{ ac_try='test -z "$ac_c_werror_flag"
24123
|| test ! -s conftest.err'
24124
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24125
(eval $ac_try) 2>&5
24127
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24128
(exit $ac_status); }; } &&
24129
{ ac_try='test -s conftest.$ac_objext'
24130
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24131
(eval $ac_try) 2>&5
24133
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24134
(exit $ac_status); }; }; then
24135
ac_cv_type_void_p=yes
24137
echo "$as_me: failed program was:" >&5
24138
sed 's/^/| /' conftest.$ac_ext >&5
24140
ac_cv_type_void_p=no
24142
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24144
echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
24145
echo "${ECHO_T}$ac_cv_type_void_p" >&6
24147
echo "$as_me:$LINENO: checking size of void *" >&5
24148
echo $ECHO_N "checking size of void *... $ECHO_C" >&6
24149
if test "${ac_cv_sizeof_void_p+set}" = set; then
24150
echo $ECHO_N "(cached) $ECHO_C" >&6
24152
if test "$ac_cv_type_void_p" = yes; then
24153
# The cast to unsigned long works around a bug in the HP C Compiler
24154
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24155
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24156
# This bug is HP SR number 8606223364.
24157
if test "$cross_compiling" = yes; then
24158
# Depending upon the size, compute the lo and hi bounds.
24159
cat >conftest.$ac_ext <<_ACEOF
24162
cat confdefs.h >>conftest.$ac_ext
24163
cat >>conftest.$ac_ext <<_ACEOF
24164
/* end confdefs.h. */
24165
$ac_includes_default
24169
static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
24176
rm -f conftest.$ac_objext
24177
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24178
(eval $ac_compile) 2>conftest.er1
24180
grep -v '^ *+' conftest.er1 >conftest.err
24182
cat conftest.err >&5
24183
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24184
(exit $ac_status); } &&
24185
{ ac_try='test -z "$ac_c_werror_flag"
24186
|| test ! -s conftest.err'
24187
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24188
(eval $ac_try) 2>&5
24190
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24191
(exit $ac_status); }; } &&
24192
{ ac_try='test -s conftest.$ac_objext'
24193
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24194
(eval $ac_try) 2>&5
24196
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24197
(exit $ac_status); }; }; then
24200
cat >conftest.$ac_ext <<_ACEOF
24203
cat confdefs.h >>conftest.$ac_ext
24204
cat >>conftest.$ac_ext <<_ACEOF
24205
/* end confdefs.h. */
24206
$ac_includes_default
24210
static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
24217
rm -f conftest.$ac_objext
24218
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24219
(eval $ac_compile) 2>conftest.er1
24221
grep -v '^ *+' conftest.er1 >conftest.err
24223
cat conftest.err >&5
24224
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24225
(exit $ac_status); } &&
24226
{ ac_try='test -z "$ac_c_werror_flag"
24227
|| test ! -s conftest.err'
24228
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24229
(eval $ac_try) 2>&5
24231
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24232
(exit $ac_status); }; } &&
24233
{ ac_try='test -s conftest.$ac_objext'
24234
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24235
(eval $ac_try) 2>&5
24237
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24238
(exit $ac_status); }; }; then
24239
ac_hi=$ac_mid; break
24241
echo "$as_me: failed program was:" >&5
24242
sed 's/^/| /' conftest.$ac_ext >&5
24244
ac_lo=`expr $ac_mid + 1`
24245
if test $ac_lo -le $ac_mid; then
24249
ac_mid=`expr 2 '*' $ac_mid + 1`
24251
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24254
echo "$as_me: failed program was:" >&5
24255
sed 's/^/| /' conftest.$ac_ext >&5
24257
cat >conftest.$ac_ext <<_ACEOF
24260
cat confdefs.h >>conftest.$ac_ext
24261
cat >>conftest.$ac_ext <<_ACEOF
24262
/* end confdefs.h. */
24263
$ac_includes_default
24267
static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
24274
rm -f conftest.$ac_objext
24275
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24276
(eval $ac_compile) 2>conftest.er1
24278
grep -v '^ *+' conftest.er1 >conftest.err
24280
cat conftest.err >&5
24281
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24282
(exit $ac_status); } &&
24283
{ ac_try='test -z "$ac_c_werror_flag"
24284
|| test ! -s conftest.err'
24285
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24286
(eval $ac_try) 2>&5
24288
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24289
(exit $ac_status); }; } &&
24290
{ ac_try='test -s conftest.$ac_objext'
24291
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24292
(eval $ac_try) 2>&5
24294
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24295
(exit $ac_status); }; }; then
24298
cat >conftest.$ac_ext <<_ACEOF
24301
cat confdefs.h >>conftest.$ac_ext
24302
cat >>conftest.$ac_ext <<_ACEOF
24303
/* end confdefs.h. */
24304
$ac_includes_default
24308
static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
24315
rm -f conftest.$ac_objext
24316
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24317
(eval $ac_compile) 2>conftest.er1
24319
grep -v '^ *+' conftest.er1 >conftest.err
24321
cat conftest.err >&5
24322
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24323
(exit $ac_status); } &&
24324
{ ac_try='test -z "$ac_c_werror_flag"
24325
|| test ! -s conftest.err'
24326
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24327
(eval $ac_try) 2>&5
24329
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24330
(exit $ac_status); }; } &&
24331
{ ac_try='test -s conftest.$ac_objext'
24332
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24333
(eval $ac_try) 2>&5
24335
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24336
(exit $ac_status); }; }; then
24337
ac_lo=$ac_mid; break
24339
echo "$as_me: failed program was:" >&5
24340
sed 's/^/| /' conftest.$ac_ext >&5
24342
ac_hi=`expr '(' $ac_mid ')' - 1`
24343
if test $ac_mid -le $ac_hi; then
24347
ac_mid=`expr 2 '*' $ac_mid`
24349
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24352
echo "$as_me: failed program was:" >&5
24353
sed 's/^/| /' conftest.$ac_ext >&5
24357
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24359
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24360
# Binary search between lo and hi bounds.
24361
while test "x$ac_lo" != "x$ac_hi"; do
24362
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24363
cat >conftest.$ac_ext <<_ACEOF
24366
cat confdefs.h >>conftest.$ac_ext
24367
cat >>conftest.$ac_ext <<_ACEOF
24368
/* end confdefs.h. */
24369
$ac_includes_default
24373
static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
24380
rm -f conftest.$ac_objext
24381
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24382
(eval $ac_compile) 2>conftest.er1
24384
grep -v '^ *+' conftest.er1 >conftest.err
24386
cat conftest.err >&5
24387
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24388
(exit $ac_status); } &&
24389
{ ac_try='test -z "$ac_c_werror_flag"
24390
|| test ! -s conftest.err'
24391
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24392
(eval $ac_try) 2>&5
24394
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24395
(exit $ac_status); }; } &&
24396
{ ac_try='test -s conftest.$ac_objext'
24397
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24398
(eval $ac_try) 2>&5
24400
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24401
(exit $ac_status); }; }; then
24404
echo "$as_me: failed program was:" >&5
24405
sed 's/^/| /' conftest.$ac_ext >&5
24407
ac_lo=`expr '(' $ac_mid ')' + 1`
24409
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24412
?*) ac_cv_sizeof_void_p=$ac_lo;;
24413
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
24414
See \`config.log' for more details." >&5
24415
echo "$as_me: error: cannot compute sizeof (void *), 77
24416
See \`config.log' for more details." >&2;}
24417
{ (exit 1); exit 1; }; } ;;
24420
if test "$cross_compiling" = yes; then
24421
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24422
See \`config.log' for more details." >&5
24423
echo "$as_me: error: cannot run test program while cross compiling
24424
See \`config.log' for more details." >&2;}
24425
{ (exit 1); exit 1; }; }
24427
cat >conftest.$ac_ext <<_ACEOF
24430
cat confdefs.h >>conftest.$ac_ext
24431
cat >>conftest.$ac_ext <<_ACEOF
24432
/* end confdefs.h. */
24433
$ac_includes_default
24434
long longval () { return (long) (sizeof (void *)); }
24435
unsigned long ulongval () { return (long) (sizeof (void *)); }
24437
#include <stdlib.h>
24442
FILE *f = fopen ("conftest.val", "w");
24445
if (((long) (sizeof (void *))) < 0)
24447
long i = longval ();
24448
if (i != ((long) (sizeof (void *))))
24450
fprintf (f, "%ld\n", i);
24454
unsigned long i = ulongval ();
24455
if (i != ((long) (sizeof (void *))))
24457
fprintf (f, "%lu\n", i);
24459
exit (ferror (f) || fclose (f) != 0);
24465
rm -f conftest$ac_exeext
24466
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24467
(eval $ac_link) 2>&5
24469
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24470
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24471
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24472
(eval $ac_try) 2>&5
24474
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24475
(exit $ac_status); }; }; then
24476
ac_cv_sizeof_void_p=`cat conftest.val`
24478
echo "$as_me: program exited with status $ac_status" >&5
24479
echo "$as_me: failed program was:" >&5
24480
sed 's/^/| /' conftest.$ac_ext >&5
24482
( exit $ac_status )
24483
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
24484
See \`config.log' for more details." >&5
24485
echo "$as_me: error: cannot compute sizeof (void *), 77
24486
See \`config.log' for more details." >&2;}
24487
{ (exit 1); exit 1; }; }
24489
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24494
ac_cv_sizeof_void_p=0
24497
echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
24498
echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
24499
cat >>confdefs.h <<_ACEOF
24500
#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
24506
if test "x${GCC}" = "xyes"
24509
echo "$as_me:$LINENO: checking \"for gcc strength-reduce bug\"" >&5
24510
echo $ECHO_N "checking \"for gcc strength-reduce bug\"... $ECHO_C" >&6
24511
if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
24512
echo $ECHO_N "(cached) $ECHO_C" >&6
24514
if test "$cross_compiling" = yes; then
24515
ac_cv_c_gcc_strength_bug="yes"
24517
cat >conftest.$ac_ext <<_ACEOF
24520
cat confdefs.h >>conftest.$ac_ext
24521
cat >>conftest.$ac_ext <<_ACEOF
24522
/* end confdefs.h. */
24525
static int Array[3];
24526
unsigned int B = 3;
24528
for(i=0; i<B; i++) Array[i] = i - 3;
24529
exit( Array[1] != -2 );
24532
rm -f conftest$ac_exeext
24533
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24534
(eval $ac_link) 2>&5
24536
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24537
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24538
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24539
(eval $ac_try) 2>&5
24541
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24542
(exit $ac_status); }; }; then
24543
ac_cv_c_gcc_strength_bug="no"
24545
echo "$as_me: program exited with status $ac_status" >&5
24546
echo "$as_me: failed program was:" >&5
24547
sed 's/^/| /' conftest.$ac_ext >&5
24549
( exit $ac_status )
24550
ac_cv_c_gcc_strength_bug="yes"
24552
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24555
echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
24556
echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6
24557
if test "$ac_cv_c_gcc_strength_bug" = "yes"
24559
CFLAGS="$CFLAGS -fno-strength-reduce"
24564
echo "$as_me:$LINENO: checking \"whether external symbols need an underscore prefix\"" >&5
24565
echo $ECHO_N "checking \"whether external symbols need an underscore prefix\"... $ECHO_C" >&6
24566
if test "${ac_cv_c_extern_prefix+set}" = set; then
24567
echo $ECHO_N "(cached) $ECHO_C" >&6
24570
LIBS="conftest_asm.s $LIBS"
24571
cat > conftest_asm.s <<EOF
24576
cat >conftest.$ac_ext <<_ACEOF
24579
cat confdefs.h >>conftest.$ac_ext
24580
cat >>conftest.$ac_ext <<_ACEOF
24581
/* end confdefs.h. */
24582
extern int ac_test;
24586
if (ac_test) return 1
24591
rm -f conftest.$ac_objext conftest$ac_exeext
24592
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24593
(eval $ac_link) 2>conftest.er1
24595
grep -v '^ *+' conftest.er1 >conftest.err
24597
cat conftest.err >&5
24598
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24599
(exit $ac_status); } &&
24600
{ ac_try='test -z "$ac_c_werror_flag"
24601
|| test ! -s conftest.err'
24602
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24603
(eval $ac_try) 2>&5
24605
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24606
(exit $ac_status); }; } &&
24607
{ ac_try='test -s conftest$ac_exeext'
24608
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24609
(eval $ac_try) 2>&5
24611
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24612
(exit $ac_status); }; }; then
24613
ac_cv_c_extern_prefix="yes"
24615
echo "$as_me: failed program was:" >&5
24616
sed 's/^/| /' conftest.$ac_ext >&5
24618
ac_cv_c_extern_prefix="no"
24620
rm -f conftest.err conftest.$ac_objext \
24621
conftest$ac_exeext conftest.$ac_ext
24624
echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
24625
echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6
24626
if test "$ac_cv_c_extern_prefix" = "yes"
24628
cat >>confdefs.h <<\_ACEOF
24629
#define NEED_UNDERSCORE_PREFIX 1
24635
echo "$as_me:$LINENO: checking \"which ANSI integer type is 16 bit\"" >&5
24636
echo $ECHO_N "checking \"which ANSI integer type is 16 bit\"... $ECHO_C" >&6
24637
if test "${ac_16bit_type+set}" = set; then
24638
echo $ECHO_N "(cached) $ECHO_C" >&6
24640
if test "$cross_compiling" = yes; then
24643
cat >conftest.$ac_ext <<_ACEOF
24646
cat confdefs.h >>conftest.$ac_ext
24647
cat >>conftest.$ac_ext <<_ACEOF
24648
/* end confdefs.h. */
24651
if (sizeof(short)==2)
24653
else if (sizeof(int)==2)
24659
rm -f conftest$ac_exeext
24660
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24661
(eval $ac_link) 2>&5
24663
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24664
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24665
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24666
(eval $ac_try) 2>&5
24668
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24669
(exit $ac_status); }; }; then
24670
ac_16bit_type="short"
24672
echo "$as_me: program exited with status $ac_status" >&5
24673
echo "$as_me: failed program was:" >&5
24674
sed 's/^/| /' conftest.$ac_ext >&5
24676
( exit $ac_status )
24677
ac_16bit_type="int"
24679
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24682
echo "$as_me:$LINENO: result: $ac_16bit_type" >&5
24683
echo "${ECHO_T}$ac_16bit_type" >&6
24684
if test "$ac_16bit_type" = "short"
24686
T1_AA_TYPE16="-DT1_AA_TYPE16=short"
24689
T1_AA_TYPE16="-DT1_AA_TYPE16=int"
24695
echo "$as_me:$LINENO: checking \"which ANSI integer type is 32 bit\"" >&5
24696
echo $ECHO_N "checking \"which ANSI integer type is 32 bit\"... $ECHO_C" >&6
24697
if test "${ac_32bit_type+set}" = set; then
24698
echo $ECHO_N "(cached) $ECHO_C" >&6
24700
if test "$cross_compiling" = yes; then
24703
cat >conftest.$ac_ext <<_ACEOF
24706
cat confdefs.h >>conftest.$ac_ext
24707
cat >>conftest.$ac_ext <<_ACEOF
24708
/* end confdefs.h. */
24711
if (sizeof(int)==4)
24713
else if (sizeof(long)==4)
24719
rm -f conftest$ac_exeext
24720
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24721
(eval $ac_link) 2>&5
24723
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24724
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24725
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24726
(eval $ac_try) 2>&5
24728
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24729
(exit $ac_status); }; }; then
24730
ac_32bit_type="int"
24732
echo "$as_me: program exited with status $ac_status" >&5
24733
echo "$as_me: failed program was:" >&5
24734
sed 's/^/| /' conftest.$ac_ext >&5
24736
( exit $ac_status )
24737
ac_32bit_type="long"
24739
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24742
echo "$as_me:$LINENO: result: $ac_32bit_type" >&5
24743
echo "${ECHO_T}$ac_32bit_type" >&6
24744
if test "$ac_32bit_type" = "int"
24746
T1_AA_TYPE32="-DT1_AA_TYPE32=int"
24749
T1_AA_TYPE32="-DT1_AA_TYPE32=long"
24755
echo "$as_me:$LINENO: checking \"which ANSI integer type is 64 bit\"" >&5
24756
echo $ECHO_N "checking \"which ANSI integer type is 64 bit\"... $ECHO_C" >&6
24757
if test "${ac_64bit_type+set}" = set; then
24758
echo $ECHO_N "(cached) $ECHO_C" >&6
24760
if test "$cross_compiling" = yes; then
24761
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24762
See \`config.log' for more details." >&5
24763
echo "$as_me: error: cannot run test program while cross compiling
24764
See \`config.log' for more details." >&2;}
24765
{ (exit 1); exit 1; }; }
24767
cat >conftest.$ac_ext <<_ACEOF
24770
cat confdefs.h >>conftest.$ac_ext
24771
cat >>conftest.$ac_ext <<_ACEOF
24772
/* end confdefs.h. */
24775
if (sizeof(long)==8)
24781
rm -f conftest$ac_exeext
24782
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24783
(eval $ac_link) 2>&5
24785
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24786
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24787
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24788
(eval $ac_try) 2>&5
24790
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24791
(exit $ac_status); }; }; then
24792
ac_64bit_type="long"
24794
echo "$as_me: program exited with status $ac_status" >&5
24795
echo "$as_me: failed program was:" >&5
24796
sed 's/^/| /' conftest.$ac_ext >&5
24798
( exit $ac_status )
24799
ac_64bit_type="<none>"
24801
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24804
echo "$as_me:$LINENO: result: $ac_64bit_type" >&5
24805
echo "${ECHO_T}$ac_64bit_type" >&6
24806
if test "$ac_64bit_type" = "long"
24808
T1_AA_TYPE64="-DT1_AA_TYPE64=long"
24814
CFLAGS="${CFLAGS} -DT1LIB_IDENT=\"\\\"${T1LIB_IDENTIFIER}\\\"\" -DGLOBAL_CONFIG_DIR=\"\\\"${T1LIB_DATA_DIR}\\\"\""
24817
echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
24818
echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
24819
if test "${ac_cv_header_stat_broken+set}" = set; then
24820
echo $ECHO_N "(cached) $ECHO_C" >&6
24822
cat >conftest.$ac_ext <<_ACEOF
24825
cat confdefs.h >>conftest.$ac_ext
24826
cat >>conftest.$ac_ext <<_ACEOF
24827
/* end confdefs.h. */
24828
#include <sys/types.h>
24829
#include <sys/stat.h>
24831
#if defined(S_ISBLK) && defined(S_IFDIR)
24832
# if S_ISBLK (S_IFDIR)
24837
#if defined(S_ISBLK) && defined(S_IFCHR)
24838
# if S_ISBLK (S_IFCHR)
24843
#if defined(S_ISLNK) && defined(S_IFREG)
24844
# if S_ISLNK (S_IFREG)
24849
#if defined(S_ISSOCK) && defined(S_IFREG)
24850
# if S_ISSOCK (S_IFREG)
24856
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24857
$EGREP "You lose" >/dev/null 2>&1; then
24858
ac_cv_header_stat_broken=yes
24860
ac_cv_header_stat_broken=no
24865
echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
24866
echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
24867
if test $ac_cv_header_stat_broken = yes; then
24869
cat >>confdefs.h <<\_ACEOF
24870
#define STAT_MACROS_BROKEN 1
24875
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
24876
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
24877
if test "${ac_cv_c_const+set}" = set; then
24878
echo $ECHO_N "(cached) $ECHO_C" >&6
24880
cat >conftest.$ac_ext <<_ACEOF
24883
cat confdefs.h >>conftest.$ac_ext
24884
cat >>conftest.$ac_ext <<_ACEOF
24885
/* end confdefs.h. */
24890
/* FIXME: Include the comments suggested by Paul. */
24891
#ifndef __cplusplus
24892
/* Ultrix mips cc rejects this. */
24893
typedef int charset[2];
24895
/* SunOS 4.1.1 cc rejects this. */
24896
char const *const *ccp;
24898
/* NEC SVR4.0.2 mips cc rejects this. */
24899
struct point {int x, y;};
24900
static struct point const zero = {0,0};
24901
/* AIX XL C 1.02.0.0 rejects this.
24902
It does not let you subtract one const X* pointer from another in
24903
an arm of an if-expression whose if-part is not a constant
24905
const char *g = "string";
24906
ccp = &g + (g ? g-g : 0);
24907
/* HPUX 7.0 cc rejects these. */
24910
ccp = (char const *const *) p;
24911
{ /* SCO 3.2v4 cc rejects this. */
24913
char const *s = 0 ? (char *) 0 : (char const *) 0;
24917
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
24918
int x[] = {25, 17};
24919
const int *foo = &x[0];
24922
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
24923
typedef const int *iptr;
24927
{ /* AIX XL C 1.02.0.0 rejects this saying
24928
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
24929
struct s { int j; const int *ap[3]; };
24930
struct s *b; b->j = 5;
24932
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
24933
const int foo = 10;
24941
rm -f conftest.$ac_objext
24942
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24943
(eval $ac_compile) 2>conftest.er1
24945
grep -v '^ *+' conftest.er1 >conftest.err
24947
cat conftest.err >&5
24948
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24949
(exit $ac_status); } &&
24950
{ ac_try='test -z "$ac_c_werror_flag"
24951
|| test ! -s conftest.err'
24952
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24953
(eval $ac_try) 2>&5
24955
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24956
(exit $ac_status); }; } &&
24957
{ ac_try='test -s conftest.$ac_objext'
24958
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24959
(eval $ac_try) 2>&5
24961
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24962
(exit $ac_status); }; }; then
24965
echo "$as_me: failed program was:" >&5
24966
sed 's/^/| /' conftest.$ac_ext >&5
24970
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24972
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
24973
echo "${ECHO_T}$ac_cv_c_const" >&6
24974
if test $ac_cv_c_const = no; then
24976
cat >>confdefs.h <<\_ACEOF
24982
echo "$as_me:$LINENO: checking for size_t" >&5
24983
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
24984
if test "${ac_cv_type_size_t+set}" = set; then
24985
echo $ECHO_N "(cached) $ECHO_C" >&6
24987
cat >conftest.$ac_ext <<_ACEOF
24990
cat confdefs.h >>conftest.$ac_ext
24991
cat >>conftest.$ac_ext <<_ACEOF
24992
/* end confdefs.h. */
24993
$ac_includes_default
24999
if (sizeof (size_t))
25005
rm -f conftest.$ac_objext
25006
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25007
(eval $ac_compile) 2>conftest.er1
25009
grep -v '^ *+' conftest.er1 >conftest.err
25011
cat conftest.err >&5
25012
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25013
(exit $ac_status); } &&
25014
{ ac_try='test -z "$ac_c_werror_flag"
25015
|| test ! -s conftest.err'
25016
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25017
(eval $ac_try) 2>&5
25019
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25020
(exit $ac_status); }; } &&
25021
{ ac_try='test -s conftest.$ac_objext'
25022
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25023
(eval $ac_try) 2>&5
25025
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25026
(exit $ac_status); }; }; then
25027
ac_cv_type_size_t=yes
25029
echo "$as_me: failed program was:" >&5
25030
sed 's/^/| /' conftest.$ac_ext >&5
25032
ac_cv_type_size_t=no
25034
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25036
echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
25037
echo "${ECHO_T}$ac_cv_type_size_t" >&6
25038
if test $ac_cv_type_size_t = yes; then
25042
cat >>confdefs.h <<_ACEOF
25043
#define size_t unsigned
25050
if test "$no_x" = "yes"
25052
MAIN_TARGET="libt1.la"
25053
MAIN_HEADER="t1lib.h"
25060
MAIN_TARGET="libt1.la libt1x.la"
25061
MAIN_HEADER="t1lib.h t1libx.h"
25063
T1LIBX_OBJS="t1lib/t1x11.lo"
25064
T1LIBX_SRCS="t1lib/t1x11.c"
25065
T1LIBX_HEADERS="t1lib/t1x11.h t1lib/t1libx.h"
25071
if test "$no_x" = "yes"
25073
CFLAGS="${CFLAGS} -DT1LIB_NO_X11_SUPPORT"
25074
MAKEFILES="Makefile \
25076
lib/type1/Makefile \
25077
lib/t1lib/Makefile \
25078
type1afm/Makefile \
25079
examples/Makefile \
25082
MAKEFILES="Makefile \
25084
lib/type1/Makefile \
25085
lib/t1lib/Makefile \
25087
type1afm/Makefile \
25088
examples/Makefile \
25093
ac_config_files="$ac_config_files $MAKEFILES lib/t1lib/t1lib.h"
25094
cat >confcache <<\_ACEOF
25095
# This file is a shell script that caches the results of configure
25096
# tests run on this system so they can be shared between configure
25097
# scripts and configure runs, see configure's option --config-cache.
25098
# It is not useful on other systems. If it contains results you don't
25099
# want to keep, you may remove or edit it.
25101
# config.status only pays attention to the cache file if you give it
25102
# the --recheck option to rerun configure.
25104
# `ac_cv_env_foo' variables (set or unset) will be overridden when
25105
# loading this file, other *unset* `ac_cv_foo' will be assigned the
25106
# following values.
25110
# The following way of writing the cache mishandles newlines in values,
25111
# but we know of no workaround that is simple, portable, and efficient.
25112
# So, don't put newlines in cache variables' values.
25113
# Ultrix sh set writes to stderr and can't be redirected directly,
25114
# and sets the high bit in the cache file unless we assign to the vars.
25117
case `(ac_space=' '; set | grep ac_space) 2>&1` in
25119
# `set' does not quote correctly, so add quotes (double-quote
25120
# substitution turns \\\\ into \\, and sed turns \\ into \).
25123
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25126
# `set' quotes correctly as required by POSIX, so do not add quotes.
25128
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
25135
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25137
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25139
if diff $cache_file confcache >/dev/null 2>&1; then :; else
25140
if test -w $cache_file; then
25141
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
25142
cat confcache >$cache_file
25144
echo "not updating unwritable cache $cache_file"
25149
test "x$prefix" = xNONE && prefix=$ac_default_prefix
25150
# Let make expand exec_prefix.
25151
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25153
# VPATH may cause trouble with some makes, so we remove $(srcdir),
25154
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25155
# trailing colons and then remove the whole line if VPATH becomes empty
25156
# (actually we leave an empty line to preserve line numbers).
25157
if test "x$srcdir" = x.; then
25158
ac_vpsub='/^[ ]*VPATH[ ]*=/{
25159
s/:*\$(srcdir):*/:/;
25160
s/:*\${srcdir}:*/:/;
25162
s/^\([^=]*=[ ]*\):*/\1/;
25168
DEFS=-DHAVE_CONFIG_H
25172
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25173
# 1. Remove the extension, and $U if already installed.
25174
ac_i=`echo "$ac_i" |
25175
sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
25177
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
25178
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
25180
LIBOBJS=$ac_libobjs
25182
LTLIBOBJS=$ac_ltlibobjs
25186
: ${CONFIG_STATUS=./config.status}
25187
ac_clean_files_save=$ac_clean_files
25188
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25189
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25190
echo "$as_me: creating $CONFIG_STATUS" >&6;}
25191
cat >$CONFIG_STATUS <<_ACEOF
25193
# Generated by $as_me.
25194
# Run this file to recreate the current configuration.
25195
# Compiler output produced by configure, useful for debugging
25196
# configure, is in config.log if it exists.
25199
ac_cs_recheck=false
25201
SHELL=\${CONFIG_SHELL-$SHELL}
25204
cat >>$CONFIG_STATUS <<\_ACEOF
25205
## --------------------- ##
25206
## M4sh Initialization. ##
25207
## --------------------- ##
25209
# Be Bourne compatible
25210
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25213
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25214
# is contrary to our usage. Disable this feature.
25215
alias -g '${1+"$@"}'='"$@"'
25216
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
25219
DUALCASE=1; export DUALCASE # for MKS sh
25221
# Support unset when possible.
25222
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25229
# Work around bugs in pre-3.0 UWIN ksh.
25230
$as_unset ENV MAIL MAILPATH
25237
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25238
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25239
LC_TELEPHONE LC_TIME
25241
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25242
eval $as_var=C; export $as_var
25248
# Required to use basename.
25249
if expr a : '\(a\)' >/dev/null 2>&1; then
25255
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
25256
as_basename=basename
25262
# Name of the executable.
25263
as_me=`$as_basename "$0" ||
25264
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25265
X"$0" : 'X\(//\)$' \| \
25266
X"$0" : 'X\(/\)$' \| \
25267
. : '\(.\)' 2>/dev/null ||
25269
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
25270
/^X\/\(\/\/\)$/{ s//\1/; q; }
25271
/^X\/\(\/\).*/{ s//\1/; q; }
25275
# PATH needs CR, and LINENO needs CR and PATH.
25276
# Avoid depending upon Character Ranges.
25277
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25278
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25279
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25280
as_cr_digits='0123456789'
25281
as_cr_alnum=$as_cr_Letters$as_cr_digits
25283
# The user is always right.
25284
if test "${PATH_SEPARATOR+set}" != set; then
25285
echo "#! /bin/sh" >conf$$.sh
25286
echo "exit 0" >>conf$$.sh
25288
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25297
as_lineno_1=$LINENO
25298
as_lineno_2=$LINENO
25299
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
25300
test "x$as_lineno_1" != "x$as_lineno_2" &&
25301
test "x$as_lineno_3" = "x$as_lineno_2" || {
25302
# Find who we are. Look in the path if we contain no path at all
25305
*[\\/]* ) as_myself=$0 ;;
25306
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25307
for as_dir in $PATH
25310
test -z "$as_dir" && as_dir=.
25311
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25316
# We did not find ourselves, most probably we were run as `sh COMMAND'
25317
# in which case we are not to be found in the path.
25318
if test "x$as_myself" = x; then
25321
if test ! -f "$as_myself"; then
25322
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
25323
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
25324
{ (exit 1); exit 1; }; }
25326
case $CONFIG_SHELL in
25328
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25329
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
25332
test -z "$as_dir" && as_dir=.
25333
for as_base in sh bash ksh sh5; do
25336
if ("$as_dir/$as_base" -c '
25337
as_lineno_1=$LINENO
25338
as_lineno_2=$LINENO
25339
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
25340
test "x$as_lineno_1" != "x$as_lineno_2" &&
25341
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
25342
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
25343
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
25344
CONFIG_SHELL=$as_dir/$as_base
25345
export CONFIG_SHELL
25346
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
25354
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25355
# uniformly replaced by the line number. The first 'sed' inserts a
25356
# line-number line before each line; the second 'sed' does the real
25357
# work. The second script uses 'N' to pair each line-number line
25358
# with the numbered line, and appends trailing '-' during
25359
# substitution so that $LINENO is not a special case at line end.
25360
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25361
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
25362
sed '=' <$as_myself |
25367
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
25370
s,^['$as_cr_digits']*\n,,
25371
' >$as_me.lineno &&
25372
chmod +x $as_me.lineno ||
25373
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
25374
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
25375
{ (exit 1); exit 1; }; }
25377
# Don't try to exec as it changes $[0], causing all sort of problems
25378
# (the dirname of $[0] is not the place where we might find the
25379
# original and so on. Autoconf is especially sensible to this).
25381
# Exit status is that of the last command.
25386
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
25387
*c*,-n*) ECHO_N= ECHO_C='
25389
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
25390
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
25393
if expr a : '\(a\)' >/dev/null 2>&1; then
25399
rm -f conf$$ conf$$.exe conf$$.file
25401
if ln -s conf$$.file conf$$ 2>/dev/null; then
25402
# We could just check for DJGPP; but this test a) works b) is more generic
25403
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
25404
if test -f conf$$.exe; then
25405
# Don't use ln at all; we don't have any links
25410
elif ln conf$$.file conf$$ 2>/dev/null; then
25415
rm -f conf$$ conf$$.exe conf$$.file
25417
if mkdir -p . 2>/dev/null; then
25420
test -d ./-p && rmdir ./-p
25424
as_executable_p="test -f"
25426
# Sed expression to map a string onto a valid CPP name.
25427
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25429
# Sed expression to map a string onto a valid variable name.
25430
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25434
# We need space, tab and new line, in precisely that order.
25444
# Open the log real soon, to keep \$[0] and so on meaningful, and to
25445
# report actual input values of CONFIG_FILES etc. instead of their
25446
# values after options handling. Logging --version etc. is OK.
25450
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25451
## Running $as_me. ##
25456
This file was extended by $as_me, which was
25457
generated by GNU Autoconf 2.59. Invocation command line was
25459
CONFIG_FILES = $CONFIG_FILES
25460
CONFIG_HEADERS = $CONFIG_HEADERS
25461
CONFIG_LINKS = $CONFIG_LINKS
25462
CONFIG_COMMANDS = $CONFIG_COMMANDS
25466
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
25470
# Files that config.status was made for.
25471
if test -n "$ac_config_files"; then
25472
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
25475
if test -n "$ac_config_headers"; then
25476
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
25479
if test -n "$ac_config_links"; then
25480
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
25483
if test -n "$ac_config_commands"; then
25484
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
25487
cat >>$CONFIG_STATUS <<\_ACEOF
25490
\`$as_me' instantiates files from templates according to the
25491
current configuration.
25493
Usage: $0 [OPTIONS] [FILE]...
25495
-h, --help print this help, then exit
25496
-V, --version print version number, then exit
25497
-q, --quiet do not print progress messages
25498
-d, --debug don't remove temporary files
25499
--recheck update $as_me by reconfiguring in the same conditions
25500
--file=FILE[:TEMPLATE]
25501
instantiate the configuration file FILE
25502
--header=FILE[:TEMPLATE]
25503
instantiate the configuration header FILE
25505
Configuration files:
25508
Configuration headers:
25511
Report bugs to <bug-autoconf@gnu.org>."
25514
cat >>$CONFIG_STATUS <<_ACEOF
25517
configured by $0, generated by GNU Autoconf 2.59,
25518
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
25520
Copyright (C) 2003 Free Software Foundation, Inc.
25521
This config.status script is free software; the Free Software Foundation
25522
gives unlimited permission to copy, distribute and modify it."
25527
cat >>$CONFIG_STATUS <<\_ACEOF
25528
# If no file are specified by the user, then we need to provide default
25529
# value. By we need to know if files were specified by the user.
25535
ac_option=`expr "x$1" : 'x\([^=]*\)='`
25536
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
25544
*) # This is not an option, so the user has probably given explicit
25547
ac_need_defaults=false;;
25551
# Handling of the options.
25553
cat >>$CONFIG_STATUS <<\_ACEOF
25554
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25556
--version | --vers* | -V )
25557
echo "$ac_cs_version"; exit 0 ;;
25559
# Conflict between --help and --header
25560
{ { echo "$as_me:$LINENO: error: ambiguous option: $1
25561
Try \`$0 --help' for more information." >&5
25562
echo "$as_me: error: ambiguous option: $1
25563
Try \`$0 --help' for more information." >&2;}
25564
{ (exit 1); exit 1; }; };;
25565
--help | --hel | -h )
25566
echo "$ac_cs_usage"; exit 0 ;;
25567
--debug | --d* | -d )
25569
--file | --fil | --fi | --f )
25571
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25572
ac_need_defaults=false;;
25573
--header | --heade | --head | --hea )
25575
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
25576
ac_need_defaults=false;;
25577
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
25578
| -silent | --silent | --silen | --sile | --sil | --si | --s)
25581
# This is an error.
25582
-*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
25583
Try \`$0 --help' for more information." >&5
25584
echo "$as_me: error: unrecognized option: $1
25585
Try \`$0 --help' for more information." >&2;}
25586
{ (exit 1); exit 1; }; } ;;
25588
*) ac_config_targets="$ac_config_targets $1" ;;
25594
ac_configure_extra_args=
25596
if $ac_cs_silent; then
25598
ac_configure_extra_args="$ac_configure_extra_args --silent"
25602
cat >>$CONFIG_STATUS <<_ACEOF
25603
if \$ac_cs_recheck; then
25604
echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25605
exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25614
cat >>$CONFIG_STATUS <<\_ACEOF
25615
for ac_config_target in $ac_config_targets
25617
case "$ac_config_target" in
25618
# Handling of arguments.
25619
"$MAKEFILES" ) CONFIG_FILES="$CONFIG_FILES $MAKEFILES" ;;
25620
"lib/t1lib/t1lib.h" ) CONFIG_FILES="$CONFIG_FILES lib/t1lib/t1lib.h" ;;
25621
"lib/t1lib/sysconf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS lib/t1lib/sysconf.h:lib/t1lib/sysconf.h.in" ;;
25622
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25623
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25624
{ (exit 1); exit 1; }; };;
25628
# If the user did not use the arguments to specify the items to instantiate,
25629
# then the envvar interface is used. Set only those that are not.
25630
# We use the long form for the default assignment because of an extremely
25631
# bizarre bug on SunOS 4.1.3.
25632
if $ac_need_defaults; then
25633
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25634
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25637
# Have a temporary directory for convenience. Make it in the build tree
25638
# simply because there is no reason to put it here, and in addition,
25639
# creating and moving files from /tmp can sometimes cause problems.
25640
# Create a temporary directory, and hook for its removal unless debugging.
25643
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
25644
trap '{ (exit 1); exit 1; }' 1 2 13 15
25647
# Create a (secure) tmp directory for tmp files.
25650
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
25651
test -n "$tmp" && test -d "$tmp"
25654
tmp=./confstat$$-$RANDOM
25655
(umask 077 && mkdir $tmp)
25658
echo "$me: cannot create a temporary directory in ." >&2
25659
{ (exit 1); exit 1; }
25664
cat >>$CONFIG_STATUS <<_ACEOF
25667
# CONFIG_FILES section.
25670
# No need to generate the scripts if there are no CONFIG_FILES.
25671
# This happens for instance when ./config.status config.h
25672
if test -n "\$CONFIG_FILES"; then
25673
# Protect against being on the right side of a sed subst in config.status.
25674
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
25675
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
25676
s,@SHELL@,$SHELL,;t t
25677
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
25678
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
25679
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
25680
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
25681
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
25682
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
25683
s,@exec_prefix@,$exec_prefix,;t t
25684
s,@prefix@,$prefix,;t t
25685
s,@program_transform_name@,$program_transform_name,;t t
25686
s,@bindir@,$bindir,;t t
25687
s,@sbindir@,$sbindir,;t t
25688
s,@libexecdir@,$libexecdir,;t t
25689
s,@datadir@,$datadir,;t t
25690
s,@sysconfdir@,$sysconfdir,;t t
25691
s,@sharedstatedir@,$sharedstatedir,;t t
25692
s,@localstatedir@,$localstatedir,;t t
25693
s,@libdir@,$libdir,;t t
25694
s,@includedir@,$includedir,;t t
25695
s,@oldincludedir@,$oldincludedir,;t t
25696
s,@infodir@,$infodir,;t t
25697
s,@mandir@,$mandir,;t t
25698
s,@build_alias@,$build_alias,;t t
25699
s,@host_alias@,$host_alias,;t t
25700
s,@target_alias@,$target_alias,;t t
25701
s,@DEFS@,$DEFS,;t t
25702
s,@ECHO_C@,$ECHO_C,;t t
25703
s,@ECHO_N@,$ECHO_N,;t t
25704
s,@ECHO_T@,$ECHO_T,;t t
25705
s,@LIBS@,$LIBS,;t t
25706
s,@LDLIBS@,$LDLIBS,;t t
25707
s,@PROGEXT@,$PROGEXT,;t t
25708
s,@CFLAGS@,$CFLAGS,;t t
25709
s,@LDFLAGS@,$LDFLAGS,;t t
25710
s,@T1LIB_LT_CURRENT@,$T1LIB_LT_CURRENT,;t t
25711
s,@T1LIB_LT_REVISION@,$T1LIB_LT_REVISION,;t t
25712
s,@T1LIB_LT_AGE@,$T1LIB_LT_AGE,;t t
25713
s,@T1LIB_DATA_DIR@,$T1LIB_DATA_DIR,;t t
25714
s,@T1LIB_IDENTIFIER@,$T1LIB_IDENTIFIER,;t t
25715
s,@MAIN_TARGET@,$MAIN_TARGET,;t t
25716
s,@MAIN_HEADER@,$MAIN_HEADER,;t t
25717
s,@OPTIONS@,$OPTIONS,;t t
25718
s,@no_x@,$no_x,;t t
25720
s,@T1_AA_TYPE16@,$T1_AA_TYPE16,;t t
25721
s,@T1_AA_TYPE32@,$T1_AA_TYPE32,;t t
25722
s,@T1_AA_TYPE64@,$T1_AA_TYPE64,;t t
25723
s,@T1_INT16@,$T1_INT16,;t t
25724
s,@T1_INT32@,$T1_INT32,;t t
25725
s,@XSUBDIRS@,$XSUBDIRS,;t t
25726
s,@T1LIBX_OBJS@,$T1LIBX_OBJS,;t t
25727
s,@T1LIBX_SRCS@,$T1LIBX_SRCS,;t t
25728
s,@T1LIBX_HEADERS@,$T1LIBX_HEADERS,;t t
25729
s,@XOBJS@,$XOBJS,;t t
25730
s,@T1LIB_VERSION@,$T1LIB_VERSION,;t t
25731
s,@T1LIB_REVISION@,$T1LIB_REVISION,;t t
25732
s,@T1LIB_PATCHLEVEL@,$T1LIB_PATCHLEVEL,;t t
25733
s,@T1LIB_VERSIONSTRING@,$T1LIB_VERSIONSTRING,;t t
25734
s,@SET_MAKE@,$SET_MAKE,;t t
25735
s,@CPPFLAGS@,$CPPFLAGS,;t t
25736
s,@ac_ct_CC@,$ac_ct_CC,;t t
25737
s,@EXEEXT@,$EXEEXT,;t t
25738
s,@OBJEXT@,$OBJEXT,;t t
25740
s,@X_CFLAGS@,$X_CFLAGS,;t t
25741
s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
25742
s,@X_LIBS@,$X_LIBS,;t t
25743
s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
25744
s,@build@,$build,;t t
25745
s,@build_cpu@,$build_cpu,;t t
25746
s,@build_vendor@,$build_vendor,;t t
25747
s,@build_os@,$build_os,;t t
25748
s,@host@,$host,;t t
25749
s,@host_cpu@,$host_cpu,;t t
25750
s,@host_vendor@,$host_vendor,;t t
25751
s,@host_os@,$host_os,;t t
25752
s,@EGREP@,$EGREP,;t t
25753
s,@LN_S@,$LN_S,;t t
25754
s,@ECHO@,$ECHO,;t t
25756
s,@ac_ct_AR@,$ac_ct_AR,;t t
25757
s,@RANLIB@,$RANLIB,;t t
25758
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
25759
s,@STRIP@,$STRIP,;t t
25760
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
25762
s,@CXXFLAGS@,$CXXFLAGS,;t t
25763
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
25764
s,@CXXCPP@,$CXXCPP,;t t
25766
s,@FFLAGS@,$FFLAGS,;t t
25767
s,@ac_ct_F77@,$ac_ct_F77,;t t
25768
s,@LIBTOOL@,$LIBTOOL,;t t
25769
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
25770
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
25771
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
25772
s,@LIBOBJS@,$LIBOBJS,;t t
25773
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
25778
cat >>$CONFIG_STATUS <<\_ACEOF
25779
# Split the substitutions into bite-sized pieces for seds with
25780
# small command number limits, like on Digital OSF/1 and HP-UX.
25781
ac_max_sed_lines=48
25782
ac_sed_frag=1 # Number of current file.
25783
ac_beg=1 # First line for current file.
25784
ac_end=$ac_max_sed_lines # Line after last line for current file.
25787
while $ac_more_lines; do
25788
if test $ac_beg -gt 1; then
25789
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25791
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25793
if test ! -s $tmp/subs.frag; then
25794
ac_more_lines=false
25796
# The purpose of the label and of the branching condition is to
25797
# speed up the sed processing (if there are no `@' at all, there
25798
# is no need to browse any of the substitutions).
25799
# These are the two extra sed commands mentioned above.
25801
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
25802
if test -z "$ac_sed_cmds"; then
25803
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
25805
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
25807
ac_sed_frag=`expr $ac_sed_frag + 1`
25809
ac_end=`expr $ac_end + $ac_max_sed_lines`
25812
if test -z "$ac_sed_cmds"; then
25815
fi # test -n "$CONFIG_FILES"
25818
cat >>$CONFIG_STATUS <<\_ACEOF
25819
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
25820
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25822
- | *:- | *:-:* ) # input from stdin
25824
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25825
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25826
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25827
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25828
* ) ac_file_in=$ac_file.in ;;
25831
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
25832
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25833
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25834
X"$ac_file" : 'X\(//\)[^/]' \| \
25835
X"$ac_file" : 'X\(//\)$' \| \
25836
X"$ac_file" : 'X\(/\)' \| \
25837
. : '\(.\)' 2>/dev/null ||
25839
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25840
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
25841
/^X\(\/\/\)$/{ s//\1/; q; }
25842
/^X\(\/\).*/{ s//\1/; q; }
25844
{ if $as_mkdir_p; then
25849
while test ! -d "$as_dir"; do
25850
as_dirs="$as_dir $as_dirs"
25851
as_dir=`(dirname "$as_dir") 2>/dev/null ||
25852
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25853
X"$as_dir" : 'X\(//\)[^/]' \| \
25854
X"$as_dir" : 'X\(//\)$' \| \
25855
X"$as_dir" : 'X\(/\)' \| \
25856
. : '\(.\)' 2>/dev/null ||
25858
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25859
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
25860
/^X\(\/\/\)$/{ s//\1/; q; }
25861
/^X\(\/\).*/{ s//\1/; q; }
25864
test ! -n "$as_dirs" || mkdir $as_dirs
25865
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25866
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25867
{ (exit 1); exit 1; }; }; }
25871
if test "$ac_dir" != .; then
25872
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25873
# A "../" for each directory in $ac_dir_suffix.
25874
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25876
ac_dir_suffix= ac_top_builddir=
25880
.) # No --srcdir option. We are building in place.
25882
if test -z "$ac_top_builddir"; then
25885
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25887
[\\/]* | ?:[\\/]* ) # Absolute path.
25888
ac_srcdir=$srcdir$ac_dir_suffix;
25889
ac_top_srcdir=$srcdir ;;
25890
*) # Relative path.
25891
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25892
ac_top_srcdir=$ac_top_builddir$srcdir ;;
25895
# Do not use `cd foo && pwd` to compute absolute paths, because
25896
# the directories may not exist.
25898
.) ac_abs_builddir="$ac_dir";;
25901
.) ac_abs_builddir=`pwd`;;
25902
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25903
*) ac_abs_builddir=`pwd`/"$ac_dir";;
25906
case $ac_abs_builddir in
25907
.) ac_abs_top_builddir=${ac_top_builddir}.;;
25909
case ${ac_top_builddir}. in
25910
.) ac_abs_top_builddir=$ac_abs_builddir;;
25911
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25912
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25915
case $ac_abs_builddir in
25916
.) ac_abs_srcdir=$ac_srcdir;;
25919
.) ac_abs_srcdir=$ac_abs_builddir;;
25920
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25921
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25924
case $ac_abs_builddir in
25925
.) ac_abs_top_srcdir=$ac_top_srcdir;;
25927
case $ac_top_srcdir in
25928
.) ac_abs_top_srcdir=$ac_abs_builddir;;
25929
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25930
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25936
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25937
*) ac_INSTALL=$ac_top_builddir$INSTALL ;;
25940
if test x"$ac_file" != x-; then
25941
{ echo "$as_me:$LINENO: creating $ac_file" >&5
25942
echo "$as_me: creating $ac_file" >&6;}
25945
# Let's still pretend it is `configure' which instantiates (i.e., don't
25946
# use $as_me), people would be surprised to read:
25947
# /* config.h. Generated by config.status. */
25948
if test x"$ac_file" = x-; then
25951
configure_input="$ac_file. "
25953
configure_input=$configure_input"Generated from `echo $ac_file_in |
25954
sed 's,.*/,,'` by configure."
25956
# First look for the input files in the build tree, otherwise in the
25958
ac_file_inputs=`IFS=:
25959
for f in $ac_file_in; do
25961
-) echo $tmp/stdin ;;
25963
# Absolute (can't be DOS-style, as IFS=:)
25964
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25965
echo "$as_me: error: cannot find input file: $f" >&2;}
25966
{ (exit 1); exit 1; }; }
25969
if test -f "$f"; then
25972
elif test -f "$srcdir/$f"; then
25977
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25978
echo "$as_me: error: cannot find input file: $f" >&2;}
25979
{ (exit 1); exit 1; }; }
25982
done` || { (exit 1); exit 1; }
25984
cat >>$CONFIG_STATUS <<_ACEOF
25988
cat >>$CONFIG_STATUS <<\_ACEOF
25990
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25991
s,@configure_input@,$configure_input,;t t
25992
s,@srcdir@,$ac_srcdir,;t t
25993
s,@abs_srcdir@,$ac_abs_srcdir,;t t
25994
s,@top_srcdir@,$ac_top_srcdir,;t t
25995
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
25996
s,@builddir@,$ac_builddir,;t t
25997
s,@abs_builddir@,$ac_abs_builddir,;t t
25998
s,@top_builddir@,$ac_top_builddir,;t t
25999
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
26000
s,@INSTALL@,$ac_INSTALL,;t t
26001
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
26003
if test x"$ac_file" != x-; then
26004
mv $tmp/out $ac_file
26012
cat >>$CONFIG_STATUS <<\_ACEOF
26015
# CONFIG_HEADER section.
26018
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
26019
# NAME is the cpp macro being defined and VALUE is the value it is being given.
26021
# ac_d sets the value in "#define NAME VALUE" lines.
26022
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
26023
ac_dB='[ ].*$,\1#\2'
26026
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
26027
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
26028
ac_uB='$,\1#\2define\3'
26032
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
26033
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
26035
- | *:- | *:-:* ) # input from stdin
26037
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26038
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26039
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26040
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26041
* ) ac_file_in=$ac_file.in ;;
26044
test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
26045
echo "$as_me: creating $ac_file" >&6;}
26047
# First look for the input files in the build tree, otherwise in the
26049
ac_file_inputs=`IFS=:
26050
for f in $ac_file_in; do
26052
-) echo $tmp/stdin ;;
26054
# Absolute (can't be DOS-style, as IFS=:)
26055
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26056
echo "$as_me: error: cannot find input file: $f" >&2;}
26057
{ (exit 1); exit 1; }; }
26058
# Do quote $f, to prevent DOS paths from being IFS'd.
26061
if test -f "$f"; then
26064
elif test -f "$srcdir/$f"; then
26069
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26070
echo "$as_me: error: cannot find input file: $f" >&2;}
26071
{ (exit 1); exit 1; }; }
26074
done` || { (exit 1); exit 1; }
26075
# Remove the trailing spaces.
26076
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
26080
# Transform confdefs.h into two sed scripts, `conftest.defines' and
26081
# `conftest.undefs', that substitutes the proper values into
26082
# config.h.in to produce config.h. The first handles `#define'
26083
# templates, and the second `#undef' templates.
26084
# And first: Protect against being on the right side of a sed subst in
26085
# config.status. Protect against being in an unquoted here document
26086
# in config.status.
26087
rm -f conftest.defines conftest.undefs
26088
# Using a here document instead of a string reduces the quoting nightmare.
26089
# Putting comments in sed scripts is not portable.
26091
# `end' is used to avoid that the second main sed command (meant for
26092
# 0-ary CPP macros) applies to n-ary macro definitions.
26093
# See the Autoconf documentation for `clear'.
26094
cat >confdef2sed.sed <<\_ACEOF
26099
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
26101
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
26104
# If some macros were called several times there might be several times
26105
# the same #defines, which is useless. Nevertheless, we may not want to
26106
# sort them, since we want the *last* AC-DEFINE to be honored.
26107
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
26108
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
26109
rm -f confdef2sed.sed
26111
# This sed command replaces #undef with comments. This is necessary, for
26112
# example, in the case of _POSIX_SOURCE, which is predefined and required
26113
# on some systems where configure will not decide to define it.
26114
cat >>conftest.undefs <<\_ACEOF
26115
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
26118
# Break up conftest.defines because some shells have a limit on the size
26119
# of here documents, and old seds have small limits too (100 cmds).
26120
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
26121
echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
26122
echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
26123
echo ' :' >>$CONFIG_STATUS
26124
rm -f conftest.tail
26125
while grep . conftest.defines >/dev/null
26127
# Write a limited-size here document to $tmp/defines.sed.
26128
echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
26129
# Speed up: don't consider the non `#define' lines.
26130
echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
26131
# Work around the forget-to-reset-the-flag bug.
26132
echo 't clr' >>$CONFIG_STATUS
26133
echo ': clr' >>$CONFIG_STATUS
26134
sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
26136
sed -f $tmp/defines.sed $tmp/in >$tmp/out
26138
mv $tmp/out $tmp/in
26140
sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
26141
rm -f conftest.defines
26142
mv conftest.tail conftest.defines
26144
rm -f conftest.defines
26145
echo ' fi # grep' >>$CONFIG_STATUS
26146
echo >>$CONFIG_STATUS
26148
# Break up conftest.undefs because some shells have a limit on the size
26149
# of here documents, and old seds have small limits too (100 cmds).
26150
echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
26151
rm -f conftest.tail
26152
while grep . conftest.undefs >/dev/null
26154
# Write a limited-size here document to $tmp/undefs.sed.
26155
echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
26156
# Speed up: don't consider the non `#undef'
26157
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
26158
# Work around the forget-to-reset-the-flag bug.
26159
echo 't clr' >>$CONFIG_STATUS
26160
echo ': clr' >>$CONFIG_STATUS
26161
sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
26163
sed -f $tmp/undefs.sed $tmp/in >$tmp/out
26165
mv $tmp/out $tmp/in
26167
sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
26168
rm -f conftest.undefs
26169
mv conftest.tail conftest.undefs
26171
rm -f conftest.undefs
26173
cat >>$CONFIG_STATUS <<\_ACEOF
26174
# Let's still pretend it is `configure' which instantiates (i.e., don't
26175
# use $as_me), people would be surprised to read:
26176
# /* config.h. Generated by config.status. */
26177
if test x"$ac_file" = x-; then
26178
echo "/* Generated by configure. */" >$tmp/config.h
26180
echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
26182
cat $tmp/in >>$tmp/config.h
26184
if test x"$ac_file" != x-; then
26185
if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
26186
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26187
echo "$as_me: $ac_file is unchanged" >&6;}
26189
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
26190
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26191
X"$ac_file" : 'X\(//\)[^/]' \| \
26192
X"$ac_file" : 'X\(//\)$' \| \
26193
X"$ac_file" : 'X\(/\)' \| \
26194
. : '\(.\)' 2>/dev/null ||
26196
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26197
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
26198
/^X\(\/\/\)$/{ s//\1/; q; }
26199
/^X\(\/\).*/{ s//\1/; q; }
26201
{ if $as_mkdir_p; then
26206
while test ! -d "$as_dir"; do
26207
as_dirs="$as_dir $as_dirs"
26208
as_dir=`(dirname "$as_dir") 2>/dev/null ||
26209
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26210
X"$as_dir" : 'X\(//\)[^/]' \| \
26211
X"$as_dir" : 'X\(//\)$' \| \
26212
X"$as_dir" : 'X\(/\)' \| \
26213
. : '\(.\)' 2>/dev/null ||
26215
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26216
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
26217
/^X\(\/\/\)$/{ s//\1/; q; }
26218
/^X\(\/\).*/{ s//\1/; q; }
26221
test ! -n "$as_dirs" || mkdir $as_dirs
26222
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26223
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26224
{ (exit 1); exit 1; }; }; }
26227
mv $tmp/config.h $ac_file
26231
rm -f $tmp/config.h
26236
cat >>$CONFIG_STATUS <<\_ACEOF
26238
{ (exit 0); exit 0; }
26240
chmod +x $CONFIG_STATUS
26241
ac_clean_files=$ac_clean_files_save
26244
# configure is writing to config.log, and then calls config.status.
26245
# config.status does its own redirection, appending to config.log.
26246
# Unfortunately, on DOS this fails, as config.log is still kept open
26247
# by configure, so config.status won't be able to write to it; its
26248
# output is simply discarded. So we exec the FD to /dev/null,
26249
# effectively closing config.log, so it can be properly (re)opened and
26250
# appended to by config.status. When coming back to configure, we
26251
# need to make the FD available again.
26252
if test "$no_create" != yes; then
26254
ac_config_status_args=
26255
test "$silent" = yes &&
26256
ac_config_status_args="$ac_config_status_args --quiet"
26258
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26260
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
26261
# would make configure fail if this is the last instruction.
26262
$ac_cs_success || { (exit 1); exit 1; }
26269
echo "Configure finished!"
26270
echo " Do: 'make' to compile the t1lib-package."
26271
echo " Do: 'make without_doc' to compile if you do not have LaTeX."
26272
echo " Do: 'make install' to install the t1lib-package."