configure 759 KB
Newer Older
16001
16002
16003
16004
16005
  case $lt_echo in
  *'\$0 --fallback-echo"')
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
    ;;
  esac
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16006

16007
cfgfile="$ofile"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16008

16009
16010
  cat <<__EOF__ >> "$cfgfile"
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16011

16012
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16013

16014
16015
# Shell to use when invoking shell scripts.
SHELL=$lt_SHELL
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16016

16017
16018
# Whether or not to build shared libraries.
build_libtool_libs=$enable_shared
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16019

16020
16021
# Whether or not to build static libraries.
build_old_libs=$enable_static
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16022

16023
16024
# Whether or not to add -lc for building shared libraries.
build_libtool_need_lc=$archive_cmds_need_lc_F77
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16025

16026
16027
# Whether or not to disallow shared libs when runtime libs are static
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16028

16029
16030
# Whether or not to optimize for fast installation.
fast_install=$enable_fast_install
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16031

16032
16033
16034
16035
# The host system.
host_alias=$host_alias
host=$host
host_os=$host_os
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16036

16037
16038
16039
16040
# The build system.
build_alias=$build_alias
build=$build
build_os=$build_os
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16041

16042
16043
# An echo program that does not interpret backslashes.
echo=$lt_echo
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16044

16045
16046
16047
# The archiver.
AR=$lt_AR
AR_FLAGS=$lt_AR_FLAGS
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16048

16049
16050
# A C compiler.
LTCC=$lt_LTCC
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16051

16052
16053
# LTCC compiler flags.
LTCFLAGS=$lt_LTCFLAGS
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16054

16055
16056
# A language-specific compiler.
CC=$lt_compiler_F77
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16057

16058
16059
16060
16061
16062
16063
16064
16065
# Is the compiler the GNU C compiler?
with_gcc=$GCC_F77

# An ERE matcher.
EGREP=$lt_EGREP

# The linker used to build libraries.
LD=$lt_LD_F77
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16066

16067
16068
# Whether we need hard or soft links.
LN_S=$lt_LN_S
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16069

16070
16071
# A BSD-compatible nm program.
NM=$lt_NM
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16072

16073
16074
# A symbol stripping program
STRIP=$lt_STRIP
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16075

16076
16077
# Used to examine libraries when file_magic_cmd begins "file"
MAGIC_CMD=$MAGIC_CMD
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16078

16079
16080
# Used on cygwin: DLL creation program.
DLLTOOL="$DLLTOOL"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16081

16082
16083
# Used on cygwin: object dumper.
OBJDUMP="$OBJDUMP"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16084

16085
16086
# Used on cygwin: assembler.
AS="$AS"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16087

16088
16089
# The name of the directory that contains temporary libtool files.
objdir=$objdir
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16090

16091
16092
16093
# How to create reloadable object files.
reload_flag=$lt_reload_flag
reload_cmds=$lt_reload_cmds
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16094

16095
16096
# How to pass a linker flag through the compiler.
wl=$lt_lt_prog_compiler_wl_F77
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16097

16098
16099
# Object file suffix (normally "o").
objext="$ac_objext"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16100

16101
16102
# Old archive suffix (normally "a").
libext="$libext"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16103

16104
16105
# Shared library suffix (normally ".so").
shrext_cmds='$shrext_cmds'
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16106

16107
16108
# Executable file suffix (normally "").
exeext="$exeext"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16109

16110
16111
16112
# Additional compiler flags for building library objects.
pic_flag=$lt_lt_prog_compiler_pic_F77
pic_mode=$pic_mode
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16113

16114
16115
# What is the maximum length of a command?
max_cmd_len=$lt_cv_sys_max_cmd_len
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16116

16117
16118
# Does compiler simultaneously support -c and -o options?
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16119

16120
16121
# Must we lock files when doing compilation?
need_locks=$lt_need_locks
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16122

16123
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133
16134
16135
16136
# Do we need the lib prefix for modules?
need_lib_prefix=$need_lib_prefix

# Do we need a version for libraries?
need_version=$need_version

# Whether dlopen is supported.
dlopen_support=$enable_dlopen

# Whether dlopen of programs is supported.
dlopen_self=$enable_dlopen_self

# Whether dlopen of statically linked programs is supported.
dlopen_self_static=$enable_dlopen_self_static
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16137

16138
16139
# Compiler flag to prevent dynamic linking.
link_static_flag=$lt_lt_prog_compiler_static_F77
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16140

16141
16142
# Compiler flag to turn off builtin functions.
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16143

16144
16145
# Compiler flag to allow reflexive dlopens.
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16146

16147
16148
# Compiler flag to generate shared objects directly from archives.
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16149

16150
16151
# Compiler flag to generate thread-safe objects.
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16152

16153
16154
# Library versioning type.
version_type=$version_type
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16155

16156
16157
# Format of library name prefix.
libname_spec=$lt_libname_spec
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16158

16159
16160
16161
# List of archive names.  First name is the real one, the rest are links.
# The last name is the one that the linker finds with -lNAME.
library_names_spec=$lt_library_names_spec
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16162

16163
16164
# The coded name of the library, if different from the real name.
soname_spec=$lt_soname_spec
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16165

16166
16167
16168
16169
16170
# Commands used to build and install an old-style archive.
RANLIB=$lt_RANLIB
old_archive_cmds=$lt_old_archive_cmds_F77
old_postinstall_cmds=$lt_old_postinstall_cmds
old_postuninstall_cmds=$lt_old_postuninstall_cmds
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16171

16172
16173
# Create an old-style archive from a shared archive.
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16174

16175
16176
# Create a temporary old-style archive to link instead of a shared archive.
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16177

16178
16179
16180
16181
16182
# Commands used to build and install a shared archive.
archive_cmds=$lt_archive_cmds_F77
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
postinstall_cmds=$lt_postinstall_cmds
postuninstall_cmds=$lt_postuninstall_cmds
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16183

16184
16185
16186
16187
16188
16189
16190
16191
16192
16193
16194
16195
16196
16197
16198
16199
16200
16201
16202
16203
16204
16205
16206
# Commands used to build a loadable module (assumed same as above if empty)
module_cmds=$lt_module_cmds_F77
module_expsym_cmds=$lt_module_expsym_cmds_F77

# Commands to strip libraries.
old_striplib=$lt_old_striplib
striplib=$lt_striplib

# Dependencies to place before the objects being linked to create a
# shared library.
predep_objects=$lt_predep_objects_F77

# Dependencies to place after the objects being linked to create a
# shared library.
postdep_objects=$lt_postdep_objects_F77

# Dependencies to place before the objects being linked to create a
# shared library.
predeps=$lt_predeps_F77

# Dependencies to place after the objects being linked to create a
# shared library.
postdeps=$lt_postdeps_F77
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16207

16208
16209
16210
# The library search path used internally by the compiler when linking
# a shared library.
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16211

16212
16213
# Method to check whether dependent libraries are shared objects.
deplibs_check_method=$lt_deplibs_check_method
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16214

16215
16216
# Command to use when deplibs_check_method == file_magic.
file_magic_cmd=$lt_file_magic_cmd
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16217

16218
16219
# Flag that allows shared libraries with undefined symbols to be built.
allow_undefined_flag=$lt_allow_undefined_flag_F77
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16220

16221
16222
# Flag that forces no undefined symbols.
no_undefined_flag=$lt_no_undefined_flag_F77
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16223

16224
16225
# Commands used to finish a libtool library installation in a directory.
finish_cmds=$lt_finish_cmds
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16226

16227
16228
# Same as above, but a single script fragment to be evaled but not shown.
finish_eval=$lt_finish_eval
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16229

16230
16231
# Take the output of nm and produce a listing of raw symbols and C names.
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16232

16233
16234
# Transform the output of nm in a proper C declaration
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16235

16236
16237
# Transform the output of nm in a C name address pair
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16238

16239
16240
# This is the shared library runtime path variable.
runpath_var=$runpath_var
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16241

16242
16243
# This is the shared library path variable.
shlibpath_var=$shlibpath_var
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16244

16245
16246
# Is shlibpath searched before the hard-coded library search path?
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16247

16248
16249
# How to hardcode a shared library path into an executable.
hardcode_action=$hardcode_action_F77
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16250

16251
16252
16253
16254
16255
16256
16257
16258
16259
16260
16261
16262
16263
16264
16265
16266
16267
16268
16269
16270
16271
16272
16273
16274
16275
16276
16277
16278
16279
16280
16281
16282
16283
16284
16285
16286
16287
16288
16289
16290
16291
16292
16293
16294
16295
16296
# Whether we should hardcode library paths into libraries.
hardcode_into_libs=$hardcode_into_libs

# Flag to hardcode \$libdir into a binary during linking.
# This must work even if \$libdir does not exist.
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77

# If ld is used when linking, flag to hardcode \$libdir into
# a binary during linking. This must work even if \$libdir does
# not exist.
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77

# Whether we need a single -rpath flag with a separated argument.
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77

# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
# resulting binary.
hardcode_direct=$hardcode_direct_F77

# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
# resulting binary.
hardcode_minus_L=$hardcode_minus_L_F77

# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
# the resulting binary.
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77

# Set to yes if building a shared library automatically hardcodes DIR into the library
# and all subsequent libraries and executables linked against it.
hardcode_automatic=$hardcode_automatic_F77

# Variables whose values should be saved in libtool wrapper scripts and
# restored at relink time.
variables_saved_for_relink="$variables_saved_for_relink"

# Whether libtool must link a program against all its dependency libraries.
link_all_deplibs=$link_all_deplibs_F77

# Compile-time system search path for libraries
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec

# Run-time system search path for libraries
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec

# Fix the shell variable \$srcfile for the compiler.
fix_srcfile_path=$lt_fix_srcfile_path
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16297

16298
16299
# Set to yes if exported symbols are required.
always_export_symbols=$always_export_symbols_F77
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16300

16301
16302
# The commands to list exported symbols.
export_symbols_cmds=$lt_export_symbols_cmds_F77
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16303

16304
16305
# The commands to extract the exported symbol list from a shared archive.
extract_expsyms_cmds=$lt_extract_expsyms_cmds
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16306

16307
16308
# Symbols that should not be listed in the preloaded symbols.
exclude_expsyms=$lt_exclude_expsyms_F77
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16309

16310
16311
# Symbols that must always be exported.
include_expsyms=$lt_include_expsyms_F77
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16312

16313
# ### END LIBTOOL TAG CONFIG: $tagname
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16314

16315
__EOF__
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16316
16317


16318
16319
16320
16321
16322
16323
16324
16325
else
  # If there is no Makefile yet, we rely on a make rule to execute
  # `config.status --recheck' to rerun these tests and create the
  # libtool script then.
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  if test -f "$ltmain_in"; then
    test -f Makefile && make "$ltmain"
  fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16326
16327
16328
fi


16329
16330
16331
16332
16333
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16334

16335
CC="$lt_save_CC"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16336

16337
16338
16339
16340
	else
	  tagname=""
	fi
	;;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16341

16342
16343
      GCJ)
	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16344
16345


16346
16347
# Source file extension for Java test sources.
ac_ext=java
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16348

16349
16350
16351
# Object file extension for compiled Java test sources.
objext=o
objext_GCJ=$objext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16352

16353
16354
# Code to be used in simple compile tests
lt_simple_compile_test_code="class foo {}"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16355

16356
16357
# Code to be used in simple link tests
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16358

16359
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16360

16361
16362
# If no C compiler was specified, use CC.
LTCC=${LTCC-"$CC"}
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16363

16364
16365
# If no C compiler flags were specified, use CFLAGS.
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16366

16367
16368
# Allow CC to be a program name with arguments.
compiler=$CC
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16369
16370


16371
16372
16373
16374
16375
16376
# save warnings/boilerplate of simple test code
ac_outfile=conftest.$ac_objext
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
_lt_compiler_boilerplate=`cat conftest.err`
$rm conftest*
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16377

16378
16379
16380
16381
16382
ac_outfile=conftest.$ac_objext
echo "$lt_simple_link_test_code" >conftest.$ac_ext
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
_lt_linker_boilerplate=`cat conftest.err`
$rm conftest*
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16383
16384


16385
16386
16387
16388
16389
16390
16391
16392
16393
16394
16395
16396
16397
16398
# Allow CC to be a program name with arguments.
lt_save_CC="$CC"
CC=${GCJ-"gcj"}
compiler=$CC
compiler_GCJ=$CC
for cc_temp in $compiler""; do
  case $cc_temp in
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
    \-*) ;;
    *) break;;
  esac
done
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16399
16400


16401
16402
# GCJ did not exist at the time GCC didn't implicitly link libc in.
archive_cmds_need_lc_GCJ=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16403

16404
old_archive_cmds_GCJ=$old_archive_cmds
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16405
16406


16407
lt_prog_compiler_no_builtin_flag_GCJ=
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16408

16409
16410
if test "$GCC" = yes; then
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16411
16412


16413
16414
16415
16416
16417
16418
16419
16420
16421
16422
16423
16424
16425
16426
16427
16428
16429
16430
16431
16432
16433
16434
16435
16436
16437
16438
16439
16440
16441
16442
16443
16444
16445
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_rtti_exceptions=no
  ac_outfile=conftest.$ac_objext
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   lt_compiler_flag="-fno-rtti -fno-exceptions"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   # The option is referenced via a variable to avoid confusing sed.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:16431: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>conftest.err)
   ac_status=$?
   cat conftest.err >&5
   echo "$as_me:16435: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s "$ac_outfile"; then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings other than the usual output.
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
       lt_cv_prog_compiler_rtti_exceptions=yes
     fi
   fi
   $rm conftest*
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16446

16447
16448
16449
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16450

16451
16452
16453
16454
16455
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
else
    :
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16456

16457
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16458

16459
16460
16461
lt_prog_compiler_wl_GCJ=
lt_prog_compiler_pic_GCJ=
lt_prog_compiler_static_GCJ=
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16462

16463
16464
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16465

16466
16467
16468
  if test "$GCC" = yes; then
    lt_prog_compiler_wl_GCJ='-Wl,'
    lt_prog_compiler_static_GCJ='-static'
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16469

16470
16471
16472
16473
16474
16475
16476
16477
    case $host_os in
      aix*)
      # All AIX code is PIC.
      if test "$host_cpu" = ia64; then
	# AIX 5 now supports IA64 processor
	lt_prog_compiler_static_GCJ='-Bstatic'
      fi
      ;;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16478

16479
16480
16481
16482
16483
16484
    amigaos*)
      # FIXME: we need at least 68020 code to build shared libraries, but
      # adding the `-m68020' flag to GCC prevents building anything better,
      # like `-m68040'.
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
      ;;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16485

16486
16487
16488
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
      # PIC is the default for these OSes.
      ;;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16489

16490
16491
16492
16493
16494
16495
16496
    mingw* | cygwin* | pw32* | os2*)
      # This hack is so that the source file can tell whether it is being
      # built for inclusion in a dll (and should export symbols for example).
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
      # (--disable-auto-import) libraries
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
      ;;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16497

16498
16499
16500
16501
16502
    darwin* | rhapsody*)
      # PIC is the default on this platform
      # Common symbols not allowed in MH_DYLIB files
      lt_prog_compiler_pic_GCJ='-fno-common'
      ;;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16503

16504
16505
16506
16507
    interix[3-9]*)
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
      # Instead, we relocate shared libraries at runtime.
      ;;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16508

16509
16510
16511
16512
16513
16514
    msdosdjgpp*)
      # Just because we use GCC doesn't mean we suddenly get shared libraries
      # on systems that don't support them.
      lt_prog_compiler_can_build_shared_GCJ=no
      enable_shared=no
      ;;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16515

16516
16517
16518
16519
16520
    sysv4*MP*)
      if test -d /usr/nec; then
	lt_prog_compiler_pic_GCJ=-Kconform_pic
      fi
      ;;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16521

16522
16523
16524
16525
16526
16527
16528
16529
16530
16531
16532
16533
    hpux*)
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
      # not for PA HP-UX.
      case $host_cpu in
      hppa*64*|ia64*)
	# +Z the default
	;;
      *)
	lt_prog_compiler_pic_GCJ='-fPIC'
	;;
      esac
      ;;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16534

16535
16536
16537
16538
16539
16540
16541
16542
16543
16544
16545
16546
16547
16548
16549
16550
16551
16552
16553
16554
16555
16556
16557
16558
16559
16560
    *)
      lt_prog_compiler_pic_GCJ='-fPIC'
      ;;
    esac
  else
    # PORTME Check for flag to pass linker flags through the system compiler.
    case $host_os in
    aix*)
      lt_prog_compiler_wl_GCJ='-Wl,'
      if test "$host_cpu" = ia64; then
	# AIX 5 now supports IA64 processor
	lt_prog_compiler_static_GCJ='-Bstatic'
      else
	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
      fi
      ;;
      darwin*)
        # PIC is the default on this platform
        # Common symbols not allowed in MH_DYLIB files
       case $cc_basename in
         xlc*)
         lt_prog_compiler_pic_GCJ='-qnocommon'
         lt_prog_compiler_wl_GCJ='-Wl,'
         ;;
       esac
       ;;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16561

16562
16563
16564
16565
16566
    mingw* | cygwin* | pw32* | os2*)
      # This hack is so that the source file can tell whether it is being
      # built for inclusion in a dll (and should export symbols for example).
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
      ;;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16567

16568
16569
16570
16571
16572
16573
16574
16575
16576
16577
16578
16579
16580
16581
16582
    hpux9* | hpux10* | hpux11*)
      lt_prog_compiler_wl_GCJ='-Wl,'
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
      # not for PA HP-UX.
      case $host_cpu in
      hppa*64*|ia64*)
	# +Z the default
	;;
      *)
	lt_prog_compiler_pic_GCJ='+Z'
	;;
      esac
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
      ;;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16583

16584
16585
16586
16587
16588
    irix5* | irix6* | nonstopux*)
      lt_prog_compiler_wl_GCJ='-Wl,'
      # PIC (with -KPIC) is the default.
      lt_prog_compiler_static_GCJ='-non_shared'
      ;;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16589

16590
16591
16592
16593
    newsos6)
      lt_prog_compiler_pic_GCJ='-KPIC'
      lt_prog_compiler_static_GCJ='-Bstatic'
      ;;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16594

16595
16596
16597
16598
16599
16600
16601
16602
16603
16604
16605
16606
16607
16608
16609
16610
16611
16612
16613
16614
16615
16616
16617
16618
16619
16620
16621
16622
16623
16624
16625
16626
16627
16628
16629
16630
16631
    linux* | k*bsd*-gnu)
      case $cc_basename in
      icc* | ecc*)
	lt_prog_compiler_wl_GCJ='-Wl,'
	lt_prog_compiler_pic_GCJ='-KPIC'
	lt_prog_compiler_static_GCJ='-static'
        ;;
      pgcc* | pgf77* | pgf90* | pgf95*)
        # Portland Group compilers (*not* the Pentium gcc compiler,
	# which looks to be a dead project)
	lt_prog_compiler_wl_GCJ='-Wl,'
	lt_prog_compiler_pic_GCJ='-fpic'
	lt_prog_compiler_static_GCJ='-Bstatic'
        ;;
      ccc*)
        lt_prog_compiler_wl_GCJ='-Wl,'
        # All Alpha code is PIC.
        lt_prog_compiler_static_GCJ='-non_shared'
        ;;
      *)
        case `$CC -V 2>&1 | sed 5q` in
	*Sun\ C*)
	  # Sun C 5.9
	  lt_prog_compiler_pic_GCJ='-KPIC'
	  lt_prog_compiler_static_GCJ='-Bstatic'
	  lt_prog_compiler_wl_GCJ='-Wl,'
	  ;;
	*Sun\ F*)
	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
	  lt_prog_compiler_pic_GCJ='-KPIC'
	  lt_prog_compiler_static_GCJ='-Bstatic'
	  lt_prog_compiler_wl_GCJ=''
	  ;;
	esac
	;;
      esac
      ;;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16632

16633
16634
16635
16636
16637
    osf3* | osf4* | osf5*)
      lt_prog_compiler_wl_GCJ='-Wl,'
      # All OSF/1 code is PIC.
      lt_prog_compiler_static_GCJ='-non_shared'
      ;;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16638

16639
16640
16641
    rdos*)
      lt_prog_compiler_static_GCJ='-non_shared'
      ;;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16642

16643
16644
16645
16646
16647
16648
16649
16650
16651
16652
    solaris*)
      lt_prog_compiler_pic_GCJ='-KPIC'
      lt_prog_compiler_static_GCJ='-Bstatic'
      case $cc_basename in
      f77* | f90* | f95*)
	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
      *)
	lt_prog_compiler_wl_GCJ='-Wl,';;
      esac
      ;;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16653

16654
16655
16656
16657
16658
    sunos4*)
      lt_prog_compiler_wl_GCJ='-Qoption ld '
      lt_prog_compiler_pic_GCJ='-PIC'
      lt_prog_compiler_static_GCJ='-Bstatic'
      ;;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16659

16660
16661
16662
16663
16664
    sysv4 | sysv4.2uw2* | sysv4.3*)
      lt_prog_compiler_wl_GCJ='-Wl,'
      lt_prog_compiler_pic_GCJ='-KPIC'
      lt_prog_compiler_static_GCJ='-Bstatic'
      ;;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16665

16666
16667
16668
16669
16670
16671
    sysv4*MP*)
      if test -d /usr/nec ;then
	lt_prog_compiler_pic_GCJ='-Kconform_pic'
	lt_prog_compiler_static_GCJ='-Bstatic'
      fi
      ;;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16672

16673
16674
16675
16676
16677
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
      lt_prog_compiler_wl_GCJ='-Wl,'
      lt_prog_compiler_pic_GCJ='-KPIC'
      lt_prog_compiler_static_GCJ='-Bstatic'
      ;;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16678

16679
16680
16681
16682
    unicos*)
      lt_prog_compiler_wl_GCJ='-Wl,'
      lt_prog_compiler_can_build_shared_GCJ=no
      ;;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16683

16684
16685
16686
16687
    uts4*)
      lt_prog_compiler_pic_GCJ='-pic'
      lt_prog_compiler_static_GCJ='-Bstatic'
      ;;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16688

16689
16690
16691
16692
16693
    *)
      lt_prog_compiler_can_build_shared_GCJ=no
      ;;
    esac
  fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16694

16695
16696
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
$as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16697

16698
16699
16700
16701
#
# Check to make sure the PIC flag actually works.
#
if test -n "$lt_prog_compiler_pic_GCJ"; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16702

16703
16704
16705
16706
16707
16708
16709
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728
16729
16730
16731
16732
16733
16734
16735
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
if ${lt_prog_compiler_pic_works_GCJ+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_prog_compiler_pic_works_GCJ=no
  ac_outfile=conftest.$ac_objext
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   # The option is referenced via a variable to avoid confusing sed.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:16721: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>conftest.err)
   ac_status=$?
   cat conftest.err >&5
   echo "$as_me:16725: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s "$ac_outfile"; then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings other than the usual output.
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
       lt_prog_compiler_pic_works_GCJ=yes
     fi
   fi
   $rm conftest*
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16736

16737
16738
16739
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works_GCJ" >&5
$as_echo "$lt_prog_compiler_pic_works_GCJ" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16740

16741
16742
16743
16744
16745
16746
16747
16748
16749
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
    case $lt_prog_compiler_pic_GCJ in
     "" | " "*) ;;
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
     esac
else
    lt_prog_compiler_pic_GCJ=
     lt_prog_compiler_can_build_shared_GCJ=no
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16750

16751
16752
16753
16754
16755
16756
16757
16758
16759
16760
fi
case $host_os in
  # For platforms which do not support PIC, -DPIC is meaningless:
  *djgpp*)
    lt_prog_compiler_pic_GCJ=
    ;;
  *)
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
    ;;
esac
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16761

16762
16763
16764
16765
16766
16767
16768
16769
16770
16771
16772
16773
16774
16775
16776
16777
16778
16779
16780
16781
16782
16783
16784
16785
16786
16787
16788
16789
16790
16791
#
# Check to make sure the static flag actually works.
#
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
if ${lt_prog_compiler_static_works_GCJ+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_prog_compiler_static_works_GCJ=no
   save_LDFLAGS="$LDFLAGS"
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
     # The linker can only warn and ignore the option if not recognized
     # So say no if there are warnings
     if test -s conftest.err; then
       # Append any errors to the config.log.
       cat conftest.err 1>&5
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
       if diff conftest.exp conftest.er2 >/dev/null; then
         lt_prog_compiler_static_works_GCJ=yes
       fi
     else
       lt_prog_compiler_static_works_GCJ=yes
     fi
   fi
   $rm conftest*
   LDFLAGS="$save_LDFLAGS"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16792

16793
16794
16795
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works_GCJ" >&5
$as_echo "$lt_prog_compiler_static_works_GCJ" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16796

16797
16798
16799
16800
16801
if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
    :
else
    lt_prog_compiler_static_GCJ=
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16802
16803


16804
16805
16806
16807
16808
16809
16810
16811
16812
16813
16814
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
if ${lt_cv_prog_compiler_c_o_GCJ+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_c_o_GCJ=no
   $rm -r conftest 2>/dev/null
   mkdir conftest
   cd conftest
   mkdir out
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16815

16816
16817
16818
16819
16820
16821
16822
16823
16824
16825
16826
16827
16828
16829
16830
16831
16832
16833
16834
16835
16836
16837
16838
16839
16840
16841
16842
16843
16844
16845
16846
16847
16848
   lt_compiler_flag="-o out/conftest2.$ac_objext"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:16825: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>out/conftest.err)
   ac_status=$?
   cat out/conftest.err >&5
   echo "$as_me:16829: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
   then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
       lt_cv_prog_compiler_c_o_GCJ=yes
     fi
   fi
   chmod u+w . 2>&5
   $rm conftest*
   # SGI C++ compiler will create directory out/ii_files/ for
   # template instantiation
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
   $rm out/* && rmdir out
   cd ..
   rmdir conftest
   $rm conftest*
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16849

16850
16851
16852
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16853
16854


16855
16856
16857
16858
16859
16860
16861
16862
16863
16864
16865
16866
16867
16868
16869
16870
16871
16872
16873
16874
16875
hard_links="nottested"
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
  # do not overwrite the value of need_locks provided by the user
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
$as_echo_n "checking if we can lock with hard links... " >&6; }
  hard_links=yes
  $rm conftest*
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
  touch conftest.a
  ln conftest.a conftest.b 2>&5 || hard_links=no
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
$as_echo "$hard_links" >&6; }
  if test "$hard_links" = no; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
    need_locks=warn
  fi
else
  need_locks=no
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16876

16877
16878
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16879

16880
16881
16882
16883
16884
16885
16886
16887
16888
16889
16890
16891
16892
16893
16894
16895
16896
16897
16898
16899
16900
16901
16902
16903
16904
16905
16906
16907
16908
16909
16910
16911
16912
16913
16914
16915
16916
16917
16918
16919
16920
16921
16922
16923
16924
16925
  runpath_var=
  allow_undefined_flag_GCJ=
  enable_shared_with_static_runtimes_GCJ=no
  archive_cmds_GCJ=
  archive_expsym_cmds_GCJ=
  old_archive_From_new_cmds_GCJ=
  old_archive_from_expsyms_cmds_GCJ=
  export_dynamic_flag_spec_GCJ=
  whole_archive_flag_spec_GCJ=
  thread_safe_flag_spec_GCJ=
  hardcode_libdir_flag_spec_GCJ=
  hardcode_libdir_flag_spec_ld_GCJ=
  hardcode_libdir_separator_GCJ=
  hardcode_direct_GCJ=no
  hardcode_minus_L_GCJ=no
  hardcode_shlibpath_var_GCJ=unsupported
  link_all_deplibs_GCJ=unknown
  hardcode_automatic_GCJ=no
  module_cmds_GCJ=
  module_expsym_cmds_GCJ=
  always_export_symbols_GCJ=no
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  # include_expsyms should be a list of space-separated symbols to be *always*
  # included in the symbol list
  include_expsyms_GCJ=
  # exclude_expsyms can be an extended regexp of symbols to exclude
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  # as well as any symbol that contains `d'.
  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  # platforms (ab)use it in PIC code, but their linkers get confused if
  # the symbol is explicitly referenced.  Since portable code cannot
  # rely on this symbol name, it's probably fine to never include it in
  # preloaded symbol tables.
  extract_expsyms_cmds=
  # Just being paranoid about ensuring that cc_basename is set.
  for cc_temp in $compiler""; do
  case $cc_temp in
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
    \-*) ;;
    *) break;;
  esac
done
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16926

16927
16928
16929
16930
16931
16932
16933
16934
16935
16936
16937
16938
16939
16940
16941
16942
16943
  case $host_os in
  cygwin* | mingw* | pw32*)
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
    # When not using gcc, we currently assume that we are using
    # Microsoft Visual C++.
    if test "$GCC" != yes; then
      with_gnu_ld=no
    fi
    ;;
  interix*)
    # we just hope/assume this is gcc and not c89 (= MSVC++)
    with_gnu_ld=yes
    ;;
  openbsd*)
    with_gnu_ld=no
    ;;
  esac
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16944

16945
16946
16947
16948
  ld_shlibs_GCJ=yes
  if test "$with_gnu_ld" = yes; then
    # If archive_cmds runs LD, not CC, wlarc should be empty
    wlarc='${wl}'
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16949

16950
16951
16952
16953
16954
16955
16956
16957
16958
16959
16960
16961
16962
16963
16964
16965
16966
16967
16968
16969
    # Set some defaults for GNU ld with shared library support. These
    # are reset later if shared libraries are not supported. Putting them
    # here allows them to be overridden if necessary.
    runpath_var=LD_RUN_PATH
    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
    # ancient GNU ld didn't support --whole-archive et. al.
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
      else
  	whole_archive_flag_spec_GCJ=
    fi
    supports_anon_versioning=no
    case `$LD -v 2>/dev/null` in
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
      *\ 2.11.*) ;; # other 2.11 versions
      *) supports_anon_versioning=yes ;;
    esac
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16970

16971
16972
16973
16974
16975
16976
16977
    # See if GNU ld supports shared libraries.
    case $host_os in
    aix3* | aix4* | aix5*)
      # On AIX/PPC, the GNU linker is very broken
      if test "$host_cpu" != ia64; then
	ld_shlibs_GCJ=no
	cat <<EOF 1>&2
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16978

16979
16980
16981
16982
16983
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
*** to be unable to reliably create shared libraries on AIX.
*** Therefore, libtool is disabling shared libraries support.  If you
*** really care for shared libraries, you may want to modify your PATH
*** so that a non-GNU linker is found, and then restart.
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16984

16985
16986
16987
EOF
      fi
      ;;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16988

16989
16990
16991
16992
    amigaos*)
      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)'
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
      hardcode_minus_L_GCJ=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16993

16994
16995
16996
16997
16998
16999
17000
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
      # that the semantics of dynamic libraries on AmigaOS, at least up
      # to version 4, is to share data among multiple programs linked
      # with the same dynamic library.  Since this doesn't match the
      # behavior of shared libraries on other platforms, we can't use
      # them.
      ld_shlibs_GCJ=no
For faster browsing, not all history is shown. View entire blame