configure 759 KB
Newer Older
18001
18002
18003
18004
18005
18006
18007
18008
18009
18010
18011
18012
18013
18014
18015
18016
18017
18018
18019
18020
18021
      # MinGW DLLs use traditional 'lib' prefix
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
        # It is most probably a Windows format PATH printed by
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
        # path with ; separators, and with drive letters. We can handle the
        # drive letters (cygwin fileutils understands them), so leave them,
        # especially as we might pass files found there to a mingw objdump,
        # which wouldn't understand a cygwinified path. Ahh.
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
      else
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
      fi
      ;;
    pw32*)
      # pw32 DLLs use 'pw' prefix rather than 'lib'
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      ;;
    esac
    ;;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18022

18023
18024
18025
18026
18027
18028
18029
18030
  *)
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
    ;;
  esac
  dynamic_linker='Win32 ld.exe'
  # FIXME: first we should search . and the directory the executable is in
  shlibpath_var=PATH
  ;;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18031

18032
18033
18034
18035
18036
18037
18038
18039
18040
18041
darwin* | rhapsody*)
  dynamic_linker="$host_os dyld"
  version_type=darwin
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  soname_spec='${libname}${release}${major}$shared_ext'
  shlibpath_overrides_runpath=yes
  shlibpath_var=DYLD_LIBRARY_PATH
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18042

18043
18044
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  ;;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18045

18046
18047
18048
18049
18050
18051
18052
18053
dgux*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  ;;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18054

18055
18056
18057
freebsd1*)
  dynamic_linker=no
  ;;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18058

18059
18060
18061
18062
18063
18064
18065
18066
18067
18068
18069
18070
18071
18072
18073
18074
18075
18076
18077
18078
18079
18080
18081
18082
18083
18084
18085
18086
18087
18088
18089
18090
18091
18092
18093
18094
18095
18096
18097
18098
18099
18100
18101
freebsd* | dragonfly*)
  # DragonFly does not have aout.  When/if they implement a new
  # versioning mechanism, adjust this.
  if test -x /usr/bin/objformat; then
    objformat=`/usr/bin/objformat`
  else
    case $host_os in
    freebsd[123]*) objformat=aout ;;
    *) objformat=elf ;;
    esac
  fi
  version_type=freebsd-$objformat
  case $version_type in
    freebsd-elf*)
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
      need_version=no
      need_lib_prefix=no
      ;;
    freebsd-*)
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
      need_version=yes
      ;;
  esac
  shlibpath_var=LD_LIBRARY_PATH
  case $host_os in
  freebsd2*)
    shlibpath_overrides_runpath=yes
    ;;
  freebsd3.[01]* | freebsdelf3.[01]*)
    shlibpath_overrides_runpath=yes
    hardcode_into_libs=yes
    ;;
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
    shlibpath_overrides_runpath=no
    hardcode_into_libs=yes
    ;;
  *) # from 4.6 on, and DragonFly
    shlibpath_overrides_runpath=yes
    hardcode_into_libs=yes
    ;;
  esac
  ;;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18102

18103
18104
18105
18106
18107
18108
18109
18110
18111
gnu*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  hardcode_into_libs=yes
  ;;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18112

18113
18114
18115
18116
18117
18118
18119
18120
18121
18122
18123
18124
18125
18126
18127
18128
18129
18130
18131
18132
18133
18134
18135
18136
18137
18138
18139
18140
18141
18142
18143
18144
18145
18146
18147
18148
18149
18150
18151
18152
18153
18154
18155
18156
18157
hpux9* | hpux10* | hpux11*)
  # Give a soname corresponding to the major version so that dld.sl refuses to
  # link against other versions.
  version_type=sunos
  need_lib_prefix=no
  need_version=no
  case $host_cpu in
  ia64*)
    shrext_cmds='.so'
    hardcode_into_libs=yes
    dynamic_linker="$host_os dld.so"
    shlibpath_var=LD_LIBRARY_PATH
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    if test "X$HPUX_IA64_MODE" = X32; then
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
    else
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
    fi
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
    ;;
   hppa*64*)
     shrext_cmds='.sl'
     hardcode_into_libs=yes
     dynamic_linker="$host_os dld.sl"
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
     soname_spec='${libname}${release}${shared_ext}$major'
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
     ;;
   *)
    shrext_cmds='.sl'
    dynamic_linker="$host_os dld.sl"
    shlibpath_var=SHLIB_PATH
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    ;;
  esac
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
  postinstall_cmds='chmod 555 $lib'
  ;;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18158

18159
18160
18161
18162
18163
18164
18165
18166
18167
18168
18169
interix[3-9]*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  ;;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18170

18171
18172
18173
18174
18175
18176
18177
18178
18179
18180
18181
18182
18183
18184
18185
18186
18187
18188
18189
18190
18191
18192
18193
18194
18195
18196
18197
18198
18199
18200
18201
18202
18203
18204
18205
18206
irix5* | irix6* | nonstopux*)
  case $host_os in
    nonstopux*) version_type=nonstopux ;;
    *)
	if test "$lt_cv_prog_gnu_ld" = yes; then
		version_type=linux
	else
		version_type=irix
	fi ;;
  esac
  need_lib_prefix=no
  need_version=no
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  case $host_os in
  irix5* | nonstopux*)
    libsuff= shlibsuff=
    ;;
  *)
    case $LD in # libtool.m4 will add one of these switches to LD
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
      libsuff= shlibsuff= libmagic=32-bit;;
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
      libsuff=32 shlibsuff=N32 libmagic=N32;;
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
    *) libsuff= shlibsuff= libmagic=never-match;;
    esac
    ;;
  esac
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  shlibpath_overrides_runpath=no
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  hardcode_into_libs=yes
  ;;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18207

18208
18209
18210
18211
# No shared lib support for Linux oldld, aout, or coff.
linux*oldld* | linux*aout* | linux*coff*)
  dynamic_linker=no
  ;;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18212

18213
18214
18215
18216
18217
18218
18219
18220
18221
18222
18223
18224
18225
18226
18227
18228
# This must be Linux ELF.
linux* | k*bsd*-gnu)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  # This implies no fast_install, which is unacceptable.
  # Some rework will be needed to allow for fast_install
  # before this can be enabled.
  hardcode_into_libs=yes
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18229

18230
18231
18232
18233
18234
  # Append ld.so.conf contents to the search path
  if test -f /etc/ld.so.conf; then
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ 	]*hwcap[ 	]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18235

18236
18237
18238
18239
18240
18241
18242
18243
  # We used to test for /lib/ld.so.1 and disable shared libraries on
  # powerpc, because MkLinux only supported shared libraries with the
  # GNU dynamic linker.  Since this was broken with cross compilers,
  # most powerpc-linux boxes support dynamic linking these days and
  # people can always --disable-shared, the test was removed, and we
  # assume the GNU/Linux dynamic linker is in use.
  dynamic_linker='GNU/Linux ld.so'
  ;;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18244

18245
18246
18247
18248
18249
18250
18251
18252
18253
18254
18255
18256
18257
18258
18259
18260
18261
netbsd*)
  version_type=sunos
  need_lib_prefix=no
  need_version=no
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
    dynamic_linker='NetBSD (a.out) ld.so'
  else
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    dynamic_linker='NetBSD ld.elf_so'
  fi
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  ;;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18262

18263
18264
18265
18266
18267
18268
newsos6)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  ;;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18269

18270
18271
18272
18273
18274
18275
18276
18277
18278
nto-qnx*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  ;;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18279

18280
18281
18282
18283
18284
18285
18286
18287
18288
18289
18290
18291
18292
18293
18294
18295
18296
18297
18298
18299
18300
18301
18302
18303
18304
openbsd*)
  version_type=sunos
  sys_lib_dlsearch_path_spec="/usr/lib"
  need_lib_prefix=no
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  case $host_os in
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
    *)                         need_version=no  ;;
  esac
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    case $host_os in
      openbsd2.[89] | openbsd2.[89].*)
	shlibpath_overrides_runpath=no
	;;
      *)
	shlibpath_overrides_runpath=yes
	;;
      esac
  else
    shlibpath_overrides_runpath=yes
  fi
  ;;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18305

18306
18307
18308
18309
18310
18311
18312
18313
os2*)
  libname_spec='$name'
  shrext_cmds=".dll"
  need_lib_prefix=no
  library_names_spec='$libname${shared_ext} $libname.a'
  dynamic_linker='OS/2 ld.exe'
  shlibpath_var=LIBPATH
  ;;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18314

18315
18316
18317
18318
18319
18320
18321
18322
18323
18324
osf3* | osf4* | osf5*)
  version_type=osf
  need_lib_prefix=no
  need_version=no
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  ;;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18325

18326
18327
18328
rdos*)
  dynamic_linker=no
  ;;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18329

18330
18331
18332
18333
18334
18335
18336
18337
18338
18339
18340
18341
solaris*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  # ldd complains unless libraries are executable
  postinstall_cmds='chmod +x $lib'
  ;;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18342

18343
18344
18345
18346
18347
18348
18349
18350
18351
18352
18353
sunos4*)
  version_type=sunos
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  if test "$with_gnu_ld" = yes; then
    need_lib_prefix=no
  fi
  need_version=yes
  ;;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18354

18355
18356
18357
18358
18359
18360
18361
18362
18363
18364
18365
18366
18367
18368
18369
18370
18371
18372
18373
18374
18375
18376
18377
sysv4 | sysv4.3*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  case $host_vendor in
    sni)
      shlibpath_overrides_runpath=no
      need_lib_prefix=no
      export_dynamic_flag_spec='${wl}-Blargedynsym'
      runpath_var=LD_RUN_PATH
      ;;
    siemens)
      need_lib_prefix=no
      ;;
    motorola)
      need_lib_prefix=no
      need_version=no
      shlibpath_overrides_runpath=no
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
      ;;
  esac
  ;;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18378

18379
18380
18381
18382
18383
18384
18385
18386
sysv4*MP*)
  if test -d /usr/nec ;then
    version_type=linux
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
    soname_spec='$libname${shared_ext}.$major'
    shlibpath_var=LD_LIBRARY_PATH
  fi
  ;;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18387

18388
18389
18390
18391
18392
18393
18394
18395
18396
18397
18398
18399
18400
18401
18402
18403
18404
18405
18406
18407
18408
18409
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  version_type=freebsd-elf
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  hardcode_into_libs=yes
  if test "$with_gnu_ld" = yes; then
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
    shlibpath_overrides_runpath=no
  else
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
    shlibpath_overrides_runpath=yes
    case $host_os in
      sco3.2v5*)
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
	;;
    esac
  fi
  sys_lib_dlsearch_path_spec='/usr/lib'
  ;;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18410

18411
18412
18413
18414
18415
18416
uts4*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  ;;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18417

18418
18419
18420
18421
18422
18423
18424
*)
  dynamic_linker=no
  ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
$as_echo "$dynamic_linker" >&6; }
test "$dynamic_linker" = no && can_build_shared=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18425

18426
18427
18428
18429
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
if test "$GCC" = yes; then
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18430

18431
18432
18433
18434
18435
18436
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
hardcode_action_GCJ=
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
   test -n "$runpath_var_GCJ" || \
   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18437

18438
18439
18440
18441
18442
18443
18444
18445
18446
18447
18448
18449
18450
18451
18452
18453
18454
18455
18456
18457
  # We can hardcode non-existant directories.
  if test "$hardcode_direct_GCJ" != no &&
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
     # have to relink, otherwise we might link with an installed library
     # when we should be linking with a yet-to-be-installed one
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
     test "$hardcode_minus_L_GCJ" != no; then
    # Linking always hardcodes the temporary library directory.
    hardcode_action_GCJ=relink
  else
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
    hardcode_action_GCJ=immediate
  fi
else
  # We cannot hardcode anything, or else we can only hardcode existing
  # directories.
  hardcode_action_GCJ=unsupported
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
$as_echo "$hardcode_action_GCJ" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18458

18459
18460
18461
18462
18463
18464
18465
18466
if test "$hardcode_action_GCJ" = relink; then
  # Fast installation is not supported
  enable_fast_install=no
elif test "$shlibpath_overrides_runpath" = yes ||
     test "$enable_shared" = no; then
  # Fast installation is not necessary
  enable_fast_install=needless
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18467
18468


18469
18470
18471
18472
18473
18474
18475
18476
18477
18478
18479
18480
18481
18482
18483
18484
18485
18486
18487
18488
18489
18490
18491
18492
18493
18494
18495
18496
18497
18498
18499
18500
18501
18502
18503
18504
18505
18506
18507
18508
18509
18510
18511
18512
18513
18514
18515
18516
18517
18518
18519
18520
18521
18522
18523
18524
18525
18526
# The else clause should only fire when bootstrapping the
# libtool distribution, otherwise you forgot to ship ltmain.sh
# with your package, and you will get complaints that there are
# no rules to generate ltmain.sh.
if test -f "$ltmain"; then
  # See if we are running on zsh, and set the options which allow our commands through
  # without removal of \ escapes.
  if test -n "${ZSH_VERSION+set}" ; then
    setopt NO_GLOB_SUBST
  fi
  # Now quote all the things that may contain metacharacters while being
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
  # variables and quote the copies for generation of the libtool script.
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
    SED SHELL STRIP \
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
    deplibs_check_method reload_flag reload_cmds need_locks \
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
    lt_cv_sys_global_symbol_to_c_name_address \
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
    old_postinstall_cmds old_postuninstall_cmds \
    compiler_GCJ \
    CC_GCJ \
    LD_GCJ \
    lt_prog_compiler_wl_GCJ \
    lt_prog_compiler_pic_GCJ \
    lt_prog_compiler_static_GCJ \
    lt_prog_compiler_no_builtin_flag_GCJ \
    export_dynamic_flag_spec_GCJ \
    thread_safe_flag_spec_GCJ \
    whole_archive_flag_spec_GCJ \
    enable_shared_with_static_runtimes_GCJ \
    old_archive_cmds_GCJ \
    old_archive_from_new_cmds_GCJ \
    predep_objects_GCJ \
    postdep_objects_GCJ \
    predeps_GCJ \
    postdeps_GCJ \
    compiler_lib_search_path_GCJ \
    archive_cmds_GCJ \
    archive_expsym_cmds_GCJ \
    postinstall_cmds_GCJ \
    postuninstall_cmds_GCJ \
    old_archive_from_expsyms_cmds_GCJ \
    allow_undefined_flag_GCJ \
    no_undefined_flag_GCJ \
    export_symbols_cmds_GCJ \
    hardcode_libdir_flag_spec_GCJ \
    hardcode_libdir_flag_spec_ld_GCJ \
    hardcode_libdir_separator_GCJ \
    hardcode_automatic_GCJ \
    module_cmds_GCJ \
    module_expsym_cmds_GCJ \
    lt_cv_prog_compiler_c_o_GCJ \
    fix_srcfile_path_GCJ \
    exclude_expsyms_GCJ \
    include_expsyms_GCJ; do
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18527

18528
18529
18530
18531
18532
18533
18534
18535
18536
18537
18538
18539
18540
18541
18542
18543
18544
18545
18546
18547
18548
    case $var in
    old_archive_cmds_GCJ | \
    old_archive_from_new_cmds_GCJ | \
    archive_cmds_GCJ | \
    archive_expsym_cmds_GCJ | \
    module_cmds_GCJ | \
    module_expsym_cmds_GCJ | \
    old_archive_from_expsyms_cmds_GCJ | \
    export_symbols_cmds_GCJ | \
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
    postinstall_cmds | postuninstall_cmds | \
    old_postinstall_cmds | old_postuninstall_cmds | \
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
      # Double-quote double-evaled strings.
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
      ;;
    *)
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
      ;;
    esac
  done
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18549

18550
18551
18552
18553
18554
  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
18555

18556
cfgfile="$ofile"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18557

18558
18559
  cat <<__EOF__ >> "$cfgfile"
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18560

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

18563
18564
# Shell to use when invoking shell scripts.
SHELL=$lt_SHELL
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18565

18566
18567
# Whether or not to build shared libraries.
build_libtool_libs=$enable_shared
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18568

18569
18570
# Whether or not to build static libraries.
build_old_libs=$enable_static
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18571

18572
18573
# Whether or not to add -lc for building shared libraries.
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18574

18575
18576
# Whether or not to disallow shared libs when runtime libs are static
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18577

18578
18579
# Whether or not to optimize for fast installation.
fast_install=$enable_fast_install
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18580

18581
18582
18583
18584
# The host system.
host_alias=$host_alias
host=$host
host_os=$host_os
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18585

18586
18587
18588
18589
# The build system.
build_alias=$build_alias
build=$build
build_os=$build_os
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18590

18591
18592
# An echo program that does not interpret backslashes.
echo=$lt_echo
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18593

18594
18595
18596
# The archiver.
AR=$lt_AR
AR_FLAGS=$lt_AR_FLAGS
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18597

18598
18599
# A C compiler.
LTCC=$lt_LTCC
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18600

18601
18602
# LTCC compiler flags.
LTCFLAGS=$lt_LTCFLAGS
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18603

18604
18605
# A language-specific compiler.
CC=$lt_compiler_GCJ
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18606

18607
18608
# Is the compiler the GNU C compiler?
with_gcc=$GCC_GCJ
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18609

18610
18611
# An ERE matcher.
EGREP=$lt_EGREP
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18612

18613
18614
# The linker used to build libraries.
LD=$lt_LD_GCJ
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18615

18616
18617
# Whether we need hard or soft links.
LN_S=$lt_LN_S
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18618

18619
18620
# A BSD-compatible nm program.
NM=$lt_NM
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18621

18622
18623
# A symbol stripping program
STRIP=$lt_STRIP
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18624

18625
18626
# Used to examine libraries when file_magic_cmd begins "file"
MAGIC_CMD=$MAGIC_CMD
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18627

18628
18629
# Used on cygwin: DLL creation program.
DLLTOOL="$DLLTOOL"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18630

18631
18632
# Used on cygwin: object dumper.
OBJDUMP="$OBJDUMP"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18633

18634
18635
# Used on cygwin: assembler.
AS="$AS"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18636

18637
18638
# The name of the directory that contains temporary libtool files.
objdir=$objdir
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18639

18640
18641
18642
# How to create reloadable object files.
reload_flag=$lt_reload_flag
reload_cmds=$lt_reload_cmds
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18643

18644
18645
# How to pass a linker flag through the compiler.
wl=$lt_lt_prog_compiler_wl_GCJ
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18646

18647
18648
# Object file suffix (normally "o").
objext="$ac_objext"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18649

18650
18651
# Old archive suffix (normally "a").
libext="$libext"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18652

18653
18654
# Shared library suffix (normally ".so").
shrext_cmds='$shrext_cmds'
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18655

18656
18657
# Executable file suffix (normally "").
exeext="$exeext"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18658

18659
18660
18661
# Additional compiler flags for building library objects.
pic_flag=$lt_lt_prog_compiler_pic_GCJ
pic_mode=$pic_mode
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18662

18663
18664
# What is the maximum length of a command?
max_cmd_len=$lt_cv_sys_max_cmd_len
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18665

18666
18667
# Does compiler simultaneously support -c and -o options?
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18668

18669
18670
# Must we lock files when doing compilation?
need_locks=$lt_need_locks
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18671

18672
18673
# Do we need the lib prefix for modules?
need_lib_prefix=$need_lib_prefix
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18674

18675
18676
# Do we need a version for libraries?
need_version=$need_version
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18677

18678
18679
# Whether dlopen is supported.
dlopen_support=$enable_dlopen
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18680

18681
18682
# Whether dlopen of programs is supported.
dlopen_self=$enable_dlopen_self
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18683

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

18687
18688
# Compiler flag to prevent dynamic linking.
link_static_flag=$lt_lt_prog_compiler_static_GCJ
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18689

18690
18691
# Compiler flag to turn off builtin functions.
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18692

18693
18694
# Compiler flag to allow reflexive dlopens.
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18695

18696
18697
# Compiler flag to generate shared objects directly from archives.
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18698

18699
18700
# Compiler flag to generate thread-safe objects.
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18701

18702
18703
# Library versioning type.
version_type=$version_type
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18704

18705
18706
# Format of library name prefix.
libname_spec=$lt_libname_spec
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18707

18708
18709
18710
# 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
18711

18712
18713
# The coded name of the library, if different from the real name.
soname_spec=$lt_soname_spec
18714

18715
18716
18717
18718
18719
# Commands used to build and install an old-style archive.
RANLIB=$lt_RANLIB
old_archive_cmds=$lt_old_archive_cmds_GCJ
old_postinstall_cmds=$lt_old_postinstall_cmds
old_postuninstall_cmds=$lt_old_postuninstall_cmds
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18720

18721
18722
# Create an old-style archive from a shared archive.
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18723

18724
18725
# Create a temporary old-style archive to link instead of a shared archive.
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18726

18727
18728
18729
18730
18731
# Commands used to build and install a shared archive.
archive_cmds=$lt_archive_cmds_GCJ
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
postinstall_cmds=$lt_postinstall_cmds
postuninstall_cmds=$lt_postuninstall_cmds
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18732

18733
18734
18735
# Commands used to build a loadable module (assumed same as above if empty)
module_cmds=$lt_module_cmds_GCJ
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18736

18737
18738
18739
# Commands to strip libraries.
old_striplib=$lt_old_striplib
striplib=$lt_striplib
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18740

18741
18742
18743
# Dependencies to place before the objects being linked to create a
# shared library.
predep_objects=$lt_predep_objects_GCJ
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18744

18745
18746
18747
# Dependencies to place after the objects being linked to create a
# shared library.
postdep_objects=$lt_postdep_objects_GCJ
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18748

18749
18750
18751
# Dependencies to place before the objects being linked to create a
# shared library.
predeps=$lt_predeps_GCJ
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18752

18753
18754
18755
# Dependencies to place after the objects being linked to create a
# shared library.
postdeps=$lt_postdeps_GCJ
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18756

18757
18758
18759
# The library search path used internally by the compiler when linking
# a shared library.
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18760

18761
18762
# Method to check whether dependent libraries are shared objects.
deplibs_check_method=$lt_deplibs_check_method
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18763

18764
18765
# Command to use when deplibs_check_method == file_magic.
file_magic_cmd=$lt_file_magic_cmd
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18766

18767
18768
18769
18770
18771
# Flag that allows shared libraries with undefined symbols to be built.
allow_undefined_flag=$lt_allow_undefined_flag_GCJ

# Flag that forces no undefined symbols.
no_undefined_flag=$lt_no_undefined_flag_GCJ
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18772

18773
18774
# Commands used to finish a libtool library installation in a directory.
finish_cmds=$lt_finish_cmds
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18775

18776
18777
# 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
18778

18779
18780
# 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
18781

18782
18783
# 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
18784

18785
18786
# 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
18787

18788
18789
# This is the shared library runtime path variable.
runpath_var=$runpath_var
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18790

18791
18792
# This is the shared library path variable.
shlibpath_var=$shlibpath_var
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18793

18794
18795
# Is shlibpath searched before the hard-coded library search path?
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18796

18797
18798
# How to hardcode a shared library path into an executable.
hardcode_action=$hardcode_action_GCJ
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18799

18800
18801
# Whether we should hardcode library paths into libraries.
hardcode_into_libs=$hardcode_into_libs
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18802

18803
18804
18805
# 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_GCJ
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18806

18807
18808
18809
18810
# 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_GCJ
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18811

18812
18813
# Whether we need a single -rpath flag with a separated argument.
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18814

18815
18816
18817
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
# resulting binary.
hardcode_direct=$hardcode_direct_GCJ
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18818

18819
18820
18821
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
# resulting binary.
hardcode_minus_L=$hardcode_minus_L_GCJ
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18822

18823
18824
18825
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
# the resulting binary.
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18826

18827
18828
18829
# 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_GCJ
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18830

18831
18832
18833
# Variables whose values should be saved in libtool wrapper scripts and
# restored at relink time.
variables_saved_for_relink="$variables_saved_for_relink"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18834

18835
18836
# Whether libtool must link a program against all its dependency libraries.
link_all_deplibs=$link_all_deplibs_GCJ
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18837

18838
18839
# Compile-time system search path for libraries
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18840

18841
18842
# Run-time system search path for libraries
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18843

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

18847
18848
# Set to yes if exported symbols are required.
always_export_symbols=$always_export_symbols_GCJ
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18849

18850
18851
# The commands to list exported symbols.
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18852

18853
18854
# 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
18855

18856
18857
# Symbols that should not be listed in the preloaded symbols.
exclude_expsyms=$lt_exclude_expsyms_GCJ
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18858

18859
18860
# Symbols that must always be exported.
include_expsyms=$lt_include_expsyms_GCJ
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18861

18862
# ### END LIBTOOL TAG CONFIG: $tagname
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18863

18864
__EOF__
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18865
18866
18867


else
18868
18869
18870
18871
18872
18873
18874
  # 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
18875
18876
18877
fi


18878
18879
18880
18881
18882
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
18883

18884
CC="$lt_save_CC"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18885

18886
18887
18888
18889
18890
18891
	else
	  tagname=""
	fi
	;;

      RC)
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18892
18893


18894
18895
# Source file extension for RC test sources.
ac_ext=rc
18896

18897
18898
18899
# Object file extension for compiled RC test sources.
objext=o
objext_RC=$objext
18900

18901
18902
# Code to be used in simple compile tests
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
18903

18904
18905
# Code to be used in simple link tests
lt_simple_link_test_code="$lt_simple_compile_test_code"
18906

18907
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18908

18909
18910
# If no C compiler was specified, use CC.
LTCC=${LTCC-"$CC"}
18911

18912
18913
# If no C compiler flags were specified, use CFLAGS.
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18914

18915
18916
# Allow CC to be a program name with arguments.
compiler=$CC
18917
18918


18919
18920
18921
18922
18923
18924
# 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*
18925

18926
18927
18928
18929
18930
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*
18931

Emmanuel Bertin's avatar
Emmanuel Bertin committed
18932

18933
18934
18935
18936
18937
18938
18939
18940
18941
18942
18943
18944
18945
18946
# Allow CC to be a program name with arguments.
lt_save_CC="$CC"
CC=${RC-"windres"}
compiler=$CC
compiler_RC=$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
18947

18948
lt_cv_prog_compiler_c_o_RC=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
18949

18950
18951
18952
18953
18954
18955
18956
18957
18958
18959
18960
18961
18962
18963
18964
18965
18966
18967
18968
18969
18970
18971
18972
18973
18974
18975
18976
18977
18978
18979
18980
18981
18982
18983
18984
18985
18986
18987
18988
18989
18990
18991
18992
18993
18994
18995
18996
18997
18998
18999
19000
# The else clause should only fire when bootstrapping the
# libtool distribution, otherwise you forgot to ship ltmain.sh
# with your package, and you will get complaints that there are
# no rules to generate ltmain.sh.
if test -f "$ltmain"; then
  # See if we are running on zsh, and set the options which allow our commands through
  # without removal of \ escapes.
  if test -n "${ZSH_VERSION+set}" ; then
    setopt NO_GLOB_SUBST
  fi
  # Now quote all the things that may contain metacharacters while being
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
  # variables and quote the copies for generation of the libtool script.
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
    SED SHELL STRIP \
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
    deplibs_check_method reload_flag reload_cmds need_locks \
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
    lt_cv_sys_global_symbol_to_c_name_address \
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
    old_postinstall_cmds old_postuninstall_cmds \
    compiler_RC \
    CC_RC \
    LD_RC \
    lt_prog_compiler_wl_RC \
    lt_prog_compiler_pic_RC \
    lt_prog_compiler_static_RC \
    lt_prog_compiler_no_builtin_flag_RC \
    export_dynamic_flag_spec_RC \
    thread_safe_flag_spec_RC \
    whole_archive_flag_spec_RC \
    enable_shared_with_static_runtimes_RC \
    old_archive_cmds_RC \
    old_archive_from_new_cmds_RC \
    predep_objects_RC \
    postdep_objects_RC \
    predeps_RC \
    postdeps_RC \
    compiler_lib_search_path_RC \
    archive_cmds_RC \
    archive_expsym_cmds_RC \
    postinstall_cmds_RC \
    postuninstall_cmds_RC \
    old_archive_from_expsyms_cmds_RC \
    allow_undefined_flag_RC \
    no_undefined_flag_RC \
    export_symbols_cmds_RC \
    hardcode_libdir_flag_spec_RC \
    hardcode_libdir_flag_spec_ld_RC \
    hardcode_libdir_separator_RC \
For faster browsing, not all history is shown. View entire blame