7248
4317
eval "$as_ac_Header=no"
7250
rm -f conftest.$ac_objext conftest.$ac_ext
7252
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7253
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7254
if test `eval echo '${'$as_ac_Header'}'` = yes; then
7255
cat >>confdefs.h <<_ACEOF
7256
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7265
for ac_header in dlfcn.h
7267
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7268
if eval "test \"\${$as_ac_Header+set}\" = set"; then
7269
echo "$as_me:$LINENO: checking for $ac_header" >&5
7270
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7271
if eval "test \"\${$as_ac_Header+set}\" = set"; then
7272
echo $ECHO_N "(cached) $ECHO_C" >&6
7274
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7275
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7277
# Is the header compilable?
7278
echo "$as_me:$LINENO: checking $ac_header usability" >&5
7279
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7280
cat >conftest.$ac_ext <<_ACEOF
7281
#line $LINENO "configure"
7284
cat confdefs.h >>conftest.$ac_ext
7285
cat >>conftest.$ac_ext <<_ACEOF
7286
/* end confdefs.h. */
7287
$ac_includes_default
7288
#include <$ac_header>
7290
rm -f conftest.$ac_objext
7291
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7292
(eval $ac_compile) 2>&5
7294
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7295
(exit $ac_status); } &&
7296
{ ac_try='test -s conftest.$ac_objext'
7297
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7300
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7301
(exit $ac_status); }; }; then
7302
ac_header_compiler=yes
7304
echo "$as_me: failed program was:" >&5
7305
sed 's/^/| /' conftest.$ac_ext >&5
7307
ac_header_compiler=no
7309
rm -f conftest.$ac_objext conftest.$ac_ext
7310
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7311
echo "${ECHO_T}$ac_header_compiler" >&6
7313
# Is the header present?
7314
echo "$as_me:$LINENO: checking $ac_header presence" >&5
7315
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7316
cat >conftest.$ac_ext <<_ACEOF
7317
#line $LINENO "configure"
7320
cat confdefs.h >>conftest.$ac_ext
7321
cat >>conftest.$ac_ext <<_ACEOF
7322
/* end confdefs.h. */
7323
#include <$ac_header>
7325
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7326
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7328
grep -v '^ *+' conftest.er1 >conftest.err
7330
cat conftest.err >&5
7331
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7332
(exit $ac_status); } >/dev/null; then
7333
if test -s conftest.err; then
7334
ac_cpp_err=$ac_c_preproc_warn_flag
7341
if test -z "$ac_cpp_err"; then
7342
ac_header_preproc=yes
7344
echo "$as_me: failed program was:" >&5
7345
sed 's/^/| /' conftest.$ac_ext >&5
7347
ac_header_preproc=no
7349
rm -f conftest.err conftest.$ac_ext
7350
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7351
echo "${ECHO_T}$ac_header_preproc" >&6
7353
# So? What about this header?
7354
case $ac_header_compiler:$ac_header_preproc in
7356
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7357
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7358
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7359
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7362
## ------------------------------------ ##
7363
## Report this to bug-autoconf@gnu.org. ##
7364
## ------------------------------------ ##
7367
sed "s/^/$as_me: WARNING: /" >&2
7370
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7371
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7372
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7373
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7374
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7375
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7378
## ------------------------------------ ##
7379
## Report this to bug-autoconf@gnu.org. ##
7380
## ------------------------------------ ##
7383
sed "s/^/$as_me: WARNING: /" >&2
7386
echo "$as_me:$LINENO: checking for $ac_header" >&5
7387
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7388
if eval "test \"\${$as_ac_Header+set}\" = set"; then
7389
echo $ECHO_N "(cached) $ECHO_C" >&6
7391
eval "$as_ac_Header=$ac_header_preproc"
7393
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7394
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7397
if test `eval echo '${'$as_ac_Header'}'` = yes; then
7398
cat >>confdefs.h <<_ACEOF
7399
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7407
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7409
# find the maximum length of command line arguments
7410
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7411
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7412
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7413
echo $ECHO_N "(cached) $ECHO_C" >&6
7420
# On DJGPP, this test can blow up pretty badly due to problems in libc
7421
# (any single argument exceeding 2000 bytes causes a buffer overrun
7422
# during glob expansion). Even if it were fixed, the result of this
7423
# check would be larger than it should be.
7424
lt_cv_sys_max_cmd_len=12288; # 12K is about right
7428
# Under GNU Hurd, this test is not required because there is
7429
# no limit to the length of command line arguments.
7430
# Libtool will interpret -1 as no limit whatsoever
7431
lt_cv_sys_max_cmd_len=-1;
7435
# If test is not a shell built-in, we'll probably end up computing a
7436
# maximum length that is only half of the actual maximum length, but
7438
while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
7439
= "XX$testring") >/dev/null 2>&1 &&
7440
new_result=`expr "X$testring" : ".*" 2>&1` &&
7441
lt_cv_sys_max_cmd_len=$new_result &&
7442
test $i != 17 # 1/2 MB should be enough
7445
testring=$testring$testring
7448
# Add a significant safety factor because C++ compilers can tack on massive
7449
# amounts of additional arguments before passing them to the linker.
7450
# It appears as though 1/2 is a usable value.
7451
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7457
if test -n $lt_cv_sys_max_cmd_len ; then
7458
echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7459
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7461
echo "$as_me:$LINENO: result: none" >&5
7462
echo "${ECHO_T}none" >&6
7468
# Check for command to grab the raw symbol name followed by C symbol from nm.
7469
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7470
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7471
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7472
echo $ECHO_N "(cached) $ECHO_C" >&6
7475
# These are sane defaults that work on at least a few old systems.
7476
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7478
# Character class describing NM global symbol codes.
7479
symcode='[BCDEGRST]'
7481
# Regexp to match symbols that can be accessed directly from C.
7482
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7484
# Transform the above into a raw symbol and a C symbol.
7485
symxfrm='\1 \2\3 \3'
7487
# Transform an extracted symbol line into a proper C declaration
7488
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7490
# Transform an extracted symbol line into symbol name and symbol address
7491
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'"
7493
# Define system-specific variables.
7498
cygwin* | mingw* | pw32*)
7499
symcode='[ABCDGISTW]'
7501
hpux*) # Its linker distinguishes data from code symbols
7502
if test "$host_cpu" = ia64; then
7503
symcode='[ABCDEGRST]'
7505
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7506
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'"
7509
symcode='[BCDEGRST]'
7519
# Handle CRLF in mingw tool chain
7523
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7527
# If we're using GNU nm, then use its standard symbol codes.
7528
if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
7529
symcode='[ABCDGISTW]'
7532
# Try without a prefix undercore, then with it.
7533
for ac_symprfx in "" "_"; do
7535
# Write the raw and C identifiers.
7536
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7538
# Check to see that the pipe works correctly.
7542
cat > conftest.$ac_ext <<EOF
7547
void nm_test_func(){}
7551
int main(){nm_test_var='a';nm_test_func();return(0);}
7554
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7555
(eval $ac_compile) 2>&5
7557
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7558
(exit $ac_status); }; then
7559
# Now try to grab the symbols.
7561
if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7562
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7564
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7565
(exit $ac_status); } && test -s "$nlist"; then
7566
# Try sorting and uniquifying the output.
7567
if sort "$nlist" | uniq > "$nlist"T; then
7568
mv -f "$nlist"T "$nlist"
7573
# Make sure that we snagged all the symbols we need.
7574
if egrep ' nm_test_var$' "$nlist" >/dev/null; then
7575
if egrep ' nm_test_func$' "$nlist" >/dev/null; then
7576
cat <<EOF > conftest.$ac_ext
7582
# Now generate the symbol file.
7583
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7585
cat <<EOF >> conftest.$ac_ext
7586
#if defined (__STDC__) && __STDC__
7587
# define lt_ptr_t void *
7589
# define lt_ptr_t char *
7593
/* The mapping between symbol names and symbols. */
7598
lt_preloaded_symbols[] =
7601
sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7602
cat <<\EOF >> conftest.$ac_ext
7610
# Now try linking the two files.
7611
mv conftest.$ac_objext conftstm.$ac_objext
7612
lt_save_LIBS="$LIBS"
7613
lt_save_CFLAGS="$CFLAGS"
7614
LIBS="conftstm.$ac_objext"
7615
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7616
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7617
(eval $ac_link) 2>&5
7619
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7620
(exit $ac_status); } && test -s conftest${ac_exeext}; then
7623
LIBS="$lt_save_LIBS"
7624
CFLAGS="$lt_save_CFLAGS"
7626
echo "cannot find nm_test_func in $nlist" >&5
7629
echo "cannot find nm_test_var in $nlist" >&5
7632
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7635
echo "$progname: failed program was:" >&5
7636
cat conftest.$ac_ext >&5
7638
rm -f conftest* conftst*
7640
# Do not use the global_symbol_pipe unless it works.
7641
if test "$pipe_works" = yes; then
7644
lt_cv_sys_global_symbol_pipe=
7650
if test -z "$lt_cv_sys_global_symbol_pipe"; then
7651
lt_cv_sys_global_symbol_to_cdecl=
7653
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7654
echo "$as_me:$LINENO: result: failed" >&5
7655
echo "${ECHO_T}failed" >&6
7657
echo "$as_me:$LINENO: result: ok" >&5
7658
echo "${ECHO_T}ok" >&6
7661
echo "$as_me:$LINENO: checking for objdir" >&5
7662
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7663
if test "${lt_cv_objdir+set}" = set; then
7664
echo $ECHO_N "(cached) $ECHO_C" >&6
7666
rm -f .libs 2>/dev/null
7667
mkdir .libs 2>/dev/null
7668
if test -d .libs; then
7671
# MS-DOS does not allow filenames that begin with a dot.
7674
rmdir .libs 2>/dev/null
7676
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7677
echo "${ECHO_T}$lt_cv_objdir" >&6
7678
objdir=$lt_cv_objdir
7686
# AIX sometimes has problems with the GCC collect2 program. For some
7687
# reason, if we set the COLLECT_NAMES environment variable, the problems
7688
# vanish in a puff of smoke.
7689
if test "X${COLLECT_NAMES+set}" != Xset; then
7691
export COLLECT_NAMES
7696
# Sed substitution that helps us do robust quoting. It backslashifies
7697
# metacharacters that are still active within double-quoted strings.
7698
Xsed='sed -e s/^X//'
7699
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7701
# Same as above, but do not quote variable references.
7702
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7704
# Sed substitution to delay expansion of an escaped shell variable in a
7705
# double_quote_subst'ed string.
7706
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7708
# Sed substitution to avoid accidental globbing in evaled expressions
7709
no_glob_subst='s/\*/\\\*/g'
7715
default_ofile=libtool
7716
can_build_shared=yes
7718
# All known linkers require a `.a' archive for static linking (except M$VC,
7719
# which needs '.lib').
7721
ltmain="$ac_aux_dir/ltmain.sh"
7722
ofile="$default_ofile"
7723
with_gnu_ld="$lt_cv_prog_gnu_ld"
7725
if test -n "$ac_tool_prefix"; then
7726
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7727
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7728
echo "$as_me:$LINENO: checking for $ac_word" >&5
7729
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7730
if test "${ac_cv_prog_RANLIB+set}" = set; then
7731
echo $ECHO_N "(cached) $ECHO_C" >&6
7733
if test -n "$RANLIB"; then
7734
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7736
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7740
test -z "$as_dir" && as_dir=.
7741
for ac_exec_ext in '' $ac_executable_extensions; do
7742
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7743
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7744
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7752
RANLIB=$ac_cv_prog_RANLIB
7753
if test -n "$RANLIB"; then
7754
echo "$as_me:$LINENO: result: $RANLIB" >&5
7755
echo "${ECHO_T}$RANLIB" >&6
7757
echo "$as_me:$LINENO: result: no" >&5
7758
echo "${ECHO_T}no" >&6
7762
if test -z "$ac_cv_prog_RANLIB"; then
7763
ac_ct_RANLIB=$RANLIB
7764
# Extract the first word of "ranlib", so it can be a program name with args.
7765
set dummy ranlib; ac_word=$2
7766
echo "$as_me:$LINENO: checking for $ac_word" >&5
7767
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7768
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7769
echo $ECHO_N "(cached) $ECHO_C" >&6
7771
if test -n "$ac_ct_RANLIB"; then
7772
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7774
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7778
test -z "$as_dir" && as_dir=.
7779
for ac_exec_ext in '' $ac_executable_extensions; do
7780
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7781
ac_cv_prog_ac_ct_RANLIB="ranlib"
7782
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7788
test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7791
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7792
if test -n "$ac_ct_RANLIB"; then
7793
echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7794
echo "${ECHO_T}$ac_ct_RANLIB" >&6
7796
echo "$as_me:$LINENO: result: no" >&5
7797
echo "${ECHO_T}no" >&6
7800
RANLIB=$ac_ct_RANLIB
7802
RANLIB="$ac_cv_prog_RANLIB"
7805
if test -n "$ac_tool_prefix"; then
7806
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7807
set dummy ${ac_tool_prefix}strip; ac_word=$2
7808
echo "$as_me:$LINENO: checking for $ac_word" >&5
7809
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7810
if test "${ac_cv_prog_STRIP+set}" = set; then
7811
echo $ECHO_N "(cached) $ECHO_C" >&6
7813
if test -n "$STRIP"; then
7814
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7816
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7820
test -z "$as_dir" && as_dir=.
7821
for ac_exec_ext in '' $ac_executable_extensions; do
7822
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7823
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7824
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7832
STRIP=$ac_cv_prog_STRIP
7833
if test -n "$STRIP"; then
7834
echo "$as_me:$LINENO: result: $STRIP" >&5
7835
echo "${ECHO_T}$STRIP" >&6
7837
echo "$as_me:$LINENO: result: no" >&5
7838
echo "${ECHO_T}no" >&6
7842
if test -z "$ac_cv_prog_STRIP"; then
7844
# Extract the first word of "strip", so it can be a program name with args.
7845
set dummy strip; ac_word=$2
7846
echo "$as_me:$LINENO: checking for $ac_word" >&5
7847
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7848
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7849
echo $ECHO_N "(cached) $ECHO_C" >&6
7851
if test -n "$ac_ct_STRIP"; then
7852
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7854
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7858
test -z "$as_dir" && as_dir=.
7859
for ac_exec_ext in '' $ac_executable_extensions; do
7860
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7861
ac_cv_prog_ac_ct_STRIP="strip"
7862
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7868
test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7871
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7872
if test -n "$ac_ct_STRIP"; then
7873
echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7874
echo "${ECHO_T}$ac_ct_STRIP" >&6
7876
echo "$as_me:$LINENO: result: no" >&5
7877
echo "${ECHO_T}no" >&6
7882
STRIP="$ac_cv_prog_STRIP"
7887
old_CFLAGS="$CFLAGS"
7889
# Set sane defaults for various variables
7890
test -z "$AR" && AR=ar
7891
test -z "$AR_FLAGS" && AR_FLAGS=cru
7892
test -z "$AS" && AS=as
7893
test -z "$CC" && CC=cc
7894
test -z "$LTCC" && LTCC=$CC
7895
test -z "$DLLTOOL" && DLLTOOL=dlltool
7896
test -z "$LD" && LD=ld
7897
test -z "$LN_S" && LN_S="ln -s"
7898
test -z "$MAGIC_CMD" && MAGIC_CMD=file
7899
test -z "$NM" && NM=nm
7900
test -z "$SED" && SED=sed
7901
test -z "$OBJDUMP" && OBJDUMP=objdump
7902
test -z "$RANLIB" && RANLIB=:
7903
test -z "$STRIP" && STRIP=:
7904
test -z "$ac_objext" && ac_objext=o
7906
# Determine commands to create old-style static archives.
7907
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7908
old_postinstall_cmds='chmod 644 $oldlib'
7909
old_postuninstall_cmds=
7911
if test -n "$RANLIB"; then
7914
old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7917
old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7920
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7923
# Only perform the check for file, if the check method requires it
7924
case $deplibs_check_method in
7926
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7927
echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7928
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7929
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7930
echo $ECHO_N "(cached) $ECHO_C" >&6
7934
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7937
lt_save_MAGIC_CMD="$MAGIC_CMD"
7938
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7939
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7940
for ac_dir in $ac_dummy; do
7942
test -z "$ac_dir" && ac_dir=.
7943
if test -f $ac_dir/${ac_tool_prefix}file; then
7944
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7945
if test -n "$file_magic_test_file"; then
7946
case $deplibs_check_method in
7948
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7949
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7950
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7951
egrep "$file_magic_regex" > /dev/null; then
7956
*** Warning: the command libtool uses to detect shared libraries,
7957
*** $file_magic_cmd, produces output that libtool cannot recognize.
7958
*** The result is that libtool may fail to recognize shared libraries
7959
*** as such. This will affect the creation of libtool libraries that
7960
*** depend on shared libraries, but programs linked with such libtool
7961
*** libraries will work regardless of this problem. Nevertheless, you
7962
*** may want to report the problem to your system manager and/or to
7963
*** bug-libtool@gnu.org
7973
MAGIC_CMD="$lt_save_MAGIC_CMD"
7978
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7979
if test -n "$MAGIC_CMD"; then
7980
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7981
echo "${ECHO_T}$MAGIC_CMD" >&6
7983
echo "$as_me:$LINENO: result: no" >&5
7984
echo "${ECHO_T}no" >&6
7987
if test -z "$lt_cv_path_MAGIC_CMD"; then
7988
if test -n "$ac_tool_prefix"; then
7989
echo "$as_me:$LINENO: checking for file" >&5
7990
echo $ECHO_N "checking for file... $ECHO_C" >&6
7991
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7992
echo $ECHO_N "(cached) $ECHO_C" >&6
7996
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7999
lt_save_MAGIC_CMD="$MAGIC_CMD"
8000
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8001
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8002
for ac_dir in $ac_dummy; do
8004
test -z "$ac_dir" && ac_dir=.
8005
if test -f $ac_dir/file; then
8006
lt_cv_path_MAGIC_CMD="$ac_dir/file"
8007
if test -n "$file_magic_test_file"; then
8008
case $deplibs_check_method in
8010
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
8011
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8012
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8013
egrep "$file_magic_regex" > /dev/null; then
8018
*** Warning: the command libtool uses to detect shared libraries,
8019
*** $file_magic_cmd, produces output that libtool cannot recognize.
8020
*** The result is that libtool may fail to recognize shared libraries
8021
*** as such. This will affect the creation of libtool libraries that
8022
*** depend on shared libraries, but programs linked with such libtool
8023
*** libraries will work regardless of this problem. Nevertheless, you
8024
*** may want to report the problem to your system manager and/or to
8025
*** bug-libtool@gnu.org
8035
MAGIC_CMD="$lt_save_MAGIC_CMD"
8040
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8041
if test -n "$MAGIC_CMD"; then
8042
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8043
echo "${ECHO_T}$MAGIC_CMD" >&6
8045
echo "$as_me:$LINENO: result: no" >&5
8046
echo "${ECHO_T}no" >&6
8061
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8062
if test "${enable_libtool_lock+set}" = set; then
8063
enableval="$enable_libtool_lock"
8066
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8069
# Check whether --with-pic or --without-pic was given.
8070
if test "${with_pic+set}" = set; then
8076
test -z "$pic_mode" && pic_mode=default
8078
# Use C for the default configuration in the libtool script
8082
ac_cpp='$CPP $CPPFLAGS'
8083
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8084
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8085
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8088
# Source file extension for C test sources.
8091
# Object file extension for compiled C test sources.
8095
# Code to be used in simple compile tests
8096
lt_simple_compile_test_code="int some_variable = 0;"
8098
# Code to be used in simple link tests
8099
lt_simple_link_test_code='main(){return(0);}'
8102
# If no C compiler was specified, use CC.
8105
# Allow CC to be a program name with arguments.
8111
# Check for any special shared library compilation flags.
8114
if test "$GCC" = no; then
8117
lt_prog_cc_shlib='-belf'
8121
if test -n "$lt_prog_cc_shlib"; then
8122
{ echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
8123
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
8124
if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
8126
{ echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
8127
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
8128
lt_cv_prog_cc_can_build_shared=no
8134
# Check to make sure the static flag actually works.
8136
echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
8137
echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
8138
if test "${lt_prog_compiler_static_works+set}" = set; then
8139
echo $ECHO_N "(cached) $ECHO_C" >&6
8141
lt_prog_compiler_static_works=no
8142
save_LDFLAGS="$LDFLAGS"
8143
LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
8144
echo "$lt_simple_link_test_code" > conftest.$ac_ext
8145
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8146
# The compiler can only warn and ignore the option if not recognized
8147
# So say no if there are warnings
8148
if test -s conftest.err; then
8149
# Append any errors to the config.log.
8150
cat conftest.err 1>&5
8152
lt_prog_compiler_static_works=yes
8156
LDFLAGS="$save_LDFLAGS"
8159
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8160
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8162
if test x"$lt_prog_compiler_static_works" = xyes; then
8165
lt_prog_compiler_static=
8171
lt_prog_compiler_no_builtin_flag=
8173
if test "$GCC" = yes; then
8174
lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8176
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8177
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8178
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8179
echo $ECHO_N "(cached) $ECHO_C" >&6
8181
lt_cv_prog_compiler_rtti_exceptions=no
8182
ac_outfile=conftest.$ac_objext
8183
save_CFLAGS="$CFLAGS"
8184
CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
8185
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8186
if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
8187
# The compiler can only warn and ignore the option if not recognized
8188
# So say no if there are warnings
8189
if test -s conftest.err; then
8190
# Append any errors to the config.log.
8191
cat conftest.err 1>&5
8193
lt_cv_prog_compiler_rtti_exceptions=yes
8197
CFLAGS="$save_CFLAGS"
8200
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8201
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8203
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8204
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8211
lt_prog_compiler_wl=
8212
lt_prog_compiler_pic=
8213
lt_prog_compiler_static=
8215
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8216
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8218
if test "$GCC" = yes; then
8219
lt_prog_compiler_wl='-Wl,'
8220
lt_prog_compiler_static='-static'
8224
# All AIX code is PIC.
8225
if test "$host_cpu" = ia64; then
8226
# AIX 5 now supports IA64 processor
8227
lt_prog_compiler_static='-Bstatic'
8232
# FIXME: we need at least 68020 code to build shared libraries, but
8233
# adding the `-m68020' flag to GCC prevents building anything better,
8235
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8238
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8239
# PIC is the default for these OSes.
8242
cygwin* | mingw* | pw32* | os2*)
8243
# This hack is so that the source file can tell whether it is being
8244
# built for inclusion in a dll (and should export symbols for example).
8245
lt_prog_compiler_pic='-DDLL_EXPORT'
8248
darwin* | rhapsody*)
8249
# PIC is the default on this platform
8250
# Common symbols not allowed in MH_DYLIB files
8251
lt_prog_compiler_pic='-fno-common'
8255
# Just because we use GCC doesn't mean we suddenly get shared libraries
8256
# on systems that don't support them.
8257
lt_prog_compiler_can_build_shared=no
8262
if test -d /usr/nec; then
8263
lt_prog_compiler_pic=-Kconform_pic
8268
# PIC is the default for IA64 HP-UX, but not for PA HP-UX.
8269
if test "$host_cpu" != ia64; then
8270
lt_prog_compiler_pic='-fPIC'
8275
lt_prog_compiler_pic='-fPIC'
8279
# PORTME Check for flag to pass linker flags through the system compiler.
8282
lt_prog_compiler_wl='-Wl,'
8283
if test "$host_cpu" = ia64; then
8284
# AIX 5 now supports IA64 processor
8285
lt_prog_compiler_static='-Bstatic'
8287
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8291
cygwin* | mingw* | pw32* | os2*)
8292
# This hack is so that the source file can tell whether it is being
8293
# built for inclusion in a dll (and should export symbols for example).
8294
lt_prog_compiler_pic='-DDLL_EXPORT'
8297
hpux9* | hpux10* | hpux11*)
8298
lt_prog_compiler_wl='-Wl,'
8299
if test "$host_cpu" != ia64; then
8300
lt_prog_compiler_pic='+Z'
8302
# Is there a better lt_prog_compiler_static that works with the bundled CC?
8303
lt_prog_compiler_static='${wl}-a ${wl}archive'
8306
irix5* | irix6* | nonstopux*)
8307
lt_prog_compiler_wl='-Wl,'
8308
# PIC (with -KPIC) is the default.
8309
lt_prog_compiler_static='-non_shared'
8313
lt_prog_compiler_pic='-KPIC'
8314
lt_prog_compiler_static='-Bstatic'
8317
osf3* | osf4* | osf5*)
8318
lt_prog_compiler_wl='-Wl,'
8319
# All OSF/1 code is PIC.
8320
lt_prog_compiler_static='-non_shared'
8324
lt_prog_compiler_pic='-Kpic'
8325
lt_prog_compiler_static='-dn'
8329
lt_prog_compiler_wl='-Wl,'
8330
lt_prog_compiler_pic='-KPIC'
8331
lt_prog_compiler_static='-Bstatic'
8335
lt_prog_compiler_wl='-Qoption ld '
8336
lt_prog_compiler_pic='-PIC'
8337
lt_prog_compiler_static='-Bstatic'
8340
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8341
if test "x$host_vendor" = xsni; then
8342
lt_prog_compiler_wl='-LD'
8344
lt_prog_compiler_wl='-Wl,'
8346
lt_prog_compiler_pic='-KPIC'
8347
lt_prog_compiler_static='-Bstatic'
8351
if test -d /usr/nec ;then
8352
lt_prog_compiler_pic='-Kconform_pic'
8353
lt_prog_compiler_static='-Bstatic'
8358
lt_prog_compiler_pic='-pic'
8359
lt_prog_compiler_static='-Bstatic'
8363
lt_prog_compiler_can_build_shared=no
8368
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8369
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8372
# Check to make sure the PIC flag actually works.
8374
if test -n "$lt_prog_compiler_pic"; then
8375
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8376
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8377
if test "${lt_prog_compiler_pic_works+set}" = set; then
8378
echo $ECHO_N "(cached) $ECHO_C" >&6
8380
lt_prog_compiler_pic_works=no
8381
ac_outfile=conftest.$ac_objext
8382
save_CFLAGS="$CFLAGS"
8383
CFLAGS="$CFLAGS $lt_prog_compiler_pic -DPIC"
8384
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8385
if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
8386
# The compiler can only warn and ignore the option if not recognized
8387
# So say no if there are warnings
8388
if test -s conftest.err; then
8389
# Append any errors to the config.log.
8390
cat conftest.err 1>&5
8392
lt_prog_compiler_pic_works=yes
8396
CFLAGS="$save_CFLAGS"
8399
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8400
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8402
if test x"$lt_prog_compiler_pic_works" = xyes; then
8403
case $lt_prog_compiler_pic in
8405
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8408
lt_prog_compiler_pic=
8409
lt_prog_compiler_can_build_shared=no
8414
# For platforms which do not support PIC, -DPIC is meaningless:
8416
lt_prog_compiler_pic=
8419
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8423
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8424
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8425
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8426
echo $ECHO_N "(cached) $ECHO_C" >&6
8428
lt_cv_prog_compiler_c_o=no
8429
$rm -r conftest 2>/dev/null
8433
save_CFLAGS="$CFLAGS"
8434
CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
8435
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8437
# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
8438
# that will create temporary files in the current directory regardless of
8439
# the output directory. Thus, making CWD read-only will cause this test
8440
# to fail, enabling locking or at least warning the user not to do parallel
8444
if (eval $ac_compile 2>out/conftest.err) && test -s out/conftest2.$ac_objext
8446
# The compiler can only warn and ignore the option if not recognized
8447
# So say no if there are warnings
8448
if test -s out/conftest.err; then
8449
# Append any errors to the config.log.
8450
cat out/conftest.err 1>&5
8452
lt_cv_prog_compiler_c_o=yes
8455
CFLAGS="$save_CFLAGS"
8464
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8465
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8468
hard_links="nottested"
8469
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8470
# do not overwrite the value of need_locks provided by the user
8471
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8472
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8475
ln conftest.a conftest.b 2>/dev/null && hard_links=no
8477
ln conftest.a conftest.b 2>&5 || hard_links=no
8478
ln conftest.a conftest.b 2>/dev/null && hard_links=no
8479
echo "$as_me:$LINENO: result: $hard_links" >&5
8480
echo "${ECHO_T}$hard_links" >&6
8481
if test "$hard_links" = no; then
8482
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8483
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8490
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8491
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8494
allow_undefined_flag=
8497
archive_cmds_need_lc=
8498
archive_expsym_cmds=
8499
old_archive_From_new_cmds=
8500
old_archive_from_expsyms_cmds=
8501
export_dynamic_flag_spec=
8502
whole_archive_flag_spec=
8503
thread_safe_flag_spec=
8504
hardcode_libdir_flag_spec=
8505
hardcode_libdir_separator=
8508
hardcode_shlibpath_var=unsupported
8509
link_all_deplibs=unknown
8510
always_export_symbols=no
8511
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
8512
# include_expsyms should be a list of space-separated symbols to be *always*
8513
# included in the symbol list
8515
# exclude_expsyms can be an egrep regular expression of symbols to exclude
8516
# it will be wrapped by ` (' and `)$', so one must not match beginning or
8517
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8518
# as well as any symbol that contains `d'.
8519
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8520
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8521
# platforms (ab)use it in PIC code, but their linkers get confused if
8522
# the symbol is explicitly referenced. Since portable code cannot
8523
# rely on this symbol name, it's probably fine to never include it in
8524
# preloaded symbol tables.
8525
extract_expsyms_cmds=
8528
cygwin* | mingw* | pw32*)
8529
# FIXME: the MSVC++ port hasn't been tested in a loooong time
8530
# When not using gcc, we currently assume that we are using
8531
# Microsoft Visual C++.
8532
if test "$GCC" != yes; then
8542
if test "$with_gnu_ld" = yes; then
8543
# If archive_cmds runs LD, not CC, wlarc should be empty
8546
# See if GNU ld supports shared libraries.
8548
aix3* | aix4* | aix5*)
8549
# On AIX/PPC, the GNU linker is very broken
8550
if test "$host_cpu" != ia64; then
8554
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8555
*** to be unable to reliably create shared libraries on AIX.
8556
*** Therefore, libtool is disabling shared libraries support. If you
8557
*** really care for shared libraries, you may want to modify your PATH
8558
*** so that a non-GNU linker is found, and then restart.
8565
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)'
8566
hardcode_libdir_flag_spec='-L$libdir'
8567
hardcode_minus_L=yes
8569
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8570
# that the semantics of dynamic libraries on AmigaOS, at least up
8571
# to version 4, is to share data among multiple programs linked
8572
# with the same dynamic library. Since this doesn't match the
8573
# behavior of shared libraries on other platforms, we can't use
8579
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
8580
allow_undefined_flag=unsupported
8581
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8582
# support --undefined. This deserves some investigation. FIXME
8583
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8589
cygwin* | mingw* | pw32*)
8590
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, as there is
8591
# no search path for DLLs.
8592
hardcode_libdir_flag_spec='-L$libdir'
8593
allow_undefined_flag=unsupported
8594
always_export_symbols=yes
8596
extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
8597
sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
8598
test -f $output_objdir/impgen.exe || (cd $output_objdir && \
8599
if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
8600
else $CC -o impgen impgen.c ; fi)~
8601
$output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
8603
old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
8605
# cygwin and mingw dlls have different entry points and sets of symbols
8607
# FIXME: what about values for MSVC?
8608
dll_entry=__cygwin_dll_entry@12
8609
dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
8613
dll_entry=_DllMainCRTStartup@12
8614
dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
8618
# mingw and cygwin differ, and it's simplest to just exclude the union
8619
# of the two symbol sets.
8620
dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
8622
# recent cygwin and mingw systems supply a stub DllMain which the user
8623
# can override, but on older systems we have to supply one (in ltdll.c)
8624
if test "x$lt_cv_need_dllmain" = "xyes"; then
8625
ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
8626
ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
8627
test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
8633
# Extract the symbol export list from an `--export-all' def file,
8634
# then regenerate the def file from the symbol export list, so that
8635
# the compiled dll only exports the symbol export list.
8636
# Be careful not to strip the DATA tag left by newer dlltools.
8637
export_symbols_cmds="$ltdll_cmds"'
8638
$DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
8639
sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
8641
# If the export-symbols file already is a .def file (1st line
8642
# is EXPORTS), use it as is.
8643
# If DATA tags from a recent dlltool are present, honour them!
8644
archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
8645
cp $export_symbols $output_objdir/$soname-def;
8647
echo EXPORTS > $output_objdir/$soname-def;
8649
cat $export_symbols | while read symbol; do
8652
2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
8653
*) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
8655
_lt_hint=`expr 1 + \$_lt_hint`;
8659
$CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
8660
$DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
8661
$CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
8662
$DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
8663
$CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
8667
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8668
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8671
archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8672
archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8677
if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
8681
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8682
*** create shared libraries on Solaris systems. Therefore, libtool
8683
*** is disabling shared libraries support. We urge you to upgrade GNU
8684
*** binutils to release 2.9.1 or newer. Another option is to modify
8685
*** your PATH or compiler configuration so that the native linker is
8686
*** used, and then restart.
8689
elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
8690
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8691
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8698
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8701
hardcode_shlibpath_var=no
8705
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
8706
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8707
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8714
if test "$ld_shlibs" = yes; then
8715
runpath_var=LD_RUN_PATH
8716
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8717
export_dynamic_flag_spec='${wl}--export-dynamic'
8719
cygwin* | mingw* | pw32*)
8720
# dlltool doesn't understand --whole-archive et. al.
8721
whole_archive_flag_spec=
8724
# ancient GNU ld didn't support --whole-archive et. al.
8725
if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
8726
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8728
whole_archive_flag_spec=
8734
# PORTME fill in a description of your system's linker (not GNU ld)
8737
allow_undefined_flag=unsupported
8738
always_export_symbols=yes
8739
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'
8740
# Note: this linker hardcodes the directories in LIBPATH if there
8741
# are no directories specified by -L.
8742
hardcode_minus_L=yes
8743
if test "$GCC" = yes && test -z "$link_static_flag"; then
8744
# Neither direct hardcoding nor static linking is supported with a
8746
hardcode_direct=unsupported
8751
if test "$host_cpu" = ia64; then
8752
# On IA64, the linker does run time linking by default, so we don't
8753
# have to do anything special.
8754
aix_use_runtimelinking=no
8755
exp_sym_flag='-Bexport'
8758
# If we're using GNU nm, then we don't want the "-C" option.
8759
# -C means demangle to AIX nm, but means don't demangle with GNU nm
8760
if $NM -V 2>&1 | egrep '(GNU)' > /dev/null; then
8761
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'
8763
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'
8766
# KDE requires run time linking. Make it the default.
8767
aix_use_runtimelinking=yes
8768
exp_sym_flag='-bexport'
8769
no_entry_flag='-bnoentry'
8772
# When large executables or shared objects are built, AIX ld can
8773
# have problems creating the table of contents. If linking a library
8774
# or program results in "error TOC overflow" add -mminimal-toc to
8775
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8776
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8780
hardcode_libdir_separator=':'
8781
link_all_deplibs=yes
8783
if test "$GCC" = yes; then
8784
case $host_os in aix4.012|aix4.012.*)
8785
# We only want to do this on AIX 4.2 and lower, the check
8786
# below for broken collect2 doesn't work under 4.3+
8787
collect2name=`${CC} -print-prog-name=collect2`
8788
if test -f "$collect2name" && \
8789
strings "$collect2name" | grep resolve_lib_name >/dev/null
8791
# We have reworked collect2
8794
# We have old collect2
8795
hardcode_direct=unsupported
8796
# It fails to find uninstalled libraries when the uninstalled
8797
# path is not listed in the libpath. Setting hardcode_minus_L
8798
# to unsupported forces relinking
8799
hardcode_minus_L=yes
8800
hardcode_libdir_flag_spec='-L$libdir'
8801
hardcode_libdir_separator=
8804
shared_flag='-shared'
8807
if test "$host_cpu" = ia64; then
8808
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8809
# chokes on -Wl,-G. The following line is correct:
8812
if test "$aix_use_runtimelinking" = yes; then
8813
shared_flag='-qmkshrobj ${wl}-G'
8815
shared_flag='-qmkshrobj'
8820
# Let the compiler handle the export list.
8821
always_export_symbols=no
8822
if test "$aix_use_runtimelinking" = yes; then
8823
# Warning - without using the other runtime loading flags (-brtl),
8824
# -berok will link without error, but may produce a broken library.
8825
allow_undefined_flag='-berok'
8826
# Determine the default libpath from the value encoded in an empty executable.
8827
cat >conftest.$ac_ext <<_ACEOF
8828
#line $LINENO "configure"
8831
cat confdefs.h >>conftest.$ac_ext
8832
cat >>conftest.$ac_ext <<_ACEOF
8833
/* end confdefs.h. */
8843
rm -f conftest.$ac_objext conftest$ac_exeext
8844
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8845
(eval $ac_link) 2>&5
8847
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8848
(exit $ac_status); } &&
8849
{ ac_try='test -s conftest$ac_exeext'
8850
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8853
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8854
(exit $ac_status); }; }; then
8856
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8858
# Check for a 64-bit object if we didn't find anything.
8859
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; }
8862
echo "$as_me: failed program was:" >&5
8863
sed 's/^/| /' conftest.$ac_ext >&5
8866
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8867
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8869
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8870
archive_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` '" $shared_flag"
8871
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}$exp_sym_flag:\$export_symbols $shared_flag"
8873
if test "$host_cpu" = ia64; then
8874
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8875
allow_undefined_flag="-z nodefs"
8876
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"
8878
# Determine the default libpath from the value encoded in an empty executable.
8879
cat >conftest.$ac_ext <<_ACEOF
8880
#line $LINENO "configure"
8883
cat confdefs.h >>conftest.$ac_ext
8884
cat >>conftest.$ac_ext <<_ACEOF
8885
/* end confdefs.h. */
8895
rm -f conftest.$ac_objext conftest$ac_exeext
8896
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8897
(eval $ac_link) 2>&5
8899
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8900
(exit $ac_status); } &&
8901
{ ac_try='test -s conftest$ac_exeext'
8902
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8905
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8906
(exit $ac_status); }; }; then
8908
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8910
# Check for a 64-bit object if we didn't find anything.
8911
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; }
8914
echo "$as_me: failed program was:" >&5
8915
sed 's/^/| /' conftest.$ac_ext >&5
8918
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8919
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8921
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8922
# Warning - without using the other run time loading flags,
8923
# -berok will link without error, but may produce a broken library.
8924
no_undefined_flag=' ${wl}-bernotok'
8925
allow_undefined_flag=' ${wl}-berok'
8926
# -bexpall does not export symbols beginning with underscore (_)
8927
always_export_symbols=yes
8928
# Exported symbols can be pulled into shared objects from archives
8929
whole_archive_flag_spec=' '
8930
archive_cmds_need_lc=yes
8931
# This is similar to how AIX traditionally builds it's shared libraries.
8932
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'
8938
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)'
8939
hardcode_libdir_flag_spec='-L$libdir'
8940
hardcode_minus_L=yes
8941
# see comment about different semantics on the GNU ld section
8946
export_dynamic_flag_spec=-rdynamic
8949
cygwin* | mingw* | pw32*)
8950
# When not using gcc, we currently assume that we are using
8951
# Microsoft Visual C++.
8952
# hardcode_libdir_flag_spec is actually meaningless, as there is
8953
# no search path for DLLs.
8954
hardcode_libdir_flag_spec=' '
8955
allow_undefined_flag=unsupported
8956
# Tell ltmain to make .lib files, not .a files.
8958
# FIXME: Setting linknames here is a bad hack.
8959
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8960
# The linker will automatically build a .lib file if we build a DLL.
8961
old_archive_From_new_cmds='true'
8962
# FIXME: Should let the user specify the lib program.
8963
old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8964
fix_srcfile_path='`cygpath -w "$srcfile"`'
8967
darwin* | rhapsody*)
8969
rhapsody* | darwin1.[012])
8970
allow_undefined_flag='-undefined suppress'
8973
allow_undefined_flag='-flat_namespace -undefined suppress'
8977
# FIXME: Relying on posixy $() will cause problems for
8978
# cross-compilation, but unfortunately the echo tests do not
8979
# yet detect zsh echo's removal of \ escapes. Also zsh mangles
8980
# `"' quotes if we put them in here... so don't!
8981
archive_cmds='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
8982
# We need to add '_' to the symbols in $export_symbols first
8983
#_LT_AC_TAGVAR(archive_expsym_cmds, )="$_LT_AC_TAGVAR(archive_cmds, )"' && strip -s $export_symbols'
8985
hardcode_shlibpath_var=no
8986
whole_archive_flag_spec='-all_load $convenience'
8990
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8991
hardcode_libdir_flag_spec='-L$libdir'
8992
hardcode_shlibpath_var=no
8999
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9000
# support. Future versions do this automatically, but an explicit c++rt0.o
9001
# does not break anything, and helps significantly (at the cost of a little
9004
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9005
hardcode_libdir_flag_spec='-R$libdir'
9007
hardcode_shlibpath_var=no
9010
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
9012
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9014
hardcode_minus_L=yes
9015
hardcode_shlibpath_var=no
9018
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9020
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9021
hardcode_libdir_flag_spec='-R$libdir'
9023
hardcode_shlibpath_var=no
9026
hpux9* | hpux10* | hpux11*)
9027
if test "$GCC" = yes; then
9030
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'
9033
if test "$host_cpu" = ia64; then
9034
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9036
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9043
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'
9046
if test "$host_cpu" = ia64; then
9047
archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
9049
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9054
if test "$host_cpu" = ia64; then
9055
hardcode_libdir_flag_spec='-L$libdir'
9057
hardcode_shlibpath_var=no
9059
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9060
hardcode_libdir_separator=:
9063
# hardcode_minus_L: Not really in the search PATH,
9064
# but as the default location of the library.
9065
hardcode_minus_L=yes
9066
export_dynamic_flag_spec='${wl}-E'
9069
irix5* | irix6* | nonstopux*)
9070
if test "$GCC" = yes; then
9071
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'
9073
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'
9075
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9076
hardcode_libdir_separator=:
9077
link_all_deplibs=yes
9081
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9082
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9084
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9086
hardcode_libdir_flag_spec='-R$libdir'
9088
hardcode_shlibpath_var=no
9092
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9094
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9095
hardcode_libdir_separator=:
9096
hardcode_shlibpath_var=no
9101
hardcode_shlibpath_var=no
9103
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9104
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
9105
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9106
export_dynamic_flag_spec='${wl}-E'
9109
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9110
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9111
hardcode_libdir_flag_spec='-R$libdir'
9114
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
9115
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9122
hardcode_libdir_flag_spec='-L$libdir'
9123
hardcode_minus_L=yes
9124
allow_undefined_flag=unsupported
9125
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'
9126
old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9130
if test "$GCC" = yes; then
9131
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9132
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'
9134
allow_undefined_flag=' -expect_unresolved \*'
9135
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'
9137
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9138
hardcode_libdir_separator=:
9141
osf4* | osf5*) # as osf3* with the addition of -msym flag
9142
if test "$GCC" = yes; then
9143
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9144
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'
9145
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9147
allow_undefined_flag=' -expect_unresolved \*'
9148
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'
9149
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9150
$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'
9152
# Both c and cxx compiler support -rpath directly
9153
hardcode_libdir_flag_spec='-rpath $libdir'
9155
hardcode_libdir_separator=:
9159
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9160
hardcode_shlibpath_var=no
9161
export_dynamic_flag_spec='${wl}-Bexport'
9162
runpath_var=LD_RUN_PATH
9163
hardcode_runpath_var=yes
9167
no_undefined_flag=' -z text'
9168
if test "$GCC" = yes; then
9169
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9170
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9171
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9173
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9174
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9175
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9177
hardcode_libdir_flag_spec='-R$libdir'
9178
hardcode_shlibpath_var=no
9180
solaris2.[0-5] | solaris2.[0-5].*) ;;
9181
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
9182
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9184
link_all_deplibs=yes
9188
if test "x$host_vendor" = xsequent; then
9189
# Use $CC to link under sequent, because it throws in some extra .o
9190
# files that make .init and .fini sections work.
9191
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9193
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9195
hardcode_libdir_flag_spec='-L$libdir'
9197
hardcode_minus_L=yes
9198
hardcode_shlibpath_var=no
9202
if test "x$host_vendor" = xsni; then
9203
archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
9204
hardcode_direct=yes # is this really true???
9206
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9207
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9209
runpath_var='LD_RUN_PATH'
9210
hardcode_shlibpath_var=no
9214
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9215
hardcode_shlibpath_var=no
9216
export_dynamic_flag_spec='-Bexport'
9220
if test -d /usr/nec; then
9221
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9222
hardcode_shlibpath_var=no
9223
runpath_var=LD_RUN_PATH
9224
hardcode_runpath_var=yes
9230
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9233
hardcode_shlibpath_var=no
9234
hardcode_runpath_var=yes
9235
runpath_var=LD_RUN_PATH
9238
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
9239
no_undefined_flag='${wl}-z ${wl}text'
9240
if test "$GCC" = yes; then
9241
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9243
archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9245
runpath_var='LD_RUN_PATH'
9246
hardcode_shlibpath_var=no
9250
no_undefined_flag=' -z text'
9251
# $CC -shared without GNU ld will not create a library from C++
9252
# object files and a static libstdc++, better avoid it by now
9253
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9254
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9255
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9256
hardcode_libdir_flag_spec=
9257
hardcode_shlibpath_var=no
9258
runpath_var='LD_RUN_PATH'
9262
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9263
hardcode_libdir_flag_spec='-L$libdir'
9264
hardcode_shlibpath_var=no
9273
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9274
echo "${ECHO_T}$ld_shlibs" >&6
9275
test "$ld_shlibs" = no && can_build_shared=no
9277
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9278
if test "$GCC" = yes; then
9279
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9283
# Do we need to explicitly link libc?
9285
archive_cmds_need_lc=yes
9286
if test "$enable_shared" = yes && test "$GCC" = yes; then
9287
case $archive_cmds in
9289
# FIXME: we may have to deal with multi-command sequences.
9292
# Test whether the compiler implicitly links with -lc since on some
9293
# systems, -lgcc has to come before -lc. If gcc already passes -lc
9294
# to ld, don't add -lc before -lgcc.
9295
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9296
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9298
echo 'static int dummy;' > conftest.$ac_ext
9300
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9301
(eval $ac_compile) 2>&5
9303
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9304
(exit $ac_status); } 2>conftest.err; then
9307
libobjs=conftest.$ac_objext
9309
wl=$lt_prog_compiler_wl
9315
lt_save_allow_undefined_flag=$allow_undefined_flag
9316
allow_undefined_flag=
9317
if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9318
(eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9320
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9321
(exit $ac_status); }
9323
archive_cmds_need_lc=no
9325
archive_cmds_need_lc=yes
9327
allow_undefined_flag=$lt_save_allow_undefined_flag
9329
cat conftest.err 1>&5
9332
echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9333
echo "${ECHO_T}$archive_cmds_need_lc" >&6
9338
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9339
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9341
if test -n "$hardcode_libdir_flag_spec" || \
9342
test -n "$runpath_var "; then
9344
# We can hardcode non-existant directories.
9345
if test "$hardcode_direct" != no &&
9346
# If the only mechanism to avoid hardcoding is shlibpath_var, we
9347
# have to relink, otherwise we might link with an installed library
9348
# when we should be linking with a yet-to-be-installed one
9349
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9350
test "$hardcode_minus_L" != no; then
9351
# Linking always hardcodes the temporary library directory.
9352
hardcode_action=relink
9354
# We can link without hardcoding, and we can hardcode nonexisting dirs.
9355
hardcode_action=immediate
9358
# We cannot hardcode anything, or else we can only hardcode existing
9360
hardcode_action=unsupported
9362
echo "$as_me:$LINENO: result: $hardcode_action" >&5
9363
echo "${ECHO_T}$hardcode_action" >&6
9365
if test "$hardcode_action" = relink; then
9366
# Fast installation is not supported
9367
enable_fast_install=no
9368
elif test "$shlibpath_overrides_runpath" = yes ||
9369
test "$enable_shared" = no; then
9370
# Fast installation is not necessary
9371
enable_fast_install=needless
9376
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9377
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9378
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9379
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9380
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9381
echo "$as_me:$LINENO: result: yes" >&5
9382
echo "${ECHO_T}yes" >&6
9384
echo "$as_me:$LINENO: result: no" >&5
9385
echo "${ECHO_T}no" >&6
9388
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9389
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9391
libname_spec='lib$name'
9398
shlibpath_overrides_runpath=unknown
9400
dynamic_linker="$host_os ld.so"
9401
sys_lib_dlsearch_path_spec="/lib /usr/lib"
9402
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9403
need_lib_prefix=unknown
9404
hardcode_into_libs=no
9406
# when you set need_version to no, make sure it does not cause -set_version
9407
# flags to be left without arguments
9408
need_version=unknown
9413
library_names_spec='${libname}${release}.so$versuffix $libname.a'
9414
shlibpath_var=LIBPATH
9416
# AIX 3 has no versioning support, so we append a major version to the name.
9417
soname_spec='${libname}${release}.so$major'
9422
if test "$host_cpu" = ia64; then
9423
# AIX 5 supports IA64
9424
library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
9425
shlibpath_var=LD_LIBRARY_PATH
9427
# With GCC up to 2.95.x, collect2 would create an import file
9428
# for dependence libraries. The import file would start with
9429
# the line `#! .'. This would cause the generated library to
9430
# depend on `.', always an invalid library. This was fixed in
9431
# development snapshots of GCC prior to 3.0.
9433
aix4 | aix4.[01] | aix4.[01].*)
9434
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9436
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9443
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9444
# soname into executable. Probably we can add versioning support to
9445
# collect2, so additional links can be useful in future.
9446
if test "$aix_use_runtimelinking" = yes; then
9447
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
9448
# instead of lib<name>.a to let people know that these are not
9449
# typical AIX shared libraries.
9450
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
9452
# We preserve .a as extension for shared libraries through AIX4.2
9453
# and later when we are not doing run time linking.
9454
library_names_spec='${libname}${release}.a $libname.a'
9455
soname_spec='${libname}${release}.so$major'
9457
shlibpath_var=LIBPATH
9462
library_names_spec='$libname.ixlibrary $libname.a'
9463
# Create ${libname}_ixlibrary.a entries in /sys/libs.
9464
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'
9468
library_names_spec='${libname}.so'
9469
dynamic_linker="$host_os ld.so"
9470
shlibpath_var=LIBRARY_PATH
9476
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
9477
soname_spec='${libname}${release}.so$major'
9478
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9479
shlibpath_var=LD_LIBRARY_PATH
9480
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9481
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9482
# the default ld.so.conf also contains /usr/contrib/lib and
9483
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9484
# libtool to hard-code these into programs
9487
cygwin* | mingw* | pw32*)
9488
version_type=windows
9491
case $GCC,$host_os in
9493
library_names_spec='$libname.dll.a'
9494
sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
9495
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
9496
postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
9497
dldir=$destdir/`dirname \$dlpath`~
9498
test -d \$dldir || mkdir -p \$dldir~
9499
$install_prog .libs/$dlname \$dldir/$dlname'
9500
postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
9501
dlpath=$dir/\$dldll~
9505
library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
9506
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://"`
9507
if echo "$sys_lib_search_path_spec" | egrep ';[C-Z]:/' >/dev/null; then
9508
# It is most probably a Windows format PATH printed by
9509
# mingw gcc, but we are running on Cygwin. Gcc prints its search
9510
# path with ; separators, and with drive letters. We can handle the
9511
# drive letters (cygwin fileutils understands them), so leave them,
9512
# especially as we might pass files found there to a mingw objdump,
9513
# which wouldn't understand a cygwinified path. Ahh.
9514
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
9516
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
9520
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
9523
library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
9526
dynamic_linker='Win32 ld.exe'
9527
# FIXME: first we should search . and the directory the executable is in
9531
darwin* | rhapsody*)
9532
dynamic_linker="$host_os dyld"
9536
# FIXME: Relying on posixy $() will cause problems for
9537
# cross-compilation, but unfortunately the echo tests do not
9538
# yet detect zsh echo's removal of \ escapes.
9539
library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
9540
soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
9541
shlibpath_overrides_runpath=yes
9542
shlibpath_var=DYLD_LIBRARY_PATH
9549
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
9550
soname_spec='${libname}${release}.so$major'
9551
shlibpath_var=LD_LIBRARY_PATH
9559
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
9560
version_type=freebsd-$objformat
9561
case $version_type in
9563
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
9568
library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
9572
shlibpath_var=LD_LIBRARY_PATH
9575
shlibpath_overrides_runpath=yes
9577
freebsd3.01* | freebsdelf3.01*)
9578
shlibpath_overrides_runpath=yes
9579
hardcode_into_libs=yes
9582
shlibpath_overrides_runpath=no
9583
hardcode_into_libs=yes
9592
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
9593
soname_spec='${libname}${release}.so$major'
9594
shlibpath_var=LD_LIBRARY_PATH
9595
hardcode_into_libs=yes
9598
hpux9* | hpux10* | hpux11*)
9599
# Give a soname corresponding to the major version so that dld.sl refuses to
9600
# link against other versions.
9604
if test "$host_cpu" = ia64; then
9605
hardcode_into_libs=yes
9606
dynamic_linker="$host_os dld.so"
9607
shlibpath_var=LD_LIBRARY_PATH
9608
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9609
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
9610
soname_spec='${libname}${release}.so$major'
9611
if test "X$HPUX_IA64_MODE" = X32; then
9612
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9614
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9616
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9618
dynamic_linker="$host_os dld.sl"
9619
shlibpath_var=SHLIB_PATH
9620
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9621
library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
9622
soname_spec='${libname}${release}.sl$major'
9624
# HP-UX runs *really* slowly unless shared libraries are mode 555.
9625
postinstall_cmds='chmod 555 $lib'
9628
irix5* | irix6* | nonstopux*)
9630
nonstopux*) version_type=nonstopux ;;
9631
*) version_type=irix ;;
9635
soname_spec='${libname}${release}.so$major'
9636
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
9638
irix5* | nonstopux*)
9642
case $LD in # libtool.m4 will add one of these switches to LD
9643
*-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
9644
*-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
9645
*-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
9646
*) libsuff= shlibsuff= libmagic=never-match;;
9650
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9651
shlibpath_overrides_runpath=no
9652
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9653
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9656
# No shared lib support for Linux oldld, aout, or coff.
9657
linux*oldld* | linux*aout* | linux*coff*)
9661
# This must be Linux ELF.
9666
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
9667
soname_spec='${libname}${release}.so$major'
9668
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9670
if test "x$LINUX_64_MODE" = x64; then
9671
# Some platforms are per default 64-bit, so there's no /lib64
9672
if test -d /lib64; then
9676
shlibpath_var=LD_LIBRARY_PATH
9677
shlibpath_overrides_runpath=no
9678
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
9679
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
9680
# This implies no fast_install, which is unacceptable.
9681
# Some rework will be needed to allow for fast_install
9682
# before this can be enabled.
9683
hardcode_into_libs=yes
9685
# We used to test for /lib/ld.so.1 and disable shared libraries on
9686
# powerpc, because MkLinux only supported shared libraries with the
9687
# GNU dynamic linker. Since this was broken with cross compilers,
9688
# most powerpc-linux boxes support dynamic linking these days and
9689
# people can always --disable-shared, the test was removed, and we
9690
# assume the GNU/Linux dynamic linker is in use.
9691
dynamic_linker='GNU/Linux ld.so'
9698
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9699
library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
9700
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9701
dynamic_linker='NetBSD (a.out) ld.so'
9703
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
9704
soname_spec='${libname}${release}.so$major'
9705
dynamic_linker='NetBSD ld.elf_so'
9707
shlibpath_var=LD_LIBRARY_PATH
9708
shlibpath_overrides_runpath=yes
9709
hardcode_into_libs=yes
9714
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
9715
shlibpath_var=LD_LIBRARY_PATH
9716
shlibpath_overrides_runpath=yes
9723
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
9724
soname_spec='${libname}${release}.so$major'
9725
shlibpath_var=LD_LIBRARY_PATH
9726
shlibpath_overrides_runpath=yes
9733
library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
9734
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9735
shlibpath_var=LD_LIBRARY_PATH
9736
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9738
openbsd2.[89] | openbsd2.[89].*)
9739
shlibpath_overrides_runpath=no
9742
shlibpath_overrides_runpath=yes
9746
shlibpath_overrides_runpath=yes
9751
libname_spec='$name'
9753
library_names_spec='$libname.dll $libname.a'
9754
dynamic_linker='OS/2 ld.exe'
9755
shlibpath_var=LIBPATH
9758
osf3* | osf4* | osf5*)
9762
soname_spec='${libname}${release}.so'
9763
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
9764
shlibpath_var=LD_LIBRARY_PATH
9765
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9766
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9771
soname_spec='${libname}${release}.so$major'
9772
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
9773
shlibpath_var=LD_LIBRARY_PATH
9780
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
9781
soname_spec='${libname}${release}.so$major'
9782
shlibpath_var=LD_LIBRARY_PATH
9783
shlibpath_overrides_runpath=yes
9784
hardcode_into_libs=yes
9785
# ldd complains unless libraries are executable
9786
postinstall_cmds='chmod +x $lib'
9791
library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
9792
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9793
shlibpath_var=LD_LIBRARY_PATH
9794
shlibpath_overrides_runpath=yes
9795
if test "$with_gnu_ld" = yes; then
9801
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9803
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
9804
soname_spec='${libname}${release}.so$major'
9805
shlibpath_var=LD_LIBRARY_PATH
9806
case $host_vendor in
9808
shlibpath_overrides_runpath=no
9813
shlibpath_overrides_runpath=no
9814
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9820
if test -d /usr/nec ;then
9822
library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
9823
soname_spec='$libname.so.$major'
9824
shlibpath_var=LD_LIBRARY_PATH
9830
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
9831
soname_spec='${libname}${release}.so$major'
9832
shlibpath_var=LD_LIBRARY_PATH
9839
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9840
echo "${ECHO_T}$dynamic_linker" >&6
9841
test "$dynamic_linker" = no && can_build_shared=no
9843
if test "x$enable_dlopen" != xyes; then
9844
enable_dlopen=unknown
9845
enable_dlopen_self=unknown
9846
enable_dlopen_self_static=unknown
9853
lt_cv_dlopen="load_add_on"
9855
lt_cv_dlopen_self=yes
9858
cygwin* | mingw* | pw32*)
9859
lt_cv_dlopen="LoadLibrary"
9864
echo "$as_me:$LINENO: checking for shl_load" >&5
9865
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9866
if test "${ac_cv_func_shl_load+set}" = set; then
9867
echo $ECHO_N "(cached) $ECHO_C" >&6
9869
cat >conftest.$ac_ext <<_ACEOF
9870
#line $LINENO "configure"
9873
cat confdefs.h >>conftest.$ac_ext
9874
cat >>conftest.$ac_ext <<_ACEOF
9875
/* end confdefs.h. */
9876
/* System header to define __stub macros and hopefully few prototypes,
9877
which can conflict with char shl_load (); below.
9878
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9879
<limits.h> exists even on freestanding compilers. */
9881
# include <limits.h>
9883
# include <assert.h>
9885
/* Override any gcc2 internal prototype to avoid an error. */
9890
/* We use char because int might match the return type of a gcc2
9891
builtin and then its argument prototype would still apply. */
9893
/* The GNU C library defines this for functions which it implements
9894
to always fail with ENOSYS. Some functions are actually named
9895
something starting with __ and the normal name is an alias. */
9896
#if defined (__stub_shl_load) || defined (__stub___shl_load)
9899
char (*f) () = shl_load;
9908
return f != shl_load;
9913
rm -f conftest.$ac_objext conftest$ac_exeext
9914
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9915
(eval $ac_link) 2>&5
9917
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9918
(exit $ac_status); } &&
9919
{ ac_try='test -s conftest$ac_exeext'
9920
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9923
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9924
(exit $ac_status); }; }; then
9925
ac_cv_func_shl_load=yes
9927
echo "$as_me: failed program was:" >&5
9928
sed 's/^/| /' conftest.$ac_ext >&5
9930
ac_cv_func_shl_load=no
9932
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9934
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9935
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9936
if test $ac_cv_func_shl_load = yes; then
9937
lt_cv_dlopen="shl_load"
9939
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9940
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9941
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9942
echo $ECHO_N "(cached) $ECHO_C" >&6
9944
ac_check_lib_save_LIBS=$LIBS
9946
cat >conftest.$ac_ext <<_ACEOF
9947
#line $LINENO "configure"
9950
cat confdefs.h >>conftest.$ac_ext
9951
cat >>conftest.$ac_ext <<_ACEOF
9952
/* end confdefs.h. */
9954
/* Override any gcc2 internal prototype to avoid an error. */
9958
/* We use char because int might match the return type of a gcc2
9959
builtin and then its argument prototype would still apply. */
9969
rm -f conftest.$ac_objext conftest$ac_exeext
9970
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9971
(eval $ac_link) 2>&5
9973
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9974
(exit $ac_status); } &&
9975
{ ac_try='test -s conftest$ac_exeext'
9976
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9979
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9980
(exit $ac_status); }; }; then
9981
ac_cv_lib_dld_shl_load=yes
9983
echo "$as_me: failed program was:" >&5
9984
sed 's/^/| /' conftest.$ac_ext >&5
9986
ac_cv_lib_dld_shl_load=no
9988
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9989
LIBS=$ac_check_lib_save_LIBS
9991
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9992
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9993
if test $ac_cv_lib_dld_shl_load = yes; then
9994
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9996
echo "$as_me:$LINENO: checking for dlopen" >&5
9997
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9998
if test "${ac_cv_func_dlopen+set}" = set; then
9999
echo $ECHO_N "(cached) $ECHO_C" >&6
10001
cat >conftest.$ac_ext <<_ACEOF
10002
#line $LINENO "configure"
10005
cat confdefs.h >>conftest.$ac_ext
10006
cat >>conftest.$ac_ext <<_ACEOF
10007
/* end confdefs.h. */
10008
/* System header to define __stub macros and hopefully few prototypes,
10009
which can conflict with char dlopen (); below.
10010
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10011
<limits.h> exists even on freestanding compilers. */
10013
# include <limits.h>
10015
# include <assert.h>
10017
/* Override any gcc2 internal prototype to avoid an error. */
10022
/* We use char because int might match the return type of a gcc2
10023
builtin and then its argument prototype would still apply. */
10025
/* The GNU C library defines this for functions which it implements
10026
to always fail with ENOSYS. Some functions are actually named
10027
something starting with __ and the normal name is an alias. */
10028
#if defined (__stub_dlopen) || defined (__stub___dlopen)
10031
char (*f) () = dlopen;
10040
return f != dlopen;
10045
rm -f conftest.$ac_objext conftest$ac_exeext
10046
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10047
(eval $ac_link) 2>&5
10049
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050
(exit $ac_status); } &&
10051
{ ac_try='test -s conftest$ac_exeext'
10052
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10053
(eval $ac_try) 2>&5
10055
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056
(exit $ac_status); }; }; then
10057
ac_cv_func_dlopen=yes
10059
echo "$as_me: failed program was:" >&5
10060
sed 's/^/| /' conftest.$ac_ext >&5
10062
ac_cv_func_dlopen=no
10064
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10066
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10067
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10068
if test $ac_cv_func_dlopen = yes; then
10069
lt_cv_dlopen="dlopen"
10071
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10072
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10073
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10074
echo $ECHO_N "(cached) $ECHO_C" >&6
10076
ac_check_lib_save_LIBS=$LIBS
10078
cat >conftest.$ac_ext <<_ACEOF
10079
#line $LINENO "configure"
10082
cat confdefs.h >>conftest.$ac_ext
10083
cat >>conftest.$ac_ext <<_ACEOF
10084
/* end confdefs.h. */
10086
/* Override any gcc2 internal prototype to avoid an error. */
10090
/* We use char because int might match the return type of a gcc2
10091
builtin and then its argument prototype would still apply. */
10101
rm -f conftest.$ac_objext conftest$ac_exeext
10102
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10103
(eval $ac_link) 2>&5
10105
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10106
(exit $ac_status); } &&
10107
{ ac_try='test -s conftest$ac_exeext'
10108
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10109
(eval $ac_try) 2>&5
10111
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112
(exit $ac_status); }; }; then
10113
ac_cv_lib_dl_dlopen=yes
10115
echo "$as_me: failed program was:" >&5
10116
sed 's/^/| /' conftest.$ac_ext >&5
10118
ac_cv_lib_dl_dlopen=no
10120
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10121
LIBS=$ac_check_lib_save_LIBS
10123
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10124
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10125
if test $ac_cv_lib_dl_dlopen = yes; then
10126
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10128
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10129
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10130
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10131
echo $ECHO_N "(cached) $ECHO_C" >&6
10133
ac_check_lib_save_LIBS=$LIBS
10134
LIBS="-lsvld $LIBS"
10135
cat >conftest.$ac_ext <<_ACEOF
10136
#line $LINENO "configure"
10139
cat confdefs.h >>conftest.$ac_ext
10140
cat >>conftest.$ac_ext <<_ACEOF
10141
/* end confdefs.h. */
10143
/* Override any gcc2 internal prototype to avoid an error. */
10147
/* We use char because int might match the return type of a gcc2
10148
builtin and then its argument prototype would still apply. */
10158
rm -f conftest.$ac_objext conftest$ac_exeext
10159
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10160
(eval $ac_link) 2>&5
10162
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10163
(exit $ac_status); } &&
10164
{ ac_try='test -s conftest$ac_exeext'
10165
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10166
(eval $ac_try) 2>&5
10168
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10169
(exit $ac_status); }; }; then
10170
ac_cv_lib_svld_dlopen=yes
10172
echo "$as_me: failed program was:" >&5
10173
sed 's/^/| /' conftest.$ac_ext >&5
10175
ac_cv_lib_svld_dlopen=no
10177
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10178
LIBS=$ac_check_lib_save_LIBS
10180
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10181
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10182
if test $ac_cv_lib_svld_dlopen = yes; then
10183
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10185
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10186
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10187
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10188
echo $ECHO_N "(cached) $ECHO_C" >&6
10190
ac_check_lib_save_LIBS=$LIBS
10192
cat >conftest.$ac_ext <<_ACEOF
10193
#line $LINENO "configure"
10196
cat confdefs.h >>conftest.$ac_ext
10197
cat >>conftest.$ac_ext <<_ACEOF
10198
/* end confdefs.h. */
10200
/* Override any gcc2 internal prototype to avoid an error. */
10204
/* We use char because int might match the return type of a gcc2
10205
builtin and then its argument prototype would still apply. */
10215
rm -f conftest.$ac_objext conftest$ac_exeext
10216
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10217
(eval $ac_link) 2>&5
10219
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220
(exit $ac_status); } &&
10221
{ ac_try='test -s conftest$ac_exeext'
10222
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10223
(eval $ac_try) 2>&5
10225
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10226
(exit $ac_status); }; }; then
10227
ac_cv_lib_dld_dld_link=yes
10229
echo "$as_me: failed program was:" >&5
10230
sed 's/^/| /' conftest.$ac_ext >&5
10232
ac_cv_lib_dld_dld_link=no
10234
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10235
LIBS=$ac_check_lib_save_LIBS
10237
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10238
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10239
if test $ac_cv_lib_dld_dld_link = yes; then
10240
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10261
if test "x$lt_cv_dlopen" != xno; then
10267
case $lt_cv_dlopen in
10269
save_CPPFLAGS="$CPPFLAGS"
10270
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10272
save_LDFLAGS="$LDFLAGS"
10273
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10276
LIBS="$lt_cv_dlopen_libs $LIBS"
10278
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10279
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10280
if test "${lt_cv_dlopen_self+set}" = set; then
10281
echo $ECHO_N "(cached) $ECHO_C" >&6
10283
if test "$cross_compiling" = yes; then :
10284
lt_cv_dlopen_self=cross
10286
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10287
lt_status=$lt_dlunknown
10288
cat > conftest.$ac_ext <<EOF
10289
#line 10289 "configure"
10290
#include "confdefs.h"
10299
# define LT_DLGLOBAL RTLD_GLOBAL
10302
# define LT_DLGLOBAL DL_GLOBAL
10304
# define LT_DLGLOBAL 0
10308
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10309
find out it does not work in some platform. */
10310
#ifndef LT_DLLAZY_OR_NOW
10312
# define LT_DLLAZY_OR_NOW RTLD_LAZY
10315
# define LT_DLLAZY_OR_NOW DL_LAZY
10318
# define LT_DLLAZY_OR_NOW RTLD_NOW
10321
# define LT_DLLAZY_OR_NOW DL_NOW
10323
# define LT_DLLAZY_OR_NOW 0
10331
extern "C" void exit (int);
10334
void fnord() { int i=42;}
10337
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10338
int status = $lt_dlunknown;
10342
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10343
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10344
/* dlclose (self); */
10350
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10351
(eval $ac_link) 2>&5
10353
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10354
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10355
(./conftest; exit; ) 2>/dev/null
10357
case x$lt_status in
10358
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10359
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10360
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10363
# compilation failed
10364
lt_cv_dlopen_self=no
10371
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10372
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10374
if test "x$lt_cv_dlopen_self" = xyes; then
10375
LDFLAGS="$LDFLAGS $link_static_flag"
10376
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10377
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10378
if test "${lt_cv_dlopen_self_static+set}" = set; then
10379
echo $ECHO_N "(cached) $ECHO_C" >&6
10381
if test "$cross_compiling" = yes; then :
10382
lt_cv_dlopen_self_static=cross
10384
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10385
lt_status=$lt_dlunknown
10386
cat > conftest.$ac_ext <<EOF
10387
#line 10387 "configure"
10388
#include "confdefs.h"
10397
# define LT_DLGLOBAL RTLD_GLOBAL
10400
# define LT_DLGLOBAL DL_GLOBAL
10402
# define LT_DLGLOBAL 0
10406
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10407
find out it does not work in some platform. */
10408
#ifndef LT_DLLAZY_OR_NOW
10410
# define LT_DLLAZY_OR_NOW RTLD_LAZY
10413
# define LT_DLLAZY_OR_NOW DL_LAZY
10416
# define LT_DLLAZY_OR_NOW RTLD_NOW
10419
# define LT_DLLAZY_OR_NOW DL_NOW
10421
# define LT_DLLAZY_OR_NOW 0
10429
extern "C" void exit (int);
10432
void fnord() { int i=42;}
10435
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10436
int status = $lt_dlunknown;
10440
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10441
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10442
/* dlclose (self); */
10448
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10449
(eval $ac_link) 2>&5
10451
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10452
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10453
(./conftest; exit; ) 2>/dev/null
10455
case x$lt_status in
10456
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10457
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10458
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10461
# compilation failed
10462
lt_cv_dlopen_self_static=no
10469
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10470
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10473
CPPFLAGS="$save_CPPFLAGS"
10474
LDFLAGS="$save_LDFLAGS"
10479
case $lt_cv_dlopen_self in
10480
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10481
*) enable_dlopen_self=unknown ;;
10484
case $lt_cv_dlopen_self_static in
10485
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10486
*) enable_dlopen_self_static=unknown ;;
10491
# Report which librarie types wil actually be built
10492
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10493
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10494
echo "$as_me:$LINENO: result: $can_build_shared" >&5
10495
echo "${ECHO_T}$can_build_shared" >&6
10497
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10498
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10499
test "$can_build_shared" = "no" && enable_shared=no
10501
# On AIX, shared libraries and static libraries use the same namespace, and
10502
# are all built from PIC.
10505
test "$enable_shared" = yes && enable_static=no
10506
if test -n "$RANLIB"; then
10507
archive_cmds="$archive_cmds~\$RANLIB \$lib"
10508
postinstall_cmds='$RANLIB $lib'
10513
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10514
test "$enable_shared" = yes && enable_static=no
10518
echo "$as_me:$LINENO: result: $enable_shared" >&5
10519
echo "${ECHO_T}$enable_shared" >&6
10521
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10522
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10523
# Make sure either enable_shared or enable_static is yes.
10524
test "$enable_shared" = yes || enable_static=yes
10525
echo "$as_me:$LINENO: result: $enable_static" >&5
10526
echo "${ECHO_T}$enable_static" >&6
10528
# The else clause should only fire when bootstrapping the
10529
# libtool distribution, otherwise you forgot to ship ltmain.sh
10530
# with your package, and you will get complaints that there are
10531
# no rules to generate ltmain.sh.
10532
if test -f "$ltmain"; then
10533
# Now quote all the things that may contain metacharacters while being
10534
# careful not to overquote the AC_SUBSTed values. We take copies of the
10535
# variables and quote the copies for generation of the libtool script.
10536
for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SED SHELL \
10537
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10538
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10539
deplibs_check_method reload_flag reload_cmds need_locks \
10540
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10541
lt_cv_sys_global_symbol_to_c_name_address \
10542
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10543
old_postinstall_cmds old_postuninstall_cmds \
10547
lt_prog_compiler_wl \
10548
lt_prog_compiler_pic \
10549
lt_prog_compiler_static \
10550
lt_prog_compiler_no_builtin_flag \
10551
export_dynamic_flag_spec \
10552
thread_safe_flag_spec \
10553
whole_archive_flag_spec \
10555
old_archive_from_new_cmds \
10560
compiler_lib_search_path \
10562
archive_expsym_cmds \
10564
postuninstall_cmds \
10565
old_archive_from_expsyms_cmds \
10566
allow_undefined_flag \
10567
no_undefined_flag \
10568
export_symbols_cmds \
10569
hardcode_libdir_flag_spec \
10570
hardcode_libdir_separator \
10571
lt_cv_prog_compiler_c_o \
10573
include_expsyms; do
10576
old_archive_cmds | \
10577
old_archive_from_new_cmds | \
10579
archive_expsym_cmds | \
10580
old_archive_from_expsyms_cmds | \
10581
export_symbols_cmds | \
10582
extract_expsyms_cmds | reload_cmds | finish_cmds | \
10583
postinstall_cmds | postuninstall_cmds | \
10584
old_postinstall_cmds | old_postuninstall_cmds | \
10585
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10586
# Double-quote double-evaled strings.
10587
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10590
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10596
*'\$0 --fallback-echo"')
10597
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10601
cfgfile="${ofile}T"
10602
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10604
{ echo "$as_me:$LINENO: creating $ofile" >&5
10605
echo "$as_me: creating $ofile" >&6;}
10607
cat <<__EOF__ >> "$cfgfile"
10610
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10611
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10612
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10614
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10615
# Free Software Foundation, Inc.
10617
# This file is part of GNU Libtool:
10618
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10620
# This program is free software; you can redistribute it and/or modify
10621
# it under the terms of the GNU General Public License as published by
10622
# the Free Software Foundation; either version 2 of the License, or
10623
# (at your option) any later version.
10625
# This program is distributed in the hope that it will be useful, but
10626
# WITHOUT ANY WARRANTY; without even the implied warranty of
10627
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10628
# General Public License for more details.
10630
# You should have received a copy of the GNU General Public License
10631
# along with this program; if not, write to the Free Software
10632
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
10634
# As a special exception to the GNU General Public License, if you
10635
# distribute this file as part of a program that contains a
10636
# configuration script generated by Autoconf, you may include it under
10637
# the same distribution terms that you use for the rest of that program.
10639
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10640
Xsed="sed -e s/^X//"
10642
# The HP-UX ksh and POSIX shell print the target directory to stdout
10643
# if CDPATH is set.
10644
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
10646
# The names of the tagged configurations supported by this script.
10649
# ### BEGIN LIBTOOL CONFIG
10651
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10653
# Shell to use when invoking shell scripts.
10656
# Whether or not to build shared libraries.
10657
build_libtool_libs=$enable_shared
10659
# Whether or not to build static libraries.
10660
build_old_libs=$enable_static
10662
# Whether or not to add -lc for building shared libraries.
10663
build_libtool_need_lc=$archive_cmds_need_lc
10665
# Whether or not to optimize for fast installation.
10666
fast_install=$enable_fast_install
10669
host_alias=$host_alias
10672
# An echo program that does not interpret backslashes.
10677
AR_FLAGS=$lt_AR_FLAGS
10682
# A language-specific compiler.
10685
# Is the compiler the GNU C compiler?
10688
# The linker used to build libraries.
10691
# Whether we need hard or soft links.
10694
# A BSD-compatible nm program.
10697
# A sed program that does not truncate output.
10700
# A symbol stripping program
10703
# Used to examine libraries when file_magic_cmd begins "file"
10704
MAGIC_CMD=$MAGIC_CMD
10706
# Used on cygwin: DLL creation program.
10709
# Used on cygwin: object dumper.
10712
# Used on cygwin: assembler.
10715
# The name of the directory that contains temporary libtool files.
10718
# How to create reloadable object files.
10719
reload_flag=$lt_reload_flag
10720
reload_cmds=$lt_reload_cmds
10722
# How to pass a linker flag through the compiler.
10723
wl=$lt_lt_prog_compiler_wl
10725
# Object file suffix (normally "o").
10726
objext="$ac_objext"
10728
# Old archive suffix (normally "a").
10731
# Executable file suffix (normally "").
10734
# Additional compiler flags for building library objects.
10735
pic_flag=$lt_lt_prog_compiler_pic
10738
# What is the maximum length of a command?
10739
max_cmd_len=$lt_cv_sys_max_cmd_len
10741
# Does compiler simultaneously support -c and -o options?
10742
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10744
# Must we lock files when doing compilation ?
10745
need_locks=$lt_need_locks
10747
# Do we need the lib prefix for modules?
10748
need_lib_prefix=$need_lib_prefix
10750
# Do we need a version for libraries?
10751
need_version=$need_version
10753
# Whether dlopen is supported.
10754
dlopen_support=$enable_dlopen
10756
# Whether dlopen of programs is supported.
10757
dlopen_self=$enable_dlopen_self
10759
# Whether dlopen of statically linked programs is supported.
10760
dlopen_self_static=$enable_dlopen_self_static
10762
# Compiler flag to prevent dynamic linking.
10763
link_static_flag=$lt_lt_prog_compiler_static
10765
# Compiler flag to turn off builtin functions.
10766
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10768
# Compiler flag to allow reflexive dlopens.
10769
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10771
# Compiler flag to generate shared objects directly from archives.
10772
whole_archive_flag_spec=$lt_whole_archive_flag_spec
10774
# Compiler flag to generate thread-safe objects.
10775
thread_safe_flag_spec=$lt_thread_safe_flag_spec
10777
# Library versioning type.
10778
version_type=$version_type
10780
# Format of library name prefix.
10781
libname_spec=$lt_libname_spec
10783
# List of archive names. First name is the real one, the rest are links.
10784
# The last name is the one that the linker finds with -lNAME.
10785
library_names_spec=$lt_library_names_spec
10787
# The coded name of the library, if different from the real name.
10788
soname_spec=$lt_soname_spec
10790
# Commands used to build and install an old-style archive.
10792
old_archive_cmds=$lt_old_archive_cmds
10793
old_postinstall_cmds=$lt_old_postinstall_cmds
10794
old_postuninstall_cmds=$lt_old_postuninstall_cmds
10796
# Create an old-style archive from a shared archive.
10797
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10799
# Create a temporary old-style archive to link instead of a shared archive.
10800
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10802
# Commands used to build and install a shared archive.
10803
archive_cmds=$lt_archive_cmds
10804
archive_expsym_cmds=$lt_archive_expsym_cmds
10805
postinstall_cmds=$lt_postinstall_cmds
10806
postuninstall_cmds=$lt_postuninstall_cmds
10808
# Commands to strip libraries.
10809
old_striplib=$lt_old_striplib
10810
striplib=$lt_striplib
10812
# Dependencies to place before the objects being linked to create a
10814
predep_objects=$lt_predep_objects
10816
# Dependencies to place after the objects being linked to create a
10818
postdep_objects=$lt_postdep_objects
10820
# Dependencies to place before the objects being linked to create a
10822
predeps=$lt_predeps
10824
# Dependencies to place after the objects being linked to create a
10826
postdeps=$lt_postdeps
10828
# The library search path used internally by the compiler when linking
10829
# a shared library.
10830
compiler_lib_search_path=$lt_compiler_lib_search_path
10832
# Method to check whether dependent libraries are shared objects.
10833
deplibs_check_method=$lt_deplibs_check_method
10835
# Command to use when deplibs_check_method == file_magic.
10836
file_magic_cmd=$lt_file_magic_cmd
10838
# Flag that allows shared libraries with undefined symbols to be built.
10839
allow_undefined_flag=$lt_allow_undefined_flag
10841
# Flag that forces no undefined symbols.
10842
no_undefined_flag=$lt_no_undefined_flag
10844
# Commands used to finish a libtool library installation in a directory.
10845
finish_cmds=$lt_finish_cmds
10847
# Same as above, but a single script fragment to be evaled but not shown.
10848
finish_eval=$lt_finish_eval
10850
# Take the output of nm and produce a listing of raw symbols and C names.
10851
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10853
# Transform the output of nm in a proper C declaration
10854
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10856
# Transform the output of nm in a C name address pair
10857
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10859
# This is the shared library runtime path variable.
10860
runpath_var=$runpath_var
10862
# This is the shared library path variable.
10863
shlibpath_var=$shlibpath_var
10865
# Is shlibpath searched before the hard-coded library search path?
10866
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10868
# How to hardcode a shared library path into an executable.
10869
hardcode_action=$hardcode_action
10871
# Whether we should hardcode library paths into libraries.
10872
hardcode_into_libs=$hardcode_into_libs
10874
# Flag to hardcode \$libdir into a binary during linking.
10875
# This must work even if \$libdir does not exist.
10876
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10878
# Whether we need a single -rpath flag with a separated argument.
10879
hardcode_libdir_separator=$lt_hardcode_libdir_separator
10881
# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
10882
# resulting binary.
10883
hardcode_direct=$hardcode_direct
10885
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10886
# resulting binary.
10887
hardcode_minus_L=$hardcode_minus_L
10889
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10890
# the resulting binary.
10891
hardcode_shlibpath_var=$hardcode_shlibpath_var
10893
# Variables whose values should be saved in libtool wrapper scripts and
10894
# restored at relink time.
10895
variables_saved_for_relink="$variables_saved_for_relink"
10897
# Whether libtool must link a program against all its dependency libraries.
10898
link_all_deplibs=$link_all_deplibs
10900
# Compile-time system search path for libraries
10901
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10903
# Run-time system search path for libraries
10904
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10906
# Fix the shell variable \$srcfile for the compiler.
10907
fix_srcfile_path="$fix_srcfile_path"
10909
# Set to yes if exported symbols are required.
10910
always_export_symbols=$always_export_symbols
10912
# The commands to list exported symbols.
10913
export_symbols_cmds=$lt_export_symbols_cmds
10915
# The commands to extract the exported symbol list from a shared archive.
10916
extract_expsyms_cmds=$lt_extract_expsyms_cmds
10918
# Symbols that should not be listed in the preloaded symbols.
10919
exclude_expsyms=$lt_exclude_expsyms
10921
# Symbols that must always be exported.
10922
include_expsyms=$lt_include_expsyms
10924
# ### END LIBTOOL CONFIG
10931
cat <<\EOF >> "$cfgfile"
10933
# AIX sometimes has problems with the GCC collect2 program. For some
10934
# reason, if we set the COLLECT_NAMES environment variable, the problems
10935
# vanish in a puff of smoke.
10936
if test "X${COLLECT_NAMES+set}" != Xset; then
10938
export COLLECT_NAMES
10943
cygwin* | mingw* | pw32* | os2*)
10944
cat <<'EOF' >> "$cfgfile"
10945
# This is a source program that is used to create dlls on Windows
10946
# Don't remove nor modify the starting and closing comments
10948
# /* ltdll.c starts here */
10949
# #define WIN32_LEAN_AND_MEAN
10950
# #include <windows.h>
10951
# #undef WIN32_LEAN_AND_MEAN
10952
# #include <stdio.h>
10954
# #ifndef __CYGWIN__
10955
# # ifdef __CYGWIN32__
10956
# # define __CYGWIN__ __CYGWIN32__
10960
# #ifdef __cplusplus
10963
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
10964
# #ifdef __cplusplus
10968
# #ifdef __CYGWIN__
10969
# #include <cygwin/cygwin_dll.h>
10970
# DECLARE_CYGWIN_DLL( DllMain );
10972
# HINSTANCE __hDllInstance_base;
10975
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
10977
# __hDllInstance_base = hInst;
10980
# /* ltdll.c ends here */
10982
# This is a source program that is used to create import libraries
10983
# on Windows for dlls which lack them. Don't remove nor modify the
10984
# starting and closing comments
10986
# /* impgen.c starts here */
10987
# /* Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
10989
# This file is part of GNU libtool.
10991
# This program is free software; you can redistribute it and/or modify
10992
# it under the terms of the GNU General Public License as published by
10993
# the Free Software Foundation; either version 2 of the License, or
10994
# (at your option) any later version.
10996
# This program is distributed in the hope that it will be useful,
10997
# but WITHOUT ANY WARRANTY; without even the implied warranty of
10998
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10999
# GNU General Public License for more details.
11001
# You should have received a copy of the GNU General Public License
11002
# along with this program; if not, write to the Free Software
11003
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
11006
# #include <stdio.h> /* for printf() */
11007
# #include <unistd.h> /* for open(), lseek(), read() */
11008
# #include <fcntl.h> /* for O_RDONLY, O_BINARY */
11009
# #include <string.h> /* for strdup() */
11011
# /* O_BINARY isn't required (or even defined sometimes) under Unix */
11013
# #define O_BINARY 0
11016
# static unsigned int
11017
# pe_get16 (fd, offset)
11021
# unsigned char b[2];
11022
# lseek (fd, offset, SEEK_SET);
11024
# return b[0] + (b[1]<<8);
11027
# static unsigned int
11028
# pe_get32 (fd, offset)
11032
# unsigned char b[4];
11033
# lseek (fd, offset, SEEK_SET);
11035
# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
11038
# static unsigned int
11042
# unsigned char *b = ptr;
11043
# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
11047
# main (argc, argv)
11052
# unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
11053
# unsigned long export_rva, export_size, nsections, secptr, expptr;
11054
# unsigned long name_rvas, nexp;
11055
# unsigned char *expdata, *erva;
11056
# char *filename, *dll_name;
11058
# filename = argv[1];
11060
# dll = open(filename, O_RDONLY|O_BINARY);
11064
# dll_name = filename;
11066
# for (i=0; filename[i]; i++)
11067
# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
11068
# dll_name = filename + i +1;
11070
# pe_header_offset = pe_get32 (dll, 0x3c);
11071
# opthdr_ofs = pe_header_offset + 4 + 20;
11072
# num_entries = pe_get32 (dll, opthdr_ofs + 92);
11074
# if (num_entries < 1) /* no exports */
11077
# export_rva = pe_get32 (dll, opthdr_ofs + 96);
11078
# export_size = pe_get32 (dll, opthdr_ofs + 100);
11079
# nsections = pe_get16 (dll, pe_header_offset + 4 +2);
11080
# secptr = (pe_header_offset + 4 + 20 +
11081
# pe_get16 (dll, pe_header_offset + 4 + 16));
11084
# for (i = 0; i < nsections; i++)
11087
# unsigned long secptr1 = secptr + 40 * i;
11088
# unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
11089
# unsigned long vsize = pe_get32 (dll, secptr1 + 16);
11090
# unsigned long fptr = pe_get32 (dll, secptr1 + 20);
11091
# lseek(dll, secptr1, SEEK_SET);
11092
# read(dll, sname, 8);
11093
# if (vaddr <= export_rva && vaddr+vsize > export_rva)
11095
# expptr = fptr + (export_rva - vaddr);
11096
# if (export_rva + export_size > vaddr + vsize)
11097
# export_size = vsize - (export_rva - vaddr);
11102
# expdata = (unsigned char*)malloc(export_size);
11103
# lseek (dll, expptr, SEEK_SET);
11104
# read (dll, expdata, export_size);
11105
# erva = expdata - export_rva;
11107
# nexp = pe_as32 (expdata+24);
11108
# name_rvas = pe_as32 (expdata+32);
11110
# printf ("EXPORTS\n");
11111
# for (i = 0; i<nexp; i++)
11113
# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
11114
# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
11119
# /* impgen.c ends here */
11125
# We use sed instead of cat because bash on DJGPP gets confused if
11126
# if finds mixed CR/LF and LF-only lines. Since sed operates in
11127
# text mode, it properly converts lines to CR/LF. This bash problem
11128
# is reportedly fixed, but why not run on old versions too?
11129
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11131
mv -f "$cfgfile" "$ofile" || \
11132
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11136
# If there is no Makefile yet, we rely on a make rule to execute
11137
# `config.status --recheck' to rerun these tests and create the
11138
# libtool script then.
11139
test -f Makefile && make "$ltmain"
11144
ac_cpp='$CPP $CPPFLAGS'
11145
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11146
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11147
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11152
# Check whether --with-tags or --without-tags was given.
11153
if test "${with_tags+set}" = set; then
11154
withval="$with_tags"
11155
tagnames="$withval"
11159
mingw*|cygwin*) tagnames="$tagnames,RC" ;;
11163
if test -f "$ltmain" && test -n "$tagnames"; then
11164
if test ! -f "${ofile}"; then
11165
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11166
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11169
if test -z "$LTCC"; then
11170
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11171
if test -z "$LTCC"; then
11172
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11173
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11175
{ echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11176
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11180
# Extract list of available tagged configurations in $ofile.
11181
# Note that this assumes the entire list is on one line.
11182
available_tags=`grep "^available_tags=" "${ofile}" | sed -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11184
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11185
for tagname in $tagnames; do
11187
# Check whether tagname contains only valid characters
11188
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11190
*) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11191
echo "$as_me: error: invalid tag name: $tagname" >&2;}
11192
{ (exit 1); exit 1; }; }
11196
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11198
{ { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11199
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11200
{ (exit 1); exit 1; }; }
11203
# Update the list of available tags.
11204
if test -n "$tagname"; then
11205
echo appending configuration tag \"$tagname\" to $ofile
11210
ac_cpp='$CXXCPP $CPPFLAGS'
11211
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11212
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11213
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11218
archive_cmds_need_lc_CXX=no
11219
allow_undefined_flag_CXX=
11220
always_export_symbols_CXX=no
11221
archive_expsym_cmds_CXX=
11222
export_dynamic_flag_spec_CXX=
11223
hardcode_direct_CXX=no
11224
hardcode_libdir_flag_spec_CXX=
11225
hardcode_libdir_separator_CXX=
11226
hardcode_minus_L_CXX=no
11227
link_all_deplibs_CXX=unknown
11228
old_archive_cmds_CXX=$old_archive_cmds
11229
no_undefined_flag_CXX=
11230
whole_archive_flag_spec_CXX=
11232
# Dependencies to place before and after the object being linked:
11233
predep_objects_CXX=
11234
postdep_objects_CXX=
11237
compiler_lib_search_path_CXX=
11239
# Source file extension for C test sources.
11242
# Object file extension for compiled C test sources.
11246
# Code to be used in simple compile tests
11247
lt_simple_compile_test_code="int some_variable = 0;"
11249
# Code to be used in simple link tests
11250
lt_simple_link_test_code='int main(int char *) { return(0); }'
11252
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11254
# If no C compiler was specified, use CC.
11257
# Allow CC to be a program name with arguments.
11262
# Allow CC to be a program name with arguments.
11268
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11270
# We don't want -fno-exception wen compiling C++ code, so set the
11271
# no_builtin_flag separately
11272
if test "$GXX" = yes; then
11273
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11275
lt_prog_compiler_no_builtin_flag_CXX=
11278
if test "$GXX" = yes; then
11279
# Set up default GNU C++ configuration
11281
# Check if GNU C++ uses GNU ld as the underlying linker, since the
11282
# archiving commands below assume that GNU ld is being used.
11283
if eval "`$CC -print-prog-name=ld` --version 2>&1" | \
11284
egrep 'GNU ld' > /dev/null; then
11287
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11288
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'
11290
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11291
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11293
# If archive_cmds runs LD, not CC, wlarc should be empty
11294
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11295
# investigate it a little bit more. (MM)
11298
# ancient GNU ld didn't support --whole-archive et. al.
11299
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11300
egrep 'no-whole-archive' > /dev/null; then
11301
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11303
whole_archive_flag_spec_CXX=
11309
# A generic and very simple default shared library creation
11310
# command for GNU C++ for the case where it uses the native
11311
# linker, instead of GNU ld. If possible, this setting should
11312
# overridden to take advantage of the native linker features on
11313
# the platform it is being used on.
11314
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11317
# Commands to make compiler produce verbose output that lists
11318
# what "hidden" libraries, object files and flags are used when
11319
# linking a shared library.
11320
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"'
11328
# PORTME: fill in a description of your system's C++ link characteristics
11329
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11330
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11334
# FIXME: insert proper C++ library support
11338
if test "$host_cpu" = ia64; then
11339
# On IA64, the linker does run time linking by default, so we don't
11340
# have to do anything special.
11341
aix_use_runtimelinking=no
11342
exp_sym_flag='-Bexport'
11345
# KDE requires run time linking. Make it the default.
11346
aix_use_runtimelinking=yes
11347
exp_sym_flag='-bexport'
11348
no_entry_flag='-bnoentry'
11351
# When large executables or shared objects are built, AIX ld can
11352
# have problems creating the table of contents. If linking a library
11353
# or program results in "error TOC overflow" add -mminimal-toc to
11354
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11355
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11357
archive_cmds_CXX=''
11358
hardcode_direct_CXX=yes
11359
hardcode_libdir_separator_CXX=':'
11360
link_all_deplibs_CXX=yes
11362
if test "$GXX" = yes; then
11363
case $host_os in aix4.012|aix4.012.*)
11364
# We only want to do this on AIX 4.2 and lower, the check
11365
# below for broken collect2 doesn't work under 4.3+
11366
collect2name=`${CC} -print-prog-name=collect2`
11367
if test -f "$collect2name" && \
11368
strings "$collect2name" | grep resolve_lib_name >/dev/null
11370
# We have reworked collect2
11371
hardcode_direct_CXX=yes
11373
# We have old collect2
11374
hardcode_direct_CXX=unsupported
11375
# It fails to find uninstalled libraries when the uninstalled
11376
# path is not listed in the libpath. Setting hardcode_minus_L
11377
# to unsupported forces relinking
11378
hardcode_minus_L_CXX=yes
11379
hardcode_libdir_flag_spec_CXX='-L$libdir'
11380
hardcode_libdir_separator_CXX=
11383
shared_flag='-shared'
11386
if test "$host_cpu" = ia64; then
11387
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11388
# chokes on -Wl,-G. The following line is correct:
11391
if test "$aix_use_runtimelinking" = yes; then
11392
shared_flag='-qmkshrobj ${wl}-G'
11394
shared_flag='-qmkshrobj'
11399
# Let the compiler handle the export list.
11400
always_export_symbols_CXX=no
11401
if test "$aix_use_runtimelinking" = yes; then
11402
# Warning - without using the other runtime loading flags (-brtl),
11403
# -berok will link without error, but may produce a broken library.
11404
allow_undefined_flag_CXX='-berok'
11405
# Determine the default libpath from the value encoded in an empty executable.
11406
cat >conftest.$ac_ext <<_ACEOF
11407
#line $LINENO "configure"
11410
cat confdefs.h >>conftest.$ac_ext
11411
cat >>conftest.$ac_ext <<_ACEOF
11412
/* end confdefs.h. */
11422
rm -f conftest.$ac_objext conftest$ac_exeext
11423
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11424
(eval $ac_link) 2>&5
11426
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11427
(exit $ac_status); } &&
11428
{ ac_try='test -s conftest$ac_exeext'
11429
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11430
(eval $ac_try) 2>&5
11432
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11433
(exit $ac_status); }; }; then
11435
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11437
# Check for a 64-bit object if we didn't find anything.
11438
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; }
11441
echo "$as_me: failed program was:" >&5
11442
sed 's/^/| /' conftest.$ac_ext >&5
11445
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11446
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11448
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11450
archive_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` '" $shared_flag"
11451
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}$exp_sym_flag:\$export_symbols $shared_flag"
11453
if test "$host_cpu" = ia64; then
11454
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11455
allow_undefined_flag_CXX="-z nodefs"
11456
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"
11458
# Determine the default libpath from the value encoded in an empty executable.
11459
cat >conftest.$ac_ext <<_ACEOF
11460
#line $LINENO "configure"
11463
cat confdefs.h >>conftest.$ac_ext
11464
cat >>conftest.$ac_ext <<_ACEOF
11465
/* end confdefs.h. */
11475
rm -f conftest.$ac_objext conftest$ac_exeext
11476
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11477
(eval $ac_link) 2>&5
11479
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11480
(exit $ac_status); } &&
11481
{ ac_try='test -s conftest$ac_exeext'
11482
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11483
(eval $ac_try) 2>&5
11485
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11486
(exit $ac_status); }; }; then
11488
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11490
# Check for a 64-bit object if we didn't find anything.
11491
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; }
11494
echo "$as_me: failed program was:" >&5
11495
sed 's/^/| /' conftest.$ac_ext >&5
11498
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11499
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11501
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11502
# Warning - without using the other run time loading flags,
11503
# -berok will link without error, but may produce a broken library.
11504
no_undefined_flag_CXX=' ${wl}-bernotok'
11505
allow_undefined_flag_CXX=' ${wl}-berok'
11506
# -bexpall does not export symbols beginning with underscore (_)
11507
always_export_symbols_CXX=yes
11508
# Exported symbols can be pulled into shared objects from archives
11509
whole_archive_flag_spec_CXX=' '
11510
archive_cmds_need_lc_CXX=yes
11511
# This is similar to how AIX traditionally builds it's shared libraries.
11512
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'
11517
case $cc_basename in
11519
# FIXME: insert proper C++ library support
11525
case $cc_basename in
11527
# FIXME: insert proper C++ library support
11531
# Green Hills C++ Compiler
11532
# FIXME: insert proper C++ library support
11536
# FIXME: insert proper C++ library support
11542
# C++ shared libraries reported to be fairly broken before switch to ELF
11546
archive_cmds_need_lc_CXX=no
11549
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11556
if test $with_gnu_ld = no; then
11557
if test "$host_cpu" = ia64; then
11558
hardcode_libdir_flag_spec_CXX='-L$libdir'
11560
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11561
hardcode_libdir_separator_CXX=:
11562
export_dynamic_flag_spec_CXX='${wl}-E'
11565
if test "$host_cpu" = ia64; then
11566
hardcode_direct_CXX=no
11567
hardcode_shlibpath_var_CXX=no
11569
hardcode_direct_CXX=yes
11571
hardcode_minus_L_CXX=yes # Not in the search PATH,
11572
# but as the default
11573
# location of the library.
11575
case $cc_basename in
11577
# FIXME: insert proper C++ library support
11583
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'
11586
if test "$host_cpu" = ia64; then
11587
archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11589
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11593
# Commands to make compiler produce verbose output that lists
11594
# what "hidden" libraries, object files and flags are used when
11595
# linking a shared library.
11597
# There doesn't appear to be a way to prevent this compiler from
11598
# explicitly linking system object files so we need to strip them
11599
# from the output so that they don't get included in the library
11601
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11604
if test "$GXX" = yes; then
11605
if test $with_gnu_ld = no; then
11608
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'
11611
if test "$host_cpu" = ia64; then
11612
archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11614
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'
11620
# FIXME: insert proper C++ library support
11627
case $cc_basename in
11630
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'
11632
# Archives containing C++ object files must be created using
11633
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
11634
# necessary to make sure instantiated templates are included
11636
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11639
if test "$GXX" = yes; then
11640
if test "$with_gnu_ld" = no; then
11641
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'
11643
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -o $lib'
11646
link_all_deplibs_CXX=yes
11649
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11650
hardcode_libdir_separator_CXX=:
11653
case $cc_basename in
11655
# Kuck and Associates, Inc. (KAI) C++ Compiler
11657
# KCC will only create a shared library if the output file
11658
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11659
# to its proper name (with version) after linking.
11660
archive_cmds_CXX='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11661
archive_expsym_cmds_CXX='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
11663
# Commands to make compiler produce verbose output that lists
11664
# what "hidden" libraries, object files and flags are used when
11665
# linking a shared library.
11667
# There doesn't appear to be a way to prevent this compiler from
11668
# explicitly linking system object files so we need to strip them
11669
# from the output so that they don't get included in the library
11671
output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest.so 2>&1 | egrep "ld"`; rm -f libconftest.so; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11673
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11674
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11676
# Archives containing C++ object files must be created using
11677
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11678
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11682
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11683
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'
11685
runpath_var=LD_RUN_PATH
11686
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11687
hardcode_libdir_separator_CXX=:
11689
# Commands to make compiler produce verbose output that lists
11690
# what "hidden" libraries, object files and flags are used when
11691
# linking a shared library.
11693
# There doesn't appear to be a way to prevent this compiler from
11694
# explicitly linking system object files so we need to strip them
11695
# from the output so that they don't get included in the library
11697
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'
11702
# FIXME: insert proper C++ library support
11706
# FIXME: insert proper C++ library support
11710
case $cc_basename in
11712
# FIXME: insert proper C++ library support
11716
# FIXME: insert proper C++ library support
11722
# NetBSD uses g++ - do we need to do anything?
11725
case $cc_basename in
11727
# Kuck and Associates, Inc. (KAI) C++ Compiler
11729
# KCC will only create a shared library if the output file
11730
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11731
# to its proper name (with version) after linking.
11732
archive_cmds_CXX='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11734
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11735
hardcode_libdir_separator_CXX=:
11737
# Archives containing C++ object files must be created using
11738
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11739
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11743
# Rational C++ 2.4.1
11744
# FIXME: insert proper C++ library support
11748
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11749
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'
11751
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11752
hardcode_libdir_separator_CXX=:
11754
# Commands to make compiler produce verbose output that lists
11755
# what "hidden" libraries, object files and flags are used when
11756
# linking a shared library.
11758
# There doesn't appear to be a way to prevent this compiler from
11759
# explicitly linking system object files so we need to strip them
11760
# from the output so that they don't get included in the library
11762
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'
11765
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11766
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11767
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'
11769
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11770
hardcode_libdir_separator_CXX=:
11772
# Commands to make compiler produce verbose output that lists
11773
# what "hidden" libraries, object files and flags are used when
11774
# linking a shared library.
11775
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"'
11778
# FIXME: insert proper C++ library support
11785
case $cc_basename in
11787
# Kuck and Associates, Inc. (KAI) C++ Compiler
11789
# KCC will only create a shared library if the output file
11790
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11791
# to its proper name (with version) after linking.
11792
archive_cmds_CXX='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11794
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11795
hardcode_libdir_separator_CXX=:
11797
# Archives containing C++ object files must be created using
11798
# the KAI C++ compiler.
11799
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11802
# Rational C++ 2.4.1
11803
# FIXME: insert proper C++ library support
11807
allow_undefined_flag_CXX=' -expect_unresolved \*'
11808
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'
11809
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done~
11810
echo "-hidden">> $lib.exp~
11811
$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~
11814
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11815
hardcode_libdir_separator_CXX=:
11817
# Commands to make compiler produce verbose output that lists
11818
# what "hidden" libraries, object files and flags are used when
11819
# linking a shared library.
11821
# There doesn't appear to be a way to prevent this compiler from
11822
# explicitly linking system object files so we need to strip them
11823
# from the output so that they don't get included in the library
11825
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'
11828
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11829
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11830
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'
11832
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11833
hardcode_libdir_separator_CXX=:
11835
# Commands to make compiler produce verbose output that lists
11836
# what "hidden" libraries, object files and flags are used when
11837
# linking a shared library.
11838
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"'
11841
# FIXME: insert proper C++ library support
11848
# FIXME: insert proper C++ library support
11852
archive_cmds_need_lc_CXX=no
11853
case $cc_basename in
11855
# FIXME: insert proper C++ library support
11859
# FIXME: insert proper C++ library support
11865
case $cc_basename in
11868
# FIXME: insert proper C++ library support
11873
# FIXME: insert proper C++ library support
11877
# FIXME: insert proper C++ library support
11883
case $cc_basename in
11885
# Sun C++ 4.2, 5.x and Centerline C++
11886
no_undefined_flag_CXX=' -zdefs'
11887
archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11888
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11889
$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'
11891
hardcode_libdir_flag_spec_CXX='-R$libdir'
11892
hardcode_shlibpath_var_CXX=no
11894
solaris2.0-5 | solaris2.0-5.*) ;;
11896
# The C++ compiler is used as linker so we must use $wl
11897
# flag to pass the commands to the underlying system
11899
# Supported since Solaris 2.6 (maybe 2.5.1?)
11900
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11903
link_all_deplibs_CXX=yes
11905
# Commands to make compiler produce verbose output that lists
11906
# what "hidden" libraries, object files and flags are used when
11907
# linking a shared library.
11909
# There doesn't appear to be a way to prevent this compiler from
11910
# explicitly linking system object files so we need to strip them
11911
# from the output so that they don't get included in the library
11913
output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | egrep "\-R|\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11915
# Archives containing C++ object files must be created using
11916
# "CC -xar", where "CC" is the Sun C++ compiler. This is
11917
# necessary to make sure instantiated templates are included
11919
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11922
# Green Hills C++ Compiler
11923
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11925
# The C++ compiler must be used to create the archive.
11926
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11929
# GNU C++ compiler with Solaris linker
11930
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11931
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11932
if $CC --version | egrep -v '^2\.7' > /dev/null; then
11933
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $linker_flags ${wl}-h $wl$soname -o $lib'
11934
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11935
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags~$rm $lib.exp'
11937
# Commands to make compiler produce verbose output that lists
11938
# what "hidden" libraries, object files and flags are used when
11939
# linking a shared library.
11940
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep \"\-L\""
11942
# g++ 2.7 appears to require `-G' NOT `-shared' on this
11944
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $linker_flags ${wl}-h $wl$soname -o $lib'
11945
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11946
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags~$rm $lib.exp'
11948
# Commands to make compiler produce verbose output that lists
11949
# what "hidden" libraries, object files and flags are used when
11950
# linking a shared library.
11951
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | egrep \"\-L\""
11954
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11959
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11960
archive_cmds_need_lc_CXX=no
11963
case $cc_basename in
11965
# NonStop-UX NCC 3.20
11966
# FIXME: insert proper C++ library support
11970
# FIXME: insert proper C++ library support
11976
# FIXME: insert proper C++ library support
11980
# FIXME: insert proper C++ library support
11984
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11985
echo "${ECHO_T}$ld_shlibs_CXX" >&6
11986
test "$ld_shlibs_CXX" = no && can_build_shared=no
11988
# Figure out "hidden" C++ library dependencies from verbose
11989
# compiler output whening linking a shared library.
11990
cat > conftest.$ac_ext <<EOF
11994
Foo (void) { a = 0; }
12001
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12002
(eval $ac_compile) 2>&5
12004
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12005
(exit $ac_status); }; then
12006
# Parse the compiler output and extract the necessary
12007
# objects, libraries and library flags.
12009
# Sentinel used to keep track of whether or not we are before
12010
# the conftest object file.
12011
pre_test_object_deps_done=no
12013
# The `*' in the case matches for architectures that use `case' in
12014
# $output_verbose_cmd can trigger glob expansion during the loop
12015
# eval without this substitution.
12016
output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
12018
for p in `eval $output_verbose_link_cmd`; do
12022
# Some compilers place space between "-{L,R}" and the path.
12023
# Remove the space.
12024
if test $p = "-L" \
12025
|| test $p = "-R"; then
12032
if test "$pre_test_object_deps_done" = no; then
12035
# Internal compiler library paths should come after those
12036
# provided the user. The postdeps already come after the
12037
# user supplied libs so there is no need to process them.
12038
if test -z "$compiler_lib_search_path_CXX"; then
12039
compiler_lib_search_path_CXX="${prev}${p}"
12041
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12044
# The "-l" case would never come before the object being
12045
# linked, so don't bother handling this case.
12048
if test -z "$postdeps_CXX"; then
12049
postdeps_CXX="${prev}${p}"
12051
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12056
*.$objext|*.$libext)
12057
# This assumes that the test object file only shows up
12058
# once in the compiler output.
12059
if test "$p" = "conftest.$objext"; then
12060
pre_test_object_deps_done=yes
12064
if test "$pre_test_object_deps_done" = no; then
12065
if test -z "$predep_objects_CXX"; then
12066
predep_objects_CXX="$p"
12068
predep_objects_CXX="$predep_objects_CXX $p"
12071
if test -z "$postdep_objects_CXX"; then
12072
postdep_objects_CXX="$p"
12074
postdep_objects_CXX="$postdep_objects_CXX $p"
12079
*) ;; # Ignore the rest.
12087
echo "libtool.m4: error: problem compiling C++ test program"
12090
$rm -f confest.$objext
12092
case " $postdeps_CXX " in
12093
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12094
*) archive_cmds_need_lc_CXX=yes ;;
12100
lt_prog_compiler_wl_CXX=
12101
lt_prog_compiler_pic_CXX=
12102
lt_prog_compiler_static_CXX=
12104
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12105
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12107
# C++ specific cases for pic, static, wl, etc.
12108
if test "$GXX" = yes; then
12109
lt_prog_compiler_wl_CXX='-Wl,'
12110
lt_prog_compiler_static_CXX='-static'
12114
# All AIX code is PIC.
12115
if test "$host_cpu" = ia64; then
12116
# AIX 5 now supports IA64 processor
12117
lt_prog_compiler_static_CXX='-Bstatic'
12121
# FIXME: we need at least 68020 code to build shared libraries, but
12122
# adding the `-m68020' flag to GCC prevents building anything better,
12124
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12126
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12127
# PIC is the default for these OSes.
12129
cygwin* | mingw* | os2*)
12130
# This hack is so that the source file can tell whether it is being
12131
# built for inclusion in a dll (and should export symbols for example).
12132
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12134
darwin* | rhapsody*)
12135
# PIC is the default on this platform
12136
# Common symbols not allowed in MH_DYLIB files
12137
lt_prog_compiler_pic_CXX='-fno-common'
12140
# DJGPP does not support shared libraries at all
12141
lt_prog_compiler_pic_CXX=
12144
if test -d /usr/nec; then
12145
lt_prog_compiler_pic_CXX=-Kconform_pic
12149
# PIC is the default for IA64 HP-UX, but not for PA HP-UX.
12150
if test "$host_cpu" != ia64; then
12151
lt_prog_compiler_pic_CXX='-fPIC'
12155
lt_prog_compiler_pic_CXX='-fPIC'
12161
# All AIX code is PIC.
12162
if test "$host_cpu" = ia64; then
12163
# AIX 5 now supports IA64 processor
12164
lt_prog_compiler_static_CXX='-Bstatic'
12166
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12170
case $cc_basename in
12172
# Green Hills C++ Compiler
12173
# _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"
12178
case $cc_basename in
12180
lt_prog_compiler_pic_CXX='-KPIC'
12183
# Green Hills C++ Compiler
12184
lt_prog_compiler_pic_CXX='-pic'
12191
# FreeBSD uses GNU C++
12193
hpux9* | hpux10* | hpux11*)
12194
case $cc_basename in
12196
lt_prog_compiler_wl_CXX='-Wl,'
12197
lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12198
if test "$host_cpu" != ia64; then
12199
lt_prog_compiler_pic_CXX='+Z'
12203
lt_prog_compiler_wl_CXX='-Wl,'
12204
lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12205
if test "$host_cpu" != ia64; then
12206
lt_prog_compiler_pic_CXX='+Z'
12213
irix5* | irix6* | nonstopux*)
12214
case $cc_basename in
12216
lt_prog_compiler_wl_CXX='-Wl,'
12217
lt_prog_compiler_static_CXX='-non_shared'
12218
# CC pic flag -KPIC is the default.
12225
case $cc_basename in
12228
lt_prog_compiler_wl_CXX='--backend -Wl,'
12229
lt_prog_compiler_pic_CXX='-fPIC'
12233
# Make sure the PIC flag is empty. It appears that all Alpha
12234
# Linux and Compaq Tru64 Unix objects are PIC.
12235
lt_prog_compiler_pic_CXX=
12236
lt_prog_compiler_static_CXX='-non_shared'
12247
case $cc_basename in
12249
lt_prog_compiler_pic_CXX='-W c,exportall'
12257
osf3* | osf4* | osf5*)
12258
case $cc_basename in
12260
lt_prog_compiler_wl_CXX='--backend -Wl,'
12263
# Rational C++ 2.4.1
12264
lt_prog_compiler_pic_CXX='-pic'
12267
# Digital/Compaq C++
12268
lt_prog_compiler_wl_CXX='-Wl,'
12269
# Make sure the PIC flag is empty. It appears that all Alpha
12270
# Linux and Compaq Tru64 Unix objects are PIC.
12271
lt_prog_compiler_pic_CXX=
12272
lt_prog_compiler_static_CXX='-non_shared'
12281
case $cc_basename in
12283
lt_prog_compiler_pic_CXX='-fPIC'
12290
case $cc_basename in
12292
# Sun C++ 4.2, 5.x and Centerline C++
12293
lt_prog_compiler_pic_CXX='-KPIC'
12294
lt_prog_compiler_static_CXX='-Bstatic'
12295
lt_prog_compiler_wl_CXX='-Qoption ld '
12298
# Green Hills C++ Compiler
12299
lt_prog_compiler_pic_CXX='-PIC'
12306
case $cc_basename in
12309
lt_prog_compiler_pic_CXX='-pic'
12310
lt_prog_compiler_static_CXX='-Bstatic'
12314
lt_prog_compiler_pic_CXX='-pic'
12321
case $cc_basename in
12323
# NonStop-UX NCC 3.20
12324
lt_prog_compiler_pic_CXX='-KPIC'
12335
lt_prog_compiler_can_build_shared_CXX=no
12340
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12341
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
12344
# Check to make sure the PIC flag actually works.
12346
if test -n "$lt_prog_compiler_pic_CXX"; then
12347
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12348
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
12349
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12350
echo $ECHO_N "(cached) $ECHO_C" >&6
12352
lt_prog_compiler_pic_works_CXX=no
12353
ac_outfile=conftest.$ac_objext
12354
save_CFLAGS="$CFLAGS"
12355
CFLAGS="$CFLAGS $lt_prog_compiler_pic_CXX -DPIC"
12356
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12357
if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
12358
# The compiler can only warn and ignore the option if not recognized
12359
# So say no if there are warnings
12360
if test -s conftest.err; then
12361
# Append any errors to the config.log.
12362
cat conftest.err 1>&5
12364
lt_prog_compiler_pic_works_CXX=yes
12368
CFLAGS="$save_CFLAGS"
12371
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12372
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
12374
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12375
case $lt_prog_compiler_pic_CXX in
12377
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12380
lt_prog_compiler_pic_CXX=
12381
lt_prog_compiler_can_build_shared_CXX=no
12386
# For platforms which do not support PIC, -DPIC is meaningless:
12388
lt_prog_compiler_pic_CXX=
12391
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12395
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12396
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12397
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12398
echo $ECHO_N "(cached) $ECHO_C" >&6
12400
lt_cv_prog_compiler_c_o_CXX=no
12401
$rm -r conftest 2>/dev/null
12405
save_CXXFLAGS="$CXXFLAGS"
12406
CXXFLAGS="$CXXFLAGS -o out/conftest2.$ac_objext"
12407
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12409
# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
12410
# that will create temporary files in the current directory regardless of
12411
# the output directory. Thus, making CWD read-only will cause this test
12412
# to fail, enabling locking or at least warning the user not to do parallel
12416
if (eval $ac_compile 2>out/conftest.err) && test -s out/conftest2.$ac_objext
12418
# The compiler can only warn and ignore the option if not recognized
12419
# So say no if there are warnings
12420
if test -s out/conftest.err; then
12421
# Append any errors to the config.log.
12422
cat out/conftest.err 1>&5
12424
lt_cv_prog_compiler_c_o_CXX=yes
12427
CXXFLAGS="$save_CXXFLAGS"
12429
$rm conftest* out/*
12436
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12437
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
12440
hard_links="nottested"
12441
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12442
# do not overwrite the value of need_locks provided by the user
12443
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12444
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12447
ln conftest.a conftest.b 2>/dev/null && hard_links=no
12449
ln conftest.a conftest.b 2>&5 || hard_links=no
12450
ln conftest.a conftest.b 2>/dev/null && hard_links=no
12451
echo "$as_me:$LINENO: result: $hard_links" >&5
12452
echo "${ECHO_T}$hard_links" >&6
12453
if test "$hard_links" = no; then
12454
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12455
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12462
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12463
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12465
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
12468
# If we're using GNU nm, then we don't want the "-C" option.
12469
# -C means demangle to AIX nm, but means don't demangle with GNU nm
12470
if $NM -V 2>&1 | egrep '(GNU)' > /dev/null; then
12471
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'
12473
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'
12476
cygwin* | mingw* | pw32*)
12477
export_symbols_cmds_CXX="$ltdll_cmds"
12480
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
12484
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12485
echo "${ECHO_T}$ld_shlibs_CXX" >&6
12486
test "$ld_shlibs_CXX" = no && can_build_shared=no
12488
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12489
if test "$GCC" = yes; then
12490
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12494
# Do we need to explicitly link libc?
12496
archive_cmds_need_lc_CXX=yes
12497
if test "$enable_shared" = yes && test "$GCC" = yes; then
12498
case $archive_cmds_CXX in
12500
# FIXME: we may have to deal with multi-command sequences.
12503
# Test whether the compiler implicitly links with -lc since on some
12504
# systems, -lgcc has to come before -lc. If gcc already passes -lc
12505
# to ld, don't add -lc before -lgcc.
12506
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12507
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12509
echo 'static int dummy;' > conftest.$ac_ext
12511
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12512
(eval $ac_compile) 2>&5
12514
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12515
(exit $ac_status); } 2>conftest.err; then
12518
libobjs=conftest.$ac_objext
12520
wl=$lt_prog_compiler_wl_CXX
12526
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12527
allow_undefined_flag_CXX=
12528
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12529
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12531
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12532
(exit $ac_status); }
12534
archive_cmds_need_lc_CXX=no
12536
archive_cmds_need_lc_CXX=yes
12538
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12540
cat conftest.err 1>&5
12543
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12544
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12549
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12550
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12551
hardcode_action_CXX=
12552
if test -n "$hardcode_libdir_flag_spec_CXX" || \
12553
test -n "$runpath_var CXX"; then
12555
# We can hardcode non-existant directories.
12556
if test "$hardcode_direct_CXX" != no &&
12557
# If the only mechanism to avoid hardcoding is shlibpath_var, we
12558
# have to relink, otherwise we might link with an installed library
12559
# when we should be linking with a yet-to-be-installed one
12560
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12561
test "$hardcode_minus_L_CXX" != no; then
12562
# Linking always hardcodes the temporary library directory.
12563
hardcode_action_CXX=relink
12565
# We can link without hardcoding, and we can hardcode nonexisting dirs.
12566
hardcode_action_CXX=immediate
12569
# We cannot hardcode anything, or else we can only hardcode existing
12571
hardcode_action_CXX=unsupported
12573
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12574
echo "${ECHO_T}$hardcode_action_CXX" >&6
12576
if test "$hardcode_action_CXX" = relink; then
12577
# Fast installation is not supported
12578
enable_fast_install=no
12579
elif test "$shlibpath_overrides_runpath" = yes ||
12580
test "$enable_shared" = no; then
12581
# Fast installation is not necessary
12582
enable_fast_install=needless
12587
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12588
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12589
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12590
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12591
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12592
echo "$as_me:$LINENO: result: yes" >&5
12593
echo "${ECHO_T}yes" >&6
12595
echo "$as_me:$LINENO: result: no" >&5
12596
echo "${ECHO_T}no" >&6
12599
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12600
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12601
library_names_spec=
12602
libname_spec='lib$name'
12605
postuninstall_cmds=
12609
shlibpath_overrides_runpath=unknown
12611
dynamic_linker="$host_os ld.so"
12612
sys_lib_dlsearch_path_spec="/lib /usr/lib"
12613
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12614
need_lib_prefix=unknown
12615
hardcode_into_libs=no
12617
# when you set need_version to no, make sure it does not cause -set_version
12618
# flags to be left without arguments
12619
need_version=unknown
12624
library_names_spec='${libname}${release}.so$versuffix $libname.a'
12625
shlibpath_var=LIBPATH
12627
# AIX 3 has no versioning support, so we append a major version to the name.
12628
soname_spec='${libname}${release}.so$major'
12633
if test "$host_cpu" = ia64; then
12634
# AIX 5 supports IA64
12635
library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
12636
shlibpath_var=LD_LIBRARY_PATH
12638
# With GCC up to 2.95.x, collect2 would create an import file
12639
# for dependence libraries. The import file would start with
12640
# the line `#! .'. This would cause the generated library to
12641
# depend on `.', always an invalid library. This was fixed in
12642
# development snapshots of GCC prior to 3.0.
12644
aix4 | aix4.[01] | aix4.[01].*)
12645
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12647
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12650
can_build_shared=no
12654
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12655
# soname into executable. Probably we can add versioning support to
12656
# collect2, so additional links can be useful in future.
12657
if test "$aix_use_runtimelinking" = yes; then
12658
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
12659
# instead of lib<name>.a to let people know that these are not
12660
# typical AIX shared libraries.
12661
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
12663
# We preserve .a as extension for shared libraries through AIX4.2
12664
# and later when we are not doing run time linking.
12665
library_names_spec='${libname}${release}.a $libname.a'
12666
soname_spec='${libname}${release}.so$major'
12668
shlibpath_var=LIBPATH
12673
library_names_spec='$libname.ixlibrary $libname.a'
12674
# Create ${libname}_ixlibrary.a entries in /sys/libs.
12675
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'
12679
library_names_spec='${libname}.so'
12680
dynamic_linker="$host_os ld.so"
12681
shlibpath_var=LIBRARY_PATH
12687
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
12688
soname_spec='${libname}${release}.so$major'
12689
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12690
shlibpath_var=LD_LIBRARY_PATH
12691
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12692
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12693
# the default ld.so.conf also contains /usr/contrib/lib and
12694
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12695
# libtool to hard-code these into programs
12698
cygwin* | mingw* | pw32*)
12699
version_type=windows
12702
case $GCC,$host_os in
12704
library_names_spec='$libname.dll.a'
12705
sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
12706
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
12707
postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
12708
dldir=$destdir/`dirname \$dlpath`~
12709
test -d \$dldir || mkdir -p \$dldir~
12710
$install_prog .libs/$dlname \$dldir/$dlname'
12711
postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
12712
dlpath=$dir/\$dldll~
12716
library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
12717
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://"`
12718
if echo "$sys_lib_search_path_spec" | egrep ';[C-Z]:/' >/dev/null; then
12719
# It is most probably a Windows format PATH printed by
12720
# mingw gcc, but we are running on Cygwin. Gcc prints its search
12721
# path with ; separators, and with drive letters. We can handle the
12722
# drive letters (cygwin fileutils understands them), so leave them,
12723
# especially as we might pass files found there to a mingw objdump,
12724
# which wouldn't understand a cygwinified path. Ahh.
12725
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
12727
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
12731
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
12734
library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
12737
dynamic_linker='Win32 ld.exe'
12738
# FIXME: first we should search . and the directory the executable is in
12742
darwin* | rhapsody*)
12743
dynamic_linker="$host_os dyld"
12744
version_type=darwin
12747
# FIXME: Relying on posixy $() will cause problems for
12748
# cross-compilation, but unfortunately the echo tests do not
12749
# yet detect zsh echo's removal of \ escapes.
12750
library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
12751
soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
12752
shlibpath_overrides_runpath=yes
12753
shlibpath_var=DYLD_LIBRARY_PATH
12760
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
12761
soname_spec='${libname}${release}.so$major'
12762
shlibpath_var=LD_LIBRARY_PATH
12770
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
12771
version_type=freebsd-$objformat
12772
case $version_type in
12774
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
12779
library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
12783
shlibpath_var=LD_LIBRARY_PATH
12786
shlibpath_overrides_runpath=yes
12788
freebsd3.01* | freebsdelf3.01*)
12789
shlibpath_overrides_runpath=yes
12790
hardcode_into_libs=yes
12793
shlibpath_overrides_runpath=no
12794
hardcode_into_libs=yes
12803
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
12804
soname_spec='${libname}${release}.so$major'
12805
shlibpath_var=LD_LIBRARY_PATH
12806
hardcode_into_libs=yes
12809
hpux9* | hpux10* | hpux11*)
12810
# Give a soname corresponding to the major version so that dld.sl refuses to
12811
# link against other versions.
12815
if test "$host_cpu" = ia64; then
12816
hardcode_into_libs=yes
12817
dynamic_linker="$host_os dld.so"
12818
shlibpath_var=LD_LIBRARY_PATH
12819
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12820
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
12821
soname_spec='${libname}${release}.so$major'
12822
if test "X$HPUX_IA64_MODE" = X32; then
12823
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12825
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12827
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12829
dynamic_linker="$host_os dld.sl"
12830
shlibpath_var=SHLIB_PATH
12831
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12832
library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
12833
soname_spec='${libname}${release}.sl$major'
12835
# HP-UX runs *really* slowly unless shared libraries are mode 555.
12836
postinstall_cmds='chmod 555 $lib'
12839
irix5* | irix6* | nonstopux*)
12841
nonstopux*) version_type=nonstopux ;;
12842
*) version_type=irix ;;
12846
soname_spec='${libname}${release}.so$major'
12847
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
12849
irix5* | nonstopux*)
12850
libsuff= shlibsuff=
12853
case $LD in # libtool.m4 will add one of these switches to LD
12854
*-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
12855
*-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
12856
*-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
12857
*) libsuff= shlibsuff= libmagic=never-match;;
12861
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12862
shlibpath_overrides_runpath=no
12863
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12864
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12867
# No shared lib support for Linux oldld, aout, or coff.
12868
linux*oldld* | linux*aout* | linux*coff*)
12872
# This must be Linux ELF.
12877
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
12878
soname_spec='${libname}${release}.so$major'
12879
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12881
if test "x$LINUX_64_MODE" = x64; then
12882
# Some platforms are per default 64-bit, so there's no /lib64
12883
if test -d /lib64; then
12887
shlibpath_var=LD_LIBRARY_PATH
12888
shlibpath_overrides_runpath=no
12889
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
12890
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12891
# This implies no fast_install, which is unacceptable.
12892
# Some rework will be needed to allow for fast_install
12893
# before this can be enabled.
12894
hardcode_into_libs=yes
12896
# We used to test for /lib/ld.so.1 and disable shared libraries on
12897
# powerpc, because MkLinux only supported shared libraries with the
12898
# GNU dynamic linker. Since this was broken with cross compilers,
12899
# most powerpc-linux boxes support dynamic linking these days and
12900
# people can always --disable-shared, the test was removed, and we
12901
# assume the GNU/Linux dynamic linker is in use.
12902
dynamic_linker='GNU/Linux ld.so'
12909
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12910
library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
12911
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12912
dynamic_linker='NetBSD (a.out) ld.so'
12914
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
12915
soname_spec='${libname}${release}.so$major'
12916
dynamic_linker='NetBSD ld.elf_so'
12918
shlibpath_var=LD_LIBRARY_PATH
12919
shlibpath_overrides_runpath=yes
12920
hardcode_into_libs=yes
12925
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
12926
shlibpath_var=LD_LIBRARY_PATH
12927
shlibpath_overrides_runpath=yes
12934
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
12935
soname_spec='${libname}${release}.so$major'
12936
shlibpath_var=LD_LIBRARY_PATH
12937
shlibpath_overrides_runpath=yes
12944
library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
12945
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12946
shlibpath_var=LD_LIBRARY_PATH
12947
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12949
openbsd2.[89] | openbsd2.[89].*)
12950
shlibpath_overrides_runpath=no
12953
shlibpath_overrides_runpath=yes
12957
shlibpath_overrides_runpath=yes
12962
libname_spec='$name'
12964
library_names_spec='$libname.dll $libname.a'
12965
dynamic_linker='OS/2 ld.exe'
12966
shlibpath_var=LIBPATH
12969
osf3* | osf4* | osf5*)
12973
soname_spec='${libname}${release}.so'
12974
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
12975
shlibpath_var=LD_LIBRARY_PATH
12976
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12977
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12982
soname_spec='${libname}${release}.so$major'
12983
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
12984
shlibpath_var=LD_LIBRARY_PATH
12991
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
12992
soname_spec='${libname}${release}.so$major'
12993
shlibpath_var=LD_LIBRARY_PATH
12994
shlibpath_overrides_runpath=yes
12995
hardcode_into_libs=yes
12996
# ldd complains unless libraries are executable
12997
postinstall_cmds='chmod +x $lib'
13002
library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
13003
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13004
shlibpath_var=LD_LIBRARY_PATH
13005
shlibpath_overrides_runpath=yes
13006
if test "$with_gnu_ld" = yes; then
13012
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13014
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13015
soname_spec='${libname}${release}.so$major'
13016
shlibpath_var=LD_LIBRARY_PATH
13017
case $host_vendor in
13019
shlibpath_overrides_runpath=no
13024
shlibpath_overrides_runpath=no
13025
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13031
if test -d /usr/nec ;then
13033
library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
13034
soname_spec='$libname.so.$major'
13035
shlibpath_var=LD_LIBRARY_PATH
13041
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13042
soname_spec='${libname}${release}.so$major'
13043
shlibpath_var=LD_LIBRARY_PATH
13050
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13051
echo "${ECHO_T}$dynamic_linker" >&6
13052
test "$dynamic_linker" = no && can_build_shared=no
13054
if test "x$enable_dlopen" != xyes; then
13055
enable_dlopen=unknown
13056
enable_dlopen_self=unknown
13057
enable_dlopen_self_static=unknown
13064
lt_cv_dlopen="load_add_on"
13066
lt_cv_dlopen_self=yes
13069
cygwin* | mingw* | pw32*)
13070
lt_cv_dlopen="LoadLibrary"
13075
echo "$as_me:$LINENO: checking for shl_load" >&5
13076
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13077
if test "${ac_cv_func_shl_load+set}" = set; then
13078
echo $ECHO_N "(cached) $ECHO_C" >&6
13080
cat >conftest.$ac_ext <<_ACEOF
13081
#line $LINENO "configure"
13084
cat confdefs.h >>conftest.$ac_ext
13085
cat >>conftest.$ac_ext <<_ACEOF
13086
/* end confdefs.h. */
13087
/* System header to define __stub macros and hopefully few prototypes,
13088
which can conflict with char shl_load (); below.
13089
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13090
<limits.h> exists even on freestanding compilers. */
13092
# include <limits.h>
13094
# include <assert.h>
13096
/* Override any gcc2 internal prototype to avoid an error. */
13101
/* We use char because int might match the return type of a gcc2
13102
builtin and then its argument prototype would still apply. */
13104
/* The GNU C library defines this for functions which it implements
13105
to always fail with ENOSYS. Some functions are actually named
13106
something starting with __ and the normal name is an alias. */
13107
#if defined (__stub_shl_load) || defined (__stub___shl_load)
13110
char (*f) () = shl_load;
13119
return f != shl_load;
13124
rm -f conftest.$ac_objext conftest$ac_exeext
13125
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13126
(eval $ac_link) 2>&5
13128
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129
(exit $ac_status); } &&
13130
{ ac_try='test -s conftest$ac_exeext'
13131
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13132
(eval $ac_try) 2>&5
13134
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135
(exit $ac_status); }; }; then
13136
ac_cv_func_shl_load=yes
13138
echo "$as_me: failed program was:" >&5
13139
sed 's/^/| /' conftest.$ac_ext >&5
13141
ac_cv_func_shl_load=no
13143
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13145
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13146
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13147
if test $ac_cv_func_shl_load = yes; then
13148
lt_cv_dlopen="shl_load"
13150
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13151
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13152
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13153
echo $ECHO_N "(cached) $ECHO_C" >&6
13155
ac_check_lib_save_LIBS=$LIBS
13157
cat >conftest.$ac_ext <<_ACEOF
13158
#line $LINENO "configure"
13161
cat confdefs.h >>conftest.$ac_ext
13162
cat >>conftest.$ac_ext <<_ACEOF
13163
/* end confdefs.h. */
13165
/* Override any gcc2 internal prototype to avoid an error. */
13169
/* We use char because int might match the return type of a gcc2
13170
builtin and then its argument prototype would still apply. */
13180
rm -f conftest.$ac_objext conftest$ac_exeext
13181
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13182
(eval $ac_link) 2>&5
13184
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13185
(exit $ac_status); } &&
13186
{ ac_try='test -s conftest$ac_exeext'
13187
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13188
(eval $ac_try) 2>&5
13190
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13191
(exit $ac_status); }; }; then
13192
ac_cv_lib_dld_shl_load=yes
13194
echo "$as_me: failed program was:" >&5
13195
sed 's/^/| /' conftest.$ac_ext >&5
13197
ac_cv_lib_dld_shl_load=no
13199
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13200
LIBS=$ac_check_lib_save_LIBS
13202
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13203
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13204
if test $ac_cv_lib_dld_shl_load = yes; then
13205
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13207
echo "$as_me:$LINENO: checking for dlopen" >&5
13208
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13209
if test "${ac_cv_func_dlopen+set}" = set; then
13210
echo $ECHO_N "(cached) $ECHO_C" >&6
13212
cat >conftest.$ac_ext <<_ACEOF
13213
#line $LINENO "configure"
13216
cat confdefs.h >>conftest.$ac_ext
13217
cat >>conftest.$ac_ext <<_ACEOF
13218
/* end confdefs.h. */
13219
/* System header to define __stub macros and hopefully few prototypes,
13220
which can conflict with char dlopen (); below.
13221
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13222
<limits.h> exists even on freestanding compilers. */
13224
# include <limits.h>
13226
# include <assert.h>
13228
/* Override any gcc2 internal prototype to avoid an error. */
13233
/* We use char because int might match the return type of a gcc2
13234
builtin and then its argument prototype would still apply. */
13236
/* The GNU C library defines this for functions which it implements
13237
to always fail with ENOSYS. Some functions are actually named
13238
something starting with __ and the normal name is an alias. */
13239
#if defined (__stub_dlopen) || defined (__stub___dlopen)
13242
char (*f) () = dlopen;
13251
return f != dlopen;
13256
rm -f conftest.$ac_objext conftest$ac_exeext
13257
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13258
(eval $ac_link) 2>&5
13260
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13261
(exit $ac_status); } &&
13262
{ ac_try='test -s conftest$ac_exeext'
13263
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13264
(eval $ac_try) 2>&5
13266
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13267
(exit $ac_status); }; }; then
13268
ac_cv_func_dlopen=yes
13270
echo "$as_me: failed program was:" >&5
13271
sed 's/^/| /' conftest.$ac_ext >&5
13273
ac_cv_func_dlopen=no
13275
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13277
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13278
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
13279
if test $ac_cv_func_dlopen = yes; then
13280
lt_cv_dlopen="dlopen"
13282
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13283
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13284
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13285
echo $ECHO_N "(cached) $ECHO_C" >&6
13287
ac_check_lib_save_LIBS=$LIBS
13289
cat >conftest.$ac_ext <<_ACEOF
13290
#line $LINENO "configure"
13293
cat confdefs.h >>conftest.$ac_ext
13294
cat >>conftest.$ac_ext <<_ACEOF
13295
/* end confdefs.h. */
13297
/* Override any gcc2 internal prototype to avoid an error. */
13301
/* We use char because int might match the return type of a gcc2
13302
builtin and then its argument prototype would still apply. */
13312
rm -f conftest.$ac_objext conftest$ac_exeext
13313
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13314
(eval $ac_link) 2>&5
13316
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13317
(exit $ac_status); } &&
13318
{ ac_try='test -s conftest$ac_exeext'
13319
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13320
(eval $ac_try) 2>&5
13322
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13323
(exit $ac_status); }; }; then
13324
ac_cv_lib_dl_dlopen=yes
13326
echo "$as_me: failed program was:" >&5
13327
sed 's/^/| /' conftest.$ac_ext >&5
13329
ac_cv_lib_dl_dlopen=no
13331
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13332
LIBS=$ac_check_lib_save_LIBS
13334
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13335
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13336
if test $ac_cv_lib_dl_dlopen = yes; then
13337
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13339
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13340
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
13341
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13342
echo $ECHO_N "(cached) $ECHO_C" >&6
13344
ac_check_lib_save_LIBS=$LIBS
13345
LIBS="-lsvld $LIBS"
13346
cat >conftest.$ac_ext <<_ACEOF
13347
#line $LINENO "configure"
13350
cat confdefs.h >>conftest.$ac_ext
13351
cat >>conftest.$ac_ext <<_ACEOF
13352
/* end confdefs.h. */
13354
/* Override any gcc2 internal prototype to avoid an error. */
13358
/* We use char because int might match the return type of a gcc2
13359
builtin and then its argument prototype would still apply. */
13369
rm -f conftest.$ac_objext conftest$ac_exeext
13370
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13371
(eval $ac_link) 2>&5
13373
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13374
(exit $ac_status); } &&
13375
{ ac_try='test -s conftest$ac_exeext'
13376
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13377
(eval $ac_try) 2>&5
13379
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13380
(exit $ac_status); }; }; then
13381
ac_cv_lib_svld_dlopen=yes
13383
echo "$as_me: failed program was:" >&5
13384
sed 's/^/| /' conftest.$ac_ext >&5
13386
ac_cv_lib_svld_dlopen=no
13388
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13389
LIBS=$ac_check_lib_save_LIBS
13391
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13392
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
13393
if test $ac_cv_lib_svld_dlopen = yes; then
13394
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13396
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13397
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
13398
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13399
echo $ECHO_N "(cached) $ECHO_C" >&6
13401
ac_check_lib_save_LIBS=$LIBS
13403
cat >conftest.$ac_ext <<_ACEOF
13404
#line $LINENO "configure"
13407
cat confdefs.h >>conftest.$ac_ext
13408
cat >>conftest.$ac_ext <<_ACEOF
13409
/* end confdefs.h. */
13411
/* Override any gcc2 internal prototype to avoid an error. */
13415
/* We use char because int might match the return type of a gcc2
13416
builtin and then its argument prototype would still apply. */
13426
rm -f conftest.$ac_objext conftest$ac_exeext
13427
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13428
(eval $ac_link) 2>&5
13430
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13431
(exit $ac_status); } &&
13432
{ ac_try='test -s conftest$ac_exeext'
13433
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13434
(eval $ac_try) 2>&5
13436
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437
(exit $ac_status); }; }; then
13438
ac_cv_lib_dld_dld_link=yes
13440
echo "$as_me: failed program was:" >&5
13441
sed 's/^/| /' conftest.$ac_ext >&5
13443
ac_cv_lib_dld_dld_link=no
13445
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13446
LIBS=$ac_check_lib_save_LIBS
13448
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13449
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
13450
if test $ac_cv_lib_dld_dld_link = yes; then
13451
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
13472
if test "x$lt_cv_dlopen" != xno; then
13478
case $lt_cv_dlopen in
13480
save_CPPFLAGS="$CPPFLAGS"
13481
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13483
save_LDFLAGS="$LDFLAGS"
13484
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13487
LIBS="$lt_cv_dlopen_libs $LIBS"
13489
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13490
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
13491
if test "${lt_cv_dlopen_self+set}" = set; then
13492
echo $ECHO_N "(cached) $ECHO_C" >&6
13494
if test "$cross_compiling" = yes; then :
13495
lt_cv_dlopen_self=cross
13497
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13498
lt_status=$lt_dlunknown
13499
cat > conftest.$ac_ext <<EOF
13500
#line 13500 "configure"
13501
#include "confdefs.h"
13510
# define LT_DLGLOBAL RTLD_GLOBAL
13513
# define LT_DLGLOBAL DL_GLOBAL
13515
# define LT_DLGLOBAL 0
13519
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13520
find out it does not work in some platform. */
13521
#ifndef LT_DLLAZY_OR_NOW
13523
# define LT_DLLAZY_OR_NOW RTLD_LAZY
13526
# define LT_DLLAZY_OR_NOW DL_LAZY
13529
# define LT_DLLAZY_OR_NOW RTLD_NOW
13532
# define LT_DLLAZY_OR_NOW DL_NOW
13534
# define LT_DLLAZY_OR_NOW 0
13542
extern "C" void exit (int);
13545
void fnord() { int i=42;}
13548
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13549
int status = $lt_dlunknown;
13553
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13554
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13555
/* dlclose (self); */
13561
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13562
(eval $ac_link) 2>&5
13564
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13565
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13566
(./conftest; exit; ) 2>/dev/null
13568
case x$lt_status in
13569
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13570
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13571
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
13574
# compilation failed
13575
lt_cv_dlopen_self=no
13582
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13583
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
13585
if test "x$lt_cv_dlopen_self" = xyes; then
13586
LDFLAGS="$LDFLAGS $link_static_flag"
13587
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13588
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
13589
if test "${lt_cv_dlopen_self_static+set}" = set; then
13590
echo $ECHO_N "(cached) $ECHO_C" >&6
13592
if test "$cross_compiling" = yes; then :
13593
lt_cv_dlopen_self_static=cross
13595
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13596
lt_status=$lt_dlunknown
13597
cat > conftest.$ac_ext <<EOF
13598
#line 13598 "configure"
13599
#include "confdefs.h"
13608
# define LT_DLGLOBAL RTLD_GLOBAL
13611
# define LT_DLGLOBAL DL_GLOBAL
13613
# define LT_DLGLOBAL 0
13617
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13618
find out it does not work in some platform. */
13619
#ifndef LT_DLLAZY_OR_NOW
13621
# define LT_DLLAZY_OR_NOW RTLD_LAZY
13624
# define LT_DLLAZY_OR_NOW DL_LAZY
13627
# define LT_DLLAZY_OR_NOW RTLD_NOW
13630
# define LT_DLLAZY_OR_NOW DL_NOW
13632
# define LT_DLLAZY_OR_NOW 0
13640
extern "C" void exit (int);
13643
void fnord() { int i=42;}
13646
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13647
int status = $lt_dlunknown;
13651
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13652
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13653
/* dlclose (self); */
13659
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13660
(eval $ac_link) 2>&5
13662
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13663
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13664
(./conftest; exit; ) 2>/dev/null
13666
case x$lt_status in
13667
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13668
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13669
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13672
# compilation failed
13673
lt_cv_dlopen_self_static=no
13680
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13681
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
13684
CPPFLAGS="$save_CPPFLAGS"
13685
LDFLAGS="$save_LDFLAGS"
13690
case $lt_cv_dlopen_self in
13691
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13692
*) enable_dlopen_self=unknown ;;
13695
case $lt_cv_dlopen_self_static in
13696
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13697
*) enable_dlopen_self_static=unknown ;;
13702
# The else clause should only fire when bootstrapping the
13703
# libtool distribution, otherwise you forgot to ship ltmain.sh
13704
# with your package, and you will get complaints that there are
13705
# no rules to generate ltmain.sh.
13706
if test -f "$ltmain"; then
13707
# Now quote all the things that may contain metacharacters while being
13708
# careful not to overquote the AC_SUBSTed values. We take copies of the
13709
# variables and quote the copies for generation of the libtool script.
13710
for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SED SHELL \
13711
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13712
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13713
deplibs_check_method reload_flag reload_cmds need_locks \
13714
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13715
lt_cv_sys_global_symbol_to_c_name_address \
13716
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13717
old_postinstall_cmds old_postuninstall_cmds \
13721
lt_prog_compiler_wl_CXX \
13722
lt_prog_compiler_pic_CXX \
13723
lt_prog_compiler_static_CXX \
13724
lt_prog_compiler_no_builtin_flag_CXX \
13725
export_dynamic_flag_spec_CXX \
13726
thread_safe_flag_spec_CXX \
13727
whole_archive_flag_spec_CXX \
13728
old_archive_cmds_CXX \
13729
old_archive_from_new_cmds_CXX \
13730
predep_objects_CXX \
13731
postdep_objects_CXX \
13734
compiler_lib_search_path_CXX \
13736
archive_expsym_cmds_CXX \
13737
postinstall_cmds_CXX \
13738
postuninstall_cmds_CXX \
13739
old_archive_from_expsyms_cmds_CXX \
13740
allow_undefined_flag_CXX \
13741
no_undefined_flag_CXX \
13742
export_symbols_cmds_CXX \
13743
hardcode_libdir_flag_spec_CXX \
13744
hardcode_libdir_separator_CXX \
13745
lt_cv_prog_compiler_c_o_CXX \
13746
exclude_expsyms_CXX \
13747
include_expsyms_CXX; do
13750
old_archive_cmds_CXX | \
13751
old_archive_from_new_cmds_CXX | \
13752
archive_cmds_CXX | \
13753
archive_expsym_cmds_CXX | \
13754
old_archive_from_expsyms_cmds_CXX | \
13755
export_symbols_cmds_CXX | \
13756
extract_expsyms_cmds | reload_cmds | finish_cmds | \
13757
postinstall_cmds | postuninstall_cmds | \
13758
old_postinstall_cmds | old_postuninstall_cmds | \
13759
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13760
# Double-quote double-evaled strings.
13761
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13764
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13770
*'\$0 --fallback-echo"')
13771
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13777
cat <<__EOF__ >> "$cfgfile"
13778
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13780
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13782
# Shell to use when invoking shell scripts.
13785
# Whether or not to build shared libraries.
13786
build_libtool_libs=$enable_shared
13788
# Whether or not to build static libraries.
13789
build_old_libs=$enable_static
13791
# Whether or not to add -lc for building shared libraries.
13792
build_libtool_need_lc=$archive_cmds_need_lc_CXX
13794
# Whether or not to optimize for fast installation.
13795
fast_install=$enable_fast_install
13798
host_alias=$host_alias
13801
# An echo program that does not interpret backslashes.
13806
AR_FLAGS=$lt_AR_FLAGS
13811
# A language-specific compiler.
13812
CC=$lt_compiler_CXX
13814
# Is the compiler the GNU C compiler?
13817
# The linker used to build libraries.
13820
# Whether we need hard or soft links.
13823
# A BSD-compatible nm program.
13826
# A sed program that does not truncate output.
13829
# A symbol stripping program
13832
# Used to examine libraries when file_magic_cmd begins "file"
13833
MAGIC_CMD=$MAGIC_CMD
13835
# Used on cygwin: DLL creation program.
13838
# Used on cygwin: object dumper.
13841
# Used on cygwin: assembler.
13844
# The name of the directory that contains temporary libtool files.
13847
# How to create reloadable object files.
13848
reload_flag=$lt_reload_flag
13849
reload_cmds=$lt_reload_cmds
13851
# How to pass a linker flag through the compiler.
13852
wl=$lt_lt_prog_compiler_wl_CXX
13854
# Object file suffix (normally "o").
13855
objext="$ac_objext"
13857
# Old archive suffix (normally "a").
13860
# Executable file suffix (normally "").
13863
# Additional compiler flags for building library objects.
13864
pic_flag=$lt_lt_prog_compiler_pic_CXX
13867
# What is the maximum length of a command?
13868
max_cmd_len=$lt_cv_sys_max_cmd_len
13870
# Does compiler simultaneously support -c and -o options?
13871
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13873
# Must we lock files when doing compilation ?
13874
need_locks=$lt_need_locks
13876
# Do we need the lib prefix for modules?
13877
need_lib_prefix=$need_lib_prefix
13879
# Do we need a version for libraries?
13880
need_version=$need_version
13882
# Whether dlopen is supported.
13883
dlopen_support=$enable_dlopen
13885
# Whether dlopen of programs is supported.
13886
dlopen_self=$enable_dlopen_self
13888
# Whether dlopen of statically linked programs is supported.
13889
dlopen_self_static=$enable_dlopen_self_static
13891
# Compiler flag to prevent dynamic linking.
13892
link_static_flag=$lt_lt_prog_compiler_static_CXX
13894
# Compiler flag to turn off builtin functions.
13895
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13897
# Compiler flag to allow reflexive dlopens.
13898
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13900
# Compiler flag to generate shared objects directly from archives.
13901
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13903
# Compiler flag to generate thread-safe objects.
13904
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13906
# Library versioning type.
13907
version_type=$version_type
13909
# Format of library name prefix.
13910
libname_spec=$lt_libname_spec
13912
# List of archive names. First name is the real one, the rest are links.
13913
# The last name is the one that the linker finds with -lNAME.
13914
library_names_spec=$lt_library_names_spec
13916
# The coded name of the library, if different from the real name.
13917
soname_spec=$lt_soname_spec
13919
# Commands used to build and install an old-style archive.
13921
old_archive_cmds=$lt_old_archive_cmds_CXX
13922
old_postinstall_cmds=$lt_old_postinstall_cmds
13923
old_postuninstall_cmds=$lt_old_postuninstall_cmds
13925
# Create an old-style archive from a shared archive.
13926
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13928
# Create a temporary old-style archive to link instead of a shared archive.
13929
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13931
# Commands used to build and install a shared archive.
13932
archive_cmds=$lt_archive_cmds_CXX
13933
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13934
postinstall_cmds=$lt_postinstall_cmds
13935
postuninstall_cmds=$lt_postuninstall_cmds
13937
# Commands to strip libraries.
13938
old_striplib=$lt_old_striplib
13939
striplib=$lt_striplib
13941
# Dependencies to place before the objects being linked to create a
13943
predep_objects=$lt_predep_objects_CXX
13945
# Dependencies to place after the objects being linked to create a
13947
postdep_objects=$lt_postdep_objects_CXX
13949
# Dependencies to place before the objects being linked to create a
13951
predeps=$lt_predeps_CXX
13953
# Dependencies to place after the objects being linked to create a
13955
postdeps=$lt_postdeps_CXX
13957
# The library search path used internally by the compiler when linking
13958
# a shared library.
13959
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13961
# Method to check whether dependent libraries are shared objects.
13962
deplibs_check_method=$lt_deplibs_check_method
13964
# Command to use when deplibs_check_method == file_magic.
13965
file_magic_cmd=$lt_file_magic_cmd
13967
# Flag that allows shared libraries with undefined symbols to be built.
13968
allow_undefined_flag=$lt_allow_undefined_flag_CXX
13970
# Flag that forces no undefined symbols.
13971
no_undefined_flag=$lt_no_undefined_flag_CXX
13973
# Commands used to finish a libtool library installation in a directory.
13974
finish_cmds=$lt_finish_cmds
13976
# Same as above, but a single script fragment to be evaled but not shown.
13977
finish_eval=$lt_finish_eval
13979
# Take the output of nm and produce a listing of raw symbols and C names.
13980
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13982
# Transform the output of nm in a proper C declaration
13983
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13985
# Transform the output of nm in a C name address pair
13986
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13988
# This is the shared library runtime path variable.
13989
runpath_var=$runpath_var
13991
# This is the shared library path variable.
13992
shlibpath_var=$shlibpath_var
13994
# Is shlibpath searched before the hard-coded library search path?
13995
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13997
# How to hardcode a shared library path into an executable.
13998
hardcode_action=$hardcode_action_CXX
14000
# Whether we should hardcode library paths into libraries.
14001
hardcode_into_libs=$hardcode_into_libs
14003
# Flag to hardcode \$libdir into a binary during linking.
14004
# This must work even if \$libdir does not exist.
14005
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14007
# Whether we need a single -rpath flag with a separated argument.
14008
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14010
# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
14011
# resulting binary.
14012
hardcode_direct=$hardcode_direct_CXX
14014
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14015
# resulting binary.
14016
hardcode_minus_L=$hardcode_minus_L_CXX
14018
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14019
# the resulting binary.
14020
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14022
# Variables whose values should be saved in libtool wrapper scripts and
14023
# restored at relink time.
14024
variables_saved_for_relink="$variables_saved_for_relink"
14026
# Whether libtool must link a program against all its dependency libraries.
14027
link_all_deplibs=$link_all_deplibs_CXX
14029
# Compile-time system search path for libraries
14030
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14032
# Run-time system search path for libraries
14033
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14035
# Fix the shell variable \$srcfile for the compiler.
14036
fix_srcfile_path="$fix_srcfile_path_CXX"
14038
# Set to yes if exported symbols are required.
14039
always_export_symbols=$always_export_symbols_CXX
14041
# The commands to list exported symbols.
14042
export_symbols_cmds=$lt_export_symbols_cmds_CXX
14044
# The commands to extract the exported symbol list from a shared archive.
14045
extract_expsyms_cmds=$lt_extract_expsyms_cmds
14047
# Symbols that should not be listed in the preloaded symbols.
14048
exclude_expsyms=$lt_exclude_expsyms_CXX
14050
# Symbols that must always be exported.
14051
include_expsyms=$lt_include_expsyms_CXX
14053
# ### END LIBTOOL TAG CONFIG: $tagname
14059
# If there is no Makefile yet, we rely on a make rule to execute
14060
# `config.status --recheck' to rerun these tests and create the
14061
# libtool script then.
14062
test -f Makefile && make "$ltmain"
14067
ac_cpp='$CPP $CPPFLAGS'
14068
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14069
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14070
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14080
# Source file extension for C test sources.
14083
# Object file extension for compiled C test sources.
14087
# Code to be used in simple compile tests
14088
lt_simple_compile_test_code="class foo {}"
14090
# Code to be used in simple link tests
14091
lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }'
14093
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14095
# If no C compiler was specified, use CC.
14098
# Allow CC to be a program name with arguments.
14103
# Allow CC to be a program name with arguments.
14110
# GCJ did not exist at the time GCC didn't implicitly link libc in.
14111
archive_cmds_need_lc_GCJ=no
14114
lt_prog_compiler_no_builtin_flag_GCJ=
14116
if test "$GCC" = yes; then
14117
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
14119
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14120
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
14121
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14122
echo $ECHO_N "(cached) $ECHO_C" >&6
14124
lt_cv_prog_compiler_rtti_exceptions=no
14125
ac_outfile=conftest.$ac_objext
14126
save_CFLAGS="$CFLAGS"
14127
CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
14128
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14129
if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
14130
# The compiler can only warn and ignore the option if not recognized
14131
# So say no if there are warnings
14132
if test -s conftest.err; then
14133
# Append any errors to the config.log.
14134
cat conftest.err 1>&5
14136
lt_cv_prog_compiler_rtti_exceptions=yes
14140
CFLAGS="$save_CFLAGS"
14143
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14144
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
14146
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14147
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
14154
lt_prog_compiler_wl_GCJ=
14155
lt_prog_compiler_pic_GCJ=
14156
lt_prog_compiler_static_GCJ=
14158
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14159
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14161
if test "$GCC" = yes; then
14162
lt_prog_compiler_wl_GCJ='-Wl,'
14163
lt_prog_compiler_static_GCJ='-static'
14167
# All AIX code is PIC.
14168
if test "$host_cpu" = ia64; then
14169
# AIX 5 now supports IA64 processor
14170
lt_prog_compiler_static_GCJ='-Bstatic'
14175
# FIXME: we need at least 68020 code to build shared libraries, but
14176
# adding the `-m68020' flag to GCC prevents building anything better,
14178
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
14181
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14182
# PIC is the default for these OSes.
14185
cygwin* | mingw* | pw32* | os2*)
14186
# This hack is so that the source file can tell whether it is being
14187
# built for inclusion in a dll (and should export symbols for example).
14188
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14191
darwin* | rhapsody*)
14192
# PIC is the default on this platform
14193
# Common symbols not allowed in MH_DYLIB files
14194
lt_prog_compiler_pic_GCJ='-fno-common'
14198
# Just because we use GCC doesn't mean we suddenly get shared libraries
14199
# on systems that don't support them.
14200
lt_prog_compiler_can_build_shared_GCJ=no
14205
if test -d /usr/nec; then
14206
lt_prog_compiler_pic_GCJ=-Kconform_pic
14211
# PIC is the default for IA64 HP-UX, but not for PA HP-UX.
14212
if test "$host_cpu" != ia64; then
14213
lt_prog_compiler_pic_GCJ='-fPIC'
14218
lt_prog_compiler_pic_GCJ='-fPIC'
14222
# PORTME Check for flag to pass linker flags through the system compiler.
14225
lt_prog_compiler_wl_GCJ='-Wl,'
14226
if test "$host_cpu" = ia64; then
14227
# AIX 5 now supports IA64 processor
14228
lt_prog_compiler_static_GCJ='-Bstatic'
14230
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
14234
cygwin* | mingw* | pw32* | os2*)
14235
# This hack is so that the source file can tell whether it is being
14236
# built for inclusion in a dll (and should export symbols for example).
14237
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14240
hpux9* | hpux10* | hpux11*)
14241
lt_prog_compiler_wl_GCJ='-Wl,'
14242
if test "$host_cpu" != ia64; then
14243
lt_prog_compiler_pic_GCJ='+Z'
14245
# Is there a better lt_prog_compiler_static that works with the bundled CC?
14246
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
14249
irix5* | irix6* | nonstopux*)
14250
lt_prog_compiler_wl_GCJ='-Wl,'
14251
# PIC (with -KPIC) is the default.
14252
lt_prog_compiler_static_GCJ='-non_shared'
14256
lt_prog_compiler_pic_GCJ='-KPIC'
14257
lt_prog_compiler_static_GCJ='-Bstatic'
14260
osf3* | osf4* | osf5*)
14261
lt_prog_compiler_wl_GCJ='-Wl,'
14262
# All OSF/1 code is PIC.
14263
lt_prog_compiler_static_GCJ='-non_shared'
14267
lt_prog_compiler_pic_GCJ='-Kpic'
14268
lt_prog_compiler_static_GCJ='-dn'
14272
lt_prog_compiler_wl_GCJ='-Wl,'
14273
lt_prog_compiler_pic_GCJ='-KPIC'
14274
lt_prog_compiler_static_GCJ='-Bstatic'
14278
lt_prog_compiler_wl_GCJ='-Qoption ld '
14279
lt_prog_compiler_pic_GCJ='-PIC'
14280
lt_prog_compiler_static_GCJ='-Bstatic'
14283
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14284
if test "x$host_vendor" = xsni; then
14285
lt_prog_compiler_wl_GCJ='-LD'
14287
lt_prog_compiler_wl_GCJ='-Wl,'
14289
lt_prog_compiler_pic_GCJ='-KPIC'
14290
lt_prog_compiler_static_GCJ='-Bstatic'
14294
if test -d /usr/nec ;then
14295
lt_prog_compiler_pic_GCJ='-Kconform_pic'
14296
lt_prog_compiler_static_GCJ='-Bstatic'
14301
lt_prog_compiler_pic_GCJ='-pic'
14302
lt_prog_compiler_static_GCJ='-Bstatic'
14306
lt_prog_compiler_can_build_shared_GCJ=no
14311
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
14312
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
14315
# Check to make sure the PIC flag actually works.
14317
if test -n "$lt_prog_compiler_pic_GCJ"; then
14318
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
14319
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
14320
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
14321
echo $ECHO_N "(cached) $ECHO_C" >&6
14323
lt_prog_compiler_pic_works_GCJ=no
14324
ac_outfile=conftest.$ac_objext
14325
save_CFLAGS="$CFLAGS"
14326
CFLAGS="$CFLAGS $lt_prog_compiler_pic_GCJ -DPIC"
14327
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14328
if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
14329
# The compiler can only warn and ignore the option if not recognized
14330
# So say no if there are warnings
14331
if test -s conftest.err; then
14332
# Append any errors to the config.log.
14333
cat conftest.err 1>&5
14335
lt_prog_compiler_pic_works_GCJ=yes
14339
CFLAGS="$save_CFLAGS"
14342
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
14343
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
14345
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
14346
case $lt_prog_compiler_pic_GCJ in
14348
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
14351
lt_prog_compiler_pic_GCJ=
14352
lt_prog_compiler_can_build_shared_GCJ=no
14357
# For platforms which do not support PIC, -DPIC is meaningless:
14359
lt_prog_compiler_pic_GCJ=
14362
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ -DPIC"
14366
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14367
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14368
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
14369
echo $ECHO_N "(cached) $ECHO_C" >&6
14371
lt_cv_prog_compiler_c_o_GCJ=no
14372
$rm -r conftest 2>/dev/null
14376
save_GCJFLAGS="$GCJFLAGS"
14377
GCJFLAGS="$GCJFLAGS -o out/conftest2.$ac_objext"
14378
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14380
# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
14381
# that will create temporary files in the current directory regardless of
14382
# the output directory. Thus, making CWD read-only will cause this test
14383
# to fail, enabling locking or at least warning the user not to do parallel
14387
if (eval $ac_compile 2>out/conftest.err) && test -s out/conftest2.$ac_objext
14389
# The compiler can only warn and ignore the option if not recognized
14390
# So say no if there are warnings
14391
if test -s out/conftest.err; then
14392
# Append any errors to the config.log.
14393
cat out/conftest.err 1>&5
14395
lt_cv_prog_compiler_c_o_GCJ=yes
14398
GCJFLAGS="$save_GCJFLAGS"
14400
$rm conftest* out/*
14407
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
14408
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
14411
hard_links="nottested"
14412
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
14413
# do not overwrite the value of need_locks provided by the user
14414
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14415
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14418
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14420
ln conftest.a conftest.b 2>&5 || hard_links=no
14421
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14422
echo "$as_me:$LINENO: result: $hard_links" >&5
14423
echo "${ECHO_T}$hard_links" >&6
14424
if test "$hard_links" = no; then
14425
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14426
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14433
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14434
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14437
allow_undefined_flag_GCJ=
14440
archive_cmds_need_lc_GCJ=
14441
archive_expsym_cmds_GCJ=
14442
old_archive_From_new_cmds_GCJ=
14443
old_archive_from_expsyms_cmds_GCJ=
14444
export_dynamic_flag_spec_GCJ=
14445
whole_archive_flag_spec_GCJ=
14446
thread_safe_flag_spec_GCJ=
14447
hardcode_libdir_flag_spec_GCJ=
14448
hardcode_libdir_separator_GCJ=
14449
hardcode_direct_GCJ=no
14450
hardcode_minus_L_GCJ=no
14451
hardcode_shlibpath_var_GCJ=unsupported
14452
link_all_deplibs_GCJ=unknown
14453
always_export_symbols_GCJ=no
14454
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
14455
# include_expsyms should be a list of space-separated symbols to be *always*
14456
# included in the symbol list
14457
include_expsyms_GCJ=
14458
# exclude_expsyms can be an egrep regular expression of symbols to exclude
14459
# it will be wrapped by ` (' and `)$', so one must not match beginning or
14460
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14461
# as well as any symbol that contains `d'.
14462
exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
14463
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14464
# platforms (ab)use it in PIC code, but their linkers get confused if
14465
# the symbol is explicitly referenced. Since portable code cannot
14466
# rely on this symbol name, it's probably fine to never include it in
14467
# preloaded symbol tables.
14468
extract_expsyms_cmds=
14471
cygwin* | mingw* | pw32*)
14472
# FIXME: the MSVC++ port hasn't been tested in a loooong time
14473
# When not using gcc, we currently assume that we are using
14474
# Microsoft Visual C++.
14475
if test "$GCC" != yes; then
14485
if test "$with_gnu_ld" = yes; then
14486
# If archive_cmds runs LD, not CC, wlarc should be empty
14489
# See if GNU ld supports shared libraries.
14491
aix3* | aix4* | aix5*)
14492
# On AIX/PPC, the GNU linker is very broken
14493
if test "$host_cpu" != ia64; then
14497
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14498
*** to be unable to reliably create shared libraries on AIX.
14499
*** Therefore, libtool is disabling shared libraries support. If you
14500
*** really care for shared libraries, you may want to modify your PATH
14501
*** so that a non-GNU linker is found, and then restart.
14508
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)'
14509
hardcode_libdir_flag_spec_GCJ='-L$libdir'
14510
hardcode_minus_L_GCJ=yes
14512
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14513
# that the semantics of dynamic libraries on AmigaOS, at least up
14514
# to version 4, is to share data among multiple programs linked
14515
# with the same dynamic library. Since this doesn't match the
14516
# behavior of shared libraries on other platforms, we can't use
14522
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
14523
allow_undefined_flag_GCJ=unsupported
14524
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14525
# support --undefined. This deserves some investigation. FIXME
14526
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14532
cygwin* | mingw* | pw32*)
14533
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, as there is
14534
# no search path for DLLs.
14535
hardcode_libdir_flag_spec_GCJ='-L$libdir'
14536
allow_undefined_flag_GCJ=unsupported
14537
always_export_symbols_GCJ=yes
14539
extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
14540
sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
14541
test -f $output_objdir/impgen.exe || (cd $output_objdir && \
14542
if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
14543
else $CC -o impgen impgen.c ; fi)~
14544
$output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
14546
old_archive_from_expsyms_cmds_GCJ='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
14548
# cygwin and mingw dlls have different entry points and sets of symbols
14550
# FIXME: what about values for MSVC?
14551
dll_entry=__cygwin_dll_entry@12
14552
dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
14556
dll_entry=_DllMainCRTStartup@12
14557
dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
14561
# mingw and cygwin differ, and it's simplest to just exclude the union
14562
# of the two symbol sets.
14563
dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
14565
# recent cygwin and mingw systems supply a stub DllMain which the user
14566
# can override, but on older systems we have to supply one (in ltdll.c)
14567
if test "x$lt_cv_need_dllmain" = "xyes"; then
14568
ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
14569
ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
14570
test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
14576
# Extract the symbol export list from an `--export-all' def file,
14577
# then regenerate the def file from the symbol export list, so that
14578
# the compiled dll only exports the symbol export list.
14579
# Be careful not to strip the DATA tag left by newer dlltools.
14580
export_symbols_cmds_GCJ="$ltdll_cmds"'
14581
$DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
14582
sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
14584
# If the export-symbols file already is a .def file (1st line
14585
# is EXPORTS), use it as is.
14586
# If DATA tags from a recent dlltool are present, honour them!
14587
archive_expsym_cmds_GCJ='if test "x`head -1 $export_symbols`" = xEXPORTS; then
14588
cp $export_symbols $output_objdir/$soname-def;
14590
echo EXPORTS > $output_objdir/$soname-def;
14592
cat $export_symbols | while read symbol; do
14593
set dummy \$symbol;
14595
2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
14596
*) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
14598
_lt_hint=`expr 1 + \$_lt_hint`;
14602
$CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
14603
$DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
14604
$CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
14605
$DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
14606
$CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
14610
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14611
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14614
archive_cmds_GCJ='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14615
archive_expsym_cmds_GCJ='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14620
if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
14624
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14625
*** create shared libraries on Solaris systems. Therefore, libtool
14626
*** is disabling shared libraries support. We urge you to upgrade GNU
14627
*** binutils to release 2.9.1 or newer. Another option is to modify
14628
*** your PATH or compiler configuration so that the native linker is
14629
*** used, and then restart.
14632
elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
14633
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14634
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14641
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14643
hardcode_direct_GCJ=yes
14644
hardcode_shlibpath_var_GCJ=no
14648
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
14649
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14650
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14657
if test "$ld_shlibs_GCJ" = yes; then
14658
runpath_var=LD_RUN_PATH
14659
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
14660
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
14662
cygwin* | mingw* | pw32*)
14663
# dlltool doesn't understand --whole-archive et. al.
14664
whole_archive_flag_spec_GCJ=
14667
# ancient GNU ld didn't support --whole-archive et. al.
14668
if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
14669
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14671
whole_archive_flag_spec_GCJ=
14677
# PORTME fill in a description of your system's linker (not GNU ld)
14680
allow_undefined_flag_GCJ=unsupported
14681
always_export_symbols_GCJ=yes
14682
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'
14683
# Note: this linker hardcodes the directories in LIBPATH if there
14684
# are no directories specified by -L.
14685
hardcode_minus_L_GCJ=yes
14686
if test "$GCC" = yes && test -z "$link_static_flag"; then
14687
# Neither direct hardcoding nor static linking is supported with a
14689
hardcode_direct_GCJ=unsupported
14694
if test "$host_cpu" = ia64; then
14695
# On IA64, the linker does run time linking by default, so we don't
14696
# have to do anything special.
14697
aix_use_runtimelinking=no
14698
exp_sym_flag='-Bexport'
14701
# If we're using GNU nm, then we don't want the "-C" option.
14702
# -C means demangle to AIX nm, but means don't demangle with GNU nm
14703
if $NM -V 2>&1 | egrep '(GNU)' > /dev/null; then
14704
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'
14706
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'
14709
# KDE requires run time linking. Make it the default.
14710
aix_use_runtimelinking=yes
14711
exp_sym_flag='-bexport'
14712
no_entry_flag='-bnoentry'
14715
# When large executables or shared objects are built, AIX ld can
14716
# have problems creating the table of contents. If linking a library
14717
# or program results in "error TOC overflow" add -mminimal-toc to
14718
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14719
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14721
archive_cmds_GCJ=''
14722
hardcode_direct_GCJ=yes
14723
hardcode_libdir_separator_GCJ=':'
14724
link_all_deplibs_GCJ=yes
14726
if test "$GCC" = yes; then
14727
case $host_os in aix4.012|aix4.012.*)
14728
# We only want to do this on AIX 4.2 and lower, the check
14729
# below for broken collect2 doesn't work under 4.3+
14730
collect2name=`${CC} -print-prog-name=collect2`
14731
if test -f "$collect2name" && \
14732
strings "$collect2name" | grep resolve_lib_name >/dev/null
14734
# We have reworked collect2
14735
hardcode_direct_GCJ=yes
14737
# We have old collect2
14738
hardcode_direct_GCJ=unsupported
14739
# It fails to find uninstalled libraries when the uninstalled
14740
# path is not listed in the libpath. Setting hardcode_minus_L
14741
# to unsupported forces relinking
14742
hardcode_minus_L_GCJ=yes
14743
hardcode_libdir_flag_spec_GCJ='-L$libdir'
14744
hardcode_libdir_separator_GCJ=
14747
shared_flag='-shared'
14750
if test "$host_cpu" = ia64; then
14751
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14752
# chokes on -Wl,-G. The following line is correct:
14755
if test "$aix_use_runtimelinking" = yes; then
14756
shared_flag='-qmkshrobj ${wl}-G'
14758
shared_flag='-qmkshrobj'
14763
# Let the compiler handle the export list.
14764
always_export_symbols_GCJ=no
14765
if test "$aix_use_runtimelinking" = yes; then
14766
# Warning - without using the other runtime loading flags (-brtl),
14767
# -berok will link without error, but may produce a broken library.
14768
allow_undefined_flag_GCJ='-berok'
14769
# Determine the default libpath from the value encoded in an empty executable.
14770
cat >conftest.$ac_ext <<_ACEOF
14771
#line $LINENO "configure"
14774
cat confdefs.h >>conftest.$ac_ext
14775
cat >>conftest.$ac_ext <<_ACEOF
14776
/* end confdefs.h. */
14786
rm -f conftest.$ac_objext conftest$ac_exeext
14787
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14788
(eval $ac_link) 2>&5
14790
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14791
(exit $ac_status); } &&
14792
{ ac_try='test -s conftest$ac_exeext'
14793
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14794
(eval $ac_try) 2>&5
14796
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14797
(exit $ac_status); }; }; then
14799
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14801
# Check for a 64-bit object if we didn't find anything.
14802
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; }
14805
echo "$as_me: failed program was:" >&5
14806
sed 's/^/| /' conftest.$ac_ext >&5
14809
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14810
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14812
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
14813
archive_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` '" $shared_flag"
14814
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}$exp_sym_flag:\$export_symbols $shared_flag"
14816
if test "$host_cpu" = ia64; then
14817
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
14818
allow_undefined_flag_GCJ="-z nodefs"
14819
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"
14821
# Determine the default libpath from the value encoded in an empty executable.
14822
cat >conftest.$ac_ext <<_ACEOF
14823
#line $LINENO "configure"
14826
cat confdefs.h >>conftest.$ac_ext
14827
cat >>conftest.$ac_ext <<_ACEOF
14828
/* end confdefs.h. */
14838
rm -f conftest.$ac_objext conftest$ac_exeext
14839
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14840
(eval $ac_link) 2>&5
14842
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14843
(exit $ac_status); } &&
14844
{ ac_try='test -s conftest$ac_exeext'
14845
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14846
(eval $ac_try) 2>&5
14848
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14849
(exit $ac_status); }; }; then
14851
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14853
# Check for a 64-bit object if we didn't find anything.
14854
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; }
14857
echo "$as_me: failed program was:" >&5
14858
sed 's/^/| /' conftest.$ac_ext >&5
14861
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14862
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14864
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
14865
# Warning - without using the other run time loading flags,
14866
# -berok will link without error, but may produce a broken library.
14867
no_undefined_flag_GCJ=' ${wl}-bernotok'
14868
allow_undefined_flag_GCJ=' ${wl}-berok'
14869
# -bexpall does not export symbols beginning with underscore (_)
14870
always_export_symbols_GCJ=yes
14871
# Exported symbols can be pulled into shared objects from archives
14872
whole_archive_flag_spec_GCJ=' '
14873
archive_cmds_need_lc_GCJ=yes
14874
# This is similar to how AIX traditionally builds it's shared libraries.
14875
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'
14881
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)'
14882
hardcode_libdir_flag_spec_GCJ='-L$libdir'
14883
hardcode_minus_L_GCJ=yes
14884
# see comment about different semantics on the GNU ld section
14889
export_dynamic_flag_spec_GCJ=-rdynamic
14892
cygwin* | mingw* | pw32*)
14893
# When not using gcc, we currently assume that we are using
14894
# Microsoft Visual C++.
14895
# hardcode_libdir_flag_spec is actually meaningless, as there is
14896
# no search path for DLLs.
14897
hardcode_libdir_flag_spec_GCJ=' '
14898
allow_undefined_flag_GCJ=unsupported
14899
# Tell ltmain to make .lib files, not .a files.
14901
# FIXME: Setting linknames here is a bad hack.
14902
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
14903
# The linker will automatically build a .lib file if we build a DLL.
14904
old_archive_From_new_cmds_GCJ='true'
14905
# FIXME: Should let the user specify the lib program.
14906
old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
14907
fix_srcfile_path='`cygpath -w "$srcfile"`'
14910
darwin* | rhapsody*)
14912
rhapsody* | darwin1.[012])
14913
allow_undefined_flag_GCJ='-undefined suppress'
14916
allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
14920
# FIXME: Relying on posixy $() will cause problems for
14921
# cross-compilation, but unfortunately the echo tests do not
14922
# yet detect zsh echo's removal of \ escapes. Also zsh mangles
14923
# `"' quotes if we put them in here... so don't!
14924
archive_cmds_GCJ='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
14925
# We need to add '_' to the symbols in $export_symbols first
14926
#_LT_AC_TAGVAR(archive_expsym_cmds, GCJ)="$_LT_AC_TAGVAR(archive_cmds, GCJ)"' && strip -s $export_symbols'
14927
hardcode_direct_GCJ=yes
14928
hardcode_shlibpath_var_GCJ=no
14929
whole_archive_flag_spec_GCJ='-all_load $convenience'
14933
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14934
hardcode_libdir_flag_spec_GCJ='-L$libdir'
14935
hardcode_shlibpath_var_GCJ=no
14942
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14943
# support. Future versions do this automatically, but an explicit c++rt0.o
14944
# does not break anything, and helps significantly (at the cost of a little
14947
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14948
hardcode_libdir_flag_spec_GCJ='-R$libdir'
14949
hardcode_direct_GCJ=yes
14950
hardcode_shlibpath_var_GCJ=no
14953
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
14955
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14956
hardcode_direct_GCJ=yes
14957
hardcode_minus_L_GCJ=yes
14958
hardcode_shlibpath_var_GCJ=no
14961
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14963
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14964
hardcode_libdir_flag_spec_GCJ='-R$libdir'
14965
hardcode_direct_GCJ=yes
14966
hardcode_shlibpath_var_GCJ=no
14969
hpux9* | hpux10* | hpux11*)
14970
if test "$GCC" = yes; then
14973
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'
14976
if test "$host_cpu" = ia64; then
14977
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14979
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14986
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'
14989
if test "$host_cpu" = ia64; then
14990
archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14992
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14997
if test "$host_cpu" = ia64; then
14998
hardcode_libdir_flag_spec_GCJ='-L$libdir'
14999
hardcode_direct_GCJ=no
15000
hardcode_shlibpath_var_GCJ=no
15002
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15003
hardcode_libdir_separator_GCJ=:
15004
hardcode_direct_GCJ=yes
15006
# hardcode_minus_L: Not really in the search PATH,
15007
# but as the default location of the library.
15008
hardcode_minus_L_GCJ=yes
15009
export_dynamic_flag_spec_GCJ='${wl}-E'
15012
irix5* | irix6* | nonstopux*)
15013
if test "$GCC" = yes; then
15014
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'
15016
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'
15018
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15019
hardcode_libdir_separator_GCJ=:
15020
link_all_deplibs_GCJ=yes
15024
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15025
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15027
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15029
hardcode_libdir_flag_spec_GCJ='-R$libdir'
15030
hardcode_direct_GCJ=yes
15031
hardcode_shlibpath_var_GCJ=no
15035
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15036
hardcode_direct_GCJ=yes
15037
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15038
hardcode_libdir_separator_GCJ=:
15039
hardcode_shlibpath_var_GCJ=no
15043
hardcode_direct_GCJ=yes
15044
hardcode_shlibpath_var_GCJ=no
15046
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15047
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
15048
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15049
export_dynamic_flag_spec_GCJ='${wl}-E'
15052
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15053
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15054
hardcode_libdir_flag_spec_GCJ='-R$libdir'
15057
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
15058
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15065
hardcode_libdir_flag_spec_GCJ='-L$libdir'
15066
hardcode_minus_L_GCJ=yes
15067
allow_undefined_flag_GCJ=unsupported
15068
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'
15069
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15073
if test "$GCC" = yes; then
15074
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15075
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'
15077
allow_undefined_flag_GCJ=' -expect_unresolved \*'
15078
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'
15080
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15081
hardcode_libdir_separator_GCJ=:
15084
osf4* | osf5*) # as osf3* with the addition of -msym flag
15085
if test "$GCC" = yes; then
15086
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15087
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'
15088
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15090
allow_undefined_flag_GCJ=' -expect_unresolved \*'
15091
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'
15092
archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15093
$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'
15095
# Both c and cxx compiler support -rpath directly
15096
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
15098
hardcode_libdir_separator_GCJ=:
15102
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15103
hardcode_shlibpath_var_GCJ=no
15104
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
15105
runpath_var=LD_RUN_PATH
15106
hardcode_runpath_var=yes
15110
no_undefined_flag_GCJ=' -z text'
15111
if test "$GCC" = yes; then
15112
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15113
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15114
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15116
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15117
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15118
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15120
hardcode_libdir_flag_spec_GCJ='-R$libdir'
15121
hardcode_shlibpath_var_GCJ=no
15123
solaris2.[0-5] | solaris2.[0-5].*) ;;
15124
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
15125
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
15127
link_all_deplibs_GCJ=yes
15131
if test "x$host_vendor" = xsequent; then
15132
# Use $CC to link under sequent, because it throws in some extra .o
15133
# files that make .init and .fini sections work.
15134
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15136
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15138
hardcode_libdir_flag_spec_GCJ='-L$libdir'
15139
hardcode_direct_GCJ=yes
15140
hardcode_minus_L_GCJ=yes
15141
hardcode_shlibpath_var_GCJ=no
15145
if test "x$host_vendor" = xsni; then
15146
archive_cmds_GCJ='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
15147
hardcode_direct_GCJ=yes # is this really true???
15149
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15150
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
15152
runpath_var='LD_RUN_PATH'
15153
hardcode_shlibpath_var_GCJ=no
15157
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15158
hardcode_shlibpath_var_GCJ=no
15159
export_dynamic_flag_spec_GCJ='-Bexport'
15163
if test -d /usr/nec; then
15164
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15165
hardcode_shlibpath_var_GCJ=no
15166
runpath_var=LD_RUN_PATH
15167
hardcode_runpath_var=yes
15173
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15174
hardcode_direct_GCJ=yes
15175
hardcode_minus_L_GCJ=no
15176
hardcode_shlibpath_var_GCJ=no
15177
hardcode_runpath_var=yes
15178
runpath_var=LD_RUN_PATH
15181
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15182
no_undefined_flag_GCJ='${wl}-z ${wl}text'
15183
if test "$GCC" = yes; then
15184
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15186
archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15188
runpath_var='LD_RUN_PATH'
15189
hardcode_shlibpath_var_GCJ=no
15193
no_undefined_flag_GCJ=' -z text'
15194
# $CC -shared without GNU ld will not create a library from C++
15195
# object files and a static libstdc++, better avoid it by now
15196
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15197
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15198
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15199
hardcode_libdir_flag_spec_GCJ=
15200
hardcode_shlibpath_var_GCJ=no
15201
runpath_var='LD_RUN_PATH'
15205
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15206
hardcode_libdir_flag_spec_GCJ='-L$libdir'
15207
hardcode_shlibpath_var_GCJ=no
15216
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
15217
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
15218
test "$ld_shlibs_GCJ" = no && can_build_shared=no
15220
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15221
if test "$GCC" = yes; then
15222
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15226
# Do we need to explicitly link libc?
15228
archive_cmds_need_lc_GCJ=yes
15229
if test "$enable_shared" = yes && test "$GCC" = yes; then
15230
case $archive_cmds_GCJ in
15232
# FIXME: we may have to deal with multi-command sequences.
15235
# Test whether the compiler implicitly links with -lc since on some
15236
# systems, -lgcc has to come before -lc. If gcc already passes -lc
15237
# to ld, don't add -lc before -lgcc.
15238
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15239
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15241
echo 'static int dummy;' > conftest.$ac_ext
15243
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15244
(eval $ac_compile) 2>&5
15246
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15247
(exit $ac_status); } 2>conftest.err; then
15250
libobjs=conftest.$ac_objext
15252
wl=$lt_prog_compiler_wl_GCJ
15258
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
15259
allow_undefined_flag_GCJ=
15260
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15261
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15263
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15264
(exit $ac_status); }
15266
archive_cmds_need_lc_GCJ=no
15268
archive_cmds_need_lc_GCJ=yes
15270
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
15272
cat conftest.err 1>&5
15275
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
15276
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
15281
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15282
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15283
hardcode_action_GCJ=
15284
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
15285
test -n "$runpath_var GCJ"; then
15287
# We can hardcode non-existant directories.
15288
if test "$hardcode_direct_GCJ" != no &&
15289
# If the only mechanism to avoid hardcoding is shlibpath_var, we
15290
# have to relink, otherwise we might link with an installed library
15291
# when we should be linking with a yet-to-be-installed one
15292
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
15293
test "$hardcode_minus_L_GCJ" != no; then
15294
# Linking always hardcodes the temporary library directory.
15295
hardcode_action_GCJ=relink
15297
# We can link without hardcoding, and we can hardcode nonexisting dirs.
15298
hardcode_action_GCJ=immediate
15301
# We cannot hardcode anything, or else we can only hardcode existing
15303
hardcode_action_GCJ=unsupported
15305
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
15306
echo "${ECHO_T}$hardcode_action_GCJ" >&6
15308
if test "$hardcode_action_GCJ" = relink; then
15309
# Fast installation is not supported
15310
enable_fast_install=no
15311
elif test "$shlibpath_overrides_runpath" = yes ||
15312
test "$enable_shared" = no; then
15313
# Fast installation is not necessary
15314
enable_fast_install=needless
15319
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15320
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15321
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15322
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15323
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15324
echo "$as_me:$LINENO: result: yes" >&5
15325
echo "${ECHO_T}yes" >&6
15327
echo "$as_me:$LINENO: result: no" >&5
15328
echo "${ECHO_T}no" >&6
15331
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15332
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15333
library_names_spec=
15334
libname_spec='lib$name'
15337
postuninstall_cmds=
15341
shlibpath_overrides_runpath=unknown
15343
dynamic_linker="$host_os ld.so"
15344
sys_lib_dlsearch_path_spec="/lib /usr/lib"
15345
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15346
need_lib_prefix=unknown
15347
hardcode_into_libs=no
15349
# when you set need_version to no, make sure it does not cause -set_version
15350
# flags to be left without arguments
15351
need_version=unknown
15356
library_names_spec='${libname}${release}.so$versuffix $libname.a'
15357
shlibpath_var=LIBPATH
15359
# AIX 3 has no versioning support, so we append a major version to the name.
15360
soname_spec='${libname}${release}.so$major'
15365
if test "$host_cpu" = ia64; then
15366
# AIX 5 supports IA64
15367
library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
15368
shlibpath_var=LD_LIBRARY_PATH
15370
# With GCC up to 2.95.x, collect2 would create an import file
15371
# for dependence libraries. The import file would start with
15372
# the line `#! .'. This would cause the generated library to
15373
# depend on `.', always an invalid library. This was fixed in
15374
# development snapshots of GCC prior to 3.0.
15376
aix4 | aix4.[01] | aix4.[01].*)
15377
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15379
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15382
can_build_shared=no
15386
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15387
# soname into executable. Probably we can add versioning support to
15388
# collect2, so additional links can be useful in future.
15389
if test "$aix_use_runtimelinking" = yes; then
15390
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
15391
# instead of lib<name>.a to let people know that these are not
15392
# typical AIX shared libraries.
15393
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
15395
# We preserve .a as extension for shared libraries through AIX4.2
15396
# and later when we are not doing run time linking.
15397
library_names_spec='${libname}${release}.a $libname.a'
15398
soname_spec='${libname}${release}.so$major'
15400
shlibpath_var=LIBPATH
15405
library_names_spec='$libname.ixlibrary $libname.a'
15406
# Create ${libname}_ixlibrary.a entries in /sys/libs.
15407
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'
15411
library_names_spec='${libname}.so'
15412
dynamic_linker="$host_os ld.so"
15413
shlibpath_var=LIBRARY_PATH
15419
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
15420
soname_spec='${libname}${release}.so$major'
15421
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15422
shlibpath_var=LD_LIBRARY_PATH
15423
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15424
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15425
# the default ld.so.conf also contains /usr/contrib/lib and
15426
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15427
# libtool to hard-code these into programs
15430
cygwin* | mingw* | pw32*)
15431
version_type=windows
15434
case $GCC,$host_os in
15436
library_names_spec='$libname.dll.a'
15437
sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
15438
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
15439
postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
15440
dldir=$destdir/`dirname \$dlpath`~
15441
test -d \$dldir || mkdir -p \$dldir~
15442
$install_prog .libs/$dlname \$dldir/$dlname'
15443
postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
15444
dlpath=$dir/\$dldll~
15448
library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
15449
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://"`
15450
if echo "$sys_lib_search_path_spec" | egrep ';[C-Z]:/' >/dev/null; then
15451
# It is most probably a Windows format PATH printed by
15452
# mingw gcc, but we are running on Cygwin. Gcc prints its search
15453
# path with ; separators, and with drive letters. We can handle the
15454
# drive letters (cygwin fileutils understands them), so leave them,
15455
# especially as we might pass files found there to a mingw objdump,
15456
# which wouldn't understand a cygwinified path. Ahh.
15457
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
15459
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
15463
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
15466
library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
15469
dynamic_linker='Win32 ld.exe'
15470
# FIXME: first we should search . and the directory the executable is in
15474
darwin* | rhapsody*)
15475
dynamic_linker="$host_os dyld"
15476
version_type=darwin
15479
# FIXME: Relying on posixy $() will cause problems for
15480
# cross-compilation, but unfortunately the echo tests do not
15481
# yet detect zsh echo's removal of \ escapes.
15482
library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
15483
soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
15484
shlibpath_overrides_runpath=yes
15485
shlibpath_var=DYLD_LIBRARY_PATH
15492
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
15493
soname_spec='${libname}${release}.so$major'
15494
shlibpath_var=LD_LIBRARY_PATH
15502
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15503
version_type=freebsd-$objformat
15504
case $version_type in
15506
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
15511
library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
15515
shlibpath_var=LD_LIBRARY_PATH
15518
shlibpath_overrides_runpath=yes
15520
freebsd3.01* | freebsdelf3.01*)
15521
shlibpath_overrides_runpath=yes
15522
hardcode_into_libs=yes
15525
shlibpath_overrides_runpath=no
15526
hardcode_into_libs=yes
15535
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
15536
soname_spec='${libname}${release}.so$major'
15537
shlibpath_var=LD_LIBRARY_PATH
15538
hardcode_into_libs=yes
15541
hpux9* | hpux10* | hpux11*)
15542
# Give a soname corresponding to the major version so that dld.sl refuses to
15543
# link against other versions.
15547
if test "$host_cpu" = ia64; then
15548
hardcode_into_libs=yes
15549
dynamic_linker="$host_os dld.so"
15550
shlibpath_var=LD_LIBRARY_PATH
15551
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15552
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
15553
soname_spec='${libname}${release}.so$major'
15554
if test "X$HPUX_IA64_MODE" = X32; then
15555
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15557
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15559
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15561
dynamic_linker="$host_os dld.sl"
15562
shlibpath_var=SHLIB_PATH
15563
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15564
library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
15565
soname_spec='${libname}${release}.sl$major'
15567
# HP-UX runs *really* slowly unless shared libraries are mode 555.
15568
postinstall_cmds='chmod 555 $lib'
15571
irix5* | irix6* | nonstopux*)
15573
nonstopux*) version_type=nonstopux ;;
15574
*) version_type=irix ;;
15578
soname_spec='${libname}${release}.so$major'
15579
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
15581
irix5* | nonstopux*)
15582
libsuff= shlibsuff=
15585
case $LD in # libtool.m4 will add one of these switches to LD
15586
*-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
15587
*-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
15588
*-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
15589
*) libsuff= shlibsuff= libmagic=never-match;;
15593
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15594
shlibpath_overrides_runpath=no
15595
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15596
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15599
# No shared lib support for Linux oldld, aout, or coff.
15600
linux*oldld* | linux*aout* | linux*coff*)
15604
# This must be Linux ELF.
15609
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
15610
soname_spec='${libname}${release}.so$major'
15611
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15613
if test "x$LINUX_64_MODE" = x64; then
15614
# Some platforms are per default 64-bit, so there's no /lib64
15615
if test -d /lib64; then
15619
shlibpath_var=LD_LIBRARY_PATH
15620
shlibpath_overrides_runpath=no
15621
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
15622
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15623
# This implies no fast_install, which is unacceptable.
15624
# Some rework will be needed to allow for fast_install
15625
# before this can be enabled.
15626
hardcode_into_libs=yes
15628
# We used to test for /lib/ld.so.1 and disable shared libraries on
15629
# powerpc, because MkLinux only supported shared libraries with the
15630
# GNU dynamic linker. Since this was broken with cross compilers,
15631
# most powerpc-linux boxes support dynamic linking these days and
15632
# people can always --disable-shared, the test was removed, and we
15633
# assume the GNU/Linux dynamic linker is in use.
15634
dynamic_linker='GNU/Linux ld.so'
15641
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15642
library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
15643
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15644
dynamic_linker='NetBSD (a.out) ld.so'
15646
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
15647
soname_spec='${libname}${release}.so$major'
15648
dynamic_linker='NetBSD ld.elf_so'
15650
shlibpath_var=LD_LIBRARY_PATH
15651
shlibpath_overrides_runpath=yes
15652
hardcode_into_libs=yes
15657
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
15658
shlibpath_var=LD_LIBRARY_PATH
15659
shlibpath_overrides_runpath=yes
15666
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
15667
soname_spec='${libname}${release}.so$major'
15668
shlibpath_var=LD_LIBRARY_PATH
15669
shlibpath_overrides_runpath=yes
15676
library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
15677
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15678
shlibpath_var=LD_LIBRARY_PATH
15679
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15681
openbsd2.[89] | openbsd2.[89].*)
15682
shlibpath_overrides_runpath=no
15685
shlibpath_overrides_runpath=yes
15689
shlibpath_overrides_runpath=yes
15694
libname_spec='$name'
15696
library_names_spec='$libname.dll $libname.a'
15697
dynamic_linker='OS/2 ld.exe'
15698
shlibpath_var=LIBPATH
15701
osf3* | osf4* | osf5*)
15705
soname_spec='${libname}${release}.so'
15706
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
15707
shlibpath_var=LD_LIBRARY_PATH
15708
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15709
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15714
soname_spec='${libname}${release}.so$major'
15715
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
15716
shlibpath_var=LD_LIBRARY_PATH
15723
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
15724
soname_spec='${libname}${release}.so$major'
15725
shlibpath_var=LD_LIBRARY_PATH
15726
shlibpath_overrides_runpath=yes
15727
hardcode_into_libs=yes
15728
# ldd complains unless libraries are executable
15729
postinstall_cmds='chmod +x $lib'
15734
library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
15735
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15736
shlibpath_var=LD_LIBRARY_PATH
15737
shlibpath_overrides_runpath=yes
15738
if test "$with_gnu_ld" = yes; then
15744
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15746
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
15747
soname_spec='${libname}${release}.so$major'
15748
shlibpath_var=LD_LIBRARY_PATH
15749
case $host_vendor in
15751
shlibpath_overrides_runpath=no
15756
shlibpath_overrides_runpath=no
15757
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15763
if test -d /usr/nec ;then
15765
library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
15766
soname_spec='$libname.so.$major'
15767
shlibpath_var=LD_LIBRARY_PATH
15773
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
15774
soname_spec='${libname}${release}.so$major'
15775
shlibpath_var=LD_LIBRARY_PATH
15782
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15783
echo "${ECHO_T}$dynamic_linker" >&6
15784
test "$dynamic_linker" = no && can_build_shared=no
15786
if test "x$enable_dlopen" != xyes; then
15787
enable_dlopen=unknown
15788
enable_dlopen_self=unknown
15789
enable_dlopen_self_static=unknown
15796
lt_cv_dlopen="load_add_on"
15798
lt_cv_dlopen_self=yes
15801
cygwin* | mingw* | pw32*)
15802
lt_cv_dlopen="LoadLibrary"
15807
echo "$as_me:$LINENO: checking for shl_load" >&5
15808
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
15809
if test "${ac_cv_func_shl_load+set}" = set; then
15810
echo $ECHO_N "(cached) $ECHO_C" >&6
15812
cat >conftest.$ac_ext <<_ACEOF
15813
#line $LINENO "configure"
15816
cat confdefs.h >>conftest.$ac_ext
15817
cat >>conftest.$ac_ext <<_ACEOF
15818
/* end confdefs.h. */
15819
/* System header to define __stub macros and hopefully few prototypes,
15820
which can conflict with char shl_load (); below.
15821
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15822
<limits.h> exists even on freestanding compilers. */
15824
# include <limits.h>
15826
# include <assert.h>
15828
/* Override any gcc2 internal prototype to avoid an error. */
15833
/* We use char because int might match the return type of a gcc2
15834
builtin and then its argument prototype would still apply. */
15836
/* The GNU C library defines this for functions which it implements
15837
to always fail with ENOSYS. Some functions are actually named
15838
something starting with __ and the normal name is an alias. */
15839
#if defined (__stub_shl_load) || defined (__stub___shl_load)
15842
char (*f) () = shl_load;
15851
return f != shl_load;
15856
rm -f conftest.$ac_objext conftest$ac_exeext
15857
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15858
(eval $ac_link) 2>&5
15860
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15861
(exit $ac_status); } &&
15862
{ ac_try='test -s conftest$ac_exeext'
15863
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15864
(eval $ac_try) 2>&5
15866
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15867
(exit $ac_status); }; }; then
15868
ac_cv_func_shl_load=yes
15870
echo "$as_me: failed program was:" >&5
15871
sed 's/^/| /' conftest.$ac_ext >&5
15873
ac_cv_func_shl_load=no
15875
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15877
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
15878
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
15879
if test $ac_cv_func_shl_load = yes; then
15880
lt_cv_dlopen="shl_load"
15882
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
15883
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
15884
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
15885
echo $ECHO_N "(cached) $ECHO_C" >&6
15887
ac_check_lib_save_LIBS=$LIBS
15889
cat >conftest.$ac_ext <<_ACEOF
15890
#line $LINENO "configure"
15893
cat confdefs.h >>conftest.$ac_ext
15894
cat >>conftest.$ac_ext <<_ACEOF
15895
/* end confdefs.h. */
15897
/* Override any gcc2 internal prototype to avoid an error. */
15901
/* We use char because int might match the return type of a gcc2
15902
builtin and then its argument prototype would still apply. */
15912
rm -f conftest.$ac_objext conftest$ac_exeext
15913
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15914
(eval $ac_link) 2>&5
15916
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15917
(exit $ac_status); } &&
15918
{ ac_try='test -s conftest$ac_exeext'
15919
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15920
(eval $ac_try) 2>&5
15922
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15923
(exit $ac_status); }; }; then
15924
ac_cv_lib_dld_shl_load=yes
15926
echo "$as_me: failed program was:" >&5
15927
sed 's/^/| /' conftest.$ac_ext >&5
15929
ac_cv_lib_dld_shl_load=no
15931
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15932
LIBS=$ac_check_lib_save_LIBS
15934
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
15935
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
15936
if test $ac_cv_lib_dld_shl_load = yes; then
15937
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
15939
echo "$as_me:$LINENO: checking for dlopen" >&5
15940
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
15941
if test "${ac_cv_func_dlopen+set}" = set; then
15942
echo $ECHO_N "(cached) $ECHO_C" >&6
15944
cat >conftest.$ac_ext <<_ACEOF
15945
#line $LINENO "configure"
15948
cat confdefs.h >>conftest.$ac_ext
15949
cat >>conftest.$ac_ext <<_ACEOF
15950
/* end confdefs.h. */
15951
/* System header to define __stub macros and hopefully few prototypes,
15952
which can conflict with char dlopen (); below.
15953
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15954
<limits.h> exists even on freestanding compilers. */
15956
# include <limits.h>
15958
# include <assert.h>
15960
/* Override any gcc2 internal prototype to avoid an error. */
15965
/* We use char because int might match the return type of a gcc2
15966
builtin and then its argument prototype would still apply. */
15968
/* The GNU C library defines this for functions which it implements
15969
to always fail with ENOSYS. Some functions are actually named
15970
something starting with __ and the normal name is an alias. */
15971
#if defined (__stub_dlopen) || defined (__stub___dlopen)
15974
char (*f) () = dlopen;
15983
return f != dlopen;
15988
rm -f conftest.$ac_objext conftest$ac_exeext
15989
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15990
(eval $ac_link) 2>&5
15992
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15993
(exit $ac_status); } &&
15994
{ ac_try='test -s conftest$ac_exeext'
15995
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15996
(eval $ac_try) 2>&5
15998
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15999
(exit $ac_status); }; }; then
16000
ac_cv_func_dlopen=yes
16002
echo "$as_me: failed program was:" >&5
16003
sed 's/^/| /' conftest.$ac_ext >&5
16005
ac_cv_func_dlopen=no
16007
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16009
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16010
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
16011
if test $ac_cv_func_dlopen = yes; then
16012
lt_cv_dlopen="dlopen"
16014
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16015
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16016
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16017
echo $ECHO_N "(cached) $ECHO_C" >&6
16019
ac_check_lib_save_LIBS=$LIBS
16021
cat >conftest.$ac_ext <<_ACEOF
16022
#line $LINENO "configure"
16025
cat confdefs.h >>conftest.$ac_ext
16026
cat >>conftest.$ac_ext <<_ACEOF
16027
/* end confdefs.h. */
16029
/* Override any gcc2 internal prototype to avoid an error. */
16033
/* We use char because int might match the return type of a gcc2
16034
builtin and then its argument prototype would still apply. */
16044
rm -f conftest.$ac_objext conftest$ac_exeext
16045
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16046
(eval $ac_link) 2>&5
16048
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16049
(exit $ac_status); } &&
16050
{ ac_try='test -s conftest$ac_exeext'
16051
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16052
(eval $ac_try) 2>&5
16054
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16055
(exit $ac_status); }; }; then
16056
ac_cv_lib_dl_dlopen=yes
16058
echo "$as_me: failed program was:" >&5
16059
sed 's/^/| /' conftest.$ac_ext >&5
16061
ac_cv_lib_dl_dlopen=no
16063
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16064
LIBS=$ac_check_lib_save_LIBS
16066
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16067
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16068
if test $ac_cv_lib_dl_dlopen = yes; then
16069
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16071
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16072
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
16073
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16074
echo $ECHO_N "(cached) $ECHO_C" >&6
16076
ac_check_lib_save_LIBS=$LIBS
16077
LIBS="-lsvld $LIBS"
16078
cat >conftest.$ac_ext <<_ACEOF
16079
#line $LINENO "configure"
16082
cat confdefs.h >>conftest.$ac_ext
16083
cat >>conftest.$ac_ext <<_ACEOF
16084
/* end confdefs.h. */
16086
/* Override any gcc2 internal prototype to avoid an error. */
16090
/* We use char because int might match the return type of a gcc2
16091
builtin and then its argument prototype would still apply. */
16101
rm -f conftest.$ac_objext conftest$ac_exeext
16102
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16103
(eval $ac_link) 2>&5
16105
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16106
(exit $ac_status); } &&
16107
{ ac_try='test -s conftest$ac_exeext'
16108
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16109
(eval $ac_try) 2>&5
16111
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16112
(exit $ac_status); }; }; then
16113
ac_cv_lib_svld_dlopen=yes
16115
echo "$as_me: failed program was:" >&5
16116
sed 's/^/| /' conftest.$ac_ext >&5
16118
ac_cv_lib_svld_dlopen=no
16120
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16121
LIBS=$ac_check_lib_save_LIBS
16123
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16124
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
16125
if test $ac_cv_lib_svld_dlopen = yes; then
16126
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16128
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16129
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
16130
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16131
echo $ECHO_N "(cached) $ECHO_C" >&6
16133
ac_check_lib_save_LIBS=$LIBS
16135
cat >conftest.$ac_ext <<_ACEOF
16136
#line $LINENO "configure"
16139
cat confdefs.h >>conftest.$ac_ext
16140
cat >>conftest.$ac_ext <<_ACEOF
16141
/* end confdefs.h. */
16143
/* Override any gcc2 internal prototype to avoid an error. */
16147
/* We use char because int might match the return type of a gcc2
16148
builtin and then its argument prototype would still apply. */
16158
rm -f conftest.$ac_objext conftest$ac_exeext
16159
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16160
(eval $ac_link) 2>&5
16162
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16163
(exit $ac_status); } &&
16164
{ ac_try='test -s conftest$ac_exeext'
16165
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16166
(eval $ac_try) 2>&5
16168
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16169
(exit $ac_status); }; }; then
16170
ac_cv_lib_dld_dld_link=yes
16172
echo "$as_me: failed program was:" >&5
16173
sed 's/^/| /' conftest.$ac_ext >&5
16175
ac_cv_lib_dld_dld_link=no
16177
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16178
LIBS=$ac_check_lib_save_LIBS
16180
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16181
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
16182
if test $ac_cv_lib_dld_dld_link = yes; then
16183
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16204
if test "x$lt_cv_dlopen" != xno; then
16210
case $lt_cv_dlopen in
16212
save_CPPFLAGS="$CPPFLAGS"
16213
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16215
save_LDFLAGS="$LDFLAGS"
16216
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16219
LIBS="$lt_cv_dlopen_libs $LIBS"
16221
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16222
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
16223
if test "${lt_cv_dlopen_self+set}" = set; then
16224
echo $ECHO_N "(cached) $ECHO_C" >&6
16226
if test "$cross_compiling" = yes; then :
16227
lt_cv_dlopen_self=cross
16229
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16230
lt_status=$lt_dlunknown
16231
cat > conftest.$ac_ext <<EOF
16232
#line 16232 "configure"
16233
#include "confdefs.h"
16242
# define LT_DLGLOBAL RTLD_GLOBAL
16245
# define LT_DLGLOBAL DL_GLOBAL
16247
# define LT_DLGLOBAL 0
16251
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16252
find out it does not work in some platform. */
16253
#ifndef LT_DLLAZY_OR_NOW
16255
# define LT_DLLAZY_OR_NOW RTLD_LAZY
16258
# define LT_DLLAZY_OR_NOW DL_LAZY
16261
# define LT_DLLAZY_OR_NOW RTLD_NOW
16264
# define LT_DLLAZY_OR_NOW DL_NOW
16266
# define LT_DLLAZY_OR_NOW 0
16274
extern "C" void exit (int);
16277
void fnord() { int i=42;}
16280
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16281
int status = $lt_dlunknown;
16285
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16286
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16287
/* dlclose (self); */
16293
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16294
(eval $ac_link) 2>&5
16296
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16297
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16298
(./conftest; exit; ) 2>/dev/null
16300
case x$lt_status in
16301
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16302
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16303
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
16306
# compilation failed
16307
lt_cv_dlopen_self=no
16314
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
16315
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
16317
if test "x$lt_cv_dlopen_self" = xyes; then
16318
LDFLAGS="$LDFLAGS $link_static_flag"
16319
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
16320
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
16321
if test "${lt_cv_dlopen_self_static+set}" = set; then
16322
echo $ECHO_N "(cached) $ECHO_C" >&6
16324
if test "$cross_compiling" = yes; then :
16325
lt_cv_dlopen_self_static=cross
16327
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16328
lt_status=$lt_dlunknown
16329
cat > conftest.$ac_ext <<EOF
16330
#line 16330 "configure"
16331
#include "confdefs.h"
16340
# define LT_DLGLOBAL RTLD_GLOBAL
16343
# define LT_DLGLOBAL DL_GLOBAL
16345
# define LT_DLGLOBAL 0
16349
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16350
find out it does not work in some platform. */
16351
#ifndef LT_DLLAZY_OR_NOW
16353
# define LT_DLLAZY_OR_NOW RTLD_LAZY
16356
# define LT_DLLAZY_OR_NOW DL_LAZY
16359
# define LT_DLLAZY_OR_NOW RTLD_NOW
16362
# define LT_DLLAZY_OR_NOW DL_NOW
16364
# define LT_DLLAZY_OR_NOW 0
16372
extern "C" void exit (int);
16375
void fnord() { int i=42;}
16378
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16379
int status = $lt_dlunknown;
16383
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16384
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16385
/* dlclose (self); */
16391
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16392
(eval $ac_link) 2>&5
16394
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16395
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16396
(./conftest; exit; ) 2>/dev/null
16398
case x$lt_status in
16399
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16400
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16401
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
16404
# compilation failed
16405
lt_cv_dlopen_self_static=no
16412
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
16413
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
16416
CPPFLAGS="$save_CPPFLAGS"
16417
LDFLAGS="$save_LDFLAGS"
16422
case $lt_cv_dlopen_self in
16423
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16424
*) enable_dlopen_self=unknown ;;
16427
case $lt_cv_dlopen_self_static in
16428
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16429
*) enable_dlopen_self_static=unknown ;;
16434
# The else clause should only fire when bootstrapping the
16435
# libtool distribution, otherwise you forgot to ship ltmain.sh
16436
# with your package, and you will get complaints that there are
16437
# no rules to generate ltmain.sh.
16438
if test -f "$ltmain"; then
16439
# Now quote all the things that may contain metacharacters while being
16440
# careful not to overquote the AC_SUBSTed values. We take copies of the
16441
# variables and quote the copies for generation of the libtool script.
16442
for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SED SHELL \
16443
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16444
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16445
deplibs_check_method reload_flag reload_cmds need_locks \
16446
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16447
lt_cv_sys_global_symbol_to_c_name_address \
16448
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16449
old_postinstall_cmds old_postuninstall_cmds \
16453
lt_prog_compiler_wl_GCJ \
16454
lt_prog_compiler_pic_GCJ \
16455
lt_prog_compiler_static_GCJ \
16456
lt_prog_compiler_no_builtin_flag_GCJ \
16457
export_dynamic_flag_spec_GCJ \
16458
thread_safe_flag_spec_GCJ \
16459
whole_archive_flag_spec_GCJ \
16460
old_archive_cmds_GCJ \
16461
old_archive_from_new_cmds_GCJ \
16462
predep_objects_GCJ \
16463
postdep_objects_GCJ \
16466
compiler_lib_search_path_GCJ \
16468
archive_expsym_cmds_GCJ \
16469
postinstall_cmds_GCJ \
16470
postuninstall_cmds_GCJ \
16471
old_archive_from_expsyms_cmds_GCJ \
16472
allow_undefined_flag_GCJ \
16473
no_undefined_flag_GCJ \
16474
export_symbols_cmds_GCJ \
16475
hardcode_libdir_flag_spec_GCJ \
16476
hardcode_libdir_separator_GCJ \
16477
lt_cv_prog_compiler_c_o_GCJ \
16478
exclude_expsyms_GCJ \
16479
include_expsyms_GCJ; do
16482
old_archive_cmds_GCJ | \
16483
old_archive_from_new_cmds_GCJ | \
16484
archive_cmds_GCJ | \
16485
archive_expsym_cmds_GCJ | \
16486
old_archive_from_expsyms_cmds_GCJ | \
16487
export_symbols_cmds_GCJ | \
16488
extract_expsyms_cmds | reload_cmds | finish_cmds | \
16489
postinstall_cmds | postuninstall_cmds | \
16490
old_postinstall_cmds | old_postuninstall_cmds | \
16491
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16492
# Double-quote double-evaled strings.
16493
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16496
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16502
*'\$0 --fallback-echo"')
16503
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16509
cat <<__EOF__ >> "$cfgfile"
16510
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16512
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16514
# Shell to use when invoking shell scripts.
16517
# Whether or not to build shared libraries.
16518
build_libtool_libs=$enable_shared
16520
# Whether or not to build static libraries.
16521
build_old_libs=$enable_static
16523
# Whether or not to add -lc for building shared libraries.
16524
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
16526
# Whether or not to optimize for fast installation.
16527
fast_install=$enable_fast_install
16530
host_alias=$host_alias
16533
# An echo program that does not interpret backslashes.
16538
AR_FLAGS=$lt_AR_FLAGS
16543
# A language-specific compiler.
16544
CC=$lt_compiler_GCJ
16546
# Is the compiler the GNU C compiler?
16549
# The linker used to build libraries.
16552
# Whether we need hard or soft links.
16555
# A BSD-compatible nm program.
16558
# A sed program that does not truncate output.
16561
# A symbol stripping program
16564
# Used to examine libraries when file_magic_cmd begins "file"
16565
MAGIC_CMD=$MAGIC_CMD
16567
# Used on cygwin: DLL creation program.
16570
# Used on cygwin: object dumper.
16573
# Used on cygwin: assembler.
16576
# The name of the directory that contains temporary libtool files.
16579
# How to create reloadable object files.
16580
reload_flag=$lt_reload_flag
16581
reload_cmds=$lt_reload_cmds
16583
# How to pass a linker flag through the compiler.
16584
wl=$lt_lt_prog_compiler_wl_GCJ
16586
# Object file suffix (normally "o").
16587
objext="$ac_objext"
16589
# Old archive suffix (normally "a").
16592
# Executable file suffix (normally "").
16595
# Additional compiler flags for building library objects.
16596
pic_flag=$lt_lt_prog_compiler_pic_GCJ
16599
# What is the maximum length of a command?
16600
max_cmd_len=$lt_cv_sys_max_cmd_len
16602
# Does compiler simultaneously support -c and -o options?
16603
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
16605
# Must we lock files when doing compilation ?
16606
need_locks=$lt_need_locks
16608
# Do we need the lib prefix for modules?
16609
need_lib_prefix=$need_lib_prefix
16611
# Do we need a version for libraries?
16612
need_version=$need_version
16614
# Whether dlopen is supported.
16615
dlopen_support=$enable_dlopen
16617
# Whether dlopen of programs is supported.
16618
dlopen_self=$enable_dlopen_self
16620
# Whether dlopen of statically linked programs is supported.
16621
dlopen_self_static=$enable_dlopen_self_static
16623
# Compiler flag to prevent dynamic linking.
16624
link_static_flag=$lt_lt_prog_compiler_static_GCJ
16626
# Compiler flag to turn off builtin functions.
16627
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
16629
# Compiler flag to allow reflexive dlopens.
16630
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
16632
# Compiler flag to generate shared objects directly from archives.
16633
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
16635
# Compiler flag to generate thread-safe objects.
16636
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
16638
# Library versioning type.
16639
version_type=$version_type
16641
# Format of library name prefix.
16642
libname_spec=$lt_libname_spec
16644
# List of archive names. First name is the real one, the rest are links.
16645
# The last name is the one that the linker finds with -lNAME.
16646
library_names_spec=$lt_library_names_spec
16648
# The coded name of the library, if different from the real name.
16649
soname_spec=$lt_soname_spec
16651
# Commands used to build and install an old-style archive.
16653
old_archive_cmds=$lt_old_archive_cmds_GCJ
16654
old_postinstall_cmds=$lt_old_postinstall_cmds
16655
old_postuninstall_cmds=$lt_old_postuninstall_cmds
16657
# Create an old-style archive from a shared archive.
16658
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
16660
# Create a temporary old-style archive to link instead of a shared archive.
16661
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
16663
# Commands used to build and install a shared archive.
16664
archive_cmds=$lt_archive_cmds_GCJ
16665
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
16666
postinstall_cmds=$lt_postinstall_cmds
16667
postuninstall_cmds=$lt_postuninstall_cmds
16669
# Commands to strip libraries.
16670
old_striplib=$lt_old_striplib
16671
striplib=$lt_striplib
16673
# Dependencies to place before the objects being linked to create a
16675
predep_objects=$lt_predep_objects_GCJ
16677
# Dependencies to place after the objects being linked to create a
16679
postdep_objects=$lt_postdep_objects_GCJ
16681
# Dependencies to place before the objects being linked to create a
16683
predeps=$lt_predeps_GCJ
16685
# Dependencies to place after the objects being linked to create a
16687
postdeps=$lt_postdeps_GCJ
16689
# The library search path used internally by the compiler when linking
16690
# a shared library.
16691
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
16693
# Method to check whether dependent libraries are shared objects.
16694
deplibs_check_method=$lt_deplibs_check_method
16696
# Command to use when deplibs_check_method == file_magic.
16697
file_magic_cmd=$lt_file_magic_cmd
16699
# Flag that allows shared libraries with undefined symbols to be built.
16700
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
16702
# Flag that forces no undefined symbols.
16703
no_undefined_flag=$lt_no_undefined_flag_GCJ
16705
# Commands used to finish a libtool library installation in a directory.
16706
finish_cmds=$lt_finish_cmds
16708
# Same as above, but a single script fragment to be evaled but not shown.
16709
finish_eval=$lt_finish_eval
16711
# Take the output of nm and produce a listing of raw symbols and C names.
16712
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16714
# Transform the output of nm in a proper C declaration
16715
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16717
# Transform the output of nm in a C name address pair
16718
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16720
# This is the shared library runtime path variable.
16721
runpath_var=$runpath_var
16723
# This is the shared library path variable.
16724
shlibpath_var=$shlibpath_var
16726
# Is shlibpath searched before the hard-coded library search path?
16727
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16729
# How to hardcode a shared library path into an executable.
16730
hardcode_action=$hardcode_action_GCJ
16732
# Whether we should hardcode library paths into libraries.
16733
hardcode_into_libs=$hardcode_into_libs
16735
# Flag to hardcode \$libdir into a binary during linking.
16736
# This must work even if \$libdir does not exist.
16737
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
16739
# Whether we need a single -rpath flag with a separated argument.
16740
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
16742
# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
16743
# resulting binary.
16744
hardcode_direct=$hardcode_direct_GCJ
16746
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16747
# resulting binary.
16748
hardcode_minus_L=$hardcode_minus_L_GCJ
16750
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16751
# the resulting binary.
16752
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
16754
# Variables whose values should be saved in libtool wrapper scripts and
16755
# restored at relink time.
16756
variables_saved_for_relink="$variables_saved_for_relink"
16758
# Whether libtool must link a program against all its dependency libraries.
16759
link_all_deplibs=$link_all_deplibs_GCJ
16761
# Compile-time system search path for libraries
16762
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16764
# Run-time system search path for libraries
16765
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16767
# Fix the shell variable \$srcfile for the compiler.
16768
fix_srcfile_path="$fix_srcfile_path_GCJ"
16770
# Set to yes if exported symbols are required.
16771
always_export_symbols=$always_export_symbols_GCJ
16773
# The commands to list exported symbols.
16774
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
16776
# The commands to extract the exported symbol list from a shared archive.
16777
extract_expsyms_cmds=$lt_extract_expsyms_cmds
16779
# Symbols that should not be listed in the preloaded symbols.
16780
exclude_expsyms=$lt_exclude_expsyms_GCJ
16782
# Symbols that must always be exported.
16783
include_expsyms=$lt_include_expsyms_GCJ
16785
# ### END LIBTOOL TAG CONFIG: $tagname
16791
# If there is no Makefile yet, we rely on a make rule to execute
16792
# `config.status --recheck' to rerun these tests and create the
16793
# libtool script then.
16794
test -f Makefile && make "$ltmain"
16799
ac_cpp='$CPP $CPPFLAGS'
16800
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16801
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16802
ac_compiler_gnu=$ac_cv_c_compiler_gnu
16812
# Source file extension for RC test sources.
16815
# Object file extension for compiled RC test sources.
16819
# Code to be used in simple compile tests
16820
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
16822
# Code to be used in simple link tests
16823
lt_simple_link_test_code="$lt_simple_compile_test_code"
16825
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16827
# If no C compiler was specified, use CC.
16830
# Allow CC to be a program name with arguments.
16835
# Allow CC to be a program name with arguments.
16841
lt_cv_prog_compiler_c_o_RC=yes
16843
# The else clause should only fire when bootstrapping the
16844
# libtool distribution, otherwise you forgot to ship ltmain.sh
16845
# with your package, and you will get complaints that there are
16846
# no rules to generate ltmain.sh.
16847
if test -f "$ltmain"; then
16848
# Now quote all the things that may contain metacharacters while being
16849
# careful not to overquote the AC_SUBSTed values. We take copies of the
16850
# variables and quote the copies for generation of the libtool script.
16851
for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SED SHELL \
16852
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16853
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16854
deplibs_check_method reload_flag reload_cmds need_locks \
16855
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16856
lt_cv_sys_global_symbol_to_c_name_address \
16857
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16858
old_postinstall_cmds old_postuninstall_cmds \
16862
lt_prog_compiler_wl_RC \
16863
lt_prog_compiler_pic_RC \
16864
lt_prog_compiler_static_RC \
16865
lt_prog_compiler_no_builtin_flag_RC \
16866
export_dynamic_flag_spec_RC \
16867
thread_safe_flag_spec_RC \
16868
whole_archive_flag_spec_RC \
16869
old_archive_cmds_RC \
16870
old_archive_from_new_cmds_RC \
16871
predep_objects_RC \
16872
postdep_objects_RC \
16875
compiler_lib_search_path_RC \
16877
archive_expsym_cmds_RC \
16878
postinstall_cmds_RC \
16879
postuninstall_cmds_RC \
16880
old_archive_from_expsyms_cmds_RC \
16881
allow_undefined_flag_RC \
16882
no_undefined_flag_RC \
16883
export_symbols_cmds_RC \
16884
hardcode_libdir_flag_spec_RC \
16885
hardcode_libdir_separator_RC \
16886
lt_cv_prog_compiler_c_o_RC \
16887
exclude_expsyms_RC \
16888
include_expsyms_RC; do
16891
old_archive_cmds_RC | \
16892
old_archive_from_new_cmds_RC | \
16893
archive_cmds_RC | \
16894
archive_expsym_cmds_RC | \
16895
old_archive_from_expsyms_cmds_RC | \
16896
export_symbols_cmds_RC | \
16897
extract_expsyms_cmds | reload_cmds | finish_cmds | \
16898
postinstall_cmds | postuninstall_cmds | \
16899
old_postinstall_cmds | old_postuninstall_cmds | \
16900
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16901
# Double-quote double-evaled strings.
16902
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16905
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16911
*'\$0 --fallback-echo"')
16912
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16918
cat <<__EOF__ >> "$cfgfile"
16919
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16921
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16923
# Shell to use when invoking shell scripts.
16926
# Whether or not to build shared libraries.
16927
build_libtool_libs=$enable_shared
16929
# Whether or not to build static libraries.
16930
build_old_libs=$enable_static
16932
# Whether or not to add -lc for building shared libraries.
16933
build_libtool_need_lc=$archive_cmds_need_lc_RC
16935
# Whether or not to optimize for fast installation.
16936
fast_install=$enable_fast_install
16939
host_alias=$host_alias
16942
# An echo program that does not interpret backslashes.
16947
AR_FLAGS=$lt_AR_FLAGS
16952
# A language-specific compiler.
16955
# Is the compiler the GNU C compiler?
16958
# The linker used to build libraries.
16961
# Whether we need hard or soft links.
16964
# A BSD-compatible nm program.
16967
# A sed program that does not truncate output.
16970
# A symbol stripping program
16973
# Used to examine libraries when file_magic_cmd begins "file"
16974
MAGIC_CMD=$MAGIC_CMD
16976
# Used on cygwin: DLL creation program.
16979
# Used on cygwin: object dumper.
16982
# Used on cygwin: assembler.
16985
# The name of the directory that contains temporary libtool files.
16988
# How to create reloadable object files.
16989
reload_flag=$lt_reload_flag
16990
reload_cmds=$lt_reload_cmds
16992
# How to pass a linker flag through the compiler.
16993
wl=$lt_lt_prog_compiler_wl_RC
16995
# Object file suffix (normally "o").
16996
objext="$ac_objext"
16998
# Old archive suffix (normally "a").
17001
# Executable file suffix (normally "").
17004
# Additional compiler flags for building library objects.
17005
pic_flag=$lt_lt_prog_compiler_pic_RC
17008
# What is the maximum length of a command?
17009
max_cmd_len=$lt_cv_sys_max_cmd_len
17011
# Does compiler simultaneously support -c and -o options?
17012
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
17014
# Must we lock files when doing compilation ?
17015
need_locks=$lt_need_locks
17017
# Do we need the lib prefix for modules?
17018
need_lib_prefix=$need_lib_prefix
17020
# Do we need a version for libraries?
17021
need_version=$need_version
17023
# Whether dlopen is supported.
17024
dlopen_support=$enable_dlopen
17026
# Whether dlopen of programs is supported.
17027
dlopen_self=$enable_dlopen_self
17029
# Whether dlopen of statically linked programs is supported.
17030
dlopen_self_static=$enable_dlopen_self_static
17032
# Compiler flag to prevent dynamic linking.
17033
link_static_flag=$lt_lt_prog_compiler_static_RC
17035
# Compiler flag to turn off builtin functions.
17036
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
17038
# Compiler flag to allow reflexive dlopens.
17039
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
17041
# Compiler flag to generate shared objects directly from archives.
17042
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
17044
# Compiler flag to generate thread-safe objects.
17045
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
17047
# Library versioning type.
17048
version_type=$version_type
17050
# Format of library name prefix.
17051
libname_spec=$lt_libname_spec
17053
# List of archive names. First name is the real one, the rest are links.
17054
# The last name is the one that the linker finds with -lNAME.
17055
library_names_spec=$lt_library_names_spec
17057
# The coded name of the library, if different from the real name.
17058
soname_spec=$lt_soname_spec
17060
# Commands used to build and install an old-style archive.
17062
old_archive_cmds=$lt_old_archive_cmds_RC
17063
old_postinstall_cmds=$lt_old_postinstall_cmds
17064
old_postuninstall_cmds=$lt_old_postuninstall_cmds
17066
# Create an old-style archive from a shared archive.
17067
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
17069
# Create a temporary old-style archive to link instead of a shared archive.
17070
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
17072
# Commands used to build and install a shared archive.
17073
archive_cmds=$lt_archive_cmds_RC
17074
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
17075
postinstall_cmds=$lt_postinstall_cmds
17076
postuninstall_cmds=$lt_postuninstall_cmds
17078
# Commands to strip libraries.
17079
old_striplib=$lt_old_striplib
17080
striplib=$lt_striplib
17082
# Dependencies to place before the objects being linked to create a
17084
predep_objects=$lt_predep_objects_RC
17086
# Dependencies to place after the objects being linked to create a
17088
postdep_objects=$lt_postdep_objects_RC
17090
# Dependencies to place before the objects being linked to create a
17092
predeps=$lt_predeps_RC
17094
# Dependencies to place after the objects being linked to create a
17096
postdeps=$lt_postdeps_RC
17098
# The library search path used internally by the compiler when linking
17099
# a shared library.
17100
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
17102
# Method to check whether dependent libraries are shared objects.
17103
deplibs_check_method=$lt_deplibs_check_method
17105
# Command to use when deplibs_check_method == file_magic.
17106
file_magic_cmd=$lt_file_magic_cmd
17108
# Flag that allows shared libraries with undefined symbols to be built.
17109
allow_undefined_flag=$lt_allow_undefined_flag_RC
17111
# Flag that forces no undefined symbols.
17112
no_undefined_flag=$lt_no_undefined_flag_RC
17114
# Commands used to finish a libtool library installation in a directory.
17115
finish_cmds=$lt_finish_cmds
17117
# Same as above, but a single script fragment to be evaled but not shown.
17118
finish_eval=$lt_finish_eval
17120
# Take the output of nm and produce a listing of raw symbols and C names.
17121
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17123
# Transform the output of nm in a proper C declaration
17124
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17126
# Transform the output of nm in a C name address pair
17127
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17129
# This is the shared library runtime path variable.
17130
runpath_var=$runpath_var
17132
# This is the shared library path variable.
17133
shlibpath_var=$shlibpath_var
17135
# Is shlibpath searched before the hard-coded library search path?
17136
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17138
# How to hardcode a shared library path into an executable.
17139
hardcode_action=$hardcode_action_RC
17141
# Whether we should hardcode library paths into libraries.
17142
hardcode_into_libs=$hardcode_into_libs
17144
# Flag to hardcode \$libdir into a binary during linking.
17145
# This must work even if \$libdir does not exist.
17146
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
17148
# Whether we need a single -rpath flag with a separated argument.
17149
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
17151
# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
17152
# resulting binary.
17153
hardcode_direct=$hardcode_direct_RC
17155
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17156
# resulting binary.
17157
hardcode_minus_L=$hardcode_minus_L_RC
17159
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17160
# the resulting binary.
17161
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
17163
# Variables whose values should be saved in libtool wrapper scripts and
17164
# restored at relink time.
17165
variables_saved_for_relink="$variables_saved_for_relink"
17167
# Whether libtool must link a program against all its dependency libraries.
17168
link_all_deplibs=$link_all_deplibs_RC
17170
# Compile-time system search path for libraries
17171
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17173
# Run-time system search path for libraries
17174
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17176
# Fix the shell variable \$srcfile for the compiler.
17177
fix_srcfile_path="$fix_srcfile_path_RC"
17179
# Set to yes if exported symbols are required.
17180
always_export_symbols=$always_export_symbols_RC
17182
# The commands to list exported symbols.
17183
export_symbols_cmds=$lt_export_symbols_cmds_RC
17185
# The commands to extract the exported symbol list from a shared archive.
17186
extract_expsyms_cmds=$lt_extract_expsyms_cmds
17188
# Symbols that should not be listed in the preloaded symbols.
17189
exclude_expsyms=$lt_exclude_expsyms_RC
17191
# Symbols that must always be exported.
17192
include_expsyms=$lt_include_expsyms_RC
17194
# ### END LIBTOOL TAG CONFIG: $tagname
17200
# If there is no Makefile yet, we rely on a make rule to execute
17201
# `config.status --recheck' to rerun these tests and create the
17202
# libtool script then.
17203
test -f Makefile && make "$ltmain"
17208
ac_cpp='$CPP $CPPFLAGS'
17209
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17210
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17211
ac_compiler_gnu=$ac_cv_c_compiler_gnu
17218
{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
17219
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
17220
{ (exit 1); exit 1; }; }
17224
# Append the new tag name to the list of available tags.
17225
available_tags="$available_tags $tagname"
17230
# Now substitute the updated list of available tags.
17231
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
17232
mv "${ofile}T" "$ofile"
17236
{ { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
17237
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
17238
{ (exit 1); exit 1; }; }
17244
# This can be used to rebuild libtool when needed
17245
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
17247
# Always use our own libtool.
17248
LIBTOOL='$(SHELL) $(top_builddir)/libtool --silent'
17250
# Prevent multiple expansion
17266
ac_cpp='$CPP $CPPFLAGS'
17267
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17268
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17269
ac_compiler_gnu=$ac_cv_c_compiler_gnu
17274
ac_cpp='$CPP $CPPFLAGS'
17275
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17276
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17277
ac_compiler_gnu=$ac_cv_c_compiler_gnu
17290
LIBTOOL_SHELL="/bin/sh ./libtool"
17291
# LIBTOOL="$LIBTOOL --silent"
17292
KDE_PLUGIN="-avoid-version -module -no-undefined \$(KDE_RPATH) \$(KDE_MT_LDFLAGS)"
17295
# Check whether --enable-objprelink or --disable-objprelink was given.
17296
if test "${enable_objprelink+set}" = set; then
17297
enableval="$enable_objprelink"
17298
kde_use_objprelink=$enableval
17300
kde_use_objprelink=no
17302
if test "x$kde_use_objprelink" = "xyes"; then
17303
{ echo "$as_me:$LINENO: WARNING:
17304
------------------------------------------------------------
17305
Configuration option --enable-objprelink is no longer useful.
17306
See http:://objprelink.sourceforge.net for details:
17307
1- Recent binutils are fast enough to do without objprelink.
17308
2- Newer versions of objprelink do not need this option.
17309
------------------------------------------------------------
17311
echo "$as_me: WARNING:
17312
------------------------------------------------------------
17313
Configuration option --enable-objprelink is no longer useful.
17314
See http:://objprelink.sourceforge.net for details:
17315
1- Recent binutils are fast enough to do without objprelink.
17316
2- Newer versions of objprelink do not need this option.
17317
------------------------------------------------------------
17322
all_libraries="$all_libraries $USER_LDFLAGS"
17323
all_includes="$all_includes $USER_INCLUDES"
17329
# Extract the first word of "msgfmt", so it can be a program name with args.
17330
set dummy msgfmt; ac_word=$2
17331
echo "$as_me:$LINENO: checking for $ac_word" >&5
17332
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17333
if test "${ac_cv_path_MSGFMT+set}" = set; then
17334
echo $ECHO_N "(cached) $ECHO_C" >&6
17338
ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
17341
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
17342
for ac_dir in $PATH; do
17343
test -z "$ac_dir" && ac_dir=.
17344
if test -f $ac_dir/$ac_word; then
17345
if test -n "`$ac_dir/$ac_word --version 2>&1 | grep 'GNU gettext'`"; then
17346
ac_cv_path_MSGFMT="$ac_dir/$ac_word"
17352
test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
17356
MSGFMT="$ac_cv_path_MSGFMT"
17357
if test -n "$MSGFMT"; then
17358
echo "$as_me:$LINENO: result: $MSGFMT" >&5
17359
echo "${ECHO_T}$MSGFMT" >&6
17361
echo "$as_me:$LINENO: result: no" >&5
17362
echo "${ECHO_T}no" >&6
17365
# Extract the first word of "gmsgfmt", so it can be a program name with args.
17366
set dummy gmsgfmt; ac_word=$2
17367
echo "$as_me:$LINENO: checking for $ac_word" >&5
17368
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17369
if test "${ac_cv_path_GMSGFMT+set}" = set; then
17370
echo $ECHO_N "(cached) $ECHO_C" >&6
17374
ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
17377
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17378
for as_dir in $PATH
17381
test -z "$as_dir" && as_dir=.
17382
for ac_exec_ext in '' $ac_executable_extensions; do
17383
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17384
ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
17385
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17391
test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
17395
GMSGFMT=$ac_cv_path_GMSGFMT
17397
if test -n "$GMSGFMT"; then
17398
echo "$as_me:$LINENO: result: $GMSGFMT" >&5
17399
echo "${ECHO_T}$GMSGFMT" >&6
17401
echo "$as_me:$LINENO: result: no" >&5
17402
echo "${ECHO_T}no" >&6
17406
if test -z "`$GMSGFMT --version 2>&1 | grep 'GNU gettext'`"; then
17407
echo "$as_me:$LINENO: result: found msgfmt program is not GNU msgfmt; ignore it" >&5
17408
echo "${ECHO_T}found msgfmt program is not GNU msgfmt; ignore it" >&6
17415
# Extract the first word of "xgettext", so it can be a program name with args.
17416
set dummy xgettext; ac_word=$2
17417
echo "$as_me:$LINENO: checking for $ac_word" >&5
17418
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17419
if test "${ac_cv_path_XGETTEXT+set}" = set; then
17420
echo $ECHO_N "(cached) $ECHO_C" >&6
17422
case "$XGETTEXT" in
17424
ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
17427
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
17428
for ac_dir in $PATH; do
17429
test -z "$ac_dir" && ac_dir=.
17430
if test -f $ac_dir/$ac_word; then
17431
if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
17432
ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
17438
test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
17442
XGETTEXT="$ac_cv_path_XGETTEXT"
17443
if test -n "$XGETTEXT"; then
17444
echo "$as_me:$LINENO: result: $XGETTEXT" >&5
17445
echo "${ECHO_T}$XGETTEXT" >&6
17447
echo "$as_me:$LINENO: result: no" >&5
17448
echo "${ECHO_T}no" >&6
17452
if test "$XGETTEXT" != ":"; then
17453
if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
17456
echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
17457
echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
17466
if test -z ""; then
17470
kde_qtsubver=`echo "" | sed -e 's#[0-9][0-9]*\.\([0-9][0-9]*\).*#\1#'`
17471
# following is the check if subversion isn�t found in passed argument
17472
if test "$kde_qtsubver" = ""; then
17475
kde_qtver=`echo "" | sed -e 's#^\([0-9][0-9]*\)\..*#\1#'`
17476
if test "$kde_qtver" = "1"; then
17481
if test -z ""; then
17482
if test "$kde_qtver" = "2"; then
17483
if test $kde_qtsubver -gt 0; then
17484
kde_qt_minversion=">= Qt 2.2.2"
17486
kde_qt_minversion=">= Qt 2.0.2"
17489
if test "$kde_qtver" = "3"; then
17490
kde_qt_minversion=">= Qt 3.0.3"
17492
if test "$kde_qtver" = "1"; then
17493
kde_qt_minversion=">= 1.42 and < 2.0"
17499
if test -z ""; then
17500
if test $kde_qtver = 3; then
17501
kde_qt_verstring="QT_VERSION >= 303"
17503
if test $kde_qtver = 2; then
17504
if test $kde_qtsubver -gt 0; then
17505
kde_qt_verstring="QT_VERSION >= 222"
17507
kde_qt_verstring="QT_VERSION >= 200"
17510
if test $kde_qtver = 1; then
17511
kde_qt_verstring="QT_VERSION >= 142 && QT_VERSION < 200"
17517
if test $kde_qtver = 3; then
17518
kde_qt_dirs="$QTDIR /usr/lib/qt3 /usr/lib/qt"
17520
if test $kde_qtver = 2; then
17521
kde_qt_dirs="$QTDIR /usr/lib/qt2 /usr/lib/qt"
17523
if test $kde_qtver = 1; then
17524
kde_qt_dirs="$QTDIR /usr/lib/qt"
17529
ac_cpp='$CPP $CPPFLAGS'
17530
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17531
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17532
ac_compiler_gnu=$ac_cv_c_compiler_gnu
17534
echo "$as_me:$LINENO: checking for main in -lutil" >&5
17535
echo $ECHO_N "checking for main in -lutil... $ECHO_C" >&6
17536
if test "${ac_cv_lib_util_main+set}" = set; then
17537
echo $ECHO_N "(cached) $ECHO_C" >&6
17539
ac_check_lib_save_LIBS=$LIBS
17540
LIBS="-lutil $LIBS"
17541
cat >conftest.$ac_ext <<_ACEOF
17542
#line $LINENO "configure"
17545
cat confdefs.h >>conftest.$ac_ext
17546
cat >>conftest.$ac_ext <<_ACEOF
17547
/* end confdefs.h. */
17558
rm -f conftest.$ac_objext conftest$ac_exeext
17559
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17560
(eval $ac_link) 2>&5
17562
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17563
(exit $ac_status); } &&
17564
{ ac_try='test -s conftest$ac_exeext'
17565
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17566
(eval $ac_try) 2>&5
17568
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17569
(exit $ac_status); }; }; then
17570
ac_cv_lib_util_main=yes
17572
echo "$as_me: failed program was:" >&5
17573
sed 's/^/| /' conftest.$ac_ext >&5
17575
ac_cv_lib_util_main=no
17577
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17578
LIBS=$ac_check_lib_save_LIBS
17580
echo "$as_me:$LINENO: result: $ac_cv_lib_util_main" >&5
17581
echo "${ECHO_T}$ac_cv_lib_util_main" >&6
17582
if test $ac_cv_lib_util_main = yes; then
17586
echo "$as_me:$LINENO: checking for main in -lcompat" >&5
17587
echo $ECHO_N "checking for main in -lcompat... $ECHO_C" >&6
17588
if test "${ac_cv_lib_compat_main+set}" = set; then
17589
echo $ECHO_N "(cached) $ECHO_C" >&6
17591
ac_check_lib_save_LIBS=$LIBS
17592
LIBS="-lcompat $LIBS"
17593
cat >conftest.$ac_ext <<_ACEOF
17594
#line $LINENO "configure"
17597
cat confdefs.h >>conftest.$ac_ext
17598
cat >>conftest.$ac_ext <<_ACEOF
17599
/* end confdefs.h. */
17610
rm -f conftest.$ac_objext conftest$ac_exeext
17611
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17612
(eval $ac_link) 2>&5
17614
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17615
(exit $ac_status); } &&
17616
{ ac_try='test -s conftest$ac_exeext'
17617
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17618
(eval $ac_try) 2>&5
17620
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17621
(exit $ac_status); }; }; then
17622
ac_cv_lib_compat_main=yes
17624
echo "$as_me: failed program was:" >&5
17625
sed 's/^/| /' conftest.$ac_ext >&5
17627
ac_cv_lib_compat_main=no
17629
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17630
LIBS=$ac_check_lib_save_LIBS
17632
echo "$as_me:$LINENO: result: $ac_cv_lib_compat_main" >&5
17633
echo "${ECHO_T}$ac_cv_lib_compat_main" >&6
17634
if test $ac_cv_lib_compat_main = yes; then
17635
LIBCOMPAT="-lcompat"
17639
echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
17640
echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
17641
if test "${ac_cv_lib_crypt_crypt+set}" = set; then
17642
echo $ECHO_N "(cached) $ECHO_C" >&6
17644
ac_check_lib_save_LIBS=$LIBS
17645
LIBS="-lcrypt $LIBS"
17646
cat >conftest.$ac_ext <<_ACEOF
17647
#line $LINENO "configure"
17650
cat confdefs.h >>conftest.$ac_ext
17651
cat >>conftest.$ac_ext <<_ACEOF
17652
/* end confdefs.h. */
17654
/* Override any gcc2 internal prototype to avoid an error. */
17658
/* We use char because int might match the return type of a gcc2
17659
builtin and then its argument prototype would still apply. */
17669
rm -f conftest.$ac_objext conftest$ac_exeext
17670
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17671
(eval $ac_link) 2>&5
17673
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17674
(exit $ac_status); } &&
17675
{ ac_try='test -s conftest$ac_exeext'
17676
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17677
(eval $ac_try) 2>&5
17679
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17680
(exit $ac_status); }; }; then
17681
ac_cv_lib_crypt_crypt=yes
17683
echo "$as_me: failed program was:" >&5
17684
sed 's/^/| /' conftest.$ac_ext >&5
17686
ac_cv_lib_crypt_crypt=no
17688
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17689
LIBS=$ac_check_lib_save_LIBS
17691
echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
17692
echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
17693
if test $ac_cv_lib_crypt_crypt = yes; then
17694
LIBCRYPT="-lcrypt"; kde_have_crypt=yes
17696
echo "$as_me:$LINENO: checking for crypt in -lc" >&5
17697
echo $ECHO_N "checking for crypt in -lc... $ECHO_C" >&6
17698
if test "${ac_cv_lib_c_crypt+set}" = set; then
17699
echo $ECHO_N "(cached) $ECHO_C" >&6
17701
ac_check_lib_save_LIBS=$LIBS
17703
cat >conftest.$ac_ext <<_ACEOF
17704
#line $LINENO "configure"
17707
cat confdefs.h >>conftest.$ac_ext
17708
cat >>conftest.$ac_ext <<_ACEOF
17709
/* end confdefs.h. */
17711
/* Override any gcc2 internal prototype to avoid an error. */
17715
/* We use char because int might match the return type of a gcc2
17716
builtin and then its argument prototype would still apply. */
17726
rm -f conftest.$ac_objext conftest$ac_exeext
17727
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17728
(eval $ac_link) 2>&5
17730
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17731
(exit $ac_status); } &&
17732
{ ac_try='test -s conftest$ac_exeext'
17733
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17734
(eval $ac_try) 2>&5
17736
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17737
(exit $ac_status); }; }; then
17738
ac_cv_lib_c_crypt=yes
17740
echo "$as_me: failed program was:" >&5
17741
sed 's/^/| /' conftest.$ac_ext >&5
17743
ac_cv_lib_c_crypt=no
17745
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17746
LIBS=$ac_check_lib_save_LIBS
17748
echo "$as_me:$LINENO: result: $ac_cv_lib_c_crypt" >&5
17749
echo "${ECHO_T}$ac_cv_lib_c_crypt" >&6
17750
if test $ac_cv_lib_c_crypt = yes; then
17754
{ echo "$as_me:$LINENO: WARNING: you have no crypt in either libcrypt or libc.
17755
You should install libcrypt from another source or configure with PAM
17757
echo "$as_me: WARNING: you have no crypt in either libcrypt or libc.
17758
You should install libcrypt from another source or configure with PAM
17767
if test $kde_have_crypt = yes; then
17769
cat >>confdefs.h <<_ACEOF
17770
#define HAVE_CRYPT 1
17775
echo "$as_me:$LINENO: checking for socklen_t" >&5
17776
echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
17777
if test "${ac_cv_socklen_t+set}" = set; then
17778
echo $ECHO_N "(cached) $ECHO_C" >&6
17784
ac_cpp='$CXXCPP $CPPFLAGS'
17785
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17786
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17787
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17789
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17792
cat >conftest.$ac_ext <<_ACEOF
17793
#line $LINENO "configure"
17796
cat confdefs.h >>conftest.$ac_ext
17797
cat >>conftest.$ac_ext <<_ACEOF
17798
/* end confdefs.h. */
17800
#include <sys/types.h>
17801
#include <sys/socket.h>
17808
getsockname(0,(struct sockaddr*)0, &a);
17814
rm -f conftest.$ac_objext
17815
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17816
(eval $ac_compile) 2>&5
17818
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17819
(exit $ac_status); } &&
17820
{ ac_try='test -s conftest.$ac_objext'
17821
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17822
(eval $ac_try) 2>&5
17824
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17825
(exit $ac_status); }; }; then
17826
ac_cv_socklen_t=socklen_t
17828
echo "$as_me: failed program was:" >&5
17829
sed 's/^/| /' conftest.$ac_ext >&5
17831
cat >conftest.$ac_ext <<_ACEOF
17832
#line $LINENO "configure"
17835
cat confdefs.h >>conftest.$ac_ext
17836
cat >>conftest.$ac_ext <<_ACEOF
17837
/* end confdefs.h. */
17839
#include <sys/types.h>
17840
#include <sys/socket.h>
17847
getsockname(0,(struct sockaddr*)0, &a);
17853
rm -f conftest.$ac_objext
17854
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17855
(eval $ac_compile) 2>&5
17857
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17858
(exit $ac_status); } &&
17859
{ ac_try='test -s conftest.$ac_objext'
17860
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17861
(eval $ac_try) 2>&5
17863
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17864
(exit $ac_status); }; }; then
17865
ac_cv_socklen_t=int
17867
echo "$as_me: failed program was:" >&5
17868
sed 's/^/| /' conftest.$ac_ext >&5
17870
ac_cv_socklen_t=size_t
17873
rm -f conftest.$ac_objext conftest.$ac_ext
17876
rm -f conftest.$ac_objext conftest.$ac_ext
17878
ac_cpp='$CPP $CPPFLAGS'
17879
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17880
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17881
ac_compiler_gnu=$ac_cv_c_compiler_gnu
17887
echo "$as_me:$LINENO: result: $ac_cv_socklen_t" >&5
17888
echo "${ECHO_T}$ac_cv_socklen_t" >&6
17889
if test "$ac_cv_socklen_t" != "socklen_t"; then
17891
cat >>confdefs.h <<_ACEOF
17892
#define socklen_t $ac_cv_socklen_t
17897
cat >>confdefs.h <<_ACEOF
17898
#define ksize_t socklen_t
17904
ac_cpp='$CPP $CPPFLAGS'
17905
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17906
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17907
ac_compiler_gnu=$ac_cv_c_compiler_gnu
17909
echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
17910
echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
17911
if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
17912
echo $ECHO_N "(cached) $ECHO_C" >&6
17914
ac_check_lib_save_LIBS=$LIBS
17915
LIBS="-ldnet $LIBS"
17916
cat >conftest.$ac_ext <<_ACEOF
17917
#line $LINENO "configure"
17920
cat confdefs.h >>conftest.$ac_ext
17921
cat >>conftest.$ac_ext <<_ACEOF
17922
/* end confdefs.h. */
17924
/* Override any gcc2 internal prototype to avoid an error. */
17928
/* We use char because int might match the return type of a gcc2
17929
builtin and then its argument prototype would still apply. */
17939
rm -f conftest.$ac_objext conftest$ac_exeext
17940
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17941
(eval $ac_link) 2>&5
17943
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17944
(exit $ac_status); } &&
17945
{ ac_try='test -s conftest$ac_exeext'
17946
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17947
(eval $ac_try) 2>&5
17949
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17950
(exit $ac_status); }; }; then
17951
ac_cv_lib_dnet_dnet_ntoa=yes
17953
echo "$as_me: failed program was:" >&5
17954
sed 's/^/| /' conftest.$ac_ext >&5
17956
ac_cv_lib_dnet_dnet_ntoa=no
17958
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17959
LIBS=$ac_check_lib_save_LIBS
17961
echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
17962
echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
17963
if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
17964
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
17967
if test $ac_cv_lib_dnet_dnet_ntoa = no; then
17968
echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
17969
echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
17970
if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
17971
echo $ECHO_N "(cached) $ECHO_C" >&6
17973
ac_check_lib_save_LIBS=$LIBS
17974
LIBS="-ldnet_stub $LIBS"
17975
cat >conftest.$ac_ext <<_ACEOF
17976
#line $LINENO "configure"
17979
cat confdefs.h >>conftest.$ac_ext
17980
cat >>conftest.$ac_ext <<_ACEOF
17981
/* end confdefs.h. */
17983
/* Override any gcc2 internal prototype to avoid an error. */
17987
/* We use char because int might match the return type of a gcc2
17988
builtin and then its argument prototype would still apply. */
17998
rm -f conftest.$ac_objext conftest$ac_exeext
17999
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18000
(eval $ac_link) 2>&5
18002
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18003
(exit $ac_status); } &&
18004
{ ac_try='test -s conftest$ac_exeext'
18005
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18006
(eval $ac_try) 2>&5
18008
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18009
(exit $ac_status); }; }; then
18010
ac_cv_lib_dnet_stub_dnet_ntoa=yes
18012
echo "$as_me: failed program was:" >&5
18013
sed 's/^/| /' conftest.$ac_ext >&5
18015
ac_cv_lib_dnet_stub_dnet_ntoa=no
18017
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18018
LIBS=$ac_check_lib_save_LIBS
18020
echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
18021
echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
18022
if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
18023
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
18027
echo "$as_me:$LINENO: checking for inet_ntoa" >&5
18028
echo $ECHO_N "checking for inet_ntoa... $ECHO_C" >&6
18029
if test "${ac_cv_func_inet_ntoa+set}" = set; then
18030
echo $ECHO_N "(cached) $ECHO_C" >&6
18032
cat >conftest.$ac_ext <<_ACEOF
18033
#line $LINENO "configure"
18036
cat confdefs.h >>conftest.$ac_ext
18037
cat >>conftest.$ac_ext <<_ACEOF
18038
/* end confdefs.h. */
18039
/* System header to define __stub macros and hopefully few prototypes,
18040
which can conflict with char inet_ntoa (); below.
18041
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18042
<limits.h> exists even on freestanding compilers. */
18044
# include <limits.h>
18046
# include <assert.h>
18048
/* Override any gcc2 internal prototype to avoid an error. */
18053
/* We use char because int might match the return type of a gcc2
18054
builtin and then its argument prototype would still apply. */
18056
/* The GNU C library defines this for functions which it implements
18057
to always fail with ENOSYS. Some functions are actually named
18058
something starting with __ and the normal name is an alias. */
18059
#if defined (__stub_inet_ntoa) || defined (__stub___inet_ntoa)
18062
char (*f) () = inet_ntoa;
18071
return f != inet_ntoa;
18076
rm -f conftest.$ac_objext conftest$ac_exeext
18077
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18078
(eval $ac_link) 2>&5
18080
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18081
(exit $ac_status); } &&
18082
{ ac_try='test -s conftest$ac_exeext'
18083
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18084
(eval $ac_try) 2>&5
18086
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18087
(exit $ac_status); }; }; then
18088
ac_cv_func_inet_ntoa=yes
18090
echo "$as_me: failed program was:" >&5
18091
sed 's/^/| /' conftest.$ac_ext >&5
18093
ac_cv_func_inet_ntoa=no
18095
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18097
echo "$as_me:$LINENO: result: $ac_cv_func_inet_ntoa" >&5
18098
echo "${ECHO_T}$ac_cv_func_inet_ntoa" >&6
18100
if test $ac_cv_func_inet_ntoa = no; then
18101
echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5
18102
echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6
18103
if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then
18104
echo $ECHO_N "(cached) $ECHO_C" >&6
18106
ac_check_lib_save_LIBS=$LIBS
18108
cat >conftest.$ac_ext <<_ACEOF
18109
#line $LINENO "configure"
18112
cat confdefs.h >>conftest.$ac_ext
18113
cat >>conftest.$ac_ext <<_ACEOF
18114
/* end confdefs.h. */
18116
/* Override any gcc2 internal prototype to avoid an error. */
18120
/* We use char because int might match the return type of a gcc2
18121
builtin and then its argument prototype would still apply. */
18131
rm -f conftest.$ac_objext conftest$ac_exeext
18132
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18133
(eval $ac_link) 2>&5
18135
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18136
(exit $ac_status); } &&
18137
{ ac_try='test -s conftest$ac_exeext'
18138
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18139
(eval $ac_try) 2>&5
18141
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18142
(exit $ac_status); }; }; then
18143
ac_cv_lib_nsl_inet_ntoa=yes
18145
echo "$as_me: failed program was:" >&5
18146
sed 's/^/| /' conftest.$ac_ext >&5
18148
ac_cv_lib_nsl_inet_ntoa=no
18150
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18151
LIBS=$ac_check_lib_save_LIBS
18153
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5
18154
echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6
18155
if test $ac_cv_lib_nsl_inet_ntoa = yes; then
18156
X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
18160
echo "$as_me:$LINENO: checking for connect" >&5
18161
echo $ECHO_N "checking for connect... $ECHO_C" >&6
18162
if test "${ac_cv_func_connect+set}" = set; then
18163
echo $ECHO_N "(cached) $ECHO_C" >&6
18165
cat >conftest.$ac_ext <<_ACEOF
18166
#line $LINENO "configure"
18169
cat confdefs.h >>conftest.$ac_ext
18170
cat >>conftest.$ac_ext <<_ACEOF
18171
/* end confdefs.h. */
18172
/* System header to define __stub macros and hopefully few prototypes,
18173
which can conflict with char connect (); below.
18174
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18175
<limits.h> exists even on freestanding compilers. */
18177
# include <limits.h>
18179
# include <assert.h>
18181
/* Override any gcc2 internal prototype to avoid an error. */
18186
/* We use char because int might match the return type of a gcc2
18187
builtin and then its argument prototype would still apply. */
18189
/* The GNU C library defines this for functions which it implements
18190
to always fail with ENOSYS. Some functions are actually named
18191
something starting with __ and the normal name is an alias. */
18192
#if defined (__stub_connect) || defined (__stub___connect)
18195
char (*f) () = connect;
18204
return f != connect;
18209
rm -f conftest.$ac_objext conftest$ac_exeext
18210
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18211
(eval $ac_link) 2>&5
18213
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18214
(exit $ac_status); } &&
18215
{ ac_try='test -s conftest$ac_exeext'
18216
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18217
(eval $ac_try) 2>&5
18219
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18220
(exit $ac_status); }; }; then
18221
ac_cv_func_connect=yes
18223
echo "$as_me: failed program was:" >&5
18224
sed 's/^/| /' conftest.$ac_ext >&5
18226
ac_cv_func_connect=no
18228
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18230
echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
18231
echo "${ECHO_T}$ac_cv_func_connect" >&6
18233
if test $ac_cv_func_connect = no; then
18234
echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
18235
echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
18236
if test "${ac_cv_lib_socket_connect+set}" = set; then
18237
echo $ECHO_N "(cached) $ECHO_C" >&6
18239
ac_check_lib_save_LIBS=$LIBS
18240
LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
18241
cat >conftest.$ac_ext <<_ACEOF
18242
#line $LINENO "configure"
18245
cat confdefs.h >>conftest.$ac_ext
18246
cat >>conftest.$ac_ext <<_ACEOF
18247
/* end confdefs.h. */
18249
/* Override any gcc2 internal prototype to avoid an error. */
18253
/* We use char because int might match the return type of a gcc2
18254
builtin and then its argument prototype would still apply. */
18264
rm -f conftest.$ac_objext conftest$ac_exeext
18265
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18266
(eval $ac_link) 2>&5
18268
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18269
(exit $ac_status); } &&
18270
{ ac_try='test -s conftest$ac_exeext'
18271
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18272
(eval $ac_try) 2>&5
18274
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18275
(exit $ac_status); }; }; then
18276
ac_cv_lib_socket_connect=yes
18278
echo "$as_me: failed program was:" >&5
18279
sed 's/^/| /' conftest.$ac_ext >&5
18281
ac_cv_lib_socket_connect=no
18283
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18284
LIBS=$ac_check_lib_save_LIBS
18286
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
18287
echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
18288
if test $ac_cv_lib_socket_connect = yes; then
18289
X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
18294
echo "$as_me:$LINENO: checking for remove" >&5
18295
echo $ECHO_N "checking for remove... $ECHO_C" >&6
18296
if test "${ac_cv_func_remove+set}" = set; then
18297
echo $ECHO_N "(cached) $ECHO_C" >&6
18299
cat >conftest.$ac_ext <<_ACEOF
18300
#line $LINENO "configure"
18303
cat confdefs.h >>conftest.$ac_ext
18304
cat >>conftest.$ac_ext <<_ACEOF
18305
/* end confdefs.h. */
18306
/* System header to define __stub macros and hopefully few prototypes,
18307
which can conflict with char remove (); below.
18308
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18309
<limits.h> exists even on freestanding compilers. */
18311
# include <limits.h>
18313
# include <assert.h>
18315
/* Override any gcc2 internal prototype to avoid an error. */
18320
/* We use char because int might match the return type of a gcc2
18321
builtin and then its argument prototype would still apply. */
18323
/* The GNU C library defines this for functions which it implements
18324
to always fail with ENOSYS. Some functions are actually named
18325
something starting with __ and the normal name is an alias. */
18326
#if defined (__stub_remove) || defined (__stub___remove)
18329
char (*f) () = remove;
18338
return f != remove;
18343
rm -f conftest.$ac_objext conftest$ac_exeext
18344
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18345
(eval $ac_link) 2>&5
18347
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18348
(exit $ac_status); } &&
18349
{ ac_try='test -s conftest$ac_exeext'
18350
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18351
(eval $ac_try) 2>&5
18353
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18354
(exit $ac_status); }; }; then
18355
ac_cv_func_remove=yes
18357
echo "$as_me: failed program was:" >&5
18358
sed 's/^/| /' conftest.$ac_ext >&5
18360
ac_cv_func_remove=no
18362
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18364
echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
18365
echo "${ECHO_T}$ac_cv_func_remove" >&6
18367
if test $ac_cv_func_remove = no; then
18368
echo "$as_me:$LINENO: checking for remove in -lposix" >&5
18369
echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
18370
if test "${ac_cv_lib_posix_remove+set}" = set; then
18371
echo $ECHO_N "(cached) $ECHO_C" >&6
18373
ac_check_lib_save_LIBS=$LIBS
18374
LIBS="-lposix $LIBS"
18375
cat >conftest.$ac_ext <<_ACEOF
18376
#line $LINENO "configure"
18379
cat confdefs.h >>conftest.$ac_ext
18380
cat >>conftest.$ac_ext <<_ACEOF
18381
/* end confdefs.h. */
18383
/* Override any gcc2 internal prototype to avoid an error. */
18387
/* We use char because int might match the return type of a gcc2
18388
builtin and then its argument prototype would still apply. */
18398
rm -f conftest.$ac_objext conftest$ac_exeext
18399
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18400
(eval $ac_link) 2>&5
18402
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18403
(exit $ac_status); } &&
18404
{ ac_try='test -s conftest$ac_exeext'
18405
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18406
(eval $ac_try) 2>&5
18408
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18409
(exit $ac_status); }; }; then
18410
ac_cv_lib_posix_remove=yes
18412
echo "$as_me: failed program was:" >&5
18413
sed 's/^/| /' conftest.$ac_ext >&5
18415
ac_cv_lib_posix_remove=no
18417
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18418
LIBS=$ac_check_lib_save_LIBS
18420
echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
18421
echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
18422
if test $ac_cv_lib_posix_remove = yes; then
18423
X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
18428
# BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
18429
echo "$as_me:$LINENO: checking for shmat" >&5
18430
echo $ECHO_N "checking for shmat... $ECHO_C" >&6
18431
if test "${ac_cv_func_shmat+set}" = set; then
18432
echo $ECHO_N "(cached) $ECHO_C" >&6
18434
cat >conftest.$ac_ext <<_ACEOF
18435
#line $LINENO "configure"
18438
cat confdefs.h >>conftest.$ac_ext
18439
cat >>conftest.$ac_ext <<_ACEOF
18440
/* end confdefs.h. */
18441
/* System header to define __stub macros and hopefully few prototypes,
18442
which can conflict with char shmat (); below.
18443
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18444
<limits.h> exists even on freestanding compilers. */
18446
# include <limits.h>
18448
# include <assert.h>
18450
/* Override any gcc2 internal prototype to avoid an error. */
18455
/* We use char because int might match the return type of a gcc2
18456
builtin and then its argument prototype would still apply. */
18458
/* The GNU C library defines this for functions which it implements
18459
to always fail with ENOSYS. Some functions are actually named
18460
something starting with __ and the normal name is an alias. */
18461
#if defined (__stub_shmat) || defined (__stub___shmat)
18464
char (*f) () = shmat;
18478
rm -f conftest.$ac_objext conftest$ac_exeext
18479
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18480
(eval $ac_link) 2>&5
18482
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18483
(exit $ac_status); } &&
18484
{ ac_try='test -s conftest$ac_exeext'
18485
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18486
(eval $ac_try) 2>&5
18488
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18489
(exit $ac_status); }; }; then
18490
ac_cv_func_shmat=yes
18492
echo "$as_me: failed program was:" >&5
18493
sed 's/^/| /' conftest.$ac_ext >&5
18495
ac_cv_func_shmat=no
18497
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18499
echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
18500
echo "${ECHO_T}$ac_cv_func_shmat" >&6
18501
if test $ac_cv_func_shmat = yes; then
18504
echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
18505
echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
18506
if test "${ac_cv_lib_ipc_shmat+set}" = set; then
18507
echo $ECHO_N "(cached) $ECHO_C" >&6
18509
ac_check_lib_save_LIBS=$LIBS
18511
cat >conftest.$ac_ext <<_ACEOF
18512
#line $LINENO "configure"
18515
cat confdefs.h >>conftest.$ac_ext
18516
cat >>conftest.$ac_ext <<_ACEOF
18517
/* end confdefs.h. */
18519
/* Override any gcc2 internal prototype to avoid an error. */
18523
/* We use char because int might match the return type of a gcc2
18524
builtin and then its argument prototype would still apply. */
18534
rm -f conftest.$ac_objext conftest$ac_exeext
18535
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18536
(eval $ac_link) 2>&5
18538
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18539
(exit $ac_status); } &&
18540
{ ac_try='test -s conftest$ac_exeext'
18541
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18542
(eval $ac_try) 2>&5
18544
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18545
(exit $ac_status); }; }; then
18546
ac_cv_lib_ipc_shmat=yes
18548
echo "$as_me: failed program was:" >&5
18549
sed 's/^/| /' conftest.$ac_ext >&5
18551
ac_cv_lib_ipc_shmat=no
18553
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18554
LIBS=$ac_check_lib_save_LIBS
18556
echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
18557
echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
18558
if test $ac_cv_lib_ipc_shmat = yes; then
18559
X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
18565
# darwin needs this to initialize the environment
18567
for ac_header in crt_externs.h
18569
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18570
if eval "test \"\${$as_ac_Header+set}\" = set"; then
18571
echo "$as_me:$LINENO: checking for $ac_header" >&5
18572
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18573
if eval "test \"\${$as_ac_Header+set}\" = set"; then
18574
echo $ECHO_N "(cached) $ECHO_C" >&6
18576
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18577
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18579
# Is the header compilable?
18580
echo "$as_me:$LINENO: checking $ac_header usability" >&5
18581
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18582
cat >conftest.$ac_ext <<_ACEOF
18583
#line $LINENO "configure"
18586
cat confdefs.h >>conftest.$ac_ext
18587
cat >>conftest.$ac_ext <<_ACEOF
18588
/* end confdefs.h. */
18589
$ac_includes_default
18590
#include <$ac_header>
18592
rm -f conftest.$ac_objext
18593
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18594
(eval $ac_compile) 2>&5
18596
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18597
(exit $ac_status); } &&
18598
{ ac_try='test -s conftest.$ac_objext'
18599
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18600
(eval $ac_try) 2>&5
18602
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18603
(exit $ac_status); }; }; then
18604
ac_header_compiler=yes
18606
echo "$as_me: failed program was:" >&5
18607
sed 's/^/| /' conftest.$ac_ext >&5
18609
ac_header_compiler=no
18611
rm -f conftest.$ac_objext conftest.$ac_ext
18612
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18613
echo "${ECHO_T}$ac_header_compiler" >&6
18615
# Is the header present?
18616
echo "$as_me:$LINENO: checking $ac_header presence" >&5
18617
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18618
cat >conftest.$ac_ext <<_ACEOF
18619
#line $LINENO "configure"
18622
cat confdefs.h >>conftest.$ac_ext
18623
cat >>conftest.$ac_ext <<_ACEOF
18624
/* end confdefs.h. */
18625
#include <$ac_header>
18627
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18628
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18630
grep -v '^ *+' conftest.er1 >conftest.err
18632
cat conftest.err >&5
18633
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18634
(exit $ac_status); } >/dev/null; then
18635
if test -s conftest.err; then
18636
ac_cpp_err=$ac_c_preproc_warn_flag
18643
if test -z "$ac_cpp_err"; then
18644
ac_header_preproc=yes
18646
echo "$as_me: failed program was:" >&5
18647
sed 's/^/| /' conftest.$ac_ext >&5
18649
ac_header_preproc=no
18651
rm -f conftest.err conftest.$ac_ext
18652
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18653
echo "${ECHO_T}$ac_header_preproc" >&6
18655
# So? What about this header?
18656
case $ac_header_compiler:$ac_header_preproc in
18658
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18659
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18660
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18661
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18664
## ------------------------------------ ##
18665
## Report this to bug-autoconf@gnu.org. ##
18666
## ------------------------------------ ##
18669
sed "s/^/$as_me: WARNING: /" >&2
18672
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18673
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18674
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18675
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18676
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18677
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18680
## ------------------------------------ ##
18681
## Report this to bug-autoconf@gnu.org. ##
18682
## ------------------------------------ ##
18685
sed "s/^/$as_me: WARNING: /" >&2
18688
echo "$as_me:$LINENO: checking for $ac_header" >&5
18689
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18690
if eval "test \"\${$as_ac_Header+set}\" = set"; then
18691
echo $ECHO_N "(cached) $ECHO_C" >&6
18693
eval "$as_ac_Header=$ac_header_preproc"
18695
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18696
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18699
if test `eval echo '${'$as_ac_Header'}'` = yes; then
18700
cat >>confdefs.h <<_ACEOF
18701
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18708
echo "$as_me:$LINENO: checking for _NSGetEnviron" >&5
18709
echo $ECHO_N "checking for _NSGetEnviron... $ECHO_C" >&6
18710
if test "${ac_cv_func__NSGetEnviron+set}" = set; then
18711
echo $ECHO_N "(cached) $ECHO_C" >&6
18713
cat >conftest.$ac_ext <<_ACEOF
18714
#line $LINENO "configure"
18717
cat confdefs.h >>conftest.$ac_ext
18718
cat >>conftest.$ac_ext <<_ACEOF
18719
/* end confdefs.h. */
18720
/* System header to define __stub macros and hopefully few prototypes,
18721
which can conflict with char _NSGetEnviron (); below.
18722
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18723
<limits.h> exists even on freestanding compilers. */
18725
# include <limits.h>
18727
# include <assert.h>
18729
/* Override any gcc2 internal prototype to avoid an error. */
18734
/* We use char because int might match the return type of a gcc2
18735
builtin and then its argument prototype would still apply. */
18736
char _NSGetEnviron ();
18737
/* The GNU C library defines this for functions which it implements
18738
to always fail with ENOSYS. Some functions are actually named
18739
something starting with __ and the normal name is an alias. */
18740
#if defined (__stub__NSGetEnviron) || defined (__stub____NSGetEnviron)
18743
char (*f) () = _NSGetEnviron;
18752
return f != _NSGetEnviron;
18757
rm -f conftest.$ac_objext conftest$ac_exeext
18758
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18759
(eval $ac_link) 2>&5
18761
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18762
(exit $ac_status); } &&
18763
{ ac_try='test -s conftest$ac_exeext'
18764
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18765
(eval $ac_try) 2>&5
18767
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18768
(exit $ac_status); }; }; then
18769
ac_cv_func__NSGetEnviron=yes
18771
echo "$as_me: failed program was:" >&5
18772
sed 's/^/| /' conftest.$ac_ext >&5
18774
ac_cv_func__NSGetEnviron=no
18776
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18778
echo "$as_me:$LINENO: result: $ac_cv_func__NSGetEnviron" >&5
18779
echo "${ECHO_T}$ac_cv_func__NSGetEnviron" >&6
18780
if test $ac_cv_func__NSGetEnviron = yes; then
18782
cat >>confdefs.h <<\_ACEOF
18783
#define HAVE_NSGETENVIRON 1
18789
# more headers that need to be explicitly included on darwin
18792
for ac_header in sys/types.h stdint.h
18794
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18795
if eval "test \"\${$as_ac_Header+set}\" = set"; then
18796
echo "$as_me:$LINENO: checking for $ac_header" >&5
18797
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18798
if eval "test \"\${$as_ac_Header+set}\" = set"; then
18799
echo $ECHO_N "(cached) $ECHO_C" >&6
18801
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18802
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18804
# Is the header compilable?
18805
echo "$as_me:$LINENO: checking $ac_header usability" >&5
18806
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18807
cat >conftest.$ac_ext <<_ACEOF
18808
#line $LINENO "configure"
18811
cat confdefs.h >>conftest.$ac_ext
18812
cat >>conftest.$ac_ext <<_ACEOF
18813
/* end confdefs.h. */
18814
$ac_includes_default
18815
#include <$ac_header>
18817
rm -f conftest.$ac_objext
18818
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18819
(eval $ac_compile) 2>&5
18821
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18822
(exit $ac_status); } &&
18823
{ ac_try='test -s conftest.$ac_objext'
18824
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18825
(eval $ac_try) 2>&5
18827
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18828
(exit $ac_status); }; }; then
18829
ac_header_compiler=yes
18831
echo "$as_me: failed program was:" >&5
18832
sed 's/^/| /' conftest.$ac_ext >&5
18834
ac_header_compiler=no
18836
rm -f conftest.$ac_objext conftest.$ac_ext
18837
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18838
echo "${ECHO_T}$ac_header_compiler" >&6
18840
# Is the header present?
18841
echo "$as_me:$LINENO: checking $ac_header presence" >&5
18842
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18843
cat >conftest.$ac_ext <<_ACEOF
18844
#line $LINENO "configure"
18847
cat confdefs.h >>conftest.$ac_ext
18848
cat >>conftest.$ac_ext <<_ACEOF
18849
/* end confdefs.h. */
18850
#include <$ac_header>
18852
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18853
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18855
grep -v '^ *+' conftest.er1 >conftest.err
18857
cat conftest.err >&5
18858
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18859
(exit $ac_status); } >/dev/null; then
18860
if test -s conftest.err; then
18861
ac_cpp_err=$ac_c_preproc_warn_flag
18868
if test -z "$ac_cpp_err"; then
18869
ac_header_preproc=yes
18871
echo "$as_me: failed program was:" >&5
18872
sed 's/^/| /' conftest.$ac_ext >&5
18874
ac_header_preproc=no
18876
rm -f conftest.err conftest.$ac_ext
18877
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18878
echo "${ECHO_T}$ac_header_preproc" >&6
18880
# So? What about this header?
18881
case $ac_header_compiler:$ac_header_preproc in
18883
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18884
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18885
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18886
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18889
## ------------------------------------ ##
18890
## Report this to bug-autoconf@gnu.org. ##
18891
## ------------------------------------ ##
18894
sed "s/^/$as_me: WARNING: /" >&2
18897
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18898
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18899
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18900
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18901
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18902
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18905
## ------------------------------------ ##
18906
## Report this to bug-autoconf@gnu.org. ##
18907
## ------------------------------------ ##
18910
sed "s/^/$as_me: WARNING: /" >&2
18913
echo "$as_me:$LINENO: checking for $ac_header" >&5
18914
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18915
if eval "test \"\${$as_ac_Header+set}\" = set"; then
18916
echo $ECHO_N "(cached) $ECHO_C" >&6
18918
eval "$as_ac_Header=$ac_header_preproc"
18920
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18921
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18924
if test `eval echo '${'$as_ac_Header'}'` = yes; then
18925
cat >>confdefs.h <<_ACEOF
18926
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18934
# darwin requires a poll emulation library
18935
echo "$as_me:$LINENO: checking for poll in -lpoll" >&5
18936
echo $ECHO_N "checking for poll in -lpoll... $ECHO_C" >&6
18937
if test "${ac_cv_lib_poll_poll+set}" = set; then
18938
echo $ECHO_N "(cached) $ECHO_C" >&6
18940
ac_check_lib_save_LIBS=$LIBS
18941
LIBS="-lpoll $LIBS"
18942
cat >conftest.$ac_ext <<_ACEOF
18943
#line $LINENO "configure"
18946
cat confdefs.h >>conftest.$ac_ext
18947
cat >>conftest.$ac_ext <<_ACEOF
18948
/* end confdefs.h. */
18950
/* Override any gcc2 internal prototype to avoid an error. */
18954
/* We use char because int might match the return type of a gcc2
18955
builtin and then its argument prototype would still apply. */
18965
rm -f conftest.$ac_objext conftest$ac_exeext
18966
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18967
(eval $ac_link) 2>&5
18969
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18970
(exit $ac_status); } &&
18971
{ ac_try='test -s conftest$ac_exeext'
18972
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18973
(eval $ac_try) 2>&5
18975
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18976
(exit $ac_status); }; }; then
18977
ac_cv_lib_poll_poll=yes
18979
echo "$as_me: failed program was:" >&5
18980
sed 's/^/| /' conftest.$ac_ext >&5
18982
ac_cv_lib_poll_poll=no
18984
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18985
LIBS=$ac_check_lib_save_LIBS
18987
echo "$as_me:$LINENO: result: $ac_cv_lib_poll_poll" >&5
18988
echo "${ECHO_T}$ac_cv_lib_poll_poll" >&6
18989
if test $ac_cv_lib_poll_poll = yes; then
18994
# CoreAudio framework
18995
if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
18996
echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
18997
echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6
18998
if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
18999
echo $ECHO_N "(cached) $ECHO_C" >&6
19001
echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
19002
echo "${ECHO_T}$ac_cv_header_CoreAudio_CoreAudio_h" >&6
19004
# Is the header compilable?
19005
echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h usability" >&5
19006
echo $ECHO_N "checking CoreAudio/CoreAudio.h usability... $ECHO_C" >&6
19007
cat >conftest.$ac_ext <<_ACEOF
19008
#line $LINENO "configure"
19011
cat confdefs.h >>conftest.$ac_ext
19012
cat >>conftest.$ac_ext <<_ACEOF
19013
/* end confdefs.h. */
19014
$ac_includes_default
19015
#include <CoreAudio/CoreAudio.h>
19017
rm -f conftest.$ac_objext
19018
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19019
(eval $ac_compile) 2>&5
19021
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19022
(exit $ac_status); } &&
19023
{ ac_try='test -s conftest.$ac_objext'
19024
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19025
(eval $ac_try) 2>&5
19027
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19028
(exit $ac_status); }; }; then
19029
ac_header_compiler=yes
19031
echo "$as_me: failed program was:" >&5
19032
sed 's/^/| /' conftest.$ac_ext >&5
19034
ac_header_compiler=no
19036
rm -f conftest.$ac_objext conftest.$ac_ext
19037
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19038
echo "${ECHO_T}$ac_header_compiler" >&6
19040
# Is the header present?
19041
echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h presence" >&5
19042
echo $ECHO_N "checking CoreAudio/CoreAudio.h presence... $ECHO_C" >&6
19043
cat >conftest.$ac_ext <<_ACEOF
19044
#line $LINENO "configure"
19047
cat confdefs.h >>conftest.$ac_ext
19048
cat >>conftest.$ac_ext <<_ACEOF
19049
/* end confdefs.h. */
19050
#include <CoreAudio/CoreAudio.h>
19052
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19053
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19055
grep -v '^ *+' conftest.er1 >conftest.err
19057
cat conftest.err >&5
19058
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19059
(exit $ac_status); } >/dev/null; then
19060
if test -s conftest.err; then
19061
ac_cpp_err=$ac_c_preproc_warn_flag
19068
if test -z "$ac_cpp_err"; then
19069
ac_header_preproc=yes
19071
echo "$as_me: failed program was:" >&5
19072
sed 's/^/| /' conftest.$ac_ext >&5
19074
ac_header_preproc=no
19076
rm -f conftest.err conftest.$ac_ext
19077
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19078
echo "${ECHO_T}$ac_header_preproc" >&6
19080
# So? What about this header?
19081
case $ac_header_compiler:$ac_header_preproc in
19083
{ echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&5
19084
echo "$as_me: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19085
{ echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&5
19086
echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&2;}
19089
## ------------------------------------ ##
19090
## Report this to bug-autoconf@gnu.org. ##
19091
## ------------------------------------ ##
19094
sed "s/^/$as_me: WARNING: /" >&2
19097
{ echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&5
19098
echo "$as_me: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&2;}
19099
{ echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&5
19100
echo "$as_me: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&2;}
19101
{ echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&5
19102
echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&2;}
19105
## ------------------------------------ ##
19106
## Report this to bug-autoconf@gnu.org. ##
19107
## ------------------------------------ ##
19110
sed "s/^/$as_me: WARNING: /" >&2
19113
echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
19114
echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6
19115
if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
19116
echo $ECHO_N "(cached) $ECHO_C" >&6
19118
ac_cv_header_CoreAudio_CoreAudio_h=$ac_header_preproc
19120
echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
19121
echo "${ECHO_T}$ac_cv_header_CoreAudio_CoreAudio_h" >&6
19124
if test $ac_cv_header_CoreAudio_CoreAudio_h = yes; then
19127
cat >>confdefs.h <<\_ACEOF
19128
#define HAVE_COREAUDIO 1
19131
FRAMEWORK_COREAUDIO="-framework CoreAudio"
19137
# Solaris 2.6 and others need -lresolv for res_init
19139
for ac_func in res_init
19141
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19142
echo "$as_me:$LINENO: checking for $ac_func" >&5
19143
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19144
if eval "test \"\${$as_ac_var+set}\" = set"; then
19145
echo $ECHO_N "(cached) $ECHO_C" >&6
19147
cat >conftest.$ac_ext <<_ACEOF
19148
#line $LINENO "configure"
19151
cat confdefs.h >>conftest.$ac_ext
19152
cat >>conftest.$ac_ext <<_ACEOF
19153
/* end confdefs.h. */
19154
/* System header to define __stub macros and hopefully few prototypes,
19155
which can conflict with char $ac_func (); below.
19156
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19157
<limits.h> exists even on freestanding compilers. */
19159
# include <limits.h>
19161
# include <assert.h>
19163
/* Override any gcc2 internal prototype to avoid an error. */
19168
/* We use char because int might match the return type of a gcc2
19169
builtin and then its argument prototype would still apply. */
19171
/* The GNU C library defines this for functions which it implements
19172
to always fail with ENOSYS. Some functions are actually named
19173
something starting with __ and the normal name is an alias. */
19174
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19177
char (*f) () = $ac_func;
19186
return f != $ac_func;
19191
rm -f conftest.$ac_objext conftest$ac_exeext
19192
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19193
(eval $ac_link) 2>&5
19195
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19196
(exit $ac_status); } &&
19197
{ ac_try='test -s conftest$ac_exeext'
19198
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19199
(eval $ac_try) 2>&5
19201
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19202
(exit $ac_status); }; }; then
19203
eval "$as_ac_var=yes"
19205
echo "$as_me: failed program was:" >&5
19206
sed 's/^/| /' conftest.$ac_ext >&5
19208
eval "$as_ac_var=no"
19210
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19212
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19213
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19214
if test `eval echo '${'$as_ac_var'}'` = yes; then
19215
cat >>confdefs.h <<_ACEOF
19216
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19221
kde_libs_safe="$LIBS"
19222
LIBS="$LIBS $X_EXTRA_LIBS -lresolv"
19223
cat >conftest.$ac_ext <<_ACEOF
19224
#line $LINENO "configure"
19227
cat confdefs.h >>conftest.$ac_ext
19228
cat >>conftest.$ac_ext <<_ACEOF
19229
/* end confdefs.h. */
19231
#include <resolv.h>
19243
rm -f conftest.$ac_objext conftest$ac_exeext
19244
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19245
(eval $ac_link) 2>&5
19247
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19248
(exit $ac_status); } &&
19249
{ ac_try='test -s conftest$ac_exeext'
19250
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19251
(eval $ac_try) 2>&5
19253
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19254
(exit $ac_status); }; }; then
19255
LIBRESOLV="-lresolv"
19256
X_EXTRA_LIBS="$X_EXTRA_LIBS $LIBRESOLV"
19258
cat >>confdefs.h <<\_ACEOF
19259
#define HAVE_RES_INIT 1
19264
echo "$as_me: failed program was:" >&5
19265
sed 's/^/| /' conftest.$ac_ext >&5
19268
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19269
LIBS=$kde_libs_safe
19277
LIBSOCKET="$X_EXTRA_LIBS"
19281
echo "$as_me:$LINENO: checking for killpg in -lucb" >&5
19282
echo $ECHO_N "checking for killpg in -lucb... $ECHO_C" >&6
19283
if test "${ac_cv_lib_ucb_killpg+set}" = set; then
19284
echo $ECHO_N "(cached) $ECHO_C" >&6
19286
ac_check_lib_save_LIBS=$LIBS
19288
cat >conftest.$ac_ext <<_ACEOF
19289
#line $LINENO "configure"
19292
cat confdefs.h >>conftest.$ac_ext
19293
cat >>conftest.$ac_ext <<_ACEOF
19294
/* end confdefs.h. */
19296
/* Override any gcc2 internal prototype to avoid an error. */
19300
/* We use char because int might match the return type of a gcc2
19301
builtin and then its argument prototype would still apply. */
19311
rm -f conftest.$ac_objext conftest$ac_exeext
19312
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19313
(eval $ac_link) 2>&5
19315
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19316
(exit $ac_status); } &&
19317
{ ac_try='test -s conftest$ac_exeext'
19318
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19319
(eval $ac_try) 2>&5
19321
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19322
(exit $ac_status); }; }; then
19323
ac_cv_lib_ucb_killpg=yes
19325
echo "$as_me: failed program was:" >&5
19326
sed 's/^/| /' conftest.$ac_ext >&5
19328
ac_cv_lib_ucb_killpg=no
19330
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19331
LIBS=$ac_check_lib_save_LIBS
19333
echo "$as_me:$LINENO: result: $ac_cv_lib_ucb_killpg" >&5
19334
echo "${ECHO_T}$ac_cv_lib_ucb_killpg" >&6
19335
if test $ac_cv_lib_ucb_killpg = yes; then
19340
case $host in *-*-lynxos* )
19341
echo "$as_me:$LINENO: checking LynxOS header file wrappers" >&5
19342
echo $ECHO_N "checking LynxOS header file wrappers... $ECHO_C" >&6
19343
CFLAGS="$CFLAGS -D__NO_INCLUDE_WARN__"
19344
echo "$as_me:$LINENO: result: disabled" >&5
19345
echo "${ECHO_T}disabled" >&6
19346
echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
19347
echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
19348
if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
19349
echo $ECHO_N "(cached) $ECHO_C" >&6
19351
ac_check_lib_save_LIBS=$LIBS
19353
cat >conftest.$ac_ext <<_ACEOF
19354
#line $LINENO "configure"
19357
cat confdefs.h >>conftest.$ac_ext
19358
cat >>conftest.$ac_ext <<_ACEOF
19359
/* end confdefs.h. */
19361
/* Override any gcc2 internal prototype to avoid an error. */
19365
/* We use char because int might match the return type of a gcc2
19366
builtin and then its argument prototype would still apply. */
19367
char gethostbyname ();
19376
rm -f conftest.$ac_objext conftest$ac_exeext
19377
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19378
(eval $ac_link) 2>&5
19380
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19381
(exit $ac_status); } &&
19382
{ ac_try='test -s conftest$ac_exeext'
19383
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19384
(eval $ac_try) 2>&5
19386
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19387
(exit $ac_status); }; }; then
19388
ac_cv_lib_bsd_gethostbyname=yes
19390
echo "$as_me: failed program was:" >&5
19391
sed 's/^/| /' conftest.$ac_ext >&5
19393
ac_cv_lib_bsd_gethostbyname=no
19395
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19396
LIBS=$ac_check_lib_save_LIBS
19398
echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
19399
echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
19400
if test $ac_cv_lib_bsd_gethostbyname = yes; then
19406
echo "$as_me:$LINENO: checking for int" >&5
19407
echo $ECHO_N "checking for int... $ECHO_C" >&6
19408
if test "${ac_cv_type_int+set}" = set; then
19409
echo $ECHO_N "(cached) $ECHO_C" >&6
19411
cat >conftest.$ac_ext <<_ACEOF
19412
#line $LINENO "configure"
19415
cat confdefs.h >>conftest.$ac_ext
19416
cat >>conftest.$ac_ext <<_ACEOF
19417
/* end confdefs.h. */
19418
$ac_includes_default
19430
rm -f conftest.$ac_objext
19431
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19432
(eval $ac_compile) 2>&5
19434
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19435
(exit $ac_status); } &&
19436
{ ac_try='test -s conftest.$ac_objext'
19437
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19438
(eval $ac_try) 2>&5
19440
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19441
(exit $ac_status); }; }; then
19444
echo "$as_me: failed program was:" >&5
19445
sed 's/^/| /' conftest.$ac_ext >&5
19449
rm -f conftest.$ac_objext conftest.$ac_ext
19451
echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
19452
echo "${ECHO_T}$ac_cv_type_int" >&6
19454
echo "$as_me:$LINENO: checking size of int" >&5
19455
echo $ECHO_N "checking size of int... $ECHO_C" >&6
19456
if test "${ac_cv_sizeof_int+set}" = set; then
19457
echo $ECHO_N "(cached) $ECHO_C" >&6
19459
if test "$ac_cv_type_int" = yes; then
19460
# The cast to unsigned long works around a bug in the HP C Compiler
19461
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19462
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19463
# This bug is HP SR number 8606223364.
19464
if test "$cross_compiling" = yes; then
19465
# Depending upon the size, compute the lo and hi bounds.
19466
cat >conftest.$ac_ext <<_ACEOF
19467
#line $LINENO "configure"
19470
cat confdefs.h >>conftest.$ac_ext
19471
cat >>conftest.$ac_ext <<_ACEOF
19472
/* end confdefs.h. */
19473
$ac_includes_default
19477
static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
19484
rm -f conftest.$ac_objext
19485
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19486
(eval $ac_compile) 2>&5
19488
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19489
(exit $ac_status); } &&
19490
{ ac_try='test -s conftest.$ac_objext'
19491
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19492
(eval $ac_try) 2>&5
19494
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19495
(exit $ac_status); }; }; then
19498
cat >conftest.$ac_ext <<_ACEOF
19499
#line $LINENO "configure"
19502
cat confdefs.h >>conftest.$ac_ext
19503
cat >>conftest.$ac_ext <<_ACEOF
19504
/* end confdefs.h. */
19505
$ac_includes_default
19509
static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
19516
rm -f conftest.$ac_objext
19517
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19518
(eval $ac_compile) 2>&5
19520
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19521
(exit $ac_status); } &&
19522
{ ac_try='test -s conftest.$ac_objext'
19523
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19524
(eval $ac_try) 2>&5
19526
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19527
(exit $ac_status); }; }; then
19528
ac_hi=$ac_mid; break
19530
echo "$as_me: failed program was:" >&5
19531
sed 's/^/| /' conftest.$ac_ext >&5
19533
ac_lo=`expr $ac_mid + 1`
19534
if test $ac_lo -le $ac_mid; then
19538
ac_mid=`expr 2 '*' $ac_mid + 1`
19540
rm -f conftest.$ac_objext conftest.$ac_ext
19543
echo "$as_me: failed program was:" >&5
19544
sed 's/^/| /' conftest.$ac_ext >&5
19546
cat >conftest.$ac_ext <<_ACEOF
19547
#line $LINENO "configure"
19550
cat confdefs.h >>conftest.$ac_ext
19551
cat >>conftest.$ac_ext <<_ACEOF
19552
/* end confdefs.h. */
19553
$ac_includes_default
19557
static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
19564
rm -f conftest.$ac_objext
19565
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19566
(eval $ac_compile) 2>&5
19568
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19569
(exit $ac_status); } &&
19570
{ ac_try='test -s conftest.$ac_objext'
19571
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19572
(eval $ac_try) 2>&5
19574
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19575
(exit $ac_status); }; }; then
19578
cat >conftest.$ac_ext <<_ACEOF
19579
#line $LINENO "configure"
19582
cat confdefs.h >>conftest.$ac_ext
19583
cat >>conftest.$ac_ext <<_ACEOF
19584
/* end confdefs.h. */
19585
$ac_includes_default
19589
static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
19596
rm -f conftest.$ac_objext
19597
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19598
(eval $ac_compile) 2>&5
19600
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19601
(exit $ac_status); } &&
19602
{ ac_try='test -s conftest.$ac_objext'
19603
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19604
(eval $ac_try) 2>&5
19606
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19607
(exit $ac_status); }; }; then
19608
ac_lo=$ac_mid; break
19610
echo "$as_me: failed program was:" >&5
19611
sed 's/^/| /' conftest.$ac_ext >&5
19613
ac_hi=`expr '(' $ac_mid ')' - 1`
19614
if test $ac_mid -le $ac_hi; then
19618
ac_mid=`expr 2 '*' $ac_mid`
19620
rm -f conftest.$ac_objext conftest.$ac_ext
19623
echo "$as_me: failed program was:" >&5
19624
sed 's/^/| /' conftest.$ac_ext >&5
19628
rm -f conftest.$ac_objext conftest.$ac_ext
19630
rm -f conftest.$ac_objext conftest.$ac_ext
19631
# Binary search between lo and hi bounds.
19632
while test "x$ac_lo" != "x$ac_hi"; do
19633
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19634
cat >conftest.$ac_ext <<_ACEOF
19635
#line $LINENO "configure"
19638
cat confdefs.h >>conftest.$ac_ext
19639
cat >>conftest.$ac_ext <<_ACEOF
19640
/* end confdefs.h. */
19641
$ac_includes_default
19645
static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
19652
rm -f conftest.$ac_objext
19653
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19654
(eval $ac_compile) 2>&5
19656
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19657
(exit $ac_status); } &&
19658
{ ac_try='test -s conftest.$ac_objext'
19659
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19660
(eval $ac_try) 2>&5
19662
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19663
(exit $ac_status); }; }; then
19666
echo "$as_me: failed program was:" >&5
19667
sed 's/^/| /' conftest.$ac_ext >&5
19669
ac_lo=`expr '(' $ac_mid ')' + 1`
19671
rm -f conftest.$ac_objext conftest.$ac_ext
19674
?*) ac_cv_sizeof_int=$ac_lo;;
19675
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
19676
See \`config.log' for more details." >&5
19677
echo "$as_me: error: cannot compute sizeof (int), 77
19678
See \`config.log' for more details." >&2;}
19679
{ (exit 1); exit 1; }; } ;;
19682
if test "$cross_compiling" = yes; then
19683
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19684
See \`config.log' for more details." >&5
19685
echo "$as_me: error: cannot run test program while cross compiling
19686
See \`config.log' for more details." >&2;}
19687
{ (exit 1); exit 1; }; }
19689
cat >conftest.$ac_ext <<_ACEOF
19690
#line $LINENO "configure"
19693
cat confdefs.h >>conftest.$ac_ext
19694
cat >>conftest.$ac_ext <<_ACEOF
19695
/* end confdefs.h. */
19696
$ac_includes_default
19697
long longval () { return (long) (sizeof (int)); }
19698
unsigned long ulongval () { return (long) (sizeof (int)); }
19700
#include <stdlib.h>
19705
FILE *f = fopen ("conftest.val", "w");
19708
if (((long) (sizeof (int))) < 0)
19710
long i = longval ();
19711
if (i != ((long) (sizeof (int))))
19713
fprintf (f, "%ld\n", i);
19717
unsigned long i = ulongval ();
19718
if (i != ((long) (sizeof (int))))
19720
fprintf (f, "%lu\n", i);
19722
exit (ferror (f) || fclose (f) != 0);
19728
rm -f conftest$ac_exeext
19729
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19730
(eval $ac_link) 2>&5
19732
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19733
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19734
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19735
(eval $ac_try) 2>&5
19737
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19738
(exit $ac_status); }; }; then
19739
ac_cv_sizeof_int=`cat conftest.val`
19741
echo "$as_me: program exited with status $ac_status" >&5
19742
echo "$as_me: failed program was:" >&5
19743
sed 's/^/| /' conftest.$ac_ext >&5
19745
( exit $ac_status )
19746
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
19747
See \`config.log' for more details." >&5
19748
echo "$as_me: error: cannot compute sizeof (int), 77
19749
See \`config.log' for more details." >&2;}
19750
{ (exit 1); exit 1; }; }
19752
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19760
echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
19761
echo "${ECHO_T}$ac_cv_sizeof_int" >&6
19762
cat >>confdefs.h <<_ACEOF
19763
#define SIZEOF_INT $ac_cv_sizeof_int
19766
echo "$as_me:$LINENO: checking for long" >&5
19767
echo $ECHO_N "checking for long... $ECHO_C" >&6
19768
if test "${ac_cv_type_long+set}" = set; then
19769
echo $ECHO_N "(cached) $ECHO_C" >&6
19771
cat >conftest.$ac_ext <<_ACEOF
19772
#line $LINENO "configure"
19775
cat confdefs.h >>conftest.$ac_ext
19776
cat >>conftest.$ac_ext <<_ACEOF
19777
/* end confdefs.h. */
19778
$ac_includes_default
19790
rm -f conftest.$ac_objext
19791
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19792
(eval $ac_compile) 2>&5
19794
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19795
(exit $ac_status); } &&
19796
{ ac_try='test -s conftest.$ac_objext'
19797
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19798
(eval $ac_try) 2>&5
19800
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19801
(exit $ac_status); }; }; then
19802
ac_cv_type_long=yes
19804
echo "$as_me: failed program was:" >&5
19805
sed 's/^/| /' conftest.$ac_ext >&5
19809
rm -f conftest.$ac_objext conftest.$ac_ext
19811
echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
19812
echo "${ECHO_T}$ac_cv_type_long" >&6
19814
echo "$as_me:$LINENO: checking size of long" >&5
19815
echo $ECHO_N "checking size of long... $ECHO_C" >&6
19816
if test "${ac_cv_sizeof_long+set}" = set; then
19817
echo $ECHO_N "(cached) $ECHO_C" >&6
19819
if test "$ac_cv_type_long" = yes; then
19820
# The cast to unsigned long works around a bug in the HP C Compiler
19821
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19822
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19823
# This bug is HP SR number 8606223364.
19824
if test "$cross_compiling" = yes; then
19825
# Depending upon the size, compute the lo and hi bounds.
19826
cat >conftest.$ac_ext <<_ACEOF
19827
#line $LINENO "configure"
19830
cat confdefs.h >>conftest.$ac_ext
19831
cat >>conftest.$ac_ext <<_ACEOF
19832
/* end confdefs.h. */
19833
$ac_includes_default
19837
static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
19844
rm -f conftest.$ac_objext
19845
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19846
(eval $ac_compile) 2>&5
19848
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19849
(exit $ac_status); } &&
19850
{ ac_try='test -s conftest.$ac_objext'
19851
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19852
(eval $ac_try) 2>&5
19854
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19855
(exit $ac_status); }; }; then
19858
cat >conftest.$ac_ext <<_ACEOF
19859
#line $LINENO "configure"
19862
cat confdefs.h >>conftest.$ac_ext
19863
cat >>conftest.$ac_ext <<_ACEOF
19864
/* end confdefs.h. */
19865
$ac_includes_default
19869
static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
19876
rm -f conftest.$ac_objext
19877
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19878
(eval $ac_compile) 2>&5
19880
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19881
(exit $ac_status); } &&
19882
{ ac_try='test -s conftest.$ac_objext'
19883
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19884
(eval $ac_try) 2>&5
19886
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19887
(exit $ac_status); }; }; then
19888
ac_hi=$ac_mid; break
19890
echo "$as_me: failed program was:" >&5
19891
sed 's/^/| /' conftest.$ac_ext >&5
19893
ac_lo=`expr $ac_mid + 1`
19894
if test $ac_lo -le $ac_mid; then
19898
ac_mid=`expr 2 '*' $ac_mid + 1`
19900
rm -f conftest.$ac_objext conftest.$ac_ext
19903
echo "$as_me: failed program was:" >&5
19904
sed 's/^/| /' conftest.$ac_ext >&5
19906
cat >conftest.$ac_ext <<_ACEOF
19907
#line $LINENO "configure"
19910
cat confdefs.h >>conftest.$ac_ext
19911
cat >>conftest.$ac_ext <<_ACEOF
19912
/* end confdefs.h. */
19913
$ac_includes_default
19917
static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
19924
rm -f conftest.$ac_objext
19925
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19926
(eval $ac_compile) 2>&5
19928
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19929
(exit $ac_status); } &&
19930
{ ac_try='test -s conftest.$ac_objext'
19931
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19932
(eval $ac_try) 2>&5
19934
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19935
(exit $ac_status); }; }; then
19938
cat >conftest.$ac_ext <<_ACEOF
19939
#line $LINENO "configure"
19942
cat confdefs.h >>conftest.$ac_ext
19943
cat >>conftest.$ac_ext <<_ACEOF
19944
/* end confdefs.h. */
19945
$ac_includes_default
19949
static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
19956
rm -f conftest.$ac_objext
19957
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19958
(eval $ac_compile) 2>&5
19960
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19961
(exit $ac_status); } &&
19962
{ ac_try='test -s conftest.$ac_objext'
19963
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19964
(eval $ac_try) 2>&5
19966
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19967
(exit $ac_status); }; }; then
19968
ac_lo=$ac_mid; break
19970
echo "$as_me: failed program was:" >&5
19971
sed 's/^/| /' conftest.$ac_ext >&5
19973
ac_hi=`expr '(' $ac_mid ')' - 1`
19974
if test $ac_mid -le $ac_hi; then
19978
ac_mid=`expr 2 '*' $ac_mid`
19980
rm -f conftest.$ac_objext conftest.$ac_ext
19983
echo "$as_me: failed program was:" >&5
19984
sed 's/^/| /' conftest.$ac_ext >&5
19988
rm -f conftest.$ac_objext conftest.$ac_ext
19990
rm -f conftest.$ac_objext conftest.$ac_ext
19991
# Binary search between lo and hi bounds.
19992
while test "x$ac_lo" != "x$ac_hi"; do
19993
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19994
cat >conftest.$ac_ext <<_ACEOF
19995
#line $LINENO "configure"
19998
cat confdefs.h >>conftest.$ac_ext
19999
cat >>conftest.$ac_ext <<_ACEOF
20000
/* end confdefs.h. */
20001
$ac_includes_default
20005
static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
20012
rm -f conftest.$ac_objext
20013
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20014
(eval $ac_compile) 2>&5
20016
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20017
(exit $ac_status); } &&
20018
{ ac_try='test -s conftest.$ac_objext'
20019
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20020
(eval $ac_try) 2>&5
20022
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20023
(exit $ac_status); }; }; then
20026
echo "$as_me: failed program was:" >&5
20027
sed 's/^/| /' conftest.$ac_ext >&5
20029
ac_lo=`expr '(' $ac_mid ')' + 1`
20031
rm -f conftest.$ac_objext conftest.$ac_ext
20034
?*) ac_cv_sizeof_long=$ac_lo;;
20035
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
20036
See \`config.log' for more details." >&5
20037
echo "$as_me: error: cannot compute sizeof (long), 77
20038
See \`config.log' for more details." >&2;}
20039
{ (exit 1); exit 1; }; } ;;
20042
if test "$cross_compiling" = yes; then
20043
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20044
See \`config.log' for more details." >&5
20045
echo "$as_me: error: cannot run test program while cross compiling
20046
See \`config.log' for more details." >&2;}
20047
{ (exit 1); exit 1; }; }
20049
cat >conftest.$ac_ext <<_ACEOF
20050
#line $LINENO "configure"
20053
cat confdefs.h >>conftest.$ac_ext
20054
cat >>conftest.$ac_ext <<_ACEOF
20055
/* end confdefs.h. */
20056
$ac_includes_default
20057
long longval () { return (long) (sizeof (long)); }
20058
unsigned long ulongval () { return (long) (sizeof (long)); }
20060
#include <stdlib.h>
20065
FILE *f = fopen ("conftest.val", "w");
20068
if (((long) (sizeof (long))) < 0)
20070
long i = longval ();
20071
if (i != ((long) (sizeof (long))))
20073
fprintf (f, "%ld\n", i);
20077
unsigned long i = ulongval ();
20078
if (i != ((long) (sizeof (long))))
20080
fprintf (f, "%lu\n", i);
20082
exit (ferror (f) || fclose (f) != 0);
20088
rm -f conftest$ac_exeext
20089
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20090
(eval $ac_link) 2>&5
20092
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20093
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20094
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20095
(eval $ac_try) 2>&5
20097
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20098
(exit $ac_status); }; }; then
20099
ac_cv_sizeof_long=`cat conftest.val`
20101
echo "$as_me: program exited with status $ac_status" >&5
20102
echo "$as_me: failed program was:" >&5
20103
sed 's/^/| /' conftest.$ac_ext >&5
20105
( exit $ac_status )
20106
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
20107
See \`config.log' for more details." >&5
20108
echo "$as_me: error: cannot compute sizeof (long), 77
20109
See \`config.log' for more details." >&2;}
20110
{ (exit 1); exit 1; }; }
20112
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20117
ac_cv_sizeof_long=0
20120
echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
20121
echo "${ECHO_T}$ac_cv_sizeof_long" >&6
20122
cat >>confdefs.h <<_ACEOF
20123
#define SIZEOF_LONG $ac_cv_sizeof_long
20126
echo "$as_me:$LINENO: checking for char *" >&5
20127
echo $ECHO_N "checking for char *... $ECHO_C" >&6
20128
if test "${ac_cv_type_char_p+set}" = set; then
20129
echo $ECHO_N "(cached) $ECHO_C" >&6
20131
cat >conftest.$ac_ext <<_ACEOF
20132
#line $LINENO "configure"
20135
cat confdefs.h >>conftest.$ac_ext
20136
cat >>conftest.$ac_ext <<_ACEOF
20137
/* end confdefs.h. */
20138
$ac_includes_default
20144
if (sizeof (char *))
20150
rm -f conftest.$ac_objext
20151
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20152
(eval $ac_compile) 2>&5
20154
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20155
(exit $ac_status); } &&
20156
{ ac_try='test -s conftest.$ac_objext'
20157
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20158
(eval $ac_try) 2>&5
20160
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20161
(exit $ac_status); }; }; then
20162
ac_cv_type_char_p=yes
20164
echo "$as_me: failed program was:" >&5
20165
sed 's/^/| /' conftest.$ac_ext >&5
20167
ac_cv_type_char_p=no
20169
rm -f conftest.$ac_objext conftest.$ac_ext
20171
echo "$as_me:$LINENO: result: $ac_cv_type_char_p" >&5
20172
echo "${ECHO_T}$ac_cv_type_char_p" >&6
20174
echo "$as_me:$LINENO: checking size of char *" >&5
20175
echo $ECHO_N "checking size of char *... $ECHO_C" >&6
20176
if test "${ac_cv_sizeof_char_p+set}" = set; then
20177
echo $ECHO_N "(cached) $ECHO_C" >&6
20179
if test "$ac_cv_type_char_p" = yes; then
20180
# The cast to unsigned long works around a bug in the HP C Compiler
20181
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20182
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20183
# This bug is HP SR number 8606223364.
20184
if test "$cross_compiling" = yes; then
20185
# Depending upon the size, compute the lo and hi bounds.
20186
cat >conftest.$ac_ext <<_ACEOF
20187
#line $LINENO "configure"
20190
cat confdefs.h >>conftest.$ac_ext
20191
cat >>conftest.$ac_ext <<_ACEOF
20192
/* end confdefs.h. */
20193
$ac_includes_default
20197
static int test_array [1 - 2 * !(((long) (sizeof (char *))) >= 0)];
20204
rm -f conftest.$ac_objext
20205
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20206
(eval $ac_compile) 2>&5
20208
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20209
(exit $ac_status); } &&
20210
{ ac_try='test -s conftest.$ac_objext'
20211
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20212
(eval $ac_try) 2>&5
20214
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20215
(exit $ac_status); }; }; then
20218
cat >conftest.$ac_ext <<_ACEOF
20219
#line $LINENO "configure"
20222
cat confdefs.h >>conftest.$ac_ext
20223
cat >>conftest.$ac_ext <<_ACEOF
20224
/* end confdefs.h. */
20225
$ac_includes_default
20229
static int test_array [1 - 2 * !(((long) (sizeof (char *))) <= $ac_mid)];
20236
rm -f conftest.$ac_objext
20237
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20238
(eval $ac_compile) 2>&5
20240
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20241
(exit $ac_status); } &&
20242
{ ac_try='test -s conftest.$ac_objext'
20243
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20244
(eval $ac_try) 2>&5
20246
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20247
(exit $ac_status); }; }; then
20248
ac_hi=$ac_mid; break
20250
echo "$as_me: failed program was:" >&5
20251
sed 's/^/| /' conftest.$ac_ext >&5
20253
ac_lo=`expr $ac_mid + 1`
20254
if test $ac_lo -le $ac_mid; then
20258
ac_mid=`expr 2 '*' $ac_mid + 1`
20260
rm -f conftest.$ac_objext conftest.$ac_ext
20263
echo "$as_me: failed program was:" >&5
20264
sed 's/^/| /' conftest.$ac_ext >&5
20266
cat >conftest.$ac_ext <<_ACEOF
20267
#line $LINENO "configure"
20270
cat confdefs.h >>conftest.$ac_ext
20271
cat >>conftest.$ac_ext <<_ACEOF
20272
/* end confdefs.h. */
20273
$ac_includes_default
20277
static int test_array [1 - 2 * !(((long) (sizeof (char *))) < 0)];
20284
rm -f conftest.$ac_objext
20285
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20286
(eval $ac_compile) 2>&5
20288
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20289
(exit $ac_status); } &&
20290
{ ac_try='test -s conftest.$ac_objext'
20291
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20292
(eval $ac_try) 2>&5
20294
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20295
(exit $ac_status); }; }; then
20298
cat >conftest.$ac_ext <<_ACEOF
20299
#line $LINENO "configure"
20302
cat confdefs.h >>conftest.$ac_ext
20303
cat >>conftest.$ac_ext <<_ACEOF
20304
/* end confdefs.h. */
20305
$ac_includes_default
20309
static int test_array [1 - 2 * !(((long) (sizeof (char *))) >= $ac_mid)];
20316
rm -f conftest.$ac_objext
20317
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20318
(eval $ac_compile) 2>&5
20320
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20321
(exit $ac_status); } &&
20322
{ ac_try='test -s conftest.$ac_objext'
20323
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20324
(eval $ac_try) 2>&5
20326
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20327
(exit $ac_status); }; }; then
20328
ac_lo=$ac_mid; break
20330
echo "$as_me: failed program was:" >&5
20331
sed 's/^/| /' conftest.$ac_ext >&5
20333
ac_hi=`expr '(' $ac_mid ')' - 1`
20334
if test $ac_mid -le $ac_hi; then
20338
ac_mid=`expr 2 '*' $ac_mid`
20340
rm -f conftest.$ac_objext conftest.$ac_ext
20343
echo "$as_me: failed program was:" >&5
20344
sed 's/^/| /' conftest.$ac_ext >&5
20348
rm -f conftest.$ac_objext conftest.$ac_ext
20350
rm -f conftest.$ac_objext conftest.$ac_ext
20351
# Binary search between lo and hi bounds.
20352
while test "x$ac_lo" != "x$ac_hi"; do
20353
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20354
cat >conftest.$ac_ext <<_ACEOF
20355
#line $LINENO "configure"
20358
cat confdefs.h >>conftest.$ac_ext
20359
cat >>conftest.$ac_ext <<_ACEOF
20360
/* end confdefs.h. */
20361
$ac_includes_default
20365
static int test_array [1 - 2 * !(((long) (sizeof (char *))) <= $ac_mid)];
20372
rm -f conftest.$ac_objext
20373
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20374
(eval $ac_compile) 2>&5
20376
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20377
(exit $ac_status); } &&
20378
{ ac_try='test -s conftest.$ac_objext'
20379
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20380
(eval $ac_try) 2>&5
20382
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20383
(exit $ac_status); }; }; then
20386
echo "$as_me: failed program was:" >&5
20387
sed 's/^/| /' conftest.$ac_ext >&5
20389
ac_lo=`expr '(' $ac_mid ')' + 1`
20391
rm -f conftest.$ac_objext conftest.$ac_ext
20394
?*) ac_cv_sizeof_char_p=$ac_lo;;
20395
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char *), 77
20396
See \`config.log' for more details." >&5
20397
echo "$as_me: error: cannot compute sizeof (char *), 77
20398
See \`config.log' for more details." >&2;}
20399
{ (exit 1); exit 1; }; } ;;
20402
if test "$cross_compiling" = yes; then
20403
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20404
See \`config.log' for more details." >&5
20405
echo "$as_me: error: cannot run test program while cross compiling
20406
See \`config.log' for more details." >&2;}
20407
{ (exit 1); exit 1; }; }
20409
cat >conftest.$ac_ext <<_ACEOF
20410
#line $LINENO "configure"
20413
cat confdefs.h >>conftest.$ac_ext
20414
cat >>conftest.$ac_ext <<_ACEOF
20415
/* end confdefs.h. */
20416
$ac_includes_default
20417
long longval () { return (long) (sizeof (char *)); }
20418
unsigned long ulongval () { return (long) (sizeof (char *)); }
20420
#include <stdlib.h>
20425
FILE *f = fopen ("conftest.val", "w");
20428
if (((long) (sizeof (char *))) < 0)
20430
long i = longval ();
20431
if (i != ((long) (sizeof (char *))))
20433
fprintf (f, "%ld\n", i);
20437
unsigned long i = ulongval ();
20438
if (i != ((long) (sizeof (char *))))
20440
fprintf (f, "%lu\n", i);
20442
exit (ferror (f) || fclose (f) != 0);
20448
rm -f conftest$ac_exeext
20449
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20450
(eval $ac_link) 2>&5
20452
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20453
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20454
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20455
(eval $ac_try) 2>&5
20457
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20458
(exit $ac_status); }; }; then
20459
ac_cv_sizeof_char_p=`cat conftest.val`
20461
echo "$as_me: program exited with status $ac_status" >&5
20462
echo "$as_me: failed program was:" >&5
20463
sed 's/^/| /' conftest.$ac_ext >&5
20465
( exit $ac_status )
20466
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char *), 77
20467
See \`config.log' for more details." >&5
20468
echo "$as_me: error: cannot compute sizeof (char *), 77
20469
See \`config.log' for more details." >&2;}
20470
{ (exit 1); exit 1; }; }
20472
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20477
ac_cv_sizeof_char_p=0
20480
echo "$as_me:$LINENO: result: $ac_cv_sizeof_char_p" >&5
20481
echo "${ECHO_T}$ac_cv_sizeof_char_p" >&6
20482
cat >>confdefs.h <<_ACEOF
20483
#define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
20486
echo "$as_me:$LINENO: checking for char" >&5
20487
echo $ECHO_N "checking for char... $ECHO_C" >&6
20488
if test "${ac_cv_type_char+set}" = set; then
20489
echo $ECHO_N "(cached) $ECHO_C" >&6
20491
cat >conftest.$ac_ext <<_ACEOF
20492
#line $LINENO "configure"
20495
cat confdefs.h >>conftest.$ac_ext
20496
cat >>conftest.$ac_ext <<_ACEOF
20497
/* end confdefs.h. */
20498
$ac_includes_default
20510
rm -f conftest.$ac_objext
20511
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20512
(eval $ac_compile) 2>&5
20514
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20515
(exit $ac_status); } &&
20516
{ ac_try='test -s conftest.$ac_objext'
20517
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20518
(eval $ac_try) 2>&5
20520
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20521
(exit $ac_status); }; }; then
20522
ac_cv_type_char=yes
20524
echo "$as_me: failed program was:" >&5
20525
sed 's/^/| /' conftest.$ac_ext >&5
20529
rm -f conftest.$ac_objext conftest.$ac_ext
20531
echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
20532
echo "${ECHO_T}$ac_cv_type_char" >&6
20534
echo "$as_me:$LINENO: checking size of char" >&5
20535
echo $ECHO_N "checking size of char... $ECHO_C" >&6
20536
if test "${ac_cv_sizeof_char+set}" = set; then
20537
echo $ECHO_N "(cached) $ECHO_C" >&6
20539
if test "$ac_cv_type_char" = yes; then
20540
# The cast to unsigned long works around a bug in the HP C Compiler
20541
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20542
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20543
# This bug is HP SR number 8606223364.
20544
if test "$cross_compiling" = yes; then
20545
# Depending upon the size, compute the lo and hi bounds.
20546
cat >conftest.$ac_ext <<_ACEOF
20547
#line $LINENO "configure"
20550
cat confdefs.h >>conftest.$ac_ext
20551
cat >>conftest.$ac_ext <<_ACEOF
20552
/* end confdefs.h. */
20553
$ac_includes_default
20557
static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
20564
rm -f conftest.$ac_objext
20565
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20566
(eval $ac_compile) 2>&5
20568
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20569
(exit $ac_status); } &&
20570
{ ac_try='test -s conftest.$ac_objext'
20571
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20572
(eval $ac_try) 2>&5
20574
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20575
(exit $ac_status); }; }; then
20578
cat >conftest.$ac_ext <<_ACEOF
20579
#line $LINENO "configure"
20582
cat confdefs.h >>conftest.$ac_ext
20583
cat >>conftest.$ac_ext <<_ACEOF
20584
/* end confdefs.h. */
20585
$ac_includes_default
20589
static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
20596
rm -f conftest.$ac_objext
20597
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20598
(eval $ac_compile) 2>&5
20600
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20601
(exit $ac_status); } &&
20602
{ ac_try='test -s conftest.$ac_objext'
20603
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20604
(eval $ac_try) 2>&5
20606
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20607
(exit $ac_status); }; }; then
20608
ac_hi=$ac_mid; break
20610
echo "$as_me: failed program was:" >&5
20611
sed 's/^/| /' conftest.$ac_ext >&5
20613
ac_lo=`expr $ac_mid + 1`
20614
if test $ac_lo -le $ac_mid; then
20618
ac_mid=`expr 2 '*' $ac_mid + 1`
20620
rm -f conftest.$ac_objext conftest.$ac_ext
20623
echo "$as_me: failed program was:" >&5
20624
sed 's/^/| /' conftest.$ac_ext >&5
20626
cat >conftest.$ac_ext <<_ACEOF
20627
#line $LINENO "configure"
20630
cat confdefs.h >>conftest.$ac_ext
20631
cat >>conftest.$ac_ext <<_ACEOF
20632
/* end confdefs.h. */
20633
$ac_includes_default
20637
static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
20644
rm -f conftest.$ac_objext
20645
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20646
(eval $ac_compile) 2>&5
20648
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20649
(exit $ac_status); } &&
20650
{ ac_try='test -s conftest.$ac_objext'
20651
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20652
(eval $ac_try) 2>&5
20654
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20655
(exit $ac_status); }; }; then
20658
cat >conftest.$ac_ext <<_ACEOF
20659
#line $LINENO "configure"
20662
cat confdefs.h >>conftest.$ac_ext
20663
cat >>conftest.$ac_ext <<_ACEOF
20664
/* end confdefs.h. */
20665
$ac_includes_default
20669
static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
20676
rm -f conftest.$ac_objext
20677
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20678
(eval $ac_compile) 2>&5
20680
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20681
(exit $ac_status); } &&
20682
{ ac_try='test -s conftest.$ac_objext'
20683
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20684
(eval $ac_try) 2>&5
20686
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20687
(exit $ac_status); }; }; then
20688
ac_lo=$ac_mid; break
20690
echo "$as_me: failed program was:" >&5
20691
sed 's/^/| /' conftest.$ac_ext >&5
20693
ac_hi=`expr '(' $ac_mid ')' - 1`
20694
if test $ac_mid -le $ac_hi; then
20698
ac_mid=`expr 2 '*' $ac_mid`
20700
rm -f conftest.$ac_objext conftest.$ac_ext
20703
echo "$as_me: failed program was:" >&5
20704
sed 's/^/| /' conftest.$ac_ext >&5
20708
rm -f conftest.$ac_objext conftest.$ac_ext
20710
rm -f conftest.$ac_objext conftest.$ac_ext
20711
# Binary search between lo and hi bounds.
20712
while test "x$ac_lo" != "x$ac_hi"; do
20713
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20714
cat >conftest.$ac_ext <<_ACEOF
20715
#line $LINENO "configure"
20718
cat confdefs.h >>conftest.$ac_ext
20719
cat >>conftest.$ac_ext <<_ACEOF
20720
/* end confdefs.h. */
20721
$ac_includes_default
20725
static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
20732
rm -f conftest.$ac_objext
20733
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20734
(eval $ac_compile) 2>&5
20736
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20737
(exit $ac_status); } &&
20738
{ ac_try='test -s conftest.$ac_objext'
20739
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20740
(eval $ac_try) 2>&5
20742
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20743
(exit $ac_status); }; }; then
20746
echo "$as_me: failed program was:" >&5
20747
sed 's/^/| /' conftest.$ac_ext >&5
20749
ac_lo=`expr '(' $ac_mid ')' + 1`
20751
rm -f conftest.$ac_objext conftest.$ac_ext
20754
?*) ac_cv_sizeof_char=$ac_lo;;
20755
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
20756
See \`config.log' for more details." >&5
20757
echo "$as_me: error: cannot compute sizeof (char), 77
20758
See \`config.log' for more details." >&2;}
20759
{ (exit 1); exit 1; }; } ;;
20762
if test "$cross_compiling" = yes; then
20763
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20764
See \`config.log' for more details." >&5
20765
echo "$as_me: error: cannot run test program while cross compiling
20766
See \`config.log' for more details." >&2;}
20767
{ (exit 1); exit 1; }; }
20769
cat >conftest.$ac_ext <<_ACEOF
20770
#line $LINENO "configure"
20773
cat confdefs.h >>conftest.$ac_ext
20774
cat >>conftest.$ac_ext <<_ACEOF
20775
/* end confdefs.h. */
20776
$ac_includes_default
20777
long longval () { return (long) (sizeof (char)); }
20778
unsigned long ulongval () { return (long) (sizeof (char)); }
20780
#include <stdlib.h>
20785
FILE *f = fopen ("conftest.val", "w");
20788
if (((long) (sizeof (char))) < 0)
20790
long i = longval ();
20791
if (i != ((long) (sizeof (char))))
20793
fprintf (f, "%ld\n", i);
20797
unsigned long i = ulongval ();
20798
if (i != ((long) (sizeof (char))))
20800
fprintf (f, "%lu\n", i);
20802
exit (ferror (f) || fclose (f) != 0);
20808
rm -f conftest$ac_exeext
20809
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20810
(eval $ac_link) 2>&5
20812
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20813
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20814
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20815
(eval $ac_try) 2>&5
20817
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20818
(exit $ac_status); }; }; then
20819
ac_cv_sizeof_char=`cat conftest.val`
20821
echo "$as_me: program exited with status $ac_status" >&5
20822
echo "$as_me: failed program was:" >&5
20823
sed 's/^/| /' conftest.$ac_ext >&5
20825
( exit $ac_status )
20826
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
20827
See \`config.log' for more details." >&5
20828
echo "$as_me: error: cannot compute sizeof (char), 77
20829
See \`config.log' for more details." >&2;}
20830
{ (exit 1); exit 1; }; }
20832
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20837
ac_cv_sizeof_char=0
20840
echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
20841
echo "${ECHO_T}$ac_cv_sizeof_char" >&6
20842
cat >>confdefs.h <<_ACEOF
20843
#define SIZEOF_CHAR $ac_cv_sizeof_char
20848
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20849
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
20850
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20851
echo $ECHO_N "(cached) $ECHO_C" >&6
20853
ac_check_lib_save_LIBS=$LIBS
20855
cat >conftest.$ac_ext <<_ACEOF
20856
#line $LINENO "configure"
20859
cat confdefs.h >>conftest.$ac_ext
20860
cat >>conftest.$ac_ext <<_ACEOF
20861
/* end confdefs.h. */
20863
/* Override any gcc2 internal prototype to avoid an error. */
20867
/* We use char because int might match the return type of a gcc2
20868
builtin and then its argument prototype would still apply. */
20878
rm -f conftest.$ac_objext conftest$ac_exeext
20879
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20880
(eval $ac_link) 2>&5
20882
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20883
(exit $ac_status); } &&
20884
{ ac_try='test -s conftest$ac_exeext'
20885
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20886
(eval $ac_try) 2>&5
20888
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20889
(exit $ac_status); }; }; then
20890
ac_cv_lib_dl_dlopen=yes
20892
echo "$as_me: failed program was:" >&5
20893
sed 's/^/| /' conftest.$ac_ext >&5
20895
ac_cv_lib_dl_dlopen=no
20897
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20898
LIBS=$ac_check_lib_save_LIBS
20900
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20901
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
20902
if test $ac_cv_lib_dl_dlopen = yes; then
20905
ac_cv_have_dlfcn=yes
20910
echo "$as_me:$LINENO: checking for shl_unload in -ldld" >&5
20911
echo $ECHO_N "checking for shl_unload in -ldld... $ECHO_C" >&6
20912
if test "${ac_cv_lib_dld_shl_unload+set}" = set; then
20913
echo $ECHO_N "(cached) $ECHO_C" >&6
20915
ac_check_lib_save_LIBS=$LIBS
20917
cat >conftest.$ac_ext <<_ACEOF
20918
#line $LINENO "configure"
20921
cat confdefs.h >>conftest.$ac_ext
20922
cat >>conftest.$ac_ext <<_ACEOF
20923
/* end confdefs.h. */
20925
/* Override any gcc2 internal prototype to avoid an error. */
20929
/* We use char because int might match the return type of a gcc2
20930
builtin and then its argument prototype would still apply. */
20931
char shl_unload ();
20940
rm -f conftest.$ac_objext conftest$ac_exeext
20941
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20942
(eval $ac_link) 2>&5
20944
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20945
(exit $ac_status); } &&
20946
{ ac_try='test -s conftest$ac_exeext'
20947
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20948
(eval $ac_try) 2>&5
20950
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20951
(exit $ac_status); }; }; then
20952
ac_cv_lib_dld_shl_unload=yes
20954
echo "$as_me: failed program was:" >&5
20955
sed 's/^/| /' conftest.$ac_ext >&5
20957
ac_cv_lib_dld_shl_unload=no
20959
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20960
LIBS=$ac_check_lib_save_LIBS
20962
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_unload" >&5
20963
echo "${ECHO_T}$ac_cv_lib_dld_shl_unload" >&6
20964
if test $ac_cv_lib_dld_shl_unload = yes; then
20967
ac_cv_have_shload=yes
20977
# Check whether --enable-embedded or --disable-embedded was given.
20978
if test "${enable_embedded+set}" = set; then
20979
enableval="$enable_embedded"
20980
kde_use_qt_emb=$enableval
20986
# Check whether --enable-qtopia or --disable-qtopia was given.
20987
if test "${enable_qtopia+set}" = set; then
20988
enableval="$enable_qtopia"
20989
kde_use_qt_emb_palm=$enableval
20991
kde_use_qt_emb_palm=no
20995
if test "$kde_use_qt_emb" = "no"; then
20997
echo "$as_me:$LINENO: checking for X" >&5
20998
echo $ECHO_N "checking for X... $ECHO_C" >&6
21002
ac_cpp='$CPP $CPPFLAGS'
21003
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21004
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21005
ac_compiler_gnu=$ac_cv_c_compiler_gnu
21007
if test "${kde_cv_have_x+set}" = set; then
21008
echo $ECHO_N "(cached) $ECHO_C" >&6
21010
# One or both of the vars are not set, and there is no cached value.
21011
if test "{$x_includes+set}" = set || test "$x_includes" = NONE; then
21014
kde_x_includes=$x_includes
21016
if test "{$x_libraries+set}" = set || test "$x_libraries" = NONE; then
21019
kde_x_libraries=$x_libraries
21022
# below we use the standard autoconf calls
21023
ac_x_libraries=$kde_x_libraries
21024
ac_x_includes=$kde_x_includes
21026
if test "$ac_x_includes" = NO; then
21027
# Guess where to find include files, by looking for this one X11 .h file.
21028
test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
21030
# First, try using that file with no special directory specified.
21031
cat >conftest.$ac_ext <<_ACEOF
21032
#line $LINENO "configure"
21035
cat confdefs.h >>conftest.$ac_ext
21036
cat >>conftest.$ac_ext <<_ACEOF
21037
/* end confdefs.h. */
21038
#include <$x_direct_test_include>
21040
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21041
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21043
grep -v '^ *+' conftest.er1 >conftest.err
21045
cat conftest.err >&5
21046
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21047
(exit $ac_status); } >/dev/null; then
21048
if test -s conftest.err; then
21049
ac_cpp_err=$ac_c_preproc_warn_flag
21056
if test -z "$ac_cpp_err"; then
21057
# We can compile using X headers with no special include directory.
21060
echo "$as_me: failed program was:" >&5
21061
sed 's/^/| /' conftest.$ac_ext >&5
21063
# Look for the header file in a standard set of common directories.
21064
# Check X11 before X11Rn because it is often a symlink to the current release.
21067
/usr/X11R6/include \
21068
/usr/X11R5/include \
21069
/usr/X11R4/include \
21072
/usr/include/X11R6 \
21073
/usr/include/X11R5 \
21074
/usr/include/X11R4 \
21076
/usr/local/X11/include \
21077
/usr/local/X11R6/include \
21078
/usr/local/X11R5/include \
21079
/usr/local/X11R4/include \
21081
/usr/local/include/X11 \
21082
/usr/local/include/X11R6 \
21083
/usr/local/include/X11R5 \
21084
/usr/local/include/X11R4 \
21086
/usr/X386/include \
21087
/usr/x386/include \
21088
/usr/XFree86/include/X11 \
21091
/usr/local/include \
21092
/usr/unsupported/include \
21093
/usr/athena/include \
21094
/usr/local/x11r5/include \
21095
/usr/lpp/Xamples/include \
21097
/usr/openwin/include \
21098
/usr/openwin/share/include \
21101
if test -r "$ac_dir/$x_direct_test_include"; then
21102
ac_x_includes=$ac_dir
21107
rm -f conftest.err conftest.$ac_ext
21108
fi # $ac_x_includes = NO
21110
if test "$ac_x_libraries" = NO; then
21111
# Check for the libraries.
21113
test -z "$x_direct_test_library" && x_direct_test_library=Xt
21114
test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
21116
# See if we find them without any special options.
21117
# Don't add to $LIBS permanently.
21118
ac_save_LIBS="$LIBS"
21119
LIBS="-l$x_direct_test_library $LIBS"
21120
cat >conftest.$ac_ext <<_ACEOF
21121
#line $LINENO "configure"
21124
cat confdefs.h >>conftest.$ac_ext
21125
cat >>conftest.$ac_ext <<_ACEOF
21126
/* end confdefs.h. */
21131
${x_direct_test_function}()
21136
rm -f conftest.$ac_objext conftest$ac_exeext
21137
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21138
(eval $ac_link) 2>&5
21140
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21141
(exit $ac_status); } &&
21142
{ ac_try='test -s conftest$ac_exeext'
21143
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21144
(eval $ac_try) 2>&5
21146
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21147
(exit $ac_status); }; }; then
21148
LIBS="$ac_save_LIBS"
21149
# We can link X programs with no special library path.
21152
echo "$as_me: failed program was:" >&5
21153
sed 's/^/| /' conftest.$ac_ext >&5
21155
LIBS="$ac_save_LIBS"
21156
# First see if replacing the include by lib works.
21157
# Check X11 before X11Rn because it is often a symlink to the current release.
21158
for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
21169
/usr/local/X11/lib \
21170
/usr/local/X11R6/lib \
21171
/usr/local/X11R5/lib \
21172
/usr/local/X11R4/lib \
21174
/usr/local/lib/X11 \
21175
/usr/local/lib/X11R6 \
21176
/usr/local/lib/X11R5 \
21177
/usr/local/lib/X11R4 \
21181
/usr/XFree86/lib/X11 \
21185
/usr/unsupported/lib \
21187
/usr/local/x11r5/lib \
21188
/usr/lpp/Xamples/lib \
21192
/usr/openwin/share/lib \
21195
for ac_extension in a so sl; do
21196
if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
21197
ac_x_libraries=$ac_dir
21203
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21204
fi # $ac_x_libraries = NO
21212
rm -fr conftest.dir
21213
if mkdir conftest.dir; then
21215
# Make sure to not put "make" in the Imakefile rules, since we grep it out.
21216
cat >Imakefile <<'_ACEOF'
21218
@echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
21220
if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
21221
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
21222
eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
21223
# Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
21224
for ac_extension in a so sl; do
21225
if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
21226
test -f $ac_im_libdir/libX11.$ac_extension; then
21227
ac_im_usrlibdir=$ac_im_libdir; break
21230
# Screen out bogus values from the imake configuration. They are
21231
# bogus both because they are the default anyway, and because
21232
# using them would break gcc on systems where it needs fixed includes.
21233
case $ac_im_incroot in
21235
*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
21237
case $ac_im_usrlibdir in
21238
/usr/lib | /lib) ;;
21239
*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
21243
rm -fr conftest.dir
21246
if test -z "$ac_x_includes"; then
21249
if test -z "$ac_x_libraries"; then
21250
ac_x_libraries="/usr/lib"
21253
#from now on we use our own again
21255
# when the user already gave --x-includes, we ignore
21256
# what the standard autoconf macros told us.
21257
if test "$kde_x_includes" = NO; then
21258
kde_x_includes=$ac_x_includes
21261
# for --x-libraries too
21262
if test "$kde_x_libraries" = NO; then
21263
kde_x_libraries=$ac_x_libraries
21266
if test "$kde_x_includes" = NO; then
21267
{ { echo "$as_me:$LINENO: error: Can't find X includes. Please check your installation and add the correct paths!" >&5
21268
echo "$as_me: error: Can't find X includes. Please check your installation and add the correct paths!" >&2;}
21269
{ (exit 1); exit 1; }; }
21272
if test "$kde_x_libraries" = NO; then
21273
{ { echo "$as_me:$LINENO: error: Can't find X libraries. Please check your installation and add the correct paths!" >&5
21274
echo "$as_me: error: Can't find X libraries. Please check your installation and add the correct paths!" >&2;}
21275
{ (exit 1); exit 1; }; }
21278
# Record where we found X for the cache.
21279
kde_cv_have_x="have_x=yes \
21280
kde_x_includes=$kde_x_includes kde_x_libraries=$kde_x_libraries"
21284
eval "$kde_cv_have_x"
21286
if test "$have_x" != yes; then
21287
echo "$as_me:$LINENO: result: $have_x" >&5
21288
echo "${ECHO_T}$have_x" >&6
21291
echo "$as_me:$LINENO: result: libraries $kde_x_libraries, headers $kde_x_includes" >&5
21292
echo "${ECHO_T}libraries $kde_x_libraries, headers $kde_x_includes" >&6
21295
if test -z "$kde_x_includes" || test "x$kde_x_includes" = xNONE; then
21297
x_includes="."; else
21298
x_includes=$kde_x_includes
21299
X_INCLUDES="-I$x_includes"
21302
if test -z "$kde_x_libraries" || test "x$kde_x_libraries" = xNONE; then
21304
x_libraries="/usr/lib"; else
21305
x_libraries=$kde_x_libraries
21306
X_LDFLAGS="-L$x_libraries"
21308
all_includes="$X_INCLUDES"
21309
all_libraries="$X_LDFLAGS"
21316
# Check for libraries that X11R6 Xt/Xaw programs need.
21317
ac_save_LDFLAGS="$LDFLAGS"
21318
LDFLAGS="$LDFLAGS $X_LDFLAGS"
21319
# SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
21320
# check for ICE first), but we must link in the order -lSM -lICE or
21321
# we get undefined symbols. So assume we have SM if we have ICE.
21322
# These have to be linked with before -lX11, unlike the other
21323
# libraries we check for below, so use a different variable.
21324
# --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
21325
echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
21326
echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
21327
if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
21328
echo $ECHO_N "(cached) $ECHO_C" >&6
21330
ac_check_lib_save_LIBS=$LIBS
21331
LIBS="-lICE $X_EXTRA_LIBS $LIBS"
21332
cat >conftest.$ac_ext <<_ACEOF
21333
#line $LINENO "configure"
21336
cat confdefs.h >>conftest.$ac_ext
21337
cat >>conftest.$ac_ext <<_ACEOF
21338
/* end confdefs.h. */
21340
/* Override any gcc2 internal prototype to avoid an error. */
21344
/* We use char because int might match the return type of a gcc2
21345
builtin and then its argument prototype would still apply. */
21346
char IceConnectionNumber ();
21350
IceConnectionNumber ();
21355
rm -f conftest.$ac_objext conftest$ac_exeext
21356
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21357
(eval $ac_link) 2>&5
21359
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21360
(exit $ac_status); } &&
21361
{ ac_try='test -s conftest$ac_exeext'
21362
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21363
(eval $ac_try) 2>&5
21365
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21366
(exit $ac_status); }; }; then
21367
ac_cv_lib_ICE_IceConnectionNumber=yes
21369
echo "$as_me: failed program was:" >&5
21370
sed 's/^/| /' conftest.$ac_ext >&5
21372
ac_cv_lib_ICE_IceConnectionNumber=no
21374
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21375
LIBS=$ac_check_lib_save_LIBS
21377
echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
21378
echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
21379
if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
21384
LDFLAGS="$ac_save_LDFLAGS"
21388
LIB_X11='-lX11 $(LIBSOCKET)'
21391
echo "$as_me:$LINENO: checking for libXext" >&5
21392
echo $ECHO_N "checking for libXext... $ECHO_C" >&6
21393
if test "${kde_cv_have_libXext+set}" = set; then
21394
echo $ECHO_N "(cached) $ECHO_C" >&6
21397
kde_ldflags_safe="$LDFLAGS"
21398
kde_libs_safe="$LIBS"
21400
LDFLAGS="$LDFLAGS $X_LDFLAGS $USER_LDFLAGS"
21401
LIBS="-lXext -lX11 $LIBSOCKET"
21403
cat >conftest.$ac_ext <<_ACEOF
21404
#line $LINENO "configure"
21407
cat confdefs.h >>conftest.$ac_ext
21408
cat >>conftest.$ac_ext <<_ACEOF
21409
/* end confdefs.h. */
21412
#ifdef STDC_HEADERS
21413
# include <stdlib.h>
21420
printf("hello Xext\n");
21426
rm -f conftest.$ac_objext conftest$ac_exeext
21427
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21428
(eval $ac_link) 2>&5
21430
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21431
(exit $ac_status); } &&
21432
{ ac_try='test -s conftest$ac_exeext'
21433
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21434
(eval $ac_try) 2>&5
21436
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21437
(exit $ac_status); }; }; then
21438
kde_cv_have_libXext=yes
21440
echo "$as_me: failed program was:" >&5
21441
sed 's/^/| /' conftest.$ac_ext >&5
21443
kde_cv_have_libXext=no
21446
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21448
LDFLAGS=$kde_ldflags_safe
21449
LIBS=$kde_libs_safe
21454
echo "$as_me:$LINENO: result: $kde_cv_have_libXext" >&5
21455
echo "${ECHO_T}$kde_cv_have_libXext" >&6
21457
if test "$kde_cv_have_libXext" = "no"; then
21458
{ { echo "$as_me:$LINENO: error: We need a working libXext to proceed. Since configure
21459
can't find it itself, we stop here assuming that make wouldn't find
21461
echo "$as_me: error: We need a working libXext to proceed. Since configure
21462
can't find it itself, we stop here assuming that make wouldn't find
21463
them either." >&2;}
21464
{ (exit 1); exit 1; }; }
21467
echo "$as_me:$LINENO: checking for Xinerama" >&5
21468
echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
21471
# Check whether --with-xinerama or --without-xinerama was given.
21472
if test "${with_xinerama+set}" = set; then
21473
withval="$with_xinerama"
21484
kde_save_LDFLAGS="$LDFLAGS"
21485
kde_save_CFLAGS="$CFLAGS"
21486
kde_save_LIBS="$LIBS"
21487
LDFLAGS="$LDFLAGS $X_LDFLAGS $USER_LDFLAGS"
21488
CFLAGS="$CFLAGS -I$x_includes"
21489
LIBS="-lXinerama -lXext"
21491
if test "x$no_xinerama" = "xno"; then
21493
if test "${ac_cv_have_xinerama+set}" = set; then
21494
echo $ECHO_N "(cached) $ECHO_C" >&6
21497
cat >conftest.$ac_ext <<_ACEOF
21498
#line $LINENO "configure"
21501
cat confdefs.h >>conftest.$ac_ext
21502
cat >>conftest.$ac_ext <<_ACEOF
21503
/* end confdefs.h. */
21504
#include <X11/Xlib.h>
21505
#include <X11/extensions/Xinerama.h>
21509
XineramaIsActive(NULL);
21514
rm -f conftest.$ac_objext conftest$ac_exeext
21515
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21516
(eval $ac_link) 2>&5
21518
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21519
(exit $ac_status); } &&
21520
{ ac_try='test -s conftest$ac_exeext'
21521
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21522
(eval $ac_try) 2>&5
21524
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21525
(exit $ac_status); }; }; then
21526
ac_cv_have_xinerama="yes"
21528
echo "$as_me: failed program was:" >&5
21529
sed 's/^/| /' conftest.$ac_ext >&5
21531
ac_cv_have_xinerama="no"
21533
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21538
ac_cv_have_xinerama=no;
21541
echo "$as_me:$LINENO: result: $ac_cv_have_xinerama" >&5
21542
echo "${ECHO_T}$ac_cv_have_xinerama" >&6
21546
if test "$ac_cv_have_xinerama" = "yes"; then
21548
cat >>confdefs.h <<\_ACEOF
21549
#define HAVE_XINERAMA 1
21552
LIBXINERAMA="-lXinerama"
21557
LDFLAGS="$kde_save_LDFLAGS"
21558
CFLAGS="$kde_save_CFLAGS"
21559
LIBS="$kde_save_LIBS"
21566
CXXFLAGS="$CXXFLAGS -fno-rtti"
21567
QTE_NORTTI="-fno-rtti -DQWS"
21589
ac_cpp='$CPP $CPPFLAGS'
21590
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21591
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21592
ac_compiler_gnu=$ac_cv_c_compiler_gnu
21597
echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
21598
echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
21599
if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
21600
echo $ECHO_N "(cached) $ECHO_C" >&6
21602
ac_check_lib_save_LIBS=$LIBS
21603
LIBS="-lpthread $LIBS"
21604
cat >conftest.$ac_ext <<_ACEOF
21605
#line $LINENO "configure"
21608
cat confdefs.h >>conftest.$ac_ext
21609
cat >>conftest.$ac_ext <<_ACEOF
21610
/* end confdefs.h. */
21612
/* Override any gcc2 internal prototype to avoid an error. */
21616
/* We use char because int might match the return type of a gcc2
21617
builtin and then its argument prototype would still apply. */
21618
char pthread_create ();
21627
rm -f conftest.$ac_objext conftest$ac_exeext
21628
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21629
(eval $ac_link) 2>&5
21631
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21632
(exit $ac_status); } &&
21633
{ ac_try='test -s conftest$ac_exeext'
21634
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21635
(eval $ac_try) 2>&5
21637
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21638
(exit $ac_status); }; }; then
21639
ac_cv_lib_pthread_pthread_create=yes
21641
echo "$as_me: failed program was:" >&5
21642
sed 's/^/| /' conftest.$ac_ext >&5
21644
ac_cv_lib_pthread_pthread_create=no
21646
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21647
LIBS=$ac_check_lib_save_LIBS
21649
echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
21650
echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
21651
if test $ac_cv_lib_pthread_pthread_create = yes; then
21652
LIBPTHREAD="-lpthread"
21658
# Check whether --enable-kernel-threads or --disable-kernel-threads was given.
21659
if test "${enable_kernel_threads+set}" = set; then
21660
enableval="$enable_kernel_threads"
21661
kde_use_kernthreads=$enableval
21663
kde_use_kernthreads=no
21666
if test "$kde_use_kernthreads" = "yes"; then
21667
ac_save_CXXFLAGS="$CXXFLAGS"
21668
ac_save_CFLAGS="$CFLAGS"
21669
CXXFLAGS="-I/usr/local/include/pthread/linuxthreads $CXXFLAGS"
21670
CFLAGS="-I/usr/local/include/pthread/linuxthreads $CFLAGS"
21672
for ac_header in pthread/linuxthreads/pthread.h
21674
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21675
if eval "test \"\${$as_ac_Header+set}\" = set"; then
21676
echo "$as_me:$LINENO: checking for $ac_header" >&5
21677
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21678
if eval "test \"\${$as_ac_Header+set}\" = set"; then
21679
echo $ECHO_N "(cached) $ECHO_C" >&6
21681
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21682
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21684
# Is the header compilable?
21685
echo "$as_me:$LINENO: checking $ac_header usability" >&5
21686
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21687
cat >conftest.$ac_ext <<_ACEOF
21688
#line $LINENO "configure"
21691
cat confdefs.h >>conftest.$ac_ext
21692
cat >>conftest.$ac_ext <<_ACEOF
21693
/* end confdefs.h. */
21694
$ac_includes_default
21695
#include <$ac_header>
21697
rm -f conftest.$ac_objext
21698
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21699
(eval $ac_compile) 2>&5
21701
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21702
(exit $ac_status); } &&
21703
{ ac_try='test -s conftest.$ac_objext'
21704
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21705
(eval $ac_try) 2>&5
21707
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21708
(exit $ac_status); }; }; then
21709
ac_header_compiler=yes
21711
echo "$as_me: failed program was:" >&5
21712
sed 's/^/| /' conftest.$ac_ext >&5
21714
ac_header_compiler=no
21716
rm -f conftest.$ac_objext conftest.$ac_ext
21717
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21718
echo "${ECHO_T}$ac_header_compiler" >&6
21720
# Is the header present?
21721
echo "$as_me:$LINENO: checking $ac_header presence" >&5
21722
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21723
cat >conftest.$ac_ext <<_ACEOF
21724
#line $LINENO "configure"
21727
cat confdefs.h >>conftest.$ac_ext
21728
cat >>conftest.$ac_ext <<_ACEOF
21729
/* end confdefs.h. */
21730
#include <$ac_header>
21732
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21733
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21735
grep -v '^ *+' conftest.er1 >conftest.err
21737
cat conftest.err >&5
21738
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21739
(exit $ac_status); } >/dev/null; then
21740
if test -s conftest.err; then
21741
ac_cpp_err=$ac_c_preproc_warn_flag
21748
if test -z "$ac_cpp_err"; then
21749
ac_header_preproc=yes
21751
echo "$as_me: failed program was:" >&5
21752
sed 's/^/| /' conftest.$ac_ext >&5
21754
ac_header_preproc=no
21756
rm -f conftest.err conftest.$ac_ext
21757
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21758
echo "${ECHO_T}$ac_header_preproc" >&6
21760
# So? What about this header?
21761
case $ac_header_compiler:$ac_header_preproc in
21763
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21764
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21765
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21766
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21769
## ------------------------------------ ##
21770
## Report this to bug-autoconf@gnu.org. ##
21771
## ------------------------------------ ##
21774
sed "s/^/$as_me: WARNING: /" >&2
21777
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21778
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21779
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21780
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21781
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21782
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21785
## ------------------------------------ ##
21786
## Report this to bug-autoconf@gnu.org. ##
21787
## ------------------------------------ ##
21790
sed "s/^/$as_me: WARNING: /" >&2
21793
echo "$as_me:$LINENO: checking for $ac_header" >&5
21794
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21795
if eval "test \"\${$as_ac_Header+set}\" = set"; then
21796
echo $ECHO_N "(cached) $ECHO_C" >&6
21798
eval "$as_ac_Header=$ac_header_preproc"
21800
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21801
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21804
if test `eval echo '${'$as_ac_Header'}'` = yes; then
21805
cat >>confdefs.h <<_ACEOF
21806
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21813
CXXFLAGS="$ac_save_CXXFLAGS"
21814
CFLAGS="$ac_save_CFLAGS"
21815
if test "$ac_cv_header_pthread_linuxthreads_pthread_h" = "no"; then
21816
kde_use_kernthreads=no
21818
echo "$as_me:$LINENO: checking for pthread_join in -llthread" >&5
21819
echo $ECHO_N "checking for pthread_join in -llthread... $ECHO_C" >&6
21820
if test "${ac_cv_lib_lthread_pthread_join+set}" = set; then
21821
echo $ECHO_N "(cached) $ECHO_C" >&6
21823
ac_check_lib_save_LIBS=$LIBS
21824
LIBS="-llthread $LIBS"
21825
cat >conftest.$ac_ext <<_ACEOF
21826
#line $LINENO "configure"
21829
cat confdefs.h >>conftest.$ac_ext
21830
cat >>conftest.$ac_ext <<_ACEOF
21831
/* end confdefs.h. */
21833
/* Override any gcc2 internal prototype to avoid an error. */
21837
/* We use char because int might match the return type of a gcc2
21838
builtin and then its argument prototype would still apply. */
21839
char pthread_join ();
21848
rm -f conftest.$ac_objext conftest$ac_exeext
21849
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21850
(eval $ac_link) 2>&5
21852
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21853
(exit $ac_status); } &&
21854
{ ac_try='test -s conftest$ac_exeext'
21855
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21856
(eval $ac_try) 2>&5
21858
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21859
(exit $ac_status); }; }; then
21860
ac_cv_lib_lthread_pthread_join=yes
21862
echo "$as_me: failed program was:" >&5
21863
sed 's/^/| /' conftest.$ac_ext >&5
21865
ac_cv_lib_lthread_pthread_join=no
21867
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21868
LIBS=$ac_check_lib_save_LIBS
21870
echo "$as_me:$LINENO: result: $ac_cv_lib_lthread_pthread_join" >&5
21871
echo "${ECHO_T}$ac_cv_lib_lthread_pthread_join" >&6
21872
if test $ac_cv_lib_lthread_pthread_join = yes; then
21873
LIBPTHREAD="-llthread -llgcc_r"
21875
if test "x$LIBPTHREAD" = "x"; then
21876
kde_use_kernthreads=no
21878
USE_THREADS="-D_THREAD_SAFE -I/usr/local/include/pthread/linuxthreads"
21883
if test -z "$LIBPTHREAD"; then
21885
echo "$as_me:$LINENO: checking whether $CXX supports -pthread" >&5
21886
echo $ECHO_N "checking whether $CXX supports -pthread... $ECHO_C" >&6
21887
kde_cache=`echo pthread | sed 'y% .=/+-%____p_%'`
21888
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
21889
echo $ECHO_N "(cached) $ECHO_C" >&6
21895
ac_cpp='$CXXCPP $CPPFLAGS'
21896
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21897
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21898
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21900
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21903
save_CXXFLAGS="$CXXFLAGS"
21904
CXXFLAGS="$CXXFLAGS -pthread"
21905
cat >conftest.$ac_ext <<_ACEOF
21906
#line $LINENO "configure"
21909
cat confdefs.h >>conftest.$ac_ext
21910
cat >>conftest.$ac_ext <<_ACEOF
21911
/* end confdefs.h. */
21921
rm -f conftest.$ac_objext conftest$ac_exeext
21922
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21923
(eval $ac_link) 2>&5
21925
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21926
(exit $ac_status); } &&
21927
{ ac_try='test -s conftest$ac_exeext'
21928
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21929
(eval $ac_try) 2>&5
21931
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21932
(exit $ac_status); }; }; then
21933
eval "kde_cv_prog_cxx_$kde_cache=yes"
21935
echo "$as_me: failed program was:" >&5
21936
sed 's/^/| /' conftest.$ac_ext >&5
21939
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21940
CXXFLAGS="$save_CXXFLAGS"
21942
ac_cpp='$CPP $CPPFLAGS'
21943
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21944
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21945
ac_compiler_gnu=$ac_cv_c_compiler_gnu
21950
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
21951
echo "$as_me:$LINENO: result: yes" >&5
21952
echo "${ECHO_T}yes" >&6
21954
USE_THREADS="-pthread"
21956
echo "$as_me:$LINENO: result: no" >&5
21957
echo "${ECHO_T}no" >&6
21968
echo "$as_me:$LINENO: checking whether $CXX supports -mt" >&5
21969
echo $ECHO_N "checking whether $CXX supports -mt... $ECHO_C" >&6
21970
kde_cache=`echo mt | sed 'y% .=/+-%____p_%'`
21971
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
21972
echo $ECHO_N "(cached) $ECHO_C" >&6
21978
ac_cpp='$CXXCPP $CPPFLAGS'
21979
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21980
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21981
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21983
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21986
save_CXXFLAGS="$CXXFLAGS"
21987
CXXFLAGS="$CXXFLAGS -mt"
21988
cat >conftest.$ac_ext <<_ACEOF
21989
#line $LINENO "configure"
21992
cat confdefs.h >>conftest.$ac_ext
21993
cat >>conftest.$ac_ext <<_ACEOF
21994
/* end confdefs.h. */
22004
rm -f conftest.$ac_objext conftest$ac_exeext
22005
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22006
(eval $ac_link) 2>&5
22008
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22009
(exit $ac_status); } &&
22010
{ ac_try='test -s conftest$ac_exeext'
22011
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22012
(eval $ac_try) 2>&5
22014
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22015
(exit $ac_status); }; }; then
22016
eval "kde_cv_prog_cxx_$kde_cache=yes"
22018
echo "$as_me: failed program was:" >&5
22019
sed 's/^/| /' conftest.$ac_ext >&5
22022
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22023
CXXFLAGS="$save_CXXFLAGS"
22025
ac_cpp='$CPP $CPPFLAGS'
22026
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22027
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22028
ac_compiler_gnu=$ac_cv_c_compiler_gnu
22033
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
22034
echo "$as_me:$LINENO: result: yes" >&5
22035
echo "${ECHO_T}yes" >&6
22039
echo "$as_me:$LINENO: result: no" >&5
22040
echo "${ECHO_T}no" >&6
22045
CPPFLAGS="$CPPFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DUSE_SOLARIS -DSVR4"
22048
CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE"
22051
CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE"
22052
LIBPTHREAD="$LIBPTHREAD -lc_r"
22054
linux*) CPPFLAGS="$CPPFLAGS -D_REENTRANT"
22055
if test "$CXX" = "KCC"; then
22056
CXXFLAGS="$CXXFLAGS --thread_safe"
22057
NOOPT_CXXFLAGS="$NOOPT_CXXFLAGS --thread_safe"
22067
echo "$as_me:$LINENO: checking for extra includes" >&5
22068
echo $ECHO_N "checking for extra includes... $ECHO_C" >&6
22070
# Check whether --with-extra-includes or --without-extra-includes was given.
22071
if test "${with_extra_includes+set}" = set; then
22072
withval="$with_extra_includes"
22073
kde_use_extra_includes="$withval"
22075
kde_use_extra_includes=NONE
22078
kde_extra_includes=
22079
if test -n "$kde_use_extra_includes" && \
22080
test "$kde_use_extra_includes" != "NONE"; then
22084
for dir in $kde_use_extra_includes; do
22085
kde_extra_includes="$kde_extra_includes $dir"
22086
USER_INCLUDES="$USER_INCLUDES -I$dir"
22089
kde_use_extra_includes="added"
22091
kde_use_extra_includes="no"
22095
echo "$as_me:$LINENO: result: $kde_use_extra_includes" >&5
22096
echo "${ECHO_T}$kde_use_extra_includes" >&6
22099
echo "$as_me:$LINENO: checking for extra libs" >&5
22100
echo $ECHO_N "checking for extra libs... $ECHO_C" >&6
22102
# Check whether --with-extra-libs or --without-extra-libs was given.
22103
if test "${with_extra_libs+set}" = set; then
22104
withval="$with_extra_libs"
22105
kde_use_extra_libs=$withval
22107
kde_use_extra_libs=NONE
22110
if test -n "$kde_use_extra_libs" && \
22111
test "$kde_use_extra_libs" != "NONE"; then
22115
for dir in $kde_use_extra_libs; do
22116
kde_extra_libs="$kde_extra_libs $dir"
22117
KDE_EXTRA_RPATH="$KDE_EXTRA_RPATH -R $dir"
22118
USER_LDFLAGS="$USER_LDFLAGS -L$dir"
22121
kde_use_extra_libs="added"
22123
kde_use_extra_libs="no"
22128
echo "$as_me:$LINENO: result: $kde_use_extra_libs" >&5
22129
echo "${ECHO_T}$kde_use_extra_libs" >&6
22134
echo "$as_me:$LINENO: checking for libz" >&5
22135
echo $ECHO_N "checking for libz... $ECHO_C" >&6
22136
if test "${ac_cv_lib_z+set}" = set; then
22137
echo $ECHO_N "(cached) $ECHO_C" >&6
22141
ac_cpp='$CPP $CPPFLAGS'
22142
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22143
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22144
ac_compiler_gnu=$ac_cv_c_compiler_gnu
22146
kde_save_LIBS="$LIBS"
22147
LIBS="$all_libraries $USER_LDFLAGS -lz $LIBSOCKET"
22148
kde_save_CFLAGS="$CFLAGS"
22149
CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
22150
cat >conftest.$ac_ext <<_ACEOF
22151
#line $LINENO "configure"
22154
cat confdefs.h >>conftest.$ac_ext
22155
cat >>conftest.$ac_ext <<_ACEOF
22156
/* end confdefs.h. */
22163
return (zlibVersion() == ZLIB_VERSION);
22168
rm -f conftest.$ac_objext conftest$ac_exeext
22169
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22170
(eval $ac_link) 2>&5
22172
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22173
(exit $ac_status); } &&
22174
{ ac_try='test -s conftest$ac_exeext'
22175
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22176
(eval $ac_try) 2>&5
22178
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22179
(exit $ac_status); }; }; then
22180
eval "ac_cv_lib_z='-lz'"
22182
echo "$as_me: failed program was:" >&5
22183
sed 's/^/| /' conftest.$ac_ext >&5
22185
eval "ac_cv_lib_z=no"
22187
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22188
LIBS="$kde_save_LIBS"
22189
CFLAGS="$kde_save_CFLAGS"
22192
if test ! "$ac_cv_lib_z" = no; then
22194
cat >>confdefs.h <<_ACEOF
22195
#define HAVE_LIBZ 1
22198
LIBZ="$ac_cv_lib_z"
22200
echo "$as_me:$LINENO: result: $ac_cv_lib_z" >&5
22201
echo "${ECHO_T}$ac_cv_lib_z" >&6
22203
{ { echo "$as_me:$LINENO: error: not found. Check your installation and look into config.log" >&5
22204
echo "$as_me: error: not found. Check your installation and look into config.log" >&2;}
22205
{ (exit 1); exit 1; }; }
22213
echo "$as_me:$LINENO: checking for libpng" >&5
22214
echo $ECHO_N "checking for libpng... $ECHO_C" >&6
22215
if test "${ac_cv_lib_png+set}" = set; then
22216
echo $ECHO_N "(cached) $ECHO_C" >&6
22219
kde_save_LIBS="$LIBS"
22220
if test "x$kde_use_qt_emb" != "xyes"; then
22221
LIBS="$LIBS $all_libraries $USER_LDFLAGS -lpng $LIBZ -lm -lX11 $LIBSOCKET"
22223
LIBS="$LIBS $all_libraries $USER_LDFLAGS -lpng $LIBZ -lm"
22225
kde_save_CFLAGS="$CFLAGS"
22226
CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
22228
ac_cpp='$CPP $CPPFLAGS'
22229
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22230
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22231
ac_compiler_gnu=$ac_cv_c_compiler_gnu
22233
cat >conftest.$ac_ext <<_ACEOF
22234
#line $LINENO "configure"
22237
cat confdefs.h >>conftest.$ac_ext
22238
cat >>conftest.$ac_ext <<_ACEOF
22239
/* end confdefs.h. */
22247
png_structp png_ptr = png_create_read_struct( /* image ptr */
22248
PNG_LIBPNG_VER_STRING, 0, 0, 0 );
22249
return( png_ptr != 0 );
22255
rm -f conftest.$ac_objext conftest$ac_exeext
22256
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22257
(eval $ac_link) 2>&5
22259
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22260
(exit $ac_status); } &&
22261
{ ac_try='test -s conftest$ac_exeext'
22262
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22263
(eval $ac_try) 2>&5
22265
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22266
(exit $ac_status); }; }; then
22267
eval "ac_cv_lib_png='-lpng $LIBZ -lm'"
22269
echo "$as_me: failed program was:" >&5
22270
sed 's/^/| /' conftest.$ac_ext >&5
22272
eval "ac_cv_lib_png=no"
22275
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22276
LIBS="$kde_save_LIBS"
22277
CFLAGS="$kde_save_CFLAGS"
22280
if eval "test ! \"`echo $ac_cv_lib_png`\" = no"; then
22282
cat >>confdefs.h <<_ACEOF
22283
#define HAVE_LIBPNG 1
22286
LIBPNG="$ac_cv_lib_png"
22288
echo "$as_me:$LINENO: result: $ac_cv_lib_png" >&5
22289
echo "${ECHO_T}$ac_cv_lib_png" >&6
22291
echo "$as_me:$LINENO: result: no" >&5
22292
echo "${ECHO_T}no" >&6
22299
echo "$as_me:$LINENO: checking for libjpeg6b" >&5
22300
echo $ECHO_N "checking for libjpeg6b... $ECHO_C" >&6
22301
if test "${ac_cv_lib_jpeg_6b+set}" = set; then
22302
echo $ECHO_N "(cached) $ECHO_C" >&6
22306
ac_cpp='$CPP $CPPFLAGS'
22307
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22308
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22309
ac_compiler_gnu=$ac_cv_c_compiler_gnu
22311
ac_save_LIBS="$LIBS"
22312
LIBS="$all_libraries $USER_LDFLAGS -ljpeg6b -lm"
22313
ac_save_CFLAGS="$CFLAGS"
22314
CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
22315
cat >conftest.$ac_ext <<_ACEOF
22316
#line $LINENO "configure"
22319
cat confdefs.h >>conftest.$ac_ext
22320
cat >>conftest.$ac_ext <<_ACEOF
22321
/* end confdefs.h. */
22322
/* Override any gcc2 internal prototype to avoid an error. */
22323
struct jpeg_decompress_struct;
22324
typedef struct jpeg_decompress_struct * j_decompress_ptr;
22325
typedef int size_t;
22329
void jpeg_CreateDecompress(j_decompress_ptr cinfo,
22330
int version, size_t structsize);
22334
/* We use char because int might match the return type of a gcc2
22335
builtin and then its argument prototype would still apply. */
22340
jpeg_CreateDecompress(0L, 0, 0);
22345
rm -f conftest.$ac_objext conftest$ac_exeext
22346
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22347
(eval $ac_link) 2>&5
22349
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22350
(exit $ac_status); } &&
22351
{ ac_try='test -s conftest$ac_exeext'
22352
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22353
(eval $ac_try) 2>&5
22355
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22356
(exit $ac_status); }; }; then
22357
eval "ac_cv_lib_jpeg_6b=-ljpeg6b"
22359
echo "$as_me: failed program was:" >&5
22360
sed 's/^/| /' conftest.$ac_ext >&5
22362
eval "ac_cv_lib_jpeg_6b=no"
22364
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22365
LIBS="$ac_save_LIBS"
22366
CFLAGS="$ac_save_CFLAGS"
22371
if eval "test ! \"`echo $ac_cv_lib_jpeg_6b`\" = no"; then
22372
LIBJPEG="$ac_cv_lib_jpeg_6b"
22373
echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_6b" >&5
22374
echo "${ECHO_T}$ac_cv_lib_jpeg_6b" >&6
22376
echo "$as_me:$LINENO: result: no" >&5
22377
echo "${ECHO_T}no" >&6
22379
echo "$as_me:$LINENO: checking for libjpeg" >&5
22380
echo $ECHO_N "checking for libjpeg... $ECHO_C" >&6
22381
if test "${ac_cv_lib_jpeg_normal+set}" = set; then
22382
echo $ECHO_N "(cached) $ECHO_C" >&6
22386
ac_cpp='$CPP $CPPFLAGS'
22387
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22388
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22389
ac_compiler_gnu=$ac_cv_c_compiler_gnu
22391
ac_save_LIBS="$LIBS"
22392
LIBS="$all_libraries $USER_LDFLAGS -ljpeg -lm"
22393
ac_save_CFLAGS="$CFLAGS"
22394
CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
22395
cat >conftest.$ac_ext <<_ACEOF
22396
#line $LINENO "configure"
22399
cat confdefs.h >>conftest.$ac_ext
22400
cat >>conftest.$ac_ext <<_ACEOF
22401
/* end confdefs.h. */
22402
/* Override any gcc2 internal prototype to avoid an error. */
22403
struct jpeg_decompress_struct;
22404
typedef struct jpeg_decompress_struct * j_decompress_ptr;
22405
typedef int size_t;
22409
void jpeg_CreateDecompress(j_decompress_ptr cinfo,
22410
int version, size_t structsize);
22414
/* We use char because int might match the return type of a gcc2
22415
builtin and then its argument prototype would still apply. */
22420
jpeg_CreateDecompress(0L, 0, 0);
22425
rm -f conftest.$ac_objext conftest$ac_exeext
22426
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22427
(eval $ac_link) 2>&5
22429
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22430
(exit $ac_status); } &&
22431
{ ac_try='test -s conftest$ac_exeext'
22432
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22433
(eval $ac_try) 2>&5
22435
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22436
(exit $ac_status); }; }; then
22437
eval "ac_cv_lib_jpeg_normal=-ljpeg"
22439
echo "$as_me: failed program was:" >&5
22440
sed 's/^/| /' conftest.$ac_ext >&5
22442
eval "ac_cv_lib_jpeg_normal=no"
22444
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22445
LIBS="$ac_save_LIBS"
22446
CFLAGS="$ac_save_CFLAGS"
22451
if eval "test ! \"`echo $ac_cv_lib_jpeg_normal`\" = no"; then
22452
LIBJPEG="$ac_cv_lib_jpeg_normal"
22453
echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_normal" >&5
22454
echo "${ECHO_T}$ac_cv_lib_jpeg_normal" >&6
22456
echo "$as_me:$LINENO: result: no" >&5
22457
echo "${ECHO_T}no" >&6
22470
jpeg_incdirs="$includedir /usr/include /usr/local/include $kde_extra_includes"
22473
for i in $jpeg_incdirs;
22475
for j in jpeglib.h;
22477
echo "configure: 22477: $i/$j" >&5
22478
if test -r "$i/$j"; then
22479
echo "taking that" >&5
22486
test "x$jpeg_incdir" = xNO && jpeg_incdir=
22488
if test -n "$jpeg_incdir" && test -n "$LIBJPEG" ; then
22490
cat >>confdefs.h <<_ACEOF
22491
#define HAVE_LIBJPEG 1
22495
if test -n "$jpeg_incdir" || test -n "$LIBJPEG" ; then
22496
{ echo "$as_me:$LINENO: WARNING:
22497
There is an installation error in jpeg support. You seem to have only one
22498
of either the headers _or_ the libraries installed. You may need to either
22499
provide correct --with-extra-... options, or the development package of
22500
libjpeg6b. You can get a source package of libjpeg from http://www.ijg.org/
22501
Disabling JPEG support.
22503
echo "$as_me: WARNING:
22504
There is an installation error in jpeg support. You seem to have only one
22505
of either the headers _or_ the libraries installed. You may need to either
22506
provide correct --with-extra-... options, or the development package of
22507
libjpeg6b. You can get a source package of libjpeg from http://www.ijg.org/
22508
Disabling JPEG support.
22511
{ echo "$as_me:$LINENO: WARNING: libjpeg not found. disable JPEG support." >&5
22512
echo "$as_me: WARNING: libjpeg not found. disable JPEG support." >&2;}
22526
# Check whether --enable-mt or --disable-mt was given.
22527
if test "${enable_mt+set}" = set; then
22528
enableval="$enable_mt"
22529
kde_use_qt_mt=$enableval
22532
if test $kde_qtver = 3; then
22546
if test "x$kde_use_qt_mt" = "xyes"; then
22550
if test -z "$LIBPTHREAD"; then
22551
if test -z "$USE_THREADS"; then
22552
kde_check_threading_default=no
22554
kde_check_threading_default=yes
22557
kde_check_threading_default=yes
22559
# Check whether --enable-threading or --disable-threading was given.
22560
if test "${enable_threading+set}" = set; then
22561
enableval="$enable_threading"
22562
kde_use_threading=$enableval
22564
kde_use_threading=$kde_check_threading_default
22566
if test "x$kde_use_threading" = "xyes"; then
22568
cat >>confdefs.h <<\_ACEOF
22569
#define HAVE_LIBPTHREAD 1
22574
if test "x$kde_use_threading" = "xyes"; then
22575
CPPFLAGS="$USE_THREADS -DQT_THREAD_SUPPORT $CPPFLAGS"
22576
KDE_MT_LDFLAGS="$USE_THREADS"
22577
KDE_MT_LIBS="$LIBPTHREAD"
22585
kde_qt_was_given=yes
22587
if test -z "$LIBQT_GLOB"; then
22588
if test "x$kde_use_qt_emb" = "xyes"; then
22589
LIBQT_GLOB="libqte.*"
22591
LIBQT_GLOB="libqt.*"
22595
if test -z "$LIBQT"; then
22596
if test "x$kde_use_qt_emb" = "xyes"; then
22602
kde_int_qt="-l$qtlib"
22604
kde_int_qt="$LIBQT"
22608
if test -z "$LIBQPE"; then
22609
if test "x$kde_use_qt_emb" = "xyes"; then
22610
if test "x$kde_use_qt_emb_palm" = "xyes"; then
22621
if test "x$kde_use_qt_mt" = "xyes"; then
22622
if test -z "$LIBQT"; then
22623
LIBQT="-l$qtlib-mt"
22624
kde_int_qt="-l$qtlib-mt"
22627
kde_int_qt="$qtlib-mt"
22629
LIBQT_GLOB="lib$qtlib-mt.*"
22630
USING_QT_MT="using -mt"
22635
if test $kde_qtver != 1; then
22639
LIBQT="$LIBQT $LIBPNG $LIBJPEG"
22642
if test $kde_qtver = 3; then
22644
LIBQT="$LIBQT $LIBDL"
22647
echo "$as_me:$LINENO: checking for Qt" >&5
22648
echo $ECHO_N "checking for Qt... $ECHO_C" >&6
22650
if test "x$kde_use_qt_emb" != "xyes"; then
22651
LIBQT="$LIBQT $X_PRE_LIBS -lXext -lX11 $LIBSM $LIBSOCKET"
22653
ac_qt_includes=NO ac_qt_libraries=NO ac_qt_bindir=NO
22657
# Check whether --with-qt-dir or --without-qt-dir was given.
22658
if test "${with_qt_dir+set}" = set; then
22659
withval="$with_qt_dir"
22660
ac_qt_includes="$withval"/include
22661
ac_qt_libraries="$withval"/lib
22662
ac_qt_bindir="$withval"/bin
22667
# Check whether --with-qt-includes or --without-qt-includes was given.
22668
if test "${with_qt_includes+set}" = set; then
22669
withval="$with_qt_includes"
22671
ac_qt_includes="$withval"
22675
kde_qt_libs_given=no
22678
# Check whether --with-qt-libraries or --without-qt-libraries was given.
22679
if test "${with_qt_libraries+set}" = set; then
22680
withval="$with_qt_libraries"
22681
ac_qt_libraries="$withval"
22682
kde_qt_libs_given=yes
22686
if test "${ac_cv_have_qt+set}" = set; then
22687
echo $ECHO_N "(cached) $ECHO_C" >&6
22689
#try to guess Qt locations
22692
for dir in $kde_qt_dirs; do
22693
qt_incdirs="$qt_incdirs $dir/include $dir"
22695
qt_incdirs="$QTINC $qt_incdirs /usr/local/qt/include /usr/include/qt /usr/include /usr/X11R6/include/X11/qt /usr/X11R6/include/qt /usr/X11R6/include/qt2 $x_includes"
22696
if test ! "$ac_qt_includes" = "NO"; then
22697
qt_incdirs="$ac_qt_includes $qt_incdirs"
22700
if test "$kde_qtver" != "1"; then
22701
kde_qt_header=qstyle.h
22703
kde_qt_header=qglobal.h
22708
for i in $qt_incdirs;
22710
for j in $kde_qt_header;
22712
echo "configure: 22712: $i/$j" >&5
22713
if test -r "$i/$j"; then
22714
echo "taking that" >&5
22721
ac_qt_includes="$qt_incdir"
22724
for dir in $kde_qt_dirs; do
22725
qt_libdirs="$qt_libdirs $dir/lib $dir"
22727
qt_libdirs="$QTLIB $qt_libdirs /usr/X11R6/lib /usr/lib /usr/local/qt/lib $x_libraries"
22728
if test ! "$ac_qt_libraries" = "NO"; then
22729
qt_libdir=$ac_qt_libraries
22731
qt_libdirs="$ac_qt_libraries $qt_libdirs"
22732
# if the Qt was given, the chance is too big that libqt.* doesn't exist
22734
for dir in $qt_libdirs; do
22735
try="ls -1 $dir/${LIBQT_GLOB}"
22736
if test -n "`$try 2> /dev/null`"; then qt_libdir=$dir; break; else echo "tried $dir" >&5 ; fi
22740
ac_qt_libraries="$qt_libdir"
22745
ac_cpp='$CXXCPP $CPPFLAGS'
22746
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22747
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22748
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22750
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22754
ac_cxxflags_safe="$CXXFLAGS"
22755
ac_ldflags_safe="$LDFLAGS"
22756
ac_libs_safe="$LIBS"
22758
CXXFLAGS="$CXXFLAGS -I$qt_incdir $all_includes"
22759
LDFLAGS="$LDFLAGS -L$qt_libdir $all_libraries $USER_LDFLAGS $KDE_MT_LDFLAGS"
22760
LIBS="$LIBS $LIBQT $KDE_MT_LIBS"
22764
cat > conftest.$ac_ext <<EOF
22765
#include "confdefs.h"
22766
#include <qglobal.h>
22767
#include <qapplication.h>
22769
if test "$kde_qtver" = "2"; then
22770
cat >> conftest.$ac_ext <<EOF
22771
#include <qevent.h>
22772
#include <qstring.h>
22773
#include <qstyle.h>
22776
if test $kde_qtsubver -gt 0; then
22777
cat >> conftest.$ac_ext <<EOF
22778
#include <qiconview.h>
22783
if test "$kde_qtver" = "3"; then
22784
cat >> conftest.$ac_ext <<EOF
22785
#include <qcursor.h>
22786
#include <qstylefactory.h>
22787
#include <private/qucomextra_p.h>
22791
echo "#if ! ($kde_qt_verstring)" >> conftest.$ac_ext
22792
cat >> conftest.$ac_ext <<EOF
22798
if test "$kde_qtver" = "2"; then
22799
cat >> conftest.$ac_ext <<EOF
22800
QStringList *t = new QStringList();
22803
if test $kde_qtsubver -gt 0; then
22804
cat >> conftest.$ac_ext <<EOF
22806
iv.setWordWrapIconText(false);
22808
s.setLatin1("Elvis is alive", 14);
22812
if test "$kde_qtver" = "3"; then
22813
cat >> conftest.$ac_ext <<EOF
22814
(void)QStyleFactory::create(QString::null);
22815
QCursor c(Qt::WhatsThisCursor);
22818
cat >> conftest.$ac_ext <<EOF
22824
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22825
(eval $ac_link) 2>&5
22827
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22828
(exit $ac_status); } && test -s conftest; then
22831
echo "configure: failed program was:" >&5
22832
cat conftest.$ac_ext >&5
22833
ac_qt_libraries="NO"
22836
CXXFLAGS="$ac_cxxflags_safe"
22837
LDFLAGS="$ac_ldflags_safe"
22838
LIBS="$ac_libs_safe"
22841
ac_cpp='$CPP $CPPFLAGS'
22842
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22843
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22844
ac_compiler_gnu=$ac_cv_c_compiler_gnu
22846
if test "$ac_qt_includes" = NO || test "$ac_qt_libraries" = NO; then
22847
ac_cv_have_qt="have_qt=no"
22850
if test "$ac_qt_includes" = NO; then
22851
if test "$ac_qt_libraries" = NO; then
22852
ac_qt_notfound="(headers and libraries)";
22854
ac_qt_notfound="(headers)";
22857
if test "x$kde_use_qt_mt" = "xyes"; then
22859
Make sure that you have compiled Qt with thread support!"
22860
ac_qt_notfound="(library $qtlib-mt)";
22862
ac_qt_notfound="(library $qtlib)";
22866
{ { echo "$as_me:$LINENO: error: Qt ($kde_qt_minversion) $ac_qt_notfound not found. Please check your installation!
22867
For more details about this problem, look at the end of config.log.$missing_qt_mt" >&5
22868
echo "$as_me: error: Qt ($kde_qt_minversion) $ac_qt_notfound not found. Please check your installation!
22869
For more details about this problem, look at the end of config.log.$missing_qt_mt" >&2;}
22870
{ (exit 1); exit 1; }; }
22878
eval "$ac_cv_have_qt"
22880
if test "$have_qt" != yes; then
22881
echo "$as_me:$LINENO: result: $have_qt" >&5
22882
echo "${ECHO_T}$have_qt" >&6;
22884
ac_cv_have_qt="have_qt=yes \
22885
ac_qt_includes=$ac_qt_includes ac_qt_libraries=$ac_qt_libraries"
22886
echo "$as_me:$LINENO: result: libraries $ac_qt_libraries, headers $ac_qt_includes $USING_QT_MT" >&5
22887
echo "${ECHO_T}libraries $ac_qt_libraries, headers $ac_qt_includes $USING_QT_MT" >&6
22889
qt_libraries="$ac_qt_libraries"
22890
qt_includes="$ac_qt_includes"
22893
if test ! "$kde_qt_libs_given" = "yes"; then
22896
echo "$as_me:$LINENO: checking if Qt compiles without flags" >&5
22897
echo $ECHO_N "checking if Qt compiles without flags... $ECHO_C" >&6
22898
if test "${kde_cv_qt_direct+set}" = set; then
22899
echo $ECHO_N "(cached) $ECHO_C" >&6
22905
ac_cpp='$CXXCPP $CPPFLAGS'
22906
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22907
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22908
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22910
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22913
ac_LD_LIBRARY_PATH_safe=$LD_LIBRARY_PATH
22914
ac_LIBRARY_PATH="$LIBRARY_PATH"
22915
ac_cxxflags_safe="$CXXFLAGS"
22916
ac_ldflags_safe="$LDFLAGS"
22917
ac_libs_safe="$LIBS"
22919
CXXFLAGS="$CXXFLAGS -I$qt_includes"
22920
LDFLAGS="$LDFLAGS $X_LDFLAGS"
22921
if test "x$kde_use_qt_emb" != "xyes"; then
22922
LIBS="$LIBQT -lXext -lX11 $LIBSOCKET"
22924
LIBS="$LIBQT $LIBSOCKET"
22927
export LD_LIBRARY_PATH
22929
export LIBRARY_PATH
22933
cat > conftest.$ac_ext <<EOF
22934
#include "confdefs.h"
22935
#include <qglobal.h>
22936
#include <qapplication.h>
22938
if test "$kde_qtver" = "2"; then
22939
cat >> conftest.$ac_ext <<EOF
22940
#include <qevent.h>
22941
#include <qstring.h>
22942
#include <qstyle.h>
22945
if test $kde_qtsubver -gt 0; then
22946
cat >> conftest.$ac_ext <<EOF
22947
#include <qiconview.h>
22952
if test "$kde_qtver" = "3"; then
22953
cat >> conftest.$ac_ext <<EOF
22954
#include <qcursor.h>
22955
#include <qstylefactory.h>
22956
#include <private/qucomextra_p.h>
22960
echo "#if ! ($kde_qt_verstring)" >> conftest.$ac_ext
22961
cat >> conftest.$ac_ext <<EOF
22967
if test "$kde_qtver" = "2"; then
22968
cat >> conftest.$ac_ext <<EOF
22969
QStringList *t = new QStringList();
22972
if test $kde_qtsubver -gt 0; then
22973
cat >> conftest.$ac_ext <<EOF
22975
iv.setWordWrapIconText(false);
22977
s.setLatin1("Elvis is alive", 14);
22981
if test "$kde_qtver" = "3"; then
22982
cat >> conftest.$ac_ext <<EOF
22983
(void)QStyleFactory::create(QString::null);
22984
QCursor c(Qt::WhatsThisCursor);
22987
cat >> conftest.$ac_ext <<EOF
22993
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22994
(eval $ac_link) 2>&5
22996
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22997
(exit $ac_status); } && test -s conftest; then
22998
kde_cv_qt_direct="yes"
23000
kde_cv_qt_direct="no"
23001
echo "configure: failed program was:" >&5
23002
cat conftest.$ac_ext >&5
23006
CXXFLAGS="$ac_cxxflags_safe"
23007
LDFLAGS="$ac_ldflags_safe"
23008
LIBS="$ac_libs_safe"
23010
LD_LIBRARY_PATH="$ac_LD_LIBRARY_PATH_safe"
23011
export LD_LIBRARY_PATH
23012
LIBRARY_PATH="$ac_LIBRARY_PATH"
23013
export LIBRARY_PATH
23015
ac_cpp='$CPP $CPPFLAGS'
23016
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23017
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23018
ac_compiler_gnu=$ac_cv_c_compiler_gnu
23024
if test "$kde_cv_qt_direct" = "yes"; then
23025
echo "$as_me:$LINENO: result: yes" >&5
23026
echo "${ECHO_T}yes" >&6
23029
echo "$as_me:$LINENO: result: no" >&5
23030
echo "${ECHO_T}no" >&6
23039
if test "$qt_includes" = "$x_includes" || test -z "$qt_includes"; then
23042
QT_INCLUDES="-I$qt_includes"
23043
all_includes="$QT_INCLUDES $all_includes"
23046
if test "$qt_libraries" = "$x_libraries" || test -z "$qt_libraries"; then
23049
QT_LDFLAGS="-L$qt_libraries"
23050
all_libraries="$all_libraries $QT_LDFLAGS"
23052
test -z "$KDE_MT_LDFLAGS" || all_libraries="$all_libraries $KDE_MT_LDFLAGS"
23058
for dir in $kde_qt_dirs; do
23059
qt_bindirs="$qt_bindirs $dir/bin $dir/src/moc"
23061
qt_bindirs="$qt_bindirs /usr/bin /usr/X11R6/bin /usr/local/qt/bin"
23062
if test ! "$ac_qt_bindir" = "NO"; then
23063
qt_bindirs="$ac_qt_bindir $qt_bindirs"
23067
echo "$as_me:$LINENO: checking for moc" >&5
23068
echo $ECHO_N "checking for moc... $ECHO_C" >&6
23069
if test -n "$MOC"; then
23070
kde_cv_path="$MOC";
23072
kde_cache=`echo moc | sed 'y%./+-%__p_%'`
23074
if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then
23075
echo $ECHO_N "(cached) $ECHO_C" >&6
23082
for dir in $PATH; do
23087
for dir in $dirs; do
23088
if test -x "$dir/moc"; then
23091
evalstr="$dir/moc 2>&1 "
23092
if eval $evalstr; then
23093
kde_cv_path="$dir/moc"
23097
kde_cv_path="$dir/moc"
23103
eval "kde_cv_path_$kde_cache=$kde_cv_path"
23109
eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
23113
if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
23114
echo "$as_me:$LINENO: result: not found" >&5
23115
echo "${ECHO_T}not found" >&6
23117
{ { echo "$as_me:$LINENO: error: No Qt meta object compiler (moc) found!
23118
Please check whether you installed Qt correctly.
23119
You need to have a running moc binary.
23120
configure tried to run $ac_cv_path_moc and the test didn't
23121
succeed. If configure shouldn't have tried this one, set
23122
the environment variable MOC to the right one before running
23125
echo "$as_me: error: No Qt meta object compiler (moc) found!
23126
Please check whether you installed Qt correctly.
23127
You need to have a running moc binary.
23128
configure tried to run $ac_cv_path_moc and the test didn't
23129
succeed. If configure shouldn't have tried this one, set
23130
the environment variable MOC to the right one before running
23133
{ (exit 1); exit 1; }; }
23136
echo "$as_me:$LINENO: result: $kde_cv_path" >&5
23137
echo "${ECHO_T}$kde_cv_path" >&6
23142
if test -z "$UIC_NOT_NEEDED"; then
23144
echo "$as_me:$LINENO: checking for uic" >&5
23145
echo $ECHO_N "checking for uic... $ECHO_C" >&6
23146
if test -n "$UIC"; then
23147
kde_cv_path="$UIC";
23149
kde_cache=`echo uic | sed 'y%./+-%__p_%'`
23151
if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then
23152
echo $ECHO_N "(cached) $ECHO_C" >&6
23159
for dir in $PATH; do
23164
for dir in $dirs; do
23165
if test -x "$dir/uic"; then
23168
evalstr="$dir/uic 2>&1 "
23169
if eval $evalstr; then
23170
kde_cv_path="$dir/uic"
23174
kde_cv_path="$dir/uic"
23180
eval "kde_cv_path_$kde_cache=$kde_cv_path"
23186
eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
23190
if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
23191
echo "$as_me:$LINENO: result: not found" >&5
23192
echo "${ECHO_T}not found" >&6
23195
echo "$as_me:$LINENO: result: $kde_cv_path" >&5
23196
echo "${ECHO_T}$kde_cv_path" >&6
23201
if test -z "$UIC" ; then
23203
{ echo "$as_me:$LINENO: WARNING: No Qt ui compiler (uic) found!
23204
Please check whether you installed Qt correctly.
23205
You need to have a running uic binary.
23206
configure tried to run $ac_cv_path_uic and the test didn't
23207
succeed. If configure shouldn't have tried this one, set
23208
the environment variable UIC to the right one before running
23211
echo "$as_me: WARNING: No Qt ui compiler (uic) found!
23212
Please check whether you installed Qt correctly.
23213
You need to have a running uic binary.
23214
configure tried to run $ac_cv_path_uic and the test didn't
23215
succeed. If configure shouldn't have tried this one, set
23216
the environment variable UIC to the right one before running
23221
elif test $kde_qtver = 3; then
23223
echo "$as_me:$LINENO: checking whether uic supports -L " >&5
23224
echo $ECHO_N "checking whether uic supports -L ... $ECHO_C" >&6
23225
kde_cache=`echo L | sed 'y% .=/+-%____p_%'`
23226
if eval "test \"\${kde_cv_prog_uic_$kde_cache+set}\" = set"; then
23227
echo $ECHO_N "(cached) $ECHO_C" >&6
23230
cat >conftest.ui <<EOT
23231
<!DOCTYPE UI><UI version="3" stdsetdef="1"></UI>
23233
ac_uic_testrun="$UIC -L /nonexistant conftest.ui >/dev/null"
23234
if { (eval echo "$as_me:$LINENO: \"$ac_uic_testrun\"") >&5
23235
(eval $ac_uic_testrun) 2>&5
23237
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23238
(exit $ac_status); }; then
23239
eval "kde_cv_prog_uic_$kde_cache=yes"
23241
eval "kde_cv_prog_uic_$kde_cache=no"
23248
if eval "test \"`echo '$kde_cv_prog_uic_'$kde_cache`\" = yes"; then
23249
echo "$as_me:$LINENO: result: yes" >&5
23250
echo "${ECHO_T}yes" >&6
23252
ac_uic_supports_libpath=yes
23254
echo "$as_me:$LINENO: result: no" >&5
23255
echo "${ECHO_T}no" >&6
23257
ac_uic_supports_libpath=no
23261
echo "$as_me:$LINENO: checking whether uic supports -nounload " >&5
23262
echo $ECHO_N "checking whether uic supports -nounload ... $ECHO_C" >&6
23263
kde_cache=`echo nounload | sed 'y% .=/+-%____p_%'`
23264
if eval "test \"\${kde_cv_prog_uic_$kde_cache+set}\" = set"; then
23265
echo $ECHO_N "(cached) $ECHO_C" >&6
23268
cat >conftest.ui <<EOT
23269
<!DOCTYPE UI><UI version="3" stdsetdef="1"></UI>
23271
ac_uic_testrun="$UIC -nounload conftest.ui >/dev/null"
23272
if { (eval echo "$as_me:$LINENO: \"$ac_uic_testrun\"") >&5
23273
(eval $ac_uic_testrun) 2>&5
23275
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23276
(exit $ac_status); }; then
23277
eval "kde_cv_prog_uic_$kde_cache=yes"
23279
eval "kde_cv_prog_uic_$kde_cache=no"
23286
if eval "test \"`echo '$kde_cv_prog_uic_'$kde_cache`\" = yes"; then
23287
echo "$as_me:$LINENO: result: yes" >&5
23288
echo "${ECHO_T}yes" >&6
23290
ac_uic_supports_nounload=yes
23292
echo "$as_me:$LINENO: result: no" >&5
23293
echo "${ECHO_T}no" >&6
23295
ac_uic_supports_nounload=no
23299
if test x$ac_uic_supports_libpath = xyes; then
23300
UIC="$UIC -L \$(kde_widgetdir)"
23302
if test x$ac_uic_supports_nounload = xyes; then
23303
UIC="$UIC -nounload"
23307
UIC="echo uic not available: "
23314
if test $kde_qtver = 3; then
23322
echo "$as_me:$LINENO: checking if Qt needs $LIBJPEG" >&5
23323
echo $ECHO_N "checking if Qt needs $LIBJPEG... $ECHO_C" >&6
23324
if test "${kde_cv_qt_jpeg+set}" = set; then
23325
echo $ECHO_N "(cached) $ECHO_C" >&6
23331
ac_cpp='$CXXCPP $CPPFLAGS'
23332
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23333
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23334
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23336
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
23339
ac_save_LIBS="$LIBS"
23340
LIBS="$all_libraries $USER_LDFLAGS $LIBQT"
23341
LIBS=`echo $LIBS | sed "s/$LIBJPEG//"`
23342
ac_save_CXXFLAGS="$CXXFLAGS"
23343
CXXFLAGS="$CXXFLAGS $all_includes $USER_INCLUDES"
23344
cat >conftest.$ac_ext <<_ACEOF
23345
#line $LINENO "configure"
23348
cat confdefs.h >>conftest.$ac_ext
23349
cat >>conftest.$ac_ext <<_ACEOF
23350
/* end confdefs.h. */
23351
#include <qapplication.h>
23358
QApplication app(argc, argv);
23363
rm -f conftest.$ac_objext conftest$ac_exeext
23364
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23365
(eval $ac_link) 2>&5
23367
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23368
(exit $ac_status); } &&
23369
{ ac_try='test -s conftest$ac_exeext'
23370
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23371
(eval $ac_try) 2>&5
23373
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23374
(exit $ac_status); }; }; then
23375
eval "kde_cv_qt_jpeg=no"
23377
echo "$as_me: failed program was:" >&5
23378
sed 's/^/| /' conftest.$ac_ext >&5
23380
eval "kde_cv_qt_jpeg=yes"
23382
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23383
LIBS="$ac_save_LIBS"
23384
CXXFLAGS="$ac_save_CXXFLAGS"
23386
ac_cpp='$CPP $CPPFLAGS'
23387
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23388
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23389
ac_compiler_gnu=$ac_cv_c_compiler_gnu
23395
if eval "test ! \"`echo $kde_cv_qt_jpeg`\" = no"; then
23396
echo "$as_me:$LINENO: result: yes" >&5
23397
echo "${ECHO_T}yes" >&6
23398
LIBJPEG_QT='$(LIBJPEG)'
23400
echo "$as_me:$LINENO: result: no" >&5
23401
echo "${ECHO_T}no" >&6
23407
if test "x$kde_use_qt_emb" != "xyes"; then
23408
LIB_QT="$kde_int_qt $LIBJPEG_QT "'$(LIBPNG) -lXext $(LIB_X11) $(LIBSM)'
23410
LIB_QT="$kde_int_qt $LIBJPEG_QT "'$(LIBPNG)'
23412
test -z "$KDE_MT_LIBS" || LIB_QT="$LIB_QT $KDE_MT_LIBS"
23427
DO_NOT_COMPILE="$DO_NOT_COMPILE CVS debian bsd-port admin"
23429
if test ! -s $srcdir/subdirs; then
23431
files=`cd $srcdir && ls -1`
23432
dirs=`for i in $files; do if test -d $i; then echo $i; fi; done`
23434
echo $i >> $srcdir/subdirs
23438
if test -s $srcdir/inst-apps; then
23439
ac_topsubdirs="`cat $srcdir/inst-apps`"
23441
ac_topsubdirs="`cat $srcdir/subdirs`"
23444
for i in $ac_topsubdirs; do
23445
echo "$as_me:$LINENO: checking if $i should be compiled" >&5
23446
echo $ECHO_N "checking if $i should be compiled... $ECHO_C" >&6
23447
if test -d $srcdir/$i; then
23449
for j in $DO_NOT_COMPILE; do
23450
if test $i = $j; then
23457
echo "$as_me:$LINENO: result: $install_it" >&5
23458
echo "${ECHO_T}$install_it" >&6
23459
vari=`echo $i | sed -e 's,[-+],_,g'`
23460
if test $install_it = "yes"; then
23461
TOPSUBDIRS="$TOPSUBDIRS $i"
23462
eval "$vari""_SUBDIR_included=yes"
23464
eval "$vari""_SUBDIR_included=no"
23471
ac_config_files="$ac_config_files Makefile"
23473
ac_config_files="$ac_config_files bookmarkbridge/Makefile"
23475
ac_config_files="$ac_config_files bookmarkbridge/docs/Makefile"
23477
ac_config_files="$ac_config_files bookmarkbridge/docs/en/Makefile"
4319
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4321
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4322
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4323
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4324
cat >>confdefs.h <<_ACEOF
4325
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4336
for ac_header in stdlib.h string.h unistd.h
4338
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4339
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4340
echo "$as_me:$LINENO: checking for $ac_header" >&5
4341
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4342
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4343
echo $ECHO_N "(cached) $ECHO_C" >&6
4345
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4346
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4348
# Is the header compilable?
4349
echo "$as_me:$LINENO: checking $ac_header usability" >&5
4350
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4351
cat >conftest.$ac_ext <<_ACEOF
4354
cat confdefs.h >>conftest.$ac_ext
4355
cat >>conftest.$ac_ext <<_ACEOF
4356
/* end confdefs.h. */
4357
$ac_includes_default
4358
#include <$ac_header>
4360
rm -f conftest.$ac_objext
4361
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4362
(eval $ac_compile) 2>conftest.er1
4364
grep -v '^ *+' conftest.er1 >conftest.err
4366
cat conftest.err >&5
4367
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368
(exit $ac_status); } &&
4369
{ ac_try='test -z "$ac_c_werror_flag"
4370
|| test ! -s conftest.err'
4371
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4374
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375
(exit $ac_status); }; } &&
4376
{ ac_try='test -s conftest.$ac_objext'
4377
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4380
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381
(exit $ac_status); }; }; then
4382
ac_header_compiler=yes
4384
echo "$as_me: failed program was:" >&5
4385
sed 's/^/| /' conftest.$ac_ext >&5
4387
ac_header_compiler=no
4389
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4390
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4391
echo "${ECHO_T}$ac_header_compiler" >&6
4393
# Is the header present?
4394
echo "$as_me:$LINENO: checking $ac_header presence" >&5
4395
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4396
cat >conftest.$ac_ext <<_ACEOF
4399
cat confdefs.h >>conftest.$ac_ext
4400
cat >>conftest.$ac_ext <<_ACEOF
4401
/* end confdefs.h. */
4402
#include <$ac_header>
4404
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4405
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4407
grep -v '^ *+' conftest.er1 >conftest.err
4409
cat conftest.err >&5
4410
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411
(exit $ac_status); } >/dev/null; then
4412
if test -s conftest.err; then
4413
ac_cpp_err=$ac_c_preproc_warn_flag
4414
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4421
if test -z "$ac_cpp_err"; then
4422
ac_header_preproc=yes
4424
echo "$as_me: failed program was:" >&5
4425
sed 's/^/| /' conftest.$ac_ext >&5
4427
ac_header_preproc=no
4429
rm -f conftest.err conftest.$ac_ext
4430
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4431
echo "${ECHO_T}$ac_header_preproc" >&6
4433
# So? What about this header?
4434
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4436
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4437
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4438
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4439
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4440
ac_header_preproc=yes
4443
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4444
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4445
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4446
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4447
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4448
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4449
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4450
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4451
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4452
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4453
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4454
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4457
## ------------------------------------------ ##
4458
## Report this to the AC_PACKAGE_NAME lists. ##
4459
## ------------------------------------------ ##
4462
sed "s/^/$as_me: WARNING: /" >&2
4465
echo "$as_me:$LINENO: checking for $ac_header" >&5
4466
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4467
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4468
echo $ECHO_N "(cached) $ECHO_C" >&6
4470
eval "$as_ac_Header=\$ac_header_preproc"
4472
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4473
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4476
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4477
cat >>confdefs.h <<_ACEOF
4478
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4486
echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
4487
echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
4488
if test "${ac_cv_header_stdbool_h+set}" = set; then
4489
echo $ECHO_N "(cached) $ECHO_C" >&6
4491
cat >conftest.$ac_ext <<_ACEOF
4494
cat confdefs.h >>conftest.$ac_ext
4495
cat >>conftest.$ac_ext <<_ACEOF
4496
/* end confdefs.h. */
4498
#include <stdbool.h>
4500
# error bool is not defined
4503
# error false is not defined
4506
# error false is not 0
4509
# error true is not defined
4512
# error true is not 1
4514
#ifndef __bool_true_false_are_defined
4515
# error __bool_true_false_are_defined is not defined
4518
struct s { _Bool s: 1; _Bool t; } s;
4520
char a[true == 1 ? 1 : -1];
4521
char b[false == 0 ? 1 : -1];
4522
char c[__bool_true_false_are_defined == 1 ? 1 : -1];
4523
char d[(bool) -0.5 == true ? 1 : -1];
4525
char f[(_Bool) -0.0 == false ? 1 : -1];
4527
char h[sizeof (_Bool)];
4533
return !a + !b + !c + !d + !e + !f + !g + !h + !i;
4538
rm -f conftest.$ac_objext
4539
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4540
(eval $ac_compile) 2>conftest.er1
4542
grep -v '^ *+' conftest.er1 >conftest.err
4544
cat conftest.err >&5
4545
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546
(exit $ac_status); } &&
4547
{ ac_try='test -z "$ac_c_werror_flag"
4548
|| test ! -s conftest.err'
4549
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4552
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553
(exit $ac_status); }; } &&
4554
{ ac_try='test -s conftest.$ac_objext'
4555
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4558
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559
(exit $ac_status); }; }; then
4560
ac_cv_header_stdbool_h=yes
4562
echo "$as_me: failed program was:" >&5
4563
sed 's/^/| /' conftest.$ac_ext >&5
4565
ac_cv_header_stdbool_h=no
4567
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4569
echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
4570
echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
4571
echo "$as_me:$LINENO: checking for _Bool" >&5
4572
echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
4573
if test "${ac_cv_type__Bool+set}" = set; then
4574
echo $ECHO_N "(cached) $ECHO_C" >&6
4576
cat >conftest.$ac_ext <<_ACEOF
4579
cat confdefs.h >>conftest.$ac_ext
4580
cat >>conftest.$ac_ext <<_ACEOF
4581
/* end confdefs.h. */
4582
$ac_includes_default
4594
rm -f conftest.$ac_objext
4595
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4596
(eval $ac_compile) 2>conftest.er1
4598
grep -v '^ *+' conftest.er1 >conftest.err
4600
cat conftest.err >&5
4601
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602
(exit $ac_status); } &&
4603
{ ac_try='test -z "$ac_c_werror_flag"
4604
|| test ! -s conftest.err'
4605
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4608
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609
(exit $ac_status); }; } &&
4610
{ ac_try='test -s conftest.$ac_objext'
4611
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4614
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4615
(exit $ac_status); }; }; then
4616
ac_cv_type__Bool=yes
4618
echo "$as_me: failed program was:" >&5
4619
sed 's/^/| /' conftest.$ac_ext >&5
4623
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4625
echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
4626
echo "${ECHO_T}$ac_cv_type__Bool" >&6
4627
if test $ac_cv_type__Bool = yes; then
4629
cat >>confdefs.h <<_ACEOF
4630
#define HAVE__BOOL 1
4636
if test $ac_cv_header_stdbool_h = yes; then
4638
cat >>confdefs.h <<\_ACEOF
4639
#define HAVE_STDBOOL_H 1
4644
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4645
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4646
if test "${ac_cv_c_const+set}" = set; then
4647
echo $ECHO_N "(cached) $ECHO_C" >&6
4649
cat >conftest.$ac_ext <<_ACEOF
4652
cat confdefs.h >>conftest.$ac_ext
4653
cat >>conftest.$ac_ext <<_ACEOF
4654
/* end confdefs.h. */
4659
/* FIXME: Include the comments suggested by Paul. */
4661
/* Ultrix mips cc rejects this. */
4662
typedef int charset[2];
4664
/* SunOS 4.1.1 cc rejects this. */
4665
char const *const *ccp;
4667
/* NEC SVR4.0.2 mips cc rejects this. */
4668
struct point {int x, y;};
4669
static struct point const zero = {0,0};
4670
/* AIX XL C 1.02.0.0 rejects this.
4671
It does not let you subtract one const X* pointer from another in
4672
an arm of an if-expression whose if-part is not a constant
4674
const char *g = "string";
4675
ccp = &g + (g ? g-g : 0);
4676
/* HPUX 7.0 cc rejects these. */
4679
ccp = (char const *const *) p;
4680
{ /* SCO 3.2v4 cc rejects this. */
4682
char const *s = 0 ? (char *) 0 : (char const *) 0;
4686
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4688
const int *foo = &x[0];
4691
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4692
typedef const int *iptr;
4696
{ /* AIX XL C 1.02.0.0 rejects this saying
4697
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4698
struct s { int j; const int *ap[3]; };
4699
struct s *b; b->j = 5;
4701
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4710
rm -f conftest.$ac_objext
4711
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4712
(eval $ac_compile) 2>conftest.er1
4714
grep -v '^ *+' conftest.er1 >conftest.err
4716
cat conftest.err >&5
4717
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718
(exit $ac_status); } &&
4719
{ ac_try='test -z "$ac_c_werror_flag"
4720
|| test ! -s conftest.err'
4721
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4724
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4725
(exit $ac_status); }; } &&
4726
{ ac_try='test -s conftest.$ac_objext'
4727
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4730
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4731
(exit $ac_status); }; }; then
4734
echo "$as_me: failed program was:" >&5
4735
sed 's/^/| /' conftest.$ac_ext >&5
4739
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4741
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4742
echo "${ECHO_T}$ac_cv_c_const" >&6
4743
if test $ac_cv_c_const = no; then
4745
cat >>confdefs.h <<\_ACEOF
4751
echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
4752
echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
4753
if test "${ac_cv_struct_tm+set}" = set; then
4754
echo $ECHO_N "(cached) $ECHO_C" >&6
4756
cat >conftest.$ac_ext <<_ACEOF
4759
cat confdefs.h >>conftest.$ac_ext
4760
cat >>conftest.$ac_ext <<_ACEOF
4761
/* end confdefs.h. */
4762
#include <sys/types.h>
4768
struct tm *tp; tp->tm_sec;
4773
rm -f conftest.$ac_objext
4774
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4775
(eval $ac_compile) 2>conftest.er1
4777
grep -v '^ *+' conftest.er1 >conftest.err
4779
cat conftest.err >&5
4780
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781
(exit $ac_status); } &&
4782
{ ac_try='test -z "$ac_c_werror_flag"
4783
|| test ! -s conftest.err'
4784
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4787
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4788
(exit $ac_status); }; } &&
4789
{ ac_try='test -s conftest.$ac_objext'
4790
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4793
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4794
(exit $ac_status); }; }; then
4795
ac_cv_struct_tm=time.h
4797
echo "$as_me: failed program was:" >&5
4798
sed 's/^/| /' conftest.$ac_ext >&5
4800
ac_cv_struct_tm=sys/time.h
4802
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4804
echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
4805
echo "${ECHO_T}$ac_cv_struct_tm" >&6
4806
if test $ac_cv_struct_tm = sys/time.h; then
4808
cat >>confdefs.h <<\_ACEOF
4809
#define TM_IN_SYS_TIME 1
4816
for ac_func in vprintf
4818
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4819
echo "$as_me:$LINENO: checking for $ac_func" >&5
4820
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4821
if eval "test \"\${$as_ac_var+set}\" = set"; then
4822
echo $ECHO_N "(cached) $ECHO_C" >&6
4824
cat >conftest.$ac_ext <<_ACEOF
4827
cat confdefs.h >>conftest.$ac_ext
4828
cat >>conftest.$ac_ext <<_ACEOF
4829
/* end confdefs.h. */
4830
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4831
For example, HP-UX 11i <limits.h> declares gettimeofday. */
4832
#define $ac_func innocuous_$ac_func
4834
/* System header to define __stub macros and hopefully few prototypes,
4835
which can conflict with char $ac_func (); below.
4836
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4837
<limits.h> exists even on freestanding compilers. */
4840
# include <limits.h>
4842
# include <assert.h>
4847
/* Override any gcc2 internal prototype to avoid an error. */
4852
/* We use char because int might match the return type of a gcc2
4853
builtin and then its argument prototype would still apply. */
4855
/* The GNU C library defines this for functions which it implements
4856
to always fail with ENOSYS. Some functions are actually named
4857
something starting with __ and the normal name is an alias. */
4858
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4861
char (*f) () = $ac_func;
4870
return f != $ac_func;
4875
rm -f conftest.$ac_objext conftest$ac_exeext
4876
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4877
(eval $ac_link) 2>conftest.er1
4879
grep -v '^ *+' conftest.er1 >conftest.err
4881
cat conftest.err >&5
4882
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4883
(exit $ac_status); } &&
4884
{ ac_try='test -z "$ac_c_werror_flag"
4885
|| test ! -s conftest.err'
4886
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4889
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890
(exit $ac_status); }; } &&
4891
{ ac_try='test -s conftest$ac_exeext'
4892
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4895
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896
(exit $ac_status); }; }; then
4897
eval "$as_ac_var=yes"
4899
echo "$as_me: failed program was:" >&5
4900
sed 's/^/| /' conftest.$ac_ext >&5
4902
eval "$as_ac_var=no"
4904
rm -f conftest.err conftest.$ac_objext \
4905
conftest$ac_exeext conftest.$ac_ext
4907
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4908
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4909
if test `eval echo '${'$as_ac_var'}'` = yes; then
4910
cat >>confdefs.h <<_ACEOF
4911
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4914
echo "$as_me:$LINENO: checking for _doprnt" >&5
4915
echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
4916
if test "${ac_cv_func__doprnt+set}" = set; then
4917
echo $ECHO_N "(cached) $ECHO_C" >&6
4919
cat >conftest.$ac_ext <<_ACEOF
4922
cat confdefs.h >>conftest.$ac_ext
4923
cat >>conftest.$ac_ext <<_ACEOF
4924
/* end confdefs.h. */
4925
/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
4926
For example, HP-UX 11i <limits.h> declares gettimeofday. */
4927
#define _doprnt innocuous__doprnt
4929
/* System header to define __stub macros and hopefully few prototypes,
4930
which can conflict with char _doprnt (); below.
4931
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4932
<limits.h> exists even on freestanding compilers. */
4935
# include <limits.h>
4937
# include <assert.h>
4942
/* Override any gcc2 internal prototype to avoid an error. */
4947
/* We use char because int might match the return type of a gcc2
4948
builtin and then its argument prototype would still apply. */
4950
/* The GNU C library defines this for functions which it implements
4951
to always fail with ENOSYS. Some functions are actually named
4952
something starting with __ and the normal name is an alias. */
4953
#if defined (__stub__doprnt) || defined (__stub____doprnt)
4956
char (*f) () = _doprnt;
4965
return f != _doprnt;
4970
rm -f conftest.$ac_objext conftest$ac_exeext
4971
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4972
(eval $ac_link) 2>conftest.er1
4974
grep -v '^ *+' conftest.er1 >conftest.err
4976
cat conftest.err >&5
4977
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4978
(exit $ac_status); } &&
4979
{ ac_try='test -z "$ac_c_werror_flag"
4980
|| test ! -s conftest.err'
4981
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4984
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985
(exit $ac_status); }; } &&
4986
{ ac_try='test -s conftest$ac_exeext'
4987
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4990
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4991
(exit $ac_status); }; }; then
4992
ac_cv_func__doprnt=yes
4994
echo "$as_me: failed program was:" >&5
4995
sed 's/^/| /' conftest.$ac_ext >&5
4997
ac_cv_func__doprnt=no
4999
rm -f conftest.err conftest.$ac_objext \
5000
conftest$ac_exeext conftest.$ac_ext
5002
echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
5003
echo "${ECHO_T}$ac_cv_func__doprnt" >&6
5004
if test $ac_cv_func__doprnt = yes; then
5006
cat >>confdefs.h <<\_ACEOF
5007
#define HAVE_DOPRNT 1
5020
for ac_func in memset mkdir rmdir strchr
5022
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5023
echo "$as_me:$LINENO: checking for $ac_func" >&5
5024
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5025
if eval "test \"\${$as_ac_var+set}\" = set"; then
5026
echo $ECHO_N "(cached) $ECHO_C" >&6
5028
cat >conftest.$ac_ext <<_ACEOF
5031
cat confdefs.h >>conftest.$ac_ext
5032
cat >>conftest.$ac_ext <<_ACEOF
5033
/* end confdefs.h. */
5034
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5035
For example, HP-UX 11i <limits.h> declares gettimeofday. */
5036
#define $ac_func innocuous_$ac_func
5038
/* System header to define __stub macros and hopefully few prototypes,
5039
which can conflict with char $ac_func (); below.
5040
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5041
<limits.h> exists even on freestanding compilers. */
5044
# include <limits.h>
5046
# include <assert.h>
5051
/* Override any gcc2 internal prototype to avoid an error. */
5056
/* We use char because int might match the return type of a gcc2
5057
builtin and then its argument prototype would still apply. */
5059
/* The GNU C library defines this for functions which it implements
5060
to always fail with ENOSYS. Some functions are actually named
5061
something starting with __ and the normal name is an alias. */
5062
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5065
char (*f) () = $ac_func;
5074
return f != $ac_func;
5079
rm -f conftest.$ac_objext conftest$ac_exeext
5080
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5081
(eval $ac_link) 2>conftest.er1
5083
grep -v '^ *+' conftest.er1 >conftest.err
5085
cat conftest.err >&5
5086
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5087
(exit $ac_status); } &&
5088
{ ac_try='test -z "$ac_c_werror_flag"
5089
|| test ! -s conftest.err'
5090
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5093
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094
(exit $ac_status); }; } &&
5095
{ ac_try='test -s conftest$ac_exeext'
5096
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5099
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5100
(exit $ac_status); }; }; then
5101
eval "$as_ac_var=yes"
5103
echo "$as_me: failed program was:" >&5
5104
sed 's/^/| /' conftest.$ac_ext >&5
5106
eval "$as_ac_var=no"
5108
rm -f conftest.err conftest.$ac_objext \
5109
conftest$ac_exeext conftest.$ac_ext
5111
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5112
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5113
if test `eval echo '${'$as_ac_var'}'` = yes; then
5114
cat >>confdefs.h <<_ACEOF
5115
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5122
ac_config_files="$ac_config_files Makefile bookmarkbridge/Makefile bookmarkbridge/docs/Makefile bookmarkbridge/docs/en/Makefile"
23479
5125
cat >confcache <<\_ACEOF
23480
5126
# This file is a shell script that caches the results of configure