1869
4092
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
1870
4093
SAVE_CFLAGS="$CFLAGS"
1871
4094
CFLAGS="$CFLAGS -belf"
1872
echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1873
echo "configure:1874: checking whether the C compiler needs -belf" >&5
1874
if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1875
echo $ac_n "(cached) $ac_c" 1>&6
4095
echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4096
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4097
if test "${lt_cv_cc_needs_belf+set}" = set; then
4098
echo $ECHO_N "(cached) $ECHO_C" >&6
1877
cat > conftest.$ac_ext <<EOF
1878
#line 1879 "configure"
1879
#include "confdefs.h"
1885
if { (eval echo configure:1886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4101
ac_cpp='$CPP $CPPFLAGS'
4102
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4103
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4104
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4106
cat >conftest.$ac_ext <<_ACEOF
4109
cat confdefs.h >>conftest.$ac_ext
4110
cat >>conftest.$ac_ext <<_ACEOF
4111
/* end confdefs.h. */
4121
rm -f conftest.$ac_objext conftest$ac_exeext
4122
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4123
(eval $ac_link) 2>conftest.er1
4125
grep -v '^ *+' conftest.er1 >conftest.err
4127
cat conftest.err >&5
4128
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129
(exit $ac_status); } &&
4130
{ ac_try='test -z "$ac_c_werror_flag"
4131
|| test ! -s conftest.err'
4132
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4135
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4136
(exit $ac_status); }; } &&
4137
{ ac_try='test -s conftest$ac_exeext'
4138
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4141
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142
(exit $ac_status); }; }; then
1887
4143
lt_cv_cc_needs_belf=yes
1889
echo "configure: failed program was:" >&5
1890
cat conftest.$ac_ext >&5
1892
lt_cv_cc_needs_belf=no
1897
echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
4145
echo "$as_me: failed program was:" >&5
4146
sed 's/^/| /' conftest.$ac_ext >&5
4148
lt_cv_cc_needs_belf=no
4150
rm -f conftest.err conftest.$ac_objext \
4151
conftest$ac_exeext conftest.$ac_ext
4153
ac_cpp='$CPP $CPPFLAGS'
4154
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4155
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4156
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4159
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4160
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
1898
4161
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1899
4162
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1900
4163
CFLAGS="$SAVE_CFLAGS"
1908
# Save cache, so that ltconfig can load it
1909
cat > confcache <<\EOF
1910
# This file is a shell script that caches the results of configure
1911
# tests run on this system so they can be shared between configure
1912
# scripts and configure runs. It is not useful on other systems.
1913
# If it contains results you don't want to keep, you may remove or edit it.
1915
# By default, configure uses ./config.cache as the cache file,
1916
# creating it if it does not exist already. You can give configure
1917
# the --cache-file=FILE option to use a different cache file; that is
1918
# what configure does when it calls configure scripts in
1919
# subdirectories, so they share the cache.
1920
# Giving --cache-file=/dev/null disables caching, for debugging configure.
1921
# config.status only pays attention to the cache file if you give it the
1922
# --recheck option to rerun configure.
1925
# The following way of writing the cache mishandles newlines in values,
1926
# but we know of no workaround that is simple, portable, and efficient.
1927
# So, don't put newlines in cache variables' values.
1928
# Ultrix sh set writes to stderr and can't be redirected directly,
1929
# and sets the high bit in the cache file unless we assign to the vars.
1931
case `(ac_space=' '; set | grep ac_space) 2>&1` in
1933
# `set' does not quote correctly, so add quotes (double-quote substitution
1934
# turns \\\\ into \\, and sed turns \\ into \).
1936
-e "s/'/'\\\\''/g" \
1937
-e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1940
# `set' quotes correctly as required by POSIX, so do not add quotes.
1941
sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1944
if cmp -s $cache_file confcache; then
1947
if test -w $cache_file; then
1948
echo "updating cache $cache_file"
1949
cat confcache > $cache_file
1951
echo "not updating unwritable cache $cache_file"
1957
# Actually configure libtool. ac_aux_dir is where install-sh is found.
1958
CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1959
LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
1960
LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
1961
DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
1962
${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
1963
$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
1964
|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1966
# Reload cache, that may have been modified by ltconfig
1967
if test -r "$cache_file"; then
1968
echo "loading cache $cache_file"
1971
echo "creating cache $cache_file"
4169
need_locks="$enable_libtool_lock"
4173
ac_cpp='$CPP $CPPFLAGS'
4174
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4175
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4176
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4177
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4178
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4179
# On Suns, sometimes $CPP names a directory.
4180
if test -n "$CPP" && test -d "$CPP"; then
4183
if test -z "$CPP"; then
4184
if test "${ac_cv_prog_CPP+set}" = set; then
4185
echo $ECHO_N "(cached) $ECHO_C" >&6
4187
# Double quotes because CPP needs to be expanded
4188
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4191
for ac_c_preproc_warn_flag in '' yes
4193
# Use a header file that comes with gcc, so configuring glibc
4194
# with a fresh cross-compiler works.
4195
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4196
# <limits.h> exists even on freestanding compilers.
4197
# On the NeXT, cc -E runs the code through the compiler's parser,
4198
# not just through cpp. "Syntax error" is here to catch this case.
4199
cat >conftest.$ac_ext <<_ACEOF
4202
cat confdefs.h >>conftest.$ac_ext
4203
cat >>conftest.$ac_ext <<_ACEOF
4204
/* end confdefs.h. */
4206
# include <limits.h>
4208
# include <assert.h>
4212
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4213
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4215
grep -v '^ *+' conftest.er1 >conftest.err
4217
cat conftest.err >&5
4218
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4219
(exit $ac_status); } >/dev/null; then
4220
if test -s conftest.err; then
4221
ac_cpp_err=$ac_c_preproc_warn_flag
4222
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4229
if test -z "$ac_cpp_err"; then
4232
echo "$as_me: failed program was:" >&5
4233
sed 's/^/| /' conftest.$ac_ext >&5
4235
# Broken: fails on valid input.
4238
rm -f conftest.err conftest.$ac_ext
4240
# OK, works on sane cases. Now check whether non-existent headers
4241
# can be detected and how.
4242
cat >conftest.$ac_ext <<_ACEOF
4245
cat confdefs.h >>conftest.$ac_ext
4246
cat >>conftest.$ac_ext <<_ACEOF
4247
/* end confdefs.h. */
4248
#include <ac_nonexistent.h>
4250
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4251
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4253
grep -v '^ *+' conftest.er1 >conftest.err
4255
cat conftest.err >&5
4256
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4257
(exit $ac_status); } >/dev/null; then
4258
if test -s conftest.err; then
4259
ac_cpp_err=$ac_c_preproc_warn_flag
4260
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4267
if test -z "$ac_cpp_err"; then
4268
# Broken: success on invalid input.
4271
echo "$as_me: failed program was:" >&5
4272
sed 's/^/| /' conftest.$ac_ext >&5
4274
# Passes both tests.
4278
rm -f conftest.err conftest.$ac_ext
4281
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4282
rm -f conftest.err conftest.$ac_ext
4283
if $ac_preproc_ok; then
4295
echo "$as_me:$LINENO: result: $CPP" >&5
4296
echo "${ECHO_T}$CPP" >&6
4298
for ac_c_preproc_warn_flag in '' yes
4300
# Use a header file that comes with gcc, so configuring glibc
4301
# with a fresh cross-compiler works.
4302
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4303
# <limits.h> exists even on freestanding compilers.
4304
# On the NeXT, cc -E runs the code through the compiler's parser,
4305
# not just through cpp. "Syntax error" is here to catch this case.
4306
cat >conftest.$ac_ext <<_ACEOF
4309
cat confdefs.h >>conftest.$ac_ext
4310
cat >>conftest.$ac_ext <<_ACEOF
4311
/* end confdefs.h. */
4313
# include <limits.h>
4315
# include <assert.h>
4319
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4320
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4322
grep -v '^ *+' conftest.er1 >conftest.err
4324
cat conftest.err >&5
4325
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326
(exit $ac_status); } >/dev/null; then
4327
if test -s conftest.err; then
4328
ac_cpp_err=$ac_c_preproc_warn_flag
4329
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4336
if test -z "$ac_cpp_err"; then
4339
echo "$as_me: failed program was:" >&5
4340
sed 's/^/| /' conftest.$ac_ext >&5
4342
# Broken: fails on valid input.
4345
rm -f conftest.err conftest.$ac_ext
4347
# OK, works on sane cases. Now check whether non-existent headers
4348
# can be detected and how.
4349
cat >conftest.$ac_ext <<_ACEOF
4352
cat confdefs.h >>conftest.$ac_ext
4353
cat >>conftest.$ac_ext <<_ACEOF
4354
/* end confdefs.h. */
4355
#include <ac_nonexistent.h>
4357
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4358
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4360
grep -v '^ *+' conftest.er1 >conftest.err
4362
cat conftest.err >&5
4363
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364
(exit $ac_status); } >/dev/null; then
4365
if test -s conftest.err; then
4366
ac_cpp_err=$ac_c_preproc_warn_flag
4367
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4374
if test -z "$ac_cpp_err"; then
4375
# Broken: success on invalid input.
4378
echo "$as_me: failed program was:" >&5
4379
sed 's/^/| /' conftest.$ac_ext >&5
4381
# Passes both tests.
4385
rm -f conftest.err conftest.$ac_ext
4388
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4389
rm -f conftest.err conftest.$ac_ext
4390
if $ac_preproc_ok; then
4393
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4394
See \`config.log' for more details." >&5
4395
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4396
See \`config.log' for more details." >&2;}
4397
{ (exit 1); exit 1; }; }
4401
ac_cpp='$CPP $CPPFLAGS'
4402
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4403
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4404
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4407
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4408
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4409
if test "${ac_cv_header_stdc+set}" = set; then
4410
echo $ECHO_N "(cached) $ECHO_C" >&6
4412
cat >conftest.$ac_ext <<_ACEOF
4415
cat confdefs.h >>conftest.$ac_ext
4416
cat >>conftest.$ac_ext <<_ACEOF
4417
/* end confdefs.h. */
4431
rm -f conftest.$ac_objext
4432
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4433
(eval $ac_compile) 2>conftest.er1
4435
grep -v '^ *+' conftest.er1 >conftest.err
4437
cat conftest.err >&5
4438
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439
(exit $ac_status); } &&
4440
{ ac_try='test -z "$ac_c_werror_flag"
4441
|| test ! -s conftest.err'
4442
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4445
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446
(exit $ac_status); }; } &&
4447
{ ac_try='test -s conftest.$ac_objext'
4448
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4451
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4452
(exit $ac_status); }; }; then
4453
ac_cv_header_stdc=yes
4455
echo "$as_me: failed program was:" >&5
4456
sed 's/^/| /' conftest.$ac_ext >&5
4458
ac_cv_header_stdc=no
4460
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4462
if test $ac_cv_header_stdc = yes; then
4463
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4464
cat >conftest.$ac_ext <<_ACEOF
4467
cat confdefs.h >>conftest.$ac_ext
4468
cat >>conftest.$ac_ext <<_ACEOF
4469
/* end confdefs.h. */
4473
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4474
$EGREP "memchr" >/dev/null 2>&1; then
4477
ac_cv_header_stdc=no
4483
if test $ac_cv_header_stdc = yes; then
4484
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4485
cat >conftest.$ac_ext <<_ACEOF
4488
cat confdefs.h >>conftest.$ac_ext
4489
cat >>conftest.$ac_ext <<_ACEOF
4490
/* end confdefs.h. */
4494
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4495
$EGREP "free" >/dev/null 2>&1; then
4498
ac_cv_header_stdc=no
4504
if test $ac_cv_header_stdc = yes; then
4505
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4506
if test "$cross_compiling" = yes; then
4509
cat >conftest.$ac_ext <<_ACEOF
4512
cat confdefs.h >>conftest.$ac_ext
4513
cat >>conftest.$ac_ext <<_ACEOF
4514
/* end confdefs.h. */
4516
#if ((' ' & 0x0FF) == 0x020)
4517
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4518
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4520
# define ISLOWER(c) \
4521
(('a' <= (c) && (c) <= 'i') \
4522
|| ('j' <= (c) && (c) <= 'r') \
4523
|| ('s' <= (c) && (c) <= 'z'))
4524
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4527
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4532
for (i = 0; i < 256; i++)
4533
if (XOR (islower (i), ISLOWER (i))
4534
|| toupper (i) != TOUPPER (i))
4539
rm -f conftest$ac_exeext
4540
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4541
(eval $ac_link) 2>&5
4543
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4544
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4545
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4548
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549
(exit $ac_status); }; }; then
4552
echo "$as_me: program exited with status $ac_status" >&5
4553
echo "$as_me: failed program was:" >&5
4554
sed 's/^/| /' conftest.$ac_ext >&5
4557
ac_cv_header_stdc=no
4559
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4563
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4564
echo "${ECHO_T}$ac_cv_header_stdc" >&6
4565
if test $ac_cv_header_stdc = yes; then
4567
cat >>confdefs.h <<\_ACEOF
4568
#define STDC_HEADERS 1
4573
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4583
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4584
inttypes.h stdint.h unistd.h
4586
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4587
echo "$as_me:$LINENO: checking for $ac_header" >&5
4588
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4589
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4590
echo $ECHO_N "(cached) $ECHO_C" >&6
4592
cat >conftest.$ac_ext <<_ACEOF
4595
cat confdefs.h >>conftest.$ac_ext
4596
cat >>conftest.$ac_ext <<_ACEOF
4597
/* end confdefs.h. */
4598
$ac_includes_default
4600
#include <$ac_header>
4602
rm -f conftest.$ac_objext
4603
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4604
(eval $ac_compile) 2>conftest.er1
4606
grep -v '^ *+' conftest.er1 >conftest.err
4608
cat conftest.err >&5
4609
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610
(exit $ac_status); } &&
4611
{ ac_try='test -z "$ac_c_werror_flag"
4612
|| test ! -s conftest.err'
4613
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4616
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617
(exit $ac_status); }; } &&
4618
{ ac_try='test -s conftest.$ac_objext'
4619
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4622
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623
(exit $ac_status); }; }; then
4624
eval "$as_ac_Header=yes"
4626
echo "$as_me: failed program was:" >&5
4627
sed 's/^/| /' conftest.$ac_ext >&5
4629
eval "$as_ac_Header=no"
4631
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4633
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4634
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4635
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4636
cat >>confdefs.h <<_ACEOF
4637
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4646
for ac_header in dlfcn.h
4648
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4649
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4650
echo "$as_me:$LINENO: checking for $ac_header" >&5
4651
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4652
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4653
echo $ECHO_N "(cached) $ECHO_C" >&6
4655
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4656
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4658
# Is the header compilable?
4659
echo "$as_me:$LINENO: checking $ac_header usability" >&5
4660
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4661
cat >conftest.$ac_ext <<_ACEOF
4664
cat confdefs.h >>conftest.$ac_ext
4665
cat >>conftest.$ac_ext <<_ACEOF
4666
/* end confdefs.h. */
4667
$ac_includes_default
4668
#include <$ac_header>
4670
rm -f conftest.$ac_objext
4671
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4672
(eval $ac_compile) 2>conftest.er1
4674
grep -v '^ *+' conftest.er1 >conftest.err
4676
cat conftest.err >&5
4677
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4678
(exit $ac_status); } &&
4679
{ ac_try='test -z "$ac_c_werror_flag"
4680
|| test ! -s conftest.err'
4681
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4684
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685
(exit $ac_status); }; } &&
4686
{ ac_try='test -s conftest.$ac_objext'
4687
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4690
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691
(exit $ac_status); }; }; then
4692
ac_header_compiler=yes
4694
echo "$as_me: failed program was:" >&5
4695
sed 's/^/| /' conftest.$ac_ext >&5
4697
ac_header_compiler=no
4699
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4700
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4701
echo "${ECHO_T}$ac_header_compiler" >&6
4703
# Is the header present?
4704
echo "$as_me:$LINENO: checking $ac_header presence" >&5
4705
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4706
cat >conftest.$ac_ext <<_ACEOF
4709
cat confdefs.h >>conftest.$ac_ext
4710
cat >>conftest.$ac_ext <<_ACEOF
4711
/* end confdefs.h. */
4712
#include <$ac_header>
4714
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4715
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4717
grep -v '^ *+' conftest.er1 >conftest.err
4719
cat conftest.err >&5
4720
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4721
(exit $ac_status); } >/dev/null; then
4722
if test -s conftest.err; then
4723
ac_cpp_err=$ac_c_preproc_warn_flag
4724
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4731
if test -z "$ac_cpp_err"; then
4732
ac_header_preproc=yes
4734
echo "$as_me: failed program was:" >&5
4735
sed 's/^/| /' conftest.$ac_ext >&5
4737
ac_header_preproc=no
4739
rm -f conftest.err conftest.$ac_ext
4740
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4741
echo "${ECHO_T}$ac_header_preproc" >&6
4743
# So? What about this header?
4744
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4746
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4747
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4748
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4749
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4750
ac_header_preproc=yes
4753
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4754
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4755
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4756
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4757
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4758
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4759
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4760
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4761
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4762
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4763
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4764
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4767
## -------------------------------------------------------------------- ##
4768
## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=gedit ##
4769
## -------------------------------------------------------------------- ##
4772
sed "s/^/$as_me: WARNING: /" >&2
4775
echo "$as_me:$LINENO: checking for $ac_header" >&5
4776
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4777
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4778
echo $ECHO_N "(cached) $ECHO_C" >&6
4780
eval "$as_ac_Header=\$ac_header_preproc"
4782
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4783
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4786
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4787
cat >>confdefs.h <<_ACEOF
4788
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4796
ac_cpp='$CXXCPP $CPPFLAGS'
4797
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4798
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4799
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4800
if test -n "$ac_tool_prefix"; then
4801
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4803
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4804
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4805
echo "$as_me:$LINENO: checking for $ac_word" >&5
4806
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4807
if test "${ac_cv_prog_CXX+set}" = set; then
4808
echo $ECHO_N "(cached) $ECHO_C" >&6
4810
if test -n "$CXX"; then
4811
ac_cv_prog_CXX="$CXX" # Let the user override the test.
4813
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4817
test -z "$as_dir" && as_dir=.
4818
for ac_exec_ext in '' $ac_executable_extensions; do
4819
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4820
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4821
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4830
if test -n "$CXX"; then
4831
echo "$as_me:$LINENO: result: $CXX" >&5
4832
echo "${ECHO_T}$CXX" >&6
4834
echo "$as_me:$LINENO: result: no" >&5
4835
echo "${ECHO_T}no" >&6
4838
test -n "$CXX" && break
4841
if test -z "$CXX"; then
4843
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4845
# Extract the first word of "$ac_prog", so it can be a program name with args.
4846
set dummy $ac_prog; ac_word=$2
4847
echo "$as_me:$LINENO: checking for $ac_word" >&5
4848
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4849
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4850
echo $ECHO_N "(cached) $ECHO_C" >&6
4852
if test -n "$ac_ct_CXX"; then
4853
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4855
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4859
test -z "$as_dir" && as_dir=.
4860
for ac_exec_ext in '' $ac_executable_extensions; do
4861
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4862
ac_cv_prog_ac_ct_CXX="$ac_prog"
4863
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4871
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4872
if test -n "$ac_ct_CXX"; then
4873
echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4874
echo "${ECHO_T}$ac_ct_CXX" >&6
4876
echo "$as_me:$LINENO: result: no" >&5
4877
echo "${ECHO_T}no" >&6
4880
test -n "$ac_ct_CXX" && break
4882
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4888
# Provide some information about the compiler.
4889
echo "$as_me:$LINENO:" \
4890
"checking for C++ compiler version" >&5
4891
ac_compiler=`set X $ac_compile; echo $2`
4892
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4893
(eval $ac_compiler --version </dev/null >&5) 2>&5
4895
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896
(exit $ac_status); }
4897
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4898
(eval $ac_compiler -v </dev/null >&5) 2>&5
4900
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4901
(exit $ac_status); }
4902
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4903
(eval $ac_compiler -V </dev/null >&5) 2>&5
4905
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4906
(exit $ac_status); }
4908
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4909
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4910
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4911
echo $ECHO_N "(cached) $ECHO_C" >&6
4913
cat >conftest.$ac_ext <<_ACEOF
4916
cat confdefs.h >>conftest.$ac_ext
4917
cat >>conftest.$ac_ext <<_ACEOF
4918
/* end confdefs.h. */
4931
rm -f conftest.$ac_objext
4932
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4933
(eval $ac_compile) 2>conftest.er1
4935
grep -v '^ *+' conftest.er1 >conftest.err
4937
cat conftest.err >&5
4938
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939
(exit $ac_status); } &&
4940
{ ac_try='test -z "$ac_cxx_werror_flag"
4941
|| test ! -s conftest.err'
4942
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4945
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4946
(exit $ac_status); }; } &&
4947
{ ac_try='test -s conftest.$ac_objext'
4948
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4951
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4952
(exit $ac_status); }; }; then
4955
echo "$as_me: failed program was:" >&5
4956
sed 's/^/| /' conftest.$ac_ext >&5
4960
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4961
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4964
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4965
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4966
GXX=`test $ac_compiler_gnu = yes && echo yes`
4967
ac_test_CXXFLAGS=${CXXFLAGS+set}
4968
ac_save_CXXFLAGS=$CXXFLAGS
4970
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4971
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4972
if test "${ac_cv_prog_cxx_g+set}" = set; then
4973
echo $ECHO_N "(cached) $ECHO_C" >&6
4975
cat >conftest.$ac_ext <<_ACEOF
4978
cat confdefs.h >>conftest.$ac_ext
4979
cat >>conftest.$ac_ext <<_ACEOF
4980
/* end confdefs.h. */
4990
rm -f conftest.$ac_objext
4991
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4992
(eval $ac_compile) 2>conftest.er1
4994
grep -v '^ *+' conftest.er1 >conftest.err
4996
cat conftest.err >&5
4997
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4998
(exit $ac_status); } &&
4999
{ ac_try='test -z "$ac_cxx_werror_flag"
5000
|| test ! -s conftest.err'
5001
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5004
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5005
(exit $ac_status); }; } &&
5006
{ ac_try='test -s conftest.$ac_objext'
5007
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5010
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5011
(exit $ac_status); }; }; then
5012
ac_cv_prog_cxx_g=yes
5014
echo "$as_me: failed program was:" >&5
5015
sed 's/^/| /' conftest.$ac_ext >&5
5019
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5021
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5022
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5023
if test "$ac_test_CXXFLAGS" = set; then
5024
CXXFLAGS=$ac_save_CXXFLAGS
5025
elif test $ac_cv_prog_cxx_g = yes; then
5026
if test "$GXX" = yes; then
5032
if test "$GXX" = yes; then
5038
for ac_declaration in \
5040
'extern "C" void std::exit (int) throw (); using std::exit;' \
5041
'extern "C" void std::exit (int); using std::exit;' \
5042
'extern "C" void exit (int) throw ();' \
5043
'extern "C" void exit (int);' \
5046
cat >conftest.$ac_ext <<_ACEOF
5049
cat confdefs.h >>conftest.$ac_ext
5050
cat >>conftest.$ac_ext <<_ACEOF
5051
/* end confdefs.h. */
5062
rm -f conftest.$ac_objext
5063
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5064
(eval $ac_compile) 2>conftest.er1
5066
grep -v '^ *+' conftest.er1 >conftest.err
5068
cat conftest.err >&5
5069
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5070
(exit $ac_status); } &&
5071
{ ac_try='test -z "$ac_cxx_werror_flag"
5072
|| test ! -s conftest.err'
5073
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5076
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5077
(exit $ac_status); }; } &&
5078
{ ac_try='test -s conftest.$ac_objext'
5079
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5082
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5083
(exit $ac_status); }; }; then
5086
echo "$as_me: failed program was:" >&5
5087
sed 's/^/| /' conftest.$ac_ext >&5
5091
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5092
cat >conftest.$ac_ext <<_ACEOF
5095
cat confdefs.h >>conftest.$ac_ext
5096
cat >>conftest.$ac_ext <<_ACEOF
5097
/* end confdefs.h. */
5107
rm -f conftest.$ac_objext
5108
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5109
(eval $ac_compile) 2>conftest.er1
5111
grep -v '^ *+' conftest.er1 >conftest.err
5113
cat conftest.err >&5
5114
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5115
(exit $ac_status); } &&
5116
{ ac_try='test -z "$ac_cxx_werror_flag"
5117
|| test ! -s conftest.err'
5118
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5121
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122
(exit $ac_status); }; } &&
5123
{ ac_try='test -s conftest.$ac_objext'
5124
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5127
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5128
(exit $ac_status); }; }; then
5131
echo "$as_me: failed program was:" >&5
5132
sed 's/^/| /' conftest.$ac_ext >&5
5135
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5138
if test -n "$ac_declaration"; then
5139
echo '#ifdef __cplusplus' >>confdefs.h
5140
echo $ac_declaration >>confdefs.h
5141
echo '#endif' >>confdefs.h
5145
ac_cpp='$CXXCPP $CPPFLAGS'
5146
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5147
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5148
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5150
depcc="$CXX" am_compiler_list=
5152
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5153
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5154
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5155
echo $ECHO_N "(cached) $ECHO_C" >&6
5157
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5158
# We make a subdir and do the tests there. Otherwise we can end up
5159
# making bogus files that we don't know about and never remove. For
5160
# instance it was reported that on HP-UX the gcc test will end up
5161
# making a dummy file named `D' -- because `-MD' means `put the output
5164
# Copy depcomp to subdir because otherwise we won't find it if we're
5165
# using a relative directory.
5166
cp "$am_depcomp" conftest.dir
5168
# We will build objects and dependencies in a subdirectory because
5169
# it helps to detect inapplicable dependency modes. For instance
5170
# both Tru64's cc and ICC support -MD to output dependencies as a
5171
# side effect of compilation, but ICC will put the dependencies in
5172
# the current directory while Tru64 will put them in the object
5176
am_cv_CXX_dependencies_compiler_type=none
5177
if test "$am_compiler_list" = ""; then
5178
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5180
for depmode in $am_compiler_list; do
5181
# Setup a source with many dependencies, because some compilers
5182
# like to wrap large dependency lists on column 80 (with \), and
5183
# we should not choose a depcomp mode which is confused by this.
5185
# We need to recreate these files for each test, as the compiler may
5186
# overwrite some of them when testing with obscure command lines.
5187
# This happens at least with the AIX C compiler.
5189
for i in 1 2 3 4 5 6; do
5190
echo '#include "conftst'$i'.h"' >> sub/conftest.c
5193
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5197
# after this tag, mechanisms are not by side-effect, so they'll
5198
# only be used when explicitly requested
5199
if test "x$enable_dependency_tracking" = xyes; then
5207
# We check with `-c' and `-o' for the sake of the "dashmstdout"
5208
# mode. It turns out that the SunPro C++ compiler does not properly
5209
# handle `-M -o', and we need to detect this.
5210
if depmode=$depmode \
5211
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5212
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5213
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5214
>/dev/null 2>conftest.err &&
5215
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5216
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5217
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5218
# icc doesn't choke on unknown options, it will just issue warnings
5219
# (even with -Werror). So we grep stderr for any message
5220
# that says an option was ignored.
5221
if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
5222
am_cv_CXX_dependencies_compiler_type=$depmode
5231
am_cv_CXX_dependencies_compiler_type=none
5235
echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5236
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5237
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5242
test "x$enable_dependency_tracking" != xno \
5243
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5244
am__fastdepCXX_TRUE=
5245
am__fastdepCXX_FALSE='#'
5247
am__fastdepCXX_TRUE='#'
5248
am__fastdepCXX_FALSE=
5253
ac_cpp='$CXXCPP $CPPFLAGS'
5254
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5255
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5256
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5257
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5258
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5259
if test -z "$CXXCPP"; then
5260
if test "${ac_cv_prog_CXXCPP+set}" = set; then
5261
echo $ECHO_N "(cached) $ECHO_C" >&6
5263
# Double quotes because CXXCPP needs to be expanded
5264
for CXXCPP in "$CXX -E" "/lib/cpp"
5267
for ac_cxx_preproc_warn_flag in '' yes
5269
# Use a header file that comes with gcc, so configuring glibc
5270
# with a fresh cross-compiler works.
5271
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5272
# <limits.h> exists even on freestanding compilers.
5273
# On the NeXT, cc -E runs the code through the compiler's parser,
5274
# not just through cpp. "Syntax error" is here to catch this case.
5275
cat >conftest.$ac_ext <<_ACEOF
5278
cat confdefs.h >>conftest.$ac_ext
5279
cat >>conftest.$ac_ext <<_ACEOF
5280
/* end confdefs.h. */
5282
# include <limits.h>
5284
# include <assert.h>
5288
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5289
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5291
grep -v '^ *+' conftest.er1 >conftest.err
5293
cat conftest.err >&5
5294
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5295
(exit $ac_status); } >/dev/null; then
5296
if test -s conftest.err; then
5297
ac_cpp_err=$ac_cxx_preproc_warn_flag
5298
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5305
if test -z "$ac_cpp_err"; then
5308
echo "$as_me: failed program was:" >&5
5309
sed 's/^/| /' conftest.$ac_ext >&5
5311
# Broken: fails on valid input.
5314
rm -f conftest.err conftest.$ac_ext
5316
# OK, works on sane cases. Now check whether non-existent headers
5317
# can be detected and how.
5318
cat >conftest.$ac_ext <<_ACEOF
5321
cat confdefs.h >>conftest.$ac_ext
5322
cat >>conftest.$ac_ext <<_ACEOF
5323
/* end confdefs.h. */
5324
#include <ac_nonexistent.h>
5326
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5327
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5329
grep -v '^ *+' conftest.er1 >conftest.err
5331
cat conftest.err >&5
5332
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5333
(exit $ac_status); } >/dev/null; then
5334
if test -s conftest.err; then
5335
ac_cpp_err=$ac_cxx_preproc_warn_flag
5336
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5343
if test -z "$ac_cpp_err"; then
5344
# Broken: success on invalid input.
5347
echo "$as_me: failed program was:" >&5
5348
sed 's/^/| /' conftest.$ac_ext >&5
5350
# Passes both tests.
5354
rm -f conftest.err conftest.$ac_ext
5357
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5358
rm -f conftest.err conftest.$ac_ext
5359
if $ac_preproc_ok; then
5364
ac_cv_prog_CXXCPP=$CXXCPP
5367
CXXCPP=$ac_cv_prog_CXXCPP
5369
ac_cv_prog_CXXCPP=$CXXCPP
5371
echo "$as_me:$LINENO: result: $CXXCPP" >&5
5372
echo "${ECHO_T}$CXXCPP" >&6
5374
for ac_cxx_preproc_warn_flag in '' yes
5376
# Use a header file that comes with gcc, so configuring glibc
5377
# with a fresh cross-compiler works.
5378
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5379
# <limits.h> exists even on freestanding compilers.
5380
# On the NeXT, cc -E runs the code through the compiler's parser,
5381
# not just through cpp. "Syntax error" is here to catch this case.
5382
cat >conftest.$ac_ext <<_ACEOF
5385
cat confdefs.h >>conftest.$ac_ext
5386
cat >>conftest.$ac_ext <<_ACEOF
5387
/* end confdefs.h. */
5389
# include <limits.h>
5391
# include <assert.h>
5395
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5396
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5398
grep -v '^ *+' conftest.er1 >conftest.err
5400
cat conftest.err >&5
5401
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402
(exit $ac_status); } >/dev/null; then
5403
if test -s conftest.err; then
5404
ac_cpp_err=$ac_cxx_preproc_warn_flag
5405
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5412
if test -z "$ac_cpp_err"; then
5415
echo "$as_me: failed program was:" >&5
5416
sed 's/^/| /' conftest.$ac_ext >&5
5418
# Broken: fails on valid input.
5421
rm -f conftest.err conftest.$ac_ext
5423
# OK, works on sane cases. Now check whether non-existent headers
5424
# can be detected and how.
5425
cat >conftest.$ac_ext <<_ACEOF
5428
cat confdefs.h >>conftest.$ac_ext
5429
cat >>conftest.$ac_ext <<_ACEOF
5430
/* end confdefs.h. */
5431
#include <ac_nonexistent.h>
5433
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5434
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5436
grep -v '^ *+' conftest.er1 >conftest.err
5438
cat conftest.err >&5
5439
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5440
(exit $ac_status); } >/dev/null; then
5441
if test -s conftest.err; then
5442
ac_cpp_err=$ac_cxx_preproc_warn_flag
5443
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5450
if test -z "$ac_cpp_err"; then
5451
# Broken: success on invalid input.
5454
echo "$as_me: failed program was:" >&5
5455
sed 's/^/| /' conftest.$ac_ext >&5
5457
# Passes both tests.
5461
rm -f conftest.err conftest.$ac_ext
5464
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5465
rm -f conftest.err conftest.$ac_ext
5466
if $ac_preproc_ok; then
5469
{ { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5470
See \`config.log' for more details." >&5
5471
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5472
See \`config.log' for more details." >&2;}
5473
{ (exit 1); exit 1; }; }
5477
ac_cpp='$CXXCPP $CPPFLAGS'
5478
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5479
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5480
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5484
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5485
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5486
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5487
if test -n "$ac_tool_prefix"; then
5488
for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5490
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5491
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5492
echo "$as_me:$LINENO: checking for $ac_word" >&5
5493
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5494
if test "${ac_cv_prog_F77+set}" = set; then
5495
echo $ECHO_N "(cached) $ECHO_C" >&6
5497
if test -n "$F77"; then
5498
ac_cv_prog_F77="$F77" # Let the user override the test.
5500
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5504
test -z "$as_dir" && as_dir=.
5505
for ac_exec_ext in '' $ac_executable_extensions; do
5506
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5507
ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5508
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5517
if test -n "$F77"; then
5518
echo "$as_me:$LINENO: result: $F77" >&5
5519
echo "${ECHO_T}$F77" >&6
5521
echo "$as_me:$LINENO: result: no" >&5
5522
echo "${ECHO_T}no" >&6
5525
test -n "$F77" && break
5528
if test -z "$F77"; then
5530
for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5532
# Extract the first word of "$ac_prog", so it can be a program name with args.
5533
set dummy $ac_prog; ac_word=$2
5534
echo "$as_me:$LINENO: checking for $ac_word" >&5
5535
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5536
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5537
echo $ECHO_N "(cached) $ECHO_C" >&6
5539
if test -n "$ac_ct_F77"; then
5540
ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5542
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5546
test -z "$as_dir" && as_dir=.
5547
for ac_exec_ext in '' $ac_executable_extensions; do
5548
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5549
ac_cv_prog_ac_ct_F77="$ac_prog"
5550
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5558
ac_ct_F77=$ac_cv_prog_ac_ct_F77
5559
if test -n "$ac_ct_F77"; then
5560
echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5561
echo "${ECHO_T}$ac_ct_F77" >&6
5563
echo "$as_me:$LINENO: result: no" >&5
5564
echo "${ECHO_T}no" >&6
5567
test -n "$ac_ct_F77" && break
5574
# Provide some information about the compiler.
5575
echo "$as_me:5575:" \
5576
"checking for Fortran 77 compiler version" >&5
5577
ac_compiler=`set X $ac_compile; echo $2`
5578
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5579
(eval $ac_compiler --version </dev/null >&5) 2>&5
5581
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5582
(exit $ac_status); }
5583
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5584
(eval $ac_compiler -v </dev/null >&5) 2>&5
5586
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5587
(exit $ac_status); }
5588
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5589
(eval $ac_compiler -V </dev/null >&5) 2>&5
5591
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592
(exit $ac_status); }
5595
# If we don't use `.F' as extension, the preprocessor is not run on the
5596
# input file. (Note that this only needs to work for GNU compilers.)
5599
echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5600
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5601
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5602
echo $ECHO_N "(cached) $ECHO_C" >&6
5604
cat >conftest.$ac_ext <<_ACEOF
5612
rm -f conftest.$ac_objext
5613
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5614
(eval $ac_compile) 2>conftest.er1
5616
grep -v '^ *+' conftest.er1 >conftest.err
5618
cat conftest.err >&5
5619
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620
(exit $ac_status); } &&
5621
{ ac_try='test -z "$ac_f77_werror_flag"
5622
|| test ! -s conftest.err'
5623
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5626
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5627
(exit $ac_status); }; } &&
5628
{ ac_try='test -s conftest.$ac_objext'
5629
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5632
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633
(exit $ac_status); }; }; then
5636
echo "$as_me: failed program was:" >&5
5637
sed 's/^/| /' conftest.$ac_ext >&5
5641
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5642
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5645
echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5646
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5648
ac_test_FFLAGS=${FFLAGS+set}
5649
ac_save_FFLAGS=$FFLAGS
5651
echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5652
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5653
if test "${ac_cv_prog_f77_g+set}" = set; then
5654
echo $ECHO_N "(cached) $ECHO_C" >&6
5657
cat >conftest.$ac_ext <<_ACEOF
5662
rm -f conftest.$ac_objext
5663
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5664
(eval $ac_compile) 2>conftest.er1
5666
grep -v '^ *+' conftest.er1 >conftest.err
5668
cat conftest.err >&5
5669
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670
(exit $ac_status); } &&
5671
{ ac_try='test -z "$ac_f77_werror_flag"
5672
|| test ! -s conftest.err'
5673
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5676
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677
(exit $ac_status); }; } &&
5678
{ ac_try='test -s conftest.$ac_objext'
5679
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5682
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683
(exit $ac_status); }; }; then
5684
ac_cv_prog_f77_g=yes
5686
echo "$as_me: failed program was:" >&5
5687
sed 's/^/| /' conftest.$ac_ext >&5
5691
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5694
echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5695
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5696
if test "$ac_test_FFLAGS" = set; then
5697
FFLAGS=$ac_save_FFLAGS
5698
elif test $ac_cv_prog_f77_g = yes; then
5699
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5705
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5712
G77=`test $ac_compiler_gnu = yes && echo yes`
5714
ac_cpp='$CPP $CPPFLAGS'
5715
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5716
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5717
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5721
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5723
# find the maximum length of command line arguments
5724
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5725
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5726
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5727
echo $ECHO_N "(cached) $ECHO_C" >&6
5734
# On DJGPP, this test can blow up pretty badly due to problems in libc
5735
# (any single argument exceeding 2000 bytes causes a buffer overrun
5736
# during glob expansion). Even if it were fixed, the result of this
5737
# check would be larger than it should be.
5738
lt_cv_sys_max_cmd_len=12288; # 12K is about right
5742
# Under GNU Hurd, this test is not required because there is
5743
# no limit to the length of command line arguments.
5744
# Libtool will interpret -1 as no limit whatsoever
5745
lt_cv_sys_max_cmd_len=-1;
5749
# On Win9x/ME, this test blows up -- it succeeds, but takes
5750
# about 5 minutes as the teststring grows exponentially.
5751
# Worse, since 9x/ME are not pre-emptively multitasking,
5752
# you end up with a "frozen" computer, even though with patience
5753
# the test eventually succeeds (with a max line length of 256k).
5754
# Instead, let's just punt: use the minimum linelength reported by
5755
# all of the supported platforms: 8192 (on NT/2K/XP).
5756
lt_cv_sys_max_cmd_len=8192;
5760
# On AmigaOS with pdksh, this test takes hours, literally.
5761
# So we just punt and use a minimum line length of 8192.
5762
lt_cv_sys_max_cmd_len=8192;
5765
netbsd* | freebsd* | openbsd* | darwin* )
5766
# This has been around since 386BSD, at least. Likely further.
5767
if test -x /sbin/sysctl; then
5768
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5769
elif test -x /usr/sbin/sysctl; then
5770
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5772
lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
5774
# And add a safety zone
5775
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5779
# If test is not a shell built-in, we'll probably end up computing a
5780
# maximum length that is only half of the actual maximum length, but
5782
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5783
while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5784
= "XX$teststring") >/dev/null 2>&1 &&
5785
new_result=`expr "X$teststring" : ".*" 2>&1` &&
5786
lt_cv_sys_max_cmd_len=$new_result &&
5787
test $i != 17 # 1/2 MB should be enough
5790
teststring=$teststring$teststring
5793
# Add a significant safety factor because C++ compilers can tack on massive
5794
# amounts of additional arguments before passing them to the linker.
5795
# It appears as though 1/2 is a usable value.
5796
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5802
if test -n $lt_cv_sys_max_cmd_len ; then
5803
echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5804
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5806
echo "$as_me:$LINENO: result: none" >&5
5807
echo "${ECHO_T}none" >&6
5813
# Check for command to grab the raw symbol name followed by C symbol from nm.
5814
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5815
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5816
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5817
echo $ECHO_N "(cached) $ECHO_C" >&6
5820
# These are sane defaults that work on at least a few old systems.
5821
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5823
# Character class describing NM global symbol codes.
5824
symcode='[BCDEGRST]'
5826
# Regexp to match symbols that can be accessed directly from C.
5827
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5829
# Transform the above into a raw symbol and a C symbol.
5830
symxfrm='\1 \2\3 \3'
5832
# Transform an extracted symbol line into a proper C declaration
5833
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5835
# Transform an extracted symbol line into symbol name and symbol address
5836
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'"
5838
# Define system-specific variables.
5843
cygwin* | mingw* | pw32*)
5844
symcode='[ABCDGISTW]'
5846
hpux*) # Its linker distinguishes data from code symbols
5847
if test "$host_cpu" = ia64; then
5848
symcode='[ABCDEGRST]'
5850
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5851
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'"
5854
symcode='[BCDEGRST]'
5857
symcode='[BCDEGQRST]'
5867
# Handle CRLF in mingw tool chain
5871
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5875
# If we're using GNU nm, then use its standard symbol codes.
5876
case `$NM -V 2>&1` in
5877
*GNU* | *'with BFD'*)
5878
symcode='[ABCDGIRSTW]' ;;
5881
# Try without a prefix undercore, then with it.
5882
for ac_symprfx in "" "_"; do
5884
# Write the raw and C identifiers.
5885
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5887
# Check to see that the pipe works correctly.
5891
cat > conftest.$ac_ext <<EOF
5896
void nm_test_func(){}
5900
int main(){nm_test_var='a';nm_test_func();return(0);}
5903
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5904
(eval $ac_compile) 2>&5
5906
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5907
(exit $ac_status); }; then
5908
# Now try to grab the symbols.
5910
if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5911
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5913
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5914
(exit $ac_status); } && test -s "$nlist"; then
5915
# Try sorting and uniquifying the output.
5916
if sort "$nlist" | uniq > "$nlist"T; then
5917
mv -f "$nlist"T "$nlist"
5922
# Make sure that we snagged all the symbols we need.
5923
if grep ' nm_test_var$' "$nlist" >/dev/null; then
5924
if grep ' nm_test_func$' "$nlist" >/dev/null; then
5925
cat <<EOF > conftest.$ac_ext
5931
# Now generate the symbol file.
5932
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5934
cat <<EOF >> conftest.$ac_ext
5935
#if defined (__STDC__) && __STDC__
5936
# define lt_ptr_t void *
5938
# define lt_ptr_t char *
5942
/* The mapping between symbol names and symbols. */
5947
lt_preloaded_symbols[] =
5950
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5951
cat <<\EOF >> conftest.$ac_ext
5959
# Now try linking the two files.
5960
mv conftest.$ac_objext conftstm.$ac_objext
5961
lt_save_LIBS="$LIBS"
5962
lt_save_CFLAGS="$CFLAGS"
5963
LIBS="conftstm.$ac_objext"
5964
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5965
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5966
(eval $ac_link) 2>&5
5968
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5969
(exit $ac_status); } && test -s conftest${ac_exeext}; then
5972
LIBS="$lt_save_LIBS"
5973
CFLAGS="$lt_save_CFLAGS"
5975
echo "cannot find nm_test_func in $nlist" >&5
5978
echo "cannot find nm_test_var in $nlist" >&5
5981
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5984
echo "$progname: failed program was:" >&5
5985
cat conftest.$ac_ext >&5
5987
rm -f conftest* conftst*
5989
# Do not use the global_symbol_pipe unless it works.
5990
if test "$pipe_works" = yes; then
5993
lt_cv_sys_global_symbol_pipe=
5999
if test -z "$lt_cv_sys_global_symbol_pipe"; then
6000
lt_cv_sys_global_symbol_to_cdecl=
6002
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6003
echo "$as_me:$LINENO: result: failed" >&5
6004
echo "${ECHO_T}failed" >&6
6006
echo "$as_me:$LINENO: result: ok" >&5
6007
echo "${ECHO_T}ok" >&6
6010
echo "$as_me:$LINENO: checking for objdir" >&5
6011
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6012
if test "${lt_cv_objdir+set}" = set; then
6013
echo $ECHO_N "(cached) $ECHO_C" >&6
6015
rm -f .libs 2>/dev/null
6016
mkdir .libs 2>/dev/null
6017
if test -d .libs; then
6020
# MS-DOS does not allow filenames that begin with a dot.
6023
rmdir .libs 2>/dev/null
6025
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6026
echo "${ECHO_T}$lt_cv_objdir" >&6
6027
objdir=$lt_cv_objdir
6035
# AIX sometimes has problems with the GCC collect2 program. For some
6036
# reason, if we set the COLLECT_NAMES environment variable, the problems
6037
# vanish in a puff of smoke.
6038
if test "X${COLLECT_NAMES+set}" != Xset; then
6040
export COLLECT_NAMES
6045
# Sed substitution that helps us do robust quoting. It backslashifies
6046
# metacharacters that are still active within double-quoted strings.
6047
Xsed='sed -e s/^X//'
6048
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6050
# Same as above, but do not quote variable references.
6051
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6053
# Sed substitution to delay expansion of an escaped shell variable in a
6054
# double_quote_subst'ed string.
6055
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6057
# Sed substitution to avoid accidental globbing in evaled expressions
6058
no_glob_subst='s/\*/\\\*/g'
6064
default_ofile=libtool
6065
can_build_shared=yes
6067
# All known linkers require a `.a' archive for static linking (except M$VC,
6068
# which needs '.lib').
6070
ltmain="$ac_aux_dir/ltmain.sh"
6071
ofile="$default_ofile"
6072
with_gnu_ld="$lt_cv_prog_gnu_ld"
6074
if test -n "$ac_tool_prefix"; then
6075
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6076
set dummy ${ac_tool_prefix}ar; ac_word=$2
6077
echo "$as_me:$LINENO: checking for $ac_word" >&5
6078
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6079
if test "${ac_cv_prog_AR+set}" = set; then
6080
echo $ECHO_N "(cached) $ECHO_C" >&6
6082
if test -n "$AR"; then
6083
ac_cv_prog_AR="$AR" # Let the user override the test.
6085
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6089
test -z "$as_dir" && as_dir=.
6090
for ac_exec_ext in '' $ac_executable_extensions; do
6091
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6092
ac_cv_prog_AR="${ac_tool_prefix}ar"
6093
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6102
if test -n "$AR"; then
6103
echo "$as_me:$LINENO: result: $AR" >&5
6104
echo "${ECHO_T}$AR" >&6
6106
echo "$as_me:$LINENO: result: no" >&5
6107
echo "${ECHO_T}no" >&6
6111
if test -z "$ac_cv_prog_AR"; then
6113
# Extract the first word of "ar", so it can be a program name with args.
6114
set dummy ar; ac_word=$2
6115
echo "$as_me:$LINENO: checking for $ac_word" >&5
6116
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6117
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6118
echo $ECHO_N "(cached) $ECHO_C" >&6
6120
if test -n "$ac_ct_AR"; then
6121
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6123
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6127
test -z "$as_dir" && as_dir=.
6128
for ac_exec_ext in '' $ac_executable_extensions; do
6129
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6130
ac_cv_prog_ac_ct_AR="ar"
6131
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6137
test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6140
ac_ct_AR=$ac_cv_prog_ac_ct_AR
6141
if test -n "$ac_ct_AR"; then
6142
echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6143
echo "${ECHO_T}$ac_ct_AR" >&6
6145
echo "$as_me:$LINENO: result: no" >&5
6146
echo "${ECHO_T}no" >&6
6154
if test -n "$ac_tool_prefix"; then
6155
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6156
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6157
echo "$as_me:$LINENO: checking for $ac_word" >&5
6158
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6159
if test "${ac_cv_prog_RANLIB+set}" = set; then
6160
echo $ECHO_N "(cached) $ECHO_C" >&6
6162
if test -n "$RANLIB"; then
6163
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6165
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6169
test -z "$as_dir" && as_dir=.
6170
for ac_exec_ext in '' $ac_executable_extensions; do
6171
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6172
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6173
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6181
RANLIB=$ac_cv_prog_RANLIB
6182
if test -n "$RANLIB"; then
6183
echo "$as_me:$LINENO: result: $RANLIB" >&5
6184
echo "${ECHO_T}$RANLIB" >&6
6186
echo "$as_me:$LINENO: result: no" >&5
6187
echo "${ECHO_T}no" >&6
6191
if test -z "$ac_cv_prog_RANLIB"; then
6192
ac_ct_RANLIB=$RANLIB
6193
# Extract the first word of "ranlib", so it can be a program name with args.
6194
set dummy ranlib; ac_word=$2
6195
echo "$as_me:$LINENO: checking for $ac_word" >&5
6196
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6197
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6198
echo $ECHO_N "(cached) $ECHO_C" >&6
6200
if test -n "$ac_ct_RANLIB"; then
6201
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6203
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6207
test -z "$as_dir" && as_dir=.
6208
for ac_exec_ext in '' $ac_executable_extensions; do
6209
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6210
ac_cv_prog_ac_ct_RANLIB="ranlib"
6211
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6217
test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6220
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6221
if test -n "$ac_ct_RANLIB"; then
6222
echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6223
echo "${ECHO_T}$ac_ct_RANLIB" >&6
6225
echo "$as_me:$LINENO: result: no" >&5
6226
echo "${ECHO_T}no" >&6
6229
RANLIB=$ac_ct_RANLIB
6231
RANLIB="$ac_cv_prog_RANLIB"
6234
if test -n "$ac_tool_prefix"; then
6235
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6236
set dummy ${ac_tool_prefix}strip; ac_word=$2
6237
echo "$as_me:$LINENO: checking for $ac_word" >&5
6238
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6239
if test "${ac_cv_prog_STRIP+set}" = set; then
6240
echo $ECHO_N "(cached) $ECHO_C" >&6
6242
if test -n "$STRIP"; then
6243
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6245
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6249
test -z "$as_dir" && as_dir=.
6250
for ac_exec_ext in '' $ac_executable_extensions; do
6251
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6252
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6253
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6261
STRIP=$ac_cv_prog_STRIP
6262
if test -n "$STRIP"; then
6263
echo "$as_me:$LINENO: result: $STRIP" >&5
6264
echo "${ECHO_T}$STRIP" >&6
6266
echo "$as_me:$LINENO: result: no" >&5
6267
echo "${ECHO_T}no" >&6
6271
if test -z "$ac_cv_prog_STRIP"; then
6273
# Extract the first word of "strip", so it can be a program name with args.
6274
set dummy strip; ac_word=$2
6275
echo "$as_me:$LINENO: checking for $ac_word" >&5
6276
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6277
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6278
echo $ECHO_N "(cached) $ECHO_C" >&6
6280
if test -n "$ac_ct_STRIP"; then
6281
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6283
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6287
test -z "$as_dir" && as_dir=.
6288
for ac_exec_ext in '' $ac_executable_extensions; do
6289
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6290
ac_cv_prog_ac_ct_STRIP="strip"
6291
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6297
test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6300
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6301
if test -n "$ac_ct_STRIP"; then
6302
echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6303
echo "${ECHO_T}$ac_ct_STRIP" >&6
6305
echo "$as_me:$LINENO: result: no" >&5
6306
echo "${ECHO_T}no" >&6
6311
STRIP="$ac_cv_prog_STRIP"
6316
old_CFLAGS="$CFLAGS"
6318
# Set sane defaults for various variables
6319
test -z "$AR" && AR=ar
6320
test -z "$AR_FLAGS" && AR_FLAGS=cru
6321
test -z "$AS" && AS=as
6322
test -z "$CC" && CC=cc
6323
test -z "$LTCC" && LTCC=$CC
6324
test -z "$DLLTOOL" && DLLTOOL=dlltool
6325
test -z "$LD" && LD=ld
6326
test -z "$LN_S" && LN_S="ln -s"
6327
test -z "$MAGIC_CMD" && MAGIC_CMD=file
6328
test -z "$NM" && NM=nm
6329
test -z "$SED" && SED=sed
6330
test -z "$OBJDUMP" && OBJDUMP=objdump
6331
test -z "$RANLIB" && RANLIB=:
6332
test -z "$STRIP" && STRIP=:
6333
test -z "$ac_objext" && ac_objext=o
6335
# Determine commands to create old-style static archives.
6336
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6337
old_postinstall_cmds='chmod 644 $oldlib'
6338
old_postuninstall_cmds=
6340
if test -n "$RANLIB"; then
6343
old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6346
old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6349
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6352
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
6354
# Only perform the check for file, if the check method requires it
6355
case $deplibs_check_method in
6357
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6358
echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6359
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6360
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6361
echo $ECHO_N "(cached) $ECHO_C" >&6
6365
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6368
lt_save_MAGIC_CMD="$MAGIC_CMD"
6369
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6370
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6371
for ac_dir in $ac_dummy; do
6373
test -z "$ac_dir" && ac_dir=.
6374
if test -f $ac_dir/${ac_tool_prefix}file; then
6375
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6376
if test -n "$file_magic_test_file"; then
6377
case $deplibs_check_method in
6379
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6380
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6381
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6382
$EGREP "$file_magic_regex" > /dev/null; then
6387
*** Warning: the command libtool uses to detect shared libraries,
6388
*** $file_magic_cmd, produces output that libtool cannot recognize.
6389
*** The result is that libtool may fail to recognize shared libraries
6390
*** as such. This will affect the creation of libtool libraries that
6391
*** depend on shared libraries, but programs linked with such libtool
6392
*** libraries will work regardless of this problem. Nevertheless, you
6393
*** may want to report the problem to your system manager and/or to
6394
*** bug-libtool@gnu.org
6404
MAGIC_CMD="$lt_save_MAGIC_CMD"
6409
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6410
if test -n "$MAGIC_CMD"; then
6411
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6412
echo "${ECHO_T}$MAGIC_CMD" >&6
6414
echo "$as_me:$LINENO: result: no" >&5
6415
echo "${ECHO_T}no" >&6
6418
if test -z "$lt_cv_path_MAGIC_CMD"; then
6419
if test -n "$ac_tool_prefix"; then
6420
echo "$as_me:$LINENO: checking for file" >&5
6421
echo $ECHO_N "checking for file... $ECHO_C" >&6
6422
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6423
echo $ECHO_N "(cached) $ECHO_C" >&6
6427
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6430
lt_save_MAGIC_CMD="$MAGIC_CMD"
6431
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6432
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6433
for ac_dir in $ac_dummy; do
6435
test -z "$ac_dir" && ac_dir=.
6436
if test -f $ac_dir/file; then
6437
lt_cv_path_MAGIC_CMD="$ac_dir/file"
6438
if test -n "$file_magic_test_file"; then
6439
case $deplibs_check_method in
6441
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6442
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6443
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6444
$EGREP "$file_magic_regex" > /dev/null; then
6449
*** Warning: the command libtool uses to detect shared libraries,
6450
*** $file_magic_cmd, produces output that libtool cannot recognize.
6451
*** The result is that libtool may fail to recognize shared libraries
6452
*** as such. This will affect the creation of libtool libraries that
6453
*** depend on shared libraries, but programs linked with such libtool
6454
*** libraries will work regardless of this problem. Nevertheless, you
6455
*** may want to report the problem to your system manager and/or to
6456
*** bug-libtool@gnu.org
6466
MAGIC_CMD="$lt_save_MAGIC_CMD"
6471
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6472
if test -n "$MAGIC_CMD"; then
6473
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6474
echo "${ECHO_T}$MAGIC_CMD" >&6
6476
echo "$as_me:$LINENO: result: no" >&5
6477
echo "${ECHO_T}no" >&6
6492
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6493
if test "${enable_libtool_lock+set}" = set; then
6494
enableval="$enable_libtool_lock"
6497
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6500
# Check whether --with-pic or --without-pic was given.
6501
if test "${with_pic+set}" = set; then
6507
test -z "$pic_mode" && pic_mode=default
6509
# Use C for the default configuration in the libtool script
6513
ac_cpp='$CPP $CPPFLAGS'
6514
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6515
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6516
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6519
# Source file extension for C test sources.
6522
# Object file extension for compiled C test sources.
6526
# Code to be used in simple compile tests
6527
lt_simple_compile_test_code="int some_variable = 0;\n"
6529
# Code to be used in simple link tests
6530
lt_simple_link_test_code='int main(){return(0);}\n'
6533
# If no C compiler was specified, use CC.
6536
# Allow CC to be a program name with arguments.
6541
# Check for any special shared library compilation flags.
6544
if test "$GCC" = no; then
6547
lt_prog_cc_shlib='-belf'
6551
if test -n "$lt_prog_cc_shlib"; then
6552
{ echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6553
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6554
if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6556
{ echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6557
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6558
lt_cv_prog_cc_can_build_shared=no
6564
# Check to make sure the static flag actually works.
6566
echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6567
echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6568
if test "${lt_prog_compiler_static_works+set}" = set; then
6569
echo $ECHO_N "(cached) $ECHO_C" >&6
6571
lt_prog_compiler_static_works=no
6572
save_LDFLAGS="$LDFLAGS"
6573
LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6574
printf "$lt_simple_link_test_code" > conftest.$ac_ext
6575
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6576
# The compiler can only warn and ignore the option if not recognized
6577
# So say no if there are warnings
6578
if test -s conftest.err; then
6579
# Append any errors to the config.log.
6580
cat conftest.err 1>&5
6582
lt_prog_compiler_static_works=yes
6586
LDFLAGS="$save_LDFLAGS"
6589
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6590
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6592
if test x"$lt_prog_compiler_static_works" = xyes; then
6595
lt_prog_compiler_static=
6601
lt_prog_compiler_no_builtin_flag=
6603
if test "$GCC" = yes; then
6604
lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6607
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6608
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6609
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6610
echo $ECHO_N "(cached) $ECHO_C" >&6
6612
lt_cv_prog_compiler_rtti_exceptions=no
6613
ac_outfile=conftest.$ac_objext
6614
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6615
lt_compiler_flag="-fno-rtti -fno-exceptions"
6616
# Insert the option either (1) after the last *FLAGS variable, or
6617
# (2) before a word containing "conftest.", or (3) at the end.
6618
# Note that $ac_compile itself does not contain backslashes and begins
6619
# with a dollar sign (not a hyphen), so the echo should work correctly.
6620
# The option is referenced via a variable to avoid confusing sed.
6621
lt_compile=`echo "$ac_compile" | $SED \
6622
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6623
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6624
-e 's:$: $lt_compiler_flag:'`
6625
(eval echo "\"\$as_me:6625: $lt_compile\"" >&5)
6626
(eval "$lt_compile" 2>conftest.err)
6628
cat conftest.err >&5
6629
echo "$as_me:6629: \$? = $ac_status" >&5
6630
if (exit $ac_status) && test -s "$ac_outfile"; then
6631
# The compiler can only warn and ignore the option if not recognized
6632
# So say no if there are warnings
6633
if test ! -s conftest.err; then
6634
lt_cv_prog_compiler_rtti_exceptions=yes
6640
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6641
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6643
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6644
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6651
lt_prog_compiler_wl=
6652
lt_prog_compiler_pic=
6653
lt_prog_compiler_static=
6655
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6656
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6658
if test "$GCC" = yes; then
6659
lt_prog_compiler_wl='-Wl,'
6660
lt_prog_compiler_static='-static'
6664
# All AIX code is PIC.
6665
if test "$host_cpu" = ia64; then
6666
# AIX 5 now supports IA64 processor
6667
lt_prog_compiler_static='-Bstatic'
6672
# FIXME: we need at least 68020 code to build shared libraries, but
6673
# adding the `-m68020' flag to GCC prevents building anything better,
6675
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6678
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6679
# PIC is the default for these OSes.
6682
mingw* | pw32* | os2*)
6683
# This hack is so that the source file can tell whether it is being
6684
# built for inclusion in a dll (and should export symbols for example).
6685
lt_prog_compiler_pic='-DDLL_EXPORT'
6688
darwin* | rhapsody*)
6689
# PIC is the default on this platform
6690
# Common symbols not allowed in MH_DYLIB files
6691
lt_prog_compiler_pic='-fno-common'
6695
# Just because we use GCC doesn't mean we suddenly get shared libraries
6696
# on systems that don't support them.
6697
lt_prog_compiler_can_build_shared=no
6702
if test -d /usr/nec; then
6703
lt_prog_compiler_pic=-Kconform_pic
6708
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6715
lt_prog_compiler_pic='-fPIC'
6721
lt_prog_compiler_pic='-fPIC'
6725
# PORTME Check for flag to pass linker flags through the system compiler.
6728
lt_prog_compiler_wl='-Wl,'
6729
if test "$host_cpu" = ia64; then
6730
# AIX 5 now supports IA64 processor
6731
lt_prog_compiler_static='-Bstatic'
6733
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6737
# PIC is the default on this platform
6738
# Common symbols not allowed in MH_DYLIB files
6739
case "$cc_basename" in
6741
lt_prog_compiler_pic='-qnocommon'
6742
lt_prog_compiler_wl='-Wl,'
6747
mingw* | pw32* | os2*)
6748
# This hack is so that the source file can tell whether it is being
6749
# built for inclusion in a dll (and should export symbols for example).
6750
lt_prog_compiler_pic='-DDLL_EXPORT'
6753
hpux9* | hpux10* | hpux11*)
6754
lt_prog_compiler_wl='-Wl,'
6755
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6762
lt_prog_compiler_pic='+Z'
6765
# Is there a better lt_prog_compiler_static that works with the bundled CC?
6766
lt_prog_compiler_static='${wl}-a ${wl}archive'
6769
irix5* | irix6* | nonstopux*)
6770
lt_prog_compiler_wl='-Wl,'
6771
# PIC (with -KPIC) is the default.
6772
lt_prog_compiler_static='-non_shared'
6776
lt_prog_compiler_pic='-KPIC'
6777
lt_prog_compiler_static='-Bstatic'
6783
lt_prog_compiler_wl='-Wl,'
6784
lt_prog_compiler_pic='-KPIC'
6785
lt_prog_compiler_static='-static'
6788
lt_prog_compiler_wl='-Wl,'
6789
# All Alpha code is PIC.
6790
lt_prog_compiler_static='-non_shared'
6795
osf3* | osf4* | osf5*)
6796
lt_prog_compiler_wl='-Wl,'
6797
# All OSF/1 code is PIC.
6798
lt_prog_compiler_static='-non_shared'
6802
lt_prog_compiler_pic='-Kpic'
6803
lt_prog_compiler_static='-dn'
6807
lt_prog_compiler_wl='-Wl,'
6808
lt_prog_compiler_pic='-KPIC'
6809
lt_prog_compiler_static='-Bstatic'
6813
lt_prog_compiler_wl='-Qoption ld '
6814
lt_prog_compiler_pic='-PIC'
6815
lt_prog_compiler_static='-Bstatic'
6818
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6819
lt_prog_compiler_wl='-Wl,'
6820
lt_prog_compiler_pic='-KPIC'
6821
lt_prog_compiler_static='-Bstatic'
6825
if test -d /usr/nec ;then
6826
lt_prog_compiler_pic='-Kconform_pic'
6827
lt_prog_compiler_static='-Bstatic'
6832
lt_prog_compiler_pic='-pic'
6833
lt_prog_compiler_static='-Bstatic'
6837
lt_prog_compiler_can_build_shared=no
6842
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6843
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6846
# Check to make sure the PIC flag actually works.
6848
if test -n "$lt_prog_compiler_pic"; then
6850
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6851
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6852
if test "${lt_prog_compiler_pic_works+set}" = set; then
6853
echo $ECHO_N "(cached) $ECHO_C" >&6
6855
lt_prog_compiler_pic_works=no
6856
ac_outfile=conftest.$ac_objext
6857
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6858
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6859
# Insert the option either (1) after the last *FLAGS variable, or
6860
# (2) before a word containing "conftest.", or (3) at the end.
6861
# Note that $ac_compile itself does not contain backslashes and begins
6862
# with a dollar sign (not a hyphen), so the echo should work correctly.
6863
# The option is referenced via a variable to avoid confusing sed.
6864
lt_compile=`echo "$ac_compile" | $SED \
6865
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6866
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6867
-e 's:$: $lt_compiler_flag:'`
6868
(eval echo "\"\$as_me:6868: $lt_compile\"" >&5)
6869
(eval "$lt_compile" 2>conftest.err)
6871
cat conftest.err >&5
6872
echo "$as_me:6872: \$? = $ac_status" >&5
6873
if (exit $ac_status) && test -s "$ac_outfile"; then
6874
# The compiler can only warn and ignore the option if not recognized
6875
# So say no if there are warnings
6876
if test ! -s conftest.err; then
6877
lt_prog_compiler_pic_works=yes
6883
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6884
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6886
if test x"$lt_prog_compiler_pic_works" = xyes; then
6887
case $lt_prog_compiler_pic in
6889
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6892
lt_prog_compiler_pic=
6893
lt_prog_compiler_can_build_shared=no
6898
# For platforms which do not support PIC, -DPIC is meaningless:
6900
lt_prog_compiler_pic=
6903
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6907
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6908
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6909
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6910
echo $ECHO_N "(cached) $ECHO_C" >&6
6912
lt_cv_prog_compiler_c_o=no
6913
$rm -r conftest 2>/dev/null
6917
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6919
lt_compiler_flag="-o out/conftest2.$ac_objext"
6920
# Insert the option either (1) after the last *FLAGS variable, or
6921
# (2) before a word containing "conftest.", or (3) at the end.
6922
# Note that $ac_compile itself does not contain backslashes and begins
6923
# with a dollar sign (not a hyphen), so the echo should work correctly.
6924
lt_compile=`echo "$ac_compile" | $SED \
6925
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6926
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6927
-e 's:$: $lt_compiler_flag:'`
6928
(eval echo "\"\$as_me:6928: $lt_compile\"" >&5)
6929
(eval "$lt_compile" 2>out/conftest.err)
6931
cat out/conftest.err >&5
6932
echo "$as_me:6932: \$? = $ac_status" >&5
6933
if (exit $ac_status) && test -s out/conftest2.$ac_objext
6935
# The compiler can only warn and ignore the option if not recognized
6936
# So say no if there are warnings
6937
if test ! -s out/conftest.err; then
6938
lt_cv_prog_compiler_c_o=yes
6943
# SGI C++ compiler will create directory out/ii_files/ for
6944
# template instantiation
6945
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6946
$rm out/* && rmdir out
6952
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6953
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6956
hard_links="nottested"
6957
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6958
# do not overwrite the value of need_locks provided by the user
6959
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6960
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6963
ln conftest.a conftest.b 2>/dev/null && hard_links=no
6965
ln conftest.a conftest.b 2>&5 || hard_links=no
6966
ln conftest.a conftest.b 2>/dev/null && hard_links=no
6967
echo "$as_me:$LINENO: result: $hard_links" >&5
6968
echo "${ECHO_T}$hard_links" >&6
6969
if test "$hard_links" = no; then
6970
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6971
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6978
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6979
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6982
allow_undefined_flag=
6983
enable_shared_with_static_runtimes=no
6985
archive_expsym_cmds=
6986
old_archive_From_new_cmds=
6987
old_archive_from_expsyms_cmds=
6988
export_dynamic_flag_spec=
6989
whole_archive_flag_spec=
6990
thread_safe_flag_spec=
6991
hardcode_libdir_flag_spec=
6992
hardcode_libdir_flag_spec_ld=
6993
hardcode_libdir_separator=
6996
hardcode_shlibpath_var=unsupported
6997
link_all_deplibs=unknown
6998
hardcode_automatic=no
7001
always_export_symbols=no
7002
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7003
# include_expsyms should be a list of space-separated symbols to be *always*
7004
# included in the symbol list
7006
# exclude_expsyms can be an extended regexp of symbols to exclude
7007
# it will be wrapped by ` (' and `)$', so one must not match beginning or
7008
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7009
# as well as any symbol that contains `d'.
7010
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7011
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7012
# platforms (ab)use it in PIC code, but their linkers get confused if
7013
# the symbol is explicitly referenced. Since portable code cannot
7014
# rely on this symbol name, it's probably fine to never include it in
7015
# preloaded symbol tables.
7016
extract_expsyms_cmds=
7019
cygwin* | mingw* | pw32*)
7020
# FIXME: the MSVC++ port hasn't been tested in a loooong time
7021
# When not using gcc, we currently assume that we are using
7022
# Microsoft Visual C++.
7023
if test "$GCC" != yes; then
7033
if test "$with_gnu_ld" = yes; then
7034
# If archive_cmds runs LD, not CC, wlarc should be empty
7037
# See if GNU ld supports shared libraries.
7039
aix3* | aix4* | aix5*)
7040
# On AIX/PPC, the GNU linker is very broken
7041
if test "$host_cpu" != ia64; then
7045
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7046
*** to be unable to reliably create shared libraries on AIX.
7047
*** Therefore, libtool is disabling shared libraries support. If you
7048
*** really care for shared libraries, you may want to modify your PATH
7049
*** so that a non-GNU linker is found, and then restart.
7056
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)'
7057
hardcode_libdir_flag_spec='-L$libdir'
7058
hardcode_minus_L=yes
7060
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7061
# that the semantics of dynamic libraries on AmigaOS, at least up
7062
# to version 4, is to share data among multiple programs linked
7063
# with the same dynamic library. Since this doesn't match the
7064
# behavior of shared libraries on other platforms, we can't use
7070
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7071
allow_undefined_flag=unsupported
7072
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7073
# support --undefined. This deserves some investigation. FIXME
7074
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7080
cygwin* | mingw* | pw32*)
7081
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7082
# as there is no search path for DLLs.
7083
hardcode_libdir_flag_spec='-L$libdir'
7084
allow_undefined_flag=unsupported
7085
always_export_symbols=no
7086
enable_shared_with_static_runtimes=yes
7087
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7089
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7090
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7091
# If the export-symbols file already is a .def file (1st line
7092
# is EXPORTS), use it as is; otherwise, prepend...
7093
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7094
cp $export_symbols $output_objdir/$soname.def;
7096
echo EXPORTS > $output_objdir/$soname.def;
7097
cat $export_symbols >> $output_objdir/$soname.def;
7099
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7106
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7107
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7110
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7111
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7116
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7120
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7121
*** create shared libraries on Solaris systems. Therefore, libtool
7122
*** is disabling shared libraries support. We urge you to upgrade GNU
7123
*** binutils to release 2.9.1 or newer. Another option is to modify
7124
*** your PATH or compiler configuration so that the native linker is
7125
*** used, and then restart.
7128
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7129
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7130
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7137
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7140
hardcode_shlibpath_var=no
7144
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7145
tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7146
archive_cmds="$tmp_archive_cmds"
7147
supports_anon_versioning=no
7148
case `$LD -v 2>/dev/null` in
7149
*\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7150
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7151
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7152
*\ 2.11.*) ;; # other 2.11 versions
7153
*) supports_anon_versioning=yes ;;
7155
if test $supports_anon_versioning = yes; then
7156
archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7157
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7158
$echo "local: *; };" >> $output_objdir/$libname.ver~
7159
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7161
archive_expsym_cmds="$tmp_archive_cmds"
7169
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7170
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7171
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7178
if test "$ld_shlibs" = yes; then
7179
runpath_var=LD_RUN_PATH
7180
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7181
export_dynamic_flag_spec='${wl}--export-dynamic'
7182
# ancient GNU ld didn't support --whole-archive et. al.
7183
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7184
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7186
whole_archive_flag_spec=
7190
# PORTME fill in a description of your system's linker (not GNU ld)
7193
allow_undefined_flag=unsupported
7194
always_export_symbols=yes
7195
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'
7196
# Note: this linker hardcodes the directories in LIBPATH if there
7197
# are no directories specified by -L.
7198
hardcode_minus_L=yes
7199
if test "$GCC" = yes && test -z "$link_static_flag"; then
7200
# Neither direct hardcoding nor static linking is supported with a
7202
hardcode_direct=unsupported
7207
if test "$host_cpu" = ia64; then
7208
# On IA64, the linker does run time linking by default, so we don't
7209
# have to do anything special.
7210
aix_use_runtimelinking=no
7211
exp_sym_flag='-Bexport'
7214
# If we're using GNU nm, then we don't want the "-C" option.
7215
# -C means demangle to AIX nm, but means don't demangle with GNU nm
7216
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7217
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'
7219
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'
7221
aix_use_runtimelinking=no
7223
# Test if we are trying to use run time linking or normal
7224
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
7225
# need to do runtime linking.
7226
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7227
for ld_flag in $LDFLAGS; do
7228
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7229
aix_use_runtimelinking=yes
7235
exp_sym_flag='-bexport'
7236
no_entry_flag='-bnoentry'
7239
# When large executables or shared objects are built, AIX ld can
7240
# have problems creating the table of contents. If linking a library
7241
# or program results in "error TOC overflow" add -mminimal-toc to
7242
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7243
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7247
hardcode_libdir_separator=':'
7248
link_all_deplibs=yes
7250
if test "$GCC" = yes; then
7251
case $host_os in aix4.012|aix4.012.*)
7252
# We only want to do this on AIX 4.2 and lower, the check
7253
# below for broken collect2 doesn't work under 4.3+
7254
collect2name=`${CC} -print-prog-name=collect2`
7255
if test -f "$collect2name" && \
7256
strings "$collect2name" | grep resolve_lib_name >/dev/null
7258
# We have reworked collect2
7261
# We have old collect2
7262
hardcode_direct=unsupported
7263
# It fails to find uninstalled libraries when the uninstalled
7264
# path is not listed in the libpath. Setting hardcode_minus_L
7265
# to unsupported forces relinking
7266
hardcode_minus_L=yes
7267
hardcode_libdir_flag_spec='-L$libdir'
7268
hardcode_libdir_separator=
7271
shared_flag='-shared'
7274
if test "$host_cpu" = ia64; then
7275
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7276
# chokes on -Wl,-G. The following line is correct:
7279
if test "$aix_use_runtimelinking" = yes; then
7280
shared_flag='${wl}-G'
7282
shared_flag='${wl}-bM:SRE'
7287
# It seems that -bexpall does not export symbols beginning with
7288
# underscore (_), so it is better to generate a list of symbols to export.
7289
always_export_symbols=yes
7290
if test "$aix_use_runtimelinking" = yes; then
7291
# Warning - without using the other runtime loading flags (-brtl),
7292
# -berok will link without error, but may produce a broken library.
7293
allow_undefined_flag='-berok'
7294
# Determine the default libpath from the value encoded in an empty executable.
7295
cat >conftest.$ac_ext <<_ACEOF
7298
cat confdefs.h >>conftest.$ac_ext
7299
cat >>conftest.$ac_ext <<_ACEOF
7300
/* end confdefs.h. */
7310
rm -f conftest.$ac_objext conftest$ac_exeext
7311
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7312
(eval $ac_link) 2>conftest.er1
7314
grep -v '^ *+' conftest.er1 >conftest.err
7316
cat conftest.err >&5
7317
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7318
(exit $ac_status); } &&
7319
{ ac_try='test -z "$ac_c_werror_flag"
7320
|| test ! -s conftest.err'
7321
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7324
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7325
(exit $ac_status); }; } &&
7326
{ ac_try='test -s conftest$ac_exeext'
7327
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7330
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7331
(exit $ac_status); }; }; then
7333
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7335
# Check for a 64-bit object if we didn't find anything.
7336
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; }
7339
echo "$as_me: failed program was:" >&5
7340
sed 's/^/| /' conftest.$ac_ext >&5
7343
rm -f conftest.err conftest.$ac_objext \
7344
conftest$ac_exeext conftest.$ac_ext
7345
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7347
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7348
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"
7350
if test "$host_cpu" = ia64; then
7351
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7352
allow_undefined_flag="-z nodefs"
7353
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"
7355
# Determine the default libpath from the value encoded in an empty executable.
7356
cat >conftest.$ac_ext <<_ACEOF
7359
cat confdefs.h >>conftest.$ac_ext
7360
cat >>conftest.$ac_ext <<_ACEOF
7361
/* end confdefs.h. */
7371
rm -f conftest.$ac_objext conftest$ac_exeext
7372
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7373
(eval $ac_link) 2>conftest.er1
7375
grep -v '^ *+' conftest.er1 >conftest.err
7377
cat conftest.err >&5
7378
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7379
(exit $ac_status); } &&
7380
{ ac_try='test -z "$ac_c_werror_flag"
7381
|| test ! -s conftest.err'
7382
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7385
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7386
(exit $ac_status); }; } &&
7387
{ ac_try='test -s conftest$ac_exeext'
7388
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7391
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7392
(exit $ac_status); }; }; then
7394
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7396
# Check for a 64-bit object if we didn't find anything.
7397
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; }
7400
echo "$as_me: failed program was:" >&5
7401
sed 's/^/| /' conftest.$ac_ext >&5
7404
rm -f conftest.err conftest.$ac_objext \
7405
conftest$ac_exeext conftest.$ac_ext
7406
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7408
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7409
# Warning - without using the other run time loading flags,
7410
# -berok will link without error, but may produce a broken library.
7411
no_undefined_flag=' ${wl}-bernotok'
7412
allow_undefined_flag=' ${wl}-berok'
7413
# -bexpall does not export symbols beginning with underscore (_)
7414
always_export_symbols=yes
7415
# Exported symbols can be pulled into shared objects from archives
7416
whole_archive_flag_spec=' '
7417
archive_cmds_need_lc=yes
7418
# This is similar to how AIX traditionally builds it's shared libraries.
7419
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'
7425
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)'
7426
hardcode_libdir_flag_spec='-L$libdir'
7427
hardcode_minus_L=yes
7428
# see comment about different semantics on the GNU ld section
7433
export_dynamic_flag_spec=-rdynamic
7436
cygwin* | mingw* | pw32*)
7437
# When not using gcc, we currently assume that we are using
7438
# Microsoft Visual C++.
7439
# hardcode_libdir_flag_spec is actually meaningless, as there is
7440
# no search path for DLLs.
7441
hardcode_libdir_flag_spec=' '
7442
allow_undefined_flag=unsupported
7443
# Tell ltmain to make .lib files, not .a files.
7445
# Tell ltmain to make .dll files, not .so files.
7447
# FIXME: Setting linknames here is a bad hack.
7448
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7449
# The linker will automatically build a .lib file if we build a DLL.
7450
old_archive_From_new_cmds='true'
7451
# FIXME: Should let the user specify the lib program.
7452
old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7453
fix_srcfile_path='`cygpath -w "$srcfile"`'
7454
enable_shared_with_static_runtimes=yes
7457
darwin* | rhapsody*)
7459
rhapsody* | darwin1.[012])
7460
allow_undefined_flag='${wl}-undefined ${wl}suppress'
7463
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7464
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7466
case ${MACOSX_DEPLOYMENT_TARGET} in
7468
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7471
allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7477
archive_cmds_need_lc=no
7479
hardcode_automatic=yes
7480
hardcode_shlibpath_var=unsupported
7481
whole_archive_flag_spec=''
7482
link_all_deplibs=yes
7483
if test "$GCC" = yes ; then
7484
output_verbose_link_cmd='echo'
7485
archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7486
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7487
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7488
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}'
7489
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}'
7491
case "$cc_basename" in
7493
output_verbose_link_cmd='echo'
7494
archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7495
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7496
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7497
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}'
7498
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}'
7508
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7509
hardcode_libdir_flag_spec='-L$libdir'
7510
hardcode_shlibpath_var=no
7517
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7518
# support. Future versions do this automatically, but an explicit c++rt0.o
7519
# does not break anything, and helps significantly (at the cost of a little
7522
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7523
hardcode_libdir_flag_spec='-R$libdir'
7525
hardcode_shlibpath_var=no
7528
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
7530
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7532
hardcode_minus_L=yes
7533
hardcode_shlibpath_var=no
7536
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7537
freebsd* | kfreebsd*-gnu)
7538
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7539
hardcode_libdir_flag_spec='-R$libdir'
7541
hardcode_shlibpath_var=no
7545
if test "$GCC" = yes; then
7546
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'
7548
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'
7550
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7551
hardcode_libdir_separator=:
7554
# hardcode_minus_L: Not really in the search PATH,
7555
# but as the default location of the library.
7556
hardcode_minus_L=yes
7557
export_dynamic_flag_spec='${wl}-E'
7561
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7564
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7567
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7573
archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7576
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7580
if test "$with_gnu_ld" = no; then
7583
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7584
hardcode_libdir_flag_spec_ld='+b $libdir'
7585
hardcode_libdir_separator=:
7587
hardcode_shlibpath_var=no
7590
hardcode_libdir_flag_spec='-L$libdir'
7592
hardcode_shlibpath_var=no
7594
# hardcode_minus_L: Not really in the search PATH,
7595
# but as the default location of the library.
7596
hardcode_minus_L=yes
7599
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7600
hardcode_libdir_separator=:
7602
export_dynamic_flag_spec='${wl}-E'
7604
# hardcode_minus_L: Not really in the search PATH,
7605
# but as the default location of the library.
7606
hardcode_minus_L=yes
7612
irix5* | irix6* | nonstopux*)
7613
if test "$GCC" = yes; then
7614
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'
7616
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'
7617
hardcode_libdir_flag_spec_ld='-rpath $libdir'
7619
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7620
hardcode_libdir_separator=:
7621
link_all_deplibs=yes
7625
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7626
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7628
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7630
hardcode_libdir_flag_spec='-R$libdir'
7632
hardcode_shlibpath_var=no
7636
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7638
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7639
hardcode_libdir_separator=:
7640
hardcode_shlibpath_var=no
7645
hardcode_shlibpath_var=no
7646
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7647
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7648
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7649
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7650
export_dynamic_flag_spec='${wl}-E'
7653
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7654
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7655
hardcode_libdir_flag_spec='-R$libdir'
7658
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7659
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7666
hardcode_libdir_flag_spec='-L$libdir'
7667
hardcode_minus_L=yes
7668
allow_undefined_flag=unsupported
7669
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'
7670
old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7674
if test "$GCC" = yes; then
7675
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7676
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'
7678
allow_undefined_flag=' -expect_unresolved \*'
7679
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'
7681
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7682
hardcode_libdir_separator=:
7685
osf4* | osf5*) # as osf3* with the addition of -msym flag
7686
if test "$GCC" = yes; then
7687
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7688
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'
7689
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7691
allow_undefined_flag=' -expect_unresolved \*'
7692
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'
7693
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7694
$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'
7696
# Both c and cxx compiler support -rpath directly
7697
hardcode_libdir_flag_spec='-rpath $libdir'
7699
hardcode_libdir_separator=:
7703
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7704
hardcode_shlibpath_var=no
7705
export_dynamic_flag_spec='${wl}-Bexport'
7706
runpath_var=LD_RUN_PATH
7707
hardcode_runpath_var=yes
7711
no_undefined_flag=' -z text'
7712
if test "$GCC" = yes; then
7713
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7714
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7715
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7717
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7718
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7719
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7721
hardcode_libdir_flag_spec='-R$libdir'
7722
hardcode_shlibpath_var=no
7724
solaris2.[0-5] | solaris2.[0-5].*) ;;
7725
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
7726
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7728
link_all_deplibs=yes
7732
if test "x$host_vendor" = xsequent; then
7733
# Use $CC to link under sequent, because it throws in some extra .o
7734
# files that make .init and .fini sections work.
7735
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7737
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7739
hardcode_libdir_flag_spec='-L$libdir'
7741
hardcode_minus_L=yes
7742
hardcode_shlibpath_var=no
7746
case $host_vendor in
7748
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7749
hardcode_direct=yes # is this really true???
7752
## LD is ld it makes a PLAMLIB
7753
## CC just makes a GrossModule.
7754
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7755
reload_cmds='$CC -r -o $output$reload_objs'
7759
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7760
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7763
runpath_var='LD_RUN_PATH'
7764
hardcode_shlibpath_var=no
7768
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7769
hardcode_shlibpath_var=no
7770
export_dynamic_flag_spec='-Bexport'
7774
if test -d /usr/nec; then
7775
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7776
hardcode_shlibpath_var=no
7777
runpath_var=LD_RUN_PATH
7778
hardcode_runpath_var=yes
7784
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7787
hardcode_shlibpath_var=no
7788
hardcode_runpath_var=yes
7789
runpath_var=LD_RUN_PATH
7792
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7793
no_undefined_flag='${wl}-z ${wl}text'
7794
if test "$GCC" = yes; then
7795
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7797
archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7799
runpath_var='LD_RUN_PATH'
7800
hardcode_shlibpath_var=no
7804
no_undefined_flag=' -z text'
7805
# $CC -shared without GNU ld will not create a library from C++
7806
# object files and a static libstdc++, better avoid it by now
7807
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7808
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7809
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7810
hardcode_libdir_flag_spec=
7811
hardcode_shlibpath_var=no
7812
runpath_var='LD_RUN_PATH'
7816
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7817
hardcode_libdir_flag_spec='-L$libdir'
7818
hardcode_shlibpath_var=no
7827
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7828
echo "${ECHO_T}$ld_shlibs" >&6
7829
test "$ld_shlibs" = no && can_build_shared=no
7831
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7832
if test "$GCC" = yes; then
7833
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7837
# Do we need to explicitly link libc?
7839
case "x$archive_cmds_need_lc" in
7841
# Assume -lc should be added
7842
archive_cmds_need_lc=yes
7844
if test "$enable_shared" = yes && test "$GCC" = yes; then
7845
case $archive_cmds in
7847
# FIXME: we may have to deal with multi-command sequences.
7850
# Test whether the compiler implicitly links with -lc since on some
7851
# systems, -lgcc has to come before -lc. If gcc already passes -lc
7852
# to ld, don't add -lc before -lgcc.
7853
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7854
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7856
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7858
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7859
(eval $ac_compile) 2>&5
7861
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7862
(exit $ac_status); } 2>conftest.err; then
7865
libobjs=conftest.$ac_objext
7867
wl=$lt_prog_compiler_wl
7873
lt_save_allow_undefined_flag=$allow_undefined_flag
7874
allow_undefined_flag=
7875
if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7876
(eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7878
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7879
(exit $ac_status); }
7881
archive_cmds_need_lc=no
7883
archive_cmds_need_lc=yes
7885
allow_undefined_flag=$lt_save_allow_undefined_flag
7887
cat conftest.err 1>&5
7890
echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7891
echo "${ECHO_T}$archive_cmds_need_lc" >&6
7898
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7899
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7901
libname_spec='lib$name'
7909
shlibpath_overrides_runpath=unknown
7911
dynamic_linker="$host_os ld.so"
7912
sys_lib_dlsearch_path_spec="/lib /usr/lib"
7913
if test "$GCC" = yes; then
7914
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7915
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7916
# if the path contains ";" then we assume it to be the separator
7917
# otherwise default to the standard path separator (i.e. ":") - it is
7918
# assumed that no part of a normal pathname contains ";" but that should
7919
# okay in the real world where ";" in dirpaths is itself problematic.
7920
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7922
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7925
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7927
need_lib_prefix=unknown
7928
hardcode_into_libs=no
7930
# when you set need_version to no, make sure it does not cause -set_version
7931
# flags to be left without arguments
7932
need_version=unknown
7937
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7938
shlibpath_var=LIBPATH
7940
# AIX 3 has no versioning support, so we append a major version to the name.
7941
soname_spec='${libname}${release}${shared_ext}$major'
7948
hardcode_into_libs=yes
7949
if test "$host_cpu" = ia64; then
7950
# AIX 5 supports IA64
7951
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7952
shlibpath_var=LD_LIBRARY_PATH
7954
# With GCC up to 2.95.x, collect2 would create an import file
7955
# for dependence libraries. The import file would start with
7956
# the line `#! .'. This would cause the generated library to
7957
# depend on `.', always an invalid library. This was fixed in
7958
# development snapshots of GCC prior to 3.0.
7960
aix4 | aix4.[01] | aix4.[01].*)
7961
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7963
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7970
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7971
# soname into executable. Probably we can add versioning support to
7972
# collect2, so additional links can be useful in future.
7973
if test "$aix_use_runtimelinking" = yes; then
7974
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
7975
# instead of lib<name>.a to let people know that these are not
7976
# typical AIX shared libraries.
7977
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7979
# We preserve .a as extension for shared libraries through AIX4.2
7980
# and later when we are not doing run time linking.
7981
library_names_spec='${libname}${release}.a $libname.a'
7982
soname_spec='${libname}${release}${shared_ext}$major'
7984
shlibpath_var=LIBPATH
7989
library_names_spec='$libname.ixlibrary $libname.a'
7990
# Create ${libname}_ixlibrary.a entries in /sys/libs.
7991
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'
7995
library_names_spec='${libname}${shared_ext}'
7996
dynamic_linker="$host_os ld.so"
7997
shlibpath_var=LIBRARY_PATH
8003
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8004
soname_spec='${libname}${release}${shared_ext}$major'
8005
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8006
shlibpath_var=LD_LIBRARY_PATH
8007
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8008
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8009
# the default ld.so.conf also contains /usr/contrib/lib and
8010
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8011
# libtool to hard-code these into programs
8014
cygwin* | mingw* | pw32*)
8015
version_type=windows
8020
case $GCC,$host_os in
8021
yes,cygwin* | yes,mingw* | yes,pw32*)
8022
library_names_spec='$libname.dll.a'
8023
# DLL is installed to $(libdir)/../bin by postinstall_cmds
8024
postinstall_cmds='base_file=`basename \${file}`~
8025
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8026
dldir=$destdir/`dirname \$dlpath`~
8027
test -d \$dldir || mkdir -p \$dldir~
8028
$install_prog $dir/$dlname \$dldir/$dlname'
8029
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8030
dlpath=$dir/\$dldll~
8032
shlibpath_overrides_runpath=yes
8036
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
8037
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8038
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8041
# MinGW DLLs use traditional 'lib' prefix
8042
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8043
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8044
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8045
# It is most probably a Windows format PATH printed by
8046
# mingw gcc, but we are running on Cygwin. Gcc prints its search
8047
# path with ; separators, and with drive letters. We can handle the
8048
# drive letters (cygwin fileutils understands them), so leave them,
8049
# especially as we might pass files found there to a mingw objdump,
8050
# which wouldn't understand a cygwinified path. Ahh.
8051
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8053
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8057
# pw32 DLLs use 'pw' prefix rather than 'lib'
8058
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
8064
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8067
dynamic_linker='Win32 ld.exe'
8068
# FIXME: first we should search . and the directory the executable is in
8072
darwin* | rhapsody*)
8073
dynamic_linker="$host_os dyld"
8077
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8078
soname_spec='${libname}${release}${major}$shared_ext'
8079
shlibpath_overrides_runpath=yes
8080
shlibpath_var=DYLD_LIBRARY_PATH
8081
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
8082
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8083
if test "$GCC" = yes; then
8084
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"`
8086
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8088
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8095
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8096
soname_spec='${libname}${release}${shared_ext}$major'
8097
shlibpath_var=LD_LIBRARY_PATH
8108
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8109
soname_spec='${libname}${release}${shared_ext}$major'
8110
shlibpath_var=LD_LIBRARY_PATH
8111
shlibpath_overrides_runpath=no
8112
hardcode_into_libs=yes
8113
dynamic_linker='GNU ld.so'
8117
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8118
version_type=freebsd-$objformat
8119
case $version_type in
8121
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8126
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8130
shlibpath_var=LD_LIBRARY_PATH
8133
shlibpath_overrides_runpath=yes
8135
freebsd3.01* | freebsdelf3.01*)
8136
shlibpath_overrides_runpath=yes
8137
hardcode_into_libs=yes
8140
shlibpath_overrides_runpath=no
8141
hardcode_into_libs=yes
8150
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8151
soname_spec='${libname}${release}${shared_ext}$major'
8152
shlibpath_var=LD_LIBRARY_PATH
8153
hardcode_into_libs=yes
8156
hpux9* | hpux10* | hpux11*)
8157
# Give a soname corresponding to the major version so that dld.sl refuses to
8158
# link against other versions.
8165
hardcode_into_libs=yes
8166
dynamic_linker="$host_os dld.so"
8167
shlibpath_var=LD_LIBRARY_PATH
8168
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8169
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8170
soname_spec='${libname}${release}${shared_ext}$major'
8171
if test "X$HPUX_IA64_MODE" = X32; then
8172
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8174
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8176
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8180
hardcode_into_libs=yes
8181
dynamic_linker="$host_os dld.sl"
8182
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8183
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8184
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8185
soname_spec='${libname}${release}${shared_ext}$major'
8186
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8187
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8191
dynamic_linker="$host_os dld.sl"
8192
shlibpath_var=SHLIB_PATH
8193
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8194
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8195
soname_spec='${libname}${release}${shared_ext}$major'
8198
# HP-UX runs *really* slowly unless shared libraries are mode 555.
8199
postinstall_cmds='chmod 555 $lib'
8202
irix5* | irix6* | nonstopux*)
8204
nonstopux*) version_type=nonstopux ;;
8206
if test "$lt_cv_prog_gnu_ld" = yes; then
8214
soname_spec='${libname}${release}${shared_ext}$major'
8215
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8217
irix5* | nonstopux*)
8221
case $LD in # libtool.m4 will add one of these switches to LD
8222
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8223
libsuff= shlibsuff= libmagic=32-bit;;
8224
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8225
libsuff=32 shlibsuff=N32 libmagic=N32;;
8226
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8227
libsuff=64 shlibsuff=64 libmagic=64-bit;;
8228
*) libsuff= shlibsuff= libmagic=never-match;;
8232
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8233
shlibpath_overrides_runpath=no
8234
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8235
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8236
hardcode_into_libs=yes
8239
# No shared lib support for Linux oldld, aout, or coff.
8240
linux*oldld* | linux*aout* | linux*coff*)
8244
# This must be Linux ELF.
8249
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8250
soname_spec='${libname}${release}${shared_ext}$major'
8251
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8252
shlibpath_var=LD_LIBRARY_PATH
8253
shlibpath_overrides_runpath=no
8254
# This implies no fast_install, which is unacceptable.
8255
# Some rework will be needed to allow for fast_install
8256
# before this can be enabled.
8257
hardcode_into_libs=yes
8259
# find out which ABI we are using
8262
x86_64*|s390x*|powerpc64*)
8263
echo '#line 8263 "configure"' > conftest.$ac_ext
8264
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8265
(eval $ac_compile) 2>&5
8267
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8268
(exit $ac_status); }; then
8269
case `/usr/bin/file conftest.$ac_objext` in
8272
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
8280
# Append ld.so.conf contents to the search path
8281
if test -f /etc/ld.so.conf; then
8282
lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
8283
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
8286
# We used to test for /lib/ld.so.1 and disable shared libraries on
8287
# powerpc, because MkLinux only supported shared libraries with the
8288
# GNU dynamic linker. Since this was broken with cross compilers,
8289
# most powerpc-linux boxes support dynamic linking these days and
8290
# people can always --disable-shared, the test was removed, and we
8291
# assume the GNU/Linux dynamic linker is in use.
8292
dynamic_linker='GNU/Linux ld.so'
8299
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8300
soname_spec='${libname}${release}${shared_ext}$major'
8301
shlibpath_var=LD_LIBRARY_PATH
8302
shlibpath_overrides_runpath=no
8303
hardcode_into_libs=yes
8304
dynamic_linker='GNU ld.so'
8311
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8312
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8313
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8314
dynamic_linker='NetBSD (a.out) ld.so'
8316
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8317
soname_spec='${libname}${release}${shared_ext}$major'
8318
dynamic_linker='NetBSD ld.elf_so'
8320
shlibpath_var=LD_LIBRARY_PATH
8321
shlibpath_overrides_runpath=yes
8322
hardcode_into_libs=yes
8327
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8328
shlibpath_var=LD_LIBRARY_PATH
8329
shlibpath_overrides_runpath=yes
8336
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8337
soname_spec='${libname}${release}${shared_ext}$major'
8338
shlibpath_var=LD_LIBRARY_PATH
8339
shlibpath_overrides_runpath=yes
8346
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8347
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8348
shlibpath_var=LD_LIBRARY_PATH
8349
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8351
openbsd2.[89] | openbsd2.[89].*)
8352
shlibpath_overrides_runpath=no
8355
shlibpath_overrides_runpath=yes
8359
shlibpath_overrides_runpath=yes
8364
libname_spec='$name'
8367
library_names_spec='$libname${shared_ext} $libname.a'
8368
dynamic_linker='OS/2 ld.exe'
8369
shlibpath_var=LIBPATH
8372
osf3* | osf4* | osf5*)
8376
soname_spec='${libname}${release}${shared_ext}$major'
8377
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8378
shlibpath_var=LD_LIBRARY_PATH
8379
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8380
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8385
soname_spec='${libname}${release}${shared_ext}$major'
8386
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8387
shlibpath_var=LD_LIBRARY_PATH
8394
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8395
soname_spec='${libname}${release}${shared_ext}$major'
8396
shlibpath_var=LD_LIBRARY_PATH
8397
shlibpath_overrides_runpath=yes
8398
hardcode_into_libs=yes
8399
# ldd complains unless libraries are executable
8400
postinstall_cmds='chmod +x $lib'
8405
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8406
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8407
shlibpath_var=LD_LIBRARY_PATH
8408
shlibpath_overrides_runpath=yes
8409
if test "$with_gnu_ld" = yes; then
8415
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8417
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8418
soname_spec='${libname}${release}${shared_ext}$major'
8419
shlibpath_var=LD_LIBRARY_PATH
8420
case $host_vendor in
8422
shlibpath_overrides_runpath=no
8424
export_dynamic_flag_spec='${wl}-Blargedynsym'
8425
runpath_var=LD_RUN_PATH
8433
shlibpath_overrides_runpath=no
8434
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8440
if test -d /usr/nec ;then
8442
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8443
soname_spec='$libname${shared_ext}.$major'
8444
shlibpath_var=LD_LIBRARY_PATH
8450
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8451
soname_spec='${libname}${release}${shared_ext}$major'
8452
shlibpath_var=LD_LIBRARY_PATH
8459
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8460
echo "${ECHO_T}$dynamic_linker" >&6
8461
test "$dynamic_linker" = no && can_build_shared=no
8463
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8464
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8466
if test -n "$hardcode_libdir_flag_spec" || \
8467
test -n "$runpath_var" || \
8468
test "X$hardcode_automatic" = "Xyes" ; then
8470
# We can hardcode non-existant directories.
8471
if test "$hardcode_direct" != no &&
8472
# If the only mechanism to avoid hardcoding is shlibpath_var, we
8473
# have to relink, otherwise we might link with an installed library
8474
# when we should be linking with a yet-to-be-installed one
8475
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8476
test "$hardcode_minus_L" != no; then
8477
# Linking always hardcodes the temporary library directory.
8478
hardcode_action=relink
8480
# We can link without hardcoding, and we can hardcode nonexisting dirs.
8481
hardcode_action=immediate
8484
# We cannot hardcode anything, or else we can only hardcode existing
8486
hardcode_action=unsupported
8488
echo "$as_me:$LINENO: result: $hardcode_action" >&5
8489
echo "${ECHO_T}$hardcode_action" >&6
8491
if test "$hardcode_action" = relink; then
8492
# Fast installation is not supported
8493
enable_fast_install=no
8494
elif test "$shlibpath_overrides_runpath" = yes ||
8495
test "$enable_shared" = no; then
8496
# Fast installation is not necessary
8497
enable_fast_install=needless
8502
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8503
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8504
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8505
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8506
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8507
echo "$as_me:$LINENO: result: yes" >&5
8508
echo "${ECHO_T}yes" >&6
8510
# FIXME - insert some real tests, host_os isn't really good enough
8513
if test -n "$STRIP" ; then
8514
striplib="$STRIP -x"
8515
echo "$as_me:$LINENO: result: yes" >&5
8516
echo "${ECHO_T}yes" >&6
8518
echo "$as_me:$LINENO: result: no" >&5
8519
echo "${ECHO_T}no" >&6
8523
echo "$as_me:$LINENO: result: no" >&5
8524
echo "${ECHO_T}no" >&6
8529
if test "x$enable_dlopen" != xyes; then
8530
enable_dlopen=unknown
8531
enable_dlopen_self=unknown
8532
enable_dlopen_self_static=unknown
8539
lt_cv_dlopen="load_add_on"
8541
lt_cv_dlopen_self=yes
8545
lt_cv_dlopen="LoadLibrary"
8550
lt_cv_dlopen="dlopen"
8555
# if libdl is installed we need to link against it
8556
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8557
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8558
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8559
echo $ECHO_N "(cached) $ECHO_C" >&6
8561
ac_check_lib_save_LIBS=$LIBS
8563
cat >conftest.$ac_ext <<_ACEOF
8566
cat confdefs.h >>conftest.$ac_ext
8567
cat >>conftest.$ac_ext <<_ACEOF
8568
/* end confdefs.h. */
8570
/* Override any gcc2 internal prototype to avoid an error. */
8574
/* We use char because int might match the return type of a gcc2
8575
builtin and then its argument prototype would still apply. */
8585
rm -f conftest.$ac_objext conftest$ac_exeext
8586
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8587
(eval $ac_link) 2>conftest.er1
8589
grep -v '^ *+' conftest.er1 >conftest.err
8591
cat conftest.err >&5
8592
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593
(exit $ac_status); } &&
8594
{ ac_try='test -z "$ac_c_werror_flag"
8595
|| test ! -s conftest.err'
8596
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8599
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600
(exit $ac_status); }; } &&
8601
{ ac_try='test -s conftest$ac_exeext'
8602
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8605
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606
(exit $ac_status); }; }; then
8607
ac_cv_lib_dl_dlopen=yes
8609
echo "$as_me: failed program was:" >&5
8610
sed 's/^/| /' conftest.$ac_ext >&5
8612
ac_cv_lib_dl_dlopen=no
8614
rm -f conftest.err conftest.$ac_objext \
8615
conftest$ac_exeext conftest.$ac_ext
8616
LIBS=$ac_check_lib_save_LIBS
8618
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8619
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8620
if test $ac_cv_lib_dl_dlopen = yes; then
8621
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8626
lt_cv_dlopen_self=yes
8633
echo "$as_me:$LINENO: checking for shl_load" >&5
8634
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8635
if test "${ac_cv_func_shl_load+set}" = set; then
8636
echo $ECHO_N "(cached) $ECHO_C" >&6
8638
cat >conftest.$ac_ext <<_ACEOF
8641
cat confdefs.h >>conftest.$ac_ext
8642
cat >>conftest.$ac_ext <<_ACEOF
8643
/* end confdefs.h. */
8644
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8645
For example, HP-UX 11i <limits.h> declares gettimeofday. */
8646
#define shl_load innocuous_shl_load
8648
/* System header to define __stub macros and hopefully few prototypes,
8649
which can conflict with char shl_load (); below.
8650
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8651
<limits.h> exists even on freestanding compilers. */
8654
# include <limits.h>
8656
# include <assert.h>
8661
/* Override any gcc2 internal prototype to avoid an error. */
8666
/* We use char because int might match the return type of a gcc2
8667
builtin and then its argument prototype would still apply. */
8669
/* The GNU C library defines this for functions which it implements
8670
to always fail with ENOSYS. Some functions are actually named
8671
something starting with __ and the normal name is an alias. */
8672
#if defined (__stub_shl_load) || defined (__stub___shl_load)
8675
char (*f) () = shl_load;
8684
return f != shl_load;
8689
rm -f conftest.$ac_objext conftest$ac_exeext
8690
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8691
(eval $ac_link) 2>conftest.er1
8693
grep -v '^ *+' conftest.er1 >conftest.err
8695
cat conftest.err >&5
8696
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8697
(exit $ac_status); } &&
8698
{ ac_try='test -z "$ac_c_werror_flag"
8699
|| test ! -s conftest.err'
8700
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8703
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704
(exit $ac_status); }; } &&
8705
{ ac_try='test -s conftest$ac_exeext'
8706
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8709
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710
(exit $ac_status); }; }; then
8711
ac_cv_func_shl_load=yes
8713
echo "$as_me: failed program was:" >&5
8714
sed 's/^/| /' conftest.$ac_ext >&5
8716
ac_cv_func_shl_load=no
8718
rm -f conftest.err conftest.$ac_objext \
8719
conftest$ac_exeext conftest.$ac_ext
8721
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8722
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8723
if test $ac_cv_func_shl_load = yes; then
8724
lt_cv_dlopen="shl_load"
8726
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8727
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8728
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8729
echo $ECHO_N "(cached) $ECHO_C" >&6
8731
ac_check_lib_save_LIBS=$LIBS
8733
cat >conftest.$ac_ext <<_ACEOF
8736
cat confdefs.h >>conftest.$ac_ext
8737
cat >>conftest.$ac_ext <<_ACEOF
8738
/* end confdefs.h. */
8740
/* Override any gcc2 internal prototype to avoid an error. */
8744
/* We use char because int might match the return type of a gcc2
8745
builtin and then its argument prototype would still apply. */
8755
rm -f conftest.$ac_objext conftest$ac_exeext
8756
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8757
(eval $ac_link) 2>conftest.er1
8759
grep -v '^ *+' conftest.er1 >conftest.err
8761
cat conftest.err >&5
8762
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763
(exit $ac_status); } &&
8764
{ ac_try='test -z "$ac_c_werror_flag"
8765
|| test ! -s conftest.err'
8766
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8769
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8770
(exit $ac_status); }; } &&
8771
{ ac_try='test -s conftest$ac_exeext'
8772
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8775
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8776
(exit $ac_status); }; }; then
8777
ac_cv_lib_dld_shl_load=yes
8779
echo "$as_me: failed program was:" >&5
8780
sed 's/^/| /' conftest.$ac_ext >&5
8782
ac_cv_lib_dld_shl_load=no
8784
rm -f conftest.err conftest.$ac_objext \
8785
conftest$ac_exeext conftest.$ac_ext
8786
LIBS=$ac_check_lib_save_LIBS
8788
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8789
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8790
if test $ac_cv_lib_dld_shl_load = yes; then
8791
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8793
echo "$as_me:$LINENO: checking for dlopen" >&5
8794
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8795
if test "${ac_cv_func_dlopen+set}" = set; then
8796
echo $ECHO_N "(cached) $ECHO_C" >&6
8798
cat >conftest.$ac_ext <<_ACEOF
8801
cat confdefs.h >>conftest.$ac_ext
8802
cat >>conftest.$ac_ext <<_ACEOF
8803
/* end confdefs.h. */
8804
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8805
For example, HP-UX 11i <limits.h> declares gettimeofday. */
8806
#define dlopen innocuous_dlopen
8808
/* System header to define __stub macros and hopefully few prototypes,
8809
which can conflict with char dlopen (); below.
8810
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8811
<limits.h> exists even on freestanding compilers. */
8814
# include <limits.h>
8816
# include <assert.h>
8821
/* Override any gcc2 internal prototype to avoid an error. */
8826
/* We use char because int might match the return type of a gcc2
8827
builtin and then its argument prototype would still apply. */
8829
/* The GNU C library defines this for functions which it implements
8830
to always fail with ENOSYS. Some functions are actually named
8831
something starting with __ and the normal name is an alias. */
8832
#if defined (__stub_dlopen) || defined (__stub___dlopen)
8835
char (*f) () = dlopen;
8849
rm -f conftest.$ac_objext conftest$ac_exeext
8850
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8851
(eval $ac_link) 2>conftest.er1
8853
grep -v '^ *+' conftest.er1 >conftest.err
8855
cat conftest.err >&5
8856
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8857
(exit $ac_status); } &&
8858
{ ac_try='test -z "$ac_c_werror_flag"
8859
|| test ! -s conftest.err'
8860
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8863
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864
(exit $ac_status); }; } &&
8865
{ ac_try='test -s conftest$ac_exeext'
8866
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8869
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8870
(exit $ac_status); }; }; then
8871
ac_cv_func_dlopen=yes
8873
echo "$as_me: failed program was:" >&5
8874
sed 's/^/| /' conftest.$ac_ext >&5
8876
ac_cv_func_dlopen=no
8878
rm -f conftest.err conftest.$ac_objext \
8879
conftest$ac_exeext conftest.$ac_ext
8881
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8882
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8883
if test $ac_cv_func_dlopen = yes; then
8884
lt_cv_dlopen="dlopen"
8886
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8887
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8888
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8889
echo $ECHO_N "(cached) $ECHO_C" >&6
8891
ac_check_lib_save_LIBS=$LIBS
8893
cat >conftest.$ac_ext <<_ACEOF
8896
cat confdefs.h >>conftest.$ac_ext
8897
cat >>conftest.$ac_ext <<_ACEOF
8898
/* end confdefs.h. */
8900
/* Override any gcc2 internal prototype to avoid an error. */
8904
/* We use char because int might match the return type of a gcc2
8905
builtin and then its argument prototype would still apply. */
8915
rm -f conftest.$ac_objext conftest$ac_exeext
8916
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8917
(eval $ac_link) 2>conftest.er1
8919
grep -v '^ *+' conftest.er1 >conftest.err
8921
cat conftest.err >&5
8922
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8923
(exit $ac_status); } &&
8924
{ ac_try='test -z "$ac_c_werror_flag"
8925
|| test ! -s conftest.err'
8926
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8929
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8930
(exit $ac_status); }; } &&
8931
{ ac_try='test -s conftest$ac_exeext'
8932
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8935
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8936
(exit $ac_status); }; }; then
8937
ac_cv_lib_dl_dlopen=yes
8939
echo "$as_me: failed program was:" >&5
8940
sed 's/^/| /' conftest.$ac_ext >&5
8942
ac_cv_lib_dl_dlopen=no
8944
rm -f conftest.err conftest.$ac_objext \
8945
conftest$ac_exeext conftest.$ac_ext
8946
LIBS=$ac_check_lib_save_LIBS
8948
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8949
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8950
if test $ac_cv_lib_dl_dlopen = yes; then
8951
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8953
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8954
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8955
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8956
echo $ECHO_N "(cached) $ECHO_C" >&6
8958
ac_check_lib_save_LIBS=$LIBS
8960
cat >conftest.$ac_ext <<_ACEOF
8963
cat confdefs.h >>conftest.$ac_ext
8964
cat >>conftest.$ac_ext <<_ACEOF
8965
/* end confdefs.h. */
8967
/* Override any gcc2 internal prototype to avoid an error. */
8971
/* We use char because int might match the return type of a gcc2
8972
builtin and then its argument prototype would still apply. */
8982
rm -f conftest.$ac_objext conftest$ac_exeext
8983
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8984
(eval $ac_link) 2>conftest.er1
8986
grep -v '^ *+' conftest.er1 >conftest.err
8988
cat conftest.err >&5
8989
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8990
(exit $ac_status); } &&
8991
{ ac_try='test -z "$ac_c_werror_flag"
8992
|| test ! -s conftest.err'
8993
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8996
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8997
(exit $ac_status); }; } &&
8998
{ ac_try='test -s conftest$ac_exeext'
8999
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9002
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003
(exit $ac_status); }; }; then
9004
ac_cv_lib_svld_dlopen=yes
9006
echo "$as_me: failed program was:" >&5
9007
sed 's/^/| /' conftest.$ac_ext >&5
9009
ac_cv_lib_svld_dlopen=no
9011
rm -f conftest.err conftest.$ac_objext \
9012
conftest$ac_exeext conftest.$ac_ext
9013
LIBS=$ac_check_lib_save_LIBS
9015
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9016
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9017
if test $ac_cv_lib_svld_dlopen = yes; then
9018
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9020
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9021
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9022
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9023
echo $ECHO_N "(cached) $ECHO_C" >&6
9025
ac_check_lib_save_LIBS=$LIBS
9027
cat >conftest.$ac_ext <<_ACEOF
9030
cat confdefs.h >>conftest.$ac_ext
9031
cat >>conftest.$ac_ext <<_ACEOF
9032
/* end confdefs.h. */
9034
/* Override any gcc2 internal prototype to avoid an error. */
9038
/* We use char because int might match the return type of a gcc2
9039
builtin and then its argument prototype would still apply. */
9049
rm -f conftest.$ac_objext conftest$ac_exeext
9050
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9051
(eval $ac_link) 2>conftest.er1
9053
grep -v '^ *+' conftest.er1 >conftest.err
9055
cat conftest.err >&5
9056
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9057
(exit $ac_status); } &&
9058
{ ac_try='test -z "$ac_c_werror_flag"
9059
|| test ! -s conftest.err'
9060
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9063
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9064
(exit $ac_status); }; } &&
9065
{ ac_try='test -s conftest$ac_exeext'
9066
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9069
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070
(exit $ac_status); }; }; then
9071
ac_cv_lib_dld_dld_link=yes
9073
echo "$as_me: failed program was:" >&5
9074
sed 's/^/| /' conftest.$ac_ext >&5
9076
ac_cv_lib_dld_dld_link=no
9078
rm -f conftest.err conftest.$ac_objext \
9079
conftest$ac_exeext conftest.$ac_ext
9080
LIBS=$ac_check_lib_save_LIBS
9082
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9083
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9084
if test $ac_cv_lib_dld_dld_link = yes; then
9085
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9106
if test "x$lt_cv_dlopen" != xno; then
9112
case $lt_cv_dlopen in
9114
save_CPPFLAGS="$CPPFLAGS"
9115
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9117
save_LDFLAGS="$LDFLAGS"
9118
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9121
LIBS="$lt_cv_dlopen_libs $LIBS"
9123
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9124
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9125
if test "${lt_cv_dlopen_self+set}" = set; then
9126
echo $ECHO_N "(cached) $ECHO_C" >&6
9128
if test "$cross_compiling" = yes; then :
9129
lt_cv_dlopen_self=cross
9131
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9132
lt_status=$lt_dlunknown
9133
cat > conftest.$ac_ext <<EOF
9134
#line 9134 "configure"
9135
#include "confdefs.h"
9144
# define LT_DLGLOBAL RTLD_GLOBAL
9147
# define LT_DLGLOBAL DL_GLOBAL
9149
# define LT_DLGLOBAL 0
9153
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9154
find out it does not work in some platform. */
9155
#ifndef LT_DLLAZY_OR_NOW
9157
# define LT_DLLAZY_OR_NOW RTLD_LAZY
9160
# define LT_DLLAZY_OR_NOW DL_LAZY
9163
# define LT_DLLAZY_OR_NOW RTLD_NOW
9166
# define LT_DLLAZY_OR_NOW DL_NOW
9168
# define LT_DLLAZY_OR_NOW 0
9176
extern "C" void exit (int);
9179
void fnord() { int i=42;}
9182
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9183
int status = $lt_dlunknown;
9187
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9188
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9189
/* dlclose (self); */
9195
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9196
(eval $ac_link) 2>&5
9198
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9199
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9200
(./conftest; exit; ) 2>/dev/null
9203
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9204
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9205
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9208
# compilation failed
9209
lt_cv_dlopen_self=no
9216
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9217
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9219
if test "x$lt_cv_dlopen_self" = xyes; then
9220
LDFLAGS="$LDFLAGS $link_static_flag"
9221
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9222
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9223
if test "${lt_cv_dlopen_self_static+set}" = set; then
9224
echo $ECHO_N "(cached) $ECHO_C" >&6
9226
if test "$cross_compiling" = yes; then :
9227
lt_cv_dlopen_self_static=cross
9229
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9230
lt_status=$lt_dlunknown
9231
cat > conftest.$ac_ext <<EOF
9232
#line 9232 "configure"
9233
#include "confdefs.h"
9242
# define LT_DLGLOBAL RTLD_GLOBAL
9245
# define LT_DLGLOBAL DL_GLOBAL
9247
# define LT_DLGLOBAL 0
9251
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9252
find out it does not work in some platform. */
9253
#ifndef LT_DLLAZY_OR_NOW
9255
# define LT_DLLAZY_OR_NOW RTLD_LAZY
9258
# define LT_DLLAZY_OR_NOW DL_LAZY
9261
# define LT_DLLAZY_OR_NOW RTLD_NOW
9264
# define LT_DLLAZY_OR_NOW DL_NOW
9266
# define LT_DLLAZY_OR_NOW 0
9274
extern "C" void exit (int);
9277
void fnord() { int i=42;}
9280
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9281
int status = $lt_dlunknown;
9285
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9286
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9287
/* dlclose (self); */
9293
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9294
(eval $ac_link) 2>&5
9296
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9297
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9298
(./conftest; exit; ) 2>/dev/null
9301
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9302
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9303
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9306
# compilation failed
9307
lt_cv_dlopen_self_static=no
9314
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9315
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9318
CPPFLAGS="$save_CPPFLAGS"
9319
LDFLAGS="$save_LDFLAGS"
9324
case $lt_cv_dlopen_self in
9325
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9326
*) enable_dlopen_self=unknown ;;
9329
case $lt_cv_dlopen_self_static in
9330
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9331
*) enable_dlopen_self_static=unknown ;;
9336
# Report which librarie types wil actually be built
9337
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9338
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9339
echo "$as_me:$LINENO: result: $can_build_shared" >&5
9340
echo "${ECHO_T}$can_build_shared" >&6
9342
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9343
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9344
test "$can_build_shared" = "no" && enable_shared=no
9346
# On AIX, shared libraries and static libraries use the same namespace, and
9347
# are all built from PIC.
9350
test "$enable_shared" = yes && enable_static=no
9351
if test -n "$RANLIB"; then
9352
archive_cmds="$archive_cmds~\$RANLIB \$lib"
9353
postinstall_cmds='$RANLIB $lib'
9358
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9359
test "$enable_shared" = yes && enable_static=no
9363
echo "$as_me:$LINENO: result: $enable_shared" >&5
9364
echo "${ECHO_T}$enable_shared" >&6
9366
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9367
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9368
# Make sure either enable_shared or enable_static is yes.
9369
test "$enable_shared" = yes || enable_static=yes
9370
echo "$as_me:$LINENO: result: $enable_static" >&5
9371
echo "${ECHO_T}$enable_static" >&6
9373
# The else clause should only fire when bootstrapping the
9374
# libtool distribution, otherwise you forgot to ship ltmain.sh
9375
# with your package, and you will get complaints that there are
9376
# no rules to generate ltmain.sh.
9377
if test -f "$ltmain"; then
9378
# See if we are running on zsh, and set the options which allow our commands through
9379
# without removal of \ escapes.
9380
if test -n "${ZSH_VERSION+set}" ; then
9381
setopt NO_GLOB_SUBST
9383
# Now quote all the things that may contain metacharacters while being
9384
# careful not to overquote the AC_SUBSTed values. We take copies of the
9385
# variables and quote the copies for generation of the libtool script.
9386
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9388
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9389
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9390
deplibs_check_method reload_flag reload_cmds need_locks \
9391
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9392
lt_cv_sys_global_symbol_to_c_name_address \
9393
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9394
old_postinstall_cmds old_postuninstall_cmds \
9398
lt_prog_compiler_wl \
9399
lt_prog_compiler_pic \
9400
lt_prog_compiler_static \
9401
lt_prog_compiler_no_builtin_flag \
9402
export_dynamic_flag_spec \
9403
thread_safe_flag_spec \
9404
whole_archive_flag_spec \
9405
enable_shared_with_static_runtimes \
9407
old_archive_from_new_cmds \
9412
compiler_lib_search_path \
9414
archive_expsym_cmds \
9416
postuninstall_cmds \
9417
old_archive_from_expsyms_cmds \
9418
allow_undefined_flag \
9420
export_symbols_cmds \
9421
hardcode_libdir_flag_spec \
9422
hardcode_libdir_flag_spec_ld \
9423
hardcode_libdir_separator \
9424
hardcode_automatic \
9426
module_expsym_cmds \
9427
lt_cv_prog_compiler_c_o \
9432
old_archive_cmds | \
9433
old_archive_from_new_cmds | \
9435
archive_expsym_cmds | \
9437
module_expsym_cmds | \
9438
old_archive_from_expsyms_cmds | \
9439
export_symbols_cmds | \
9440
extract_expsyms_cmds | reload_cmds | finish_cmds | \
9441
postinstall_cmds | postuninstall_cmds | \
9442
old_postinstall_cmds | old_postuninstall_cmds | \
9443
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9444
# Double-quote double-evaled strings.
9445
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9448
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9454
*'\$0 --fallback-echo"')
9455
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9460
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9462
{ echo "$as_me:$LINENO: creating $ofile" >&5
9463
echo "$as_me: creating $ofile" >&6;}
9465
cat <<__EOF__ >> "$cfgfile"
9468
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9469
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9470
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9472
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9473
# Free Software Foundation, Inc.
9475
# This file is part of GNU Libtool:
9476
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9478
# This program is free software; you can redistribute it and/or modify
9479
# it under the terms of the GNU General Public License as published by
9480
# the Free Software Foundation; either version 2 of the License, or
9481
# (at your option) any later version.
9483
# This program is distributed in the hope that it will be useful, but
9484
# WITHOUT ANY WARRANTY; without even the implied warranty of
9485
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9486
# General Public License for more details.
9488
# You should have received a copy of the GNU General Public License
9489
# along with this program; if not, write to the Free Software
9490
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9492
# As a special exception to the GNU General Public License, if you
9493
# distribute this file as part of a program that contains a
9494
# configuration script generated by Autoconf, you may include it under
9495
# the same distribution terms that you use for the rest of that program.
9497
# A sed program that does not truncate output.
9500
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9501
Xsed="$SED -e s/^X//"
9503
# The HP-UX ksh and POSIX shell print the target directory to stdout
9505
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9507
# The names of the tagged configurations supported by this script.
9510
# ### BEGIN LIBTOOL CONFIG
9512
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9514
# Shell to use when invoking shell scripts.
9517
# Whether or not to build shared libraries.
9518
build_libtool_libs=$enable_shared
9520
# Whether or not to build static libraries.
9521
build_old_libs=$enable_static
9523
# Whether or not to add -lc for building shared libraries.
9524
build_libtool_need_lc=$archive_cmds_need_lc
9526
# Whether or not to disallow shared libs when runtime libs are static
9527
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9529
# Whether or not to optimize for fast installation.
9530
fast_install=$enable_fast_install
9533
host_alias=$host_alias
9536
# An echo program that does not interpret backslashes.
9541
AR_FLAGS=$lt_AR_FLAGS
9546
# A language-specific compiler.
9549
# Is the compiler the GNU C compiler?
9555
# The linker used to build libraries.
9558
# Whether we need hard or soft links.
9561
# A BSD-compatible nm program.
9564
# A symbol stripping program
9567
# Used to examine libraries when file_magic_cmd begins "file"
9568
MAGIC_CMD=$MAGIC_CMD
9570
# Used on cygwin: DLL creation program.
9573
# Used on cygwin: object dumper.
9576
# Used on cygwin: assembler.
9579
# The name of the directory that contains temporary libtool files.
9582
# How to create reloadable object files.
9583
reload_flag=$lt_reload_flag
9584
reload_cmds=$lt_reload_cmds
9586
# How to pass a linker flag through the compiler.
9587
wl=$lt_lt_prog_compiler_wl
9589
# Object file suffix (normally "o").
9592
# Old archive suffix (normally "a").
9595
# Shared library suffix (normally ".so").
9596
shrext_cmds='$shrext_cmds'
9598
# Executable file suffix (normally "").
9601
# Additional compiler flags for building library objects.
9602
pic_flag=$lt_lt_prog_compiler_pic
9605
# What is the maximum length of a command?
9606
max_cmd_len=$lt_cv_sys_max_cmd_len
9608
# Does compiler simultaneously support -c and -o options?
9609
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9611
# Must we lock files when doing compilation ?
9612
need_locks=$lt_need_locks
9614
# Do we need the lib prefix for modules?
9615
need_lib_prefix=$need_lib_prefix
9617
# Do we need a version for libraries?
9618
need_version=$need_version
9620
# Whether dlopen is supported.
9621
dlopen_support=$enable_dlopen
9623
# Whether dlopen of programs is supported.
9624
dlopen_self=$enable_dlopen_self
9626
# Whether dlopen of statically linked programs is supported.
9627
dlopen_self_static=$enable_dlopen_self_static
9629
# Compiler flag to prevent dynamic linking.
9630
link_static_flag=$lt_lt_prog_compiler_static
9632
# Compiler flag to turn off builtin functions.
9633
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9635
# Compiler flag to allow reflexive dlopens.
9636
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9638
# Compiler flag to generate shared objects directly from archives.
9639
whole_archive_flag_spec=$lt_whole_archive_flag_spec
9641
# Compiler flag to generate thread-safe objects.
9642
thread_safe_flag_spec=$lt_thread_safe_flag_spec
9644
# Library versioning type.
9645
version_type=$version_type
9647
# Format of library name prefix.
9648
libname_spec=$lt_libname_spec
9650
# List of archive names. First name is the real one, the rest are links.
9651
# The last name is the one that the linker finds with -lNAME.
9652
library_names_spec=$lt_library_names_spec
9654
# The coded name of the library, if different from the real name.
9655
soname_spec=$lt_soname_spec
9657
# Commands used to build and install an old-style archive.
9659
old_archive_cmds=$lt_old_archive_cmds
9660
old_postinstall_cmds=$lt_old_postinstall_cmds
9661
old_postuninstall_cmds=$lt_old_postuninstall_cmds
9663
# Create an old-style archive from a shared archive.
9664
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9666
# Create a temporary old-style archive to link instead of a shared archive.
9667
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9669
# Commands used to build and install a shared archive.
9670
archive_cmds=$lt_archive_cmds
9671
archive_expsym_cmds=$lt_archive_expsym_cmds
9672
postinstall_cmds=$lt_postinstall_cmds
9673
postuninstall_cmds=$lt_postuninstall_cmds
9675
# Commands used to build a loadable module (assumed same as above if empty)
9676
module_cmds=$lt_module_cmds
9677
module_expsym_cmds=$lt_module_expsym_cmds
9679
# Commands to strip libraries.
9680
old_striplib=$lt_old_striplib
9681
striplib=$lt_striplib
9683
# Dependencies to place before the objects being linked to create a
9685
predep_objects=$lt_predep_objects
9687
# Dependencies to place after the objects being linked to create a
9689
postdep_objects=$lt_postdep_objects
9691
# Dependencies to place before the objects being linked to create a
9695
# Dependencies to place after the objects being linked to create a
9697
postdeps=$lt_postdeps
9699
# The library search path used internally by the compiler when linking
9701
compiler_lib_search_path=$lt_compiler_lib_search_path
9703
# Method to check whether dependent libraries are shared objects.
9704
deplibs_check_method=$lt_deplibs_check_method
9706
# Command to use when deplibs_check_method == file_magic.
9707
file_magic_cmd=$lt_file_magic_cmd
9709
# Flag that allows shared libraries with undefined symbols to be built.
9710
allow_undefined_flag=$lt_allow_undefined_flag
9712
# Flag that forces no undefined symbols.
9713
no_undefined_flag=$lt_no_undefined_flag
9715
# Commands used to finish a libtool library installation in a directory.
9716
finish_cmds=$lt_finish_cmds
9718
# Same as above, but a single script fragment to be evaled but not shown.
9719
finish_eval=$lt_finish_eval
9721
# Take the output of nm and produce a listing of raw symbols and C names.
9722
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9724
# Transform the output of nm in a proper C declaration
9725
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9727
# Transform the output of nm in a C name address pair
9728
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9730
# This is the shared library runtime path variable.
9731
runpath_var=$runpath_var
9733
# This is the shared library path variable.
9734
shlibpath_var=$shlibpath_var
9736
# Is shlibpath searched before the hard-coded library search path?
9737
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9739
# How to hardcode a shared library path into an executable.
9740
hardcode_action=$hardcode_action
9742
# Whether we should hardcode library paths into libraries.
9743
hardcode_into_libs=$hardcode_into_libs
9745
# Flag to hardcode \$libdir into a binary during linking.
9746
# This must work even if \$libdir does not exist.
9747
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9749
# If ld is used when linking, flag to hardcode \$libdir into
9750
# a binary during linking. This must work even if \$libdir does
9752
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9754
# Whether we need a single -rpath flag with a separated argument.
9755
hardcode_libdir_separator=$lt_hardcode_libdir_separator
9757
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9759
hardcode_direct=$hardcode_direct
9761
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9763
hardcode_minus_L=$hardcode_minus_L
9765
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9766
# the resulting binary.
9767
hardcode_shlibpath_var=$hardcode_shlibpath_var
9769
# Set to yes if building a shared library automatically hardcodes DIR into the library
9770
# and all subsequent libraries and executables linked against it.
9771
hardcode_automatic=$hardcode_automatic
9773
# Variables whose values should be saved in libtool wrapper scripts and
9774
# restored at relink time.
9775
variables_saved_for_relink="$variables_saved_for_relink"
9777
# Whether libtool must link a program against all its dependency libraries.
9778
link_all_deplibs=$link_all_deplibs
9780
# Compile-time system search path for libraries
9781
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9783
# Run-time system search path for libraries
9784
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9786
# Fix the shell variable \$srcfile for the compiler.
9787
fix_srcfile_path="$fix_srcfile_path"
9789
# Set to yes if exported symbols are required.
9790
always_export_symbols=$always_export_symbols
9792
# The commands to list exported symbols.
9793
export_symbols_cmds=$lt_export_symbols_cmds
9795
# The commands to extract the exported symbol list from a shared archive.
9796
extract_expsyms_cmds=$lt_extract_expsyms_cmds
9798
# Symbols that should not be listed in the preloaded symbols.
9799
exclude_expsyms=$lt_exclude_expsyms
9801
# Symbols that must always be exported.
9802
include_expsyms=$lt_include_expsyms
9804
# ### END LIBTOOL CONFIG
9811
cat <<\EOF >> "$cfgfile"
9813
# AIX sometimes has problems with the GCC collect2 program. For some
9814
# reason, if we set the COLLECT_NAMES environment variable, the problems
9815
# vanish in a puff of smoke.
9816
if test "X${COLLECT_NAMES+set}" != Xset; then
9818
export COLLECT_NAMES
9824
# We use sed instead of cat because bash on DJGPP gets confused if
9825
# if finds mixed CR/LF and LF-only lines. Since sed operates in
9826
# text mode, it properly converts lines to CR/LF. This bash problem
9827
# is reportedly fixed, but why not run on old versions too?
9828
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9830
mv -f "$cfgfile" "$ofile" || \
9831
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9835
# If there is no Makefile yet, we rely on a make rule to execute
9836
# `config.status --recheck' to rerun these tests and create the
9837
# libtool script then.
9838
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9839
if test -f "$ltmain_in"; then
9840
test -f Makefile && make "$ltmain"
9846
ac_cpp='$CPP $CPPFLAGS'
9847
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9848
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9849
ac_compiler_gnu=$ac_cv_c_compiler_gnu
9854
# Check whether --with-tags or --without-tags was given.
9855
if test "${with_tags+set}" = set; then
9856
withval="$with_tags"
9860
if test -f "$ltmain" && test -n "$tagnames"; then
9861
if test ! -f "${ofile}"; then
9862
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9863
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9866
if test -z "$LTCC"; then
9867
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9868
if test -z "$LTCC"; then
9869
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9870
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9872
{ echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9873
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9877
# Extract list of available tagged configurations in $ofile.
9878
# Note that this assumes the entire list is on one line.
9879
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9881
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9882
for tagname in $tagnames; do
9884
# Check whether tagname contains only valid characters
9885
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9887
*) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9888
echo "$as_me: error: invalid tag name: $tagname" >&2;}
9889
{ (exit 1); exit 1; }; }
9893
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9895
{ { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9896
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9897
{ (exit 1); exit 1; }; }
9900
# Update the list of available tags.
9901
if test -n "$tagname"; then
9902
echo appending configuration tag \"$tagname\" to $ofile
9906
if test -n "$CXX" && test "X$CXX" != "Xno"; then
9908
ac_cpp='$CXXCPP $CPPFLAGS'
9909
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9910
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9911
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9916
archive_cmds_need_lc_CXX=no
9917
allow_undefined_flag_CXX=
9918
always_export_symbols_CXX=no
9919
archive_expsym_cmds_CXX=
9920
export_dynamic_flag_spec_CXX=
9921
hardcode_direct_CXX=no
9922
hardcode_libdir_flag_spec_CXX=
9923
hardcode_libdir_flag_spec_ld_CXX=
9924
hardcode_libdir_separator_CXX=
9925
hardcode_minus_L_CXX=no
9926
hardcode_automatic_CXX=no
9928
module_expsym_cmds_CXX=
9929
link_all_deplibs_CXX=unknown
9930
old_archive_cmds_CXX=$old_archive_cmds
9931
no_undefined_flag_CXX=
9932
whole_archive_flag_spec_CXX=
9933
enable_shared_with_static_runtimes_CXX=no
9935
# Dependencies to place before and after the object being linked:
9937
postdep_objects_CXX=
9940
compiler_lib_search_path_CXX=
9942
# Source file extension for C++ test sources.
9945
# Object file extension for compiled C++ test sources.
9949
# Code to be used in simple compile tests
9950
lt_simple_compile_test_code="int some_variable = 0;\n"
9952
# Code to be used in simple link tests
9953
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9955
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9957
# If no C compiler was specified, use CC.
9960
# Allow CC to be a program name with arguments.
9964
# Allow CC to be a program name with arguments.
9969
lt_save_with_gnu_ld=$with_gnu_ld
9970
lt_save_path_LD=$lt_cv_path_LD
9971
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9972
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9974
unset lt_cv_prog_gnu_ld
9976
if test -n "${lt_cv_path_LDCXX+set}"; then
9977
lt_cv_path_LD=$lt_cv_path_LDCXX
9981
test -z "${LDCXX+set}" || LD=$LDCXX
9985
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9987
# We don't want -fno-exception wen compiling C++ code, so set the
9988
# no_builtin_flag separately
9989
if test "$GXX" = yes; then
9990
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9992
lt_prog_compiler_no_builtin_flag_CXX=
9995
if test "$GXX" = yes; then
9996
# Set up default GNU C++ configuration
9999
# Check whether --with-gnu-ld or --without-gnu-ld was given.
10000
if test "${with_gnu_ld+set}" = set; then
10001
withval="$with_gnu_ld"
10002
test "$withval" = no || with_gnu_ld=yes
10007
if test "$GCC" = yes; then
10008
# Check if gcc -print-prog-name=ld gives a path.
10009
echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10010
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10013
# gcc leaves a trailing carriage return which upsets mingw
10014
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10016
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10019
# Accept absolute paths.
10021
re_direlt='/[^/][^/]*/\.\./'
10022
# Canonicalize the pathname of ld
10023
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10024
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10025
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10027
test -z "$LD" && LD="$ac_prog"
10030
# If it fails, then pretend we aren't using GCC.
10034
# If it is relative, then search for the first ld in PATH.
10035
with_gnu_ld=unknown
10038
elif test "$with_gnu_ld" = yes; then
10039
echo "$as_me:$LINENO: checking for GNU ld" >&5
10040
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10042
echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10043
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10045
if test "${lt_cv_path_LD+set}" = set; then
10046
echo $ECHO_N "(cached) $ECHO_C" >&6
10048
if test -z "$LD"; then
10049
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10050
for ac_dir in $PATH; do
10052
test -z "$ac_dir" && ac_dir=.
10053
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10054
lt_cv_path_LD="$ac_dir/$ac_prog"
10055
# Check to see if the program is GNU ld. I'd rather use --version,
10056
# but apparently some GNU ld's only accept -v.
10057
# Break only if it was the GNU/non-GNU ld that we prefer.
10058
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10059
*GNU* | *'with BFD'*)
10060
test "$with_gnu_ld" != no && break
10063
test "$with_gnu_ld" != yes && break
10070
lt_cv_path_LD="$LD" # Let the user override the test with a path.
10074
LD="$lt_cv_path_LD"
10075
if test -n "$LD"; then
10076
echo "$as_me:$LINENO: result: $LD" >&5
10077
echo "${ECHO_T}$LD" >&6
10079
echo "$as_me:$LINENO: result: no" >&5
10080
echo "${ECHO_T}no" >&6
10082
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10083
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10084
{ (exit 1); exit 1; }; }
10085
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10086
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10087
if test "${lt_cv_prog_gnu_ld+set}" = set; then
10088
echo $ECHO_N "(cached) $ECHO_C" >&6
10090
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
10091
case `$LD -v 2>&1 </dev/null` in
10092
*GNU* | *'with BFD'*)
10093
lt_cv_prog_gnu_ld=yes
10096
lt_cv_prog_gnu_ld=no
10100
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10101
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10102
with_gnu_ld=$lt_cv_prog_gnu_ld
10106
# Check if GNU C++ uses GNU ld as the underlying linker, since the
10107
# archiving commands below assume that GNU ld is being used.
10108
if test "$with_gnu_ld" = yes; then
10109
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10110
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'
10112
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10113
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10115
# If archive_cmds runs LD, not CC, wlarc should be empty
10116
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10117
# investigate it a little bit more. (MM)
10120
# ancient GNU ld didn't support --whole-archive et. al.
10121
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10122
grep 'no-whole-archive' > /dev/null; then
10123
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10125
whole_archive_flag_spec_CXX=
10131
# A generic and very simple default shared library creation
10132
# command for GNU C++ for the case where it uses the native
10133
# linker, instead of GNU ld. If possible, this setting should
10134
# overridden to take advantage of the native linker features on
10135
# the platform it is being used on.
10136
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10139
# Commands to make compiler produce verbose output that lists
10140
# what "hidden" libraries, object files and flags are used when
10141
# linking a shared library.
10142
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10150
# PORTME: fill in a description of your system's C++ link characteristics
10151
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10152
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10156
# FIXME: insert proper C++ library support
10160
if test "$host_cpu" = ia64; then
10161
# On IA64, the linker does run time linking by default, so we don't
10162
# have to do anything special.
10163
aix_use_runtimelinking=no
10164
exp_sym_flag='-Bexport'
10167
aix_use_runtimelinking=no
10169
# Test if we are trying to use run time linking or normal
10170
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10171
# need to do runtime linking.
10172
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10173
for ld_flag in $LDFLAGS; do
10176
aix_use_runtimelinking=yes
10183
exp_sym_flag='-bexport'
10184
no_entry_flag='-bnoentry'
10187
# When large executables or shared objects are built, AIX ld can
10188
# have problems creating the table of contents. If linking a library
10189
# or program results in "error TOC overflow" add -mminimal-toc to
10190
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10191
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10193
archive_cmds_CXX=''
10194
hardcode_direct_CXX=yes
10195
hardcode_libdir_separator_CXX=':'
10196
link_all_deplibs_CXX=yes
10198
if test "$GXX" = yes; then
10199
case $host_os in aix4.012|aix4.012.*)
10200
# We only want to do this on AIX 4.2 and lower, the check
10201
# below for broken collect2 doesn't work under 4.3+
10202
collect2name=`${CC} -print-prog-name=collect2`
10203
if test -f "$collect2name" && \
10204
strings "$collect2name" | grep resolve_lib_name >/dev/null
10206
# We have reworked collect2
10207
hardcode_direct_CXX=yes
10209
# We have old collect2
10210
hardcode_direct_CXX=unsupported
10211
# It fails to find uninstalled libraries when the uninstalled
10212
# path is not listed in the libpath. Setting hardcode_minus_L
10213
# to unsupported forces relinking
10214
hardcode_minus_L_CXX=yes
10215
hardcode_libdir_flag_spec_CXX='-L$libdir'
10216
hardcode_libdir_separator_CXX=
10219
shared_flag='-shared'
10222
if test "$host_cpu" = ia64; then
10223
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10224
# chokes on -Wl,-G. The following line is correct:
10227
if test "$aix_use_runtimelinking" = yes; then
10228
shared_flag='${wl}-G'
10230
shared_flag='${wl}-bM:SRE'
10235
# It seems that -bexpall does not export symbols beginning with
10236
# underscore (_), so it is better to generate a list of symbols to export.
10237
always_export_symbols_CXX=yes
10238
if test "$aix_use_runtimelinking" = yes; then
10239
# Warning - without using the other runtime loading flags (-brtl),
10240
# -berok will link without error, but may produce a broken library.
10241
allow_undefined_flag_CXX='-berok'
10242
# Determine the default libpath from the value encoded in an empty executable.
10243
cat >conftest.$ac_ext <<_ACEOF
10246
cat confdefs.h >>conftest.$ac_ext
10247
cat >>conftest.$ac_ext <<_ACEOF
10248
/* end confdefs.h. */
10258
rm -f conftest.$ac_objext conftest$ac_exeext
10259
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10260
(eval $ac_link) 2>conftest.er1
10262
grep -v '^ *+' conftest.er1 >conftest.err
10264
cat conftest.err >&5
10265
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266
(exit $ac_status); } &&
10267
{ ac_try='test -z "$ac_cxx_werror_flag"
10268
|| test ! -s conftest.err'
10269
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10270
(eval $ac_try) 2>&5
10272
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10273
(exit $ac_status); }; } &&
10274
{ ac_try='test -s conftest$ac_exeext'
10275
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10276
(eval $ac_try) 2>&5
10278
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10279
(exit $ac_status); }; }; then
10281
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10283
# Check for a 64-bit object if we didn't find anything.
10284
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; }
10287
echo "$as_me: failed program was:" >&5
10288
sed 's/^/| /' conftest.$ac_ext >&5
10291
rm -f conftest.err conftest.$ac_objext \
10292
conftest$ac_exeext conftest.$ac_ext
10293
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10295
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10297
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"
10299
if test "$host_cpu" = ia64; then
10300
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10301
allow_undefined_flag_CXX="-z nodefs"
10302
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"
10304
# Determine the default libpath from the value encoded in an empty executable.
10305
cat >conftest.$ac_ext <<_ACEOF
10308
cat confdefs.h >>conftest.$ac_ext
10309
cat >>conftest.$ac_ext <<_ACEOF
10310
/* end confdefs.h. */
10320
rm -f conftest.$ac_objext conftest$ac_exeext
10321
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10322
(eval $ac_link) 2>conftest.er1
10324
grep -v '^ *+' conftest.er1 >conftest.err
10326
cat conftest.err >&5
10327
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328
(exit $ac_status); } &&
10329
{ ac_try='test -z "$ac_cxx_werror_flag"
10330
|| test ! -s conftest.err'
10331
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10332
(eval $ac_try) 2>&5
10334
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10335
(exit $ac_status); }; } &&
10336
{ ac_try='test -s conftest$ac_exeext'
10337
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10338
(eval $ac_try) 2>&5
10340
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10341
(exit $ac_status); }; }; then
10343
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10345
# Check for a 64-bit object if we didn't find anything.
10346
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; }
10349
echo "$as_me: failed program was:" >&5
10350
sed 's/^/| /' conftest.$ac_ext >&5
10353
rm -f conftest.err conftest.$ac_objext \
10354
conftest$ac_exeext conftest.$ac_ext
10355
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10357
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10358
# Warning - without using the other run time loading flags,
10359
# -berok will link without error, but may produce a broken library.
10360
no_undefined_flag_CXX=' ${wl}-bernotok'
10361
allow_undefined_flag_CXX=' ${wl}-berok'
10362
# -bexpall does not export symbols beginning with underscore (_)
10363
always_export_symbols_CXX=yes
10364
# Exported symbols can be pulled into shared objects from archives
10365
whole_archive_flag_spec_CXX=' '
10366
archive_cmds_need_lc_CXX=yes
10367
# This is similar to how AIX traditionally builds it's shared libraries.
10368
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'
10373
case $cc_basename in
10375
# FIXME: insert proper C++ library support
10382
cygwin* | mingw* | pw32*)
10383
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10384
# as there is no search path for DLLs.
10385
hardcode_libdir_flag_spec_CXX='-L$libdir'
10386
allow_undefined_flag_CXX=unsupported
10387
always_export_symbols_CXX=no
10388
enable_shared_with_static_runtimes_CXX=yes
10390
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10391
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'
10392
# If the export-symbols file already is a .def file (1st line
10393
# is EXPORTS), use it as is; otherwise, prepend...
10394
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10395
cp $export_symbols $output_objdir/$soname.def;
10397
echo EXPORTS > $output_objdir/$soname.def;
10398
cat $export_symbols >> $output_objdir/$soname.def;
10400
$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'
10405
darwin* | rhapsody*)
10407
rhapsody* | darwin1.[012])
10408
allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10411
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10412
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10414
case ${MACOSX_DEPLOYMENT_TARGET} in
10416
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10419
allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10425
archive_cmds_need_lc_CXX=no
10426
hardcode_direct_CXX=no
10427
hardcode_automatic_CXX=yes
10428
hardcode_shlibpath_var_CXX=unsupported
10429
whole_archive_flag_spec_CXX=''
10430
link_all_deplibs_CXX=yes
10432
if test "$GXX" = yes ; then
10433
lt_int_apple_cc_single_mod=no
10434
output_verbose_link_cmd='echo'
10435
if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10436
lt_int_apple_cc_single_mod=yes
10438
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10439
archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10441
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'
10443
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10444
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10445
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10446
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}'
10448
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}'
10450
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}'
10452
case "$cc_basename" in
10454
output_verbose_link_cmd='echo'
10455
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'
10456
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10457
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10458
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}'
10459
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}'
10469
case $cc_basename in
10471
# FIXME: insert proper C++ library support
10475
# Green Hills C++ Compiler
10476
# FIXME: insert proper C++ library support
10480
# FIXME: insert proper C++ library support
10486
# C++ shared libraries reported to be fairly broken before switch to ELF
10490
archive_cmds_need_lc_CXX=no
10492
freebsd* | kfreebsd*-gnu)
10493
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10500
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10501
hardcode_libdir_separator_CXX=:
10502
export_dynamic_flag_spec_CXX='${wl}-E'
10503
hardcode_direct_CXX=yes
10504
hardcode_minus_L_CXX=yes # Not in the search PATH,
10505
# but as the default
10506
# location of the library.
10508
case $cc_basename in
10510
# FIXME: insert proper C++ library support
10514
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'
10515
# Commands to make compiler produce verbose output that lists
10516
# what "hidden" libraries, object files and flags are used when
10517
# linking a shared library.
10519
# There doesn't appear to be a way to prevent this compiler from
10520
# explicitly linking system object files so we need to strip them
10521
# from the output so that they don't get included in the library
10523
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'
10526
if test "$GXX" = yes; then
10527
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'
10529
# FIXME: insert proper C++ library support
10536
if test $with_gnu_ld = no; then
10537
case "$host_cpu" in
10539
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10540
hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10541
hardcode_libdir_separator_CXX=:
10544
hardcode_libdir_flag_spec_CXX='-L$libdir'
10547
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10548
hardcode_libdir_separator_CXX=:
10549
export_dynamic_flag_spec_CXX='${wl}-E'
10553
case "$host_cpu" in
10555
hardcode_direct_CXX=no
10556
hardcode_shlibpath_var_CXX=no
10559
hardcode_direct_CXX=no
10560
hardcode_shlibpath_var_CXX=no
10561
hardcode_minus_L_CXX=yes # Not in the search PATH,
10562
# but as the default
10563
# location of the library.
10566
hardcode_direct_CXX=yes
10567
hardcode_minus_L_CXX=yes # Not in the search PATH,
10568
# but as the default
10569
# location of the library.
10573
case $cc_basename in
10575
# FIXME: insert proper C++ library support
10579
case "$host_cpu" in
10581
archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10584
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10587
# Commands to make compiler produce verbose output that lists
10588
# what "hidden" libraries, object files and flags are used when
10589
# linking a shared library.
10591
# There doesn't appear to be a way to prevent this compiler from
10592
# explicitly linking system object files so we need to strip them
10593
# from the output so that they don't get included in the library
10595
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'
10598
if test "$GXX" = yes; then
10599
if test $with_gnu_ld = no; then
10600
case "$host_cpu" in
10602
archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10605
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'
10610
# FIXME: insert proper C++ library support
10617
case $cc_basename in
10620
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'
10622
# Archives containing C++ object files must be created using
10623
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
10624
# necessary to make sure instantiated templates are included
10626
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10629
if test "$GXX" = yes; then
10630
if test "$with_gnu_ld" = no; then
10631
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'
10633
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'
10636
link_all_deplibs_CXX=yes
10639
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10640
hardcode_libdir_separator_CXX=:
10643
case $cc_basename in
10645
# Kuck and Associates, Inc. (KAI) C++ Compiler
10647
# KCC will only create a shared library if the output file
10648
# ends with ".so" (or ".sl" for HP-UX), so rename the library
10649
# to its proper name (with version) after linking.
10650
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'
10651
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'
10652
# Commands to make compiler produce verbose output that lists
10653
# what "hidden" libraries, object files and flags are used when
10654
# linking a shared library.
10656
# There doesn't appear to be a way to prevent this compiler from
10657
# explicitly linking system object files so we need to strip them
10658
# from the output so that they don't get included in the library
10660
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'
10662
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10663
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10665
# Archives containing C++ object files must be created using
10666
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10667
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10672
# version 8.0 and above of icpc choke on multiply defined symbols
10673
# if we add $predep_objects and $postdep_objects, however 7.1 and
10674
# earlier do not add the objects themselves.
10675
case `$CC -V 2>&1` in
10677
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10678
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'
10680
*) # Version 8.0 or newer
10681
archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10682
archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10685
archive_cmds_need_lc_CXX=no
10686
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10687
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10688
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10692
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10693
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'
10695
runpath_var=LD_RUN_PATH
10696
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10697
hardcode_libdir_separator_CXX=:
10699
# Commands to make compiler produce verbose output that lists
10700
# what "hidden" libraries, object files and flags are used when
10701
# linking a shared library.
10703
# There doesn't appear to be a way to prevent this compiler from
10704
# explicitly linking system object files so we need to strip them
10705
# from the output so that they don't get included in the library
10707
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'
10712
# FIXME: insert proper C++ library support
10716
# FIXME: insert proper C++ library support
10720
case $cc_basename in
10722
# FIXME: insert proper C++ library support
10726
# FIXME: insert proper C++ library support
10732
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10733
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10735
hardcode_libdir_flag_spec_CXX='-R$libdir'
10736
hardcode_direct_CXX=yes
10737
hardcode_shlibpath_var_CXX=no
10739
# Workaround some broken pre-1.5 toolchains
10740
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10743
# C++ shared libraries are fairly broken
10747
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10748
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10749
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10750
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10751
export_dynamic_flag_spec_CXX='${wl}-E'
10752
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10754
output_verbose_link_cmd='echo'
10757
case $cc_basename in
10759
# Kuck and Associates, Inc. (KAI) C++ Compiler
10761
# KCC will only create a shared library if the output file
10762
# ends with ".so" (or ".sl" for HP-UX), so rename the library
10763
# to its proper name (with version) after linking.
10764
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'
10766
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10767
hardcode_libdir_separator_CXX=:
10769
# Archives containing C++ object files must be created using
10770
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10771
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10775
# Rational C++ 2.4.1
10776
# FIXME: insert proper C++ library support
10780
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10781
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'
10783
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10784
hardcode_libdir_separator_CXX=:
10786
# Commands to make compiler produce verbose output that lists
10787
# what "hidden" libraries, object files and flags are used when
10788
# linking a shared library.
10790
# There doesn't appear to be a way to prevent this compiler from
10791
# explicitly linking system object files so we need to strip them
10792
# from the output so that they don't get included in the library
10794
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'
10797
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10798
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10799
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'
10801
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10802
hardcode_libdir_separator_CXX=:
10804
# Commands to make compiler produce verbose output that lists
10805
# what "hidden" libraries, object files and flags are used when
10806
# linking a shared library.
10807
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10810
# FIXME: insert proper C++ library support
10817
case $cc_basename in
10819
# Kuck and Associates, Inc. (KAI) C++ Compiler
10821
# KCC will only create a shared library if the output file
10822
# ends with ".so" (or ".sl" for HP-UX), so rename the library
10823
# to its proper name (with version) after linking.
10824
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'
10826
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10827
hardcode_libdir_separator_CXX=:
10829
# Archives containing C++ object files must be created using
10830
# the KAI C++ compiler.
10831
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10834
# Rational C++ 2.4.1
10835
# FIXME: insert proper C++ library support
10839
allow_undefined_flag_CXX=' -expect_unresolved \*'
10840
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'
10841
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10842
echo "-hidden">> $lib.exp~
10843
$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~
10846
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10847
hardcode_libdir_separator_CXX=:
10849
# Commands to make compiler produce verbose output that lists
10850
# what "hidden" libraries, object files and flags are used when
10851
# linking a shared library.
10853
# There doesn't appear to be a way to prevent this compiler from
10854
# explicitly linking system object files so we need to strip them
10855
# from the output so that they don't get included in the library
10857
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'
10860
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10861
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10862
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'
10864
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10865
hardcode_libdir_separator_CXX=:
10867
# Commands to make compiler produce verbose output that lists
10868
# what "hidden" libraries, object files and flags are used when
10869
# linking a shared library.
10870
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10873
# FIXME: insert proper C++ library support
10880
# FIXME: insert proper C++ library support
10884
archive_cmds_need_lc_CXX=no
10885
case $cc_basename in
10887
# FIXME: insert proper C++ library support
10891
# FIXME: insert proper C++ library support
10897
case $cc_basename in
10900
# FIXME: insert proper C++ library support
10905
# FIXME: insert proper C++ library support
10909
# FIXME: insert proper C++ library support
10915
case $cc_basename in
10917
# Sun C++ 4.2, 5.x and Centerline C++
10918
no_undefined_flag_CXX=' -zdefs'
10919
archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10920
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10921
$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'
10923
hardcode_libdir_flag_spec_CXX='-R$libdir'
10924
hardcode_shlibpath_var_CXX=no
10926
solaris2.0-5 | solaris2.0-5.*) ;;
10928
# The C++ compiler is used as linker so we must use $wl
10929
# flag to pass the commands to the underlying system
10931
# Supported since Solaris 2.6 (maybe 2.5.1?)
10932
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10935
link_all_deplibs_CXX=yes
10937
# Commands to make compiler produce verbose output that lists
10938
# what "hidden" libraries, object files and flags are used when
10939
# linking a shared library.
10941
# There doesn't appear to be a way to prevent this compiler from
10942
# explicitly linking system object files so we need to strip them
10943
# from the output so that they don't get included in the library
10945
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'
10947
# Archives containing C++ object files must be created using
10948
# "CC -xar", where "CC" is the Sun C++ compiler. This is
10949
# necessary to make sure instantiated templates are included
10951
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10954
# Green Hills C++ Compiler
10955
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10957
# The C++ compiler must be used to create the archive.
10958
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10961
# GNU C++ compiler with Solaris linker
10962
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10963
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10964
if $CC --version | grep -v '^2\.7' > /dev/null; then
10965
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10966
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10967
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10969
# Commands to make compiler produce verbose output that lists
10970
# what "hidden" libraries, object files and flags are used when
10971
# linking a shared library.
10972
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10974
# g++ 2.7 appears to require `-G' NOT `-shared' on this
10976
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10977
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10978
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10980
# Commands to make compiler produce verbose output that lists
10981
# what "hidden" libraries, object files and flags are used when
10982
# linking a shared library.
10983
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10986
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10991
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10992
archive_cmds_need_lc_CXX=no
10995
case $cc_basename in
10997
# NonStop-UX NCC 3.20
10998
# FIXME: insert proper C++ library support
11002
# FIXME: insert proper C++ library support
11008
# FIXME: insert proper C++ library support
11012
# FIXME: insert proper C++ library support
11016
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11017
echo "${ECHO_T}$ld_shlibs_CXX" >&6
11018
test "$ld_shlibs_CXX" = no && can_build_shared=no
11024
cat > conftest.$ac_ext <<EOF
11028
Foo (void) { a = 0; }
11034
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11035
(eval $ac_compile) 2>&5
11037
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11038
(exit $ac_status); }; then
11039
# Parse the compiler output and extract the necessary
11040
# objects, libraries and library flags.
11042
# Sentinel used to keep track of whether or not we are before
11043
# the conftest object file.
11044
pre_test_object_deps_done=no
11046
# The `*' in the case matches for architectures that use `case' in
11047
# $output_verbose_cmd can trigger glob expansion during the loop
11048
# eval without this substitution.
11049
output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
11051
for p in `eval $output_verbose_link_cmd`; do
11055
# Some compilers place space between "-{L,R}" and the path.
11056
# Remove the space.
11057
if test $p = "-L" \
11058
|| test $p = "-R"; then
11065
if test "$pre_test_object_deps_done" = no; then
11068
# Internal compiler library paths should come after those
11069
# provided the user. The postdeps already come after the
11070
# user supplied libs so there is no need to process them.
11071
if test -z "$compiler_lib_search_path_CXX"; then
11072
compiler_lib_search_path_CXX="${prev}${p}"
11074
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11077
# The "-l" case would never come before the object being
11078
# linked, so don't bother handling this case.
11081
if test -z "$postdeps_CXX"; then
11082
postdeps_CXX="${prev}${p}"
11084
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11090
# This assumes that the test object file only shows up
11091
# once in the compiler output.
11092
if test "$p" = "conftest.$objext"; then
11093
pre_test_object_deps_done=yes
11097
if test "$pre_test_object_deps_done" = no; then
11098
if test -z "$predep_objects_CXX"; then
11099
predep_objects_CXX="$p"
11101
predep_objects_CXX="$predep_objects_CXX $p"
11104
if test -z "$postdep_objects_CXX"; then
11105
postdep_objects_CXX="$p"
11107
postdep_objects_CXX="$postdep_objects_CXX $p"
11112
*) ;; # Ignore the rest.
11120
echo "libtool.m4: error: problem compiling CXX test program"
11123
$rm -f confest.$objext
11125
case " $postdeps_CXX " in
11126
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11129
lt_prog_compiler_wl_CXX=
11130
lt_prog_compiler_pic_CXX=
11131
lt_prog_compiler_static_CXX=
11133
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11134
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11136
# C++ specific cases for pic, static, wl, etc.
11137
if test "$GXX" = yes; then
11138
lt_prog_compiler_wl_CXX='-Wl,'
11139
lt_prog_compiler_static_CXX='-static'
11143
# All AIX code is PIC.
11144
if test "$host_cpu" = ia64; then
11145
# AIX 5 now supports IA64 processor
11146
lt_prog_compiler_static_CXX='-Bstatic'
11150
# FIXME: we need at least 68020 code to build shared libraries, but
11151
# adding the `-m68020' flag to GCC prevents building anything better,
11153
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11155
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11156
# PIC is the default for these OSes.
11158
mingw* | os2* | pw32*)
11159
# This hack is so that the source file can tell whether it is being
11160
# built for inclusion in a dll (and should export symbols for example).
11161
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11163
darwin* | rhapsody*)
11164
# PIC is the default on this platform
11165
# Common symbols not allowed in MH_DYLIB files
11166
lt_prog_compiler_pic_CXX='-fno-common'
11169
# DJGPP does not support shared libraries at all
11170
lt_prog_compiler_pic_CXX=
11173
if test -d /usr/nec; then
11174
lt_prog_compiler_pic_CXX=-Kconform_pic
11178
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11179
# not for PA HP-UX.
11180
case "$host_cpu" in
11184
lt_prog_compiler_pic_CXX='-fPIC'
11189
lt_prog_compiler_pic_CXX='-fPIC'
11195
# All AIX code is PIC.
11196
if test "$host_cpu" = ia64; then
11197
# AIX 5 now supports IA64 processor
11198
lt_prog_compiler_static_CXX='-Bstatic'
11200
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11204
case $cc_basename in
11206
# Green Hills C++ Compiler
11207
# _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"
11212
# PIC is the default on this platform
11213
# Common symbols not allowed in MH_DYLIB files
11214
case "$cc_basename" in
11216
lt_prog_compiler_pic_CXX='-qnocommon'
11217
lt_prog_compiler_wl_CXX='-Wl,'
11222
case $cc_basename in
11224
lt_prog_compiler_pic_CXX='-KPIC'
11227
# Green Hills C++ Compiler
11228
lt_prog_compiler_pic_CXX='-pic'
11234
freebsd* | kfreebsd*-gnu)
11235
# FreeBSD uses GNU C++
11237
hpux9* | hpux10* | hpux11*)
11238
case $cc_basename in
11240
lt_prog_compiler_wl_CXX='-Wl,'
11241
lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11242
if test "$host_cpu" != ia64; then
11243
lt_prog_compiler_pic_CXX='+Z'
11247
lt_prog_compiler_wl_CXX='-Wl,'
11248
lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11249
case "$host_cpu" in
11254
lt_prog_compiler_pic_CXX='+Z'
11262
irix5* | irix6* | nonstopux*)
11263
case $cc_basename in
11265
lt_prog_compiler_wl_CXX='-Wl,'
11266
lt_prog_compiler_static_CXX='-non_shared'
11267
# CC pic flag -KPIC is the default.
11274
case $cc_basename in
11277
lt_prog_compiler_wl_CXX='--backend -Wl,'
11278
lt_prog_compiler_pic_CXX='-fPIC'
11282
lt_prog_compiler_wl_CXX='-Wl,'
11283
lt_prog_compiler_pic_CXX='-KPIC'
11284
lt_prog_compiler_static_CXX='-static'
11288
# Make sure the PIC flag is empty. It appears that all Alpha
11289
# Linux and Compaq Tru64 Unix objects are PIC.
11290
lt_prog_compiler_pic_CXX=
11291
lt_prog_compiler_static_CXX='-non_shared'
11302
case $cc_basename in
11304
lt_prog_compiler_pic_CXX='-W c,exportall'
11312
osf3* | osf4* | osf5*)
11313
case $cc_basename in
11315
lt_prog_compiler_wl_CXX='--backend -Wl,'
11318
# Rational C++ 2.4.1
11319
lt_prog_compiler_pic_CXX='-pic'
11322
# Digital/Compaq C++
11323
lt_prog_compiler_wl_CXX='-Wl,'
11324
# Make sure the PIC flag is empty. It appears that all Alpha
11325
# Linux and Compaq Tru64 Unix objects are PIC.
11326
lt_prog_compiler_pic_CXX=
11327
lt_prog_compiler_static_CXX='-non_shared'
11336
case $cc_basename in
11338
lt_prog_compiler_pic_CXX='-fPIC'
11345
case $cc_basename in
11347
# Sun C++ 4.2, 5.x and Centerline C++
11348
lt_prog_compiler_pic_CXX='-KPIC'
11349
lt_prog_compiler_static_CXX='-Bstatic'
11350
lt_prog_compiler_wl_CXX='-Qoption ld '
11353
# Green Hills C++ Compiler
11354
lt_prog_compiler_pic_CXX='-PIC'
11361
case $cc_basename in
11364
lt_prog_compiler_pic_CXX='-pic'
11365
lt_prog_compiler_static_CXX='-Bstatic'
11369
lt_prog_compiler_pic_CXX='-pic'
11376
case $cc_basename in
11378
# NonStop-UX NCC 3.20
11379
lt_prog_compiler_pic_CXX='-KPIC'
11390
lt_prog_compiler_can_build_shared_CXX=no
11395
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11396
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11399
# Check to make sure the PIC flag actually works.
11401
if test -n "$lt_prog_compiler_pic_CXX"; then
11403
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11404
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11405
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11406
echo $ECHO_N "(cached) $ECHO_C" >&6
11408
lt_prog_compiler_pic_works_CXX=no
11409
ac_outfile=conftest.$ac_objext
11410
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11411
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11412
# Insert the option either (1) after the last *FLAGS variable, or
11413
# (2) before a word containing "conftest.", or (3) at the end.
11414
# Note that $ac_compile itself does not contain backslashes and begins
11415
# with a dollar sign (not a hyphen), so the echo should work correctly.
11416
# The option is referenced via a variable to avoid confusing sed.
11417
lt_compile=`echo "$ac_compile" | $SED \
11418
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11419
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11420
-e 's:$: $lt_compiler_flag:'`
11421
(eval echo "\"\$as_me:11421: $lt_compile\"" >&5)
11422
(eval "$lt_compile" 2>conftest.err)
11424
cat conftest.err >&5
11425
echo "$as_me:11425: \$? = $ac_status" >&5
11426
if (exit $ac_status) && test -s "$ac_outfile"; then
11427
# The compiler can only warn and ignore the option if not recognized
11428
# So say no if there are warnings
11429
if test ! -s conftest.err; then
11430
lt_prog_compiler_pic_works_CXX=yes
11436
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11437
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11439
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11440
case $lt_prog_compiler_pic_CXX in
11442
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11445
lt_prog_compiler_pic_CXX=
11446
lt_prog_compiler_can_build_shared_CXX=no
11451
# For platforms which do not support PIC, -DPIC is meaningless:
11453
lt_prog_compiler_pic_CXX=
11456
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11460
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11461
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11462
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11463
echo $ECHO_N "(cached) $ECHO_C" >&6
11465
lt_cv_prog_compiler_c_o_CXX=no
11466
$rm -r conftest 2>/dev/null
11470
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11472
lt_compiler_flag="-o out/conftest2.$ac_objext"
11473
# Insert the option either (1) after the last *FLAGS variable, or
11474
# (2) before a word containing "conftest.", or (3) at the end.
11475
# Note that $ac_compile itself does not contain backslashes and begins
11476
# with a dollar sign (not a hyphen), so the echo should work correctly.
11477
lt_compile=`echo "$ac_compile" | $SED \
11478
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11479
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11480
-e 's:$: $lt_compiler_flag:'`
11481
(eval echo "\"\$as_me:11481: $lt_compile\"" >&5)
11482
(eval "$lt_compile" 2>out/conftest.err)
11484
cat out/conftest.err >&5
11485
echo "$as_me:11485: \$? = $ac_status" >&5
11486
if (exit $ac_status) && test -s out/conftest2.$ac_objext
11488
# The compiler can only warn and ignore the option if not recognized
11489
# So say no if there are warnings
11490
if test ! -s out/conftest.err; then
11491
lt_cv_prog_compiler_c_o_CXX=yes
11496
# SGI C++ compiler will create directory out/ii_files/ for
11497
# template instantiation
11498
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11499
$rm out/* && rmdir out
11505
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11506
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11509
hard_links="nottested"
11510
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11511
# do not overwrite the value of need_locks provided by the user
11512
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11513
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11516
ln conftest.a conftest.b 2>/dev/null && hard_links=no
11518
ln conftest.a conftest.b 2>&5 || hard_links=no
11519
ln conftest.a conftest.b 2>/dev/null && hard_links=no
11520
echo "$as_me:$LINENO: result: $hard_links" >&5
11521
echo "${ECHO_T}$hard_links" >&6
11522
if test "$hard_links" = no; then
11523
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11524
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11531
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11532
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11534
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11537
# If we're using GNU nm, then we don't want the "-C" option.
11538
# -C means demangle to AIX nm, but means don't demangle with GNU nm
11539
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11540
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'
11542
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'
11546
export_symbols_cmds_CXX="$ltdll_cmds"
11549
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11552
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11556
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11557
echo "${ECHO_T}$ld_shlibs_CXX" >&6
11558
test "$ld_shlibs_CXX" = no && can_build_shared=no
11560
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11561
if test "$GCC" = yes; then
11562
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11566
# Do we need to explicitly link libc?
11568
case "x$archive_cmds_need_lc_CXX" in
11570
# Assume -lc should be added
11571
archive_cmds_need_lc_CXX=yes
11573
if test "$enable_shared" = yes && test "$GCC" = yes; then
11574
case $archive_cmds_CXX in
11576
# FIXME: we may have to deal with multi-command sequences.
11579
# Test whether the compiler implicitly links with -lc since on some
11580
# systems, -lgcc has to come before -lc. If gcc already passes -lc
11581
# to ld, don't add -lc before -lgcc.
11582
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11583
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11585
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11587
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11588
(eval $ac_compile) 2>&5
11590
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11591
(exit $ac_status); } 2>conftest.err; then
11594
libobjs=conftest.$ac_objext
11596
wl=$lt_prog_compiler_wl_CXX
11602
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11603
allow_undefined_flag_CXX=
11604
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11605
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11607
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11608
(exit $ac_status); }
11610
archive_cmds_need_lc_CXX=no
11612
archive_cmds_need_lc_CXX=yes
11614
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11616
cat conftest.err 1>&5
11619
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11620
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11627
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11628
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11629
library_names_spec=
11630
libname_spec='lib$name'
11634
postuninstall_cmds=
11638
shlibpath_overrides_runpath=unknown
11640
dynamic_linker="$host_os ld.so"
11641
sys_lib_dlsearch_path_spec="/lib /usr/lib"
11642
if test "$GCC" = yes; then
11643
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11644
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11645
# if the path contains ";" then we assume it to be the separator
11646
# otherwise default to the standard path separator (i.e. ":") - it is
11647
# assumed that no part of a normal pathname contains ";" but that should
11648
# okay in the real world where ";" in dirpaths is itself problematic.
11649
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11651
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11654
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11656
need_lib_prefix=unknown
11657
hardcode_into_libs=no
11659
# when you set need_version to no, make sure it does not cause -set_version
11660
# flags to be left without arguments
11661
need_version=unknown
11666
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11667
shlibpath_var=LIBPATH
11669
# AIX 3 has no versioning support, so we append a major version to the name.
11670
soname_spec='${libname}${release}${shared_ext}$major'
11677
hardcode_into_libs=yes
11678
if test "$host_cpu" = ia64; then
11679
# AIX 5 supports IA64
11680
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11681
shlibpath_var=LD_LIBRARY_PATH
11683
# With GCC up to 2.95.x, collect2 would create an import file
11684
# for dependence libraries. The import file would start with
11685
# the line `#! .'. This would cause the generated library to
11686
# depend on `.', always an invalid library. This was fixed in
11687
# development snapshots of GCC prior to 3.0.
11689
aix4 | aix4.[01] | aix4.[01].*)
11690
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11692
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11695
can_build_shared=no
11699
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11700
# soname into executable. Probably we can add versioning support to
11701
# collect2, so additional links can be useful in future.
11702
if test "$aix_use_runtimelinking" = yes; then
11703
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
11704
# instead of lib<name>.a to let people know that these are not
11705
# typical AIX shared libraries.
11706
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11708
# We preserve .a as extension for shared libraries through AIX4.2
11709
# and later when we are not doing run time linking.
11710
library_names_spec='${libname}${release}.a $libname.a'
11711
soname_spec='${libname}${release}${shared_ext}$major'
11713
shlibpath_var=LIBPATH
11718
library_names_spec='$libname.ixlibrary $libname.a'
11719
# Create ${libname}_ixlibrary.a entries in /sys/libs.
11720
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'
11724
library_names_spec='${libname}${shared_ext}'
11725
dynamic_linker="$host_os ld.so"
11726
shlibpath_var=LIBRARY_PATH
11732
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11733
soname_spec='${libname}${release}${shared_ext}$major'
11734
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11735
shlibpath_var=LD_LIBRARY_PATH
11736
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11737
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11738
# the default ld.so.conf also contains /usr/contrib/lib and
11739
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11740
# libtool to hard-code these into programs
11743
cygwin* | mingw* | pw32*)
11744
version_type=windows
11749
case $GCC,$host_os in
11750
yes,cygwin* | yes,mingw* | yes,pw32*)
11751
library_names_spec='$libname.dll.a'
11752
# DLL is installed to $(libdir)/../bin by postinstall_cmds
11753
postinstall_cmds='base_file=`basename \${file}`~
11754
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11755
dldir=$destdir/`dirname \$dlpath`~
11756
test -d \$dldir || mkdir -p \$dldir~
11757
$install_prog $dir/$dlname \$dldir/$dlname'
11758
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11759
dlpath=$dir/\$dldll~
11761
shlibpath_overrides_runpath=yes
11765
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
11766
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11767
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11770
# MinGW DLLs use traditional 'lib' prefix
11771
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11772
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11773
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11774
# It is most probably a Windows format PATH printed by
11775
# mingw gcc, but we are running on Cygwin. Gcc prints its search
11776
# path with ; separators, and with drive letters. We can handle the
11777
# drive letters (cygwin fileutils understands them), so leave them,
11778
# especially as we might pass files found there to a mingw objdump,
11779
# which wouldn't understand a cygwinified path. Ahh.
11780
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11782
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11786
# pw32 DLLs use 'pw' prefix rather than 'lib'
11787
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11793
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11796
dynamic_linker='Win32 ld.exe'
11797
# FIXME: first we should search . and the directory the executable is in
11801
darwin* | rhapsody*)
11802
dynamic_linker="$host_os dyld"
11803
version_type=darwin
11806
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11807
soname_spec='${libname}${release}${major}$shared_ext'
11808
shlibpath_overrides_runpath=yes
11809
shlibpath_var=DYLD_LIBRARY_PATH
11810
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11811
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11812
if test "$GCC" = yes; then
11813
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"`
11815
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11817
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11824
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11825
soname_spec='${libname}${release}${shared_ext}$major'
11826
shlibpath_var=LD_LIBRARY_PATH
11837
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11838
soname_spec='${libname}${release}${shared_ext}$major'
11839
shlibpath_var=LD_LIBRARY_PATH
11840
shlibpath_overrides_runpath=no
11841
hardcode_into_libs=yes
11842
dynamic_linker='GNU ld.so'
11846
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11847
version_type=freebsd-$objformat
11848
case $version_type in
11850
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11855
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11859
shlibpath_var=LD_LIBRARY_PATH
11862
shlibpath_overrides_runpath=yes
11864
freebsd3.01* | freebsdelf3.01*)
11865
shlibpath_overrides_runpath=yes
11866
hardcode_into_libs=yes
11869
shlibpath_overrides_runpath=no
11870
hardcode_into_libs=yes
11879
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11880
soname_spec='${libname}${release}${shared_ext}$major'
11881
shlibpath_var=LD_LIBRARY_PATH
11882
hardcode_into_libs=yes
11885
hpux9* | hpux10* | hpux11*)
11886
# Give a soname corresponding to the major version so that dld.sl refuses to
11887
# link against other versions.
11891
case "$host_cpu" in
11894
hardcode_into_libs=yes
11895
dynamic_linker="$host_os dld.so"
11896
shlibpath_var=LD_LIBRARY_PATH
11897
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11898
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11899
soname_spec='${libname}${release}${shared_ext}$major'
11900
if test "X$HPUX_IA64_MODE" = X32; then
11901
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11903
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11905
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11909
hardcode_into_libs=yes
11910
dynamic_linker="$host_os dld.sl"
11911
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11912
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11913
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11914
soname_spec='${libname}${release}${shared_ext}$major'
11915
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11916
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11920
dynamic_linker="$host_os dld.sl"
11921
shlibpath_var=SHLIB_PATH
11922
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11923
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11924
soname_spec='${libname}${release}${shared_ext}$major'
11927
# HP-UX runs *really* slowly unless shared libraries are mode 555.
11928
postinstall_cmds='chmod 555 $lib'
11931
irix5* | irix6* | nonstopux*)
11933
nonstopux*) version_type=nonstopux ;;
11935
if test "$lt_cv_prog_gnu_ld" = yes; then
11943
soname_spec='${libname}${release}${shared_ext}$major'
11944
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11946
irix5* | nonstopux*)
11947
libsuff= shlibsuff=
11950
case $LD in # libtool.m4 will add one of these switches to LD
11951
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11952
libsuff= shlibsuff= libmagic=32-bit;;
11953
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11954
libsuff=32 shlibsuff=N32 libmagic=N32;;
11955
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11956
libsuff=64 shlibsuff=64 libmagic=64-bit;;
11957
*) libsuff= shlibsuff= libmagic=never-match;;
11961
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11962
shlibpath_overrides_runpath=no
11963
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11964
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11965
hardcode_into_libs=yes
11968
# No shared lib support for Linux oldld, aout, or coff.
11969
linux*oldld* | linux*aout* | linux*coff*)
11973
# This must be Linux ELF.
11978
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11979
soname_spec='${libname}${release}${shared_ext}$major'
11980
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11981
shlibpath_var=LD_LIBRARY_PATH
11982
shlibpath_overrides_runpath=no
11983
# This implies no fast_install, which is unacceptable.
11984
# Some rework will be needed to allow for fast_install
11985
# before this can be enabled.
11986
hardcode_into_libs=yes
11988
# find out which ABI we are using
11990
case "$host_cpu" in
11991
x86_64*|s390x*|powerpc64*)
11992
echo '#line 11992 "configure"' > conftest.$ac_ext
11993
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11994
(eval $ac_compile) 2>&5
11996
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11997
(exit $ac_status); }; then
11998
case `/usr/bin/file conftest.$ac_objext` in
12001
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12009
# Append ld.so.conf contents to the search path
12010
if test -f /etc/ld.so.conf; then
12011
lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
12012
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12015
# We used to test for /lib/ld.so.1 and disable shared libraries on
12016
# powerpc, because MkLinux only supported shared libraries with the
12017
# GNU dynamic linker. Since this was broken with cross compilers,
12018
# most powerpc-linux boxes support dynamic linking these days and
12019
# people can always --disable-shared, the test was removed, and we
12020
# assume the GNU/Linux dynamic linker is in use.
12021
dynamic_linker='GNU/Linux ld.so'
12028
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12029
soname_spec='${libname}${release}${shared_ext}$major'
12030
shlibpath_var=LD_LIBRARY_PATH
12031
shlibpath_overrides_runpath=no
12032
hardcode_into_libs=yes
12033
dynamic_linker='GNU ld.so'
12040
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12041
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12042
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12043
dynamic_linker='NetBSD (a.out) ld.so'
12045
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12046
soname_spec='${libname}${release}${shared_ext}$major'
12047
dynamic_linker='NetBSD ld.elf_so'
12049
shlibpath_var=LD_LIBRARY_PATH
12050
shlibpath_overrides_runpath=yes
12051
hardcode_into_libs=yes
12056
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12057
shlibpath_var=LD_LIBRARY_PATH
12058
shlibpath_overrides_runpath=yes
12065
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12066
soname_spec='${libname}${release}${shared_ext}$major'
12067
shlibpath_var=LD_LIBRARY_PATH
12068
shlibpath_overrides_runpath=yes
12075
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12076
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12077
shlibpath_var=LD_LIBRARY_PATH
12078
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12080
openbsd2.[89] | openbsd2.[89].*)
12081
shlibpath_overrides_runpath=no
12084
shlibpath_overrides_runpath=yes
12088
shlibpath_overrides_runpath=yes
12093
libname_spec='$name'
12096
library_names_spec='$libname${shared_ext} $libname.a'
12097
dynamic_linker='OS/2 ld.exe'
12098
shlibpath_var=LIBPATH
12101
osf3* | osf4* | osf5*)
12105
soname_spec='${libname}${release}${shared_ext}$major'
12106
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12107
shlibpath_var=LD_LIBRARY_PATH
12108
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12109
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12114
soname_spec='${libname}${release}${shared_ext}$major'
12115
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12116
shlibpath_var=LD_LIBRARY_PATH
12123
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12124
soname_spec='${libname}${release}${shared_ext}$major'
12125
shlibpath_var=LD_LIBRARY_PATH
12126
shlibpath_overrides_runpath=yes
12127
hardcode_into_libs=yes
12128
# ldd complains unless libraries are executable
12129
postinstall_cmds='chmod +x $lib'
12134
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12135
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12136
shlibpath_var=LD_LIBRARY_PATH
12137
shlibpath_overrides_runpath=yes
12138
if test "$with_gnu_ld" = yes; then
12144
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12146
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12147
soname_spec='${libname}${release}${shared_ext}$major'
12148
shlibpath_var=LD_LIBRARY_PATH
12149
case $host_vendor in
12151
shlibpath_overrides_runpath=no
12153
export_dynamic_flag_spec='${wl}-Blargedynsym'
12154
runpath_var=LD_RUN_PATH
12162
shlibpath_overrides_runpath=no
12163
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12169
if test -d /usr/nec ;then
12171
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12172
soname_spec='$libname${shared_ext}.$major'
12173
shlibpath_var=LD_LIBRARY_PATH
12179
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12180
soname_spec='${libname}${release}${shared_ext}$major'
12181
shlibpath_var=LD_LIBRARY_PATH
12188
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12189
echo "${ECHO_T}$dynamic_linker" >&6
12190
test "$dynamic_linker" = no && can_build_shared=no
12192
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12193
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12194
hardcode_action_CXX=
12195
if test -n "$hardcode_libdir_flag_spec_CXX" || \
12196
test -n "$runpath_var_CXX" || \
12197
test "X$hardcode_automatic_CXX" = "Xyes" ; then
12199
# We can hardcode non-existant directories.
12200
if test "$hardcode_direct_CXX" != no &&
12201
# If the only mechanism to avoid hardcoding is shlibpath_var, we
12202
# have to relink, otherwise we might link with an installed library
12203
# when we should be linking with a yet-to-be-installed one
12204
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12205
test "$hardcode_minus_L_CXX" != no; then
12206
# Linking always hardcodes the temporary library directory.
12207
hardcode_action_CXX=relink
12209
# We can link without hardcoding, and we can hardcode nonexisting dirs.
12210
hardcode_action_CXX=immediate
12213
# We cannot hardcode anything, or else we can only hardcode existing
12215
hardcode_action_CXX=unsupported
12217
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12218
echo "${ECHO_T}$hardcode_action_CXX" >&6
12220
if test "$hardcode_action_CXX" = relink; then
12221
# Fast installation is not supported
12222
enable_fast_install=no
12223
elif test "$shlibpath_overrides_runpath" = yes ||
12224
test "$enable_shared" = no; then
12225
# Fast installation is not necessary
12226
enable_fast_install=needless
12231
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12232
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12233
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12234
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12235
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12236
echo "$as_me:$LINENO: result: yes" >&5
12237
echo "${ECHO_T}yes" >&6
12239
# FIXME - insert some real tests, host_os isn't really good enough
12242
if test -n "$STRIP" ; then
12243
striplib="$STRIP -x"
12244
echo "$as_me:$LINENO: result: yes" >&5
12245
echo "${ECHO_T}yes" >&6
12247
echo "$as_me:$LINENO: result: no" >&5
12248
echo "${ECHO_T}no" >&6
12252
echo "$as_me:$LINENO: result: no" >&5
12253
echo "${ECHO_T}no" >&6
12258
if test "x$enable_dlopen" != xyes; then
12259
enable_dlopen=unknown
12260
enable_dlopen_self=unknown
12261
enable_dlopen_self_static=unknown
12268
lt_cv_dlopen="load_add_on"
12270
lt_cv_dlopen_self=yes
12274
lt_cv_dlopen="LoadLibrary"
12279
lt_cv_dlopen="dlopen"
12284
# if libdl is installed we need to link against it
12285
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12286
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12287
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12288
echo $ECHO_N "(cached) $ECHO_C" >&6
12290
ac_check_lib_save_LIBS=$LIBS
12292
cat >conftest.$ac_ext <<_ACEOF
12295
cat confdefs.h >>conftest.$ac_ext
12296
cat >>conftest.$ac_ext <<_ACEOF
12297
/* end confdefs.h. */
12299
/* Override any gcc2 internal prototype to avoid an error. */
12303
/* We use char because int might match the return type of a gcc2
12304
builtin and then its argument prototype would still apply. */
12314
rm -f conftest.$ac_objext conftest$ac_exeext
12315
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12316
(eval $ac_link) 2>conftest.er1
12318
grep -v '^ *+' conftest.er1 >conftest.err
12320
cat conftest.err >&5
12321
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12322
(exit $ac_status); } &&
12323
{ ac_try='test -z "$ac_cxx_werror_flag"
12324
|| test ! -s conftest.err'
12325
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12326
(eval $ac_try) 2>&5
12328
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12329
(exit $ac_status); }; } &&
12330
{ ac_try='test -s conftest$ac_exeext'
12331
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12332
(eval $ac_try) 2>&5
12334
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12335
(exit $ac_status); }; }; then
12336
ac_cv_lib_dl_dlopen=yes
12338
echo "$as_me: failed program was:" >&5
12339
sed 's/^/| /' conftest.$ac_ext >&5
12341
ac_cv_lib_dl_dlopen=no
12343
rm -f conftest.err conftest.$ac_objext \
12344
conftest$ac_exeext conftest.$ac_ext
12345
LIBS=$ac_check_lib_save_LIBS
12347
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12348
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12349
if test $ac_cv_lib_dl_dlopen = yes; then
12350
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12353
lt_cv_dlopen="dyld"
12355
lt_cv_dlopen_self=yes
12362
echo "$as_me:$LINENO: checking for shl_load" >&5
12363
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12364
if test "${ac_cv_func_shl_load+set}" = set; then
12365
echo $ECHO_N "(cached) $ECHO_C" >&6
12367
cat >conftest.$ac_ext <<_ACEOF
12370
cat confdefs.h >>conftest.$ac_ext
12371
cat >>conftest.$ac_ext <<_ACEOF
12372
/* end confdefs.h. */
12373
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12374
For example, HP-UX 11i <limits.h> declares gettimeofday. */
12375
#define shl_load innocuous_shl_load
12377
/* System header to define __stub macros and hopefully few prototypes,
12378
which can conflict with char shl_load (); below.
12379
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12380
<limits.h> exists even on freestanding compilers. */
12383
# include <limits.h>
12385
# include <assert.h>
12390
/* Override any gcc2 internal prototype to avoid an error. */
12395
/* We use char because int might match the return type of a gcc2
12396
builtin and then its argument prototype would still apply. */
12398
/* The GNU C library defines this for functions which it implements
12399
to always fail with ENOSYS. Some functions are actually named
12400
something starting with __ and the normal name is an alias. */
12401
#if defined (__stub_shl_load) || defined (__stub___shl_load)
12404
char (*f) () = shl_load;
12413
return f != shl_load;
12418
rm -f conftest.$ac_objext conftest$ac_exeext
12419
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12420
(eval $ac_link) 2>conftest.er1
12422
grep -v '^ *+' conftest.er1 >conftest.err
12424
cat conftest.err >&5
12425
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426
(exit $ac_status); } &&
12427
{ ac_try='test -z "$ac_cxx_werror_flag"
12428
|| test ! -s conftest.err'
12429
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12430
(eval $ac_try) 2>&5
12432
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12433
(exit $ac_status); }; } &&
12434
{ ac_try='test -s conftest$ac_exeext'
12435
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12436
(eval $ac_try) 2>&5
12438
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12439
(exit $ac_status); }; }; then
12440
ac_cv_func_shl_load=yes
12442
echo "$as_me: failed program was:" >&5
12443
sed 's/^/| /' conftest.$ac_ext >&5
12445
ac_cv_func_shl_load=no
12447
rm -f conftest.err conftest.$ac_objext \
12448
conftest$ac_exeext conftest.$ac_ext
12450
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12451
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12452
if test $ac_cv_func_shl_load = yes; then
12453
lt_cv_dlopen="shl_load"
12455
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12456
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12457
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12458
echo $ECHO_N "(cached) $ECHO_C" >&6
12460
ac_check_lib_save_LIBS=$LIBS
12462
cat >conftest.$ac_ext <<_ACEOF
12465
cat confdefs.h >>conftest.$ac_ext
12466
cat >>conftest.$ac_ext <<_ACEOF
12467
/* end confdefs.h. */
12469
/* Override any gcc2 internal prototype to avoid an error. */
12473
/* We use char because int might match the return type of a gcc2
12474
builtin and then its argument prototype would still apply. */
12484
rm -f conftest.$ac_objext conftest$ac_exeext
12485
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12486
(eval $ac_link) 2>conftest.er1
12488
grep -v '^ *+' conftest.er1 >conftest.err
12490
cat conftest.err >&5
12491
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12492
(exit $ac_status); } &&
12493
{ ac_try='test -z "$ac_cxx_werror_flag"
12494
|| test ! -s conftest.err'
12495
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12496
(eval $ac_try) 2>&5
12498
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12499
(exit $ac_status); }; } &&
12500
{ ac_try='test -s conftest$ac_exeext'
12501
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12502
(eval $ac_try) 2>&5
12504
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12505
(exit $ac_status); }; }; then
12506
ac_cv_lib_dld_shl_load=yes
12508
echo "$as_me: failed program was:" >&5
12509
sed 's/^/| /' conftest.$ac_ext >&5
12511
ac_cv_lib_dld_shl_load=no
12513
rm -f conftest.err conftest.$ac_objext \
12514
conftest$ac_exeext conftest.$ac_ext
12515
LIBS=$ac_check_lib_save_LIBS
12517
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12518
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12519
if test $ac_cv_lib_dld_shl_load = yes; then
12520
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12522
echo "$as_me:$LINENO: checking for dlopen" >&5
12523
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12524
if test "${ac_cv_func_dlopen+set}" = set; then
12525
echo $ECHO_N "(cached) $ECHO_C" >&6
12527
cat >conftest.$ac_ext <<_ACEOF
12530
cat confdefs.h >>conftest.$ac_ext
12531
cat >>conftest.$ac_ext <<_ACEOF
12532
/* end confdefs.h. */
12533
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12534
For example, HP-UX 11i <limits.h> declares gettimeofday. */
12535
#define dlopen innocuous_dlopen
12537
/* System header to define __stub macros and hopefully few prototypes,
12538
which can conflict with char dlopen (); below.
12539
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12540
<limits.h> exists even on freestanding compilers. */
12543
# include <limits.h>
12545
# include <assert.h>
12550
/* Override any gcc2 internal prototype to avoid an error. */
12555
/* We use char because int might match the return type of a gcc2
12556
builtin and then its argument prototype would still apply. */
12558
/* The GNU C library defines this for functions which it implements
12559
to always fail with ENOSYS. Some functions are actually named
12560
something starting with __ and the normal name is an alias. */
12561
#if defined (__stub_dlopen) || defined (__stub___dlopen)
12564
char (*f) () = dlopen;
12573
return f != dlopen;
12578
rm -f conftest.$ac_objext conftest$ac_exeext
12579
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12580
(eval $ac_link) 2>conftest.er1
12582
grep -v '^ *+' conftest.er1 >conftest.err
12584
cat conftest.err >&5
12585
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12586
(exit $ac_status); } &&
12587
{ ac_try='test -z "$ac_cxx_werror_flag"
12588
|| test ! -s conftest.err'
12589
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12590
(eval $ac_try) 2>&5
12592
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12593
(exit $ac_status); }; } &&
12594
{ ac_try='test -s conftest$ac_exeext'
12595
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12596
(eval $ac_try) 2>&5
12598
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12599
(exit $ac_status); }; }; then
12600
ac_cv_func_dlopen=yes
12602
echo "$as_me: failed program was:" >&5
12603
sed 's/^/| /' conftest.$ac_ext >&5
12605
ac_cv_func_dlopen=no
12607
rm -f conftest.err conftest.$ac_objext \
12608
conftest$ac_exeext conftest.$ac_ext
12610
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12611
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12612
if test $ac_cv_func_dlopen = yes; then
12613
lt_cv_dlopen="dlopen"
12615
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12616
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12617
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12618
echo $ECHO_N "(cached) $ECHO_C" >&6
12620
ac_check_lib_save_LIBS=$LIBS
12622
cat >conftest.$ac_ext <<_ACEOF
12625
cat confdefs.h >>conftest.$ac_ext
12626
cat >>conftest.$ac_ext <<_ACEOF
12627
/* end confdefs.h. */
12629
/* Override any gcc2 internal prototype to avoid an error. */
12633
/* We use char because int might match the return type of a gcc2
12634
builtin and then its argument prototype would still apply. */
12644
rm -f conftest.$ac_objext conftest$ac_exeext
12645
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12646
(eval $ac_link) 2>conftest.er1
12648
grep -v '^ *+' conftest.er1 >conftest.err
12650
cat conftest.err >&5
12651
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12652
(exit $ac_status); } &&
12653
{ ac_try='test -z "$ac_cxx_werror_flag"
12654
|| test ! -s conftest.err'
12655
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12656
(eval $ac_try) 2>&5
12658
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12659
(exit $ac_status); }; } &&
12660
{ ac_try='test -s conftest$ac_exeext'
12661
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12662
(eval $ac_try) 2>&5
12664
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12665
(exit $ac_status); }; }; then
12666
ac_cv_lib_dl_dlopen=yes
12668
echo "$as_me: failed program was:" >&5
12669
sed 's/^/| /' conftest.$ac_ext >&5
12671
ac_cv_lib_dl_dlopen=no
12673
rm -f conftest.err conftest.$ac_objext \
12674
conftest$ac_exeext conftest.$ac_ext
12675
LIBS=$ac_check_lib_save_LIBS
12677
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12678
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12679
if test $ac_cv_lib_dl_dlopen = yes; then
12680
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12682
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12683
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12684
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12685
echo $ECHO_N "(cached) $ECHO_C" >&6
12687
ac_check_lib_save_LIBS=$LIBS
12688
LIBS="-lsvld $LIBS"
12689
cat >conftest.$ac_ext <<_ACEOF
12692
cat confdefs.h >>conftest.$ac_ext
12693
cat >>conftest.$ac_ext <<_ACEOF
12694
/* end confdefs.h. */
12696
/* Override any gcc2 internal prototype to avoid an error. */
12700
/* We use char because int might match the return type of a gcc2
12701
builtin and then its argument prototype would still apply. */
12711
rm -f conftest.$ac_objext conftest$ac_exeext
12712
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12713
(eval $ac_link) 2>conftest.er1
12715
grep -v '^ *+' conftest.er1 >conftest.err
12717
cat conftest.err >&5
12718
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12719
(exit $ac_status); } &&
12720
{ ac_try='test -z "$ac_cxx_werror_flag"
12721
|| test ! -s conftest.err'
12722
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12723
(eval $ac_try) 2>&5
12725
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12726
(exit $ac_status); }; } &&
12727
{ ac_try='test -s conftest$ac_exeext'
12728
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12729
(eval $ac_try) 2>&5
12731
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12732
(exit $ac_status); }; }; then
12733
ac_cv_lib_svld_dlopen=yes
12735
echo "$as_me: failed program was:" >&5
12736
sed 's/^/| /' conftest.$ac_ext >&5
12738
ac_cv_lib_svld_dlopen=no
12740
rm -f conftest.err conftest.$ac_objext \
12741
conftest$ac_exeext conftest.$ac_ext
12742
LIBS=$ac_check_lib_save_LIBS
12744
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12745
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12746
if test $ac_cv_lib_svld_dlopen = yes; then
12747
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12749
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12750
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12751
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12752
echo $ECHO_N "(cached) $ECHO_C" >&6
12754
ac_check_lib_save_LIBS=$LIBS
12756
cat >conftest.$ac_ext <<_ACEOF
12759
cat confdefs.h >>conftest.$ac_ext
12760
cat >>conftest.$ac_ext <<_ACEOF
12761
/* end confdefs.h. */
12763
/* Override any gcc2 internal prototype to avoid an error. */
12767
/* We use char because int might match the return type of a gcc2
12768
builtin and then its argument prototype would still apply. */
12778
rm -f conftest.$ac_objext conftest$ac_exeext
12779
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12780
(eval $ac_link) 2>conftest.er1
12782
grep -v '^ *+' conftest.er1 >conftest.err
12784
cat conftest.err >&5
12785
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12786
(exit $ac_status); } &&
12787
{ ac_try='test -z "$ac_cxx_werror_flag"
12788
|| test ! -s conftest.err'
12789
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12790
(eval $ac_try) 2>&5
12792
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12793
(exit $ac_status); }; } &&
12794
{ ac_try='test -s conftest$ac_exeext'
12795
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12796
(eval $ac_try) 2>&5
12798
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12799
(exit $ac_status); }; }; then
12800
ac_cv_lib_dld_dld_link=yes
12802
echo "$as_me: failed program was:" >&5
12803
sed 's/^/| /' conftest.$ac_ext >&5
12805
ac_cv_lib_dld_dld_link=no
12807
rm -f conftest.err conftest.$ac_objext \
12808
conftest$ac_exeext conftest.$ac_ext
12809
LIBS=$ac_check_lib_save_LIBS
12811
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12812
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12813
if test $ac_cv_lib_dld_dld_link = yes; then
12814
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12835
if test "x$lt_cv_dlopen" != xno; then
12841
case $lt_cv_dlopen in
12843
save_CPPFLAGS="$CPPFLAGS"
12844
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12846
save_LDFLAGS="$LDFLAGS"
12847
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12850
LIBS="$lt_cv_dlopen_libs $LIBS"
12852
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12853
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12854
if test "${lt_cv_dlopen_self+set}" = set; then
12855
echo $ECHO_N "(cached) $ECHO_C" >&6
12857
if test "$cross_compiling" = yes; then :
12858
lt_cv_dlopen_self=cross
12860
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12861
lt_status=$lt_dlunknown
12862
cat > conftest.$ac_ext <<EOF
12863
#line 12863 "configure"
12864
#include "confdefs.h"
12873
# define LT_DLGLOBAL RTLD_GLOBAL
12876
# define LT_DLGLOBAL DL_GLOBAL
12878
# define LT_DLGLOBAL 0
12882
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12883
find out it does not work in some platform. */
12884
#ifndef LT_DLLAZY_OR_NOW
12886
# define LT_DLLAZY_OR_NOW RTLD_LAZY
12889
# define LT_DLLAZY_OR_NOW DL_LAZY
12892
# define LT_DLLAZY_OR_NOW RTLD_NOW
12895
# define LT_DLLAZY_OR_NOW DL_NOW
12897
# define LT_DLLAZY_OR_NOW 0
12905
extern "C" void exit (int);
12908
void fnord() { int i=42;}
12911
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12912
int status = $lt_dlunknown;
12916
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12917
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12918
/* dlclose (self); */
12924
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12925
(eval $ac_link) 2>&5
12927
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12928
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12929
(./conftest; exit; ) 2>/dev/null
12931
case x$lt_status in
12932
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12933
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12934
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12937
# compilation failed
12938
lt_cv_dlopen_self=no
12945
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12946
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12948
if test "x$lt_cv_dlopen_self" = xyes; then
12949
LDFLAGS="$LDFLAGS $link_static_flag"
12950
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12951
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12952
if test "${lt_cv_dlopen_self_static+set}" = set; then
12953
echo $ECHO_N "(cached) $ECHO_C" >&6
12955
if test "$cross_compiling" = yes; then :
12956
lt_cv_dlopen_self_static=cross
12958
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12959
lt_status=$lt_dlunknown
12960
cat > conftest.$ac_ext <<EOF
12961
#line 12961 "configure"
12962
#include "confdefs.h"
12971
# define LT_DLGLOBAL RTLD_GLOBAL
12974
# define LT_DLGLOBAL DL_GLOBAL
12976
# define LT_DLGLOBAL 0
12980
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12981
find out it does not work in some platform. */
12982
#ifndef LT_DLLAZY_OR_NOW
12984
# define LT_DLLAZY_OR_NOW RTLD_LAZY
12987
# define LT_DLLAZY_OR_NOW DL_LAZY
12990
# define LT_DLLAZY_OR_NOW RTLD_NOW
12993
# define LT_DLLAZY_OR_NOW DL_NOW
12995
# define LT_DLLAZY_OR_NOW 0
13003
extern "C" void exit (int);
13006
void fnord() { int i=42;}
13009
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13010
int status = $lt_dlunknown;
13014
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13015
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13016
/* dlclose (self); */
13022
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13023
(eval $ac_link) 2>&5
13025
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13026
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13027
(./conftest; exit; ) 2>/dev/null
13029
case x$lt_status in
13030
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13031
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13032
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13035
# compilation failed
13036
lt_cv_dlopen_self_static=no
13043
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13044
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
13047
CPPFLAGS="$save_CPPFLAGS"
13048
LDFLAGS="$save_LDFLAGS"
13053
case $lt_cv_dlopen_self in
13054
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13055
*) enable_dlopen_self=unknown ;;
13058
case $lt_cv_dlopen_self_static in
13059
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13060
*) enable_dlopen_self_static=unknown ;;
13065
# The else clause should only fire when bootstrapping the
13066
# libtool distribution, otherwise you forgot to ship ltmain.sh
13067
# with your package, and you will get complaints that there are
13068
# no rules to generate ltmain.sh.
13069
if test -f "$ltmain"; then
13070
# See if we are running on zsh, and set the options which allow our commands through
13071
# without removal of \ escapes.
13072
if test -n "${ZSH_VERSION+set}" ; then
13073
setopt NO_GLOB_SUBST
13075
# Now quote all the things that may contain metacharacters while being
13076
# careful not to overquote the AC_SUBSTed values. We take copies of the
13077
# variables and quote the copies for generation of the libtool script.
13078
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
13080
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13081
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13082
deplibs_check_method reload_flag reload_cmds need_locks \
13083
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13084
lt_cv_sys_global_symbol_to_c_name_address \
13085
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13086
old_postinstall_cmds old_postuninstall_cmds \
13090
lt_prog_compiler_wl_CXX \
13091
lt_prog_compiler_pic_CXX \
13092
lt_prog_compiler_static_CXX \
13093
lt_prog_compiler_no_builtin_flag_CXX \
13094
export_dynamic_flag_spec_CXX \
13095
thread_safe_flag_spec_CXX \
13096
whole_archive_flag_spec_CXX \
13097
enable_shared_with_static_runtimes_CXX \
13098
old_archive_cmds_CXX \
13099
old_archive_from_new_cmds_CXX \
13100
predep_objects_CXX \
13101
postdep_objects_CXX \
13104
compiler_lib_search_path_CXX \
13106
archive_expsym_cmds_CXX \
13107
postinstall_cmds_CXX \
13108
postuninstall_cmds_CXX \
13109
old_archive_from_expsyms_cmds_CXX \
13110
allow_undefined_flag_CXX \
13111
no_undefined_flag_CXX \
13112
export_symbols_cmds_CXX \
13113
hardcode_libdir_flag_spec_CXX \
13114
hardcode_libdir_flag_spec_ld_CXX \
13115
hardcode_libdir_separator_CXX \
13116
hardcode_automatic_CXX \
13118
module_expsym_cmds_CXX \
13119
lt_cv_prog_compiler_c_o_CXX \
13120
exclude_expsyms_CXX \
13121
include_expsyms_CXX; do
13124
old_archive_cmds_CXX | \
13125
old_archive_from_new_cmds_CXX | \
13126
archive_cmds_CXX | \
13127
archive_expsym_cmds_CXX | \
13128
module_cmds_CXX | \
13129
module_expsym_cmds_CXX | \
13130
old_archive_from_expsyms_cmds_CXX | \
13131
export_symbols_cmds_CXX | \
13132
extract_expsyms_cmds | reload_cmds | finish_cmds | \
13133
postinstall_cmds | postuninstall_cmds | \
13134
old_postinstall_cmds | old_postuninstall_cmds | \
13135
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13136
# Double-quote double-evaled strings.
13137
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13140
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13146
*'\$0 --fallback-echo"')
13147
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13153
cat <<__EOF__ >> "$cfgfile"
13154
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13156
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13158
# Shell to use when invoking shell scripts.
13161
# Whether or not to build shared libraries.
13162
build_libtool_libs=$enable_shared
13164
# Whether or not to build static libraries.
13165
build_old_libs=$enable_static
13167
# Whether or not to add -lc for building shared libraries.
13168
build_libtool_need_lc=$archive_cmds_need_lc_CXX
13170
# Whether or not to disallow shared libs when runtime libs are static
13171
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13173
# Whether or not to optimize for fast installation.
13174
fast_install=$enable_fast_install
13177
host_alias=$host_alias
13180
# An echo program that does not interpret backslashes.
13185
AR_FLAGS=$lt_AR_FLAGS
13190
# A language-specific compiler.
13191
CC=$lt_compiler_CXX
13193
# Is the compiler the GNU C compiler?
13199
# The linker used to build libraries.
13202
# Whether we need hard or soft links.
13205
# A BSD-compatible nm program.
13208
# A symbol stripping program
13211
# Used to examine libraries when file_magic_cmd begins "file"
13212
MAGIC_CMD=$MAGIC_CMD
13214
# Used on cygwin: DLL creation program.
13217
# Used on cygwin: object dumper.
13220
# Used on cygwin: assembler.
13223
# The name of the directory that contains temporary libtool files.
13226
# How to create reloadable object files.
13227
reload_flag=$lt_reload_flag
13228
reload_cmds=$lt_reload_cmds
13230
# How to pass a linker flag through the compiler.
13231
wl=$lt_lt_prog_compiler_wl_CXX
13233
# Object file suffix (normally "o").
13234
objext="$ac_objext"
13236
# Old archive suffix (normally "a").
13239
# Shared library suffix (normally ".so").
13240
shrext_cmds='$shrext_cmds'
13242
# Executable file suffix (normally "").
13245
# Additional compiler flags for building library objects.
13246
pic_flag=$lt_lt_prog_compiler_pic_CXX
13249
# What is the maximum length of a command?
13250
max_cmd_len=$lt_cv_sys_max_cmd_len
13252
# Does compiler simultaneously support -c and -o options?
13253
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13255
# Must we lock files when doing compilation ?
13256
need_locks=$lt_need_locks
13258
# Do we need the lib prefix for modules?
13259
need_lib_prefix=$need_lib_prefix
13261
# Do we need a version for libraries?
13262
need_version=$need_version
13264
# Whether dlopen is supported.
13265
dlopen_support=$enable_dlopen
13267
# Whether dlopen of programs is supported.
13268
dlopen_self=$enable_dlopen_self
13270
# Whether dlopen of statically linked programs is supported.
13271
dlopen_self_static=$enable_dlopen_self_static
13273
# Compiler flag to prevent dynamic linking.
13274
link_static_flag=$lt_lt_prog_compiler_static_CXX
13276
# Compiler flag to turn off builtin functions.
13277
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13279
# Compiler flag to allow reflexive dlopens.
13280
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13282
# Compiler flag to generate shared objects directly from archives.
13283
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13285
# Compiler flag to generate thread-safe objects.
13286
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13288
# Library versioning type.
13289
version_type=$version_type
13291
# Format of library name prefix.
13292
libname_spec=$lt_libname_spec
13294
# List of archive names. First name is the real one, the rest are links.
13295
# The last name is the one that the linker finds with -lNAME.
13296
library_names_spec=$lt_library_names_spec
13298
# The coded name of the library, if different from the real name.
13299
soname_spec=$lt_soname_spec
13301
# Commands used to build and install an old-style archive.
13303
old_archive_cmds=$lt_old_archive_cmds_CXX
13304
old_postinstall_cmds=$lt_old_postinstall_cmds
13305
old_postuninstall_cmds=$lt_old_postuninstall_cmds
13307
# Create an old-style archive from a shared archive.
13308
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13310
# Create a temporary old-style archive to link instead of a shared archive.
13311
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13313
# Commands used to build and install a shared archive.
13314
archive_cmds=$lt_archive_cmds_CXX
13315
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13316
postinstall_cmds=$lt_postinstall_cmds
13317
postuninstall_cmds=$lt_postuninstall_cmds
13319
# Commands used to build a loadable module (assumed same as above if empty)
13320
module_cmds=$lt_module_cmds_CXX
13321
module_expsym_cmds=$lt_module_expsym_cmds_CXX
13323
# Commands to strip libraries.
13324
old_striplib=$lt_old_striplib
13325
striplib=$lt_striplib
13327
# Dependencies to place before the objects being linked to create a
13329
predep_objects=$lt_predep_objects_CXX
13331
# Dependencies to place after the objects being linked to create a
13333
postdep_objects=$lt_postdep_objects_CXX
13335
# Dependencies to place before the objects being linked to create a
13337
predeps=$lt_predeps_CXX
13339
# Dependencies to place after the objects being linked to create a
13341
postdeps=$lt_postdeps_CXX
13343
# The library search path used internally by the compiler when linking
13344
# a shared library.
13345
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13347
# Method to check whether dependent libraries are shared objects.
13348
deplibs_check_method=$lt_deplibs_check_method
13350
# Command to use when deplibs_check_method == file_magic.
13351
file_magic_cmd=$lt_file_magic_cmd
13353
# Flag that allows shared libraries with undefined symbols to be built.
13354
allow_undefined_flag=$lt_allow_undefined_flag_CXX
13356
# Flag that forces no undefined symbols.
13357
no_undefined_flag=$lt_no_undefined_flag_CXX
13359
# Commands used to finish a libtool library installation in a directory.
13360
finish_cmds=$lt_finish_cmds
13362
# Same as above, but a single script fragment to be evaled but not shown.
13363
finish_eval=$lt_finish_eval
13365
# Take the output of nm and produce a listing of raw symbols and C names.
13366
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13368
# Transform the output of nm in a proper C declaration
13369
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13371
# Transform the output of nm in a C name address pair
13372
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13374
# This is the shared library runtime path variable.
13375
runpath_var=$runpath_var
13377
# This is the shared library path variable.
13378
shlibpath_var=$shlibpath_var
13380
# Is shlibpath searched before the hard-coded library search path?
13381
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13383
# How to hardcode a shared library path into an executable.
13384
hardcode_action=$hardcode_action_CXX
13386
# Whether we should hardcode library paths into libraries.
13387
hardcode_into_libs=$hardcode_into_libs
13389
# Flag to hardcode \$libdir into a binary during linking.
13390
# This must work even if \$libdir does not exist.
13391
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13393
# If ld is used when linking, flag to hardcode \$libdir into
13394
# a binary during linking. This must work even if \$libdir does
13396
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13398
# Whether we need a single -rpath flag with a separated argument.
13399
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13401
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13402
# resulting binary.
13403
hardcode_direct=$hardcode_direct_CXX
13405
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13406
# resulting binary.
13407
hardcode_minus_L=$hardcode_minus_L_CXX
13409
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13410
# the resulting binary.
13411
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13413
# Set to yes if building a shared library automatically hardcodes DIR into the library
13414
# and all subsequent libraries and executables linked against it.
13415
hardcode_automatic=$hardcode_automatic_CXX
13417
# Variables whose values should be saved in libtool wrapper scripts and
13418
# restored at relink time.
13419
variables_saved_for_relink="$variables_saved_for_relink"
13421
# Whether libtool must link a program against all its dependency libraries.
13422
link_all_deplibs=$link_all_deplibs_CXX
13424
# Compile-time system search path for libraries
13425
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13427
# Run-time system search path for libraries
13428
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13430
# Fix the shell variable \$srcfile for the compiler.
13431
fix_srcfile_path="$fix_srcfile_path_CXX"
13433
# Set to yes if exported symbols are required.
13434
always_export_symbols=$always_export_symbols_CXX
13436
# The commands to list exported symbols.
13437
export_symbols_cmds=$lt_export_symbols_cmds_CXX
13439
# The commands to extract the exported symbol list from a shared archive.
13440
extract_expsyms_cmds=$lt_extract_expsyms_cmds
13442
# Symbols that should not be listed in the preloaded symbols.
13443
exclude_expsyms=$lt_exclude_expsyms_CXX
13445
# Symbols that must always be exported.
13446
include_expsyms=$lt_include_expsyms_CXX
13448
# ### END LIBTOOL TAG CONFIG: $tagname
13454
# If there is no Makefile yet, we rely on a make rule to execute
13455
# `config.status --recheck' to rerun these tests and create the
13456
# libtool script then.
13457
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13458
if test -f "$ltmain_in"; then
13459
test -f Makefile && make "$ltmain"
13465
ac_cpp='$CPP $CPPFLAGS'
13466
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13467
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13468
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13474
with_gnu_ldcxx=$with_gnu_ld
13475
with_gnu_ld=$lt_save_with_gnu_ld
13476
lt_cv_path_LDCXX=$lt_cv_path_LD
13477
lt_cv_path_LD=$lt_save_path_LD
13478
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13479
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13487
if test -n "$F77" && test "X$F77" != "Xno"; then
13490
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13491
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13492
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13495
archive_cmds_need_lc_F77=no
13496
allow_undefined_flag_F77=
13497
always_export_symbols_F77=no
13498
archive_expsym_cmds_F77=
13499
export_dynamic_flag_spec_F77=
13500
hardcode_direct_F77=no
13501
hardcode_libdir_flag_spec_F77=
13502
hardcode_libdir_flag_spec_ld_F77=
13503
hardcode_libdir_separator_F77=
13504
hardcode_minus_L_F77=no
13505
hardcode_automatic_F77=no
13507
module_expsym_cmds_F77=
13508
link_all_deplibs_F77=unknown
13509
old_archive_cmds_F77=$old_archive_cmds
13510
no_undefined_flag_F77=
13511
whole_archive_flag_spec_F77=
13512
enable_shared_with_static_runtimes_F77=no
13514
# Source file extension for f77 test sources.
13517
# Object file extension for compiled f77 test sources.
13521
# Code to be used in simple compile tests
13522
lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13524
# Code to be used in simple link tests
13525
lt_simple_link_test_code=" program t\n end\n"
13527
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13529
# If no C compiler was specified, use CC.
13532
# Allow CC to be a program name with arguments.
13536
# Allow CC to be a program name with arguments.
13541
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13543
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13544
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13545
echo "$as_me:$LINENO: result: $can_build_shared" >&5
13546
echo "${ECHO_T}$can_build_shared" >&6
13548
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13549
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13550
test "$can_build_shared" = "no" && enable_shared=no
13552
# On AIX, shared libraries and static libraries use the same namespace, and
13553
# are all built from PIC.
13556
test "$enable_shared" = yes && enable_static=no
13557
if test -n "$RANLIB"; then
13558
archive_cmds="$archive_cmds~\$RANLIB \$lib"
13559
postinstall_cmds='$RANLIB $lib'
13563
test "$enable_shared" = yes && enable_static=no
13566
echo "$as_me:$LINENO: result: $enable_shared" >&5
13567
echo "${ECHO_T}$enable_shared" >&6
13569
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13570
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13571
# Make sure either enable_shared or enable_static is yes.
13572
test "$enable_shared" = yes || enable_static=yes
13573
echo "$as_me:$LINENO: result: $enable_static" >&5
13574
echo "${ECHO_T}$enable_static" >&6
13576
test "$ld_shlibs_F77" = no && can_build_shared=no
13581
lt_prog_compiler_wl_F77=
13582
lt_prog_compiler_pic_F77=
13583
lt_prog_compiler_static_F77=
13585
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13586
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13588
if test "$GCC" = yes; then
13589
lt_prog_compiler_wl_F77='-Wl,'
13590
lt_prog_compiler_static_F77='-static'
13594
# All AIX code is PIC.
13595
if test "$host_cpu" = ia64; then
13596
# AIX 5 now supports IA64 processor
13597
lt_prog_compiler_static_F77='-Bstatic'
13602
# FIXME: we need at least 68020 code to build shared libraries, but
13603
# adding the `-m68020' flag to GCC prevents building anything better,
13605
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13608
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13609
# PIC is the default for these OSes.
13612
mingw* | pw32* | os2*)
13613
# This hack is so that the source file can tell whether it is being
13614
# built for inclusion in a dll (and should export symbols for example).
13615
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13618
darwin* | rhapsody*)
13619
# PIC is the default on this platform
13620
# Common symbols not allowed in MH_DYLIB files
13621
lt_prog_compiler_pic_F77='-fno-common'
13625
# Just because we use GCC doesn't mean we suddenly get shared libraries
13626
# on systems that don't support them.
13627
lt_prog_compiler_can_build_shared_F77=no
13632
if test -d /usr/nec; then
13633
lt_prog_compiler_pic_F77=-Kconform_pic
13638
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13639
# not for PA HP-UX.
13640
case "$host_cpu" in
13645
lt_prog_compiler_pic_F77='-fPIC'
13651
lt_prog_compiler_pic_F77='-fPIC'
13655
# PORTME Check for flag to pass linker flags through the system compiler.
13658
lt_prog_compiler_wl_F77='-Wl,'
13659
if test "$host_cpu" = ia64; then
13660
# AIX 5 now supports IA64 processor
13661
lt_prog_compiler_static_F77='-Bstatic'
13663
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13667
# PIC is the default on this platform
13668
# Common symbols not allowed in MH_DYLIB files
13669
case "$cc_basename" in
13671
lt_prog_compiler_pic_F77='-qnocommon'
13672
lt_prog_compiler_wl_F77='-Wl,'
13677
mingw* | pw32* | os2*)
13678
# This hack is so that the source file can tell whether it is being
13679
# built for inclusion in a dll (and should export symbols for example).
13680
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13683
hpux9* | hpux10* | hpux11*)
13684
lt_prog_compiler_wl_F77='-Wl,'
13685
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13686
# not for PA HP-UX.
13687
case "$host_cpu" in
13692
lt_prog_compiler_pic_F77='+Z'
13695
# Is there a better lt_prog_compiler_static that works with the bundled CC?
13696
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13699
irix5* | irix6* | nonstopux*)
13700
lt_prog_compiler_wl_F77='-Wl,'
13701
# PIC (with -KPIC) is the default.
13702
lt_prog_compiler_static_F77='-non_shared'
13706
lt_prog_compiler_pic_F77='-KPIC'
13707
lt_prog_compiler_static_F77='-Bstatic'
13713
lt_prog_compiler_wl_F77='-Wl,'
13714
lt_prog_compiler_pic_F77='-KPIC'
13715
lt_prog_compiler_static_F77='-static'
13718
lt_prog_compiler_wl_F77='-Wl,'
13719
# All Alpha code is PIC.
13720
lt_prog_compiler_static_F77='-non_shared'
13725
osf3* | osf4* | osf5*)
13726
lt_prog_compiler_wl_F77='-Wl,'
13727
# All OSF/1 code is PIC.
13728
lt_prog_compiler_static_F77='-non_shared'
13732
lt_prog_compiler_pic_F77='-Kpic'
13733
lt_prog_compiler_static_F77='-dn'
13737
lt_prog_compiler_wl_F77='-Wl,'
13738
lt_prog_compiler_pic_F77='-KPIC'
13739
lt_prog_compiler_static_F77='-Bstatic'
13743
lt_prog_compiler_wl_F77='-Qoption ld '
13744
lt_prog_compiler_pic_F77='-PIC'
13745
lt_prog_compiler_static_F77='-Bstatic'
13748
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13749
lt_prog_compiler_wl_F77='-Wl,'
13750
lt_prog_compiler_pic_F77='-KPIC'
13751
lt_prog_compiler_static_F77='-Bstatic'
13755
if test -d /usr/nec ;then
13756
lt_prog_compiler_pic_F77='-Kconform_pic'
13757
lt_prog_compiler_static_F77='-Bstatic'
13762
lt_prog_compiler_pic_F77='-pic'
13763
lt_prog_compiler_static_F77='-Bstatic'
13767
lt_prog_compiler_can_build_shared_F77=no
13772
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13773
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13776
# Check to make sure the PIC flag actually works.
13778
if test -n "$lt_prog_compiler_pic_F77"; then
13780
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13781
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13782
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13783
echo $ECHO_N "(cached) $ECHO_C" >&6
13785
lt_prog_compiler_pic_works_F77=no
13786
ac_outfile=conftest.$ac_objext
13787
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13788
lt_compiler_flag="$lt_prog_compiler_pic_F77"
13789
# Insert the option either (1) after the last *FLAGS variable, or
13790
# (2) before a word containing "conftest.", or (3) at the end.
13791
# Note that $ac_compile itself does not contain backslashes and begins
13792
# with a dollar sign (not a hyphen), so the echo should work correctly.
13793
# The option is referenced via a variable to avoid confusing sed.
13794
lt_compile=`echo "$ac_compile" | $SED \
13795
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13796
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13797
-e 's:$: $lt_compiler_flag:'`
13798
(eval echo "\"\$as_me:13798: $lt_compile\"" >&5)
13799
(eval "$lt_compile" 2>conftest.err)
13801
cat conftest.err >&5
13802
echo "$as_me:13802: \$? = $ac_status" >&5
13803
if (exit $ac_status) && test -s "$ac_outfile"; then
13804
# The compiler can only warn and ignore the option if not recognized
13805
# So say no if there are warnings
13806
if test ! -s conftest.err; then
13807
lt_prog_compiler_pic_works_F77=yes
13813
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13814
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13816
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13817
case $lt_prog_compiler_pic_F77 in
13819
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13822
lt_prog_compiler_pic_F77=
13823
lt_prog_compiler_can_build_shared_F77=no
13828
# For platforms which do not support PIC, -DPIC is meaningless:
13830
lt_prog_compiler_pic_F77=
13833
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13837
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13838
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13839
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13840
echo $ECHO_N "(cached) $ECHO_C" >&6
13842
lt_cv_prog_compiler_c_o_F77=no
13843
$rm -r conftest 2>/dev/null
13847
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13849
lt_compiler_flag="-o out/conftest2.$ac_objext"
13850
# Insert the option either (1) after the last *FLAGS variable, or
13851
# (2) before a word containing "conftest.", or (3) at the end.
13852
# Note that $ac_compile itself does not contain backslashes and begins
13853
# with a dollar sign (not a hyphen), so the echo should work correctly.
13854
lt_compile=`echo "$ac_compile" | $SED \
13855
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13856
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13857
-e 's:$: $lt_compiler_flag:'`
13858
(eval echo "\"\$as_me:13858: $lt_compile\"" >&5)
13859
(eval "$lt_compile" 2>out/conftest.err)
13861
cat out/conftest.err >&5
13862
echo "$as_me:13862: \$? = $ac_status" >&5
13863
if (exit $ac_status) && test -s out/conftest2.$ac_objext
13865
# The compiler can only warn and ignore the option if not recognized
13866
# So say no if there are warnings
13867
if test ! -s out/conftest.err; then
13868
lt_cv_prog_compiler_c_o_F77=yes
13873
# SGI C++ compiler will create directory out/ii_files/ for
13874
# template instantiation
13875
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13876
$rm out/* && rmdir out
13882
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13883
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13886
hard_links="nottested"
13887
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13888
# do not overwrite the value of need_locks provided by the user
13889
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13890
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13893
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13895
ln conftest.a conftest.b 2>&5 || hard_links=no
13896
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13897
echo "$as_me:$LINENO: result: $hard_links" >&5
13898
echo "${ECHO_T}$hard_links" >&6
13899
if test "$hard_links" = no; then
13900
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13901
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13908
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13909
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13912
allow_undefined_flag_F77=
13913
enable_shared_with_static_runtimes_F77=no
13915
archive_expsym_cmds_F77=
13916
old_archive_From_new_cmds_F77=
13917
old_archive_from_expsyms_cmds_F77=
13918
export_dynamic_flag_spec_F77=
13919
whole_archive_flag_spec_F77=
13920
thread_safe_flag_spec_F77=
13921
hardcode_libdir_flag_spec_F77=
13922
hardcode_libdir_flag_spec_ld_F77=
13923
hardcode_libdir_separator_F77=
13924
hardcode_direct_F77=no
13925
hardcode_minus_L_F77=no
13926
hardcode_shlibpath_var_F77=unsupported
13927
link_all_deplibs_F77=unknown
13928
hardcode_automatic_F77=no
13930
module_expsym_cmds_F77=
13931
always_export_symbols_F77=no
13932
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13933
# include_expsyms should be a list of space-separated symbols to be *always*
13934
# included in the symbol list
13935
include_expsyms_F77=
13936
# exclude_expsyms can be an extended regexp of symbols to exclude
13937
# it will be wrapped by ` (' and `)$', so one must not match beginning or
13938
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13939
# as well as any symbol that contains `d'.
13940
exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13941
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13942
# platforms (ab)use it in PIC code, but their linkers get confused if
13943
# the symbol is explicitly referenced. Since portable code cannot
13944
# rely on this symbol name, it's probably fine to never include it in
13945
# preloaded symbol tables.
13946
extract_expsyms_cmds=
13949
cygwin* | mingw* | pw32*)
13950
# FIXME: the MSVC++ port hasn't been tested in a loooong time
13951
# When not using gcc, we currently assume that we are using
13952
# Microsoft Visual C++.
13953
if test "$GCC" != yes; then
13963
if test "$with_gnu_ld" = yes; then
13964
# If archive_cmds runs LD, not CC, wlarc should be empty
13967
# See if GNU ld supports shared libraries.
13969
aix3* | aix4* | aix5*)
13970
# On AIX/PPC, the GNU linker is very broken
13971
if test "$host_cpu" != ia64; then
13975
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13976
*** to be unable to reliably create shared libraries on AIX.
13977
*** Therefore, libtool is disabling shared libraries support. If you
13978
*** really care for shared libraries, you may want to modify your PATH
13979
*** so that a non-GNU linker is found, and then restart.
13986
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)'
13987
hardcode_libdir_flag_spec_F77='-L$libdir'
13988
hardcode_minus_L_F77=yes
13990
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13991
# that the semantics of dynamic libraries on AmigaOS, at least up
13992
# to version 4, is to share data among multiple programs linked
13993
# with the same dynamic library. Since this doesn't match the
13994
# behavior of shared libraries on other platforms, we can't use
14000
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14001
allow_undefined_flag_F77=unsupported
14002
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14003
# support --undefined. This deserves some investigation. FIXME
14004
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14010
cygwin* | mingw* | pw32*)
14011
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14012
# as there is no search path for DLLs.
14013
hardcode_libdir_flag_spec_F77='-L$libdir'
14014
allow_undefined_flag_F77=unsupported
14015
always_export_symbols_F77=no
14016
enable_shared_with_static_runtimes_F77=yes
14017
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14019
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14020
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14021
# If the export-symbols file already is a .def file (1st line
14022
# is EXPORTS), use it as is; otherwise, prepend...
14023
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14024
cp $export_symbols $output_objdir/$soname.def;
14026
echo EXPORTS > $output_objdir/$soname.def;
14027
cat $export_symbols >> $output_objdir/$soname.def;
14029
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14036
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14037
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14040
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14041
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14046
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14050
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14051
*** create shared libraries on Solaris systems. Therefore, libtool
14052
*** is disabling shared libraries support. We urge you to upgrade GNU
14053
*** binutils to release 2.9.1 or newer. Another option is to modify
14054
*** your PATH or compiler configuration so that the native linker is
14055
*** used, and then restart.
14058
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14059
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14060
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14067
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14069
hardcode_direct_F77=yes
14070
hardcode_shlibpath_var_F77=no
14074
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14075
tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14076
archive_cmds_F77="$tmp_archive_cmds"
14077
supports_anon_versioning=no
14078
case `$LD -v 2>/dev/null` in
14079
*\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14080
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14081
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14082
*\ 2.11.*) ;; # other 2.11 versions
14083
*) supports_anon_versioning=yes ;;
14085
if test $supports_anon_versioning = yes; then
14086
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14087
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14088
$echo "local: *; };" >> $output_objdir/$libname.ver~
14089
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14091
archive_expsym_cmds_F77="$tmp_archive_cmds"
14099
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14100
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14101
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14108
if test "$ld_shlibs_F77" = yes; then
14109
runpath_var=LD_RUN_PATH
14110
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14111
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14112
# ancient GNU ld didn't support --whole-archive et. al.
14113
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14114
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14116
whole_archive_flag_spec_F77=
14120
# PORTME fill in a description of your system's linker (not GNU ld)
14123
allow_undefined_flag_F77=unsupported
14124
always_export_symbols_F77=yes
14125
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'
14126
# Note: this linker hardcodes the directories in LIBPATH if there
14127
# are no directories specified by -L.
14128
hardcode_minus_L_F77=yes
14129
if test "$GCC" = yes && test -z "$link_static_flag"; then
14130
# Neither direct hardcoding nor static linking is supported with a
14132
hardcode_direct_F77=unsupported
14137
if test "$host_cpu" = ia64; then
14138
# On IA64, the linker does run time linking by default, so we don't
14139
# have to do anything special.
14140
aix_use_runtimelinking=no
14141
exp_sym_flag='-Bexport'
14144
# If we're using GNU nm, then we don't want the "-C" option.
14145
# -C means demangle to AIX nm, but means don't demangle with GNU nm
14146
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14147
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'
14149
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'
14151
aix_use_runtimelinking=no
14153
# Test if we are trying to use run time linking or normal
14154
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14155
# need to do runtime linking.
14156
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14157
for ld_flag in $LDFLAGS; do
14158
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14159
aix_use_runtimelinking=yes
14165
exp_sym_flag='-bexport'
14166
no_entry_flag='-bnoentry'
14169
# When large executables or shared objects are built, AIX ld can
14170
# have problems creating the table of contents. If linking a library
14171
# or program results in "error TOC overflow" add -mminimal-toc to
14172
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14173
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14175
archive_cmds_F77=''
14176
hardcode_direct_F77=yes
14177
hardcode_libdir_separator_F77=':'
14178
link_all_deplibs_F77=yes
14180
if test "$GCC" = yes; then
14181
case $host_os in aix4.012|aix4.012.*)
14182
# We only want to do this on AIX 4.2 and lower, the check
14183
# below for broken collect2 doesn't work under 4.3+
14184
collect2name=`${CC} -print-prog-name=collect2`
14185
if test -f "$collect2name" && \
14186
strings "$collect2name" | grep resolve_lib_name >/dev/null
14188
# We have reworked collect2
14189
hardcode_direct_F77=yes
14191
# We have old collect2
14192
hardcode_direct_F77=unsupported
14193
# It fails to find uninstalled libraries when the uninstalled
14194
# path is not listed in the libpath. Setting hardcode_minus_L
14195
# to unsupported forces relinking
14196
hardcode_minus_L_F77=yes
14197
hardcode_libdir_flag_spec_F77='-L$libdir'
14198
hardcode_libdir_separator_F77=
14201
shared_flag='-shared'
14204
if test "$host_cpu" = ia64; then
14205
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14206
# chokes on -Wl,-G. The following line is correct:
14209
if test "$aix_use_runtimelinking" = yes; then
14210
shared_flag='${wl}-G'
14212
shared_flag='${wl}-bM:SRE'
14217
# It seems that -bexpall does not export symbols beginning with
14218
# underscore (_), so it is better to generate a list of symbols to export.
14219
always_export_symbols_F77=yes
14220
if test "$aix_use_runtimelinking" = yes; then
14221
# Warning - without using the other runtime loading flags (-brtl),
14222
# -berok will link without error, but may produce a broken library.
14223
allow_undefined_flag_F77='-berok'
14224
# Determine the default libpath from the value encoded in an empty executable.
14225
cat >conftest.$ac_ext <<_ACEOF
14230
rm -f conftest.$ac_objext conftest$ac_exeext
14231
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14232
(eval $ac_link) 2>conftest.er1
14234
grep -v '^ *+' conftest.er1 >conftest.err
14236
cat conftest.err >&5
14237
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14238
(exit $ac_status); } &&
14239
{ ac_try='test -z "$ac_f77_werror_flag"
14240
|| test ! -s conftest.err'
14241
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14242
(eval $ac_try) 2>&5
14244
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14245
(exit $ac_status); }; } &&
14246
{ ac_try='test -s conftest$ac_exeext'
14247
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14248
(eval $ac_try) 2>&5
14250
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14251
(exit $ac_status); }; }; then
14253
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14255
# Check for a 64-bit object if we didn't find anything.
14256
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; }
14259
echo "$as_me: failed program was:" >&5
14260
sed 's/^/| /' conftest.$ac_ext >&5
14263
rm -f conftest.err conftest.$ac_objext \
14264
conftest$ac_exeext conftest.$ac_ext
14265
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14267
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14268
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"
14270
if test "$host_cpu" = ia64; then
14271
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14272
allow_undefined_flag_F77="-z nodefs"
14273
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"
14275
# Determine the default libpath from the value encoded in an empty executable.
14276
cat >conftest.$ac_ext <<_ACEOF
14281
rm -f conftest.$ac_objext conftest$ac_exeext
14282
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14283
(eval $ac_link) 2>conftest.er1
14285
grep -v '^ *+' conftest.er1 >conftest.err
14287
cat conftest.err >&5
14288
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14289
(exit $ac_status); } &&
14290
{ ac_try='test -z "$ac_f77_werror_flag"
14291
|| test ! -s conftest.err'
14292
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14293
(eval $ac_try) 2>&5
14295
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14296
(exit $ac_status); }; } &&
14297
{ ac_try='test -s conftest$ac_exeext'
14298
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14299
(eval $ac_try) 2>&5
14301
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14302
(exit $ac_status); }; }; then
14304
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14306
# Check for a 64-bit object if we didn't find anything.
14307
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; }
14310
echo "$as_me: failed program was:" >&5
14311
sed 's/^/| /' conftest.$ac_ext >&5
14314
rm -f conftest.err conftest.$ac_objext \
14315
conftest$ac_exeext conftest.$ac_ext
14316
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14318
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14319
# Warning - without using the other run time loading flags,
14320
# -berok will link without error, but may produce a broken library.
14321
no_undefined_flag_F77=' ${wl}-bernotok'
14322
allow_undefined_flag_F77=' ${wl}-berok'
14323
# -bexpall does not export symbols beginning with underscore (_)
14324
always_export_symbols_F77=yes
14325
# Exported symbols can be pulled into shared objects from archives
14326
whole_archive_flag_spec_F77=' '
14327
archive_cmds_need_lc_F77=yes
14328
# This is similar to how AIX traditionally builds it's shared libraries.
14329
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'
14335
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)'
14336
hardcode_libdir_flag_spec_F77='-L$libdir'
14337
hardcode_minus_L_F77=yes
14338
# see comment about different semantics on the GNU ld section
14343
export_dynamic_flag_spec_F77=-rdynamic
14346
cygwin* | mingw* | pw32*)
14347
# When not using gcc, we currently assume that we are using
14348
# Microsoft Visual C++.
14349
# hardcode_libdir_flag_spec is actually meaningless, as there is
14350
# no search path for DLLs.
14351
hardcode_libdir_flag_spec_F77=' '
14352
allow_undefined_flag_F77=unsupported
14353
# Tell ltmain to make .lib files, not .a files.
14355
# Tell ltmain to make .dll files, not .so files.
14357
# FIXME: Setting linknames here is a bad hack.
14358
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14359
# The linker will automatically build a .lib file if we build a DLL.
14360
old_archive_From_new_cmds_F77='true'
14361
# FIXME: Should let the user specify the lib program.
14362
old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14363
fix_srcfile_path='`cygpath -w "$srcfile"`'
14364
enable_shared_with_static_runtimes_F77=yes
14367
darwin* | rhapsody*)
14369
rhapsody* | darwin1.[012])
14370
allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14373
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14374
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14376
case ${MACOSX_DEPLOYMENT_TARGET} in
14378
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14381
allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14387
archive_cmds_need_lc_F77=no
14388
hardcode_direct_F77=no
14389
hardcode_automatic_F77=yes
14390
hardcode_shlibpath_var_F77=unsupported
14391
whole_archive_flag_spec_F77=''
14392
link_all_deplibs_F77=yes
14393
if test "$GCC" = yes ; then
14394
output_verbose_link_cmd='echo'
14395
archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14396
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14397
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14398
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}'
14399
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}'
14401
case "$cc_basename" in
14403
output_verbose_link_cmd='echo'
14404
archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14405
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14406
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14407
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}'
14408
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}'
14418
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14419
hardcode_libdir_flag_spec_F77='-L$libdir'
14420
hardcode_shlibpath_var_F77=no
14427
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14428
# support. Future versions do this automatically, but an explicit c++rt0.o
14429
# does not break anything, and helps significantly (at the cost of a little
14432
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14433
hardcode_libdir_flag_spec_F77='-R$libdir'
14434
hardcode_direct_F77=yes
14435
hardcode_shlibpath_var_F77=no
14438
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
14440
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14441
hardcode_direct_F77=yes
14442
hardcode_minus_L_F77=yes
14443
hardcode_shlibpath_var_F77=no
14446
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14447
freebsd* | kfreebsd*-gnu)
14448
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14449
hardcode_libdir_flag_spec_F77='-R$libdir'
14450
hardcode_direct_F77=yes
14451
hardcode_shlibpath_var_F77=no
14455
if test "$GCC" = yes; then
14456
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'
14458
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'
14460
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14461
hardcode_libdir_separator_F77=:
14462
hardcode_direct_F77=yes
14464
# hardcode_minus_L: Not really in the search PATH,
14465
# but as the default location of the library.
14466
hardcode_minus_L_F77=yes
14467
export_dynamic_flag_spec_F77='${wl}-E'
14471
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14472
case "$host_cpu" in
14474
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14477
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14481
case "$host_cpu" in
14483
archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14486
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14490
if test "$with_gnu_ld" = no; then
14491
case "$host_cpu" in
14493
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14494
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14495
hardcode_libdir_separator_F77=:
14496
hardcode_direct_F77=no
14497
hardcode_shlibpath_var_F77=no
14500
hardcode_libdir_flag_spec_F77='-L$libdir'
14501
hardcode_direct_F77=no
14502
hardcode_shlibpath_var_F77=no
14504
# hardcode_minus_L: Not really in the search PATH,
14505
# but as the default location of the library.
14506
hardcode_minus_L_F77=yes
14509
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14510
hardcode_libdir_separator_F77=:
14511
hardcode_direct_F77=yes
14512
export_dynamic_flag_spec_F77='${wl}-E'
14514
# hardcode_minus_L: Not really in the search PATH,
14515
# but as the default location of the library.
14516
hardcode_minus_L_F77=yes
14522
irix5* | irix6* | nonstopux*)
14523
if test "$GCC" = yes; then
14524
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'
14526
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'
14527
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14529
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14530
hardcode_libdir_separator_F77=:
14531
link_all_deplibs_F77=yes
14535
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14536
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14538
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14540
hardcode_libdir_flag_spec_F77='-R$libdir'
14541
hardcode_direct_F77=yes
14542
hardcode_shlibpath_var_F77=no
14546
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14547
hardcode_direct_F77=yes
14548
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14549
hardcode_libdir_separator_F77=:
14550
hardcode_shlibpath_var_F77=no
14554
hardcode_direct_F77=yes
14555
hardcode_shlibpath_var_F77=no
14556
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14557
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14558
archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14559
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14560
export_dynamic_flag_spec_F77='${wl}-E'
14563
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14564
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14565
hardcode_libdir_flag_spec_F77='-R$libdir'
14568
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14569
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14576
hardcode_libdir_flag_spec_F77='-L$libdir'
14577
hardcode_minus_L_F77=yes
14578
allow_undefined_flag_F77=unsupported
14579
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'
14580
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14584
if test "$GCC" = yes; then
14585
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14586
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'
14588
allow_undefined_flag_F77=' -expect_unresolved \*'
14589
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'
14591
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14592
hardcode_libdir_separator_F77=:
14595
osf4* | osf5*) # as osf3* with the addition of -msym flag
14596
if test "$GCC" = yes; then
14597
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14598
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'
14599
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14601
allow_undefined_flag_F77=' -expect_unresolved \*'
14602
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'
14603
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~
14604
$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'
14606
# Both c and cxx compiler support -rpath directly
14607
hardcode_libdir_flag_spec_F77='-rpath $libdir'
14609
hardcode_libdir_separator_F77=:
14613
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14614
hardcode_shlibpath_var_F77=no
14615
export_dynamic_flag_spec_F77='${wl}-Bexport'
14616
runpath_var=LD_RUN_PATH
14617
hardcode_runpath_var=yes
14621
no_undefined_flag_F77=' -z text'
14622
if test "$GCC" = yes; then
14623
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14624
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14625
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14627
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14628
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14629
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14631
hardcode_libdir_flag_spec_F77='-R$libdir'
14632
hardcode_shlibpath_var_F77=no
14634
solaris2.[0-5] | solaris2.[0-5].*) ;;
14635
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
14636
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14638
link_all_deplibs_F77=yes
14642
if test "x$host_vendor" = xsequent; then
14643
# Use $CC to link under sequent, because it throws in some extra .o
14644
# files that make .init and .fini sections work.
14645
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14647
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14649
hardcode_libdir_flag_spec_F77='-L$libdir'
14650
hardcode_direct_F77=yes
14651
hardcode_minus_L_F77=yes
14652
hardcode_shlibpath_var_F77=no
14656
case $host_vendor in
14658
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14659
hardcode_direct_F77=yes # is this really true???
14662
## LD is ld it makes a PLAMLIB
14663
## CC just makes a GrossModule.
14664
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14665
reload_cmds_F77='$CC -r -o $output$reload_objs'
14666
hardcode_direct_F77=no
14669
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14670
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14673
runpath_var='LD_RUN_PATH'
14674
hardcode_shlibpath_var_F77=no
14678
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14679
hardcode_shlibpath_var_F77=no
14680
export_dynamic_flag_spec_F77='-Bexport'
14684
if test -d /usr/nec; then
14685
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14686
hardcode_shlibpath_var_F77=no
14687
runpath_var=LD_RUN_PATH
14688
hardcode_runpath_var=yes
14694
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14695
hardcode_direct_F77=yes
14696
hardcode_minus_L_F77=no
14697
hardcode_shlibpath_var_F77=no
14698
hardcode_runpath_var=yes
14699
runpath_var=LD_RUN_PATH
14702
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14703
no_undefined_flag_F77='${wl}-z ${wl}text'
14704
if test "$GCC" = yes; then
14705
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14707
archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14709
runpath_var='LD_RUN_PATH'
14710
hardcode_shlibpath_var_F77=no
14714
no_undefined_flag_F77=' -z text'
14715
# $CC -shared without GNU ld will not create a library from C++
14716
# object files and a static libstdc++, better avoid it by now
14717
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14718
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14719
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14720
hardcode_libdir_flag_spec_F77=
14721
hardcode_shlibpath_var_F77=no
14722
runpath_var='LD_RUN_PATH'
14726
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14727
hardcode_libdir_flag_spec_F77='-L$libdir'
14728
hardcode_shlibpath_var_F77=no
14737
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14738
echo "${ECHO_T}$ld_shlibs_F77" >&6
14739
test "$ld_shlibs_F77" = no && can_build_shared=no
14741
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14742
if test "$GCC" = yes; then
14743
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14747
# Do we need to explicitly link libc?
14749
case "x$archive_cmds_need_lc_F77" in
14751
# Assume -lc should be added
14752
archive_cmds_need_lc_F77=yes
14754
if test "$enable_shared" = yes && test "$GCC" = yes; then
14755
case $archive_cmds_F77 in
14757
# FIXME: we may have to deal with multi-command sequences.
14760
# Test whether the compiler implicitly links with -lc since on some
14761
# systems, -lgcc has to come before -lc. If gcc already passes -lc
14762
# to ld, don't add -lc before -lgcc.
14763
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14764
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14766
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14768
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14769
(eval $ac_compile) 2>&5
14771
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14772
(exit $ac_status); } 2>conftest.err; then
14775
libobjs=conftest.$ac_objext
14777
wl=$lt_prog_compiler_wl_F77
14783
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14784
allow_undefined_flag_F77=
14785
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14786
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14788
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14789
(exit $ac_status); }
14791
archive_cmds_need_lc_F77=no
14793
archive_cmds_need_lc_F77=yes
14795
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14797
cat conftest.err 1>&5
14800
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14801
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14808
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14809
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14810
library_names_spec=
14811
libname_spec='lib$name'
14815
postuninstall_cmds=
14819
shlibpath_overrides_runpath=unknown
14821
dynamic_linker="$host_os ld.so"
14822
sys_lib_dlsearch_path_spec="/lib /usr/lib"
14823
if test "$GCC" = yes; then
14824
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14825
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14826
# if the path contains ";" then we assume it to be the separator
14827
# otherwise default to the standard path separator (i.e. ":") - it is
14828
# assumed that no part of a normal pathname contains ";" but that should
14829
# okay in the real world where ";" in dirpaths is itself problematic.
14830
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14832
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14835
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14837
need_lib_prefix=unknown
14838
hardcode_into_libs=no
14840
# when you set need_version to no, make sure it does not cause -set_version
14841
# flags to be left without arguments
14842
need_version=unknown
14847
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14848
shlibpath_var=LIBPATH
14850
# AIX 3 has no versioning support, so we append a major version to the name.
14851
soname_spec='${libname}${release}${shared_ext}$major'
14858
hardcode_into_libs=yes
14859
if test "$host_cpu" = ia64; then
14860
# AIX 5 supports IA64
14861
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14862
shlibpath_var=LD_LIBRARY_PATH
14864
# With GCC up to 2.95.x, collect2 would create an import file
14865
# for dependence libraries. The import file would start with
14866
# the line `#! .'. This would cause the generated library to
14867
# depend on `.', always an invalid library. This was fixed in
14868
# development snapshots of GCC prior to 3.0.
14870
aix4 | aix4.[01] | aix4.[01].*)
14871
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14873
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14876
can_build_shared=no
14880
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14881
# soname into executable. Probably we can add versioning support to
14882
# collect2, so additional links can be useful in future.
14883
if test "$aix_use_runtimelinking" = yes; then
14884
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
14885
# instead of lib<name>.a to let people know that these are not
14886
# typical AIX shared libraries.
14887
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14889
# We preserve .a as extension for shared libraries through AIX4.2
14890
# and later when we are not doing run time linking.
14891
library_names_spec='${libname}${release}.a $libname.a'
14892
soname_spec='${libname}${release}${shared_ext}$major'
14894
shlibpath_var=LIBPATH
14899
library_names_spec='$libname.ixlibrary $libname.a'
14900
# Create ${libname}_ixlibrary.a entries in /sys/libs.
14901
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'
14905
library_names_spec='${libname}${shared_ext}'
14906
dynamic_linker="$host_os ld.so"
14907
shlibpath_var=LIBRARY_PATH
14913
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14914
soname_spec='${libname}${release}${shared_ext}$major'
14915
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14916
shlibpath_var=LD_LIBRARY_PATH
14917
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14918
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14919
# the default ld.so.conf also contains /usr/contrib/lib and
14920
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14921
# libtool to hard-code these into programs
14924
cygwin* | mingw* | pw32*)
14925
version_type=windows
14930
case $GCC,$host_os in
14931
yes,cygwin* | yes,mingw* | yes,pw32*)
14932
library_names_spec='$libname.dll.a'
14933
# DLL is installed to $(libdir)/../bin by postinstall_cmds
14934
postinstall_cmds='base_file=`basename \${file}`~
14935
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14936
dldir=$destdir/`dirname \$dlpath`~
14937
test -d \$dldir || mkdir -p \$dldir~
14938
$install_prog $dir/$dlname \$dldir/$dlname'
14939
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14940
dlpath=$dir/\$dldll~
14942
shlibpath_overrides_runpath=yes
14946
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
14947
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14948
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14951
# MinGW DLLs use traditional 'lib' prefix
14952
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14953
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14954
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14955
# It is most probably a Windows format PATH printed by
14956
# mingw gcc, but we are running on Cygwin. Gcc prints its search
14957
# path with ; separators, and with drive letters. We can handle the
14958
# drive letters (cygwin fileutils understands them), so leave them,
14959
# especially as we might pass files found there to a mingw objdump,
14960
# which wouldn't understand a cygwinified path. Ahh.
14961
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14963
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14967
# pw32 DLLs use 'pw' prefix rather than 'lib'
14968
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14974
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14977
dynamic_linker='Win32 ld.exe'
14978
# FIXME: first we should search . and the directory the executable is in
14982
darwin* | rhapsody*)
14983
dynamic_linker="$host_os dyld"
14984
version_type=darwin
14987
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14988
soname_spec='${libname}${release}${major}$shared_ext'
14989
shlibpath_overrides_runpath=yes
14990
shlibpath_var=DYLD_LIBRARY_PATH
14991
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14992
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14993
if test "$GCC" = yes; then
14994
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"`
14996
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14998
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15005
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15006
soname_spec='${libname}${release}${shared_ext}$major'
15007
shlibpath_var=LD_LIBRARY_PATH
15018
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15019
soname_spec='${libname}${release}${shared_ext}$major'
15020
shlibpath_var=LD_LIBRARY_PATH
15021
shlibpath_overrides_runpath=no
15022
hardcode_into_libs=yes
15023
dynamic_linker='GNU ld.so'
15027
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15028
version_type=freebsd-$objformat
15029
case $version_type in
15031
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15036
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15040
shlibpath_var=LD_LIBRARY_PATH
15043
shlibpath_overrides_runpath=yes
15045
freebsd3.01* | freebsdelf3.01*)
15046
shlibpath_overrides_runpath=yes
15047
hardcode_into_libs=yes
15050
shlibpath_overrides_runpath=no
15051
hardcode_into_libs=yes
15060
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15061
soname_spec='${libname}${release}${shared_ext}$major'
15062
shlibpath_var=LD_LIBRARY_PATH
15063
hardcode_into_libs=yes
15066
hpux9* | hpux10* | hpux11*)
15067
# Give a soname corresponding to the major version so that dld.sl refuses to
15068
# link against other versions.
15072
case "$host_cpu" in
15075
hardcode_into_libs=yes
15076
dynamic_linker="$host_os dld.so"
15077
shlibpath_var=LD_LIBRARY_PATH
15078
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15079
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15080
soname_spec='${libname}${release}${shared_ext}$major'
15081
if test "X$HPUX_IA64_MODE" = X32; then
15082
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15084
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15086
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15090
hardcode_into_libs=yes
15091
dynamic_linker="$host_os dld.sl"
15092
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15093
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15094
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15095
soname_spec='${libname}${release}${shared_ext}$major'
15096
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15097
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15101
dynamic_linker="$host_os dld.sl"
15102
shlibpath_var=SHLIB_PATH
15103
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15104
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15105
soname_spec='${libname}${release}${shared_ext}$major'
15108
# HP-UX runs *really* slowly unless shared libraries are mode 555.
15109
postinstall_cmds='chmod 555 $lib'
15112
irix5* | irix6* | nonstopux*)
15114
nonstopux*) version_type=nonstopux ;;
15116
if test "$lt_cv_prog_gnu_ld" = yes; then
15124
soname_spec='${libname}${release}${shared_ext}$major'
15125
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15127
irix5* | nonstopux*)
15128
libsuff= shlibsuff=
15131
case $LD in # libtool.m4 will add one of these switches to LD
15132
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15133
libsuff= shlibsuff= libmagic=32-bit;;
15134
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15135
libsuff=32 shlibsuff=N32 libmagic=N32;;
15136
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15137
libsuff=64 shlibsuff=64 libmagic=64-bit;;
15138
*) libsuff= shlibsuff= libmagic=never-match;;
15142
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15143
shlibpath_overrides_runpath=no
15144
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15145
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15146
hardcode_into_libs=yes
15149
# No shared lib support for Linux oldld, aout, or coff.
15150
linux*oldld* | linux*aout* | linux*coff*)
15154
# This must be Linux ELF.
15159
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15160
soname_spec='${libname}${release}${shared_ext}$major'
15161
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15162
shlibpath_var=LD_LIBRARY_PATH
15163
shlibpath_overrides_runpath=no
15164
# This implies no fast_install, which is unacceptable.
15165
# Some rework will be needed to allow for fast_install
15166
# before this can be enabled.
15167
hardcode_into_libs=yes
15169
# find out which ABI we are using
15171
case "$host_cpu" in
15172
x86_64*|s390x*|powerpc64*)
15173
echo '#line 15173 "configure"' > conftest.$ac_ext
15174
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15175
(eval $ac_compile) 2>&5
15177
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15178
(exit $ac_status); }; then
15179
case `/usr/bin/file conftest.$ac_objext` in
15182
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15190
# Append ld.so.conf contents to the search path
15191
if test -f /etc/ld.so.conf; then
15192
lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
15193
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
15196
# We used to test for /lib/ld.so.1 and disable shared libraries on
15197
# powerpc, because MkLinux only supported shared libraries with the
15198
# GNU dynamic linker. Since this was broken with cross compilers,
15199
# most powerpc-linux boxes support dynamic linking these days and
15200
# people can always --disable-shared, the test was removed, and we
15201
# assume the GNU/Linux dynamic linker is in use.
15202
dynamic_linker='GNU/Linux ld.so'
15209
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15210
soname_spec='${libname}${release}${shared_ext}$major'
15211
shlibpath_var=LD_LIBRARY_PATH
15212
shlibpath_overrides_runpath=no
15213
hardcode_into_libs=yes
15214
dynamic_linker='GNU ld.so'
15221
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15222
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15223
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15224
dynamic_linker='NetBSD (a.out) ld.so'
15226
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15227
soname_spec='${libname}${release}${shared_ext}$major'
15228
dynamic_linker='NetBSD ld.elf_so'
15230
shlibpath_var=LD_LIBRARY_PATH
15231
shlibpath_overrides_runpath=yes
15232
hardcode_into_libs=yes
15237
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15238
shlibpath_var=LD_LIBRARY_PATH
15239
shlibpath_overrides_runpath=yes
15246
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15247
soname_spec='${libname}${release}${shared_ext}$major'
15248
shlibpath_var=LD_LIBRARY_PATH
15249
shlibpath_overrides_runpath=yes
15256
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15257
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15258
shlibpath_var=LD_LIBRARY_PATH
15259
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15261
openbsd2.[89] | openbsd2.[89].*)
15262
shlibpath_overrides_runpath=no
15265
shlibpath_overrides_runpath=yes
15269
shlibpath_overrides_runpath=yes
15274
libname_spec='$name'
15277
library_names_spec='$libname${shared_ext} $libname.a'
15278
dynamic_linker='OS/2 ld.exe'
15279
shlibpath_var=LIBPATH
15282
osf3* | osf4* | osf5*)
15286
soname_spec='${libname}${release}${shared_ext}$major'
15287
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15288
shlibpath_var=LD_LIBRARY_PATH
15289
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15290
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15295
soname_spec='${libname}${release}${shared_ext}$major'
15296
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15297
shlibpath_var=LD_LIBRARY_PATH
15304
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15305
soname_spec='${libname}${release}${shared_ext}$major'
15306
shlibpath_var=LD_LIBRARY_PATH
15307
shlibpath_overrides_runpath=yes
15308
hardcode_into_libs=yes
15309
# ldd complains unless libraries are executable
15310
postinstall_cmds='chmod +x $lib'
15315
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15316
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15317
shlibpath_var=LD_LIBRARY_PATH
15318
shlibpath_overrides_runpath=yes
15319
if test "$with_gnu_ld" = yes; then
15325
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15327
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15328
soname_spec='${libname}${release}${shared_ext}$major'
15329
shlibpath_var=LD_LIBRARY_PATH
15330
case $host_vendor in
15332
shlibpath_overrides_runpath=no
15334
export_dynamic_flag_spec='${wl}-Blargedynsym'
15335
runpath_var=LD_RUN_PATH
15343
shlibpath_overrides_runpath=no
15344
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15350
if test -d /usr/nec ;then
15352
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15353
soname_spec='$libname${shared_ext}.$major'
15354
shlibpath_var=LD_LIBRARY_PATH
15360
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15361
soname_spec='${libname}${release}${shared_ext}$major'
15362
shlibpath_var=LD_LIBRARY_PATH
15369
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15370
echo "${ECHO_T}$dynamic_linker" >&6
15371
test "$dynamic_linker" = no && can_build_shared=no
15373
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15374
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15375
hardcode_action_F77=
15376
if test -n "$hardcode_libdir_flag_spec_F77" || \
15377
test -n "$runpath_var_F77" || \
15378
test "X$hardcode_automatic_F77" = "Xyes" ; then
15380
# We can hardcode non-existant directories.
15381
if test "$hardcode_direct_F77" != no &&
15382
# If the only mechanism to avoid hardcoding is shlibpath_var, we
15383
# have to relink, otherwise we might link with an installed library
15384
# when we should be linking with a yet-to-be-installed one
15385
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15386
test "$hardcode_minus_L_F77" != no; then
15387
# Linking always hardcodes the temporary library directory.
15388
hardcode_action_F77=relink
15390
# We can link without hardcoding, and we can hardcode nonexisting dirs.
15391
hardcode_action_F77=immediate
15394
# We cannot hardcode anything, or else we can only hardcode existing
15396
hardcode_action_F77=unsupported
15398
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15399
echo "${ECHO_T}$hardcode_action_F77" >&6
15401
if test "$hardcode_action_F77" = relink; then
15402
# Fast installation is not supported
15403
enable_fast_install=no
15404
elif test "$shlibpath_overrides_runpath" = yes ||
15405
test "$enable_shared" = no; then
15406
# Fast installation is not necessary
15407
enable_fast_install=needless
15412
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15413
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15414
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15415
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15416
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15417
echo "$as_me:$LINENO: result: yes" >&5
15418
echo "${ECHO_T}yes" >&6
15420
# FIXME - insert some real tests, host_os isn't really good enough
15423
if test -n "$STRIP" ; then
15424
striplib="$STRIP -x"
15425
echo "$as_me:$LINENO: result: yes" >&5
15426
echo "${ECHO_T}yes" >&6
15428
echo "$as_me:$LINENO: result: no" >&5
15429
echo "${ECHO_T}no" >&6
15433
echo "$as_me:$LINENO: result: no" >&5
15434
echo "${ECHO_T}no" >&6
15441
# The else clause should only fire when bootstrapping the
15442
# libtool distribution, otherwise you forgot to ship ltmain.sh
15443
# with your package, and you will get complaints that there are
15444
# no rules to generate ltmain.sh.
15445
if test -f "$ltmain"; then
15446
# See if we are running on zsh, and set the options which allow our commands through
15447
# without removal of \ escapes.
15448
if test -n "${ZSH_VERSION+set}" ; then
15449
setopt NO_GLOB_SUBST
15451
# Now quote all the things that may contain metacharacters while being
15452
# careful not to overquote the AC_SUBSTed values. We take copies of the
15453
# variables and quote the copies for generation of the libtool script.
15454
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15456
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15457
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15458
deplibs_check_method reload_flag reload_cmds need_locks \
15459
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15460
lt_cv_sys_global_symbol_to_c_name_address \
15461
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15462
old_postinstall_cmds old_postuninstall_cmds \
15466
lt_prog_compiler_wl_F77 \
15467
lt_prog_compiler_pic_F77 \
15468
lt_prog_compiler_static_F77 \
15469
lt_prog_compiler_no_builtin_flag_F77 \
15470
export_dynamic_flag_spec_F77 \
15471
thread_safe_flag_spec_F77 \
15472
whole_archive_flag_spec_F77 \
15473
enable_shared_with_static_runtimes_F77 \
15474
old_archive_cmds_F77 \
15475
old_archive_from_new_cmds_F77 \
15476
predep_objects_F77 \
15477
postdep_objects_F77 \
15480
compiler_lib_search_path_F77 \
15482
archive_expsym_cmds_F77 \
15483
postinstall_cmds_F77 \
15484
postuninstall_cmds_F77 \
15485
old_archive_from_expsyms_cmds_F77 \
15486
allow_undefined_flag_F77 \
15487
no_undefined_flag_F77 \
15488
export_symbols_cmds_F77 \
15489
hardcode_libdir_flag_spec_F77 \
15490
hardcode_libdir_flag_spec_ld_F77 \
15491
hardcode_libdir_separator_F77 \
15492
hardcode_automatic_F77 \
15494
module_expsym_cmds_F77 \
15495
lt_cv_prog_compiler_c_o_F77 \
15496
exclude_expsyms_F77 \
15497
include_expsyms_F77; do
15500
old_archive_cmds_F77 | \
15501
old_archive_from_new_cmds_F77 | \
15502
archive_cmds_F77 | \
15503
archive_expsym_cmds_F77 | \
15504
module_cmds_F77 | \
15505
module_expsym_cmds_F77 | \
15506
old_archive_from_expsyms_cmds_F77 | \
15507
export_symbols_cmds_F77 | \
15508
extract_expsyms_cmds | reload_cmds | finish_cmds | \
15509
postinstall_cmds | postuninstall_cmds | \
15510
old_postinstall_cmds | old_postuninstall_cmds | \
15511
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15512
# Double-quote double-evaled strings.
15513
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15516
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15522
*'\$0 --fallback-echo"')
15523
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15529
cat <<__EOF__ >> "$cfgfile"
15530
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15532
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15534
# Shell to use when invoking shell scripts.
15537
# Whether or not to build shared libraries.
15538
build_libtool_libs=$enable_shared
15540
# Whether or not to build static libraries.
15541
build_old_libs=$enable_static
15543
# Whether or not to add -lc for building shared libraries.
15544
build_libtool_need_lc=$archive_cmds_need_lc_F77
15546
# Whether or not to disallow shared libs when runtime libs are static
15547
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15549
# Whether or not to optimize for fast installation.
15550
fast_install=$enable_fast_install
15553
host_alias=$host_alias
15556
# An echo program that does not interpret backslashes.
15561
AR_FLAGS=$lt_AR_FLAGS
15566
# A language-specific compiler.
15567
CC=$lt_compiler_F77
15569
# Is the compiler the GNU C compiler?
15575
# The linker used to build libraries.
15578
# Whether we need hard or soft links.
15581
# A BSD-compatible nm program.
15584
# A symbol stripping program
15587
# Used to examine libraries when file_magic_cmd begins "file"
15588
MAGIC_CMD=$MAGIC_CMD
15590
# Used on cygwin: DLL creation program.
15593
# Used on cygwin: object dumper.
15596
# Used on cygwin: assembler.
15599
# The name of the directory that contains temporary libtool files.
15602
# How to create reloadable object files.
15603
reload_flag=$lt_reload_flag
15604
reload_cmds=$lt_reload_cmds
15606
# How to pass a linker flag through the compiler.
15607
wl=$lt_lt_prog_compiler_wl_F77
15609
# Object file suffix (normally "o").
15610
objext="$ac_objext"
15612
# Old archive suffix (normally "a").
15615
# Shared library suffix (normally ".so").
15616
shrext_cmds='$shrext_cmds'
15618
# Executable file suffix (normally "").
15621
# Additional compiler flags for building library objects.
15622
pic_flag=$lt_lt_prog_compiler_pic_F77
15625
# What is the maximum length of a command?
15626
max_cmd_len=$lt_cv_sys_max_cmd_len
15628
# Does compiler simultaneously support -c and -o options?
15629
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15631
# Must we lock files when doing compilation ?
15632
need_locks=$lt_need_locks
15634
# Do we need the lib prefix for modules?
15635
need_lib_prefix=$need_lib_prefix
15637
# Do we need a version for libraries?
15638
need_version=$need_version
15640
# Whether dlopen is supported.
15641
dlopen_support=$enable_dlopen
15643
# Whether dlopen of programs is supported.
15644
dlopen_self=$enable_dlopen_self
15646
# Whether dlopen of statically linked programs is supported.
15647
dlopen_self_static=$enable_dlopen_self_static
15649
# Compiler flag to prevent dynamic linking.
15650
link_static_flag=$lt_lt_prog_compiler_static_F77
15652
# Compiler flag to turn off builtin functions.
15653
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15655
# Compiler flag to allow reflexive dlopens.
15656
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15658
# Compiler flag to generate shared objects directly from archives.
15659
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15661
# Compiler flag to generate thread-safe objects.
15662
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15664
# Library versioning type.
15665
version_type=$version_type
15667
# Format of library name prefix.
15668
libname_spec=$lt_libname_spec
15670
# List of archive names. First name is the real one, the rest are links.
15671
# The last name is the one that the linker finds with -lNAME.
15672
library_names_spec=$lt_library_names_spec
15674
# The coded name of the library, if different from the real name.
15675
soname_spec=$lt_soname_spec
15677
# Commands used to build and install an old-style archive.
15679
old_archive_cmds=$lt_old_archive_cmds_F77
15680
old_postinstall_cmds=$lt_old_postinstall_cmds
15681
old_postuninstall_cmds=$lt_old_postuninstall_cmds
15683
# Create an old-style archive from a shared archive.
15684
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15686
# Create a temporary old-style archive to link instead of a shared archive.
15687
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15689
# Commands used to build and install a shared archive.
15690
archive_cmds=$lt_archive_cmds_F77
15691
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15692
postinstall_cmds=$lt_postinstall_cmds
15693
postuninstall_cmds=$lt_postuninstall_cmds
15695
# Commands used to build a loadable module (assumed same as above if empty)
15696
module_cmds=$lt_module_cmds_F77
15697
module_expsym_cmds=$lt_module_expsym_cmds_F77
15699
# Commands to strip libraries.
15700
old_striplib=$lt_old_striplib
15701
striplib=$lt_striplib
15703
# Dependencies to place before the objects being linked to create a
15705
predep_objects=$lt_predep_objects_F77
15707
# Dependencies to place after the objects being linked to create a
15709
postdep_objects=$lt_postdep_objects_F77
15711
# Dependencies to place before the objects being linked to create a
15713
predeps=$lt_predeps_F77
15715
# Dependencies to place after the objects being linked to create a
15717
postdeps=$lt_postdeps_F77
15719
# The library search path used internally by the compiler when linking
15720
# a shared library.
15721
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15723
# Method to check whether dependent libraries are shared objects.
15724
deplibs_check_method=$lt_deplibs_check_method
15726
# Command to use when deplibs_check_method == file_magic.
15727
file_magic_cmd=$lt_file_magic_cmd
15729
# Flag that allows shared libraries with undefined symbols to be built.
15730
allow_undefined_flag=$lt_allow_undefined_flag_F77
15732
# Flag that forces no undefined symbols.
15733
no_undefined_flag=$lt_no_undefined_flag_F77
15735
# Commands used to finish a libtool library installation in a directory.
15736
finish_cmds=$lt_finish_cmds
15738
# Same as above, but a single script fragment to be evaled but not shown.
15739
finish_eval=$lt_finish_eval
15741
# Take the output of nm and produce a listing of raw symbols and C names.
15742
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15744
# Transform the output of nm in a proper C declaration
15745
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15747
# Transform the output of nm in a C name address pair
15748
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15750
# This is the shared library runtime path variable.
15751
runpath_var=$runpath_var
15753
# This is the shared library path variable.
15754
shlibpath_var=$shlibpath_var
15756
# Is shlibpath searched before the hard-coded library search path?
15757
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15759
# How to hardcode a shared library path into an executable.
15760
hardcode_action=$hardcode_action_F77
15762
# Whether we should hardcode library paths into libraries.
15763
hardcode_into_libs=$hardcode_into_libs
15765
# Flag to hardcode \$libdir into a binary during linking.
15766
# This must work even if \$libdir does not exist.
15767
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15769
# If ld is used when linking, flag to hardcode \$libdir into
15770
# a binary during linking. This must work even if \$libdir does
15772
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15774
# Whether we need a single -rpath flag with a separated argument.
15775
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15777
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15778
# resulting binary.
15779
hardcode_direct=$hardcode_direct_F77
15781
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15782
# resulting binary.
15783
hardcode_minus_L=$hardcode_minus_L_F77
15785
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15786
# the resulting binary.
15787
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15789
# Set to yes if building a shared library automatically hardcodes DIR into the library
15790
# and all subsequent libraries and executables linked against it.
15791
hardcode_automatic=$hardcode_automatic_F77
15793
# Variables whose values should be saved in libtool wrapper scripts and
15794
# restored at relink time.
15795
variables_saved_for_relink="$variables_saved_for_relink"
15797
# Whether libtool must link a program against all its dependency libraries.
15798
link_all_deplibs=$link_all_deplibs_F77
15800
# Compile-time system search path for libraries
15801
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15803
# Run-time system search path for libraries
15804
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15806
# Fix the shell variable \$srcfile for the compiler.
15807
fix_srcfile_path="$fix_srcfile_path_F77"
15809
# Set to yes if exported symbols are required.
15810
always_export_symbols=$always_export_symbols_F77
15812
# The commands to list exported symbols.
15813
export_symbols_cmds=$lt_export_symbols_cmds_F77
15815
# The commands to extract the exported symbol list from a shared archive.
15816
extract_expsyms_cmds=$lt_extract_expsyms_cmds
15818
# Symbols that should not be listed in the preloaded symbols.
15819
exclude_expsyms=$lt_exclude_expsyms_F77
15821
# Symbols that must always be exported.
15822
include_expsyms=$lt_include_expsyms_F77
15824
# ### END LIBTOOL TAG CONFIG: $tagname
15830
# If there is no Makefile yet, we rely on a make rule to execute
15831
# `config.status --recheck' to rerun these tests and create the
15832
# libtool script then.
15833
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15834
if test -f "$ltmain_in"; then
15835
test -f Makefile && make "$ltmain"
15841
ac_cpp='$CPP $CPPFLAGS'
15842
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15843
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15844
ac_compiler_gnu=$ac_cv_c_compiler_gnu
15854
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15858
# Source file extension for Java test sources.
15861
# Object file extension for compiled Java test sources.
15865
# Code to be used in simple compile tests
15866
lt_simple_compile_test_code="class foo {}\n"
15868
# Code to be used in simple link tests
15869
lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15871
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15873
# If no C compiler was specified, use CC.
15876
# Allow CC to be a program name with arguments.
15880
# Allow CC to be a program name with arguments.
15886
# GCJ did not exist at the time GCC didn't implicitly link libc in.
15887
archive_cmds_need_lc_GCJ=no
15890
lt_prog_compiler_no_builtin_flag_GCJ=
15892
if test "$GCC" = yes; then
15893
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15896
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15897
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15898
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15899
echo $ECHO_N "(cached) $ECHO_C" >&6
15901
lt_cv_prog_compiler_rtti_exceptions=no
15902
ac_outfile=conftest.$ac_objext
15903
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15904
lt_compiler_flag="-fno-rtti -fno-exceptions"
15905
# Insert the option either (1) after the last *FLAGS variable, or
15906
# (2) before a word containing "conftest.", or (3) at the end.
15907
# Note that $ac_compile itself does not contain backslashes and begins
15908
# with a dollar sign (not a hyphen), so the echo should work correctly.
15909
# The option is referenced via a variable to avoid confusing sed.
15910
lt_compile=`echo "$ac_compile" | $SED \
15911
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15912
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15913
-e 's:$: $lt_compiler_flag:'`
15914
(eval echo "\"\$as_me:15914: $lt_compile\"" >&5)
15915
(eval "$lt_compile" 2>conftest.err)
15917
cat conftest.err >&5
15918
echo "$as_me:15918: \$? = $ac_status" >&5
15919
if (exit $ac_status) && test -s "$ac_outfile"; then
15920
# The compiler can only warn and ignore the option if not recognized
15921
# So say no if there are warnings
15922
if test ! -s conftest.err; then
15923
lt_cv_prog_compiler_rtti_exceptions=yes
15929
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15930
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15932
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15933
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15940
lt_prog_compiler_wl_GCJ=
15941
lt_prog_compiler_pic_GCJ=
15942
lt_prog_compiler_static_GCJ=
15944
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15945
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15947
if test "$GCC" = yes; then
15948
lt_prog_compiler_wl_GCJ='-Wl,'
15949
lt_prog_compiler_static_GCJ='-static'
15953
# All AIX code is PIC.
15954
if test "$host_cpu" = ia64; then
15955
# AIX 5 now supports IA64 processor
15956
lt_prog_compiler_static_GCJ='-Bstatic'
15961
# FIXME: we need at least 68020 code to build shared libraries, but
15962
# adding the `-m68020' flag to GCC prevents building anything better,
15964
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15967
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15968
# PIC is the default for these OSes.
15971
mingw* | pw32* | os2*)
15972
# This hack is so that the source file can tell whether it is being
15973
# built for inclusion in a dll (and should export symbols for example).
15974
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15977
darwin* | rhapsody*)
15978
# PIC is the default on this platform
15979
# Common symbols not allowed in MH_DYLIB files
15980
lt_prog_compiler_pic_GCJ='-fno-common'
15984
# Just because we use GCC doesn't mean we suddenly get shared libraries
15985
# on systems that don't support them.
15986
lt_prog_compiler_can_build_shared_GCJ=no
15991
if test -d /usr/nec; then
15992
lt_prog_compiler_pic_GCJ=-Kconform_pic
15997
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15998
# not for PA HP-UX.
15999
case "$host_cpu" in
16004
lt_prog_compiler_pic_GCJ='-fPIC'
16010
lt_prog_compiler_pic_GCJ='-fPIC'
16014
# PORTME Check for flag to pass linker flags through the system compiler.
16017
lt_prog_compiler_wl_GCJ='-Wl,'
16018
if test "$host_cpu" = ia64; then
16019
# AIX 5 now supports IA64 processor
16020
lt_prog_compiler_static_GCJ='-Bstatic'
16022
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16026
# PIC is the default on this platform
16027
# Common symbols not allowed in MH_DYLIB files
16028
case "$cc_basename" in
16030
lt_prog_compiler_pic_GCJ='-qnocommon'
16031
lt_prog_compiler_wl_GCJ='-Wl,'
16036
mingw* | pw32* | os2*)
16037
# This hack is so that the source file can tell whether it is being
16038
# built for inclusion in a dll (and should export symbols for example).
16039
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16042
hpux9* | hpux10* | hpux11*)
16043
lt_prog_compiler_wl_GCJ='-Wl,'
16044
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16045
# not for PA HP-UX.
16046
case "$host_cpu" in
16051
lt_prog_compiler_pic_GCJ='+Z'
16054
# Is there a better lt_prog_compiler_static that works with the bundled CC?
16055
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16058
irix5* | irix6* | nonstopux*)
16059
lt_prog_compiler_wl_GCJ='-Wl,'
16060
# PIC (with -KPIC) is the default.
16061
lt_prog_compiler_static_GCJ='-non_shared'
16065
lt_prog_compiler_pic_GCJ='-KPIC'
16066
lt_prog_compiler_static_GCJ='-Bstatic'
16072
lt_prog_compiler_wl_GCJ='-Wl,'
16073
lt_prog_compiler_pic_GCJ='-KPIC'
16074
lt_prog_compiler_static_GCJ='-static'
16077
lt_prog_compiler_wl_GCJ='-Wl,'
16078
# All Alpha code is PIC.
16079
lt_prog_compiler_static_GCJ='-non_shared'
16084
osf3* | osf4* | osf5*)
16085
lt_prog_compiler_wl_GCJ='-Wl,'
16086
# All OSF/1 code is PIC.
16087
lt_prog_compiler_static_GCJ='-non_shared'
16091
lt_prog_compiler_pic_GCJ='-Kpic'
16092
lt_prog_compiler_static_GCJ='-dn'
16096
lt_prog_compiler_wl_GCJ='-Wl,'
16097
lt_prog_compiler_pic_GCJ='-KPIC'
16098
lt_prog_compiler_static_GCJ='-Bstatic'
16102
lt_prog_compiler_wl_GCJ='-Qoption ld '
16103
lt_prog_compiler_pic_GCJ='-PIC'
16104
lt_prog_compiler_static_GCJ='-Bstatic'
16107
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16108
lt_prog_compiler_wl_GCJ='-Wl,'
16109
lt_prog_compiler_pic_GCJ='-KPIC'
16110
lt_prog_compiler_static_GCJ='-Bstatic'
16114
if test -d /usr/nec ;then
16115
lt_prog_compiler_pic_GCJ='-Kconform_pic'
16116
lt_prog_compiler_static_GCJ='-Bstatic'
16121
lt_prog_compiler_pic_GCJ='-pic'
16122
lt_prog_compiler_static_GCJ='-Bstatic'
16126
lt_prog_compiler_can_build_shared_GCJ=no
16131
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16132
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16135
# Check to make sure the PIC flag actually works.
16137
if test -n "$lt_prog_compiler_pic_GCJ"; then
16139
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16140
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16141
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16142
echo $ECHO_N "(cached) $ECHO_C" >&6
16144
lt_prog_compiler_pic_works_GCJ=no
16145
ac_outfile=conftest.$ac_objext
16146
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16147
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16148
# Insert the option either (1) after the last *FLAGS variable, or
16149
# (2) before a word containing "conftest.", or (3) at the end.
16150
# Note that $ac_compile itself does not contain backslashes and begins
16151
# with a dollar sign (not a hyphen), so the echo should work correctly.
16152
# The option is referenced via a variable to avoid confusing sed.
16153
lt_compile=`echo "$ac_compile" | $SED \
16154
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16155
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16156
-e 's:$: $lt_compiler_flag:'`
16157
(eval echo "\"\$as_me:16157: $lt_compile\"" >&5)
16158
(eval "$lt_compile" 2>conftest.err)
16160
cat conftest.err >&5
16161
echo "$as_me:16161: \$? = $ac_status" >&5
16162
if (exit $ac_status) && test -s "$ac_outfile"; then
16163
# The compiler can only warn and ignore the option if not recognized
16164
# So say no if there are warnings
16165
if test ! -s conftest.err; then
16166
lt_prog_compiler_pic_works_GCJ=yes
16172
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16173
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16175
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16176
case $lt_prog_compiler_pic_GCJ in
16178
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16181
lt_prog_compiler_pic_GCJ=
16182
lt_prog_compiler_can_build_shared_GCJ=no
16187
# For platforms which do not support PIC, -DPIC is meaningless:
16189
lt_prog_compiler_pic_GCJ=
16192
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16196
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16197
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16198
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16199
echo $ECHO_N "(cached) $ECHO_C" >&6
16201
lt_cv_prog_compiler_c_o_GCJ=no
16202
$rm -r conftest 2>/dev/null
16206
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16208
lt_compiler_flag="-o out/conftest2.$ac_objext"
16209
# Insert the option either (1) after the last *FLAGS variable, or
16210
# (2) before a word containing "conftest.", or (3) at the end.
16211
# Note that $ac_compile itself does not contain backslashes and begins
16212
# with a dollar sign (not a hyphen), so the echo should work correctly.
16213
lt_compile=`echo "$ac_compile" | $SED \
16214
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16215
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16216
-e 's:$: $lt_compiler_flag:'`
16217
(eval echo "\"\$as_me:16217: $lt_compile\"" >&5)
16218
(eval "$lt_compile" 2>out/conftest.err)
16220
cat out/conftest.err >&5
16221
echo "$as_me:16221: \$? = $ac_status" >&5
16222
if (exit $ac_status) && test -s out/conftest2.$ac_objext
16224
# The compiler can only warn and ignore the option if not recognized
16225
# So say no if there are warnings
16226
if test ! -s out/conftest.err; then
16227
lt_cv_prog_compiler_c_o_GCJ=yes
16232
# SGI C++ compiler will create directory out/ii_files/ for
16233
# template instantiation
16234
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16235
$rm out/* && rmdir out
16241
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16242
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16245
hard_links="nottested"
16246
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16247
# do not overwrite the value of need_locks provided by the user
16248
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16249
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16252
ln conftest.a conftest.b 2>/dev/null && hard_links=no
16254
ln conftest.a conftest.b 2>&5 || hard_links=no
16255
ln conftest.a conftest.b 2>/dev/null && hard_links=no
16256
echo "$as_me:$LINENO: result: $hard_links" >&5
16257
echo "${ECHO_T}$hard_links" >&6
16258
if test "$hard_links" = no; then
16259
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16260
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16267
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16268
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16271
allow_undefined_flag_GCJ=
16272
enable_shared_with_static_runtimes_GCJ=no
16274
archive_expsym_cmds_GCJ=
16275
old_archive_From_new_cmds_GCJ=
16276
old_archive_from_expsyms_cmds_GCJ=
16277
export_dynamic_flag_spec_GCJ=
16278
whole_archive_flag_spec_GCJ=
16279
thread_safe_flag_spec_GCJ=
16280
hardcode_libdir_flag_spec_GCJ=
16281
hardcode_libdir_flag_spec_ld_GCJ=
16282
hardcode_libdir_separator_GCJ=
16283
hardcode_direct_GCJ=no
16284
hardcode_minus_L_GCJ=no
16285
hardcode_shlibpath_var_GCJ=unsupported
16286
link_all_deplibs_GCJ=unknown
16287
hardcode_automatic_GCJ=no
16289
module_expsym_cmds_GCJ=
16290
always_export_symbols_GCJ=no
16291
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16292
# include_expsyms should be a list of space-separated symbols to be *always*
16293
# included in the symbol list
16294
include_expsyms_GCJ=
16295
# exclude_expsyms can be an extended regexp of symbols to exclude
16296
# it will be wrapped by ` (' and `)$', so one must not match beginning or
16297
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16298
# as well as any symbol that contains `d'.
16299
exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16300
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16301
# platforms (ab)use it in PIC code, but their linkers get confused if
16302
# the symbol is explicitly referenced. Since portable code cannot
16303
# rely on this symbol name, it's probably fine to never include it in
16304
# preloaded symbol tables.
16305
extract_expsyms_cmds=
16308
cygwin* | mingw* | pw32*)
16309
# FIXME: the MSVC++ port hasn't been tested in a loooong time
16310
# When not using gcc, we currently assume that we are using
16311
# Microsoft Visual C++.
16312
if test "$GCC" != yes; then
16322
if test "$with_gnu_ld" = yes; then
16323
# If archive_cmds runs LD, not CC, wlarc should be empty
16326
# See if GNU ld supports shared libraries.
16328
aix3* | aix4* | aix5*)
16329
# On AIX/PPC, the GNU linker is very broken
16330
if test "$host_cpu" != ia64; then
16334
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16335
*** to be unable to reliably create shared libraries on AIX.
16336
*** Therefore, libtool is disabling shared libraries support. If you
16337
*** really care for shared libraries, you may want to modify your PATH
16338
*** so that a non-GNU linker is found, and then restart.
16345
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)'
16346
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16347
hardcode_minus_L_GCJ=yes
16349
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16350
# that the semantics of dynamic libraries on AmigaOS, at least up
16351
# to version 4, is to share data among multiple programs linked
16352
# with the same dynamic library. Since this doesn't match the
16353
# behavior of shared libraries on other platforms, we can't use
16359
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16360
allow_undefined_flag_GCJ=unsupported
16361
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16362
# support --undefined. This deserves some investigation. FIXME
16363
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16369
cygwin* | mingw* | pw32*)
16370
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16371
# as there is no search path for DLLs.
16372
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16373
allow_undefined_flag_GCJ=unsupported
16374
always_export_symbols_GCJ=no
16375
enable_shared_with_static_runtimes_GCJ=yes
16376
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16378
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16379
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16380
# If the export-symbols file already is a .def file (1st line
16381
# is EXPORTS), use it as is; otherwise, prepend...
16382
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16383
cp $export_symbols $output_objdir/$soname.def;
16385
echo EXPORTS > $output_objdir/$soname.def;
16386
cat $export_symbols >> $output_objdir/$soname.def;
16388
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16395
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16396
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16399
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16400
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16405
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16409
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16410
*** create shared libraries on Solaris systems. Therefore, libtool
16411
*** is disabling shared libraries support. We urge you to upgrade GNU
16412
*** binutils to release 2.9.1 or newer. Another option is to modify
16413
*** your PATH or compiler configuration so that the native linker is
16414
*** used, and then restart.
16417
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16418
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16419
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16426
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16428
hardcode_direct_GCJ=yes
16429
hardcode_shlibpath_var_GCJ=no
16433
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16434
tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16435
archive_cmds_GCJ="$tmp_archive_cmds"
16436
supports_anon_versioning=no
16437
case `$LD -v 2>/dev/null` in
16438
*\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16439
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16440
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16441
*\ 2.11.*) ;; # other 2.11 versions
16442
*) supports_anon_versioning=yes ;;
16444
if test $supports_anon_versioning = yes; then
16445
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16446
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16447
$echo "local: *; };" >> $output_objdir/$libname.ver~
16448
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16450
archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16458
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16459
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16460
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16467
if test "$ld_shlibs_GCJ" = yes; then
16468
runpath_var=LD_RUN_PATH
16469
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16470
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16471
# ancient GNU ld didn't support --whole-archive et. al.
16472
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16473
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16475
whole_archive_flag_spec_GCJ=
16479
# PORTME fill in a description of your system's linker (not GNU ld)
16482
allow_undefined_flag_GCJ=unsupported
16483
always_export_symbols_GCJ=yes
16484
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'
16485
# Note: this linker hardcodes the directories in LIBPATH if there
16486
# are no directories specified by -L.
16487
hardcode_minus_L_GCJ=yes
16488
if test "$GCC" = yes && test -z "$link_static_flag"; then
16489
# Neither direct hardcoding nor static linking is supported with a
16491
hardcode_direct_GCJ=unsupported
16496
if test "$host_cpu" = ia64; then
16497
# On IA64, the linker does run time linking by default, so we don't
16498
# have to do anything special.
16499
aix_use_runtimelinking=no
16500
exp_sym_flag='-Bexport'
16503
# If we're using GNU nm, then we don't want the "-C" option.
16504
# -C means demangle to AIX nm, but means don't demangle with GNU nm
16505
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16506
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'
16508
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'
16510
aix_use_runtimelinking=no
16512
# Test if we are trying to use run time linking or normal
16513
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16514
# need to do runtime linking.
16515
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16516
for ld_flag in $LDFLAGS; do
16517
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16518
aix_use_runtimelinking=yes
16524
exp_sym_flag='-bexport'
16525
no_entry_flag='-bnoentry'
16528
# When large executables or shared objects are built, AIX ld can
16529
# have problems creating the table of contents. If linking a library
16530
# or program results in "error TOC overflow" add -mminimal-toc to
16531
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16532
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16534
archive_cmds_GCJ=''
16535
hardcode_direct_GCJ=yes
16536
hardcode_libdir_separator_GCJ=':'
16537
link_all_deplibs_GCJ=yes
16539
if test "$GCC" = yes; then
16540
case $host_os in aix4.012|aix4.012.*)
16541
# We only want to do this on AIX 4.2 and lower, the check
16542
# below for broken collect2 doesn't work under 4.3+
16543
collect2name=`${CC} -print-prog-name=collect2`
16544
if test -f "$collect2name" && \
16545
strings "$collect2name" | grep resolve_lib_name >/dev/null
16547
# We have reworked collect2
16548
hardcode_direct_GCJ=yes
16550
# We have old collect2
16551
hardcode_direct_GCJ=unsupported
16552
# It fails to find uninstalled libraries when the uninstalled
16553
# path is not listed in the libpath. Setting hardcode_minus_L
16554
# to unsupported forces relinking
16555
hardcode_minus_L_GCJ=yes
16556
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16557
hardcode_libdir_separator_GCJ=
16560
shared_flag='-shared'
16563
if test "$host_cpu" = ia64; then
16564
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16565
# chokes on -Wl,-G. The following line is correct:
16568
if test "$aix_use_runtimelinking" = yes; then
16569
shared_flag='${wl}-G'
16571
shared_flag='${wl}-bM:SRE'
16576
# It seems that -bexpall does not export symbols beginning with
16577
# underscore (_), so it is better to generate a list of symbols to export.
16578
always_export_symbols_GCJ=yes
16579
if test "$aix_use_runtimelinking" = yes; then
16580
# Warning - without using the other runtime loading flags (-brtl),
16581
# -berok will link without error, but may produce a broken library.
16582
allow_undefined_flag_GCJ='-berok'
16583
# Determine the default libpath from the value encoded in an empty executable.
16584
cat >conftest.$ac_ext <<_ACEOF
16587
cat confdefs.h >>conftest.$ac_ext
16588
cat >>conftest.$ac_ext <<_ACEOF
16589
/* end confdefs.h. */
16599
rm -f conftest.$ac_objext conftest$ac_exeext
16600
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16601
(eval $ac_link) 2>conftest.er1
16603
grep -v '^ *+' conftest.er1 >conftest.err
16605
cat conftest.err >&5
16606
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16607
(exit $ac_status); } &&
16608
{ ac_try='test -z "$ac_c_werror_flag"
16609
|| test ! -s conftest.err'
16610
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16611
(eval $ac_try) 2>&5
16613
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16614
(exit $ac_status); }; } &&
16615
{ ac_try='test -s conftest$ac_exeext'
16616
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16617
(eval $ac_try) 2>&5
16619
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16620
(exit $ac_status); }; }; then
16622
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16624
# Check for a 64-bit object if we didn't find anything.
16625
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; }
16628
echo "$as_me: failed program was:" >&5
16629
sed 's/^/| /' conftest.$ac_ext >&5
16632
rm -f conftest.err conftest.$ac_objext \
16633
conftest$ac_exeext conftest.$ac_ext
16634
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16636
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16637
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"
16639
if test "$host_cpu" = ia64; then
16640
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16641
allow_undefined_flag_GCJ="-z nodefs"
16642
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"
16644
# Determine the default libpath from the value encoded in an empty executable.
16645
cat >conftest.$ac_ext <<_ACEOF
16648
cat confdefs.h >>conftest.$ac_ext
16649
cat >>conftest.$ac_ext <<_ACEOF
16650
/* end confdefs.h. */
16660
rm -f conftest.$ac_objext conftest$ac_exeext
16661
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16662
(eval $ac_link) 2>conftest.er1
16664
grep -v '^ *+' conftest.er1 >conftest.err
16666
cat conftest.err >&5
16667
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16668
(exit $ac_status); } &&
16669
{ ac_try='test -z "$ac_c_werror_flag"
16670
|| test ! -s conftest.err'
16671
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16672
(eval $ac_try) 2>&5
16674
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16675
(exit $ac_status); }; } &&
16676
{ ac_try='test -s conftest$ac_exeext'
16677
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16678
(eval $ac_try) 2>&5
16680
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16681
(exit $ac_status); }; }; then
16683
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16685
# Check for a 64-bit object if we didn't find anything.
16686
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; }
16689
echo "$as_me: failed program was:" >&5
16690
sed 's/^/| /' conftest.$ac_ext >&5
16693
rm -f conftest.err conftest.$ac_objext \
16694
conftest$ac_exeext conftest.$ac_ext
16695
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16697
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16698
# Warning - without using the other run time loading flags,
16699
# -berok will link without error, but may produce a broken library.
16700
no_undefined_flag_GCJ=' ${wl}-bernotok'
16701
allow_undefined_flag_GCJ=' ${wl}-berok'
16702
# -bexpall does not export symbols beginning with underscore (_)
16703
always_export_symbols_GCJ=yes
16704
# Exported symbols can be pulled into shared objects from archives
16705
whole_archive_flag_spec_GCJ=' '
16706
archive_cmds_need_lc_GCJ=yes
16707
# This is similar to how AIX traditionally builds it's shared libraries.
16708
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'
16714
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)'
16715
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16716
hardcode_minus_L_GCJ=yes
16717
# see comment about different semantics on the GNU ld section
16722
export_dynamic_flag_spec_GCJ=-rdynamic
16725
cygwin* | mingw* | pw32*)
16726
# When not using gcc, we currently assume that we are using
16727
# Microsoft Visual C++.
16728
# hardcode_libdir_flag_spec is actually meaningless, as there is
16729
# no search path for DLLs.
16730
hardcode_libdir_flag_spec_GCJ=' '
16731
allow_undefined_flag_GCJ=unsupported
16732
# Tell ltmain to make .lib files, not .a files.
16734
# Tell ltmain to make .dll files, not .so files.
16736
# FIXME: Setting linknames here is a bad hack.
16737
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16738
# The linker will automatically build a .lib file if we build a DLL.
16739
old_archive_From_new_cmds_GCJ='true'
16740
# FIXME: Should let the user specify the lib program.
16741
old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16742
fix_srcfile_path='`cygpath -w "$srcfile"`'
16743
enable_shared_with_static_runtimes_GCJ=yes
16746
darwin* | rhapsody*)
16748
rhapsody* | darwin1.[012])
16749
allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16752
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16753
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16755
case ${MACOSX_DEPLOYMENT_TARGET} in
16757
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16760
allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16766
archive_cmds_need_lc_GCJ=no
16767
hardcode_direct_GCJ=no
16768
hardcode_automatic_GCJ=yes
16769
hardcode_shlibpath_var_GCJ=unsupported
16770
whole_archive_flag_spec_GCJ=''
16771
link_all_deplibs_GCJ=yes
16772
if test "$GCC" = yes ; then
16773
output_verbose_link_cmd='echo'
16774
archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16775
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16776
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16777
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}'
16778
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}'
16780
case "$cc_basename" in
16782
output_verbose_link_cmd='echo'
16783
archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16784
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16785
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16786
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}'
16787
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}'
16797
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16798
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16799
hardcode_shlibpath_var_GCJ=no
16806
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16807
# support. Future versions do this automatically, but an explicit c++rt0.o
16808
# does not break anything, and helps significantly (at the cost of a little
16811
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16812
hardcode_libdir_flag_spec_GCJ='-R$libdir'
16813
hardcode_direct_GCJ=yes
16814
hardcode_shlibpath_var_GCJ=no
16817
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
16819
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16820
hardcode_direct_GCJ=yes
16821
hardcode_minus_L_GCJ=yes
16822
hardcode_shlibpath_var_GCJ=no
16825
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16826
freebsd* | kfreebsd*-gnu)
16827
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16828
hardcode_libdir_flag_spec_GCJ='-R$libdir'
16829
hardcode_direct_GCJ=yes
16830
hardcode_shlibpath_var_GCJ=no
16834
if test "$GCC" = yes; then
16835
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'
16837
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'
16839
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16840
hardcode_libdir_separator_GCJ=:
16841
hardcode_direct_GCJ=yes
16843
# hardcode_minus_L: Not really in the search PATH,
16844
# but as the default location of the library.
16845
hardcode_minus_L_GCJ=yes
16846
export_dynamic_flag_spec_GCJ='${wl}-E'
16850
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16851
case "$host_cpu" in
16853
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16856
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16860
case "$host_cpu" in
16862
archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16865
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16869
if test "$with_gnu_ld" = no; then
16870
case "$host_cpu" in
16872
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16873
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16874
hardcode_libdir_separator_GCJ=:
16875
hardcode_direct_GCJ=no
16876
hardcode_shlibpath_var_GCJ=no
16879
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16880
hardcode_direct_GCJ=no
16881
hardcode_shlibpath_var_GCJ=no
16883
# hardcode_minus_L: Not really in the search PATH,
16884
# but as the default location of the library.
16885
hardcode_minus_L_GCJ=yes
16888
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16889
hardcode_libdir_separator_GCJ=:
16890
hardcode_direct_GCJ=yes
16891
export_dynamic_flag_spec_GCJ='${wl}-E'
16893
# hardcode_minus_L: Not really in the search PATH,
16894
# but as the default location of the library.
16895
hardcode_minus_L_GCJ=yes
16901
irix5* | irix6* | nonstopux*)
16902
if test "$GCC" = yes; then
16903
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'
16905
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'
16906
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16908
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16909
hardcode_libdir_separator_GCJ=:
16910
link_all_deplibs_GCJ=yes
16914
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16915
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16917
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16919
hardcode_libdir_flag_spec_GCJ='-R$libdir'
16920
hardcode_direct_GCJ=yes
16921
hardcode_shlibpath_var_GCJ=no
16925
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16926
hardcode_direct_GCJ=yes
16927
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16928
hardcode_libdir_separator_GCJ=:
16929
hardcode_shlibpath_var_GCJ=no
16933
hardcode_direct_GCJ=yes
16934
hardcode_shlibpath_var_GCJ=no
16935
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16936
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16937
archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16938
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16939
export_dynamic_flag_spec_GCJ='${wl}-E'
16942
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16943
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16944
hardcode_libdir_flag_spec_GCJ='-R$libdir'
16947
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16948
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16955
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16956
hardcode_minus_L_GCJ=yes
16957
allow_undefined_flag_GCJ=unsupported
16958
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'
16959
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16963
if test "$GCC" = yes; then
16964
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16965
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'
16967
allow_undefined_flag_GCJ=' -expect_unresolved \*'
16968
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'
16970
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16971
hardcode_libdir_separator_GCJ=:
16974
osf4* | osf5*) # as osf3* with the addition of -msym flag
16975
if test "$GCC" = yes; then
16976
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16977
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'
16978
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16980
allow_undefined_flag_GCJ=' -expect_unresolved \*'
16981
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'
16982
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~
16983
$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'
16985
# Both c and cxx compiler support -rpath directly
16986
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16988
hardcode_libdir_separator_GCJ=:
16992
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16993
hardcode_shlibpath_var_GCJ=no
16994
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16995
runpath_var=LD_RUN_PATH
16996
hardcode_runpath_var=yes
17000
no_undefined_flag_GCJ=' -z text'
17001
if test "$GCC" = yes; then
17002
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17003
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17004
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17006
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17007
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17008
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17010
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17011
hardcode_shlibpath_var_GCJ=no
17013
solaris2.[0-5] | solaris2.[0-5].*) ;;
17014
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
17015
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17017
link_all_deplibs_GCJ=yes
17021
if test "x$host_vendor" = xsequent; then
17022
# Use $CC to link under sequent, because it throws in some extra .o
17023
# files that make .init and .fini sections work.
17024
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17026
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17028
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17029
hardcode_direct_GCJ=yes
17030
hardcode_minus_L_GCJ=yes
17031
hardcode_shlibpath_var_GCJ=no
17035
case $host_vendor in
17037
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17038
hardcode_direct_GCJ=yes # is this really true???
17041
## LD is ld it makes a PLAMLIB
17042
## CC just makes a GrossModule.
17043
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17044
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17045
hardcode_direct_GCJ=no
17048
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17049
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17052
runpath_var='LD_RUN_PATH'
17053
hardcode_shlibpath_var_GCJ=no
17057
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17058
hardcode_shlibpath_var_GCJ=no
17059
export_dynamic_flag_spec_GCJ='-Bexport'
17063
if test -d /usr/nec; then
17064
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17065
hardcode_shlibpath_var_GCJ=no
17066
runpath_var=LD_RUN_PATH
17067
hardcode_runpath_var=yes
17073
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17074
hardcode_direct_GCJ=yes
17075
hardcode_minus_L_GCJ=no
17076
hardcode_shlibpath_var_GCJ=no
17077
hardcode_runpath_var=yes
17078
runpath_var=LD_RUN_PATH
17081
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
17082
no_undefined_flag_GCJ='${wl}-z ${wl}text'
17083
if test "$GCC" = yes; then
17084
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17086
archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17088
runpath_var='LD_RUN_PATH'
17089
hardcode_shlibpath_var_GCJ=no
17093
no_undefined_flag_GCJ=' -z text'
17094
# $CC -shared without GNU ld will not create a library from C++
17095
# object files and a static libstdc++, better avoid it by now
17096
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17097
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17098
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17099
hardcode_libdir_flag_spec_GCJ=
17100
hardcode_shlibpath_var_GCJ=no
17101
runpath_var='LD_RUN_PATH'
17105
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17106
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17107
hardcode_shlibpath_var_GCJ=no
17116
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17117
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17118
test "$ld_shlibs_GCJ" = no && can_build_shared=no
17120
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17121
if test "$GCC" = yes; then
17122
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17126
# Do we need to explicitly link libc?
17128
case "x$archive_cmds_need_lc_GCJ" in
17130
# Assume -lc should be added
17131
archive_cmds_need_lc_GCJ=yes
17133
if test "$enable_shared" = yes && test "$GCC" = yes; then
17134
case $archive_cmds_GCJ in
17136
# FIXME: we may have to deal with multi-command sequences.
17139
# Test whether the compiler implicitly links with -lc since on some
17140
# systems, -lgcc has to come before -lc. If gcc already passes -lc
17141
# to ld, don't add -lc before -lgcc.
17142
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17143
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17145
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17147
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17148
(eval $ac_compile) 2>&5
17150
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17151
(exit $ac_status); } 2>conftest.err; then
17154
libobjs=conftest.$ac_objext
17156
wl=$lt_prog_compiler_wl_GCJ
17162
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17163
allow_undefined_flag_GCJ=
17164
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17165
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17167
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17168
(exit $ac_status); }
17170
archive_cmds_need_lc_GCJ=no
17172
archive_cmds_need_lc_GCJ=yes
17174
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17176
cat conftest.err 1>&5
17179
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17180
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17187
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17188
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17189
library_names_spec=
17190
libname_spec='lib$name'
17194
postuninstall_cmds=
17198
shlibpath_overrides_runpath=unknown
17200
dynamic_linker="$host_os ld.so"
17201
sys_lib_dlsearch_path_spec="/lib /usr/lib"
17202
if test "$GCC" = yes; then
17203
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17204
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17205
# if the path contains ";" then we assume it to be the separator
17206
# otherwise default to the standard path separator (i.e. ":") - it is
17207
# assumed that no part of a normal pathname contains ";" but that should
17208
# okay in the real world where ";" in dirpaths is itself problematic.
17209
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17211
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17214
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17216
need_lib_prefix=unknown
17217
hardcode_into_libs=no
17219
# when you set need_version to no, make sure it does not cause -set_version
17220
# flags to be left without arguments
17221
need_version=unknown
17226
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17227
shlibpath_var=LIBPATH
17229
# AIX 3 has no versioning support, so we append a major version to the name.
17230
soname_spec='${libname}${release}${shared_ext}$major'
17237
hardcode_into_libs=yes
17238
if test "$host_cpu" = ia64; then
17239
# AIX 5 supports IA64
17240
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17241
shlibpath_var=LD_LIBRARY_PATH
17243
# With GCC up to 2.95.x, collect2 would create an import file
17244
# for dependence libraries. The import file would start with
17245
# the line `#! .'. This would cause the generated library to
17246
# depend on `.', always an invalid library. This was fixed in
17247
# development snapshots of GCC prior to 3.0.
17249
aix4 | aix4.[01] | aix4.[01].*)
17250
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17252
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17255
can_build_shared=no
17259
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17260
# soname into executable. Probably we can add versioning support to
17261
# collect2, so additional links can be useful in future.
17262
if test "$aix_use_runtimelinking" = yes; then
17263
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
17264
# instead of lib<name>.a to let people know that these are not
17265
# typical AIX shared libraries.
17266
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17268
# We preserve .a as extension for shared libraries through AIX4.2
17269
# and later when we are not doing run time linking.
17270
library_names_spec='${libname}${release}.a $libname.a'
17271
soname_spec='${libname}${release}${shared_ext}$major'
17273
shlibpath_var=LIBPATH
17278
library_names_spec='$libname.ixlibrary $libname.a'
17279
# Create ${libname}_ixlibrary.a entries in /sys/libs.
17280
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'
17284
library_names_spec='${libname}${shared_ext}'
17285
dynamic_linker="$host_os ld.so"
17286
shlibpath_var=LIBRARY_PATH
17292
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17293
soname_spec='${libname}${release}${shared_ext}$major'
17294
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17295
shlibpath_var=LD_LIBRARY_PATH
17296
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17297
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17298
# the default ld.so.conf also contains /usr/contrib/lib and
17299
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17300
# libtool to hard-code these into programs
17303
cygwin* | mingw* | pw32*)
17304
version_type=windows
17309
case $GCC,$host_os in
17310
yes,cygwin* | yes,mingw* | yes,pw32*)
17311
library_names_spec='$libname.dll.a'
17312
# DLL is installed to $(libdir)/../bin by postinstall_cmds
17313
postinstall_cmds='base_file=`basename \${file}`~
17314
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17315
dldir=$destdir/`dirname \$dlpath`~
17316
test -d \$dldir || mkdir -p \$dldir~
17317
$install_prog $dir/$dlname \$dldir/$dlname'
17318
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17319
dlpath=$dir/\$dldll~
17321
shlibpath_overrides_runpath=yes
17325
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
17326
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17327
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17330
# MinGW DLLs use traditional 'lib' prefix
17331
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17332
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17333
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17334
# It is most probably a Windows format PATH printed by
17335
# mingw gcc, but we are running on Cygwin. Gcc prints its search
17336
# path with ; separators, and with drive letters. We can handle the
17337
# drive letters (cygwin fileutils understands them), so leave them,
17338
# especially as we might pass files found there to a mingw objdump,
17339
# which wouldn't understand a cygwinified path. Ahh.
17340
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17342
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17346
# pw32 DLLs use 'pw' prefix rather than 'lib'
17347
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17353
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17356
dynamic_linker='Win32 ld.exe'
17357
# FIXME: first we should search . and the directory the executable is in
17361
darwin* | rhapsody*)
17362
dynamic_linker="$host_os dyld"
17363
version_type=darwin
17366
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17367
soname_spec='${libname}${release}${major}$shared_ext'
17368
shlibpath_overrides_runpath=yes
17369
shlibpath_var=DYLD_LIBRARY_PATH
17370
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17371
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17372
if test "$GCC" = yes; then
17373
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"`
17375
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17377
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17384
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17385
soname_spec='${libname}${release}${shared_ext}$major'
17386
shlibpath_var=LD_LIBRARY_PATH
17397
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17398
soname_spec='${libname}${release}${shared_ext}$major'
17399
shlibpath_var=LD_LIBRARY_PATH
17400
shlibpath_overrides_runpath=no
17401
hardcode_into_libs=yes
17402
dynamic_linker='GNU ld.so'
17406
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17407
version_type=freebsd-$objformat
17408
case $version_type in
17410
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17415
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17419
shlibpath_var=LD_LIBRARY_PATH
17422
shlibpath_overrides_runpath=yes
17424
freebsd3.01* | freebsdelf3.01*)
17425
shlibpath_overrides_runpath=yes
17426
hardcode_into_libs=yes
17429
shlibpath_overrides_runpath=no
17430
hardcode_into_libs=yes
17439
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17440
soname_spec='${libname}${release}${shared_ext}$major'
17441
shlibpath_var=LD_LIBRARY_PATH
17442
hardcode_into_libs=yes
17445
hpux9* | hpux10* | hpux11*)
17446
# Give a soname corresponding to the major version so that dld.sl refuses to
17447
# link against other versions.
17451
case "$host_cpu" in
17454
hardcode_into_libs=yes
17455
dynamic_linker="$host_os dld.so"
17456
shlibpath_var=LD_LIBRARY_PATH
17457
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17458
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17459
soname_spec='${libname}${release}${shared_ext}$major'
17460
if test "X$HPUX_IA64_MODE" = X32; then
17461
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17463
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17465
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17469
hardcode_into_libs=yes
17470
dynamic_linker="$host_os dld.sl"
17471
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17472
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17473
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17474
soname_spec='${libname}${release}${shared_ext}$major'
17475
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17476
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17480
dynamic_linker="$host_os dld.sl"
17481
shlibpath_var=SHLIB_PATH
17482
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17483
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17484
soname_spec='${libname}${release}${shared_ext}$major'
17487
# HP-UX runs *really* slowly unless shared libraries are mode 555.
17488
postinstall_cmds='chmod 555 $lib'
17491
irix5* | irix6* | nonstopux*)
17493
nonstopux*) version_type=nonstopux ;;
17495
if test "$lt_cv_prog_gnu_ld" = yes; then
17503
soname_spec='${libname}${release}${shared_ext}$major'
17504
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17506
irix5* | nonstopux*)
17507
libsuff= shlibsuff=
17510
case $LD in # libtool.m4 will add one of these switches to LD
17511
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17512
libsuff= shlibsuff= libmagic=32-bit;;
17513
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17514
libsuff=32 shlibsuff=N32 libmagic=N32;;
17515
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17516
libsuff=64 shlibsuff=64 libmagic=64-bit;;
17517
*) libsuff= shlibsuff= libmagic=never-match;;
17521
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17522
shlibpath_overrides_runpath=no
17523
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17524
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17525
hardcode_into_libs=yes
17528
# No shared lib support for Linux oldld, aout, or coff.
17529
linux*oldld* | linux*aout* | linux*coff*)
17533
# This must be Linux ELF.
17538
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17539
soname_spec='${libname}${release}${shared_ext}$major'
17540
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17541
shlibpath_var=LD_LIBRARY_PATH
17542
shlibpath_overrides_runpath=no
17543
# This implies no fast_install, which is unacceptable.
17544
# Some rework will be needed to allow for fast_install
17545
# before this can be enabled.
17546
hardcode_into_libs=yes
17548
# find out which ABI we are using
17550
case "$host_cpu" in
17551
x86_64*|s390x*|powerpc64*)
17552
echo '#line 17552 "configure"' > conftest.$ac_ext
17553
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17554
(eval $ac_compile) 2>&5
17556
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17557
(exit $ac_status); }; then
17558
case `/usr/bin/file conftest.$ac_objext` in
17561
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
17569
# Append ld.so.conf contents to the search path
17570
if test -f /etc/ld.so.conf; then
17571
lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17572
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
17575
# We used to test for /lib/ld.so.1 and disable shared libraries on
17576
# powerpc, because MkLinux only supported shared libraries with the
17577
# GNU dynamic linker. Since this was broken with cross compilers,
17578
# most powerpc-linux boxes support dynamic linking these days and
17579
# people can always --disable-shared, the test was removed, and we
17580
# assume the GNU/Linux dynamic linker is in use.
17581
dynamic_linker='GNU/Linux ld.so'
17588
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17589
soname_spec='${libname}${release}${shared_ext}$major'
17590
shlibpath_var=LD_LIBRARY_PATH
17591
shlibpath_overrides_runpath=no
17592
hardcode_into_libs=yes
17593
dynamic_linker='GNU ld.so'
17600
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17601
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17602
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17603
dynamic_linker='NetBSD (a.out) ld.so'
17605
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17606
soname_spec='${libname}${release}${shared_ext}$major'
17607
dynamic_linker='NetBSD ld.elf_so'
17609
shlibpath_var=LD_LIBRARY_PATH
17610
shlibpath_overrides_runpath=yes
17611
hardcode_into_libs=yes
17616
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17617
shlibpath_var=LD_LIBRARY_PATH
17618
shlibpath_overrides_runpath=yes
17625
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17626
soname_spec='${libname}${release}${shared_ext}$major'
17627
shlibpath_var=LD_LIBRARY_PATH
17628
shlibpath_overrides_runpath=yes
17635
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17636
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17637
shlibpath_var=LD_LIBRARY_PATH
17638
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17640
openbsd2.[89] | openbsd2.[89].*)
17641
shlibpath_overrides_runpath=no
17644
shlibpath_overrides_runpath=yes
17648
shlibpath_overrides_runpath=yes
17653
libname_spec='$name'
17656
library_names_spec='$libname${shared_ext} $libname.a'
17657
dynamic_linker='OS/2 ld.exe'
17658
shlibpath_var=LIBPATH
17661
osf3* | osf4* | osf5*)
17665
soname_spec='${libname}${release}${shared_ext}$major'
17666
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17667
shlibpath_var=LD_LIBRARY_PATH
17668
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17669
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17674
soname_spec='${libname}${release}${shared_ext}$major'
17675
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17676
shlibpath_var=LD_LIBRARY_PATH
17683
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17684
soname_spec='${libname}${release}${shared_ext}$major'
17685
shlibpath_var=LD_LIBRARY_PATH
17686
shlibpath_overrides_runpath=yes
17687
hardcode_into_libs=yes
17688
# ldd complains unless libraries are executable
17689
postinstall_cmds='chmod +x $lib'
17694
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17695
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17696
shlibpath_var=LD_LIBRARY_PATH
17697
shlibpath_overrides_runpath=yes
17698
if test "$with_gnu_ld" = yes; then
17704
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17706
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17707
soname_spec='${libname}${release}${shared_ext}$major'
17708
shlibpath_var=LD_LIBRARY_PATH
17709
case $host_vendor in
17711
shlibpath_overrides_runpath=no
17713
export_dynamic_flag_spec='${wl}-Blargedynsym'
17714
runpath_var=LD_RUN_PATH
17722
shlibpath_overrides_runpath=no
17723
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17729
if test -d /usr/nec ;then
17731
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17732
soname_spec='$libname${shared_ext}.$major'
17733
shlibpath_var=LD_LIBRARY_PATH
17739
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17740
soname_spec='${libname}${release}${shared_ext}$major'
17741
shlibpath_var=LD_LIBRARY_PATH
17748
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17749
echo "${ECHO_T}$dynamic_linker" >&6
17750
test "$dynamic_linker" = no && can_build_shared=no
17752
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17753
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17754
hardcode_action_GCJ=
17755
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17756
test -n "$runpath_var_GCJ" || \
17757
test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17759
# We can hardcode non-existant directories.
17760
if test "$hardcode_direct_GCJ" != no &&
17761
# If the only mechanism to avoid hardcoding is shlibpath_var, we
17762
# have to relink, otherwise we might link with an installed library
17763
# when we should be linking with a yet-to-be-installed one
17764
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17765
test "$hardcode_minus_L_GCJ" != no; then
17766
# Linking always hardcodes the temporary library directory.
17767
hardcode_action_GCJ=relink
17769
# We can link without hardcoding, and we can hardcode nonexisting dirs.
17770
hardcode_action_GCJ=immediate
17773
# We cannot hardcode anything, or else we can only hardcode existing
17775
hardcode_action_GCJ=unsupported
17777
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17778
echo "${ECHO_T}$hardcode_action_GCJ" >&6
17780
if test "$hardcode_action_GCJ" = relink; then
17781
# Fast installation is not supported
17782
enable_fast_install=no
17783
elif test "$shlibpath_overrides_runpath" = yes ||
17784
test "$enable_shared" = no; then
17785
# Fast installation is not necessary
17786
enable_fast_install=needless
17791
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17792
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17793
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17794
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17795
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17796
echo "$as_me:$LINENO: result: yes" >&5
17797
echo "${ECHO_T}yes" >&6
17799
# FIXME - insert some real tests, host_os isn't really good enough
17802
if test -n "$STRIP" ; then
17803
striplib="$STRIP -x"
17804
echo "$as_me:$LINENO: result: yes" >&5
17805
echo "${ECHO_T}yes" >&6
17807
echo "$as_me:$LINENO: result: no" >&5
17808
echo "${ECHO_T}no" >&6
17812
echo "$as_me:$LINENO: result: no" >&5
17813
echo "${ECHO_T}no" >&6
17818
if test "x$enable_dlopen" != xyes; then
17819
enable_dlopen=unknown
17820
enable_dlopen_self=unknown
17821
enable_dlopen_self_static=unknown
17828
lt_cv_dlopen="load_add_on"
17830
lt_cv_dlopen_self=yes
17834
lt_cv_dlopen="LoadLibrary"
17839
lt_cv_dlopen="dlopen"
17844
# if libdl is installed we need to link against it
17845
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17846
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17847
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17848
echo $ECHO_N "(cached) $ECHO_C" >&6
17850
ac_check_lib_save_LIBS=$LIBS
17852
cat >conftest.$ac_ext <<_ACEOF
17855
cat confdefs.h >>conftest.$ac_ext
17856
cat >>conftest.$ac_ext <<_ACEOF
17857
/* end confdefs.h. */
17859
/* Override any gcc2 internal prototype to avoid an error. */
17863
/* We use char because int might match the return type of a gcc2
17864
builtin and then its argument prototype would still apply. */
17874
rm -f conftest.$ac_objext conftest$ac_exeext
17875
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17876
(eval $ac_link) 2>conftest.er1
17878
grep -v '^ *+' conftest.er1 >conftest.err
17880
cat conftest.err >&5
17881
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17882
(exit $ac_status); } &&
17883
{ ac_try='test -z "$ac_c_werror_flag"
17884
|| test ! -s conftest.err'
17885
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17886
(eval $ac_try) 2>&5
17888
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17889
(exit $ac_status); }; } &&
17890
{ ac_try='test -s conftest$ac_exeext'
17891
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17892
(eval $ac_try) 2>&5
17894
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17895
(exit $ac_status); }; }; then
17896
ac_cv_lib_dl_dlopen=yes
17898
echo "$as_me: failed program was:" >&5
17899
sed 's/^/| /' conftest.$ac_ext >&5
17901
ac_cv_lib_dl_dlopen=no
17903
rm -f conftest.err conftest.$ac_objext \
17904
conftest$ac_exeext conftest.$ac_ext
17905
LIBS=$ac_check_lib_save_LIBS
17907
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17908
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17909
if test $ac_cv_lib_dl_dlopen = yes; then
17910
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17913
lt_cv_dlopen="dyld"
17915
lt_cv_dlopen_self=yes
17922
echo "$as_me:$LINENO: checking for shl_load" >&5
17923
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17924
if test "${ac_cv_func_shl_load+set}" = set; then
17925
echo $ECHO_N "(cached) $ECHO_C" >&6
17927
cat >conftest.$ac_ext <<_ACEOF
17930
cat confdefs.h >>conftest.$ac_ext
17931
cat >>conftest.$ac_ext <<_ACEOF
17932
/* end confdefs.h. */
17933
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17934
For example, HP-UX 11i <limits.h> declares gettimeofday. */
17935
#define shl_load innocuous_shl_load
17937
/* System header to define __stub macros and hopefully few prototypes,
17938
which can conflict with char shl_load (); below.
17939
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17940
<limits.h> exists even on freestanding compilers. */
17943
# include <limits.h>
17945
# include <assert.h>
17950
/* Override any gcc2 internal prototype to avoid an error. */
17955
/* We use char because int might match the return type of a gcc2
17956
builtin and then its argument prototype would still apply. */
17958
/* The GNU C library defines this for functions which it implements
17959
to always fail with ENOSYS. Some functions are actually named
17960
something starting with __ and the normal name is an alias. */
17961
#if defined (__stub_shl_load) || defined (__stub___shl_load)
17964
char (*f) () = shl_load;
17973
return f != shl_load;
17978
rm -f conftest.$ac_objext conftest$ac_exeext
17979
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17980
(eval $ac_link) 2>conftest.er1
17982
grep -v '^ *+' conftest.er1 >conftest.err
17984
cat conftest.err >&5
17985
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17986
(exit $ac_status); } &&
17987
{ ac_try='test -z "$ac_c_werror_flag"
17988
|| test ! -s conftest.err'
17989
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17990
(eval $ac_try) 2>&5
17992
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17993
(exit $ac_status); }; } &&
17994
{ ac_try='test -s conftest$ac_exeext'
17995
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17996
(eval $ac_try) 2>&5
17998
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17999
(exit $ac_status); }; }; then
18000
ac_cv_func_shl_load=yes
18002
echo "$as_me: failed program was:" >&5
18003
sed 's/^/| /' conftest.$ac_ext >&5
18005
ac_cv_func_shl_load=no
18007
rm -f conftest.err conftest.$ac_objext \
18008
conftest$ac_exeext conftest.$ac_ext
18010
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18011
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18012
if test $ac_cv_func_shl_load = yes; then
18013
lt_cv_dlopen="shl_load"
18015
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18016
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18017
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18018
echo $ECHO_N "(cached) $ECHO_C" >&6
18020
ac_check_lib_save_LIBS=$LIBS
18022
cat >conftest.$ac_ext <<_ACEOF
18025
cat confdefs.h >>conftest.$ac_ext
18026
cat >>conftest.$ac_ext <<_ACEOF
18027
/* end confdefs.h. */
18029
/* Override any gcc2 internal prototype to avoid an error. */
18033
/* We use char because int might match the return type of a gcc2
18034
builtin and then its argument prototype would still apply. */
18044
rm -f conftest.$ac_objext conftest$ac_exeext
18045
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18046
(eval $ac_link) 2>conftest.er1
18048
grep -v '^ *+' conftest.er1 >conftest.err
18050
cat conftest.err >&5
18051
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18052
(exit $ac_status); } &&
18053
{ ac_try='test -z "$ac_c_werror_flag"
18054
|| test ! -s conftest.err'
18055
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18056
(eval $ac_try) 2>&5
18058
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18059
(exit $ac_status); }; } &&
18060
{ ac_try='test -s conftest$ac_exeext'
18061
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18062
(eval $ac_try) 2>&5
18064
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18065
(exit $ac_status); }; }; then
18066
ac_cv_lib_dld_shl_load=yes
18068
echo "$as_me: failed program was:" >&5
18069
sed 's/^/| /' conftest.$ac_ext >&5
18071
ac_cv_lib_dld_shl_load=no
18073
rm -f conftest.err conftest.$ac_objext \
18074
conftest$ac_exeext conftest.$ac_ext
18075
LIBS=$ac_check_lib_save_LIBS
18077
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18078
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18079
if test $ac_cv_lib_dld_shl_load = yes; then
18080
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18082
echo "$as_me:$LINENO: checking for dlopen" >&5
18083
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18084
if test "${ac_cv_func_dlopen+set}" = set; then
18085
echo $ECHO_N "(cached) $ECHO_C" >&6
18087
cat >conftest.$ac_ext <<_ACEOF
18090
cat confdefs.h >>conftest.$ac_ext
18091
cat >>conftest.$ac_ext <<_ACEOF
18092
/* end confdefs.h. */
18093
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18094
For example, HP-UX 11i <limits.h> declares gettimeofday. */
18095
#define dlopen innocuous_dlopen
18097
/* System header to define __stub macros and hopefully few prototypes,
18098
which can conflict with char dlopen (); below.
18099
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18100
<limits.h> exists even on freestanding compilers. */
18103
# include <limits.h>
18105
# include <assert.h>
18110
/* Override any gcc2 internal prototype to avoid an error. */
18115
/* We use char because int might match the return type of a gcc2
18116
builtin and then its argument prototype would still apply. */
18118
/* The GNU C library defines this for functions which it implements
18119
to always fail with ENOSYS. Some functions are actually named
18120
something starting with __ and the normal name is an alias. */
18121
#if defined (__stub_dlopen) || defined (__stub___dlopen)
18124
char (*f) () = dlopen;
18133
return f != dlopen;
18138
rm -f conftest.$ac_objext conftest$ac_exeext
18139
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18140
(eval $ac_link) 2>conftest.er1
18142
grep -v '^ *+' conftest.er1 >conftest.err
18144
cat conftest.err >&5
18145
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18146
(exit $ac_status); } &&
18147
{ ac_try='test -z "$ac_c_werror_flag"
18148
|| test ! -s conftest.err'
18149
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18150
(eval $ac_try) 2>&5
18152
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18153
(exit $ac_status); }; } &&
18154
{ ac_try='test -s conftest$ac_exeext'
18155
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18156
(eval $ac_try) 2>&5
18158
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18159
(exit $ac_status); }; }; then
18160
ac_cv_func_dlopen=yes
18162
echo "$as_me: failed program was:" >&5
18163
sed 's/^/| /' conftest.$ac_ext >&5
18165
ac_cv_func_dlopen=no
18167
rm -f conftest.err conftest.$ac_objext \
18168
conftest$ac_exeext conftest.$ac_ext
18170
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18171
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18172
if test $ac_cv_func_dlopen = yes; then
18173
lt_cv_dlopen="dlopen"
18175
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18176
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18177
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18178
echo $ECHO_N "(cached) $ECHO_C" >&6
18180
ac_check_lib_save_LIBS=$LIBS
18182
cat >conftest.$ac_ext <<_ACEOF
18185
cat confdefs.h >>conftest.$ac_ext
18186
cat >>conftest.$ac_ext <<_ACEOF
18187
/* end confdefs.h. */
18189
/* Override any gcc2 internal prototype to avoid an error. */
18193
/* We use char because int might match the return type of a gcc2
18194
builtin and then its argument prototype would still apply. */
18204
rm -f conftest.$ac_objext conftest$ac_exeext
18205
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18206
(eval $ac_link) 2>conftest.er1
18208
grep -v '^ *+' conftest.er1 >conftest.err
18210
cat conftest.err >&5
18211
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18212
(exit $ac_status); } &&
18213
{ ac_try='test -z "$ac_c_werror_flag"
18214
|| test ! -s conftest.err'
18215
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18216
(eval $ac_try) 2>&5
18218
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18219
(exit $ac_status); }; } &&
18220
{ ac_try='test -s conftest$ac_exeext'
18221
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18222
(eval $ac_try) 2>&5
18224
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18225
(exit $ac_status); }; }; then
18226
ac_cv_lib_dl_dlopen=yes
18228
echo "$as_me: failed program was:" >&5
18229
sed 's/^/| /' conftest.$ac_ext >&5
18231
ac_cv_lib_dl_dlopen=no
18233
rm -f conftest.err conftest.$ac_objext \
18234
conftest$ac_exeext conftest.$ac_ext
18235
LIBS=$ac_check_lib_save_LIBS
18237
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18238
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18239
if test $ac_cv_lib_dl_dlopen = yes; then
18240
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18242
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18243
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18244
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18245
echo $ECHO_N "(cached) $ECHO_C" >&6
18247
ac_check_lib_save_LIBS=$LIBS
18248
LIBS="-lsvld $LIBS"
18249
cat >conftest.$ac_ext <<_ACEOF
18252
cat confdefs.h >>conftest.$ac_ext
18253
cat >>conftest.$ac_ext <<_ACEOF
18254
/* end confdefs.h. */
18256
/* Override any gcc2 internal prototype to avoid an error. */
18260
/* We use char because int might match the return type of a gcc2
18261
builtin and then its argument prototype would still apply. */
18271
rm -f conftest.$ac_objext conftest$ac_exeext
18272
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18273
(eval $ac_link) 2>conftest.er1
18275
grep -v '^ *+' conftest.er1 >conftest.err
18277
cat conftest.err >&5
18278
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18279
(exit $ac_status); } &&
18280
{ ac_try='test -z "$ac_c_werror_flag"
18281
|| test ! -s conftest.err'
18282
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18283
(eval $ac_try) 2>&5
18285
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18286
(exit $ac_status); }; } &&
18287
{ ac_try='test -s conftest$ac_exeext'
18288
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18289
(eval $ac_try) 2>&5
18291
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18292
(exit $ac_status); }; }; then
18293
ac_cv_lib_svld_dlopen=yes
18295
echo "$as_me: failed program was:" >&5
18296
sed 's/^/| /' conftest.$ac_ext >&5
18298
ac_cv_lib_svld_dlopen=no
18300
rm -f conftest.err conftest.$ac_objext \
18301
conftest$ac_exeext conftest.$ac_ext
18302
LIBS=$ac_check_lib_save_LIBS
18304
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18305
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18306
if test $ac_cv_lib_svld_dlopen = yes; then
18307
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18309
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18310
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18311
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18312
echo $ECHO_N "(cached) $ECHO_C" >&6
18314
ac_check_lib_save_LIBS=$LIBS
18316
cat >conftest.$ac_ext <<_ACEOF
18319
cat confdefs.h >>conftest.$ac_ext
18320
cat >>conftest.$ac_ext <<_ACEOF
18321
/* end confdefs.h. */
18323
/* Override any gcc2 internal prototype to avoid an error. */
18327
/* We use char because int might match the return type of a gcc2
18328
builtin and then its argument prototype would still apply. */
18338
rm -f conftest.$ac_objext conftest$ac_exeext
18339
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18340
(eval $ac_link) 2>conftest.er1
18342
grep -v '^ *+' conftest.er1 >conftest.err
18344
cat conftest.err >&5
18345
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18346
(exit $ac_status); } &&
18347
{ ac_try='test -z "$ac_c_werror_flag"
18348
|| test ! -s conftest.err'
18349
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18350
(eval $ac_try) 2>&5
18352
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18353
(exit $ac_status); }; } &&
18354
{ ac_try='test -s conftest$ac_exeext'
18355
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18356
(eval $ac_try) 2>&5
18358
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18359
(exit $ac_status); }; }; then
18360
ac_cv_lib_dld_dld_link=yes
18362
echo "$as_me: failed program was:" >&5
18363
sed 's/^/| /' conftest.$ac_ext >&5
18365
ac_cv_lib_dld_dld_link=no
18367
rm -f conftest.err conftest.$ac_objext \
18368
conftest$ac_exeext conftest.$ac_ext
18369
LIBS=$ac_check_lib_save_LIBS
18371
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18372
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18373
if test $ac_cv_lib_dld_dld_link = yes; then
18374
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18395
if test "x$lt_cv_dlopen" != xno; then
18401
case $lt_cv_dlopen in
18403
save_CPPFLAGS="$CPPFLAGS"
18404
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18406
save_LDFLAGS="$LDFLAGS"
18407
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18410
LIBS="$lt_cv_dlopen_libs $LIBS"
18412
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18413
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18414
if test "${lt_cv_dlopen_self+set}" = set; then
18415
echo $ECHO_N "(cached) $ECHO_C" >&6
18417
if test "$cross_compiling" = yes; then :
18418
lt_cv_dlopen_self=cross
18420
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18421
lt_status=$lt_dlunknown
18422
cat > conftest.$ac_ext <<EOF
18423
#line 18423 "configure"
18424
#include "confdefs.h"
18433
# define LT_DLGLOBAL RTLD_GLOBAL
18436
# define LT_DLGLOBAL DL_GLOBAL
18438
# define LT_DLGLOBAL 0
18442
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18443
find out it does not work in some platform. */
18444
#ifndef LT_DLLAZY_OR_NOW
18446
# define LT_DLLAZY_OR_NOW RTLD_LAZY
18449
# define LT_DLLAZY_OR_NOW DL_LAZY
18452
# define LT_DLLAZY_OR_NOW RTLD_NOW
18455
# define LT_DLLAZY_OR_NOW DL_NOW
18457
# define LT_DLLAZY_OR_NOW 0
18465
extern "C" void exit (int);
18468
void fnord() { int i=42;}
18471
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18472
int status = $lt_dlunknown;
18476
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18477
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18478
/* dlclose (self); */
18484
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18485
(eval $ac_link) 2>&5
18487
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18488
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18489
(./conftest; exit; ) 2>/dev/null
18491
case x$lt_status in
18492
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18493
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18494
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18497
# compilation failed
18498
lt_cv_dlopen_self=no
18505
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18506
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18508
if test "x$lt_cv_dlopen_self" = xyes; then
18509
LDFLAGS="$LDFLAGS $link_static_flag"
18510
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18511
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18512
if test "${lt_cv_dlopen_self_static+set}" = set; then
18513
echo $ECHO_N "(cached) $ECHO_C" >&6
18515
if test "$cross_compiling" = yes; then :
18516
lt_cv_dlopen_self_static=cross
18518
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18519
lt_status=$lt_dlunknown
18520
cat > conftest.$ac_ext <<EOF
18521
#line 18521 "configure"
18522
#include "confdefs.h"
18531
# define LT_DLGLOBAL RTLD_GLOBAL
18534
# define LT_DLGLOBAL DL_GLOBAL
18536
# define LT_DLGLOBAL 0
18540
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18541
find out it does not work in some platform. */
18542
#ifndef LT_DLLAZY_OR_NOW
18544
# define LT_DLLAZY_OR_NOW RTLD_LAZY
18547
# define LT_DLLAZY_OR_NOW DL_LAZY
18550
# define LT_DLLAZY_OR_NOW RTLD_NOW
18553
# define LT_DLLAZY_OR_NOW DL_NOW
18555
# define LT_DLLAZY_OR_NOW 0
18563
extern "C" void exit (int);
18566
void fnord() { int i=42;}
18569
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18570
int status = $lt_dlunknown;
18574
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18575
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18576
/* dlclose (self); */
18582
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18583
(eval $ac_link) 2>&5
18585
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18586
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18587
(./conftest; exit; ) 2>/dev/null
18589
case x$lt_status in
18590
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18591
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18592
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18595
# compilation failed
18596
lt_cv_dlopen_self_static=no
18603
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18604
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18607
CPPFLAGS="$save_CPPFLAGS"
18608
LDFLAGS="$save_LDFLAGS"
18613
case $lt_cv_dlopen_self in
18614
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18615
*) enable_dlopen_self=unknown ;;
18618
case $lt_cv_dlopen_self_static in
18619
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18620
*) enable_dlopen_self_static=unknown ;;
18625
# The else clause should only fire when bootstrapping the
18626
# libtool distribution, otherwise you forgot to ship ltmain.sh
18627
# with your package, and you will get complaints that there are
18628
# no rules to generate ltmain.sh.
18629
if test -f "$ltmain"; then
18630
# See if we are running on zsh, and set the options which allow our commands through
18631
# without removal of \ escapes.
18632
if test -n "${ZSH_VERSION+set}" ; then
18633
setopt NO_GLOB_SUBST
18635
# Now quote all the things that may contain metacharacters while being
18636
# careful not to overquote the AC_SUBSTed values. We take copies of the
18637
# variables and quote the copies for generation of the libtool script.
18638
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18640
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18641
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18642
deplibs_check_method reload_flag reload_cmds need_locks \
18643
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18644
lt_cv_sys_global_symbol_to_c_name_address \
18645
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18646
old_postinstall_cmds old_postuninstall_cmds \
18650
lt_prog_compiler_wl_GCJ \
18651
lt_prog_compiler_pic_GCJ \
18652
lt_prog_compiler_static_GCJ \
18653
lt_prog_compiler_no_builtin_flag_GCJ \
18654
export_dynamic_flag_spec_GCJ \
18655
thread_safe_flag_spec_GCJ \
18656
whole_archive_flag_spec_GCJ \
18657
enable_shared_with_static_runtimes_GCJ \
18658
old_archive_cmds_GCJ \
18659
old_archive_from_new_cmds_GCJ \
18660
predep_objects_GCJ \
18661
postdep_objects_GCJ \
18664
compiler_lib_search_path_GCJ \
18666
archive_expsym_cmds_GCJ \
18667
postinstall_cmds_GCJ \
18668
postuninstall_cmds_GCJ \
18669
old_archive_from_expsyms_cmds_GCJ \
18670
allow_undefined_flag_GCJ \
18671
no_undefined_flag_GCJ \
18672
export_symbols_cmds_GCJ \
18673
hardcode_libdir_flag_spec_GCJ \
18674
hardcode_libdir_flag_spec_ld_GCJ \
18675
hardcode_libdir_separator_GCJ \
18676
hardcode_automatic_GCJ \
18678
module_expsym_cmds_GCJ \
18679
lt_cv_prog_compiler_c_o_GCJ \
18680
exclude_expsyms_GCJ \
18681
include_expsyms_GCJ; do
18684
old_archive_cmds_GCJ | \
18685
old_archive_from_new_cmds_GCJ | \
18686
archive_cmds_GCJ | \
18687
archive_expsym_cmds_GCJ | \
18688
module_cmds_GCJ | \
18689
module_expsym_cmds_GCJ | \
18690
old_archive_from_expsyms_cmds_GCJ | \
18691
export_symbols_cmds_GCJ | \
18692
extract_expsyms_cmds | reload_cmds | finish_cmds | \
18693
postinstall_cmds | postuninstall_cmds | \
18694
old_postinstall_cmds | old_postuninstall_cmds | \
18695
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18696
# Double-quote double-evaled strings.
18697
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18700
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18706
*'\$0 --fallback-echo"')
18707
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18713
cat <<__EOF__ >> "$cfgfile"
18714
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18716
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18718
# Shell to use when invoking shell scripts.
18721
# Whether or not to build shared libraries.
18722
build_libtool_libs=$enable_shared
18724
# Whether or not to build static libraries.
18725
build_old_libs=$enable_static
18727
# Whether or not to add -lc for building shared libraries.
18728
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18730
# Whether or not to disallow shared libs when runtime libs are static
18731
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18733
# Whether or not to optimize for fast installation.
18734
fast_install=$enable_fast_install
18737
host_alias=$host_alias
18740
# An echo program that does not interpret backslashes.
18745
AR_FLAGS=$lt_AR_FLAGS
18750
# A language-specific compiler.
18751
CC=$lt_compiler_GCJ
18753
# Is the compiler the GNU C compiler?
18759
# The linker used to build libraries.
18762
# Whether we need hard or soft links.
18765
# A BSD-compatible nm program.
18768
# A symbol stripping program
18771
# Used to examine libraries when file_magic_cmd begins "file"
18772
MAGIC_CMD=$MAGIC_CMD
18774
# Used on cygwin: DLL creation program.
18777
# Used on cygwin: object dumper.
18780
# Used on cygwin: assembler.
18783
# The name of the directory that contains temporary libtool files.
18786
# How to create reloadable object files.
18787
reload_flag=$lt_reload_flag
18788
reload_cmds=$lt_reload_cmds
18790
# How to pass a linker flag through the compiler.
18791
wl=$lt_lt_prog_compiler_wl_GCJ
18793
# Object file suffix (normally "o").
18794
objext="$ac_objext"
18796
# Old archive suffix (normally "a").
18799
# Shared library suffix (normally ".so").
18800
shrext_cmds='$shrext_cmds'
18802
# Executable file suffix (normally "").
18805
# Additional compiler flags for building library objects.
18806
pic_flag=$lt_lt_prog_compiler_pic_GCJ
18809
# What is the maximum length of a command?
18810
max_cmd_len=$lt_cv_sys_max_cmd_len
18812
# Does compiler simultaneously support -c and -o options?
18813
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18815
# Must we lock files when doing compilation ?
18816
need_locks=$lt_need_locks
18818
# Do we need the lib prefix for modules?
18819
need_lib_prefix=$need_lib_prefix
18821
# Do we need a version for libraries?
18822
need_version=$need_version
18824
# Whether dlopen is supported.
18825
dlopen_support=$enable_dlopen
18827
# Whether dlopen of programs is supported.
18828
dlopen_self=$enable_dlopen_self
18830
# Whether dlopen of statically linked programs is supported.
18831
dlopen_self_static=$enable_dlopen_self_static
18833
# Compiler flag to prevent dynamic linking.
18834
link_static_flag=$lt_lt_prog_compiler_static_GCJ
18836
# Compiler flag to turn off builtin functions.
18837
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18839
# Compiler flag to allow reflexive dlopens.
18840
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18842
# Compiler flag to generate shared objects directly from archives.
18843
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18845
# Compiler flag to generate thread-safe objects.
18846
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18848
# Library versioning type.
18849
version_type=$version_type
18851
# Format of library name prefix.
18852
libname_spec=$lt_libname_spec
18854
# List of archive names. First name is the real one, the rest are links.
18855
# The last name is the one that the linker finds with -lNAME.
18856
library_names_spec=$lt_library_names_spec
18858
# The coded name of the library, if different from the real name.
18859
soname_spec=$lt_soname_spec
18861
# Commands used to build and install an old-style archive.
18863
old_archive_cmds=$lt_old_archive_cmds_GCJ
18864
old_postinstall_cmds=$lt_old_postinstall_cmds
18865
old_postuninstall_cmds=$lt_old_postuninstall_cmds
18867
# Create an old-style archive from a shared archive.
18868
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18870
# Create a temporary old-style archive to link instead of a shared archive.
18871
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18873
# Commands used to build and install a shared archive.
18874
archive_cmds=$lt_archive_cmds_GCJ
18875
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18876
postinstall_cmds=$lt_postinstall_cmds
18877
postuninstall_cmds=$lt_postuninstall_cmds
18879
# Commands used to build a loadable module (assumed same as above if empty)
18880
module_cmds=$lt_module_cmds_GCJ
18881
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18883
# Commands to strip libraries.
18884
old_striplib=$lt_old_striplib
18885
striplib=$lt_striplib
18887
# Dependencies to place before the objects being linked to create a
18889
predep_objects=$lt_predep_objects_GCJ
18891
# Dependencies to place after the objects being linked to create a
18893
postdep_objects=$lt_postdep_objects_GCJ
18895
# Dependencies to place before the objects being linked to create a
18897
predeps=$lt_predeps_GCJ
18899
# Dependencies to place after the objects being linked to create a
18901
postdeps=$lt_postdeps_GCJ
18903
# The library search path used internally by the compiler when linking
18904
# a shared library.
18905
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18907
# Method to check whether dependent libraries are shared objects.
18908
deplibs_check_method=$lt_deplibs_check_method
18910
# Command to use when deplibs_check_method == file_magic.
18911
file_magic_cmd=$lt_file_magic_cmd
18913
# Flag that allows shared libraries with undefined symbols to be built.
18914
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18916
# Flag that forces no undefined symbols.
18917
no_undefined_flag=$lt_no_undefined_flag_GCJ
18919
# Commands used to finish a libtool library installation in a directory.
18920
finish_cmds=$lt_finish_cmds
18922
# Same as above, but a single script fragment to be evaled but not shown.
18923
finish_eval=$lt_finish_eval
18925
# Take the output of nm and produce a listing of raw symbols and C names.
18926
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18928
# Transform the output of nm in a proper C declaration
18929
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18931
# Transform the output of nm in a C name address pair
18932
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18934
# This is the shared library runtime path variable.
18935
runpath_var=$runpath_var
18937
# This is the shared library path variable.
18938
shlibpath_var=$shlibpath_var
18940
# Is shlibpath searched before the hard-coded library search path?
18941
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18943
# How to hardcode a shared library path into an executable.
18944
hardcode_action=$hardcode_action_GCJ
18946
# Whether we should hardcode library paths into libraries.
18947
hardcode_into_libs=$hardcode_into_libs
18949
# Flag to hardcode \$libdir into a binary during linking.
18950
# This must work even if \$libdir does not exist.
18951
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18953
# If ld is used when linking, flag to hardcode \$libdir into
18954
# a binary during linking. This must work even if \$libdir does
18956
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18958
# Whether we need a single -rpath flag with a separated argument.
18959
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18961
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18962
# resulting binary.
18963
hardcode_direct=$hardcode_direct_GCJ
18965
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18966
# resulting binary.
18967
hardcode_minus_L=$hardcode_minus_L_GCJ
18969
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18970
# the resulting binary.
18971
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18973
# Set to yes if building a shared library automatically hardcodes DIR into the library
18974
# and all subsequent libraries and executables linked against it.
18975
hardcode_automatic=$hardcode_automatic_GCJ
18977
# Variables whose values should be saved in libtool wrapper scripts and
18978
# restored at relink time.
18979
variables_saved_for_relink="$variables_saved_for_relink"
18981
# Whether libtool must link a program against all its dependency libraries.
18982
link_all_deplibs=$link_all_deplibs_GCJ
18984
# Compile-time system search path for libraries
18985
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18987
# Run-time system search path for libraries
18988
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18990
# Fix the shell variable \$srcfile for the compiler.
18991
fix_srcfile_path="$fix_srcfile_path_GCJ"
18993
# Set to yes if exported symbols are required.
18994
always_export_symbols=$always_export_symbols_GCJ
18996
# The commands to list exported symbols.
18997
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18999
# The commands to extract the exported symbol list from a shared archive.
19000
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19002
# Symbols that should not be listed in the preloaded symbols.
19003
exclude_expsyms=$lt_exclude_expsyms_GCJ
19005
# Symbols that must always be exported.
19006
include_expsyms=$lt_include_expsyms_GCJ
19008
# ### END LIBTOOL TAG CONFIG: $tagname
19014
# If there is no Makefile yet, we rely on a make rule to execute
19015
# `config.status --recheck' to rerun these tests and create the
19016
# libtool script then.
19017
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19018
if test -f "$ltmain_in"; then
19019
test -f Makefile && make "$ltmain"
19025
ac_cpp='$CPP $CPPFLAGS'
19026
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19027
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19028
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19041
# Source file extension for RC test sources.
19044
# Object file extension for compiled RC test sources.
19048
# Code to be used in simple compile tests
19049
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19051
# Code to be used in simple link tests
19052
lt_simple_link_test_code="$lt_simple_compile_test_code"
19054
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19056
# If no C compiler was specified, use CC.
19059
# Allow CC to be a program name with arguments.
19063
# Allow CC to be a program name with arguments.
19068
lt_cv_prog_compiler_c_o_RC=yes
19070
# The else clause should only fire when bootstrapping the
19071
# libtool distribution, otherwise you forgot to ship ltmain.sh
19072
# with your package, and you will get complaints that there are
19073
# no rules to generate ltmain.sh.
19074
if test -f "$ltmain"; then
19075
# See if we are running on zsh, and set the options which allow our commands through
19076
# without removal of \ escapes.
19077
if test -n "${ZSH_VERSION+set}" ; then
19078
setopt NO_GLOB_SUBST
19080
# Now quote all the things that may contain metacharacters while being
19081
# careful not to overquote the AC_SUBSTed values. We take copies of the
19082
# variables and quote the copies for generation of the libtool script.
19083
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19085
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19086
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19087
deplibs_check_method reload_flag reload_cmds need_locks \
19088
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19089
lt_cv_sys_global_symbol_to_c_name_address \
19090
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19091
old_postinstall_cmds old_postuninstall_cmds \
19095
lt_prog_compiler_wl_RC \
19096
lt_prog_compiler_pic_RC \
19097
lt_prog_compiler_static_RC \
19098
lt_prog_compiler_no_builtin_flag_RC \
19099
export_dynamic_flag_spec_RC \
19100
thread_safe_flag_spec_RC \
19101
whole_archive_flag_spec_RC \
19102
enable_shared_with_static_runtimes_RC \
19103
old_archive_cmds_RC \
19104
old_archive_from_new_cmds_RC \
19105
predep_objects_RC \
19106
postdep_objects_RC \
19109
compiler_lib_search_path_RC \
19111
archive_expsym_cmds_RC \
19112
postinstall_cmds_RC \
19113
postuninstall_cmds_RC \
19114
old_archive_from_expsyms_cmds_RC \
19115
allow_undefined_flag_RC \
19116
no_undefined_flag_RC \
19117
export_symbols_cmds_RC \
19118
hardcode_libdir_flag_spec_RC \
19119
hardcode_libdir_flag_spec_ld_RC \
19120
hardcode_libdir_separator_RC \
19121
hardcode_automatic_RC \
19123
module_expsym_cmds_RC \
19124
lt_cv_prog_compiler_c_o_RC \
19125
exclude_expsyms_RC \
19126
include_expsyms_RC; do
19129
old_archive_cmds_RC | \
19130
old_archive_from_new_cmds_RC | \
19131
archive_cmds_RC | \
19132
archive_expsym_cmds_RC | \
19134
module_expsym_cmds_RC | \
19135
old_archive_from_expsyms_cmds_RC | \
19136
export_symbols_cmds_RC | \
19137
extract_expsyms_cmds | reload_cmds | finish_cmds | \
19138
postinstall_cmds | postuninstall_cmds | \
19139
old_postinstall_cmds | old_postuninstall_cmds | \
19140
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19141
# Double-quote double-evaled strings.
19142
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19145
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19151
*'\$0 --fallback-echo"')
19152
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19158
cat <<__EOF__ >> "$cfgfile"
19159
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19161
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19163
# Shell to use when invoking shell scripts.
19166
# Whether or not to build shared libraries.
19167
build_libtool_libs=$enable_shared
19169
# Whether or not to build static libraries.
19170
build_old_libs=$enable_static
19172
# Whether or not to add -lc for building shared libraries.
19173
build_libtool_need_lc=$archive_cmds_need_lc_RC
19175
# Whether or not to disallow shared libs when runtime libs are static
19176
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19178
# Whether or not to optimize for fast installation.
19179
fast_install=$enable_fast_install
19182
host_alias=$host_alias
19185
# An echo program that does not interpret backslashes.
19190
AR_FLAGS=$lt_AR_FLAGS
19195
# A language-specific compiler.
19198
# Is the compiler the GNU C compiler?
19204
# The linker used to build libraries.
19207
# Whether we need hard or soft links.
19210
# A BSD-compatible nm program.
19213
# A symbol stripping program
19216
# Used to examine libraries when file_magic_cmd begins "file"
19217
MAGIC_CMD=$MAGIC_CMD
19219
# Used on cygwin: DLL creation program.
19222
# Used on cygwin: object dumper.
19225
# Used on cygwin: assembler.
19228
# The name of the directory that contains temporary libtool files.
19231
# How to create reloadable object files.
19232
reload_flag=$lt_reload_flag
19233
reload_cmds=$lt_reload_cmds
19235
# How to pass a linker flag through the compiler.
19236
wl=$lt_lt_prog_compiler_wl_RC
19238
# Object file suffix (normally "o").
19239
objext="$ac_objext"
19241
# Old archive suffix (normally "a").
19244
# Shared library suffix (normally ".so").
19245
shrext_cmds='$shrext_cmds'
19247
# Executable file suffix (normally "").
19250
# Additional compiler flags for building library objects.
19251
pic_flag=$lt_lt_prog_compiler_pic_RC
19254
# What is the maximum length of a command?
19255
max_cmd_len=$lt_cv_sys_max_cmd_len
19257
# Does compiler simultaneously support -c and -o options?
19258
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19260
# Must we lock files when doing compilation ?
19261
need_locks=$lt_need_locks
19263
# Do we need the lib prefix for modules?
19264
need_lib_prefix=$need_lib_prefix
19266
# Do we need a version for libraries?
19267
need_version=$need_version
19269
# Whether dlopen is supported.
19270
dlopen_support=$enable_dlopen
19272
# Whether dlopen of programs is supported.
19273
dlopen_self=$enable_dlopen_self
19275
# Whether dlopen of statically linked programs is supported.
19276
dlopen_self_static=$enable_dlopen_self_static
19278
# Compiler flag to prevent dynamic linking.
19279
link_static_flag=$lt_lt_prog_compiler_static_RC
19281
# Compiler flag to turn off builtin functions.
19282
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19284
# Compiler flag to allow reflexive dlopens.
19285
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19287
# Compiler flag to generate shared objects directly from archives.
19288
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19290
# Compiler flag to generate thread-safe objects.
19291
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19293
# Library versioning type.
19294
version_type=$version_type
19296
# Format of library name prefix.
19297
libname_spec=$lt_libname_spec
19299
# List of archive names. First name is the real one, the rest are links.
19300
# The last name is the one that the linker finds with -lNAME.
19301
library_names_spec=$lt_library_names_spec
19303
# The coded name of the library, if different from the real name.
19304
soname_spec=$lt_soname_spec
19306
# Commands used to build and install an old-style archive.
19308
old_archive_cmds=$lt_old_archive_cmds_RC
19309
old_postinstall_cmds=$lt_old_postinstall_cmds
19310
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19312
# Create an old-style archive from a shared archive.
19313
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19315
# Create a temporary old-style archive to link instead of a shared archive.
19316
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19318
# Commands used to build and install a shared archive.
19319
archive_cmds=$lt_archive_cmds_RC
19320
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19321
postinstall_cmds=$lt_postinstall_cmds
19322
postuninstall_cmds=$lt_postuninstall_cmds
19324
# Commands used to build a loadable module (assumed same as above if empty)
19325
module_cmds=$lt_module_cmds_RC
19326
module_expsym_cmds=$lt_module_expsym_cmds_RC
19328
# Commands to strip libraries.
19329
old_striplib=$lt_old_striplib
19330
striplib=$lt_striplib
19332
# Dependencies to place before the objects being linked to create a
19334
predep_objects=$lt_predep_objects_RC
19336
# Dependencies to place after the objects being linked to create a
19338
postdep_objects=$lt_postdep_objects_RC
19340
# Dependencies to place before the objects being linked to create a
19342
predeps=$lt_predeps_RC
19344
# Dependencies to place after the objects being linked to create a
19346
postdeps=$lt_postdeps_RC
19348
# The library search path used internally by the compiler when linking
19349
# a shared library.
19350
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19352
# Method to check whether dependent libraries are shared objects.
19353
deplibs_check_method=$lt_deplibs_check_method
19355
# Command to use when deplibs_check_method == file_magic.
19356
file_magic_cmd=$lt_file_magic_cmd
19358
# Flag that allows shared libraries with undefined symbols to be built.
19359
allow_undefined_flag=$lt_allow_undefined_flag_RC
19361
# Flag that forces no undefined symbols.
19362
no_undefined_flag=$lt_no_undefined_flag_RC
19364
# Commands used to finish a libtool library installation in a directory.
19365
finish_cmds=$lt_finish_cmds
19367
# Same as above, but a single script fragment to be evaled but not shown.
19368
finish_eval=$lt_finish_eval
19370
# Take the output of nm and produce a listing of raw symbols and C names.
19371
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19373
# Transform the output of nm in a proper C declaration
19374
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19376
# Transform the output of nm in a C name address pair
19377
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19379
# This is the shared library runtime path variable.
19380
runpath_var=$runpath_var
19382
# This is the shared library path variable.
19383
shlibpath_var=$shlibpath_var
19385
# Is shlibpath searched before the hard-coded library search path?
19386
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19388
# How to hardcode a shared library path into an executable.
19389
hardcode_action=$hardcode_action_RC
19391
# Whether we should hardcode library paths into libraries.
19392
hardcode_into_libs=$hardcode_into_libs
19394
# Flag to hardcode \$libdir into a binary during linking.
19395
# This must work even if \$libdir does not exist.
19396
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19398
# If ld is used when linking, flag to hardcode \$libdir into
19399
# a binary during linking. This must work even if \$libdir does
19401
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19403
# Whether we need a single -rpath flag with a separated argument.
19404
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19406
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19407
# resulting binary.
19408
hardcode_direct=$hardcode_direct_RC
19410
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19411
# resulting binary.
19412
hardcode_minus_L=$hardcode_minus_L_RC
19414
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19415
# the resulting binary.
19416
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19418
# Set to yes if building a shared library automatically hardcodes DIR into the library
19419
# and all subsequent libraries and executables linked against it.
19420
hardcode_automatic=$hardcode_automatic_RC
19422
# Variables whose values should be saved in libtool wrapper scripts and
19423
# restored at relink time.
19424
variables_saved_for_relink="$variables_saved_for_relink"
19426
# Whether libtool must link a program against all its dependency libraries.
19427
link_all_deplibs=$link_all_deplibs_RC
19429
# Compile-time system search path for libraries
19430
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19432
# Run-time system search path for libraries
19433
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19435
# Fix the shell variable \$srcfile for the compiler.
19436
fix_srcfile_path="$fix_srcfile_path_RC"
19438
# Set to yes if exported symbols are required.
19439
always_export_symbols=$always_export_symbols_RC
19441
# The commands to list exported symbols.
19442
export_symbols_cmds=$lt_export_symbols_cmds_RC
19444
# The commands to extract the exported symbol list from a shared archive.
19445
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19447
# Symbols that should not be listed in the preloaded symbols.
19448
exclude_expsyms=$lt_exclude_expsyms_RC
19450
# Symbols that must always be exported.
19451
include_expsyms=$lt_include_expsyms_RC
19453
# ### END LIBTOOL TAG CONFIG: $tagname
19459
# If there is no Makefile yet, we rely on a make rule to execute
19460
# `config.status --recheck' to rerun these tests and create the
19461
# libtool script then.
19462
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19463
if test -f "$ltmain_in"; then
19464
test -f Makefile && make "$ltmain"
19470
ac_cpp='$CPP $CPPFLAGS'
19471
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19472
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19473
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19480
{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19481
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19482
{ (exit 1); exit 1; }; }
19486
# Append the new tag name to the list of available tags.
19487
if test -n "$tagname" ; then
19488
available_tags="$available_tags $tagname"
19494
# Now substitute the updated list of available tags.
19495
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19496
mv "${ofile}T" "$ofile"
19500
{ { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19501
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19502
{ (exit 1); exit 1; }; }
1976
19508
# This can be used to rebuild libtool when needed
1977
LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
19509
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
1979
19511
# Always use our own libtool.
1980
19512
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1982
# Redirect the config.log output again, so that the ltconfig log is not
1983
# clobbered by the next message.
1984
exec 5>>./config.log
1997
# Check whether --with-gnome-includes or --without-gnome-includes was given.
1998
if test "${with_gnome_includes+set}" = set; then
1999
withval="$with_gnome_includes"
2001
CFLAGS="$CFLAGS -I$withval"
2006
# Check whether --with-gnome-libs or --without-gnome-libs was given.
2007
if test "${with_gnome_libs+set}" = set; then
2008
withval="$with_gnome_libs"
2010
LDFLAGS="$LDFLAGS -L$withval"
2011
gnome_prefix=$withval
2016
# Check whether --with-gnome or --without-gnome was given.
2017
if test "${with_gnome+set}" = set; then
2018
withval="$with_gnome"
2019
if test x$withval = xyes; then
2023
if test "x$withval" = xno; then
2027
LDFLAGS="$LDFLAGS -L$withval/lib"
2028
CFLAGS="$CFLAGS -I$withval/include"
2029
gnome_prefix=$withval/lib
2037
if test "x$want_gnome" = xyes; then
2039
# Extract the first word of "gnome-config", so it can be a program name with args.
2040
set dummy gnome-config; ac_word=$2
2041
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2042
echo "configure:2043: checking for $ac_word" >&5
2043
if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then
2044
echo $ac_n "(cached) $ac_c" 1>&6
2046
case "$GNOME_CONFIG" in
2048
ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
2051
ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path.
2054
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2056
for ac_dir in $ac_dummy; do
2057
test -z "$ac_dir" && ac_dir=.
2058
if test -f $ac_dir/$ac_word; then
2059
ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word"
2064
test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
2068
GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG"
2069
if test -n "$GNOME_CONFIG"; then
2070
echo "$ac_t""$GNOME_CONFIG" 1>&6
2072
echo "$ac_t""no" 1>&6
2075
if test "$GNOME_CONFIG" = "no"; then
2076
no_gnome_config="yes"
2078
echo $ac_n "checking if $GNOME_CONFIG works""... $ac_c" 1>&6
2079
echo "configure:2080: checking if $GNOME_CONFIG works" >&5
2080
if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
2081
echo "$ac_t""yes" 1>&6
2084
# Extract the first word of "orbit-config", so it can be a program name with args.
2085
set dummy orbit-config; ac_word=$2
2086
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2087
echo "configure:2088: checking for $ac_word" >&5
2088
if eval "test \"`echo '$''{'ac_cv_path_ORBIT_CONFIG'+set}'`\" = set"; then
2089
echo $ac_n "(cached) $ac_c" 1>&6
2091
case "$ORBIT_CONFIG" in
2093
ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
2096
ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a dos path.
2099
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2101
for ac_dir in $ac_dummy; do
2102
test -z "$ac_dir" && ac_dir=.
2103
if test -f $ac_dir/$ac_word; then
2104
ac_cv_path_ORBIT_CONFIG="$ac_dir/$ac_word"
2109
test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
2113
ORBIT_CONFIG="$ac_cv_path_ORBIT_CONFIG"
2114
if test -n "$ORBIT_CONFIG"; then
2115
echo "$ac_t""$ORBIT_CONFIG" 1>&6
2117
echo "$ac_t""no" 1>&6
2120
# Extract the first word of "orbit-idl", so it can be a program name with args.
2121
set dummy orbit-idl; ac_word=$2
2122
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2123
echo "configure:2124: checking for $ac_word" >&5
2124
if eval "test \"`echo '$''{'ac_cv_path_ORBIT_IDL'+set}'`\" = set"; then
2125
echo $ac_n "(cached) $ac_c" 1>&6
2127
case "$ORBIT_IDL" in
2129
ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
2132
ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a dos path.
2135
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2137
for ac_dir in $ac_dummy; do
2138
test -z "$ac_dir" && ac_dir=.
2139
if test -f $ac_dir/$ac_word; then
2140
ac_cv_path_ORBIT_IDL="$ac_dir/$ac_word"
2145
test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
2149
ORBIT_IDL="$ac_cv_path_ORBIT_IDL"
2150
if test -n "$ORBIT_IDL"; then
2151
echo "$ac_t""$ORBIT_IDL" 1>&6
2153
echo "$ac_t""no" 1>&6
2156
echo $ac_n "checking for working ORBit environment""... $ac_c" 1>&6
2157
echo "configure:2158: checking for working ORBit environment" >&5
2158
if eval "test \"`echo '$''{'gnome_cv_orbit_found'+set}'`\" = set"; then
2159
echo $ac_n "(cached) $ac_c" 1>&6
2162
if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
2163
gnome_cv_orbit_found=no
2165
gnome_cv_orbit_found=yes
2170
echo "$ac_t""$gnome_cv_orbit_found" 1>&6
2173
if test x$gnome_cv_orbit_found = xyes; then
2175
HAVE_ORBIT_FALSE='#'
2180
if test x$gnome_cv_orbit_found = xyes; then
2182
ORBIT_CFLAGS=`orbit-config --cflags client server`
2183
ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
2187
if test xfail = xfailure; then
2188
{ echo "configure: error: ORBit not installed or installation problem" 1>&2; exit 1; }
2192
echo $ac_n "checking for gnorba libraries""... $ac_c" 1>&6
2193
echo "configure:2194: checking for gnorba libraries" >&5
2194
if eval "test \"`echo '$''{'gnome_cv_gnorba_found'+set}'`\" = set"; then
2195
echo $ac_n "(cached) $ac_c" 1>&6
2198
gnome_cv_gnorba_found=no
2199
if test x$gnome_cv_orbit_found = xyes; then
2200
GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
2201
GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
2202
if test -n "$GNORBA_LIBS"; then
2203
gnome_cv_gnorba_found=yes
2209
echo "$ac_t""$gnome_cv_gnorba_found" 1>&6
2212
if test x$gnome_cv_gnorba_found = xyes; then
2214
HAVE_GNORBA_FALSE='#'
2216
HAVE_GNORBA_TRUE='#'
2219
if test x$gnome_cv_orbit_found = xyes; then
2221
GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
2222
GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
2226
if test xfail = xfailure; then
2227
{ echo "configure: error: gnorba library not installed or installation problem" 1>&2; exit 1; }
2231
GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
2232
GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
2233
GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
2234
GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
2235
ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
2236
GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
2237
GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
2240
echo "$ac_t""no" 1>&6
2241
no_gnome_config="yes"
2245
if test x$exec_prefix = xNONE; then
2246
if test x$prefix = xNONE; then
2247
gnome_prefix=$ac_default_prefix/lib
2249
gnome_prefix=$prefix/lib
2252
gnome_prefix=`eval echo \`echo $libdir\``
2255
if test "$no_gnome_config" = "yes"; then
2256
echo $ac_n "checking for gnomeConf.sh file in $gnome_prefix""... $ac_c" 1>&6
2257
echo "configure:2258: checking for gnomeConf.sh file in $gnome_prefix" >&5
2258
if test -f $gnome_prefix/gnomeConf.sh; then
2259
echo "$ac_t""found" 1>&6
2260
echo "loading gnome configuration from" \
2261
"$gnome_prefix/gnomeConf.sh"
2262
. $gnome_prefix/gnomeConf.sh
2265
echo "$ac_t""not found" 1>&6
2266
if test xfail = xfail; then
2267
{ echo "configure: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" 1>&2; exit 1; }
2276
echo $ac_n "checking extra library \"$i\"""... $ac_c" 1>&6
2277
echo "configure:2278: checking extra library \"$i\"" >&5
2281
GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
2282
echo "$ac_t""$GNOME_APPLETS_LIBS" 1>&6;;
2285
GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
2286
echo "$ac_t""$GNOME_DOCKLETS_LIBS" 1>&6;;
2289
GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
2290
echo "$ac_t""$GNOME_CAPPLET_LIBS" 1>&6;;
2292
echo "$ac_t""unknown library" 1>&6
2300
# Check whether --enable-compile-warnings or --disable-compile-warnings was given.
2301
if test "${enable_compile_warnings+set}" = set; then
2302
enableval="$enable_compile_warnings"
2305
enable_compile_warnings=minimum
2309
echo $ac_n "checking what warning flags to pass to the C compiler""... $ac_c" 1>&6
2310
echo "configure:2311: checking what warning flags to pass to the C compiler" >&5
2312
if test "x$GCC" != xyes; then
2313
enable_compile_warnings=no
2316
if test "x$enable_compile_warnings" != "xno"; then
2317
if test "x$GCC" = "xyes"; then
2320
*) warnCFLAGS="-Wall -Wunused" ;;
2323
## -W is not all that useful. And it cannot be controlled
2324
## with individual -Wno-xxx flags, unlike -Wall
2325
if test "x$enable_compile_warnings" = "xyes"; then
2326
warnCFLAGS="$warnCFLAGS -Wmissing-prototypes -Wmissing-declarations"
2330
echo "$ac_t""$warnCFLAGS" 1>&6
2332
# Check whether --enable-iso-c or --disable-iso-c was given.
2333
if test "${enable_iso_c+set}" = set; then
2334
enableval="$enable_iso_c"
2341
echo $ac_n "checking what language compliance flags to pass to the C compiler""... $ac_c" 1>&6
2342
echo "configure:2343: checking what language compliance flags to pass to the C compiler" >&5
2344
if test "x$enable_iso_c" != "xno"; then
2345
if test "x$GCC" = "xyes"; then
2348
*) complCFLAGS="$complCFLAGS -ansi" ;;
2352
*\ \ -pedantic\ \ *) ;;
2353
*) complCFLAGS="$complCFLAGS -pedantic" ;;
2357
echo "$ac_t""$complCFLAGS" 1>&6
2358
if test "x$cflags_set" != "xyes"; then
2359
CFLAGS="$CFLAGS $warnCFLAGS $complCFLAGS"
2366
echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
2367
echo "configure:2368: checking for pthread_create in -lpthread" >&5
2368
ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
2369
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2370
echo $ac_n "(cached) $ac_c" 1>&6
2372
ac_save_LIBS="$LIBS"
2373
LIBS="-lpthread $LIBS"
2374
cat > conftest.$ac_ext <<EOF
2375
#line 2376 "configure"
2376
#include "confdefs.h"
2377
/* Override any gcc2 internal prototype to avoid an error. */
2378
/* We use char because int might match the return type of a gcc2
2379
builtin and then its argument prototype would still apply. */
2380
char pthread_create();
2386
if { (eval echo configure:2387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2388
eval "ac_cv_lib_$ac_lib_var=yes"
2390
echo "configure: failed program was:" >&5
2391
cat conftest.$ac_ext >&5
2393
eval "ac_cv_lib_$ac_lib_var=no"
2396
LIBS="$ac_save_LIBS"
2399
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2400
echo "$ac_t""yes" 1>&6
2401
PTHREAD_LIB="-lpthread"
2403
echo "$ac_t""no" 1>&6
2404
echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6
2405
echo "configure:2406: checking for pthread_create in -lpthreads" >&5
2406
ac_lib_var=`echo pthreads'_'pthread_create | sed 'y%./+-%__p_%'`
2407
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2408
echo $ac_n "(cached) $ac_c" 1>&6
2410
ac_save_LIBS="$LIBS"
2411
LIBS="-lpthreads $LIBS"
2412
cat > conftest.$ac_ext <<EOF
2413
#line 2414 "configure"
2414
#include "confdefs.h"
2415
/* Override any gcc2 internal prototype to avoid an error. */
2416
/* We use char because int might match the return type of a gcc2
2417
builtin and then its argument prototype would still apply. */
2418
char pthread_create();
2424
if { (eval echo configure:2425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2426
eval "ac_cv_lib_$ac_lib_var=yes"
2428
echo "configure: failed program was:" >&5
2429
cat conftest.$ac_ext >&5
2431
eval "ac_cv_lib_$ac_lib_var=no"
2434
LIBS="$ac_save_LIBS"
2437
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2438
echo "$ac_t""yes" 1>&6
2439
PTHREAD_LIB="-lpthreads"
2441
echo "$ac_t""no" 1>&6
2442
echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
2443
echo "configure:2444: checking for pthread_create in -lc_r" >&5
2444
ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
2445
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2446
echo $ac_n "(cached) $ac_c" 1>&6
2448
ac_save_LIBS="$LIBS"
2450
cat > conftest.$ac_ext <<EOF
2451
#line 2452 "configure"
2452
#include "confdefs.h"
2453
/* Override any gcc2 internal prototype to avoid an error. */
2454
/* We use char because int might match the return type of a gcc2
2455
builtin and then its argument prototype would still apply. */
2456
char pthread_create();
2462
if { (eval echo configure:2463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2464
eval "ac_cv_lib_$ac_lib_var=yes"
2466
echo "configure: failed program was:" >&5
2467
cat conftest.$ac_ext >&5
2469
eval "ac_cv_lib_$ac_lib_var=no"
2472
LIBS="$ac_save_LIBS"
2475
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2476
echo "$ac_t""yes" 1>&6
2479
echo "$ac_t""no" 1>&6
2480
echo $ac_n "checking for pthread_create""... $ac_c" 1>&6
2481
echo "configure:2482: checking for pthread_create" >&5
2482
if eval "test \"`echo '$''{'ac_cv_func_pthread_create'+set}'`\" = set"; then
2483
echo $ac_n "(cached) $ac_c" 1>&6
2485
cat > conftest.$ac_ext <<EOF
2486
#line 2487 "configure"
2487
#include "confdefs.h"
2488
/* System header to define __stub macros and hopefully few prototypes,
2489
which can conflict with char pthread_create(); below. */
2491
/* Override any gcc2 internal prototype to avoid an error. */
2492
/* We use char because int might match the return type of a gcc2
2493
builtin and then its argument prototype would still apply. */
2494
char pthread_create();
2498
/* The GNU C library defines this for functions which it implements
2499
to always fail with ENOSYS. Some functions are actually named
2500
something starting with __ and the normal name is an alias. */
2501
#if defined (__stub_pthread_create) || defined (__stub___pthread_create)
19514
# Prevent multiple expansion
19537
echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
19538
echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
19539
if test "${ac_cv_lib_cposix_strerror+set}" = set; then
19540
echo $ECHO_N "(cached) $ECHO_C" >&6
19542
ac_check_lib_save_LIBS=$LIBS
19543
LIBS="-lcposix $LIBS"
19544
cat >conftest.$ac_ext <<_ACEOF
19547
cat confdefs.h >>conftest.$ac_ext
19548
cat >>conftest.$ac_ext <<_ACEOF
19549
/* end confdefs.h. */
19551
/* Override any gcc2 internal prototype to avoid an error. */
2509
if { (eval echo configure:2510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2511
eval "ac_cv_func_pthread_create=yes"
2513
echo "configure: failed program was:" >&5
2514
cat conftest.$ac_ext >&5
2516
eval "ac_cv_func_pthread_create=no"
2521
if eval "test \"`echo '$ac_cv_func_'pthread_create`\" = yes"; then
2522
echo "$ac_t""yes" 1>&6
2525
echo "$ac_t""no" 1>&6
2541
# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
2542
if test "${with_gtk_prefix+set}" = set; then
2543
withval="$with_gtk_prefix"
2544
gtk_config_prefix="$withval"
2546
gtk_config_prefix=""
2549
# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
2550
if test "${with_gtk_exec_prefix+set}" = set; then
2551
withval="$with_gtk_exec_prefix"
2552
gtk_config_exec_prefix="$withval"
2554
gtk_config_exec_prefix=""
2557
# Check whether --enable-gtktest or --disable-gtktest was given.
2558
if test "${enable_gtktest+set}" = set; then
2559
enableval="$enable_gtktest"
19555
/* We use char because int might match the return type of a gcc2
19556
builtin and then its argument prototype would still apply. */
19566
rm -f conftest.$ac_objext conftest$ac_exeext
19567
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19568
(eval $ac_link) 2>conftest.er1
19570
grep -v '^ *+' conftest.er1 >conftest.err
19572
cat conftest.err >&5
19573
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19574
(exit $ac_status); } &&
19575
{ ac_try='test -z "$ac_c_werror_flag"
19576
|| test ! -s conftest.err'
19577
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19578
(eval $ac_try) 2>&5
19580
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19581
(exit $ac_status); }; } &&
19582
{ ac_try='test -s conftest$ac_exeext'
19583
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19584
(eval $ac_try) 2>&5
19586
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19587
(exit $ac_status); }; }; then
19588
ac_cv_lib_cposix_strerror=yes
19590
echo "$as_me: failed program was:" >&5
19591
sed 's/^/| /' conftest.$ac_ext >&5
19593
ac_cv_lib_cposix_strerror=no
19595
rm -f conftest.err conftest.$ac_objext \
19596
conftest$ac_exeext conftest.$ac_ext
19597
LIBS=$ac_check_lib_save_LIBS
19599
echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
19600
echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
19601
if test $ac_cv_lib_cposix_strerror = yes; then
19602
LIBS="$LIBS -lcposix"
19608
ac_cpp='$CPP $CPPFLAGS'
19609
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19610
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19611
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19612
if test -n "$ac_tool_prefix"; then
19613
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19614
set dummy ${ac_tool_prefix}gcc; ac_word=$2
19615
echo "$as_me:$LINENO: checking for $ac_word" >&5
19616
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19617
if test "${ac_cv_prog_CC+set}" = set; then
19618
echo $ECHO_N "(cached) $ECHO_C" >&6
19620
if test -n "$CC"; then
19621
ac_cv_prog_CC="$CC" # Let the user override the test.
19623
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19624
for as_dir in $PATH
19627
test -z "$as_dir" && as_dir=.
19628
for ac_exec_ext in '' $ac_executable_extensions; do
19629
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19630
ac_cv_prog_CC="${ac_tool_prefix}gcc"
19631
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19640
if test -n "$CC"; then
19641
echo "$as_me:$LINENO: result: $CC" >&5
19642
echo "${ECHO_T}$CC" >&6
19644
echo "$as_me:$LINENO: result: no" >&5
19645
echo "${ECHO_T}no" >&6
19649
if test -z "$ac_cv_prog_CC"; then
19651
# Extract the first word of "gcc", so it can be a program name with args.
19652
set dummy gcc; ac_word=$2
19653
echo "$as_me:$LINENO: checking for $ac_word" >&5
19654
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19655
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19656
echo $ECHO_N "(cached) $ECHO_C" >&6
19658
if test -n "$ac_ct_CC"; then
19659
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19661
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19662
for as_dir in $PATH
19665
test -z "$as_dir" && as_dir=.
19666
for ac_exec_ext in '' $ac_executable_extensions; do
19667
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19668
ac_cv_prog_ac_ct_CC="gcc"
19669
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19677
ac_ct_CC=$ac_cv_prog_ac_ct_CC
19678
if test -n "$ac_ct_CC"; then
19679
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19680
echo "${ECHO_T}$ac_ct_CC" >&6
19682
echo "$as_me:$LINENO: result: no" >&5
19683
echo "${ECHO_T}no" >&6
19688
CC="$ac_cv_prog_CC"
19691
if test -z "$CC"; then
19692
if test -n "$ac_tool_prefix"; then
19693
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19694
set dummy ${ac_tool_prefix}cc; ac_word=$2
19695
echo "$as_me:$LINENO: checking for $ac_word" >&5
19696
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19697
if test "${ac_cv_prog_CC+set}" = set; then
19698
echo $ECHO_N "(cached) $ECHO_C" >&6
19700
if test -n "$CC"; then
19701
ac_cv_prog_CC="$CC" # Let the user override the test.
19703
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19704
for as_dir in $PATH
19707
test -z "$as_dir" && as_dir=.
19708
for ac_exec_ext in '' $ac_executable_extensions; do
19709
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19710
ac_cv_prog_CC="${ac_tool_prefix}cc"
19711
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19720
if test -n "$CC"; then
19721
echo "$as_me:$LINENO: result: $CC" >&5
19722
echo "${ECHO_T}$CC" >&6
19724
echo "$as_me:$LINENO: result: no" >&5
19725
echo "${ECHO_T}no" >&6
19729
if test -z "$ac_cv_prog_CC"; then
19731
# Extract the first word of "cc", so it can be a program name with args.
19732
set dummy cc; ac_word=$2
19733
echo "$as_me:$LINENO: checking for $ac_word" >&5
19734
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19735
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19736
echo $ECHO_N "(cached) $ECHO_C" >&6
19738
if test -n "$ac_ct_CC"; then
19739
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19741
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19742
for as_dir in $PATH
19745
test -z "$as_dir" && as_dir=.
19746
for ac_exec_ext in '' $ac_executable_extensions; do
19747
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19748
ac_cv_prog_ac_ct_CC="cc"
19749
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19757
ac_ct_CC=$ac_cv_prog_ac_ct_CC
19758
if test -n "$ac_ct_CC"; then
19759
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19760
echo "${ECHO_T}$ac_ct_CC" >&6
19762
echo "$as_me:$LINENO: result: no" >&5
19763
echo "${ECHO_T}no" >&6
19768
CC="$ac_cv_prog_CC"
19772
if test -z "$CC"; then
19773
# Extract the first word of "cc", so it can be a program name with args.
19774
set dummy cc; ac_word=$2
19775
echo "$as_me:$LINENO: checking for $ac_word" >&5
19776
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19777
if test "${ac_cv_prog_CC+set}" = set; then
19778
echo $ECHO_N "(cached) $ECHO_C" >&6
19780
if test -n "$CC"; then
19781
ac_cv_prog_CC="$CC" # Let the user override the test.
19783
ac_prog_rejected=no
19784
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19785
for as_dir in $PATH
19788
test -z "$as_dir" && as_dir=.
19789
for ac_exec_ext in '' $ac_executable_extensions; do
19790
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19791
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19792
ac_prog_rejected=yes
19796
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19802
if test $ac_prog_rejected = yes; then
19803
# We found a bogon in the path, so make sure we never use it.
19804
set dummy $ac_cv_prog_CC
19806
if test $# != 0; then
19807
# We chose a different compiler from the bogus one.
19808
# However, it has the same basename, so the bogon will be chosen
19809
# first if we set CC to just the basename; use the full file name.
19811
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
19817
if test -n "$CC"; then
19818
echo "$as_me:$LINENO: result: $CC" >&5
19819
echo "${ECHO_T}$CC" >&6
19821
echo "$as_me:$LINENO: result: no" >&5
19822
echo "${ECHO_T}no" >&6
19826
if test -z "$CC"; then
19827
if test -n "$ac_tool_prefix"; then
2570
gtk_config_args="$gtk_config_args gthread"
19830
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19831
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19832
echo "$as_me:$LINENO: checking for $ac_word" >&5
19833
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19834
if test "${ac_cv_prog_CC+set}" = set; then
19835
echo $ECHO_N "(cached) $ECHO_C" >&6
19837
if test -n "$CC"; then
19838
ac_cv_prog_CC="$CC" # Let the user override the test.
19840
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19841
for as_dir in $PATH
19844
test -z "$as_dir" && as_dir=.
19845
for ac_exec_ext in '' $ac_executable_extensions; do
19846
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19847
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19848
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19857
if test -n "$CC"; then
19858
echo "$as_me:$LINENO: result: $CC" >&5
19859
echo "${ECHO_T}$CC" >&6
19861
echo "$as_me:$LINENO: result: no" >&5
19862
echo "${ECHO_T}no" >&6
19865
test -n "$CC" && break
2575
if test x$gtk_config_exec_prefix != x ; then
2576
gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
2577
if test x${GTK_CONFIG+set} != xset ; then
2578
GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
2581
if test x$gtk_config_prefix != x ; then
2582
gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
2583
if test x${GTK_CONFIG+set} != xset ; then
2584
GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
2588
# Extract the first word of "gtk-config", so it can be a program name with args.
2589
set dummy gtk-config; ac_word=$2
2590
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2591
echo "configure:2592: checking for $ac_word" >&5
2592
if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
2593
echo $ac_n "(cached) $ac_c" 1>&6
2595
case "$GTK_CONFIG" in
2597
ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
2600
ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
19868
if test -z "$CC"; then
19872
# Extract the first word of "$ac_prog", so it can be a program name with args.
19873
set dummy $ac_prog; ac_word=$2
19874
echo "$as_me:$LINENO: checking for $ac_word" >&5
19875
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19876
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19877
echo $ECHO_N "(cached) $ECHO_C" >&6
19879
if test -n "$ac_ct_CC"; then
19880
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19882
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19883
for as_dir in $PATH
19886
test -z "$as_dir" && as_dir=.
19887
for ac_exec_ext in '' $ac_executable_extensions; do
19888
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19889
ac_cv_prog_ac_ct_CC="$ac_prog"
19890
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19898
ac_ct_CC=$ac_cv_prog_ac_ct_CC
19899
if test -n "$ac_ct_CC"; then
19900
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19901
echo "${ECHO_T}$ac_ct_CC" >&6
19903
echo "$as_me:$LINENO: result: no" >&5
19904
echo "${ECHO_T}no" >&6
19907
test -n "$ac_ct_CC" && break
19916
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19917
See \`config.log' for more details." >&5
19918
echo "$as_me: error: no acceptable C compiler found in \$PATH
19919
See \`config.log' for more details." >&2;}
19920
{ (exit 1); exit 1; }; }
19922
# Provide some information about the compiler.
19923
echo "$as_me:$LINENO:" \
19924
"checking for C compiler version" >&5
19925
ac_compiler=`set X $ac_compile; echo $2`
19926
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
19927
(eval $ac_compiler --version </dev/null >&5) 2>&5
19929
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19930
(exit $ac_status); }
19931
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
19932
(eval $ac_compiler -v </dev/null >&5) 2>&5
19934
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19935
(exit $ac_status); }
19936
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
19937
(eval $ac_compiler -V </dev/null >&5) 2>&5
19939
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19940
(exit $ac_status); }
19942
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19943
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
19944
if test "${ac_cv_c_compiler_gnu+set}" = set; then
19945
echo $ECHO_N "(cached) $ECHO_C" >&6
19947
cat >conftest.$ac_ext <<_ACEOF
19950
cat confdefs.h >>conftest.$ac_ext
19951
cat >>conftest.$ac_ext <<_ACEOF
19952
/* end confdefs.h. */
19965
rm -f conftest.$ac_objext
19966
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19967
(eval $ac_compile) 2>conftest.er1
19969
grep -v '^ *+' conftest.er1 >conftest.err
19971
cat conftest.err >&5
19972
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19973
(exit $ac_status); } &&
19974
{ ac_try='test -z "$ac_c_werror_flag"
19975
|| test ! -s conftest.err'
19976
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19977
(eval $ac_try) 2>&5
19979
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19980
(exit $ac_status); }; } &&
19981
{ ac_try='test -s conftest.$ac_objext'
19982
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19983
(eval $ac_try) 2>&5
19985
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19986
(exit $ac_status); }; }; then
19987
ac_compiler_gnu=yes
19989
echo "$as_me: failed program was:" >&5
19990
sed 's/^/| /' conftest.$ac_ext >&5
19994
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19995
ac_cv_c_compiler_gnu=$ac_compiler_gnu
19998
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19999
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
20000
GCC=`test $ac_compiler_gnu = yes && echo yes`
20001
ac_test_CFLAGS=${CFLAGS+set}
20002
ac_save_CFLAGS=$CFLAGS
20004
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
20005
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
20006
if test "${ac_cv_prog_cc_g+set}" = set; then
20007
echo $ECHO_N "(cached) $ECHO_C" >&6
20009
cat >conftest.$ac_ext <<_ACEOF
20012
cat confdefs.h >>conftest.$ac_ext
20013
cat >>conftest.$ac_ext <<_ACEOF
20014
/* end confdefs.h. */
20024
rm -f conftest.$ac_objext
20025
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20026
(eval $ac_compile) 2>conftest.er1
20028
grep -v '^ *+' conftest.er1 >conftest.err
20030
cat conftest.err >&5
20031
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20032
(exit $ac_status); } &&
20033
{ ac_try='test -z "$ac_c_werror_flag"
20034
|| test ! -s conftest.err'
20035
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20036
(eval $ac_try) 2>&5
20038
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20039
(exit $ac_status); }; } &&
20040
{ ac_try='test -s conftest.$ac_objext'
20041
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20042
(eval $ac_try) 2>&5
20044
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20045
(exit $ac_status); }; }; then
20046
ac_cv_prog_cc_g=yes
20048
echo "$as_me: failed program was:" >&5
20049
sed 's/^/| /' conftest.$ac_ext >&5
20053
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20055
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
20056
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
20057
if test "$ac_test_CFLAGS" = set; then
20058
CFLAGS=$ac_save_CFLAGS
20059
elif test $ac_cv_prog_cc_g = yes; then
20060
if test "$GCC" = yes; then
20066
if test "$GCC" = yes; then
20072
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
20073
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
20074
if test "${ac_cv_prog_cc_stdc+set}" = set; then
20075
echo $ECHO_N "(cached) $ECHO_C" >&6
20077
ac_cv_prog_cc_stdc=no
20079
cat >conftest.$ac_ext <<_ACEOF
20082
cat confdefs.h >>conftest.$ac_ext
20083
cat >>conftest.$ac_ext <<_ACEOF
20084
/* end confdefs.h. */
20085
#include <stdarg.h>
20087
#include <sys/types.h>
20088
#include <sys/stat.h>
20089
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
20090
struct buf { int x; };
20091
FILE * (*rcsopen) (struct buf *, struct stat *, int);
20092
static char *e (p, i)
20098
static char *f (char * (*g) (char **, int), char **p, ...)
20103
s = g (p, va_arg (v,int));
20108
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
20109
function prototypes and stuff, but not '\xHH' hex character constants.
20110
These don't provoke an error unfortunately, instead are silently treated
20111
as 'x'. The following induces an error, until -std1 is added to get
20112
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
20113
array size at least. It's necessary to write '\x00'==0 to get something
20114
that's true only with -std1. */
20115
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
20117
int test (int i, double x);
20118
struct s1 {int (*f) (int a);};
20119
struct s2 {int (*f) (double a);};
20120
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
20126
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
20131
# Don't try gcc -ansi; that turns off useful extensions and
20132
# breaks some systems' header files.
20133
# AIX -qlanglvl=ansi
20134
# Ultrix and OSF/1 -std1
20135
# HP-UX 10.20 and later -Ae
20136
# HP-UX older versions -Aa -D_HPUX_SOURCE
20137
# SVR4 -Xc -D__EXTENSIONS__
20138
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
20140
CC="$ac_save_CC $ac_arg"
20141
rm -f conftest.$ac_objext
20142
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20143
(eval $ac_compile) 2>conftest.er1
20145
grep -v '^ *+' conftest.er1 >conftest.err
20147
cat conftest.err >&5
20148
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20149
(exit $ac_status); } &&
20150
{ ac_try='test -z "$ac_c_werror_flag"
20151
|| test ! -s conftest.err'
20152
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20153
(eval $ac_try) 2>&5
20155
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20156
(exit $ac_status); }; } &&
20157
{ ac_try='test -s conftest.$ac_objext'
20158
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20159
(eval $ac_try) 2>&5
20161
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20162
(exit $ac_status); }; }; then
20163
ac_cv_prog_cc_stdc=$ac_arg
20166
echo "$as_me: failed program was:" >&5
20167
sed 's/^/| /' conftest.$ac_ext >&5
20170
rm -f conftest.err conftest.$ac_objext
20172
rm -f conftest.$ac_ext conftest.$ac_objext
20177
case "x$ac_cv_prog_cc_stdc" in
20179
echo "$as_me:$LINENO: result: none needed" >&5
20180
echo "${ECHO_T}none needed" >&6 ;;
2603
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2605
for ac_dir in $ac_dummy; do
2606
test -z "$ac_dir" && ac_dir=.
2607
if test -f $ac_dir/$ac_word; then
2608
ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
2613
test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
20182
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
20183
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
20184
CC="$CC $ac_cv_prog_cc_stdc" ;;
2617
GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
2618
if test -n "$GTK_CONFIG"; then
2619
echo "$ac_t""$GTK_CONFIG" 1>&6
2621
echo "$ac_t""no" 1>&6
2624
min_gtk_version=1.2.0
2625
echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
2626
echo "configure:2627: checking for GTK - version >= $min_gtk_version" >&5
2628
if test "$GTK_CONFIG" = "no" ; then
2631
GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
2632
GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
2633
gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
2634
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
2635
gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
2636
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
2637
gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
2638
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
2639
if test "x$enable_gtktest" = "xyes" ; then
2640
ac_save_CFLAGS="$CFLAGS"
2641
ac_save_LIBS="$LIBS"
2642
CFLAGS="$CFLAGS $GTK_CFLAGS"
2643
LIBS="$GTK_LIBS $LIBS"
2645
if test "$cross_compiling" = yes; then
2646
echo $ac_n "cross compiling; assumed OK... $ac_c"
2648
cat > conftest.$ac_ext <<EOF
2649
#line 2650 "configure"
2650
#include "confdefs.h"
2652
#include <gtk/gtk.h>
20187
# Some people use a C++ compiler to compile C. Since we use `exit',
20188
# in C++ we need to declare it. In case someone uses the same compiler
20189
# for both compiling C and C++ we need to have the C++ compiler decide
20190
# the declaration of exit, since it's the most demanding environment.
20191
cat >conftest.$ac_ext <<_ACEOF
20192
#ifndef __cplusplus
20196
rm -f conftest.$ac_objext
20197
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20198
(eval $ac_compile) 2>conftest.er1
20200
grep -v '^ *+' conftest.er1 >conftest.err
20202
cat conftest.err >&5
20203
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20204
(exit $ac_status); } &&
20205
{ ac_try='test -z "$ac_c_werror_flag"
20206
|| test ! -s conftest.err'
20207
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20208
(eval $ac_try) 2>&5
20210
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20211
(exit $ac_status); }; } &&
20212
{ ac_try='test -s conftest.$ac_objext'
20213
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20214
(eval $ac_try) 2>&5
20216
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20217
(exit $ac_status); }; }; then
20218
for ac_declaration in \
20220
'extern "C" void std::exit (int) throw (); using std::exit;' \
20221
'extern "C" void std::exit (int); using std::exit;' \
20222
'extern "C" void exit (int) throw ();' \
20223
'extern "C" void exit (int);' \
20226
cat >conftest.$ac_ext <<_ACEOF
20229
cat confdefs.h >>conftest.$ac_ext
20230
cat >>conftest.$ac_ext <<_ACEOF
20231
/* end confdefs.h. */
2654
20233
#include <stdlib.h>
2659
int major, minor, micro;
2662
system ("touch conf.gtktest");
2664
/* HP/UX 9 (%@#!) writes to sscanf strings */
2665
tmp_version = g_strdup("$min_gtk_version");
2666
if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
2667
printf("%s, bad version string\n", "$min_gtk_version");
2671
if ((gtk_major_version != $gtk_config_major_version) ||
2672
(gtk_minor_version != $gtk_config_minor_version) ||
2673
(gtk_micro_version != $gtk_config_micro_version))
2675
printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
2676
$gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
2677
gtk_major_version, gtk_minor_version, gtk_micro_version);
2678
printf ("*** was found! If gtk-config was correct, then it is best\n");
2679
printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
2680
printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
2681
printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
2682
printf("*** required on your system.\n");
2683
printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
2684
printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
2685
printf("*** before re-running configure\n");
2687
#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
2688
else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
2689
(gtk_minor_version != GTK_MINOR_VERSION) ||
2690
(gtk_micro_version != GTK_MICRO_VERSION))
2692
printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
2693
GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
2694
printf("*** library (version %d.%d.%d)\n",
2695
gtk_major_version, gtk_minor_version, gtk_micro_version);
2697
#endif /* defined (GTK_MAJOR_VERSION) ... */
2700
if ((gtk_major_version > major) ||
2701
((gtk_major_version == major) && (gtk_minor_version > minor)) ||
2702
((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
2708
printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
2709
gtk_major_version, gtk_minor_version, gtk_micro_version);
2710
printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
2711
major, minor, micro);
2712
printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
2714
printf("*** If you have already installed a sufficiently new version, this error\n");
2715
printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
2716
printf("*** being found. The easiest way to fix this is to remove the old version\n");
2717
printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
2718
printf("*** correct copy of gtk-config. (In this case, you will have to\n");
2719
printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
2720
printf("*** so that the correct libraries are found at run-time))\n");
2727
if { (eval echo configure:2728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
20242
rm -f conftest.$ac_objext
20243
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20244
(eval $ac_compile) 2>conftest.er1
20246
grep -v '^ *+' conftest.er1 >conftest.err
20248
cat conftest.err >&5
20249
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20250
(exit $ac_status); } &&
20251
{ ac_try='test -z "$ac_c_werror_flag"
20252
|| test ! -s conftest.err'
20253
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20254
(eval $ac_try) 2>&5
20256
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20257
(exit $ac_status); }; } &&
20258
{ ac_try='test -s conftest.$ac_objext'
20259
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20260
(eval $ac_try) 2>&5
20262
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20263
(exit $ac_status); }; }; then
2731
echo "configure: failed program was:" >&5
2732
cat conftest.$ac_ext >&5
2739
CFLAGS="$ac_save_CFLAGS"
2740
LIBS="$ac_save_LIBS"
2743
if test "x$no_gtk" = x ; then
2744
echo "$ac_t""yes" 1>&6
2747
echo "$ac_t""no" 1>&6
2748
if test "$GTK_CONFIG" = "no" ; then
2749
echo "*** The gtk-config script installed by GTK could not be found"
2750
echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
2751
echo "*** your path, or set the GTK_CONFIG environment variable to the"
2752
echo "*** full path to gtk-config."
2754
if test -f conf.gtktest ; then
2757
echo "*** Could not run GTK test program, checking why..."
2758
CFLAGS="$CFLAGS $GTK_CFLAGS"
2759
LIBS="$LIBS $GTK_LIBS"
2760
cat > conftest.$ac_ext <<EOF
2761
#line 2762 "configure"
2762
#include "confdefs.h"
2764
#include <gtk/gtk.h>
2768
return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
2771
if { (eval echo configure:2772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2773
echo "*** The test program compiled, but did not run. This usually means"
2774
echo "*** that the run-time linker is not finding GTK or finding the wrong"
2775
echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
2776
echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
2777
echo "*** to the installed location Also, make sure you have run ldconfig if that"
2778
echo "*** is required on your system"
2780
echo "*** If you have an old version installed, it is best to remove it, although"
2781
echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
2783
echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
2784
echo "*** came with the system with the command"
2786
echo "*** rpm --erase --nodeps gtk gtk-devel"
2788
echo "configure: failed program was:" >&5
2789
cat conftest.$ac_ext >&5
2791
echo "*** The test program failed to compile or link. See the file config.log for the"
2792
echo "*** exact error that occured. This usually means GTK was incorrectly installed"
2793
echo "*** or that you have moved GTK since it was installed. In the latter case, you"
2794
echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
2797
CFLAGS="$ac_save_CFLAGS"
2798
LIBS="$ac_save_LIBS"
2803
{ echo "configure: error: GTK not installed" 1>&2; exit 1; }
2809
CPPFLAGS="$CPPFLAGS $GTK_CFLAGS"
2811
saved_ldflags="$LDFLAGS"
2812
LDFLAGS="$LDFLAGS $GTK_LIBS"
2814
gnome_cv_passdown_x_libs="$GTK_LIBS"
2815
gnome_cv_passdown_X_LIBS="$GTK_LIBS"
2816
gnome_cv_passdown_X_CFLAGS="$GTK_CFLAGS"
2817
gnome_cv_passdown_GTK_LIBS="$GTK_LIBS"
2819
LDFLAGS="$saved_ldflags $GTK_LIBS"
2829
echo $ac_n "checking for SmcSaveYourselfDone in -lSM""... $ac_c" 1>&6
2830
echo "configure:2831: checking for SmcSaveYourselfDone in -lSM" >&5
2831
ac_lib_var=`echo SM'_'SmcSaveYourselfDone | sed 'y%./+-%__p_%'`
2832
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2833
echo $ac_n "(cached) $ac_c" 1>&6
2835
ac_save_LIBS="$LIBS"
2836
LIBS="-lSM $x_libs -lICE $LIBS"
2837
cat > conftest.$ac_ext <<EOF
2838
#line 2839 "configure"
2839
#include "confdefs.h"
2840
/* Override any gcc2 internal prototype to avoid an error. */
2841
/* We use char because int might match the return type of a gcc2
2842
builtin and then its argument prototype would still apply. */
2843
char SmcSaveYourselfDone();
2846
SmcSaveYourselfDone()
2849
if { (eval echo configure:2850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2851
eval "ac_cv_lib_$ac_lib_var=yes"
2853
echo "configure: failed program was:" >&5
2854
cat conftest.$ac_ext >&5
2856
eval "ac_cv_lib_$ac_lib_var=no"
2859
LIBS="$ac_save_LIBS"
2862
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2863
echo "$ac_t""yes" 1>&6
2864
GTK_LIBS="-lSM -lICE $GTK_LIBS"
2866
echo "$ac_t""no" 1>&6
2873
if test "$GNOME_HAVE_SM" = true; then
2874
for ac_hdr in X11/SM/SMlib.h
2876
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2877
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2878
echo "configure:2879: checking for $ac_hdr" >&5
2879
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2880
echo $ac_n "(cached) $ac_c" 1>&6
2882
cat > conftest.$ac_ext <<EOF
2883
#line 2884 "configure"
2884
#include "confdefs.h"
2887
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2888
{ (eval echo configure:2889: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2889
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2890
if test -z "$ac_err"; then
2892
eval "ac_cv_header_$ac_safe=yes"
2895
echo "configure: failed program was:" >&5
2896
cat conftest.$ac_ext >&5
2898
eval "ac_cv_header_$ac_safe=no"
2902
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2903
echo "$ac_t""yes" 1>&6
2904
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2905
cat >> confdefs.h <<EOF
2906
#define $ac_tr_hdr 1
2910
echo "$ac_t""no" 1>&6
2917
if test "$GNOME_HAVE_SM" = true; then
2918
cat >> confdefs.h <<\EOF
2919
#define HAVE_LIBSM 1
2925
echo $ac_n "checking for XpmFreeXpmImage in -lXpm""... $ac_c" 1>&6
2926
echo "configure:2927: checking for XpmFreeXpmImage in -lXpm" >&5
2927
ac_lib_var=`echo Xpm'_'XpmFreeXpmImage | sed 'y%./+-%__p_%'`
2928
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2929
echo $ac_n "(cached) $ac_c" 1>&6
2931
ac_save_LIBS="$LIBS"
2932
LIBS="-lXpm $x_libs $LIBS"
2933
cat > conftest.$ac_ext <<EOF
2934
#line 2935 "configure"
2935
#include "confdefs.h"
2936
/* Override any gcc2 internal prototype to avoid an error. */
2937
/* We use char because int might match the return type of a gcc2
2938
builtin and then its argument prototype would still apply. */
2939
char XpmFreeXpmImage();
2945
if { (eval echo configure:2946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2947
eval "ac_cv_lib_$ac_lib_var=yes"
2949
echo "configure: failed program was:" >&5
2950
cat conftest.$ac_ext >&5
2952
eval "ac_cv_lib_$ac_lib_var=no"
2955
LIBS="$ac_save_LIBS"
2958
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2959
echo "$ac_t""yes" 1>&6
2962
echo "$ac_t""no" 1>&6
2968
LDFLAGS="$saved_ldflags"
2976
if test x$have_orbit = xyes; then
2978
HAVE_ORBIT_FALSE='#'
2986
if test x$have_libgnorba = xyes; then
2987
HAVE_LIBGNORBA_TRUE=
2988
HAVE_LIBGNORBA_FALSE='#'
2990
HAVE_LIBGNORBA_TRUE='#'
2991
HAVE_LIBGNORBA_FALSE=
2996
if test x$have_libzvt = xyes; then
2998
HAVE_LIBZVT_FALSE='#'
3000
HAVE_LIBZVT_TRUE='#'
3004
ALL_LINGUAS="az ca cs da de el es fi fr ga gl hu it ja ko lt nl no pl pt pt_BR ru sv sk sl tr uk wa zh_TW.Big5 zh_CN.GB2312"
3005
echo $ac_n "checking for working const""... $ac_c" 1>&6
3006
echo "configure:3007: checking for working const" >&5
3007
if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3008
echo $ac_n "(cached) $ac_c" 1>&6
3010
cat > conftest.$ac_ext <<EOF
3011
#line 3012 "configure"
3012
#include "confdefs.h"
3016
/* Ultrix mips cc rejects this. */
3017
typedef int charset[2]; const charset x;
3018
/* SunOS 4.1.1 cc rejects this. */
3019
char const *const *ccp;
3021
/* NEC SVR4.0.2 mips cc rejects this. */
3022
struct point {int x, y;};
3023
static struct point const zero = {0,0};
3024
/* AIX XL C 1.02.0.0 rejects this.
3025
It does not let you subtract one const X* pointer from another in an arm
3026
of an if-expression whose if-part is not a constant expression */
3027
const char *g = "string";
3028
ccp = &g + (g ? g-g : 0);
3029
/* HPUX 7.0 cc rejects these. */
3032
ccp = (char const *const *) p;
3033
{ /* SCO 3.2v4 cc rejects this. */
3035
char const *s = 0 ? (char *) 0 : (char const *) 0;
3039
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3041
const int *foo = &x[0];
3044
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3045
typedef const int *iptr;
3049
{ /* AIX XL C 1.02.0.0 rejects this saying
3050
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3051
struct s { int j; const int *ap[3]; };
3052
struct s *b; b->j = 5;
3054
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3060
if { (eval echo configure:3061: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3064
echo "configure: failed program was:" >&5
3065
cat conftest.$ac_ext >&5
3072
echo "$ac_t""$ac_cv_c_const" 1>&6
3073
if test $ac_cv_c_const = no; then
3074
cat >> confdefs.h <<\EOF
3080
echo $ac_n "checking for inline""... $ac_c" 1>&6
3081
echo "configure:3082: checking for inline" >&5
3082
if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3083
echo $ac_n "(cached) $ac_c" 1>&6
3086
for ac_kw in inline __inline__ __inline; do
3087
cat > conftest.$ac_ext <<EOF
3088
#line 3089 "configure"
3089
#include "confdefs.h"
3095
if { (eval echo configure:3096: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3097
ac_cv_c_inline=$ac_kw; break
3099
echo "configure: failed program was:" >&5
3100
cat conftest.$ac_ext >&5
3107
echo "$ac_t""$ac_cv_c_inline" 1>&6
3108
case "$ac_cv_c_inline" in
3110
no) cat >> confdefs.h <<\EOF
3114
*) cat >> confdefs.h <<EOF
3115
#define inline $ac_cv_c_inline
3120
echo $ac_n "checking for off_t""... $ac_c" 1>&6
3121
echo "configure:3122: checking for off_t" >&5
3122
if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3123
echo $ac_n "(cached) $ac_c" 1>&6
3125
cat > conftest.$ac_ext <<EOF
3126
#line 3127 "configure"
3127
#include "confdefs.h"
3128
#include <sys/types.h>
3134
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3135
egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3137
ac_cv_type_off_t=yes
3145
echo "$ac_t""$ac_cv_type_off_t" 1>&6
3146
if test $ac_cv_type_off_t = no; then
3147
cat >> confdefs.h <<\EOF
3153
echo $ac_n "checking for size_t""... $ac_c" 1>&6
3154
echo "configure:3155: checking for size_t" >&5
3155
if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3156
echo $ac_n "(cached) $ac_c" 1>&6
3158
cat > conftest.$ac_ext <<EOF
3159
#line 3160 "configure"
3160
#include "confdefs.h"
3161
#include <sys/types.h>
3167
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3168
egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3170
ac_cv_type_size_t=yes
3173
ac_cv_type_size_t=no
3178
echo "$ac_t""$ac_cv_type_size_t" 1>&6
3179
if test $ac_cv_type_size_t = no; then
3180
cat >> confdefs.h <<\EOF
3181
#define size_t unsigned
3186
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3187
# for constant arguments. Useless!
3188
echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
3189
echo "configure:3190: checking for working alloca.h" >&5
3190
if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
3191
echo $ac_n "(cached) $ac_c" 1>&6
3193
cat > conftest.$ac_ext <<EOF
3194
#line 3195 "configure"
3195
#include "confdefs.h"
3198
char *p = alloca(2 * sizeof(int));
3201
if { (eval echo configure:3202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3203
ac_cv_header_alloca_h=yes
3205
echo "configure: failed program was:" >&5
3206
cat conftest.$ac_ext >&5
3208
ac_cv_header_alloca_h=no
3213
echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3214
if test $ac_cv_header_alloca_h = yes; then
3215
cat >> confdefs.h <<\EOF
3216
#define HAVE_ALLOCA_H 1
3221
echo $ac_n "checking for alloca""... $ac_c" 1>&6
3222
echo "configure:3223: checking for alloca" >&5
3223
if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3224
echo $ac_n "(cached) $ac_c" 1>&6
3226
cat > conftest.$ac_ext <<EOF
3227
#line 3228 "configure"
3228
#include "confdefs.h"
3231
# define alloca __builtin_alloca
3234
# include <malloc.h>
3235
# define alloca _alloca
3238
# include <alloca.h>
3243
# ifndef alloca /* predefined by HP cc +Olibcalls */
3252
char *p = (char *) alloca(1);
3255
if { (eval echo configure:3256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3257
ac_cv_func_alloca_works=yes
3259
echo "configure: failed program was:" >&5
3260
cat conftest.$ac_ext >&5
3262
ac_cv_func_alloca_works=no
3267
echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3268
if test $ac_cv_func_alloca_works = yes; then
3269
cat >> confdefs.h <<\EOF
3270
#define HAVE_ALLOCA 1
3275
if test $ac_cv_func_alloca_works = no; then
3276
# The SVR3 libPW and SVR4 libucb both contain incompatible functions
3277
# that cause trouble. Some versions do not even contain alloca or
3278
# contain a buggy version. If you still want to use their alloca,
3279
# use ar to extract alloca.o from them instead of compiling alloca.c.
3280
ALLOCA=alloca.${ac_objext}
3281
cat >> confdefs.h <<\EOF
3286
echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3287
echo "configure:3288: checking whether alloca needs Cray hooks" >&5
3288
if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3289
echo $ac_n "(cached) $ac_c" 1>&6
3291
cat > conftest.$ac_ext <<EOF
3292
#line 3293 "configure"
3293
#include "confdefs.h"
3294
#if defined(CRAY) && ! defined(CRAY2)
3301
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3302
egrep "webecray" >/dev/null 2>&1; then
3313
echo "$ac_t""$ac_cv_os_cray" 1>&6
3314
if test $ac_cv_os_cray = yes; then
3315
for ac_func in _getb67 GETB67 getb67; do
3316
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3317
echo "configure:3318: checking for $ac_func" >&5
3318
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3319
echo $ac_n "(cached) $ac_c" 1>&6
3321
cat > conftest.$ac_ext <<EOF
3322
#line 3323 "configure"
3323
#include "confdefs.h"
3324
/* System header to define __stub macros and hopefully few prototypes,
3325
which can conflict with char $ac_func(); below. */
3327
/* Override any gcc2 internal prototype to avoid an error. */
3328
/* We use char because int might match the return type of a gcc2
3329
builtin and then its argument prototype would still apply. */
3334
/* The GNU C library defines this for functions which it implements
3335
to always fail with ENOSYS. Some functions are actually named
3336
something starting with __ and the normal name is an alias. */
3337
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3345
if { (eval echo configure:3346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3347
eval "ac_cv_func_$ac_func=yes"
3349
echo "configure: failed program was:" >&5
3350
cat conftest.$ac_ext >&5
3352
eval "ac_cv_func_$ac_func=no"
3357
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3358
echo "$ac_t""yes" 1>&6
3359
cat >> confdefs.h <<EOF
3360
#define CRAY_STACKSEG_END $ac_func
20266
echo "$as_me: failed program was:" >&5
20267
sed 's/^/| /' conftest.$ac_ext >&5
20271
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20272
cat >conftest.$ac_ext <<_ACEOF
20275
cat confdefs.h >>conftest.$ac_ext
20276
cat >>conftest.$ac_ext <<_ACEOF
20277
/* end confdefs.h. */
20287
rm -f conftest.$ac_objext
20288
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20289
(eval $ac_compile) 2>conftest.er1
20291
grep -v '^ *+' conftest.er1 >conftest.err
20293
cat conftest.err >&5
20294
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20295
(exit $ac_status); } &&
20296
{ ac_try='test -z "$ac_c_werror_flag"
20297
|| test ! -s conftest.err'
20298
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20299
(eval $ac_try) 2>&5
20301
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20302
(exit $ac_status); }; } &&
20303
{ ac_try='test -s conftest.$ac_objext'
20304
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20305
(eval $ac_try) 2>&5
20307
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20308
(exit $ac_status); }; }; then
3365
echo "$ac_t""no" 1>&6
3371
echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3372
echo "configure:3373: checking stack direction for C alloca" >&5
3373
if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3374
echo $ac_n "(cached) $ac_c" 1>&6
3376
if test "$cross_compiling" = yes; then
3377
ac_cv_c_stack_direction=0
3379
cat > conftest.$ac_ext <<EOF
3380
#line 3381 "configure"
3381
#include "confdefs.h"
3382
find_stack_direction ()
3384
static char *addr = 0;
3389
return find_stack_direction ();
3392
return (&dummy > addr) ? 1 : -1;
3396
exit (find_stack_direction() < 0);
3399
if { (eval echo configure:3400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3401
ac_cv_c_stack_direction=1
3403
echo "configure: failed program was:" >&5
3404
cat conftest.$ac_ext >&5
3406
ac_cv_c_stack_direction=-1
3413
echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3414
cat >> confdefs.h <<EOF
3415
#define STACK_DIRECTION $ac_cv_c_stack_direction
3420
for ac_hdr in unistd.h
3422
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3423
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3424
echo "configure:3425: checking for $ac_hdr" >&5
3425
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3426
echo $ac_n "(cached) $ac_c" 1>&6
3428
cat > conftest.$ac_ext <<EOF
3429
#line 3430 "configure"
3430
#include "confdefs.h"
3433
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3434
{ (eval echo configure:3435: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3435
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3436
if test -z "$ac_err"; then
3438
eval "ac_cv_header_$ac_safe=yes"
3441
echo "configure: failed program was:" >&5
3442
cat conftest.$ac_ext >&5
3444
eval "ac_cv_header_$ac_safe=no"
3448
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3449
echo "$ac_t""yes" 1>&6
3450
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3451
cat >> confdefs.h <<EOF
3452
#define $ac_tr_hdr 1
3456
echo "$ac_t""no" 1>&6
3460
for ac_func in getpagesize
3462
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3463
echo "configure:3464: checking for $ac_func" >&5
3464
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3465
echo $ac_n "(cached) $ac_c" 1>&6
3467
cat > conftest.$ac_ext <<EOF
3468
#line 3469 "configure"
3469
#include "confdefs.h"
3470
/* System header to define __stub macros and hopefully few prototypes,
3471
which can conflict with char $ac_func(); below. */
3473
/* Override any gcc2 internal prototype to avoid an error. */
3474
/* We use char because int might match the return type of a gcc2
3475
builtin and then its argument prototype would still apply. */
3480
/* The GNU C library defines this for functions which it implements
3481
to always fail with ENOSYS. Some functions are actually named
3482
something starting with __ and the normal name is an alias. */
3483
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3491
if { (eval echo configure:3492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3493
eval "ac_cv_func_$ac_func=yes"
3495
echo "configure: failed program was:" >&5
3496
cat conftest.$ac_ext >&5
3498
eval "ac_cv_func_$ac_func=no"
3503
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3504
echo "$ac_t""yes" 1>&6
3505
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3506
cat >> confdefs.h <<EOF
3507
#define $ac_tr_func 1
3511
echo "$ac_t""no" 1>&6
3515
echo $ac_n "checking for working mmap""... $ac_c" 1>&6
3516
echo "configure:3517: checking for working mmap" >&5
3517
if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
3518
echo $ac_n "(cached) $ac_c" 1>&6
3520
if test "$cross_compiling" = yes; then
3521
ac_cv_func_mmap_fixed_mapped=no
3523
cat > conftest.$ac_ext <<EOF
3524
#line 3525 "configure"
3525
#include "confdefs.h"
3527
/* Thanks to Mike Haertel and Jim Avera for this test.
3528
Here is a matrix of mmap possibilities:
3529
mmap private not fixed
3530
mmap private fixed at somewhere currently unmapped
3531
mmap private fixed at somewhere already mapped
3532
mmap shared not fixed
3533
mmap shared fixed at somewhere currently unmapped
3534
mmap shared fixed at somewhere already mapped
3535
For private mappings, we should verify that changes cannot be read()
3536
back from the file, nor mmap's back from the file at a different
3537
address. (There have been systems where private was not correctly
3538
implemented like the infamous i386 svr4.0, and systems where the
3539
VM page cache was not coherent with the filesystem buffer cache
3540
like early versions of FreeBSD and possibly contemporary NetBSD.)
3541
For shared mappings, we should conversely verify that changes get
3542
propogated back to all the places they're supposed to be.
3544
Grep wants private fixed already mapped.
3545
The main things grep needs to know about mmap are:
3546
* does it exist and is it safe to write into the mmap'd area
3547
* how to use it (BSD variants) */
3548
#include <sys/types.h>
3550
#include <sys/mman.h>
3552
/* This mess was copied from the GNU getpagesize.h. */
3553
#ifndef HAVE_GETPAGESIZE
3554
# ifdef HAVE_UNISTD_H
3555
# include <unistd.h>
3558
/* Assume that all systems that can run configure have sys/param.h. */
3559
# ifndef HAVE_SYS_PARAM_H
3560
# define HAVE_SYS_PARAM_H 1
3563
# ifdef _SC_PAGESIZE
3564
# define getpagesize() sysconf(_SC_PAGESIZE)
3565
# else /* no _SC_PAGESIZE */
3566
# ifdef HAVE_SYS_PARAM_H
3567
# include <sys/param.h>
3568
# ifdef EXEC_PAGESIZE
3569
# define getpagesize() EXEC_PAGESIZE
3570
# else /* no EXEC_PAGESIZE */
3572
# define getpagesize() NBPG * CLSIZE
3575
# endif /* no CLSIZE */
3576
# else /* no NBPG */
3578
# define getpagesize() NBPC
3579
# else /* no NBPC */
3581
# define getpagesize() PAGESIZE
3582
# endif /* PAGESIZE */
3583
# endif /* no NBPC */
3584
# endif /* no NBPG */
3585
# endif /* no EXEC_PAGESIZE */
3586
# else /* no HAVE_SYS_PARAM_H */
3587
# define getpagesize() 8192 /* punt totally */
3588
# endif /* no HAVE_SYS_PARAM_H */
3589
# endif /* no _SC_PAGESIZE */
3591
#endif /* no HAVE_GETPAGESIZE */
3594
extern "C" { void *malloc(unsigned); }
3602
char *data, *data2, *data3;
3606
pagesize = getpagesize();
3609
* First, make a file with some known garbage in it.
3611
data = malloc(pagesize);
3614
for (i = 0; i < pagesize; ++i)
3615
*(data + i) = rand();
3617
fd = creat("conftestmmap", 0600);
3620
if (write(fd, data, pagesize) != pagesize)
3625
* Next, try to mmap the file at a fixed address which
3626
* already has something else allocated at it. If we can,
3627
* also make sure that we see the same garbage.
3629
fd = open("conftestmmap", O_RDWR);
3632
data2 = malloc(2 * pagesize);
3635
data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3636
if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
3637
MAP_PRIVATE | MAP_FIXED, fd, 0L))
3639
for (i = 0; i < pagesize; ++i)
3640
if (*(data + i) != *(data2 + i))
3644
* Finally, make sure that changes to the mapped area
3645
* do not percolate back to the file as seen by read().
3646
* (This is a bug on some variants of i386 svr4.0.)
3648
for (i = 0; i < pagesize; ++i)
3649
*(data2 + i) = *(data2 + i) + 1;
3650
data3 = malloc(pagesize);
3653
if (read(fd, data3, pagesize) != pagesize)
3655
for (i = 0; i < pagesize; ++i)
3656
if (*(data + i) != *(data3 + i))
3659
unlink("conftestmmap");
3664
if { (eval echo configure:3665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3666
ac_cv_func_mmap_fixed_mapped=yes
3668
echo "configure: failed program was:" >&5
3669
cat conftest.$ac_ext >&5
3671
ac_cv_func_mmap_fixed_mapped=no
3678
echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
3679
if test $ac_cv_func_mmap_fixed_mapped = yes; then
3680
cat >> confdefs.h <<\EOF
3687
for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
3688
unistd.h sys/param.h
3690
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3691
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3692
echo "configure:3693: checking for $ac_hdr" >&5
3693
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3694
echo $ac_n "(cached) $ac_c" 1>&6
3696
cat > conftest.$ac_ext <<EOF
3697
#line 3698 "configure"
3698
#include "confdefs.h"
3701
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3702
{ (eval echo configure:3703: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3703
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3704
if test -z "$ac_err"; then
3706
eval "ac_cv_header_$ac_safe=yes"
3709
echo "configure: failed program was:" >&5
3710
cat conftest.$ac_ext >&5
3712
eval "ac_cv_header_$ac_safe=no"
3716
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3717
echo "$ac_t""yes" 1>&6
3718
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3719
cat >> confdefs.h <<EOF
3720
#define $ac_tr_hdr 1
3724
echo "$ac_t""no" 1>&6
3728
for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
3729
strdup __argz_count __argz_stringify __argz_next
3731
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3732
echo "configure:3733: checking for $ac_func" >&5
3733
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3734
echo $ac_n "(cached) $ac_c" 1>&6
3736
cat > conftest.$ac_ext <<EOF
3737
#line 3738 "configure"
3738
#include "confdefs.h"
3739
/* System header to define __stub macros and hopefully few prototypes,
3740
which can conflict with char $ac_func(); below. */
3742
/* Override any gcc2 internal prototype to avoid an error. */
3743
/* We use char because int might match the return type of a gcc2
3744
builtin and then its argument prototype would still apply. */
3749
/* The GNU C library defines this for functions which it implements
3750
to always fail with ENOSYS. Some functions are actually named
3751
something starting with __ and the normal name is an alias. */
3752
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3760
if { (eval echo configure:3761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3762
eval "ac_cv_func_$ac_func=yes"
3764
echo "configure: failed program was:" >&5
3765
cat conftest.$ac_ext >&5
3767
eval "ac_cv_func_$ac_func=no"
3772
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3773
echo "$ac_t""yes" 1>&6
3774
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3775
cat >> confdefs.h <<EOF
3776
#define $ac_tr_func 1
3780
echo "$ac_t""no" 1>&6
3785
if test "${ac_cv_func_stpcpy+set}" != "set"; then
3786
for ac_func in stpcpy
3788
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3789
echo "configure:3790: checking for $ac_func" >&5
3790
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3791
echo $ac_n "(cached) $ac_c" 1>&6
3793
cat > conftest.$ac_ext <<EOF
3794
#line 3795 "configure"
3795
#include "confdefs.h"
3796
/* System header to define __stub macros and hopefully few prototypes,
3797
which can conflict with char $ac_func(); below. */
3799
/* Override any gcc2 internal prototype to avoid an error. */
3800
/* We use char because int might match the return type of a gcc2
3801
builtin and then its argument prototype would still apply. */
3806
/* The GNU C library defines this for functions which it implements
3807
to always fail with ENOSYS. Some functions are actually named
3808
something starting with __ and the normal name is an alias. */
3809
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3817
if { (eval echo configure:3818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3819
eval "ac_cv_func_$ac_func=yes"
3821
echo "configure: failed program was:" >&5
3822
cat conftest.$ac_ext >&5
3824
eval "ac_cv_func_$ac_func=no"
3829
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3830
echo "$ac_t""yes" 1>&6
3831
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3832
cat >> confdefs.h <<EOF
3833
#define $ac_tr_func 1
3837
echo "$ac_t""no" 1>&6
3842
if test "${ac_cv_func_stpcpy}" = "yes"; then
3843
cat >> confdefs.h <<\EOF
3844
#define HAVE_STPCPY 1
3849
if test $ac_cv_header_locale_h = yes; then
3850
echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
3851
echo "configure:3852: checking for LC_MESSAGES" >&5
3852
if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3853
echo $ac_n "(cached) $ac_c" 1>&6
3855
cat > conftest.$ac_ext <<EOF
3856
#line 3857 "configure"
3857
#include "confdefs.h"
20311
echo "$as_me: failed program was:" >&5
20312
sed 's/^/| /' conftest.$ac_ext >&5
20315
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20318
if test -n "$ac_declaration"; then
20319
echo '#ifdef __cplusplus' >>confdefs.h
20320
echo $ac_declaration >>confdefs.h
20321
echo '#endif' >>confdefs.h
20325
echo "$as_me: failed program was:" >&5
20326
sed 's/^/| /' conftest.$ac_ext >&5
20329
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20331
ac_cpp='$CPP $CPPFLAGS'
20332
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20333
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20334
ac_compiler_gnu=$ac_cv_c_compiler_gnu
20336
depcc="$CC" am_compiler_list=
20338
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20339
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
20340
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
20341
echo $ECHO_N "(cached) $ECHO_C" >&6
20343
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20344
# We make a subdir and do the tests there. Otherwise we can end up
20345
# making bogus files that we don't know about and never remove. For
20346
# instance it was reported that on HP-UX the gcc test will end up
20347
# making a dummy file named `D' -- because `-MD' means `put the output
20350
# Copy depcomp to subdir because otherwise we won't find it if we're
20351
# using a relative directory.
20352
cp "$am_depcomp" conftest.dir
20354
# We will build objects and dependencies in a subdirectory because
20355
# it helps to detect inapplicable dependency modes. For instance
20356
# both Tru64's cc and ICC support -MD to output dependencies as a
20357
# side effect of compilation, but ICC will put the dependencies in
20358
# the current directory while Tru64 will put them in the object
20362
am_cv_CC_dependencies_compiler_type=none
20363
if test "$am_compiler_list" = ""; then
20364
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20366
for depmode in $am_compiler_list; do
20367
# Setup a source with many dependencies, because some compilers
20368
# like to wrap large dependency lists on column 80 (with \), and
20369
# we should not choose a depcomp mode which is confused by this.
20371
# We need to recreate these files for each test, as the compiler may
20372
# overwrite some of them when testing with obscure command lines.
20373
# This happens at least with the AIX C compiler.
20375
for i in 1 2 3 4 5 6; do
20376
echo '#include "conftst'$i'.h"' >> sub/conftest.c
20377
: > sub/conftst$i.h
20379
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20383
# after this tag, mechanisms are not by side-effect, so they'll
20384
# only be used when explicitly requested
20385
if test "x$enable_dependency_tracking" = xyes; then
20393
# We check with `-c' and `-o' for the sake of the "dashmstdout"
20394
# mode. It turns out that the SunPro C++ compiler does not properly
20395
# handle `-M -o', and we need to detect this.
20396
if depmode=$depmode \
20397
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
20398
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20399
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20400
>/dev/null 2>conftest.err &&
20401
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20402
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20403
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20404
# icc doesn't choke on unknown options, it will just issue warnings
20405
# (even with -Werror). So we grep stderr for any message
20406
# that says an option was ignored.
20407
if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
20408
am_cv_CC_dependencies_compiler_type=$depmode
20415
rm -rf conftest.dir
20417
am_cv_CC_dependencies_compiler_type=none
20421
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20422
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
20423
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20428
test "x$enable_dependency_tracking" != xno \
20429
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20430
am__fastdepCC_TRUE=
20431
am__fastdepCC_FALSE='#'
20433
am__fastdepCC_TRUE='#'
20434
am__fastdepCC_FALSE=
20438
# Find a good install program. We prefer a C program (faster),
20439
# so one script is as good as another. But avoid the broken or
20440
# incompatible versions:
20441
# SysV /etc/install, /usr/sbin/install
20442
# SunOS /usr/etc/install
20443
# IRIX /sbin/install
20445
# AmigaOS /C/install, which installs bootblocks on floppy discs
20446
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
20447
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
20448
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
20449
# OS/2's system install, which has a completely different semantic
20450
# ./install, which can be erroneously created by make from ./install.sh.
20451
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
20452
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
20453
if test -z "$INSTALL"; then
20454
if test "${ac_cv_path_install+set}" = set; then
20455
echo $ECHO_N "(cached) $ECHO_C" >&6
20457
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20458
for as_dir in $PATH
20461
test -z "$as_dir" && as_dir=.
20462
# Account for people who put trailing slashes in PATH elements.
20464
./ | .// | /cC/* | \
20465
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
20466
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
20469
# OSF1 and SCO ODT 3.0 have their own names for install.
20470
# Don't use installbsd from OSF since it installs stuff as root
20472
for ac_prog in ginstall scoinst install; do
20473
for ac_exec_ext in '' $ac_executable_extensions; do
20474
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
20475
if test $ac_prog = install &&
20476
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
20477
# AIX install. It has an incompatible calling convention.
20479
elif test $ac_prog = install &&
20480
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
20481
# program-specific install script used by HP pwplus--don't use.
20484
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
20496
if test "${ac_cv_path_install+set}" = set; then
20497
INSTALL=$ac_cv_path_install
20499
# As a last resort, use the slow shell script. We don't cache a
20500
# path for INSTALL within a source directory, because that will
20501
# break other packages using the cache if that directory is
20502
# removed, or if the path is relative.
20503
INSTALL=$ac_install_sh
20506
echo "$as_me:$LINENO: result: $INSTALL" >&5
20507
echo "${ECHO_T}$INSTALL" >&6
20509
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
20510
# It thinks the first close brace ends the variable substitution.
20511
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
20513
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
20515
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
20517
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
20518
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
20519
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
20520
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
20521
echo $ECHO_N "(cached) $ECHO_C" >&6
20523
cat >conftest.make <<\_ACEOF
20525
@echo 'ac_maketemp="$(MAKE)"'
20527
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20528
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
20529
if test -n "$ac_maketemp"; then
20530
eval ac_cv_prog_make_${ac_make}_set=yes
20532
eval ac_cv_prog_make_${ac_make}_set=no
20534
rm -f conftest.make
20536
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
20537
echo "$as_me:$LINENO: result: yes" >&5
20538
echo "${ECHO_T}yes" >&6
20541
echo "$as_me:$LINENO: result: no" >&5
20542
echo "${ECHO_T}no" >&6
20543
SET_MAKE="MAKE=${MAKE-make}"
20547
ACLOCAL_AMFLAGS="$ACLOCAL_FLAGS"
20550
GETTEXT_PACKAGE=gedit-2.6
20553
cat >>confdefs.h <<_ACEOF
20554
#define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
20557
ALL_LINGUAS="af am ar az be bg bn bs ca cs cy da de el en_CA en_GB es et eu fa fi fr ga gl gu he hi hr hu id is it ja kn ko lt lv mi mk ml mn mr ms nb ne nl nn no or pa pl pt pt_BR ro ru sk sl sq sr sr@Latn sv ta th tk tr uk vi wa zh_CN zh_TW"
20560
for ac_header in locale.h
20562
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20563
if eval "test \"\${$as_ac_Header+set}\" = set"; then
20564
echo "$as_me:$LINENO: checking for $ac_header" >&5
20565
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20566
if eval "test \"\${$as_ac_Header+set}\" = set"; then
20567
echo $ECHO_N "(cached) $ECHO_C" >&6
20569
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20570
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20572
# Is the header compilable?
20573
echo "$as_me:$LINENO: checking $ac_header usability" >&5
20574
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20575
cat >conftest.$ac_ext <<_ACEOF
20578
cat confdefs.h >>conftest.$ac_ext
20579
cat >>conftest.$ac_ext <<_ACEOF
20580
/* end confdefs.h. */
20581
$ac_includes_default
20582
#include <$ac_header>
20584
rm -f conftest.$ac_objext
20585
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20586
(eval $ac_compile) 2>conftest.er1
20588
grep -v '^ *+' conftest.er1 >conftest.err
20590
cat conftest.err >&5
20591
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20592
(exit $ac_status); } &&
20593
{ ac_try='test -z "$ac_c_werror_flag"
20594
|| test ! -s conftest.err'
20595
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20596
(eval $ac_try) 2>&5
20598
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20599
(exit $ac_status); }; } &&
20600
{ ac_try='test -s conftest.$ac_objext'
20601
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20602
(eval $ac_try) 2>&5
20604
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20605
(exit $ac_status); }; }; then
20606
ac_header_compiler=yes
20608
echo "$as_me: failed program was:" >&5
20609
sed 's/^/| /' conftest.$ac_ext >&5
20611
ac_header_compiler=no
20613
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20614
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20615
echo "${ECHO_T}$ac_header_compiler" >&6
20617
# Is the header present?
20618
echo "$as_me:$LINENO: checking $ac_header presence" >&5
20619
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20620
cat >conftest.$ac_ext <<_ACEOF
20623
cat confdefs.h >>conftest.$ac_ext
20624
cat >>conftest.$ac_ext <<_ACEOF
20625
/* end confdefs.h. */
20626
#include <$ac_header>
20628
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20629
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20631
grep -v '^ *+' conftest.er1 >conftest.err
20633
cat conftest.err >&5
20634
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20635
(exit $ac_status); } >/dev/null; then
20636
if test -s conftest.err; then
20637
ac_cpp_err=$ac_c_preproc_warn_flag
20638
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20645
if test -z "$ac_cpp_err"; then
20646
ac_header_preproc=yes
20648
echo "$as_me: failed program was:" >&5
20649
sed 's/^/| /' conftest.$ac_ext >&5
20651
ac_header_preproc=no
20653
rm -f conftest.err conftest.$ac_ext
20654
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20655
echo "${ECHO_T}$ac_header_preproc" >&6
20657
# So? What about this header?
20658
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20660
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20661
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20662
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20663
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20664
ac_header_preproc=yes
20667
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20668
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20669
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20670
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20671
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20672
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20673
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20674
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20675
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20676
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20677
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20678
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20681
## -------------------------------------------------------------------- ##
20682
## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=gedit ##
20683
## -------------------------------------------------------------------- ##
20686
sed "s/^/$as_me: WARNING: /" >&2
20689
echo "$as_me:$LINENO: checking for $ac_header" >&5
20690
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20691
if eval "test \"\${$as_ac_Header+set}\" = set"; then
20692
echo $ECHO_N "(cached) $ECHO_C" >&6
20694
eval "$as_ac_Header=\$ac_header_preproc"
20696
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20697
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20700
if test `eval echo '${'$as_ac_Header'}'` = yes; then
20701
cat >>confdefs.h <<_ACEOF
20702
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20709
if test $ac_cv_header_locale_h = yes; then
20710
echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
20711
echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
20712
if test "${am_cv_val_LC_MESSAGES+set}" = set; then
20713
echo $ECHO_N "(cached) $ECHO_C" >&6
20715
cat >conftest.$ac_ext <<_ACEOF
20718
cat confdefs.h >>conftest.$ac_ext
20719
cat >>conftest.$ac_ext <<_ACEOF
20720
/* end confdefs.h. */
3858
20721
#include <locale.h>
3860
20725
return LC_MESSAGES
3863
if { (eval echo configure:3864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20730
rm -f conftest.$ac_objext conftest$ac_exeext
20731
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20732
(eval $ac_link) 2>conftest.er1
20734
grep -v '^ *+' conftest.er1 >conftest.err
20736
cat conftest.err >&5
20737
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20738
(exit $ac_status); } &&
20739
{ ac_try='test -z "$ac_c_werror_flag"
20740
|| test ! -s conftest.err'
20741
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20742
(eval $ac_try) 2>&5
20744
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20745
(exit $ac_status); }; } &&
20746
{ ac_try='test -s conftest$ac_exeext'
20747
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20748
(eval $ac_try) 2>&5
20750
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20751
(exit $ac_status); }; }; then
3865
20752
am_cv_val_LC_MESSAGES=yes
3867
echo "configure: failed program was:" >&5
3868
cat conftest.$ac_ext >&5
3870
am_cv_val_LC_MESSAGES=no
20754
echo "$as_me: failed program was:" >&5
20755
sed 's/^/| /' conftest.$ac_ext >&5
3875
echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
20757
am_cv_val_LC_MESSAGES=no
20759
rm -f conftest.err conftest.$ac_objext \
20760
conftest$ac_exeext conftest.$ac_ext
20762
echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
20763
echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
3876
20764
if test $am_cv_val_LC_MESSAGES = yes; then
3877
cat >> confdefs.h <<\EOF
20766
cat >>confdefs.h <<\_ACEOF
3878
20767
#define HAVE_LC_MESSAGES 1
3883
echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
3884
echo "configure:3885: checking whether NLS is requested" >&5
3885
# Check whether --enable-nls or --disable-nls was given.
3886
if test "${enable_nls+set}" = set; then
3887
enableval="$enable_nls"
3893
echo "$ac_t""$USE_NLS" 1>&6
3896
USE_INCLUDED_LIBINTL=no
3898
if test "$USE_NLS" = "yes"; then
3899
# AC_DEFINE(ENABLE_NLS)
3900
# AC_MSG_CHECKING([whether included gettext is requested])
3901
# AC_ARG_WITH(included-gettext,
3902
# [ --with-included-gettext use the GNU gettext library included here],
3903
# nls_cv_force_use_gnu_gettext=$withval,
3904
# nls_cv_force_use_gnu_gettext=no)
3905
# AC_MSG_RESULT($nls_cv_force_use_gnu_gettext)
3906
nls_cv_force_use_gnu_gettext="no"
3908
nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
3909
if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3911
nls_cv_header_libgt=
3914
ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3915
echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3916
echo "configure:3917: checking for libintl.h" >&5
3917
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3918
echo $ac_n "(cached) $ac_c" 1>&6
3920
cat > conftest.$ac_ext <<EOF
3921
#line 3922 "configure"
3922
#include "confdefs.h"
3923
#include <libintl.h>
3925
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3926
{ (eval echo configure:3927: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3927
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3928
if test -z "$ac_err"; then
3930
eval "ac_cv_header_$ac_safe=yes"
3933
echo "configure: failed program was:" >&5
3934
cat conftest.$ac_ext >&5
3936
eval "ac_cv_header_$ac_safe=no"
3940
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3941
echo "$ac_t""yes" 1>&6
3942
echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
3943
echo "configure:3944: checking for gettext in libc" >&5
3944
if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
3945
echo $ac_n "(cached) $ac_c" 1>&6
3947
cat > conftest.$ac_ext <<EOF
3948
#line 3949 "configure"
3949
#include "confdefs.h"
3950
#include <libintl.h>
3952
return (int) gettext ("")
3955
if { (eval echo configure:3956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3957
gt_cv_func_gettext_libc=yes
3959
echo "configure: failed program was:" >&5
3960
cat conftest.$ac_ext >&5
3962
gt_cv_func_gettext_libc=no
3967
echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
3969
if test "$gt_cv_func_gettext_libc" != "yes"; then
3970
echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
3971
echo "configure:3972: checking for bindtextdomain in -lintl" >&5
3972
ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3973
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3974
echo $ac_n "(cached) $ac_c" 1>&6
3976
ac_save_LIBS="$LIBS"
3978
cat > conftest.$ac_ext <<EOF
3979
#line 3980 "configure"
3980
#include "confdefs.h"
3981
/* Override any gcc2 internal prototype to avoid an error. */
3982
/* We use char because int might match the return type of a gcc2
3983
builtin and then its argument prototype would still apply. */
3984
char bindtextdomain();
3990
if { (eval echo configure:3991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3992
eval "ac_cv_lib_$ac_lib_var=yes"
3994
echo "configure: failed program was:" >&5
3995
cat conftest.$ac_ext >&5
3997
eval "ac_cv_lib_$ac_lib_var=no"
4000
LIBS="$ac_save_LIBS"
4003
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4004
echo "$ac_t""yes" 1>&6
4005
echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
4006
echo "configure:4007: checking for gettext in libintl" >&5
4007
if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
4008
echo $ac_n "(cached) $ac_c" 1>&6
4010
echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
4011
echo "configure:4012: checking for gettext in -lintl" >&5
4012
ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
4013
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4014
echo $ac_n "(cached) $ac_c" 1>&6
4016
ac_save_LIBS="$LIBS"
4018
cat > conftest.$ac_ext <<EOF
4019
#line 4020 "configure"
4020
#include "confdefs.h"
4021
/* Override any gcc2 internal prototype to avoid an error. */
4022
/* We use char because int might match the return type of a gcc2
4023
builtin and then its argument prototype would still apply. */
4030
if { (eval echo configure:4031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4032
eval "ac_cv_lib_$ac_lib_var=yes"
4034
echo "configure: failed program was:" >&5
4035
cat conftest.$ac_ext >&5
4037
eval "ac_cv_lib_$ac_lib_var=no"
4040
LIBS="$ac_save_LIBS"
4043
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4044
echo "$ac_t""yes" 1>&6
4045
gt_cv_func_gettext_libintl=yes
4047
echo "$ac_t""no" 1>&6
4048
gt_cv_func_gettext_libintl=no
4053
echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
4055
echo "$ac_t""no" 1>&6
4060
if test "$gt_cv_func_gettext_libc" = "yes" \
4061
|| test "$gt_cv_func_gettext_libintl" = "yes"; then
4062
cat >> confdefs.h <<\EOF
20775
gt_cv_have_gettext=no
20781
if test "${ac_cv_header_libintl_h+set}" = set; then
20782
echo "$as_me:$LINENO: checking for libintl.h" >&5
20783
echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
20784
if test "${ac_cv_header_libintl_h+set}" = set; then
20785
echo $ECHO_N "(cached) $ECHO_C" >&6
20787
echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
20788
echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
20790
# Is the header compilable?
20791
echo "$as_me:$LINENO: checking libintl.h usability" >&5
20792
echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
20793
cat >conftest.$ac_ext <<_ACEOF
20796
cat confdefs.h >>conftest.$ac_ext
20797
cat >>conftest.$ac_ext <<_ACEOF
20798
/* end confdefs.h. */
20799
$ac_includes_default
20800
#include <libintl.h>
20802
rm -f conftest.$ac_objext
20803
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20804
(eval $ac_compile) 2>conftest.er1
20806
grep -v '^ *+' conftest.er1 >conftest.err
20808
cat conftest.err >&5
20809
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20810
(exit $ac_status); } &&
20811
{ ac_try='test -z "$ac_c_werror_flag"
20812
|| test ! -s conftest.err'
20813
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20814
(eval $ac_try) 2>&5
20816
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20817
(exit $ac_status); }; } &&
20818
{ ac_try='test -s conftest.$ac_objext'
20819
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20820
(eval $ac_try) 2>&5
20822
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20823
(exit $ac_status); }; }; then
20824
ac_header_compiler=yes
20826
echo "$as_me: failed program was:" >&5
20827
sed 's/^/| /' conftest.$ac_ext >&5
20829
ac_header_compiler=no
20831
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20832
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20833
echo "${ECHO_T}$ac_header_compiler" >&6
20835
# Is the header present?
20836
echo "$as_me:$LINENO: checking libintl.h presence" >&5
20837
echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
20838
cat >conftest.$ac_ext <<_ACEOF
20841
cat confdefs.h >>conftest.$ac_ext
20842
cat >>conftest.$ac_ext <<_ACEOF
20843
/* end confdefs.h. */
20844
#include <libintl.h>
20846
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20847
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20849
grep -v '^ *+' conftest.er1 >conftest.err
20851
cat conftest.err >&5
20852
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20853
(exit $ac_status); } >/dev/null; then
20854
if test -s conftest.err; then
20855
ac_cpp_err=$ac_c_preproc_warn_flag
20856
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20863
if test -z "$ac_cpp_err"; then
20864
ac_header_preproc=yes
20866
echo "$as_me: failed program was:" >&5
20867
sed 's/^/| /' conftest.$ac_ext >&5
20869
ac_header_preproc=no
20871
rm -f conftest.err conftest.$ac_ext
20872
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20873
echo "${ECHO_T}$ac_header_preproc" >&6
20875
# So? What about this header?
20876
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20878
{ echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
20879
echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20880
{ echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
20881
echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
20882
ac_header_preproc=yes
20885
{ echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
20886
echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
20887
{ echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
20888
echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
20889
{ echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
20890
echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
20891
{ echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
20892
echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
20893
{ echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
20894
echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
20895
{ echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
20896
echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
20899
## -------------------------------------------------------------------- ##
20900
## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=gedit ##
20901
## -------------------------------------------------------------------- ##
20904
sed "s/^/$as_me: WARNING: /" >&2
20907
echo "$as_me:$LINENO: checking for libintl.h" >&5
20908
echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
20909
if test "${ac_cv_header_libintl_h+set}" = set; then
20910
echo $ECHO_N "(cached) $ECHO_C" >&6
20912
ac_cv_header_libintl_h=$ac_header_preproc
20914
echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
20915
echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
20918
if test $ac_cv_header_libintl_h = yes; then
20919
gt_cv_func_dgettext_libintl="no"
20920
libintl_extra_libs=""
20923
# First check in libc
20925
echo "$as_me:$LINENO: checking for ngettext in libc" >&5
20926
echo $ECHO_N "checking for ngettext in libc... $ECHO_C" >&6
20927
if test "${gt_cv_func_ngettext_libc+set}" = set; then
20928
echo $ECHO_N "(cached) $ECHO_C" >&6
20930
cat >conftest.$ac_ext <<_ACEOF
20933
cat confdefs.h >>conftest.$ac_ext
20934
cat >>conftest.$ac_ext <<_ACEOF
20935
/* end confdefs.h. */
20937
#include <libintl.h>
20942
return (int) ngettext ("","", 1)
20947
rm -f conftest.$ac_objext conftest$ac_exeext
20948
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20949
(eval $ac_link) 2>conftest.er1
20951
grep -v '^ *+' conftest.er1 >conftest.err
20953
cat conftest.err >&5
20954
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20955
(exit $ac_status); } &&
20956
{ ac_try='test -z "$ac_c_werror_flag"
20957
|| test ! -s conftest.err'
20958
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20959
(eval $ac_try) 2>&5
20961
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20962
(exit $ac_status); }; } &&
20963
{ ac_try='test -s conftest$ac_exeext'
20964
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20965
(eval $ac_try) 2>&5
20967
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20968
(exit $ac_status); }; }; then
20969
gt_cv_func_ngettext_libc=yes
20971
echo "$as_me: failed program was:" >&5
20972
sed 's/^/| /' conftest.$ac_ext >&5
20974
gt_cv_func_ngettext_libc=no
20976
rm -f conftest.err conftest.$ac_objext \
20977
conftest$ac_exeext conftest.$ac_ext
20980
echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
20981
echo "${ECHO_T}$gt_cv_func_ngettext_libc" >&6
20983
if test "$gt_cv_func_ngettext_libc" = "yes" ; then
20984
echo "$as_me:$LINENO: checking for dgettext in libc" >&5
20985
echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6
20986
if test "${gt_cv_func_dgettext_libc+set}" = set; then
20987
echo $ECHO_N "(cached) $ECHO_C" >&6
20989
cat >conftest.$ac_ext <<_ACEOF
20992
cat confdefs.h >>conftest.$ac_ext
20993
cat >>conftest.$ac_ext <<_ACEOF
20994
/* end confdefs.h. */
20996
#include <libintl.h>
21001
return (int) dgettext ("","")
21006
rm -f conftest.$ac_objext conftest$ac_exeext
21007
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21008
(eval $ac_link) 2>conftest.er1
21010
grep -v '^ *+' conftest.er1 >conftest.err
21012
cat conftest.err >&5
21013
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21014
(exit $ac_status); } &&
21015
{ ac_try='test -z "$ac_c_werror_flag"
21016
|| test ! -s conftest.err'
21017
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21018
(eval $ac_try) 2>&5
21020
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21021
(exit $ac_status); }; } &&
21022
{ ac_try='test -s conftest$ac_exeext'
21023
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21024
(eval $ac_try) 2>&5
21026
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21027
(exit $ac_status); }; }; then
21028
gt_cv_func_dgettext_libc=yes
21030
echo "$as_me: failed program was:" >&5
21031
sed 's/^/| /' conftest.$ac_ext >&5
21033
gt_cv_func_dgettext_libc=no
21035
rm -f conftest.err conftest.$ac_objext \
21036
conftest$ac_exeext conftest.$ac_ext
21039
echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
21040
echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6
21043
if test "$gt_cv_func_ngettext_libc" = "yes" ; then
21045
for ac_func in bind_textdomain_codeset
21047
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21048
echo "$as_me:$LINENO: checking for $ac_func" >&5
21049
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21050
if eval "test \"\${$as_ac_var+set}\" = set"; then
21051
echo $ECHO_N "(cached) $ECHO_C" >&6
21053
cat >conftest.$ac_ext <<_ACEOF
21056
cat confdefs.h >>conftest.$ac_ext
21057
cat >>conftest.$ac_ext <<_ACEOF
21058
/* end confdefs.h. */
21059
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21060
For example, HP-UX 11i <limits.h> declares gettimeofday. */
21061
#define $ac_func innocuous_$ac_func
21063
/* System header to define __stub macros and hopefully few prototypes,
21064
which can conflict with char $ac_func (); below.
21065
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21066
<limits.h> exists even on freestanding compilers. */
21069
# include <limits.h>
21071
# include <assert.h>
21076
/* Override any gcc2 internal prototype to avoid an error. */
21081
/* We use char because int might match the return type of a gcc2
21082
builtin and then its argument prototype would still apply. */
21084
/* The GNU C library defines this for functions which it implements
21085
to always fail with ENOSYS. Some functions are actually named
21086
something starting with __ and the normal name is an alias. */
21087
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21090
char (*f) () = $ac_func;
21099
return f != $ac_func;
21104
rm -f conftest.$ac_objext conftest$ac_exeext
21105
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21106
(eval $ac_link) 2>conftest.er1
21108
grep -v '^ *+' conftest.er1 >conftest.err
21110
cat conftest.err >&5
21111
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21112
(exit $ac_status); } &&
21113
{ ac_try='test -z "$ac_c_werror_flag"
21114
|| test ! -s conftest.err'
21115
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21116
(eval $ac_try) 2>&5
21118
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21119
(exit $ac_status); }; } &&
21120
{ ac_try='test -s conftest$ac_exeext'
21121
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21122
(eval $ac_try) 2>&5
21124
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21125
(exit $ac_status); }; }; then
21126
eval "$as_ac_var=yes"
21128
echo "$as_me: failed program was:" >&5
21129
sed 's/^/| /' conftest.$ac_ext >&5
21131
eval "$as_ac_var=no"
21133
rm -f conftest.err conftest.$ac_objext \
21134
conftest$ac_exeext conftest.$ac_ext
21136
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21137
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21138
if test `eval echo '${'$as_ac_var'}'` = yes; then
21139
cat >>confdefs.h <<_ACEOF
21140
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21149
# If we don't have everything we want, check in libintl
21151
if test "$gt_cv_func_dgettext_libc" != "yes" \
21152
|| test "$gt_cv_func_ngettext_libc" != "yes" \
21153
|| test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
21155
echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
21156
echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
21157
if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
21158
echo $ECHO_N "(cached) $ECHO_C" >&6
21160
ac_check_lib_save_LIBS=$LIBS
21161
LIBS="-lintl $LIBS"
21162
cat >conftest.$ac_ext <<_ACEOF
21165
cat confdefs.h >>conftest.$ac_ext
21166
cat >>conftest.$ac_ext <<_ACEOF
21167
/* end confdefs.h. */
21169
/* Override any gcc2 internal prototype to avoid an error. */
21173
/* We use char because int might match the return type of a gcc2
21174
builtin and then its argument prototype would still apply. */
21175
char bindtextdomain ();
21184
rm -f conftest.$ac_objext conftest$ac_exeext
21185
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21186
(eval $ac_link) 2>conftest.er1
21188
grep -v '^ *+' conftest.er1 >conftest.err
21190
cat conftest.err >&5
21191
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21192
(exit $ac_status); } &&
21193
{ ac_try='test -z "$ac_c_werror_flag"
21194
|| test ! -s conftest.err'
21195
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21196
(eval $ac_try) 2>&5
21198
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21199
(exit $ac_status); }; } &&
21200
{ ac_try='test -s conftest$ac_exeext'
21201
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21202
(eval $ac_try) 2>&5
21204
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21205
(exit $ac_status); }; }; then
21206
ac_cv_lib_intl_bindtextdomain=yes
21208
echo "$as_me: failed program was:" >&5
21209
sed 's/^/| /' conftest.$ac_ext >&5
21211
ac_cv_lib_intl_bindtextdomain=no
21213
rm -f conftest.err conftest.$ac_objext \
21214
conftest$ac_exeext conftest.$ac_ext
21215
LIBS=$ac_check_lib_save_LIBS
21217
echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
21218
echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
21219
if test $ac_cv_lib_intl_bindtextdomain = yes; then
21220
echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
21221
echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6
21222
if test "${ac_cv_lib_intl_ngettext+set}" = set; then
21223
echo $ECHO_N "(cached) $ECHO_C" >&6
21225
ac_check_lib_save_LIBS=$LIBS
21226
LIBS="-lintl $LIBS"
21227
cat >conftest.$ac_ext <<_ACEOF
21230
cat confdefs.h >>conftest.$ac_ext
21231
cat >>conftest.$ac_ext <<_ACEOF
21232
/* end confdefs.h. */
21234
/* Override any gcc2 internal prototype to avoid an error. */
21238
/* We use char because int might match the return type of a gcc2
21239
builtin and then its argument prototype would still apply. */
21249
rm -f conftest.$ac_objext conftest$ac_exeext
21250
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21251
(eval $ac_link) 2>conftest.er1
21253
grep -v '^ *+' conftest.er1 >conftest.err
21255
cat conftest.err >&5
21256
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21257
(exit $ac_status); } &&
21258
{ ac_try='test -z "$ac_c_werror_flag"
21259
|| test ! -s conftest.err'
21260
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21261
(eval $ac_try) 2>&5
21263
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21264
(exit $ac_status); }; } &&
21265
{ ac_try='test -s conftest$ac_exeext'
21266
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21267
(eval $ac_try) 2>&5
21269
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21270
(exit $ac_status); }; }; then
21271
ac_cv_lib_intl_ngettext=yes
21273
echo "$as_me: failed program was:" >&5
21274
sed 's/^/| /' conftest.$ac_ext >&5
21276
ac_cv_lib_intl_ngettext=no
21278
rm -f conftest.err conftest.$ac_objext \
21279
conftest$ac_exeext conftest.$ac_ext
21280
LIBS=$ac_check_lib_save_LIBS
21282
echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
21283
echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6
21284
if test $ac_cv_lib_intl_ngettext = yes; then
21285
echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
21286
echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
21287
if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21288
echo $ECHO_N "(cached) $ECHO_C" >&6
21290
ac_check_lib_save_LIBS=$LIBS
21291
LIBS="-lintl $LIBS"
21292
cat >conftest.$ac_ext <<_ACEOF
21295
cat confdefs.h >>conftest.$ac_ext
21296
cat >>conftest.$ac_ext <<_ACEOF
21297
/* end confdefs.h. */
21299
/* Override any gcc2 internal prototype to avoid an error. */
21303
/* We use char because int might match the return type of a gcc2
21304
builtin and then its argument prototype would still apply. */
21314
rm -f conftest.$ac_objext conftest$ac_exeext
21315
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21316
(eval $ac_link) 2>conftest.er1
21318
grep -v '^ *+' conftest.er1 >conftest.err
21320
cat conftest.err >&5
21321
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21322
(exit $ac_status); } &&
21323
{ ac_try='test -z "$ac_c_werror_flag"
21324
|| test ! -s conftest.err'
21325
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21326
(eval $ac_try) 2>&5
21328
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21329
(exit $ac_status); }; } &&
21330
{ ac_try='test -s conftest$ac_exeext'
21331
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21332
(eval $ac_try) 2>&5
21334
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21335
(exit $ac_status); }; }; then
21336
ac_cv_lib_intl_dgettext=yes
21338
echo "$as_me: failed program was:" >&5
21339
sed 's/^/| /' conftest.$ac_ext >&5
21341
ac_cv_lib_intl_dgettext=no
21343
rm -f conftest.err conftest.$ac_objext \
21344
conftest$ac_exeext conftest.$ac_ext
21345
LIBS=$ac_check_lib_save_LIBS
21347
echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
21348
echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
21349
if test $ac_cv_lib_intl_dgettext = yes; then
21350
gt_cv_func_dgettext_libintl=yes
21358
if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
21359
echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
21360
echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6
21361
echo "$as_me:$LINENO: result: " >&5
21362
echo "${ECHO_T}" >&6
21363
echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
21364
echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6
21365
if test "${ac_cv_lib_intl_ngettext+set}" = set; then
21366
echo $ECHO_N "(cached) $ECHO_C" >&6
21368
ac_check_lib_save_LIBS=$LIBS
21369
LIBS="-lintl -liconv $LIBS"
21370
cat >conftest.$ac_ext <<_ACEOF
21373
cat confdefs.h >>conftest.$ac_ext
21374
cat >>conftest.$ac_ext <<_ACEOF
21375
/* end confdefs.h. */
21377
/* Override any gcc2 internal prototype to avoid an error. */
21381
/* We use char because int might match the return type of a gcc2
21382
builtin and then its argument prototype would still apply. */
21392
rm -f conftest.$ac_objext conftest$ac_exeext
21393
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21394
(eval $ac_link) 2>conftest.er1
21396
grep -v '^ *+' conftest.er1 >conftest.err
21398
cat conftest.err >&5
21399
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21400
(exit $ac_status); } &&
21401
{ ac_try='test -z "$ac_c_werror_flag"
21402
|| test ! -s conftest.err'
21403
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21404
(eval $ac_try) 2>&5
21406
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21407
(exit $ac_status); }; } &&
21408
{ ac_try='test -s conftest$ac_exeext'
21409
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21410
(eval $ac_try) 2>&5
21412
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21413
(exit $ac_status); }; }; then
21414
ac_cv_lib_intl_ngettext=yes
21416
echo "$as_me: failed program was:" >&5
21417
sed 's/^/| /' conftest.$ac_ext >&5
21419
ac_cv_lib_intl_ngettext=no
21421
rm -f conftest.err conftest.$ac_objext \
21422
conftest$ac_exeext conftest.$ac_ext
21423
LIBS=$ac_check_lib_save_LIBS
21425
echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
21426
echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6
21427
if test $ac_cv_lib_intl_ngettext = yes; then
21428
echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
21429
echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6
21430
if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
21431
echo $ECHO_N "(cached) $ECHO_C" >&6
21433
ac_check_lib_save_LIBS=$LIBS
21434
LIBS="-lintl -liconv $LIBS"
21435
cat >conftest.$ac_ext <<_ACEOF
21438
cat confdefs.h >>conftest.$ac_ext
21439
cat >>conftest.$ac_ext <<_ACEOF
21440
/* end confdefs.h. */
21442
/* Override any gcc2 internal prototype to avoid an error. */
21446
/* We use char because int might match the return type of a gcc2
21447
builtin and then its argument prototype would still apply. */
21457
rm -f conftest.$ac_objext conftest$ac_exeext
21458
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21459
(eval $ac_link) 2>conftest.er1
21461
grep -v '^ *+' conftest.er1 >conftest.err
21463
cat conftest.err >&5
21464
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21465
(exit $ac_status); } &&
21466
{ ac_try='test -z "$ac_c_werror_flag"
21467
|| test ! -s conftest.err'
21468
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21469
(eval $ac_try) 2>&5
21471
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21472
(exit $ac_status); }; } &&
21473
{ ac_try='test -s conftest$ac_exeext'
21474
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21475
(eval $ac_try) 2>&5
21477
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21478
(exit $ac_status); }; }; then
21479
ac_cv_lib_intl_dcgettext=yes
21481
echo "$as_me: failed program was:" >&5
21482
sed 's/^/| /' conftest.$ac_ext >&5
21484
ac_cv_lib_intl_dcgettext=no
21486
rm -f conftest.err conftest.$ac_objext \
21487
conftest$ac_exeext conftest.$ac_ext
21488
LIBS=$ac_check_lib_save_LIBS
21490
echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
21491
echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6
21492
if test $ac_cv_lib_intl_dcgettext = yes; then
21493
gt_cv_func_dgettext_libintl=yes
21494
libintl_extra_libs=-liconv
21506
# If we found libintl, then check in it for bind_textdomain_codeset();
21507
# we'll prefer libc if neither have bind_textdomain_codeset(),
21508
# and both have dgettext and ngettext
21510
if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
21511
glib_save_LIBS="$LIBS"
21512
LIBS="$LIBS -lintl $libintl_extra_libs"
21513
unset ac_cv_func_bind_textdomain_codeset
21515
for ac_func in bind_textdomain_codeset
21517
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21518
echo "$as_me:$LINENO: checking for $ac_func" >&5
21519
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21520
if eval "test \"\${$as_ac_var+set}\" = set"; then
21521
echo $ECHO_N "(cached) $ECHO_C" >&6
21523
cat >conftest.$ac_ext <<_ACEOF
21526
cat confdefs.h >>conftest.$ac_ext
21527
cat >>conftest.$ac_ext <<_ACEOF
21528
/* end confdefs.h. */
21529
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21530
For example, HP-UX 11i <limits.h> declares gettimeofday. */
21531
#define $ac_func innocuous_$ac_func
21533
/* System header to define __stub macros and hopefully few prototypes,
21534
which can conflict with char $ac_func (); below.
21535
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21536
<limits.h> exists even on freestanding compilers. */
21539
# include <limits.h>
21541
# include <assert.h>
21546
/* Override any gcc2 internal prototype to avoid an error. */
21551
/* We use char because int might match the return type of a gcc2
21552
builtin and then its argument prototype would still apply. */
21554
/* The GNU C library defines this for functions which it implements
21555
to always fail with ENOSYS. Some functions are actually named
21556
something starting with __ and the normal name is an alias. */
21557
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21560
char (*f) () = $ac_func;
21569
return f != $ac_func;
21574
rm -f conftest.$ac_objext conftest$ac_exeext
21575
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21576
(eval $ac_link) 2>conftest.er1
21578
grep -v '^ *+' conftest.er1 >conftest.err
21580
cat conftest.err >&5
21581
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21582
(exit $ac_status); } &&
21583
{ ac_try='test -z "$ac_c_werror_flag"
21584
|| test ! -s conftest.err'
21585
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21586
(eval $ac_try) 2>&5
21588
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21589
(exit $ac_status); }; } &&
21590
{ ac_try='test -s conftest$ac_exeext'
21591
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21592
(eval $ac_try) 2>&5
21594
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21595
(exit $ac_status); }; }; then
21596
eval "$as_ac_var=yes"
21598
echo "$as_me: failed program was:" >&5
21599
sed 's/^/| /' conftest.$ac_ext >&5
21601
eval "$as_ac_var=no"
21603
rm -f conftest.err conftest.$ac_objext \
21604
conftest$ac_exeext conftest.$ac_ext
21606
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21607
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21608
if test `eval echo '${'$as_ac_var'}'` = yes; then
21609
cat >>confdefs.h <<_ACEOF
21610
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21616
LIBS="$glib_save_LIBS"
21618
if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
21619
gt_cv_func_dgettext_libc=no
21621
if test "$gt_cv_func_dgettext_libc" = "yes" \
21622
&& test "$gt_cv_func_ngettext_libc" = "yes"; then
21623
gt_cv_func_dgettext_libintl=no
21629
if test "$gt_cv_func_dgettext_libc" = "yes" \
21630
|| test "$gt_cv_func_dgettext_libintl" = "yes"; then
21631
gt_cv_have_gettext=yes
21634
if test "$gt_cv_func_dgettext_libintl" = "yes"; then
21635
INTLLIBS="-lintl $libintl_extra_libs"
21638
if test "$gt_cv_have_gettext" = "yes"; then
21640
cat >>confdefs.h <<\_ACEOF
4063
21641
#define HAVE_GETTEXT 1
4066
# Extract the first word of "msgfmt", so it can be a program name with args.
21644
# Extract the first word of "msgfmt", so it can be a program name with args.
4067
21645
set dummy msgfmt; ac_word=$2
4068
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4069
echo "configure:4070: checking for $ac_word" >&5
4070
if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
4071
echo $ac_n "(cached) $ac_c" 1>&6
21646
echo "$as_me:$LINENO: checking for $ac_word" >&5
21647
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21648
if test "${ac_cv_path_MSGFMT+set}" = set; then
21649
echo $ECHO_N "(cached) $ECHO_C" >&6
4073
21651
case "$MSGFMT" in
4611
22122
rm -f po/POTFILES
4612
22123
sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
4613
22124
< $srcdir/po/POTFILES.in > po/POTFILES
4616
# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
4617
if test "${with_gtk_prefix+set}" = set; then
4618
withval="$with_gtk_prefix"
4619
gtk_config_prefix="$withval"
4621
gtk_config_prefix=""
4624
# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
4625
if test "${with_gtk_exec_prefix+set}" = set; then
4626
withval="$with_gtk_exec_prefix"
4627
gtk_config_exec_prefix="$withval"
4629
gtk_config_exec_prefix=""
4632
# Check whether --enable-gtktest or --disable-gtktest was given.
4633
if test "${enable_gtktest+set}" = set; then
4634
enableval="$enable_gtktest"
4645
gtk_config_args="$gtk_config_args gthread"
4650
if test x$gtk_config_exec_prefix != x ; then
4651
gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
4652
if test x${GTK_CONFIG+set} != xset ; then
4653
GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
4656
if test x$gtk_config_prefix != x ; then
4657
gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
4658
if test x${GTK_CONFIG+set} != xset ; then
4659
GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
4663
# Extract the first word of "gtk-config", so it can be a program name with args.
4664
set dummy gtk-config; ac_word=$2
4665
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4666
echo "configure:4667: checking for $ac_word" >&5
4667
if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
4668
echo $ac_n "(cached) $ac_c" 1>&6
4670
case "$GTK_CONFIG" in
4672
ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
4675
ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
4678
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4680
for ac_dir in $ac_dummy; do
4681
test -z "$ac_dir" && ac_dir=.
4682
if test -f $ac_dir/$ac_word; then
4683
ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
4688
test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
4692
GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
4693
if test -n "$GTK_CONFIG"; then
4694
echo "$ac_t""$GTK_CONFIG" 1>&6
4696
echo "$ac_t""no" 1>&6
4699
min_gtk_version=1.2.7
4700
echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
4701
echo "configure:4702: checking for GTK - version >= $min_gtk_version" >&5
4703
if test "$GTK_CONFIG" = "no" ; then
4706
GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
4707
GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
4708
gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
4709
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
4710
gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
4711
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
4712
gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
4713
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
4714
if test "x$enable_gtktest" = "xyes" ; then
4715
ac_save_CFLAGS="$CFLAGS"
4716
ac_save_LIBS="$LIBS"
4717
CFLAGS="$CFLAGS $GTK_CFLAGS"
4718
LIBS="$GTK_LIBS $LIBS"
4720
if test "$cross_compiling" = yes; then
4721
echo $ac_n "cross compiling; assumed OK... $ac_c"
4723
cat > conftest.$ac_ext <<EOF
4724
#line 4725 "configure"
4725
#include "confdefs.h"
4727
#include <gtk/gtk.h>
4734
int major, minor, micro;
4737
system ("touch conf.gtktest");
4739
/* HP/UX 9 (%@#!) writes to sscanf strings */
4740
tmp_version = g_strdup("$min_gtk_version");
4741
if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
4742
printf("%s, bad version string\n", "$min_gtk_version");
4746
if ((gtk_major_version != $gtk_config_major_version) ||
4747
(gtk_minor_version != $gtk_config_minor_version) ||
4748
(gtk_micro_version != $gtk_config_micro_version))
4750
printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
4751
$gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
4752
gtk_major_version, gtk_minor_version, gtk_micro_version);
4753
printf ("*** was found! If gtk-config was correct, then it is best\n");
4754
printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
4755
printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
4756
printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
4757
printf("*** required on your system.\n");
4758
printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
4759
printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
4760
printf("*** before re-running configure\n");
4762
#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
4763
else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
4764
(gtk_minor_version != GTK_MINOR_VERSION) ||
4765
(gtk_micro_version != GTK_MICRO_VERSION))
4767
printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
4768
GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
4769
printf("*** library (version %d.%d.%d)\n",
4770
gtk_major_version, gtk_minor_version, gtk_micro_version);
4772
#endif /* defined (GTK_MAJOR_VERSION) ... */
4775
if ((gtk_major_version > major) ||
4776
((gtk_major_version == major) && (gtk_minor_version > minor)) ||
4777
((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
4783
printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
4784
gtk_major_version, gtk_minor_version, gtk_micro_version);
4785
printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
4786
major, minor, micro);
4787
printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
4789
printf("*** If you have already installed a sufficiently new version, this error\n");
4790
printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
4791
printf("*** being found. The easiest way to fix this is to remove the old version\n");
4792
printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
4793
printf("*** correct copy of gtk-config. (In this case, you will have to\n");
4794
printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
4795
printf("*** so that the correct libraries are found at run-time))\n");
4802
if { (eval echo configure:4803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4806
echo "configure: failed program was:" >&5
4807
cat conftest.$ac_ext >&5
4814
CFLAGS="$ac_save_CFLAGS"
4815
LIBS="$ac_save_LIBS"
4818
if test "x$no_gtk" = x ; then
4819
echo "$ac_t""yes" 1>&6
4822
echo "$ac_t""no" 1>&6
4823
if test "$GTK_CONFIG" = "no" ; then
4824
echo "*** The gtk-config script installed by GTK could not be found"
4825
echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
4826
echo "*** your path, or set the GTK_CONFIG environment variable to the"
4827
echo "*** full path to gtk-config."
4829
if test -f conf.gtktest ; then
4832
echo "*** Could not run GTK test program, checking why..."
4833
CFLAGS="$CFLAGS $GTK_CFLAGS"
4834
LIBS="$LIBS $GTK_LIBS"
4835
cat > conftest.$ac_ext <<EOF
4836
#line 4837 "configure"
4837
#include "confdefs.h"
4839
#include <gtk/gtk.h>
4843
return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
4846
if { (eval echo configure:4847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4848
echo "*** The test program compiled, but did not run. This usually means"
4849
echo "*** that the run-time linker is not finding GTK or finding the wrong"
4850
echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
4851
echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
4852
echo "*** to the installed location Also, make sure you have run ldconfig if that"
4853
echo "*** is required on your system"
4855
echo "*** If you have an old version installed, it is best to remove it, although"
4856
echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
4858
echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
4859
echo "*** came with the system with the command"
4861
echo "*** rpm --erase --nodeps gtk gtk-devel"
4863
echo "configure: failed program was:" >&5
4864
cat conftest.$ac_ext >&5
4866
echo "*** The test program failed to compile or link. See the file config.log for the"
4867
echo "*** exact error that occured. This usually means GTK was incorrectly installed"
4868
echo "*** or that you have moved GTK since it was installed. In the latter case, you"
4869
echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
4872
CFLAGS="$ac_save_CFLAGS"
4873
LIBS="$ac_save_LIBS"
4878
{ echo "configure: error:
4879
*** GTK+ 1.2.7 or better is required. The latest version of GTK+
4880
*** is always available from ftp://ftp.gtk.org/." 1>&2; exit 1; }
4888
echo $ac_n "checking for GnomePrint libraries >= 0.25""... $ac_c" 1>&6
4889
echo "configure:4890: checking for GnomePrint libraries >= 0.25" >&5
4890
if gnome-config --libs print > /dev/null 2>&1; then
4891
vers=`gnome-config --modversion print | sed -e "s/gnome-print-//" | \
4892
awk 'BEGIN { FS = "."; } { print $1 * 1000 + $2;}'`
4893
if test "$vers" -ge 25; then
4894
echo "$ac_t""found" 1>&6
4896
{ echo "configure: error: You need at least GNOME print 0.25 for this version of gedit" 1>&2; exit 1; }
4899
{ echo "configure: error: Did not find GnomePrint installed" 1>&2; exit 1; }
4903
echo $ac_n "checking for Glade libraries >= 0.11""... $ac_c" 1>&6
4904
echo "configure:4905: checking for Glade libraries >= 0.11" >&5
4905
if gnome-config --libs libglade > /dev/null 2>&1; then
4906
vers=`gnome-config --modversion libglade | awk 'BEGIN { FS = "."; } { print $1 * 1000 + $2;}'`
4907
if test "$vers" -ge 11; then
4908
echo "$ac_t""found" 1>&6
4910
{ echo "configure: error: You need at least libglade 0.11 for this version of gedit" 1>&2; exit 1; }
4913
{ echo "configure: error: Did not find libGlade installed" 1>&2; exit 1; }
4917
echo $ac_n "checking for gnome-libs >= 1.0.55""... $ac_c" 1>&6
4918
echo "configure:4919: checking for gnome-libs >= 1.0.55" >&5
4919
if gnome-config --version > /dev/null 2>&1; then
4920
vers=`gnome-config --version | awk 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
4921
if test "$vers" -ge 55; then
4922
echo "$ac_t""found" 1>&6
4924
{ echo "configure: error: You need at least gnome-libs 1.0.55 for this version of gedit" 1>&2; exit 1; }
4927
{ echo "configure: error: Did not find gnome-libs installed" 1>&2; exit 1; }
4931
echo $ac_n "checking for gnome-vfs >= 0.1""... $ac_c" 1>&6
4932
echo "configure:4933: checking for gnome-vfs >= 0.1" >&5
4933
if gnome-config --libs vfs > /dev/null 2>&1; then
4934
vers=`gnome-config --modversion vfs | sed -e "s/gnome-vfs-//" | awk -F. '{printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
4935
if test "$vers" -ge 1000000; then
4936
echo "$ac_t""found" 1>&6
4938
{ echo "configure: error: You need at least gnome-vfs 1.0 for this version of gedit." 1>&2; exit 1; }
4941
{ echo "configure: error: Did not find gnome-vfs installed" 1>&2; exit 1; }
4944
EXTRA_GNOME_LIBS=`gnome-config --libs print libglade vfs`
4945
EXTRA_GNOME_CFLAGS=`gnome-config --cflags print libglade vfs`
4957
cat > confcache <<\EOF
22128
echo "$as_me:$LINENO: checking for aspell/pspell" >&5
22129
echo $ECHO_N "checking for aspell/pspell... $ECHO_C" >&6
22130
if pspell-config version > /dev/null 2>&1; then
22131
pspell_ver=`pspell-config version`
22132
pspell_num=`echo ${pspell_ver} | awk 'BEGIN {FS="."}{printf $1*10000 + $2*100 + $3;}'`
22133
if test ${pspell_num} -lt 1200; then
22134
echo "$as_me:$LINENO: result: pspell version .12 or later required, you have ${pspell_ver} installed" >&5
22135
echo "${ECHO_T}pspell version .12 or later required, you have ${pspell_ver} installed" >&6
22137
echo "$as_me:$LINENO: result: found ($pspell_ver)" >&5
22138
echo "${ECHO_T}found ($pspell_ver)" >&6
22140
if test "${ac_cv_header_pspell_pspell_h+set}" = set; then
22141
echo "$as_me:$LINENO: checking for pspell/pspell.h" >&5
22142
echo $ECHO_N "checking for pspell/pspell.h... $ECHO_C" >&6
22143
if test "${ac_cv_header_pspell_pspell_h+set}" = set; then
22144
echo $ECHO_N "(cached) $ECHO_C" >&6
22146
echo "$as_me:$LINENO: result: $ac_cv_header_pspell_pspell_h" >&5
22147
echo "${ECHO_T}$ac_cv_header_pspell_pspell_h" >&6
22149
# Is the header compilable?
22150
echo "$as_me:$LINENO: checking pspell/pspell.h usability" >&5
22151
echo $ECHO_N "checking pspell/pspell.h usability... $ECHO_C" >&6
22152
cat >conftest.$ac_ext <<_ACEOF
22155
cat confdefs.h >>conftest.$ac_ext
22156
cat >>conftest.$ac_ext <<_ACEOF
22157
/* end confdefs.h. */
22158
$ac_includes_default
22159
#include <pspell/pspell.h>
22161
rm -f conftest.$ac_objext
22162
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22163
(eval $ac_compile) 2>conftest.er1
22165
grep -v '^ *+' conftest.er1 >conftest.err
22167
cat conftest.err >&5
22168
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22169
(exit $ac_status); } &&
22170
{ ac_try='test -z "$ac_c_werror_flag"
22171
|| test ! -s conftest.err'
22172
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22173
(eval $ac_try) 2>&5
22175
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22176
(exit $ac_status); }; } &&
22177
{ ac_try='test -s conftest.$ac_objext'
22178
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22179
(eval $ac_try) 2>&5
22181
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22182
(exit $ac_status); }; }; then
22183
ac_header_compiler=yes
22185
echo "$as_me: failed program was:" >&5
22186
sed 's/^/| /' conftest.$ac_ext >&5
22188
ac_header_compiler=no
22190
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22191
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22192
echo "${ECHO_T}$ac_header_compiler" >&6
22194
# Is the header present?
22195
echo "$as_me:$LINENO: checking pspell/pspell.h presence" >&5
22196
echo $ECHO_N "checking pspell/pspell.h presence... $ECHO_C" >&6
22197
cat >conftest.$ac_ext <<_ACEOF
22200
cat confdefs.h >>conftest.$ac_ext
22201
cat >>conftest.$ac_ext <<_ACEOF
22202
/* end confdefs.h. */
22203
#include <pspell/pspell.h>
22205
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22206
(eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
22213
if test -s conftest.err; then
22214
ac_cpp_err=$ac_c_preproc_warn_flag
22215
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22222
if test -z "$ac_cpp_err"; then
22223
ac_header_preproc=yes
22225
echo "$as_me: failed program was:" >&5
22226
sed 's/^/| /' conftest.$ac_ext >&5
22228
ac_header_preproc=no
22230
rm -f conftest.err conftest.$ac_ext
22231
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22232
echo "${ECHO_T}$ac_header_preproc" >&6
22234
# So? What about this header?
22235
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22237
{ echo "$as_me:$LINENO: WARNING: pspell/pspell.h: accepted by the compiler, rejected by the preprocessor!" >&5
22238
echo "$as_me: WARNING: pspell/pspell.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22239
{ echo "$as_me:$LINENO: WARNING: pspell/pspell.h: proceeding with the compiler's result" >&5
22240
echo "$as_me: WARNING: pspell/pspell.h: proceeding with the compiler's result" >&2;}
22241
ac_header_preproc=yes
22244
{ echo "$as_me:$LINENO: WARNING: pspell/pspell.h: present but cannot be compiled" >&5
22245
echo "$as_me: WARNING: pspell/pspell.h: present but cannot be compiled" >&2;}
22246
{ echo "$as_me:$LINENO: WARNING: pspell/pspell.h: check for missing prerequisite headers?" >&5
22247
echo "$as_me: WARNING: pspell/pspell.h: check for missing prerequisite headers?" >&2;}
22248
{ echo "$as_me:$LINENO: WARNING: pspell/pspell.h: see the Autoconf documentation" >&5
22249
echo "$as_me: WARNING: pspell/pspell.h: see the Autoconf documentation" >&2;}
22250
{ echo "$as_me:$LINENO: WARNING: pspell/pspell.h: section \"Present But Cannot Be Compiled\"" >&5
22251
echo "$as_me: WARNING: pspell/pspell.h: section \"Present But Cannot Be Compiled\"" >&2;}
22252
{ echo "$as_me:$LINENO: WARNING: pspell/pspell.h: proceeding with the preprocessor's result" >&5
22253
echo "$as_me: WARNING: pspell/pspell.h: proceeding with the preprocessor's result" >&2;}
22254
{ echo "$as_me:$LINENO: WARNING: pspell/pspell.h: in the future, the compiler will take precedence" >&5
22255
echo "$as_me: WARNING: pspell/pspell.h: in the future, the compiler will take precedence" >&2;}
22258
## -------------------------------------------------------------------- ##
22259
## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=gedit ##
22260
## -------------------------------------------------------------------- ##
22263
sed "s/^/$as_me: WARNING: /" >&2
22266
echo "$as_me:$LINENO: checking for pspell/pspell.h" >&5
22267
echo $ECHO_N "checking for pspell/pspell.h... $ECHO_C" >&6
22268
if test "${ac_cv_header_pspell_pspell_h+set}" = set; then
22269
echo $ECHO_N "(cached) $ECHO_C" >&6
22271
ac_cv_header_pspell_pspell_h=$ac_header_preproc
22273
echo "$as_me:$LINENO: result: $ac_cv_header_pspell_pspell_h" >&5
22274
echo "${ECHO_T}$ac_cv_header_pspell_pspell_h" >&6
22277
if test $ac_cv_header_pspell_pspell_h = yes; then
22278
echo "$as_me:$LINENO: checking for new_aspell_speller in -laspell" >&5
22279
echo $ECHO_N "checking for new_aspell_speller in -laspell... $ECHO_C" >&6
22280
if test "${ac_cv_lib_aspell_new_aspell_speller+set}" = set; then
22281
echo $ECHO_N "(cached) $ECHO_C" >&6
22283
ac_check_lib_save_LIBS=$LIBS
22284
LIBS="-laspell $LIBS"
22285
cat >conftest.$ac_ext <<_ACEOF
22288
cat confdefs.h >>conftest.$ac_ext
22289
cat >>conftest.$ac_ext <<_ACEOF
22290
/* end confdefs.h. */
22292
/* Override any gcc2 internal prototype to avoid an error. */
22296
/* We use char because int might match the return type of a gcc2
22297
builtin and then its argument prototype would still apply. */
22298
char new_aspell_speller ();
22302
new_aspell_speller ();
22307
rm -f conftest.$ac_objext conftest$ac_exeext
22308
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22309
(eval $ac_link) 2>conftest.er1
22311
grep -v '^ *+' conftest.er1 >conftest.err
22313
cat conftest.err >&5
22314
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22315
(exit $ac_status); } &&
22316
{ ac_try='test -z "$ac_c_werror_flag"
22317
|| test ! -s conftest.err'
22318
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22319
(eval $ac_try) 2>&5
22321
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22322
(exit $ac_status); }; } &&
22323
{ ac_try='test -s conftest$ac_exeext'
22324
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22325
(eval $ac_try) 2>&5
22327
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22328
(exit $ac_status); }; }; then
22329
ac_cv_lib_aspell_new_aspell_speller=yes
22331
echo "$as_me: failed program was:" >&5
22332
sed 's/^/| /' conftest.$ac_ext >&5
22334
ac_cv_lib_aspell_new_aspell_speller=no
22336
rm -f conftest.err conftest.$ac_objext \
22337
conftest$ac_exeext conftest.$ac_ext
22338
LIBS=$ac_check_lib_save_LIBS
22340
echo "$as_me:$LINENO: result: $ac_cv_lib_aspell_new_aspell_speller" >&5
22341
echo "${ECHO_T}$ac_cv_lib_aspell_new_aspell_speller" >&6
22342
if test $ac_cv_lib_aspell_new_aspell_speller = yes; then
22343
PSPELL_LIBS="-laspell" SPELL_PLUGIN_DIR="spell"
22345
echo "$as_me:$LINENO: checking for new_pspell_manager in -lpspell" >&5
22346
echo $ECHO_N "checking for new_pspell_manager in -lpspell... $ECHO_C" >&6
22347
if test "${ac_cv_lib_pspell_new_pspell_manager+set}" = set; then
22348
echo $ECHO_N "(cached) $ECHO_C" >&6
22350
ac_check_lib_save_LIBS=$LIBS
22351
LIBS="-lpspell $LIBS"
22352
cat >conftest.$ac_ext <<_ACEOF
22355
cat confdefs.h >>conftest.$ac_ext
22356
cat >>conftest.$ac_ext <<_ACEOF
22357
/* end confdefs.h. */
22359
/* Override any gcc2 internal prototype to avoid an error. */
22363
/* We use char because int might match the return type of a gcc2
22364
builtin and then its argument prototype would still apply. */
22365
char new_pspell_manager ();
22369
new_pspell_manager ();
22374
rm -f conftest.$ac_objext conftest$ac_exeext
22375
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22376
(eval $ac_link) 2>conftest.er1
22378
grep -v '^ *+' conftest.er1 >conftest.err
22380
cat conftest.err >&5
22381
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22382
(exit $ac_status); } &&
22383
{ ac_try='test -z "$ac_c_werror_flag"
22384
|| test ! -s conftest.err'
22385
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22386
(eval $ac_try) 2>&5
22388
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22389
(exit $ac_status); }; } &&
22390
{ ac_try='test -s conftest$ac_exeext'
22391
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22392
(eval $ac_try) 2>&5
22394
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22395
(exit $ac_status); }; }; then
22396
ac_cv_lib_pspell_new_pspell_manager=yes
22398
echo "$as_me: failed program was:" >&5
22399
sed 's/^/| /' conftest.$ac_ext >&5
22401
ac_cv_lib_pspell_new_pspell_manager=no
22403
rm -f conftest.err conftest.$ac_objext \
22404
conftest$ac_exeext conftest.$ac_ext
22405
LIBS=$ac_check_lib_save_LIBS
22407
echo "$as_me:$LINENO: result: $ac_cv_lib_pspell_new_pspell_manager" >&5
22408
echo "${ECHO_T}$ac_cv_lib_pspell_new_pspell_manager" >&6
22409
if test $ac_cv_lib_pspell_new_pspell_manager = yes; then
22410
PSPELL_LIBS="-lpspell" SPELL_PLUGIN_DIR="spell"
22412
{ echo "$as_me:$LINENO: WARNING: You must have the aspell or pspell dev packages to build the spell plugin." >&5
22413
echo "$as_me: WARNING: You must have the aspell or pspell dev packages to build the spell plugin." >&2;}
22421
{ echo "$as_me:$LINENO: WARNING: You must have the aspell or pspell dev packages to build the spell plugin." >&5
22422
echo "$as_me: WARNING: You must have the aspell or pspell dev packages to build the spell plugin." >&2;}
22429
echo "$as_me:$LINENO: result: not found" >&5
22430
echo "${ECHO_T}not found" >&6
22438
if test -z "$PKG_CONFIG"; then
22439
# Extract the first word of "pkg-config", so it can be a program name with args.
22440
set dummy pkg-config; ac_word=$2
22441
echo "$as_me:$LINENO: checking for $ac_word" >&5
22442
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22443
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22444
echo $ECHO_N "(cached) $ECHO_C" >&6
22446
case $PKG_CONFIG in
22448
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22451
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22452
for as_dir in $PATH
22455
test -z "$as_dir" && as_dir=.
22456
for ac_exec_ext in '' $ac_executable_extensions; do
22457
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22458
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22459
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22465
test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22469
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22471
if test -n "$PKG_CONFIG"; then
22472
echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22473
echo "${ECHO_T}$PKG_CONFIG" >&6
22475
echo "$as_me:$LINENO: result: no" >&5
22476
echo "${ECHO_T}no" >&6
22481
if test "$PKG_CONFIG" = "no" ; then
22482
echo "*** The pkg-config script could not be found. Make sure it is"
22483
echo "*** in your path, or set the PKG_CONFIG environment variable"
22484
echo "*** to the full path to pkg-config."
22485
echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22487
PKG_CONFIG_MIN_VERSION=0.9.0
22488
if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22489
echo "$as_me:$LINENO: checking for libgnomeui-2.0 >= 2.6.0 libglade-2.0 >= 2.3.6
22490
eel-2.0 >= 2.6.0 gtksourceview-1.0 >= 1.0.0
22491
libgnomeprintui-2.2 >= 2.6.0" >&5
22492
echo $ECHO_N "checking for libgnomeui-2.0 >= 2.6.0 libglade-2.0 >= 2.3.6
22493
eel-2.0 >= 2.6.0 gtksourceview-1.0 >= 1.0.0
22494
libgnomeprintui-2.2 >= 2.6.0... $ECHO_C" >&6
22496
if $PKG_CONFIG --exists "libgnomeui-2.0 >= 2.6.0 libglade-2.0 >= 2.3.6
22497
eel-2.0 >= 2.6.0 gtksourceview-1.0 >= 1.0.0
22498
libgnomeprintui-2.2 >= 2.6.0" ; then
22499
echo "$as_me:$LINENO: result: yes" >&5
22500
echo "${ECHO_T}yes" >&6
22503
echo "$as_me:$LINENO: checking GEDIT_CFLAGS" >&5
22504
echo $ECHO_N "checking GEDIT_CFLAGS... $ECHO_C" >&6
22505
GEDIT_CFLAGS=`$PKG_CONFIG --cflags "libgnomeui-2.0 >= 2.6.0 libglade-2.0 >= 2.3.6
22506
eel-2.0 >= 2.6.0 gtksourceview-1.0 >= 1.0.0
22507
libgnomeprintui-2.2 >= 2.6.0"`
22508
echo "$as_me:$LINENO: result: $GEDIT_CFLAGS" >&5
22509
echo "${ECHO_T}$GEDIT_CFLAGS" >&6
22511
echo "$as_me:$LINENO: checking GEDIT_LIBS" >&5
22512
echo $ECHO_N "checking GEDIT_LIBS... $ECHO_C" >&6
22513
GEDIT_LIBS=`$PKG_CONFIG --libs "libgnomeui-2.0 >= 2.6.0 libglade-2.0 >= 2.3.6
22514
eel-2.0 >= 2.6.0 gtksourceview-1.0 >= 1.0.0
22515
libgnomeprintui-2.2 >= 2.6.0"`
22516
echo "$as_me:$LINENO: result: $GEDIT_LIBS" >&5
22517
echo "${ECHO_T}$GEDIT_LIBS" >&6
22521
## If we have a custom action on failure, don't print errors, but
22522
## do set a variable so people can do so.
22523
GEDIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeui-2.0 >= 2.6.0 libglade-2.0 >= 2.3.6
22524
eel-2.0 >= 2.6.0 gtksourceview-1.0 >= 1.0.0
22525
libgnomeprintui-2.2 >= 2.6.0"`
22526
echo $GEDIT_PKG_ERRORS
22532
echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22533
echo "*** See http://www.freedesktop.org/software/pkgconfig"
22537
if test $succeeded = yes; then
22540
{ { echo "$as_me:$LINENO: error: Library requirements (libgnomeui-2.0 >= 2.6.0 libglade-2.0 >= 2.3.6
22541
eel-2.0 >= 2.6.0 gtksourceview-1.0 >= 1.0.0
22542
libgnomeprintui-2.2 >= 2.6.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
22543
echo "$as_me: error: Library requirements (libgnomeui-2.0 >= 2.6.0 libglade-2.0 >= 2.3.6
22544
eel-2.0 >= 2.6.0 gtksourceview-1.0 >= 1.0.0
22545
libgnomeprintui-2.2 >= 2.6.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
22546
{ (exit 1); exit 1; }; }
22549
GEDIT_LIBS="${GEDIT_LIBS}"
22555
if test "x$GCONF_SCHEMA_INSTALL_SOURCE" = "x"; then
22556
GCONF_SCHEMA_CONFIG_SOURCE=`gconftool-2 --get-default-source`
22558
GCONF_SCHEMA_CONFIG_SOURCE=$GCONF_SCHEMA_INSTALL_SOURCE
22562
# Check whether --with-gconf-source or --without-gconf-source was given.
22563
if test "${with_gconf_source+set}" = set; then
22564
withval="$with_gconf_source"
22565
GCONF_SCHEMA_CONFIG_SOURCE="$withval"
22569
echo "$as_me:$LINENO: result: Using config source $GCONF_SCHEMA_CONFIG_SOURCE for schema installation" >&5
22570
echo "${ECHO_T}Using config source $GCONF_SCHEMA_CONFIG_SOURCE for schema installation" >&6
22572
if test "x$GCONF_SCHEMA_FILE_DIR" = "x"; then
22573
GCONF_SCHEMA_FILE_DIR='$(sysconfdir)/gconf/schemas'
22577
# Check whether --with-gconf-schema-file-dir or --without-gconf-schema-file-dir was given.
22578
if test "${with_gconf_schema_file_dir+set}" = set; then
22579
withval="$with_gconf_schema_file_dir"
22580
GCONF_SCHEMA_FILE_DIR="$withval"
22584
echo "$as_me:$LINENO: result: Using $GCONF_SCHEMA_FILE_DIR as install directory for schema files" >&5
22585
echo "${ECHO_T}Using $GCONF_SCHEMA_FILE_DIR as install directory for schema files" >&6
22587
# Check whether --enable-schemas-install or --disable-schemas-install was given.
22588
if test "${enable_schemas_install+set}" = set; then
22589
enableval="$enable_schemas_install"
22590
case "${enableval}" in
22591
yes) schemas_install=true ;;
22592
no) schemas_install=false ;;
22593
*) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --disable-schemas-install" >&5
22594
echo "$as_me: error: bad value ${enableval} for --disable-schemas-install" >&2;}
22595
{ (exit 1); exit 1; }; } ;;
22598
schemas_install=true
22602
if test x$schemas_install = xtrue; then
22603
GCONF_SCHEMAS_INSTALL_TRUE=
22604
GCONF_SCHEMAS_INSTALL_FALSE='#'
22606
GCONF_SCHEMAS_INSTALL_TRUE='#'
22607
GCONF_SCHEMAS_INSTALL_FALSE=
22614
echo "$as_me:$LINENO: checking for poptStrippedArgv in -lpopt" >&5
22615
echo $ECHO_N "checking for poptStrippedArgv in -lpopt... $ECHO_C" >&6
22616
if test "${ac_cv_lib_popt_poptStrippedArgv+set}" = set; then
22617
echo $ECHO_N "(cached) $ECHO_C" >&6
22619
ac_check_lib_save_LIBS=$LIBS
22620
LIBS="-lpopt $LIBS"
22621
cat >conftest.$ac_ext <<_ACEOF
22624
cat confdefs.h >>conftest.$ac_ext
22625
cat >>conftest.$ac_ext <<_ACEOF
22626
/* end confdefs.h. */
22628
/* Override any gcc2 internal prototype to avoid an error. */
22632
/* We use char because int might match the return type of a gcc2
22633
builtin and then its argument prototype would still apply. */
22634
char poptStrippedArgv ();
22638
poptStrippedArgv ();
22643
rm -f conftest.$ac_objext conftest$ac_exeext
22644
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22645
(eval $ac_link) 2>conftest.er1
22647
grep -v '^ *+' conftest.er1 >conftest.err
22649
cat conftest.err >&5
22650
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22651
(exit $ac_status); } &&
22652
{ ac_try='test -z "$ac_c_werror_flag"
22653
|| test ! -s conftest.err'
22654
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22655
(eval $ac_try) 2>&5
22657
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22658
(exit $ac_status); }; } &&
22659
{ ac_try='test -s conftest$ac_exeext'
22660
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22661
(eval $ac_try) 2>&5
22663
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22664
(exit $ac_status); }; }; then
22665
ac_cv_lib_popt_poptStrippedArgv=yes
22667
echo "$as_me: failed program was:" >&5
22668
sed 's/^/| /' conftest.$ac_ext >&5
22670
ac_cv_lib_popt_poptStrippedArgv=no
22672
rm -f conftest.err conftest.$ac_objext \
22673
conftest$ac_exeext conftest.$ac_ext
22674
LIBS=$ac_check_lib_save_LIBS
22676
echo "$as_me:$LINENO: result: $ac_cv_lib_popt_poptStrippedArgv" >&5
22677
echo "${ECHO_T}$ac_cv_lib_popt_poptStrippedArgv" >&6
22678
if test $ac_cv_lib_popt_poptStrippedArgv = yes; then
22679
cat >>confdefs.h <<_ACEOF
22680
#define HAVE_LIBPOPT 1
22683
LIBS="-lpopt $LIBS"
22686
{ { echo "$as_me:$LINENO: error: popt 1.5 or newer is required to build
22687
gedit. You can download the latest version from ftp://people.redhat.com/sopwith/popt/" >&5
22688
echo "$as_me: error: popt 1.5 or newer is required to build
22689
gedit. You can download the latest version from ftp://people.redhat.com/sopwith/popt/" >&2;}
22690
{ (exit 1); exit 1; }; }
22696
for ac_func in ngettext
22698
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22699
echo "$as_me:$LINENO: checking for $ac_func" >&5
22700
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22701
if eval "test \"\${$as_ac_var+set}\" = set"; then
22702
echo $ECHO_N "(cached) $ECHO_C" >&6
22704
cat >conftest.$ac_ext <<_ACEOF
22707
cat confdefs.h >>conftest.$ac_ext
22708
cat >>conftest.$ac_ext <<_ACEOF
22709
/* end confdefs.h. */
22710
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22711
For example, HP-UX 11i <limits.h> declares gettimeofday. */
22712
#define $ac_func innocuous_$ac_func
22714
/* System header to define __stub macros and hopefully few prototypes,
22715
which can conflict with char $ac_func (); below.
22716
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22717
<limits.h> exists even on freestanding compilers. */
22720
# include <limits.h>
22722
# include <assert.h>
22727
/* Override any gcc2 internal prototype to avoid an error. */
22732
/* We use char because int might match the return type of a gcc2
22733
builtin and then its argument prototype would still apply. */
22735
/* The GNU C library defines this for functions which it implements
22736
to always fail with ENOSYS. Some functions are actually named
22737
something starting with __ and the normal name is an alias. */
22738
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22741
char (*f) () = $ac_func;
22750
return f != $ac_func;
22755
rm -f conftest.$ac_objext conftest$ac_exeext
22756
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22757
(eval $ac_link) 2>conftest.er1
22759
grep -v '^ *+' conftest.er1 >conftest.err
22761
cat conftest.err >&5
22762
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22763
(exit $ac_status); } &&
22764
{ ac_try='test -z "$ac_c_werror_flag"
22765
|| test ! -s conftest.err'
22766
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22767
(eval $ac_try) 2>&5
22769
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22770
(exit $ac_status); }; } &&
22771
{ ac_try='test -s conftest$ac_exeext'
22772
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22773
(eval $ac_try) 2>&5
22775
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22776
(exit $ac_status); }; }; then
22777
eval "$as_ac_var=yes"
22779
echo "$as_me: failed program was:" >&5
22780
sed 's/^/| /' conftest.$ac_ext >&5
22782
eval "$as_ac_var=no"
22784
rm -f conftest.err conftest.$ac_objext \
22785
conftest$ac_exeext conftest.$ac_ext
22787
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22788
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22789
if test `eval echo '${'$as_ac_var'}'` = yes; then
22790
cat >>confdefs.h <<_ACEOF
22791
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22795
{ { echo "$as_me:$LINENO: error: ngettext function is required to build gedit." >&5
22796
echo "$as_me: error: ngettext function is required to build gedit." >&2;}
22797
{ (exit 1); exit 1; }; }
22802
if test "x${datadir}" = 'x${prefix}/share'; then
22803
if test "x${prefix}" = "xNONE"; then
22805
cat >>confdefs.h <<_ACEOF
22806
#define GEDIT_DATA_DIR "${ac_default_prefix}/share/${PACKAGE}"
22811
cat >>confdefs.h <<_ACEOF
22812
#define GEDIT_DATA_DIR "${prefix}/share/${PACKAGE}"
22818
cat >>confdefs.h <<_ACEOF
22819
#define GEDIT_DATA_DIR "${datadir}/${PACKAGE}"
22824
if test "x${prefix}" = "xNONE"; then
22826
cat >>confdefs.h <<_ACEOF
22827
#define PIXMAPS_DIR "${ac_default_prefix}/${DATADIRNAME}/${PACKAGE}/pixmaps"
22830
pixmapsdir="${ac_default_prefix}/${DATADIRNAME}/${PACKAGE}/pixmaps"
22833
cat >>confdefs.h <<_ACEOF
22834
#define PIXMAPS_DIR "${prefix}/${DATADIRNAME}/${PACKAGE}/pixmaps"
22837
pixmapsdir="${prefix}/${DATADIRNAME}/${PACKAGE}/pixmaps"
22842
# Extract the first word of "glib-genmarshal", so it can be a program name with args.
22843
set dummy glib-genmarshal; ac_word=$2
22844
echo "$as_me:$LINENO: checking for $ac_word" >&5
22845
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22846
if test "${ac_cv_path_GLIB_GENMARSHAL+set}" = set; then
22847
echo $ECHO_N "(cached) $ECHO_C" >&6
22849
case $GLIB_GENMARSHAL in
22851
ac_cv_path_GLIB_GENMARSHAL="$GLIB_GENMARSHAL" # Let the user override the test with a path.
22854
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22855
for as_dir in $PATH
22858
test -z "$as_dir" && as_dir=.
22859
for ac_exec_ext in '' $ac_executable_extensions; do
22860
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22861
ac_cv_path_GLIB_GENMARSHAL="$as_dir/$ac_word$ac_exec_ext"
22862
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22871
GLIB_GENMARSHAL=$ac_cv_path_GLIB_GENMARSHAL
22873
if test -n "$GLIB_GENMARSHAL"; then
22874
echo "$as_me:$LINENO: result: $GLIB_GENMARSHAL" >&5
22875
echo "${ECHO_T}$GLIB_GENMARSHAL" >&6
22877
echo "$as_me:$LINENO: result: no" >&5
22878
echo "${ECHO_T}no" >&6
22884
# Check whether --enable-compile-warnings or --disable-compile-warnings was given.
22885
if test "${enable_compile_warnings+set}" = set; then
22886
enableval="$enable_compile_warnings"
22889
enable_compile_warnings="yes"
22893
if test "x$GCC" != xyes; then
22894
enable_compile_warnings=no
22898
realsave_CFLAGS="$CFLAGS"
22900
case "$enable_compile_warnings" in
22905
warning_flags="-Wall"
22908
warning_flags="-Wall -Wmissing-prototypes"
22911
warning_flags="-Wall -Wmissing-prototypes -Wnested-externs -Wpointer-arith"
22912
CFLAGS="$warning_flags $CFLAGS"
22913
for option in -Wno-sign-compare; do
22914
SAVE_CFLAGS="$CFLAGS"
22915
CFLAGS="$CFLAGS $option"
22916
echo "$as_me:$LINENO: checking whether gcc understands $option" >&5
22917
echo $ECHO_N "checking whether gcc understands $option... $ECHO_C" >&6
22918
cat >conftest.$ac_ext <<_ACEOF
22921
cat confdefs.h >>conftest.$ac_ext
22922
cat >>conftest.$ac_ext <<_ACEOF
22923
/* end confdefs.h. */
22933
rm -f conftest.$ac_objext
22934
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22935
(eval $ac_compile) 2>conftest.er1
22937
grep -v '^ *+' conftest.er1 >conftest.err
22939
cat conftest.err >&5
22940
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22941
(exit $ac_status); } &&
22942
{ ac_try='test -z "$ac_c_werror_flag"
22943
|| test ! -s conftest.err'
22944
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22945
(eval $ac_try) 2>&5
22947
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22948
(exit $ac_status); }; } &&
22949
{ ac_try='test -s conftest.$ac_objext'
22950
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22951
(eval $ac_try) 2>&5
22953
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22954
(exit $ac_status); }; }; then
22957
echo "$as_me: failed program was:" >&5
22958
sed 's/^/| /' conftest.$ac_ext >&5
22962
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22963
CFLAGS="$SAVE_CFLAGS"
22964
echo "$as_me:$LINENO: result: $has_option" >&5
22965
echo "${ECHO_T}$has_option" >&6
22966
if test $has_option = yes; then
22967
warning_flags="$warning_flags $option"
22973
if test "$enable_compile_warnings" = "error" ; then
22974
warning_flags="$warning_flags -Werror"
22978
{ { echo "$as_me:$LINENO: error: Unknown argument '$enable_compile_warnings' to --enable-compile-warnings" >&5
22979
echo "$as_me: error: Unknown argument '$enable_compile_warnings' to --enable-compile-warnings" >&2;}
22980
{ (exit 1); exit 1; }; }
22983
CFLAGS="$realsave_CFLAGS"
22984
echo "$as_me:$LINENO: checking what warning flags to pass to the C compiler" >&5
22985
echo $ECHO_N "checking what warning flags to pass to the C compiler... $ECHO_C" >&6
22986
echo "$as_me:$LINENO: result: $warning_flags" >&5
22987
echo "${ECHO_T}$warning_flags" >&6
22989
# Check whether --enable-iso-c or --disable-iso-c was given.
22990
if test "${enable_iso_c+set}" = set; then
22991
enableval="$enable_iso_c"
22997
echo "$as_me:$LINENO: checking what language compliance flags to pass to the C compiler" >&5
22998
echo $ECHO_N "checking what language compliance flags to pass to the C compiler... $ECHO_C" >&6
23000
if test "x$enable_iso_c" != "xno"; then
23001
if test "x$GCC" = "xyes"; then
23002
case " $CFLAGS " in
23003
*\ \ -ansi\ \ *) ;;
23004
*) complCFLAGS="$complCFLAGS -ansi" ;;
23006
case " $CFLAGS " in
23007
*\ \ -pedantic\ \ *) ;;
23008
*) complCFLAGS="$complCFLAGS -pedantic" ;;
23012
echo "$as_me:$LINENO: result: $complCFLAGS" >&5
23013
echo "${ECHO_T}$complCFLAGS" >&6
23015
WARN_CFLAGS="$warning_flags $complCFLAGS"
23019
# Check whether --enable-deprecations or --disable-deprecations was given.
23020
if test "${enable_deprecations+set}" = set; then
23021
enableval="$enable_deprecations"
23024
enable_deprecations=no
23027
if test "x$enable_deprecations" = "xyes"; then
23028
DISABLE_DEPRECATED_CFLAGS="\
23029
-DG_DISABLE_DEPRECATED \
23030
-DGDK_DISABLE_DEPRECATED \
23031
-DGTK_DISABLE_DEPRECATED \
23032
-DGDK_PIXBUF_DISABLE_DEPRECATED \
23033
-DGNOME_DISABLE_DEPRECATED"
23038
ORBIT_IDL="`$PKG_CONFIG --variable=orbit_idl ORBit-2.0`"
23041
LIBBONOBO_IDL="`$PKG_CONFIG --variable=idldir libbonobo-2.0`"
23044
BONOBO_ACTIVATION_IDL="`$PKG_CONFIG --variable=idldir bonobo-activation-2.0`"
23047
PLUGIN_LIBTOOL_FLAGS="-module -avoid-version"
23050
ac_config_files="$ac_config_files Makefile data/gedit.pc data/Makefile po/Makefile.in gedit/Makefile gedit/dialogs/Makefile gedit/recent-files/Makefile pixmaps/Makefile plugins/Makefile plugins/changecase/Makefile plugins/spell/Makefile plugins/docinfo/Makefile plugins/sample/Makefile plugins/time/Makefile plugins/indent/Makefile plugins/taglist/Makefile plugins/shell_output/Makefile plugins/sort/Makefile viewer/Makefile help/Makefile help/C/Makefile help/de/Makefile help/es/Makefile help/eu/Makefile help/fr/Makefile help/it/Makefile help/sv/Makefile help/ja/Makefile help/ko/Makefile help/zh_CN/Makefile help/zh_HK/Makefile help/zh_TW/Makefile help/ro/Makefile"
23051
cat >confcache <<\_ACEOF
4958
23052
# This file is a shell script that caches the results of configure
4959
23053
# tests run on this system so they can be shared between configure
4960
# scripts and configure runs. It is not useful on other systems.
4961
# If it contains results you don't want to keep, you may remove or edit it.
4963
# By default, configure uses ./config.cache as the cache file,
4964
# creating it if it does not exist already. You can give configure
4965
# the --cache-file=FILE option to use a different cache file; that is
4966
# what configure does when it calls configure scripts in
4967
# subdirectories, so they share the cache.
4968
# Giving --cache-file=/dev/null disables caching, for debugging configure.
4969
# config.status only pays attention to the cache file if you give it the
4970
# --recheck option to rerun configure.
23054
# scripts and configure runs, see configure's option --config-cache.
23055
# It is not useful on other systems. If it contains results you don't
23056
# want to keep, you may remove or edit it.
23058
# config.status only pays attention to the cache file if you give it
23059
# the --recheck option to rerun configure.
23061
# `ac_cv_env_foo' variables (set or unset) will be overridden when
23062
# loading this file, other *unset* `ac_cv_foo' will be assigned the
23063
# following values.
4973
23067
# The following way of writing the cache mishandles newlines in values,
4974
23068
# but we know of no workaround that is simple, portable, and efficient.
4975
23069
# So, don't put newlines in cache variables' values.
4976
23070
# Ultrix sh set writes to stderr and can't be redirected directly,
4977
23071
# and sets the high bit in the cache file unless we assign to the vars.
4979
case `(ac_space=' '; set | grep ac_space) 2>&1` in
4981
# `set' does not quote correctly, so add quotes (double-quote substitution
4982
# turns \\\\ into \\, and sed turns \\ into \).
4984
-e "s/'/'\\\\''/g" \
4985
-e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4988
# `set' quotes correctly as required by POSIX, so do not add quotes.
4989
sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4992
if cmp -s $cache_file confcache; then
23074
case `(ac_space=' '; set | grep ac_space) 2>&1` in
23076
# `set' does not quote correctly, so add quotes (double-quote
23077
# substitution turns \\\\ into \\, and sed turns \\ into \).
23080
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23083
# `set' quotes correctly as required by POSIX, so do not add quotes.
23085
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23092
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23094
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23096
if diff $cache_file confcache >/dev/null 2>&1; then :; else
4995
23097
if test -w $cache_file; then
4996
echo "updating cache $cache_file"
4997
cat confcache > $cache_file
23098
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23099
cat confcache >$cache_file
4999
23101
echo "not updating unwritable cache $cache_file"
5002
23104
rm -f confcache
5004
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5006
23106
test "x$prefix" = xNONE && prefix=$ac_default_prefix
5007
23107
# Let make expand exec_prefix.
5008
23108
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5010
# Any assignment to VPATH causes Sun make to only execute
5011
# the first set of double-colon rules, so remove it if not needed.
5012
# If there is a colon in the path, we need to keep it.
23110
# VPATH may cause trouble with some makes, so we remove $(srcdir),
23111
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23112
# trailing colons and then remove the whole line if VPATH becomes empty
23113
# (actually we leave an empty line to preserve line numbers).
5013
23114
if test "x$srcdir" = x.; then
5014
ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
23115
ac_vpsub='/^[ ]*VPATH[ ]*=/{
23116
s/:*\$(srcdir):*/:/;
23117
s/:*\${srcdir}:*/:/;
23119
s/^\([^=]*=[ ]*\):*/\1/;
5017
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5019
23125
DEFS=-DHAVE_CONFIG_H
5021
# Without the "./", some shells look in PATH for config.status.
23129
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23130
# 1. Remove the extension, and $U if already installed.
23131
ac_i=`echo "$ac_i" |
23132
sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23134
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23135
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23137
LIBOBJS=$ac_libobjs
23139
LTLIBOBJS=$ac_ltlibobjs
23142
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
23143
{ { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
23144
Usually this means the macro was only invoked conditionally." >&5
23145
echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
23146
Usually this means the macro was only invoked conditionally." >&2;}
23147
{ (exit 1); exit 1; }; }
23151
mv -f po/POTFILES po/POTFILES.tmp
23152
sed -e '/\[encoding.*\]/d' -e 's/\[.*\] *//' < po/POTFILES.tmp > po/POTFILES
23153
rm -f po/POTFILES.tmp
23156
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23157
{ { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
23158
Usually this means the macro was only invoked conditionally." >&5
23159
echo "$as_me: error: conditional \"AMDEP\" was never defined.
23160
Usually this means the macro was only invoked conditionally." >&2;}
23161
{ (exit 1); exit 1; }; }
23163
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23164
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23165
Usually this means the macro was only invoked conditionally." >&5
23166
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23167
Usually this means the macro was only invoked conditionally." >&2;}
23168
{ (exit 1); exit 1; }; }
23170
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23171
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
23172
Usually this means the macro was only invoked conditionally." >&5
23173
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
23174
Usually this means the macro was only invoked conditionally." >&2;}
23175
{ (exit 1); exit 1; }; }
23177
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23178
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23179
Usually this means the macro was only invoked conditionally." >&5
23180
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23181
Usually this means the macro was only invoked conditionally." >&2;}
23182
{ (exit 1); exit 1; }; }
23184
if test -z "${GCONF_SCHEMAS_INSTALL_TRUE}" && test -z "${GCONF_SCHEMAS_INSTALL_FALSE}"; then
23185
{ { echo "$as_me:$LINENO: error: conditional \"GCONF_SCHEMAS_INSTALL\" was never defined.
23186
Usually this means the macro was only invoked conditionally." >&5
23187
echo "$as_me: error: conditional \"GCONF_SCHEMAS_INSTALL\" was never defined.
23188
Usually this means the macro was only invoked conditionally." >&2;}
23189
{ (exit 1); exit 1; }; }
5022
23192
: ${CONFIG_STATUS=./config.status}
5024
echo creating $CONFIG_STATUS
5025
rm -f $CONFIG_STATUS
5026
cat > $CONFIG_STATUS <<EOF
5028
# Generated automatically by configure.
23193
ac_clean_files_save=$ac_clean_files
23194
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23195
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23196
echo "$as_me: creating $CONFIG_STATUS" >&6;}
23197
cat >$CONFIG_STATUS <<_ACEOF
23199
# Generated by $as_me.
5029
23200
# Run this file to recreate the current configuration.
5030
# This directory was configured as follows,
5031
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5033
# $0 $ac_configure_args
5035
23201
# Compiler output produced by configure, useful for debugging
5036
# configure, is in ./config.log if it exists.
5038
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5041
case "\$ac_option" in
23202
# configure, is in config.log if it exists.
23205
ac_cs_recheck=false
23207
SHELL=\${CONFIG_SHELL-$SHELL}
23210
cat >>$CONFIG_STATUS <<\_ACEOF
23211
## --------------------- ##
23212
## M4sh Initialization. ##
23213
## --------------------- ##
23215
# Be Bourne compatible
23216
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23219
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23220
# is contrary to our usage. Disable this feature.
23221
alias -g '${1+"$@"}'='"$@"'
23222
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23225
DUALCASE=1; export DUALCASE # for MKS sh
23227
# Support unset when possible.
23228
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23235
# Work around bugs in pre-3.0 UWIN ksh.
23236
$as_unset ENV MAIL MAILPATH
23243
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23244
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23245
LC_TELEPHONE LC_TIME
23247
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23248
eval $as_var=C; export $as_var
23254
# Required to use basename.
23255
if expr a : '\(a\)' >/dev/null 2>&1; then
23261
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23262
as_basename=basename
23268
# Name of the executable.
23269
as_me=`$as_basename "$0" ||
23270
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23271
X"$0" : 'X\(//\)$' \| \
23272
X"$0" : 'X\(/\)$' \| \
23273
. : '\(.\)' 2>/dev/null ||
23275
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23276
/^X\/\(\/\/\)$/{ s//\1/; q; }
23277
/^X\/\(\/\).*/{ s//\1/; q; }
23281
# PATH needs CR, and LINENO needs CR and PATH.
23282
# Avoid depending upon Character Ranges.
23283
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23284
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23285
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23286
as_cr_digits='0123456789'
23287
as_cr_alnum=$as_cr_Letters$as_cr_digits
23289
# The user is always right.
23290
if test "${PATH_SEPARATOR+set}" != set; then
23291
echo "#! /bin/sh" >conf$$.sh
23292
echo "exit 0" >>conf$$.sh
23294
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23303
as_lineno_1=$LINENO
23304
as_lineno_2=$LINENO
23305
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23306
test "x$as_lineno_1" != "x$as_lineno_2" &&
23307
test "x$as_lineno_3" = "x$as_lineno_2" || {
23308
# Find who we are. Look in the path if we contain no path at all
23311
*[\\/]* ) as_myself=$0 ;;
23312
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23313
for as_dir in $PATH
23316
test -z "$as_dir" && as_dir=.
23317
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23322
# We did not find ourselves, most probably we were run as `sh COMMAND'
23323
# in which case we are not to be found in the path.
23324
if test "x$as_myself" = x; then
23327
if test ! -f "$as_myself"; then
23328
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23329
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23330
{ (exit 1); exit 1; }; }
23332
case $CONFIG_SHELL in
23334
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23335
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23338
test -z "$as_dir" && as_dir=.
23339
for as_base in sh bash ksh sh5; do
23342
if ("$as_dir/$as_base" -c '
23343
as_lineno_1=$LINENO
23344
as_lineno_2=$LINENO
23345
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23346
test "x$as_lineno_1" != "x$as_lineno_2" &&
23347
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
23348
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23349
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23350
CONFIG_SHELL=$as_dir/$as_base
23351
export CONFIG_SHELL
23352
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23360
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23361
# uniformly replaced by the line number. The first 'sed' inserts a
23362
# line-number line before each line; the second 'sed' does the real
23363
# work. The second script uses 'N' to pair each line-number line
23364
# with the numbered line, and appends trailing '-' during
23365
# substitution so that $LINENO is not a special case at line end.
23366
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23367
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23368
sed '=' <$as_myself |
23373
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23376
s,^['$as_cr_digits']*\n,,
23377
' >$as_me.lineno &&
23378
chmod +x $as_me.lineno ||
23379
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23380
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23381
{ (exit 1); exit 1; }; }
23383
# Don't try to exec as it changes $[0], causing all sort of problems
23384
# (the dirname of $[0] is not the place where we might find the
23385
# original and so on. Autoconf is especially sensible to this).
23387
# Exit status is that of the last command.
23392
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23393
*c*,-n*) ECHO_N= ECHO_C='
23395
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23396
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
23399
if expr a : '\(a\)' >/dev/null 2>&1; then
23405
rm -f conf$$ conf$$.exe conf$$.file
23407
if ln -s conf$$.file conf$$ 2>/dev/null; then
23408
# We could just check for DJGPP; but this test a) works b) is more generic
23409
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23410
if test -f conf$$.exe; then
23411
# Don't use ln at all; we don't have any links
23416
elif ln conf$$.file conf$$ 2>/dev/null; then
23421
rm -f conf$$ conf$$.exe conf$$.file
23423
if mkdir -p . 2>/dev/null; then
23426
test -d ./-p && rmdir ./-p
23430
as_executable_p="test -f"
23432
# Sed expression to map a string onto a valid CPP name.
23433
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23435
# Sed expression to map a string onto a valid variable name.
23436
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23440
# We need space, tab and new line, in precisely that order.
23450
# Open the log real soon, to keep \$[0] and so on meaningful, and to
23451
# report actual input values of CONFIG_FILES etc. instead of their
23452
# values after options handling. Logging --version etc. is OK.
23456
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23457
## Running $as_me. ##
23462
This file was extended by gedit $as_me 2.8.1, which was
23463
generated by GNU Autoconf 2.59. Invocation command line was
23465
CONFIG_FILES = $CONFIG_FILES
23466
CONFIG_HEADERS = $CONFIG_HEADERS
23467
CONFIG_LINKS = $CONFIG_LINKS
23468
CONFIG_COMMANDS = $CONFIG_COMMANDS
23472
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23476
# Files that config.status was made for.
23477
if test -n "$ac_config_files"; then
23478
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23481
if test -n "$ac_config_headers"; then
23482
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23485
if test -n "$ac_config_links"; then
23486
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23489
if test -n "$ac_config_commands"; then
23490
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23493
cat >>$CONFIG_STATUS <<\_ACEOF
23496
\`$as_me' instantiates files from templates according to the
23497
current configuration.
23499
Usage: $0 [OPTIONS] [FILE]...
23501
-h, --help print this help, then exit
23502
-V, --version print version number, then exit
23503
-q, --quiet do not print progress messages
23504
-d, --debug don't remove temporary files
23505
--recheck update $as_me by reconfiguring in the same conditions
23506
--file=FILE[:TEMPLATE]
23507
instantiate the configuration file FILE
23508
--header=FILE[:TEMPLATE]
23509
instantiate the configuration header FILE
23511
Configuration files:
23514
Configuration headers:
23517
Configuration commands:
23520
Report bugs to <bug-autoconf@gnu.org>."
23523
cat >>$CONFIG_STATUS <<_ACEOF
23525
gedit config.status 2.8.1
23526
configured by $0, generated by GNU Autoconf 2.59,
23527
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23529
Copyright (C) 2003 Free Software Foundation, Inc.
23530
This config.status script is free software; the Free Software Foundation
23531
gives unlimited permission to copy, distribute and modify it."
23536
cat >>$CONFIG_STATUS <<\_ACEOF
23537
# If no file are specified by the user, then we need to provide default
23538
# value. By we need to know if files were specified by the user.
23544
ac_option=`expr "x$1" : 'x\([^=]*\)='`
23545
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23553
*) # This is not an option, so the user has probably given explicit
23556
ac_need_defaults=false;;
23560
# Handling of the options.
23562
cat >>$CONFIG_STATUS <<\_ACEOF
5042
23563
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5043
echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5044
exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5045
-version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5046
echo "$CONFIG_STATUS generated by autoconf version 2.13"
5048
-help | --help | --hel | --he | --h)
5049
echo "\$ac_cs_usage"; exit 0 ;;
5050
*) echo "\$ac_cs_usage"; exit 1 ;;
5054
ac_given_srcdir=$srcdir
5055
ac_given_INSTALL="$INSTALL"
5057
trap 'rm -fr `echo "
5068
plugins/browse/Makefile
5069
plugins/convert/Makefile
5070
plugins/diff/Makefile
5071
plugins/email/Makefile
5072
plugins/sample/Makefile
5073
plugins/time/Makefile
5074
plugins/reverse/Makefile
5075
plugins/shell_output/Makefile
5077
src/dialogs/Makefile
5078
config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5080
cat >> $CONFIG_STATUS <<EOF
5082
# Protect against being on the right side of a sed subst in config.status.
5083
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5084
s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
23565
--version | --vers* | -V )
23566
echo "$ac_cs_version"; exit 0 ;;
23568
# Conflict between --help and --header
23569
{ { echo "$as_me:$LINENO: error: ambiguous option: $1
23570
Try \`$0 --help' for more information." >&5
23571
echo "$as_me: error: ambiguous option: $1
23572
Try \`$0 --help' for more information." >&2;}
23573
{ (exit 1); exit 1; }; };;
23574
--help | --hel | -h )
23575
echo "$ac_cs_usage"; exit 0 ;;
23576
--debug | --d* | -d )
23578
--file | --fil | --fi | --f )
23580
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23581
ac_need_defaults=false;;
23582
--header | --heade | --head | --hea )
23584
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23585
ac_need_defaults=false;;
23586
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
23587
| -silent | --silent | --silen | --sile | --sil | --si | --s)
23590
# This is an error.
23591
-*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23592
Try \`$0 --help' for more information." >&5
23593
echo "$as_me: error: unrecognized option: $1
23594
Try \`$0 --help' for more information." >&2;}
23595
{ (exit 1); exit 1; }; } ;;
23597
*) ac_config_targets="$ac_config_targets $1" ;;
23603
ac_configure_extra_args=
23605
if $ac_cs_silent; then
23607
ac_configure_extra_args="$ac_configure_extra_args --silent"
23611
cat >>$CONFIG_STATUS <<_ACEOF
23612
if \$ac_cs_recheck; then
23613
echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23614
exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23619
cat >>$CONFIG_STATUS <<_ACEOF
23621
# INIT-COMMANDS section.
23624
INTLTOOL_PERL='${INTLTOOL_PERL}' ac_aux_dir=${ac_aux_dir}
23625
INTLTOOL_EXTRACT='${INTLTOOL_EXTRACT}' ICONV='${ICONV}'
23626
MSGFMT='${MSGFMT}' MSGMERGE='${MSGMERGE}' XGETTEXT='${XGETTEXT}'
23627
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23634
cat >>$CONFIG_STATUS <<\_ACEOF
23635
for ac_config_target in $ac_config_targets
23637
case "$ac_config_target" in
23638
# Handling of arguments.
23639
"Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23640
"data/gedit.pc" ) CONFIG_FILES="$CONFIG_FILES data/gedit.pc" ;;
23641
"data/Makefile" ) CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
23642
"po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
23643
"gedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES gedit/Makefile" ;;
23644
"gedit/dialogs/Makefile" ) CONFIG_FILES="$CONFIG_FILES gedit/dialogs/Makefile" ;;
23645
"gedit/recent-files/Makefile" ) CONFIG_FILES="$CONFIG_FILES gedit/recent-files/Makefile" ;;
23646
"pixmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES pixmaps/Makefile" ;;
23647
"plugins/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/Makefile" ;;
23648
"plugins/changecase/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/changecase/Makefile" ;;
23649
"plugins/spell/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/spell/Makefile" ;;
23650
"plugins/docinfo/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/docinfo/Makefile" ;;
23651
"plugins/sample/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/sample/Makefile" ;;
23652
"plugins/time/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/time/Makefile" ;;
23653
"plugins/indent/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/indent/Makefile" ;;
23654
"plugins/taglist/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/taglist/Makefile" ;;
23655
"plugins/shell_output/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/shell_output/Makefile" ;;
23656
"plugins/sort/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/sort/Makefile" ;;
23657
"viewer/Makefile" ) CONFIG_FILES="$CONFIG_FILES viewer/Makefile" ;;
23658
"help/Makefile" ) CONFIG_FILES="$CONFIG_FILES help/Makefile" ;;
23659
"help/C/Makefile" ) CONFIG_FILES="$CONFIG_FILES help/C/Makefile" ;;
23660
"help/de/Makefile" ) CONFIG_FILES="$CONFIG_FILES help/de/Makefile" ;;
23661
"help/es/Makefile" ) CONFIG_FILES="$CONFIG_FILES help/es/Makefile" ;;
23662
"help/eu/Makefile" ) CONFIG_FILES="$CONFIG_FILES help/eu/Makefile" ;;
23663
"help/fr/Makefile" ) CONFIG_FILES="$CONFIG_FILES help/fr/Makefile" ;;
23664
"help/it/Makefile" ) CONFIG_FILES="$CONFIG_FILES help/it/Makefile" ;;
23665
"help/sv/Makefile" ) CONFIG_FILES="$CONFIG_FILES help/sv/Makefile" ;;
23666
"help/ja/Makefile" ) CONFIG_FILES="$CONFIG_FILES help/ja/Makefile" ;;
23667
"help/ko/Makefile" ) CONFIG_FILES="$CONFIG_FILES help/ko/Makefile" ;;
23668
"help/zh_CN/Makefile" ) CONFIG_FILES="$CONFIG_FILES help/zh_CN/Makefile" ;;
23669
"help/zh_HK/Makefile" ) CONFIG_FILES="$CONFIG_FILES help/zh_HK/Makefile" ;;
23670
"help/zh_TW/Makefile" ) CONFIG_FILES="$CONFIG_FILES help/zh_TW/Makefile" ;;
23671
"help/ro/Makefile" ) CONFIG_FILES="$CONFIG_FILES help/ro/Makefile" ;;
23672
"intltool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS intltool" ;;
23673
"depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23674
"default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
23675
"config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
23676
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23677
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23678
{ (exit 1); exit 1; }; };;
23682
# If the user did not use the arguments to specify the items to instantiate,
23683
# then the envvar interface is used. Set only those that are not.
23684
# We use the long form for the default assignment because of an extremely
23685
# bizarre bug on SunOS 4.1.3.
23686
if $ac_need_defaults; then
23687
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23688
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23689
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23692
# Have a temporary directory for convenience. Make it in the build tree
23693
# simply because there is no reason to put it here, and in addition,
23694
# creating and moving files from /tmp can sometimes cause problems.
23695
# Create a temporary directory, and hook for its removal unless debugging.
23698
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23699
trap '{ (exit 1); exit 1; }' 1 2 13 15
23702
# Create a (secure) tmp directory for tmp files.
23705
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23706
test -n "$tmp" && test -d "$tmp"
23709
tmp=./confstat$$-$RANDOM
23710
(umask 077 && mkdir $tmp)
23713
echo "$me: cannot create a temporary directory in ." >&2
23714
{ (exit 1); exit 1; }
23719
cat >>$CONFIG_STATUS <<_ACEOF
23722
# CONFIG_FILES section.
23725
# No need to generate the scripts if there are no CONFIG_FILES.
23726
# This happens for instance when ./config.status config.h
23727
if test -n "\$CONFIG_FILES"; then
23728
# Protect against being on the right side of a sed subst in config.status.
23729
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23730
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23731
s,@SHELL@,$SHELL,;t t
23732
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23733
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23734
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23735
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23736
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23737
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23738
s,@exec_prefix@,$exec_prefix,;t t
23739
s,@prefix@,$prefix,;t t
23740
s,@program_transform_name@,$program_transform_name,;t t
23741
s,@bindir@,$bindir,;t t
23742
s,@sbindir@,$sbindir,;t t
23743
s,@libexecdir@,$libexecdir,;t t
23744
s,@datadir@,$datadir,;t t
23745
s,@sysconfdir@,$sysconfdir,;t t
23746
s,@sharedstatedir@,$sharedstatedir,;t t
23747
s,@localstatedir@,$localstatedir,;t t
23748
s,@libdir@,$libdir,;t t
23749
s,@includedir@,$includedir,;t t
23750
s,@oldincludedir@,$oldincludedir,;t t
23751
s,@infodir@,$infodir,;t t
23752
s,@mandir@,$mandir,;t t
23753
s,@build_alias@,$build_alias,;t t
23754
s,@host_alias@,$host_alias,;t t
23755
s,@target_alias@,$target_alias,;t t
23756
s,@DEFS@,$DEFS,;t t
23757
s,@ECHO_C@,$ECHO_C,;t t
23758
s,@ECHO_N@,$ECHO_N,;t t
23759
s,@ECHO_T@,$ECHO_T,;t t
23760
s,@LIBS@,$LIBS,;t t
23761
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23762
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23763
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23764
s,@CYGPATH_W@,$CYGPATH_W,;t t
23765
s,@PACKAGE@,$PACKAGE,;t t
23766
s,@VERSION@,$VERSION,;t t
23767
s,@ACLOCAL@,$ACLOCAL,;t t
23768
s,@AUTOCONF@,$AUTOCONF,;t t
23769
s,@AUTOMAKE@,$AUTOMAKE,;t t
23770
s,@AUTOHEADER@,$AUTOHEADER,;t t
23771
s,@MAKEINFO@,$MAKEINFO,;t t
23772
s,@AMTAR@,$AMTAR,;t t
23773
s,@install_sh@,$install_sh,;t t
23774
s,@STRIP@,$STRIP,;t t
23775
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23776
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
23778
s,@SET_MAKE@,$SET_MAKE,;t t
23779
s,@am__leading_dot@,$am__leading_dot,;t t
23780
s,@GEDIT_MAJOR@,$GEDIT_MAJOR,;t t
23781
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
23782
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
23783
s,@MAINT@,$MAINT,;t t
23784
s,@GCONFTOOL@,$GCONFTOOL,;t t
23785
s,@INTLTOOL_DESKTOP_RULE@,$INTLTOOL_DESKTOP_RULE,;t t
23786
s,@INTLTOOL_DIRECTORY_RULE@,$INTLTOOL_DIRECTORY_RULE,;t t
23787
s,@INTLTOOL_KEYS_RULE@,$INTLTOOL_KEYS_RULE,;t t
23788
s,@INTLTOOL_PROP_RULE@,$INTLTOOL_PROP_RULE,;t t
23789
s,@INTLTOOL_OAF_RULE@,$INTLTOOL_OAF_RULE,;t t
23790
s,@INTLTOOL_PONG_RULE@,$INTLTOOL_PONG_RULE,;t t
23791
s,@INTLTOOL_SERVER_RULE@,$INTLTOOL_SERVER_RULE,;t t
23792
s,@INTLTOOL_SHEET_RULE@,$INTLTOOL_SHEET_RULE,;t t
23793
s,@INTLTOOL_SOUNDLIST_RULE@,$INTLTOOL_SOUNDLIST_RULE,;t t
23794
s,@INTLTOOL_UI_RULE@,$INTLTOOL_UI_RULE,;t t
23795
s,@INTLTOOL_XAM_RULE@,$INTLTOOL_XAM_RULE,;t t
23796
s,@INTLTOOL_KBD_RULE@,$INTLTOOL_KBD_RULE,;t t
23797
s,@INTLTOOL_XML_RULE@,$INTLTOOL_XML_RULE,;t t
23798
s,@INTLTOOL_CAVES_RULE@,$INTLTOOL_CAVES_RULE,;t t
23799
s,@INTLTOOL_SCHEMAS_RULE@,$INTLTOOL_SCHEMAS_RULE,;t t
23800
s,@INTLTOOL_THEME_RULE@,$INTLTOOL_THEME_RULE,;t t
23801
s,@INTLTOOL_EXTRACT@,$INTLTOOL_EXTRACT,;t t
23802
s,@INTLTOOL_MERGE@,$INTLTOOL_MERGE,;t t
23803
s,@INTLTOOL_UPDATE@,$INTLTOOL_UPDATE,;t t
23804
s,@INTLTOOL_PERL@,$INTLTOOL_PERL,;t t
23805
s,@ICONV@,$ICONV,;t t
23806
s,@MSGFMT@,$MSGFMT,;t t
23807
s,@MSGMERGE@,$MSGMERGE,;t t
23808
s,@XGETTEXT@,$XGETTEXT,;t t
23809
s,@build@,$build,;t t
23810
s,@build_cpu@,$build_cpu,;t t
23811
s,@build_vendor@,$build_vendor,;t t
23812
s,@build_os@,$build_os,;t t
23813
s,@host@,$host,;t t
23814
s,@host_cpu@,$host_cpu,;t t
23815
s,@host_vendor@,$host_vendor,;t t
23816
s,@host_os@,$host_os,;t t
23818
s,@CFLAGS@,$CFLAGS,;t t
23819
s,@LDFLAGS@,$LDFLAGS,;t t
23820
s,@CPPFLAGS@,$CPPFLAGS,;t t
23821
s,@ac_ct_CC@,$ac_ct_CC,;t t
23822
s,@EXEEXT@,$EXEEXT,;t t
23823
s,@OBJEXT@,$OBJEXT,;t t
23824
s,@DEPDIR@,$DEPDIR,;t t
23825
s,@am__include@,$am__include,;t t
23826
s,@am__quote@,$am__quote,;t t
23827
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
23828
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
23829
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
23830
s,@CCDEPMODE@,$CCDEPMODE,;t t
23831
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
23832
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
23833
s,@EGREP@,$EGREP,;t t
23834
s,@LN_S@,$LN_S,;t t
23835
s,@ECHO@,$ECHO,;t t
23837
s,@ac_ct_AR@,$ac_ct_AR,;t t
23838
s,@RANLIB@,$RANLIB,;t t
23839
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23842
s,@CXXFLAGS@,$CXXFLAGS,;t t
23843
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23844
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
23845
s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
23846
s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
23847
s,@CXXCPP@,$CXXCPP,;t t
23849
s,@FFLAGS@,$FFLAGS,;t t
23850
s,@ac_ct_F77@,$ac_ct_F77,;t t
23851
s,@LIBTOOL@,$LIBTOOL,;t t
23852
s,@ACLOCAL_AMFLAGS@,$ACLOCAL_AMFLAGS,;t t
23853
s,@GETTEXT_PACKAGE@,$GETTEXT_PACKAGE,;t t
23854
s,@USE_NLS@,$USE_NLS,;t t
23855
s,@GMSGFMT@,$GMSGFMT,;t t
23856
s,@CATALOGS@,$CATALOGS,;t t
23857
s,@CATOBJEXT@,$CATOBJEXT,;t t
23858
s,@DATADIRNAME@,$DATADIRNAME,;t t
23859
s,@GMOFILES@,$GMOFILES,;t t
23860
s,@INSTOBJEXT@,$INSTOBJEXT,;t t
23861
s,@INTLLIBS@,$INTLLIBS,;t t
23862
s,@PO_IN_DATADIR_TRUE@,$PO_IN_DATADIR_TRUE,;t t
23863
s,@PO_IN_DATADIR_FALSE@,$PO_IN_DATADIR_FALSE,;t t
23864
s,@POFILES@,$POFILES,;t t
23865
s,@POSUB@,$POSUB,;t t
23866
s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
23867
s,@SPELL_PLUGIN_DIR@,$SPELL_PLUGIN_DIR,;t t
23868
s,@PSPELL_LIBS@,$PSPELL_LIBS,;t t
23869
s,@PKG_CONFIG@,$PKG_CONFIG,;t t
23870
s,@GEDIT_CFLAGS@,$GEDIT_CFLAGS,;t t
23871
s,@GEDIT_LIBS@,$GEDIT_LIBS,;t t
23872
s,@GCONF_SCHEMA_CONFIG_SOURCE@,$GCONF_SCHEMA_CONFIG_SOURCE,;t t
23873
s,@GCONF_SCHEMA_FILE_DIR@,$GCONF_SCHEMA_FILE_DIR,;t t
23874
s,@GCONF_SCHEMAS_INSTALL_TRUE@,$GCONF_SCHEMAS_INSTALL_TRUE,;t t
23875
s,@GCONF_SCHEMAS_INSTALL_FALSE@,$GCONF_SCHEMAS_INSTALL_FALSE,;t t
23876
s,@pixmapsdir@,$pixmapsdir,;t t
23877
s,@GLIB_GENMARSHAL@,$GLIB_GENMARSHAL,;t t
23878
s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
23879
s,@DISABLE_DEPRECATED_CFLAGS@,$DISABLE_DEPRECATED_CFLAGS,;t t
23880
s,@ORBIT_IDL@,$ORBIT_IDL,;t t
23881
s,@LIBBONOBO_IDL@,$LIBBONOBO_IDL,;t t
23882
s,@BONOBO_ACTIVATION_IDL@,$BONOBO_ACTIVATION_IDL,;t t
23883
s,@PLUGIN_LIBTOOL_FLAGS@,$PLUGIN_LIBTOOL_FLAGS,;t t
23884
s,@LIBOBJS@,$LIBOBJS,;t t
23885
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23890
cat >>$CONFIG_STATUS <<\_ACEOF
23891
# Split the substitutions into bite-sized pieces for seds with
23892
# small command number limits, like on Digital OSF/1 and HP-UX.
23893
ac_max_sed_lines=48
23894
ac_sed_frag=1 # Number of current file.
23895
ac_beg=1 # First line for current file.
23896
ac_end=$ac_max_sed_lines # Line after last line for current file.
23899
while $ac_more_lines; do
23900
if test $ac_beg -gt 1; then
23901
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23903
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23905
if test ! -s $tmp/subs.frag; then
23906
ac_more_lines=false
23908
# The purpose of the label and of the branching condition is to
23909
# speed up the sed processing (if there are no `@' at all, there
23910
# is no need to browse any of the substitutions).
23911
# These are the two extra sed commands mentioned above.
23913
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23914
if test -z "$ac_sed_cmds"; then
23915
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23917
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23919
ac_sed_frag=`expr $ac_sed_frag + 1`
23921
ac_end=`expr $ac_end + $ac_max_sed_lines`
23924
if test -z "$ac_sed_cmds"; then
23927
fi # test -n "$CONFIG_FILES"
23930
cat >>$CONFIG_STATUS <<\_ACEOF
23931
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23932
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23934
- | *:- | *:-:* ) # input from stdin
23936
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23937
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23938
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23939
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23940
* ) ac_file_in=$ac_file.in ;;
23943
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23944
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23945
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23946
X"$ac_file" : 'X\(//\)[^/]' \| \
23947
X"$ac_file" : 'X\(//\)$' \| \
23948
X"$ac_file" : 'X\(/\)' \| \
23949
. : '\(.\)' 2>/dev/null ||
23951
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23952
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
23953
/^X\(\/\/\)$/{ s//\1/; q; }
23954
/^X\(\/\).*/{ s//\1/; q; }
23956
{ if $as_mkdir_p; then
23961
while test ! -d "$as_dir"; do
23962
as_dirs="$as_dir $as_dirs"
23963
as_dir=`(dirname "$as_dir") 2>/dev/null ||
23964
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23965
X"$as_dir" : 'X\(//\)[^/]' \| \
23966
X"$as_dir" : 'X\(//\)$' \| \
23967
X"$as_dir" : 'X\(/\)' \| \
23968
. : '\(.\)' 2>/dev/null ||
23970
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23971
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
23972
/^X\(\/\/\)$/{ s//\1/; q; }
23973
/^X\(\/\).*/{ s//\1/; q; }
23976
test ! -n "$as_dirs" || mkdir $as_dirs
23977
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23978
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23979
{ (exit 1); exit 1; }; }; }
23983
if test "$ac_dir" != .; then
23984
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23985
# A "../" for each directory in $ac_dir_suffix.
23986
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23988
ac_dir_suffix= ac_top_builddir=
23992
.) # No --srcdir option. We are building in place.
23994
if test -z "$ac_top_builddir"; then
23997
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23999
[\\/]* | ?:[\\/]* ) # Absolute path.
24000
ac_srcdir=$srcdir$ac_dir_suffix;
24001
ac_top_srcdir=$srcdir ;;
24002
*) # Relative path.
24003
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24004
ac_top_srcdir=$ac_top_builddir$srcdir ;;
24007
# Do not use `cd foo && pwd` to compute absolute paths, because
24008
# the directories may not exist.
24010
.) ac_abs_builddir="$ac_dir";;
24013
.) ac_abs_builddir=`pwd`;;
24014
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24015
*) ac_abs_builddir=`pwd`/"$ac_dir";;
24018
case $ac_abs_builddir in
24019
.) ac_abs_top_builddir=${ac_top_builddir}.;;
24021
case ${ac_top_builddir}. in
24022
.) ac_abs_top_builddir=$ac_abs_builddir;;
24023
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24024
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24027
case $ac_abs_builddir in
24028
.) ac_abs_srcdir=$ac_srcdir;;
24031
.) ac_abs_srcdir=$ac_abs_builddir;;
24032
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24033
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24036
case $ac_abs_builddir in
24037
.) ac_abs_top_srcdir=$ac_top_srcdir;;
24039
case $ac_top_srcdir in
24040
.) ac_abs_top_srcdir=$ac_abs_builddir;;
24041
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24042
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24048
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24049
*) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24052
if test x"$ac_file" != x-; then
24053
{ echo "$as_me:$LINENO: creating $ac_file" >&5
24054
echo "$as_me: creating $ac_file" >&6;}
24057
# Let's still pretend it is `configure' which instantiates (i.e., don't
24058
# use $as_me), people would be surprised to read:
24059
# /* config.h. Generated by config.status. */
24060
if test x"$ac_file" = x-; then
24063
configure_input="$ac_file. "
24065
configure_input=$configure_input"Generated from `echo $ac_file_in |
24066
sed 's,.*/,,'` by configure."
24068
# First look for the input files in the build tree, otherwise in the
24070
ac_file_inputs=`IFS=:
24071
for f in $ac_file_in; do
24073
-) echo $tmp/stdin ;;
24075
# Absolute (can't be DOS-style, as IFS=:)
24076
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24077
echo "$as_me: error: cannot find input file: $f" >&2;}
24078
{ (exit 1); exit 1; }; }
24081
if test -f "$f"; then
24084
elif test -f "$srcdir/$f"; then
24089
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24090
echo "$as_me: error: cannot find input file: $f" >&2;}
24091
{ (exit 1); exit 1; }; }
24094
done` || { (exit 1); exit 1; }
24096
cat >>$CONFIG_STATUS <<_ACEOF
5088
s%@CFLAGS@%$CFLAGS%g
5089
s%@CPPFLAGS@%$CPPFLAGS%g
5090
s%@CXXFLAGS@%$CXXFLAGS%g
5091
s%@FFLAGS@%$FFLAGS%g
5093
s%@LDFLAGS@%$LDFLAGS%g
5095
s%@exec_prefix@%$exec_prefix%g
5096
s%@prefix@%$prefix%g
5097
s%@program_transform_name@%$program_transform_name%g
5098
s%@bindir@%$bindir%g
5099
s%@sbindir@%$sbindir%g
5100
s%@libexecdir@%$libexecdir%g
5101
s%@datadir@%$datadir%g
5102
s%@sysconfdir@%$sysconfdir%g
5103
s%@sharedstatedir@%$sharedstatedir%g
5104
s%@localstatedir@%$localstatedir%g
5105
s%@libdir@%$libdir%g
5106
s%@includedir@%$includedir%g
5107
s%@oldincludedir@%$oldincludedir%g
5108
s%@infodir@%$infodir%g
5109
s%@mandir@%$mandir%g
5110
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5111
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5112
s%@INSTALL_DATA@%$INSTALL_DATA%g
5113
s%@PACKAGE@%$PACKAGE%g
5114
s%@VERSION@%$VERSION%g
5115
s%@ACLOCAL@%$ACLOCAL%g
5116
s%@AUTOCONF@%$AUTOCONF%g
5117
s%@AUTOMAKE@%$AUTOMAKE%g
5118
s%@AUTOHEADER@%$AUTOHEADER%g
5119
s%@MAKEINFO@%$MAKEINFO%g
5120
s%@SET_MAKE@%$SET_MAKE%g
5121
s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
5122
s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
5124
s%@INSIDE_GNOME_COMMON_TRUE@%$INSIDE_GNOME_COMMON_TRUE%g
5125
s%@INSIDE_GNOME_COMMON_FALSE@%$INSIDE_GNOME_COMMON_FALSE%g
5129
s%@host_alias@%$host_alias%g
5130
s%@host_cpu@%$host_cpu%g
5131
s%@host_vendor@%$host_vendor%g
5132
s%@host_os@%$host_os%g
5134
s%@build_alias@%$build_alias%g
5135
s%@build_cpu@%$build_cpu%g
5136
s%@build_vendor@%$build_vendor%g
5137
s%@build_os@%$build_os%g
5138
s%@RANLIB@%$RANLIB%g
5140
s%@LIBTOOL@%$LIBTOOL%g
5141
s%@GNOME_LIBS@%$GNOME_LIBS%g
5142
s%@GNOMEUI_LIBS@%$GNOMEUI_LIBS%g
5143
s%@GNOMEGNORBA_LIBS@%$GNOMEGNORBA_LIBS%g
5144
s%@GTKXMHTML_LIBS@%$GTKXMHTML_LIBS%g
5145
s%@ZVT_LIBS@%$ZVT_LIBS%g
5146
s%@GNOME_LIBDIR@%$GNOME_LIBDIR%g
5147
s%@GNOME_INCLUDEDIR@%$GNOME_INCLUDEDIR%g
5148
s%@GNOME_CONFIG@%$GNOME_CONFIG%g
5149
s%@ORBIT_CONFIG@%$ORBIT_CONFIG%g
5150
s%@ORBIT_IDL@%$ORBIT_IDL%g
5151
s%@HAVE_ORBIT_TRUE@%$HAVE_ORBIT_TRUE%g
5152
s%@HAVE_ORBIT_FALSE@%$HAVE_ORBIT_FALSE%g
5153
s%@ORBIT_CFLAGS@%$ORBIT_CFLAGS%g
5154
s%@ORBIT_LIBS@%$ORBIT_LIBS%g
5155
s%@HAVE_GNORBA_TRUE@%$HAVE_GNORBA_TRUE%g
5156
s%@HAVE_GNORBA_FALSE@%$HAVE_GNORBA_FALSE%g
5157
s%@GNORBA_CFLAGS@%$GNORBA_CFLAGS%g
5158
s%@GNORBA_LIBS@%$GNORBA_LIBS%g
5159
s%@GNOME_APPLETS_LIBS@%$GNOME_APPLETS_LIBS%g
5160
s%@GNOME_DOCKLETS_LIBS@%$GNOME_DOCKLETS_LIBS%g
5161
s%@GNOME_CAPPLET_LIBS@%$GNOME_CAPPLET_LIBS%g
5162
s%@cflags_set@%$cflags_set%g
5163
s%@GTK_CONFIG@%$GTK_CONFIG%g
5164
s%@GTK_CFLAGS@%$GTK_CFLAGS%g
5165
s%@GTK_LIBS@%$GTK_LIBS%g
5166
s%@XPM_LIBS@%$XPM_LIBS%g
5167
s%@PTHREAD_LIB@%$PTHREAD_LIB%g
5168
s%@HAVE_LIBGNORBA_TRUE@%$HAVE_LIBGNORBA_TRUE%g
5169
s%@HAVE_LIBGNORBA_FALSE@%$HAVE_LIBGNORBA_FALSE%g
5170
s%@HAVE_LIBZVT_TRUE@%$HAVE_LIBZVT_TRUE%g
5171
s%@HAVE_LIBZVT_FALSE@%$HAVE_LIBZVT_FALSE%g
5172
s%@ALLOCA@%$ALLOCA%g
5173
s%@USE_NLS@%$USE_NLS%g
5174
s%@MSGFMT@%$MSGFMT%g
5175
s%@GMSGFMT@%$GMSGFMT%g
5176
s%@XGETTEXT@%$XGETTEXT%g
5177
s%@GENCAT@%$GENCAT%g
5178
s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
5179
s%@CATALOGS@%$CATALOGS%g
5180
s%@CATOBJEXT@%$CATOBJEXT%g
5181
s%@DATADIRNAME@%$DATADIRNAME%g
5182
s%@GMOFILES@%$GMOFILES%g
5183
s%@INSTOBJEXT@%$INSTOBJEXT%g
5184
s%@INTLDEPS@%$INTLDEPS%g
5185
s%@INTLLIBS@%$INTLLIBS%g
5186
s%@INTLOBJS@%$INTLOBJS%g
5187
s%@POFILES@%$POFILES%g
5189
s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
5191
s%@GT_YES@%$GT_YES%g
5192
s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
5194
s%@EXTRA_GNOME_LIBS@%$EXTRA_GNOME_LIBS%g
5195
s%@EXTRA_GNOME_CFLAGS@%$EXTRA_GNOME_CFLAGS%g
5200
cat >> $CONFIG_STATUS <<\EOF
5202
# Split the substitutions into bite-sized pieces for seds with
5203
# small command number limits, like on Digital OSF/1 and HP-UX.
5204
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5205
ac_file=1 # Number of current file.
5206
ac_beg=1 # First line for current file.
5207
ac_end=$ac_max_sed_cmds # Line after last line for current file.
5210
while $ac_more_lines; do
5211
if test $ac_beg -gt 1; then
5212
sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5214
sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5216
if test ! -s conftest.s$ac_file; then
5218
rm -f conftest.s$ac_file
5220
if test -z "$ac_sed_cmds"; then
5221
ac_sed_cmds="sed -f conftest.s$ac_file"
5223
ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5225
ac_file=`expr $ac_file + 1`
5227
ac_end=`expr $ac_end + $ac_max_sed_cmds`
24100
cat >>$CONFIG_STATUS <<\_ACEOF
24102
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24103
s,@configure_input@,$configure_input,;t t
24104
s,@srcdir@,$ac_srcdir,;t t
24105
s,@abs_srcdir@,$ac_abs_srcdir,;t t
24106
s,@top_srcdir@,$ac_top_srcdir,;t t
24107
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24108
s,@builddir@,$ac_builddir,;t t
24109
s,@abs_builddir@,$ac_abs_builddir,;t t
24110
s,@top_builddir@,$ac_top_builddir,;t t
24111
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24112
s,@INSTALL@,$ac_INSTALL,;t t
24113
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24115
if test x"$ac_file" != x-; then
24116
mv $tmp/out $ac_file
5230
if test -z "$ac_sed_cmds"; then
5235
cat >> $CONFIG_STATUS <<EOF
5237
CONFIG_FILES=\${CONFIG_FILES-"gedit.spec
5247
plugins/browse/Makefile
5248
plugins/convert/Makefile
5249
plugins/diff/Makefile
5250
plugins/email/Makefile
5251
plugins/sample/Makefile
5252
plugins/time/Makefile
5253
plugins/reverse/Makefile
5254
plugins/shell_output/Makefile
5256
src/dialogs/Makefile
5259
cat >> $CONFIG_STATUS <<\EOF
5260
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
5261
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5263
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5264
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5265
*) ac_file_in="${ac_file}.in" ;;
5268
# Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5270
# Remove last slash and all that follows it. Not all systems have dirname.
5271
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5272
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5273
# The file is in a subdirectory.
5274
test ! -d "$ac_dir" && mkdir "$ac_dir"
5275
ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
5276
# A "../" for each directory in $ac_dir_suffix.
5277
ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5279
ac_dir_suffix= ac_dots=
5282
case "$ac_given_srcdir" in
5284
if test -z "$ac_dots"; then top_srcdir=.
5285
else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5286
/*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5288
srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5289
top_srcdir="$ac_dots$ac_given_srcdir" ;;
5292
case "$ac_given_INSTALL" in
5293
[/$]*) INSTALL="$ac_given_INSTALL" ;;
5294
*) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5297
echo creating "$ac_file"
5299
configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5301
*Makefile*) ac_comsub="1i\\
5302
# $configure_input" ;;
5306
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5308
s%@configure_input@%$configure_input%g
5309
s%@srcdir@%$srcdir%g
5310
s%@top_srcdir@%$top_srcdir%g
5311
s%@INSTALL@%$INSTALL%g
5312
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
24124
cat >>$CONFIG_STATUS <<\_ACEOF
24127
# CONFIG_HEADER section.
5316
24130
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5317
24131
# NAME is the cpp macro being defined and VALUE is the value it is being given.
5319
24133
# ac_d sets the value in "#define NAME VALUE" lines.
5320
ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5321
ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
5324
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5325
ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5326
ac_uB='\([ ]\)%\1#\2define\3'
24134
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24135
ac_dB='[ ].*$,\1#\2'
24138
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24139
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24140
ac_uB='$,\1#\2define\3'
5329
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5330
ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5331
ac_eB='$%\1#\2define\3'
5335
if test "${CONFIG_HEADERS+set}" != set; then
5337
cat >> $CONFIG_STATUS <<EOF
5338
CONFIG_HEADERS="config.h"
5340
cat >> $CONFIG_STATUS <<\EOF
5342
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
24144
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
5343
24145
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5345
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5346
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5347
*) ac_file_in="${ac_file}.in" ;;
24147
- | *:- | *:-:* ) # input from stdin
24149
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24150
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24151
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24152
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24153
* ) ac_file_in=$ac_file.in ;;
5350
echo creating $ac_file
5352
rm -f conftest.frag conftest.in conftest.out
5353
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5354
cat $ac_file_inputs > conftest.in
5358
# Transform confdefs.h into a sed script conftest.vals that substitutes
5359
# the proper values into config.h.in to produce config.h. And first:
5360
# Protect against being on the right side of a sed subst in config.status.
5361
# Protect against being in an unquoted here document in config.status.
5363
cat > conftest.hdr <<\EOF
5366
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5370
sed -n -f conftest.hdr confdefs.h > conftest.vals
24156
test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24157
echo "$as_me: creating $ac_file" >&6;}
24159
# First look for the input files in the build tree, otherwise in the
24161
ac_file_inputs=`IFS=:
24162
for f in $ac_file_in; do
24164
-) echo $tmp/stdin ;;
24166
# Absolute (can't be DOS-style, as IFS=:)
24167
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24168
echo "$as_me: error: cannot find input file: $f" >&2;}
24169
{ (exit 1); exit 1; }; }
24170
# Do quote $f, to prevent DOS paths from being IFS'd.
24173
if test -f "$f"; then
24176
elif test -f "$srcdir/$f"; then
24181
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24182
echo "$as_me: error: cannot find input file: $f" >&2;}
24183
{ (exit 1); exit 1; }; }
24186
done` || { (exit 1); exit 1; }
24187
# Remove the trailing spaces.
24188
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24192
# Transform confdefs.h into two sed scripts, `conftest.defines' and
24193
# `conftest.undefs', that substitutes the proper values into
24194
# config.h.in to produce config.h. The first handles `#define'
24195
# templates, and the second `#undef' templates.
24196
# And first: Protect against being on the right side of a sed subst in
24197
# config.status. Protect against being in an unquoted here document
24198
# in config.status.
24199
rm -f conftest.defines conftest.undefs
24200
# Using a here document instead of a string reduces the quoting nightmare.
24201
# Putting comments in sed scripts is not portable.
24203
# `end' is used to avoid that the second main sed command (meant for
24204
# 0-ary CPP macros) applies to n-ary macro definitions.
24205
# See the Autoconf documentation for `clear'.
24206
cat >confdef2sed.sed <<\_ACEOF
24211
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24213
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24216
# If some macros were called several times there might be several times
24217
# the same #defines, which is useless. Nevertheless, we may not want to
24218
# sort them, since we want the *last* AC-DEFINE to be honored.
24219
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24220
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24221
rm -f confdef2sed.sed
5373
24223
# This sed command replaces #undef with comments. This is necessary, for
5374
24224
# example, in the case of _POSIX_SOURCE, which is predefined and required
5375
24225
# on some systems where configure will not decide to define it.
5376
cat >> conftest.vals <<\EOF
5377
s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5380
# Break up conftest.vals because some shells have a limit on
5381
# the size of here documents, and old seds have small limits too.
5386
ac_lines=`grep -c . conftest.vals`
5387
# grep -c gives empty output for an empty file on some AIX systems.
5388
if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5389
# Write a limited-size here document to conftest.frag.
5390
echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5391
sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5393
sed -f conftest.frag conftest.in > conftest.out
5395
mv conftest.out conftest.in
5397
sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5399
mv conftest.tail conftest.vals
5403
cat >> $CONFIG_STATUS <<\EOF
5404
rm -f conftest.frag conftest.h
5405
echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5406
cat conftest.in >> conftest.h
5408
if cmp -s $ac_file conftest.h 2>/dev/null; then
5409
echo "$ac_file is unchanged"
5412
# Remove last slash and all that follows it. Not all systems have dirname.
5413
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5414
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5415
# The file is in a subdirectory.
5416
test ! -d "$ac_dir" && mkdir "$ac_dir"
24226
cat >>conftest.undefs <<\_ACEOF
24227
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24230
# Break up conftest.defines because some shells have a limit on the size
24231
# of here documents, and old seds have small limits too (100 cmds).
24232
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24233
echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24234
echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24235
echo ' :' >>$CONFIG_STATUS
24236
rm -f conftest.tail
24237
while grep . conftest.defines >/dev/null
24239
# Write a limited-size here document to $tmp/defines.sed.
24240
echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24241
# Speed up: don't consider the non `#define' lines.
24242
echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24243
# Work around the forget-to-reset-the-flag bug.
24244
echo 't clr' >>$CONFIG_STATUS
24245
echo ': clr' >>$CONFIG_STATUS
24246
sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24248
sed -f $tmp/defines.sed $tmp/in >$tmp/out
24250
mv $tmp/out $tmp/in
24252
sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24253
rm -f conftest.defines
24254
mv conftest.tail conftest.defines
24256
rm -f conftest.defines
24257
echo ' fi # grep' >>$CONFIG_STATUS
24258
echo >>$CONFIG_STATUS
24260
# Break up conftest.undefs because some shells have a limit on the size
24261
# of here documents, and old seds have small limits too (100 cmds).
24262
echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24263
rm -f conftest.tail
24264
while grep . conftest.undefs >/dev/null
24266
# Write a limited-size here document to $tmp/undefs.sed.
24267
echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24268
# Speed up: don't consider the non `#undef'
24269
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24270
# Work around the forget-to-reset-the-flag bug.
24271
echo 't clr' >>$CONFIG_STATUS
24272
echo ': clr' >>$CONFIG_STATUS
24273
sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24275
sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24277
mv $tmp/out $tmp/in
24279
sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24280
rm -f conftest.undefs
24281
mv conftest.tail conftest.undefs
24283
rm -f conftest.undefs
24285
cat >>$CONFIG_STATUS <<\_ACEOF
24286
# Let's still pretend it is `configure' which instantiates (i.e., don't
24287
# use $as_me), people would be surprised to read:
24288
# /* config.h. Generated by config.status. */
24289
if test x"$ac_file" = x-; then
24290
echo "/* Generated by configure. */" >$tmp/config.h
24292
echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24294
cat $tmp/in >>$tmp/config.h
24296
if test x"$ac_file" != x-; then
24297
if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24298
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24299
echo "$as_me: $ac_file is unchanged" >&6;}
24301
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24302
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24303
X"$ac_file" : 'X\(//\)[^/]' \| \
24304
X"$ac_file" : 'X\(//\)$' \| \
24305
X"$ac_file" : 'X\(/\)' \| \
24306
. : '\(.\)' 2>/dev/null ||
24308
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24309
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
24310
/^X\(\/\/\)$/{ s//\1/; q; }
24311
/^X\(\/\).*/{ s//\1/; q; }
24313
{ if $as_mkdir_p; then
24318
while test ! -d "$as_dir"; do
24319
as_dirs="$as_dir $as_dirs"
24320
as_dir=`(dirname "$as_dir") 2>/dev/null ||
24321
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24322
X"$as_dir" : 'X\(//\)[^/]' \| \
24323
X"$as_dir" : 'X\(//\)$' \| \
24324
X"$as_dir" : 'X\(/\)' \| \
24325
. : '\(.\)' 2>/dev/null ||
24327
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24328
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
24329
/^X\(\/\/\)$/{ s//\1/; q; }
24330
/^X\(\/\).*/{ s//\1/; q; }
24333
test ! -n "$as_dirs" || mkdir $as_dirs
24334
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24335
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24336
{ (exit 1); exit 1; }; }; }
24339
mv $tmp/config.h $ac_file
5419
mv conftest.h $ac_file
5425
cat >> $CONFIG_STATUS <<EOF
5426
ac_sources="$nls_cv_header_libgt"
5427
ac_dests="$nls_cv_header_intl"
5430
cat >> $CONFIG_STATUS <<\EOF
5431
srcdir=$ac_given_srcdir
5432
while test -n "$ac_sources"; do
5433
set $ac_dests; ac_dest=$1; shift; ac_dests=$*
5434
set $ac_sources; ac_source=$1; shift; ac_sources=$*
5436
echo "linking $srcdir/$ac_source to $ac_dest"
5438
if test ! -r $srcdir/$ac_source; then
5439
{ echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
5443
# Make relative symlinks.
5444
# Remove last slash and all that follows it. Not all systems have dirname.
5445
ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
5446
if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
5447
# The dest file is in a subdirectory.
5448
test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
5449
ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
5450
# A "../" for each directory in $ac_dest_dir_suffix.
5451
ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
5453
ac_dest_dir_suffix= ac_dots=
24343
rm -f $tmp/config.h
5457
[/$]*) ac_rel_source="$srcdir/$ac_source" ;;
5458
*) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
24345
# Compute $ac_file's index in $config_headers.
24347
for _am_header in $config_headers :; do
24348
case $_am_header in
24349
$ac_file | $ac_file:* )
24352
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
5461
# Make a symlink if possible; otherwise try a hard link.
5462
if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
5463
ln $srcdir/$ac_source $ac_dest; then :
5465
{ echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
24355
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
24356
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24357
X$ac_file : 'X\(//\)[^/]' \| \
24358
X$ac_file : 'X\(//\)$' \| \
24359
X$ac_file : 'X\(/\)' \| \
24360
. : '\(.\)' 2>/dev/null ||
24362
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24363
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
24364
/^X\(\/\/\)$/{ s//\1/; q; }
24365
/^X\(\/\).*/{ s//\1/; q; }
24366
s/.*/./; q'`/stamp-h$_am_stamp_count
24369
cat >>$CONFIG_STATUS <<\_ACEOF
24372
# CONFIG_COMMANDS section.
24374
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24375
ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24376
ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24377
ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24378
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24379
X"$ac_dest" : 'X\(//\)[^/]' \| \
24380
X"$ac_dest" : 'X\(//\)$' \| \
24381
X"$ac_dest" : 'X\(/\)' \| \
24382
. : '\(.\)' 2>/dev/null ||
24384
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24385
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
24386
/^X\(\/\/\)$/{ s//\1/; q; }
24387
/^X\(\/\).*/{ s//\1/; q; }
24389
{ if $as_mkdir_p; then
24394
while test ! -d "$as_dir"; do
24395
as_dirs="$as_dir $as_dirs"
24396
as_dir=`(dirname "$as_dir") 2>/dev/null ||
24397
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24398
X"$as_dir" : 'X\(//\)[^/]' \| \
24399
X"$as_dir" : 'X\(//\)$' \| \
24400
X"$as_dir" : 'X\(/\)' \| \
24401
. : '\(.\)' 2>/dev/null ||
24403
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24404
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
24405
/^X\(\/\/\)$/{ s//\1/; q; }
24406
/^X\(\/\).*/{ s//\1/; q; }
24409
test ! -n "$as_dirs" || mkdir $as_dirs
24410
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24411
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24412
{ (exit 1); exit 1; }; }; }
24416
if test "$ac_dir" != .; then
24417
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24418
# A "../" for each directory in $ac_dir_suffix.
24419
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24421
ac_dir_suffix= ac_top_builddir=
24425
.) # No --srcdir option. We are building in place.
24427
if test -z "$ac_top_builddir"; then
24430
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24432
[\\/]* | ?:[\\/]* ) # Absolute path.
24433
ac_srcdir=$srcdir$ac_dir_suffix;
24434
ac_top_srcdir=$srcdir ;;
24435
*) # Relative path.
24436
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24437
ac_top_srcdir=$ac_top_builddir$srcdir ;;
24440
# Do not use `cd foo && pwd` to compute absolute paths, because
24441
# the directories may not exist.
24443
.) ac_abs_builddir="$ac_dir";;
24446
.) ac_abs_builddir=`pwd`;;
24447
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24448
*) ac_abs_builddir=`pwd`/"$ac_dir";;
24451
case $ac_abs_builddir in
24452
.) ac_abs_top_builddir=${ac_top_builddir}.;;
24454
case ${ac_top_builddir}. in
24455
.) ac_abs_top_builddir=$ac_abs_builddir;;
24456
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24457
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24460
case $ac_abs_builddir in
24461
.) ac_abs_srcdir=$ac_srcdir;;
24464
.) ac_abs_srcdir=$ac_abs_builddir;;
24465
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24466
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24469
case $ac_abs_builddir in
24470
.) ac_abs_top_srcdir=$ac_top_srcdir;;
24472
case $ac_top_srcdir in
24473
.) ac_abs_top_srcdir=$ac_abs_builddir;;
24474
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24475
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24480
{ echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24481
echo "$as_me: executing $ac_dest commands" >&6;}
24485
intltool_edit="-e 's:@INTLTOOL_EXTRACT@:${INTLTOOL_EXTRACT}:g' \
24486
-e 's:@INTLTOOL_ICONV@:${ICONV}:g' \
24487
-e 's:@INTLTOOL_MSGFMT@:${MSGFMT}:g' \
24488
-e 's:@INTLTOOL_MSGMERGE@:${MSGMERGE}:g' \
24489
-e 's:@INTLTOOL_XGETTEXT@:${XGETTEXT}:g' \
24490
-e 's:@INTLTOOL_PERL@:${INTLTOOL_PERL}:g'"
24492
eval sed ${intltool_edit} < ${ac_aux_dir}/intltool-extract.in \
24493
> intltool-extract.out
24494
if cmp -s intltool-extract intltool-extract.out 2>/dev/null; then
24495
rm -f intltool-extract.out
24497
mv -f intltool-extract.out intltool-extract
24499
chmod ugo+x intltool-extract
24500
chmod u+w intltool-extract
24502
eval sed ${intltool_edit} < ${ac_aux_dir}/intltool-merge.in \
24503
> intltool-merge.out
24504
if cmp -s intltool-merge intltool-merge.out 2>/dev/null; then
24505
rm -f intltool-merge.out
24507
mv -f intltool-merge.out intltool-merge
24509
chmod ugo+x intltool-merge
24510
chmod u+w intltool-merge
24512
eval sed ${intltool_edit} < ${ac_aux_dir}/intltool-update.in \
24513
> intltool-update.out
24514
if cmp -s intltool-update intltool-update.out 2>/dev/null; then
24515
rm -f intltool-update.out
24517
mv -f intltool-update.out intltool-update
24519
chmod ugo+x intltool-update
24520
chmod u+w intltool-update
24523
depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
24524
# Strip MF so we end up with the name of the file.
24525
mf=`echo "$mf" | sed -e 's/:.*$//'`
24526
# Check whether this is an Automake generated Makefile or not.
24527
# We used to match only the files named `Makefile.in', but
24528
# some people rename them; so instead we look at the file content.
24529
# Grep'ing the first line is not enough: some people post-process
24530
# each Makefile.in and add a new line on top of each file to say so.
24531
# So let's grep whole file.
24532
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
24533
dirpart=`(dirname "$mf") 2>/dev/null ||
24534
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24535
X"$mf" : 'X\(//\)[^/]' \| \
24536
X"$mf" : 'X\(//\)$' \| \
24537
X"$mf" : 'X\(/\)' \| \
24538
. : '\(.\)' 2>/dev/null ||
24540
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24541
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
24542
/^X\(\/\/\)$/{ s//\1/; q; }
24543
/^X\(\/\).*/{ s//\1/; q; }
24548
grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
24549
# Extract the definition of DEP_FILES from the Makefile without
24551
DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
24552
test -z "$DEPDIR" && continue
24553
# When using ansi2knr, U may be empty or an underscore; expand it
24554
U=`sed -n -e '/^U = / s///p' < "$mf"`
24555
test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
24556
# We invoke sed twice because it is the simplest approach to
24557
# changing $(DEPDIR) to its actual value in the expansion.
24558
for file in `sed -n -e '
24559
/^DEP_FILES = .*\\\\$/ {
24568
/^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
24569
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24570
# Make sure the directory exists.
24571
test -f "$dirpart/$file" && continue
24572
fdir=`(dirname "$file") 2>/dev/null ||
24573
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24574
X"$file" : 'X\(//\)[^/]' \| \
24575
X"$file" : 'X\(//\)$' \| \
24576
X"$file" : 'X\(/\)' \| \
24577
. : '\(.\)' 2>/dev/null ||
24579
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24580
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
24581
/^X\(\/\/\)$/{ s//\1/; q; }
24582
/^X\(\/\).*/{ s//\1/; q; }
24584
{ if $as_mkdir_p; then
24585
mkdir -p $dirpart/$fdir
24587
as_dir=$dirpart/$fdir
24589
while test ! -d "$as_dir"; do
24590
as_dirs="$as_dir $as_dirs"
24591
as_dir=`(dirname "$as_dir") 2>/dev/null ||
24592
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24593
X"$as_dir" : 'X\(//\)[^/]' \| \
24594
X"$as_dir" : 'X\(//\)$' \| \
24595
X"$as_dir" : 'X\(/\)' \| \
24596
. : '\(.\)' 2>/dev/null ||
24598
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24599
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
24600
/^X\(\/\/\)$/{ s//\1/; q; }
24601
/^X\(\/\).*/{ s//\1/; q; }
24604
test ! -n "$as_dirs" || mkdir $as_dirs
24605
fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
24606
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
24607
{ (exit 1); exit 1; }; }; }
24609
# echo "creating $dirpart/$file"
24610
echo '# dummy' > "$dirpart/$file"
5469
cat >> $CONFIG_STATUS <<EOF
5474
cat >> $CONFIG_STATUS <<\EOF
5475
test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
5476
case "$CONFIG_FILES" in *po/Makefile.in*)
24614
default-1 ) case "$CONFIG_FILES" in *po/Makefile.in*)
5477
24615
sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
5479
sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
24621
cat >>$CONFIG_STATUS <<\_ACEOF
24623
{ (exit 0); exit 0; }
5482
24625
chmod +x $CONFIG_STATUS
5483
rm -fr confdefs* $ac_clean_files
5484
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
24626
ac_clean_files=$ac_clean_files_save
24629
# configure is writing to config.log, and then calls config.status.
24630
# config.status does its own redirection, appending to config.log.
24631
# Unfortunately, on DOS this fails, as config.log is still kept open
24632
# by configure, so config.status won't be able to write to it; its
24633
# output is simply discarded. So we exec the FD to /dev/null,
24634
# effectively closing config.log, so it can be properly (re)opened and
24635
# appended to by config.status. When coming back to configure, we
24636
# need to make the FD available again.
24637
if test "$no_create" != yes; then
24639
ac_config_status_args=
24640
test "$silent" = yes &&
24641
ac_config_status_args="$ac_config_status_args --quiet"
24643
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24645
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
24646
# would make configure fail if this is the last instruction.
24647
$ac_cs_success || { (exit 1); exit 1; }
5489
24654
Configuration:
5491
Source code location: ${srcdir}
24656
Source code location: ${srcdir}