~ubuntu-branches/ubuntu/utopic/xdm/utopic

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Stone
  • Date: 2006-01-04 13:30:32 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20060104133032-cp57jyn4w0ejnpti
Tags: 1:1.0.1-0ubuntu1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
# Guess values for system-dependent variables and create Makefiles.
3
 
# Generated by GNU Autoconf 2.57 for xdm 0.99.4.
 
3
# Generated by GNU Autoconf 2.59 for xdm 1.0.1.
4
4
#
5
5
# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6
6
#
7
 
# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8
 
# Free Software Foundation, Inc.
 
7
# Copyright (C) 2003 Free Software Foundation, Inc.
9
8
# This configure script is free software; the Free Software Foundation
10
9
# gives unlimited permission to copy, distribute and modify it.
11
10
## --------------------- ##
22
21
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23
22
  set -o posix
24
23
fi
 
24
DUALCASE=1; export DUALCASE # for MKS sh
25
25
 
26
26
# Support unset when possible.
27
 
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
 
27
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28
28
  as_unset=unset
29
29
else
30
30
  as_unset=false
43
43
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44
44
  LC_TELEPHONE LC_TIME
45
45
do
46
 
  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
46
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47
47
    eval $as_var=C; export $as_var
48
48
  else
49
49
    $as_unset $as_var
220
220
if mkdir -p . 2>/dev/null; then
221
221
  as_mkdir_p=:
222
222
else
 
223
  test -d ./-p && rmdir ./-p
223
224
  as_mkdir_p=false
224
225
fi
225
226
 
226
227
as_executable_p="test -f"
227
228
 
228
229
# Sed expression to map a string onto a valid CPP name.
229
 
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
 
230
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230
231
 
231
232
# Sed expression to map a string onto a valid variable name.
232
 
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
 
233
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
233
234
 
234
235
 
235
236
# IFS
242
243
$as_unset CDPATH
243
244
 
244
245
 
245
 
# Find the correct PATH separator.  Usually this is `:', but
246
 
# DJGPP uses `;' like DOS.
247
 
if test "X${PATH_SEPARATOR+set}" != Xset; then
248
 
  UNAME=${UNAME-`uname 2>/dev/null`}
249
 
  case X$UNAME in
250
 
    *-DOS) lt_cv_sys_path_separator=';' ;;
251
 
    *)     lt_cv_sys_path_separator=':' ;;
252
 
  esac
253
 
  PATH_SEPARATOR=$lt_cv_sys_path_separator
254
 
fi
255
 
 
256
246
 
257
247
# Check that we are running under the correct shell.
258
248
SHELL=${CONFIG_SHELL-/bin/sh}
271
261
elif test "X$1" = X--fallback-echo; then
272
262
  # Avoid inline document here, it may be left over
273
263
  :
274
 
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
 
264
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
275
265
  # Yippee, $echo works!
276
266
  :
277
267
else
283
273
  # used as fallback echo
284
274
  shift
285
275
  cat <<EOF
286
 
 
 
276
$*
287
277
EOF
288
278
  exit 0
289
279
fi
317
307
  #
318
308
  # So, first we look for a working echo in the user's PATH.
319
309
 
320
 
  IFS="${IFS=   }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
310
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
321
311
  for dir in $PATH /usr/ucb; do
 
312
    IFS="$lt_save_ifs"
322
313
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
323
314
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
324
315
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
327
318
      break
328
319
    fi
329
320
  done
330
 
  IFS="$save_ifs"
 
321
  IFS="$lt_save_ifs"
331
322
 
332
323
  if test "X$echo" = Xecho; then
333
324
    # We didn't find a better echo, so look for alternatives.
401
392
 
402
393
 
403
394
 
 
395
 
 
396
tagnames=${tagnames+${tagnames},}CXX
 
397
 
 
398
tagnames=${tagnames+${tagnames},}F77
 
399
 
404
400
# Name of the host.
405
401
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
406
402
# so uname gets run too.
427
423
# Identity of this package.
428
424
PACKAGE_NAME='xdm'
429
425
PACKAGE_TARNAME='xdm'
430
 
PACKAGE_VERSION='0.99.4'
431
 
PACKAGE_STRING='xdm 0.99.4'
 
426
PACKAGE_VERSION='1.0.1'
 
427
PACKAGE_STRING='xdm 1.0.1'
432
428
PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
433
429
 
434
430
# Factoring default headers for most tests.
468
464
# include <unistd.h>
469
465
#endif"
470
466
 
471
 
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os LN_S ECHO RANLIB ac_ct_RANLIB CPP EGREP LIBTOOL RAWCPP RAWCPPFLAGS HAS_SECURE_RPC_TRUE HAS_SECURE_RPC_FALSE SU HAS_ARC4_RANDOM_TRUE HAS_ARC4_RANDOM_FALSE RANDOMMANDEFS HAS_KERBEROS_FIVE_TRUE HAS_KERBEROS_FIVE_FALSE XDMLIBDIR XDMCONFIGDIR XDMLOGDIR XDMPIDDIR DEFAULTVT SERVERSTYPE SHELL_CMD PKG_CONFIG ac_pt_PKG_CONFIG XDM_CFLAGS XDM_LIBS XINERAMA_CFLAGS XINERAMA_LIBS XPM_CFLAGS XPM_LIBS USE_XPM_TRUE USE_XPM_FALSE XDM_PIXMAP XDM_BWPIXMAP XDM_PIXMAPDIR TMP_XAW_CFLAGS TMP_XAW_LIBS XAW_USE_XPRINT_TRUE XAW_USE_XPRINT_FALSE DMCP_CFLAGS DMCP_LIBS XLIB_CFLAGS XLIB_LIBS AUTH_CFLAGS AUTH_LIBS XDMGREET_CFLAGS XDMGREET_LIBS DEF_GREETER_LIB DYNAMIC_GREETER_TRUE DYNAMIC_GREETER_FALSE HAS_XDM_AUTH_TRUE HAS_XDM_AUTH_FALSE XDM_LDFLAGS XT_CFLAGS XT_LIBS XDMSHELL_CFLAGS XDMSHELL_LIBS CHOOSER_CFLAGS CHOOSER_LIBS DEF_SERVER_LINE XRDB_PROGRAM DEF_SESSION DEF_USER_PATH DEF_SYSTEM_PATH DEF_SYSTEM_SHELL DEF_FAILSAFE_CLIENT DEF_XDM_CONFIG DEF_CHOOSER DEF_AUTH_DIR APP_MAN_SUFFIX LIB_MAN_SUFFIX FILE_MAN_SUFFIX MISC_MAN_SUFFIX DRIVER_MAN_SUFFIX ADMIN_MAN_SUFFIX APP_MAN_DIR LIB_MAN_DIR FILE_MAN_DIR MISC_MAN_DIR DRIVER_MAN_DIR ADMIN_MAN_DIR LIBOBJS LTLIBOBJS'
 
467
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL RAWCPP RAWCPPFLAGS HAS_SECURE_RPC_TRUE HAS_SECURE_RPC_FALSE SU HAS_ARC4_RANDOM_TRUE HAS_ARC4_RANDOM_FALSE RANDOMMANDEFS HAS_KERBEROS_FIVE_TRUE HAS_KERBEROS_FIVE_FALSE XDMLIBDIR XDMCONFIGDIR XDMSCRIPTDIR XDMLOGDIR XDMPIDDIR DEFAULTVT SERVERSTYPE SHELL_CMD PKG_CONFIG ac_pt_PKG_CONFIG XDM_CFLAGS XDM_LIBS XINERAMA_CFLAGS XINERAMA_LIBS XPM_CFLAGS XPM_LIBS USE_XPM_TRUE USE_XPM_FALSE XDM_PIXMAP XDM_BWPIXMAP XDM_PIXMAPDIR TMP_XAW_CFLAGS TMP_XAW_LIBS XAW_USE_XPRINT_TRUE XAW_USE_XPRINT_FALSE DMCP_CFLAGS DMCP_LIBS XLIB_CFLAGS XLIB_LIBS AUTH_CFLAGS AUTH_LIBS XDMGREET_CFLAGS XDMGREET_LIBS DEF_GREETER_LIB DYNAMIC_GREETER_TRUE DYNAMIC_GREETER_FALSE HAS_XDM_AUTH_TRUE HAS_XDM_AUTH_FALSE XDM_LDFLAGS XT_CFLAGS XT_LIBS XDMSHELL_CFLAGS XDMSHELL_LIBS CHOOSER_CFLAGS CHOOSER_LIBS DEF_SERVER_LINE XRDB_PROGRAM DEF_SESSION DEF_USER_PATH DEF_SYSTEM_PATH DEF_SYSTEM_SHELL DEF_FAILSAFE_CLIENT DEF_XDM_CONFIG DEF_CHOOSER DEF_AUTH_DIR APPDEFS_CFLAGS APPDEFS_LIBS appdefaultdir APP_MAN_SUFFIX LIB_MAN_SUFFIX FILE_MAN_SUFFIX MISC_MAN_SUFFIX DRIVER_MAN_SUFFIX ADMIN_MAN_SUFFIX APP_MAN_DIR LIB_MAN_DIR FILE_MAN_DIR MISC_MAN_DIR DRIVER_MAN_DIR ADMIN_MAN_DIR LIBOBJS LTLIBOBJS'
472
468
ac_subst_files=''
473
469
 
474
470
# Initialize some variables set by options.
827
823
 
828
824
# Be sure to have absolute paths.
829
825
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
830
 
              localstatedir libdir includedir oldincludedir infodir mandir
 
826
              localstatedir libdir includedir oldincludedir infodir mandir
831
827
do
832
828
  eval ac_val=$`echo $ac_var`
833
829
  case $ac_val in
867
863
  # Try the directory containing this script, then its parent.
868
864
  ac_confdir=`(dirname "$0") 2>/dev/null ||
869
865
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
870
 
         X"$0" : 'X\(//\)[^/]' \| \
871
 
         X"$0" : 'X\(//\)$' \| \
872
 
         X"$0" : 'X\(/\)' \| \
873
 
         .     : '\(.\)' 2>/dev/null ||
 
866
         X"$0" : 'X\(//\)[^/]' \| \
 
867
         X"$0" : 'X\(//\)$' \| \
 
868
         X"$0" : 'X\(/\)' \| \
 
869
         .     : '\(.\)' 2>/dev/null ||
874
870
echo X"$0" |
875
871
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
876
872
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
929
925
ac_env_CPP_value=$CPP
930
926
ac_cv_env_CPP_set=${CPP+set}
931
927
ac_cv_env_CPP_value=$CPP
 
928
ac_env_CXX_set=${CXX+set}
 
929
ac_env_CXX_value=$CXX
 
930
ac_cv_env_CXX_set=${CXX+set}
 
931
ac_cv_env_CXX_value=$CXX
 
932
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
 
933
ac_env_CXXFLAGS_value=$CXXFLAGS
 
934
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
 
935
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
 
936
ac_env_CXXCPP_set=${CXXCPP+set}
 
937
ac_env_CXXCPP_value=$CXXCPP
 
938
ac_cv_env_CXXCPP_set=${CXXCPP+set}
 
939
ac_cv_env_CXXCPP_value=$CXXCPP
 
940
ac_env_F77_set=${F77+set}
 
941
ac_env_F77_value=$F77
 
942
ac_cv_env_F77_set=${F77+set}
 
943
ac_cv_env_F77_value=$F77
 
944
ac_env_FFLAGS_set=${FFLAGS+set}
 
945
ac_env_FFLAGS_value=$FFLAGS
 
946
ac_cv_env_FFLAGS_set=${FFLAGS+set}
 
947
ac_cv_env_FFLAGS_value=$FFLAGS
932
948
ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
933
949
ac_env_PKG_CONFIG_value=$PKG_CONFIG
934
950
ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
1005
1021
ac_env_XT_LIBS_value=$XT_LIBS
1006
1022
ac_cv_env_XT_LIBS_set=${XT_LIBS+set}
1007
1023
ac_cv_env_XT_LIBS_value=$XT_LIBS
 
1024
ac_env_APPDEFS_CFLAGS_set=${APPDEFS_CFLAGS+set}
 
1025
ac_env_APPDEFS_CFLAGS_value=$APPDEFS_CFLAGS
 
1026
ac_cv_env_APPDEFS_CFLAGS_set=${APPDEFS_CFLAGS+set}
 
1027
ac_cv_env_APPDEFS_CFLAGS_value=$APPDEFS_CFLAGS
 
1028
ac_env_APPDEFS_LIBS_set=${APPDEFS_LIBS+set}
 
1029
ac_env_APPDEFS_LIBS_value=$APPDEFS_LIBS
 
1030
ac_cv_env_APPDEFS_LIBS_set=${APPDEFS_LIBS+set}
 
1031
ac_cv_env_APPDEFS_LIBS_value=$APPDEFS_LIBS
1008
1032
 
1009
1033
#
1010
1034
# Report the --help message.
1013
1037
  # Omit some internal or obsolete options to make the list less imposing.
1014
1038
  # This message is too long to be a string in the A/UX 3.1 sh.
1015
1039
  cat <<_ACEOF
1016
 
\`configure' configures xdm 0.99.4 to adapt to many kinds of systems.
 
1040
\`configure' configures xdm 1.0.1 to adapt to many kinds of systems.
1017
1041
 
1018
1042
Usage: $0 [OPTION]... [VAR=VALUE]...
1019
1043
 
1038
1062
  cat <<_ACEOF
1039
1063
Installation directories:
1040
1064
  --prefix=PREFIX         install architecture-independent files in PREFIX
1041
 
                          [$ac_default_prefix]
 
1065
                          [$ac_default_prefix]
1042
1066
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1043
 
                          [PREFIX]
 
1067
                          [PREFIX]
1044
1068
 
1045
1069
By default, \`make install' will install all the files in
1046
1070
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1079
1103
 
1080
1104
if test -n "$ac_init_help"; then
1081
1105
  case $ac_init_help in
1082
 
     short | recursive ) echo "Configuration of xdm 0.99.4:";;
 
1106
     short | recursive ) echo "Configuration of xdm 1.0.1:";;
1083
1107
   esac
1084
1108
  cat <<\_ACEOF
1085
1109
 
1090
1114
                          (and sometimes confusing) to the casual installer
1091
1115
  --disable-dependency-tracking Speeds up one-time builds
1092
1116
  --enable-dependency-tracking  Do not reject slow dependency extractors
1093
 
  --enable-shared=PKGS  build shared libraries default=yes
1094
 
  --enable-static=PKGS  build static libraries default=yes
1095
 
  --enable-fast-install=PKGS  optimize for fast installation default=yes
 
1117
  --enable-shared[=PKGS]
 
1118
                          build shared libraries [default=yes]
 
1119
  --enable-static[=PKGS]
 
1120
                          build static libraries [default=yes]
 
1121
  --enable-fast-install[=PKGS]
 
1122
                          optimize for fast installation [default=yes]
1096
1123
  --disable-libtool-lock  avoid locking (might break parallel builds)
1097
1124
  --enable-unix-transport Enable UNIX domain socket transport
1098
1125
  --enable-tcp-transport  Enable TCP socket transport
1106
1133
Optional Packages:
1107
1134
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1108
1135
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1109
 
  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1110
 
  --with-pic              try to use only PIC/non-PIC objects default=use both
 
1136
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
 
1137
  --with-pic              try to use only PIC/non-PIC objects [default=use
 
1138
                          both]
 
1139
  --with-tags[=TAGS]
 
1140
                          include additional configurations [automatic]
1111
1141
  --with-pam              Use PAM for authentication
1112
1142
  --with-random-device\=<pathname>\
1113
1143
                          Use <pathname> as a source of randomness
1117
1147
  --with-xdmconfigdir=<pathname>
1118
1148
                          specify directory for xdm config files (default is
1119
1149
                          same as xdmlibdir)
 
1150
  --with-xdmscriptdir=<pathname>
 
1151
                          specify directory for xdm scripts (default is same
 
1152
                          as xdmlibdir)
1120
1153
  --with-logdir=<pathname>
1121
1154
                          specify directory for xdm log files
1122
1155
                          (default=/var/log)
1148
1181
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1149
1182
              headers in a nonstandard directory <include dir>
1150
1183
  CPP         C preprocessor
 
1184
  CXX         C++ compiler command
 
1185
  CXXFLAGS    C++ compiler flags
 
1186
  CXXCPP      C++ preprocessor
 
1187
  F77         Fortran 77 compiler command
 
1188
  FFLAGS      Fortran 77 compiler flags
1151
1189
  PKG_CONFIG  path to pkg-config utility
1152
1190
  XDM_CFLAGS  C compiler flags for XDM, overriding pkg-config
1153
1191
  XDM_LIBS    linker flags for XDM, overriding pkg-config
1173
1211
              linker flags for XDMGREET, overriding pkg-config
1174
1212
  XT_CFLAGS   C compiler flags for XT, overriding pkg-config
1175
1213
  XT_LIBS     linker flags for XT, overriding pkg-config
 
1214
  APPDEFS_CFLAGS
 
1215
              C compiler flags for APPDEFS, overriding pkg-config
 
1216
  APPDEFS_LIBS
 
1217
              linker flags for APPDEFS, overriding pkg-config
1176
1218
 
1177
1219
Use these variables to override the choices made by `configure' or to help
1178
1220
it to find libraries and programs with nonstandard names/locations.
1211
1253
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1212
1254
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1213
1255
esac
1214
 
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1215
 
# absolute.
1216
 
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1217
 
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1218
 
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1219
 
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
 
1256
 
 
1257
# Do not use `cd foo && pwd` to compute absolute paths, because
 
1258
# the directories may not exist.
 
1259
case `pwd` in
 
1260
.) ac_abs_builddir="$ac_dir";;
 
1261
*)
 
1262
  case "$ac_dir" in
 
1263
  .) ac_abs_builddir=`pwd`;;
 
1264
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
1265
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
1266
  esac;;
 
1267
esac
 
1268
case $ac_abs_builddir in
 
1269
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
1270
*)
 
1271
  case ${ac_top_builddir}. in
 
1272
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
1273
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
1274
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
1275
  esac;;
 
1276
esac
 
1277
case $ac_abs_builddir in
 
1278
.) ac_abs_srcdir=$ac_srcdir;;
 
1279
*)
 
1280
  case $ac_srcdir in
 
1281
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
1282
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
1283
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
1284
  esac;;
 
1285
esac
 
1286
case $ac_abs_builddir in
 
1287
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
1288
*)
 
1289
  case $ac_top_srcdir in
 
1290
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
1291
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
1292
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
1293
  esac;;
 
1294
esac
1220
1295
 
1221
1296
    cd $ac_dir
1222
1297
    # Check for guested configure; otherwise get Cygnus style configure.
1227
1302
      echo
1228
1303
      $SHELL $ac_srcdir/configure  --help=recursive
1229
1304
    elif test -f $ac_srcdir/configure.ac ||
1230
 
           test -f $ac_srcdir/configure.in; then
 
1305
           test -f $ac_srcdir/configure.in; then
1231
1306
      echo
1232
1307
      $ac_configure --help
1233
1308
    else
1240
1315
test -n "$ac_init_help" && exit 0
1241
1316
if $ac_init_version; then
1242
1317
  cat <<\_ACEOF
1243
 
xdm configure 0.99.4
1244
 
generated by GNU Autoconf 2.57
 
1318
xdm configure 1.0.1
 
1319
generated by GNU Autoconf 2.59
1245
1320
 
1246
 
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1247
 
Free Software Foundation, Inc.
 
1321
Copyright (C) 2003 Free Software Foundation, Inc.
1248
1322
This configure script is free software; the Free Software Foundation
1249
1323
gives unlimited permission to copy, distribute and modify it.
1250
1324
_ACEOF
1255
1329
This file contains any messages produced by compilers while
1256
1330
running configure, to aid debugging if configure makes a mistake.
1257
1331
 
1258
 
It was created by xdm $as_me 0.99.4, which was
1259
 
generated by GNU Autoconf 2.57.  Invocation command line was
 
1332
It was created by xdm $as_me 1.0.1, which was
 
1333
generated by GNU Autoconf 2.59.  Invocation command line was
1260
1334
 
1261
1335
  $ $0 $@
1262
1336
 
1333
1407
    2)
1334
1408
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1335
1409
      if test $ac_must_keep_next = true; then
1336
 
        ac_must_keep_next=false # Got value, back to normal.
 
1410
        ac_must_keep_next=false # Got value, back to normal.
1337
1411
      else
1338
 
        case $ac_arg in
1339
 
          *=* | --config-cache | -C | -disable-* | --disable-* \
1340
 
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1341
 
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1342
 
          | -with-* | --with-* | -without-* | --without-* | --x)
1343
 
            case "$ac_configure_args0 " in
1344
 
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1345
 
            esac
1346
 
            ;;
1347
 
          -* ) ac_must_keep_next=true ;;
1348
 
        esac
 
1412
        case $ac_arg in
 
1413
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1414
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1415
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1416
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1417
            case "$ac_configure_args0 " in
 
1418
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1419
            esac
 
1420
            ;;
 
1421
          -* ) ac_must_keep_next=true ;;
 
1422
        esac
1349
1423
      fi
1350
1424
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1351
1425
      # Get rid of the leading space.
1379
1453
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1380
1454
    *ac_space=\ *)
1381
1455
      sed -n \
1382
 
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1383
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
 
1456
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
 
1457
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1384
1458
      ;;
1385
1459
    *)
1386
1460
      sed -n \
1387
 
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
1461
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1388
1462
      ;;
1389
1463
    esac;
1390
1464
}
1413
1487
      for ac_var in $ac_subst_files
1414
1488
      do
1415
1489
        eval ac_val=$`echo $ac_var`
1416
 
        echo "$ac_var='"'"'$ac_val'"'"'"
 
1490
        echo "$ac_var='"'"'$ac_val'"'"'"
1417
1491
      done | sort
1418
1492
      echo
1419
1493
    fi
1432
1506
      echo "$as_me: caught signal $ac_signal"
1433
1507
    echo "$as_me: exit $exit_status"
1434
1508
  } >&5
1435
 
  rm -f core core.* *.core &&
 
1509
  rm -f core *.core &&
1436
1510
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1437
1511
    exit $exit_status
1438
1512
     ' 0
1512
1586
# value.
1513
1587
ac_cache_corrupted=false
1514
1588
for ac_var in `(set) 2>&1 |
1515
 
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
 
1589
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1516
1590
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1517
1591
  eval ac_new_set=\$ac_env_${ac_var}_set
1518
1592
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1529
1603
    ,);;
1530
1604
    *)
1531
1605
      if test "x$ac_old_val" != "x$ac_new_val"; then
1532
 
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
1606
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1533
1607
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1534
 
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
 
1608
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1535
1609
echo "$as_me:   former value:  $ac_old_val" >&2;}
1536
 
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
 
1610
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1537
1611
echo "$as_me:   current value: $ac_new_val" >&2;}
1538
 
        ac_cache_corrupted=:
 
1612
        ac_cache_corrupted=:
1539
1613
      fi;;
1540
1614
  esac
1541
1615
  # Pass precious variables to config.status.
1628
1702
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1629
1703
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1630
1704
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
1705
# OS/2's system install, which has a completely different semantic
1631
1706
# ./install, which can be erroneously created by make from ./install.sh.
1632
1707
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1633
1708
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1644
1719
case $as_dir/ in
1645
1720
  ./ | .// | /cC/* | \
1646
1721
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
1722
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1647
1723
  /usr/ucb/* ) ;;
1648
1724
  *)
1649
1725
    # OSF1 and SCO ODT 3.0 have their own names for install.
1651
1727
    # by default.
1652
1728
    for ac_prog in ginstall scoinst install; do
1653
1729
      for ac_exec_ext in '' $ac_executable_extensions; do
1654
 
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1655
 
          if test $ac_prog = install &&
1656
 
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1657
 
            # AIX install.  It has an incompatible calling convention.
1658
 
            :
1659
 
          elif test $ac_prog = install &&
1660
 
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1661
 
            # program-specific install script used by HP pwplus--don't use.
1662
 
            :
1663
 
          else
1664
 
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1665
 
            break 3
1666
 
          fi
1667
 
        fi
 
1730
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
1731
          if test $ac_prog = install &&
 
1732
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
1733
            # AIX install.  It has an incompatible calling convention.
 
1734
            :
 
1735
          elif test $ac_prog = install &&
 
1736
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
1737
            # program-specific install script used by HP pwplus--don't use.
 
1738
            :
 
1739
          else
 
1740
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
1741
            break 3
 
1742
          fi
 
1743
        fi
1668
1744
      done
1669
1745
    done
1670
1746
    ;;
1808
1884
 
1809
1885
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1810
1886
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1811
 
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
 
1887
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1812
1888
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1813
1889
  echo $ECHO_N "(cached) $ECHO_C" >&6
1814
1890
else
1864
1940
 
1865
1941
# Define the identity of the package.
1866
1942
 PACKAGE='xdm'
1867
 
 VERSION='0.99.4'
 
1943
 VERSION='1.0.1'
1868
1944
 
1869
1945
 
1870
1946
cat >>confdefs.h <<_ACEOF
2354
2430
  (exit $ac_status); }
2355
2431
 
2356
2432
cat >conftest.$ac_ext <<_ACEOF
2357
 
#line $LINENO "configure"
2358
2433
/* confdefs.h.  */
2359
2434
_ACEOF
2360
2435
cat confdefs.h >>conftest.$ac_ext
2374
2449
# Try to create an executable without -o first, disregard a.out.
2375
2450
# It will help us diagnose broken compilers, and finding out an intuition
2376
2451
# of exeext.
2377
 
echo "$as_me:$LINENO: checking for C compiler default output" >&5
2378
 
echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
 
2452
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
2453
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2379
2454
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2380
2455
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2381
2456
  (eval $ac_link_default) 2>&5
2395
2470
  test -f "$ac_file" || continue
2396
2471
  case $ac_file in
2397
2472
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2398
 
        ;;
 
2473
        ;;
2399
2474
    conftest.$ac_ext )
2400
 
        # This is the source file.
2401
 
        ;;
 
2475
        # This is the source file.
 
2476
        ;;
2402
2477
    [ab].out )
2403
 
        # We found the default executable, but exeext='' is most
2404
 
        # certainly right.
2405
 
        break;;
 
2478
        # We found the default executable, but exeext='' is most
 
2479
        # certainly right.
 
2480
        break;;
2406
2481
    *.* )
2407
 
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2408
 
        # FIXME: I believe we export ac_cv_exeext for Libtool,
2409
 
        # but it would be cool to find out if it's true.  Does anybody
2410
 
        # maintain Libtool? --akim.
2411
 
        export ac_cv_exeext
2412
 
        break;;
 
2482
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2483
        # FIXME: I believe we export ac_cv_exeext for Libtool,
 
2484
        # but it would be cool to find out if it's true.  Does anybody
 
2485
        # maintain Libtool? --akim.
 
2486
        export ac_cv_exeext
 
2487
        break;;
2413
2488
    * )
2414
 
        break;;
 
2489
        break;;
2415
2490
  esac
2416
2491
done
2417
2492
else
2485
2560
  case $ac_file in
2486
2561
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2487
2562
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2488
 
          export ac_cv_exeext
2489
 
          break;;
 
2563
          export ac_cv_exeext
 
2564
          break;;
2490
2565
    * ) break;;
2491
2566
  esac
2492
2567
done
2511
2586
  echo $ECHO_N "(cached) $ECHO_C" >&6
2512
2587
else
2513
2588
  cat >conftest.$ac_ext <<_ACEOF
2514
 
#line $LINENO "configure"
2515
2589
/* confdefs.h.  */
2516
2590
_ACEOF
2517
2591
cat confdefs.h >>conftest.$ac_ext
2562
2636
  echo $ECHO_N "(cached) $ECHO_C" >&6
2563
2637
else
2564
2638
  cat >conftest.$ac_ext <<_ACEOF
2565
 
#line $LINENO "configure"
2566
2639
/* confdefs.h.  */
2567
2640
_ACEOF
2568
2641
cat confdefs.h >>conftest.$ac_ext
2582
2655
_ACEOF
2583
2656
rm -f conftest.$ac_objext
2584
2657
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2585
 
  (eval $ac_compile) 2>&5
 
2658
  (eval $ac_compile) 2>conftest.er1
2586
2659
  ac_status=$?
 
2660
  grep -v '^ *+' conftest.er1 >conftest.err
 
2661
  rm -f conftest.er1
 
2662
  cat conftest.err >&5
2587
2663
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588
2664
  (exit $ac_status); } &&
2589
 
         { ac_try='test -s conftest.$ac_objext'
 
2665
         { ac_try='test -z "$ac_c_werror_flag"
 
2666
                         || test ! -s conftest.err'
 
2667
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2668
  (eval $ac_try) 2>&5
 
2669
  ac_status=$?
 
2670
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2671
  (exit $ac_status); }; } &&
 
2672
         { ac_try='test -s conftest.$ac_objext'
2590
2673
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2591
2674
  (eval $ac_try) 2>&5
2592
2675
  ac_status=$?
2599
2682
 
2600
2683
ac_compiler_gnu=no
2601
2684
fi
2602
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
2685
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2603
2686
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2604
2687
 
2605
2688
fi
2615
2698
  echo $ECHO_N "(cached) $ECHO_C" >&6
2616
2699
else
2617
2700
  cat >conftest.$ac_ext <<_ACEOF
2618
 
#line $LINENO "configure"
2619
2701
/* confdefs.h.  */
2620
2702
_ACEOF
2621
2703
cat confdefs.h >>conftest.$ac_ext
2632
2714
_ACEOF
2633
2715
rm -f conftest.$ac_objext
2634
2716
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2635
 
  (eval $ac_compile) 2>&5
 
2717
  (eval $ac_compile) 2>conftest.er1
2636
2718
  ac_status=$?
 
2719
  grep -v '^ *+' conftest.er1 >conftest.err
 
2720
  rm -f conftest.er1
 
2721
  cat conftest.err >&5
2637
2722
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638
2723
  (exit $ac_status); } &&
2639
 
         { ac_try='test -s conftest.$ac_objext'
 
2724
         { ac_try='test -z "$ac_c_werror_flag"
 
2725
                         || test ! -s conftest.err'
 
2726
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2727
  (eval $ac_try) 2>&5
 
2728
  ac_status=$?
 
2729
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2730
  (exit $ac_status); }; } &&
 
2731
         { ac_try='test -s conftest.$ac_objext'
2640
2732
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2641
2733
  (eval $ac_try) 2>&5
2642
2734
  ac_status=$?
2649
2741
 
2650
2742
ac_cv_prog_cc_g=no
2651
2743
fi
2652
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
2744
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2653
2745
fi
2654
2746
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2655
2747
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2676
2768
  ac_cv_prog_cc_stdc=no
2677
2769
ac_save_CC=$CC
2678
2770
cat >conftest.$ac_ext <<_ACEOF
2679
 
#line $LINENO "configure"
2680
2771
/* confdefs.h.  */
2681
2772
_ACEOF
2682
2773
cat confdefs.h >>conftest.$ac_ext
2704
2795
  va_end (v);
2705
2796
  return s;
2706
2797
}
 
2798
 
 
2799
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
2800
   function prototypes and stuff, but not '\xHH' hex character constants.
 
2801
   These don't provoke an error unfortunately, instead are silently treated
 
2802
   as 'x'.  The following induces an error, until -std1 is added to get
 
2803
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
2804
   array size at least.  It's necessary to write '\x00'==0 to get something
 
2805
   that's true only with -std1.  */
 
2806
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
2807
 
2707
2808
int test (int i, double x);
2708
2809
struct s1 {int (*f) (int a);};
2709
2810
struct s2 {int (*f) (double a);};
2730
2831
  CC="$ac_save_CC $ac_arg"
2731
2832
  rm -f conftest.$ac_objext
2732
2833
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2733
 
  (eval $ac_compile) 2>&5
 
2834
  (eval $ac_compile) 2>conftest.er1
2734
2835
  ac_status=$?
 
2836
  grep -v '^ *+' conftest.er1 >conftest.err
 
2837
  rm -f conftest.er1
 
2838
  cat conftest.err >&5
2735
2839
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736
2840
  (exit $ac_status); } &&
2737
 
         { ac_try='test -s conftest.$ac_objext'
 
2841
         { ac_try='test -z "$ac_c_werror_flag"
 
2842
                         || test ! -s conftest.err'
 
2843
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2844
  (eval $ac_try) 2>&5
 
2845
  ac_status=$?
 
2846
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2847
  (exit $ac_status); }; } &&
 
2848
         { ac_try='test -s conftest.$ac_objext'
2738
2849
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2739
2850
  (eval $ac_try) 2>&5
2740
2851
  ac_status=$?
2747
2858
sed 's/^/| /' conftest.$ac_ext >&5
2748
2859
 
2749
2860
fi
2750
 
rm -f conftest.$ac_objext
 
2861
rm -f conftest.err conftest.$ac_objext
2751
2862
done
2752
2863
rm -f conftest.$ac_ext conftest.$ac_objext
2753
2864
CC=$ac_save_CC
2775
2886
_ACEOF
2776
2887
rm -f conftest.$ac_objext
2777
2888
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2778
 
  (eval $ac_compile) 2>&5
 
2889
  (eval $ac_compile) 2>conftest.er1
2779
2890
  ac_status=$?
 
2891
  grep -v '^ *+' conftest.er1 >conftest.err
 
2892
  rm -f conftest.er1
 
2893
  cat conftest.err >&5
2780
2894
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781
2895
  (exit $ac_status); } &&
2782
 
         { ac_try='test -s conftest.$ac_objext'
 
2896
         { ac_try='test -z "$ac_c_werror_flag"
 
2897
                         || test ! -s conftest.err'
 
2898
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2899
  (eval $ac_try) 2>&5
 
2900
  ac_status=$?
 
2901
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2902
  (exit $ac_status); }; } &&
 
2903
         { ac_try='test -s conftest.$ac_objext'
2783
2904
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2784
2905
  (eval $ac_try) 2>&5
2785
2906
  ac_status=$?
2786
2907
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787
2908
  (exit $ac_status); }; }; then
2788
2909
  for ac_declaration in \
2789
 
   ''\
2790
 
   '#include <stdlib.h>' \
 
2910
   '' \
2791
2911
   'extern "C" void std::exit (int) throw (); using std::exit;' \
2792
2912
   'extern "C" void std::exit (int); using std::exit;' \
2793
2913
   'extern "C" void exit (int) throw ();' \
2795
2915
   'void exit (int);'
2796
2916
do
2797
2917
  cat >conftest.$ac_ext <<_ACEOF
2798
 
#line $LINENO "configure"
2799
2918
/* confdefs.h.  */
2800
2919
_ACEOF
2801
2920
cat confdefs.h >>conftest.$ac_ext
2802
2921
cat >>conftest.$ac_ext <<_ACEOF
2803
2922
/* end confdefs.h.  */
 
2923
$ac_declaration
2804
2924
#include <stdlib.h>
2805
 
$ac_declaration
2806
2925
int
2807
2926
main ()
2808
2927
{
2813
2932
_ACEOF
2814
2933
rm -f conftest.$ac_objext
2815
2934
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2816
 
  (eval $ac_compile) 2>&5
 
2935
  (eval $ac_compile) 2>conftest.er1
2817
2936
  ac_status=$?
 
2937
  grep -v '^ *+' conftest.er1 >conftest.err
 
2938
  rm -f conftest.er1
 
2939
  cat conftest.err >&5
2818
2940
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2819
2941
  (exit $ac_status); } &&
2820
 
         { ac_try='test -s conftest.$ac_objext'
 
2942
         { ac_try='test -z "$ac_c_werror_flag"
 
2943
                         || test ! -s conftest.err'
 
2944
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2945
  (eval $ac_try) 2>&5
 
2946
  ac_status=$?
 
2947
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2948
  (exit $ac_status); }; } &&
 
2949
         { ac_try='test -s conftest.$ac_objext'
2821
2950
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2822
2951
  (eval $ac_try) 2>&5
2823
2952
  ac_status=$?
2830
2959
 
2831
2960
continue
2832
2961
fi
2833
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
2962
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2834
2963
  cat >conftest.$ac_ext <<_ACEOF
2835
 
#line $LINENO "configure"
2836
2964
/* confdefs.h.  */
2837
2965
_ACEOF
2838
2966
cat confdefs.h >>conftest.$ac_ext
2849
2977
_ACEOF
2850
2978
rm -f conftest.$ac_objext
2851
2979
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2852
 
  (eval $ac_compile) 2>&5
 
2980
  (eval $ac_compile) 2>conftest.er1
2853
2981
  ac_status=$?
 
2982
  grep -v '^ *+' conftest.er1 >conftest.err
 
2983
  rm -f conftest.er1
 
2984
  cat conftest.err >&5
2854
2985
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855
2986
  (exit $ac_status); } &&
2856
 
         { ac_try='test -s conftest.$ac_objext'
 
2987
         { ac_try='test -z "$ac_c_werror_flag"
 
2988
                         || test ! -s conftest.err'
 
2989
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2990
  (eval $ac_try) 2>&5
 
2991
  ac_status=$?
 
2992
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2993
  (exit $ac_status); }; } &&
 
2994
         { ac_try='test -s conftest.$ac_objext'
2857
2995
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2858
2996
  (eval $ac_try) 2>&5
2859
2997
  ac_status=$?
2865
3003
sed 's/^/| /' conftest.$ac_ext >&5
2866
3004
 
2867
3005
fi
2868
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
3006
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2869
3007
done
2870
3008
rm -f conftest*
2871
3009
if test -n "$ac_declaration"; then
2879
3017
sed 's/^/| /' conftest.$ac_ext >&5
2880
3018
 
2881
3019
fi
2882
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
3020
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2883
3021
ac_ext=c
2884
3022
ac_cpp='$CPP $CPPFLAGS'
2885
3023
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3054
3192
 
3055
3193
 
3056
3194
 
 
3195
 
3057
3196
# Check whether --enable-shared or --disable-shared was given.
3058
3197
if test "${enable_shared+set}" = set; then
3059
3198
  enableval="$enable_shared"
3060
3199
  p=${PACKAGE-default}
3061
 
case $enableval in
3062
 
yes) enable_shared=yes ;;
3063
 
no) enable_shared=no ;;
3064
 
*)
3065
 
  enable_shared=no
3066
 
  # Look at the argument we got.  We use all the common list separators.
3067
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3068
 
  for pkg in $enableval; do
3069
 
    if test "X$pkg" = "X$p"; then
3070
 
      enable_shared=yes
3071
 
    fi
3072
 
  done
3073
 
  IFS="$ac_save_ifs"
3074
 
  ;;
3075
 
esac
 
3200
    case $enableval in
 
3201
    yes) enable_shared=yes ;;
 
3202
    no) enable_shared=no ;;
 
3203
    *)
 
3204
      enable_shared=no
 
3205
      # Look at the argument we got.  We use all the common list separators.
 
3206
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
3207
      for pkg in $enableval; do
 
3208
        IFS="$lt_save_ifs"
 
3209
        if test "X$pkg" = "X$p"; then
 
3210
          enable_shared=yes
 
3211
        fi
 
3212
      done
 
3213
      IFS="$lt_save_ifs"
 
3214
      ;;
 
3215
    esac
3076
3216
else
3077
3217
  enable_shared=yes
3078
3218
fi;
 
3219
 
3079
3220
# Check whether --enable-static or --disable-static was given.
3080
3221
if test "${enable_static+set}" = set; then
3081
3222
  enableval="$enable_static"
3082
3223
  p=${PACKAGE-default}
3083
 
case $enableval in
3084
 
yes) enable_static=yes ;;
3085
 
no) enable_static=no ;;
3086
 
*)
3087
 
  enable_static=no
3088
 
  # Look at the argument we got.  We use all the common list separators.
3089
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3090
 
  for pkg in $enableval; do
3091
 
    if test "X$pkg" = "X$p"; then
3092
 
      enable_static=yes
3093
 
    fi
3094
 
  done
3095
 
  IFS="$ac_save_ifs"
3096
 
  ;;
3097
 
esac
 
3224
    case $enableval in
 
3225
    yes) enable_static=yes ;;
 
3226
    no) enable_static=no ;;
 
3227
    *)
 
3228
     enable_static=no
 
3229
      # Look at the argument we got.  We use all the common list separators.
 
3230
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
3231
      for pkg in $enableval; do
 
3232
        IFS="$lt_save_ifs"
 
3233
        if test "X$pkg" = "X$p"; then
 
3234
          enable_static=yes
 
3235
        fi
 
3236
      done
 
3237
      IFS="$lt_save_ifs"
 
3238
      ;;
 
3239
    esac
3098
3240
else
3099
3241
  enable_static=yes
3100
3242
fi;
 
3243
 
3101
3244
# Check whether --enable-fast-install or --disable-fast-install was given.
3102
3245
if test "${enable_fast_install+set}" = set; then
3103
3246
  enableval="$enable_fast_install"
3104
3247
  p=${PACKAGE-default}
3105
 
case $enableval in
3106
 
yes) enable_fast_install=yes ;;
3107
 
no) enable_fast_install=no ;;
3108
 
*)
3109
 
  enable_fast_install=no
3110
 
  # Look at the argument we got.  We use all the common list separators.
3111
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3112
 
  for pkg in $enableval; do
3113
 
    if test "X$pkg" = "X$p"; then
3114
 
      enable_fast_install=yes
3115
 
    fi
3116
 
  done
3117
 
  IFS="$ac_save_ifs"
3118
 
  ;;
3119
 
esac
 
3248
    case $enableval in
 
3249
    yes) enable_fast_install=yes ;;
 
3250
    no) enable_fast_install=no ;;
 
3251
    *)
 
3252
      enable_fast_install=no
 
3253
      # Look at the argument we got.  We use all the common list separators.
 
3254
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
3255
      for pkg in $enableval; do
 
3256
        IFS="$lt_save_ifs"
 
3257
        if test "X$pkg" = "X$p"; then
 
3258
          enable_fast_install=yes
 
3259
        fi
 
3260
      done
 
3261
      IFS="$lt_save_ifs"
 
3262
      ;;
 
3263
    esac
3120
3264
else
3121
3265
  enable_fast_install=yes
3122
3266
fi;
 
3267
 
3123
3268
# Make sure we can run config.sub.
3124
3269
$ac_config_sub sun4 >/dev/null 2>&1 ||
3125
3270
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3174
3319
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3175
3320
 
3176
3321
 
3177
 
# Find the correct PATH separator.  Usually this is `:', but
3178
 
# DJGPP uses `;' like DOS.
3179
 
if test "X${PATH_SEPARATOR+set}" != Xset; then
3180
 
  UNAME=${UNAME-`uname 2>/dev/null`}
3181
 
  case X$UNAME in
3182
 
    *-DOS) lt_cv_sys_path_separator=';' ;;
3183
 
    *)     lt_cv_sys_path_separator=':' ;;
3184
 
  esac
3185
 
  PATH_SEPARATOR=$lt_cv_sys_path_separator
3186
 
fi
 
3322
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
 
3323
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
 
3324
if test "${lt_cv_path_SED+set}" = set; then
 
3325
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3326
else
 
3327
  # Loop through the user's path and test for sed and gsed.
 
3328
# Then use that list of sed's as ones to test for truncation.
 
3329
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3330
for as_dir in $PATH
 
3331
do
 
3332
  IFS=$as_save_IFS
 
3333
  test -z "$as_dir" && as_dir=.
 
3334
  for lt_ac_prog in sed gsed; do
 
3335
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3336
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
 
3337
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
 
3338
      fi
 
3339
    done
 
3340
  done
 
3341
done
 
3342
lt_ac_max=0
 
3343
lt_ac_count=0
 
3344
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
 
3345
# along with /bin/sed that truncates output.
 
3346
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
 
3347
  test ! -f $lt_ac_sed && break
 
3348
  cat /dev/null > conftest.in
 
3349
  lt_ac_count=0
 
3350
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
 
3351
  # Check for GNU sed and select it if it is found.
 
3352
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
 
3353
    lt_cv_path_SED=$lt_ac_sed
 
3354
    break
 
3355
  fi
 
3356
  while true; do
 
3357
    cat conftest.in conftest.in >conftest.tmp
 
3358
    mv conftest.tmp conftest.in
 
3359
    cp conftest.in conftest.nl
 
3360
    echo >>conftest.nl
 
3361
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
 
3362
    cmp -s conftest.out conftest.nl || break
 
3363
    # 10000 chars as input seems more than enough
 
3364
    test $lt_ac_count -gt 10 && break
 
3365
    lt_ac_count=`expr $lt_ac_count + 1`
 
3366
    if test $lt_ac_count -gt $lt_ac_max; then
 
3367
      lt_ac_max=$lt_ac_count
 
3368
      lt_cv_path_SED=$lt_ac_sed
 
3369
    fi
 
3370
  done
 
3371
done
 
3372
SED=$lt_cv_path_SED
 
3373
 
 
3374
fi
 
3375
 
 
3376
echo "$as_me:$LINENO: result: $SED" >&5
 
3377
echo "${ECHO_T}$SED" >&6
 
3378
 
 
3379
echo "$as_me:$LINENO: checking for egrep" >&5
 
3380
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
 
3381
if test "${ac_cv_prog_egrep+set}" = set; then
 
3382
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3383
else
 
3384
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
 
3385
    then ac_cv_prog_egrep='grep -E'
 
3386
    else ac_cv_prog_egrep='egrep'
 
3387
    fi
 
3388
fi
 
3389
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
 
3390
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
 
3391
 EGREP=$ac_cv_prog_egrep
 
3392
 
3187
3393
 
3188
3394
 
3189
3395
# Check whether --with-gnu-ld or --without-gnu-ld was given.
3196
3402
ac_prog=ld
3197
3403
if test "$GCC" = yes; then
3198
3404
  # Check if gcc -print-prog-name=ld gives a path.
3199
 
  echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3200
 
echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
 
3405
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
3406
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3201
3407
  case $host in
3202
3408
  *-*-mingw*)
3203
3409
    # gcc leaves a trailing carriage return which upsets mingw
3207
3413
  esac
3208
3414
  case $ac_prog in
3209
3415
    # Accept absolute paths.
3210
 
    [\\/]* | [A-Za-z]:[\\/]*)
 
3416
    [\\/]* | ?:[\\/]*)
3211
3417
      re_direlt='/[^/][^/]*/\.\./'
3212
 
      # Canonicalize the path of ld
3213
 
      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
 
3418
      # Canonicalize the pathname of ld
 
3419
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3214
3420
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3215
 
        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
 
3421
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3216
3422
      done
3217
3423
      test -z "$LD" && LD="$ac_prog"
3218
3424
      ;;
3236
3442
  echo $ECHO_N "(cached) $ECHO_C" >&6
3237
3443
else
3238
3444
  if test -z "$LD"; then
3239
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
3445
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3240
3446
  for ac_dir in $PATH; do
 
3447
    IFS="$lt_save_ifs"
3241
3448
    test -z "$ac_dir" && ac_dir=.
3242
3449
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3243
3450
      lt_cv_path_LD="$ac_dir/$ac_prog"
3244
3451
      # Check to see if the program is GNU ld.  I'd rather use --version,
3245
3452
      # but apparently some GNU ld's only accept -v.
3246
3453
      # Break only if it was the GNU/non-GNU ld that we prefer.
3247
 
      if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
 
3454
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
3455
      *GNU* | *'with BFD'*)
3248
3456
        test "$with_gnu_ld" != no && break
3249
 
      else
 
3457
        ;;
 
3458
      *)
3250
3459
        test "$with_gnu_ld" != yes && break
3251
 
      fi
 
3460
        ;;
 
3461
      esac
3252
3462
    fi
3253
3463
  done
3254
 
  IFS="$ac_save_ifs"
 
3464
  IFS="$lt_save_ifs"
3255
3465
else
3256
3466
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3257
3467
fi
3274
3484
  echo $ECHO_N "(cached) $ECHO_C" >&6
3275
3485
else
3276
3486
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3277
 
if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
 
3487
case `$LD -v 2>&1 </dev/null` in
 
3488
*GNU* | *'with BFD'*)
3278
3489
  lt_cv_prog_gnu_ld=yes
3279
 
else
 
3490
  ;;
 
3491
*)
3280
3492
  lt_cv_prog_gnu_ld=no
3281
 
fi
 
3493
  ;;
 
3494
esac
3282
3495
fi
3283
3496
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3284
3497
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3295
3508
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3296
3509
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3297
3510
reload_flag=$lt_cv_ld_reload_flag
3298
 
test -n "$reload_flag" && reload_flag=" $reload_flag"
 
3511
case $reload_flag in
 
3512
"" | " "*) ;;
 
3513
*) reload_flag=" $reload_flag" ;;
 
3514
esac
 
3515
reload_cmds='$LD$reload_flag -o $output$reload_objs'
3299
3516
 
3300
3517
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3301
3518
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3306
3523
  # Let the user override the test.
3307
3524
  lt_cv_path_NM="$NM"
3308
3525
else
3309
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
3526
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3310
3527
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
 
3528
    IFS="$lt_save_ifs"
3311
3529
    test -z "$ac_dir" && ac_dir=.
3312
 
    tmp_nm=$ac_dir/${ac_tool_prefix}nm
3313
 
    if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
 
3530
    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
 
3531
    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3314
3532
      # Check to see if the nm accepts a BSD-compat flag.
3315
3533
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3316
3534
      #   nm: unknown option "B" ignored
3317
3535
      # Tru64's nm complains that /dev/null is an invalid object file
3318
 
      if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
 
3536
      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
3537
      */dev/null* | *'Invalid file or object type'*)
3319
3538
        lt_cv_path_NM="$tmp_nm -B"
3320
3539
        break
3321
 
      elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3322
 
        lt_cv_path_NM="$tmp_nm -p"
3323
 
        break
3324
 
      else
3325
 
        lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3326
 
        continue # so that we can try to find one that supports BSD flags
3327
 
      fi
 
3540
        ;;
 
3541
      *)
 
3542
        case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
3543
        */dev/null*)
 
3544
          lt_cv_path_NM="$tmp_nm -p"
 
3545
          break
 
3546
          ;;
 
3547
        *)
 
3548
          lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
3549
          continue # so that we can try to find one that supports BSD flags
 
3550
          ;;
 
3551
        esac
 
3552
      esac
3328
3553
    fi
3329
3554
  done
3330
 
  IFS="$ac_save_ifs"
 
3555
  IFS="$lt_save_ifs"
3331
3556
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3332
3557
fi
3333
3558
fi
3334
 
 
 
3559
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
 
3560
echo "${ECHO_T}$lt_cv_path_NM" >&6
3335
3561
NM="$lt_cv_path_NM"
3336
 
echo "$as_me:$LINENO: result: $NM" >&5
3337
 
echo "${ECHO_T}$NM" >&6
3338
 
 
3339
 
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3340
 
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3341
 
if test "${lt_cv_path_SED+set}" = set; then
3342
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3343
 
else
3344
 
  # Loop through the user's path and test for sed and gsed.
3345
 
# Then use that list of sed's as ones to test for truncation.
3346
 
as_executable_p="test -f"
3347
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3348
 
for as_dir in $PATH
3349
 
do
3350
 
  IFS=$as_save_IFS
3351
 
  test -z "$as_dir" && as_dir=.
3352
 
  for ac_prog in sed gsed; do
3353
 
    for ac_exec_ext in '' $ac_executable_extensions; do
3354
 
      if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3355
 
        _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3356
 
      fi
3357
 
    done
3358
 
  done
3359
 
done
3360
 
 
3361
 
  # Create a temporary directory, and hook for its removal unless debugging.
3362
 
$debug ||
3363
 
{
3364
 
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3365
 
  trap '{ (exit 1); exit 1; }' 1 2 13 15
3366
 
}
3367
 
 
3368
 
# Create a (secure) tmp directory for tmp files.
3369
 
: ${TMPDIR=/tmp}
3370
 
{
3371
 
  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3372
 
  test -n "$tmp" && test -d "$tmp"
3373
 
}  ||
3374
 
{
3375
 
  tmp=$TMPDIR/sed$$-$RANDOM
3376
 
  (umask 077 && mkdir $tmp)
3377
 
} ||
3378
 
{
3379
 
   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3380
 
   { (exit 1); exit 1; }
3381
 
}
3382
 
  _max=0
3383
 
  _count=0
3384
 
  # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3385
 
  # along with /bin/sed that truncates output.
3386
 
  for _sed in $_sed_list /usr/xpg4/bin/sed; do
3387
 
    test ! -f ${_sed} && break
3388
 
    cat /dev/null > "$tmp/sed.in"
3389
 
    _count=0
3390
 
    echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
3391
 
    # Check for GNU sed and select it if it is found.
3392
 
    if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
3393
 
      lt_cv_path_SED=${_sed}
3394
 
      break
3395
 
    fi
3396
 
    while true; do
3397
 
      cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3398
 
      mv "$tmp/sed.tmp" "$tmp/sed.in"
3399
 
      cp "$tmp/sed.in" "$tmp/sed.nl"
3400
 
      echo >>"$tmp/sed.nl"
3401
 
      ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
3402
 
      cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
3403
 
      # 40000 chars as input seems more than enough
3404
 
      test $_count -gt 10 && break
3405
 
      _count=`expr $_count + 1`
3406
 
      if test $_count -gt $_max; then
3407
 
        _max=$_count
3408
 
        lt_cv_path_SED=$_sed
3409
 
      fi
3410
 
    done
3411
 
  done
3412
 
  rm -rf "$tmp"
3413
 
 
3414
 
fi
3415
 
 
3416
 
if test "X$SED" != "X"; then
3417
 
  lt_cv_path_SED=$SED
3418
 
else
3419
 
  SED=$lt_cv_path_SED
3420
 
fi
3421
 
echo "$as_me:$LINENO: result: $SED" >&5
3422
 
echo "${ECHO_T}$SED" >&6
3423
3562
 
3424
3563
echo "$as_me:$LINENO: checking whether ln -s works" >&5
3425
3564
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3447
3586
# 'pass_all' -- all dependencies passed with no checks.
3448
3587
# 'test_compile' -- check by making test program.
3449
3588
# 'file_magic [[regex]]' -- check by looking for files in library path
3450
 
# which responds to the $file_magic_cmd with a given egrep regex.
 
3589
# which responds to the $file_magic_cmd with a given extended regex.
3451
3590
# If you have `file' or equivalent on your system and you're not sure
3452
3591
# whether `pass_all' will *always* work, you probably want this one.
3453
3592
 
3466
3605
  lt_cv_file_magic_test_file=/shlib/libc.so
3467
3606
  ;;
3468
3607
 
3469
 
cygwin* | mingw* | pw32*)
 
3608
cygwin*)
 
3609
  # func_win32_libid is a shell function defined in ltmain.sh
 
3610
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
3611
  lt_cv_file_magic_cmd='func_win32_libid'
 
3612
  ;;
 
3613
 
 
3614
mingw* | pw32*)
 
3615
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
3616
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3470
3617
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3471
3618
  lt_cv_file_magic_cmd='$OBJDUMP -f'
3472
3619
  ;;
3473
3620
 
3474
3621
darwin* | rhapsody*)
3475
 
  lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3476
 
  lt_cv_file_magic_cmd='/usr/bin/file -L'
3477
 
  case "$host_os" in
3478
 
  rhapsody* | darwin1.[012])
3479
 
    lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3480
 
    ;;
3481
 
  *) # Darwin 1.3 on
3482
 
    lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3483
 
    ;;
3484
 
  esac
 
3622
  lt_cv_deplibs_check_method=pass_all
3485
3623
  ;;
3486
3624
 
3487
 
freebsd*)
 
3625
freebsd* | kfreebsd*-gnu)
3488
3626
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3489
3627
    case $host_cpu in
3490
3628
    i*86 )
3504
3642
  lt_cv_deplibs_check_method=pass_all
3505
3643
  ;;
3506
3644
 
3507
 
hpux10.20*|hpux11*)
3508
 
  lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
 
3645
hpux10.20* | hpux11*)
3509
3646
  lt_cv_file_magic_cmd=/usr/bin/file
3510
 
  lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
3647
  case "$host_cpu" in
 
3648
  ia64*)
 
3649
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 
3650
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
3651
    ;;
 
3652
  hppa*64*)
 
3653
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
 
3654
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
3655
    ;;
 
3656
  *)
 
3657
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
 
3658
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
3659
    ;;
 
3660
  esac
3511
3661
  ;;
3512
3662
 
3513
3663
irix5* | irix6* | nonstopux*)
3514
 
  case $host_os in
3515
 
  irix5* | nonstopux*)
3516
 
    # this will be overridden with pass_all, but let us keep it just in case
3517
 
    lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3518
 
    ;;
3519
 
  *)
3520
 
    case $LD in
3521
 
    *-32|*"-32 ") libmagic=32-bit;;
3522
 
    *-n32|*"-n32 ") libmagic=N32;;
3523
 
    *-64|*"-64 ") libmagic=64-bit;;
3524
 
    *) libmagic=never-match;;
3525
 
    esac
3526
 
    # this will be overridden with pass_all, but let us keep it just in case
3527
 
    lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3528
 
    ;;
 
3664
  case $LD in
 
3665
  *-32|*"-32 ") libmagic=32-bit;;
 
3666
  *-n32|*"-n32 ") libmagic=N32;;
 
3667
  *-64|*"-64 ") libmagic=64-bit;;
 
3668
  *) libmagic=never-match;;
3529
3669
  esac
3530
 
  lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3531
3670
  lt_cv_deplibs_check_method=pass_all
3532
3671
  ;;
3533
3672
 
3534
3673
# This must be Linux ELF.
3535
 
linux-gnu*)
 
3674
linux*)
3536
3675
  case $host_cpu in
3537
 
  alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64* | s390* | x86_64*)
 
3676
  alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*|x86_64*)
3538
3677
    lt_cv_deplibs_check_method=pass_all ;;
3539
3678
  *)
3540
3679
    # glibc up to 2.1.1 does not perform some relocations on ARM
 
3680
    # this will be overridden with pass_all, but let us keep it just in case
3541
3681
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3542
3682
  esac
3543
3683
  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
 
3684
  lt_cv_deplibs_check_method=pass_all
3544
3685
  ;;
3545
3686
 
3546
3687
netbsd*)
3547
3688
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3548
 
    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
 
3689
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3549
3690
  else
3550
 
    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
 
3691
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3551
3692
  fi
3552
3693
  ;;
3553
3694
 
3557
3698
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
3558
3699
  ;;
3559
3700
 
 
3701
nto-qnx*)
 
3702
  lt_cv_deplibs_check_method=unknown
 
3703
  ;;
 
3704
 
3560
3705
openbsd*)
3561
3706
  lt_cv_file_magic_cmd=/usr/bin/file
3562
3707
  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3568
3713
  ;;
3569
3714
 
3570
3715
osf3* | osf4* | osf5*)
3571
 
  # this will be overridden with pass_all, but let us keep it just in case
3572
 
  lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3573
 
  lt_cv_file_magic_test_file=/shlib/libc.so
3574
3716
  lt_cv_deplibs_check_method=pass_all
3575
3717
  ;;
3576
3718
 
3580
3722
 
3581
3723
solaris*)
3582
3724
  lt_cv_deplibs_check_method=pass_all
3583
 
  lt_cv_file_magic_test_file=/lib/libc.so
3584
 
  ;;
3585
 
 
3586
 
sysv5uw[78]* | sysv4*uw2*)
3587
 
  lt_cv_deplibs_check_method=pass_all
3588
3725
  ;;
3589
3726
 
3590
3727
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3610
3747
    ;;
3611
3748
  esac
3612
3749
  ;;
 
3750
 
 
3751
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
 
3752
  lt_cv_deplibs_check_method=pass_all
 
3753
  ;;
3613
3754
esac
3614
3755
 
3615
3756
fi
3617
3758
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3618
3759
file_magic_cmd=$lt_cv_file_magic_cmd
3619
3760
deplibs_check_method=$lt_cv_deplibs_check_method
3620
 
 
3621
 
 
3622
 
 
3623
 
 
 
3761
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
3762
 
 
3763
 
 
3764
 
 
3765
 
 
3766
# If no C compiler was specified, use CC.
 
3767
LTCC=${LTCC-"$CC"}
 
3768
 
 
3769
# Allow CC to be a program name with arguments.
 
3770
compiler=$CC
 
3771
 
 
3772
 
 
3773
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
 
3774
if test "${enable_libtool_lock+set}" = set; then
 
3775
  enableval="$enable_libtool_lock"
 
3776
 
 
3777
fi;
 
3778
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
3779
 
 
3780
# Some flags need to be propagated to the compiler or linker for good
 
3781
# libtool support.
 
3782
case $host in
 
3783
ia64-*-hpux*)
 
3784
  # Find out which ABI we are using.
 
3785
  echo 'int i;' > conftest.$ac_ext
 
3786
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3787
  (eval $ac_compile) 2>&5
 
3788
  ac_status=$?
 
3789
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3790
  (exit $ac_status); }; then
 
3791
    case `/usr/bin/file conftest.$ac_objext` in
 
3792
    *ELF-32*)
 
3793
      HPUX_IA64_MODE="32"
 
3794
      ;;
 
3795
    *ELF-64*)
 
3796
      HPUX_IA64_MODE="64"
 
3797
      ;;
 
3798
    esac
 
3799
  fi
 
3800
  rm -rf conftest*
 
3801
  ;;
 
3802
*-*-irix6*)
 
3803
  # Find out which ABI we are using.
 
3804
  echo '#line 3804 "configure"' > conftest.$ac_ext
 
3805
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3806
  (eval $ac_compile) 2>&5
 
3807
  ac_status=$?
 
3808
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3809
  (exit $ac_status); }; then
 
3810
   if test "$lt_cv_prog_gnu_ld" = yes; then
 
3811
    case `/usr/bin/file conftest.$ac_objext` in
 
3812
    *32-bit*)
 
3813
      LD="${LD-ld} -melf32bsmip"
 
3814
      ;;
 
3815
    *N32*)
 
3816
      LD="${LD-ld} -melf32bmipn32"
 
3817
      ;;
 
3818
    *64-bit*)
 
3819
      LD="${LD-ld} -melf64bmip"
 
3820
      ;;
 
3821
    esac
 
3822
   else
 
3823
    case `/usr/bin/file conftest.$ac_objext` in
 
3824
    *32-bit*)
 
3825
      LD="${LD-ld} -32"
 
3826
      ;;
 
3827
    *N32*)
 
3828
      LD="${LD-ld} -n32"
 
3829
      ;;
 
3830
    *64-bit*)
 
3831
      LD="${LD-ld} -64"
 
3832
      ;;
 
3833
    esac
 
3834
   fi
 
3835
  fi
 
3836
  rm -rf conftest*
 
3837
  ;;
 
3838
 
 
3839
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
 
3840
  # Find out which ABI we are using.
 
3841
  echo 'int i;' > conftest.$ac_ext
 
3842
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3843
  (eval $ac_compile) 2>&5
 
3844
  ac_status=$?
 
3845
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3846
  (exit $ac_status); }; then
 
3847
    case "`/usr/bin/file conftest.o`" in
 
3848
    *32-bit*)
 
3849
      case $host in
 
3850
        x86_64-*linux*)
 
3851
          LD="${LD-ld} -m elf_i386"
 
3852
          ;;
 
3853
        ppc64-*linux*|powerpc64-*linux*)
 
3854
          LD="${LD-ld} -m elf32ppclinux"
 
3855
          ;;
 
3856
        s390x-*linux*)
 
3857
          LD="${LD-ld} -m elf_s390"
 
3858
          ;;
 
3859
        sparc64-*linux*)
 
3860
          LD="${LD-ld} -m elf32_sparc"
 
3861
          ;;
 
3862
      esac
 
3863
      ;;
 
3864
    *64-bit*)
 
3865
      case $host in
 
3866
        x86_64-*linux*)
 
3867
          LD="${LD-ld} -m elf_x86_64"
 
3868
          ;;
 
3869
        ppc*-*linux*|powerpc*-*linux*)
 
3870
          LD="${LD-ld} -m elf64ppc"
 
3871
          ;;
 
3872
        s390*-*linux*)
 
3873
          LD="${LD-ld} -m elf64_s390"
 
3874
          ;;
 
3875
        sparc*-*linux*)
 
3876
          LD="${LD-ld} -m elf64_sparc"
 
3877
          ;;
 
3878
      esac
 
3879
      ;;
 
3880
    esac
 
3881
  fi
 
3882
  rm -rf conftest*
 
3883
  ;;
 
3884
 
 
3885
*-*-sco3.2v5*)
 
3886
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
3887
  SAVE_CFLAGS="$CFLAGS"
 
3888
  CFLAGS="$CFLAGS -belf"
 
3889
  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
 
3890
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
 
3891
if test "${lt_cv_cc_needs_belf+set}" = set; then
 
3892
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3893
else
 
3894
  ac_ext=c
 
3895
ac_cpp='$CPP $CPPFLAGS'
 
3896
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3897
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3898
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3899
 
 
3900
     cat >conftest.$ac_ext <<_ACEOF
 
3901
/* confdefs.h.  */
 
3902
_ACEOF
 
3903
cat confdefs.h >>conftest.$ac_ext
 
3904
cat >>conftest.$ac_ext <<_ACEOF
 
3905
/* end confdefs.h.  */
 
3906
 
 
3907
int
 
3908
main ()
 
3909
{
 
3910
 
 
3911
  ;
 
3912
  return 0;
 
3913
}
 
3914
_ACEOF
 
3915
rm -f conftest.$ac_objext conftest$ac_exeext
 
3916
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3917
  (eval $ac_link) 2>conftest.er1
 
3918
  ac_status=$?
 
3919
  grep -v '^ *+' conftest.er1 >conftest.err
 
3920
  rm -f conftest.er1
 
3921
  cat conftest.err >&5
 
3922
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3923
  (exit $ac_status); } &&
 
3924
         { ac_try='test -z "$ac_c_werror_flag"
 
3925
                         || test ! -s conftest.err'
 
3926
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3927
  (eval $ac_try) 2>&5
 
3928
  ac_status=$?
 
3929
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3930
  (exit $ac_status); }; } &&
 
3931
         { ac_try='test -s conftest$ac_exeext'
 
3932
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3933
  (eval $ac_try) 2>&5
 
3934
  ac_status=$?
 
3935
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3936
  (exit $ac_status); }; }; then
 
3937
  lt_cv_cc_needs_belf=yes
 
3938
else
 
3939
  echo "$as_me: failed program was:" >&5
 
3940
sed 's/^/| /' conftest.$ac_ext >&5
 
3941
 
 
3942
lt_cv_cc_needs_belf=no
 
3943
fi
 
3944
rm -f conftest.err conftest.$ac_objext \
 
3945
      conftest$ac_exeext conftest.$ac_ext
 
3946
     ac_ext=c
 
3947
ac_cpp='$CPP $CPPFLAGS'
 
3948
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3949
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3950
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3951
 
 
3952
fi
 
3953
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
 
3954
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
 
3955
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
3956
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
3957
    CFLAGS="$SAVE_CFLAGS"
 
3958
  fi
 
3959
  ;;
 
3960
*-*-cygwin* | *-*-mingw* | *-*-pw32*)
 
3961
  if test -n "$ac_tool_prefix"; then
 
3962
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
 
3963
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
 
3964
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3965
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3966
if test "${ac_cv_prog_DLLTOOL+set}" = set; then
 
3967
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3968
else
 
3969
  if test -n "$DLLTOOL"; then
 
3970
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
 
3971
else
 
3972
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3973
for as_dir in $PATH
 
3974
do
 
3975
  IFS=$as_save_IFS
 
3976
  test -z "$as_dir" && as_dir=.
 
3977
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3978
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3979
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
 
3980
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3981
    break 2
 
3982
  fi
 
3983
done
 
3984
done
 
3985
 
 
3986
fi
 
3987
fi
 
3988
DLLTOOL=$ac_cv_prog_DLLTOOL
 
3989
if test -n "$DLLTOOL"; then
 
3990
  echo "$as_me:$LINENO: result: $DLLTOOL" >&5
 
3991
echo "${ECHO_T}$DLLTOOL" >&6
 
3992
else
 
3993
  echo "$as_me:$LINENO: result: no" >&5
 
3994
echo "${ECHO_T}no" >&6
 
3995
fi
 
3996
 
 
3997
fi
 
3998
if test -z "$ac_cv_prog_DLLTOOL"; then
 
3999
  ac_ct_DLLTOOL=$DLLTOOL
 
4000
  # Extract the first word of "dlltool", so it can be a program name with args.
 
4001
set dummy dlltool; ac_word=$2
 
4002
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4003
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4004
if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
 
4005
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4006
else
 
4007
  if test -n "$ac_ct_DLLTOOL"; then
 
4008
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
 
4009
else
 
4010
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4011
for as_dir in $PATH
 
4012
do
 
4013
  IFS=$as_save_IFS
 
4014
  test -z "$as_dir" && as_dir=.
 
4015
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4016
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4017
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
 
4018
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4019
    break 2
 
4020
  fi
 
4021
done
 
4022
done
 
4023
 
 
4024
  test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
 
4025
fi
 
4026
fi
 
4027
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
 
4028
if test -n "$ac_ct_DLLTOOL"; then
 
4029
  echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
 
4030
echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
 
4031
else
 
4032
  echo "$as_me:$LINENO: result: no" >&5
 
4033
echo "${ECHO_T}no" >&6
 
4034
fi
 
4035
 
 
4036
  DLLTOOL=$ac_ct_DLLTOOL
 
4037
else
 
4038
  DLLTOOL="$ac_cv_prog_DLLTOOL"
 
4039
fi
 
4040
 
 
4041
  if test -n "$ac_tool_prefix"; then
 
4042
  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
 
4043
set dummy ${ac_tool_prefix}as; ac_word=$2
 
4044
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4045
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4046
if test "${ac_cv_prog_AS+set}" = set; then
 
4047
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4048
else
 
4049
  if test -n "$AS"; then
 
4050
  ac_cv_prog_AS="$AS" # Let the user override the test.
 
4051
else
 
4052
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4053
for as_dir in $PATH
 
4054
do
 
4055
  IFS=$as_save_IFS
 
4056
  test -z "$as_dir" && as_dir=.
 
4057
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4058
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4059
    ac_cv_prog_AS="${ac_tool_prefix}as"
 
4060
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4061
    break 2
 
4062
  fi
 
4063
done
 
4064
done
 
4065
 
 
4066
fi
 
4067
fi
 
4068
AS=$ac_cv_prog_AS
 
4069
if test -n "$AS"; then
 
4070
  echo "$as_me:$LINENO: result: $AS" >&5
 
4071
echo "${ECHO_T}$AS" >&6
 
4072
else
 
4073
  echo "$as_me:$LINENO: result: no" >&5
 
4074
echo "${ECHO_T}no" >&6
 
4075
fi
 
4076
 
 
4077
fi
 
4078
if test -z "$ac_cv_prog_AS"; then
 
4079
  ac_ct_AS=$AS
 
4080
  # Extract the first word of "as", so it can be a program name with args.
 
4081
set dummy as; ac_word=$2
 
4082
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4083
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4084
if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
 
4085
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4086
else
 
4087
  if test -n "$ac_ct_AS"; then
 
4088
  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
 
4089
else
 
4090
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4091
for as_dir in $PATH
 
4092
do
 
4093
  IFS=$as_save_IFS
 
4094
  test -z "$as_dir" && as_dir=.
 
4095
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4096
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4097
    ac_cv_prog_ac_ct_AS="as"
 
4098
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4099
    break 2
 
4100
  fi
 
4101
done
 
4102
done
 
4103
 
 
4104
  test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
 
4105
fi
 
4106
fi
 
4107
ac_ct_AS=$ac_cv_prog_ac_ct_AS
 
4108
if test -n "$ac_ct_AS"; then
 
4109
  echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
 
4110
echo "${ECHO_T}$ac_ct_AS" >&6
 
4111
else
 
4112
  echo "$as_me:$LINENO: result: no" >&5
 
4113
echo "${ECHO_T}no" >&6
 
4114
fi
 
4115
 
 
4116
  AS=$ac_ct_AS
 
4117
else
 
4118
  AS="$ac_cv_prog_AS"
 
4119
fi
 
4120
 
 
4121
  if test -n "$ac_tool_prefix"; then
 
4122
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
 
4123
set dummy ${ac_tool_prefix}objdump; ac_word=$2
 
4124
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4125
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4126
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
 
4127
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4128
else
 
4129
  if test -n "$OBJDUMP"; then
 
4130
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
 
4131
else
 
4132
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4133
for as_dir in $PATH
 
4134
do
 
4135
  IFS=$as_save_IFS
 
4136
  test -z "$as_dir" && as_dir=.
 
4137
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4138
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4139
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
 
4140
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4141
    break 2
 
4142
  fi
 
4143
done
 
4144
done
 
4145
 
 
4146
fi
 
4147
fi
 
4148
OBJDUMP=$ac_cv_prog_OBJDUMP
 
4149
if test -n "$OBJDUMP"; then
 
4150
  echo "$as_me:$LINENO: result: $OBJDUMP" >&5
 
4151
echo "${ECHO_T}$OBJDUMP" >&6
 
4152
else
 
4153
  echo "$as_me:$LINENO: result: no" >&5
 
4154
echo "${ECHO_T}no" >&6
 
4155
fi
 
4156
 
 
4157
fi
 
4158
if test -z "$ac_cv_prog_OBJDUMP"; then
 
4159
  ac_ct_OBJDUMP=$OBJDUMP
 
4160
  # Extract the first word of "objdump", so it can be a program name with args.
 
4161
set dummy objdump; ac_word=$2
 
4162
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4163
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4164
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
 
4165
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4166
else
 
4167
  if test -n "$ac_ct_OBJDUMP"; then
 
4168
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
 
4169
else
 
4170
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4171
for as_dir in $PATH
 
4172
do
 
4173
  IFS=$as_save_IFS
 
4174
  test -z "$as_dir" && as_dir=.
 
4175
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4176
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4177
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
 
4178
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4179
    break 2
 
4180
  fi
 
4181
done
 
4182
done
 
4183
 
 
4184
  test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
 
4185
fi
 
4186
fi
 
4187
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
 
4188
if test -n "$ac_ct_OBJDUMP"; then
 
4189
  echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
 
4190
echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
 
4191
else
 
4192
  echo "$as_me:$LINENO: result: no" >&5
 
4193
echo "${ECHO_T}no" >&6
 
4194
fi
 
4195
 
 
4196
  OBJDUMP=$ac_ct_OBJDUMP
 
4197
else
 
4198
  OBJDUMP="$ac_cv_prog_OBJDUMP"
 
4199
fi
 
4200
 
 
4201
  ;;
 
4202
 
 
4203
esac
 
4204
 
 
4205
need_locks="$enable_libtool_lock"
 
4206
 
 
4207
 
 
4208
ac_ext=c
 
4209
ac_cpp='$CPP $CPPFLAGS'
 
4210
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4211
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4212
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4213
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
4214
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
 
4215
# On Suns, sometimes $CPP names a directory.
 
4216
if test -n "$CPP" && test -d "$CPP"; then
 
4217
  CPP=
 
4218
fi
 
4219
if test -z "$CPP"; then
 
4220
  if test "${ac_cv_prog_CPP+set}" = set; then
 
4221
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4222
else
 
4223
      # Double quotes because CPP needs to be expanded
 
4224
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
4225
    do
 
4226
      ac_preproc_ok=false
 
4227
for ac_c_preproc_warn_flag in '' yes
 
4228
do
 
4229
  # Use a header file that comes with gcc, so configuring glibc
 
4230
  # with a fresh cross-compiler works.
 
4231
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4232
  # <limits.h> exists even on freestanding compilers.
 
4233
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4234
  # not just through cpp. "Syntax error" is here to catch this case.
 
4235
  cat >conftest.$ac_ext <<_ACEOF
 
4236
/* confdefs.h.  */
 
4237
_ACEOF
 
4238
cat confdefs.h >>conftest.$ac_ext
 
4239
cat >>conftest.$ac_ext <<_ACEOF
 
4240
/* end confdefs.h.  */
 
4241
#ifdef __STDC__
 
4242
# include <limits.h>
 
4243
#else
 
4244
# include <assert.h>
 
4245
#endif
 
4246
                     Syntax error
 
4247
_ACEOF
 
4248
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4249
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4250
  ac_status=$?
 
4251
  grep -v '^ *+' conftest.er1 >conftest.err
 
4252
  rm -f conftest.er1
 
4253
  cat conftest.err >&5
 
4254
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4255
  (exit $ac_status); } >/dev/null; then
 
4256
  if test -s conftest.err; then
 
4257
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4258
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4259
  else
 
4260
    ac_cpp_err=
 
4261
  fi
 
4262
else
 
4263
  ac_cpp_err=yes
 
4264
fi
 
4265
if test -z "$ac_cpp_err"; then
 
4266
  :
 
4267
else
 
4268
  echo "$as_me: failed program was:" >&5
 
4269
sed 's/^/| /' conftest.$ac_ext >&5
 
4270
 
 
4271
  # Broken: fails on valid input.
 
4272
continue
 
4273
fi
 
4274
rm -f conftest.err conftest.$ac_ext
 
4275
 
 
4276
  # OK, works on sane cases.  Now check whether non-existent headers
 
4277
  # can be detected and how.
 
4278
  cat >conftest.$ac_ext <<_ACEOF
 
4279
/* confdefs.h.  */
 
4280
_ACEOF
 
4281
cat confdefs.h >>conftest.$ac_ext
 
4282
cat >>conftest.$ac_ext <<_ACEOF
 
4283
/* end confdefs.h.  */
 
4284
#include <ac_nonexistent.h>
 
4285
_ACEOF
 
4286
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4287
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4288
  ac_status=$?
 
4289
  grep -v '^ *+' conftest.er1 >conftest.err
 
4290
  rm -f conftest.er1
 
4291
  cat conftest.err >&5
 
4292
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4293
  (exit $ac_status); } >/dev/null; then
 
4294
  if test -s conftest.err; then
 
4295
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4296
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4297
  else
 
4298
    ac_cpp_err=
 
4299
  fi
 
4300
else
 
4301
  ac_cpp_err=yes
 
4302
fi
 
4303
if test -z "$ac_cpp_err"; then
 
4304
  # Broken: success on invalid input.
 
4305
continue
 
4306
else
 
4307
  echo "$as_me: failed program was:" >&5
 
4308
sed 's/^/| /' conftest.$ac_ext >&5
 
4309
 
 
4310
  # Passes both tests.
 
4311
ac_preproc_ok=:
 
4312
break
 
4313
fi
 
4314
rm -f conftest.err conftest.$ac_ext
 
4315
 
 
4316
done
 
4317
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4318
rm -f conftest.err conftest.$ac_ext
 
4319
if $ac_preproc_ok; then
 
4320
  break
 
4321
fi
 
4322
 
 
4323
    done
 
4324
    ac_cv_prog_CPP=$CPP
 
4325
 
 
4326
fi
 
4327
  CPP=$ac_cv_prog_CPP
 
4328
else
 
4329
  ac_cv_prog_CPP=$CPP
 
4330
fi
 
4331
echo "$as_me:$LINENO: result: $CPP" >&5
 
4332
echo "${ECHO_T}$CPP" >&6
 
4333
ac_preproc_ok=false
 
4334
for ac_c_preproc_warn_flag in '' yes
 
4335
do
 
4336
  # Use a header file that comes with gcc, so configuring glibc
 
4337
  # with a fresh cross-compiler works.
 
4338
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4339
  # <limits.h> exists even on freestanding compilers.
 
4340
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4341
  # not just through cpp. "Syntax error" is here to catch this case.
 
4342
  cat >conftest.$ac_ext <<_ACEOF
 
4343
/* confdefs.h.  */
 
4344
_ACEOF
 
4345
cat confdefs.h >>conftest.$ac_ext
 
4346
cat >>conftest.$ac_ext <<_ACEOF
 
4347
/* end confdefs.h.  */
 
4348
#ifdef __STDC__
 
4349
# include <limits.h>
 
4350
#else
 
4351
# include <assert.h>
 
4352
#endif
 
4353
                     Syntax error
 
4354
_ACEOF
 
4355
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4356
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4357
  ac_status=$?
 
4358
  grep -v '^ *+' conftest.er1 >conftest.err
 
4359
  rm -f conftest.er1
 
4360
  cat conftest.err >&5
 
4361
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4362
  (exit $ac_status); } >/dev/null; then
 
4363
  if test -s conftest.err; then
 
4364
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4365
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4366
  else
 
4367
    ac_cpp_err=
 
4368
  fi
 
4369
else
 
4370
  ac_cpp_err=yes
 
4371
fi
 
4372
if test -z "$ac_cpp_err"; then
 
4373
  :
 
4374
else
 
4375
  echo "$as_me: failed program was:" >&5
 
4376
sed 's/^/| /' conftest.$ac_ext >&5
 
4377
 
 
4378
  # Broken: fails on valid input.
 
4379
continue
 
4380
fi
 
4381
rm -f conftest.err conftest.$ac_ext
 
4382
 
 
4383
  # OK, works on sane cases.  Now check whether non-existent headers
 
4384
  # can be detected and how.
 
4385
  cat >conftest.$ac_ext <<_ACEOF
 
4386
/* confdefs.h.  */
 
4387
_ACEOF
 
4388
cat confdefs.h >>conftest.$ac_ext
 
4389
cat >>conftest.$ac_ext <<_ACEOF
 
4390
/* end confdefs.h.  */
 
4391
#include <ac_nonexistent.h>
 
4392
_ACEOF
 
4393
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4394
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4395
  ac_status=$?
 
4396
  grep -v '^ *+' conftest.er1 >conftest.err
 
4397
  rm -f conftest.er1
 
4398
  cat conftest.err >&5
 
4399
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4400
  (exit $ac_status); } >/dev/null; then
 
4401
  if test -s conftest.err; then
 
4402
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4403
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4404
  else
 
4405
    ac_cpp_err=
 
4406
  fi
 
4407
else
 
4408
  ac_cpp_err=yes
 
4409
fi
 
4410
if test -z "$ac_cpp_err"; then
 
4411
  # Broken: success on invalid input.
 
4412
continue
 
4413
else
 
4414
  echo "$as_me: failed program was:" >&5
 
4415
sed 's/^/| /' conftest.$ac_ext >&5
 
4416
 
 
4417
  # Passes both tests.
 
4418
ac_preproc_ok=:
 
4419
break
 
4420
fi
 
4421
rm -f conftest.err conftest.$ac_ext
 
4422
 
 
4423
done
 
4424
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4425
rm -f conftest.err conftest.$ac_ext
 
4426
if $ac_preproc_ok; then
 
4427
  :
 
4428
else
 
4429
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
4430
See \`config.log' for more details." >&5
 
4431
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
4432
See \`config.log' for more details." >&2;}
 
4433
   { (exit 1); exit 1; }; }
 
4434
fi
 
4435
 
 
4436
ac_ext=c
 
4437
ac_cpp='$CPP $CPPFLAGS'
 
4438
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4439
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4440
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4441
 
 
4442
 
 
4443
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
4444
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 
4445
if test "${ac_cv_header_stdc+set}" = set; then
 
4446
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4447
else
 
4448
  cat >conftest.$ac_ext <<_ACEOF
 
4449
/* confdefs.h.  */
 
4450
_ACEOF
 
4451
cat confdefs.h >>conftest.$ac_ext
 
4452
cat >>conftest.$ac_ext <<_ACEOF
 
4453
/* end confdefs.h.  */
 
4454
#include <stdlib.h>
 
4455
#include <stdarg.h>
 
4456
#include <string.h>
 
4457
#include <float.h>
 
4458
 
 
4459
int
 
4460
main ()
 
4461
{
 
4462
 
 
4463
  ;
 
4464
  return 0;
 
4465
}
 
4466
_ACEOF
 
4467
rm -f conftest.$ac_objext
 
4468
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4469
  (eval $ac_compile) 2>conftest.er1
 
4470
  ac_status=$?
 
4471
  grep -v '^ *+' conftest.er1 >conftest.err
 
4472
  rm -f conftest.er1
 
4473
  cat conftest.err >&5
 
4474
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4475
  (exit $ac_status); } &&
 
4476
         { ac_try='test -z "$ac_c_werror_flag"
 
4477
                         || test ! -s conftest.err'
 
4478
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4479
  (eval $ac_try) 2>&5
 
4480
  ac_status=$?
 
4481
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4482
  (exit $ac_status); }; } &&
 
4483
         { ac_try='test -s conftest.$ac_objext'
 
4484
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4485
  (eval $ac_try) 2>&5
 
4486
  ac_status=$?
 
4487
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4488
  (exit $ac_status); }; }; then
 
4489
  ac_cv_header_stdc=yes
 
4490
else
 
4491
  echo "$as_me: failed program was:" >&5
 
4492
sed 's/^/| /' conftest.$ac_ext >&5
 
4493
 
 
4494
ac_cv_header_stdc=no
 
4495
fi
 
4496
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4497
 
 
4498
if test $ac_cv_header_stdc = yes; then
 
4499
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
4500
  cat >conftest.$ac_ext <<_ACEOF
 
4501
/* confdefs.h.  */
 
4502
_ACEOF
 
4503
cat confdefs.h >>conftest.$ac_ext
 
4504
cat >>conftest.$ac_ext <<_ACEOF
 
4505
/* end confdefs.h.  */
 
4506
#include <string.h>
 
4507
 
 
4508
_ACEOF
 
4509
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4510
  $EGREP "memchr" >/dev/null 2>&1; then
 
4511
  :
 
4512
else
 
4513
  ac_cv_header_stdc=no
 
4514
fi
 
4515
rm -f conftest*
 
4516
 
 
4517
fi
 
4518
 
 
4519
if test $ac_cv_header_stdc = yes; then
 
4520
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
4521
  cat >conftest.$ac_ext <<_ACEOF
 
4522
/* confdefs.h.  */
 
4523
_ACEOF
 
4524
cat confdefs.h >>conftest.$ac_ext
 
4525
cat >>conftest.$ac_ext <<_ACEOF
 
4526
/* end confdefs.h.  */
 
4527
#include <stdlib.h>
 
4528
 
 
4529
_ACEOF
 
4530
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4531
  $EGREP "free" >/dev/null 2>&1; then
 
4532
  :
 
4533
else
 
4534
  ac_cv_header_stdc=no
 
4535
fi
 
4536
rm -f conftest*
 
4537
 
 
4538
fi
 
4539
 
 
4540
if test $ac_cv_header_stdc = yes; then
 
4541
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
4542
  if test "$cross_compiling" = yes; then
 
4543
  :
 
4544
else
 
4545
  cat >conftest.$ac_ext <<_ACEOF
 
4546
/* confdefs.h.  */
 
4547
_ACEOF
 
4548
cat confdefs.h >>conftest.$ac_ext
 
4549
cat >>conftest.$ac_ext <<_ACEOF
 
4550
/* end confdefs.h.  */
 
4551
#include <ctype.h>
 
4552
#if ((' ' & 0x0FF) == 0x020)
 
4553
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
4554
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
4555
#else
 
4556
# define ISLOWER(c) \
 
4557
                   (('a' <= (c) && (c) <= 'i') \
 
4558
                     || ('j' <= (c) && (c) <= 'r') \
 
4559
                     || ('s' <= (c) && (c) <= 'z'))
 
4560
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
4561
#endif
 
4562
 
 
4563
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
4564
int
 
4565
main ()
 
4566
{
 
4567
  int i;
 
4568
  for (i = 0; i < 256; i++)
 
4569
    if (XOR (islower (i), ISLOWER (i))
 
4570
        || toupper (i) != TOUPPER (i))
 
4571
      exit(2);
 
4572
  exit (0);
 
4573
}
 
4574
_ACEOF
 
4575
rm -f conftest$ac_exeext
 
4576
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4577
  (eval $ac_link) 2>&5
 
4578
  ac_status=$?
 
4579
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4580
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
4581
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4582
  (eval $ac_try) 2>&5
 
4583
  ac_status=$?
 
4584
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4585
  (exit $ac_status); }; }; then
 
4586
  :
 
4587
else
 
4588
  echo "$as_me: program exited with status $ac_status" >&5
 
4589
echo "$as_me: failed program was:" >&5
 
4590
sed 's/^/| /' conftest.$ac_ext >&5
 
4591
 
 
4592
( exit $ac_status )
 
4593
ac_cv_header_stdc=no
 
4594
fi
 
4595
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
4596
fi
 
4597
fi
 
4598
fi
 
4599
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
4600
echo "${ECHO_T}$ac_cv_header_stdc" >&6
 
4601
if test $ac_cv_header_stdc = yes; then
 
4602
 
 
4603
cat >>confdefs.h <<\_ACEOF
 
4604
#define STDC_HEADERS 1
 
4605
_ACEOF
 
4606
 
 
4607
fi
 
4608
 
 
4609
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
4610
 
 
4611
 
 
4612
 
 
4613
 
 
4614
 
 
4615
 
 
4616
 
 
4617
 
 
4618
 
 
4619
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
4620
                  inttypes.h stdint.h unistd.h
 
4621
do
 
4622
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4623
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4624
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4625
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4626
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4627
else
 
4628
  cat >conftest.$ac_ext <<_ACEOF
 
4629
/* confdefs.h.  */
 
4630
_ACEOF
 
4631
cat confdefs.h >>conftest.$ac_ext
 
4632
cat >>conftest.$ac_ext <<_ACEOF
 
4633
/* end confdefs.h.  */
 
4634
$ac_includes_default
 
4635
 
 
4636
#include <$ac_header>
 
4637
_ACEOF
 
4638
rm -f conftest.$ac_objext
 
4639
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4640
  (eval $ac_compile) 2>conftest.er1
 
4641
  ac_status=$?
 
4642
  grep -v '^ *+' conftest.er1 >conftest.err
 
4643
  rm -f conftest.er1
 
4644
  cat conftest.err >&5
 
4645
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4646
  (exit $ac_status); } &&
 
4647
         { ac_try='test -z "$ac_c_werror_flag"
 
4648
                         || test ! -s conftest.err'
 
4649
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4650
  (eval $ac_try) 2>&5
 
4651
  ac_status=$?
 
4652
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4653
  (exit $ac_status); }; } &&
 
4654
         { ac_try='test -s conftest.$ac_objext'
 
4655
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4656
  (eval $ac_try) 2>&5
 
4657
  ac_status=$?
 
4658
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4659
  (exit $ac_status); }; }; then
 
4660
  eval "$as_ac_Header=yes"
 
4661
else
 
4662
  echo "$as_me: failed program was:" >&5
 
4663
sed 's/^/| /' conftest.$ac_ext >&5
 
4664
 
 
4665
eval "$as_ac_Header=no"
 
4666
fi
 
4667
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4668
fi
 
4669
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4670
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4671
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
4672
  cat >>confdefs.h <<_ACEOF
 
4673
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4674
_ACEOF
 
4675
 
 
4676
fi
 
4677
 
 
4678
done
 
4679
 
 
4680
 
 
4681
 
 
4682
for ac_header in dlfcn.h
 
4683
do
 
4684
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4685
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4686
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4687
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4688
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4689
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4690
fi
 
4691
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4692
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4693
else
 
4694
  # Is the header compilable?
 
4695
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
4696
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
4697
cat >conftest.$ac_ext <<_ACEOF
 
4698
/* confdefs.h.  */
 
4699
_ACEOF
 
4700
cat confdefs.h >>conftest.$ac_ext
 
4701
cat >>conftest.$ac_ext <<_ACEOF
 
4702
/* end confdefs.h.  */
 
4703
$ac_includes_default
 
4704
#include <$ac_header>
 
4705
_ACEOF
 
4706
rm -f conftest.$ac_objext
 
4707
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4708
  (eval $ac_compile) 2>conftest.er1
 
4709
  ac_status=$?
 
4710
  grep -v '^ *+' conftest.er1 >conftest.err
 
4711
  rm -f conftest.er1
 
4712
  cat conftest.err >&5
 
4713
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4714
  (exit $ac_status); } &&
 
4715
         { ac_try='test -z "$ac_c_werror_flag"
 
4716
                         || test ! -s conftest.err'
 
4717
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4718
  (eval $ac_try) 2>&5
 
4719
  ac_status=$?
 
4720
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4721
  (exit $ac_status); }; } &&
 
4722
         { ac_try='test -s conftest.$ac_objext'
 
4723
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4724
  (eval $ac_try) 2>&5
 
4725
  ac_status=$?
 
4726
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4727
  (exit $ac_status); }; }; then
 
4728
  ac_header_compiler=yes
 
4729
else
 
4730
  echo "$as_me: failed program was:" >&5
 
4731
sed 's/^/| /' conftest.$ac_ext >&5
 
4732
 
 
4733
ac_header_compiler=no
 
4734
fi
 
4735
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4736
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
4737
echo "${ECHO_T}$ac_header_compiler" >&6
 
4738
 
 
4739
# Is the header present?
 
4740
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
4741
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
4742
cat >conftest.$ac_ext <<_ACEOF
 
4743
/* confdefs.h.  */
 
4744
_ACEOF
 
4745
cat confdefs.h >>conftest.$ac_ext
 
4746
cat >>conftest.$ac_ext <<_ACEOF
 
4747
/* end confdefs.h.  */
 
4748
#include <$ac_header>
 
4749
_ACEOF
 
4750
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4751
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4752
  ac_status=$?
 
4753
  grep -v '^ *+' conftest.er1 >conftest.err
 
4754
  rm -f conftest.er1
 
4755
  cat conftest.err >&5
 
4756
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4757
  (exit $ac_status); } >/dev/null; then
 
4758
  if test -s conftest.err; then
 
4759
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4760
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4761
  else
 
4762
    ac_cpp_err=
 
4763
  fi
 
4764
else
 
4765
  ac_cpp_err=yes
 
4766
fi
 
4767
if test -z "$ac_cpp_err"; then
 
4768
  ac_header_preproc=yes
 
4769
else
 
4770
  echo "$as_me: failed program was:" >&5
 
4771
sed 's/^/| /' conftest.$ac_ext >&5
 
4772
 
 
4773
  ac_header_preproc=no
 
4774
fi
 
4775
rm -f conftest.err conftest.$ac_ext
 
4776
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
4777
echo "${ECHO_T}$ac_header_preproc" >&6
 
4778
 
 
4779
# So?  What about this header?
 
4780
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
4781
  yes:no: )
 
4782
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
4783
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
4784
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
4785
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
4786
    ac_header_preproc=yes
 
4787
    ;;
 
4788
  no:yes:* )
 
4789
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
4790
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
4791
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
4792
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
4793
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
4794
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
4795
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
4796
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
4797
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
4798
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
4799
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
4800
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
4801
    (
 
4802
      cat <<\_ASBOX
 
4803
## ---------------------------------------------------------------------- ##
 
4804
## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
 
4805
## ---------------------------------------------------------------------- ##
 
4806
_ASBOX
 
4807
    ) |
 
4808
      sed "s/^/$as_me: WARNING:     /" >&2
 
4809
    ;;
 
4810
esac
 
4811
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4812
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4813
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4814
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4815
else
 
4816
  eval "$as_ac_Header=\$ac_header_preproc"
 
4817
fi
 
4818
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4819
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4820
 
 
4821
fi
 
4822
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
4823
  cat >>confdefs.h <<_ACEOF
 
4824
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4825
_ACEOF
 
4826
 
 
4827
fi
 
4828
 
 
4829
done
 
4830
 
 
4831
ac_ext=cc
 
4832
ac_cpp='$CXXCPP $CPPFLAGS'
 
4833
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4834
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4835
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
4836
if test -n "$ac_tool_prefix"; then
 
4837
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
4838
  do
 
4839
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
4840
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
4841
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4842
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4843
if test "${ac_cv_prog_CXX+set}" = set; then
 
4844
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4845
else
 
4846
  if test -n "$CXX"; then
 
4847
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
4848
else
 
4849
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4850
for as_dir in $PATH
 
4851
do
 
4852
  IFS=$as_save_IFS
 
4853
  test -z "$as_dir" && as_dir=.
 
4854
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4855
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4856
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
4857
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4858
    break 2
 
4859
  fi
 
4860
done
 
4861
done
 
4862
 
 
4863
fi
 
4864
fi
 
4865
CXX=$ac_cv_prog_CXX
 
4866
if test -n "$CXX"; then
 
4867
  echo "$as_me:$LINENO: result: $CXX" >&5
 
4868
echo "${ECHO_T}$CXX" >&6
 
4869
else
 
4870
  echo "$as_me:$LINENO: result: no" >&5
 
4871
echo "${ECHO_T}no" >&6
 
4872
fi
 
4873
 
 
4874
    test -n "$CXX" && break
 
4875
  done
 
4876
fi
 
4877
if test -z "$CXX"; then
 
4878
  ac_ct_CXX=$CXX
 
4879
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
4880
do
 
4881
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
4882
set dummy $ac_prog; ac_word=$2
 
4883
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4884
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4885
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
 
4886
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4887
else
 
4888
  if test -n "$ac_ct_CXX"; then
 
4889
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
4890
else
 
4891
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4892
for as_dir in $PATH
 
4893
do
 
4894
  IFS=$as_save_IFS
 
4895
  test -z "$as_dir" && as_dir=.
 
4896
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4897
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4898
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
4899
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4900
    break 2
 
4901
  fi
 
4902
done
 
4903
done
 
4904
 
 
4905
fi
 
4906
fi
 
4907
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
4908
if test -n "$ac_ct_CXX"; then
 
4909
  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
 
4910
echo "${ECHO_T}$ac_ct_CXX" >&6
 
4911
else
 
4912
  echo "$as_me:$LINENO: result: no" >&5
 
4913
echo "${ECHO_T}no" >&6
 
4914
fi
 
4915
 
 
4916
  test -n "$ac_ct_CXX" && break
 
4917
done
 
4918
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
 
4919
 
 
4920
  CXX=$ac_ct_CXX
 
4921
fi
 
4922
 
 
4923
 
 
4924
# Provide some information about the compiler.
 
4925
echo "$as_me:$LINENO:" \
 
4926
     "checking for C++ compiler version" >&5
 
4927
ac_compiler=`set X $ac_compile; echo $2`
 
4928
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
4929
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
4930
  ac_status=$?
 
4931
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4932
  (exit $ac_status); }
 
4933
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
4934
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
4935
  ac_status=$?
 
4936
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4937
  (exit $ac_status); }
 
4938
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
4939
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
4940
  ac_status=$?
 
4941
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4942
  (exit $ac_status); }
 
4943
 
 
4944
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
 
4945
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
 
4946
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
 
4947
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4948
else
 
4949
  cat >conftest.$ac_ext <<_ACEOF
 
4950
/* confdefs.h.  */
 
4951
_ACEOF
 
4952
cat confdefs.h >>conftest.$ac_ext
 
4953
cat >>conftest.$ac_ext <<_ACEOF
 
4954
/* end confdefs.h.  */
 
4955
 
 
4956
int
 
4957
main ()
 
4958
{
 
4959
#ifndef __GNUC__
 
4960
       choke me
 
4961
#endif
 
4962
 
 
4963
  ;
 
4964
  return 0;
 
4965
}
 
4966
_ACEOF
 
4967
rm -f conftest.$ac_objext
 
4968
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4969
  (eval $ac_compile) 2>conftest.er1
 
4970
  ac_status=$?
 
4971
  grep -v '^ *+' conftest.er1 >conftest.err
 
4972
  rm -f conftest.er1
 
4973
  cat conftest.err >&5
 
4974
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4975
  (exit $ac_status); } &&
 
4976
         { ac_try='test -z "$ac_cxx_werror_flag"
 
4977
                         || test ! -s conftest.err'
 
4978
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4979
  (eval $ac_try) 2>&5
 
4980
  ac_status=$?
 
4981
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4982
  (exit $ac_status); }; } &&
 
4983
         { ac_try='test -s conftest.$ac_objext'
 
4984
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4985
  (eval $ac_try) 2>&5
 
4986
  ac_status=$?
 
4987
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4988
  (exit $ac_status); }; }; then
 
4989
  ac_compiler_gnu=yes
 
4990
else
 
4991
  echo "$as_me: failed program was:" >&5
 
4992
sed 's/^/| /' conftest.$ac_ext >&5
 
4993
 
 
4994
ac_compiler_gnu=no
 
4995
fi
 
4996
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4997
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
4998
 
 
4999
fi
 
5000
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
 
5001
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
 
5002
GXX=`test $ac_compiler_gnu = yes && echo yes`
 
5003
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
5004
ac_save_CXXFLAGS=$CXXFLAGS
 
5005
CXXFLAGS="-g"
 
5006
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
 
5007
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
 
5008
if test "${ac_cv_prog_cxx_g+set}" = set; then
 
5009
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5010
else
 
5011
  cat >conftest.$ac_ext <<_ACEOF
 
5012
/* confdefs.h.  */
 
5013
_ACEOF
 
5014
cat confdefs.h >>conftest.$ac_ext
 
5015
cat >>conftest.$ac_ext <<_ACEOF
 
5016
/* end confdefs.h.  */
 
5017
 
 
5018
int
 
5019
main ()
 
5020
{
 
5021
 
 
5022
  ;
 
5023
  return 0;
 
5024
}
 
5025
_ACEOF
 
5026
rm -f conftest.$ac_objext
 
5027
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5028
  (eval $ac_compile) 2>conftest.er1
 
5029
  ac_status=$?
 
5030
  grep -v '^ *+' conftest.er1 >conftest.err
 
5031
  rm -f conftest.er1
 
5032
  cat conftest.err >&5
 
5033
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5034
  (exit $ac_status); } &&
 
5035
         { ac_try='test -z "$ac_cxx_werror_flag"
 
5036
                         || test ! -s conftest.err'
 
5037
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5038
  (eval $ac_try) 2>&5
 
5039
  ac_status=$?
 
5040
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5041
  (exit $ac_status); }; } &&
 
5042
         { ac_try='test -s conftest.$ac_objext'
 
5043
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5044
  (eval $ac_try) 2>&5
 
5045
  ac_status=$?
 
5046
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5047
  (exit $ac_status); }; }; then
 
5048
  ac_cv_prog_cxx_g=yes
 
5049
else
 
5050
  echo "$as_me: failed program was:" >&5
 
5051
sed 's/^/| /' conftest.$ac_ext >&5
 
5052
 
 
5053
ac_cv_prog_cxx_g=no
 
5054
fi
 
5055
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5056
fi
 
5057
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
 
5058
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
 
5059
if test "$ac_test_CXXFLAGS" = set; then
 
5060
  CXXFLAGS=$ac_save_CXXFLAGS
 
5061
elif test $ac_cv_prog_cxx_g = yes; then
 
5062
  if test "$GXX" = yes; then
 
5063
    CXXFLAGS="-g -O2"
 
5064
  else
 
5065
    CXXFLAGS="-g"
 
5066
  fi
 
5067
else
 
5068
  if test "$GXX" = yes; then
 
5069
    CXXFLAGS="-O2"
 
5070
  else
 
5071
    CXXFLAGS=
 
5072
  fi
 
5073
fi
 
5074
for ac_declaration in \
 
5075
   '' \
 
5076
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
5077
   'extern "C" void std::exit (int); using std::exit;' \
 
5078
   'extern "C" void exit (int) throw ();' \
 
5079
   'extern "C" void exit (int);' \
 
5080
   'void exit (int);'
 
5081
do
 
5082
  cat >conftest.$ac_ext <<_ACEOF
 
5083
/* confdefs.h.  */
 
5084
_ACEOF
 
5085
cat confdefs.h >>conftest.$ac_ext
 
5086
cat >>conftest.$ac_ext <<_ACEOF
 
5087
/* end confdefs.h.  */
 
5088
$ac_declaration
 
5089
#include <stdlib.h>
 
5090
int
 
5091
main ()
 
5092
{
 
5093
exit (42);
 
5094
  ;
 
5095
  return 0;
 
5096
}
 
5097
_ACEOF
 
5098
rm -f conftest.$ac_objext
 
5099
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5100
  (eval $ac_compile) 2>conftest.er1
 
5101
  ac_status=$?
 
5102
  grep -v '^ *+' conftest.er1 >conftest.err
 
5103
  rm -f conftest.er1
 
5104
  cat conftest.err >&5
 
5105
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5106
  (exit $ac_status); } &&
 
5107
         { ac_try='test -z "$ac_cxx_werror_flag"
 
5108
                         || test ! -s conftest.err'
 
5109
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5110
  (eval $ac_try) 2>&5
 
5111
  ac_status=$?
 
5112
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5113
  (exit $ac_status); }; } &&
 
5114
         { ac_try='test -s conftest.$ac_objext'
 
5115
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5116
  (eval $ac_try) 2>&5
 
5117
  ac_status=$?
 
5118
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5119
  (exit $ac_status); }; }; then
 
5120
  :
 
5121
else
 
5122
  echo "$as_me: failed program was:" >&5
 
5123
sed 's/^/| /' conftest.$ac_ext >&5
 
5124
 
 
5125
continue
 
5126
fi
 
5127
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5128
  cat >conftest.$ac_ext <<_ACEOF
 
5129
/* confdefs.h.  */
 
5130
_ACEOF
 
5131
cat confdefs.h >>conftest.$ac_ext
 
5132
cat >>conftest.$ac_ext <<_ACEOF
 
5133
/* end confdefs.h.  */
 
5134
$ac_declaration
 
5135
int
 
5136
main ()
 
5137
{
 
5138
exit (42);
 
5139
  ;
 
5140
  return 0;
 
5141
}
 
5142
_ACEOF
 
5143
rm -f conftest.$ac_objext
 
5144
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5145
  (eval $ac_compile) 2>conftest.er1
 
5146
  ac_status=$?
 
5147
  grep -v '^ *+' conftest.er1 >conftest.err
 
5148
  rm -f conftest.er1
 
5149
  cat conftest.err >&5
 
5150
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5151
  (exit $ac_status); } &&
 
5152
         { ac_try='test -z "$ac_cxx_werror_flag"
 
5153
                         || test ! -s conftest.err'
 
5154
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5155
  (eval $ac_try) 2>&5
 
5156
  ac_status=$?
 
5157
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5158
  (exit $ac_status); }; } &&
 
5159
         { ac_try='test -s conftest.$ac_objext'
 
5160
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5161
  (eval $ac_try) 2>&5
 
5162
  ac_status=$?
 
5163
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5164
  (exit $ac_status); }; }; then
 
5165
  break
 
5166
else
 
5167
  echo "$as_me: failed program was:" >&5
 
5168
sed 's/^/| /' conftest.$ac_ext >&5
 
5169
 
 
5170
fi
 
5171
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5172
done
 
5173
rm -f conftest*
 
5174
if test -n "$ac_declaration"; then
 
5175
  echo '#ifdef __cplusplus' >>confdefs.h
 
5176
  echo $ac_declaration      >>confdefs.h
 
5177
  echo '#endif'             >>confdefs.h
 
5178
fi
 
5179
 
 
5180
ac_ext=cc
 
5181
ac_cpp='$CXXCPP $CPPFLAGS'
 
5182
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5183
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5184
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5185
 
 
5186
depcc="$CXX"  am_compiler_list=
 
5187
 
 
5188
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
5189
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
5190
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
 
5191
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5192
else
 
5193
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
5194
  # We make a subdir and do the tests there.  Otherwise we can end up
 
5195
  # making bogus files that we don't know about and never remove.  For
 
5196
  # instance it was reported that on HP-UX the gcc test will end up
 
5197
  # making a dummy file named `D' -- because `-MD' means `put the output
 
5198
  # in D'.
 
5199
  mkdir conftest.dir
 
5200
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
5201
  # using a relative directory.
 
5202
  cp "$am_depcomp" conftest.dir
 
5203
  cd conftest.dir
 
5204
  # We will build objects and dependencies in a subdirectory because
 
5205
  # it helps to detect inapplicable dependency modes.  For instance
 
5206
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
5207
  # side effect of compilation, but ICC will put the dependencies in
 
5208
  # the current directory while Tru64 will put them in the object
 
5209
  # directory.
 
5210
  mkdir sub
 
5211
 
 
5212
  am_cv_CXX_dependencies_compiler_type=none
 
5213
  if test "$am_compiler_list" = ""; then
 
5214
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
5215
  fi
 
5216
  for depmode in $am_compiler_list; do
 
5217
    # Setup a source with many dependencies, because some compilers
 
5218
    # like to wrap large dependency lists on column 80 (with \), and
 
5219
    # we should not choose a depcomp mode which is confused by this.
 
5220
    #
 
5221
    # We need to recreate these files for each test, as the compiler may
 
5222
    # overwrite some of them when testing with obscure command lines.
 
5223
    # This happens at least with the AIX C compiler.
 
5224
    : > sub/conftest.c
 
5225
    for i in 1 2 3 4 5 6; do
 
5226
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
5227
      : > sub/conftst$i.h
 
5228
    done
 
5229
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
5230
 
 
5231
    case $depmode in
 
5232
    nosideeffect)
 
5233
      # after this tag, mechanisms are not by side-effect, so they'll
 
5234
      # only be used when explicitly requested
 
5235
      if test "x$enable_dependency_tracking" = xyes; then
 
5236
        continue
 
5237
      else
 
5238
        break
 
5239
      fi
 
5240
      ;;
 
5241
    none) break ;;
 
5242
    esac
 
5243
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
5244
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
5245
    # handle `-M -o', and we need to detect this.
 
5246
    if depmode=$depmode \
 
5247
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
5248
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
5249
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
5250
         >/dev/null 2>conftest.err &&
 
5251
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
5252
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
5253
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
5254
      # icc doesn't choke on unknown options, it will just issue warnings
 
5255
      # (even with -Werror).  So we grep stderr for any message
 
5256
      # that says an option was ignored.
 
5257
      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
 
5258
        am_cv_CXX_dependencies_compiler_type=$depmode
 
5259
        break
 
5260
      fi
 
5261
    fi
 
5262
  done
 
5263
 
 
5264
  cd ..
 
5265
  rm -rf conftest.dir
 
5266
else
 
5267
  am_cv_CXX_dependencies_compiler_type=none
 
5268
fi
 
5269
 
 
5270
fi
 
5271
echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
5272
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
 
5273
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
 
5274
 
 
5275
 
 
5276
 
 
5277
if
 
5278
  test "x$enable_dependency_tracking" != xno \
 
5279
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
 
5280
  am__fastdepCXX_TRUE=
 
5281
  am__fastdepCXX_FALSE='#'
 
5282
else
 
5283
  am__fastdepCXX_TRUE='#'
 
5284
  am__fastdepCXX_FALSE=
 
5285
fi
 
5286
 
 
5287
 
 
5288
ac_ext=cc
 
5289
ac_cpp='$CXXCPP $CPPFLAGS'
 
5290
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5291
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5292
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5293
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
 
5294
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
 
5295
if test -z "$CXXCPP"; then
 
5296
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
 
5297
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5298
else
 
5299
      # Double quotes because CXXCPP needs to be expanded
 
5300
    for CXXCPP in "$CXX -E" "/lib/cpp"
 
5301
    do
 
5302
      ac_preproc_ok=false
 
5303
for ac_cxx_preproc_warn_flag in '' yes
 
5304
do
 
5305
  # Use a header file that comes with gcc, so configuring glibc
 
5306
  # with a fresh cross-compiler works.
 
5307
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5308
  # <limits.h> exists even on freestanding compilers.
 
5309
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
5310
  # not just through cpp. "Syntax error" is here to catch this case.
 
5311
  cat >conftest.$ac_ext <<_ACEOF
 
5312
/* confdefs.h.  */
 
5313
_ACEOF
 
5314
cat confdefs.h >>conftest.$ac_ext
 
5315
cat >>conftest.$ac_ext <<_ACEOF
 
5316
/* end confdefs.h.  */
 
5317
#ifdef __STDC__
 
5318
# include <limits.h>
 
5319
#else
 
5320
# include <assert.h>
 
5321
#endif
 
5322
                     Syntax error
 
5323
_ACEOF
 
5324
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5325
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5326
  ac_status=$?
 
5327
  grep -v '^ *+' conftest.er1 >conftest.err
 
5328
  rm -f conftest.er1
 
5329
  cat conftest.err >&5
 
5330
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5331
  (exit $ac_status); } >/dev/null; then
 
5332
  if test -s conftest.err; then
 
5333
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
5334
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
5335
  else
 
5336
    ac_cpp_err=
 
5337
  fi
 
5338
else
 
5339
  ac_cpp_err=yes
 
5340
fi
 
5341
if test -z "$ac_cpp_err"; then
 
5342
  :
 
5343
else
 
5344
  echo "$as_me: failed program was:" >&5
 
5345
sed 's/^/| /' conftest.$ac_ext >&5
 
5346
 
 
5347
  # Broken: fails on valid input.
 
5348
continue
 
5349
fi
 
5350
rm -f conftest.err conftest.$ac_ext
 
5351
 
 
5352
  # OK, works on sane cases.  Now check whether non-existent headers
 
5353
  # can be detected and how.
 
5354
  cat >conftest.$ac_ext <<_ACEOF
 
5355
/* confdefs.h.  */
 
5356
_ACEOF
 
5357
cat confdefs.h >>conftest.$ac_ext
 
5358
cat >>conftest.$ac_ext <<_ACEOF
 
5359
/* end confdefs.h.  */
 
5360
#include <ac_nonexistent.h>
 
5361
_ACEOF
 
5362
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5363
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5364
  ac_status=$?
 
5365
  grep -v '^ *+' conftest.er1 >conftest.err
 
5366
  rm -f conftest.er1
 
5367
  cat conftest.err >&5
 
5368
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5369
  (exit $ac_status); } >/dev/null; then
 
5370
  if test -s conftest.err; then
 
5371
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
5372
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
5373
  else
 
5374
    ac_cpp_err=
 
5375
  fi
 
5376
else
 
5377
  ac_cpp_err=yes
 
5378
fi
 
5379
if test -z "$ac_cpp_err"; then
 
5380
  # Broken: success on invalid input.
 
5381
continue
 
5382
else
 
5383
  echo "$as_me: failed program was:" >&5
 
5384
sed 's/^/| /' conftest.$ac_ext >&5
 
5385
 
 
5386
  # Passes both tests.
 
5387
ac_preproc_ok=:
 
5388
break
 
5389
fi
 
5390
rm -f conftest.err conftest.$ac_ext
 
5391
 
 
5392
done
 
5393
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
5394
rm -f conftest.err conftest.$ac_ext
 
5395
if $ac_preproc_ok; then
 
5396
  break
 
5397
fi
 
5398
 
 
5399
    done
 
5400
    ac_cv_prog_CXXCPP=$CXXCPP
 
5401
 
 
5402
fi
 
5403
  CXXCPP=$ac_cv_prog_CXXCPP
 
5404
else
 
5405
  ac_cv_prog_CXXCPP=$CXXCPP
 
5406
fi
 
5407
echo "$as_me:$LINENO: result: $CXXCPP" >&5
 
5408
echo "${ECHO_T}$CXXCPP" >&6
 
5409
ac_preproc_ok=false
 
5410
for ac_cxx_preproc_warn_flag in '' yes
 
5411
do
 
5412
  # Use a header file that comes with gcc, so configuring glibc
 
5413
  # with a fresh cross-compiler works.
 
5414
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5415
  # <limits.h> exists even on freestanding compilers.
 
5416
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
5417
  # not just through cpp. "Syntax error" is here to catch this case.
 
5418
  cat >conftest.$ac_ext <<_ACEOF
 
5419
/* confdefs.h.  */
 
5420
_ACEOF
 
5421
cat confdefs.h >>conftest.$ac_ext
 
5422
cat >>conftest.$ac_ext <<_ACEOF
 
5423
/* end confdefs.h.  */
 
5424
#ifdef __STDC__
 
5425
# include <limits.h>
 
5426
#else
 
5427
# include <assert.h>
 
5428
#endif
 
5429
                     Syntax error
 
5430
_ACEOF
 
5431
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5432
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5433
  ac_status=$?
 
5434
  grep -v '^ *+' conftest.er1 >conftest.err
 
5435
  rm -f conftest.er1
 
5436
  cat conftest.err >&5
 
5437
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5438
  (exit $ac_status); } >/dev/null; then
 
5439
  if test -s conftest.err; then
 
5440
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
5441
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
5442
  else
 
5443
    ac_cpp_err=
 
5444
  fi
 
5445
else
 
5446
  ac_cpp_err=yes
 
5447
fi
 
5448
if test -z "$ac_cpp_err"; then
 
5449
  :
 
5450
else
 
5451
  echo "$as_me: failed program was:" >&5
 
5452
sed 's/^/| /' conftest.$ac_ext >&5
 
5453
 
 
5454
  # Broken: fails on valid input.
 
5455
continue
 
5456
fi
 
5457
rm -f conftest.err conftest.$ac_ext
 
5458
 
 
5459
  # OK, works on sane cases.  Now check whether non-existent headers
 
5460
  # can be detected and how.
 
5461
  cat >conftest.$ac_ext <<_ACEOF
 
5462
/* confdefs.h.  */
 
5463
_ACEOF
 
5464
cat confdefs.h >>conftest.$ac_ext
 
5465
cat >>conftest.$ac_ext <<_ACEOF
 
5466
/* end confdefs.h.  */
 
5467
#include <ac_nonexistent.h>
 
5468
_ACEOF
 
5469
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5470
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5471
  ac_status=$?
 
5472
  grep -v '^ *+' conftest.er1 >conftest.err
 
5473
  rm -f conftest.er1
 
5474
  cat conftest.err >&5
 
5475
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5476
  (exit $ac_status); } >/dev/null; then
 
5477
  if test -s conftest.err; then
 
5478
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
5479
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
5480
  else
 
5481
    ac_cpp_err=
 
5482
  fi
 
5483
else
 
5484
  ac_cpp_err=yes
 
5485
fi
 
5486
if test -z "$ac_cpp_err"; then
 
5487
  # Broken: success on invalid input.
 
5488
continue
 
5489
else
 
5490
  echo "$as_me: failed program was:" >&5
 
5491
sed 's/^/| /' conftest.$ac_ext >&5
 
5492
 
 
5493
  # Passes both tests.
 
5494
ac_preproc_ok=:
 
5495
break
 
5496
fi
 
5497
rm -f conftest.err conftest.$ac_ext
 
5498
 
 
5499
done
 
5500
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
5501
rm -f conftest.err conftest.$ac_ext
 
5502
if $ac_preproc_ok; then
 
5503
  :
 
5504
else
 
5505
  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
5506
See \`config.log' for more details." >&5
 
5507
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
5508
See \`config.log' for more details." >&2;}
 
5509
   { (exit 1); exit 1; }; }
 
5510
fi
 
5511
 
 
5512
ac_ext=cc
 
5513
ac_cpp='$CXXCPP $CPPFLAGS'
 
5514
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5515
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5516
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5517
 
 
5518
 
 
5519
ac_ext=f
 
5520
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
5521
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5522
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
5523
if test -n "$ac_tool_prefix"; then
 
5524
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
 
5525
  do
 
5526
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
5527
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
5528
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5529
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5530
if test "${ac_cv_prog_F77+set}" = set; then
 
5531
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5532
else
 
5533
  if test -n "$F77"; then
 
5534
  ac_cv_prog_F77="$F77" # Let the user override the test.
 
5535
else
 
5536
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5537
for as_dir in $PATH
 
5538
do
 
5539
  IFS=$as_save_IFS
 
5540
  test -z "$as_dir" && as_dir=.
 
5541
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5542
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5543
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
 
5544
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5545
    break 2
 
5546
  fi
 
5547
done
 
5548
done
 
5549
 
 
5550
fi
 
5551
fi
 
5552
F77=$ac_cv_prog_F77
 
5553
if test -n "$F77"; then
 
5554
  echo "$as_me:$LINENO: result: $F77" >&5
 
5555
echo "${ECHO_T}$F77" >&6
 
5556
else
 
5557
  echo "$as_me:$LINENO: result: no" >&5
 
5558
echo "${ECHO_T}no" >&6
 
5559
fi
 
5560
 
 
5561
    test -n "$F77" && break
 
5562
  done
 
5563
fi
 
5564
if test -z "$F77"; then
 
5565
  ac_ct_F77=$F77
 
5566
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
 
5567
do
 
5568
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
5569
set dummy $ac_prog; ac_word=$2
 
5570
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5571
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5572
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
 
5573
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5574
else
 
5575
  if test -n "$ac_ct_F77"; then
 
5576
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
 
5577
else
 
5578
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5579
for as_dir in $PATH
 
5580
do
 
5581
  IFS=$as_save_IFS
 
5582
  test -z "$as_dir" && as_dir=.
 
5583
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5584
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5585
    ac_cv_prog_ac_ct_F77="$ac_prog"
 
5586
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5587
    break 2
 
5588
  fi
 
5589
done
 
5590
done
 
5591
 
 
5592
fi
 
5593
fi
 
5594
ac_ct_F77=$ac_cv_prog_ac_ct_F77
 
5595
if test -n "$ac_ct_F77"; then
 
5596
  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
 
5597
echo "${ECHO_T}$ac_ct_F77" >&6
 
5598
else
 
5599
  echo "$as_me:$LINENO: result: no" >&5
 
5600
echo "${ECHO_T}no" >&6
 
5601
fi
 
5602
 
 
5603
  test -n "$ac_ct_F77" && break
 
5604
done
 
5605
 
 
5606
  F77=$ac_ct_F77
 
5607
fi
 
5608
 
 
5609
 
 
5610
# Provide some information about the compiler.
 
5611
echo "$as_me:5611:" \
 
5612
     "checking for Fortran 77 compiler version" >&5
 
5613
ac_compiler=`set X $ac_compile; echo $2`
 
5614
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
5615
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
5616
  ac_status=$?
 
5617
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5618
  (exit $ac_status); }
 
5619
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
5620
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
5621
  ac_status=$?
 
5622
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5623
  (exit $ac_status); }
 
5624
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
5625
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
5626
  ac_status=$?
 
5627
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5628
  (exit $ac_status); }
 
5629
rm -f a.out
 
5630
 
 
5631
# If we don't use `.F' as extension, the preprocessor is not run on the
 
5632
# input file.  (Note that this only needs to work for GNU compilers.)
 
5633
ac_save_ext=$ac_ext
 
5634
ac_ext=F
 
5635
echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
 
5636
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
 
5637
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
 
5638
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5639
else
 
5640
  cat >conftest.$ac_ext <<_ACEOF
 
5641
      program main
 
5642
#ifndef __GNUC__
 
5643
       choke me
 
5644
#endif
 
5645
 
 
5646
      end
 
5647
_ACEOF
 
5648
rm -f conftest.$ac_objext
 
5649
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5650
  (eval $ac_compile) 2>conftest.er1
 
5651
  ac_status=$?
 
5652
  grep -v '^ *+' conftest.er1 >conftest.err
 
5653
  rm -f conftest.er1
 
5654
  cat conftest.err >&5
 
5655
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5656
  (exit $ac_status); } &&
 
5657
         { ac_try='test -z "$ac_f77_werror_flag"
 
5658
                         || test ! -s conftest.err'
 
5659
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5660
  (eval $ac_try) 2>&5
 
5661
  ac_status=$?
 
5662
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5663
  (exit $ac_status); }; } &&
 
5664
         { ac_try='test -s conftest.$ac_objext'
 
5665
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5666
  (eval $ac_try) 2>&5
 
5667
  ac_status=$?
 
5668
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5669
  (exit $ac_status); }; }; then
 
5670
  ac_compiler_gnu=yes
 
5671
else
 
5672
  echo "$as_me: failed program was:" >&5
 
5673
sed 's/^/| /' conftest.$ac_ext >&5
 
5674
 
 
5675
ac_compiler_gnu=no
 
5676
fi
 
5677
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5678
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
 
5679
 
 
5680
fi
 
5681
echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
 
5682
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
 
5683
ac_ext=$ac_save_ext
 
5684
ac_test_FFLAGS=${FFLAGS+set}
 
5685
ac_save_FFLAGS=$FFLAGS
 
5686
FFLAGS=
 
5687
echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
 
5688
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
 
5689
if test "${ac_cv_prog_f77_g+set}" = set; then
 
5690
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5691
else
 
5692
  FFLAGS=-g
 
5693
cat >conftest.$ac_ext <<_ACEOF
 
5694
      program main
 
5695
 
 
5696
      end
 
5697
_ACEOF
 
5698
rm -f conftest.$ac_objext
 
5699
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5700
  (eval $ac_compile) 2>conftest.er1
 
5701
  ac_status=$?
 
5702
  grep -v '^ *+' conftest.er1 >conftest.err
 
5703
  rm -f conftest.er1
 
5704
  cat conftest.err >&5
 
5705
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5706
  (exit $ac_status); } &&
 
5707
         { ac_try='test -z "$ac_f77_werror_flag"
 
5708
                         || test ! -s conftest.err'
 
5709
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5710
  (eval $ac_try) 2>&5
 
5711
  ac_status=$?
 
5712
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5713
  (exit $ac_status); }; } &&
 
5714
         { ac_try='test -s conftest.$ac_objext'
 
5715
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5716
  (eval $ac_try) 2>&5
 
5717
  ac_status=$?
 
5718
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5719
  (exit $ac_status); }; }; then
 
5720
  ac_cv_prog_f77_g=yes
 
5721
else
 
5722
  echo "$as_me: failed program was:" >&5
 
5723
sed 's/^/| /' conftest.$ac_ext >&5
 
5724
 
 
5725
ac_cv_prog_f77_g=no
 
5726
fi
 
5727
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5728
 
 
5729
fi
 
5730
echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
 
5731
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
 
5732
if test "$ac_test_FFLAGS" = set; then
 
5733
  FFLAGS=$ac_save_FFLAGS
 
5734
elif test $ac_cv_prog_f77_g = yes; then
 
5735
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
5736
    FFLAGS="-g -O2"
 
5737
  else
 
5738
    FFLAGS="-g"
 
5739
  fi
 
5740
else
 
5741
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
5742
    FFLAGS="-O2"
 
5743
  else
 
5744
    FFLAGS=
 
5745
  fi
 
5746
fi
 
5747
 
 
5748
G77=`test $ac_compiler_gnu = yes && echo yes`
 
5749
ac_ext=c
 
5750
ac_cpp='$CPP $CPPFLAGS'
 
5751
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5752
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5753
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5754
 
 
5755
 
 
5756
 
 
5757
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
 
5758
 
 
5759
# find the maximum length of command line arguments
 
5760
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
 
5761
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
 
5762
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
 
5763
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5764
else
 
5765
    i=0
 
5766
  teststring="ABCD"
 
5767
 
 
5768
  case $build_os in
 
5769
  msdosdjgpp*)
 
5770
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
5771
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
5772
    # during glob expansion).  Even if it were fixed, the result of this
 
5773
    # check would be larger than it should be.
 
5774
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
5775
    ;;
 
5776
 
 
5777
  gnu*)
 
5778
    # Under GNU Hurd, this test is not required because there is
 
5779
    # no limit to the length of command line arguments.
 
5780
    # Libtool will interpret -1 as no limit whatsoever
 
5781
    lt_cv_sys_max_cmd_len=-1;
 
5782
    ;;
 
5783
 
 
5784
  cygwin* | mingw*)
 
5785
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
5786
    # about 5 minutes as the teststring grows exponentially.
 
5787
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
5788
    # you end up with a "frozen" computer, even though with patience
 
5789
    # the test eventually succeeds (with a max line length of 256k).
 
5790
    # Instead, let's just punt: use the minimum linelength reported by
 
5791
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
5792
    lt_cv_sys_max_cmd_len=8192;
 
5793
    ;;
 
5794
 
 
5795
  amigaos*)
 
5796
    # On AmigaOS with pdksh, this test takes hours, literally.
 
5797
    # So we just punt and use a minimum line length of 8192.
 
5798
    lt_cv_sys_max_cmd_len=8192;
 
5799
    ;;
 
5800
 
 
5801
 *)
 
5802
    # If test is not a shell built-in, we'll probably end up computing a
 
5803
    # maximum length that is only half of the actual maximum length, but
 
5804
    # we can't tell.
 
5805
    while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
 
5806
               = "XX$teststring") >/dev/null 2>&1 &&
 
5807
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
 
5808
            lt_cv_sys_max_cmd_len=$new_result &&
 
5809
            test $i != 17 # 1/2 MB should be enough
 
5810
    do
 
5811
      i=`expr $i + 1`
 
5812
      teststring=$teststring$teststring
 
5813
    done
 
5814
    teststring=
 
5815
    # Add a significant safety factor because C++ compilers can tack on massive
 
5816
    # amounts of additional arguments before passing them to the linker.
 
5817
    # It appears as though 1/2 is a usable value.
 
5818
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
5819
    ;;
 
5820
  esac
 
5821
 
 
5822
fi
 
5823
 
 
5824
if test -n $lt_cv_sys_max_cmd_len ; then
 
5825
  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
 
5826
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
 
5827
else
 
5828
  echo "$as_me:$LINENO: result: none" >&5
 
5829
echo "${ECHO_T}none" >&6
 
5830
fi
3624
5831
 
3625
5832
 
3626
5833
 
3627
5834
 
3628
5835
# Check for command to grab the raw symbol name followed by C symbol from nm.
3629
 
echo "$as_me:$LINENO: checking command to parse $NM output" >&5
3630
 
echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
 
5836
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
 
5837
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
3631
5838
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3632
5839
  echo $ECHO_N "(cached) $ECHO_C" >&6
3633
5840
else
3645
5852
symxfrm='\1 \2\3 \3'
3646
5853
 
3647
5854
# Transform an extracted symbol line into a proper C declaration
3648
 
lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
 
5855
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
3649
5856
 
3650
5857
# Transform an extracted symbol line into symbol name and symbol address
3651
 
lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
 
5858
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'"
3652
5859
 
3653
5860
# Define system-specific variables.
3654
5861
case $host_os in
3659
5866
  symcode='[ABCDGISTW]'
3660
5867
  ;;
3661
5868
hpux*) # Its linker distinguishes data from code symbols
3662
 
  lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3663
 
  lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
 
5869
  if test "$host_cpu" = ia64; then
 
5870
    symcode='[ABCDEGRST]'
 
5871
  fi
 
5872
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
5873
  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'"
3664
5874
  ;;
3665
5875
irix* | nonstopux*)
3666
5876
  symcode='[BCDEGRST]'
3669
5879
  symcode='[BCDEGQRST]'
3670
5880
  ;;
3671
5881
solaris* | sysv5*)
3672
 
  symcode='[BDT]'
 
5882
  symcode='[BDRT]'
3673
5883
  ;;
3674
5884
sysv4)
3675
5885
  symcode='[DFNSTU]'
3678
5888
 
3679
5889
# Handle CRLF in mingw tool chain
3680
5890
opt_cr=
3681
 
case $host_os in
 
5891
case $build_os in
3682
5892
mingw*)
3683
5893
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3684
5894
  ;;
3685
5895
esac
3686
5896
 
3687
5897
# If we're using GNU nm, then use its standard symbol codes.
3688
 
if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3689
 
  symcode='[ABCDGISTW]'
3690
 
fi
 
5898
case `$NM -V 2>&1` in
 
5899
*GNU* | *'with BFD'*)
 
5900
  symcode='[ABCDGIRSTW]' ;;
 
5901
esac
3691
5902
 
3692
5903
# Try without a prefix undercore, then with it.
3693
5904
for ac_symprfx in "" "_"; do
3694
5905
 
3695
5906
  # Write the raw and C identifiers.
3696
 
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[         ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
 
5907
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3697
5908
 
3698
5909
  # Check to see that the pipe works correctly.
3699
5910
  pipe_works=no
 
5911
 
3700
5912
  rm -f conftest*
3701
5913
  cat > conftest.$ac_ext <<EOF
3702
5914
#ifdef __cplusplus
3730
5942
      fi
3731
5943
 
3732
5944
      # Make sure that we snagged all the symbols we need.
3733
 
      if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3734
 
        if egrep ' nm_test_func$' "$nlist" >/dev/null; then
 
5945
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
 
5946
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
3735
5947
          cat <<EOF > conftest.$ac_ext
3736
5948
#ifdef __cplusplus
3737
5949
extern "C" {
3739
5951
 
3740
5952
EOF
3741
5953
          # Now generate the symbol file.
3742
 
          eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
 
5954
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
3743
5955
 
3744
5956
          cat <<EOF >> conftest.$ac_ext
3745
5957
#if defined (__STDC__) && __STDC__
3746
 
# define lt_ptr void *
 
5958
# define lt_ptr_t void *
3747
5959
#else
3748
 
# define lt_ptr char *
 
5960
# define lt_ptr_t char *
3749
5961
# define const
3750
5962
#endif
3751
5963
 
3752
5964
/* The mapping between symbol names and symbols. */
3753
5965
const struct {
3754
5966
  const char *name;
3755
 
  lt_ptr address;
 
5967
  lt_ptr_t address;
3756
5968
}
3757
5969
lt_preloaded_symbols[] =
3758
5970
{
3759
5971
EOF
3760
 
          sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
 
5972
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
3761
5973
          cat <<\EOF >> conftest.$ac_ext
3762
 
  {0, (lt_ptr) 0}
 
5974
  {0, (lt_ptr_t) 0}
3763
5975
};
3764
5976
 
3765
5977
#ifdef __cplusplus
3768
5980
EOF
3769
5981
          # Now try linking the two files.
3770
5982
          mv conftest.$ac_objext conftstm.$ac_objext
3771
 
          save_LIBS="$LIBS"
3772
 
          save_CFLAGS="$CFLAGS"
 
5983
          lt_save_LIBS="$LIBS"
 
5984
          lt_save_CFLAGS="$CFLAGS"
3773
5985
          LIBS="conftstm.$ac_objext"
3774
 
          CFLAGS="$CFLAGS$no_builtin_flag"
 
5986
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
3775
5987
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3776
5988
  (eval $ac_link) 2>&5
3777
5989
  ac_status=$?
3778
5990
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3779
 
  (exit $ac_status); } && test -s conftest$ac_exeext; then
 
5991
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
3780
5992
            pipe_works=yes
3781
5993
          fi
3782
 
          LIBS="$save_LIBS"
3783
 
          CFLAGS="$save_CFLAGS"
 
5994
          LIBS="$lt_save_LIBS"
 
5995
          CFLAGS="$lt_save_CFLAGS"
3784
5996
        else
3785
5997
          echo "cannot find nm_test_func in $nlist" >&5
3786
5998
        fi
3806
6018
 
3807
6019
fi
3808
6020
 
3809
 
global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
3810
6021
if test -z "$lt_cv_sys_global_symbol_pipe"; then
3811
 
  global_symbol_to_cdecl=
3812
 
  global_symbol_to_c_name_address=
3813
 
else
3814
 
  global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
3815
 
  global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
 
6022
  lt_cv_sys_global_symbol_to_cdecl=
3816
6023
fi
3817
 
if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
3818
 
then
 
6024
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
3819
6025
  echo "$as_me:$LINENO: result: failed" >&5
3820
6026
echo "${ECHO_T}failed" >&6
3821
6027
else
3823
6029
echo "${ECHO_T}ok" >&6
3824
6030
fi
3825
6031
 
3826
 
ac_ext=c
3827
 
ac_cpp='$CPP $CPPFLAGS'
3828
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3829
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3830
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3831
 
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3832
 
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3833
 
# On Suns, sometimes $CPP names a directory.
3834
 
if test -n "$CPP" && test -d "$CPP"; then
3835
 
  CPP=
3836
 
fi
3837
 
if test -z "$CPP"; then
3838
 
  if test "${ac_cv_prog_CPP+set}" = set; then
3839
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3840
 
else
3841
 
      # Double quotes because CPP needs to be expanded
3842
 
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3843
 
    do
3844
 
      ac_preproc_ok=false
3845
 
for ac_c_preproc_warn_flag in '' yes
3846
 
do
3847
 
  # Use a header file that comes with gcc, so configuring glibc
3848
 
  # with a fresh cross-compiler works.
3849
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3850
 
  # <limits.h> exists even on freestanding compilers.
3851
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
3852
 
  # not just through cpp. "Syntax error" is here to catch this case.
3853
 
  cat >conftest.$ac_ext <<_ACEOF
3854
 
#line $LINENO "configure"
3855
 
/* confdefs.h.  */
3856
 
_ACEOF
3857
 
cat confdefs.h >>conftest.$ac_ext
3858
 
cat >>conftest.$ac_ext <<_ACEOF
3859
 
/* end confdefs.h.  */
3860
 
#ifdef __STDC__
3861
 
# include <limits.h>
3862
 
#else
3863
 
# include <assert.h>
3864
 
#endif
3865
 
                     Syntax error
3866
 
_ACEOF
3867
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3868
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3869
 
  ac_status=$?
3870
 
  grep -v '^ *+' conftest.er1 >conftest.err
3871
 
  rm -f conftest.er1
3872
 
  cat conftest.err >&5
3873
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874
 
  (exit $ac_status); } >/dev/null; then
3875
 
  if test -s conftest.err; then
3876
 
    ac_cpp_err=$ac_c_preproc_warn_flag
3877
 
  else
3878
 
    ac_cpp_err=
3879
 
  fi
3880
 
else
3881
 
  ac_cpp_err=yes
3882
 
fi
3883
 
if test -z "$ac_cpp_err"; then
3884
 
  :
3885
 
else
3886
 
  echo "$as_me: failed program was:" >&5
3887
 
sed 's/^/| /' conftest.$ac_ext >&5
3888
 
 
3889
 
  # Broken: fails on valid input.
3890
 
continue
3891
 
fi
3892
 
rm -f conftest.err conftest.$ac_ext
3893
 
 
3894
 
  # OK, works on sane cases.  Now check whether non-existent headers
3895
 
  # can be detected and how.
3896
 
  cat >conftest.$ac_ext <<_ACEOF
3897
 
#line $LINENO "configure"
3898
 
/* confdefs.h.  */
3899
 
_ACEOF
3900
 
cat confdefs.h >>conftest.$ac_ext
3901
 
cat >>conftest.$ac_ext <<_ACEOF
3902
 
/* end confdefs.h.  */
3903
 
#include <ac_nonexistent.h>
3904
 
_ACEOF
3905
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3906
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3907
 
  ac_status=$?
3908
 
  grep -v '^ *+' conftest.er1 >conftest.err
3909
 
  rm -f conftest.er1
3910
 
  cat conftest.err >&5
3911
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3912
 
  (exit $ac_status); } >/dev/null; then
3913
 
  if test -s conftest.err; then
3914
 
    ac_cpp_err=$ac_c_preproc_warn_flag
3915
 
  else
3916
 
    ac_cpp_err=
3917
 
  fi
3918
 
else
3919
 
  ac_cpp_err=yes
3920
 
fi
3921
 
if test -z "$ac_cpp_err"; then
3922
 
  # Broken: success on invalid input.
3923
 
continue
3924
 
else
3925
 
  echo "$as_me: failed program was:" >&5
3926
 
sed 's/^/| /' conftest.$ac_ext >&5
3927
 
 
3928
 
  # Passes both tests.
3929
 
ac_preproc_ok=:
3930
 
break
3931
 
fi
3932
 
rm -f conftest.err conftest.$ac_ext
3933
 
 
3934
 
done
3935
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3936
 
rm -f conftest.err conftest.$ac_ext
3937
 
if $ac_preproc_ok; then
3938
 
  break
3939
 
fi
3940
 
 
3941
 
    done
3942
 
    ac_cv_prog_CPP=$CPP
3943
 
 
3944
 
fi
3945
 
  CPP=$ac_cv_prog_CPP
3946
 
else
3947
 
  ac_cv_prog_CPP=$CPP
3948
 
fi
3949
 
echo "$as_me:$LINENO: result: $CPP" >&5
3950
 
echo "${ECHO_T}$CPP" >&6
3951
 
ac_preproc_ok=false
3952
 
for ac_c_preproc_warn_flag in '' yes
3953
 
do
3954
 
  # Use a header file that comes with gcc, so configuring glibc
3955
 
  # with a fresh cross-compiler works.
3956
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3957
 
  # <limits.h> exists even on freestanding compilers.
3958
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
3959
 
  # not just through cpp. "Syntax error" is here to catch this case.
3960
 
  cat >conftest.$ac_ext <<_ACEOF
3961
 
#line $LINENO "configure"
3962
 
/* confdefs.h.  */
3963
 
_ACEOF
3964
 
cat confdefs.h >>conftest.$ac_ext
3965
 
cat >>conftest.$ac_ext <<_ACEOF
3966
 
/* end confdefs.h.  */
3967
 
#ifdef __STDC__
3968
 
# include <limits.h>
3969
 
#else
3970
 
# include <assert.h>
3971
 
#endif
3972
 
                     Syntax error
3973
 
_ACEOF
3974
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3975
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3976
 
  ac_status=$?
3977
 
  grep -v '^ *+' conftest.er1 >conftest.err
3978
 
  rm -f conftest.er1
3979
 
  cat conftest.err >&5
3980
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3981
 
  (exit $ac_status); } >/dev/null; then
3982
 
  if test -s conftest.err; then
3983
 
    ac_cpp_err=$ac_c_preproc_warn_flag
3984
 
  else
3985
 
    ac_cpp_err=
3986
 
  fi
3987
 
else
3988
 
  ac_cpp_err=yes
3989
 
fi
3990
 
if test -z "$ac_cpp_err"; then
3991
 
  :
3992
 
else
3993
 
  echo "$as_me: failed program was:" >&5
3994
 
sed 's/^/| /' conftest.$ac_ext >&5
3995
 
 
3996
 
  # Broken: fails on valid input.
3997
 
continue
3998
 
fi
3999
 
rm -f conftest.err conftest.$ac_ext
4000
 
 
4001
 
  # OK, works on sane cases.  Now check whether non-existent headers
4002
 
  # can be detected and how.
4003
 
  cat >conftest.$ac_ext <<_ACEOF
4004
 
#line $LINENO "configure"
4005
 
/* confdefs.h.  */
4006
 
_ACEOF
4007
 
cat confdefs.h >>conftest.$ac_ext
4008
 
cat >>conftest.$ac_ext <<_ACEOF
4009
 
/* end confdefs.h.  */
4010
 
#include <ac_nonexistent.h>
4011
 
_ACEOF
4012
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4013
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4014
 
  ac_status=$?
4015
 
  grep -v '^ *+' conftest.er1 >conftest.err
4016
 
  rm -f conftest.er1
4017
 
  cat conftest.err >&5
4018
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019
 
  (exit $ac_status); } >/dev/null; then
4020
 
  if test -s conftest.err; then
4021
 
    ac_cpp_err=$ac_c_preproc_warn_flag
4022
 
  else
4023
 
    ac_cpp_err=
4024
 
  fi
4025
 
else
4026
 
  ac_cpp_err=yes
4027
 
fi
4028
 
if test -z "$ac_cpp_err"; then
4029
 
  # Broken: success on invalid input.
4030
 
continue
4031
 
else
4032
 
  echo "$as_me: failed program was:" >&5
4033
 
sed 's/^/| /' conftest.$ac_ext >&5
4034
 
 
4035
 
  # Passes both tests.
4036
 
ac_preproc_ok=:
4037
 
break
4038
 
fi
4039
 
rm -f conftest.err conftest.$ac_ext
4040
 
 
4041
 
done
4042
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4043
 
rm -f conftest.err conftest.$ac_ext
4044
 
if $ac_preproc_ok; then
4045
 
  :
4046
 
else
4047
 
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4048
 
See \`config.log' for more details." >&5
4049
 
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4050
 
See \`config.log' for more details." >&2;}
4051
 
   { (exit 1); exit 1; }; }
4052
 
fi
4053
 
 
4054
 
ac_ext=c
4055
 
ac_cpp='$CPP $CPPFLAGS'
4056
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4057
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4058
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4059
 
 
4060
 
 
4061
 
echo "$as_me:$LINENO: checking for egrep" >&5
4062
 
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4063
 
if test "${ac_cv_prog_egrep+set}" = set; then
4064
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4065
 
else
4066
 
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4067
 
    then ac_cv_prog_egrep='grep -E'
4068
 
    else ac_cv_prog_egrep='egrep'
4069
 
    fi
4070
 
fi
4071
 
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4072
 
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4073
 
 EGREP=$ac_cv_prog_egrep
4074
 
 
4075
 
 
4076
 
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4077
 
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4078
 
if test "${ac_cv_header_stdc+set}" = set; then
4079
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4080
 
else
4081
 
  cat >conftest.$ac_ext <<_ACEOF
4082
 
#line $LINENO "configure"
4083
 
/* confdefs.h.  */
4084
 
_ACEOF
4085
 
cat confdefs.h >>conftest.$ac_ext
4086
 
cat >>conftest.$ac_ext <<_ACEOF
4087
 
/* end confdefs.h.  */
4088
 
#include <stdlib.h>
4089
 
#include <stdarg.h>
4090
 
#include <string.h>
4091
 
#include <float.h>
4092
 
 
4093
 
int
4094
 
main ()
4095
 
{
4096
 
 
4097
 
  ;
4098
 
  return 0;
4099
 
}
4100
 
_ACEOF
4101
 
rm -f conftest.$ac_objext
4102
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4103
 
  (eval $ac_compile) 2>&5
4104
 
  ac_status=$?
4105
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4106
 
  (exit $ac_status); } &&
4107
 
         { ac_try='test -s conftest.$ac_objext'
4108
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4109
 
  (eval $ac_try) 2>&5
4110
 
  ac_status=$?
4111
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4112
 
  (exit $ac_status); }; }; then
4113
 
  ac_cv_header_stdc=yes
4114
 
else
4115
 
  echo "$as_me: failed program was:" >&5
4116
 
sed 's/^/| /' conftest.$ac_ext >&5
4117
 
 
4118
 
ac_cv_header_stdc=no
4119
 
fi
4120
 
rm -f conftest.$ac_objext conftest.$ac_ext
4121
 
 
4122
 
if test $ac_cv_header_stdc = yes; then
4123
 
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4124
 
  cat >conftest.$ac_ext <<_ACEOF
4125
 
#line $LINENO "configure"
4126
 
/* confdefs.h.  */
4127
 
_ACEOF
4128
 
cat confdefs.h >>conftest.$ac_ext
4129
 
cat >>conftest.$ac_ext <<_ACEOF
4130
 
/* end confdefs.h.  */
4131
 
#include <string.h>
4132
 
 
4133
 
_ACEOF
4134
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4135
 
  $EGREP "memchr" >/dev/null 2>&1; then
4136
 
  :
4137
 
else
4138
 
  ac_cv_header_stdc=no
4139
 
fi
4140
 
rm -f conftest*
4141
 
 
4142
 
fi
4143
 
 
4144
 
if test $ac_cv_header_stdc = yes; then
4145
 
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4146
 
  cat >conftest.$ac_ext <<_ACEOF
4147
 
#line $LINENO "configure"
4148
 
/* confdefs.h.  */
4149
 
_ACEOF
4150
 
cat confdefs.h >>conftest.$ac_ext
4151
 
cat >>conftest.$ac_ext <<_ACEOF
4152
 
/* end confdefs.h.  */
4153
 
#include <stdlib.h>
4154
 
 
4155
 
_ACEOF
4156
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4157
 
  $EGREP "free" >/dev/null 2>&1; then
4158
 
  :
4159
 
else
4160
 
  ac_cv_header_stdc=no
4161
 
fi
4162
 
rm -f conftest*
4163
 
 
4164
 
fi
4165
 
 
4166
 
if test $ac_cv_header_stdc = yes; then
4167
 
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4168
 
  if test "$cross_compiling" = yes; then
4169
 
  :
4170
 
else
4171
 
  cat >conftest.$ac_ext <<_ACEOF
4172
 
#line $LINENO "configure"
4173
 
/* confdefs.h.  */
4174
 
_ACEOF
4175
 
cat confdefs.h >>conftest.$ac_ext
4176
 
cat >>conftest.$ac_ext <<_ACEOF
4177
 
/* end confdefs.h.  */
4178
 
#include <ctype.h>
4179
 
#if ((' ' & 0x0FF) == 0x020)
4180
 
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4181
 
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4182
 
#else
4183
 
# define ISLOWER(c) \
4184
 
                   (('a' <= (c) && (c) <= 'i') \
4185
 
                     || ('j' <= (c) && (c) <= 'r') \
4186
 
                     || ('s' <= (c) && (c) <= 'z'))
4187
 
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4188
 
#endif
4189
 
 
4190
 
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4191
 
int
4192
 
main ()
4193
 
{
4194
 
  int i;
4195
 
  for (i = 0; i < 256; i++)
4196
 
    if (XOR (islower (i), ISLOWER (i))
4197
 
        || toupper (i) != TOUPPER (i))
4198
 
      exit(2);
4199
 
  exit (0);
4200
 
}
4201
 
_ACEOF
4202
 
rm -f conftest$ac_exeext
4203
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4204
 
  (eval $ac_link) 2>&5
4205
 
  ac_status=$?
4206
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4208
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4209
 
  (eval $ac_try) 2>&5
4210
 
  ac_status=$?
4211
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4212
 
  (exit $ac_status); }; }; then
4213
 
  :
4214
 
else
4215
 
  echo "$as_me: program exited with status $ac_status" >&5
4216
 
echo "$as_me: failed program was:" >&5
4217
 
sed 's/^/| /' conftest.$ac_ext >&5
4218
 
 
4219
 
( exit $ac_status )
4220
 
ac_cv_header_stdc=no
4221
 
fi
4222
 
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4223
 
fi
4224
 
fi
4225
 
fi
4226
 
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4227
 
echo "${ECHO_T}$ac_cv_header_stdc" >&6
4228
 
if test $ac_cv_header_stdc = yes; then
4229
 
 
4230
 
cat >>confdefs.h <<\_ACEOF
4231
 
#define STDC_HEADERS 1
4232
 
_ACEOF
4233
 
 
4234
 
fi
4235
 
 
4236
 
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4237
 
 
4238
 
 
4239
 
 
4240
 
 
4241
 
 
4242
 
 
4243
 
 
4244
 
 
4245
 
 
4246
 
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4247
 
                  inttypes.h stdint.h unistd.h
4248
 
do
4249
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4250
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
4251
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4252
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4253
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4254
 
else
4255
 
  cat >conftest.$ac_ext <<_ACEOF
4256
 
#line $LINENO "configure"
4257
 
/* confdefs.h.  */
4258
 
_ACEOF
4259
 
cat confdefs.h >>conftest.$ac_ext
4260
 
cat >>conftest.$ac_ext <<_ACEOF
4261
 
/* end confdefs.h.  */
4262
 
$ac_includes_default
4263
 
 
4264
 
#include <$ac_header>
4265
 
_ACEOF
4266
 
rm -f conftest.$ac_objext
4267
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4268
 
  (eval $ac_compile) 2>&5
4269
 
  ac_status=$?
4270
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271
 
  (exit $ac_status); } &&
4272
 
         { ac_try='test -s conftest.$ac_objext'
4273
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4274
 
  (eval $ac_try) 2>&5
4275
 
  ac_status=$?
4276
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277
 
  (exit $ac_status); }; }; then
4278
 
  eval "$as_ac_Header=yes"
4279
 
else
4280
 
  echo "$as_me: failed program was:" >&5
4281
 
sed 's/^/| /' conftest.$ac_ext >&5
4282
 
 
4283
 
eval "$as_ac_Header=no"
4284
 
fi
4285
 
rm -f conftest.$ac_objext conftest.$ac_ext
4286
 
fi
4287
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4288
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4289
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4290
 
  cat >>confdefs.h <<_ACEOF
4291
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4292
 
_ACEOF
4293
 
 
4294
 
fi
4295
 
 
4296
 
done
4297
 
 
4298
 
 
4299
 
 
4300
 
for ac_header in dlfcn.h
4301
 
do
4302
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4303
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4304
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
4305
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4306
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4307
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4308
 
fi
4309
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4310
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4311
 
else
4312
 
  # Is the header compilable?
4313
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
4314
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4315
 
cat >conftest.$ac_ext <<_ACEOF
4316
 
#line $LINENO "configure"
4317
 
/* confdefs.h.  */
4318
 
_ACEOF
4319
 
cat confdefs.h >>conftest.$ac_ext
4320
 
cat >>conftest.$ac_ext <<_ACEOF
4321
 
/* end confdefs.h.  */
4322
 
$ac_includes_default
4323
 
#include <$ac_header>
4324
 
_ACEOF
4325
 
rm -f conftest.$ac_objext
4326
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4327
 
  (eval $ac_compile) 2>&5
4328
 
  ac_status=$?
4329
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330
 
  (exit $ac_status); } &&
4331
 
         { ac_try='test -s conftest.$ac_objext'
4332
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4333
 
  (eval $ac_try) 2>&5
4334
 
  ac_status=$?
4335
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336
 
  (exit $ac_status); }; }; then
4337
 
  ac_header_compiler=yes
4338
 
else
4339
 
  echo "$as_me: failed program was:" >&5
4340
 
sed 's/^/| /' conftest.$ac_ext >&5
4341
 
 
4342
 
ac_header_compiler=no
4343
 
fi
4344
 
rm -f conftest.$ac_objext conftest.$ac_ext
4345
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4346
 
echo "${ECHO_T}$ac_header_compiler" >&6
4347
 
 
4348
 
# Is the header present?
4349
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
4350
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4351
 
cat >conftest.$ac_ext <<_ACEOF
4352
 
#line $LINENO "configure"
4353
 
/* confdefs.h.  */
4354
 
_ACEOF
4355
 
cat confdefs.h >>conftest.$ac_ext
4356
 
cat >>conftest.$ac_ext <<_ACEOF
4357
 
/* end confdefs.h.  */
4358
 
#include <$ac_header>
4359
 
_ACEOF
4360
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4361
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4362
 
  ac_status=$?
4363
 
  grep -v '^ *+' conftest.er1 >conftest.err
4364
 
  rm -f conftest.er1
4365
 
  cat conftest.err >&5
4366
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367
 
  (exit $ac_status); } >/dev/null; then
4368
 
  if test -s conftest.err; then
4369
 
    ac_cpp_err=$ac_c_preproc_warn_flag
4370
 
  else
4371
 
    ac_cpp_err=
4372
 
  fi
4373
 
else
4374
 
  ac_cpp_err=yes
4375
 
fi
4376
 
if test -z "$ac_cpp_err"; then
4377
 
  ac_header_preproc=yes
4378
 
else
4379
 
  echo "$as_me: failed program was:" >&5
4380
 
sed 's/^/| /' conftest.$ac_ext >&5
4381
 
 
4382
 
  ac_header_preproc=no
4383
 
fi
4384
 
rm -f conftest.err conftest.$ac_ext
4385
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4386
 
echo "${ECHO_T}$ac_header_preproc" >&6
4387
 
 
4388
 
# So?  What about this header?
4389
 
case $ac_header_compiler:$ac_header_preproc in
4390
 
  yes:no )
4391
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4392
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4393
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4394
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4395
 
    (
4396
 
      cat <<\_ASBOX
4397
 
## ------------------------------------ ##
4398
 
## Report this to bug-autoconf@gnu.org. ##
4399
 
## ------------------------------------ ##
4400
 
_ASBOX
4401
 
    ) |
4402
 
      sed "s/^/$as_me: WARNING:     /" >&2
4403
 
    ;;
4404
 
  no:yes )
4405
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4406
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4407
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4408
 
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4409
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4410
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4411
 
    (
4412
 
      cat <<\_ASBOX
4413
 
## ------------------------------------ ##
4414
 
## Report this to bug-autoconf@gnu.org. ##
4415
 
## ------------------------------------ ##
4416
 
_ASBOX
4417
 
    ) |
4418
 
      sed "s/^/$as_me: WARNING:     /" >&2
4419
 
    ;;
4420
 
esac
4421
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
4422
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4423
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4424
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4425
 
else
4426
 
  eval "$as_ac_Header=$ac_header_preproc"
4427
 
fi
4428
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4429
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4430
 
 
4431
 
fi
4432
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4433
 
  cat >>confdefs.h <<_ACEOF
4434
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4435
 
_ACEOF
4436
 
 
4437
 
fi
4438
 
 
4439
 
done
4440
 
 
4441
 
 
4442
 
 
4443
 
 
4444
 
 
4445
 
 
4446
 
# Only perform the check for file, if the check method requires it
4447
 
case $deplibs_check_method in
4448
 
file_magic*)
4449
 
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4450
 
    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4451
 
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4452
 
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4453
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4454
 
else
4455
 
  case $MAGIC_CMD in
4456
 
  /*)
4457
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4458
 
  ;;
4459
 
  ?:/*)
4460
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4461
 
  ;;
4462
 
  *)
4463
 
  ac_save_MAGIC_CMD="$MAGIC_CMD"
4464
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4465
 
  ac_dummy="/usr/bin:$PATH"
4466
 
  for ac_dir in $ac_dummy; do
4467
 
    test -z "$ac_dir" && ac_dir=.
4468
 
    if test -f $ac_dir/${ac_tool_prefix}file; then
4469
 
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4470
 
      if test -n "$file_magic_test_file"; then
4471
 
        case $deplibs_check_method in
4472
 
        "file_magic "*)
4473
 
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4474
 
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4475
 
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4476
 
            egrep "$file_magic_regex" > /dev/null; then
4477
 
            :
4478
 
          else
4479
 
            cat <<EOF 1>&2
4480
 
 
4481
 
*** Warning: the command libtool uses to detect shared libraries,
4482
 
*** $file_magic_cmd, produces output that libtool cannot recognize.
4483
 
*** The result is that libtool may fail to recognize shared libraries
4484
 
*** as such.  This will affect the creation of libtool libraries that
4485
 
*** depend on shared libraries, but programs linked with such libtool
4486
 
*** libraries will work regardless of this problem.  Nevertheless, you
4487
 
*** may want to report the problem to your system manager and/or to
4488
 
*** bug-libtool@gnu.org
4489
 
 
4490
 
EOF
4491
 
          fi ;;
4492
 
        esac
4493
 
      fi
4494
 
      break
4495
 
    fi
4496
 
  done
4497
 
  IFS="$ac_save_ifs"
4498
 
  MAGIC_CMD="$ac_save_MAGIC_CMD"
4499
 
  ;;
4500
 
esac
4501
 
fi
4502
 
 
4503
 
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4504
 
if test -n "$MAGIC_CMD"; then
4505
 
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4506
 
echo "${ECHO_T}$MAGIC_CMD" >&6
4507
 
else
4508
 
  echo "$as_me:$LINENO: result: no" >&5
4509
 
echo "${ECHO_T}no" >&6
4510
 
fi
4511
 
 
4512
 
if test -z "$lt_cv_path_MAGIC_CMD"; then
4513
 
  if test -n "$ac_tool_prefix"; then
4514
 
    echo "$as_me:$LINENO: checking for file" >&5
4515
 
echo $ECHO_N "checking for file... $ECHO_C" >&6
4516
 
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4517
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4518
 
else
4519
 
  case $MAGIC_CMD in
4520
 
  /*)
4521
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4522
 
  ;;
4523
 
  ?:/*)
4524
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4525
 
  ;;
4526
 
  *)
4527
 
  ac_save_MAGIC_CMD="$MAGIC_CMD"
4528
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4529
 
  ac_dummy="/usr/bin:$PATH"
4530
 
  for ac_dir in $ac_dummy; do
4531
 
    test -z "$ac_dir" && ac_dir=.
4532
 
    if test -f $ac_dir/file; then
4533
 
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
4534
 
      if test -n "$file_magic_test_file"; then
4535
 
        case $deplibs_check_method in
4536
 
        "file_magic "*)
4537
 
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4538
 
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4539
 
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4540
 
            egrep "$file_magic_regex" > /dev/null; then
4541
 
            :
4542
 
          else
4543
 
            cat <<EOF 1>&2
4544
 
 
4545
 
*** Warning: the command libtool uses to detect shared libraries,
4546
 
*** $file_magic_cmd, produces output that libtool cannot recognize.
4547
 
*** The result is that libtool may fail to recognize shared libraries
4548
 
*** as such.  This will affect the creation of libtool libraries that
4549
 
*** depend on shared libraries, but programs linked with such libtool
4550
 
*** libraries will work regardless of this problem.  Nevertheless, you
4551
 
*** may want to report the problem to your system manager and/or to
4552
 
*** bug-libtool@gnu.org
4553
 
 
4554
 
EOF
4555
 
          fi ;;
4556
 
        esac
4557
 
      fi
4558
 
      break
4559
 
    fi
4560
 
  done
4561
 
  IFS="$ac_save_ifs"
4562
 
  MAGIC_CMD="$ac_save_MAGIC_CMD"
4563
 
  ;;
4564
 
esac
4565
 
fi
4566
 
 
4567
 
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4568
 
if test -n "$MAGIC_CMD"; then
4569
 
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4570
 
echo "${ECHO_T}$MAGIC_CMD" >&6
4571
 
else
4572
 
  echo "$as_me:$LINENO: result: no" >&5
4573
 
echo "${ECHO_T}no" >&6
4574
 
fi
4575
 
 
4576
 
  else
4577
 
    MAGIC_CMD=:
4578
 
  fi
4579
 
fi
4580
 
 
4581
 
  fi
4582
 
  ;;
4583
 
esac
 
6032
echo "$as_me:$LINENO: checking for objdir" >&5
 
6033
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
 
6034
if test "${lt_cv_objdir+set}" = set; then
 
6035
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6036
else
 
6037
  rm -f .libs 2>/dev/null
 
6038
mkdir .libs 2>/dev/null
 
6039
if test -d .libs; then
 
6040
  lt_cv_objdir=.libs
 
6041
else
 
6042
  # MS-DOS does not allow filenames that begin with a dot.
 
6043
  lt_cv_objdir=_libs
 
6044
fi
 
6045
rmdir .libs 2>/dev/null
 
6046
fi
 
6047
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
 
6048
echo "${ECHO_T}$lt_cv_objdir" >&6
 
6049
objdir=$lt_cv_objdir
 
6050
 
 
6051
 
 
6052
 
 
6053
 
 
6054
 
 
6055
case $host_os in
 
6056
aix3*)
 
6057
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
6058
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
6059
  # vanish in a puff of smoke.
 
6060
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
6061
    COLLECT_NAMES=
 
6062
    export COLLECT_NAMES
 
6063
  fi
 
6064
  ;;
 
6065
esac
 
6066
 
 
6067
# Sed substitution that helps us do robust quoting.  It backslashifies
 
6068
# metacharacters that are still active within double-quoted strings.
 
6069
Xsed='sed -e s/^X//'
 
6070
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
 
6071
 
 
6072
# Same as above, but do not quote variable references.
 
6073
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
 
6074
 
 
6075
# Sed substitution to delay expansion of an escaped shell variable in a
 
6076
# double_quote_subst'ed string.
 
6077
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
6078
 
 
6079
# Sed substitution to avoid accidental globbing in evaled expressions
 
6080
no_glob_subst='s/\*/\\\*/g'
 
6081
 
 
6082
# Constants:
 
6083
rm="rm -f"
 
6084
 
 
6085
# Global variables:
 
6086
default_ofile=libtool
 
6087
can_build_shared=yes
 
6088
 
 
6089
# All known linkers require a `.a' archive for static linking (except M$VC,
 
6090
# which needs '.lib').
 
6091
libext=a
 
6092
ltmain="$ac_aux_dir/ltmain.sh"
 
6093
ofile="$default_ofile"
 
6094
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
6095
 
 
6096
if test -n "$ac_tool_prefix"; then
 
6097
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
6098
set dummy ${ac_tool_prefix}ar; ac_word=$2
 
6099
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6100
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6101
if test "${ac_cv_prog_AR+set}" = set; then
 
6102
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6103
else
 
6104
  if test -n "$AR"; then
 
6105
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
6106
else
 
6107
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6108
for as_dir in $PATH
 
6109
do
 
6110
  IFS=$as_save_IFS
 
6111
  test -z "$as_dir" && as_dir=.
 
6112
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6113
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6114
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
6115
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6116
    break 2
 
6117
  fi
 
6118
done
 
6119
done
 
6120
 
 
6121
fi
 
6122
fi
 
6123
AR=$ac_cv_prog_AR
 
6124
if test -n "$AR"; then
 
6125
  echo "$as_me:$LINENO: result: $AR" >&5
 
6126
echo "${ECHO_T}$AR" >&6
 
6127
else
 
6128
  echo "$as_me:$LINENO: result: no" >&5
 
6129
echo "${ECHO_T}no" >&6
 
6130
fi
 
6131
 
 
6132
fi
 
6133
if test -z "$ac_cv_prog_AR"; then
 
6134
  ac_ct_AR=$AR
 
6135
  # Extract the first word of "ar", so it can be a program name with args.
 
6136
set dummy ar; ac_word=$2
 
6137
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6138
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6139
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
 
6140
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6141
else
 
6142
  if test -n "$ac_ct_AR"; then
 
6143
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
6144
else
 
6145
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6146
for as_dir in $PATH
 
6147
do
 
6148
  IFS=$as_save_IFS
 
6149
  test -z "$as_dir" && as_dir=.
 
6150
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6151
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6152
    ac_cv_prog_ac_ct_AR="ar"
 
6153
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6154
    break 2
 
6155
  fi
 
6156
done
 
6157
done
 
6158
 
 
6159
  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
 
6160
fi
 
6161
fi
 
6162
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
6163
if test -n "$ac_ct_AR"; then
 
6164
  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
 
6165
echo "${ECHO_T}$ac_ct_AR" >&6
 
6166
else
 
6167
  echo "$as_me:$LINENO: result: no" >&5
 
6168
echo "${ECHO_T}no" >&6
 
6169
fi
 
6170
 
 
6171
  AR=$ac_ct_AR
 
6172
else
 
6173
  AR="$ac_cv_prog_AR"
 
6174
fi
4584
6175
 
4585
6176
if test -n "$ac_tool_prefix"; then
4586
6177
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4743
6334
fi
4744
6335
 
4745
6336
 
4746
 
enable_dlopen=no
4747
 
enable_win32_dll=no
4748
 
 
4749
 
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4750
 
if test "${enable_libtool_lock+set}" = set; then
4751
 
  enableval="$enable_libtool_lock"
4752
 
 
4753
 
fi;
4754
 
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4755
 
 
4756
 
# Some flags need to be propagated to the compiler or linker for good
4757
 
# libtool support.
4758
 
case $host in
4759
 
*-*-irix6*)
4760
 
  # Find out which ABI we are using.
4761
 
  echo '#line 4761 "configure"' > conftest.$ac_ext
4762
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4763
 
  (eval $ac_compile) 2>&5
4764
 
  ac_status=$?
4765
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766
 
  (exit $ac_status); }; then
4767
 
    case `/usr/bin/file conftest.$ac_objext` in
4768
 
    *32-bit*)
4769
 
      LD="${LD-ld} -32"
4770
 
      ;;
4771
 
    *N32*)
4772
 
      LD="${LD-ld} -n32"
4773
 
      ;;
4774
 
    *64-bit*)
4775
 
      LD="${LD-ld} -64"
4776
 
      ;;
4777
 
    esac
4778
 
  fi
4779
 
  rm -rf conftest*
4780
 
  ;;
4781
 
 
4782
 
*-*-sco3.2v5*)
4783
 
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4784
 
  SAVE_CFLAGS="$CFLAGS"
4785
 
  CFLAGS="$CFLAGS -belf"
4786
 
  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4787
 
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4788
 
if test "${lt_cv_cc_needs_belf+set}" = set; then
4789
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4790
 
else
4791
 
 
4792
 
 
4793
 
     ac_ext=c
4794
 
ac_cpp='$CPP $CPPFLAGS'
4795
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4796
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4797
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4798
 
 
4799
 
     cat >conftest.$ac_ext <<_ACEOF
4800
 
#line $LINENO "configure"
4801
 
/* confdefs.h.  */
4802
 
_ACEOF
4803
 
cat confdefs.h >>conftest.$ac_ext
4804
 
cat >>conftest.$ac_ext <<_ACEOF
4805
 
/* end confdefs.h.  */
4806
 
 
4807
 
int
4808
 
main ()
4809
 
{
4810
 
 
4811
 
  ;
4812
 
  return 0;
4813
 
}
4814
 
_ACEOF
4815
 
rm -f conftest.$ac_objext conftest$ac_exeext
4816
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4817
 
  (eval $ac_link) 2>&5
4818
 
  ac_status=$?
4819
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820
 
  (exit $ac_status); } &&
4821
 
         { ac_try='test -s conftest$ac_exeext'
4822
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4823
 
  (eval $ac_try) 2>&5
4824
 
  ac_status=$?
4825
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4826
 
  (exit $ac_status); }; }; then
4827
 
  lt_cv_cc_needs_belf=yes
4828
 
else
4829
 
  echo "$as_me: failed program was:" >&5
4830
 
sed 's/^/| /' conftest.$ac_ext >&5
4831
 
 
4832
 
lt_cv_cc_needs_belf=no
4833
 
fi
4834
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4835
 
     ac_ext=c
4836
 
ac_cpp='$CPP $CPPFLAGS'
4837
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4838
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4839
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4840
 
 
4841
 
fi
4842
 
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4843
 
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4844
 
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4845
 
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4846
 
    CFLAGS="$SAVE_CFLAGS"
4847
 
  fi
4848
 
  ;;
4849
 
 
4850
 
 
4851
 
esac
4852
 
 
4853
 
# Sed substitution that helps us do robust quoting.  It backslashifies
4854
 
# metacharacters that are still active within double-quoted strings.
4855
 
Xsed='sed -e s/^X//'
4856
 
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4857
 
 
4858
 
# Same as above, but do not quote variable references.
4859
 
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4860
 
 
4861
 
# Sed substitution to delay expansion of an escaped shell variable in a
4862
 
# double_quote_subst'ed string.
4863
 
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4864
 
 
4865
 
# Constants:
4866
 
rm="rm -f"
4867
 
 
4868
 
# Global variables:
4869
 
default_ofile=libtool
4870
 
can_build_shared=yes
4871
 
 
4872
 
# All known linkers require a `.a' archive for static linking (except M$VC,
4873
 
# which needs '.lib').
4874
 
libext=a
4875
 
ltmain="$ac_aux_dir/ltmain.sh"
4876
 
ofile="$default_ofile"
4877
 
with_gnu_ld="$lt_cv_prog_gnu_ld"
4878
 
need_locks="$enable_libtool_lock"
4879
 
 
4880
6337
old_CC="$CC"
4881
6338
old_CFLAGS="$CFLAGS"
4882
6339
 
4885
6342
test -z "$AR_FLAGS" && AR_FLAGS=cru
4886
6343
test -z "$AS" && AS=as
4887
6344
test -z "$CC" && CC=cc
 
6345
test -z "$LTCC" && LTCC=$CC
4888
6346
test -z "$DLLTOOL" && DLLTOOL=dlltool
4889
6347
test -z "$LD" && LD=ld
4890
6348
test -z "$LN_S" && LN_S="ln -s"
4891
6349
test -z "$MAGIC_CMD" && MAGIC_CMD=file
4892
6350
test -z "$NM" && NM=nm
 
6351
test -z "$SED" && SED=sed
4893
6352
test -z "$OBJDUMP" && OBJDUMP=objdump
4894
6353
test -z "$RANLIB" && RANLIB=:
4895
6354
test -z "$STRIP" && STRIP=:
4896
6355
test -z "$ac_objext" && ac_objext=o
4897
6356
 
4898
 
if test x"$host" != x"$build"; then
4899
 
  ac_tool_prefix=${host_alias}-
4900
 
else
4901
 
  ac_tool_prefix=
4902
 
fi
4903
 
 
4904
 
# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4905
 
case $host_os in
4906
 
linux-gnu*) ;;
4907
 
linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4908
 
esac
4909
 
 
4910
 
case $host_os in
4911
 
aix3*)
4912
 
  # AIX sometimes has problems with the GCC collect2 program.  For some
4913
 
  # reason, if we set the COLLECT_NAMES environment variable, the problems
4914
 
  # vanish in a puff of smoke.
4915
 
  if test "X${COLLECT_NAMES+set}" != Xset; then
4916
 
    COLLECT_NAMES=
4917
 
    export COLLECT_NAMES
4918
 
  fi
4919
 
  ;;
4920
 
esac
4921
 
 
4922
6357
# Determine commands to create old-style static archives.
4923
6358
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4924
6359
old_postinstall_cmds='chmod 644 $oldlib'
4936
6371
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4937
6372
fi
4938
6373
 
4939
 
# Allow CC to be a program name with arguments.
4940
 
set dummy $CC
4941
 
compiler="$2"
4942
 
 
4943
 
echo "$as_me:$LINENO: checking for objdir" >&5
4944
 
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
4945
 
rm -f .libs 2>/dev/null
4946
 
mkdir .libs 2>/dev/null
4947
 
if test -d .libs; then
4948
 
  objdir=.libs
4949
 
else
4950
 
  # MS-DOS does not allow filenames that begin with a dot.
4951
 
  objdir=_libs
4952
 
fi
4953
 
rmdir .libs 2>/dev/null
4954
 
echo "$as_me:$LINENO: result: $objdir" >&5
4955
 
echo "${ECHO_T}$objdir" >&6
4956
 
 
 
6374
# Only perform the check for file, if the check method requires it
 
6375
case $deplibs_check_method in
 
6376
file_magic*)
 
6377
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
6378
    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
 
6379
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
 
6380
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
6381
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6382
else
 
6383
  case $MAGIC_CMD in
 
6384
[\\/*] |  ?:[\\/]*)
 
6385
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
6386
  ;;
 
6387
*)
 
6388
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
6389
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
6390
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
6391
  for ac_dir in $ac_dummy; do
 
6392
    IFS="$lt_save_ifs"
 
6393
    test -z "$ac_dir" && ac_dir=.
 
6394
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
6395
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
6396
      if test -n "$file_magic_test_file"; then
 
6397
        case $deplibs_check_method in
 
6398
        "file_magic "*)
 
6399
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
6400
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
6401
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
6402
            $EGREP "$file_magic_regex" > /dev/null; then
 
6403
            :
 
6404
          else
 
6405
            cat <<EOF 1>&2
 
6406
 
 
6407
*** Warning: the command libtool uses to detect shared libraries,
 
6408
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
6409
*** The result is that libtool may fail to recognize shared libraries
 
6410
*** as such.  This will affect the creation of libtool libraries that
 
6411
*** depend on shared libraries, but programs linked with such libtool
 
6412
*** libraries will work regardless of this problem.  Nevertheless, you
 
6413
*** may want to report the problem to your system manager and/or to
 
6414
*** bug-libtool@gnu.org
 
6415
 
 
6416
EOF
 
6417
          fi ;;
 
6418
        esac
 
6419
      fi
 
6420
      break
 
6421
    fi
 
6422
  done
 
6423
  IFS="$lt_save_ifs"
 
6424
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
6425
  ;;
 
6426
esac
 
6427
fi
 
6428
 
 
6429
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
6430
if test -n "$MAGIC_CMD"; then
 
6431
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
6432
echo "${ECHO_T}$MAGIC_CMD" >&6
 
6433
else
 
6434
  echo "$as_me:$LINENO: result: no" >&5
 
6435
echo "${ECHO_T}no" >&6
 
6436
fi
 
6437
 
 
6438
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
6439
  if test -n "$ac_tool_prefix"; then
 
6440
    echo "$as_me:$LINENO: checking for file" >&5
 
6441
echo $ECHO_N "checking for file... $ECHO_C" >&6
 
6442
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
6443
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6444
else
 
6445
  case $MAGIC_CMD in
 
6446
[\\/*] |  ?:[\\/]*)
 
6447
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
6448
  ;;
 
6449
*)
 
6450
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
6451
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
6452
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
6453
  for ac_dir in $ac_dummy; do
 
6454
    IFS="$lt_save_ifs"
 
6455
    test -z "$ac_dir" && ac_dir=.
 
6456
    if test -f $ac_dir/file; then
 
6457
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
6458
      if test -n "$file_magic_test_file"; then
 
6459
        case $deplibs_check_method in
 
6460
        "file_magic "*)
 
6461
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
6462
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
6463
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
6464
            $EGREP "$file_magic_regex" > /dev/null; then
 
6465
            :
 
6466
          else
 
6467
            cat <<EOF 1>&2
 
6468
 
 
6469
*** Warning: the command libtool uses to detect shared libraries,
 
6470
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
6471
*** The result is that libtool may fail to recognize shared libraries
 
6472
*** as such.  This will affect the creation of libtool libraries that
 
6473
*** depend on shared libraries, but programs linked with such libtool
 
6474
*** libraries will work regardless of this problem.  Nevertheless, you
 
6475
*** may want to report the problem to your system manager and/or to
 
6476
*** bug-libtool@gnu.org
 
6477
 
 
6478
EOF
 
6479
          fi ;;
 
6480
        esac
 
6481
      fi
 
6482
      break
 
6483
    fi
 
6484
  done
 
6485
  IFS="$lt_save_ifs"
 
6486
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
6487
  ;;
 
6488
esac
 
6489
fi
 
6490
 
 
6491
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
6492
if test -n "$MAGIC_CMD"; then
 
6493
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
6494
echo "${ECHO_T}$MAGIC_CMD" >&6
 
6495
else
 
6496
  echo "$as_me:$LINENO: result: no" >&5
 
6497
echo "${ECHO_T}no" >&6
 
6498
fi
 
6499
 
 
6500
  else
 
6501
    MAGIC_CMD=:
 
6502
  fi
 
6503
fi
 
6504
 
 
6505
  fi
 
6506
  ;;
 
6507
esac
 
6508
 
 
6509
enable_dlopen=no
 
6510
enable_win32_dll=yes
 
6511
 
 
6512
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
 
6513
if test "${enable_libtool_lock+set}" = set; then
 
6514
  enableval="$enable_libtool_lock"
 
6515
 
 
6516
fi;
 
6517
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4957
6518
 
4958
6519
 
4959
6520
# Check whether --with-pic or --without-pic was given.
4965
6526
fi;
4966
6527
test -z "$pic_mode" && pic_mode=default
4967
6528
 
4968
 
# We assume here that the value for lt_cv_prog_cc_pic will not be cached
4969
 
# in isolation, and that seeing it set (from the cache) indicates that
4970
 
# the associated values are set (in the cache) correctly too.
4971
 
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
4972
 
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
4973
 
if test "${lt_cv_prog_cc_pic+set}" = set; then
4974
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4975
 
else
4976
 
   lt_cv_prog_cc_pic=
4977
 
  lt_cv_prog_cc_shlib=
4978
 
  lt_cv_prog_cc_wl=
4979
 
  lt_cv_prog_cc_static=
4980
 
  lt_cv_prog_cc_no_builtin=
4981
 
  lt_cv_prog_cc_can_build_shared=$can_build_shared
4982
 
 
4983
 
  if test "$GCC" = yes; then
4984
 
    lt_cv_prog_cc_wl='-Wl,'
4985
 
    lt_cv_prog_cc_static='-static'
4986
 
 
4987
 
    case $host_os in
4988
 
    aix*)
4989
 
      # Below there is a dirty hack to force normal static linking with -ldl
4990
 
      # The problem is because libdl dynamically linked with both libc and
4991
 
      # libC (AIX C++ library), which obviously doesn't included in libraries
4992
 
      # list by gcc. This cause undefined symbols with -static flags.
4993
 
      # This hack allows C programs to be linked with "-static -ldl", but
4994
 
      # not sure about C++ programs.
4995
 
      lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
4996
 
      ;;
4997
 
    amigaos*)
4998
 
      # FIXME: we need at least 68020 code to build shared libraries, but
4999
 
      # adding the `-m68020' flag to GCC prevents building anything better,
5000
 
      # like `-m68040'.
5001
 
      lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5002
 
      ;;
5003
 
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5004
 
      # PIC is the default for these OSes.
5005
 
      ;;
5006
 
    darwin* | rhapsody*)
5007
 
      # PIC is the default on this platform
5008
 
      # Common symbols not allowed in MH_DYLIB files
5009
 
      lt_cv_prog_cc_pic='-fno-common'
5010
 
      ;;
5011
 
    cygwin* | mingw* | pw32* | os2*)
5012
 
      # This hack is so that the source file can tell whether it is being
5013
 
      # built for inclusion in a dll (and should export symbols for example).
5014
 
      lt_cv_prog_cc_pic='-DDLL_EXPORT'
5015
 
      ;;
5016
 
    sysv4*MP*)
5017
 
      if test -d /usr/nec; then
5018
 
         lt_cv_prog_cc_pic=-Kconform_pic
5019
 
      fi
5020
 
      ;;
5021
 
    *)
5022
 
      lt_cv_prog_cc_pic='-fPIC'
5023
 
      ;;
5024
 
    esac
5025
 
  else
5026
 
    # PORTME Check for PIC flags for the system compiler.
5027
 
    case $host_os in
5028
 
    aix3* | aix4* | aix5*)
5029
 
      lt_cv_prog_cc_wl='-Wl,'
5030
 
      # All AIX code is PIC.
5031
 
      if test "$host_cpu" = ia64; then
5032
 
        # AIX 5 now supports IA64 processor
5033
 
        lt_cv_prog_cc_static='-Bstatic'
5034
 
      else
5035
 
        lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5036
 
      fi
5037
 
      ;;
5038
 
 
5039
 
    hpux9* | hpux10* | hpux11*)
5040
 
      # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5041
 
      lt_cv_prog_cc_wl='-Wl,'
5042
 
      lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5043
 
      lt_cv_prog_cc_pic='+Z'
5044
 
      ;;
5045
 
 
5046
 
    irix5* | irix6* | nonstopux*)
5047
 
      lt_cv_prog_cc_wl='-Wl,'
5048
 
      lt_cv_prog_cc_static='-non_shared'
5049
 
      # PIC (with -KPIC) is the default.
5050
 
      ;;
5051
 
 
5052
 
    cygwin* | mingw* | pw32* | os2*)
5053
 
      # This hack is so that the source file can tell whether it is being
5054
 
      # built for inclusion in a dll (and should export symbols for example).
5055
 
      lt_cv_prog_cc_pic='-DDLL_EXPORT'
5056
 
      ;;
5057
 
 
5058
 
    newsos6)
5059
 
      lt_cv_prog_cc_pic='-KPIC'
5060
 
      lt_cv_prog_cc_static='-Bstatic'
5061
 
      ;;
5062
 
 
5063
 
    osf3* | osf4* | osf5*)
5064
 
      # All OSF/1 code is PIC.
5065
 
      lt_cv_prog_cc_wl='-Wl,'
5066
 
      lt_cv_prog_cc_static='-non_shared'
5067
 
      ;;
5068
 
 
5069
 
    sco3.2v5*)
5070
 
      lt_cv_prog_cc_pic='-Kpic'
5071
 
      lt_cv_prog_cc_static='-dn'
5072
 
      lt_cv_prog_cc_shlib='-belf'
5073
 
      ;;
5074
 
 
5075
 
    solaris*)
5076
 
      lt_cv_prog_cc_pic='-KPIC'
5077
 
      lt_cv_prog_cc_static='-Bstatic'
5078
 
      lt_cv_prog_cc_wl='-Wl,'
5079
 
      ;;
5080
 
 
5081
 
    sunos4*)
5082
 
      lt_cv_prog_cc_pic='-PIC'
5083
 
      lt_cv_prog_cc_static='-Bstatic'
5084
 
      lt_cv_prog_cc_wl='-Qoption ld '
5085
 
      ;;
5086
 
 
5087
 
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5088
 
      lt_cv_prog_cc_pic='-KPIC'
5089
 
      lt_cv_prog_cc_static='-Bstatic'
5090
 
      lt_cv_prog_cc_wl='-Wl,'
5091
 
      ;;
5092
 
 
5093
 
    uts4*)
5094
 
      lt_cv_prog_cc_pic='-pic'
5095
 
      lt_cv_prog_cc_static='-Bstatic'
5096
 
      ;;
5097
 
 
5098
 
    sysv4*MP*)
5099
 
      if test -d /usr/nec ;then
5100
 
        lt_cv_prog_cc_pic='-Kconform_pic'
5101
 
        lt_cv_prog_cc_static='-Bstatic'
5102
 
      fi
5103
 
      ;;
5104
 
 
5105
 
    *)
5106
 
      lt_cv_prog_cc_can_build_shared=no
5107
 
      ;;
5108
 
    esac
5109
 
  fi
5110
 
 
5111
 
fi
5112
 
 
5113
 
if test -z "$lt_cv_prog_cc_pic"; then
5114
 
  echo "$as_me:$LINENO: result: none" >&5
5115
 
echo "${ECHO_T}none" >&6
5116
 
else
5117
 
  echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
5118
 
echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
5119
 
 
5120
 
  # Check to make sure the pic_flag actually works.
5121
 
  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5122
 
echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
5123
 
  if test "${lt_cv_prog_cc_pic_works+set}" = set; then
5124
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5125
 
else
5126
 
      save_CFLAGS="$CFLAGS"
5127
 
    CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5128
 
    cat >conftest.$ac_ext <<_ACEOF
5129
 
#line $LINENO "configure"
5130
 
/* confdefs.h.  */
5131
 
_ACEOF
5132
 
cat confdefs.h >>conftest.$ac_ext
5133
 
cat >>conftest.$ac_ext <<_ACEOF
5134
 
/* end confdefs.h.  */
5135
 
 
5136
 
int
5137
 
main ()
5138
 
{
5139
 
 
5140
 
  ;
5141
 
  return 0;
5142
 
}
5143
 
_ACEOF
5144
 
rm -f conftest.$ac_objext
5145
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5146
 
  (eval $ac_compile) 2>&5
5147
 
  ac_status=$?
5148
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5149
 
  (exit $ac_status); } &&
5150
 
         { ac_try='test -s conftest.$ac_objext'
5151
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5152
 
  (eval $ac_try) 2>&5
5153
 
  ac_status=$?
5154
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5155
 
  (exit $ac_status); }; }; then
5156
 
        case $host_os in
5157
 
      hpux9* | hpux10* | hpux11*)
5158
 
        # On HP-UX, both CC and GCC only warn that PIC is supported... then
5159
 
        # they create non-PIC objects.  So, if there were any warnings, we
5160
 
        # assume that PIC is not supported.
5161
 
        if test -s conftest.err; then
5162
 
          lt_cv_prog_cc_pic_works=no
5163
 
        else
5164
 
          lt_cv_prog_cc_pic_works=yes
5165
 
        fi
5166
 
        ;;
5167
 
      *)
5168
 
        lt_cv_prog_cc_pic_works=yes
5169
 
        ;;
5170
 
      esac
5171
 
 
5172
 
else
5173
 
  echo "$as_me: failed program was:" >&5
5174
 
sed 's/^/| /' conftest.$ac_ext >&5
5175
 
 
5176
 
      lt_cv_prog_cc_pic_works=no
5177
 
 
5178
 
fi
5179
 
rm -f conftest.$ac_objext conftest.$ac_ext
5180
 
    CFLAGS="$save_CFLAGS"
5181
 
 
5182
 
fi
5183
 
 
5184
 
 
5185
 
  if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5186
 
    lt_cv_prog_cc_pic=
5187
 
    lt_cv_prog_cc_can_build_shared=no
5188
 
  else
5189
 
    lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5190
 
  fi
5191
 
 
5192
 
  echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
5193
 
echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
5194
 
fi
5195
 
 
 
6529
# Use C for the default configuration in the libtool script
 
6530
tagname=
 
6531
lt_save_CC="$CC"
 
6532
ac_ext=c
 
6533
ac_cpp='$CPP $CPPFLAGS'
 
6534
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6535
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6536
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6537
 
 
6538
 
 
6539
# Source file extension for C test sources.
 
6540
ac_ext=c
 
6541
 
 
6542
# Object file extension for compiled C test sources.
 
6543
objext=o
 
6544
objext=$objext
 
6545
 
 
6546
# Code to be used in simple compile tests
 
6547
lt_simple_compile_test_code="int some_variable = 0;\n"
 
6548
 
 
6549
# Code to be used in simple link tests
 
6550
lt_simple_link_test_code='int main(){return(0);}\n'
 
6551
 
 
6552
 
 
6553
# If no C compiler was specified, use CC.
 
6554
LTCC=${LTCC-"$CC"}
 
6555
 
 
6556
# Allow CC to be a program name with arguments.
 
6557
compiler=$CC
 
6558
 
 
6559
 
 
6560
#
5196
6561
# Check for any special shared library compilation flags.
5197
 
if test -n "$lt_cv_prog_cc_shlib"; then
5198
 
  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
5199
 
echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
5200
 
  if echo "$old_CC $old_CFLAGS " | egrep -e "[  ]$lt_cv_prog_cc_shlib[  ]" >/dev/null; then :
 
6562
#
 
6563
lt_prog_cc_shlib=
 
6564
if test "$GCC" = no; then
 
6565
  case $host_os in
 
6566
  sco3.2v5*)
 
6567
    lt_prog_cc_shlib='-belf'
 
6568
    ;;
 
6569
  esac
 
6570
fi
 
6571
if test -n "$lt_prog_cc_shlib"; then
 
6572
  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
 
6573
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
 
6574
  if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
5201
6575
  else
5202
 
   { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5203
 
echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
 
6576
    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
 
6577
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5204
6578
    lt_cv_prog_cc_can_build_shared=no
5205
6579
  fi
5206
6580
fi
5207
6581
 
5208
 
echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5209
 
echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
5210
 
if test "${lt_cv_prog_cc_static_works+set}" = set; then
5211
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5212
 
else
5213
 
    lt_cv_prog_cc_static_works=no
5214
 
  save_LDFLAGS="$LDFLAGS"
5215
 
  LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5216
 
  cat >conftest.$ac_ext <<_ACEOF
5217
 
#line $LINENO "configure"
5218
 
/* confdefs.h.  */
5219
 
_ACEOF
5220
 
cat confdefs.h >>conftest.$ac_ext
5221
 
cat >>conftest.$ac_ext <<_ACEOF
5222
 
/* end confdefs.h.  */
5223
 
 
5224
 
int
5225
 
main ()
5226
 
{
5227
 
 
5228
 
  ;
5229
 
  return 0;
5230
 
}
5231
 
_ACEOF
5232
 
rm -f conftest.$ac_objext conftest$ac_exeext
5233
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5234
 
  (eval $ac_link) 2>&5
5235
 
  ac_status=$?
5236
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5237
 
  (exit $ac_status); } &&
5238
 
         { ac_try='test -s conftest$ac_exeext'
5239
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5240
 
  (eval $ac_try) 2>&5
5241
 
  ac_status=$?
5242
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5243
 
  (exit $ac_status); }; }; then
5244
 
  lt_cv_prog_cc_static_works=yes
5245
 
else
5246
 
  echo "$as_me: failed program was:" >&5
5247
 
sed 's/^/| /' conftest.$ac_ext >&5
5248
 
 
5249
 
fi
5250
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5251
 
  LDFLAGS="$save_LDFLAGS"
5252
 
 
5253
 
fi
5254
 
 
5255
 
 
5256
 
# Belt *and* braces to stop my trousers falling down:
5257
 
test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5258
 
echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
5259
 
echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
5260
 
 
5261
 
pic_flag="$lt_cv_prog_cc_pic"
5262
 
special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5263
 
wl="$lt_cv_prog_cc_wl"
5264
 
link_static_flag="$lt_cv_prog_cc_static"
5265
 
no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5266
 
can_build_shared="$lt_cv_prog_cc_can_build_shared"
5267
 
 
5268
 
 
5269
 
# Check to see if options -o and -c are simultaneously supported by compiler
 
6582
 
 
6583
#
 
6584
# Check to make sure the static flag actually works.
 
6585
#
 
6586
echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
 
6587
echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
 
6588
if test "${lt_prog_compiler_static_works+set}" = set; then
 
6589
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6590
else
 
6591
  lt_prog_compiler_static_works=no
 
6592
   save_LDFLAGS="$LDFLAGS"
 
6593
   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
 
6594
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
6595
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
6596
     # The compiler can only warn and ignore the option if not recognized
 
6597
     # So say no if there are warnings
 
6598
     if test -s conftest.err; then
 
6599
       # Append any errors to the config.log.
 
6600
       cat conftest.err 1>&5
 
6601
     else
 
6602
       lt_prog_compiler_static_works=yes
 
6603
     fi
 
6604
   fi
 
6605
   $rm conftest*
 
6606
   LDFLAGS="$save_LDFLAGS"
 
6607
 
 
6608
fi
 
6609
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
 
6610
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
 
6611
 
 
6612
if test x"$lt_prog_compiler_static_works" = xyes; then
 
6613
    :
 
6614
else
 
6615
    lt_prog_compiler_static=
 
6616
fi
 
6617
 
 
6618
 
 
6619
 
 
6620
 
 
6621
lt_prog_compiler_no_builtin_flag=
 
6622
 
 
6623
if test "$GCC" = yes; then
 
6624
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
 
6625
 
 
6626
 
 
6627
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
6628
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
 
6629
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
6630
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6631
else
 
6632
  lt_cv_prog_compiler_rtti_exceptions=no
 
6633
  ac_outfile=conftest.$ac_objext
 
6634
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
6635
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
6636
   # Insert the option either (1) after the last *FLAGS variable, or
 
6637
   # (2) before a word containing "conftest.", or (3) at the end.
 
6638
   # Note that $ac_compile itself does not contain backslashes and begins
 
6639
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
6640
   # The option is referenced via a variable to avoid confusing sed.
 
6641
   lt_compile=`echo "$ac_compile" | $SED \
 
6642
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
6643
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
6644
   -e 's:$: $lt_compiler_flag:'`
 
6645
   (eval echo "\"\$as_me:6645: $lt_compile\"" >&5)
 
6646
   (eval "$lt_compile" 2>conftest.err)
 
6647
   ac_status=$?
 
6648
   cat conftest.err >&5
 
6649
   echo "$as_me:6649: \$? = $ac_status" >&5
 
6650
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
6651
     # The compiler can only warn and ignore the option if not recognized
 
6652
     # So say no if there are warnings
 
6653
     if test ! -s conftest.err; then
 
6654
       lt_cv_prog_compiler_rtti_exceptions=yes
 
6655
     fi
 
6656
   fi
 
6657
   $rm conftest*
 
6658
 
 
6659
fi
 
6660
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
6661
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
 
6662
 
 
6663
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
6664
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
 
6665
else
 
6666
    :
 
6667
fi
 
6668
 
 
6669
fi
 
6670
 
 
6671
lt_prog_compiler_wl=
 
6672
lt_prog_compiler_pic=
 
6673
lt_prog_compiler_static=
 
6674
 
 
6675
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
6676
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
6677
 
 
6678
  if test "$GCC" = yes; then
 
6679
    lt_prog_compiler_wl='-Wl,'
 
6680
    lt_prog_compiler_static='-static'
 
6681
 
 
6682
    case $host_os in
 
6683
      aix*)
 
6684
      # All AIX code is PIC.
 
6685
      if test "$host_cpu" = ia64; then
 
6686
        # AIX 5 now supports IA64 processor
 
6687
        lt_prog_compiler_static='-Bstatic'
 
6688
      fi
 
6689
      ;;
 
6690
 
 
6691
    amigaos*)
 
6692
      # FIXME: we need at least 68020 code to build shared libraries, but
 
6693
      # adding the `-m68020' flag to GCC prevents building anything better,
 
6694
      # like `-m68040'.
 
6695
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
6696
      ;;
 
6697
 
 
6698
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
6699
      # PIC is the default for these OSes.
 
6700
      ;;
 
6701
 
 
6702
    mingw* | pw32* | os2*)
 
6703
      # This hack is so that the source file can tell whether it is being
 
6704
      # built for inclusion in a dll (and should export symbols for example).
 
6705
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
6706
      ;;
 
6707
 
 
6708
    darwin* | rhapsody*)
 
6709
      # PIC is the default on this platform
 
6710
      # Common symbols not allowed in MH_DYLIB files
 
6711
      lt_prog_compiler_pic='-fno-common'
 
6712
      ;;
 
6713
 
 
6714
    msdosdjgpp*)
 
6715
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
6716
      # on systems that don't support them.
 
6717
      lt_prog_compiler_can_build_shared=no
 
6718
      enable_shared=no
 
6719
      ;;
 
6720
 
 
6721
    sysv4*MP*)
 
6722
      if test -d /usr/nec; then
 
6723
        lt_prog_compiler_pic=-Kconform_pic
 
6724
      fi
 
6725
      ;;
 
6726
 
 
6727
    hpux*)
 
6728
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
6729
      # not for PA HP-UX.
 
6730
      case "$host_cpu" in
 
6731
      hppa*64*|ia64*)
 
6732
        # +Z the default
 
6733
        ;;
 
6734
      *)
 
6735
        lt_prog_compiler_pic='-fPIC'
 
6736
        ;;
 
6737
      esac
 
6738
      ;;
 
6739
 
 
6740
    *)
 
6741
      lt_prog_compiler_pic='-fPIC'
 
6742
      ;;
 
6743
    esac
 
6744
  else
 
6745
    # PORTME Check for flag to pass linker flags through the system compiler.
 
6746
    case $host_os in
 
6747
    aix*)
 
6748
      lt_prog_compiler_wl='-Wl,'
 
6749
      if test "$host_cpu" = ia64; then
 
6750
        # AIX 5 now supports IA64 processor
 
6751
        lt_prog_compiler_static='-Bstatic'
 
6752
      else
 
6753
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
 
6754
      fi
 
6755
      ;;
 
6756
 
 
6757
    mingw* | pw32* | os2*)
 
6758
      # This hack is so that the source file can tell whether it is being
 
6759
      # built for inclusion in a dll (and should export symbols for example).
 
6760
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
6761
      ;;
 
6762
 
 
6763
    hpux9* | hpux10* | hpux11*)
 
6764
      lt_prog_compiler_wl='-Wl,'
 
6765
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
6766
      # not for PA HP-UX.
 
6767
      case "$host_cpu" in
 
6768
      hppa*64*|ia64*)
 
6769
        # +Z the default
 
6770
        ;;
 
6771
      *)
 
6772
        lt_prog_compiler_pic='+Z'
 
6773
        ;;
 
6774
      esac
 
6775
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
6776
      lt_prog_compiler_static='${wl}-a ${wl}archive'
 
6777
      ;;
 
6778
 
 
6779
    irix5* | irix6* | nonstopux*)
 
6780
      lt_prog_compiler_wl='-Wl,'
 
6781
      # PIC (with -KPIC) is the default.
 
6782
      lt_prog_compiler_static='-non_shared'
 
6783
      ;;
 
6784
 
 
6785
    newsos6)
 
6786
      lt_prog_compiler_pic='-KPIC'
 
6787
      lt_prog_compiler_static='-Bstatic'
 
6788
      ;;
 
6789
 
 
6790
    linux*)
 
6791
      case $CC in
 
6792
      icc* | ecc*)
 
6793
        lt_prog_compiler_wl='-Wl,'
 
6794
        lt_prog_compiler_pic='-KPIC'
 
6795
        lt_prog_compiler_static='-static'
 
6796
        ;;
 
6797
      ccc*)
 
6798
        lt_prog_compiler_wl='-Wl,'
 
6799
        # All Alpha code is PIC.
 
6800
        lt_prog_compiler_static='-non_shared'
 
6801
        ;;
 
6802
      esac
 
6803
      ;;
 
6804
 
 
6805
    osf3* | osf4* | osf5*)
 
6806
      lt_prog_compiler_wl='-Wl,'
 
6807
      # All OSF/1 code is PIC.
 
6808
      lt_prog_compiler_static='-non_shared'
 
6809
      ;;
 
6810
 
 
6811
    sco3.2v5*)
 
6812
      lt_prog_compiler_pic='-Kpic'
 
6813
      lt_prog_compiler_static='-dn'
 
6814
      ;;
 
6815
 
 
6816
    solaris*)
 
6817
      lt_prog_compiler_wl='-Wl,'
 
6818
      lt_prog_compiler_pic='-KPIC'
 
6819
      lt_prog_compiler_static='-Bstatic'
 
6820
      ;;
 
6821
 
 
6822
    sunos4*)
 
6823
      lt_prog_compiler_wl='-Qoption ld '
 
6824
      lt_prog_compiler_pic='-PIC'
 
6825
      lt_prog_compiler_static='-Bstatic'
 
6826
      ;;
 
6827
 
 
6828
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
6829
      lt_prog_compiler_wl='-Wl,'
 
6830
      lt_prog_compiler_pic='-KPIC'
 
6831
      lt_prog_compiler_static='-Bstatic'
 
6832
      ;;
 
6833
 
 
6834
    sysv4*MP*)
 
6835
      if test -d /usr/nec ;then
 
6836
        lt_prog_compiler_pic='-Kconform_pic'
 
6837
        lt_prog_compiler_static='-Bstatic'
 
6838
      fi
 
6839
      ;;
 
6840
 
 
6841
    uts4*)
 
6842
      lt_prog_compiler_pic='-pic'
 
6843
      lt_prog_compiler_static='-Bstatic'
 
6844
      ;;
 
6845
 
 
6846
    *)
 
6847
      lt_prog_compiler_can_build_shared=no
 
6848
      ;;
 
6849
    esac
 
6850
  fi
 
6851
 
 
6852
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
 
6853
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
 
6854
 
 
6855
#
 
6856
# Check to make sure the PIC flag actually works.
 
6857
#
 
6858
if test -n "$lt_prog_compiler_pic"; then
 
6859
 
 
6860
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
6861
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
 
6862
if test "${lt_prog_compiler_pic_works+set}" = set; then
 
6863
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6864
else
 
6865
  lt_prog_compiler_pic_works=no
 
6866
  ac_outfile=conftest.$ac_objext
 
6867
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
6868
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
 
6869
   # Insert the option either (1) after the last *FLAGS variable, or
 
6870
   # (2) before a word containing "conftest.", or (3) at the end.
 
6871
   # Note that $ac_compile itself does not contain backslashes and begins
 
6872
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
6873
   # The option is referenced via a variable to avoid confusing sed.
 
6874
   lt_compile=`echo "$ac_compile" | $SED \
 
6875
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
6876
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
6877
   -e 's:$: $lt_compiler_flag:'`
 
6878
   (eval echo "\"\$as_me:6878: $lt_compile\"" >&5)
 
6879
   (eval "$lt_compile" 2>conftest.err)
 
6880
   ac_status=$?
 
6881
   cat conftest.err >&5
 
6882
   echo "$as_me:6882: \$? = $ac_status" >&5
 
6883
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
6884
     # The compiler can only warn and ignore the option if not recognized
 
6885
     # So say no if there are warnings
 
6886
     if test ! -s conftest.err; then
 
6887
       lt_prog_compiler_pic_works=yes
 
6888
     fi
 
6889
   fi
 
6890
   $rm conftest*
 
6891
 
 
6892
fi
 
6893
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
 
6894
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
 
6895
 
 
6896
if test x"$lt_prog_compiler_pic_works" = xyes; then
 
6897
    case $lt_prog_compiler_pic in
 
6898
     "" | " "*) ;;
 
6899
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
 
6900
     esac
 
6901
else
 
6902
    lt_prog_compiler_pic=
 
6903
     lt_prog_compiler_can_build_shared=no
 
6904
fi
 
6905
 
 
6906
fi
 
6907
case "$host_os" in
 
6908
  # For platforms which do not support PIC, -DPIC is meaningless:
 
6909
  *djgpp*)
 
6910
    lt_prog_compiler_pic=
 
6911
    ;;
 
6912
  *)
 
6913
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
6914
    ;;
 
6915
esac
 
6916
 
5270
6917
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5271
6918
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5272
 
if test "${lt_cv_compiler_c_o+set}" = set; then
5273
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5274
 
else
5275
 
 
5276
 
$rm -r conftest 2>/dev/null
5277
 
mkdir conftest
5278
 
cd conftest
5279
 
echo "int some_variable = 0;" > conftest.$ac_ext
5280
 
mkdir out
5281
 
# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5282
 
# that will create temporary files in the current directory regardless of
5283
 
# the output directory.  Thus, making CWD read-only will cause this test
5284
 
# to fail, enabling locking or at least warning the user not to do parallel
5285
 
# builds.
5286
 
chmod -w .
5287
 
save_CFLAGS="$CFLAGS"
5288
 
CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5289
 
compiler_c_o=no
5290
 
if { (eval echo configure:5290: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5291
 
  # The compiler can only warn and ignore the option if not recognized
5292
 
  # So say no if there are warnings
5293
 
  if test -s out/conftest.err; then
5294
 
    lt_cv_compiler_c_o=no
5295
 
  else
5296
 
    lt_cv_compiler_c_o=yes
5297
 
  fi
5298
 
else
5299
 
  # Append any errors to the config.log.
5300
 
  cat out/conftest.err 1>&5
5301
 
  lt_cv_compiler_c_o=no
5302
 
fi
5303
 
CFLAGS="$save_CFLAGS"
5304
 
chmod u+w .
5305
 
$rm conftest* out/*
5306
 
rmdir out
5307
 
cd ..
5308
 
rmdir conftest
5309
 
$rm -r conftest 2>/dev/null
5310
 
 
5311
 
fi
5312
 
 
5313
 
compiler_c_o=$lt_cv_compiler_c_o
5314
 
echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5315
 
echo "${ECHO_T}$compiler_c_o" >&6
5316
 
 
5317
 
if test x"$compiler_c_o" = x"yes"; then
5318
 
  # Check to see if we can write to a .lo
5319
 
  echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
5320
 
echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
5321
 
  if test "${lt_cv_compiler_o_lo+set}" = set; then
5322
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5323
 
else
5324
 
 
5325
 
  lt_cv_compiler_o_lo=no
5326
 
  save_CFLAGS="$CFLAGS"
5327
 
  CFLAGS="$CFLAGS -c -o conftest.lo"
5328
 
  save_objext="$ac_objext"
5329
 
  ac_objext=lo
5330
 
  cat >conftest.$ac_ext <<_ACEOF
5331
 
#line $LINENO "configure"
5332
 
/* confdefs.h.  */
5333
 
_ACEOF
5334
 
cat confdefs.h >>conftest.$ac_ext
5335
 
cat >>conftest.$ac_ext <<_ACEOF
5336
 
/* end confdefs.h.  */
5337
 
 
5338
 
int
5339
 
main ()
5340
 
{
5341
 
int some_variable = 0;
5342
 
  ;
5343
 
  return 0;
5344
 
}
5345
 
_ACEOF
5346
 
rm -f conftest.$ac_objext
5347
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5348
 
  (eval $ac_compile) 2>&5
5349
 
  ac_status=$?
5350
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5351
 
  (exit $ac_status); } &&
5352
 
         { ac_try='test -s conftest.$ac_objext'
5353
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5354
 
  (eval $ac_try) 2>&5
5355
 
  ac_status=$?
5356
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5357
 
  (exit $ac_status); }; }; then
5358
 
      # The compiler can only warn and ignore the option if not recognized
5359
 
    # So say no if there are warnings
5360
 
    if test -s conftest.err; then
5361
 
      lt_cv_compiler_o_lo=no
5362
 
    else
5363
 
      lt_cv_compiler_o_lo=yes
5364
 
    fi
5365
 
 
5366
 
else
5367
 
  echo "$as_me: failed program was:" >&5
5368
 
sed 's/^/| /' conftest.$ac_ext >&5
5369
 
 
5370
 
fi
5371
 
rm -f conftest.$ac_objext conftest.$ac_ext
5372
 
  ac_objext="$save_objext"
5373
 
  CFLAGS="$save_CFLAGS"
5374
 
 
5375
 
fi
5376
 
 
5377
 
  compiler_o_lo=$lt_cv_compiler_o_lo
5378
 
  echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
5379
 
echo "${ECHO_T}$compiler_o_lo" >&6
5380
 
else
5381
 
  compiler_o_lo=no
5382
 
fi
5383
 
 
5384
 
# Check to see if we can do hard links to lock some files if needed
 
6919
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
 
6920
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6921
else
 
6922
  lt_cv_prog_compiler_c_o=no
 
6923
   $rm -r conftest 2>/dev/null
 
6924
   mkdir conftest
 
6925
   cd conftest
 
6926
   mkdir out
 
6927
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
6928
 
 
6929
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
6930
   # Insert the option either (1) after the last *FLAGS variable, or
 
6931
   # (2) before a word containing "conftest.", or (3) at the end.
 
6932
   # Note that $ac_compile itself does not contain backslashes and begins
 
6933
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
6934
   lt_compile=`echo "$ac_compile" | $SED \
 
6935
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
6936
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
6937
   -e 's:$: $lt_compiler_flag:'`
 
6938
   (eval echo "\"\$as_me:6938: $lt_compile\"" >&5)
 
6939
   (eval "$lt_compile" 2>out/conftest.err)
 
6940
   ac_status=$?
 
6941
   cat out/conftest.err >&5
 
6942
   echo "$as_me:6942: \$? = $ac_status" >&5
 
6943
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
6944
   then
 
6945
     # The compiler can only warn and ignore the option if not recognized
 
6946
     # So say no if there are warnings
 
6947
     if test ! -s out/conftest.err; then
 
6948
       lt_cv_prog_compiler_c_o=yes
 
6949
     fi
 
6950
   fi
 
6951
   chmod u+w .
 
6952
   $rm conftest*
 
6953
   # SGI C++ compiler will create directory out/ii_files/ for
 
6954
   # template instantiation
 
6955
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
6956
   $rm out/* && rmdir out
 
6957
   cd ..
 
6958
   rmdir conftest
 
6959
   $rm conftest*
 
6960
 
 
6961
fi
 
6962
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
6963
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
 
6964
 
 
6965
 
5385
6966
hard_links="nottested"
5386
 
if test "$compiler_c_o" = no && test "$need_locks" != no; then
 
6967
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
5387
6968
  # do not overwrite the value of need_locks provided by the user
5388
6969
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5389
6970
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5404
6985
  need_locks=no
5405
6986
fi
5406
6987
 
5407
 
if test "$GCC" = yes; then
5408
 
  # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5409
 
  echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5410
 
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5411
 
  echo "int some_variable = 0;" > conftest.$ac_ext
5412
 
  save_CFLAGS="$CFLAGS"
5413
 
  CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5414
 
  compiler_rtti_exceptions=no
5415
 
  cat >conftest.$ac_ext <<_ACEOF
5416
 
#line $LINENO "configure"
5417
 
/* confdefs.h.  */
5418
 
_ACEOF
5419
 
cat confdefs.h >>conftest.$ac_ext
5420
 
cat >>conftest.$ac_ext <<_ACEOF
5421
 
/* end confdefs.h.  */
5422
 
 
5423
 
int
5424
 
main ()
5425
 
{
5426
 
int some_variable = 0;
5427
 
  ;
5428
 
  return 0;
5429
 
}
5430
 
_ACEOF
5431
 
rm -f conftest.$ac_objext
5432
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5433
 
  (eval $ac_compile) 2>&5
5434
 
  ac_status=$?
5435
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5436
 
  (exit $ac_status); } &&
5437
 
         { ac_try='test -s conftest.$ac_objext'
5438
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5439
 
  (eval $ac_try) 2>&5
5440
 
  ac_status=$?
5441
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5442
 
  (exit $ac_status); }; }; then
5443
 
      # The compiler can only warn and ignore the option if not recognized
5444
 
    # So say no if there are warnings
5445
 
    if test -s conftest.err; then
5446
 
      compiler_rtti_exceptions=no
5447
 
    else
5448
 
      compiler_rtti_exceptions=yes
 
6988
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
6989
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
6990
 
 
6991
  runpath_var=
 
6992
  allow_undefined_flag=
 
6993
  enable_shared_with_static_runtimes=no
 
6994
  archive_cmds=
 
6995
  archive_expsym_cmds=
 
6996
  old_archive_From_new_cmds=
 
6997
  old_archive_from_expsyms_cmds=
 
6998
  export_dynamic_flag_spec=
 
6999
  whole_archive_flag_spec=
 
7000
  thread_safe_flag_spec=
 
7001
  hardcode_libdir_flag_spec=
 
7002
  hardcode_libdir_flag_spec_ld=
 
7003
  hardcode_libdir_separator=
 
7004
  hardcode_direct=no
 
7005
  hardcode_minus_L=no
 
7006
  hardcode_shlibpath_var=unsupported
 
7007
  link_all_deplibs=unknown
 
7008
  hardcode_automatic=no
 
7009
  module_cmds=
 
7010
  module_expsym_cmds=
 
7011
  always_export_symbols=no
 
7012
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
7013
  # include_expsyms should be a list of space-separated symbols to be *always*
 
7014
  # included in the symbol list
 
7015
  include_expsyms=
 
7016
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
7017
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
7018
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
7019
  # as well as any symbol that contains `d'.
 
7020
  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
 
7021
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
7022
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
7023
  # the symbol is explicitly referenced.  Since portable code cannot
 
7024
  # rely on this symbol name, it's probably fine to never include it in
 
7025
  # preloaded symbol tables.
 
7026
  extract_expsyms_cmds=
 
7027
 
 
7028
  case $host_os in
 
7029
  cygwin* | mingw* | pw32*)
 
7030
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
7031
    # When not using gcc, we currently assume that we are using
 
7032
    # Microsoft Visual C++.
 
7033
    if test "$GCC" != yes; then
 
7034
      with_gnu_ld=no
5449
7035
    fi
5450
 
 
5451
 
else
5452
 
  echo "$as_me: failed program was:" >&5
5453
 
sed 's/^/| /' conftest.$ac_ext >&5
5454
 
 
5455
 
fi
5456
 
rm -f conftest.$ac_objext conftest.$ac_ext
5457
 
  CFLAGS="$save_CFLAGS"
5458
 
  echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5459
 
echo "${ECHO_T}$compiler_rtti_exceptions" >&6
5460
 
 
5461
 
  if test "$compiler_rtti_exceptions" = "yes"; then
5462
 
    no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5463
 
  else
5464
 
    no_builtin_flag=' -fno-builtin'
5465
 
  fi
5466
 
fi
5467
 
 
5468
 
# See if the linker supports building shared libraries.
5469
 
echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5470
 
echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5471
 
 
5472
 
allow_undefined_flag=
5473
 
no_undefined_flag=
5474
 
need_lib_prefix=unknown
5475
 
need_version=unknown
5476
 
# when you set need_version to no, make sure it does not cause -set_version
5477
 
# flags to be left without arguments
5478
 
archive_cmds=
5479
 
archive_expsym_cmds=
5480
 
old_archive_from_new_cmds=
5481
 
old_archive_from_expsyms_cmds=
5482
 
export_dynamic_flag_spec=
5483
 
whole_archive_flag_spec=
5484
 
thread_safe_flag_spec=
5485
 
hardcode_into_libs=no
5486
 
hardcode_libdir_flag_spec=
5487
 
hardcode_libdir_separator=
5488
 
hardcode_direct=no
5489
 
hardcode_minus_L=no
5490
 
hardcode_shlibpath_var=unsupported
5491
 
runpath_var=
5492
 
link_all_deplibs=unknown
5493
 
always_export_symbols=no
5494
 
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5495
 
# include_expsyms should be a list of space-separated symbols to be *always*
5496
 
# included in the symbol list
5497
 
include_expsyms=
5498
 
# exclude_expsyms can be an egrep regular expression of symbols to exclude
5499
 
# it will be wrapped by ` (' and `)$', so one must not match beginning or
5500
 
# end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5501
 
# as well as any symbol that contains `d'.
5502
 
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5503
 
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5504
 
# platforms (ab)use it in PIC code, but their linkers get confused if
5505
 
# the symbol is explicitly referenced.  Since portable code cannot
5506
 
# rely on this symbol name, it's probably fine to never include it in
5507
 
# preloaded symbol tables.
5508
 
extract_expsyms_cmds=
5509
 
 
5510
 
case $host_os in
5511
 
cygwin* | mingw* | pw32*)
5512
 
  # FIXME: the MSVC++ port hasn't been tested in a loooong time
5513
 
  # When not using gcc, we currently assume that we are using
5514
 
  # Microsoft Visual C++.
5515
 
  if test "$GCC" != yes; then
 
7036
    ;;
 
7037
  openbsd*)
5516
7038
    with_gnu_ld=no
5517
 
  fi
5518
 
  ;;
5519
 
openbsd*)
5520
 
  with_gnu_ld=no
5521
 
  ;;
5522
 
esac
5523
 
 
5524
 
ld_shlibs=yes
5525
 
if test "$with_gnu_ld" = yes; then
5526
 
  # If archive_cmds runs LD, not CC, wlarc should be empty
5527
 
  wlarc='${wl}'
5528
 
 
5529
 
  # See if GNU ld supports shared libraries.
5530
 
  case $host_os in
5531
 
  aix3* | aix4* | aix5*)
5532
 
    # On AIX, the GNU linker is very broken
5533
 
    # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5534
 
    ld_shlibs=no
5535
 
    cat <<EOF 1>&2
 
7039
    ;;
 
7040
  esac
 
7041
 
 
7042
  ld_shlibs=yes
 
7043
  if test "$with_gnu_ld" = yes; then
 
7044
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
7045
    wlarc='${wl}'
 
7046
 
 
7047
    # See if GNU ld supports shared libraries.
 
7048
    case $host_os in
 
7049
    aix3* | aix4* | aix5*)
 
7050
      # On AIX/PPC, the GNU linker is very broken
 
7051
      if test "$host_cpu" != ia64; then
 
7052
        ld_shlibs=no
 
7053
        cat <<EOF 1>&2
5536
7054
 
5537
7055
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
5538
7056
*** to be unable to reliably create shared libraries on AIX.
5541
7059
*** so that a non-GNU linker is found, and then restart.
5542
7060
 
5543
7061
EOF
5544
 
    ;;
5545
 
 
5546
 
  amigaos*)
5547
 
    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)'
5548
 
    hardcode_libdir_flag_spec='-L$libdir'
5549
 
    hardcode_minus_L=yes
5550
 
 
5551
 
    # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5552
 
    # that the semantics of dynamic libraries on AmigaOS, at least up
5553
 
    # to version 4, is to share data among multiple programs linked
5554
 
    # with the same dynamic library.  Since this doesn't match the
5555
 
    # behavior of shared libraries on other platforms, we can use
5556
 
    # them.
5557
 
    ld_shlibs=no
5558
 
    ;;
5559
 
 
5560
 
  beos*)
5561
 
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
 
7062
      fi
 
7063
      ;;
 
7064
 
 
7065
    amigaos*)
 
7066
      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)'
 
7067
      hardcode_libdir_flag_spec='-L$libdir'
 
7068
      hardcode_minus_L=yes
 
7069
 
 
7070
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
7071
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
7072
      # to version 4, is to share data among multiple programs linked
 
7073
      # with the same dynamic library.  Since this doesn't match the
 
7074
      # behavior of shared libraries on other platforms, we can't use
 
7075
      # them.
 
7076
      ld_shlibs=no
 
7077
      ;;
 
7078
 
 
7079
    beos*)
 
7080
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7081
        allow_undefined_flag=unsupported
 
7082
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
7083
        # support --undefined.  This deserves some investigation.  FIXME
 
7084
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7085
      else
 
7086
        ld_shlibs=no
 
7087
      fi
 
7088
      ;;
 
7089
 
 
7090
    cygwin* | mingw* | pw32*)
 
7091
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
7092
      # as there is no search path for DLLs.
 
7093
      hardcode_libdir_flag_spec='-L$libdir'
5562
7094
      allow_undefined_flag=unsupported
5563
 
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5564
 
      # support --undefined.  This deserves some investigation.  FIXME
5565
 
      archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5566
 
    else
5567
 
      ld_shlibs=no
5568
 
    fi
5569
 
    ;;
5570
 
 
5571
 
  cygwin* | mingw* | pw32*)
5572
 
    # hardcode_libdir_flag_spec is actually meaningless, as there is
5573
 
    # no search path for DLLs.
5574
 
    hardcode_libdir_flag_spec='-L$libdir'
5575
 
    allow_undefined_flag=unsupported
5576
 
    always_export_symbols=yes
5577
 
 
5578
 
    extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5579
 
      sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5580
 
      test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5581
 
      if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5582
 
      else $CC -o impgen impgen.c ; fi)~
5583
 
      $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5584
 
 
5585
 
    old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5586
 
 
5587
 
    # cygwin and mingw dlls have different entry points and sets of symbols
5588
 
    # to exclude.
5589
 
    # FIXME: what about values for MSVC?
5590
 
    dll_entry=__cygwin_dll_entry@12
5591
 
    dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5592
 
    case $host_os in
5593
 
    mingw*)
5594
 
      # mingw values
5595
 
      dll_entry=_DllMainCRTStartup@12
5596
 
      dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5597
 
      ;;
5598
 
    esac
5599
 
 
5600
 
    # mingw and cygwin differ, and it's simplest to just exclude the union
5601
 
    # of the two symbol sets.
5602
 
    dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5603
 
 
5604
 
    # recent cygwin and mingw systems supply a stub DllMain which the user
5605
 
    # can override, but on older systems we have to supply one (in ltdll.c)
5606
 
    if test "x$lt_cv_need_dllmain" = "xyes"; then
5607
 
      ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5608
 
      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~
5609
 
        test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5610
 
    else
5611
 
      ltdll_obj=
5612
 
      ltdll_cmds=
5613
 
    fi
5614
 
 
5615
 
    # Extract the symbol export list from an `--export-all' def file,
5616
 
    # then regenerate the def file from the symbol export list, so that
5617
 
    # the compiled dll only exports the symbol export list.
5618
 
    # Be careful not to strip the DATA tag left be newer dlltools.
5619
 
    export_symbols_cmds="$ltdll_cmds"'
5620
 
      $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5621
 
      sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5622
 
 
5623
 
    # If the export-symbols file already is a .def file (1st line
5624
 
    # is EXPORTS), use it as is.
5625
 
    # If DATA tags from a recent dlltool are present, honour them!
5626
 
    archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
5627
 
        cp $export_symbols $output_objdir/$soname-def;
5628
 
      else
5629
 
        echo EXPORTS > $output_objdir/$soname-def;
5630
 
        _lt_hint=1;
5631
 
        cat $export_symbols | while read symbol; do
5632
 
         set dummy \$symbol;
5633
 
         case \$# in
5634
 
           2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5635
 
           4) echo "   \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
5636
 
           *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5637
 
         esac;
5638
 
         _lt_hint=`expr 1 + \$_lt_hint`;
5639
 
        done;
5640
 
      fi~
5641
 
      '"$ltdll_cmds"'
5642
 
      $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~
5643
 
      $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~
5644
 
      $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~
5645
 
      $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~
5646
 
      $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5647
 
    ;;
5648
 
 
5649
 
  netbsd*)
5650
 
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5651
 
      archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5652
 
      wlarc=
5653
 
    else
5654
 
      archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5655
 
      archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5656
 
    fi
5657
 
    ;;
5658
 
 
5659
 
  solaris* | sysv5*)
5660
 
    if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5661
 
      ld_shlibs=no
5662
 
      cat <<EOF 1>&2
 
7095
      always_export_symbols=no
 
7096
      enable_shared_with_static_runtimes=yes
 
7097
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
7098
 
 
7099
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
7100
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
7101
        # If the export-symbols file already is a .def file (1st line
 
7102
        # is EXPORTS), use it as is; otherwise, prepend...
 
7103
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
7104
          cp $export_symbols $output_objdir/$soname.def;
 
7105
        else
 
7106
          echo EXPORTS > $output_objdir/$soname.def;
 
7107
          cat $export_symbols >> $output_objdir/$soname.def;
 
7108
        fi~
 
7109
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
7110
      else
 
7111
        ld_shlibs=no
 
7112
      fi
 
7113
      ;;
 
7114
 
 
7115
    netbsd*)
 
7116
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
7117
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
7118
        wlarc=
 
7119
      else
 
7120
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7121
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
7122
      fi
 
7123
      ;;
 
7124
 
 
7125
    solaris* | sysv5*)
 
7126
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
7127
        ld_shlibs=no
 
7128
        cat <<EOF 1>&2
5663
7129
 
5664
7130
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
5665
7131
*** create shared libraries on Solaris systems.  Therefore, libtool
5669
7135
*** used, and then restart.
5670
7136
 
5671
7137
EOF
5672
 
    elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5673
 
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5674
 
      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5675
 
    else
5676
 
      ld_shlibs=no
5677
 
    fi
5678
 
    ;;
5679
 
 
5680
 
  sunos4*)
5681
 
    archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5682
 
    wlarc=
5683
 
    hardcode_direct=yes
5684
 
    hardcode_shlibpath_var=no
5685
 
    ;;
5686
 
 
5687
 
  *)
5688
 
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5689
 
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5690
 
      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5691
 
    else
5692
 
      ld_shlibs=no
5693
 
    fi
5694
 
    ;;
5695
 
  esac
5696
 
 
5697
 
  if test "$ld_shlibs" = yes; then
5698
 
    runpath_var=LD_RUN_PATH
5699
 
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5700
 
    export_dynamic_flag_spec='${wl}--export-dynamic'
5701
 
    case $host_os in
5702
 
    cygwin* | mingw* | pw32*)
5703
 
      # dlltool doesn't understand --whole-archive et. al.
5704
 
      whole_archive_flag_spec=
5705
 
      ;;
 
7138
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7139
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7140
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
7141
      else
 
7142
        ld_shlibs=no
 
7143
      fi
 
7144
      ;;
 
7145
 
 
7146
    sunos4*)
 
7147
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
7148
      wlarc=
 
7149
      hardcode_direct=yes
 
7150
      hardcode_shlibpath_var=no
 
7151
      ;;
 
7152
 
 
7153
  linux*)
 
7154
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7155
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7156
        archive_cmds="$tmp_archive_cmds"
 
7157
      supports_anon_versioning=no
 
7158
      case `$LD -v 2>/dev/null` in
 
7159
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
7160
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
7161
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
7162
        *\ 2.11.*) ;; # other 2.11 versions
 
7163
        *) supports_anon_versioning=yes ;;
 
7164
      esac
 
7165
      if test $supports_anon_versioning = yes; then
 
7166
        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
 
7167
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
7168
$echo "local: *; };" >> $output_objdir/$libname.ver~
 
7169
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
7170
      else
 
7171
        archive_expsym_cmds="$tmp_archive_cmds"
 
7172
      fi
 
7173
    else
 
7174
      ld_shlibs=no
 
7175
    fi
 
7176
    ;;
 
7177
 
5706
7178
    *)
 
7179
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7180
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7181
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
7182
      else
 
7183
        ld_shlibs=no
 
7184
      fi
 
7185
      ;;
 
7186
    esac
 
7187
 
 
7188
    if test "$ld_shlibs" = yes; then
 
7189
      runpath_var=LD_RUN_PATH
 
7190
      hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
 
7191
      export_dynamic_flag_spec='${wl}--export-dynamic'
5707
7192
      # ancient GNU ld didn't support --whole-archive et. al.
5708
 
      if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5709
 
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
7193
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
7194
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5710
7195
      else
5711
 
        whole_archive_flag_spec=
 
7196
        whole_archive_flag_spec=
5712
7197
      fi
5713
 
      ;;
5714
 
    esac
5715
 
  fi
5716
 
else
5717
 
  # PORTME fill in a description of your system's linker (not GNU ld)
5718
 
  case $host_os in
5719
 
  aix3*)
5720
 
    allow_undefined_flag=unsupported
5721
 
    always_export_symbols=yes
5722
 
    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'
5723
 
    # Note: this linker hardcodes the directories in LIBPATH if there
5724
 
    # are no directories specified by -L.
5725
 
    hardcode_minus_L=yes
5726
 
    if test "$GCC" = yes && test -z "$link_static_flag"; then
5727
 
      # Neither direct hardcoding nor static linking is supported with a
5728
 
      # broken collect2.
5729
 
      hardcode_direct=unsupported
5730
7198
    fi
5731
 
    ;;
5732
 
 
5733
 
  aix4* | aix5*)
5734
 
    if test "$host_cpu" = ia64; then
5735
 
      # On IA64, the linker does run time linking by default, so we don't
5736
 
      # have to do anything special.
5737
 
      aix_use_runtimelinking=no
5738
 
      exp_sym_flag='-Bexport'
5739
 
      no_entry_flag=""
 
7199
  else
 
7200
    # PORTME fill in a description of your system's linker (not GNU ld)
 
7201
    case $host_os in
 
7202
    aix3*)
 
7203
      allow_undefined_flag=unsupported
 
7204
      always_export_symbols=yes
 
7205
      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'
 
7206
      # Note: this linker hardcodes the directories in LIBPATH if there
 
7207
      # are no directories specified by -L.
 
7208
      hardcode_minus_L=yes
 
7209
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
7210
        # Neither direct hardcoding nor static linking is supported with a
 
7211
        # broken collect2.
 
7212
        hardcode_direct=unsupported
 
7213
      fi
 
7214
      ;;
 
7215
 
 
7216
    aix4* | aix5*)
 
7217
      if test "$host_cpu" = ia64; then
 
7218
        # On IA64, the linker does run time linking by default, so we don't
 
7219
        # have to do anything special.
 
7220
        aix_use_runtimelinking=no
 
7221
        exp_sym_flag='-Bexport'
 
7222
        no_entry_flag=""
 
7223
      else
 
7224
        # If we're using GNU nm, then we don't want the "-C" option.
 
7225
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
7226
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
7227
          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'
 
7228
        else
 
7229
          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'
 
7230
        fi
 
7231
        aix_use_runtimelinking=no
 
7232
 
 
7233
        # Test if we are trying to use run time linking or normal
 
7234
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
7235
        # need to do runtime linking.
 
7236
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
7237
          for ld_flag in $LDFLAGS; do
 
7238
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
7239
            aix_use_runtimelinking=yes
 
7240
            break
 
7241
          fi
 
7242
          done
 
7243
        esac
 
7244
 
 
7245
        exp_sym_flag='-bexport'
 
7246
        no_entry_flag='-bnoentry'
 
7247
      fi
 
7248
 
 
7249
      # When large executables or shared objects are built, AIX ld can
 
7250
      # have problems creating the table of contents.  If linking a library
 
7251
      # or program results in "error TOC overflow" add -mminimal-toc to
 
7252
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
7253
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
7254
 
 
7255
      archive_cmds=''
 
7256
      hardcode_direct=yes
 
7257
      hardcode_libdir_separator=':'
 
7258
      link_all_deplibs=yes
 
7259
 
 
7260
      if test "$GCC" = yes; then
 
7261
        case $host_os in aix4.012|aix4.012.*)
 
7262
        # We only want to do this on AIX 4.2 and lower, the check
 
7263
        # below for broken collect2 doesn't work under 4.3+
 
7264
          collect2name=`${CC} -print-prog-name=collect2`
 
7265
          if test -f "$collect2name" && \
 
7266
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
7267
          then
 
7268
          # We have reworked collect2
 
7269
          hardcode_direct=yes
 
7270
          else
 
7271
          # We have old collect2
 
7272
          hardcode_direct=unsupported
 
7273
          # It fails to find uninstalled libraries when the uninstalled
 
7274
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
7275
          # to unsupported forces relinking
 
7276
          hardcode_minus_L=yes
 
7277
          hardcode_libdir_flag_spec='-L$libdir'
 
7278
          hardcode_libdir_separator=
 
7279
          fi
 
7280
        esac
 
7281
        shared_flag='-shared'
 
7282
      else
 
7283
        # not using gcc
 
7284
        if test "$host_cpu" = ia64; then
 
7285
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
7286
        # chokes on -Wl,-G. The following line is correct:
 
7287
          shared_flag='-G'
 
7288
        else
 
7289
        if test "$aix_use_runtimelinking" = yes; then
 
7290
            shared_flag='${wl}-G'
 
7291
          else
 
7292
            shared_flag='${wl}-bM:SRE'
 
7293
        fi
 
7294
        fi
 
7295
      fi
 
7296
 
 
7297
      # It seems that -bexpall does not export symbols beginning with
 
7298
      # underscore (_), so it is better to generate a list of symbols to export.
 
7299
      always_export_symbols=yes
 
7300
      if test "$aix_use_runtimelinking" = yes; then
 
7301
        # Warning - without using the other runtime loading flags (-brtl),
 
7302
        # -berok will link without error, but may produce a broken library.
 
7303
        allow_undefined_flag='-berok'
 
7304
       # Determine the default libpath from the value encoded in an empty executable.
 
7305
       cat >conftest.$ac_ext <<_ACEOF
 
7306
/* confdefs.h.  */
 
7307
_ACEOF
 
7308
cat confdefs.h >>conftest.$ac_ext
 
7309
cat >>conftest.$ac_ext <<_ACEOF
 
7310
/* end confdefs.h.  */
 
7311
 
 
7312
int
 
7313
main ()
 
7314
{
 
7315
 
 
7316
  ;
 
7317
  return 0;
 
7318
}
 
7319
_ACEOF
 
7320
rm -f conftest.$ac_objext conftest$ac_exeext
 
7321
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7322
  (eval $ac_link) 2>conftest.er1
 
7323
  ac_status=$?
 
7324
  grep -v '^ *+' conftest.er1 >conftest.err
 
7325
  rm -f conftest.er1
 
7326
  cat conftest.err >&5
 
7327
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7328
  (exit $ac_status); } &&
 
7329
         { ac_try='test -z "$ac_c_werror_flag"
 
7330
                         || test ! -s conftest.err'
 
7331
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7332
  (eval $ac_try) 2>&5
 
7333
  ac_status=$?
 
7334
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7335
  (exit $ac_status); }; } &&
 
7336
         { ac_try='test -s conftest$ac_exeext'
 
7337
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7338
  (eval $ac_try) 2>&5
 
7339
  ac_status=$?
 
7340
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7341
  (exit $ac_status); }; }; then
 
7342
 
 
7343
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
7344
}'`
 
7345
# Check for a 64-bit object if we didn't find anything.
 
7346
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; }
 
7347
}'`; fi
 
7348
else
 
7349
  echo "$as_me: failed program was:" >&5
 
7350
sed 's/^/| /' conftest.$ac_ext >&5
 
7351
 
 
7352
fi
 
7353
rm -f conftest.err conftest.$ac_objext \
 
7354
      conftest$ac_exeext conftest.$ac_ext
 
7355
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
7356
 
 
7357
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
7358
        archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
7359
       else
 
7360
        if test "$host_cpu" = ia64; then
 
7361
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
7362
          allow_undefined_flag="-z nodefs"
 
7363
          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"
 
7364
        else
 
7365
         # Determine the default libpath from the value encoded in an empty executable.
 
7366
         cat >conftest.$ac_ext <<_ACEOF
 
7367
/* confdefs.h.  */
 
7368
_ACEOF
 
7369
cat confdefs.h >>conftest.$ac_ext
 
7370
cat >>conftest.$ac_ext <<_ACEOF
 
7371
/* end confdefs.h.  */
 
7372
 
 
7373
int
 
7374
main ()
 
7375
{
 
7376
 
 
7377
  ;
 
7378
  return 0;
 
7379
}
 
7380
_ACEOF
 
7381
rm -f conftest.$ac_objext conftest$ac_exeext
 
7382
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7383
  (eval $ac_link) 2>conftest.er1
 
7384
  ac_status=$?
 
7385
  grep -v '^ *+' conftest.er1 >conftest.err
 
7386
  rm -f conftest.er1
 
7387
  cat conftest.err >&5
 
7388
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7389
  (exit $ac_status); } &&
 
7390
         { ac_try='test -z "$ac_c_werror_flag"
 
7391
                         || test ! -s conftest.err'
 
7392
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7393
  (eval $ac_try) 2>&5
 
7394
  ac_status=$?
 
7395
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7396
  (exit $ac_status); }; } &&
 
7397
         { ac_try='test -s conftest$ac_exeext'
 
7398
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7399
  (eval $ac_try) 2>&5
 
7400
  ac_status=$?
 
7401
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7402
  (exit $ac_status); }; }; then
 
7403
 
 
7404
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
7405
}'`
 
7406
# Check for a 64-bit object if we didn't find anything.
 
7407
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; }
 
7408
}'`; fi
 
7409
else
 
7410
  echo "$as_me: failed program was:" >&5
 
7411
sed 's/^/| /' conftest.$ac_ext >&5
 
7412
 
 
7413
fi
 
7414
rm -f conftest.err conftest.$ac_objext \
 
7415
      conftest$ac_exeext conftest.$ac_ext
 
7416
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
7417
 
 
7418
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
7419
          # Warning - without using the other run time loading flags,
 
7420
          # -berok will link without error, but may produce a broken library.
 
7421
          no_undefined_flag=' ${wl}-bernotok'
 
7422
          allow_undefined_flag=' ${wl}-berok'
 
7423
          # -bexpall does not export symbols beginning with underscore (_)
 
7424
          always_export_symbols=yes
 
7425
          # Exported symbols can be pulled into shared objects from archives
 
7426
          whole_archive_flag_spec=' '
 
7427
          archive_cmds_need_lc=yes
 
7428
          # This is similar to how AIX traditionally builds it's shared libraries.
 
7429
          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'
 
7430
        fi
 
7431
      fi
 
7432
      ;;
 
7433
 
 
7434
    amigaos*)
 
7435
      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)'
 
7436
      hardcode_libdir_flag_spec='-L$libdir'
 
7437
      hardcode_minus_L=yes
 
7438
      # see comment about different semantics on the GNU ld section
 
7439
      ld_shlibs=no
 
7440
      ;;
 
7441
 
 
7442
    bsdi4*)
 
7443
      export_dynamic_flag_spec=-rdynamic
 
7444
      ;;
 
7445
 
 
7446
    cygwin* | mingw* | pw32*)
 
7447
      # When not using gcc, we currently assume that we are using
 
7448
      # Microsoft Visual C++.
 
7449
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
7450
      # no search path for DLLs.
 
7451
      hardcode_libdir_flag_spec=' '
 
7452
      allow_undefined_flag=unsupported
 
7453
      # Tell ltmain to make .lib files, not .a files.
 
7454
      libext=lib
 
7455
      # Tell ltmain to make .dll files, not .so files.
 
7456
      shrext_cmds=".dll"
 
7457
      # FIXME: Setting linknames here is a bad hack.
 
7458
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
7459
      # The linker will automatically build a .lib file if we build a DLL.
 
7460
      old_archive_From_new_cmds='true'
 
7461
      # FIXME: Should let the user specify the lib program.
 
7462
      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
7463
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
7464
      enable_shared_with_static_runtimes=yes
 
7465
      ;;
 
7466
 
 
7467
    darwin* | rhapsody*)
 
7468
    if test "$GXX" = yes ; then
 
7469
      archive_cmds_need_lc=no
 
7470
      case "$host_os" in
 
7471
      rhapsody* | darwin1.[012])
 
7472
        allow_undefined_flag='-undefined suppress'
 
7473
        ;;
 
7474
      *) # Darwin 1.3 on
 
7475
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
7476
        allow_undefined_flag='-flat_namespace -undefined suppress'
 
7477
      else
 
7478
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
7479
          10.[012])
 
7480
            allow_undefined_flag='-flat_namespace -undefined suppress'
 
7481
            ;;
 
7482
          10.*)
 
7483
            allow_undefined_flag='-undefined dynamic_lookup'
 
7484
            ;;
 
7485
        esac
 
7486
      fi
 
7487
        ;;
 
7488
      esac
 
7489
        lt_int_apple_cc_single_mod=no
 
7490
        output_verbose_link_cmd='echo'
 
7491
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
7492
          lt_int_apple_cc_single_mod=yes
 
7493
        fi
 
7494
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
7495
          archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
7496
        else
 
7497
        archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
7498
      fi
 
7499
      module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
7500
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
7501
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
7502
          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
7503
        else
 
7504
          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
7505
        fi
 
7506
          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
7507
      hardcode_direct=no
 
7508
      hardcode_automatic=yes
 
7509
      hardcode_shlibpath_var=unsupported
 
7510
      whole_archive_flag_spec='-all_load $convenience'
 
7511
      link_all_deplibs=yes
5740
7512
    else
5741
 
      aix_use_runtimelinking=no
5742
 
 
5743
 
      # Test if we are trying to use run time linking or normal
5744
 
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5745
 
      # need to do runtime linking.
5746
 
      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5747
 
        for ld_flag in $LDFLAGS; do
5748
 
          case $ld_flag in
5749
 
          *-brtl*)
5750
 
            aix_use_runtimelinking=yes
5751
 
            break
5752
 
          ;;
5753
 
          esac
5754
 
        done
5755
 
      esac
5756
 
 
5757
 
      exp_sym_flag='-bexport'
5758
 
      no_entry_flag='-bnoentry'
 
7513
      ld_shlibs=no
5759
7514
    fi
5760
 
 
5761
 
    # When large executables or shared objects are built, AIX ld can
5762
 
    # have problems creating the table of contents.  If linking a library
5763
 
    # or program results in "error TOC overflow" add -mminimal-toc to
5764
 
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
5765
 
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5766
 
 
5767
 
    hardcode_direct=yes
5768
 
    archive_cmds=''
5769
 
    hardcode_libdir_separator=':'
5770
 
    if test "$GCC" = yes; then
5771
 
      case $host_os in aix4.[012]|aix4.[012].*)
5772
 
        collect2name=`${CC} -print-prog-name=collect2`
5773
 
        if test -f "$collect2name" && \
5774
 
          strings "$collect2name" | grep resolve_lib_name >/dev/null
5775
 
        then
5776
 
          # We have reworked collect2
 
7515
      ;;
 
7516
 
 
7517
    dgux*)
 
7518
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7519
      hardcode_libdir_flag_spec='-L$libdir'
 
7520
      hardcode_shlibpath_var=no
 
7521
      ;;
 
7522
 
 
7523
    freebsd1*)
 
7524
      ld_shlibs=no
 
7525
      ;;
 
7526
 
 
7527
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
7528
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
7529
    # does not break anything, and helps significantly (at the cost of a little
 
7530
    # extra space).
 
7531
    freebsd2.2*)
 
7532
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
7533
      hardcode_libdir_flag_spec='-R$libdir'
 
7534
      hardcode_direct=yes
 
7535
      hardcode_shlibpath_var=no
 
7536
      ;;
 
7537
 
 
7538
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
7539
    freebsd2*)
 
7540
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
7541
      hardcode_direct=yes
 
7542
      hardcode_minus_L=yes
 
7543
      hardcode_shlibpath_var=no
 
7544
      ;;
 
7545
 
 
7546
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
7547
    freebsd* | kfreebsd*-gnu)
 
7548
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
7549
      hardcode_libdir_flag_spec='-R$libdir'
 
7550
      hardcode_direct=yes
 
7551
      hardcode_shlibpath_var=no
 
7552
      ;;
 
7553
 
 
7554
    hpux9*)
 
7555
      if test "$GCC" = yes; then
 
7556
        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'
 
7557
      else
 
7558
        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'
 
7559
      fi
 
7560
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
7561
      hardcode_libdir_separator=:
 
7562
      hardcode_direct=yes
 
7563
 
 
7564
      # hardcode_minus_L: Not really in the search PATH,
 
7565
      # but as the default location of the library.
 
7566
      hardcode_minus_L=yes
 
7567
      export_dynamic_flag_spec='${wl}-E'
 
7568
      ;;
 
7569
 
 
7570
    hpux10* | hpux11*)
 
7571
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
7572
        case "$host_cpu" in
 
7573
        hppa*64*|ia64*)
 
7574
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7575
          ;;
 
7576
        *)
 
7577
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
7578
          ;;
 
7579
        esac
 
7580
      else
 
7581
        case "$host_cpu" in
 
7582
        hppa*64*|ia64*)
 
7583
          archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7584
          ;;
 
7585
        *)
 
7586
          archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
7587
          ;;
 
7588
        esac
 
7589
      fi
 
7590
      if test "$with_gnu_ld" = no; then
 
7591
        case "$host_cpu" in
 
7592
        hppa*64*)
 
7593
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
7594
          hardcode_libdir_flag_spec_ld='+b $libdir'
 
7595
          hardcode_libdir_separator=:
 
7596
          hardcode_direct=no
 
7597
          hardcode_shlibpath_var=no
 
7598
          ;;
 
7599
        ia64*)
 
7600
          hardcode_libdir_flag_spec='-L$libdir'
 
7601
          hardcode_direct=no
 
7602
          hardcode_shlibpath_var=no
 
7603
 
 
7604
          # hardcode_minus_L: Not really in the search PATH,
 
7605
          # but as the default location of the library.
 
7606
          hardcode_minus_L=yes
 
7607
          ;;
 
7608
        *)
 
7609
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
7610
          hardcode_libdir_separator=:
5777
7611
          hardcode_direct=yes
5778
 
        else
5779
 
          # We have old collect2
5780
 
          hardcode_direct=unsupported
5781
 
          # It fails to find uninstalled libraries when the uninstalled
5782
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
5783
 
          # to unsupported forces relinking
 
7612
          export_dynamic_flag_spec='${wl}-E'
 
7613
 
 
7614
          # hardcode_minus_L: Not really in the search PATH,
 
7615
          # but as the default location of the library.
5784
7616
          hardcode_minus_L=yes
5785
 
          hardcode_libdir_flag_spec='-L$libdir'
5786
 
          hardcode_libdir_separator=
5787
 
        fi
5788
 
      esac
5789
 
 
5790
 
      shared_flag='-shared'
5791
 
    else
5792
 
      # not using gcc
5793
 
      if test "$host_cpu" = ia64; then
5794
 
        shared_flag='${wl}-G'
5795
 
      else
5796
 
        if test "$aix_use_runtimelinking" = yes; then
5797
 
          shared_flag='${wl}-G'
5798
 
        else
5799
 
          shared_flag='${wl}-bM:SRE'
5800
 
        fi
5801
 
      fi
5802
 
    fi
5803
 
 
5804
 
    # It seems that -bexpall can do strange things, so it is better to
5805
 
    # generate a list of symbols to export.
5806
 
    always_export_symbols=yes
5807
 
    if test "$aix_use_runtimelinking" = yes; then
5808
 
      # Warning - without using the other runtime loading flags (-brtl),
5809
 
      # -berok will link without error, but may produce a broken library.
5810
 
      allow_undefined_flag='-berok'
5811
 
      hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5812
 
      archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5813
 
    else
5814
 
      if test "$host_cpu" = ia64; then
5815
 
        hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5816
 
        allow_undefined_flag="-z nodefs"
5817
 
        archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
5818
 
      else
5819
 
        hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5820
 
        # Warning - without using the other run time loading flags,
5821
 
        # -berok will link without error, but may produce a broken library.
5822
 
        allow_undefined_flag='${wl}-berok'
5823
 
        # This is a bit strange, but is similar to how AIX traditionally builds
5824
 
        # it's shared libraries.
5825
 
        archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
5826
 
      fi
5827
 
    fi
5828
 
    ;;
5829
 
 
5830
 
  amigaos*)
5831
 
    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)'
5832
 
    hardcode_libdir_flag_spec='-L$libdir'
5833
 
    hardcode_minus_L=yes
5834
 
    # see comment about different semantics on the GNU ld section
5835
 
    ld_shlibs=no
5836
 
    ;;
5837
 
 
5838
 
  cygwin* | mingw* | pw32*)
5839
 
    # When not using gcc, we currently assume that we are using
5840
 
    # Microsoft Visual C++.
5841
 
    # hardcode_libdir_flag_spec is actually meaningless, as there is
5842
 
    # no search path for DLLs.
5843
 
    hardcode_libdir_flag_spec=' '
5844
 
    allow_undefined_flag=unsupported
5845
 
    # Tell ltmain to make .lib files, not .a files.
5846
 
    libext=lib
5847
 
    # FIXME: Setting linknames here is a bad hack.
5848
 
    archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5849
 
    # The linker will automatically build a .lib file if we build a DLL.
5850
 
    old_archive_from_new_cmds='true'
5851
 
    # FIXME: Should let the user specify the lib program.
5852
 
    old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5853
 
    fix_srcfile_path='`cygpath -w "$srcfile"`'
5854
 
    ;;
5855
 
 
5856
 
  darwin* | rhapsody*)
5857
 
    case "$host_os" in
5858
 
    rhapsody* | darwin1.[012])
5859
 
      allow_undefined_flag='-undefined suppress'
5860
 
      ;;
5861
 
    *) # Darwin 1.3 on
5862
 
      allow_undefined_flag='-flat_namespace -undefined suppress'
5863
 
      ;;
5864
 
    esac
5865
 
    # FIXME: Relying on posixy $() will cause problems for
5866
 
    #        cross-compilation, but unfortunately the echo tests do not
5867
 
    #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
5868
 
    #        `"' quotes if we put them in here... so don't!
5869
 
    archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'
5870
 
    # We need to add '_' to the symbols in $export_symbols first
5871
 
    #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5872
 
    hardcode_direct=yes
5873
 
    hardcode_shlibpath_var=no
5874
 
    whole_archive_flag_spec='-all_load $convenience'
5875
 
    ;;
5876
 
 
5877
 
  freebsd1*)
5878
 
    ld_shlibs=no
5879
 
    ;;
5880
 
 
5881
 
  # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5882
 
  # support.  Future versions do this automatically, but an explicit c++rt0.o
5883
 
  # does not break anything, and helps significantly (at the cost of a little
5884
 
  # extra space).
5885
 
  freebsd2.2*)
5886
 
    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5887
 
    hardcode_libdir_flag_spec='-R$libdir'
5888
 
    hardcode_direct=yes
5889
 
    hardcode_shlibpath_var=no
5890
 
    ;;
5891
 
 
5892
 
  # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5893
 
  freebsd2*)
5894
 
    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5895
 
    hardcode_direct=yes
5896
 
    hardcode_minus_L=yes
5897
 
    hardcode_shlibpath_var=no
5898
 
    ;;
5899
 
 
5900
 
  # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5901
 
  freebsd*)
5902
 
    archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5903
 
    hardcode_libdir_flag_spec='-R$libdir'
5904
 
    hardcode_direct=yes
5905
 
    hardcode_shlibpath_var=no
5906
 
    ;;
5907
 
 
5908
 
  hpux9* | hpux10* | hpux11*)
5909
 
    case $host_os in
5910
 
    hpux9*) 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' ;;
5911
 
    *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5912
 
    esac
5913
 
    hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5914
 
    hardcode_libdir_separator=:
5915
 
    hardcode_direct=yes
5916
 
    hardcode_minus_L=yes # Not in the search PATH, but as the default
5917
 
                         # location of the library.
5918
 
    export_dynamic_flag_spec='${wl}-E'
5919
 
    ;;
5920
 
 
5921
 
  irix5* | irix6* | nonstopux*)
5922
 
    if test "$GCC" = yes; then
5923
 
      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'
5924
 
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5925
 
    else
5926
 
      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'
5927
 
      hardcode_libdir_flag_spec='-rpath $libdir'
5928
 
    fi
5929
 
    hardcode_libdir_separator=:
5930
 
    link_all_deplibs=yes
5931
 
    ;;
5932
 
 
5933
 
  netbsd*)
5934
 
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5935
 
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
5936
 
    else
5937
 
      archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
5938
 
    fi
5939
 
    hardcode_libdir_flag_spec='-R$libdir'
5940
 
    hardcode_direct=yes
5941
 
    hardcode_shlibpath_var=no
5942
 
    ;;
5943
 
 
5944
 
  newsos6)
5945
 
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5946
 
    hardcode_direct=yes
5947
 
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5948
 
    hardcode_libdir_separator=:
5949
 
    hardcode_shlibpath_var=no
5950
 
    ;;
5951
 
 
5952
 
  openbsd*)
5953
 
    hardcode_direct=yes
5954
 
    hardcode_shlibpath_var=no
5955
 
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5956
 
      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5957
 
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5958
 
      export_dynamic_flag_spec='${wl}-E'
5959
 
    else
5960
 
      case "$host_os" in
5961
 
      openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5962
 
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5963
 
        hardcode_libdir_flag_spec='-R$libdir'
5964
 
        ;;
5965
 
      *)
5966
 
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5967
 
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5968
 
        ;;
5969
 
      esac
5970
 
    fi
5971
 
    ;;
5972
 
 
5973
 
  os2*)
5974
 
    hardcode_libdir_flag_spec='-L$libdir'
5975
 
    hardcode_minus_L=yes
5976
 
    allow_undefined_flag=unsupported
5977
 
    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'
5978
 
    old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5979
 
    ;;
5980
 
 
5981
 
  osf3*)
5982
 
    if test "$GCC" = yes; then
5983
 
      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5984
 
      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'
5985
 
    else
5986
 
      allow_undefined_flag=' -expect_unresolved \*'
5987
 
      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'
5988
 
    fi
5989
 
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5990
 
    hardcode_libdir_separator=:
5991
 
    ;;
5992
 
 
5993
 
  osf4* | osf5*)        # as osf3* with the addition of -msym flag
5994
 
    if test "$GCC" = yes; then
5995
 
      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5996
 
      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'
5997
 
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5998
 
    else
5999
 
      allow_undefined_flag=' -expect_unresolved \*'
6000
 
      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'
6001
 
      archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6002
 
      $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'
6003
 
 
6004
 
      #Both c and cxx compiler support -rpath directly
6005
 
      hardcode_libdir_flag_spec='-rpath $libdir'
6006
 
    fi
6007
 
    hardcode_libdir_separator=:
6008
 
    ;;
6009
 
 
6010
 
  sco3.2v5*)
6011
 
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6012
 
    hardcode_shlibpath_var=no
6013
 
    runpath_var=LD_RUN_PATH
6014
 
    hardcode_runpath_var=yes
6015
 
    export_dynamic_flag_spec='${wl}-Bexport'
6016
 
    ;;
6017
 
 
6018
 
  solaris*)
6019
 
    # gcc --version < 3.0 without binutils cannot create self contained
6020
 
    # shared libraries reliably, requiring libgcc.a to resolve some of
6021
 
    # the object symbols generated in some cases.  Libraries that use
6022
 
    # assert need libgcc.a to resolve __eprintf, for example.  Linking
6023
 
    # a copy of libgcc.a into every shared library to guarantee resolving
6024
 
    # such symbols causes other problems:  According to Tim Van Holder
6025
 
    # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
6026
 
    # (to the application) exception stack for one thing.
6027
 
    no_undefined_flag=' -z defs'
6028
 
    if test "$GCC" = yes; then
6029
 
      case `$CC --version 2>/dev/null` in
6030
 
      [12].*)
6031
 
        cat <<EOF 1>&2
6032
 
 
6033
 
*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
6034
 
*** create self contained shared libraries on Solaris systems, without
6035
 
*** introducing a dependency on libgcc.a.  Therefore, libtool is disabling
6036
 
*** -no-undefined support, which will at least allow you to build shared
6037
 
*** libraries.  However, you may find that when you link such libraries
6038
 
*** into an application without using GCC, you have to manually add
6039
 
*** \`gcc --print-libgcc-file-name\` to the link command.  We urge you to
6040
 
*** upgrade to a newer version of GCC.  Another option is to rebuild your
6041
 
*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
6042
 
 
6043
 
EOF
6044
 
        no_undefined_flag=
6045
 
        ;;
6046
 
      esac
6047
 
    fi
6048
 
    # $CC -shared without GNU ld will not create a library from C++
6049
 
    # object files and a static libstdc++, better avoid it by now
6050
 
    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6051
 
    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6052
 
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6053
 
    hardcode_libdir_flag_spec='-R$libdir'
6054
 
    hardcode_shlibpath_var=no
6055
 
    case $host_os in
6056
 
    solaris2.[0-5] | solaris2.[0-5].*) ;;
6057
 
    *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6058
 
      whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6059
 
    esac
6060
 
    link_all_deplibs=yes
6061
 
    ;;
6062
 
 
6063
 
  sunos4*)
6064
 
    if test "x$host_vendor" = xsequent; then
6065
 
      # Use $CC to link under sequent, because it throws in some extra .o
6066
 
      # files that make .init and .fini sections work.
6067
 
      archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6068
 
    else
6069
 
      archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6070
 
    fi
6071
 
    hardcode_libdir_flag_spec='-L$libdir'
6072
 
    hardcode_direct=yes
6073
 
    hardcode_minus_L=yes
6074
 
    hardcode_shlibpath_var=no
6075
 
    ;;
6076
 
 
6077
 
  sysv4)
6078
 
    case $host_vendor in
6079
 
      sni)
6080
 
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6081
 
        hardcode_direct=yes # is this really true???
6082
 
        ;;
6083
 
      siemens)
6084
 
        ## LD is ld it makes a PLAMLIB
6085
 
        ## CC just makes a GrossModule.
6086
 
        archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6087
 
        reload_cmds='$CC -r -o $output$reload_objs'
6088
 
        hardcode_direct=no
6089
 
        ;;
6090
 
      motorola)
6091
 
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6092
 
        hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6093
 
        ;;
6094
 
    esac
6095
 
    runpath_var='LD_RUN_PATH'
6096
 
    hardcode_shlibpath_var=no
6097
 
    ;;
6098
 
 
6099
 
  sysv4.3*)
6100
 
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6101
 
    hardcode_shlibpath_var=no
6102
 
    export_dynamic_flag_spec='-Bexport'
6103
 
    ;;
6104
 
 
6105
 
  sysv5*)
6106
 
    no_undefined_flag=' -z text'
6107
 
    # $CC -shared without GNU ld will not create a library from C++
6108
 
    # object files and a static libstdc++, better avoid it by now
6109
 
    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6110
 
    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6111
 
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6112
 
    hardcode_libdir_flag_spec=
6113
 
    hardcode_shlibpath_var=no
6114
 
    runpath_var='LD_RUN_PATH'
6115
 
    ;;
6116
 
 
6117
 
  uts4*)
6118
 
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6119
 
    hardcode_libdir_flag_spec='-L$libdir'
6120
 
    hardcode_shlibpath_var=no
6121
 
    ;;
6122
 
 
6123
 
  dgux*)
6124
 
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6125
 
    hardcode_libdir_flag_spec='-L$libdir'
6126
 
    hardcode_shlibpath_var=no
6127
 
    ;;
6128
 
 
6129
 
  sysv4*MP*)
6130
 
    if test -d /usr/nec; then
6131
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6132
 
      hardcode_shlibpath_var=no
6133
 
      runpath_var=LD_RUN_PATH
6134
 
      hardcode_runpath_var=yes
6135
 
      ld_shlibs=yes
6136
 
    fi
6137
 
    ;;
6138
 
 
6139
 
  sysv4.2uw2*)
6140
 
    archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6141
 
    hardcode_direct=yes
6142
 
    hardcode_minus_L=no
6143
 
    hardcode_shlibpath_var=no
6144
 
    hardcode_runpath_var=yes
6145
 
    runpath_var=LD_RUN_PATH
6146
 
    ;;
6147
 
 
6148
 
  sysv5uw7* | unixware7*)
6149
 
    no_undefined_flag='${wl}-z ${wl}text'
6150
 
    if test "$GCC" = yes; then
6151
 
      archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6152
 
    else
6153
 
      archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6154
 
    fi
6155
 
    runpath_var='LD_RUN_PATH'
6156
 
    hardcode_shlibpath_var=no
6157
 
    ;;
6158
 
 
6159
 
  *)
6160
 
    ld_shlibs=no
6161
 
    ;;
6162
 
  esac
6163
 
fi
 
7617
          ;;
 
7618
        esac
 
7619
      fi
 
7620
      ;;
 
7621
 
 
7622
    irix5* | irix6* | nonstopux*)
 
7623
      if test "$GCC" = yes; then
 
7624
        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'
 
7625
      else
 
7626
        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'
 
7627
        hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
7628
      fi
 
7629
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
7630
      hardcode_libdir_separator=:
 
7631
      link_all_deplibs=yes
 
7632
      ;;
 
7633
 
 
7634
    netbsd*)
 
7635
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
7636
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
7637
      else
 
7638
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
7639
      fi
 
7640
      hardcode_libdir_flag_spec='-R$libdir'
 
7641
      hardcode_direct=yes
 
7642
      hardcode_shlibpath_var=no
 
7643
      ;;
 
7644
 
 
7645
    newsos6)
 
7646
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7647
      hardcode_direct=yes
 
7648
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
7649
      hardcode_libdir_separator=:
 
7650
      hardcode_shlibpath_var=no
 
7651
      ;;
 
7652
 
 
7653
    openbsd*)
 
7654
      hardcode_direct=yes
 
7655
      hardcode_shlibpath_var=no
 
7656
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
7657
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
7658
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
7659
        export_dynamic_flag_spec='${wl}-E'
 
7660
      else
 
7661
       case $host_os in
 
7662
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
7663
           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
7664
           hardcode_libdir_flag_spec='-R$libdir'
 
7665
           ;;
 
7666
         *)
 
7667
           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
7668
           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
7669
           ;;
 
7670
       esac
 
7671
      fi
 
7672
      ;;
 
7673
 
 
7674
    os2*)
 
7675
      hardcode_libdir_flag_spec='-L$libdir'
 
7676
      hardcode_minus_L=yes
 
7677
      allow_undefined_flag=unsupported
 
7678
      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'
 
7679
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
7680
      ;;
 
7681
 
 
7682
    osf3*)
 
7683
      if test "$GCC" = yes; then
 
7684
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
7685
        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'
 
7686
      else
 
7687
        allow_undefined_flag=' -expect_unresolved \*'
 
7688
        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'
 
7689
      fi
 
7690
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
7691
      hardcode_libdir_separator=:
 
7692
      ;;
 
7693
 
 
7694
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
7695
      if test "$GCC" = yes; then
 
7696
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
7697
        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'
 
7698
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
7699
      else
 
7700
        allow_undefined_flag=' -expect_unresolved \*'
 
7701
        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'
 
7702
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
7703
        $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'
 
7704
 
 
7705
        # Both c and cxx compiler support -rpath directly
 
7706
        hardcode_libdir_flag_spec='-rpath $libdir'
 
7707
      fi
 
7708
      hardcode_libdir_separator=:
 
7709
      ;;
 
7710
 
 
7711
    sco3.2v5*)
 
7712
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7713
      hardcode_shlibpath_var=no
 
7714
      export_dynamic_flag_spec='${wl}-Bexport'
 
7715
      runpath_var=LD_RUN_PATH
 
7716
      hardcode_runpath_var=yes
 
7717
      ;;
 
7718
 
 
7719
    solaris*)
 
7720
      no_undefined_flag=' -z text'
 
7721
      if test "$GCC" = yes; then
 
7722
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7723
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
7724
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
7725
      else
 
7726
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7727
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
7728
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
7729
      fi
 
7730
      hardcode_libdir_flag_spec='-R$libdir'
 
7731
      hardcode_shlibpath_var=no
 
7732
      case $host_os in
 
7733
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
7734
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 
7735
        whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
 
7736
      esac
 
7737
      link_all_deplibs=yes
 
7738
      ;;
 
7739
 
 
7740
    sunos4*)
 
7741
      if test "x$host_vendor" = xsequent; then
 
7742
        # Use $CC to link under sequent, because it throws in some extra .o
 
7743
        # files that make .init and .fini sections work.
 
7744
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
7745
      else
 
7746
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
7747
      fi
 
7748
      hardcode_libdir_flag_spec='-L$libdir'
 
7749
      hardcode_direct=yes
 
7750
      hardcode_minus_L=yes
 
7751
      hardcode_shlibpath_var=no
 
7752
      ;;
 
7753
 
 
7754
    sysv4)
 
7755
      case $host_vendor in
 
7756
        sni)
 
7757
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7758
          hardcode_direct=yes # is this really true???
 
7759
        ;;
 
7760
        siemens)
 
7761
          ## LD is ld it makes a PLAMLIB
 
7762
          ## CC just makes a GrossModule.
 
7763
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
7764
          reload_cmds='$CC -r -o $output$reload_objs'
 
7765
          hardcode_direct=no
 
7766
        ;;
 
7767
        motorola)
 
7768
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7769
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
7770
        ;;
 
7771
      esac
 
7772
      runpath_var='LD_RUN_PATH'
 
7773
      hardcode_shlibpath_var=no
 
7774
      ;;
 
7775
 
 
7776
    sysv4.3*)
 
7777
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7778
      hardcode_shlibpath_var=no
 
7779
      export_dynamic_flag_spec='-Bexport'
 
7780
      ;;
 
7781
 
 
7782
    sysv4*MP*)
 
7783
      if test -d /usr/nec; then
 
7784
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7785
        hardcode_shlibpath_var=no
 
7786
        runpath_var=LD_RUN_PATH
 
7787
        hardcode_runpath_var=yes
 
7788
        ld_shlibs=yes
 
7789
      fi
 
7790
      ;;
 
7791
 
 
7792
    sysv4.2uw2*)
 
7793
      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
7794
      hardcode_direct=yes
 
7795
      hardcode_minus_L=no
 
7796
      hardcode_shlibpath_var=no
 
7797
      hardcode_runpath_var=yes
 
7798
      runpath_var=LD_RUN_PATH
 
7799
      ;;
 
7800
 
 
7801
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
7802
      no_undefined_flag='${wl}-z ${wl}text'
 
7803
      if test "$GCC" = yes; then
 
7804
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7805
      else
 
7806
        archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7807
      fi
 
7808
      runpath_var='LD_RUN_PATH'
 
7809
      hardcode_shlibpath_var=no
 
7810
      ;;
 
7811
 
 
7812
    sysv5*)
 
7813
      no_undefined_flag=' -z text'
 
7814
      # $CC -shared without GNU ld will not create a library from C++
 
7815
      # object files and a static libstdc++, better avoid it by now
 
7816
      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7817
      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
7818
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
7819
      hardcode_libdir_flag_spec=
 
7820
      hardcode_shlibpath_var=no
 
7821
      runpath_var='LD_RUN_PATH'
 
7822
      ;;
 
7823
 
 
7824
    uts4*)
 
7825
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7826
      hardcode_libdir_flag_spec='-L$libdir'
 
7827
      hardcode_shlibpath_var=no
 
7828
      ;;
 
7829
 
 
7830
    *)
 
7831
      ld_shlibs=no
 
7832
      ;;
 
7833
    esac
 
7834
  fi
 
7835
 
6164
7836
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6165
7837
echo "${ECHO_T}$ld_shlibs" >&6
6166
7838
test "$ld_shlibs" = no && can_build_shared=no
6167
7839
 
6168
 
# Check hardcoding attributes.
 
7840
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
7841
if test "$GCC" = yes; then
 
7842
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
7843
fi
 
7844
 
 
7845
#
 
7846
# Do we need to explicitly link libc?
 
7847
#
 
7848
case "x$archive_cmds_need_lc" in
 
7849
x|xyes)
 
7850
  # Assume -lc should be added
 
7851
  archive_cmds_need_lc=yes
 
7852
 
 
7853
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
7854
    case $archive_cmds in
 
7855
    *'~'*)
 
7856
      # FIXME: we may have to deal with multi-command sequences.
 
7857
      ;;
 
7858
    '$CC '*)
 
7859
      # Test whether the compiler implicitly links with -lc since on some
 
7860
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
7861
      # to ld, don't add -lc before -lgcc.
 
7862
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
7863
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
7864
      $rm conftest*
 
7865
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7866
 
 
7867
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7868
  (eval $ac_compile) 2>&5
 
7869
  ac_status=$?
 
7870
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7871
  (exit $ac_status); } 2>conftest.err; then
 
7872
        soname=conftest
 
7873
        lib=conftest
 
7874
        libobjs=conftest.$ac_objext
 
7875
        deplibs=
 
7876
        wl=$lt_prog_compiler_wl
 
7877
        compiler_flags=-v
 
7878
        linker_flags=-v
 
7879
        verstring=
 
7880
        output_objdir=.
 
7881
        libname=conftest
 
7882
        lt_save_allow_undefined_flag=$allow_undefined_flag
 
7883
        allow_undefined_flag=
 
7884
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
7885
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
7886
  ac_status=$?
 
7887
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7888
  (exit $ac_status); }
 
7889
        then
 
7890
          archive_cmds_need_lc=no
 
7891
        else
 
7892
          archive_cmds_need_lc=yes
 
7893
        fi
 
7894
        allow_undefined_flag=$lt_save_allow_undefined_flag
 
7895
      else
 
7896
        cat conftest.err 1>&5
 
7897
      fi
 
7898
      $rm conftest*
 
7899
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
 
7900
echo "${ECHO_T}$archive_cmds_need_lc" >&6
 
7901
      ;;
 
7902
    esac
 
7903
  fi
 
7904
  ;;
 
7905
esac
 
7906
 
 
7907
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
7908
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
7909
library_names_spec=
 
7910
libname_spec='lib$name'
 
7911
soname_spec=
 
7912
shrext_cmds=".so"
 
7913
postinstall_cmds=
 
7914
postuninstall_cmds=
 
7915
finish_cmds=
 
7916
finish_eval=
 
7917
shlibpath_var=
 
7918
shlibpath_overrides_runpath=unknown
 
7919
version_type=none
 
7920
dynamic_linker="$host_os ld.so"
 
7921
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
7922
if test "$GCC" = yes; then
 
7923
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
7924
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
7925
    # if the path contains ";" then we assume it to be the separator
 
7926
    # otherwise default to the standard path separator (i.e. ":") - it is
 
7927
    # assumed that no part of a normal pathname contains ";" but that should
 
7928
    # okay in the real world where ";" in dirpaths is itself problematic.
 
7929
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
7930
  else
 
7931
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
7932
  fi
 
7933
else
 
7934
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
7935
fi
 
7936
need_lib_prefix=unknown
 
7937
hardcode_into_libs=no
 
7938
 
 
7939
# when you set need_version to no, make sure it does not cause -set_version
 
7940
# flags to be left without arguments
 
7941
need_version=unknown
 
7942
 
 
7943
case $host_os in
 
7944
aix3*)
 
7945
  version_type=linux
 
7946
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
7947
  shlibpath_var=LIBPATH
 
7948
 
 
7949
  # AIX 3 has no versioning support, so we append a major version to the name.
 
7950
  soname_spec='${libname}${release}${shared_ext}$major'
 
7951
  ;;
 
7952
 
 
7953
aix4* | aix5*)
 
7954
  version_type=linux
 
7955
  need_lib_prefix=no
 
7956
  need_version=no
 
7957
  hardcode_into_libs=yes
 
7958
  if test "$host_cpu" = ia64; then
 
7959
    # AIX 5 supports IA64
 
7960
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
7961
    shlibpath_var=LD_LIBRARY_PATH
 
7962
  else
 
7963
    # With GCC up to 2.95.x, collect2 would create an import file
 
7964
    # for dependence libraries.  The import file would start with
 
7965
    # the line `#! .'.  This would cause the generated library to
 
7966
    # depend on `.', always an invalid library.  This was fixed in
 
7967
    # development snapshots of GCC prior to 3.0.
 
7968
    case $host_os in
 
7969
      aix4 | aix4.[01] | aix4.[01].*)
 
7970
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
7971
           echo ' yes '
 
7972
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
7973
        :
 
7974
      else
 
7975
        can_build_shared=no
 
7976
      fi
 
7977
      ;;
 
7978
    esac
 
7979
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
7980
    # soname into executable. Probably we can add versioning support to
 
7981
    # collect2, so additional links can be useful in future.
 
7982
    if test "$aix_use_runtimelinking" = yes; then
 
7983
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
7984
      # instead of lib<name>.a to let people know that these are not
 
7985
      # typical AIX shared libraries.
 
7986
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7987
    else
 
7988
      # We preserve .a as extension for shared libraries through AIX4.2
 
7989
      # and later when we are not doing run time linking.
 
7990
      library_names_spec='${libname}${release}.a $libname.a'
 
7991
      soname_spec='${libname}${release}${shared_ext}$major'
 
7992
    fi
 
7993
    shlibpath_var=LIBPATH
 
7994
  fi
 
7995
  ;;
 
7996
 
 
7997
amigaos*)
 
7998
  library_names_spec='$libname.ixlibrary $libname.a'
 
7999
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
8000
  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'
 
8001
  ;;
 
8002
 
 
8003
beos*)
 
8004
  library_names_spec='${libname}${shared_ext}'
 
8005
  dynamic_linker="$host_os ld.so"
 
8006
  shlibpath_var=LIBRARY_PATH
 
8007
  ;;
 
8008
 
 
8009
bsdi4*)
 
8010
  version_type=linux
 
8011
  need_version=no
 
8012
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8013
  soname_spec='${libname}${release}${shared_ext}$major'
 
8014
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
8015
  shlibpath_var=LD_LIBRARY_PATH
 
8016
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
8017
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
8018
  # the default ld.so.conf also contains /usr/contrib/lib and
 
8019
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
8020
  # libtool to hard-code these into programs
 
8021
  ;;
 
8022
 
 
8023
cygwin* | mingw* | pw32*)
 
8024
  version_type=windows
 
8025
  shrext_cmds=".dll"
 
8026
  need_version=no
 
8027
  need_lib_prefix=no
 
8028
 
 
8029
  case $GCC,$host_os in
 
8030
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
8031
    library_names_spec='$libname.dll.a'
 
8032
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
8033
    postinstall_cmds='base_file=`basename \${file}`~
 
8034
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
8035
      dldir=$destdir/`dirname \$dlpath`~
 
8036
      test -d \$dldir || mkdir -p \$dldir~
 
8037
      $install_prog $dir/$dlname \$dldir/$dlname'
 
8038
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
8039
      dlpath=$dir/\$dldll~
 
8040
       $rm \$dlpath'
 
8041
    shlibpath_overrides_runpath=yes
 
8042
 
 
8043
    case $host_os in
 
8044
    cygwin*)
 
8045
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
8046
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
8047
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
8048
      ;;
 
8049
    mingw*)
 
8050
      # MinGW DLLs use traditional 'lib' prefix
 
8051
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
8052
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
8053
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
8054
        # It is most probably a Windows format PATH printed by
 
8055
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
8056
        # path with ; separators, and with drive letters. We can handle the
 
8057
        # drive letters (cygwin fileutils understands them), so leave them,
 
8058
        # especially as we might pass files found there to a mingw objdump,
 
8059
        # which wouldn't understand a cygwinified path. Ahh.
 
8060
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
8061
      else
 
8062
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
8063
      fi
 
8064
      ;;
 
8065
    pw32*)
 
8066
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
8067
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
8068
      ;;
 
8069
    esac
 
8070
    ;;
 
8071
 
 
8072
  *)
 
8073
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
8074
    ;;
 
8075
  esac
 
8076
  dynamic_linker='Win32 ld.exe'
 
8077
  # FIXME: first we should search . and the directory the executable is in
 
8078
  shlibpath_var=PATH
 
8079
  ;;
 
8080
 
 
8081
darwin* | rhapsody*)
 
8082
  dynamic_linker="$host_os dyld"
 
8083
  version_type=darwin
 
8084
  need_lib_prefix=no
 
8085
  need_version=no
 
8086
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
8087
  soname_spec='${libname}${release}${major}$shared_ext'
 
8088
  shlibpath_overrides_runpath=yes
 
8089
  shlibpath_var=DYLD_LIBRARY_PATH
 
8090
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
8091
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
8092
  if test "$GCC" = yes; then
 
8093
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
 
8094
  else
 
8095
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
8096
  fi
 
8097
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
8098
  ;;
 
8099
 
 
8100
dgux*)
 
8101
  version_type=linux
 
8102
  need_lib_prefix=no
 
8103
  need_version=no
 
8104
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
8105
  soname_spec='${libname}${release}${shared_ext}$major'
 
8106
  shlibpath_var=LD_LIBRARY_PATH
 
8107
  ;;
 
8108
 
 
8109
freebsd1*)
 
8110
  dynamic_linker=no
 
8111
  ;;
 
8112
 
 
8113
kfreebsd*-gnu)
 
8114
  version_type=linux
 
8115
  need_lib_prefix=no
 
8116
  need_version=no
 
8117
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
8118
  soname_spec='${libname}${release}${shared_ext}$major'
 
8119
  shlibpath_var=LD_LIBRARY_PATH
 
8120
  shlibpath_overrides_runpath=no
 
8121
  hardcode_into_libs=yes
 
8122
  dynamic_linker='GNU ld.so'
 
8123
  ;;
 
8124
 
 
8125
freebsd*)
 
8126
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
8127
  version_type=freebsd-$objformat
 
8128
  case $version_type in
 
8129
    freebsd-elf*)
 
8130
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
8131
      need_version=no
 
8132
      need_lib_prefix=no
 
8133
      ;;
 
8134
    freebsd-*)
 
8135
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
8136
      need_version=yes
 
8137
      ;;
 
8138
  esac
 
8139
  shlibpath_var=LD_LIBRARY_PATH
 
8140
  case $host_os in
 
8141
  freebsd2*)
 
8142
    shlibpath_overrides_runpath=yes
 
8143
    ;;
 
8144
  freebsd3.01* | freebsdelf3.01*)
 
8145
    shlibpath_overrides_runpath=yes
 
8146
    hardcode_into_libs=yes
 
8147
    ;;
 
8148
  *) # from 3.2 on
 
8149
    shlibpath_overrides_runpath=no
 
8150
    hardcode_into_libs=yes
 
8151
    ;;
 
8152
  esac
 
8153
  ;;
 
8154
 
 
8155
gnu*)
 
8156
  version_type=linux
 
8157
  need_lib_prefix=no
 
8158
  need_version=no
 
8159
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
8160
  soname_spec='${libname}${release}${shared_ext}$major'
 
8161
  shlibpath_var=LD_LIBRARY_PATH
 
8162
  hardcode_into_libs=yes
 
8163
  ;;
 
8164
 
 
8165
hpux9* | hpux10* | hpux11*)
 
8166
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
8167
  # link against other versions.
 
8168
  version_type=sunos
 
8169
  need_lib_prefix=no
 
8170
  need_version=no
 
8171
  case "$host_cpu" in
 
8172
  ia64*)
 
8173
    shrext_cmds='.so'
 
8174
    hardcode_into_libs=yes
 
8175
    dynamic_linker="$host_os dld.so"
 
8176
    shlibpath_var=LD_LIBRARY_PATH
 
8177
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
8178
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8179
    soname_spec='${libname}${release}${shared_ext}$major'
 
8180
    if test "X$HPUX_IA64_MODE" = X32; then
 
8181
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
8182
    else
 
8183
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
8184
    fi
 
8185
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
8186
    ;;
 
8187
   hppa*64*)
 
8188
     shrext_cmds='.sl'
 
8189
     hardcode_into_libs=yes
 
8190
     dynamic_linker="$host_os dld.sl"
 
8191
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
8192
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
8193
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8194
     soname_spec='${libname}${release}${shared_ext}$major'
 
8195
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
8196
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
8197
     ;;
 
8198
   *)
 
8199
    shrext_cmds='.sl'
 
8200
    dynamic_linker="$host_os dld.sl"
 
8201
    shlibpath_var=SHLIB_PATH
 
8202
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
8203
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8204
    soname_spec='${libname}${release}${shared_ext}$major'
 
8205
    ;;
 
8206
  esac
 
8207
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
8208
  postinstall_cmds='chmod 555 $lib'
 
8209
  ;;
 
8210
 
 
8211
irix5* | irix6* | nonstopux*)
 
8212
  case $host_os in
 
8213
    nonstopux*) version_type=nonstopux ;;
 
8214
    *)
 
8215
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
8216
                version_type=linux
 
8217
        else
 
8218
                version_type=irix
 
8219
        fi ;;
 
8220
  esac
 
8221
  need_lib_prefix=no
 
8222
  need_version=no
 
8223
  soname_spec='${libname}${release}${shared_ext}$major'
 
8224
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
8225
  case $host_os in
 
8226
  irix5* | nonstopux*)
 
8227
    libsuff= shlibsuff=
 
8228
    ;;
 
8229
  *)
 
8230
    case $LD in # libtool.m4 will add one of these switches to LD
 
8231
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
8232
      libsuff= shlibsuff= libmagic=32-bit;;
 
8233
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
8234
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
8235
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
8236
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
8237
    *) libsuff= shlibsuff= libmagic=never-match;;
 
8238
    esac
 
8239
    ;;
 
8240
  esac
 
8241
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
8242
  shlibpath_overrides_runpath=no
 
8243
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
8244
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
8245
  hardcode_into_libs=yes
 
8246
  ;;
 
8247
 
 
8248
# No shared lib support for Linux oldld, aout, or coff.
 
8249
linux*oldld* | linux*aout* | linux*coff*)
 
8250
  dynamic_linker=no
 
8251
  ;;
 
8252
 
 
8253
# This must be Linux ELF.
 
8254
linux*)
 
8255
  version_type=linux
 
8256
  need_lib_prefix=no
 
8257
  need_version=no
 
8258
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8259
  soname_spec='${libname}${release}${shared_ext}$major'
 
8260
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
8261
  shlibpath_var=LD_LIBRARY_PATH
 
8262
  shlibpath_overrides_runpath=no
 
8263
  # This implies no fast_install, which is unacceptable.
 
8264
  # Some rework will be needed to allow for fast_install
 
8265
  # before this can be enabled.
 
8266
  hardcode_into_libs=yes
 
8267
 
 
8268
  # find out which ABI we are using
 
8269
  libsuff=
 
8270
  case "$host_cpu" in
 
8271
  x86_64*|s390x*|powerpc64*)
 
8272
    echo '#line 8272 "configure"' > conftest.$ac_ext
 
8273
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8274
  (eval $ac_compile) 2>&5
 
8275
  ac_status=$?
 
8276
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8277
  (exit $ac_status); }; then
 
8278
      case `/usr/bin/file conftest.$ac_objext` in
 
8279
      *64-bit*)
 
8280
        libsuff=64
 
8281
        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
 
8282
        ;;
 
8283
      esac
 
8284
    fi
 
8285
    rm -rf conftest*
 
8286
    ;;
 
8287
  esac
 
8288
 
 
8289
  # Append ld.so.conf contents to the search path
 
8290
  if test -f /etc/ld.so.conf; then
 
8291
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
8292
    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
 
8293
  fi
 
8294
 
 
8295
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
8296
  # powerpc, because MkLinux only supported shared libraries with the
 
8297
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
8298
  # most powerpc-linux boxes support dynamic linking these days and
 
8299
  # people can always --disable-shared, the test was removed, and we
 
8300
  # assume the GNU/Linux dynamic linker is in use.
 
8301
  dynamic_linker='GNU/Linux ld.so'
 
8302
  ;;
 
8303
 
 
8304
knetbsd*-gnu)
 
8305
  version_type=linux
 
8306
  need_lib_prefix=no
 
8307
  need_version=no
 
8308
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
8309
  soname_spec='${libname}${release}${shared_ext}$major'
 
8310
  shlibpath_var=LD_LIBRARY_PATH
 
8311
  shlibpath_overrides_runpath=no
 
8312
  hardcode_into_libs=yes
 
8313
  dynamic_linker='GNU ld.so'
 
8314
  ;;
 
8315
 
 
8316
netbsd*)
 
8317
  version_type=sunos
 
8318
  need_lib_prefix=no
 
8319
  need_version=no
 
8320
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
8321
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
8322
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
8323
    dynamic_linker='NetBSD (a.out) ld.so'
 
8324
  else
 
8325
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
8326
    soname_spec='${libname}${release}${shared_ext}$major'
 
8327
    dynamic_linker='NetBSD ld.elf_so'
 
8328
  fi
 
8329
  shlibpath_var=LD_LIBRARY_PATH
 
8330
  shlibpath_overrides_runpath=yes
 
8331
  hardcode_into_libs=yes
 
8332
  ;;
 
8333
 
 
8334
newsos6)
 
8335
  version_type=linux
 
8336
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8337
  shlibpath_var=LD_LIBRARY_PATH
 
8338
  shlibpath_overrides_runpath=yes
 
8339
  ;;
 
8340
 
 
8341
nto-qnx*)
 
8342
  version_type=linux
 
8343
  need_lib_prefix=no
 
8344
  need_version=no
 
8345
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8346
  soname_spec='${libname}${release}${shared_ext}$major'
 
8347
  shlibpath_var=LD_LIBRARY_PATH
 
8348
  shlibpath_overrides_runpath=yes
 
8349
  ;;
 
8350
 
 
8351
openbsd*)
 
8352
  version_type=sunos
 
8353
  need_lib_prefix=no
 
8354
  need_version=yes
 
8355
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
8356
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
8357
  shlibpath_var=LD_LIBRARY_PATH
 
8358
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
8359
    case $host_os in
 
8360
      openbsd2.[89] | openbsd2.[89].*)
 
8361
        shlibpath_overrides_runpath=no
 
8362
        ;;
 
8363
      *)
 
8364
        shlibpath_overrides_runpath=yes
 
8365
        ;;
 
8366
      esac
 
8367
  else
 
8368
    shlibpath_overrides_runpath=yes
 
8369
  fi
 
8370
  ;;
 
8371
 
 
8372
os2*)
 
8373
  libname_spec='$name'
 
8374
  shrext_cmds=".dll"
 
8375
  need_lib_prefix=no
 
8376
  library_names_spec='$libname${shared_ext} $libname.a'
 
8377
  dynamic_linker='OS/2 ld.exe'
 
8378
  shlibpath_var=LIBPATH
 
8379
  ;;
 
8380
 
 
8381
osf3* | osf4* | osf5*)
 
8382
  version_type=osf
 
8383
  need_lib_prefix=no
 
8384
  need_version=no
 
8385
  soname_spec='${libname}${release}${shared_ext}$major'
 
8386
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8387
  shlibpath_var=LD_LIBRARY_PATH
 
8388
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
8389
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
8390
  ;;
 
8391
 
 
8392
sco3.2v5*)
 
8393
  version_type=osf
 
8394
  soname_spec='${libname}${release}${shared_ext}$major'
 
8395
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8396
  shlibpath_var=LD_LIBRARY_PATH
 
8397
  ;;
 
8398
 
 
8399
solaris*)
 
8400
  version_type=linux
 
8401
  need_lib_prefix=no
 
8402
  need_version=no
 
8403
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8404
  soname_spec='${libname}${release}${shared_ext}$major'
 
8405
  shlibpath_var=LD_LIBRARY_PATH
 
8406
  shlibpath_overrides_runpath=yes
 
8407
  hardcode_into_libs=yes
 
8408
  # ldd complains unless libraries are executable
 
8409
  postinstall_cmds='chmod +x $lib'
 
8410
  ;;
 
8411
 
 
8412
sunos4*)
 
8413
  version_type=sunos
 
8414
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
8415
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
8416
  shlibpath_var=LD_LIBRARY_PATH
 
8417
  shlibpath_overrides_runpath=yes
 
8418
  if test "$with_gnu_ld" = yes; then
 
8419
    need_lib_prefix=no
 
8420
  fi
 
8421
  need_version=yes
 
8422
  ;;
 
8423
 
 
8424
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
8425
  version_type=linux
 
8426
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8427
  soname_spec='${libname}${release}${shared_ext}$major'
 
8428
  shlibpath_var=LD_LIBRARY_PATH
 
8429
  case $host_vendor in
 
8430
    sni)
 
8431
      shlibpath_overrides_runpath=no
 
8432
      need_lib_prefix=no
 
8433
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
8434
      runpath_var=LD_RUN_PATH
 
8435
      ;;
 
8436
    siemens)
 
8437
      need_lib_prefix=no
 
8438
      ;;
 
8439
    motorola)
 
8440
      need_lib_prefix=no
 
8441
      need_version=no
 
8442
      shlibpath_overrides_runpath=no
 
8443
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
8444
      ;;
 
8445
  esac
 
8446
  ;;
 
8447
 
 
8448
sysv4*MP*)
 
8449
  if test -d /usr/nec ;then
 
8450
    version_type=linux
 
8451
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
8452
    soname_spec='$libname${shared_ext}.$major'
 
8453
    shlibpath_var=LD_LIBRARY_PATH
 
8454
  fi
 
8455
  ;;
 
8456
 
 
8457
uts4*)
 
8458
  version_type=linux
 
8459
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8460
  soname_spec='${libname}${release}${shared_ext}$major'
 
8461
  shlibpath_var=LD_LIBRARY_PATH
 
8462
  ;;
 
8463
 
 
8464
*)
 
8465
  dynamic_linker=no
 
8466
  ;;
 
8467
esac
 
8468
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
8469
echo "${ECHO_T}$dynamic_linker" >&6
 
8470
test "$dynamic_linker" = no && can_build_shared=no
 
8471
 
6169
8472
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6170
8473
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6171
8474
hardcode_action=
6172
8475
if test -n "$hardcode_libdir_flag_spec" || \
6173
 
   test -n "$runpath_var"; then
 
8476
   test -n "$runpath_var " || \
 
8477
   test "X$hardcode_automatic"="Xyes" ; then
6174
8478
 
6175
8479
  # We can hardcode non-existant directories.
6176
8480
  if test "$hardcode_direct" != no &&
6177
8481
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
6178
8482
     # have to relink, otherwise we might link with an installed library
6179
8483
     # when we should be linking with a yet-to-be-installed one
6180
 
     ## test "$hardcode_shlibpath_var" != no &&
 
8484
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
6181
8485
     test "$hardcode_minus_L" != no; then
6182
8486
    # Linking always hardcodes the temporary library directory.
6183
8487
    hardcode_action=relink
6193
8497
echo "$as_me:$LINENO: result: $hardcode_action" >&5
6194
8498
echo "${ECHO_T}$hardcode_action" >&6
6195
8499
 
 
8500
if test "$hardcode_action" = relink; then
 
8501
  # Fast installation is not supported
 
8502
  enable_fast_install=no
 
8503
elif test "$shlibpath_overrides_runpath" = yes ||
 
8504
     test "$enable_shared" = no; then
 
8505
  # Fast installation is not necessary
 
8506
  enable_fast_install=needless
 
8507
fi
 
8508
 
6196
8509
striplib=
6197
8510
old_striplib=
6198
8511
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6203
8516
  echo "$as_me:$LINENO: result: yes" >&5
6204
8517
echo "${ECHO_T}yes" >&6
6205
8518
else
6206
 
  echo "$as_me:$LINENO: result: no" >&5
6207
 
echo "${ECHO_T}no" >&6
6208
 
fi
6209
 
 
6210
 
reload_cmds='$LD$reload_flag -o $output$reload_objs'
6211
 
test -z "$deplibs_check_method" && deplibs_check_method=unknown
6212
 
 
6213
 
# PORTME Fill in your ld.so characteristics
6214
 
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6215
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6216
 
library_names_spec=
6217
 
libname_spec='lib$name'
6218
 
soname_spec=
6219
 
postinstall_cmds=
6220
 
postuninstall_cmds=
6221
 
finish_cmds=
6222
 
finish_eval=
6223
 
shlibpath_var=
6224
 
shlibpath_overrides_runpath=unknown
6225
 
version_type=none
6226
 
dynamic_linker="$host_os ld.so"
6227
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
6228
 
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6229
 
 
6230
 
case $host_os in
6231
 
aix3*)
6232
 
  version_type=linux
6233
 
  library_names_spec='${libname}${release}.so$versuffix $libname.a'
6234
 
  shlibpath_var=LIBPATH
6235
 
 
6236
 
  # AIX has no versioning support, so we append a major version to the name.
6237
 
  soname_spec='${libname}${release}.so$major'
6238
 
  ;;
6239
 
 
6240
 
aix4* | aix5*)
6241
 
  version_type=linux
6242
 
  need_lib_prefix=no
6243
 
  need_version=no
6244
 
  hardcode_into_libs=yes
6245
 
  if test "$host_cpu" = ia64; then
6246
 
    # AIX 5 supports IA64
6247
 
    library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6248
 
    shlibpath_var=LD_LIBRARY_PATH
6249
 
  else
6250
 
    # With GCC up to 2.95.x, collect2 would create an import file
6251
 
    # for dependence libraries.  The import file would start with
6252
 
    # the line `#! .'.  This would cause the generated library to
6253
 
    # depend on `.', always an invalid library.  This was fixed in
6254
 
    # development snapshots of GCC prior to 3.0.
6255
 
    case $host_os in
6256
 
      aix4 | aix4.[01] | aix4.[01].*)
6257
 
        if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6258
 
             echo ' yes '
6259
 
             echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6260
 
          :
6261
 
        else
6262
 
          can_build_shared=no
6263
 
        fi
6264
 
        ;;
6265
 
    esac
6266
 
    # AIX (on Power*) has no versioning support, so currently we can
6267
 
    # not hardcode correct soname into executable. Probably we can
6268
 
    # add versioning support to collect2, so additional links can
6269
 
    # be useful in future.
6270
 
    if test "$aix_use_runtimelinking" = yes; then
6271
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6272
 
      # instead of lib<name>.a to let people know that these are not
6273
 
      # typical AIX shared libraries.
6274
 
      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6275
 
    else
6276
 
      # We preserve .a as extension for shared libraries through AIX4.2
6277
 
      # and later when we are not doing run time linking.
6278
 
      library_names_spec='${libname}${release}.a $libname.a'
6279
 
      soname_spec='${libname}${release}.so$major'
6280
 
    fi
6281
 
    shlibpath_var=LIBPATH
6282
 
  fi
6283
 
  hardcode_into_libs=yes
6284
 
  ;;
6285
 
 
6286
 
amigaos*)
6287
 
  library_names_spec='$libname.ixlibrary $libname.a'
6288
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
6289
 
  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'
6290
 
  ;;
6291
 
 
6292
 
beos*)
6293
 
  library_names_spec='${libname}.so'
6294
 
  dynamic_linker="$host_os ld.so"
6295
 
  shlibpath_var=LIBRARY_PATH
6296
 
  ;;
6297
 
 
6298
 
bsdi4*)
6299
 
  version_type=linux
6300
 
  need_version=no
6301
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6302
 
  soname_spec='${libname}${release}.so$major'
6303
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6304
 
  shlibpath_var=LD_LIBRARY_PATH
6305
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6306
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6307
 
  export_dynamic_flag_spec=-rdynamic
6308
 
  # the default ld.so.conf also contains /usr/contrib/lib and
6309
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6310
 
  # libtool to hard-code these into programs
6311
 
  ;;
6312
 
 
6313
 
cygwin* | mingw* | pw32*)
6314
 
  version_type=windows
6315
 
  need_version=no
6316
 
  need_lib_prefix=no
6317
 
  case $GCC,$host_os in
6318
 
  yes,cygwin*)
6319
 
    library_names_spec='$libname.dll.a'
6320
 
    soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6321
 
    postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6322
 
      dldir=$destdir/`dirname \$dlpath`~
6323
 
      test -d \$dldir || mkdir -p \$dldir~
6324
 
      $install_prog .libs/$dlname \$dldir/$dlname'
6325
 
    postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6326
 
      dlpath=$dir/\$dldll~
6327
 
       $rm \$dlpath'
6328
 
    ;;
6329
 
  yes,mingw*)
6330
 
    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6331
 
    sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
6332
 
    ;;
6333
 
  yes,pw32*)
6334
 
    library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6335
 
    ;;
6336
 
  *)
6337
 
    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6338
 
    ;;
6339
 
  esac
6340
 
  dynamic_linker='Win32 ld.exe'
6341
 
  # FIXME: first we should search . and the directory the executable is in
6342
 
  shlibpath_var=PATH
6343
 
  ;;
6344
 
 
6345
 
darwin* | rhapsody*)
6346
 
  dynamic_linker="$host_os dyld"
6347
 
  version_type=darwin
6348
 
  need_lib_prefix=no
6349
 
  need_version=no
6350
 
  # FIXME: Relying on posixy $() will cause problems for
6351
 
  #        cross-compilation, but unfortunately the echo tests do not
6352
 
  #        yet detect zsh echo's removal of \ escapes.
6353
 
  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)'
6354
 
  soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6355
 
  shlibpath_overrides_runpath=yes
6356
 
  shlibpath_var=DYLD_LIBRARY_PATH
6357
 
  ;;
6358
 
 
6359
 
freebsd1*)
6360
 
  dynamic_linker=no
6361
 
  ;;
6362
 
 
6363
 
freebsd*)
6364
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6365
 
  version_type=freebsd-$objformat
6366
 
  case $version_type in
6367
 
    freebsd-elf*)
6368
 
      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6369
 
      need_version=no
6370
 
      need_lib_prefix=no
6371
 
      ;;
6372
 
    freebsd-*)
6373
 
      library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6374
 
      need_version=yes
6375
 
      ;;
6376
 
  esac
6377
 
  shlibpath_var=LD_LIBRARY_PATH
6378
 
  case $host_os in
6379
 
  freebsd2*)
6380
 
    shlibpath_overrides_runpath=yes
6381
 
    ;;
6382
 
  *)
6383
 
    shlibpath_overrides_runpath=no
6384
 
    hardcode_into_libs=yes
6385
 
    ;;
6386
 
  esac
6387
 
  ;;
6388
 
 
6389
 
gnu*)
6390
 
  version_type=linux
6391
 
  need_lib_prefix=no
6392
 
  need_version=no
6393
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6394
 
  soname_spec='${libname}${release}.so$major'
6395
 
  shlibpath_var=LD_LIBRARY_PATH
6396
 
  hardcode_into_libs=yes
6397
 
  ;;
6398
 
 
6399
 
hpux9* | hpux10* | hpux11*)
6400
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
6401
 
  # link against other versions.
6402
 
  dynamic_linker="$host_os dld.sl"
6403
 
  version_type=sunos
6404
 
  need_lib_prefix=no
6405
 
  need_version=no
6406
 
  shlibpath_var=SHLIB_PATH
6407
 
  shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6408
 
  library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6409
 
  soname_spec='${libname}${release}.sl$major'
6410
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
6411
 
  postinstall_cmds='chmod 555 $lib'
6412
 
  ;;
6413
 
 
6414
 
irix5* | irix6* | nonstopux*)
6415
 
  case $host_os in
6416
 
    nonstopux*) version_type=nonstopux ;;
6417
 
    *)          version_type=irix ;;
6418
 
  esac
6419
 
  need_lib_prefix=no
6420
 
  need_version=no
6421
 
  soname_spec='${libname}${release}.so$major'
6422
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6423
 
  case $host_os in
6424
 
  irix5* | nonstopux*)
6425
 
    libsuff= shlibsuff=
6426
 
    ;;
6427
 
  *)
6428
 
    case $LD in # libtool.m4 will add one of these switches to LD
6429
 
    *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6430
 
    *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6431
 
    *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6432
 
    *) libsuff= shlibsuff= libmagic=never-match;;
6433
 
    esac
6434
 
    ;;
6435
 
  esac
6436
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6437
 
  shlibpath_overrides_runpath=no
6438
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6439
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6440
 
  ;;
6441
 
 
6442
 
# No shared lib support for Linux oldld, aout, or coff.
6443
 
linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6444
 
  dynamic_linker=no
6445
 
  ;;
6446
 
 
6447
 
# This must be Linux ELF.
6448
 
linux-gnu*)
6449
 
  version_type=linux
6450
 
  need_lib_prefix=no
6451
 
  need_version=no
6452
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6453
 
  soname_spec='${libname}${release}.so$major'
6454
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6455
 
  shlibpath_var=LD_LIBRARY_PATH
6456
 
  shlibpath_overrides_runpath=no
6457
 
  # This implies no fast_install, which is unacceptable.
6458
 
  # Some rework will be needed to allow for fast_install
6459
 
  # before this can be enabled.
6460
 
  hardcode_into_libs=yes
6461
 
 
6462
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
6463
 
  # powerpc, because MkLinux only supported shared libraries with the
6464
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
6465
 
  # most powerpc-linux boxes support dynamic linking these days and
6466
 
  # people can always --disable-shared, the test was removed, and we
6467
 
  # assume the GNU/Linux dynamic linker is in use.
6468
 
  dynamic_linker='GNU/Linux ld.so'
6469
 
 
6470
 
  # Find out which ABI we are using (multilib Linux x86_64 hack).
6471
 
  libsuff=
6472
 
  case "$host_cpu" in
6473
 
  x86_64*|s390x*)
6474
 
    echo '#line 6474 "configure"' > conftest.$ac_ext
6475
 
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6476
 
  (eval $ac_compile) 2>&5
6477
 
  ac_status=$?
6478
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6479
 
  (exit $ac_status); }; then
6480
 
      case `/usr/bin/file conftest.$ac_objext` in
6481
 
      *64-bit*)
6482
 
        libsuff=64
6483
 
        ;;
6484
 
      esac
6485
 
    fi
6486
 
    rm -rf conftest*
6487
 
    ;;
6488
 
  *)
6489
 
    ;;
6490
 
  esac
6491
 
  sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
6492
 
  sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
6493
 
  ;;
6494
 
 
6495
 
netbsd*)
6496
 
  version_type=sunos
6497
 
  need_lib_prefix=no
6498
 
  need_version=no
6499
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6500
 
    library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6501
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6502
 
    dynamic_linker='NetBSD (a.out) ld.so'
6503
 
  else
6504
 
    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6505
 
    soname_spec='${libname}${release}.so$major'
6506
 
    dynamic_linker='NetBSD ld.elf_so'
6507
 
  fi
6508
 
  shlibpath_var=LD_LIBRARY_PATH
6509
 
  shlibpath_overrides_runpath=yes
6510
 
  hardcode_into_libs=yes
6511
 
  ;;
6512
 
 
6513
 
newsos6)
6514
 
  version_type=linux
6515
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6516
 
  shlibpath_var=LD_LIBRARY_PATH
6517
 
  shlibpath_overrides_runpath=yes
6518
 
  ;;
6519
 
 
6520
 
openbsd*)
6521
 
  version_type=sunos
6522
 
  need_lib_prefix=no
6523
 
  need_version=no
6524
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6525
 
    case "$host_os" in
6526
 
    openbsd2.[89] | openbsd2.[89].*)
6527
 
      shlibpath_overrides_runpath=no
6528
 
      ;;
6529
 
    *)
6530
 
      shlibpath_overrides_runpath=yes
6531
 
      ;;
6532
 
    esac
6533
 
  else
6534
 
    shlibpath_overrides_runpath=yes
6535
 
  fi
6536
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6537
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6538
 
  shlibpath_var=LD_LIBRARY_PATH
6539
 
  ;;
6540
 
 
6541
 
os2*)
6542
 
  libname_spec='$name'
6543
 
  need_lib_prefix=no
6544
 
  library_names_spec='$libname.dll $libname.a'
6545
 
  dynamic_linker='OS/2 ld.exe'
6546
 
  shlibpath_var=LIBPATH
6547
 
  ;;
6548
 
 
6549
 
osf3* | osf4* | osf5*)
6550
 
  version_type=osf
6551
 
  need_version=no
6552
 
  soname_spec='${libname}${release}.so$major'
6553
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6554
 
  shlibpath_var=LD_LIBRARY_PATH
6555
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6556
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6557
 
  hardcode_into_libs=yes
6558
 
  ;;
6559
 
 
6560
 
sco3.2v5*)
6561
 
  version_type=osf
6562
 
  soname_spec='${libname}${release}.so$major'
6563
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6564
 
  shlibpath_var=LD_LIBRARY_PATH
6565
 
  ;;
6566
 
 
6567
 
solaris*)
6568
 
  version_type=linux
6569
 
  need_lib_prefix=no
6570
 
  need_version=no
6571
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6572
 
  soname_spec='${libname}${release}.so$major'
6573
 
  shlibpath_var=LD_LIBRARY_PATH
6574
 
  shlibpath_overrides_runpath=yes
6575
 
  hardcode_into_libs=yes
6576
 
  # ldd complains unless libraries are executable
6577
 
  postinstall_cmds='chmod +x $lib'
6578
 
  ;;
6579
 
 
6580
 
sunos4*)
6581
 
  version_type=sunos
6582
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6583
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6584
 
  shlibpath_var=LD_LIBRARY_PATH
6585
 
  shlibpath_overrides_runpath=yes
6586
 
  if test "$with_gnu_ld" = yes; then
6587
 
    need_lib_prefix=no
6588
 
  fi
6589
 
  need_version=yes
6590
 
  ;;
6591
 
 
6592
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6593
 
  version_type=linux
6594
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6595
 
  soname_spec='${libname}${release}.so$major'
6596
 
  shlibpath_var=LD_LIBRARY_PATH
6597
 
  case $host_vendor in
6598
 
    sni)
6599
 
      shlibpath_overrides_runpath=no
6600
 
      need_lib_prefix=no
6601
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
6602
 
      runpath_var=LD_RUN_PATH
6603
 
      ;;
6604
 
    siemens)
6605
 
      need_lib_prefix=no
6606
 
      ;;
6607
 
    motorola)
6608
 
      need_lib_prefix=no
6609
 
      need_version=no
6610
 
      shlibpath_overrides_runpath=no
6611
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6612
 
      ;;
6613
 
  esac
6614
 
  ;;
6615
 
 
6616
 
uts4*)
6617
 
  version_type=linux
6618
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6619
 
  soname_spec='${libname}${release}.so$major'
6620
 
  shlibpath_var=LD_LIBRARY_PATH
6621
 
  ;;
6622
 
 
6623
 
dgux*)
6624
 
  version_type=linux
6625
 
  need_lib_prefix=no
6626
 
  need_version=no
6627
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6628
 
  soname_spec='${libname}${release}.so$major'
6629
 
  shlibpath_var=LD_LIBRARY_PATH
6630
 
  ;;
6631
 
 
6632
 
sysv4*MP*)
6633
 
  if test -d /usr/nec ;then
6634
 
    version_type=linux
6635
 
    library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6636
 
    soname_spec='$libname.so.$major'
6637
 
    shlibpath_var=LD_LIBRARY_PATH
6638
 
  fi
6639
 
  ;;
6640
 
 
6641
 
*)
6642
 
  dynamic_linker=no
6643
 
  ;;
6644
 
esac
6645
 
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6646
 
echo "${ECHO_T}$dynamic_linker" >&6
6647
 
test "$dynamic_linker" = no && can_build_shared=no
6648
 
 
6649
 
# Report the final consequences.
 
8519
# FIXME - insert some real tests, host_os isn't really good enough
 
8520
  case $host_os in
 
8521
   darwin*)
 
8522
       if test -n "$STRIP" ; then
 
8523
         striplib="$STRIP -x"
 
8524
         echo "$as_me:$LINENO: result: yes" >&5
 
8525
echo "${ECHO_T}yes" >&6
 
8526
       else
 
8527
  echo "$as_me:$LINENO: result: no" >&5
 
8528
echo "${ECHO_T}no" >&6
 
8529
fi
 
8530
       ;;
 
8531
   *)
 
8532
  echo "$as_me:$LINENO: result: no" >&5
 
8533
echo "${ECHO_T}no" >&6
 
8534
    ;;
 
8535
  esac
 
8536
fi
 
8537
 
 
8538
if test "x$enable_dlopen" != xyes; then
 
8539
  enable_dlopen=unknown
 
8540
  enable_dlopen_self=unknown
 
8541
  enable_dlopen_self_static=unknown
 
8542
else
 
8543
  lt_cv_dlopen=no
 
8544
  lt_cv_dlopen_libs=
 
8545
 
 
8546
  case $host_os in
 
8547
  beos*)
 
8548
    lt_cv_dlopen="load_add_on"
 
8549
    lt_cv_dlopen_libs=
 
8550
    lt_cv_dlopen_self=yes
 
8551
    ;;
 
8552
 
 
8553
  mingw* | pw32*)
 
8554
    lt_cv_dlopen="LoadLibrary"
 
8555
    lt_cv_dlopen_libs=
 
8556
   ;;
 
8557
 
 
8558
  cygwin*)
 
8559
    lt_cv_dlopen="dlopen"
 
8560
    lt_cv_dlopen_libs=
 
8561
   ;;
 
8562
 
 
8563
  darwin*)
 
8564
  # if libdl is installed we need to link against it
 
8565
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
8566
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
8567
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
8568
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8569
else
 
8570
  ac_check_lib_save_LIBS=$LIBS
 
8571
LIBS="-ldl  $LIBS"
 
8572
cat >conftest.$ac_ext <<_ACEOF
 
8573
/* confdefs.h.  */
 
8574
_ACEOF
 
8575
cat confdefs.h >>conftest.$ac_ext
 
8576
cat >>conftest.$ac_ext <<_ACEOF
 
8577
/* end confdefs.h.  */
 
8578
 
 
8579
/* Override any gcc2 internal prototype to avoid an error.  */
 
8580
#ifdef __cplusplus
 
8581
extern "C"
 
8582
#endif
 
8583
/* We use char because int might match the return type of a gcc2
 
8584
   builtin and then its argument prototype would still apply.  */
 
8585
char dlopen ();
 
8586
int
 
8587
main ()
 
8588
{
 
8589
dlopen ();
 
8590
  ;
 
8591
  return 0;
 
8592
}
 
8593
_ACEOF
 
8594
rm -f conftest.$ac_objext conftest$ac_exeext
 
8595
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8596
  (eval $ac_link) 2>conftest.er1
 
8597
  ac_status=$?
 
8598
  grep -v '^ *+' conftest.er1 >conftest.err
 
8599
  rm -f conftest.er1
 
8600
  cat conftest.err >&5
 
8601
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8602
  (exit $ac_status); } &&
 
8603
         { ac_try='test -z "$ac_c_werror_flag"
 
8604
                         || test ! -s conftest.err'
 
8605
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8606
  (eval $ac_try) 2>&5
 
8607
  ac_status=$?
 
8608
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8609
  (exit $ac_status); }; } &&
 
8610
         { ac_try='test -s conftest$ac_exeext'
 
8611
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8612
  (eval $ac_try) 2>&5
 
8613
  ac_status=$?
 
8614
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8615
  (exit $ac_status); }; }; then
 
8616
  ac_cv_lib_dl_dlopen=yes
 
8617
else
 
8618
  echo "$as_me: failed program was:" >&5
 
8619
sed 's/^/| /' conftest.$ac_ext >&5
 
8620
 
 
8621
ac_cv_lib_dl_dlopen=no
 
8622
fi
 
8623
rm -f conftest.err conftest.$ac_objext \
 
8624
      conftest$ac_exeext conftest.$ac_ext
 
8625
LIBS=$ac_check_lib_save_LIBS
 
8626
fi
 
8627
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
8628
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
8629
if test $ac_cv_lib_dl_dlopen = yes; then
 
8630
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
8631
else
 
8632
 
 
8633
    lt_cv_dlopen="dyld"
 
8634
    lt_cv_dlopen_libs=
 
8635
    lt_cv_dlopen_self=yes
 
8636
 
 
8637
fi
 
8638
 
 
8639
   ;;
 
8640
 
 
8641
  *)
 
8642
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
8643
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
8644
if test "${ac_cv_func_shl_load+set}" = set; then
 
8645
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8646
else
 
8647
  cat >conftest.$ac_ext <<_ACEOF
 
8648
/* confdefs.h.  */
 
8649
_ACEOF
 
8650
cat confdefs.h >>conftest.$ac_ext
 
8651
cat >>conftest.$ac_ext <<_ACEOF
 
8652
/* end confdefs.h.  */
 
8653
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
8654
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
8655
#define shl_load innocuous_shl_load
 
8656
 
 
8657
/* System header to define __stub macros and hopefully few prototypes,
 
8658
    which can conflict with char shl_load (); below.
 
8659
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
8660
    <limits.h> exists even on freestanding compilers.  */
 
8661
 
 
8662
#ifdef __STDC__
 
8663
# include <limits.h>
 
8664
#else
 
8665
# include <assert.h>
 
8666
#endif
 
8667
 
 
8668
#undef shl_load
 
8669
 
 
8670
/* Override any gcc2 internal prototype to avoid an error.  */
 
8671
#ifdef __cplusplus
 
8672
extern "C"
 
8673
{
 
8674
#endif
 
8675
/* We use char because int might match the return type of a gcc2
 
8676
   builtin and then its argument prototype would still apply.  */
 
8677
char shl_load ();
 
8678
/* The GNU C library defines this for functions which it implements
 
8679
    to always fail with ENOSYS.  Some functions are actually named
 
8680
    something starting with __ and the normal name is an alias.  */
 
8681
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
8682
choke me
 
8683
#else
 
8684
char (*f) () = shl_load;
 
8685
#endif
 
8686
#ifdef __cplusplus
 
8687
}
 
8688
#endif
 
8689
 
 
8690
int
 
8691
main ()
 
8692
{
 
8693
return f != shl_load;
 
8694
  ;
 
8695
  return 0;
 
8696
}
 
8697
_ACEOF
 
8698
rm -f conftest.$ac_objext conftest$ac_exeext
 
8699
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8700
  (eval $ac_link) 2>conftest.er1
 
8701
  ac_status=$?
 
8702
  grep -v '^ *+' conftest.er1 >conftest.err
 
8703
  rm -f conftest.er1
 
8704
  cat conftest.err >&5
 
8705
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8706
  (exit $ac_status); } &&
 
8707
         { ac_try='test -z "$ac_c_werror_flag"
 
8708
                         || test ! -s conftest.err'
 
8709
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8710
  (eval $ac_try) 2>&5
 
8711
  ac_status=$?
 
8712
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8713
  (exit $ac_status); }; } &&
 
8714
         { ac_try='test -s conftest$ac_exeext'
 
8715
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8716
  (eval $ac_try) 2>&5
 
8717
  ac_status=$?
 
8718
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8719
  (exit $ac_status); }; }; then
 
8720
  ac_cv_func_shl_load=yes
 
8721
else
 
8722
  echo "$as_me: failed program was:" >&5
 
8723
sed 's/^/| /' conftest.$ac_ext >&5
 
8724
 
 
8725
ac_cv_func_shl_load=no
 
8726
fi
 
8727
rm -f conftest.err conftest.$ac_objext \
 
8728
      conftest$ac_exeext conftest.$ac_ext
 
8729
fi
 
8730
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
8731
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
8732
if test $ac_cv_func_shl_load = yes; then
 
8733
  lt_cv_dlopen="shl_load"
 
8734
else
 
8735
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
8736
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
8737
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
8738
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8739
else
 
8740
  ac_check_lib_save_LIBS=$LIBS
 
8741
LIBS="-ldld  $LIBS"
 
8742
cat >conftest.$ac_ext <<_ACEOF
 
8743
/* confdefs.h.  */
 
8744
_ACEOF
 
8745
cat confdefs.h >>conftest.$ac_ext
 
8746
cat >>conftest.$ac_ext <<_ACEOF
 
8747
/* end confdefs.h.  */
 
8748
 
 
8749
/* Override any gcc2 internal prototype to avoid an error.  */
 
8750
#ifdef __cplusplus
 
8751
extern "C"
 
8752
#endif
 
8753
/* We use char because int might match the return type of a gcc2
 
8754
   builtin and then its argument prototype would still apply.  */
 
8755
char shl_load ();
 
8756
int
 
8757
main ()
 
8758
{
 
8759
shl_load ();
 
8760
  ;
 
8761
  return 0;
 
8762
}
 
8763
_ACEOF
 
8764
rm -f conftest.$ac_objext conftest$ac_exeext
 
8765
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8766
  (eval $ac_link) 2>conftest.er1
 
8767
  ac_status=$?
 
8768
  grep -v '^ *+' conftest.er1 >conftest.err
 
8769
  rm -f conftest.er1
 
8770
  cat conftest.err >&5
 
8771
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8772
  (exit $ac_status); } &&
 
8773
         { ac_try='test -z "$ac_c_werror_flag"
 
8774
                         || test ! -s conftest.err'
 
8775
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8776
  (eval $ac_try) 2>&5
 
8777
  ac_status=$?
 
8778
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8779
  (exit $ac_status); }; } &&
 
8780
         { ac_try='test -s conftest$ac_exeext'
 
8781
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8782
  (eval $ac_try) 2>&5
 
8783
  ac_status=$?
 
8784
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8785
  (exit $ac_status); }; }; then
 
8786
  ac_cv_lib_dld_shl_load=yes
 
8787
else
 
8788
  echo "$as_me: failed program was:" >&5
 
8789
sed 's/^/| /' conftest.$ac_ext >&5
 
8790
 
 
8791
ac_cv_lib_dld_shl_load=no
 
8792
fi
 
8793
rm -f conftest.err conftest.$ac_objext \
 
8794
      conftest$ac_exeext conftest.$ac_ext
 
8795
LIBS=$ac_check_lib_save_LIBS
 
8796
fi
 
8797
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
8798
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
8799
if test $ac_cv_lib_dld_shl_load = yes; then
 
8800
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
8801
else
 
8802
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
8803
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
8804
if test "${ac_cv_func_dlopen+set}" = set; then
 
8805
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8806
else
 
8807
  cat >conftest.$ac_ext <<_ACEOF
 
8808
/* confdefs.h.  */
 
8809
_ACEOF
 
8810
cat confdefs.h >>conftest.$ac_ext
 
8811
cat >>conftest.$ac_ext <<_ACEOF
 
8812
/* end confdefs.h.  */
 
8813
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
8814
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
8815
#define dlopen innocuous_dlopen
 
8816
 
 
8817
/* System header to define __stub macros and hopefully few prototypes,
 
8818
    which can conflict with char dlopen (); below.
 
8819
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
8820
    <limits.h> exists even on freestanding compilers.  */
 
8821
 
 
8822
#ifdef __STDC__
 
8823
# include <limits.h>
 
8824
#else
 
8825
# include <assert.h>
 
8826
#endif
 
8827
 
 
8828
#undef dlopen
 
8829
 
 
8830
/* Override any gcc2 internal prototype to avoid an error.  */
 
8831
#ifdef __cplusplus
 
8832
extern "C"
 
8833
{
 
8834
#endif
 
8835
/* We use char because int might match the return type of a gcc2
 
8836
   builtin and then its argument prototype would still apply.  */
 
8837
char dlopen ();
 
8838
/* The GNU C library defines this for functions which it implements
 
8839
    to always fail with ENOSYS.  Some functions are actually named
 
8840
    something starting with __ and the normal name is an alias.  */
 
8841
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
8842
choke me
 
8843
#else
 
8844
char (*f) () = dlopen;
 
8845
#endif
 
8846
#ifdef __cplusplus
 
8847
}
 
8848
#endif
 
8849
 
 
8850
int
 
8851
main ()
 
8852
{
 
8853
return f != dlopen;
 
8854
  ;
 
8855
  return 0;
 
8856
}
 
8857
_ACEOF
 
8858
rm -f conftest.$ac_objext conftest$ac_exeext
 
8859
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8860
  (eval $ac_link) 2>conftest.er1
 
8861
  ac_status=$?
 
8862
  grep -v '^ *+' conftest.er1 >conftest.err
 
8863
  rm -f conftest.er1
 
8864
  cat conftest.err >&5
 
8865
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8866
  (exit $ac_status); } &&
 
8867
         { ac_try='test -z "$ac_c_werror_flag"
 
8868
                         || test ! -s conftest.err'
 
8869
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8870
  (eval $ac_try) 2>&5
 
8871
  ac_status=$?
 
8872
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8873
  (exit $ac_status); }; } &&
 
8874
         { ac_try='test -s conftest$ac_exeext'
 
8875
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8876
  (eval $ac_try) 2>&5
 
8877
  ac_status=$?
 
8878
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8879
  (exit $ac_status); }; }; then
 
8880
  ac_cv_func_dlopen=yes
 
8881
else
 
8882
  echo "$as_me: failed program was:" >&5
 
8883
sed 's/^/| /' conftest.$ac_ext >&5
 
8884
 
 
8885
ac_cv_func_dlopen=no
 
8886
fi
 
8887
rm -f conftest.err conftest.$ac_objext \
 
8888
      conftest$ac_exeext conftest.$ac_ext
 
8889
fi
 
8890
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
8891
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
8892
if test $ac_cv_func_dlopen = yes; then
 
8893
  lt_cv_dlopen="dlopen"
 
8894
else
 
8895
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
8896
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
8897
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
8898
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8899
else
 
8900
  ac_check_lib_save_LIBS=$LIBS
 
8901
LIBS="-ldl  $LIBS"
 
8902
cat >conftest.$ac_ext <<_ACEOF
 
8903
/* confdefs.h.  */
 
8904
_ACEOF
 
8905
cat confdefs.h >>conftest.$ac_ext
 
8906
cat >>conftest.$ac_ext <<_ACEOF
 
8907
/* end confdefs.h.  */
 
8908
 
 
8909
/* Override any gcc2 internal prototype to avoid an error.  */
 
8910
#ifdef __cplusplus
 
8911
extern "C"
 
8912
#endif
 
8913
/* We use char because int might match the return type of a gcc2
 
8914
   builtin and then its argument prototype would still apply.  */
 
8915
char dlopen ();
 
8916
int
 
8917
main ()
 
8918
{
 
8919
dlopen ();
 
8920
  ;
 
8921
  return 0;
 
8922
}
 
8923
_ACEOF
 
8924
rm -f conftest.$ac_objext conftest$ac_exeext
 
8925
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8926
  (eval $ac_link) 2>conftest.er1
 
8927
  ac_status=$?
 
8928
  grep -v '^ *+' conftest.er1 >conftest.err
 
8929
  rm -f conftest.er1
 
8930
  cat conftest.err >&5
 
8931
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8932
  (exit $ac_status); } &&
 
8933
         { ac_try='test -z "$ac_c_werror_flag"
 
8934
                         || test ! -s conftest.err'
 
8935
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8936
  (eval $ac_try) 2>&5
 
8937
  ac_status=$?
 
8938
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8939
  (exit $ac_status); }; } &&
 
8940
         { ac_try='test -s conftest$ac_exeext'
 
8941
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8942
  (eval $ac_try) 2>&5
 
8943
  ac_status=$?
 
8944
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8945
  (exit $ac_status); }; }; then
 
8946
  ac_cv_lib_dl_dlopen=yes
 
8947
else
 
8948
  echo "$as_me: failed program was:" >&5
 
8949
sed 's/^/| /' conftest.$ac_ext >&5
 
8950
 
 
8951
ac_cv_lib_dl_dlopen=no
 
8952
fi
 
8953
rm -f conftest.err conftest.$ac_objext \
 
8954
      conftest$ac_exeext conftest.$ac_ext
 
8955
LIBS=$ac_check_lib_save_LIBS
 
8956
fi
 
8957
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
8958
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
8959
if test $ac_cv_lib_dl_dlopen = yes; then
 
8960
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
8961
else
 
8962
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
8963
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
8964
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
8965
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8966
else
 
8967
  ac_check_lib_save_LIBS=$LIBS
 
8968
LIBS="-lsvld  $LIBS"
 
8969
cat >conftest.$ac_ext <<_ACEOF
 
8970
/* confdefs.h.  */
 
8971
_ACEOF
 
8972
cat confdefs.h >>conftest.$ac_ext
 
8973
cat >>conftest.$ac_ext <<_ACEOF
 
8974
/* end confdefs.h.  */
 
8975
 
 
8976
/* Override any gcc2 internal prototype to avoid an error.  */
 
8977
#ifdef __cplusplus
 
8978
extern "C"
 
8979
#endif
 
8980
/* We use char because int might match the return type of a gcc2
 
8981
   builtin and then its argument prototype would still apply.  */
 
8982
char dlopen ();
 
8983
int
 
8984
main ()
 
8985
{
 
8986
dlopen ();
 
8987
  ;
 
8988
  return 0;
 
8989
}
 
8990
_ACEOF
 
8991
rm -f conftest.$ac_objext conftest$ac_exeext
 
8992
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8993
  (eval $ac_link) 2>conftest.er1
 
8994
  ac_status=$?
 
8995
  grep -v '^ *+' conftest.er1 >conftest.err
 
8996
  rm -f conftest.er1
 
8997
  cat conftest.err >&5
 
8998
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8999
  (exit $ac_status); } &&
 
9000
         { ac_try='test -z "$ac_c_werror_flag"
 
9001
                         || test ! -s conftest.err'
 
9002
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9003
  (eval $ac_try) 2>&5
 
9004
  ac_status=$?
 
9005
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9006
  (exit $ac_status); }; } &&
 
9007
         { ac_try='test -s conftest$ac_exeext'
 
9008
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9009
  (eval $ac_try) 2>&5
 
9010
  ac_status=$?
 
9011
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9012
  (exit $ac_status); }; }; then
 
9013
  ac_cv_lib_svld_dlopen=yes
 
9014
else
 
9015
  echo "$as_me: failed program was:" >&5
 
9016
sed 's/^/| /' conftest.$ac_ext >&5
 
9017
 
 
9018
ac_cv_lib_svld_dlopen=no
 
9019
fi
 
9020
rm -f conftest.err conftest.$ac_objext \
 
9021
      conftest$ac_exeext conftest.$ac_ext
 
9022
LIBS=$ac_check_lib_save_LIBS
 
9023
fi
 
9024
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
9025
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
9026
if test $ac_cv_lib_svld_dlopen = yes; then
 
9027
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
9028
else
 
9029
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
9030
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
9031
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
9032
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9033
else
 
9034
  ac_check_lib_save_LIBS=$LIBS
 
9035
LIBS="-ldld  $LIBS"
 
9036
cat >conftest.$ac_ext <<_ACEOF
 
9037
/* confdefs.h.  */
 
9038
_ACEOF
 
9039
cat confdefs.h >>conftest.$ac_ext
 
9040
cat >>conftest.$ac_ext <<_ACEOF
 
9041
/* end confdefs.h.  */
 
9042
 
 
9043
/* Override any gcc2 internal prototype to avoid an error.  */
 
9044
#ifdef __cplusplus
 
9045
extern "C"
 
9046
#endif
 
9047
/* We use char because int might match the return type of a gcc2
 
9048
   builtin and then its argument prototype would still apply.  */
 
9049
char dld_link ();
 
9050
int
 
9051
main ()
 
9052
{
 
9053
dld_link ();
 
9054
  ;
 
9055
  return 0;
 
9056
}
 
9057
_ACEOF
 
9058
rm -f conftest.$ac_objext conftest$ac_exeext
 
9059
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9060
  (eval $ac_link) 2>conftest.er1
 
9061
  ac_status=$?
 
9062
  grep -v '^ *+' conftest.er1 >conftest.err
 
9063
  rm -f conftest.er1
 
9064
  cat conftest.err >&5
 
9065
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9066
  (exit $ac_status); } &&
 
9067
         { ac_try='test -z "$ac_c_werror_flag"
 
9068
                         || test ! -s conftest.err'
 
9069
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9070
  (eval $ac_try) 2>&5
 
9071
  ac_status=$?
 
9072
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9073
  (exit $ac_status); }; } &&
 
9074
         { ac_try='test -s conftest$ac_exeext'
 
9075
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9076
  (eval $ac_try) 2>&5
 
9077
  ac_status=$?
 
9078
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9079
  (exit $ac_status); }; }; then
 
9080
  ac_cv_lib_dld_dld_link=yes
 
9081
else
 
9082
  echo "$as_me: failed program was:" >&5
 
9083
sed 's/^/| /' conftest.$ac_ext >&5
 
9084
 
 
9085
ac_cv_lib_dld_dld_link=no
 
9086
fi
 
9087
rm -f conftest.err conftest.$ac_objext \
 
9088
      conftest$ac_exeext conftest.$ac_ext
 
9089
LIBS=$ac_check_lib_save_LIBS
 
9090
fi
 
9091
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
9092
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
9093
if test $ac_cv_lib_dld_dld_link = yes; then
 
9094
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
9095
fi
 
9096
 
 
9097
 
 
9098
fi
 
9099
 
 
9100
 
 
9101
fi
 
9102
 
 
9103
 
 
9104
fi
 
9105
 
 
9106
 
 
9107
fi
 
9108
 
 
9109
 
 
9110
fi
 
9111
 
 
9112
    ;;
 
9113
  esac
 
9114
 
 
9115
  if test "x$lt_cv_dlopen" != xno; then
 
9116
    enable_dlopen=yes
 
9117
  else
 
9118
    enable_dlopen=no
 
9119
  fi
 
9120
 
 
9121
  case $lt_cv_dlopen in
 
9122
  dlopen)
 
9123
    save_CPPFLAGS="$CPPFLAGS"
 
9124
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
9125
 
 
9126
    save_LDFLAGS="$LDFLAGS"
 
9127
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
9128
 
 
9129
    save_LIBS="$LIBS"
 
9130
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
9131
 
 
9132
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
9133
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
9134
if test "${lt_cv_dlopen_self+set}" = set; then
 
9135
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9136
else
 
9137
          if test "$cross_compiling" = yes; then :
 
9138
  lt_cv_dlopen_self=cross
 
9139
else
 
9140
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
9141
  lt_status=$lt_dlunknown
 
9142
  cat > conftest.$ac_ext <<EOF
 
9143
#line 9143 "configure"
 
9144
#include "confdefs.h"
 
9145
 
 
9146
#if HAVE_DLFCN_H
 
9147
#include <dlfcn.h>
 
9148
#endif
 
9149
 
 
9150
#include <stdio.h>
 
9151
 
 
9152
#ifdef RTLD_GLOBAL
 
9153
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
9154
#else
 
9155
#  ifdef DL_GLOBAL
 
9156
#    define LT_DLGLOBAL         DL_GLOBAL
 
9157
#  else
 
9158
#    define LT_DLGLOBAL         0
 
9159
#  endif
 
9160
#endif
 
9161
 
 
9162
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
9163
   find out it does not work in some platform. */
 
9164
#ifndef LT_DLLAZY_OR_NOW
 
9165
#  ifdef RTLD_LAZY
 
9166
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
9167
#  else
 
9168
#    ifdef DL_LAZY
 
9169
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
9170
#    else
 
9171
#      ifdef RTLD_NOW
 
9172
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
9173
#      else
 
9174
#        ifdef DL_NOW
 
9175
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
9176
#        else
 
9177
#          define LT_DLLAZY_OR_NOW      0
 
9178
#        endif
 
9179
#      endif
 
9180
#    endif
 
9181
#  endif
 
9182
#endif
 
9183
 
 
9184
#ifdef __cplusplus
 
9185
extern "C" void exit (int);
 
9186
#endif
 
9187
 
 
9188
void fnord() { int i=42;}
 
9189
int main ()
 
9190
{
 
9191
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
9192
  int status = $lt_dlunknown;
 
9193
 
 
9194
  if (self)
 
9195
    {
 
9196
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
9197
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
9198
      /* dlclose (self); */
 
9199
    }
 
9200
 
 
9201
    exit (status);
 
9202
}
 
9203
EOF
 
9204
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9205
  (eval $ac_link) 2>&5
 
9206
  ac_status=$?
 
9207
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9208
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
9209
    (./conftest; exit; ) 2>/dev/null
 
9210
    lt_status=$?
 
9211
    case x$lt_status in
 
9212
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
9213
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
9214
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
9215
    esac
 
9216
  else :
 
9217
    # compilation failed
 
9218
    lt_cv_dlopen_self=no
 
9219
  fi
 
9220
fi
 
9221
rm -fr conftest*
 
9222
 
 
9223
 
 
9224
fi
 
9225
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
9226
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
9227
 
 
9228
    if test "x$lt_cv_dlopen_self" = xyes; then
 
9229
      LDFLAGS="$LDFLAGS $link_static_flag"
 
9230
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
9231
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
9232
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
9233
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9234
else
 
9235
          if test "$cross_compiling" = yes; then :
 
9236
  lt_cv_dlopen_self_static=cross
 
9237
else
 
9238
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
9239
  lt_status=$lt_dlunknown
 
9240
  cat > conftest.$ac_ext <<EOF
 
9241
#line 9241 "configure"
 
9242
#include "confdefs.h"
 
9243
 
 
9244
#if HAVE_DLFCN_H
 
9245
#include <dlfcn.h>
 
9246
#endif
 
9247
 
 
9248
#include <stdio.h>
 
9249
 
 
9250
#ifdef RTLD_GLOBAL
 
9251
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
9252
#else
 
9253
#  ifdef DL_GLOBAL
 
9254
#    define LT_DLGLOBAL         DL_GLOBAL
 
9255
#  else
 
9256
#    define LT_DLGLOBAL         0
 
9257
#  endif
 
9258
#endif
 
9259
 
 
9260
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
9261
   find out it does not work in some platform. */
 
9262
#ifndef LT_DLLAZY_OR_NOW
 
9263
#  ifdef RTLD_LAZY
 
9264
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
9265
#  else
 
9266
#    ifdef DL_LAZY
 
9267
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
9268
#    else
 
9269
#      ifdef RTLD_NOW
 
9270
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
9271
#      else
 
9272
#        ifdef DL_NOW
 
9273
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
9274
#        else
 
9275
#          define LT_DLLAZY_OR_NOW      0
 
9276
#        endif
 
9277
#      endif
 
9278
#    endif
 
9279
#  endif
 
9280
#endif
 
9281
 
 
9282
#ifdef __cplusplus
 
9283
extern "C" void exit (int);
 
9284
#endif
 
9285
 
 
9286
void fnord() { int i=42;}
 
9287
int main ()
 
9288
{
 
9289
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
9290
  int status = $lt_dlunknown;
 
9291
 
 
9292
  if (self)
 
9293
    {
 
9294
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
9295
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
9296
      /* dlclose (self); */
 
9297
    }
 
9298
 
 
9299
    exit (status);
 
9300
}
 
9301
EOF
 
9302
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9303
  (eval $ac_link) 2>&5
 
9304
  ac_status=$?
 
9305
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9306
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
9307
    (./conftest; exit; ) 2>/dev/null
 
9308
    lt_status=$?
 
9309
    case x$lt_status in
 
9310
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
9311
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
9312
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
9313
    esac
 
9314
  else :
 
9315
    # compilation failed
 
9316
    lt_cv_dlopen_self_static=no
 
9317
  fi
 
9318
fi
 
9319
rm -fr conftest*
 
9320
 
 
9321
 
 
9322
fi
 
9323
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
9324
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
9325
    fi
 
9326
 
 
9327
    CPPFLAGS="$save_CPPFLAGS"
 
9328
    LDFLAGS="$save_LDFLAGS"
 
9329
    LIBS="$save_LIBS"
 
9330
    ;;
 
9331
  esac
 
9332
 
 
9333
  case $lt_cv_dlopen_self in
 
9334
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
9335
  *) enable_dlopen_self=unknown ;;
 
9336
  esac
 
9337
 
 
9338
  case $lt_cv_dlopen_self_static in
 
9339
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
9340
  *) enable_dlopen_self_static=unknown ;;
 
9341
  esac
 
9342
fi
 
9343
 
 
9344
 
 
9345
# Report which librarie types wil actually be built
6650
9346
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6651
9347
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6652
9348
echo "$as_me:$LINENO: result: $can_build_shared" >&5
6667
9363
  fi
6668
9364
  ;;
6669
9365
 
6670
 
aix4*)
 
9366
aix4* | aix5*)
6671
9367
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6672
9368
    test "$enable_shared" = yes && enable_static=no
6673
9369
  fi
6674
9370
  ;;
 
9371
  darwin* | rhapsody*)
 
9372
  if test "$GCC" = yes; then
 
9373
    archive_cmds_need_lc=no
 
9374
    case "$host_os" in
 
9375
    rhapsody* | darwin1.[012])
 
9376
      allow_undefined_flag='-undefined suppress'
 
9377
      ;;
 
9378
    *) # Darwin 1.3 on
 
9379
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
9380
        allow_undefined_flag='-flat_namespace -undefined suppress'
 
9381
      else
 
9382
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
9383
          10.[012])
 
9384
            allow_undefined_flag='-flat_namespace -undefined suppress'
 
9385
            ;;
 
9386
          10.*)
 
9387
            allow_undefined_flag='-undefined dynamic_lookup'
 
9388
            ;;
 
9389
        esac
 
9390
      fi
 
9391
      ;;
 
9392
    esac
 
9393
    output_verbose_link_cmd='echo'
 
9394
    archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
 
9395
    module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
9396
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
9397
    archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
9398
    module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
9399
    hardcode_direct=no
 
9400
    hardcode_automatic=yes
 
9401
    hardcode_shlibpath_var=unsupported
 
9402
    whole_archive_flag_spec='-all_load $convenience'
 
9403
    link_all_deplibs=yes
 
9404
  else
 
9405
    ld_shlibs=no
 
9406
  fi
 
9407
    ;;
6675
9408
esac
6676
9409
echo "$as_me:$LINENO: result: $enable_shared" >&5
6677
9410
echo "${ECHO_T}$enable_shared" >&6
6683
9416
echo "$as_me:$LINENO: result: $enable_static" >&5
6684
9417
echo "${ECHO_T}$enable_static" >&6
6685
9418
 
6686
 
if test "$hardcode_action" = relink; then
6687
 
  # Fast installation is not supported
6688
 
  enable_fast_install=no
6689
 
elif test "$shlibpath_overrides_runpath" = yes ||
6690
 
     test "$enable_shared" = no; then
6691
 
  # Fast installation is not necessary
6692
 
  enable_fast_install=needless
6693
 
fi
6694
 
 
6695
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6696
 
if test "$GCC" = yes; then
6697
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6698
 
fi
6699
 
 
6700
 
if test "x$enable_dlopen" != xyes; then
6701
 
  enable_dlopen=unknown
6702
 
  enable_dlopen_self=unknown
6703
 
  enable_dlopen_self_static=unknown
6704
 
else
6705
 
  lt_cv_dlopen=no
6706
 
  lt_cv_dlopen_libs=
6707
 
 
6708
 
  case $host_os in
6709
 
  beos*)
6710
 
    lt_cv_dlopen="load_add_on"
6711
 
    lt_cv_dlopen_libs=
6712
 
    lt_cv_dlopen_self=yes
6713
 
    ;;
6714
 
 
6715
 
  cygwin* | mingw* | pw32*)
6716
 
    lt_cv_dlopen="LoadLibrary"
6717
 
    lt_cv_dlopen_libs=
6718
 
   ;;
6719
 
 
6720
 
  *)
6721
 
    echo "$as_me:$LINENO: checking for shl_load" >&5
6722
 
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
6723
 
if test "${ac_cv_func_shl_load+set}" = set; then
6724
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6725
 
else
6726
 
  cat >conftest.$ac_ext <<_ACEOF
6727
 
#line $LINENO "configure"
6728
 
/* confdefs.h.  */
6729
 
_ACEOF
6730
 
cat confdefs.h >>conftest.$ac_ext
6731
 
cat >>conftest.$ac_ext <<_ACEOF
6732
 
/* end confdefs.h.  */
6733
 
/* System header to define __stub macros and hopefully few prototypes,
6734
 
    which can conflict with char shl_load (); below.
6735
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6736
 
    <limits.h> exists even on freestanding compilers.  */
6737
 
#ifdef __STDC__
6738
 
# include <limits.h>
6739
 
#else
6740
 
# include <assert.h>
6741
 
#endif
6742
 
/* Override any gcc2 internal prototype to avoid an error.  */
6743
 
#ifdef __cplusplus
6744
 
extern "C"
6745
 
{
6746
 
#endif
6747
 
/* We use char because int might match the return type of a gcc2
6748
 
   builtin and then its argument prototype would still apply.  */
6749
 
char shl_load ();
6750
 
/* The GNU C library defines this for functions which it implements
6751
 
    to always fail with ENOSYS.  Some functions are actually named
6752
 
    something starting with __ and the normal name is an alias.  */
6753
 
#if defined (__stub_shl_load) || defined (__stub___shl_load)
6754
 
choke me
6755
 
#else
6756
 
char (*f) () = shl_load;
6757
 
#endif
6758
 
#ifdef __cplusplus
6759
 
}
6760
 
#endif
6761
 
 
6762
 
int
6763
 
main ()
6764
 
{
6765
 
return f != shl_load;
6766
 
  ;
6767
 
  return 0;
6768
 
}
6769
 
_ACEOF
6770
 
rm -f conftest.$ac_objext conftest$ac_exeext
6771
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6772
 
  (eval $ac_link) 2>&5
6773
 
  ac_status=$?
6774
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6775
 
  (exit $ac_status); } &&
6776
 
         { ac_try='test -s conftest$ac_exeext'
6777
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6778
 
  (eval $ac_try) 2>&5
6779
 
  ac_status=$?
6780
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6781
 
  (exit $ac_status); }; }; then
6782
 
  ac_cv_func_shl_load=yes
6783
 
else
6784
 
  echo "$as_me: failed program was:" >&5
6785
 
sed 's/^/| /' conftest.$ac_ext >&5
6786
 
 
6787
 
ac_cv_func_shl_load=no
6788
 
fi
6789
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6790
 
fi
6791
 
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
6792
 
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
6793
 
if test $ac_cv_func_shl_load = yes; then
6794
 
  lt_cv_dlopen="shl_load"
6795
 
else
6796
 
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
6797
 
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
6798
 
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
6799
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6800
 
else
6801
 
  ac_check_lib_save_LIBS=$LIBS
6802
 
LIBS="-ldld  $LIBS"
6803
 
cat >conftest.$ac_ext <<_ACEOF
6804
 
#line $LINENO "configure"
6805
 
/* confdefs.h.  */
6806
 
_ACEOF
6807
 
cat confdefs.h >>conftest.$ac_ext
6808
 
cat >>conftest.$ac_ext <<_ACEOF
6809
 
/* end confdefs.h.  */
6810
 
 
6811
 
/* Override any gcc2 internal prototype to avoid an error.  */
6812
 
#ifdef __cplusplus
6813
 
extern "C"
6814
 
#endif
6815
 
/* We use char because int might match the return type of a gcc2
6816
 
   builtin and then its argument prototype would still apply.  */
6817
 
char shl_load ();
6818
 
int
6819
 
main ()
6820
 
{
6821
 
shl_load ();
6822
 
  ;
6823
 
  return 0;
6824
 
}
6825
 
_ACEOF
6826
 
rm -f conftest.$ac_objext conftest$ac_exeext
6827
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6828
 
  (eval $ac_link) 2>&5
6829
 
  ac_status=$?
6830
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6831
 
  (exit $ac_status); } &&
6832
 
         { ac_try='test -s conftest$ac_exeext'
6833
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6834
 
  (eval $ac_try) 2>&5
6835
 
  ac_status=$?
6836
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6837
 
  (exit $ac_status); }; }; then
6838
 
  ac_cv_lib_dld_shl_load=yes
6839
 
else
6840
 
  echo "$as_me: failed program was:" >&5
6841
 
sed 's/^/| /' conftest.$ac_ext >&5
6842
 
 
6843
 
ac_cv_lib_dld_shl_load=no
6844
 
fi
6845
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6846
 
LIBS=$ac_check_lib_save_LIBS
6847
 
fi
6848
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
6849
 
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
6850
 
if test $ac_cv_lib_dld_shl_load = yes; then
6851
 
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6852
 
else
6853
 
  echo "$as_me:$LINENO: checking for dlopen" >&5
6854
 
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
6855
 
if test "${ac_cv_func_dlopen+set}" = set; then
6856
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6857
 
else
6858
 
  cat >conftest.$ac_ext <<_ACEOF
6859
 
#line $LINENO "configure"
6860
 
/* confdefs.h.  */
6861
 
_ACEOF
6862
 
cat confdefs.h >>conftest.$ac_ext
6863
 
cat >>conftest.$ac_ext <<_ACEOF
6864
 
/* end confdefs.h.  */
6865
 
/* System header to define __stub macros and hopefully few prototypes,
6866
 
    which can conflict with char dlopen (); below.
6867
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6868
 
    <limits.h> exists even on freestanding compilers.  */
6869
 
#ifdef __STDC__
6870
 
# include <limits.h>
6871
 
#else
6872
 
# include <assert.h>
6873
 
#endif
6874
 
/* Override any gcc2 internal prototype to avoid an error.  */
6875
 
#ifdef __cplusplus
6876
 
extern "C"
6877
 
{
6878
 
#endif
6879
 
/* We use char because int might match the return type of a gcc2
6880
 
   builtin and then its argument prototype would still apply.  */
6881
 
char dlopen ();
6882
 
/* The GNU C library defines this for functions which it implements
6883
 
    to always fail with ENOSYS.  Some functions are actually named
6884
 
    something starting with __ and the normal name is an alias.  */
6885
 
#if defined (__stub_dlopen) || defined (__stub___dlopen)
6886
 
choke me
6887
 
#else
6888
 
char (*f) () = dlopen;
6889
 
#endif
6890
 
#ifdef __cplusplus
6891
 
}
6892
 
#endif
6893
 
 
6894
 
int
6895
 
main ()
6896
 
{
6897
 
return f != dlopen;
6898
 
  ;
6899
 
  return 0;
6900
 
}
6901
 
_ACEOF
6902
 
rm -f conftest.$ac_objext conftest$ac_exeext
6903
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6904
 
  (eval $ac_link) 2>&5
6905
 
  ac_status=$?
6906
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6907
 
  (exit $ac_status); } &&
6908
 
         { ac_try='test -s conftest$ac_exeext'
6909
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6910
 
  (eval $ac_try) 2>&5
6911
 
  ac_status=$?
6912
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6913
 
  (exit $ac_status); }; }; then
6914
 
  ac_cv_func_dlopen=yes
6915
 
else
6916
 
  echo "$as_me: failed program was:" >&5
6917
 
sed 's/^/| /' conftest.$ac_ext >&5
6918
 
 
6919
 
ac_cv_func_dlopen=no
6920
 
fi
6921
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6922
 
fi
6923
 
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
6924
 
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
6925
 
if test $ac_cv_func_dlopen = yes; then
6926
 
  lt_cv_dlopen="dlopen"
6927
 
else
6928
 
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
6929
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
6930
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6931
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6932
 
else
6933
 
  ac_check_lib_save_LIBS=$LIBS
6934
 
LIBS="-ldl  $LIBS"
6935
 
cat >conftest.$ac_ext <<_ACEOF
6936
 
#line $LINENO "configure"
6937
 
/* confdefs.h.  */
6938
 
_ACEOF
6939
 
cat confdefs.h >>conftest.$ac_ext
6940
 
cat >>conftest.$ac_ext <<_ACEOF
6941
 
/* end confdefs.h.  */
6942
 
 
6943
 
/* Override any gcc2 internal prototype to avoid an error.  */
6944
 
#ifdef __cplusplus
6945
 
extern "C"
6946
 
#endif
6947
 
/* We use char because int might match the return type of a gcc2
6948
 
   builtin and then its argument prototype would still apply.  */
6949
 
char dlopen ();
6950
 
int
6951
 
main ()
6952
 
{
6953
 
dlopen ();
6954
 
  ;
6955
 
  return 0;
6956
 
}
6957
 
_ACEOF
6958
 
rm -f conftest.$ac_objext conftest$ac_exeext
6959
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6960
 
  (eval $ac_link) 2>&5
6961
 
  ac_status=$?
6962
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6963
 
  (exit $ac_status); } &&
6964
 
         { ac_try='test -s conftest$ac_exeext'
6965
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6966
 
  (eval $ac_try) 2>&5
6967
 
  ac_status=$?
6968
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6969
 
  (exit $ac_status); }; }; then
6970
 
  ac_cv_lib_dl_dlopen=yes
6971
 
else
6972
 
  echo "$as_me: failed program was:" >&5
6973
 
sed 's/^/| /' conftest.$ac_ext >&5
6974
 
 
6975
 
ac_cv_lib_dl_dlopen=no
6976
 
fi
6977
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6978
 
LIBS=$ac_check_lib_save_LIBS
6979
 
fi
6980
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
6981
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
6982
 
if test $ac_cv_lib_dl_dlopen = yes; then
6983
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6984
 
else
6985
 
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
6986
 
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
6987
 
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
6988
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6989
 
else
6990
 
  ac_check_lib_save_LIBS=$LIBS
6991
 
LIBS="-lsvld  $LIBS"
6992
 
cat >conftest.$ac_ext <<_ACEOF
6993
 
#line $LINENO "configure"
6994
 
/* confdefs.h.  */
6995
 
_ACEOF
6996
 
cat confdefs.h >>conftest.$ac_ext
6997
 
cat >>conftest.$ac_ext <<_ACEOF
6998
 
/* end confdefs.h.  */
6999
 
 
7000
 
/* Override any gcc2 internal prototype to avoid an error.  */
7001
 
#ifdef __cplusplus
7002
 
extern "C"
7003
 
#endif
7004
 
/* We use char because int might match the return type of a gcc2
7005
 
   builtin and then its argument prototype would still apply.  */
7006
 
char dlopen ();
7007
 
int
7008
 
main ()
7009
 
{
7010
 
dlopen ();
7011
 
  ;
7012
 
  return 0;
7013
 
}
7014
 
_ACEOF
7015
 
rm -f conftest.$ac_objext conftest$ac_exeext
7016
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7017
 
  (eval $ac_link) 2>&5
7018
 
  ac_status=$?
7019
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7020
 
  (exit $ac_status); } &&
7021
 
         { ac_try='test -s conftest$ac_exeext'
7022
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7023
 
  (eval $ac_try) 2>&5
7024
 
  ac_status=$?
7025
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7026
 
  (exit $ac_status); }; }; then
7027
 
  ac_cv_lib_svld_dlopen=yes
7028
 
else
7029
 
  echo "$as_me: failed program was:" >&5
7030
 
sed 's/^/| /' conftest.$ac_ext >&5
7031
 
 
7032
 
ac_cv_lib_svld_dlopen=no
7033
 
fi
7034
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7035
 
LIBS=$ac_check_lib_save_LIBS
7036
 
fi
7037
 
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7038
 
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7039
 
if test $ac_cv_lib_svld_dlopen = yes; then
7040
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7041
 
else
7042
 
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7043
 
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7044
 
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7045
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7046
 
else
7047
 
  ac_check_lib_save_LIBS=$LIBS
7048
 
LIBS="-ldld  $LIBS"
7049
 
cat >conftest.$ac_ext <<_ACEOF
7050
 
#line $LINENO "configure"
7051
 
/* confdefs.h.  */
7052
 
_ACEOF
7053
 
cat confdefs.h >>conftest.$ac_ext
7054
 
cat >>conftest.$ac_ext <<_ACEOF
7055
 
/* end confdefs.h.  */
7056
 
 
7057
 
/* Override any gcc2 internal prototype to avoid an error.  */
7058
 
#ifdef __cplusplus
7059
 
extern "C"
7060
 
#endif
7061
 
/* We use char because int might match the return type of a gcc2
7062
 
   builtin and then its argument prototype would still apply.  */
7063
 
char dld_link ();
7064
 
int
7065
 
main ()
7066
 
{
7067
 
dld_link ();
7068
 
  ;
7069
 
  return 0;
7070
 
}
7071
 
_ACEOF
7072
 
rm -f conftest.$ac_objext conftest$ac_exeext
7073
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7074
 
  (eval $ac_link) 2>&5
7075
 
  ac_status=$?
7076
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7077
 
  (exit $ac_status); } &&
7078
 
         { ac_try='test -s conftest$ac_exeext'
7079
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7080
 
  (eval $ac_try) 2>&5
7081
 
  ac_status=$?
7082
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7083
 
  (exit $ac_status); }; }; then
7084
 
  ac_cv_lib_dld_dld_link=yes
7085
 
else
7086
 
  echo "$as_me: failed program was:" >&5
7087
 
sed 's/^/| /' conftest.$ac_ext >&5
7088
 
 
7089
 
ac_cv_lib_dld_dld_link=no
7090
 
fi
7091
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7092
 
LIBS=$ac_check_lib_save_LIBS
7093
 
fi
7094
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7095
 
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7096
 
if test $ac_cv_lib_dld_dld_link = yes; then
7097
 
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7098
 
fi
7099
 
 
7100
 
 
7101
 
fi
7102
 
 
7103
 
 
7104
 
fi
7105
 
 
7106
 
 
7107
 
fi
7108
 
 
7109
 
 
7110
 
fi
7111
 
 
7112
 
 
7113
 
fi
7114
 
 
7115
 
    ;;
7116
 
  esac
7117
 
 
7118
 
  if test "x$lt_cv_dlopen" != xno; then
7119
 
    enable_dlopen=yes
7120
 
  else
7121
 
    enable_dlopen=no
7122
 
  fi
7123
 
 
7124
 
  case $lt_cv_dlopen in
7125
 
  dlopen)
7126
 
    save_CPPFLAGS="$CPPFLAGS"
7127
 
        test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7128
 
 
7129
 
    save_LDFLAGS="$LDFLAGS"
7130
 
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7131
 
 
7132
 
    save_LIBS="$LIBS"
7133
 
    LIBS="$lt_cv_dlopen_libs $LIBS"
7134
 
 
7135
 
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
7136
 
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
7137
 
if test "${lt_cv_dlopen_self+set}" = set; then
7138
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7139
 
else
7140
 
          if test "$cross_compiling" = yes; then :
7141
 
  lt_cv_dlopen_self=cross
7142
 
else
7143
 
    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7144
 
  lt_status=$lt_dlunknown
7145
 
  cat > conftest.$ac_ext <<EOF
7146
 
#line 7146 "configure"
7147
 
#include "confdefs.h"
7148
 
 
7149
 
#if HAVE_DLFCN_H
7150
 
#include <dlfcn.h>
7151
 
#endif
7152
 
 
7153
 
#include <stdio.h>
7154
 
 
7155
 
#ifdef RTLD_GLOBAL
7156
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
7157
 
#else
7158
 
#  ifdef DL_GLOBAL
7159
 
#    define LT_DLGLOBAL         DL_GLOBAL
7160
 
#  else
7161
 
#    define LT_DLGLOBAL         0
7162
 
#  endif
7163
 
#endif
7164
 
 
7165
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7166
 
   find out it does not work in some platform. */
7167
 
#ifndef LT_DLLAZY_OR_NOW
7168
 
#  ifdef RTLD_LAZY
7169
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
7170
 
#  else
7171
 
#    ifdef DL_LAZY
7172
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
7173
 
#    else
7174
 
#      ifdef RTLD_NOW
7175
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
7176
 
#      else
7177
 
#        ifdef DL_NOW
7178
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
7179
 
#        else
7180
 
#          define LT_DLLAZY_OR_NOW      0
7181
 
#        endif
7182
 
#      endif
7183
 
#    endif
7184
 
#  endif
7185
 
#endif
7186
 
 
7187
 
#ifdef __cplusplus
7188
 
extern "C" void exit (int);
7189
 
#endif
7190
 
 
7191
 
void fnord() { int i=42;}
7192
 
int main ()
7193
 
{
7194
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7195
 
  int status = $lt_dlunknown;
7196
 
 
7197
 
  if (self)
7198
 
    {
7199
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
7200
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7201
 
      /* dlclose (self); */
7202
 
    }
7203
 
 
7204
 
    exit (status);
7205
 
}
7206
 
EOF
7207
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7208
 
  (eval $ac_link) 2>&5
7209
 
  ac_status=$?
7210
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7211
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7212
 
    (./conftest; exit; ) 2>/dev/null
7213
 
    lt_status=$?
7214
 
    case x$lt_status in
7215
 
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7216
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7217
 
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7218
 
    esac
7219
 
  else :
7220
 
    # compilation failed
7221
 
    lt_cv_dlopen_self=no
7222
 
  fi
7223
 
fi
7224
 
rm -fr conftest*
7225
 
 
7226
 
 
7227
 
fi
7228
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
7229
 
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
7230
 
 
7231
 
    if test "x$lt_cv_dlopen_self" = xyes; then
7232
 
      LDFLAGS="$LDFLAGS $link_static_flag"
7233
 
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
7234
 
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
7235
 
if test "${lt_cv_dlopen_self_static+set}" = set; then
7236
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7237
 
else
7238
 
          if test "$cross_compiling" = yes; then :
7239
 
  lt_cv_dlopen_self_static=cross
7240
 
else
7241
 
    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7242
 
  lt_status=$lt_dlunknown
7243
 
  cat > conftest.$ac_ext <<EOF
7244
 
#line 7244 "configure"
7245
 
#include "confdefs.h"
7246
 
 
7247
 
#if HAVE_DLFCN_H
7248
 
#include <dlfcn.h>
7249
 
#endif
7250
 
 
7251
 
#include <stdio.h>
7252
 
 
7253
 
#ifdef RTLD_GLOBAL
7254
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
7255
 
#else
7256
 
#  ifdef DL_GLOBAL
7257
 
#    define LT_DLGLOBAL         DL_GLOBAL
7258
 
#  else
7259
 
#    define LT_DLGLOBAL         0
7260
 
#  endif
7261
 
#endif
7262
 
 
7263
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7264
 
   find out it does not work in some platform. */
7265
 
#ifndef LT_DLLAZY_OR_NOW
7266
 
#  ifdef RTLD_LAZY
7267
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
7268
 
#  else
7269
 
#    ifdef DL_LAZY
7270
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
7271
 
#    else
7272
 
#      ifdef RTLD_NOW
7273
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
7274
 
#      else
7275
 
#        ifdef DL_NOW
7276
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
7277
 
#        else
7278
 
#          define LT_DLLAZY_OR_NOW      0
7279
 
#        endif
7280
 
#      endif
7281
 
#    endif
7282
 
#  endif
7283
 
#endif
7284
 
 
7285
 
#ifdef __cplusplus
7286
 
extern "C" void exit (int);
7287
 
#endif
7288
 
 
7289
 
void fnord() { int i=42;}
7290
 
int main ()
7291
 
{
7292
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7293
 
  int status = $lt_dlunknown;
7294
 
 
7295
 
  if (self)
7296
 
    {
7297
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
7298
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7299
 
      /* dlclose (self); */
7300
 
    }
7301
 
 
7302
 
    exit (status);
7303
 
}
7304
 
EOF
7305
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7306
 
  (eval $ac_link) 2>&5
7307
 
  ac_status=$?
7308
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7309
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7310
 
    (./conftest; exit; ) 2>/dev/null
7311
 
    lt_status=$?
7312
 
    case x$lt_status in
7313
 
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7314
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7315
 
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7316
 
    esac
7317
 
  else :
7318
 
    # compilation failed
7319
 
    lt_cv_dlopen_self_static=no
7320
 
  fi
7321
 
fi
7322
 
rm -fr conftest*
7323
 
 
7324
 
 
7325
 
fi
7326
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
7327
 
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
7328
 
    fi
7329
 
 
7330
 
    CPPFLAGS="$save_CPPFLAGS"
7331
 
    LDFLAGS="$save_LDFLAGS"
7332
 
    LIBS="$save_LIBS"
7333
 
    ;;
7334
 
  esac
7335
 
 
7336
 
  case $lt_cv_dlopen_self in
7337
 
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7338
 
  *) enable_dlopen_self=unknown ;;
7339
 
  esac
7340
 
 
7341
 
  case $lt_cv_dlopen_self_static in
7342
 
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7343
 
  *) enable_dlopen_self_static=unknown ;;
7344
 
  esac
7345
 
fi
7346
 
 
7347
 
 
7348
 
if test "$enable_shared" = yes && test "$GCC" = yes; then
7349
 
  case $archive_cmds in
7350
 
  *'~'*)
7351
 
    # FIXME: we may have to deal with multi-command sequences.
7352
 
    ;;
7353
 
  '$CC '*)
7354
 
    # Test whether the compiler implicitly links with -lc since on some
7355
 
    # systems, -lgcc has to come before -lc. If gcc already passes -lc
7356
 
    # to ld, don't add -lc before -lgcc.
7357
 
    echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7358
 
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7359
 
    if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
7360
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7361
 
else
7362
 
  $rm conftest*
7363
 
    echo 'static int dummy;' > conftest.$ac_ext
7364
 
 
7365
 
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7366
 
  (eval $ac_compile) 2>&5
7367
 
  ac_status=$?
7368
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7369
 
  (exit $ac_status); }; then
7370
 
      soname=conftest
7371
 
      lib=conftest
7372
 
      libobjs=conftest.$ac_objext
7373
 
      deplibs=
7374
 
      wl=$lt_cv_prog_cc_wl
7375
 
      compiler_flags=-v
7376
 
      linker_flags=-v
7377
 
      verstring=
7378
 
      output_objdir=.
7379
 
      libname=conftest
7380
 
      save_allow_undefined_flag=$allow_undefined_flag
7381
 
      allow_undefined_flag=
7382
 
      if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7383
 
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7384
 
  ac_status=$?
7385
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7386
 
  (exit $ac_status); }
7387
 
      then
7388
 
        lt_cv_archive_cmds_need_lc=no
7389
 
      else
7390
 
        lt_cv_archive_cmds_need_lc=yes
7391
 
      fi
7392
 
      allow_undefined_flag=$save_allow_undefined_flag
7393
 
    else
7394
 
      cat conftest.err 1>&5
7395
 
    fi
7396
 
fi
7397
 
 
7398
 
    echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
7399
 
echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
7400
 
    ;;
7401
 
  esac
7402
 
fi
7403
 
need_lc=${lt_cv_archive_cmds_need_lc-yes}
7404
 
 
7405
 
# The second clause should only fire when bootstrapping the
 
9419
# The else clause should only fire when bootstrapping the
7406
9420
# libtool distribution, otherwise you forgot to ship ltmain.sh
7407
9421
# with your package, and you will get complaints that there are
7408
9422
# no rules to generate ltmain.sh.
7409
9423
if test -f "$ltmain"; then
7410
 
  :
7411
 
else
7412
 
  # If there is no Makefile yet, we rely on a make rule to execute
7413
 
  # `config.status --recheck' to rerun these tests and create the
7414
 
  # libtool script then.
7415
 
  test -f Makefile && make "$ltmain"
7416
 
fi
7417
 
 
7418
 
if test -f "$ltmain"; then
7419
 
  trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7420
 
  $rm -f "${ofile}T"
7421
 
 
7422
 
  echo creating $ofile
7423
 
 
 
9424
  # See if we are running on zsh, and set the options which allow our commands through
 
9425
  # without removal of \ escapes.
 
9426
  if test -n "${ZSH_VERSION+set}" ; then
 
9427
    setopt NO_GLOB_SUBST
 
9428
  fi
7424
9429
  # Now quote all the things that may contain metacharacters while being
7425
9430
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
7426
9431
  # variables and quote the copies for generation of the libtool script.
7427
 
  for var in echo old_CC old_CFLAGS SED \
7428
 
    AR AR_FLAGS CC LD LN_S NM SHELL \
7429
 
    reload_flag reload_cmds wl \
7430
 
    pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7431
 
    thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7432
 
    library_names_spec soname_spec \
7433
 
    RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7434
 
    old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7435
 
    postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7436
 
    old_striplib striplib file_magic_cmd export_symbols_cmds \
7437
 
    deplibs_check_method allow_undefined_flag no_undefined_flag \
7438
 
    finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7439
 
    global_symbol_to_c_name_address \
7440
 
    hardcode_libdir_flag_spec hardcode_libdir_separator  \
 
9432
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
9433
    SED SHELL STRIP \
 
9434
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
9435
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
9436
    deplibs_check_method reload_flag reload_cmds need_locks \
 
9437
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
9438
    lt_cv_sys_global_symbol_to_c_name_address \
7441
9439
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7442
 
    compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
 
9440
    old_postinstall_cmds old_postuninstall_cmds \
 
9441
    compiler \
 
9442
    CC \
 
9443
    LD \
 
9444
    lt_prog_compiler_wl \
 
9445
    lt_prog_compiler_pic \
 
9446
    lt_prog_compiler_static \
 
9447
    lt_prog_compiler_no_builtin_flag \
 
9448
    export_dynamic_flag_spec \
 
9449
    thread_safe_flag_spec \
 
9450
    whole_archive_flag_spec \
 
9451
    enable_shared_with_static_runtimes \
 
9452
    old_archive_cmds \
 
9453
    old_archive_from_new_cmds \
 
9454
    predep_objects \
 
9455
    postdep_objects \
 
9456
    predeps \
 
9457
    postdeps \
 
9458
    compiler_lib_search_path \
 
9459
    archive_cmds \
 
9460
    archive_expsym_cmds \
 
9461
    postinstall_cmds \
 
9462
    postuninstall_cmds \
 
9463
    old_archive_from_expsyms_cmds \
 
9464
    allow_undefined_flag \
 
9465
    no_undefined_flag \
 
9466
    export_symbols_cmds \
 
9467
    hardcode_libdir_flag_spec \
 
9468
    hardcode_libdir_flag_spec_ld \
 
9469
    hardcode_libdir_separator \
 
9470
    hardcode_automatic \
 
9471
    module_cmds \
 
9472
    module_expsym_cmds \
 
9473
    lt_cv_prog_compiler_c_o \
 
9474
    exclude_expsyms \
 
9475
    include_expsyms; do
7443
9476
 
7444
9477
    case $var in
7445
 
    reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
 
9478
    old_archive_cmds | \
 
9479
    old_archive_from_new_cmds | \
 
9480
    archive_cmds | \
 
9481
    archive_expsym_cmds | \
 
9482
    module_cmds | \
 
9483
    module_expsym_cmds | \
 
9484
    old_archive_from_expsyms_cmds | \
 
9485
    export_symbols_cmds | \
 
9486
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
9487
    postinstall_cmds | postuninstall_cmds | \
7446
9488
    old_postinstall_cmds | old_postuninstall_cmds | \
7447
 
    export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7448
 
    extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7449
 
    postinstall_cmds | postuninstall_cmds | \
7450
 
    finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
9489
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7451
9490
      # Double-quote double-evaled strings.
7452
9491
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7453
9492
      ;;
7457
9496
    esac
7458
9497
  done
7459
9498
 
7460
 
  cat <<__EOF__ > "${ofile}T"
 
9499
  case $lt_echo in
 
9500
  *'\$0 --fallback-echo"')
 
9501
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
9502
    ;;
 
9503
  esac
 
9504
 
 
9505
cfgfile="${ofile}T"
 
9506
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
 
9507
  $rm -f "$cfgfile"
 
9508
  { echo "$as_me:$LINENO: creating $ofile" >&5
 
9509
echo "$as_me: creating $ofile" >&6;}
 
9510
 
 
9511
  cat <<__EOF__ >> "$cfgfile"
7461
9512
#! $SHELL
7462
9513
 
7463
 
# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
9514
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7464
9515
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7465
9516
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
7466
9517
#
7467
 
# Copyright (C) 1996-2000 Free Software Foundation, Inc.
 
9518
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
 
9519
# Free Software Foundation, Inc.
 
9520
#
 
9521
# This file is part of GNU Libtool:
7468
9522
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7469
9523
#
7470
9524
# This program is free software; you can redistribute it and/or modify
7486
9540
# configuration script generated by Autoconf, you may include it under
7487
9541
# the same distribution terms that you use for the rest of that program.
7488
9542
 
7489
 
# A sed that does not truncate output.
 
9543
# A sed program that does not truncate output.
7490
9544
SED=$lt_SED
7491
9545
 
7492
9546
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
7493
 
Xsed="${SED} -e s/^X//"
 
9547
Xsed="$SED -e s/^X//"
7494
9548
 
7495
9549
# The HP-UX ksh and POSIX shell print the target directory to stdout
7496
9550
# if CDPATH is set.
7497
9551
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7498
9552
 
 
9553
# The names of the tagged configurations supported by this script.
 
9554
available_tags=
 
9555
 
7499
9556
# ### BEGIN LIBTOOL CONFIG
7500
9557
 
7501
9558
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7510
9567
build_old_libs=$enable_static
7511
9568
 
7512
9569
# Whether or not to add -lc for building shared libraries.
7513
 
build_libtool_need_lc=$need_lc
 
9570
build_libtool_need_lc=$archive_cmds_need_lc
 
9571
 
 
9572
# Whether or not to disallow shared libs when runtime libs are static
 
9573
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
7514
9574
 
7515
9575
# Whether or not to optimize for fast installation.
7516
9576
fast_install=$enable_fast_install
7526
9586
AR=$lt_AR
7527
9587
AR_FLAGS=$lt_AR_FLAGS
7528
9588
 
7529
 
# The default C compiler.
7530
 
CC=$lt_CC
 
9589
# A C compiler.
 
9590
LTCC=$lt_LTCC
 
9591
 
 
9592
# A language-specific compiler.
 
9593
CC=$lt_compiler
7531
9594
 
7532
9595
# Is the compiler the GNU C compiler?
7533
9596
with_gcc=$GCC
7534
9597
 
 
9598
# An ERE matcher.
 
9599
EGREP=$lt_EGREP
 
9600
 
7535
9601
# The linker used to build libraries.
7536
9602
LD=$lt_LD
7537
9603
 
7542
9608
NM=$lt_NM
7543
9609
 
7544
9610
# A symbol stripping program
7545
 
STRIP=$STRIP
 
9611
STRIP=$lt_STRIP
7546
9612
 
7547
9613
# Used to examine libraries when file_magic_cmd begins "file"
7548
9614
MAGIC_CMD=$MAGIC_CMD
7564
9630
reload_cmds=$lt_reload_cmds
7565
9631
 
7566
9632
# How to pass a linker flag through the compiler.
7567
 
wl=$lt_wl
 
9633
wl=$lt_lt_prog_compiler_wl
7568
9634
 
7569
9635
# Object file suffix (normally "o").
7570
9636
objext="$ac_objext"
7572
9638
# Old archive suffix (normally "a").
7573
9639
libext="$libext"
7574
9640
 
 
9641
# Shared library suffix (normally ".so").
 
9642
shrext_cmds='$shrext_cmds'
 
9643
 
7575
9644
# Executable file suffix (normally "").
7576
9645
exeext="$exeext"
7577
9646
 
7578
9647
# Additional compiler flags for building library objects.
7579
 
pic_flag=$lt_pic_flag
 
9648
pic_flag=$lt_lt_prog_compiler_pic
7580
9649
pic_mode=$pic_mode
7581
9650
 
 
9651
# What is the maximum length of a command?
 
9652
max_cmd_len=$lt_cv_sys_max_cmd_len
 
9653
 
7582
9654
# Does compiler simultaneously support -c and -o options?
7583
 
compiler_c_o=$lt_compiler_c_o
7584
 
 
7585
 
# Can we write directly to a .lo ?
7586
 
compiler_o_lo=$lt_compiler_o_lo
 
9655
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
7587
9656
 
7588
9657
# Must we lock files when doing compilation ?
7589
9658
need_locks=$lt_need_locks
7604
9673
dlopen_self_static=$enable_dlopen_self_static
7605
9674
 
7606
9675
# Compiler flag to prevent dynamic linking.
7607
 
link_static_flag=$lt_link_static_flag
 
9676
link_static_flag=$lt_lt_prog_compiler_static
7608
9677
 
7609
9678
# Compiler flag to turn off builtin functions.
7610
 
no_builtin_flag=$lt_no_builtin_flag
 
9679
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
7611
9680
 
7612
9681
# Compiler flag to allow reflexive dlopens.
7613
9682
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7649
9718
postinstall_cmds=$lt_postinstall_cmds
7650
9719
postuninstall_cmds=$lt_postuninstall_cmds
7651
9720
 
 
9721
# Commands used to build a loadable module (assumed same as above if empty)
 
9722
module_cmds=$lt_module_cmds
 
9723
module_expsym_cmds=$lt_module_expsym_cmds
 
9724
 
7652
9725
# Commands to strip libraries.
7653
9726
old_striplib=$lt_old_striplib
7654
9727
striplib=$lt_striplib
7655
9728
 
 
9729
# Dependencies to place before the objects being linked to create a
 
9730
# shared library.
 
9731
predep_objects=$lt_predep_objects
 
9732
 
 
9733
# Dependencies to place after the objects being linked to create a
 
9734
# shared library.
 
9735
postdep_objects=$lt_postdep_objects
 
9736
 
 
9737
# Dependencies to place before the objects being linked to create a
 
9738
# shared library.
 
9739
predeps=$lt_predeps
 
9740
 
 
9741
# Dependencies to place after the objects being linked to create a
 
9742
# shared library.
 
9743
postdeps=$lt_postdeps
 
9744
 
 
9745
# The library search path used internally by the compiler when linking
 
9746
# a shared library.
 
9747
compiler_lib_search_path=$lt_compiler_lib_search_path
 
9748
 
7656
9749
# Method to check whether dependent libraries are shared objects.
7657
9750
deplibs_check_method=$lt_deplibs_check_method
7658
9751
 
7672
9765
finish_eval=$lt_finish_eval
7673
9766
 
7674
9767
# Take the output of nm and produce a listing of raw symbols and C names.
7675
 
global_symbol_pipe=$lt_global_symbol_pipe
 
9768
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
7676
9769
 
7677
9770
# Transform the output of nm in a proper C declaration
7678
 
global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
 
9771
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
7679
9772
 
7680
9773
# Transform the output of nm in a C name address pair
7681
 
global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
 
9774
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
7682
9775
 
7683
9776
# This is the shared library runtime path variable.
7684
9777
runpath_var=$runpath_var
7699
9792
# This must work even if \$libdir does not exist.
7700
9793
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7701
9794
 
 
9795
# If ld is used when linking, flag to hardcode \$libdir into
 
9796
# a binary during linking. This must work even if \$libdir does
 
9797
# not exist.
 
9798
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
 
9799
 
7702
9800
# Whether we need a single -rpath flag with a separated argument.
7703
9801
hardcode_libdir_separator=$lt_hardcode_libdir_separator
7704
9802
 
7705
 
# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
 
9803
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
7706
9804
# resulting binary.
7707
9805
hardcode_direct=$hardcode_direct
7708
9806
 
7714
9812
# the resulting binary.
7715
9813
hardcode_shlibpath_var=$hardcode_shlibpath_var
7716
9814
 
 
9815
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
9816
# and all subsequent libraries and executables linked against it.
 
9817
hardcode_automatic=$hardcode_automatic
 
9818
 
7717
9819
# Variables whose values should be saved in libtool wrapper scripts and
7718
9820
# restored at relink time.
7719
9821
variables_saved_for_relink="$variables_saved_for_relink"
7749
9851
 
7750
9852
__EOF__
7751
9853
 
 
9854
 
7752
9855
  case $host_os in
7753
9856
  aix3*)
7754
 
    cat <<\EOF >> "${ofile}T"
 
9857
    cat <<\EOF >> "$cfgfile"
7755
9858
 
7756
9859
# AIX sometimes has problems with the GCC collect2 program.  For some
7757
9860
# reason, if we set the COLLECT_NAMES environment variable, the problems
7764
9867
    ;;
7765
9868
  esac
7766
9869
 
7767
 
  case $host_os in
7768
 
  cygwin* | mingw* | pw32* | os2*)
7769
 
    cat <<'EOF' >> "${ofile}T"
7770
 
      # This is a source program that is used to create dlls on Windows
7771
 
      # Don't remove nor modify the starting and closing comments
7772
 
# /* ltdll.c starts here */
7773
 
# #define WIN32_LEAN_AND_MEAN
7774
 
# #include <windows.h>
7775
 
# #undef WIN32_LEAN_AND_MEAN
7776
 
# #include <stdio.h>
7777
 
#
7778
 
# #ifndef __CYGWIN__
7779
 
# #  ifdef __CYGWIN32__
7780
 
# #    define __CYGWIN__ __CYGWIN32__
7781
 
# #  endif
7782
 
# #endif
7783
 
#
7784
 
# #ifdef __cplusplus
7785
 
# extern "C" {
7786
 
# #endif
7787
 
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7788
 
# #ifdef __cplusplus
7789
 
# }
7790
 
# #endif
7791
 
#
7792
 
# #ifdef __CYGWIN__
7793
 
# #include <cygwin/cygwin_dll.h>
7794
 
# DECLARE_CYGWIN_DLL( DllMain );
7795
 
# #endif
7796
 
# HINSTANCE __hDllInstance_base;
7797
 
#
7798
 
# BOOL APIENTRY
7799
 
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7800
 
# {
7801
 
#   __hDllInstance_base = hInst;
7802
 
#   return TRUE;
7803
 
# }
7804
 
# /* ltdll.c ends here */
7805
 
        # This is a source program that is used to create import libraries
7806
 
        # on Windows for dlls which lack them. Don't remove nor modify the
7807
 
        # starting and closing comments
7808
 
# /* impgen.c starts here */
7809
 
# /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
7810
 
#
7811
 
#  This file is part of GNU libtool.
7812
 
#
7813
 
#  This program is free software; you can redistribute it and/or modify
7814
 
#  it under the terms of the GNU General Public License as published by
7815
 
#  the Free Software Foundation; either version 2 of the License, or
7816
 
#  (at your option) any later version.
7817
 
#
7818
 
#  This program is distributed in the hope that it will be useful,
7819
 
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
7820
 
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
7821
 
#  GNU General Public License for more details.
7822
 
#
7823
 
#  You should have received a copy of the GNU General Public License
7824
 
#  along with this program; if not, write to the Free Software
7825
 
#  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7826
 
#  */
7827
 
#
7828
 
# #include <stdio.h>            /* for printf() */
7829
 
# #include <unistd.h>           /* for open(), lseek(), read() */
7830
 
# #include <fcntl.h>            /* for O_RDONLY, O_BINARY */
7831
 
# #include <string.h>           /* for strdup() */
7832
 
#
7833
 
# /* O_BINARY isn't required (or even defined sometimes) under Unix */
7834
 
# #ifndef O_BINARY
7835
 
# #define O_BINARY 0
7836
 
# #endif
7837
 
#
7838
 
# static unsigned int
7839
 
# pe_get16 (fd, offset)
7840
 
#      int fd;
7841
 
#      int offset;
7842
 
# {
7843
 
#   unsigned char b[2];
7844
 
#   lseek (fd, offset, SEEK_SET);
7845
 
#   read (fd, b, 2);
7846
 
#   return b[0] + (b[1]<<8);
7847
 
# }
7848
 
#
7849
 
# static unsigned int
7850
 
# pe_get32 (fd, offset)
7851
 
#     int fd;
7852
 
#     int offset;
7853
 
# {
7854
 
#   unsigned char b[4];
7855
 
#   lseek (fd, offset, SEEK_SET);
7856
 
#   read (fd, b, 4);
7857
 
#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7858
 
# }
7859
 
#
7860
 
# static unsigned int
7861
 
# pe_as32 (ptr)
7862
 
#      void *ptr;
7863
 
# {
7864
 
#   unsigned char *b = ptr;
7865
 
#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7866
 
# }
7867
 
#
7868
 
# int
7869
 
# main (argc, argv)
7870
 
#     int argc;
7871
 
#     char *argv[];
7872
 
# {
7873
 
#     int dll;
7874
 
#     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7875
 
#     unsigned long export_rva, export_size, nsections, secptr, expptr;
7876
 
#     unsigned long name_rvas, nexp;
7877
 
#     unsigned char *expdata, *erva;
7878
 
#     char *filename, *dll_name;
7879
 
#
7880
 
#     filename = argv[1];
7881
 
#
7882
 
#     dll = open(filename, O_RDONLY|O_BINARY);
7883
 
#     if (dll < 1)
7884
 
#       return 1;
7885
 
#
7886
 
#     dll_name = filename;
7887
 
#
7888
 
#     for (i=0; filename[i]; i++)
7889
 
#       if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
7890
 
#           dll_name = filename + i +1;
7891
 
#
7892
 
#     pe_header_offset = pe_get32 (dll, 0x3c);
7893
 
#     opthdr_ofs = pe_header_offset + 4 + 20;
7894
 
#     num_entries = pe_get32 (dll, opthdr_ofs + 92);
7895
 
#
7896
 
#     if (num_entries < 1) /* no exports */
7897
 
#       return 1;
7898
 
#
7899
 
#     export_rva = pe_get32 (dll, opthdr_ofs + 96);
7900
 
#     export_size = pe_get32 (dll, opthdr_ofs + 100);
7901
 
#     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7902
 
#     secptr = (pe_header_offset + 4 + 20 +
7903
 
#             pe_get16 (dll, pe_header_offset + 4 + 16));
7904
 
#
7905
 
#     expptr = 0;
7906
 
#     for (i = 0; i < nsections; i++)
7907
 
#     {
7908
 
#       char sname[8];
7909
 
#       unsigned long secptr1 = secptr + 40 * i;
7910
 
#       unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7911
 
#       unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7912
 
#       unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7913
 
#       lseek(dll, secptr1, SEEK_SET);
7914
 
#       read(dll, sname, 8);
7915
 
#       if (vaddr <= export_rva && vaddr+vsize > export_rva)
7916
 
#       {
7917
 
#           expptr = fptr + (export_rva - vaddr);
7918
 
#           if (export_rva + export_size > vaddr + vsize)
7919
 
#               export_size = vsize - (export_rva - vaddr);
7920
 
#           break;
7921
 
#       }
7922
 
#     }
7923
 
#
7924
 
#     expdata = (unsigned char*)malloc(export_size);
7925
 
#     lseek (dll, expptr, SEEK_SET);
7926
 
#     read (dll, expdata, export_size);
7927
 
#     erva = expdata - export_rva;
7928
 
#
7929
 
#     nexp = pe_as32 (expdata+24);
7930
 
#     name_rvas = pe_as32 (expdata+32);
7931
 
#
7932
 
#     printf ("EXPORTS\n");
7933
 
#     for (i = 0; i<nexp; i++)
7934
 
#     {
7935
 
#       unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7936
 
#       printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7937
 
#     }
7938
 
#
7939
 
#     return 0;
7940
 
# }
7941
 
# /* impgen.c ends here */
7942
 
 
7943
 
EOF
7944
 
    ;;
7945
 
  esac
7946
 
 
7947
9870
  # We use sed instead of cat because bash on DJGPP gets confused if
7948
9871
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
7949
9872
  # text mode, it properly converts lines to CR/LF.  This bash problem
7950
9873
  # is reportedly fixed, but why not run on old versions too?
7951
 
  sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
 
9874
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
7952
9875
 
7953
 
  mv -f "${ofile}T" "$ofile" || \
7954
 
    (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
 
9876
  mv -f "$cfgfile" "$ofile" || \
 
9877
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
7955
9878
  chmod +x "$ofile"
7956
 
fi
7957
 
 
7958
 
 
 
9879
 
 
9880
else
 
9881
  # If there is no Makefile yet, we rely on a make rule to execute
 
9882
  # `config.status --recheck' to rerun these tests and create the
 
9883
  # libtool script then.
 
9884
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
9885
  if test -f "$ltmain_in"; then
 
9886
    test -f Makefile && make "$ltmain"
 
9887
  fi
 
9888
fi
 
9889
 
 
9890
 
 
9891
ac_ext=c
 
9892
ac_cpp='$CPP $CPPFLAGS'
 
9893
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
9894
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
9895
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
9896
 
 
9897
CC="$lt_save_CC"
 
9898
 
 
9899
 
 
9900
# Check whether --with-tags or --without-tags was given.
 
9901
if test "${with_tags+set}" = set; then
 
9902
  withval="$with_tags"
 
9903
  tagnames="$withval"
 
9904
fi;
 
9905
 
 
9906
if test -f "$ltmain" && test -n "$tagnames"; then
 
9907
  if test ! -f "${ofile}"; then
 
9908
    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
 
9909
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
 
9910
  fi
 
9911
 
 
9912
  if test -z "$LTCC"; then
 
9913
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
 
9914
    if test -z "$LTCC"; then
 
9915
      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
 
9916
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
 
9917
    else
 
9918
      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
 
9919
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
 
9920
    fi
 
9921
  fi
 
9922
 
 
9923
  # Extract list of available tagged configurations in $ofile.
 
9924
  # Note that this assumes the entire list is on one line.
 
9925
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
 
9926
 
 
9927
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
9928
  for tagname in $tagnames; do
 
9929
    IFS="$lt_save_ifs"
 
9930
    # Check whether tagname contains only valid characters
 
9931
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
 
9932
    "") ;;
 
9933
    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
 
9934
echo "$as_me: error: invalid tag name: $tagname" >&2;}
 
9935
   { (exit 1); exit 1; }; }
 
9936
        ;;
 
9937
    esac
 
9938
 
 
9939
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
 
9940
    then
 
9941
      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
 
9942
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
 
9943
   { (exit 1); exit 1; }; }
 
9944
    fi
 
9945
 
 
9946
    # Update the list of available tags.
 
9947
    if test -n "$tagname"; then
 
9948
      echo appending configuration tag \"$tagname\" to $ofile
 
9949
 
 
9950
      case $tagname in
 
9951
      CXX)
 
9952
        if test -n "$CXX" && test "X$CXX" != "Xno"; then
 
9953
          ac_ext=cc
 
9954
ac_cpp='$CXXCPP $CPPFLAGS'
 
9955
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
9956
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
9957
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
9958
 
 
9959
 
 
9960
 
 
9961
 
 
9962
archive_cmds_need_lc_CXX=no
 
9963
allow_undefined_flag_CXX=
 
9964
always_export_symbols_CXX=no
 
9965
archive_expsym_cmds_CXX=
 
9966
export_dynamic_flag_spec_CXX=
 
9967
hardcode_direct_CXX=no
 
9968
hardcode_libdir_flag_spec_CXX=
 
9969
hardcode_libdir_flag_spec_ld_CXX=
 
9970
hardcode_libdir_separator_CXX=
 
9971
hardcode_minus_L_CXX=no
 
9972
hardcode_automatic_CXX=no
 
9973
module_cmds_CXX=
 
9974
module_expsym_cmds_CXX=
 
9975
link_all_deplibs_CXX=unknown
 
9976
old_archive_cmds_CXX=$old_archive_cmds
 
9977
no_undefined_flag_CXX=
 
9978
whole_archive_flag_spec_CXX=
 
9979
enable_shared_with_static_runtimes_CXX=no
 
9980
 
 
9981
# Dependencies to place before and after the object being linked:
 
9982
predep_objects_CXX=
 
9983
postdep_objects_CXX=
 
9984
predeps_CXX=
 
9985
postdeps_CXX=
 
9986
compiler_lib_search_path_CXX=
 
9987
 
 
9988
# Source file extension for C++ test sources.
 
9989
ac_ext=cc
 
9990
 
 
9991
# Object file extension for compiled C++ test sources.
 
9992
objext=o
 
9993
objext_CXX=$objext
 
9994
 
 
9995
# Code to be used in simple compile tests
 
9996
lt_simple_compile_test_code="int some_variable = 0;\n"
 
9997
 
 
9998
# Code to be used in simple link tests
 
9999
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
 
10000
 
 
10001
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
10002
 
 
10003
# If no C compiler was specified, use CC.
 
10004
LTCC=${LTCC-"$CC"}
 
10005
 
 
10006
# Allow CC to be a program name with arguments.
 
10007
compiler=$CC
 
10008
 
 
10009
 
 
10010
# Allow CC to be a program name with arguments.
 
10011
lt_save_CC=$CC
 
10012
lt_save_LD=$LD
 
10013
lt_save_GCC=$GCC
 
10014
GCC=$GXX
 
10015
lt_save_with_gnu_ld=$with_gnu_ld
 
10016
lt_save_path_LD=$lt_cv_path_LD
 
10017
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
10018
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
10019
else
 
10020
  unset lt_cv_prog_gnu_ld
 
10021
fi
 
10022
if test -n "${lt_cv_path_LDCXX+set}"; then
 
10023
  lt_cv_path_LD=$lt_cv_path_LDCXX
 
10024
else
 
10025
  unset lt_cv_path_LD
 
10026
fi
 
10027
test -z "${LDCXX+set}" || LD=$LDCXX
 
10028
CC=${CXX-"c++"}
 
10029
compiler=$CC
 
10030
compiler_CXX=$CC
 
10031
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
10032
 
 
10033
# We don't want -fno-exception wen compiling C++ code, so set the
 
10034
# no_builtin_flag separately
 
10035
if test "$GXX" = yes; then
 
10036
  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
 
10037
else
 
10038
  lt_prog_compiler_no_builtin_flag_CXX=
 
10039
fi
 
10040
 
 
10041
if test "$GXX" = yes; then
 
10042
  # Set up default GNU C++ configuration
 
10043
 
 
10044
 
 
10045
# Check whether --with-gnu-ld or --without-gnu-ld was given.
 
10046
if test "${with_gnu_ld+set}" = set; then
 
10047
  withval="$with_gnu_ld"
 
10048
  test "$withval" = no || with_gnu_ld=yes
 
10049
else
 
10050
  with_gnu_ld=no
 
10051
fi;
 
10052
ac_prog=ld
 
10053
if test "$GCC" = yes; then
 
10054
  # Check if gcc -print-prog-name=ld gives a path.
 
10055
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
10056
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
 
10057
  case $host in
 
10058
  *-*-mingw*)
 
10059
    # gcc leaves a trailing carriage return which upsets mingw
 
10060
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
10061
  *)
 
10062
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
10063
  esac
 
10064
  case $ac_prog in
 
10065
    # Accept absolute paths.
 
10066
    [\\/]* | ?:[\\/]*)
 
10067
      re_direlt='/[^/][^/]*/\.\./'
 
10068
      # Canonicalize the pathname of ld
 
10069
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
10070
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
10071
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
10072
      done
 
10073
      test -z "$LD" && LD="$ac_prog"
 
10074
      ;;
 
10075
  "")
 
10076
    # If it fails, then pretend we aren't using GCC.
 
10077
    ac_prog=ld
 
10078
    ;;
 
10079
  *)
 
10080
    # If it is relative, then search for the first ld in PATH.
 
10081
    with_gnu_ld=unknown
 
10082
    ;;
 
10083
  esac
 
10084
elif test "$with_gnu_ld" = yes; then
 
10085
  echo "$as_me:$LINENO: checking for GNU ld" >&5
 
10086
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
10087
else
 
10088
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
10089
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
10090
fi
 
10091
if test "${lt_cv_path_LD+set}" = set; then
 
10092
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10093
else
 
10094
  if test -z "$LD"; then
 
10095
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
10096
  for ac_dir in $PATH; do
 
10097
    IFS="$lt_save_ifs"
 
10098
    test -z "$ac_dir" && ac_dir=.
 
10099
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
10100
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
10101
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
10102
      # but apparently some GNU ld's only accept -v.
 
10103
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
10104
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
10105
      *GNU* | *'with BFD'*)
 
10106
        test "$with_gnu_ld" != no && break
 
10107
        ;;
 
10108
      *)
 
10109
        test "$with_gnu_ld" != yes && break
 
10110
        ;;
 
10111
      esac
 
10112
    fi
 
10113
  done
 
10114
  IFS="$lt_save_ifs"
 
10115
else
 
10116
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
10117
fi
 
10118
fi
 
10119
 
 
10120
LD="$lt_cv_path_LD"
 
10121
if test -n "$LD"; then
 
10122
  echo "$as_me:$LINENO: result: $LD" >&5
 
10123
echo "${ECHO_T}$LD" >&6
 
10124
else
 
10125
  echo "$as_me:$LINENO: result: no" >&5
 
10126
echo "${ECHO_T}no" >&6
 
10127
fi
 
10128
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
10129
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
10130
   { (exit 1); exit 1; }; }
 
10131
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
10132
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
10133
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
10134
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10135
else
 
10136
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
10137
case `$LD -v 2>&1 </dev/null` in
 
10138
*GNU* | *'with BFD'*)
 
10139
  lt_cv_prog_gnu_ld=yes
 
10140
  ;;
 
10141
*)
 
10142
  lt_cv_prog_gnu_ld=no
 
10143
  ;;
 
10144
esac
 
10145
fi
 
10146
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
10147
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
 
10148
with_gnu_ld=$lt_cv_prog_gnu_ld
 
10149
 
 
10150
 
 
10151
 
 
10152
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
10153
  # archiving commands below assume that GNU ld is being used.
 
10154
  if test "$with_gnu_ld" = yes; then
 
10155
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10156
    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'
 
10157
 
 
10158
    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
10159
    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
10160
 
 
10161
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
10162
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
10163
    #     investigate it a little bit more. (MM)
 
10164
    wlarc='${wl}'
 
10165
 
 
10166
    # ancient GNU ld didn't support --whole-archive et. al.
 
10167
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
 
10168
        grep 'no-whole-archive' > /dev/null; then
 
10169
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
10170
    else
 
10171
      whole_archive_flag_spec_CXX=
 
10172
    fi
 
10173
  else
 
10174
    with_gnu_ld=no
 
10175
    wlarc=
 
10176
 
 
10177
    # A generic and very simple default shared library creation
 
10178
    # command for GNU C++ for the case where it uses the native
 
10179
    # linker, instead of GNU ld.  If possible, this setting should
 
10180
    # overridden to take advantage of the native linker features on
 
10181
    # the platform it is being used on.
 
10182
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
10183
  fi
 
10184
 
 
10185
  # Commands to make compiler produce verbose output that lists
 
10186
  # what "hidden" libraries, object files and flags are used when
 
10187
  # linking a shared library.
 
10188
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
10189
 
 
10190
else
 
10191
  GXX=no
 
10192
  with_gnu_ld=no
 
10193
  wlarc=
 
10194
fi
 
10195
 
 
10196
# PORTME: fill in a description of your system's C++ link characteristics
 
10197
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
10198
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
10199
ld_shlibs_CXX=yes
 
10200
case $host_os in
 
10201
  aix3*)
 
10202
    # FIXME: insert proper C++ library support
 
10203
    ld_shlibs_CXX=no
 
10204
    ;;
 
10205
  aix4* | aix5*)
 
10206
    if test "$host_cpu" = ia64; then
 
10207
      # On IA64, the linker does run time linking by default, so we don't
 
10208
      # have to do anything special.
 
10209
      aix_use_runtimelinking=no
 
10210
      exp_sym_flag='-Bexport'
 
10211
      no_entry_flag=""
 
10212
    else
 
10213
      aix_use_runtimelinking=no
 
10214
 
 
10215
      # Test if we are trying to use run time linking or normal
 
10216
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
10217
      # need to do runtime linking.
 
10218
      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
10219
        for ld_flag in $LDFLAGS; do
 
10220
          case $ld_flag in
 
10221
          *-brtl*)
 
10222
            aix_use_runtimelinking=yes
 
10223
            break
 
10224
            ;;
 
10225
          esac
 
10226
        done
 
10227
      esac
 
10228
 
 
10229
      exp_sym_flag='-bexport'
 
10230
      no_entry_flag='-bnoentry'
 
10231
    fi
 
10232
 
 
10233
    # When large executables or shared objects are built, AIX ld can
 
10234
    # have problems creating the table of contents.  If linking a library
 
10235
    # or program results in "error TOC overflow" add -mminimal-toc to
 
10236
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
10237
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
10238
 
 
10239
    archive_cmds_CXX=''
 
10240
    hardcode_direct_CXX=yes
 
10241
    hardcode_libdir_separator_CXX=':'
 
10242
    link_all_deplibs_CXX=yes
 
10243
 
 
10244
    if test "$GXX" = yes; then
 
10245
      case $host_os in aix4.012|aix4.012.*)
 
10246
      # We only want to do this on AIX 4.2 and lower, the check
 
10247
      # below for broken collect2 doesn't work under 4.3+
 
10248
        collect2name=`${CC} -print-prog-name=collect2`
 
10249
        if test -f "$collect2name" && \
 
10250
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
10251
        then
 
10252
          # We have reworked collect2
 
10253
          hardcode_direct_CXX=yes
 
10254
        else
 
10255
          # We have old collect2
 
10256
          hardcode_direct_CXX=unsupported
 
10257
          # It fails to find uninstalled libraries when the uninstalled
 
10258
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
10259
          # to unsupported forces relinking
 
10260
          hardcode_minus_L_CXX=yes
 
10261
          hardcode_libdir_flag_spec_CXX='-L$libdir'
 
10262
          hardcode_libdir_separator_CXX=
 
10263
        fi
 
10264
      esac
 
10265
      shared_flag='-shared'
 
10266
    else
 
10267
      # not using gcc
 
10268
      if test "$host_cpu" = ia64; then
 
10269
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
10270
        # chokes on -Wl,-G. The following line is correct:
 
10271
        shared_flag='-G'
 
10272
      else
 
10273
        if test "$aix_use_runtimelinking" = yes; then
 
10274
          shared_flag='${wl}-G'
 
10275
        else
 
10276
          shared_flag='${wl}-bM:SRE'
 
10277
        fi
 
10278
      fi
 
10279
    fi
 
10280
 
 
10281
    # It seems that -bexpall does not export symbols beginning with
 
10282
    # underscore (_), so it is better to generate a list of symbols to export.
 
10283
    always_export_symbols_CXX=yes
 
10284
    if test "$aix_use_runtimelinking" = yes; then
 
10285
      # Warning - without using the other runtime loading flags (-brtl),
 
10286
      # -berok will link without error, but may produce a broken library.
 
10287
      allow_undefined_flag_CXX='-berok'
 
10288
      # Determine the default libpath from the value encoded in an empty executable.
 
10289
      cat >conftest.$ac_ext <<_ACEOF
 
10290
/* confdefs.h.  */
 
10291
_ACEOF
 
10292
cat confdefs.h >>conftest.$ac_ext
 
10293
cat >>conftest.$ac_ext <<_ACEOF
 
10294
/* end confdefs.h.  */
 
10295
 
 
10296
int
 
10297
main ()
 
10298
{
 
10299
 
 
10300
  ;
 
10301
  return 0;
 
10302
}
 
10303
_ACEOF
 
10304
rm -f conftest.$ac_objext conftest$ac_exeext
 
10305
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10306
  (eval $ac_link) 2>conftest.er1
 
10307
  ac_status=$?
 
10308
  grep -v '^ *+' conftest.er1 >conftest.err
 
10309
  rm -f conftest.er1
 
10310
  cat conftest.err >&5
 
10311
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10312
  (exit $ac_status); } &&
 
10313
         { ac_try='test -z "$ac_cxx_werror_flag"
 
10314
                         || test ! -s conftest.err'
 
10315
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10316
  (eval $ac_try) 2>&5
 
10317
  ac_status=$?
 
10318
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10319
  (exit $ac_status); }; } &&
 
10320
         { ac_try='test -s conftest$ac_exeext'
 
10321
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10322
  (eval $ac_try) 2>&5
 
10323
  ac_status=$?
 
10324
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10325
  (exit $ac_status); }; }; then
 
10326
 
 
10327
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
10328
}'`
 
10329
# Check for a 64-bit object if we didn't find anything.
 
10330
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; }
 
10331
}'`; fi
 
10332
else
 
10333
  echo "$as_me: failed program was:" >&5
 
10334
sed 's/^/| /' conftest.$ac_ext >&5
 
10335
 
 
10336
fi
 
10337
rm -f conftest.err conftest.$ac_objext \
 
10338
      conftest$ac_exeext conftest.$ac_ext
 
10339
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
10340
 
 
10341
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
10342
 
 
10343
      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
10344
     else
 
10345
      if test "$host_cpu" = ia64; then
 
10346
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
 
10347
        allow_undefined_flag_CXX="-z nodefs"
 
10348
        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"
 
10349
      else
 
10350
        # Determine the default libpath from the value encoded in an empty executable.
 
10351
        cat >conftest.$ac_ext <<_ACEOF
 
10352
/* confdefs.h.  */
 
10353
_ACEOF
 
10354
cat confdefs.h >>conftest.$ac_ext
 
10355
cat >>conftest.$ac_ext <<_ACEOF
 
10356
/* end confdefs.h.  */
 
10357
 
 
10358
int
 
10359
main ()
 
10360
{
 
10361
 
 
10362
  ;
 
10363
  return 0;
 
10364
}
 
10365
_ACEOF
 
10366
rm -f conftest.$ac_objext conftest$ac_exeext
 
10367
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10368
  (eval $ac_link) 2>conftest.er1
 
10369
  ac_status=$?
 
10370
  grep -v '^ *+' conftest.er1 >conftest.err
 
10371
  rm -f conftest.er1
 
10372
  cat conftest.err >&5
 
10373
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10374
  (exit $ac_status); } &&
 
10375
         { ac_try='test -z "$ac_cxx_werror_flag"
 
10376
                         || test ! -s conftest.err'
 
10377
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10378
  (eval $ac_try) 2>&5
 
10379
  ac_status=$?
 
10380
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10381
  (exit $ac_status); }; } &&
 
10382
         { ac_try='test -s conftest$ac_exeext'
 
10383
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10384
  (eval $ac_try) 2>&5
 
10385
  ac_status=$?
 
10386
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10387
  (exit $ac_status); }; }; then
 
10388
 
 
10389
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
10390
}'`
 
10391
# Check for a 64-bit object if we didn't find anything.
 
10392
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; }
 
10393
}'`; fi
 
10394
else
 
10395
  echo "$as_me: failed program was:" >&5
 
10396
sed 's/^/| /' conftest.$ac_ext >&5
 
10397
 
 
10398
fi
 
10399
rm -f conftest.err conftest.$ac_objext \
 
10400
      conftest$ac_exeext conftest.$ac_ext
 
10401
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
10402
 
 
10403
        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
10404
        # Warning - without using the other run time loading flags,
 
10405
        # -berok will link without error, but may produce a broken library.
 
10406
        no_undefined_flag_CXX=' ${wl}-bernotok'
 
10407
        allow_undefined_flag_CXX=' ${wl}-berok'
 
10408
        # -bexpall does not export symbols beginning with underscore (_)
 
10409
        always_export_symbols_CXX=yes
 
10410
        # Exported symbols can be pulled into shared objects from archives
 
10411
        whole_archive_flag_spec_CXX=' '
 
10412
        archive_cmds_need_lc_CXX=yes
 
10413
        # This is similar to how AIX traditionally builds it's shared libraries.
 
10414
        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'
 
10415
      fi
 
10416
    fi
 
10417
    ;;
 
10418
  chorus*)
 
10419
    case $cc_basename in
 
10420
      *)
 
10421
        # FIXME: insert proper C++ library support
 
10422
        ld_shlibs_CXX=no
 
10423
        ;;
 
10424
    esac
 
10425
    ;;
 
10426
 
 
10427
  cygwin* | mingw* | pw32*)
 
10428
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
 
10429
    # as there is no search path for DLLs.
 
10430
    hardcode_libdir_flag_spec_CXX='-L$libdir'
 
10431
    allow_undefined_flag_CXX=unsupported
 
10432
    always_export_symbols_CXX=no
 
10433
    enable_shared_with_static_runtimes_CXX=yes
 
10434
 
 
10435
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
10436
      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
10437
      # If the export-symbols file already is a .def file (1st line
 
10438
      # is EXPORTS), use it as is; otherwise, prepend...
 
10439
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
10440
        cp $export_symbols $output_objdir/$soname.def;
 
10441
      else
 
10442
        echo EXPORTS > $output_objdir/$soname.def;
 
10443
        cat $export_symbols >> $output_objdir/$soname.def;
 
10444
      fi~
 
10445
      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
10446
    else
 
10447
      ld_shlibs_CXX=no
 
10448
    fi
 
10449
  ;;
 
10450
 
 
10451
  darwin* | rhapsody*)
 
10452
  if test "$GXX" = yes; then
 
10453
    archive_cmds_need_lc_CXX=no
 
10454
    case "$host_os" in
 
10455
    rhapsody* | darwin1.[012])
 
10456
      allow_undefined_flag_CXX='-undefined suppress'
 
10457
      ;;
 
10458
    *) # Darwin 1.3 on
 
10459
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
10460
        allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
 
10461
      else
 
10462
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
10463
          10.[012])
 
10464
            allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
 
10465
            ;;
 
10466
          10.*)
 
10467
            allow_undefined_flag_CXX='-undefined dynamic_lookup'
 
10468
            ;;
 
10469
        esac
 
10470
      fi
 
10471
      ;;
 
10472
    esac
 
10473
    lt_int_apple_cc_single_mod=no
 
10474
    output_verbose_link_cmd='echo'
 
10475
    if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
10476
      lt_int_apple_cc_single_mod=yes
 
10477
    fi
 
10478
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
10479
      archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
10480
    else
 
10481
      archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
10482
    fi
 
10483
    module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
10484
 
 
10485
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
10486
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
10487
      archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
10488
    else
 
10489
      archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
10490
    fi
 
10491
    module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
10492
    hardcode_direct_CXX=no
 
10493
    hardcode_automatic_CXX=yes
 
10494
    hardcode_shlibpath_var_CXX=unsupported
 
10495
    whole_archive_flag_spec_CXX='-all_load $convenience'
 
10496
    link_all_deplibs_CXX=yes
 
10497
  else
 
10498
    ld_shlibs_CXX=no
 
10499
  fi
 
10500
    ;;
 
10501
 
 
10502
  dgux*)
 
10503
    case $cc_basename in
 
10504
      ec++)
 
10505
        # FIXME: insert proper C++ library support
 
10506
        ld_shlibs_CXX=no
 
10507
        ;;
 
10508
      ghcx)
 
10509
        # Green Hills C++ Compiler
 
10510
        # FIXME: insert proper C++ library support
 
10511
        ld_shlibs_CXX=no
 
10512
        ;;
 
10513
      *)
 
10514
        # FIXME: insert proper C++ library support
 
10515
        ld_shlibs_CXX=no
 
10516
        ;;
 
10517
    esac
 
10518
    ;;
 
10519
  freebsd12*)
 
10520
    # C++ shared libraries reported to be fairly broken before switch to ELF
 
10521
    ld_shlibs_CXX=no
 
10522
    ;;
 
10523
  freebsd-elf*)
 
10524
    archive_cmds_need_lc_CXX=no
 
10525
    ;;
 
10526
  freebsd* | kfreebsd*-gnu)
 
10527
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
10528
    # conventions
 
10529
    ld_shlibs_CXX=yes
 
10530
    ;;
 
10531
  gnu*)
 
10532
    ;;
 
10533
  hpux9*)
 
10534
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
10535
    hardcode_libdir_separator_CXX=:
 
10536
    export_dynamic_flag_spec_CXX='${wl}-E'
 
10537
    hardcode_direct_CXX=yes
 
10538
    hardcode_minus_L_CXX=yes # Not in the search PATH,
 
10539
                                # but as the default
 
10540
                                # location of the library.
 
10541
 
 
10542
    case $cc_basename in
 
10543
    CC)
 
10544
      # FIXME: insert proper C++ library support
 
10545
      ld_shlibs_CXX=no
 
10546
      ;;
 
10547
    aCC)
 
10548
      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'
 
10549
      # Commands to make compiler produce verbose output that lists
 
10550
      # what "hidden" libraries, object files and flags are used when
 
10551
      # linking a shared library.
 
10552
      #
 
10553
      # There doesn't appear to be a way to prevent this compiler from
 
10554
      # explicitly linking system object files so we need to strip them
 
10555
      # from the output so that they don't get included in the library
 
10556
      # dependencies.
 
10557
      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
10558
      ;;
 
10559
    *)
 
10560
      if test "$GXX" = yes; then
 
10561
        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'
 
10562
      else
 
10563
        # FIXME: insert proper C++ library support
 
10564
        ld_shlibs_CXX=no
 
10565
      fi
 
10566
      ;;
 
10567
    esac
 
10568
    ;;
 
10569
  hpux10*|hpux11*)
 
10570
    if test $with_gnu_ld = no; then
 
10571
      case "$host_cpu" in
 
10572
      hppa*64*)
 
10573
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
10574
        hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
 
10575
        hardcode_libdir_separator_CXX=:
 
10576
        ;;
 
10577
      ia64*)
 
10578
        hardcode_libdir_flag_spec_CXX='-L$libdir'
 
10579
        ;;
 
10580
      *)
 
10581
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
10582
        hardcode_libdir_separator_CXX=:
 
10583
        export_dynamic_flag_spec_CXX='${wl}-E'
 
10584
        ;;
 
10585
      esac
 
10586
    fi
 
10587
    case "$host_cpu" in
 
10588
    hppa*64*)
 
10589
      hardcode_direct_CXX=no
 
10590
      hardcode_shlibpath_var_CXX=no
 
10591
      ;;
 
10592
    ia64*)
 
10593
      hardcode_direct_CXX=no
 
10594
      hardcode_shlibpath_var_CXX=no
 
10595
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
10596
                                              # but as the default
 
10597
                                              # location of the library.
 
10598
      ;;
 
10599
    *)
 
10600
      hardcode_direct_CXX=yes
 
10601
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
10602
                                              # but as the default
 
10603
                                              # location of the library.
 
10604
      ;;
 
10605
    esac
 
10606
 
 
10607
    case $cc_basename in
 
10608
      CC)
 
10609
        # FIXME: insert proper C++ library support
 
10610
        ld_shlibs_CXX=no
 
10611
        ;;
 
10612
      aCC)
 
10613
        case "$host_cpu" in
 
10614
        hppa*64*|ia64*)
 
10615
          archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
10616
          ;;
 
10617
        *)
 
10618
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
10619
          ;;
 
10620
        esac
 
10621
        # Commands to make compiler produce verbose output that lists
 
10622
        # what "hidden" libraries, object files and flags are used when
 
10623
        # linking a shared library.
 
10624
        #
 
10625
        # There doesn't appear to be a way to prevent this compiler from
 
10626
        # explicitly linking system object files so we need to strip them
 
10627
        # from the output so that they don't get included in the library
 
10628
        # dependencies.
 
10629
        output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
10630
        ;;
 
10631
      *)
 
10632
        if test "$GXX" = yes; then
 
10633
          if test $with_gnu_ld = no; then
 
10634
            case "$host_cpu" in
 
10635
            ia64*|hppa*64*)
 
10636
              archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
10637
              ;;
 
10638
            *)
 
10639
              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'
 
10640
              ;;
 
10641
            esac
 
10642
          fi
 
10643
        else
 
10644
          # FIXME: insert proper C++ library support
 
10645
          ld_shlibs_CXX=no
 
10646
        fi
 
10647
        ;;
 
10648
    esac
 
10649
    ;;
 
10650
  irix5* | irix6*)
 
10651
    case $cc_basename in
 
10652
      CC)
 
10653
        # SGI C++
 
10654
        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'
 
10655
 
 
10656
        # Archives containing C++ object files must be created using
 
10657
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
10658
        # necessary to make sure instantiated templates are included
 
10659
        # in the archive.
 
10660
        old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
10661
        ;;
 
10662
      *)
 
10663
        if test "$GXX" = yes; then
 
10664
          if test "$with_gnu_ld" = no; then
 
10665
            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'
 
10666
          else
 
10667
            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
 
10668
          fi
 
10669
        fi
 
10670
        link_all_deplibs_CXX=yes
 
10671
        ;;
 
10672
    esac
 
10673
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
10674
    hardcode_libdir_separator_CXX=:
 
10675
    ;;
 
10676
  linux*)
 
10677
    case $cc_basename in
 
10678
      KCC)
 
10679
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
10680
 
 
10681
        # KCC will only create a shared library if the output file
 
10682
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
10683
        # to its proper name (with version) after linking.
 
10684
        archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
 
10685
        archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
 
10686
        # Commands to make compiler produce verbose output that lists
 
10687
        # what "hidden" libraries, object files and flags are used when
 
10688
        # linking a shared library.
 
10689
        #
 
10690
        # There doesn't appear to be a way to prevent this compiler from
 
10691
        # explicitly linking system object files so we need to strip them
 
10692
        # from the output so that they don't get included in the library
 
10693
        # dependencies.
 
10694
        output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
10695
 
 
10696
        hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
 
10697
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
10698
 
 
10699
        # Archives containing C++ object files must be created using
 
10700
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
10701
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
10702
        ;;
 
10703
      icpc)
 
10704
        # Intel C++
 
10705
        with_gnu_ld=yes
 
10706
        archive_cmds_need_lc_CXX=no
 
10707
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10708
        archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
10709
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
10710
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
10711
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
10712
        ;;
 
10713
      cxx)
 
10714
        # Compaq C++
 
10715
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10716
        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'
 
10717
 
 
10718
        runpath_var=LD_RUN_PATH
 
10719
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
10720
        hardcode_libdir_separator_CXX=:
 
10721
 
 
10722
        # Commands to make compiler produce verbose output that lists
 
10723
        # what "hidden" libraries, object files and flags are used when
 
10724
        # linking a shared library.
 
10725
        #
 
10726
        # There doesn't appear to be a way to prevent this compiler from
 
10727
        # explicitly linking system object files so we need to strip them
 
10728
        # from the output so that they don't get included in the library
 
10729
        # dependencies.
 
10730
        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'
 
10731
        ;;
 
10732
    esac
 
10733
    ;;
 
10734
  lynxos*)
 
10735
    # FIXME: insert proper C++ library support
 
10736
    ld_shlibs_CXX=no
 
10737
    ;;
 
10738
  m88k*)
 
10739
    # FIXME: insert proper C++ library support
 
10740
    ld_shlibs_CXX=no
 
10741
    ;;
 
10742
  mvs*)
 
10743
    case $cc_basename in
 
10744
      cxx)
 
10745
        # FIXME: insert proper C++ library support
 
10746
        ld_shlibs_CXX=no
 
10747
        ;;
 
10748
      *)
 
10749
        # FIXME: insert proper C++ library support
 
10750
        ld_shlibs_CXX=no
 
10751
        ;;
 
10752
    esac
 
10753
    ;;
 
10754
  netbsd*)
 
10755
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
10756
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
10757
      wlarc=
 
10758
      hardcode_libdir_flag_spec_CXX='-R$libdir'
 
10759
      hardcode_direct_CXX=yes
 
10760
      hardcode_shlibpath_var_CXX=no
 
10761
    fi
 
10762
    # Workaround some broken pre-1.5 toolchains
 
10763
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
10764
    ;;
 
10765
  osf3*)
 
10766
    case $cc_basename in
 
10767
      KCC)
 
10768
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
10769
 
 
10770
        # KCC will only create a shared library if the output file
 
10771
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
10772
        # to its proper name (with version) after linking.
 
10773
        archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
 
10774
 
 
10775
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
10776
        hardcode_libdir_separator_CXX=:
 
10777
 
 
10778
        # Archives containing C++ object files must be created using
 
10779
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
10780
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
10781
 
 
10782
        ;;
 
10783
      RCC)
 
10784
        # Rational C++ 2.4.1
 
10785
        # FIXME: insert proper C++ library support
 
10786
        ld_shlibs_CXX=no
 
10787
        ;;
 
10788
      cxx)
 
10789
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
10790
        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'
 
10791
 
 
10792
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
10793
        hardcode_libdir_separator_CXX=:
 
10794
 
 
10795
        # Commands to make compiler produce verbose output that lists
 
10796
        # what "hidden" libraries, object files and flags are used when
 
10797
        # linking a shared library.
 
10798
        #
 
10799
        # There doesn't appear to be a way to prevent this compiler from
 
10800
        # explicitly linking system object files so we need to strip them
 
10801
        # from the output so that they don't get included in the library
 
10802
        # dependencies.
 
10803
        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'
 
10804
        ;;
 
10805
      *)
 
10806
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
10807
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
10808
          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'
 
10809
 
 
10810
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
10811
          hardcode_libdir_separator_CXX=:
 
10812
 
 
10813
          # Commands to make compiler produce verbose output that lists
 
10814
          # what "hidden" libraries, object files and flags are used when
 
10815
          # linking a shared library.
 
10816
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
10817
 
 
10818
        else
 
10819
          # FIXME: insert proper C++ library support
 
10820
          ld_shlibs_CXX=no
 
10821
        fi
 
10822
        ;;
 
10823
    esac
 
10824
    ;;
 
10825
  osf4* | osf5*)
 
10826
    case $cc_basename in
 
10827
      KCC)
 
10828
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
10829
 
 
10830
        # KCC will only create a shared library if the output file
 
10831
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
10832
        # to its proper name (with version) after linking.
 
10833
        archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
 
10834
 
 
10835
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
10836
        hardcode_libdir_separator_CXX=:
 
10837
 
 
10838
        # Archives containing C++ object files must be created using
 
10839
        # the KAI C++ compiler.
 
10840
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
 
10841
        ;;
 
10842
      RCC)
 
10843
        # Rational C++ 2.4.1
 
10844
        # FIXME: insert proper C++ library support
 
10845
        ld_shlibs_CXX=no
 
10846
        ;;
 
10847
      cxx)
 
10848
        allow_undefined_flag_CXX=' -expect_unresolved \*'
 
10849
        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'
 
10850
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
10851
          echo "-hidden">> $lib.exp~
 
10852
          $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~
 
10853
          $rm $lib.exp'
 
10854
 
 
10855
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
10856
        hardcode_libdir_separator_CXX=:
 
10857
 
 
10858
        # Commands to make compiler produce verbose output that lists
 
10859
        # what "hidden" libraries, object files and flags are used when
 
10860
        # linking a shared library.
 
10861
        #
 
10862
        # There doesn't appear to be a way to prevent this compiler from
 
10863
        # explicitly linking system object files so we need to strip them
 
10864
        # from the output so that they don't get included in the library
 
10865
        # dependencies.
 
10866
        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'
 
10867
        ;;
 
10868
      *)
 
10869
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
10870
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
10871
         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'
 
10872
 
 
10873
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
10874
          hardcode_libdir_separator_CXX=:
 
10875
 
 
10876
          # Commands to make compiler produce verbose output that lists
 
10877
          # what "hidden" libraries, object files and flags are used when
 
10878
          # linking a shared library.
 
10879
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
10880
 
 
10881
        else
 
10882
          # FIXME: insert proper C++ library support
 
10883
          ld_shlibs_CXX=no
 
10884
        fi
 
10885
        ;;
 
10886
    esac
 
10887
    ;;
 
10888
  psos*)
 
10889
    # FIXME: insert proper C++ library support
 
10890
    ld_shlibs_CXX=no
 
10891
    ;;
 
10892
  sco*)
 
10893
    archive_cmds_need_lc_CXX=no
 
10894
    case $cc_basename in
 
10895
      CC)
 
10896
        # FIXME: insert proper C++ library support
 
10897
        ld_shlibs_CXX=no
 
10898
        ;;
 
10899
      *)
 
10900
        # FIXME: insert proper C++ library support
 
10901
        ld_shlibs_CXX=no
 
10902
        ;;
 
10903
    esac
 
10904
    ;;
 
10905
  sunos4*)
 
10906
    case $cc_basename in
 
10907
      CC)
 
10908
        # Sun C++ 4.x
 
10909
        # FIXME: insert proper C++ library support
 
10910
        ld_shlibs_CXX=no
 
10911
        ;;
 
10912
      lcc)
 
10913
        # Lucid
 
10914
        # FIXME: insert proper C++ library support
 
10915
        ld_shlibs_CXX=no
 
10916
        ;;
 
10917
      *)
 
10918
        # FIXME: insert proper C++ library support
 
10919
        ld_shlibs_CXX=no
 
10920
        ;;
 
10921
    esac
 
10922
    ;;
 
10923
  solaris*)
 
10924
    case $cc_basename in
 
10925
      CC)
 
10926
        # Sun C++ 4.2, 5.x and Centerline C++
 
10927
        no_undefined_flag_CXX=' -zdefs'
 
10928
        archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
10929
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
10930
        $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'
 
10931
 
 
10932
        hardcode_libdir_flag_spec_CXX='-R$libdir'
 
10933
        hardcode_shlibpath_var_CXX=no
 
10934
        case $host_os in
 
10935
          solaris2.0-5 | solaris2.0-5.*) ;;
 
10936
          *)
 
10937
            # The C++ compiler is used as linker so we must use $wl
 
10938
            # flag to pass the commands to the underlying system
 
10939
            # linker.
 
10940
            # Supported since Solaris 2.6 (maybe 2.5.1?)
 
10941
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
10942
            ;;
 
10943
        esac
 
10944
        link_all_deplibs_CXX=yes
 
10945
 
 
10946
        # Commands to make compiler produce verbose output that lists
 
10947
        # what "hidden" libraries, object files and flags are used when
 
10948
        # linking a shared library.
 
10949
        #
 
10950
        # There doesn't appear to be a way to prevent this compiler from
 
10951
        # explicitly linking system object files so we need to strip them
 
10952
        # from the output so that they don't get included in the library
 
10953
        # dependencies.
 
10954
        output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
10955
 
 
10956
        # Archives containing C++ object files must be created using
 
10957
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
10958
        # necessary to make sure instantiated templates are included
 
10959
        # in the archive.
 
10960
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
10961
        ;;
 
10962
      gcx)
 
10963
        # Green Hills C++ Compiler
 
10964
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
10965
 
 
10966
        # The C++ compiler must be used to create the archive.
 
10967
        old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
10968
        ;;
 
10969
      *)
 
10970
        # GNU C++ compiler with Solaris linker
 
10971
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
10972
          no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
 
10973
          if $CC --version | grep -v '^2\.7' > /dev/null; then
 
10974
            archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
10975
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
10976
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
10977
 
 
10978
            # Commands to make compiler produce verbose output that lists
 
10979
            # what "hidden" libraries, object files and flags are used when
 
10980
            # linking a shared library.
 
10981
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
10982
          else
 
10983
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
10984
            # platform.
 
10985
            archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
10986
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
10987
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
10988
 
 
10989
            # Commands to make compiler produce verbose output that lists
 
10990
            # what "hidden" libraries, object files and flags are used when
 
10991
            # linking a shared library.
 
10992
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
10993
          fi
 
10994
 
 
10995
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
 
10996
        fi
 
10997
        ;;
 
10998
    esac
 
10999
    ;;
 
11000
  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
 
11001
    archive_cmds_need_lc_CXX=no
 
11002
    ;;
 
11003
  tandem*)
 
11004
    case $cc_basename in
 
11005
      NCC)
 
11006
        # NonStop-UX NCC 3.20
 
11007
        # FIXME: insert proper C++ library support
 
11008
        ld_shlibs_CXX=no
 
11009
        ;;
 
11010
      *)
 
11011
        # FIXME: insert proper C++ library support
 
11012
        ld_shlibs_CXX=no
 
11013
        ;;
 
11014
    esac
 
11015
    ;;
 
11016
  vxworks*)
 
11017
    # FIXME: insert proper C++ library support
 
11018
    ld_shlibs_CXX=no
 
11019
    ;;
 
11020
  *)
 
11021
    # FIXME: insert proper C++ library support
 
11022
    ld_shlibs_CXX=no
 
11023
    ;;
 
11024
esac
 
11025
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
11026
echo "${ECHO_T}$ld_shlibs_CXX" >&6
 
11027
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
11028
 
 
11029
GCC_CXX="$GXX"
 
11030
LD_CXX="$LD"
 
11031
 
 
11032
 
 
11033
cat > conftest.$ac_ext <<EOF
 
11034
class Foo
 
11035
{
 
11036
public:
 
11037
  Foo (void) { a = 0; }
 
11038
private:
 
11039
  int a;
 
11040
};
 
11041
EOF
 
11042
 
 
11043
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11044
  (eval $ac_compile) 2>&5
 
11045
  ac_status=$?
 
11046
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11047
  (exit $ac_status); }; then
 
11048
  # Parse the compiler output and extract the necessary
 
11049
  # objects, libraries and library flags.
 
11050
 
 
11051
  # Sentinel used to keep track of whether or not we are before
 
11052
  # the conftest object file.
 
11053
  pre_test_object_deps_done=no
 
11054
 
 
11055
  # The `*' in the case matches for architectures that use `case' in
 
11056
  # $output_verbose_cmd can trigger glob expansion during the loop
 
11057
  # eval without this substitution.
 
11058
  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
 
11059
 
 
11060
  for p in `eval $output_verbose_link_cmd`; do
 
11061
    case $p in
 
11062
 
 
11063
    -L* | -R* | -l*)
 
11064
       # Some compilers place space between "-{L,R}" and the path.
 
11065
       # Remove the space.
 
11066
       if test $p = "-L" \
 
11067
          || test $p = "-R"; then
 
11068
         prev=$p
 
11069
         continue
 
11070
       else
 
11071
         prev=
 
11072
       fi
 
11073
 
 
11074
       if test "$pre_test_object_deps_done" = no; then
 
11075
         case $p in
 
11076
         -L* | -R*)
 
11077
           # Internal compiler library paths should come after those
 
11078
           # provided the user.  The postdeps already come after the
 
11079
           # user supplied libs so there is no need to process them.
 
11080
           if test -z "$compiler_lib_search_path_CXX"; then
 
11081
             compiler_lib_search_path_CXX="${prev}${p}"
 
11082
           else
 
11083
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
 
11084
           fi
 
11085
           ;;
 
11086
         # The "-l" case would never come before the object being
 
11087
         # linked, so don't bother handling this case.
 
11088
         esac
 
11089
       else
 
11090
         if test -z "$postdeps_CXX"; then
 
11091
           postdeps_CXX="${prev}${p}"
 
11092
         else
 
11093
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
 
11094
         fi
 
11095
       fi
 
11096
       ;;
 
11097
 
 
11098
    *.$objext)
 
11099
       # This assumes that the test object file only shows up
 
11100
       # once in the compiler output.
 
11101
       if test "$p" = "conftest.$objext"; then
 
11102
         pre_test_object_deps_done=yes
 
11103
         continue
 
11104
       fi
 
11105
 
 
11106
       if test "$pre_test_object_deps_done" = no; then
 
11107
         if test -z "$predep_objects_CXX"; then
 
11108
           predep_objects_CXX="$p"
 
11109
         else
 
11110
           predep_objects_CXX="$predep_objects_CXX $p"
 
11111
         fi
 
11112
       else
 
11113
         if test -z "$postdep_objects_CXX"; then
 
11114
           postdep_objects_CXX="$p"
 
11115
         else
 
11116
           postdep_objects_CXX="$postdep_objects_CXX $p"
 
11117
         fi
 
11118
       fi
 
11119
       ;;
 
11120
 
 
11121
    *) ;; # Ignore the rest.
 
11122
 
 
11123
    esac
 
11124
  done
 
11125
 
 
11126
  # Clean up.
 
11127
  rm -f a.out a.exe
 
11128
else
 
11129
  echo "libtool.m4: error: problem compiling CXX test program"
 
11130
fi
 
11131
 
 
11132
$rm -f confest.$objext
 
11133
 
 
11134
case " $postdeps_CXX " in
 
11135
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
 
11136
esac
 
11137
 
 
11138
lt_prog_compiler_wl_CXX=
 
11139
lt_prog_compiler_pic_CXX=
 
11140
lt_prog_compiler_static_CXX=
 
11141
 
 
11142
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
11143
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
11144
 
 
11145
  # C++ specific cases for pic, static, wl, etc.
 
11146
  if test "$GXX" = yes; then
 
11147
    lt_prog_compiler_wl_CXX='-Wl,'
 
11148
    lt_prog_compiler_static_CXX='-static'
 
11149
 
 
11150
    case $host_os in
 
11151
    aix*)
 
11152
      # All AIX code is PIC.
 
11153
      if test "$host_cpu" = ia64; then
 
11154
        # AIX 5 now supports IA64 processor
 
11155
        lt_prog_compiler_static_CXX='-Bstatic'
 
11156
      fi
 
11157
      ;;
 
11158
    amigaos*)
 
11159
      # FIXME: we need at least 68020 code to build shared libraries, but
 
11160
      # adding the `-m68020' flag to GCC prevents building anything better,
 
11161
      # like `-m68040'.
 
11162
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
 
11163
      ;;
 
11164
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
11165
      # PIC is the default for these OSes.
 
11166
      ;;
 
11167
    mingw* | os2* | pw32*)
 
11168
      # This hack is so that the source file can tell whether it is being
 
11169
      # built for inclusion in a dll (and should export symbols for example).
 
11170
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
 
11171
      ;;
 
11172
    darwin* | rhapsody*)
 
11173
      # PIC is the default on this platform
 
11174
      # Common symbols not allowed in MH_DYLIB files
 
11175
      lt_prog_compiler_pic_CXX='-fno-common'
 
11176
      ;;
 
11177
    *djgpp*)
 
11178
      # DJGPP does not support shared libraries at all
 
11179
      lt_prog_compiler_pic_CXX=
 
11180
      ;;
 
11181
    sysv4*MP*)
 
11182
      if test -d /usr/nec; then
 
11183
        lt_prog_compiler_pic_CXX=-Kconform_pic
 
11184
      fi
 
11185
      ;;
 
11186
    hpux*)
 
11187
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
11188
      # not for PA HP-UX.
 
11189
      case "$host_cpu" in
 
11190
      hppa*64*|ia64*)
 
11191
        ;;
 
11192
      *)
 
11193
        lt_prog_compiler_pic_CXX='-fPIC'
 
11194
        ;;
 
11195
      esac
 
11196
      ;;
 
11197
    *)
 
11198
      lt_prog_compiler_pic_CXX='-fPIC'
 
11199
      ;;
 
11200
    esac
 
11201
  else
 
11202
    case $host_os in
 
11203
      aix4* | aix5*)
 
11204
        # All AIX code is PIC.
 
11205
        if test "$host_cpu" = ia64; then
 
11206
          # AIX 5 now supports IA64 processor
 
11207
          lt_prog_compiler_static_CXX='-Bstatic'
 
11208
        else
 
11209
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
 
11210
        fi
 
11211
        ;;
 
11212
      chorus*)
 
11213
        case $cc_basename in
 
11214
        cxch68)
 
11215
          # Green Hills C++ Compiler
 
11216
          # _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"
 
11217
          ;;
 
11218
        esac
 
11219
        ;;
 
11220
      dgux*)
 
11221
        case $cc_basename in
 
11222
          ec++)
 
11223
            lt_prog_compiler_pic_CXX='-KPIC'
 
11224
            ;;
 
11225
          ghcx)
 
11226
            # Green Hills C++ Compiler
 
11227
            lt_prog_compiler_pic_CXX='-pic'
 
11228
            ;;
 
11229
          *)
 
11230
            ;;
 
11231
        esac
 
11232
        ;;
 
11233
      freebsd* | kfreebsd*-gnu)
 
11234
        # FreeBSD uses GNU C++
 
11235
        ;;
 
11236
      hpux9* | hpux10* | hpux11*)
 
11237
        case $cc_basename in
 
11238
          CC)
 
11239
            lt_prog_compiler_wl_CXX='-Wl,'
 
11240
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
11241
            if test "$host_cpu" != ia64; then
 
11242
              lt_prog_compiler_pic_CXX='+Z'
 
11243
            fi
 
11244
            ;;
 
11245
          aCC)
 
11246
            lt_prog_compiler_wl_CXX='-Wl,'
 
11247
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
11248
            case "$host_cpu" in
 
11249
            hppa*64*|ia64*)
 
11250
              # +Z the default
 
11251
              ;;
 
11252
            *)
 
11253
              lt_prog_compiler_pic_CXX='+Z'
 
11254
              ;;
 
11255
            esac
 
11256
            ;;
 
11257
          *)
 
11258
            ;;
 
11259
        esac
 
11260
        ;;
 
11261
      irix5* | irix6* | nonstopux*)
 
11262
        case $cc_basename in
 
11263
          CC)
 
11264
            lt_prog_compiler_wl_CXX='-Wl,'
 
11265
            lt_prog_compiler_static_CXX='-non_shared'
 
11266
            # CC pic flag -KPIC is the default.
 
11267
            ;;
 
11268
          *)
 
11269
            ;;
 
11270
        esac
 
11271
        ;;
 
11272
      linux*)
 
11273
        case $cc_basename in
 
11274
          KCC)
 
11275
            # KAI C++ Compiler
 
11276
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
11277
            lt_prog_compiler_pic_CXX='-fPIC'
 
11278
            ;;
 
11279
          icpc)
 
11280
            # Intel C++
 
11281
            lt_prog_compiler_wl_CXX='-Wl,'
 
11282
            lt_prog_compiler_pic_CXX='-KPIC'
 
11283
            lt_prog_compiler_static_CXX='-static'
 
11284
            ;;
 
11285
          cxx)
 
11286
            # Compaq C++
 
11287
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
11288
            # Linux and Compaq Tru64 Unix objects are PIC.
 
11289
            lt_prog_compiler_pic_CXX=
 
11290
            lt_prog_compiler_static_CXX='-non_shared'
 
11291
            ;;
 
11292
          *)
 
11293
            ;;
 
11294
        esac
 
11295
        ;;
 
11296
      lynxos*)
 
11297
        ;;
 
11298
      m88k*)
 
11299
        ;;
 
11300
      mvs*)
 
11301
        case $cc_basename in
 
11302
          cxx)
 
11303
            lt_prog_compiler_pic_CXX='-W c,exportall'
 
11304
            ;;
 
11305
          *)
 
11306
            ;;
 
11307
        esac
 
11308
        ;;
 
11309
      netbsd*)
 
11310
        ;;
 
11311
      osf3* | osf4* | osf5*)
 
11312
        case $cc_basename in
 
11313
          KCC)
 
11314
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
11315
            ;;
 
11316
          RCC)
 
11317
            # Rational C++ 2.4.1
 
11318
            lt_prog_compiler_pic_CXX='-pic'
 
11319
            ;;
 
11320
          cxx)
 
11321
            # Digital/Compaq C++
 
11322
            lt_prog_compiler_wl_CXX='-Wl,'
 
11323
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
11324
            # Linux and Compaq Tru64 Unix objects are PIC.
 
11325
            lt_prog_compiler_pic_CXX=
 
11326
            lt_prog_compiler_static_CXX='-non_shared'
 
11327
            ;;
 
11328
          *)
 
11329
            ;;
 
11330
        esac
 
11331
        ;;
 
11332
      psos*)
 
11333
        ;;
 
11334
      sco*)
 
11335
        case $cc_basename in
 
11336
          CC)
 
11337
            lt_prog_compiler_pic_CXX='-fPIC'
 
11338
            ;;
 
11339
          *)
 
11340
            ;;
 
11341
        esac
 
11342
        ;;
 
11343
      solaris*)
 
11344
        case $cc_basename in
 
11345
          CC)
 
11346
            # Sun C++ 4.2, 5.x and Centerline C++
 
11347
            lt_prog_compiler_pic_CXX='-KPIC'
 
11348
            lt_prog_compiler_static_CXX='-Bstatic'
 
11349
            lt_prog_compiler_wl_CXX='-Qoption ld '
 
11350
            ;;
 
11351
          gcx)
 
11352
            # Green Hills C++ Compiler
 
11353
            lt_prog_compiler_pic_CXX='-PIC'
 
11354
            ;;
 
11355
          *)
 
11356
            ;;
 
11357
        esac
 
11358
        ;;
 
11359
      sunos4*)
 
11360
        case $cc_basename in
 
11361
          CC)
 
11362
            # Sun C++ 4.x
 
11363
            lt_prog_compiler_pic_CXX='-pic'
 
11364
            lt_prog_compiler_static_CXX='-Bstatic'
 
11365
            ;;
 
11366
          lcc)
 
11367
            # Lucid
 
11368
            lt_prog_compiler_pic_CXX='-pic'
 
11369
            ;;
 
11370
          *)
 
11371
            ;;
 
11372
        esac
 
11373
        ;;
 
11374
      tandem*)
 
11375
        case $cc_basename in
 
11376
          NCC)
 
11377
            # NonStop-UX NCC 3.20
 
11378
            lt_prog_compiler_pic_CXX='-KPIC'
 
11379
            ;;
 
11380
          *)
 
11381
            ;;
 
11382
        esac
 
11383
        ;;
 
11384
      unixware*)
 
11385
        ;;
 
11386
      vxworks*)
 
11387
        ;;
 
11388
      *)
 
11389
        lt_prog_compiler_can_build_shared_CXX=no
 
11390
        ;;
 
11391
    esac
 
11392
  fi
 
11393
 
 
11394
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
 
11395
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
 
11396
 
 
11397
#
 
11398
# Check to make sure the PIC flag actually works.
 
11399
#
 
11400
if test -n "$lt_prog_compiler_pic_CXX"; then
 
11401
 
 
11402
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
 
11403
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
 
11404
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
 
11405
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11406
else
 
11407
  lt_prog_compiler_pic_works_CXX=no
 
11408
  ac_outfile=conftest.$ac_objext
 
11409
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
11410
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
 
11411
   # Insert the option either (1) after the last *FLAGS variable, or
 
11412
   # (2) before a word containing "conftest.", or (3) at the end.
 
11413
   # Note that $ac_compile itself does not contain backslashes and begins
 
11414
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
11415
   # The option is referenced via a variable to avoid confusing sed.
 
11416
   lt_compile=`echo "$ac_compile" | $SED \
 
11417
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
11418
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
11419
   -e 's:$: $lt_compiler_flag:'`
 
11420
   (eval echo "\"\$as_me:11420: $lt_compile\"" >&5)
 
11421
   (eval "$lt_compile" 2>conftest.err)
 
11422
   ac_status=$?
 
11423
   cat conftest.err >&5
 
11424
   echo "$as_me:11424: \$? = $ac_status" >&5
 
11425
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
11426
     # The compiler can only warn and ignore the option if not recognized
 
11427
     # So say no if there are warnings
 
11428
     if test ! -s conftest.err; then
 
11429
       lt_prog_compiler_pic_works_CXX=yes
 
11430
     fi
 
11431
   fi
 
11432
   $rm conftest*
 
11433
 
 
11434
fi
 
11435
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
 
11436
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
 
11437
 
 
11438
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
 
11439
    case $lt_prog_compiler_pic_CXX in
 
11440
     "" | " "*) ;;
 
11441
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
 
11442
     esac
 
11443
else
 
11444
    lt_prog_compiler_pic_CXX=
 
11445
     lt_prog_compiler_can_build_shared_CXX=no
 
11446
fi
 
11447
 
 
11448
fi
 
11449
case "$host_os" in
 
11450
  # For platforms which do not support PIC, -DPIC is meaningless:
 
11451
  *djgpp*)
 
11452
    lt_prog_compiler_pic_CXX=
 
11453
    ;;
 
11454
  *)
 
11455
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
 
11456
    ;;
 
11457
esac
 
11458
 
 
11459
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
11460
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
11461
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
 
11462
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11463
else
 
11464
  lt_cv_prog_compiler_c_o_CXX=no
 
11465
   $rm -r conftest 2>/dev/null
 
11466
   mkdir conftest
 
11467
   cd conftest
 
11468
   mkdir out
 
11469
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
11470
 
 
11471
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
11472
   # Insert the option either (1) after the last *FLAGS variable, or
 
11473
   # (2) before a word containing "conftest.", or (3) at the end.
 
11474
   # Note that $ac_compile itself does not contain backslashes and begins
 
11475
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
11476
   lt_compile=`echo "$ac_compile" | $SED \
 
11477
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
11478
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
11479
   -e 's:$: $lt_compiler_flag:'`
 
11480
   (eval echo "\"\$as_me:11480: $lt_compile\"" >&5)
 
11481
   (eval "$lt_compile" 2>out/conftest.err)
 
11482
   ac_status=$?
 
11483
   cat out/conftest.err >&5
 
11484
   echo "$as_me:11484: \$? = $ac_status" >&5
 
11485
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
11486
   then
 
11487
     # The compiler can only warn and ignore the option if not recognized
 
11488
     # So say no if there are warnings
 
11489
     if test ! -s out/conftest.err; then
 
11490
       lt_cv_prog_compiler_c_o_CXX=yes
 
11491
     fi
 
11492
   fi
 
11493
   chmod u+w .
 
11494
   $rm conftest*
 
11495
   # SGI C++ compiler will create directory out/ii_files/ for
 
11496
   # template instantiation
 
11497
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
11498
   $rm out/* && rmdir out
 
11499
   cd ..
 
11500
   rmdir conftest
 
11501
   $rm conftest*
 
11502
 
 
11503
fi
 
11504
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
11505
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
 
11506
 
 
11507
 
 
11508
hard_links="nottested"
 
11509
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
 
11510
  # do not overwrite the value of need_locks provided by the user
 
11511
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
11512
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
11513
  hard_links=yes
 
11514
  $rm conftest*
 
11515
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
11516
  touch conftest.a
 
11517
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
11518
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
11519
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
11520
echo "${ECHO_T}$hard_links" >&6
 
11521
  if test "$hard_links" = no; then
 
11522
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
11523
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
11524
    need_locks=warn
 
11525
  fi
 
11526
else
 
11527
  need_locks=no
 
11528
fi
 
11529
 
 
11530
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
11531
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
11532
 
 
11533
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
11534
  case $host_os in
 
11535
  aix4* | aix5*)
 
11536
    # If we're using GNU nm, then we don't want the "-C" option.
 
11537
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
11538
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
11539
      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'
 
11540
    else
 
11541
      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'
 
11542
    fi
 
11543
    ;;
 
11544
  pw32*)
 
11545
    export_symbols_cmds_CXX="$ltdll_cmds"
 
11546
  ;;
 
11547
  cygwin* | mingw*)
 
11548
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
11549
  ;;
 
11550
  *)
 
11551
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
11552
  ;;
 
11553
  esac
 
11554
 
 
11555
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
11556
echo "${ECHO_T}$ld_shlibs_CXX" >&6
 
11557
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
11558
 
 
11559
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
11560
if test "$GCC" = yes; then
 
11561
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
11562
fi
 
11563
 
 
11564
#
 
11565
# Do we need to explicitly link libc?
 
11566
#
 
11567
case "x$archive_cmds_need_lc_CXX" in
 
11568
x|xyes)
 
11569
  # Assume -lc should be added
 
11570
  archive_cmds_need_lc_CXX=yes
 
11571
 
 
11572
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
11573
    case $archive_cmds_CXX in
 
11574
    *'~'*)
 
11575
      # FIXME: we may have to deal with multi-command sequences.
 
11576
      ;;
 
11577
    '$CC '*)
 
11578
      # Test whether the compiler implicitly links with -lc since on some
 
11579
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
11580
      # to ld, don't add -lc before -lgcc.
 
11581
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
11582
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
11583
      $rm conftest*
 
11584
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
11585
 
 
11586
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11587
  (eval $ac_compile) 2>&5
 
11588
  ac_status=$?
 
11589
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11590
  (exit $ac_status); } 2>conftest.err; then
 
11591
        soname=conftest
 
11592
        lib=conftest
 
11593
        libobjs=conftest.$ac_objext
 
11594
        deplibs=
 
11595
        wl=$lt_prog_compiler_wl_CXX
 
11596
        compiler_flags=-v
 
11597
        linker_flags=-v
 
11598
        verstring=
 
11599
        output_objdir=.
 
11600
        libname=conftest
 
11601
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
 
11602
        allow_undefined_flag_CXX=
 
11603
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
11604
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
11605
  ac_status=$?
 
11606
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11607
  (exit $ac_status); }
 
11608
        then
 
11609
          archive_cmds_need_lc_CXX=no
 
11610
        else
 
11611
          archive_cmds_need_lc_CXX=yes
 
11612
        fi
 
11613
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
 
11614
      else
 
11615
        cat conftest.err 1>&5
 
11616
      fi
 
11617
      $rm conftest*
 
11618
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
 
11619
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
 
11620
      ;;
 
11621
    esac
 
11622
  fi
 
11623
  ;;
 
11624
esac
 
11625
 
 
11626
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
11627
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
11628
library_names_spec=
 
11629
libname_spec='lib$name'
 
11630
soname_spec=
 
11631
shrext_cmds=".so"
 
11632
postinstall_cmds=
 
11633
postuninstall_cmds=
 
11634
finish_cmds=
 
11635
finish_eval=
 
11636
shlibpath_var=
 
11637
shlibpath_overrides_runpath=unknown
 
11638
version_type=none
 
11639
dynamic_linker="$host_os ld.so"
 
11640
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
11641
if test "$GCC" = yes; then
 
11642
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
11643
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
11644
    # if the path contains ";" then we assume it to be the separator
 
11645
    # otherwise default to the standard path separator (i.e. ":") - it is
 
11646
    # assumed that no part of a normal pathname contains ";" but that should
 
11647
    # okay in the real world where ";" in dirpaths is itself problematic.
 
11648
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
11649
  else
 
11650
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
11651
  fi
 
11652
else
 
11653
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
11654
fi
 
11655
need_lib_prefix=unknown
 
11656
hardcode_into_libs=no
 
11657
 
 
11658
# when you set need_version to no, make sure it does not cause -set_version
 
11659
# flags to be left without arguments
 
11660
need_version=unknown
 
11661
 
 
11662
case $host_os in
 
11663
aix3*)
 
11664
  version_type=linux
 
11665
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
11666
  shlibpath_var=LIBPATH
 
11667
 
 
11668
  # AIX 3 has no versioning support, so we append a major version to the name.
 
11669
  soname_spec='${libname}${release}${shared_ext}$major'
 
11670
  ;;
 
11671
 
 
11672
aix4* | aix5*)
 
11673
  version_type=linux
 
11674
  need_lib_prefix=no
 
11675
  need_version=no
 
11676
  hardcode_into_libs=yes
 
11677
  if test "$host_cpu" = ia64; then
 
11678
    # AIX 5 supports IA64
 
11679
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
11680
    shlibpath_var=LD_LIBRARY_PATH
 
11681
  else
 
11682
    # With GCC up to 2.95.x, collect2 would create an import file
 
11683
    # for dependence libraries.  The import file would start with
 
11684
    # the line `#! .'.  This would cause the generated library to
 
11685
    # depend on `.', always an invalid library.  This was fixed in
 
11686
    # development snapshots of GCC prior to 3.0.
 
11687
    case $host_os in
 
11688
      aix4 | aix4.[01] | aix4.[01].*)
 
11689
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
11690
           echo ' yes '
 
11691
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
11692
        :
 
11693
      else
 
11694
        can_build_shared=no
 
11695
      fi
 
11696
      ;;
 
11697
    esac
 
11698
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
11699
    # soname into executable. Probably we can add versioning support to
 
11700
    # collect2, so additional links can be useful in future.
 
11701
    if test "$aix_use_runtimelinking" = yes; then
 
11702
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
11703
      # instead of lib<name>.a to let people know that these are not
 
11704
      # typical AIX shared libraries.
 
11705
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11706
    else
 
11707
      # We preserve .a as extension for shared libraries through AIX4.2
 
11708
      # and later when we are not doing run time linking.
 
11709
      library_names_spec='${libname}${release}.a $libname.a'
 
11710
      soname_spec='${libname}${release}${shared_ext}$major'
 
11711
    fi
 
11712
    shlibpath_var=LIBPATH
 
11713
  fi
 
11714
  ;;
 
11715
 
 
11716
amigaos*)
 
11717
  library_names_spec='$libname.ixlibrary $libname.a'
 
11718
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
11719
  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'
 
11720
  ;;
 
11721
 
 
11722
beos*)
 
11723
  library_names_spec='${libname}${shared_ext}'
 
11724
  dynamic_linker="$host_os ld.so"
 
11725
  shlibpath_var=LIBRARY_PATH
 
11726
  ;;
 
11727
 
 
11728
bsdi4*)
 
11729
  version_type=linux
 
11730
  need_version=no
 
11731
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11732
  soname_spec='${libname}${release}${shared_ext}$major'
 
11733
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
11734
  shlibpath_var=LD_LIBRARY_PATH
 
11735
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
11736
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
11737
  # the default ld.so.conf also contains /usr/contrib/lib and
 
11738
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
11739
  # libtool to hard-code these into programs
 
11740
  ;;
 
11741
 
 
11742
cygwin* | mingw* | pw32*)
 
11743
  version_type=windows
 
11744
  shrext_cmds=".dll"
 
11745
  need_version=no
 
11746
  need_lib_prefix=no
 
11747
 
 
11748
  case $GCC,$host_os in
 
11749
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
11750
    library_names_spec='$libname.dll.a'
 
11751
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
11752
    postinstall_cmds='base_file=`basename \${file}`~
 
11753
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
11754
      dldir=$destdir/`dirname \$dlpath`~
 
11755
      test -d \$dldir || mkdir -p \$dldir~
 
11756
      $install_prog $dir/$dlname \$dldir/$dlname'
 
11757
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
11758
      dlpath=$dir/\$dldll~
 
11759
       $rm \$dlpath'
 
11760
    shlibpath_overrides_runpath=yes
 
11761
 
 
11762
    case $host_os in
 
11763
    cygwin*)
 
11764
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
11765
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
11766
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
11767
      ;;
 
11768
    mingw*)
 
11769
      # MinGW DLLs use traditional 'lib' prefix
 
11770
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
11771
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
11772
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
11773
        # It is most probably a Windows format PATH printed by
 
11774
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
11775
        # path with ; separators, and with drive letters. We can handle the
 
11776
        # drive letters (cygwin fileutils understands them), so leave them,
 
11777
        # especially as we might pass files found there to a mingw objdump,
 
11778
        # which wouldn't understand a cygwinified path. Ahh.
 
11779
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
11780
      else
 
11781
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
11782
      fi
 
11783
      ;;
 
11784
    pw32*)
 
11785
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
11786
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
11787
      ;;
 
11788
    esac
 
11789
    ;;
 
11790
 
 
11791
  *)
 
11792
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
11793
    ;;
 
11794
  esac
 
11795
  dynamic_linker='Win32 ld.exe'
 
11796
  # FIXME: first we should search . and the directory the executable is in
 
11797
  shlibpath_var=PATH
 
11798
  ;;
 
11799
 
 
11800
darwin* | rhapsody*)
 
11801
  dynamic_linker="$host_os dyld"
 
11802
  version_type=darwin
 
11803
  need_lib_prefix=no
 
11804
  need_version=no
 
11805
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
11806
  soname_spec='${libname}${release}${major}$shared_ext'
 
11807
  shlibpath_overrides_runpath=yes
 
11808
  shlibpath_var=DYLD_LIBRARY_PATH
 
11809
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
11810
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
11811
  if test "$GCC" = yes; then
 
11812
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
 
11813
  else
 
11814
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
11815
  fi
 
11816
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
11817
  ;;
 
11818
 
 
11819
dgux*)
 
11820
  version_type=linux
 
11821
  need_lib_prefix=no
 
11822
  need_version=no
 
11823
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
11824
  soname_spec='${libname}${release}${shared_ext}$major'
 
11825
  shlibpath_var=LD_LIBRARY_PATH
 
11826
  ;;
 
11827
 
 
11828
freebsd1*)
 
11829
  dynamic_linker=no
 
11830
  ;;
 
11831
 
 
11832
kfreebsd*-gnu)
 
11833
  version_type=linux
 
11834
  need_lib_prefix=no
 
11835
  need_version=no
 
11836
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
11837
  soname_spec='${libname}${release}${shared_ext}$major'
 
11838
  shlibpath_var=LD_LIBRARY_PATH
 
11839
  shlibpath_overrides_runpath=no
 
11840
  hardcode_into_libs=yes
 
11841
  dynamic_linker='GNU ld.so'
 
11842
  ;;
 
11843
 
 
11844
freebsd*)
 
11845
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
11846
  version_type=freebsd-$objformat
 
11847
  case $version_type in
 
11848
    freebsd-elf*)
 
11849
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
11850
      need_version=no
 
11851
      need_lib_prefix=no
 
11852
      ;;
 
11853
    freebsd-*)
 
11854
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
11855
      need_version=yes
 
11856
      ;;
 
11857
  esac
 
11858
  shlibpath_var=LD_LIBRARY_PATH
 
11859
  case $host_os in
 
11860
  freebsd2*)
 
11861
    shlibpath_overrides_runpath=yes
 
11862
    ;;
 
11863
  freebsd3.01* | freebsdelf3.01*)
 
11864
    shlibpath_overrides_runpath=yes
 
11865
    hardcode_into_libs=yes
 
11866
    ;;
 
11867
  *) # from 3.2 on
 
11868
    shlibpath_overrides_runpath=no
 
11869
    hardcode_into_libs=yes
 
11870
    ;;
 
11871
  esac
 
11872
  ;;
 
11873
 
 
11874
gnu*)
 
11875
  version_type=linux
 
11876
  need_lib_prefix=no
 
11877
  need_version=no
 
11878
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
11879
  soname_spec='${libname}${release}${shared_ext}$major'
 
11880
  shlibpath_var=LD_LIBRARY_PATH
 
11881
  hardcode_into_libs=yes
 
11882
  ;;
 
11883
 
 
11884
hpux9* | hpux10* | hpux11*)
 
11885
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
11886
  # link against other versions.
 
11887
  version_type=sunos
 
11888
  need_lib_prefix=no
 
11889
  need_version=no
 
11890
  case "$host_cpu" in
 
11891
  ia64*)
 
11892
    shrext_cmds='.so'
 
11893
    hardcode_into_libs=yes
 
11894
    dynamic_linker="$host_os dld.so"
 
11895
    shlibpath_var=LD_LIBRARY_PATH
 
11896
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
11897
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11898
    soname_spec='${libname}${release}${shared_ext}$major'
 
11899
    if test "X$HPUX_IA64_MODE" = X32; then
 
11900
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
11901
    else
 
11902
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
11903
    fi
 
11904
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
11905
    ;;
 
11906
   hppa*64*)
 
11907
     shrext_cmds='.sl'
 
11908
     hardcode_into_libs=yes
 
11909
     dynamic_linker="$host_os dld.sl"
 
11910
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
11911
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
11912
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11913
     soname_spec='${libname}${release}${shared_ext}$major'
 
11914
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
11915
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
11916
     ;;
 
11917
   *)
 
11918
    shrext_cmds='.sl'
 
11919
    dynamic_linker="$host_os dld.sl"
 
11920
    shlibpath_var=SHLIB_PATH
 
11921
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
11922
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11923
    soname_spec='${libname}${release}${shared_ext}$major'
 
11924
    ;;
 
11925
  esac
 
11926
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
11927
  postinstall_cmds='chmod 555 $lib'
 
11928
  ;;
 
11929
 
 
11930
irix5* | irix6* | nonstopux*)
 
11931
  case $host_os in
 
11932
    nonstopux*) version_type=nonstopux ;;
 
11933
    *)
 
11934
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
11935
                version_type=linux
 
11936
        else
 
11937
                version_type=irix
 
11938
        fi ;;
 
11939
  esac
 
11940
  need_lib_prefix=no
 
11941
  need_version=no
 
11942
  soname_spec='${libname}${release}${shared_ext}$major'
 
11943
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
11944
  case $host_os in
 
11945
  irix5* | nonstopux*)
 
11946
    libsuff= shlibsuff=
 
11947
    ;;
 
11948
  *)
 
11949
    case $LD in # libtool.m4 will add one of these switches to LD
 
11950
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
11951
      libsuff= shlibsuff= libmagic=32-bit;;
 
11952
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
11953
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
11954
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
11955
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
11956
    *) libsuff= shlibsuff= libmagic=never-match;;
 
11957
    esac
 
11958
    ;;
 
11959
  esac
 
11960
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
11961
  shlibpath_overrides_runpath=no
 
11962
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
11963
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
11964
  hardcode_into_libs=yes
 
11965
  ;;
 
11966
 
 
11967
# No shared lib support for Linux oldld, aout, or coff.
 
11968
linux*oldld* | linux*aout* | linux*coff*)
 
11969
  dynamic_linker=no
 
11970
  ;;
 
11971
 
 
11972
# This must be Linux ELF.
 
11973
linux*)
 
11974
  version_type=linux
 
11975
  need_lib_prefix=no
 
11976
  need_version=no
 
11977
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11978
  soname_spec='${libname}${release}${shared_ext}$major'
 
11979
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
11980
  shlibpath_var=LD_LIBRARY_PATH
 
11981
  shlibpath_overrides_runpath=no
 
11982
  # This implies no fast_install, which is unacceptable.
 
11983
  # Some rework will be needed to allow for fast_install
 
11984
  # before this can be enabled.
 
11985
  hardcode_into_libs=yes
 
11986
 
 
11987
  # find out which ABI we are using
 
11988
  libsuff=
 
11989
  case "$host_cpu" in
 
11990
  x86_64*|s390x*|powerpc64*)
 
11991
    echo '#line 11991 "configure"' > conftest.$ac_ext
 
11992
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11993
  (eval $ac_compile) 2>&5
 
11994
  ac_status=$?
 
11995
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11996
  (exit $ac_status); }; then
 
11997
      case `/usr/bin/file conftest.$ac_objext` in
 
11998
      *64-bit*)
 
11999
        libsuff=64
 
12000
        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
 
12001
        ;;
 
12002
      esac
 
12003
    fi
 
12004
    rm -rf conftest*
 
12005
    ;;
 
12006
  esac
 
12007
 
 
12008
  # Append ld.so.conf contents to the search path
 
12009
  if test -f /etc/ld.so.conf; then
 
12010
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
12011
    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
 
12012
  fi
 
12013
 
 
12014
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
12015
  # powerpc, because MkLinux only supported shared libraries with the
 
12016
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
12017
  # most powerpc-linux boxes support dynamic linking these days and
 
12018
  # people can always --disable-shared, the test was removed, and we
 
12019
  # assume the GNU/Linux dynamic linker is in use.
 
12020
  dynamic_linker='GNU/Linux ld.so'
 
12021
  ;;
 
12022
 
 
12023
knetbsd*-gnu)
 
12024
  version_type=linux
 
12025
  need_lib_prefix=no
 
12026
  need_version=no
 
12027
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
12028
  soname_spec='${libname}${release}${shared_ext}$major'
 
12029
  shlibpath_var=LD_LIBRARY_PATH
 
12030
  shlibpath_overrides_runpath=no
 
12031
  hardcode_into_libs=yes
 
12032
  dynamic_linker='GNU ld.so'
 
12033
  ;;
 
12034
 
 
12035
netbsd*)
 
12036
  version_type=sunos
 
12037
  need_lib_prefix=no
 
12038
  need_version=no
 
12039
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
12040
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
12041
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
12042
    dynamic_linker='NetBSD (a.out) ld.so'
 
12043
  else
 
12044
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
12045
    soname_spec='${libname}${release}${shared_ext}$major'
 
12046
    dynamic_linker='NetBSD ld.elf_so'
 
12047
  fi
 
12048
  shlibpath_var=LD_LIBRARY_PATH
 
12049
  shlibpath_overrides_runpath=yes
 
12050
  hardcode_into_libs=yes
 
12051
  ;;
 
12052
 
 
12053
newsos6)
 
12054
  version_type=linux
 
12055
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12056
  shlibpath_var=LD_LIBRARY_PATH
 
12057
  shlibpath_overrides_runpath=yes
 
12058
  ;;
 
12059
 
 
12060
nto-qnx*)
 
12061
  version_type=linux
 
12062
  need_lib_prefix=no
 
12063
  need_version=no
 
12064
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12065
  soname_spec='${libname}${release}${shared_ext}$major'
 
12066
  shlibpath_var=LD_LIBRARY_PATH
 
12067
  shlibpath_overrides_runpath=yes
 
12068
  ;;
 
12069
 
 
12070
openbsd*)
 
12071
  version_type=sunos
 
12072
  need_lib_prefix=no
 
12073
  need_version=yes
 
12074
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
12075
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
12076
  shlibpath_var=LD_LIBRARY_PATH
 
12077
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
12078
    case $host_os in
 
12079
      openbsd2.[89] | openbsd2.[89].*)
 
12080
        shlibpath_overrides_runpath=no
 
12081
        ;;
 
12082
      *)
 
12083
        shlibpath_overrides_runpath=yes
 
12084
        ;;
 
12085
      esac
 
12086
  else
 
12087
    shlibpath_overrides_runpath=yes
 
12088
  fi
 
12089
  ;;
 
12090
 
 
12091
os2*)
 
12092
  libname_spec='$name'
 
12093
  shrext_cmds=".dll"
 
12094
  need_lib_prefix=no
 
12095
  library_names_spec='$libname${shared_ext} $libname.a'
 
12096
  dynamic_linker='OS/2 ld.exe'
 
12097
  shlibpath_var=LIBPATH
 
12098
  ;;
 
12099
 
 
12100
osf3* | osf4* | osf5*)
 
12101
  version_type=osf
 
12102
  need_lib_prefix=no
 
12103
  need_version=no
 
12104
  soname_spec='${libname}${release}${shared_ext}$major'
 
12105
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12106
  shlibpath_var=LD_LIBRARY_PATH
 
12107
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
12108
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
12109
  ;;
 
12110
 
 
12111
sco3.2v5*)
 
12112
  version_type=osf
 
12113
  soname_spec='${libname}${release}${shared_ext}$major'
 
12114
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12115
  shlibpath_var=LD_LIBRARY_PATH
 
12116
  ;;
 
12117
 
 
12118
solaris*)
 
12119
  version_type=linux
 
12120
  need_lib_prefix=no
 
12121
  need_version=no
 
12122
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12123
  soname_spec='${libname}${release}${shared_ext}$major'
 
12124
  shlibpath_var=LD_LIBRARY_PATH
 
12125
  shlibpath_overrides_runpath=yes
 
12126
  hardcode_into_libs=yes
 
12127
  # ldd complains unless libraries are executable
 
12128
  postinstall_cmds='chmod +x $lib'
 
12129
  ;;
 
12130
 
 
12131
sunos4*)
 
12132
  version_type=sunos
 
12133
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
12134
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
12135
  shlibpath_var=LD_LIBRARY_PATH
 
12136
  shlibpath_overrides_runpath=yes
 
12137
  if test "$with_gnu_ld" = yes; then
 
12138
    need_lib_prefix=no
 
12139
  fi
 
12140
  need_version=yes
 
12141
  ;;
 
12142
 
 
12143
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
12144
  version_type=linux
 
12145
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12146
  soname_spec='${libname}${release}${shared_ext}$major'
 
12147
  shlibpath_var=LD_LIBRARY_PATH
 
12148
  case $host_vendor in
 
12149
    sni)
 
12150
      shlibpath_overrides_runpath=no
 
12151
      need_lib_prefix=no
 
12152
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
12153
      runpath_var=LD_RUN_PATH
 
12154
      ;;
 
12155
    siemens)
 
12156
      need_lib_prefix=no
 
12157
      ;;
 
12158
    motorola)
 
12159
      need_lib_prefix=no
 
12160
      need_version=no
 
12161
      shlibpath_overrides_runpath=no
 
12162
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
12163
      ;;
 
12164
  esac
 
12165
  ;;
 
12166
 
 
12167
sysv4*MP*)
 
12168
  if test -d /usr/nec ;then
 
12169
    version_type=linux
 
12170
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
12171
    soname_spec='$libname${shared_ext}.$major'
 
12172
    shlibpath_var=LD_LIBRARY_PATH
 
12173
  fi
 
12174
  ;;
 
12175
 
 
12176
uts4*)
 
12177
  version_type=linux
 
12178
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12179
  soname_spec='${libname}${release}${shared_ext}$major'
 
12180
  shlibpath_var=LD_LIBRARY_PATH
 
12181
  ;;
 
12182
 
 
12183
*)
 
12184
  dynamic_linker=no
 
12185
  ;;
 
12186
esac
 
12187
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
12188
echo "${ECHO_T}$dynamic_linker" >&6
 
12189
test "$dynamic_linker" = no && can_build_shared=no
 
12190
 
 
12191
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
12192
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
12193
hardcode_action_CXX=
 
12194
if test -n "$hardcode_libdir_flag_spec_CXX" || \
 
12195
   test -n "$runpath_var CXX" || \
 
12196
   test "X$hardcode_automatic_CXX"="Xyes" ; then
 
12197
 
 
12198
  # We can hardcode non-existant directories.
 
12199
  if test "$hardcode_direct_CXX" != no &&
 
12200
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
12201
     # have to relink, otherwise we might link with an installed library
 
12202
     # when we should be linking with a yet-to-be-installed one
 
12203
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
 
12204
     test "$hardcode_minus_L_CXX" != no; then
 
12205
    # Linking always hardcodes the temporary library directory.
 
12206
    hardcode_action_CXX=relink
 
12207
  else
 
12208
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
12209
    hardcode_action_CXX=immediate
 
12210
  fi
 
12211
else
 
12212
  # We cannot hardcode anything, or else we can only hardcode existing
 
12213
  # directories.
 
12214
  hardcode_action_CXX=unsupported
 
12215
fi
 
12216
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
 
12217
echo "${ECHO_T}$hardcode_action_CXX" >&6
 
12218
 
 
12219
if test "$hardcode_action_CXX" = relink; then
 
12220
  # Fast installation is not supported
 
12221
  enable_fast_install=no
 
12222
elif test "$shlibpath_overrides_runpath" = yes ||
 
12223
     test "$enable_shared" = no; then
 
12224
  # Fast installation is not necessary
 
12225
  enable_fast_install=needless
 
12226
fi
 
12227
 
 
12228
striplib=
 
12229
old_striplib=
 
12230
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
12231
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
12232
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
12233
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
12234
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
12235
  echo "$as_me:$LINENO: result: yes" >&5
 
12236
echo "${ECHO_T}yes" >&6
 
12237
else
 
12238
# FIXME - insert some real tests, host_os isn't really good enough
 
12239
  case $host_os in
 
12240
   darwin*)
 
12241
       if test -n "$STRIP" ; then
 
12242
         striplib="$STRIP -x"
 
12243
         echo "$as_me:$LINENO: result: yes" >&5
 
12244
echo "${ECHO_T}yes" >&6
 
12245
       else
 
12246
  echo "$as_me:$LINENO: result: no" >&5
 
12247
echo "${ECHO_T}no" >&6
 
12248
fi
 
12249
       ;;
 
12250
   *)
 
12251
  echo "$as_me:$LINENO: result: no" >&5
 
12252
echo "${ECHO_T}no" >&6
 
12253
    ;;
 
12254
  esac
 
12255
fi
 
12256
 
 
12257
if test "x$enable_dlopen" != xyes; then
 
12258
  enable_dlopen=unknown
 
12259
  enable_dlopen_self=unknown
 
12260
  enable_dlopen_self_static=unknown
 
12261
else
 
12262
  lt_cv_dlopen=no
 
12263
  lt_cv_dlopen_libs=
 
12264
 
 
12265
  case $host_os in
 
12266
  beos*)
 
12267
    lt_cv_dlopen="load_add_on"
 
12268
    lt_cv_dlopen_libs=
 
12269
    lt_cv_dlopen_self=yes
 
12270
    ;;
 
12271
 
 
12272
  mingw* | pw32*)
 
12273
    lt_cv_dlopen="LoadLibrary"
 
12274
    lt_cv_dlopen_libs=
 
12275
   ;;
 
12276
 
 
12277
  cygwin*)
 
12278
    lt_cv_dlopen="dlopen"
 
12279
    lt_cv_dlopen_libs=
 
12280
   ;;
 
12281
 
 
12282
  darwin*)
 
12283
  # if libdl is installed we need to link against it
 
12284
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
12285
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
12286
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
12287
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12288
else
 
12289
  ac_check_lib_save_LIBS=$LIBS
 
12290
LIBS="-ldl  $LIBS"
 
12291
cat >conftest.$ac_ext <<_ACEOF
 
12292
/* confdefs.h.  */
 
12293
_ACEOF
 
12294
cat confdefs.h >>conftest.$ac_ext
 
12295
cat >>conftest.$ac_ext <<_ACEOF
 
12296
/* end confdefs.h.  */
 
12297
 
 
12298
/* Override any gcc2 internal prototype to avoid an error.  */
 
12299
#ifdef __cplusplus
 
12300
extern "C"
 
12301
#endif
 
12302
/* We use char because int might match the return type of a gcc2
 
12303
   builtin and then its argument prototype would still apply.  */
 
12304
char dlopen ();
 
12305
int
 
12306
main ()
 
12307
{
 
12308
dlopen ();
 
12309
  ;
 
12310
  return 0;
 
12311
}
 
12312
_ACEOF
 
12313
rm -f conftest.$ac_objext conftest$ac_exeext
 
12314
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12315
  (eval $ac_link) 2>conftest.er1
 
12316
  ac_status=$?
 
12317
  grep -v '^ *+' conftest.er1 >conftest.err
 
12318
  rm -f conftest.er1
 
12319
  cat conftest.err >&5
 
12320
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12321
  (exit $ac_status); } &&
 
12322
         { ac_try='test -z "$ac_cxx_werror_flag"
 
12323
                         || test ! -s conftest.err'
 
12324
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12325
  (eval $ac_try) 2>&5
 
12326
  ac_status=$?
 
12327
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12328
  (exit $ac_status); }; } &&
 
12329
         { ac_try='test -s conftest$ac_exeext'
 
12330
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12331
  (eval $ac_try) 2>&5
 
12332
  ac_status=$?
 
12333
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12334
  (exit $ac_status); }; }; then
 
12335
  ac_cv_lib_dl_dlopen=yes
 
12336
else
 
12337
  echo "$as_me: failed program was:" >&5
 
12338
sed 's/^/| /' conftest.$ac_ext >&5
 
12339
 
 
12340
ac_cv_lib_dl_dlopen=no
 
12341
fi
 
12342
rm -f conftest.err conftest.$ac_objext \
 
12343
      conftest$ac_exeext conftest.$ac_ext
 
12344
LIBS=$ac_check_lib_save_LIBS
 
12345
fi
 
12346
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
12347
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
12348
if test $ac_cv_lib_dl_dlopen = yes; then
 
12349
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
12350
else
 
12351
 
 
12352
    lt_cv_dlopen="dyld"
 
12353
    lt_cv_dlopen_libs=
 
12354
    lt_cv_dlopen_self=yes
 
12355
 
 
12356
fi
 
12357
 
 
12358
   ;;
 
12359
 
 
12360
  *)
 
12361
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
12362
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
12363
if test "${ac_cv_func_shl_load+set}" = set; then
 
12364
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12365
else
 
12366
  cat >conftest.$ac_ext <<_ACEOF
 
12367
/* confdefs.h.  */
 
12368
_ACEOF
 
12369
cat confdefs.h >>conftest.$ac_ext
 
12370
cat >>conftest.$ac_ext <<_ACEOF
 
12371
/* end confdefs.h.  */
 
12372
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
12373
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
12374
#define shl_load innocuous_shl_load
 
12375
 
 
12376
/* System header to define __stub macros and hopefully few prototypes,
 
12377
    which can conflict with char shl_load (); below.
 
12378
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
12379
    <limits.h> exists even on freestanding compilers.  */
 
12380
 
 
12381
#ifdef __STDC__
 
12382
# include <limits.h>
 
12383
#else
 
12384
# include <assert.h>
 
12385
#endif
 
12386
 
 
12387
#undef shl_load
 
12388
 
 
12389
/* Override any gcc2 internal prototype to avoid an error.  */
 
12390
#ifdef __cplusplus
 
12391
extern "C"
 
12392
{
 
12393
#endif
 
12394
/* We use char because int might match the return type of a gcc2
 
12395
   builtin and then its argument prototype would still apply.  */
 
12396
char shl_load ();
 
12397
/* The GNU C library defines this for functions which it implements
 
12398
    to always fail with ENOSYS.  Some functions are actually named
 
12399
    something starting with __ and the normal name is an alias.  */
 
12400
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
12401
choke me
 
12402
#else
 
12403
char (*f) () = shl_load;
 
12404
#endif
 
12405
#ifdef __cplusplus
 
12406
}
 
12407
#endif
 
12408
 
 
12409
int
 
12410
main ()
 
12411
{
 
12412
return f != shl_load;
 
12413
  ;
 
12414
  return 0;
 
12415
}
 
12416
_ACEOF
 
12417
rm -f conftest.$ac_objext conftest$ac_exeext
 
12418
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12419
  (eval $ac_link) 2>conftest.er1
 
12420
  ac_status=$?
 
12421
  grep -v '^ *+' conftest.er1 >conftest.err
 
12422
  rm -f conftest.er1
 
12423
  cat conftest.err >&5
 
12424
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12425
  (exit $ac_status); } &&
 
12426
         { ac_try='test -z "$ac_cxx_werror_flag"
 
12427
                         || test ! -s conftest.err'
 
12428
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12429
  (eval $ac_try) 2>&5
 
12430
  ac_status=$?
 
12431
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12432
  (exit $ac_status); }; } &&
 
12433
         { ac_try='test -s conftest$ac_exeext'
 
12434
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12435
  (eval $ac_try) 2>&5
 
12436
  ac_status=$?
 
12437
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12438
  (exit $ac_status); }; }; then
 
12439
  ac_cv_func_shl_load=yes
 
12440
else
 
12441
  echo "$as_me: failed program was:" >&5
 
12442
sed 's/^/| /' conftest.$ac_ext >&5
 
12443
 
 
12444
ac_cv_func_shl_load=no
 
12445
fi
 
12446
rm -f conftest.err conftest.$ac_objext \
 
12447
      conftest$ac_exeext conftest.$ac_ext
 
12448
fi
 
12449
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
12450
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
12451
if test $ac_cv_func_shl_load = yes; then
 
12452
  lt_cv_dlopen="shl_load"
 
12453
else
 
12454
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
12455
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
12456
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
12457
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12458
else
 
12459
  ac_check_lib_save_LIBS=$LIBS
 
12460
LIBS="-ldld  $LIBS"
 
12461
cat >conftest.$ac_ext <<_ACEOF
 
12462
/* confdefs.h.  */
 
12463
_ACEOF
 
12464
cat confdefs.h >>conftest.$ac_ext
 
12465
cat >>conftest.$ac_ext <<_ACEOF
 
12466
/* end confdefs.h.  */
 
12467
 
 
12468
/* Override any gcc2 internal prototype to avoid an error.  */
 
12469
#ifdef __cplusplus
 
12470
extern "C"
 
12471
#endif
 
12472
/* We use char because int might match the return type of a gcc2
 
12473
   builtin and then its argument prototype would still apply.  */
 
12474
char shl_load ();
 
12475
int
 
12476
main ()
 
12477
{
 
12478
shl_load ();
 
12479
  ;
 
12480
  return 0;
 
12481
}
 
12482
_ACEOF
 
12483
rm -f conftest.$ac_objext conftest$ac_exeext
 
12484
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12485
  (eval $ac_link) 2>conftest.er1
 
12486
  ac_status=$?
 
12487
  grep -v '^ *+' conftest.er1 >conftest.err
 
12488
  rm -f conftest.er1
 
12489
  cat conftest.err >&5
 
12490
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12491
  (exit $ac_status); } &&
 
12492
         { ac_try='test -z "$ac_cxx_werror_flag"
 
12493
                         || test ! -s conftest.err'
 
12494
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12495
  (eval $ac_try) 2>&5
 
12496
  ac_status=$?
 
12497
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12498
  (exit $ac_status); }; } &&
 
12499
         { ac_try='test -s conftest$ac_exeext'
 
12500
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12501
  (eval $ac_try) 2>&5
 
12502
  ac_status=$?
 
12503
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12504
  (exit $ac_status); }; }; then
 
12505
  ac_cv_lib_dld_shl_load=yes
 
12506
else
 
12507
  echo "$as_me: failed program was:" >&5
 
12508
sed 's/^/| /' conftest.$ac_ext >&5
 
12509
 
 
12510
ac_cv_lib_dld_shl_load=no
 
12511
fi
 
12512
rm -f conftest.err conftest.$ac_objext \
 
12513
      conftest$ac_exeext conftest.$ac_ext
 
12514
LIBS=$ac_check_lib_save_LIBS
 
12515
fi
 
12516
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
12517
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
12518
if test $ac_cv_lib_dld_shl_load = yes; then
 
12519
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
12520
else
 
12521
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
12522
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
12523
if test "${ac_cv_func_dlopen+set}" = set; then
 
12524
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12525
else
 
12526
  cat >conftest.$ac_ext <<_ACEOF
 
12527
/* confdefs.h.  */
 
12528
_ACEOF
 
12529
cat confdefs.h >>conftest.$ac_ext
 
12530
cat >>conftest.$ac_ext <<_ACEOF
 
12531
/* end confdefs.h.  */
 
12532
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
12533
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
12534
#define dlopen innocuous_dlopen
 
12535
 
 
12536
/* System header to define __stub macros and hopefully few prototypes,
 
12537
    which can conflict with char dlopen (); below.
 
12538
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
12539
    <limits.h> exists even on freestanding compilers.  */
 
12540
 
 
12541
#ifdef __STDC__
 
12542
# include <limits.h>
 
12543
#else
 
12544
# include <assert.h>
 
12545
#endif
 
12546
 
 
12547
#undef dlopen
 
12548
 
 
12549
/* Override any gcc2 internal prototype to avoid an error.  */
 
12550
#ifdef __cplusplus
 
12551
extern "C"
 
12552
{
 
12553
#endif
 
12554
/* We use char because int might match the return type of a gcc2
 
12555
   builtin and then its argument prototype would still apply.  */
 
12556
char dlopen ();
 
12557
/* The GNU C library defines this for functions which it implements
 
12558
    to always fail with ENOSYS.  Some functions are actually named
 
12559
    something starting with __ and the normal name is an alias.  */
 
12560
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
12561
choke me
 
12562
#else
 
12563
char (*f) () = dlopen;
 
12564
#endif
 
12565
#ifdef __cplusplus
 
12566
}
 
12567
#endif
 
12568
 
 
12569
int
 
12570
main ()
 
12571
{
 
12572
return f != dlopen;
 
12573
  ;
 
12574
  return 0;
 
12575
}
 
12576
_ACEOF
 
12577
rm -f conftest.$ac_objext conftest$ac_exeext
 
12578
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12579
  (eval $ac_link) 2>conftest.er1
 
12580
  ac_status=$?
 
12581
  grep -v '^ *+' conftest.er1 >conftest.err
 
12582
  rm -f conftest.er1
 
12583
  cat conftest.err >&5
 
12584
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12585
  (exit $ac_status); } &&
 
12586
         { ac_try='test -z "$ac_cxx_werror_flag"
 
12587
                         || test ! -s conftest.err'
 
12588
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12589
  (eval $ac_try) 2>&5
 
12590
  ac_status=$?
 
12591
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12592
  (exit $ac_status); }; } &&
 
12593
         { ac_try='test -s conftest$ac_exeext'
 
12594
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12595
  (eval $ac_try) 2>&5
 
12596
  ac_status=$?
 
12597
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12598
  (exit $ac_status); }; }; then
 
12599
  ac_cv_func_dlopen=yes
 
12600
else
 
12601
  echo "$as_me: failed program was:" >&5
 
12602
sed 's/^/| /' conftest.$ac_ext >&5
 
12603
 
 
12604
ac_cv_func_dlopen=no
 
12605
fi
 
12606
rm -f conftest.err conftest.$ac_objext \
 
12607
      conftest$ac_exeext conftest.$ac_ext
 
12608
fi
 
12609
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
12610
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
12611
if test $ac_cv_func_dlopen = yes; then
 
12612
  lt_cv_dlopen="dlopen"
 
12613
else
 
12614
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
12615
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
12616
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
12617
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12618
else
 
12619
  ac_check_lib_save_LIBS=$LIBS
 
12620
LIBS="-ldl  $LIBS"
 
12621
cat >conftest.$ac_ext <<_ACEOF
 
12622
/* confdefs.h.  */
 
12623
_ACEOF
 
12624
cat confdefs.h >>conftest.$ac_ext
 
12625
cat >>conftest.$ac_ext <<_ACEOF
 
12626
/* end confdefs.h.  */
 
12627
 
 
12628
/* Override any gcc2 internal prototype to avoid an error.  */
 
12629
#ifdef __cplusplus
 
12630
extern "C"
 
12631
#endif
 
12632
/* We use char because int might match the return type of a gcc2
 
12633
   builtin and then its argument prototype would still apply.  */
 
12634
char dlopen ();
 
12635
int
 
12636
main ()
 
12637
{
 
12638
dlopen ();
 
12639
  ;
 
12640
  return 0;
 
12641
}
 
12642
_ACEOF
 
12643
rm -f conftest.$ac_objext conftest$ac_exeext
 
12644
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12645
  (eval $ac_link) 2>conftest.er1
 
12646
  ac_status=$?
 
12647
  grep -v '^ *+' conftest.er1 >conftest.err
 
12648
  rm -f conftest.er1
 
12649
  cat conftest.err >&5
 
12650
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12651
  (exit $ac_status); } &&
 
12652
         { ac_try='test -z "$ac_cxx_werror_flag"
 
12653
                         || test ! -s conftest.err'
 
12654
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12655
  (eval $ac_try) 2>&5
 
12656
  ac_status=$?
 
12657
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12658
  (exit $ac_status); }; } &&
 
12659
         { ac_try='test -s conftest$ac_exeext'
 
12660
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12661
  (eval $ac_try) 2>&5
 
12662
  ac_status=$?
 
12663
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12664
  (exit $ac_status); }; }; then
 
12665
  ac_cv_lib_dl_dlopen=yes
 
12666
else
 
12667
  echo "$as_me: failed program was:" >&5
 
12668
sed 's/^/| /' conftest.$ac_ext >&5
 
12669
 
 
12670
ac_cv_lib_dl_dlopen=no
 
12671
fi
 
12672
rm -f conftest.err conftest.$ac_objext \
 
12673
      conftest$ac_exeext conftest.$ac_ext
 
12674
LIBS=$ac_check_lib_save_LIBS
 
12675
fi
 
12676
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
12677
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
12678
if test $ac_cv_lib_dl_dlopen = yes; then
 
12679
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
12680
else
 
12681
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
12682
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
12683
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
12684
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12685
else
 
12686
  ac_check_lib_save_LIBS=$LIBS
 
12687
LIBS="-lsvld  $LIBS"
 
12688
cat >conftest.$ac_ext <<_ACEOF
 
12689
/* confdefs.h.  */
 
12690
_ACEOF
 
12691
cat confdefs.h >>conftest.$ac_ext
 
12692
cat >>conftest.$ac_ext <<_ACEOF
 
12693
/* end confdefs.h.  */
 
12694
 
 
12695
/* Override any gcc2 internal prototype to avoid an error.  */
 
12696
#ifdef __cplusplus
 
12697
extern "C"
 
12698
#endif
 
12699
/* We use char because int might match the return type of a gcc2
 
12700
   builtin and then its argument prototype would still apply.  */
 
12701
char dlopen ();
 
12702
int
 
12703
main ()
 
12704
{
 
12705
dlopen ();
 
12706
  ;
 
12707
  return 0;
 
12708
}
 
12709
_ACEOF
 
12710
rm -f conftest.$ac_objext conftest$ac_exeext
 
12711
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12712
  (eval $ac_link) 2>conftest.er1
 
12713
  ac_status=$?
 
12714
  grep -v '^ *+' conftest.er1 >conftest.err
 
12715
  rm -f conftest.er1
 
12716
  cat conftest.err >&5
 
12717
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12718
  (exit $ac_status); } &&
 
12719
         { ac_try='test -z "$ac_cxx_werror_flag"
 
12720
                         || test ! -s conftest.err'
 
12721
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12722
  (eval $ac_try) 2>&5
 
12723
  ac_status=$?
 
12724
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12725
  (exit $ac_status); }; } &&
 
12726
         { ac_try='test -s conftest$ac_exeext'
 
12727
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12728
  (eval $ac_try) 2>&5
 
12729
  ac_status=$?
 
12730
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12731
  (exit $ac_status); }; }; then
 
12732
  ac_cv_lib_svld_dlopen=yes
 
12733
else
 
12734
  echo "$as_me: failed program was:" >&5
 
12735
sed 's/^/| /' conftest.$ac_ext >&5
 
12736
 
 
12737
ac_cv_lib_svld_dlopen=no
 
12738
fi
 
12739
rm -f conftest.err conftest.$ac_objext \
 
12740
      conftest$ac_exeext conftest.$ac_ext
 
12741
LIBS=$ac_check_lib_save_LIBS
 
12742
fi
 
12743
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
12744
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
12745
if test $ac_cv_lib_svld_dlopen = yes; then
 
12746
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
12747
else
 
12748
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
12749
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
12750
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
12751
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12752
else
 
12753
  ac_check_lib_save_LIBS=$LIBS
 
12754
LIBS="-ldld  $LIBS"
 
12755
cat >conftest.$ac_ext <<_ACEOF
 
12756
/* confdefs.h.  */
 
12757
_ACEOF
 
12758
cat confdefs.h >>conftest.$ac_ext
 
12759
cat >>conftest.$ac_ext <<_ACEOF
 
12760
/* end confdefs.h.  */
 
12761
 
 
12762
/* Override any gcc2 internal prototype to avoid an error.  */
 
12763
#ifdef __cplusplus
 
12764
extern "C"
 
12765
#endif
 
12766
/* We use char because int might match the return type of a gcc2
 
12767
   builtin and then its argument prototype would still apply.  */
 
12768
char dld_link ();
 
12769
int
 
12770
main ()
 
12771
{
 
12772
dld_link ();
 
12773
  ;
 
12774
  return 0;
 
12775
}
 
12776
_ACEOF
 
12777
rm -f conftest.$ac_objext conftest$ac_exeext
 
12778
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12779
  (eval $ac_link) 2>conftest.er1
 
12780
  ac_status=$?
 
12781
  grep -v '^ *+' conftest.er1 >conftest.err
 
12782
  rm -f conftest.er1
 
12783
  cat conftest.err >&5
 
12784
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12785
  (exit $ac_status); } &&
 
12786
         { ac_try='test -z "$ac_cxx_werror_flag"
 
12787
                         || test ! -s conftest.err'
 
12788
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12789
  (eval $ac_try) 2>&5
 
12790
  ac_status=$?
 
12791
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12792
  (exit $ac_status); }; } &&
 
12793
         { ac_try='test -s conftest$ac_exeext'
 
12794
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12795
  (eval $ac_try) 2>&5
 
12796
  ac_status=$?
 
12797
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12798
  (exit $ac_status); }; }; then
 
12799
  ac_cv_lib_dld_dld_link=yes
 
12800
else
 
12801
  echo "$as_me: failed program was:" >&5
 
12802
sed 's/^/| /' conftest.$ac_ext >&5
 
12803
 
 
12804
ac_cv_lib_dld_dld_link=no
 
12805
fi
 
12806
rm -f conftest.err conftest.$ac_objext \
 
12807
      conftest$ac_exeext conftest.$ac_ext
 
12808
LIBS=$ac_check_lib_save_LIBS
 
12809
fi
 
12810
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
12811
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
12812
if test $ac_cv_lib_dld_dld_link = yes; then
 
12813
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
12814
fi
 
12815
 
 
12816
 
 
12817
fi
 
12818
 
 
12819
 
 
12820
fi
 
12821
 
 
12822
 
 
12823
fi
 
12824
 
 
12825
 
 
12826
fi
 
12827
 
 
12828
 
 
12829
fi
 
12830
 
 
12831
    ;;
 
12832
  esac
 
12833
 
 
12834
  if test "x$lt_cv_dlopen" != xno; then
 
12835
    enable_dlopen=yes
 
12836
  else
 
12837
    enable_dlopen=no
 
12838
  fi
 
12839
 
 
12840
  case $lt_cv_dlopen in
 
12841
  dlopen)
 
12842
    save_CPPFLAGS="$CPPFLAGS"
 
12843
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
12844
 
 
12845
    save_LDFLAGS="$LDFLAGS"
 
12846
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
12847
 
 
12848
    save_LIBS="$LIBS"
 
12849
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
12850
 
 
12851
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
12852
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
12853
if test "${lt_cv_dlopen_self+set}" = set; then
 
12854
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12855
else
 
12856
          if test "$cross_compiling" = yes; then :
 
12857
  lt_cv_dlopen_self=cross
 
12858
else
 
12859
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
12860
  lt_status=$lt_dlunknown
 
12861
  cat > conftest.$ac_ext <<EOF
 
12862
#line 12862 "configure"
 
12863
#include "confdefs.h"
 
12864
 
 
12865
#if HAVE_DLFCN_H
 
12866
#include <dlfcn.h>
 
12867
#endif
 
12868
 
 
12869
#include <stdio.h>
 
12870
 
 
12871
#ifdef RTLD_GLOBAL
 
12872
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
12873
#else
 
12874
#  ifdef DL_GLOBAL
 
12875
#    define LT_DLGLOBAL         DL_GLOBAL
 
12876
#  else
 
12877
#    define LT_DLGLOBAL         0
 
12878
#  endif
 
12879
#endif
 
12880
 
 
12881
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
12882
   find out it does not work in some platform. */
 
12883
#ifndef LT_DLLAZY_OR_NOW
 
12884
#  ifdef RTLD_LAZY
 
12885
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
12886
#  else
 
12887
#    ifdef DL_LAZY
 
12888
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
12889
#    else
 
12890
#      ifdef RTLD_NOW
 
12891
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
12892
#      else
 
12893
#        ifdef DL_NOW
 
12894
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
12895
#        else
 
12896
#          define LT_DLLAZY_OR_NOW      0
 
12897
#        endif
 
12898
#      endif
 
12899
#    endif
 
12900
#  endif
 
12901
#endif
 
12902
 
 
12903
#ifdef __cplusplus
 
12904
extern "C" void exit (int);
 
12905
#endif
 
12906
 
 
12907
void fnord() { int i=42;}
 
12908
int main ()
 
12909
{
 
12910
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
12911
  int status = $lt_dlunknown;
 
12912
 
 
12913
  if (self)
 
12914
    {
 
12915
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
12916
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
12917
      /* dlclose (self); */
 
12918
    }
 
12919
 
 
12920
    exit (status);
 
12921
}
 
12922
EOF
 
12923
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12924
  (eval $ac_link) 2>&5
 
12925
  ac_status=$?
 
12926
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12927
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
12928
    (./conftest; exit; ) 2>/dev/null
 
12929
    lt_status=$?
 
12930
    case x$lt_status in
 
12931
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
12932
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
12933
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
12934
    esac
 
12935
  else :
 
12936
    # compilation failed
 
12937
    lt_cv_dlopen_self=no
 
12938
  fi
 
12939
fi
 
12940
rm -fr conftest*
 
12941
 
 
12942
 
 
12943
fi
 
12944
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
12945
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
12946
 
 
12947
    if test "x$lt_cv_dlopen_self" = xyes; then
 
12948
      LDFLAGS="$LDFLAGS $link_static_flag"
 
12949
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
12950
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
12951
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
12952
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12953
else
 
12954
          if test "$cross_compiling" = yes; then :
 
12955
  lt_cv_dlopen_self_static=cross
 
12956
else
 
12957
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
12958
  lt_status=$lt_dlunknown
 
12959
  cat > conftest.$ac_ext <<EOF
 
12960
#line 12960 "configure"
 
12961
#include "confdefs.h"
 
12962
 
 
12963
#if HAVE_DLFCN_H
 
12964
#include <dlfcn.h>
 
12965
#endif
 
12966
 
 
12967
#include <stdio.h>
 
12968
 
 
12969
#ifdef RTLD_GLOBAL
 
12970
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
12971
#else
 
12972
#  ifdef DL_GLOBAL
 
12973
#    define LT_DLGLOBAL         DL_GLOBAL
 
12974
#  else
 
12975
#    define LT_DLGLOBAL         0
 
12976
#  endif
 
12977
#endif
 
12978
 
 
12979
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
12980
   find out it does not work in some platform. */
 
12981
#ifndef LT_DLLAZY_OR_NOW
 
12982
#  ifdef RTLD_LAZY
 
12983
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
12984
#  else
 
12985
#    ifdef DL_LAZY
 
12986
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
12987
#    else
 
12988
#      ifdef RTLD_NOW
 
12989
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
12990
#      else
 
12991
#        ifdef DL_NOW
 
12992
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
12993
#        else
 
12994
#          define LT_DLLAZY_OR_NOW      0
 
12995
#        endif
 
12996
#      endif
 
12997
#    endif
 
12998
#  endif
 
12999
#endif
 
13000
 
 
13001
#ifdef __cplusplus
 
13002
extern "C" void exit (int);
 
13003
#endif
 
13004
 
 
13005
void fnord() { int i=42;}
 
13006
int main ()
 
13007
{
 
13008
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
13009
  int status = $lt_dlunknown;
 
13010
 
 
13011
  if (self)
 
13012
    {
 
13013
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
13014
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
13015
      /* dlclose (self); */
 
13016
    }
 
13017
 
 
13018
    exit (status);
 
13019
}
 
13020
EOF
 
13021
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13022
  (eval $ac_link) 2>&5
 
13023
  ac_status=$?
 
13024
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13025
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
13026
    (./conftest; exit; ) 2>/dev/null
 
13027
    lt_status=$?
 
13028
    case x$lt_status in
 
13029
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
13030
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
13031
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
13032
    esac
 
13033
  else :
 
13034
    # compilation failed
 
13035
    lt_cv_dlopen_self_static=no
 
13036
  fi
 
13037
fi
 
13038
rm -fr conftest*
 
13039
 
 
13040
 
 
13041
fi
 
13042
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
13043
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
13044
    fi
 
13045
 
 
13046
    CPPFLAGS="$save_CPPFLAGS"
 
13047
    LDFLAGS="$save_LDFLAGS"
 
13048
    LIBS="$save_LIBS"
 
13049
    ;;
 
13050
  esac
 
13051
 
 
13052
  case $lt_cv_dlopen_self in
 
13053
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
13054
  *) enable_dlopen_self=unknown ;;
 
13055
  esac
 
13056
 
 
13057
  case $lt_cv_dlopen_self_static in
 
13058
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
13059
  *) enable_dlopen_self_static=unknown ;;
 
13060
  esac
 
13061
fi
 
13062
 
 
13063
 
 
13064
# The else clause should only fire when bootstrapping the
 
13065
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
13066
# with your package, and you will get complaints that there are
 
13067
# no rules to generate ltmain.sh.
 
13068
if test -f "$ltmain"; then
 
13069
  # See if we are running on zsh, and set the options which allow our commands through
 
13070
  # without removal of \ escapes.
 
13071
  if test -n "${ZSH_VERSION+set}" ; then
 
13072
    setopt NO_GLOB_SUBST
 
13073
  fi
 
13074
  # Now quote all the things that may contain metacharacters while being
 
13075
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
13076
  # variables and quote the copies for generation of the libtool script.
 
13077
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
13078
    SED SHELL STRIP \
 
13079
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
13080
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
13081
    deplibs_check_method reload_flag reload_cmds need_locks \
 
13082
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
13083
    lt_cv_sys_global_symbol_to_c_name_address \
 
13084
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
13085
    old_postinstall_cmds old_postuninstall_cmds \
 
13086
    compiler_CXX \
 
13087
    CC_CXX \
 
13088
    LD_CXX \
 
13089
    lt_prog_compiler_wl_CXX \
 
13090
    lt_prog_compiler_pic_CXX \
 
13091
    lt_prog_compiler_static_CXX \
 
13092
    lt_prog_compiler_no_builtin_flag_CXX \
 
13093
    export_dynamic_flag_spec_CXX \
 
13094
    thread_safe_flag_spec_CXX \
 
13095
    whole_archive_flag_spec_CXX \
 
13096
    enable_shared_with_static_runtimes_CXX \
 
13097
    old_archive_cmds_CXX \
 
13098
    old_archive_from_new_cmds_CXX \
 
13099
    predep_objects_CXX \
 
13100
    postdep_objects_CXX \
 
13101
    predeps_CXX \
 
13102
    postdeps_CXX \
 
13103
    compiler_lib_search_path_CXX \
 
13104
    archive_cmds_CXX \
 
13105
    archive_expsym_cmds_CXX \
 
13106
    postinstall_cmds_CXX \
 
13107
    postuninstall_cmds_CXX \
 
13108
    old_archive_from_expsyms_cmds_CXX \
 
13109
    allow_undefined_flag_CXX \
 
13110
    no_undefined_flag_CXX \
 
13111
    export_symbols_cmds_CXX \
 
13112
    hardcode_libdir_flag_spec_CXX \
 
13113
    hardcode_libdir_flag_spec_ld_CXX \
 
13114
    hardcode_libdir_separator_CXX \
 
13115
    hardcode_automatic_CXX \
 
13116
    module_cmds_CXX \
 
13117
    module_expsym_cmds_CXX \
 
13118
    lt_cv_prog_compiler_c_o_CXX \
 
13119
    exclude_expsyms_CXX \
 
13120
    include_expsyms_CXX; do
 
13121
 
 
13122
    case $var in
 
13123
    old_archive_cmds_CXX | \
 
13124
    old_archive_from_new_cmds_CXX | \
 
13125
    archive_cmds_CXX | \
 
13126
    archive_expsym_cmds_CXX | \
 
13127
    module_cmds_CXX | \
 
13128
    module_expsym_cmds_CXX | \
 
13129
    old_archive_from_expsyms_cmds_CXX | \
 
13130
    export_symbols_cmds_CXX | \
 
13131
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
13132
    postinstall_cmds | postuninstall_cmds | \
 
13133
    old_postinstall_cmds | old_postuninstall_cmds | \
 
13134
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
13135
      # Double-quote double-evaled strings.
 
13136
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
13137
      ;;
 
13138
    *)
 
13139
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
13140
      ;;
 
13141
    esac
 
13142
  done
 
13143
 
 
13144
  case $lt_echo in
 
13145
  *'\$0 --fallback-echo"')
 
13146
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
13147
    ;;
 
13148
  esac
 
13149
 
 
13150
cfgfile="$ofile"
 
13151
 
 
13152
  cat <<__EOF__ >> "$cfgfile"
 
13153
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
13154
 
 
13155
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
13156
 
 
13157
# Shell to use when invoking shell scripts.
 
13158
SHELL=$lt_SHELL
 
13159
 
 
13160
# Whether or not to build shared libraries.
 
13161
build_libtool_libs=$enable_shared
 
13162
 
 
13163
# Whether or not to build static libraries.
 
13164
build_old_libs=$enable_static
 
13165
 
 
13166
# Whether or not to add -lc for building shared libraries.
 
13167
build_libtool_need_lc=$archive_cmds_need_lc_CXX
 
13168
 
 
13169
# Whether or not to disallow shared libs when runtime libs are static
 
13170
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
 
13171
 
 
13172
# Whether or not to optimize for fast installation.
 
13173
fast_install=$enable_fast_install
 
13174
 
 
13175
# The host system.
 
13176
host_alias=$host_alias
 
13177
host=$host
 
13178
 
 
13179
# An echo program that does not interpret backslashes.
 
13180
echo=$lt_echo
 
13181
 
 
13182
# The archiver.
 
13183
AR=$lt_AR
 
13184
AR_FLAGS=$lt_AR_FLAGS
 
13185
 
 
13186
# A C compiler.
 
13187
LTCC=$lt_LTCC
 
13188
 
 
13189
# A language-specific compiler.
 
13190
CC=$lt_compiler_CXX
 
13191
 
 
13192
# Is the compiler the GNU C compiler?
 
13193
with_gcc=$GCC_CXX
 
13194
 
 
13195
# An ERE matcher.
 
13196
EGREP=$lt_EGREP
 
13197
 
 
13198
# The linker used to build libraries.
 
13199
LD=$lt_LD_CXX
 
13200
 
 
13201
# Whether we need hard or soft links.
 
13202
LN_S=$lt_LN_S
 
13203
 
 
13204
# A BSD-compatible nm program.
 
13205
NM=$lt_NM
 
13206
 
 
13207
# A symbol stripping program
 
13208
STRIP=$lt_STRIP
 
13209
 
 
13210
# Used to examine libraries when file_magic_cmd begins "file"
 
13211
MAGIC_CMD=$MAGIC_CMD
 
13212
 
 
13213
# Used on cygwin: DLL creation program.
 
13214
DLLTOOL="$DLLTOOL"
 
13215
 
 
13216
# Used on cygwin: object dumper.
 
13217
OBJDUMP="$OBJDUMP"
 
13218
 
 
13219
# Used on cygwin: assembler.
 
13220
AS="$AS"
 
13221
 
 
13222
# The name of the directory that contains temporary libtool files.
 
13223
objdir=$objdir
 
13224
 
 
13225
# How to create reloadable object files.
 
13226
reload_flag=$lt_reload_flag
 
13227
reload_cmds=$lt_reload_cmds
 
13228
 
 
13229
# How to pass a linker flag through the compiler.
 
13230
wl=$lt_lt_prog_compiler_wl_CXX
 
13231
 
 
13232
# Object file suffix (normally "o").
 
13233
objext="$ac_objext"
 
13234
 
 
13235
# Old archive suffix (normally "a").
 
13236
libext="$libext"
 
13237
 
 
13238
# Shared library suffix (normally ".so").
 
13239
shrext_cmds='$shrext_cmds'
 
13240
 
 
13241
# Executable file suffix (normally "").
 
13242
exeext="$exeext"
 
13243
 
 
13244
# Additional compiler flags for building library objects.
 
13245
pic_flag=$lt_lt_prog_compiler_pic_CXX
 
13246
pic_mode=$pic_mode
 
13247
 
 
13248
# What is the maximum length of a command?
 
13249
max_cmd_len=$lt_cv_sys_max_cmd_len
 
13250
 
 
13251
# Does compiler simultaneously support -c and -o options?
 
13252
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
 
13253
 
 
13254
# Must we lock files when doing compilation ?
 
13255
need_locks=$lt_need_locks
 
13256
 
 
13257
# Do we need the lib prefix for modules?
 
13258
need_lib_prefix=$need_lib_prefix
 
13259
 
 
13260
# Do we need a version for libraries?
 
13261
need_version=$need_version
 
13262
 
 
13263
# Whether dlopen is supported.
 
13264
dlopen_support=$enable_dlopen
 
13265
 
 
13266
# Whether dlopen of programs is supported.
 
13267
dlopen_self=$enable_dlopen_self
 
13268
 
 
13269
# Whether dlopen of statically linked programs is supported.
 
13270
dlopen_self_static=$enable_dlopen_self_static
 
13271
 
 
13272
# Compiler flag to prevent dynamic linking.
 
13273
link_static_flag=$lt_lt_prog_compiler_static_CXX
 
13274
 
 
13275
# Compiler flag to turn off builtin functions.
 
13276
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
 
13277
 
 
13278
# Compiler flag to allow reflexive dlopens.
 
13279
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
 
13280
 
 
13281
# Compiler flag to generate shared objects directly from archives.
 
13282
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
 
13283
 
 
13284
# Compiler flag to generate thread-safe objects.
 
13285
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
 
13286
 
 
13287
# Library versioning type.
 
13288
version_type=$version_type
 
13289
 
 
13290
# Format of library name prefix.
 
13291
libname_spec=$lt_libname_spec
 
13292
 
 
13293
# List of archive names.  First name is the real one, the rest are links.
 
13294
# The last name is the one that the linker finds with -lNAME.
 
13295
library_names_spec=$lt_library_names_spec
 
13296
 
 
13297
# The coded name of the library, if different from the real name.
 
13298
soname_spec=$lt_soname_spec
 
13299
 
 
13300
# Commands used to build and install an old-style archive.
 
13301
RANLIB=$lt_RANLIB
 
13302
old_archive_cmds=$lt_old_archive_cmds_CXX
 
13303
old_postinstall_cmds=$lt_old_postinstall_cmds
 
13304
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
13305
 
 
13306
# Create an old-style archive from a shared archive.
 
13307
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
 
13308
 
 
13309
# Create a temporary old-style archive to link instead of a shared archive.
 
13310
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
 
13311
 
 
13312
# Commands used to build and install a shared archive.
 
13313
archive_cmds=$lt_archive_cmds_CXX
 
13314
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
 
13315
postinstall_cmds=$lt_postinstall_cmds
 
13316
postuninstall_cmds=$lt_postuninstall_cmds
 
13317
 
 
13318
# Commands used to build a loadable module (assumed same as above if empty)
 
13319
module_cmds=$lt_module_cmds_CXX
 
13320
module_expsym_cmds=$lt_module_expsym_cmds_CXX
 
13321
 
 
13322
# Commands to strip libraries.
 
13323
old_striplib=$lt_old_striplib
 
13324
striplib=$lt_striplib
 
13325
 
 
13326
# Dependencies to place before the objects being linked to create a
 
13327
# shared library.
 
13328
predep_objects=$lt_predep_objects_CXX
 
13329
 
 
13330
# Dependencies to place after the objects being linked to create a
 
13331
# shared library.
 
13332
postdep_objects=$lt_postdep_objects_CXX
 
13333
 
 
13334
# Dependencies to place before the objects being linked to create a
 
13335
# shared library.
 
13336
predeps=$lt_predeps_CXX
 
13337
 
 
13338
# Dependencies to place after the objects being linked to create a
 
13339
# shared library.
 
13340
postdeps=$lt_postdeps_CXX
 
13341
 
 
13342
# The library search path used internally by the compiler when linking
 
13343
# a shared library.
 
13344
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
 
13345
 
 
13346
# Method to check whether dependent libraries are shared objects.
 
13347
deplibs_check_method=$lt_deplibs_check_method
 
13348
 
 
13349
# Command to use when deplibs_check_method == file_magic.
 
13350
file_magic_cmd=$lt_file_magic_cmd
 
13351
 
 
13352
# Flag that allows shared libraries with undefined symbols to be built.
 
13353
allow_undefined_flag=$lt_allow_undefined_flag_CXX
 
13354
 
 
13355
# Flag that forces no undefined symbols.
 
13356
no_undefined_flag=$lt_no_undefined_flag_CXX
 
13357
 
 
13358
# Commands used to finish a libtool library installation in a directory.
 
13359
finish_cmds=$lt_finish_cmds
 
13360
 
 
13361
# Same as above, but a single script fragment to be evaled but not shown.
 
13362
finish_eval=$lt_finish_eval
 
13363
 
 
13364
# Take the output of nm and produce a listing of raw symbols and C names.
 
13365
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
13366
 
 
13367
# Transform the output of nm in a proper C declaration
 
13368
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
13369
 
 
13370
# Transform the output of nm in a C name address pair
 
13371
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
13372
 
 
13373
# This is the shared library runtime path variable.
 
13374
runpath_var=$runpath_var
 
13375
 
 
13376
# This is the shared library path variable.
 
13377
shlibpath_var=$shlibpath_var
 
13378
 
 
13379
# Is shlibpath searched before the hard-coded library search path?
 
13380
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
13381
 
 
13382
# How to hardcode a shared library path into an executable.
 
13383
hardcode_action=$hardcode_action_CXX
 
13384
 
 
13385
# Whether we should hardcode library paths into libraries.
 
13386
hardcode_into_libs=$hardcode_into_libs
 
13387
 
 
13388
# Flag to hardcode \$libdir into a binary during linking.
 
13389
# This must work even if \$libdir does not exist.
 
13390
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
 
13391
 
 
13392
# If ld is used when linking, flag to hardcode \$libdir into
 
13393
# a binary during linking. This must work even if \$libdir does
 
13394
# not exist.
 
13395
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
 
13396
 
 
13397
# Whether we need a single -rpath flag with a separated argument.
 
13398
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
 
13399
 
 
13400
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
13401
# resulting binary.
 
13402
hardcode_direct=$hardcode_direct_CXX
 
13403
 
 
13404
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
13405
# resulting binary.
 
13406
hardcode_minus_L=$hardcode_minus_L_CXX
 
13407
 
 
13408
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
13409
# the resulting binary.
 
13410
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
 
13411
 
 
13412
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
13413
# and all subsequent libraries and executables linked against it.
 
13414
hardcode_automatic=$hardcode_automatic_CXX
 
13415
 
 
13416
# Variables whose values should be saved in libtool wrapper scripts and
 
13417
# restored at relink time.
 
13418
variables_saved_for_relink="$variables_saved_for_relink"
 
13419
 
 
13420
# Whether libtool must link a program against all its dependency libraries.
 
13421
link_all_deplibs=$link_all_deplibs_CXX
 
13422
 
 
13423
# Compile-time system search path for libraries
 
13424
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
13425
 
 
13426
# Run-time system search path for libraries
 
13427
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
13428
 
 
13429
# Fix the shell variable \$srcfile for the compiler.
 
13430
fix_srcfile_path="$fix_srcfile_path_CXX"
 
13431
 
 
13432
# Set to yes if exported symbols are required.
 
13433
always_export_symbols=$always_export_symbols_CXX
 
13434
 
 
13435
# The commands to list exported symbols.
 
13436
export_symbols_cmds=$lt_export_symbols_cmds_CXX
 
13437
 
 
13438
# The commands to extract the exported symbol list from a shared archive.
 
13439
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
13440
 
 
13441
# Symbols that should not be listed in the preloaded symbols.
 
13442
exclude_expsyms=$lt_exclude_expsyms_CXX
 
13443
 
 
13444
# Symbols that must always be exported.
 
13445
include_expsyms=$lt_include_expsyms_CXX
 
13446
 
 
13447
# ### END LIBTOOL TAG CONFIG: $tagname
 
13448
 
 
13449
__EOF__
 
13450
 
 
13451
 
 
13452
else
 
13453
  # If there is no Makefile yet, we rely on a make rule to execute
 
13454
  # `config.status --recheck' to rerun these tests and create the
 
13455
  # libtool script then.
 
13456
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
13457
  if test -f "$ltmain_in"; then
 
13458
    test -f Makefile && make "$ltmain"
 
13459
  fi
 
13460
fi
 
13461
 
 
13462
 
 
13463
ac_ext=c
 
13464
ac_cpp='$CPP $CPPFLAGS'
 
13465
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
13466
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
13467
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
13468
 
 
13469
CC=$lt_save_CC
 
13470
LDCXX=$LD
 
13471
LD=$lt_save_LD
 
13472
GCC=$lt_save_GCC
 
13473
with_gnu_ldcxx=$with_gnu_ld
 
13474
with_gnu_ld=$lt_save_with_gnu_ld
 
13475
lt_cv_path_LDCXX=$lt_cv_path_LD
 
13476
lt_cv_path_LD=$lt_save_path_LD
 
13477
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
13478
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
13479
 
 
13480
        else
 
13481
          tagname=""
 
13482
        fi
 
13483
        ;;
 
13484
 
 
13485
      F77)
 
13486
        if test -n "$F77" && test "X$F77" != "Xno"; then
 
13487
 
 
13488
ac_ext=f
 
13489
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
13490
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
13491
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
13492
 
 
13493
 
 
13494
archive_cmds_need_lc_F77=no
 
13495
allow_undefined_flag_F77=
 
13496
always_export_symbols_F77=no
 
13497
archive_expsym_cmds_F77=
 
13498
export_dynamic_flag_spec_F77=
 
13499
hardcode_direct_F77=no
 
13500
hardcode_libdir_flag_spec_F77=
 
13501
hardcode_libdir_flag_spec_ld_F77=
 
13502
hardcode_libdir_separator_F77=
 
13503
hardcode_minus_L_F77=no
 
13504
hardcode_automatic_F77=no
 
13505
module_cmds_F77=
 
13506
module_expsym_cmds_F77=
 
13507
link_all_deplibs_F77=unknown
 
13508
old_archive_cmds_F77=$old_archive_cmds
 
13509
no_undefined_flag_F77=
 
13510
whole_archive_flag_spec_F77=
 
13511
enable_shared_with_static_runtimes_F77=no
 
13512
 
 
13513
# Source file extension for f77 test sources.
 
13514
ac_ext=f
 
13515
 
 
13516
# Object file extension for compiled f77 test sources.
 
13517
objext=o
 
13518
objext_F77=$objext
 
13519
 
 
13520
# Code to be used in simple compile tests
 
13521
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
 
13522
 
 
13523
# Code to be used in simple link tests
 
13524
lt_simple_link_test_code="      program t\n      end\n"
 
13525
 
 
13526
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
13527
 
 
13528
# If no C compiler was specified, use CC.
 
13529
LTCC=${LTCC-"$CC"}
 
13530
 
 
13531
# Allow CC to be a program name with arguments.
 
13532
compiler=$CC
 
13533
 
 
13534
 
 
13535
# Allow CC to be a program name with arguments.
 
13536
lt_save_CC="$CC"
 
13537
CC=${F77-"f77"}
 
13538
compiler=$CC
 
13539
compiler_F77=$CC
 
13540
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
13541
 
 
13542
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
13543
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
 
13544
echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
13545
echo "${ECHO_T}$can_build_shared" >&6
 
13546
 
 
13547
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
13548
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
 
13549
test "$can_build_shared" = "no" && enable_shared=no
 
13550
 
 
13551
# On AIX, shared libraries and static libraries use the same namespace, and
 
13552
# are all built from PIC.
 
13553
case "$host_os" in
 
13554
aix3*)
 
13555
  test "$enable_shared" = yes && enable_static=no
 
13556
  if test -n "$RANLIB"; then
 
13557
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
13558
    postinstall_cmds='$RANLIB $lib'
 
13559
  fi
 
13560
  ;;
 
13561
aix4* | aix5*)
 
13562
  test "$enable_shared" = yes && enable_static=no
 
13563
  ;;
 
13564
esac
 
13565
echo "$as_me:$LINENO: result: $enable_shared" >&5
 
13566
echo "${ECHO_T}$enable_shared" >&6
 
13567
 
 
13568
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
13569
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
 
13570
# Make sure either enable_shared or enable_static is yes.
 
13571
test "$enable_shared" = yes || enable_static=yes
 
13572
echo "$as_me:$LINENO: result: $enable_static" >&5
 
13573
echo "${ECHO_T}$enable_static" >&6
 
13574
 
 
13575
test "$ld_shlibs_F77" = no && can_build_shared=no
 
13576
 
 
13577
GCC_F77="$G77"
 
13578
LD_F77="$LD"
 
13579
 
 
13580
lt_prog_compiler_wl_F77=
 
13581
lt_prog_compiler_pic_F77=
 
13582
lt_prog_compiler_static_F77=
 
13583
 
 
13584
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
13585
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
13586
 
 
13587
  if test "$GCC" = yes; then
 
13588
    lt_prog_compiler_wl_F77='-Wl,'
 
13589
    lt_prog_compiler_static_F77='-static'
 
13590
 
 
13591
    case $host_os in
 
13592
      aix*)
 
13593
      # All AIX code is PIC.
 
13594
      if test "$host_cpu" = ia64; then
 
13595
        # AIX 5 now supports IA64 processor
 
13596
        lt_prog_compiler_static_F77='-Bstatic'
 
13597
      fi
 
13598
      ;;
 
13599
 
 
13600
    amigaos*)
 
13601
      # FIXME: we need at least 68020 code to build shared libraries, but
 
13602
      # adding the `-m68020' flag to GCC prevents building anything better,
 
13603
      # like `-m68040'.
 
13604
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
 
13605
      ;;
 
13606
 
 
13607
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
13608
      # PIC is the default for these OSes.
 
13609
      ;;
 
13610
 
 
13611
    mingw* | pw32* | os2*)
 
13612
      # This hack is so that the source file can tell whether it is being
 
13613
      # built for inclusion in a dll (and should export symbols for example).
 
13614
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
13615
      ;;
 
13616
 
 
13617
    darwin* | rhapsody*)
 
13618
      # PIC is the default on this platform
 
13619
      # Common symbols not allowed in MH_DYLIB files
 
13620
      lt_prog_compiler_pic_F77='-fno-common'
 
13621
      ;;
 
13622
 
 
13623
    msdosdjgpp*)
 
13624
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
13625
      # on systems that don't support them.
 
13626
      lt_prog_compiler_can_build_shared_F77=no
 
13627
      enable_shared=no
 
13628
      ;;
 
13629
 
 
13630
    sysv4*MP*)
 
13631
      if test -d /usr/nec; then
 
13632
        lt_prog_compiler_pic_F77=-Kconform_pic
 
13633
      fi
 
13634
      ;;
 
13635
 
 
13636
    hpux*)
 
13637
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
13638
      # not for PA HP-UX.
 
13639
      case "$host_cpu" in
 
13640
      hppa*64*|ia64*)
 
13641
        # +Z the default
 
13642
        ;;
 
13643
      *)
 
13644
        lt_prog_compiler_pic_F77='-fPIC'
 
13645
        ;;
 
13646
      esac
 
13647
      ;;
 
13648
 
 
13649
    *)
 
13650
      lt_prog_compiler_pic_F77='-fPIC'
 
13651
      ;;
 
13652
    esac
 
13653
  else
 
13654
    # PORTME Check for flag to pass linker flags through the system compiler.
 
13655
    case $host_os in
 
13656
    aix*)
 
13657
      lt_prog_compiler_wl_F77='-Wl,'
 
13658
      if test "$host_cpu" = ia64; then
 
13659
        # AIX 5 now supports IA64 processor
 
13660
        lt_prog_compiler_static_F77='-Bstatic'
 
13661
      else
 
13662
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
 
13663
      fi
 
13664
      ;;
 
13665
 
 
13666
    mingw* | pw32* | os2*)
 
13667
      # This hack is so that the source file can tell whether it is being
 
13668
      # built for inclusion in a dll (and should export symbols for example).
 
13669
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
13670
      ;;
 
13671
 
 
13672
    hpux9* | hpux10* | hpux11*)
 
13673
      lt_prog_compiler_wl_F77='-Wl,'
 
13674
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
13675
      # not for PA HP-UX.
 
13676
      case "$host_cpu" in
 
13677
      hppa*64*|ia64*)
 
13678
        # +Z the default
 
13679
        ;;
 
13680
      *)
 
13681
        lt_prog_compiler_pic_F77='+Z'
 
13682
        ;;
 
13683
      esac
 
13684
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
13685
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
 
13686
      ;;
 
13687
 
 
13688
    irix5* | irix6* | nonstopux*)
 
13689
      lt_prog_compiler_wl_F77='-Wl,'
 
13690
      # PIC (with -KPIC) is the default.
 
13691
      lt_prog_compiler_static_F77='-non_shared'
 
13692
      ;;
 
13693
 
 
13694
    newsos6)
 
13695
      lt_prog_compiler_pic_F77='-KPIC'
 
13696
      lt_prog_compiler_static_F77='-Bstatic'
 
13697
      ;;
 
13698
 
 
13699
    linux*)
 
13700
      case $CC in
 
13701
      icc* | ecc*)
 
13702
        lt_prog_compiler_wl_F77='-Wl,'
 
13703
        lt_prog_compiler_pic_F77='-KPIC'
 
13704
        lt_prog_compiler_static_F77='-static'
 
13705
        ;;
 
13706
      ccc*)
 
13707
        lt_prog_compiler_wl_F77='-Wl,'
 
13708
        # All Alpha code is PIC.
 
13709
        lt_prog_compiler_static_F77='-non_shared'
 
13710
        ;;
 
13711
      esac
 
13712
      ;;
 
13713
 
 
13714
    osf3* | osf4* | osf5*)
 
13715
      lt_prog_compiler_wl_F77='-Wl,'
 
13716
      # All OSF/1 code is PIC.
 
13717
      lt_prog_compiler_static_F77='-non_shared'
 
13718
      ;;
 
13719
 
 
13720
    sco3.2v5*)
 
13721
      lt_prog_compiler_pic_F77='-Kpic'
 
13722
      lt_prog_compiler_static_F77='-dn'
 
13723
      ;;
 
13724
 
 
13725
    solaris*)
 
13726
      lt_prog_compiler_wl_F77='-Wl,'
 
13727
      lt_prog_compiler_pic_F77='-KPIC'
 
13728
      lt_prog_compiler_static_F77='-Bstatic'
 
13729
      ;;
 
13730
 
 
13731
    sunos4*)
 
13732
      lt_prog_compiler_wl_F77='-Qoption ld '
 
13733
      lt_prog_compiler_pic_F77='-PIC'
 
13734
      lt_prog_compiler_static_F77='-Bstatic'
 
13735
      ;;
 
13736
 
 
13737
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
13738
      lt_prog_compiler_wl_F77='-Wl,'
 
13739
      lt_prog_compiler_pic_F77='-KPIC'
 
13740
      lt_prog_compiler_static_F77='-Bstatic'
 
13741
      ;;
 
13742
 
 
13743
    sysv4*MP*)
 
13744
      if test -d /usr/nec ;then
 
13745
        lt_prog_compiler_pic_F77='-Kconform_pic'
 
13746
        lt_prog_compiler_static_F77='-Bstatic'
 
13747
      fi
 
13748
      ;;
 
13749
 
 
13750
    uts4*)
 
13751
      lt_prog_compiler_pic_F77='-pic'
 
13752
      lt_prog_compiler_static_F77='-Bstatic'
 
13753
      ;;
 
13754
 
 
13755
    *)
 
13756
      lt_prog_compiler_can_build_shared_F77=no
 
13757
      ;;
 
13758
    esac
 
13759
  fi
 
13760
 
 
13761
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
 
13762
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
 
13763
 
 
13764
#
 
13765
# Check to make sure the PIC flag actually works.
 
13766
#
 
13767
if test -n "$lt_prog_compiler_pic_F77"; then
 
13768
 
 
13769
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
 
13770
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
 
13771
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
 
13772
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13773
else
 
13774
  lt_prog_compiler_pic_works_F77=no
 
13775
  ac_outfile=conftest.$ac_objext
 
13776
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13777
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
 
13778
   # Insert the option either (1) after the last *FLAGS variable, or
 
13779
   # (2) before a word containing "conftest.", or (3) at the end.
 
13780
   # Note that $ac_compile itself does not contain backslashes and begins
 
13781
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
13782
   # The option is referenced via a variable to avoid confusing sed.
 
13783
   lt_compile=`echo "$ac_compile" | $SED \
 
13784
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
13785
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
13786
   -e 's:$: $lt_compiler_flag:'`
 
13787
   (eval echo "\"\$as_me:13787: $lt_compile\"" >&5)
 
13788
   (eval "$lt_compile" 2>conftest.err)
 
13789
   ac_status=$?
 
13790
   cat conftest.err >&5
 
13791
   echo "$as_me:13791: \$? = $ac_status" >&5
 
13792
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
13793
     # The compiler can only warn and ignore the option if not recognized
 
13794
     # So say no if there are warnings
 
13795
     if test ! -s conftest.err; then
 
13796
       lt_prog_compiler_pic_works_F77=yes
 
13797
     fi
 
13798
   fi
 
13799
   $rm conftest*
 
13800
 
 
13801
fi
 
13802
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
 
13803
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
 
13804
 
 
13805
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
 
13806
    case $lt_prog_compiler_pic_F77 in
 
13807
     "" | " "*) ;;
 
13808
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
 
13809
     esac
 
13810
else
 
13811
    lt_prog_compiler_pic_F77=
 
13812
     lt_prog_compiler_can_build_shared_F77=no
 
13813
fi
 
13814
 
 
13815
fi
 
13816
case "$host_os" in
 
13817
  # For platforms which do not support PIC, -DPIC is meaningless:
 
13818
  *djgpp*)
 
13819
    lt_prog_compiler_pic_F77=
 
13820
    ;;
 
13821
  *)
 
13822
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
 
13823
    ;;
 
13824
esac
 
13825
 
 
13826
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
13827
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
13828
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
 
13829
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13830
else
 
13831
  lt_cv_prog_compiler_c_o_F77=no
 
13832
   $rm -r conftest 2>/dev/null
 
13833
   mkdir conftest
 
13834
   cd conftest
 
13835
   mkdir out
 
13836
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13837
 
 
13838
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
13839
   # Insert the option either (1) after the last *FLAGS variable, or
 
13840
   # (2) before a word containing "conftest.", or (3) at the end.
 
13841
   # Note that $ac_compile itself does not contain backslashes and begins
 
13842
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
13843
   lt_compile=`echo "$ac_compile" | $SED \
 
13844
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
13845
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
13846
   -e 's:$: $lt_compiler_flag:'`
 
13847
   (eval echo "\"\$as_me:13847: $lt_compile\"" >&5)
 
13848
   (eval "$lt_compile" 2>out/conftest.err)
 
13849
   ac_status=$?
 
13850
   cat out/conftest.err >&5
 
13851
   echo "$as_me:13851: \$? = $ac_status" >&5
 
13852
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
13853
   then
 
13854
     # The compiler can only warn and ignore the option if not recognized
 
13855
     # So say no if there are warnings
 
13856
     if test ! -s out/conftest.err; then
 
13857
       lt_cv_prog_compiler_c_o_F77=yes
 
13858
     fi
 
13859
   fi
 
13860
   chmod u+w .
 
13861
   $rm conftest*
 
13862
   # SGI C++ compiler will create directory out/ii_files/ for
 
13863
   # template instantiation
 
13864
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
13865
   $rm out/* && rmdir out
 
13866
   cd ..
 
13867
   rmdir conftest
 
13868
   $rm conftest*
 
13869
 
 
13870
fi
 
13871
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
 
13872
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
 
13873
 
 
13874
 
 
13875
hard_links="nottested"
 
13876
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
 
13877
  # do not overwrite the value of need_locks provided by the user
 
13878
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
13879
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
13880
  hard_links=yes
 
13881
  $rm conftest*
 
13882
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
13883
  touch conftest.a
 
13884
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
13885
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
13886
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
13887
echo "${ECHO_T}$hard_links" >&6
 
13888
  if test "$hard_links" = no; then
 
13889
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
13890
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
13891
    need_locks=warn
 
13892
  fi
 
13893
else
 
13894
  need_locks=no
 
13895
fi
 
13896
 
 
13897
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
13898
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
13899
 
 
13900
  runpath_var=
 
13901
  allow_undefined_flag_F77=
 
13902
  enable_shared_with_static_runtimes_F77=no
 
13903
  archive_cmds_F77=
 
13904
  archive_expsym_cmds_F77=
 
13905
  old_archive_From_new_cmds_F77=
 
13906
  old_archive_from_expsyms_cmds_F77=
 
13907
  export_dynamic_flag_spec_F77=
 
13908
  whole_archive_flag_spec_F77=
 
13909
  thread_safe_flag_spec_F77=
 
13910
  hardcode_libdir_flag_spec_F77=
 
13911
  hardcode_libdir_flag_spec_ld_F77=
 
13912
  hardcode_libdir_separator_F77=
 
13913
  hardcode_direct_F77=no
 
13914
  hardcode_minus_L_F77=no
 
13915
  hardcode_shlibpath_var_F77=unsupported
 
13916
  link_all_deplibs_F77=unknown
 
13917
  hardcode_automatic_F77=no
 
13918
  module_cmds_F77=
 
13919
  module_expsym_cmds_F77=
 
13920
  always_export_symbols_F77=no
 
13921
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
13922
  # include_expsyms should be a list of space-separated symbols to be *always*
 
13923
  # included in the symbol list
 
13924
  include_expsyms_F77=
 
13925
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
13926
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
13927
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
13928
  # as well as any symbol that contains `d'.
 
13929
  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
 
13930
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
13931
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
13932
  # the symbol is explicitly referenced.  Since portable code cannot
 
13933
  # rely on this symbol name, it's probably fine to never include it in
 
13934
  # preloaded symbol tables.
 
13935
  extract_expsyms_cmds=
 
13936
 
 
13937
  case $host_os in
 
13938
  cygwin* | mingw* | pw32*)
 
13939
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
13940
    # When not using gcc, we currently assume that we are using
 
13941
    # Microsoft Visual C++.
 
13942
    if test "$GCC" != yes; then
 
13943
      with_gnu_ld=no
 
13944
    fi
 
13945
    ;;
 
13946
  openbsd*)
 
13947
    with_gnu_ld=no
 
13948
    ;;
 
13949
  esac
 
13950
 
 
13951
  ld_shlibs_F77=yes
 
13952
  if test "$with_gnu_ld" = yes; then
 
13953
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
13954
    wlarc='${wl}'
 
13955
 
 
13956
    # See if GNU ld supports shared libraries.
 
13957
    case $host_os in
 
13958
    aix3* | aix4* | aix5*)
 
13959
      # On AIX/PPC, the GNU linker is very broken
 
13960
      if test "$host_cpu" != ia64; then
 
13961
        ld_shlibs_F77=no
 
13962
        cat <<EOF 1>&2
 
13963
 
 
13964
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
13965
*** to be unable to reliably create shared libraries on AIX.
 
13966
*** Therefore, libtool is disabling shared libraries support.  If you
 
13967
*** really care for shared libraries, you may want to modify your PATH
 
13968
*** so that a non-GNU linker is found, and then restart.
 
13969
 
 
13970
EOF
 
13971
      fi
 
13972
      ;;
 
13973
 
 
13974
    amigaos*)
 
13975
      archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
 
13976
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
13977
      hardcode_minus_L_F77=yes
 
13978
 
 
13979
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
13980
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
13981
      # to version 4, is to share data among multiple programs linked
 
13982
      # with the same dynamic library.  Since this doesn't match the
 
13983
      # behavior of shared libraries on other platforms, we can't use
 
13984
      # them.
 
13985
      ld_shlibs_F77=no
 
13986
      ;;
 
13987
 
 
13988
    beos*)
 
13989
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
13990
        allow_undefined_flag_F77=unsupported
 
13991
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
13992
        # support --undefined.  This deserves some investigation.  FIXME
 
13993
        archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13994
      else
 
13995
        ld_shlibs_F77=no
 
13996
      fi
 
13997
      ;;
 
13998
 
 
13999
    cygwin* | mingw* | pw32*)
 
14000
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
 
14001
      # as there is no search path for DLLs.
 
14002
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14003
      allow_undefined_flag_F77=unsupported
 
14004
      always_export_symbols_F77=no
 
14005
      enable_shared_with_static_runtimes_F77=yes
 
14006
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
14007
 
 
14008
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
14009
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
14010
        # If the export-symbols file already is a .def file (1st line
 
14011
        # is EXPORTS), use it as is; otherwise, prepend...
 
14012
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
14013
          cp $export_symbols $output_objdir/$soname.def;
 
14014
        else
 
14015
          echo EXPORTS > $output_objdir/$soname.def;
 
14016
          cat $export_symbols >> $output_objdir/$soname.def;
 
14017
        fi~
 
14018
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
14019
      else
 
14020
        ld_shlibs=no
 
14021
      fi
 
14022
      ;;
 
14023
 
 
14024
    netbsd*)
 
14025
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
14026
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
14027
        wlarc=
 
14028
      else
 
14029
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14030
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
14031
      fi
 
14032
      ;;
 
14033
 
 
14034
    solaris* | sysv5*)
 
14035
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
14036
        ld_shlibs_F77=no
 
14037
        cat <<EOF 1>&2
 
14038
 
 
14039
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
14040
*** create shared libraries on Solaris systems.  Therefore, libtool
 
14041
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
14042
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
14043
*** your PATH or compiler configuration so that the native linker is
 
14044
*** used, and then restart.
 
14045
 
 
14046
EOF
 
14047
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14048
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14049
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
14050
      else
 
14051
        ld_shlibs_F77=no
 
14052
      fi
 
14053
      ;;
 
14054
 
 
14055
    sunos4*)
 
14056
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
14057
      wlarc=
 
14058
      hardcode_direct_F77=yes
 
14059
      hardcode_shlibpath_var_F77=no
 
14060
      ;;
 
14061
 
 
14062
  linux*)
 
14063
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14064
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14065
        archive_cmds_F77="$tmp_archive_cmds"
 
14066
      supports_anon_versioning=no
 
14067
      case `$LD -v 2>/dev/null` in
 
14068
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
14069
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
14070
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
14071
        *\ 2.11.*) ;; # other 2.11 versions
 
14072
        *) supports_anon_versioning=yes ;;
 
14073
      esac
 
14074
      if test $supports_anon_versioning = yes; then
 
14075
        archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
 
14076
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
14077
$echo "local: *; };" >> $output_objdir/$libname.ver~
 
14078
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
14079
      else
 
14080
        archive_expsym_cmds_F77="$tmp_archive_cmds"
 
14081
      fi
 
14082
    else
 
14083
      ld_shlibs_F77=no
 
14084
    fi
 
14085
    ;;
 
14086
 
 
14087
    *)
 
14088
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14089
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14090
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
14091
      else
 
14092
        ld_shlibs_F77=no
 
14093
      fi
 
14094
      ;;
 
14095
    esac
 
14096
 
 
14097
    if test "$ld_shlibs_F77" = yes; then
 
14098
      runpath_var=LD_RUN_PATH
 
14099
      hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
 
14100
      export_dynamic_flag_spec_F77='${wl}--export-dynamic'
 
14101
      # ancient GNU ld didn't support --whole-archive et. al.
 
14102
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
14103
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
14104
      else
 
14105
        whole_archive_flag_spec_F77=
 
14106
      fi
 
14107
    fi
 
14108
  else
 
14109
    # PORTME fill in a description of your system's linker (not GNU ld)
 
14110
    case $host_os in
 
14111
    aix3*)
 
14112
      allow_undefined_flag_F77=unsupported
 
14113
      always_export_symbols_F77=yes
 
14114
      archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
 
14115
      # Note: this linker hardcodes the directories in LIBPATH if there
 
14116
      # are no directories specified by -L.
 
14117
      hardcode_minus_L_F77=yes
 
14118
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
14119
        # Neither direct hardcoding nor static linking is supported with a
 
14120
        # broken collect2.
 
14121
        hardcode_direct_F77=unsupported
 
14122
      fi
 
14123
      ;;
 
14124
 
 
14125
    aix4* | aix5*)
 
14126
      if test "$host_cpu" = ia64; then
 
14127
        # On IA64, the linker does run time linking by default, so we don't
 
14128
        # have to do anything special.
 
14129
        aix_use_runtimelinking=no
 
14130
        exp_sym_flag='-Bexport'
 
14131
        no_entry_flag=""
 
14132
      else
 
14133
        # If we're using GNU nm, then we don't want the "-C" option.
 
14134
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
14135
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
14136
          export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
14137
        else
 
14138
          export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
14139
        fi
 
14140
        aix_use_runtimelinking=no
 
14141
 
 
14142
        # Test if we are trying to use run time linking or normal
 
14143
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
14144
        # need to do runtime linking.
 
14145
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
14146
          for ld_flag in $LDFLAGS; do
 
14147
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
14148
            aix_use_runtimelinking=yes
 
14149
            break
 
14150
          fi
 
14151
          done
 
14152
        esac
 
14153
 
 
14154
        exp_sym_flag='-bexport'
 
14155
        no_entry_flag='-bnoentry'
 
14156
      fi
 
14157
 
 
14158
      # When large executables or shared objects are built, AIX ld can
 
14159
      # have problems creating the table of contents.  If linking a library
 
14160
      # or program results in "error TOC overflow" add -mminimal-toc to
 
14161
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
14162
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
14163
 
 
14164
      archive_cmds_F77=''
 
14165
      hardcode_direct_F77=yes
 
14166
      hardcode_libdir_separator_F77=':'
 
14167
      link_all_deplibs_F77=yes
 
14168
 
 
14169
      if test "$GCC" = yes; then
 
14170
        case $host_os in aix4.012|aix4.012.*)
 
14171
        # We only want to do this on AIX 4.2 and lower, the check
 
14172
        # below for broken collect2 doesn't work under 4.3+
 
14173
          collect2name=`${CC} -print-prog-name=collect2`
 
14174
          if test -f "$collect2name" && \
 
14175
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
14176
          then
 
14177
          # We have reworked collect2
 
14178
          hardcode_direct_F77=yes
 
14179
          else
 
14180
          # We have old collect2
 
14181
          hardcode_direct_F77=unsupported
 
14182
          # It fails to find uninstalled libraries when the uninstalled
 
14183
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
14184
          # to unsupported forces relinking
 
14185
          hardcode_minus_L_F77=yes
 
14186
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
14187
          hardcode_libdir_separator_F77=
 
14188
          fi
 
14189
        esac
 
14190
        shared_flag='-shared'
 
14191
      else
 
14192
        # not using gcc
 
14193
        if test "$host_cpu" = ia64; then
 
14194
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
14195
        # chokes on -Wl,-G. The following line is correct:
 
14196
          shared_flag='-G'
 
14197
        else
 
14198
        if test "$aix_use_runtimelinking" = yes; then
 
14199
            shared_flag='${wl}-G'
 
14200
          else
 
14201
            shared_flag='${wl}-bM:SRE'
 
14202
        fi
 
14203
        fi
 
14204
      fi
 
14205
 
 
14206
      # It seems that -bexpall does not export symbols beginning with
 
14207
      # underscore (_), so it is better to generate a list of symbols to export.
 
14208
      always_export_symbols_F77=yes
 
14209
      if test "$aix_use_runtimelinking" = yes; then
 
14210
        # Warning - without using the other runtime loading flags (-brtl),
 
14211
        # -berok will link without error, but may produce a broken library.
 
14212
        allow_undefined_flag_F77='-berok'
 
14213
       # Determine the default libpath from the value encoded in an empty executable.
 
14214
       cat >conftest.$ac_ext <<_ACEOF
 
14215
      program main
 
14216
 
 
14217
      end
 
14218
_ACEOF
 
14219
rm -f conftest.$ac_objext conftest$ac_exeext
 
14220
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14221
  (eval $ac_link) 2>conftest.er1
 
14222
  ac_status=$?
 
14223
  grep -v '^ *+' conftest.er1 >conftest.err
 
14224
  rm -f conftest.er1
 
14225
  cat conftest.err >&5
 
14226
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14227
  (exit $ac_status); } &&
 
14228
         { ac_try='test -z "$ac_f77_werror_flag"
 
14229
                         || test ! -s conftest.err'
 
14230
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14231
  (eval $ac_try) 2>&5
 
14232
  ac_status=$?
 
14233
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14234
  (exit $ac_status); }; } &&
 
14235
         { ac_try='test -s conftest$ac_exeext'
 
14236
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14237
  (eval $ac_try) 2>&5
 
14238
  ac_status=$?
 
14239
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14240
  (exit $ac_status); }; }; then
 
14241
 
 
14242
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
14243
}'`
 
14244
# Check for a 64-bit object if we didn't find anything.
 
14245
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; }
 
14246
}'`; fi
 
14247
else
 
14248
  echo "$as_me: failed program was:" >&5
 
14249
sed 's/^/| /' conftest.$ac_ext >&5
 
14250
 
 
14251
fi
 
14252
rm -f conftest.err conftest.$ac_objext \
 
14253
      conftest$ac_exeext conftest.$ac_ext
 
14254
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
14255
 
 
14256
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
14257
        archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
14258
       else
 
14259
        if test "$host_cpu" = ia64; then
 
14260
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
 
14261
          allow_undefined_flag_F77="-z nodefs"
 
14262
          archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
14263
        else
 
14264
         # Determine the default libpath from the value encoded in an empty executable.
 
14265
         cat >conftest.$ac_ext <<_ACEOF
 
14266
      program main
 
14267
 
 
14268
      end
 
14269
_ACEOF
 
14270
rm -f conftest.$ac_objext conftest$ac_exeext
 
14271
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14272
  (eval $ac_link) 2>conftest.er1
 
14273
  ac_status=$?
 
14274
  grep -v '^ *+' conftest.er1 >conftest.err
 
14275
  rm -f conftest.er1
 
14276
  cat conftest.err >&5
 
14277
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14278
  (exit $ac_status); } &&
 
14279
         { ac_try='test -z "$ac_f77_werror_flag"
 
14280
                         || test ! -s conftest.err'
 
14281
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14282
  (eval $ac_try) 2>&5
 
14283
  ac_status=$?
 
14284
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14285
  (exit $ac_status); }; } &&
 
14286
         { ac_try='test -s conftest$ac_exeext'
 
14287
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14288
  (eval $ac_try) 2>&5
 
14289
  ac_status=$?
 
14290
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14291
  (exit $ac_status); }; }; then
 
14292
 
 
14293
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
14294
}'`
 
14295
# Check for a 64-bit object if we didn't find anything.
 
14296
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; }
 
14297
}'`; fi
 
14298
else
 
14299
  echo "$as_me: failed program was:" >&5
 
14300
sed 's/^/| /' conftest.$ac_ext >&5
 
14301
 
 
14302
fi
 
14303
rm -f conftest.err conftest.$ac_objext \
 
14304
      conftest$ac_exeext conftest.$ac_ext
 
14305
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
14306
 
 
14307
         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
14308
          # Warning - without using the other run time loading flags,
 
14309
          # -berok will link without error, but may produce a broken library.
 
14310
          no_undefined_flag_F77=' ${wl}-bernotok'
 
14311
          allow_undefined_flag_F77=' ${wl}-berok'
 
14312
          # -bexpall does not export symbols beginning with underscore (_)
 
14313
          always_export_symbols_F77=yes
 
14314
          # Exported symbols can be pulled into shared objects from archives
 
14315
          whole_archive_flag_spec_F77=' '
 
14316
          archive_cmds_need_lc_F77=yes
 
14317
          # This is similar to how AIX traditionally builds it's shared libraries.
 
14318
          archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
14319
        fi
 
14320
      fi
 
14321
      ;;
 
14322
 
 
14323
    amigaos*)
 
14324
      archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
 
14325
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14326
      hardcode_minus_L_F77=yes
 
14327
      # see comment about different semantics on the GNU ld section
 
14328
      ld_shlibs_F77=no
 
14329
      ;;
 
14330
 
 
14331
    bsdi4*)
 
14332
      export_dynamic_flag_spec_F77=-rdynamic
 
14333
      ;;
 
14334
 
 
14335
    cygwin* | mingw* | pw32*)
 
14336
      # When not using gcc, we currently assume that we are using
 
14337
      # Microsoft Visual C++.
 
14338
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
14339
      # no search path for DLLs.
 
14340
      hardcode_libdir_flag_spec_F77=' '
 
14341
      allow_undefined_flag_F77=unsupported
 
14342
      # Tell ltmain to make .lib files, not .a files.
 
14343
      libext=lib
 
14344
      # Tell ltmain to make .dll files, not .so files.
 
14345
      shrext_cmds=".dll"
 
14346
      # FIXME: Setting linknames here is a bad hack.
 
14347
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
14348
      # The linker will automatically build a .lib file if we build a DLL.
 
14349
      old_archive_From_new_cmds_F77='true'
 
14350
      # FIXME: Should let the user specify the lib program.
 
14351
      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
14352
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
14353
      enable_shared_with_static_runtimes_F77=yes
 
14354
      ;;
 
14355
 
 
14356
    darwin* | rhapsody*)
 
14357
    if test "$GXX" = yes ; then
 
14358
      archive_cmds_need_lc_F77=no
 
14359
      case "$host_os" in
 
14360
      rhapsody* | darwin1.[012])
 
14361
        allow_undefined_flag_F77='-undefined suppress'
 
14362
        ;;
 
14363
      *) # Darwin 1.3 on
 
14364
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
14365
        allow_undefined_flag_F77='-flat_namespace -undefined suppress'
 
14366
      else
 
14367
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
14368
          10.[012])
 
14369
            allow_undefined_flag_F77='-flat_namespace -undefined suppress'
 
14370
            ;;
 
14371
          10.*)
 
14372
            allow_undefined_flag_F77='-undefined dynamic_lookup'
 
14373
            ;;
 
14374
        esac
 
14375
      fi
 
14376
        ;;
 
14377
      esac
 
14378
        lt_int_apple_cc_single_mod=no
 
14379
        output_verbose_link_cmd='echo'
 
14380
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
14381
          lt_int_apple_cc_single_mod=yes
 
14382
        fi
 
14383
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
14384
          archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
14385
        else
 
14386
        archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
14387
      fi
 
14388
      module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
14389
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
14390
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
14391
          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
14392
        else
 
14393
          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
14394
        fi
 
14395
          module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
14396
      hardcode_direct_F77=no
 
14397
      hardcode_automatic_F77=yes
 
14398
      hardcode_shlibpath_var_F77=unsupported
 
14399
      whole_archive_flag_spec_F77='-all_load $convenience'
 
14400
      link_all_deplibs_F77=yes
 
14401
    else
 
14402
      ld_shlibs_F77=no
 
14403
    fi
 
14404
      ;;
 
14405
 
 
14406
    dgux*)
 
14407
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14408
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14409
      hardcode_shlibpath_var_F77=no
 
14410
      ;;
 
14411
 
 
14412
    freebsd1*)
 
14413
      ld_shlibs_F77=no
 
14414
      ;;
 
14415
 
 
14416
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
14417
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
14418
    # does not break anything, and helps significantly (at the cost of a little
 
14419
    # extra space).
 
14420
    freebsd2.2*)
 
14421
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
14422
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
14423
      hardcode_direct_F77=yes
 
14424
      hardcode_shlibpath_var_F77=no
 
14425
      ;;
 
14426
 
 
14427
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
14428
    freebsd2*)
 
14429
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
14430
      hardcode_direct_F77=yes
 
14431
      hardcode_minus_L_F77=yes
 
14432
      hardcode_shlibpath_var_F77=no
 
14433
      ;;
 
14434
 
 
14435
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
14436
    freebsd* | kfreebsd*-gnu)
 
14437
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
14438
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
14439
      hardcode_direct_F77=yes
 
14440
      hardcode_shlibpath_var_F77=no
 
14441
      ;;
 
14442
 
 
14443
    hpux9*)
 
14444
      if test "$GCC" = yes; then
 
14445
        archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
14446
      else
 
14447
        archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
14448
      fi
 
14449
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
14450
      hardcode_libdir_separator_F77=:
 
14451
      hardcode_direct_F77=yes
 
14452
 
 
14453
      # hardcode_minus_L: Not really in the search PATH,
 
14454
      # but as the default location of the library.
 
14455
      hardcode_minus_L_F77=yes
 
14456
      export_dynamic_flag_spec_F77='${wl}-E'
 
14457
      ;;
 
14458
 
 
14459
    hpux10* | hpux11*)
 
14460
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
14461
        case "$host_cpu" in
 
14462
        hppa*64*|ia64*)
 
14463
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14464
          ;;
 
14465
        *)
 
14466
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
14467
          ;;
 
14468
        esac
 
14469
      else
 
14470
        case "$host_cpu" in
 
14471
        hppa*64*|ia64*)
 
14472
          archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14473
          ;;
 
14474
        *)
 
14475
          archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
14476
          ;;
 
14477
        esac
 
14478
      fi
 
14479
      if test "$with_gnu_ld" = no; then
 
14480
        case "$host_cpu" in
 
14481
        hppa*64*)
 
14482
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
14483
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
 
14484
          hardcode_libdir_separator_F77=:
 
14485
          hardcode_direct_F77=no
 
14486
          hardcode_shlibpath_var_F77=no
 
14487
          ;;
 
14488
        ia64*)
 
14489
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
14490
          hardcode_direct_F77=no
 
14491
          hardcode_shlibpath_var_F77=no
 
14492
 
 
14493
          # hardcode_minus_L: Not really in the search PATH,
 
14494
          # but as the default location of the library.
 
14495
          hardcode_minus_L_F77=yes
 
14496
          ;;
 
14497
        *)
 
14498
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
14499
          hardcode_libdir_separator_F77=:
 
14500
          hardcode_direct_F77=yes
 
14501
          export_dynamic_flag_spec_F77='${wl}-E'
 
14502
 
 
14503
          # hardcode_minus_L: Not really in the search PATH,
 
14504
          # but as the default location of the library.
 
14505
          hardcode_minus_L_F77=yes
 
14506
          ;;
 
14507
        esac
 
14508
      fi
 
14509
      ;;
 
14510
 
 
14511
    irix5* | irix6* | nonstopux*)
 
14512
      if test "$GCC" = yes; then
 
14513
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
14514
      else
 
14515
        archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
14516
        hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
 
14517
      fi
 
14518
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
14519
      hardcode_libdir_separator_F77=:
 
14520
      link_all_deplibs_F77=yes
 
14521
      ;;
 
14522
 
 
14523
    netbsd*)
 
14524
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
14525
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
14526
      else
 
14527
        archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
14528
      fi
 
14529
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
14530
      hardcode_direct_F77=yes
 
14531
      hardcode_shlibpath_var_F77=no
 
14532
      ;;
 
14533
 
 
14534
    newsos6)
 
14535
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14536
      hardcode_direct_F77=yes
 
14537
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
14538
      hardcode_libdir_separator_F77=:
 
14539
      hardcode_shlibpath_var_F77=no
 
14540
      ;;
 
14541
 
 
14542
    openbsd*)
 
14543
      hardcode_direct_F77=yes
 
14544
      hardcode_shlibpath_var_F77=no
 
14545
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
14546
        archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
14547
        hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
14548
        export_dynamic_flag_spec_F77='${wl}-E'
 
14549
      else
 
14550
       case $host_os in
 
14551
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
14552
           archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
14553
           hardcode_libdir_flag_spec_F77='-R$libdir'
 
14554
           ;;
 
14555
         *)
 
14556
           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
14557
           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
14558
           ;;
 
14559
       esac
 
14560
      fi
 
14561
      ;;
 
14562
 
 
14563
    os2*)
 
14564
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14565
      hardcode_minus_L_F77=yes
 
14566
      allow_undefined_flag_F77=unsupported
 
14567
      archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
 
14568
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
14569
      ;;
 
14570
 
 
14571
    osf3*)
 
14572
      if test "$GCC" = yes; then
 
14573
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
14574
        archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
14575
      else
 
14576
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
14577
        archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
14578
      fi
 
14579
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
14580
      hardcode_libdir_separator_F77=:
 
14581
      ;;
 
14582
 
 
14583
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
14584
      if test "$GCC" = yes; then
 
14585
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
14586
        archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
14587
        hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
14588
      else
 
14589
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
14590
        archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
14591
        archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
14592
        $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'
 
14593
 
 
14594
        # Both c and cxx compiler support -rpath directly
 
14595
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
 
14596
      fi
 
14597
      hardcode_libdir_separator_F77=:
 
14598
      ;;
 
14599
 
 
14600
    sco3.2v5*)
 
14601
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14602
      hardcode_shlibpath_var_F77=no
 
14603
      export_dynamic_flag_spec_F77='${wl}-Bexport'
 
14604
      runpath_var=LD_RUN_PATH
 
14605
      hardcode_runpath_var=yes
 
14606
      ;;
 
14607
 
 
14608
    solaris*)
 
14609
      no_undefined_flag_F77=' -z text'
 
14610
      if test "$GCC" = yes; then
 
14611
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14612
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
14613
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
14614
      else
 
14615
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14616
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
14617
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
14618
      fi
 
14619
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
14620
      hardcode_shlibpath_var_F77=no
 
14621
      case $host_os in
 
14622
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
14623
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 
14624
        whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
 
14625
      esac
 
14626
      link_all_deplibs_F77=yes
 
14627
      ;;
 
14628
 
 
14629
    sunos4*)
 
14630
      if test "x$host_vendor" = xsequent; then
 
14631
        # Use $CC to link under sequent, because it throws in some extra .o
 
14632
        # files that make .init and .fini sections work.
 
14633
        archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
14634
      else
 
14635
        archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
14636
      fi
 
14637
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14638
      hardcode_direct_F77=yes
 
14639
      hardcode_minus_L_F77=yes
 
14640
      hardcode_shlibpath_var_F77=no
 
14641
      ;;
 
14642
 
 
14643
    sysv4)
 
14644
      case $host_vendor in
 
14645
        sni)
 
14646
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14647
          hardcode_direct_F77=yes # is this really true???
 
14648
        ;;
 
14649
        siemens)
 
14650
          ## LD is ld it makes a PLAMLIB
 
14651
          ## CC just makes a GrossModule.
 
14652
          archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
14653
          reload_cmds_F77='$CC -r -o $output$reload_objs'
 
14654
          hardcode_direct_F77=no
 
14655
        ;;
 
14656
        motorola)
 
14657
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14658
          hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
 
14659
        ;;
 
14660
      esac
 
14661
      runpath_var='LD_RUN_PATH'
 
14662
      hardcode_shlibpath_var_F77=no
 
14663
      ;;
 
14664
 
 
14665
    sysv4.3*)
 
14666
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14667
      hardcode_shlibpath_var_F77=no
 
14668
      export_dynamic_flag_spec_F77='-Bexport'
 
14669
      ;;
 
14670
 
 
14671
    sysv4*MP*)
 
14672
      if test -d /usr/nec; then
 
14673
        archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14674
        hardcode_shlibpath_var_F77=no
 
14675
        runpath_var=LD_RUN_PATH
 
14676
        hardcode_runpath_var=yes
 
14677
        ld_shlibs_F77=yes
 
14678
      fi
 
14679
      ;;
 
14680
 
 
14681
    sysv4.2uw2*)
 
14682
      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
14683
      hardcode_direct_F77=yes
 
14684
      hardcode_minus_L_F77=no
 
14685
      hardcode_shlibpath_var_F77=no
 
14686
      hardcode_runpath_var=yes
 
14687
      runpath_var=LD_RUN_PATH
 
14688
      ;;
 
14689
 
 
14690
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
14691
      no_undefined_flag_F77='${wl}-z ${wl}text'
 
14692
      if test "$GCC" = yes; then
 
14693
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14694
      else
 
14695
        archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14696
      fi
 
14697
      runpath_var='LD_RUN_PATH'
 
14698
      hardcode_shlibpath_var_F77=no
 
14699
      ;;
 
14700
 
 
14701
    sysv5*)
 
14702
      no_undefined_flag_F77=' -z text'
 
14703
      # $CC -shared without GNU ld will not create a library from C++
 
14704
      # object files and a static libstdc++, better avoid it by now
 
14705
      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14706
      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
14707
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
14708
      hardcode_libdir_flag_spec_F77=
 
14709
      hardcode_shlibpath_var_F77=no
 
14710
      runpath_var='LD_RUN_PATH'
 
14711
      ;;
 
14712
 
 
14713
    uts4*)
 
14714
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14715
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14716
      hardcode_shlibpath_var_F77=no
 
14717
      ;;
 
14718
 
 
14719
    *)
 
14720
      ld_shlibs_F77=no
 
14721
      ;;
 
14722
    esac
 
14723
  fi
 
14724
 
 
14725
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
 
14726
echo "${ECHO_T}$ld_shlibs_F77" >&6
 
14727
test "$ld_shlibs_F77" = no && can_build_shared=no
 
14728
 
 
14729
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
14730
if test "$GCC" = yes; then
 
14731
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
14732
fi
 
14733
 
 
14734
#
 
14735
# Do we need to explicitly link libc?
 
14736
#
 
14737
case "x$archive_cmds_need_lc_F77" in
 
14738
x|xyes)
 
14739
  # Assume -lc should be added
 
14740
  archive_cmds_need_lc_F77=yes
 
14741
 
 
14742
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
14743
    case $archive_cmds_F77 in
 
14744
    *'~'*)
 
14745
      # FIXME: we may have to deal with multi-command sequences.
 
14746
      ;;
 
14747
    '$CC '*)
 
14748
      # Test whether the compiler implicitly links with -lc since on some
 
14749
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
14750
      # to ld, don't add -lc before -lgcc.
 
14751
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
14752
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
14753
      $rm conftest*
 
14754
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14755
 
 
14756
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
14757
  (eval $ac_compile) 2>&5
 
14758
  ac_status=$?
 
14759
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14760
  (exit $ac_status); } 2>conftest.err; then
 
14761
        soname=conftest
 
14762
        lib=conftest
 
14763
        libobjs=conftest.$ac_objext
 
14764
        deplibs=
 
14765
        wl=$lt_prog_compiler_wl_F77
 
14766
        compiler_flags=-v
 
14767
        linker_flags=-v
 
14768
        verstring=
 
14769
        output_objdir=.
 
14770
        libname=conftest
 
14771
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
 
14772
        allow_undefined_flag_F77=
 
14773
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
14774
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
14775
  ac_status=$?
 
14776
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14777
  (exit $ac_status); }
 
14778
        then
 
14779
          archive_cmds_need_lc_F77=no
 
14780
        else
 
14781
          archive_cmds_need_lc_F77=yes
 
14782
        fi
 
14783
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
 
14784
      else
 
14785
        cat conftest.err 1>&5
 
14786
      fi
 
14787
      $rm conftest*
 
14788
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
 
14789
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
 
14790
      ;;
 
14791
    esac
 
14792
  fi
 
14793
  ;;
 
14794
esac
 
14795
 
 
14796
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
14797
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
14798
library_names_spec=
 
14799
libname_spec='lib$name'
 
14800
soname_spec=
 
14801
shrext_cmds=".so"
 
14802
postinstall_cmds=
 
14803
postuninstall_cmds=
 
14804
finish_cmds=
 
14805
finish_eval=
 
14806
shlibpath_var=
 
14807
shlibpath_overrides_runpath=unknown
 
14808
version_type=none
 
14809
dynamic_linker="$host_os ld.so"
 
14810
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
14811
if test "$GCC" = yes; then
 
14812
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
14813
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
14814
    # if the path contains ";" then we assume it to be the separator
 
14815
    # otherwise default to the standard path separator (i.e. ":") - it is
 
14816
    # assumed that no part of a normal pathname contains ";" but that should
 
14817
    # okay in the real world where ";" in dirpaths is itself problematic.
 
14818
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
14819
  else
 
14820
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
14821
  fi
 
14822
else
 
14823
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
14824
fi
 
14825
need_lib_prefix=unknown
 
14826
hardcode_into_libs=no
 
14827
 
 
14828
# when you set need_version to no, make sure it does not cause -set_version
 
14829
# flags to be left without arguments
 
14830
need_version=unknown
 
14831
 
 
14832
case $host_os in
 
14833
aix3*)
 
14834
  version_type=linux
 
14835
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
14836
  shlibpath_var=LIBPATH
 
14837
 
 
14838
  # AIX 3 has no versioning support, so we append a major version to the name.
 
14839
  soname_spec='${libname}${release}${shared_ext}$major'
 
14840
  ;;
 
14841
 
 
14842
aix4* | aix5*)
 
14843
  version_type=linux
 
14844
  need_lib_prefix=no
 
14845
  need_version=no
 
14846
  hardcode_into_libs=yes
 
14847
  if test "$host_cpu" = ia64; then
 
14848
    # AIX 5 supports IA64
 
14849
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
14850
    shlibpath_var=LD_LIBRARY_PATH
 
14851
  else
 
14852
    # With GCC up to 2.95.x, collect2 would create an import file
 
14853
    # for dependence libraries.  The import file would start with
 
14854
    # the line `#! .'.  This would cause the generated library to
 
14855
    # depend on `.', always an invalid library.  This was fixed in
 
14856
    # development snapshots of GCC prior to 3.0.
 
14857
    case $host_os in
 
14858
      aix4 | aix4.[01] | aix4.[01].*)
 
14859
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
14860
           echo ' yes '
 
14861
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
14862
        :
 
14863
      else
 
14864
        can_build_shared=no
 
14865
      fi
 
14866
      ;;
 
14867
    esac
 
14868
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
14869
    # soname into executable. Probably we can add versioning support to
 
14870
    # collect2, so additional links can be useful in future.
 
14871
    if test "$aix_use_runtimelinking" = yes; then
 
14872
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
14873
      # instead of lib<name>.a to let people know that these are not
 
14874
      # typical AIX shared libraries.
 
14875
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14876
    else
 
14877
      # We preserve .a as extension for shared libraries through AIX4.2
 
14878
      # and later when we are not doing run time linking.
 
14879
      library_names_spec='${libname}${release}.a $libname.a'
 
14880
      soname_spec='${libname}${release}${shared_ext}$major'
 
14881
    fi
 
14882
    shlibpath_var=LIBPATH
 
14883
  fi
 
14884
  ;;
 
14885
 
 
14886
amigaos*)
 
14887
  library_names_spec='$libname.ixlibrary $libname.a'
 
14888
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
14889
  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'
 
14890
  ;;
 
14891
 
 
14892
beos*)
 
14893
  library_names_spec='${libname}${shared_ext}'
 
14894
  dynamic_linker="$host_os ld.so"
 
14895
  shlibpath_var=LIBRARY_PATH
 
14896
  ;;
 
14897
 
 
14898
bsdi4*)
 
14899
  version_type=linux
 
14900
  need_version=no
 
14901
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14902
  soname_spec='${libname}${release}${shared_ext}$major'
 
14903
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
14904
  shlibpath_var=LD_LIBRARY_PATH
 
14905
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
14906
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
14907
  # the default ld.so.conf also contains /usr/contrib/lib and
 
14908
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
14909
  # libtool to hard-code these into programs
 
14910
  ;;
 
14911
 
 
14912
cygwin* | mingw* | pw32*)
 
14913
  version_type=windows
 
14914
  shrext_cmds=".dll"
 
14915
  need_version=no
 
14916
  need_lib_prefix=no
 
14917
 
 
14918
  case $GCC,$host_os in
 
14919
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
14920
    library_names_spec='$libname.dll.a'
 
14921
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
14922
    postinstall_cmds='base_file=`basename \${file}`~
 
14923
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
14924
      dldir=$destdir/`dirname \$dlpath`~
 
14925
      test -d \$dldir || mkdir -p \$dldir~
 
14926
      $install_prog $dir/$dlname \$dldir/$dlname'
 
14927
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
14928
      dlpath=$dir/\$dldll~
 
14929
       $rm \$dlpath'
 
14930
    shlibpath_overrides_runpath=yes
 
14931
 
 
14932
    case $host_os in
 
14933
    cygwin*)
 
14934
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
14935
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
14936
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
14937
      ;;
 
14938
    mingw*)
 
14939
      # MinGW DLLs use traditional 'lib' prefix
 
14940
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
14941
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
14942
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
14943
        # It is most probably a Windows format PATH printed by
 
14944
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
14945
        # path with ; separators, and with drive letters. We can handle the
 
14946
        # drive letters (cygwin fileutils understands them), so leave them,
 
14947
        # especially as we might pass files found there to a mingw objdump,
 
14948
        # which wouldn't understand a cygwinified path. Ahh.
 
14949
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
14950
      else
 
14951
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
14952
      fi
 
14953
      ;;
 
14954
    pw32*)
 
14955
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
14956
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
14957
      ;;
 
14958
    esac
 
14959
    ;;
 
14960
 
 
14961
  *)
 
14962
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
14963
    ;;
 
14964
  esac
 
14965
  dynamic_linker='Win32 ld.exe'
 
14966
  # FIXME: first we should search . and the directory the executable is in
 
14967
  shlibpath_var=PATH
 
14968
  ;;
 
14969
 
 
14970
darwin* | rhapsody*)
 
14971
  dynamic_linker="$host_os dyld"
 
14972
  version_type=darwin
 
14973
  need_lib_prefix=no
 
14974
  need_version=no
 
14975
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
14976
  soname_spec='${libname}${release}${major}$shared_ext'
 
14977
  shlibpath_overrides_runpath=yes
 
14978
  shlibpath_var=DYLD_LIBRARY_PATH
 
14979
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
14980
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
14981
  if test "$GCC" = yes; then
 
14982
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
 
14983
  else
 
14984
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
14985
  fi
 
14986
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
14987
  ;;
 
14988
 
 
14989
dgux*)
 
14990
  version_type=linux
 
14991
  need_lib_prefix=no
 
14992
  need_version=no
 
14993
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
14994
  soname_spec='${libname}${release}${shared_ext}$major'
 
14995
  shlibpath_var=LD_LIBRARY_PATH
 
14996
  ;;
 
14997
 
 
14998
freebsd1*)
 
14999
  dynamic_linker=no
 
15000
  ;;
 
15001
 
 
15002
kfreebsd*-gnu)
 
15003
  version_type=linux
 
15004
  need_lib_prefix=no
 
15005
  need_version=no
 
15006
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
15007
  soname_spec='${libname}${release}${shared_ext}$major'
 
15008
  shlibpath_var=LD_LIBRARY_PATH
 
15009
  shlibpath_overrides_runpath=no
 
15010
  hardcode_into_libs=yes
 
15011
  dynamic_linker='GNU ld.so'
 
15012
  ;;
 
15013
 
 
15014
freebsd*)
 
15015
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
15016
  version_type=freebsd-$objformat
 
15017
  case $version_type in
 
15018
    freebsd-elf*)
 
15019
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
15020
      need_version=no
 
15021
      need_lib_prefix=no
 
15022
      ;;
 
15023
    freebsd-*)
 
15024
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
15025
      need_version=yes
 
15026
      ;;
 
15027
  esac
 
15028
  shlibpath_var=LD_LIBRARY_PATH
 
15029
  case $host_os in
 
15030
  freebsd2*)
 
15031
    shlibpath_overrides_runpath=yes
 
15032
    ;;
 
15033
  freebsd3.01* | freebsdelf3.01*)
 
15034
    shlibpath_overrides_runpath=yes
 
15035
    hardcode_into_libs=yes
 
15036
    ;;
 
15037
  *) # from 3.2 on
 
15038
    shlibpath_overrides_runpath=no
 
15039
    hardcode_into_libs=yes
 
15040
    ;;
 
15041
  esac
 
15042
  ;;
 
15043
 
 
15044
gnu*)
 
15045
  version_type=linux
 
15046
  need_lib_prefix=no
 
15047
  need_version=no
 
15048
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
15049
  soname_spec='${libname}${release}${shared_ext}$major'
 
15050
  shlibpath_var=LD_LIBRARY_PATH
 
15051
  hardcode_into_libs=yes
 
15052
  ;;
 
15053
 
 
15054
hpux9* | hpux10* | hpux11*)
 
15055
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
15056
  # link against other versions.
 
15057
  version_type=sunos
 
15058
  need_lib_prefix=no
 
15059
  need_version=no
 
15060
  case "$host_cpu" in
 
15061
  ia64*)
 
15062
    shrext_cmds='.so'
 
15063
    hardcode_into_libs=yes
 
15064
    dynamic_linker="$host_os dld.so"
 
15065
    shlibpath_var=LD_LIBRARY_PATH
 
15066
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
15067
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15068
    soname_spec='${libname}${release}${shared_ext}$major'
 
15069
    if test "X$HPUX_IA64_MODE" = X32; then
 
15070
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
15071
    else
 
15072
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
15073
    fi
 
15074
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
15075
    ;;
 
15076
   hppa*64*)
 
15077
     shrext_cmds='.sl'
 
15078
     hardcode_into_libs=yes
 
15079
     dynamic_linker="$host_os dld.sl"
 
15080
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
15081
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
15082
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15083
     soname_spec='${libname}${release}${shared_ext}$major'
 
15084
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
15085
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
15086
     ;;
 
15087
   *)
 
15088
    shrext_cmds='.sl'
 
15089
    dynamic_linker="$host_os dld.sl"
 
15090
    shlibpath_var=SHLIB_PATH
 
15091
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
15092
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15093
    soname_spec='${libname}${release}${shared_ext}$major'
 
15094
    ;;
 
15095
  esac
 
15096
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
15097
  postinstall_cmds='chmod 555 $lib'
 
15098
  ;;
 
15099
 
 
15100
irix5* | irix6* | nonstopux*)
 
15101
  case $host_os in
 
15102
    nonstopux*) version_type=nonstopux ;;
 
15103
    *)
 
15104
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
15105
                version_type=linux
 
15106
        else
 
15107
                version_type=irix
 
15108
        fi ;;
 
15109
  esac
 
15110
  need_lib_prefix=no
 
15111
  need_version=no
 
15112
  soname_spec='${libname}${release}${shared_ext}$major'
 
15113
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
15114
  case $host_os in
 
15115
  irix5* | nonstopux*)
 
15116
    libsuff= shlibsuff=
 
15117
    ;;
 
15118
  *)
 
15119
    case $LD in # libtool.m4 will add one of these switches to LD
 
15120
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
15121
      libsuff= shlibsuff= libmagic=32-bit;;
 
15122
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
15123
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
15124
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
15125
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
15126
    *) libsuff= shlibsuff= libmagic=never-match;;
 
15127
    esac
 
15128
    ;;
 
15129
  esac
 
15130
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
15131
  shlibpath_overrides_runpath=no
 
15132
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
15133
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
15134
  hardcode_into_libs=yes
 
15135
  ;;
 
15136
 
 
15137
# No shared lib support for Linux oldld, aout, or coff.
 
15138
linux*oldld* | linux*aout* | linux*coff*)
 
15139
  dynamic_linker=no
 
15140
  ;;
 
15141
 
 
15142
# This must be Linux ELF.
 
15143
linux*)
 
15144
  version_type=linux
 
15145
  need_lib_prefix=no
 
15146
  need_version=no
 
15147
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15148
  soname_spec='${libname}${release}${shared_ext}$major'
 
15149
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
15150
  shlibpath_var=LD_LIBRARY_PATH
 
15151
  shlibpath_overrides_runpath=no
 
15152
  # This implies no fast_install, which is unacceptable.
 
15153
  # Some rework will be needed to allow for fast_install
 
15154
  # before this can be enabled.
 
15155
  hardcode_into_libs=yes
 
15156
 
 
15157
  # find out which ABI we are using
 
15158
  libsuff=
 
15159
  case "$host_cpu" in
 
15160
  x86_64*|s390x*|powerpc64*)
 
15161
    echo '#line 15161 "configure"' > conftest.$ac_ext
 
15162
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15163
  (eval $ac_compile) 2>&5
 
15164
  ac_status=$?
 
15165
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15166
  (exit $ac_status); }; then
 
15167
      case `/usr/bin/file conftest.$ac_objext` in
 
15168
      *64-bit*)
 
15169
        libsuff=64
 
15170
        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
 
15171
        ;;
 
15172
      esac
 
15173
    fi
 
15174
    rm -rf conftest*
 
15175
    ;;
 
15176
  esac
 
15177
 
 
15178
  # Append ld.so.conf contents to the search path
 
15179
  if test -f /etc/ld.so.conf; then
 
15180
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
15181
    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
 
15182
  fi
 
15183
 
 
15184
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
15185
  # powerpc, because MkLinux only supported shared libraries with the
 
15186
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
15187
  # most powerpc-linux boxes support dynamic linking these days and
 
15188
  # people can always --disable-shared, the test was removed, and we
 
15189
  # assume the GNU/Linux dynamic linker is in use.
 
15190
  dynamic_linker='GNU/Linux ld.so'
 
15191
  ;;
 
15192
 
 
15193
knetbsd*-gnu)
 
15194
  version_type=linux
 
15195
  need_lib_prefix=no
 
15196
  need_version=no
 
15197
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
15198
  soname_spec='${libname}${release}${shared_ext}$major'
 
15199
  shlibpath_var=LD_LIBRARY_PATH
 
15200
  shlibpath_overrides_runpath=no
 
15201
  hardcode_into_libs=yes
 
15202
  dynamic_linker='GNU ld.so'
 
15203
  ;;
 
15204
 
 
15205
netbsd*)
 
15206
  version_type=sunos
 
15207
  need_lib_prefix=no
 
15208
  need_version=no
 
15209
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
15210
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
15211
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
15212
    dynamic_linker='NetBSD (a.out) ld.so'
 
15213
  else
 
15214
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
15215
    soname_spec='${libname}${release}${shared_ext}$major'
 
15216
    dynamic_linker='NetBSD ld.elf_so'
 
15217
  fi
 
15218
  shlibpath_var=LD_LIBRARY_PATH
 
15219
  shlibpath_overrides_runpath=yes
 
15220
  hardcode_into_libs=yes
 
15221
  ;;
 
15222
 
 
15223
newsos6)
 
15224
  version_type=linux
 
15225
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15226
  shlibpath_var=LD_LIBRARY_PATH
 
15227
  shlibpath_overrides_runpath=yes
 
15228
  ;;
 
15229
 
 
15230
nto-qnx*)
 
15231
  version_type=linux
 
15232
  need_lib_prefix=no
 
15233
  need_version=no
 
15234
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15235
  soname_spec='${libname}${release}${shared_ext}$major'
 
15236
  shlibpath_var=LD_LIBRARY_PATH
 
15237
  shlibpath_overrides_runpath=yes
 
15238
  ;;
 
15239
 
 
15240
openbsd*)
 
15241
  version_type=sunos
 
15242
  need_lib_prefix=no
 
15243
  need_version=yes
 
15244
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
15245
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
15246
  shlibpath_var=LD_LIBRARY_PATH
 
15247
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
15248
    case $host_os in
 
15249
      openbsd2.[89] | openbsd2.[89].*)
 
15250
        shlibpath_overrides_runpath=no
 
15251
        ;;
 
15252
      *)
 
15253
        shlibpath_overrides_runpath=yes
 
15254
        ;;
 
15255
      esac
 
15256
  else
 
15257
    shlibpath_overrides_runpath=yes
 
15258
  fi
 
15259
  ;;
 
15260
 
 
15261
os2*)
 
15262
  libname_spec='$name'
 
15263
  shrext_cmds=".dll"
 
15264
  need_lib_prefix=no
 
15265
  library_names_spec='$libname${shared_ext} $libname.a'
 
15266
  dynamic_linker='OS/2 ld.exe'
 
15267
  shlibpath_var=LIBPATH
 
15268
  ;;
 
15269
 
 
15270
osf3* | osf4* | osf5*)
 
15271
  version_type=osf
 
15272
  need_lib_prefix=no
 
15273
  need_version=no
 
15274
  soname_spec='${libname}${release}${shared_ext}$major'
 
15275
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15276
  shlibpath_var=LD_LIBRARY_PATH
 
15277
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
15278
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
15279
  ;;
 
15280
 
 
15281
sco3.2v5*)
 
15282
  version_type=osf
 
15283
  soname_spec='${libname}${release}${shared_ext}$major'
 
15284
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15285
  shlibpath_var=LD_LIBRARY_PATH
 
15286
  ;;
 
15287
 
 
15288
solaris*)
 
15289
  version_type=linux
 
15290
  need_lib_prefix=no
 
15291
  need_version=no
 
15292
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15293
  soname_spec='${libname}${release}${shared_ext}$major'
 
15294
  shlibpath_var=LD_LIBRARY_PATH
 
15295
  shlibpath_overrides_runpath=yes
 
15296
  hardcode_into_libs=yes
 
15297
  # ldd complains unless libraries are executable
 
15298
  postinstall_cmds='chmod +x $lib'
 
15299
  ;;
 
15300
 
 
15301
sunos4*)
 
15302
  version_type=sunos
 
15303
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
15304
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
15305
  shlibpath_var=LD_LIBRARY_PATH
 
15306
  shlibpath_overrides_runpath=yes
 
15307
  if test "$with_gnu_ld" = yes; then
 
15308
    need_lib_prefix=no
 
15309
  fi
 
15310
  need_version=yes
 
15311
  ;;
 
15312
 
 
15313
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
15314
  version_type=linux
 
15315
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15316
  soname_spec='${libname}${release}${shared_ext}$major'
 
15317
  shlibpath_var=LD_LIBRARY_PATH
 
15318
  case $host_vendor in
 
15319
    sni)
 
15320
      shlibpath_overrides_runpath=no
 
15321
      need_lib_prefix=no
 
15322
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
15323
      runpath_var=LD_RUN_PATH
 
15324
      ;;
 
15325
    siemens)
 
15326
      need_lib_prefix=no
 
15327
      ;;
 
15328
    motorola)
 
15329
      need_lib_prefix=no
 
15330
      need_version=no
 
15331
      shlibpath_overrides_runpath=no
 
15332
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
15333
      ;;
 
15334
  esac
 
15335
  ;;
 
15336
 
 
15337
sysv4*MP*)
 
15338
  if test -d /usr/nec ;then
 
15339
    version_type=linux
 
15340
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
15341
    soname_spec='$libname${shared_ext}.$major'
 
15342
    shlibpath_var=LD_LIBRARY_PATH
 
15343
  fi
 
15344
  ;;
 
15345
 
 
15346
uts4*)
 
15347
  version_type=linux
 
15348
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15349
  soname_spec='${libname}${release}${shared_ext}$major'
 
15350
  shlibpath_var=LD_LIBRARY_PATH
 
15351
  ;;
 
15352
 
 
15353
*)
 
15354
  dynamic_linker=no
 
15355
  ;;
 
15356
esac
 
15357
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
15358
echo "${ECHO_T}$dynamic_linker" >&6
 
15359
test "$dynamic_linker" = no && can_build_shared=no
 
15360
 
 
15361
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
15362
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
15363
hardcode_action_F77=
 
15364
if test -n "$hardcode_libdir_flag_spec_F77" || \
 
15365
   test -n "$runpath_var F77" || \
 
15366
   test "X$hardcode_automatic_F77"="Xyes" ; then
 
15367
 
 
15368
  # We can hardcode non-existant directories.
 
15369
  if test "$hardcode_direct_F77" != no &&
 
15370
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
15371
     # have to relink, otherwise we might link with an installed library
 
15372
     # when we should be linking with a yet-to-be-installed one
 
15373
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
 
15374
     test "$hardcode_minus_L_F77" != no; then
 
15375
    # Linking always hardcodes the temporary library directory.
 
15376
    hardcode_action_F77=relink
 
15377
  else
 
15378
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
15379
    hardcode_action_F77=immediate
 
15380
  fi
 
15381
else
 
15382
  # We cannot hardcode anything, or else we can only hardcode existing
 
15383
  # directories.
 
15384
  hardcode_action_F77=unsupported
 
15385
fi
 
15386
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
 
15387
echo "${ECHO_T}$hardcode_action_F77" >&6
 
15388
 
 
15389
if test "$hardcode_action_F77" = relink; then
 
15390
  # Fast installation is not supported
 
15391
  enable_fast_install=no
 
15392
elif test "$shlibpath_overrides_runpath" = yes ||
 
15393
     test "$enable_shared" = no; then
 
15394
  # Fast installation is not necessary
 
15395
  enable_fast_install=needless
 
15396
fi
 
15397
 
 
15398
striplib=
 
15399
old_striplib=
 
15400
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
15401
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
15402
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
15403
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
15404
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
15405
  echo "$as_me:$LINENO: result: yes" >&5
 
15406
echo "${ECHO_T}yes" >&6
 
15407
else
 
15408
# FIXME - insert some real tests, host_os isn't really good enough
 
15409
  case $host_os in
 
15410
   darwin*)
 
15411
       if test -n "$STRIP" ; then
 
15412
         striplib="$STRIP -x"
 
15413
         echo "$as_me:$LINENO: result: yes" >&5
 
15414
echo "${ECHO_T}yes" >&6
 
15415
       else
 
15416
  echo "$as_me:$LINENO: result: no" >&5
 
15417
echo "${ECHO_T}no" >&6
 
15418
fi
 
15419
       ;;
 
15420
   *)
 
15421
  echo "$as_me:$LINENO: result: no" >&5
 
15422
echo "${ECHO_T}no" >&6
 
15423
    ;;
 
15424
  esac
 
15425
fi
 
15426
 
 
15427
 
 
15428
 
 
15429
# The else clause should only fire when bootstrapping the
 
15430
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
15431
# with your package, and you will get complaints that there are
 
15432
# no rules to generate ltmain.sh.
 
15433
if test -f "$ltmain"; then
 
15434
  # See if we are running on zsh, and set the options which allow our commands through
 
15435
  # without removal of \ escapes.
 
15436
  if test -n "${ZSH_VERSION+set}" ; then
 
15437
    setopt NO_GLOB_SUBST
 
15438
  fi
 
15439
  # Now quote all the things that may contain metacharacters while being
 
15440
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
15441
  # variables and quote the copies for generation of the libtool script.
 
15442
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
15443
    SED SHELL STRIP \
 
15444
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
15445
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
15446
    deplibs_check_method reload_flag reload_cmds need_locks \
 
15447
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
15448
    lt_cv_sys_global_symbol_to_c_name_address \
 
15449
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
15450
    old_postinstall_cmds old_postuninstall_cmds \
 
15451
    compiler_F77 \
 
15452
    CC_F77 \
 
15453
    LD_F77 \
 
15454
    lt_prog_compiler_wl_F77 \
 
15455
    lt_prog_compiler_pic_F77 \
 
15456
    lt_prog_compiler_static_F77 \
 
15457
    lt_prog_compiler_no_builtin_flag_F77 \
 
15458
    export_dynamic_flag_spec_F77 \
 
15459
    thread_safe_flag_spec_F77 \
 
15460
    whole_archive_flag_spec_F77 \
 
15461
    enable_shared_with_static_runtimes_F77 \
 
15462
    old_archive_cmds_F77 \
 
15463
    old_archive_from_new_cmds_F77 \
 
15464
    predep_objects_F77 \
 
15465
    postdep_objects_F77 \
 
15466
    predeps_F77 \
 
15467
    postdeps_F77 \
 
15468
    compiler_lib_search_path_F77 \
 
15469
    archive_cmds_F77 \
 
15470
    archive_expsym_cmds_F77 \
 
15471
    postinstall_cmds_F77 \
 
15472
    postuninstall_cmds_F77 \
 
15473
    old_archive_from_expsyms_cmds_F77 \
 
15474
    allow_undefined_flag_F77 \
 
15475
    no_undefined_flag_F77 \
 
15476
    export_symbols_cmds_F77 \
 
15477
    hardcode_libdir_flag_spec_F77 \
 
15478
    hardcode_libdir_flag_spec_ld_F77 \
 
15479
    hardcode_libdir_separator_F77 \
 
15480
    hardcode_automatic_F77 \
 
15481
    module_cmds_F77 \
 
15482
    module_expsym_cmds_F77 \
 
15483
    lt_cv_prog_compiler_c_o_F77 \
 
15484
    exclude_expsyms_F77 \
 
15485
    include_expsyms_F77; do
 
15486
 
 
15487
    case $var in
 
15488
    old_archive_cmds_F77 | \
 
15489
    old_archive_from_new_cmds_F77 | \
 
15490
    archive_cmds_F77 | \
 
15491
    archive_expsym_cmds_F77 | \
 
15492
    module_cmds_F77 | \
 
15493
    module_expsym_cmds_F77 | \
 
15494
    old_archive_from_expsyms_cmds_F77 | \
 
15495
    export_symbols_cmds_F77 | \
 
15496
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
15497
    postinstall_cmds | postuninstall_cmds | \
 
15498
    old_postinstall_cmds | old_postuninstall_cmds | \
 
15499
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
15500
      # Double-quote double-evaled strings.
 
15501
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
15502
      ;;
 
15503
    *)
 
15504
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
15505
      ;;
 
15506
    esac
 
15507
  done
 
15508
 
 
15509
  case $lt_echo in
 
15510
  *'\$0 --fallback-echo"')
 
15511
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
15512
    ;;
 
15513
  esac
 
15514
 
 
15515
cfgfile="$ofile"
 
15516
 
 
15517
  cat <<__EOF__ >> "$cfgfile"
 
15518
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
15519
 
 
15520
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
15521
 
 
15522
# Shell to use when invoking shell scripts.
 
15523
SHELL=$lt_SHELL
 
15524
 
 
15525
# Whether or not to build shared libraries.
 
15526
build_libtool_libs=$enable_shared
 
15527
 
 
15528
# Whether or not to build static libraries.
 
15529
build_old_libs=$enable_static
 
15530
 
 
15531
# Whether or not to add -lc for building shared libraries.
 
15532
build_libtool_need_lc=$archive_cmds_need_lc_F77
 
15533
 
 
15534
# Whether or not to disallow shared libs when runtime libs are static
 
15535
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
 
15536
 
 
15537
# Whether or not to optimize for fast installation.
 
15538
fast_install=$enable_fast_install
 
15539
 
 
15540
# The host system.
 
15541
host_alias=$host_alias
 
15542
host=$host
 
15543
 
 
15544
# An echo program that does not interpret backslashes.
 
15545
echo=$lt_echo
 
15546
 
 
15547
# The archiver.
 
15548
AR=$lt_AR
 
15549
AR_FLAGS=$lt_AR_FLAGS
 
15550
 
 
15551
# A C compiler.
 
15552
LTCC=$lt_LTCC
 
15553
 
 
15554
# A language-specific compiler.
 
15555
CC=$lt_compiler_F77
 
15556
 
 
15557
# Is the compiler the GNU C compiler?
 
15558
with_gcc=$GCC_F77
 
15559
 
 
15560
# An ERE matcher.
 
15561
EGREP=$lt_EGREP
 
15562
 
 
15563
# The linker used to build libraries.
 
15564
LD=$lt_LD_F77
 
15565
 
 
15566
# Whether we need hard or soft links.
 
15567
LN_S=$lt_LN_S
 
15568
 
 
15569
# A BSD-compatible nm program.
 
15570
NM=$lt_NM
 
15571
 
 
15572
# A symbol stripping program
 
15573
STRIP=$lt_STRIP
 
15574
 
 
15575
# Used to examine libraries when file_magic_cmd begins "file"
 
15576
MAGIC_CMD=$MAGIC_CMD
 
15577
 
 
15578
# Used on cygwin: DLL creation program.
 
15579
DLLTOOL="$DLLTOOL"
 
15580
 
 
15581
# Used on cygwin: object dumper.
 
15582
OBJDUMP="$OBJDUMP"
 
15583
 
 
15584
# Used on cygwin: assembler.
 
15585
AS="$AS"
 
15586
 
 
15587
# The name of the directory that contains temporary libtool files.
 
15588
objdir=$objdir
 
15589
 
 
15590
# How to create reloadable object files.
 
15591
reload_flag=$lt_reload_flag
 
15592
reload_cmds=$lt_reload_cmds
 
15593
 
 
15594
# How to pass a linker flag through the compiler.
 
15595
wl=$lt_lt_prog_compiler_wl_F77
 
15596
 
 
15597
# Object file suffix (normally "o").
 
15598
objext="$ac_objext"
 
15599
 
 
15600
# Old archive suffix (normally "a").
 
15601
libext="$libext"
 
15602
 
 
15603
# Shared library suffix (normally ".so").
 
15604
shrext_cmds='$shrext_cmds'
 
15605
 
 
15606
# Executable file suffix (normally "").
 
15607
exeext="$exeext"
 
15608
 
 
15609
# Additional compiler flags for building library objects.
 
15610
pic_flag=$lt_lt_prog_compiler_pic_F77
 
15611
pic_mode=$pic_mode
 
15612
 
 
15613
# What is the maximum length of a command?
 
15614
max_cmd_len=$lt_cv_sys_max_cmd_len
 
15615
 
 
15616
# Does compiler simultaneously support -c and -o options?
 
15617
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
 
15618
 
 
15619
# Must we lock files when doing compilation ?
 
15620
need_locks=$lt_need_locks
 
15621
 
 
15622
# Do we need the lib prefix for modules?
 
15623
need_lib_prefix=$need_lib_prefix
 
15624
 
 
15625
# Do we need a version for libraries?
 
15626
need_version=$need_version
 
15627
 
 
15628
# Whether dlopen is supported.
 
15629
dlopen_support=$enable_dlopen
 
15630
 
 
15631
# Whether dlopen of programs is supported.
 
15632
dlopen_self=$enable_dlopen_self
 
15633
 
 
15634
# Whether dlopen of statically linked programs is supported.
 
15635
dlopen_self_static=$enable_dlopen_self_static
 
15636
 
 
15637
# Compiler flag to prevent dynamic linking.
 
15638
link_static_flag=$lt_lt_prog_compiler_static_F77
 
15639
 
 
15640
# Compiler flag to turn off builtin functions.
 
15641
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
 
15642
 
 
15643
# Compiler flag to allow reflexive dlopens.
 
15644
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
 
15645
 
 
15646
# Compiler flag to generate shared objects directly from archives.
 
15647
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
 
15648
 
 
15649
# Compiler flag to generate thread-safe objects.
 
15650
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
 
15651
 
 
15652
# Library versioning type.
 
15653
version_type=$version_type
 
15654
 
 
15655
# Format of library name prefix.
 
15656
libname_spec=$lt_libname_spec
 
15657
 
 
15658
# List of archive names.  First name is the real one, the rest are links.
 
15659
# The last name is the one that the linker finds with -lNAME.
 
15660
library_names_spec=$lt_library_names_spec
 
15661
 
 
15662
# The coded name of the library, if different from the real name.
 
15663
soname_spec=$lt_soname_spec
 
15664
 
 
15665
# Commands used to build and install an old-style archive.
 
15666
RANLIB=$lt_RANLIB
 
15667
old_archive_cmds=$lt_old_archive_cmds_F77
 
15668
old_postinstall_cmds=$lt_old_postinstall_cmds
 
15669
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
15670
 
 
15671
# Create an old-style archive from a shared archive.
 
15672
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
 
15673
 
 
15674
# Create a temporary old-style archive to link instead of a shared archive.
 
15675
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
 
15676
 
 
15677
# Commands used to build and install a shared archive.
 
15678
archive_cmds=$lt_archive_cmds_F77
 
15679
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
 
15680
postinstall_cmds=$lt_postinstall_cmds
 
15681
postuninstall_cmds=$lt_postuninstall_cmds
 
15682
 
 
15683
# Commands used to build a loadable module (assumed same as above if empty)
 
15684
module_cmds=$lt_module_cmds_F77
 
15685
module_expsym_cmds=$lt_module_expsym_cmds_F77
 
15686
 
 
15687
# Commands to strip libraries.
 
15688
old_striplib=$lt_old_striplib
 
15689
striplib=$lt_striplib
 
15690
 
 
15691
# Dependencies to place before the objects being linked to create a
 
15692
# shared library.
 
15693
predep_objects=$lt_predep_objects_F77
 
15694
 
 
15695
# Dependencies to place after the objects being linked to create a
 
15696
# shared library.
 
15697
postdep_objects=$lt_postdep_objects_F77
 
15698
 
 
15699
# Dependencies to place before the objects being linked to create a
 
15700
# shared library.
 
15701
predeps=$lt_predeps_F77
 
15702
 
 
15703
# Dependencies to place after the objects being linked to create a
 
15704
# shared library.
 
15705
postdeps=$lt_postdeps_F77
 
15706
 
 
15707
# The library search path used internally by the compiler when linking
 
15708
# a shared library.
 
15709
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
 
15710
 
 
15711
# Method to check whether dependent libraries are shared objects.
 
15712
deplibs_check_method=$lt_deplibs_check_method
 
15713
 
 
15714
# Command to use when deplibs_check_method == file_magic.
 
15715
file_magic_cmd=$lt_file_magic_cmd
 
15716
 
 
15717
# Flag that allows shared libraries with undefined symbols to be built.
 
15718
allow_undefined_flag=$lt_allow_undefined_flag_F77
 
15719
 
 
15720
# Flag that forces no undefined symbols.
 
15721
no_undefined_flag=$lt_no_undefined_flag_F77
 
15722
 
 
15723
# Commands used to finish a libtool library installation in a directory.
 
15724
finish_cmds=$lt_finish_cmds
 
15725
 
 
15726
# Same as above, but a single script fragment to be evaled but not shown.
 
15727
finish_eval=$lt_finish_eval
 
15728
 
 
15729
# Take the output of nm and produce a listing of raw symbols and C names.
 
15730
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
15731
 
 
15732
# Transform the output of nm in a proper C declaration
 
15733
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
15734
 
 
15735
# Transform the output of nm in a C name address pair
 
15736
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
15737
 
 
15738
# This is the shared library runtime path variable.
 
15739
runpath_var=$runpath_var
 
15740
 
 
15741
# This is the shared library path variable.
 
15742
shlibpath_var=$shlibpath_var
 
15743
 
 
15744
# Is shlibpath searched before the hard-coded library search path?
 
15745
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
15746
 
 
15747
# How to hardcode a shared library path into an executable.
 
15748
hardcode_action=$hardcode_action_F77
 
15749
 
 
15750
# Whether we should hardcode library paths into libraries.
 
15751
hardcode_into_libs=$hardcode_into_libs
 
15752
 
 
15753
# Flag to hardcode \$libdir into a binary during linking.
 
15754
# This must work even if \$libdir does not exist.
 
15755
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
 
15756
 
 
15757
# If ld is used when linking, flag to hardcode \$libdir into
 
15758
# a binary during linking. This must work even if \$libdir does
 
15759
# not exist.
 
15760
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
 
15761
 
 
15762
# Whether we need a single -rpath flag with a separated argument.
 
15763
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
 
15764
 
 
15765
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
15766
# resulting binary.
 
15767
hardcode_direct=$hardcode_direct_F77
 
15768
 
 
15769
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
15770
# resulting binary.
 
15771
hardcode_minus_L=$hardcode_minus_L_F77
 
15772
 
 
15773
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
15774
# the resulting binary.
 
15775
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
 
15776
 
 
15777
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
15778
# and all subsequent libraries and executables linked against it.
 
15779
hardcode_automatic=$hardcode_automatic_F77
 
15780
 
 
15781
# Variables whose values should be saved in libtool wrapper scripts and
 
15782
# restored at relink time.
 
15783
variables_saved_for_relink="$variables_saved_for_relink"
 
15784
 
 
15785
# Whether libtool must link a program against all its dependency libraries.
 
15786
link_all_deplibs=$link_all_deplibs_F77
 
15787
 
 
15788
# Compile-time system search path for libraries
 
15789
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
15790
 
 
15791
# Run-time system search path for libraries
 
15792
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
15793
 
 
15794
# Fix the shell variable \$srcfile for the compiler.
 
15795
fix_srcfile_path="$fix_srcfile_path_F77"
 
15796
 
 
15797
# Set to yes if exported symbols are required.
 
15798
always_export_symbols=$always_export_symbols_F77
 
15799
 
 
15800
# The commands to list exported symbols.
 
15801
export_symbols_cmds=$lt_export_symbols_cmds_F77
 
15802
 
 
15803
# The commands to extract the exported symbol list from a shared archive.
 
15804
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
15805
 
 
15806
# Symbols that should not be listed in the preloaded symbols.
 
15807
exclude_expsyms=$lt_exclude_expsyms_F77
 
15808
 
 
15809
# Symbols that must always be exported.
 
15810
include_expsyms=$lt_include_expsyms_F77
 
15811
 
 
15812
# ### END LIBTOOL TAG CONFIG: $tagname
 
15813
 
 
15814
__EOF__
 
15815
 
 
15816
 
 
15817
else
 
15818
  # If there is no Makefile yet, we rely on a make rule to execute
 
15819
  # `config.status --recheck' to rerun these tests and create the
 
15820
  # libtool script then.
 
15821
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
15822
  if test -f "$ltmain_in"; then
 
15823
    test -f Makefile && make "$ltmain"
 
15824
  fi
 
15825
fi
 
15826
 
 
15827
 
 
15828
ac_ext=c
 
15829
ac_cpp='$CPP $CPPFLAGS'
 
15830
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
15831
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
15832
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
15833
 
 
15834
CC="$lt_save_CC"
 
15835
 
 
15836
        else
 
15837
          tagname=""
 
15838
        fi
 
15839
        ;;
 
15840
 
 
15841
      GCJ)
 
15842
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
 
15843
 
 
15844
 
 
15845
 
 
15846
# Source file extension for Java test sources.
 
15847
ac_ext=java
 
15848
 
 
15849
# Object file extension for compiled Java test sources.
 
15850
objext=o
 
15851
objext_GCJ=$objext
 
15852
 
 
15853
# Code to be used in simple compile tests
 
15854
lt_simple_compile_test_code="class foo {}\n"
 
15855
 
 
15856
# Code to be used in simple link tests
 
15857
lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
 
15858
 
 
15859
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
15860
 
 
15861
# If no C compiler was specified, use CC.
 
15862
LTCC=${LTCC-"$CC"}
 
15863
 
 
15864
# Allow CC to be a program name with arguments.
 
15865
compiler=$CC
 
15866
 
 
15867
 
 
15868
# Allow CC to be a program name with arguments.
 
15869
lt_save_CC="$CC"
 
15870
CC=${GCJ-"gcj"}
 
15871
compiler=$CC
 
15872
compiler_GCJ=$CC
 
15873
 
 
15874
# GCJ did not exist at the time GCC didn't implicitly link libc in.
 
15875
archive_cmds_need_lc_GCJ=no
 
15876
 
 
15877
 
 
15878
lt_prog_compiler_no_builtin_flag_GCJ=
 
15879
 
 
15880
if test "$GCC" = yes; then
 
15881
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
 
15882
 
 
15883
 
 
15884
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
15885
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
 
15886
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
15887
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15888
else
 
15889
  lt_cv_prog_compiler_rtti_exceptions=no
 
15890
  ac_outfile=conftest.$ac_objext
 
15891
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15892
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
15893
   # Insert the option either (1) after the last *FLAGS variable, or
 
15894
   # (2) before a word containing "conftest.", or (3) at the end.
 
15895
   # Note that $ac_compile itself does not contain backslashes and begins
 
15896
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
15897
   # The option is referenced via a variable to avoid confusing sed.
 
15898
   lt_compile=`echo "$ac_compile" | $SED \
 
15899
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
15900
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
15901
   -e 's:$: $lt_compiler_flag:'`
 
15902
   (eval echo "\"\$as_me:15902: $lt_compile\"" >&5)
 
15903
   (eval "$lt_compile" 2>conftest.err)
 
15904
   ac_status=$?
 
15905
   cat conftest.err >&5
 
15906
   echo "$as_me:15906: \$? = $ac_status" >&5
 
15907
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
15908
     # The compiler can only warn and ignore the option if not recognized
 
15909
     # So say no if there are warnings
 
15910
     if test ! -s conftest.err; then
 
15911
       lt_cv_prog_compiler_rtti_exceptions=yes
 
15912
     fi
 
15913
   fi
 
15914
   $rm conftest*
 
15915
 
 
15916
fi
 
15917
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
15918
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
 
15919
 
 
15920
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
15921
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
 
15922
else
 
15923
    :
 
15924
fi
 
15925
 
 
15926
fi
 
15927
 
 
15928
lt_prog_compiler_wl_GCJ=
 
15929
lt_prog_compiler_pic_GCJ=
 
15930
lt_prog_compiler_static_GCJ=
 
15931
 
 
15932
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
15933
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
15934
 
 
15935
  if test "$GCC" = yes; then
 
15936
    lt_prog_compiler_wl_GCJ='-Wl,'
 
15937
    lt_prog_compiler_static_GCJ='-static'
 
15938
 
 
15939
    case $host_os in
 
15940
      aix*)
 
15941
      # All AIX code is PIC.
 
15942
      if test "$host_cpu" = ia64; then
 
15943
        # AIX 5 now supports IA64 processor
 
15944
        lt_prog_compiler_static_GCJ='-Bstatic'
 
15945
      fi
 
15946
      ;;
 
15947
 
 
15948
    amigaos*)
 
15949
      # FIXME: we need at least 68020 code to build shared libraries, but
 
15950
      # adding the `-m68020' flag to GCC prevents building anything better,
 
15951
      # like `-m68040'.
 
15952
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
 
15953
      ;;
 
15954
 
 
15955
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
15956
      # PIC is the default for these OSes.
 
15957
      ;;
 
15958
 
 
15959
    mingw* | pw32* | os2*)
 
15960
      # This hack is so that the source file can tell whether it is being
 
15961
      # built for inclusion in a dll (and should export symbols for example).
 
15962
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
15963
      ;;
 
15964
 
 
15965
    darwin* | rhapsody*)
 
15966
      # PIC is the default on this platform
 
15967
      # Common symbols not allowed in MH_DYLIB files
 
15968
      lt_prog_compiler_pic_GCJ='-fno-common'
 
15969
      ;;
 
15970
 
 
15971
    msdosdjgpp*)
 
15972
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
15973
      # on systems that don't support them.
 
15974
      lt_prog_compiler_can_build_shared_GCJ=no
 
15975
      enable_shared=no
 
15976
      ;;
 
15977
 
 
15978
    sysv4*MP*)
 
15979
      if test -d /usr/nec; then
 
15980
        lt_prog_compiler_pic_GCJ=-Kconform_pic
 
15981
      fi
 
15982
      ;;
 
15983
 
 
15984
    hpux*)
 
15985
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
15986
      # not for PA HP-UX.
 
15987
      case "$host_cpu" in
 
15988
      hppa*64*|ia64*)
 
15989
        # +Z the default
 
15990
        ;;
 
15991
      *)
 
15992
        lt_prog_compiler_pic_GCJ='-fPIC'
 
15993
        ;;
 
15994
      esac
 
15995
      ;;
 
15996
 
 
15997
    *)
 
15998
      lt_prog_compiler_pic_GCJ='-fPIC'
 
15999
      ;;
 
16000
    esac
 
16001
  else
 
16002
    # PORTME Check for flag to pass linker flags through the system compiler.
 
16003
    case $host_os in
 
16004
    aix*)
 
16005
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16006
      if test "$host_cpu" = ia64; then
 
16007
        # AIX 5 now supports IA64 processor
 
16008
        lt_prog_compiler_static_GCJ='-Bstatic'
 
16009
      else
 
16010
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
 
16011
      fi
 
16012
      ;;
 
16013
 
 
16014
    mingw* | pw32* | os2*)
 
16015
      # This hack is so that the source file can tell whether it is being
 
16016
      # built for inclusion in a dll (and should export symbols for example).
 
16017
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
16018
      ;;
 
16019
 
 
16020
    hpux9* | hpux10* | hpux11*)
 
16021
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16022
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
16023
      # not for PA HP-UX.
 
16024
      case "$host_cpu" in
 
16025
      hppa*64*|ia64*)
 
16026
        # +Z the default
 
16027
        ;;
 
16028
      *)
 
16029
        lt_prog_compiler_pic_GCJ='+Z'
 
16030
        ;;
 
16031
      esac
 
16032
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
16033
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
 
16034
      ;;
 
16035
 
 
16036
    irix5* | irix6* | nonstopux*)
 
16037
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16038
      # PIC (with -KPIC) is the default.
 
16039
      lt_prog_compiler_static_GCJ='-non_shared'
 
16040
      ;;
 
16041
 
 
16042
    newsos6)
 
16043
      lt_prog_compiler_pic_GCJ='-KPIC'
 
16044
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16045
      ;;
 
16046
 
 
16047
    linux*)
 
16048
      case $CC in
 
16049
      icc* | ecc*)
 
16050
        lt_prog_compiler_wl_GCJ='-Wl,'
 
16051
        lt_prog_compiler_pic_GCJ='-KPIC'
 
16052
        lt_prog_compiler_static_GCJ='-static'
 
16053
        ;;
 
16054
      ccc*)
 
16055
        lt_prog_compiler_wl_GCJ='-Wl,'
 
16056
        # All Alpha code is PIC.
 
16057
        lt_prog_compiler_static_GCJ='-non_shared'
 
16058
        ;;
 
16059
      esac
 
16060
      ;;
 
16061
 
 
16062
    osf3* | osf4* | osf5*)
 
16063
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16064
      # All OSF/1 code is PIC.
 
16065
      lt_prog_compiler_static_GCJ='-non_shared'
 
16066
      ;;
 
16067
 
 
16068
    sco3.2v5*)
 
16069
      lt_prog_compiler_pic_GCJ='-Kpic'
 
16070
      lt_prog_compiler_static_GCJ='-dn'
 
16071
      ;;
 
16072
 
 
16073
    solaris*)
 
16074
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16075
      lt_prog_compiler_pic_GCJ='-KPIC'
 
16076
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16077
      ;;
 
16078
 
 
16079
    sunos4*)
 
16080
      lt_prog_compiler_wl_GCJ='-Qoption ld '
 
16081
      lt_prog_compiler_pic_GCJ='-PIC'
 
16082
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16083
      ;;
 
16084
 
 
16085
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
16086
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16087
      lt_prog_compiler_pic_GCJ='-KPIC'
 
16088
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16089
      ;;
 
16090
 
 
16091
    sysv4*MP*)
 
16092
      if test -d /usr/nec ;then
 
16093
        lt_prog_compiler_pic_GCJ='-Kconform_pic'
 
16094
        lt_prog_compiler_static_GCJ='-Bstatic'
 
16095
      fi
 
16096
      ;;
 
16097
 
 
16098
    uts4*)
 
16099
      lt_prog_compiler_pic_GCJ='-pic'
 
16100
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16101
      ;;
 
16102
 
 
16103
    *)
 
16104
      lt_prog_compiler_can_build_shared_GCJ=no
 
16105
      ;;
 
16106
    esac
 
16107
  fi
 
16108
 
 
16109
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
 
16110
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
 
16111
 
 
16112
#
 
16113
# Check to make sure the PIC flag actually works.
 
16114
#
 
16115
if test -n "$lt_prog_compiler_pic_GCJ"; then
 
16116
 
 
16117
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
 
16118
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
 
16119
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
 
16120
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16121
else
 
16122
  lt_prog_compiler_pic_works_GCJ=no
 
16123
  ac_outfile=conftest.$ac_objext
 
16124
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16125
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
 
16126
   # Insert the option either (1) after the last *FLAGS variable, or
 
16127
   # (2) before a word containing "conftest.", or (3) at the end.
 
16128
   # Note that $ac_compile itself does not contain backslashes and begins
 
16129
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
16130
   # The option is referenced via a variable to avoid confusing sed.
 
16131
   lt_compile=`echo "$ac_compile" | $SED \
 
16132
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
16133
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
16134
   -e 's:$: $lt_compiler_flag:'`
 
16135
   (eval echo "\"\$as_me:16135: $lt_compile\"" >&5)
 
16136
   (eval "$lt_compile" 2>conftest.err)
 
16137
   ac_status=$?
 
16138
   cat conftest.err >&5
 
16139
   echo "$as_me:16139: \$? = $ac_status" >&5
 
16140
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
16141
     # The compiler can only warn and ignore the option if not recognized
 
16142
     # So say no if there are warnings
 
16143
     if test ! -s conftest.err; then
 
16144
       lt_prog_compiler_pic_works_GCJ=yes
 
16145
     fi
 
16146
   fi
 
16147
   $rm conftest*
 
16148
 
 
16149
fi
 
16150
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
 
16151
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
 
16152
 
 
16153
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
 
16154
    case $lt_prog_compiler_pic_GCJ in
 
16155
     "" | " "*) ;;
 
16156
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
 
16157
     esac
 
16158
else
 
16159
    lt_prog_compiler_pic_GCJ=
 
16160
     lt_prog_compiler_can_build_shared_GCJ=no
 
16161
fi
 
16162
 
 
16163
fi
 
16164
case "$host_os" in
 
16165
  # For platforms which do not support PIC, -DPIC is meaningless:
 
16166
  *djgpp*)
 
16167
    lt_prog_compiler_pic_GCJ=
 
16168
    ;;
 
16169
  *)
 
16170
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
 
16171
    ;;
 
16172
esac
 
16173
 
 
16174
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
16175
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
16176
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
 
16177
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16178
else
 
16179
  lt_cv_prog_compiler_c_o_GCJ=no
 
16180
   $rm -r conftest 2>/dev/null
 
16181
   mkdir conftest
 
16182
   cd conftest
 
16183
   mkdir out
 
16184
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16185
 
 
16186
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
16187
   # Insert the option either (1) after the last *FLAGS variable, or
 
16188
   # (2) before a word containing "conftest.", or (3) at the end.
 
16189
   # Note that $ac_compile itself does not contain backslashes and begins
 
16190
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
16191
   lt_compile=`echo "$ac_compile" | $SED \
 
16192
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
16193
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
16194
   -e 's:$: $lt_compiler_flag:'`
 
16195
   (eval echo "\"\$as_me:16195: $lt_compile\"" >&5)
 
16196
   (eval "$lt_compile" 2>out/conftest.err)
 
16197
   ac_status=$?
 
16198
   cat out/conftest.err >&5
 
16199
   echo "$as_me:16199: \$? = $ac_status" >&5
 
16200
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
16201
   then
 
16202
     # The compiler can only warn and ignore the option if not recognized
 
16203
     # So say no if there are warnings
 
16204
     if test ! -s out/conftest.err; then
 
16205
       lt_cv_prog_compiler_c_o_GCJ=yes
 
16206
     fi
 
16207
   fi
 
16208
   chmod u+w .
 
16209
   $rm conftest*
 
16210
   # SGI C++ compiler will create directory out/ii_files/ for
 
16211
   # template instantiation
 
16212
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
16213
   $rm out/* && rmdir out
 
16214
   cd ..
 
16215
   rmdir conftest
 
16216
   $rm conftest*
 
16217
 
 
16218
fi
 
16219
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
 
16220
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
 
16221
 
 
16222
 
 
16223
hard_links="nottested"
 
16224
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
 
16225
  # do not overwrite the value of need_locks provided by the user
 
16226
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
16227
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
16228
  hard_links=yes
 
16229
  $rm conftest*
 
16230
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
16231
  touch conftest.a
 
16232
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
16233
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
16234
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
16235
echo "${ECHO_T}$hard_links" >&6
 
16236
  if test "$hard_links" = no; then
 
16237
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
16238
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
16239
    need_locks=warn
 
16240
  fi
 
16241
else
 
16242
  need_locks=no
 
16243
fi
 
16244
 
 
16245
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
16246
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
16247
 
 
16248
  runpath_var=
 
16249
  allow_undefined_flag_GCJ=
 
16250
  enable_shared_with_static_runtimes_GCJ=no
 
16251
  archive_cmds_GCJ=
 
16252
  archive_expsym_cmds_GCJ=
 
16253
  old_archive_From_new_cmds_GCJ=
 
16254
  old_archive_from_expsyms_cmds_GCJ=
 
16255
  export_dynamic_flag_spec_GCJ=
 
16256
  whole_archive_flag_spec_GCJ=
 
16257
  thread_safe_flag_spec_GCJ=
 
16258
  hardcode_libdir_flag_spec_GCJ=
 
16259
  hardcode_libdir_flag_spec_ld_GCJ=
 
16260
  hardcode_libdir_separator_GCJ=
 
16261
  hardcode_direct_GCJ=no
 
16262
  hardcode_minus_L_GCJ=no
 
16263
  hardcode_shlibpath_var_GCJ=unsupported
 
16264
  link_all_deplibs_GCJ=unknown
 
16265
  hardcode_automatic_GCJ=no
 
16266
  module_cmds_GCJ=
 
16267
  module_expsym_cmds_GCJ=
 
16268
  always_export_symbols_GCJ=no
 
16269
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
16270
  # include_expsyms should be a list of space-separated symbols to be *always*
 
16271
  # included in the symbol list
 
16272
  include_expsyms_GCJ=
 
16273
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
16274
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
16275
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
16276
  # as well as any symbol that contains `d'.
 
16277
  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
 
16278
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
16279
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
16280
  # the symbol is explicitly referenced.  Since portable code cannot
 
16281
  # rely on this symbol name, it's probably fine to never include it in
 
16282
  # preloaded symbol tables.
 
16283
  extract_expsyms_cmds=
 
16284
 
 
16285
  case $host_os in
 
16286
  cygwin* | mingw* | pw32*)
 
16287
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
16288
    # When not using gcc, we currently assume that we are using
 
16289
    # Microsoft Visual C++.
 
16290
    if test "$GCC" != yes; then
 
16291
      with_gnu_ld=no
 
16292
    fi
 
16293
    ;;
 
16294
  openbsd*)
 
16295
    with_gnu_ld=no
 
16296
    ;;
 
16297
  esac
 
16298
 
 
16299
  ld_shlibs_GCJ=yes
 
16300
  if test "$with_gnu_ld" = yes; then
 
16301
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
16302
    wlarc='${wl}'
 
16303
 
 
16304
    # See if GNU ld supports shared libraries.
 
16305
    case $host_os in
 
16306
    aix3* | aix4* | aix5*)
 
16307
      # On AIX/PPC, the GNU linker is very broken
 
16308
      if test "$host_cpu" != ia64; then
 
16309
        ld_shlibs_GCJ=no
 
16310
        cat <<EOF 1>&2
 
16311
 
 
16312
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
16313
*** to be unable to reliably create shared libraries on AIX.
 
16314
*** Therefore, libtool is disabling shared libraries support.  If you
 
16315
*** really care for shared libraries, you may want to modify your PATH
 
16316
*** so that a non-GNU linker is found, and then restart.
 
16317
 
 
16318
EOF
 
16319
      fi
 
16320
      ;;
 
16321
 
 
16322
    amigaos*)
 
16323
      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)'
 
16324
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16325
      hardcode_minus_L_GCJ=yes
 
16326
 
 
16327
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
16328
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
16329
      # to version 4, is to share data among multiple programs linked
 
16330
      # with the same dynamic library.  Since this doesn't match the
 
16331
      # behavior of shared libraries on other platforms, we can't use
 
16332
      # them.
 
16333
      ld_shlibs_GCJ=no
 
16334
      ;;
 
16335
 
 
16336
    beos*)
 
16337
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16338
        allow_undefined_flag_GCJ=unsupported
 
16339
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
16340
        # support --undefined.  This deserves some investigation.  FIXME
 
16341
        archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16342
      else
 
16343
        ld_shlibs_GCJ=no
 
16344
      fi
 
16345
      ;;
 
16346
 
 
16347
    cygwin* | mingw* | pw32*)
 
16348
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
 
16349
      # as there is no search path for DLLs.
 
16350
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16351
      allow_undefined_flag_GCJ=unsupported
 
16352
      always_export_symbols_GCJ=no
 
16353
      enable_shared_with_static_runtimes_GCJ=yes
 
16354
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
16355
 
 
16356
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
16357
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
16358
        # If the export-symbols file already is a .def file (1st line
 
16359
        # is EXPORTS), use it as is; otherwise, prepend...
 
16360
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
16361
          cp $export_symbols $output_objdir/$soname.def;
 
16362
        else
 
16363
          echo EXPORTS > $output_objdir/$soname.def;
 
16364
          cat $export_symbols >> $output_objdir/$soname.def;
 
16365
        fi~
 
16366
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
16367
      else
 
16368
        ld_shlibs=no
 
16369
      fi
 
16370
      ;;
 
16371
 
 
16372
    netbsd*)
 
16373
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
16374
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
16375
        wlarc=
 
16376
      else
 
16377
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16378
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
16379
      fi
 
16380
      ;;
 
16381
 
 
16382
    solaris* | sysv5*)
 
16383
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
16384
        ld_shlibs_GCJ=no
 
16385
        cat <<EOF 1>&2
 
16386
 
 
16387
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
16388
*** create shared libraries on Solaris systems.  Therefore, libtool
 
16389
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
16390
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
16391
*** your PATH or compiler configuration so that the native linker is
 
16392
*** used, and then restart.
 
16393
 
 
16394
EOF
 
16395
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16396
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16397
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
16398
      else
 
16399
        ld_shlibs_GCJ=no
 
16400
      fi
 
16401
      ;;
 
16402
 
 
16403
    sunos4*)
 
16404
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
16405
      wlarc=
 
16406
      hardcode_direct_GCJ=yes
 
16407
      hardcode_shlibpath_var_GCJ=no
 
16408
      ;;
 
16409
 
 
16410
  linux*)
 
16411
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16412
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16413
        archive_cmds_GCJ="$tmp_archive_cmds"
 
16414
      supports_anon_versioning=no
 
16415
      case `$LD -v 2>/dev/null` in
 
16416
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
16417
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
16418
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
16419
        *\ 2.11.*) ;; # other 2.11 versions
 
16420
        *) supports_anon_versioning=yes ;;
 
16421
      esac
 
16422
      if test $supports_anon_versioning = yes; then
 
16423
        archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
 
16424
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
16425
$echo "local: *; };" >> $output_objdir/$libname.ver~
 
16426
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
16427
      else
 
16428
        archive_expsym_cmds_GCJ="$tmp_archive_cmds"
 
16429
      fi
 
16430
    else
 
16431
      ld_shlibs_GCJ=no
 
16432
    fi
 
16433
    ;;
 
16434
 
 
16435
    *)
 
16436
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16437
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16438
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
16439
      else
 
16440
        ld_shlibs_GCJ=no
 
16441
      fi
 
16442
      ;;
 
16443
    esac
 
16444
 
 
16445
    if test "$ld_shlibs_GCJ" = yes; then
 
16446
      runpath_var=LD_RUN_PATH
 
16447
      hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
 
16448
      export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
 
16449
      # ancient GNU ld didn't support --whole-archive et. al.
 
16450
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
16451
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
16452
      else
 
16453
        whole_archive_flag_spec_GCJ=
 
16454
      fi
 
16455
    fi
 
16456
  else
 
16457
    # PORTME fill in a description of your system's linker (not GNU ld)
 
16458
    case $host_os in
 
16459
    aix3*)
 
16460
      allow_undefined_flag_GCJ=unsupported
 
16461
      always_export_symbols_GCJ=yes
 
16462
      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'
 
16463
      # Note: this linker hardcodes the directories in LIBPATH if there
 
16464
      # are no directories specified by -L.
 
16465
      hardcode_minus_L_GCJ=yes
 
16466
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
16467
        # Neither direct hardcoding nor static linking is supported with a
 
16468
        # broken collect2.
 
16469
        hardcode_direct_GCJ=unsupported
 
16470
      fi
 
16471
      ;;
 
16472
 
 
16473
    aix4* | aix5*)
 
16474
      if test "$host_cpu" = ia64; then
 
16475
        # On IA64, the linker does run time linking by default, so we don't
 
16476
        # have to do anything special.
 
16477
        aix_use_runtimelinking=no
 
16478
        exp_sym_flag='-Bexport'
 
16479
        no_entry_flag=""
 
16480
      else
 
16481
        # If we're using GNU nm, then we don't want the "-C" option.
 
16482
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
16483
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
16484
          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'
 
16485
        else
 
16486
          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'
 
16487
        fi
 
16488
        aix_use_runtimelinking=no
 
16489
 
 
16490
        # Test if we are trying to use run time linking or normal
 
16491
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
16492
        # need to do runtime linking.
 
16493
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
16494
          for ld_flag in $LDFLAGS; do
 
16495
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
16496
            aix_use_runtimelinking=yes
 
16497
            break
 
16498
          fi
 
16499
          done
 
16500
        esac
 
16501
 
 
16502
        exp_sym_flag='-bexport'
 
16503
        no_entry_flag='-bnoentry'
 
16504
      fi
 
16505
 
 
16506
      # When large executables or shared objects are built, AIX ld can
 
16507
      # have problems creating the table of contents.  If linking a library
 
16508
      # or program results in "error TOC overflow" add -mminimal-toc to
 
16509
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
16510
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
16511
 
 
16512
      archive_cmds_GCJ=''
 
16513
      hardcode_direct_GCJ=yes
 
16514
      hardcode_libdir_separator_GCJ=':'
 
16515
      link_all_deplibs_GCJ=yes
 
16516
 
 
16517
      if test "$GCC" = yes; then
 
16518
        case $host_os in aix4.012|aix4.012.*)
 
16519
        # We only want to do this on AIX 4.2 and lower, the check
 
16520
        # below for broken collect2 doesn't work under 4.3+
 
16521
          collect2name=`${CC} -print-prog-name=collect2`
 
16522
          if test -f "$collect2name" && \
 
16523
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
16524
          then
 
16525
          # We have reworked collect2
 
16526
          hardcode_direct_GCJ=yes
 
16527
          else
 
16528
          # We have old collect2
 
16529
          hardcode_direct_GCJ=unsupported
 
16530
          # It fails to find uninstalled libraries when the uninstalled
 
16531
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
16532
          # to unsupported forces relinking
 
16533
          hardcode_minus_L_GCJ=yes
 
16534
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16535
          hardcode_libdir_separator_GCJ=
 
16536
          fi
 
16537
        esac
 
16538
        shared_flag='-shared'
 
16539
      else
 
16540
        # not using gcc
 
16541
        if test "$host_cpu" = ia64; then
 
16542
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
16543
        # chokes on -Wl,-G. The following line is correct:
 
16544
          shared_flag='-G'
 
16545
        else
 
16546
        if test "$aix_use_runtimelinking" = yes; then
 
16547
            shared_flag='${wl}-G'
 
16548
          else
 
16549
            shared_flag='${wl}-bM:SRE'
 
16550
        fi
 
16551
        fi
 
16552
      fi
 
16553
 
 
16554
      # It seems that -bexpall does not export symbols beginning with
 
16555
      # underscore (_), so it is better to generate a list of symbols to export.
 
16556
      always_export_symbols_GCJ=yes
 
16557
      if test "$aix_use_runtimelinking" = yes; then
 
16558
        # Warning - without using the other runtime loading flags (-brtl),
 
16559
        # -berok will link without error, but may produce a broken library.
 
16560
        allow_undefined_flag_GCJ='-berok'
 
16561
       # Determine the default libpath from the value encoded in an empty executable.
 
16562
       cat >conftest.$ac_ext <<_ACEOF
 
16563
/* confdefs.h.  */
 
16564
_ACEOF
 
16565
cat confdefs.h >>conftest.$ac_ext
 
16566
cat >>conftest.$ac_ext <<_ACEOF
 
16567
/* end confdefs.h.  */
 
16568
 
 
16569
int
 
16570
main ()
 
16571
{
 
16572
 
 
16573
  ;
 
16574
  return 0;
 
16575
}
 
16576
_ACEOF
 
16577
rm -f conftest.$ac_objext conftest$ac_exeext
 
16578
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
16579
  (eval $ac_link) 2>conftest.er1
 
16580
  ac_status=$?
 
16581
  grep -v '^ *+' conftest.er1 >conftest.err
 
16582
  rm -f conftest.er1
 
16583
  cat conftest.err >&5
 
16584
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16585
  (exit $ac_status); } &&
 
16586
         { ac_try='test -z "$ac_c_werror_flag"
 
16587
                         || test ! -s conftest.err'
 
16588
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16589
  (eval $ac_try) 2>&5
 
16590
  ac_status=$?
 
16591
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16592
  (exit $ac_status); }; } &&
 
16593
         { ac_try='test -s conftest$ac_exeext'
 
16594
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16595
  (eval $ac_try) 2>&5
 
16596
  ac_status=$?
 
16597
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16598
  (exit $ac_status); }; }; then
 
16599
 
 
16600
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
16601
}'`
 
16602
# Check for a 64-bit object if we didn't find anything.
 
16603
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; }
 
16604
}'`; fi
 
16605
else
 
16606
  echo "$as_me: failed program was:" >&5
 
16607
sed 's/^/| /' conftest.$ac_ext >&5
 
16608
 
 
16609
fi
 
16610
rm -f conftest.err conftest.$ac_objext \
 
16611
      conftest$ac_exeext conftest.$ac_ext
 
16612
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
16613
 
 
16614
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
16615
        archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
16616
       else
 
16617
        if test "$host_cpu" = ia64; then
 
16618
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
 
16619
          allow_undefined_flag_GCJ="-z nodefs"
 
16620
          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"
 
16621
        else
 
16622
         # Determine the default libpath from the value encoded in an empty executable.
 
16623
         cat >conftest.$ac_ext <<_ACEOF
 
16624
/* confdefs.h.  */
 
16625
_ACEOF
 
16626
cat confdefs.h >>conftest.$ac_ext
 
16627
cat >>conftest.$ac_ext <<_ACEOF
 
16628
/* end confdefs.h.  */
 
16629
 
 
16630
int
 
16631
main ()
 
16632
{
 
16633
 
 
16634
  ;
 
16635
  return 0;
 
16636
}
 
16637
_ACEOF
 
16638
rm -f conftest.$ac_objext conftest$ac_exeext
 
16639
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
16640
  (eval $ac_link) 2>conftest.er1
 
16641
  ac_status=$?
 
16642
  grep -v '^ *+' conftest.er1 >conftest.err
 
16643
  rm -f conftest.er1
 
16644
  cat conftest.err >&5
 
16645
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16646
  (exit $ac_status); } &&
 
16647
         { ac_try='test -z "$ac_c_werror_flag"
 
16648
                         || test ! -s conftest.err'
 
16649
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16650
  (eval $ac_try) 2>&5
 
16651
  ac_status=$?
 
16652
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16653
  (exit $ac_status); }; } &&
 
16654
         { ac_try='test -s conftest$ac_exeext'
 
16655
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16656
  (eval $ac_try) 2>&5
 
16657
  ac_status=$?
 
16658
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16659
  (exit $ac_status); }; }; then
 
16660
 
 
16661
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
16662
}'`
 
16663
# Check for a 64-bit object if we didn't find anything.
 
16664
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; }
 
16665
}'`; fi
 
16666
else
 
16667
  echo "$as_me: failed program was:" >&5
 
16668
sed 's/^/| /' conftest.$ac_ext >&5
 
16669
 
 
16670
fi
 
16671
rm -f conftest.err conftest.$ac_objext \
 
16672
      conftest$ac_exeext conftest.$ac_ext
 
16673
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
16674
 
 
16675
         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
16676
          # Warning - without using the other run time loading flags,
 
16677
          # -berok will link without error, but may produce a broken library.
 
16678
          no_undefined_flag_GCJ=' ${wl}-bernotok'
 
16679
          allow_undefined_flag_GCJ=' ${wl}-berok'
 
16680
          # -bexpall does not export symbols beginning with underscore (_)
 
16681
          always_export_symbols_GCJ=yes
 
16682
          # Exported symbols can be pulled into shared objects from archives
 
16683
          whole_archive_flag_spec_GCJ=' '
 
16684
          archive_cmds_need_lc_GCJ=yes
 
16685
          # This is similar to how AIX traditionally builds it's shared libraries.
 
16686
          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'
 
16687
        fi
 
16688
      fi
 
16689
      ;;
 
16690
 
 
16691
    amigaos*)
 
16692
      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)'
 
16693
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16694
      hardcode_minus_L_GCJ=yes
 
16695
      # see comment about different semantics on the GNU ld section
 
16696
      ld_shlibs_GCJ=no
 
16697
      ;;
 
16698
 
 
16699
    bsdi4*)
 
16700
      export_dynamic_flag_spec_GCJ=-rdynamic
 
16701
      ;;
 
16702
 
 
16703
    cygwin* | mingw* | pw32*)
 
16704
      # When not using gcc, we currently assume that we are using
 
16705
      # Microsoft Visual C++.
 
16706
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
16707
      # no search path for DLLs.
 
16708
      hardcode_libdir_flag_spec_GCJ=' '
 
16709
      allow_undefined_flag_GCJ=unsupported
 
16710
      # Tell ltmain to make .lib files, not .a files.
 
16711
      libext=lib
 
16712
      # Tell ltmain to make .dll files, not .so files.
 
16713
      shrext_cmds=".dll"
 
16714
      # FIXME: Setting linknames here is a bad hack.
 
16715
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
16716
      # The linker will automatically build a .lib file if we build a DLL.
 
16717
      old_archive_From_new_cmds_GCJ='true'
 
16718
      # FIXME: Should let the user specify the lib program.
 
16719
      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
16720
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
16721
      enable_shared_with_static_runtimes_GCJ=yes
 
16722
      ;;
 
16723
 
 
16724
    darwin* | rhapsody*)
 
16725
    if test "$GXX" = yes ; then
 
16726
      archive_cmds_need_lc_GCJ=no
 
16727
      case "$host_os" in
 
16728
      rhapsody* | darwin1.[012])
 
16729
        allow_undefined_flag_GCJ='-undefined suppress'
 
16730
        ;;
 
16731
      *) # Darwin 1.3 on
 
16732
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
16733
        allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
 
16734
      else
 
16735
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
16736
          10.[012])
 
16737
            allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
 
16738
            ;;
 
16739
          10.*)
 
16740
            allow_undefined_flag_GCJ='-undefined dynamic_lookup'
 
16741
            ;;
 
16742
        esac
 
16743
      fi
 
16744
        ;;
 
16745
      esac
 
16746
        lt_int_apple_cc_single_mod=no
 
16747
        output_verbose_link_cmd='echo'
 
16748
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
16749
          lt_int_apple_cc_single_mod=yes
 
16750
        fi
 
16751
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
16752
          archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
16753
        else
 
16754
        archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
16755
      fi
 
16756
      module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
16757
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
16758
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
16759
          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
16760
        else
 
16761
          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
16762
        fi
 
16763
          module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
16764
      hardcode_direct_GCJ=no
 
16765
      hardcode_automatic_GCJ=yes
 
16766
      hardcode_shlibpath_var_GCJ=unsupported
 
16767
      whole_archive_flag_spec_GCJ='-all_load $convenience'
 
16768
      link_all_deplibs_GCJ=yes
 
16769
    else
 
16770
      ld_shlibs_GCJ=no
 
16771
    fi
 
16772
      ;;
 
16773
 
 
16774
    dgux*)
 
16775
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16776
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16777
      hardcode_shlibpath_var_GCJ=no
 
16778
      ;;
 
16779
 
 
16780
    freebsd1*)
 
16781
      ld_shlibs_GCJ=no
 
16782
      ;;
 
16783
 
 
16784
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
16785
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
16786
    # does not break anything, and helps significantly (at the cost of a little
 
16787
    # extra space).
 
16788
    freebsd2.2*)
 
16789
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
16790
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
16791
      hardcode_direct_GCJ=yes
 
16792
      hardcode_shlibpath_var_GCJ=no
 
16793
      ;;
 
16794
 
 
16795
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
16796
    freebsd2*)
 
16797
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
16798
      hardcode_direct_GCJ=yes
 
16799
      hardcode_minus_L_GCJ=yes
 
16800
      hardcode_shlibpath_var_GCJ=no
 
16801
      ;;
 
16802
 
 
16803
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
16804
    freebsd* | kfreebsd*-gnu)
 
16805
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
16806
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
16807
      hardcode_direct_GCJ=yes
 
16808
      hardcode_shlibpath_var_GCJ=no
 
16809
      ;;
 
16810
 
 
16811
    hpux9*)
 
16812
      if test "$GCC" = yes; then
 
16813
        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'
 
16814
      else
 
16815
        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'
 
16816
      fi
 
16817
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
16818
      hardcode_libdir_separator_GCJ=:
 
16819
      hardcode_direct_GCJ=yes
 
16820
 
 
16821
      # hardcode_minus_L: Not really in the search PATH,
 
16822
      # but as the default location of the library.
 
16823
      hardcode_minus_L_GCJ=yes
 
16824
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
16825
      ;;
 
16826
 
 
16827
    hpux10* | hpux11*)
 
16828
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
16829
        case "$host_cpu" in
 
16830
        hppa*64*|ia64*)
 
16831
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16832
          ;;
 
16833
        *)
 
16834
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
16835
          ;;
 
16836
        esac
 
16837
      else
 
16838
        case "$host_cpu" in
 
16839
        hppa*64*|ia64*)
 
16840
          archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16841
          ;;
 
16842
        *)
 
16843
          archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
16844
          ;;
 
16845
        esac
 
16846
      fi
 
16847
      if test "$with_gnu_ld" = no; then
 
16848
        case "$host_cpu" in
 
16849
        hppa*64*)
 
16850
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
16851
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
 
16852
          hardcode_libdir_separator_GCJ=:
 
16853
          hardcode_direct_GCJ=no
 
16854
          hardcode_shlibpath_var_GCJ=no
 
16855
          ;;
 
16856
        ia64*)
 
16857
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16858
          hardcode_direct_GCJ=no
 
16859
          hardcode_shlibpath_var_GCJ=no
 
16860
 
 
16861
          # hardcode_minus_L: Not really in the search PATH,
 
16862
          # but as the default location of the library.
 
16863
          hardcode_minus_L_GCJ=yes
 
16864
          ;;
 
16865
        *)
 
16866
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
16867
          hardcode_libdir_separator_GCJ=:
 
16868
          hardcode_direct_GCJ=yes
 
16869
          export_dynamic_flag_spec_GCJ='${wl}-E'
 
16870
 
 
16871
          # hardcode_minus_L: Not really in the search PATH,
 
16872
          # but as the default location of the library.
 
16873
          hardcode_minus_L_GCJ=yes
 
16874
          ;;
 
16875
        esac
 
16876
      fi
 
16877
      ;;
 
16878
 
 
16879
    irix5* | irix6* | nonstopux*)
 
16880
      if test "$GCC" = yes; then
 
16881
        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'
 
16882
      else
 
16883
        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'
 
16884
        hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
 
16885
      fi
 
16886
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
16887
      hardcode_libdir_separator_GCJ=:
 
16888
      link_all_deplibs_GCJ=yes
 
16889
      ;;
 
16890
 
 
16891
    netbsd*)
 
16892
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
16893
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
16894
      else
 
16895
        archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
16896
      fi
 
16897
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
16898
      hardcode_direct_GCJ=yes
 
16899
      hardcode_shlibpath_var_GCJ=no
 
16900
      ;;
 
16901
 
 
16902
    newsos6)
 
16903
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16904
      hardcode_direct_GCJ=yes
 
16905
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
16906
      hardcode_libdir_separator_GCJ=:
 
16907
      hardcode_shlibpath_var_GCJ=no
 
16908
      ;;
 
16909
 
 
16910
    openbsd*)
 
16911
      hardcode_direct_GCJ=yes
 
16912
      hardcode_shlibpath_var_GCJ=no
 
16913
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
16914
        archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
16915
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
16916
        export_dynamic_flag_spec_GCJ='${wl}-E'
 
16917
      else
 
16918
       case $host_os in
 
16919
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
16920
           archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
16921
           hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
16922
           ;;
 
16923
         *)
 
16924
           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
16925
           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
16926
           ;;
 
16927
       esac
 
16928
      fi
 
16929
      ;;
 
16930
 
 
16931
    os2*)
 
16932
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16933
      hardcode_minus_L_GCJ=yes
 
16934
      allow_undefined_flag_GCJ=unsupported
 
16935
      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'
 
16936
      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
16937
      ;;
 
16938
 
 
16939
    osf3*)
 
16940
      if test "$GCC" = yes; then
 
16941
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
16942
        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'
 
16943
      else
 
16944
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
16945
        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'
 
16946
      fi
 
16947
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
16948
      hardcode_libdir_separator_GCJ=:
 
16949
      ;;
 
16950
 
 
16951
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
16952
      if test "$GCC" = yes; then
 
16953
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
16954
        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'
 
16955
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
16956
      else
 
16957
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
16958
        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'
 
16959
        archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
16960
        $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'
 
16961
 
 
16962
        # Both c and cxx compiler support -rpath directly
 
16963
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
 
16964
      fi
 
16965
      hardcode_libdir_separator_GCJ=:
 
16966
      ;;
 
16967
 
 
16968
    sco3.2v5*)
 
16969
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16970
      hardcode_shlibpath_var_GCJ=no
 
16971
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
 
16972
      runpath_var=LD_RUN_PATH
 
16973
      hardcode_runpath_var=yes
 
16974
      ;;
 
16975
 
 
16976
    solaris*)
 
16977
      no_undefined_flag_GCJ=' -z text'
 
16978
      if test "$GCC" = yes; then
 
16979
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16980
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
16981
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
16982
      else
 
16983
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16984
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
16985
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
16986
      fi
 
16987
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
16988
      hardcode_shlibpath_var_GCJ=no
 
16989
      case $host_os in
 
16990
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
16991
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 
16992
        whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
 
16993
      esac
 
16994
      link_all_deplibs_GCJ=yes
 
16995
      ;;
 
16996
 
 
16997
    sunos4*)
 
16998
      if test "x$host_vendor" = xsequent; then
 
16999
        # Use $CC to link under sequent, because it throws in some extra .o
 
17000
        # files that make .init and .fini sections work.
 
17001
        archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
17002
      else
 
17003
        archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
17004
      fi
 
17005
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17006
      hardcode_direct_GCJ=yes
 
17007
      hardcode_minus_L_GCJ=yes
 
17008
      hardcode_shlibpath_var_GCJ=no
 
17009
      ;;
 
17010
 
 
17011
    sysv4)
 
17012
      case $host_vendor in
 
17013
        sni)
 
17014
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17015
          hardcode_direct_GCJ=yes # is this really true???
 
17016
        ;;
 
17017
        siemens)
 
17018
          ## LD is ld it makes a PLAMLIB
 
17019
          ## CC just makes a GrossModule.
 
17020
          archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
17021
          reload_cmds_GCJ='$CC -r -o $output$reload_objs'
 
17022
          hardcode_direct_GCJ=no
 
17023
        ;;
 
17024
        motorola)
 
17025
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17026
          hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
 
17027
        ;;
 
17028
      esac
 
17029
      runpath_var='LD_RUN_PATH'
 
17030
      hardcode_shlibpath_var_GCJ=no
 
17031
      ;;
 
17032
 
 
17033
    sysv4.3*)
 
17034
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17035
      hardcode_shlibpath_var_GCJ=no
 
17036
      export_dynamic_flag_spec_GCJ='-Bexport'
 
17037
      ;;
 
17038
 
 
17039
    sysv4*MP*)
 
17040
      if test -d /usr/nec; then
 
17041
        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17042
        hardcode_shlibpath_var_GCJ=no
 
17043
        runpath_var=LD_RUN_PATH
 
17044
        hardcode_runpath_var=yes
 
17045
        ld_shlibs_GCJ=yes
 
17046
      fi
 
17047
      ;;
 
17048
 
 
17049
    sysv4.2uw2*)
 
17050
      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
17051
      hardcode_direct_GCJ=yes
 
17052
      hardcode_minus_L_GCJ=no
 
17053
      hardcode_shlibpath_var_GCJ=no
 
17054
      hardcode_runpath_var=yes
 
17055
      runpath_var=LD_RUN_PATH
 
17056
      ;;
 
17057
 
 
17058
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
17059
      no_undefined_flag_GCJ='${wl}-z ${wl}text'
 
17060
      if test "$GCC" = yes; then
 
17061
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17062
      else
 
17063
        archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17064
      fi
 
17065
      runpath_var='LD_RUN_PATH'
 
17066
      hardcode_shlibpath_var_GCJ=no
 
17067
      ;;
 
17068
 
 
17069
    sysv5*)
 
17070
      no_undefined_flag_GCJ=' -z text'
 
17071
      # $CC -shared without GNU ld will not create a library from C++
 
17072
      # object files and a static libstdc++, better avoid it by now
 
17073
      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17074
      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
17075
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
17076
      hardcode_libdir_flag_spec_GCJ=
 
17077
      hardcode_shlibpath_var_GCJ=no
 
17078
      runpath_var='LD_RUN_PATH'
 
17079
      ;;
 
17080
 
 
17081
    uts4*)
 
17082
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17083
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17084
      hardcode_shlibpath_var_GCJ=no
 
17085
      ;;
 
17086
 
 
17087
    *)
 
17088
      ld_shlibs_GCJ=no
 
17089
      ;;
 
17090
    esac
 
17091
  fi
 
17092
 
 
17093
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
 
17094
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
 
17095
test "$ld_shlibs_GCJ" = no && can_build_shared=no
 
17096
 
 
17097
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
17098
if test "$GCC" = yes; then
 
17099
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
17100
fi
 
17101
 
 
17102
#
 
17103
# Do we need to explicitly link libc?
 
17104
#
 
17105
case "x$archive_cmds_need_lc_GCJ" in
 
17106
x|xyes)
 
17107
  # Assume -lc should be added
 
17108
  archive_cmds_need_lc_GCJ=yes
 
17109
 
 
17110
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
17111
    case $archive_cmds_GCJ in
 
17112
    *'~'*)
 
17113
      # FIXME: we may have to deal with multi-command sequences.
 
17114
      ;;
 
17115
    '$CC '*)
 
17116
      # Test whether the compiler implicitly links with -lc since on some
 
17117
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
17118
      # to ld, don't add -lc before -lgcc.
 
17119
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
17120
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
17121
      $rm conftest*
 
17122
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
17123
 
 
17124
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
17125
  (eval $ac_compile) 2>&5
 
17126
  ac_status=$?
 
17127
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17128
  (exit $ac_status); } 2>conftest.err; then
 
17129
        soname=conftest
 
17130
        lib=conftest
 
17131
        libobjs=conftest.$ac_objext
 
17132
        deplibs=
 
17133
        wl=$lt_prog_compiler_wl_GCJ
 
17134
        compiler_flags=-v
 
17135
        linker_flags=-v
 
17136
        verstring=
 
17137
        output_objdir=.
 
17138
        libname=conftest
 
17139
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
 
17140
        allow_undefined_flag_GCJ=
 
17141
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
17142
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
17143
  ac_status=$?
 
17144
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17145
  (exit $ac_status); }
 
17146
        then
 
17147
          archive_cmds_need_lc_GCJ=no
 
17148
        else
 
17149
          archive_cmds_need_lc_GCJ=yes
 
17150
        fi
 
17151
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
 
17152
      else
 
17153
        cat conftest.err 1>&5
 
17154
      fi
 
17155
      $rm conftest*
 
17156
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
 
17157
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
 
17158
      ;;
 
17159
    esac
 
17160
  fi
 
17161
  ;;
 
17162
esac
 
17163
 
 
17164
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
17165
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
17166
library_names_spec=
 
17167
libname_spec='lib$name'
 
17168
soname_spec=
 
17169
shrext_cmds=".so"
 
17170
postinstall_cmds=
 
17171
postuninstall_cmds=
 
17172
finish_cmds=
 
17173
finish_eval=
 
17174
shlibpath_var=
 
17175
shlibpath_overrides_runpath=unknown
 
17176
version_type=none
 
17177
dynamic_linker="$host_os ld.so"
 
17178
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
17179
if test "$GCC" = yes; then
 
17180
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
17181
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
17182
    # if the path contains ";" then we assume it to be the separator
 
17183
    # otherwise default to the standard path separator (i.e. ":") - it is
 
17184
    # assumed that no part of a normal pathname contains ";" but that should
 
17185
    # okay in the real world where ";" in dirpaths is itself problematic.
 
17186
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
17187
  else
 
17188
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
17189
  fi
 
17190
else
 
17191
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
17192
fi
 
17193
need_lib_prefix=unknown
 
17194
hardcode_into_libs=no
 
17195
 
 
17196
# when you set need_version to no, make sure it does not cause -set_version
 
17197
# flags to be left without arguments
 
17198
need_version=unknown
 
17199
 
 
17200
case $host_os in
 
17201
aix3*)
 
17202
  version_type=linux
 
17203
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
17204
  shlibpath_var=LIBPATH
 
17205
 
 
17206
  # AIX 3 has no versioning support, so we append a major version to the name.
 
17207
  soname_spec='${libname}${release}${shared_ext}$major'
 
17208
  ;;
 
17209
 
 
17210
aix4* | aix5*)
 
17211
  version_type=linux
 
17212
  need_lib_prefix=no
 
17213
  need_version=no
 
17214
  hardcode_into_libs=yes
 
17215
  if test "$host_cpu" = ia64; then
 
17216
    # AIX 5 supports IA64
 
17217
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
17218
    shlibpath_var=LD_LIBRARY_PATH
 
17219
  else
 
17220
    # With GCC up to 2.95.x, collect2 would create an import file
 
17221
    # for dependence libraries.  The import file would start with
 
17222
    # the line `#! .'.  This would cause the generated library to
 
17223
    # depend on `.', always an invalid library.  This was fixed in
 
17224
    # development snapshots of GCC prior to 3.0.
 
17225
    case $host_os in
 
17226
      aix4 | aix4.[01] | aix4.[01].*)
 
17227
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
17228
           echo ' yes '
 
17229
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
17230
        :
 
17231
      else
 
17232
        can_build_shared=no
 
17233
      fi
 
17234
      ;;
 
17235
    esac
 
17236
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
17237
    # soname into executable. Probably we can add versioning support to
 
17238
    # collect2, so additional links can be useful in future.
 
17239
    if test "$aix_use_runtimelinking" = yes; then
 
17240
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
17241
      # instead of lib<name>.a to let people know that these are not
 
17242
      # typical AIX shared libraries.
 
17243
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17244
    else
 
17245
      # We preserve .a as extension for shared libraries through AIX4.2
 
17246
      # and later when we are not doing run time linking.
 
17247
      library_names_spec='${libname}${release}.a $libname.a'
 
17248
      soname_spec='${libname}${release}${shared_ext}$major'
 
17249
    fi
 
17250
    shlibpath_var=LIBPATH
 
17251
  fi
 
17252
  ;;
 
17253
 
 
17254
amigaos*)
 
17255
  library_names_spec='$libname.ixlibrary $libname.a'
 
17256
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
17257
  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'
 
17258
  ;;
 
17259
 
 
17260
beos*)
 
17261
  library_names_spec='${libname}${shared_ext}'
 
17262
  dynamic_linker="$host_os ld.so"
 
17263
  shlibpath_var=LIBRARY_PATH
 
17264
  ;;
 
17265
 
 
17266
bsdi4*)
 
17267
  version_type=linux
 
17268
  need_version=no
 
17269
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17270
  soname_spec='${libname}${release}${shared_ext}$major'
 
17271
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
17272
  shlibpath_var=LD_LIBRARY_PATH
 
17273
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
17274
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
17275
  # the default ld.so.conf also contains /usr/contrib/lib and
 
17276
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
17277
  # libtool to hard-code these into programs
 
17278
  ;;
 
17279
 
 
17280
cygwin* | mingw* | pw32*)
 
17281
  version_type=windows
 
17282
  shrext_cmds=".dll"
 
17283
  need_version=no
 
17284
  need_lib_prefix=no
 
17285
 
 
17286
  case $GCC,$host_os in
 
17287
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
17288
    library_names_spec='$libname.dll.a'
 
17289
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
17290
    postinstall_cmds='base_file=`basename \${file}`~
 
17291
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
17292
      dldir=$destdir/`dirname \$dlpath`~
 
17293
      test -d \$dldir || mkdir -p \$dldir~
 
17294
      $install_prog $dir/$dlname \$dldir/$dlname'
 
17295
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
17296
      dlpath=$dir/\$dldll~
 
17297
       $rm \$dlpath'
 
17298
    shlibpath_overrides_runpath=yes
 
17299
 
 
17300
    case $host_os in
 
17301
    cygwin*)
 
17302
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
17303
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
17304
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
17305
      ;;
 
17306
    mingw*)
 
17307
      # MinGW DLLs use traditional 'lib' prefix
 
17308
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
17309
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
17310
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
17311
        # It is most probably a Windows format PATH printed by
 
17312
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
17313
        # path with ; separators, and with drive letters. We can handle the
 
17314
        # drive letters (cygwin fileutils understands them), so leave them,
 
17315
        # especially as we might pass files found there to a mingw objdump,
 
17316
        # which wouldn't understand a cygwinified path. Ahh.
 
17317
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
17318
      else
 
17319
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
17320
      fi
 
17321
      ;;
 
17322
    pw32*)
 
17323
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
17324
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
17325
      ;;
 
17326
    esac
 
17327
    ;;
 
17328
 
 
17329
  *)
 
17330
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
17331
    ;;
 
17332
  esac
 
17333
  dynamic_linker='Win32 ld.exe'
 
17334
  # FIXME: first we should search . and the directory the executable is in
 
17335
  shlibpath_var=PATH
 
17336
  ;;
 
17337
 
 
17338
darwin* | rhapsody*)
 
17339
  dynamic_linker="$host_os dyld"
 
17340
  version_type=darwin
 
17341
  need_lib_prefix=no
 
17342
  need_version=no
 
17343
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
17344
  soname_spec='${libname}${release}${major}$shared_ext'
 
17345
  shlibpath_overrides_runpath=yes
 
17346
  shlibpath_var=DYLD_LIBRARY_PATH
 
17347
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
17348
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
17349
  if test "$GCC" = yes; then
 
17350
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
 
17351
  else
 
17352
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
17353
  fi
 
17354
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
17355
  ;;
 
17356
 
 
17357
dgux*)
 
17358
  version_type=linux
 
17359
  need_lib_prefix=no
 
17360
  need_version=no
 
17361
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
17362
  soname_spec='${libname}${release}${shared_ext}$major'
 
17363
  shlibpath_var=LD_LIBRARY_PATH
 
17364
  ;;
 
17365
 
 
17366
freebsd1*)
 
17367
  dynamic_linker=no
 
17368
  ;;
 
17369
 
 
17370
kfreebsd*-gnu)
 
17371
  version_type=linux
 
17372
  need_lib_prefix=no
 
17373
  need_version=no
 
17374
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
17375
  soname_spec='${libname}${release}${shared_ext}$major'
 
17376
  shlibpath_var=LD_LIBRARY_PATH
 
17377
  shlibpath_overrides_runpath=no
 
17378
  hardcode_into_libs=yes
 
17379
  dynamic_linker='GNU ld.so'
 
17380
  ;;
 
17381
 
 
17382
freebsd*)
 
17383
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
17384
  version_type=freebsd-$objformat
 
17385
  case $version_type in
 
17386
    freebsd-elf*)
 
17387
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
17388
      need_version=no
 
17389
      need_lib_prefix=no
 
17390
      ;;
 
17391
    freebsd-*)
 
17392
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
17393
      need_version=yes
 
17394
      ;;
 
17395
  esac
 
17396
  shlibpath_var=LD_LIBRARY_PATH
 
17397
  case $host_os in
 
17398
  freebsd2*)
 
17399
    shlibpath_overrides_runpath=yes
 
17400
    ;;
 
17401
  freebsd3.01* | freebsdelf3.01*)
 
17402
    shlibpath_overrides_runpath=yes
 
17403
    hardcode_into_libs=yes
 
17404
    ;;
 
17405
  *) # from 3.2 on
 
17406
    shlibpath_overrides_runpath=no
 
17407
    hardcode_into_libs=yes
 
17408
    ;;
 
17409
  esac
 
17410
  ;;
 
17411
 
 
17412
gnu*)
 
17413
  version_type=linux
 
17414
  need_lib_prefix=no
 
17415
  need_version=no
 
17416
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
17417
  soname_spec='${libname}${release}${shared_ext}$major'
 
17418
  shlibpath_var=LD_LIBRARY_PATH
 
17419
  hardcode_into_libs=yes
 
17420
  ;;
 
17421
 
 
17422
hpux9* | hpux10* | hpux11*)
 
17423
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
17424
  # link against other versions.
 
17425
  version_type=sunos
 
17426
  need_lib_prefix=no
 
17427
  need_version=no
 
17428
  case "$host_cpu" in
 
17429
  ia64*)
 
17430
    shrext_cmds='.so'
 
17431
    hardcode_into_libs=yes
 
17432
    dynamic_linker="$host_os dld.so"
 
17433
    shlibpath_var=LD_LIBRARY_PATH
 
17434
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
17435
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17436
    soname_spec='${libname}${release}${shared_ext}$major'
 
17437
    if test "X$HPUX_IA64_MODE" = X32; then
 
17438
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
17439
    else
 
17440
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
17441
    fi
 
17442
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
17443
    ;;
 
17444
   hppa*64*)
 
17445
     shrext_cmds='.sl'
 
17446
     hardcode_into_libs=yes
 
17447
     dynamic_linker="$host_os dld.sl"
 
17448
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
17449
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
17450
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17451
     soname_spec='${libname}${release}${shared_ext}$major'
 
17452
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
17453
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
17454
     ;;
 
17455
   *)
 
17456
    shrext_cmds='.sl'
 
17457
    dynamic_linker="$host_os dld.sl"
 
17458
    shlibpath_var=SHLIB_PATH
 
17459
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
17460
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17461
    soname_spec='${libname}${release}${shared_ext}$major'
 
17462
    ;;
 
17463
  esac
 
17464
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
17465
  postinstall_cmds='chmod 555 $lib'
 
17466
  ;;
 
17467
 
 
17468
irix5* | irix6* | nonstopux*)
 
17469
  case $host_os in
 
17470
    nonstopux*) version_type=nonstopux ;;
 
17471
    *)
 
17472
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
17473
                version_type=linux
 
17474
        else
 
17475
                version_type=irix
 
17476
        fi ;;
 
17477
  esac
 
17478
  need_lib_prefix=no
 
17479
  need_version=no
 
17480
  soname_spec='${libname}${release}${shared_ext}$major'
 
17481
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
17482
  case $host_os in
 
17483
  irix5* | nonstopux*)
 
17484
    libsuff= shlibsuff=
 
17485
    ;;
 
17486
  *)
 
17487
    case $LD in # libtool.m4 will add one of these switches to LD
 
17488
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
17489
      libsuff= shlibsuff= libmagic=32-bit;;
 
17490
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
17491
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
17492
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
17493
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
17494
    *) libsuff= shlibsuff= libmagic=never-match;;
 
17495
    esac
 
17496
    ;;
 
17497
  esac
 
17498
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
17499
  shlibpath_overrides_runpath=no
 
17500
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
17501
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
17502
  hardcode_into_libs=yes
 
17503
  ;;
 
17504
 
 
17505
# No shared lib support for Linux oldld, aout, or coff.
 
17506
linux*oldld* | linux*aout* | linux*coff*)
 
17507
  dynamic_linker=no
 
17508
  ;;
 
17509
 
 
17510
# This must be Linux ELF.
 
17511
linux*)
 
17512
  version_type=linux
 
17513
  need_lib_prefix=no
 
17514
  need_version=no
 
17515
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17516
  soname_spec='${libname}${release}${shared_ext}$major'
 
17517
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
17518
  shlibpath_var=LD_LIBRARY_PATH
 
17519
  shlibpath_overrides_runpath=no
 
17520
  # This implies no fast_install, which is unacceptable.
 
17521
  # Some rework will be needed to allow for fast_install
 
17522
  # before this can be enabled.
 
17523
  hardcode_into_libs=yes
 
17524
 
 
17525
  # find out which ABI we are using
 
17526
  libsuff=
 
17527
  case "$host_cpu" in
 
17528
  x86_64*|s390x*|powerpc64*)
 
17529
    echo '#line 17529 "configure"' > conftest.$ac_ext
 
17530
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
17531
  (eval $ac_compile) 2>&5
 
17532
  ac_status=$?
 
17533
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17534
  (exit $ac_status); }; then
 
17535
      case `/usr/bin/file conftest.$ac_objext` in
 
17536
      *64-bit*)
 
17537
        libsuff=64
 
17538
        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
 
17539
        ;;
 
17540
      esac
 
17541
    fi
 
17542
    rm -rf conftest*
 
17543
    ;;
 
17544
  esac
 
17545
 
 
17546
  # Append ld.so.conf contents to the search path
 
17547
  if test -f /etc/ld.so.conf; then
 
17548
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
17549
    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
 
17550
  fi
 
17551
 
 
17552
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
17553
  # powerpc, because MkLinux only supported shared libraries with the
 
17554
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
17555
  # most powerpc-linux boxes support dynamic linking these days and
 
17556
  # people can always --disable-shared, the test was removed, and we
 
17557
  # assume the GNU/Linux dynamic linker is in use.
 
17558
  dynamic_linker='GNU/Linux ld.so'
 
17559
  ;;
 
17560
 
 
17561
knetbsd*-gnu)
 
17562
  version_type=linux
 
17563
  need_lib_prefix=no
 
17564
  need_version=no
 
17565
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
17566
  soname_spec='${libname}${release}${shared_ext}$major'
 
17567
  shlibpath_var=LD_LIBRARY_PATH
 
17568
  shlibpath_overrides_runpath=no
 
17569
  hardcode_into_libs=yes
 
17570
  dynamic_linker='GNU ld.so'
 
17571
  ;;
 
17572
 
 
17573
netbsd*)
 
17574
  version_type=sunos
 
17575
  need_lib_prefix=no
 
17576
  need_version=no
 
17577
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
17578
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
17579
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
17580
    dynamic_linker='NetBSD (a.out) ld.so'
 
17581
  else
 
17582
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
17583
    soname_spec='${libname}${release}${shared_ext}$major'
 
17584
    dynamic_linker='NetBSD ld.elf_so'
 
17585
  fi
 
17586
  shlibpath_var=LD_LIBRARY_PATH
 
17587
  shlibpath_overrides_runpath=yes
 
17588
  hardcode_into_libs=yes
 
17589
  ;;
 
17590
 
 
17591
newsos6)
 
17592
  version_type=linux
 
17593
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17594
  shlibpath_var=LD_LIBRARY_PATH
 
17595
  shlibpath_overrides_runpath=yes
 
17596
  ;;
 
17597
 
 
17598
nto-qnx*)
 
17599
  version_type=linux
 
17600
  need_lib_prefix=no
 
17601
  need_version=no
 
17602
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17603
  soname_spec='${libname}${release}${shared_ext}$major'
 
17604
  shlibpath_var=LD_LIBRARY_PATH
 
17605
  shlibpath_overrides_runpath=yes
 
17606
  ;;
 
17607
 
 
17608
openbsd*)
 
17609
  version_type=sunos
 
17610
  need_lib_prefix=no
 
17611
  need_version=yes
 
17612
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
17613
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
17614
  shlibpath_var=LD_LIBRARY_PATH
 
17615
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
17616
    case $host_os in
 
17617
      openbsd2.[89] | openbsd2.[89].*)
 
17618
        shlibpath_overrides_runpath=no
 
17619
        ;;
 
17620
      *)
 
17621
        shlibpath_overrides_runpath=yes
 
17622
        ;;
 
17623
      esac
 
17624
  else
 
17625
    shlibpath_overrides_runpath=yes
 
17626
  fi
 
17627
  ;;
 
17628
 
 
17629
os2*)
 
17630
  libname_spec='$name'
 
17631
  shrext_cmds=".dll"
 
17632
  need_lib_prefix=no
 
17633
  library_names_spec='$libname${shared_ext} $libname.a'
 
17634
  dynamic_linker='OS/2 ld.exe'
 
17635
  shlibpath_var=LIBPATH
 
17636
  ;;
 
17637
 
 
17638
osf3* | osf4* | osf5*)
 
17639
  version_type=osf
 
17640
  need_lib_prefix=no
 
17641
  need_version=no
 
17642
  soname_spec='${libname}${release}${shared_ext}$major'
 
17643
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17644
  shlibpath_var=LD_LIBRARY_PATH
 
17645
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
17646
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
17647
  ;;
 
17648
 
 
17649
sco3.2v5*)
 
17650
  version_type=osf
 
17651
  soname_spec='${libname}${release}${shared_ext}$major'
 
17652
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17653
  shlibpath_var=LD_LIBRARY_PATH
 
17654
  ;;
 
17655
 
 
17656
solaris*)
 
17657
  version_type=linux
 
17658
  need_lib_prefix=no
 
17659
  need_version=no
 
17660
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17661
  soname_spec='${libname}${release}${shared_ext}$major'
 
17662
  shlibpath_var=LD_LIBRARY_PATH
 
17663
  shlibpath_overrides_runpath=yes
 
17664
  hardcode_into_libs=yes
 
17665
  # ldd complains unless libraries are executable
 
17666
  postinstall_cmds='chmod +x $lib'
 
17667
  ;;
 
17668
 
 
17669
sunos4*)
 
17670
  version_type=sunos
 
17671
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
17672
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
17673
  shlibpath_var=LD_LIBRARY_PATH
 
17674
  shlibpath_overrides_runpath=yes
 
17675
  if test "$with_gnu_ld" = yes; then
 
17676
    need_lib_prefix=no
 
17677
  fi
 
17678
  need_version=yes
 
17679
  ;;
 
17680
 
 
17681
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
17682
  version_type=linux
 
17683
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17684
  soname_spec='${libname}${release}${shared_ext}$major'
 
17685
  shlibpath_var=LD_LIBRARY_PATH
 
17686
  case $host_vendor in
 
17687
    sni)
 
17688
      shlibpath_overrides_runpath=no
 
17689
      need_lib_prefix=no
 
17690
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
17691
      runpath_var=LD_RUN_PATH
 
17692
      ;;
 
17693
    siemens)
 
17694
      need_lib_prefix=no
 
17695
      ;;
 
17696
    motorola)
 
17697
      need_lib_prefix=no
 
17698
      need_version=no
 
17699
      shlibpath_overrides_runpath=no
 
17700
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
17701
      ;;
 
17702
  esac
 
17703
  ;;
 
17704
 
 
17705
sysv4*MP*)
 
17706
  if test -d /usr/nec ;then
 
17707
    version_type=linux
 
17708
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
17709
    soname_spec='$libname${shared_ext}.$major'
 
17710
    shlibpath_var=LD_LIBRARY_PATH
 
17711
  fi
 
17712
  ;;
 
17713
 
 
17714
uts4*)
 
17715
  version_type=linux
 
17716
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17717
  soname_spec='${libname}${release}${shared_ext}$major'
 
17718
  shlibpath_var=LD_LIBRARY_PATH
 
17719
  ;;
 
17720
 
 
17721
*)
 
17722
  dynamic_linker=no
 
17723
  ;;
 
17724
esac
 
17725
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
17726
echo "${ECHO_T}$dynamic_linker" >&6
 
17727
test "$dynamic_linker" = no && can_build_shared=no
 
17728
 
 
17729
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
17730
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
17731
hardcode_action_GCJ=
 
17732
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
 
17733
   test -n "$runpath_var GCJ" || \
 
17734
   test "X$hardcode_automatic_GCJ"="Xyes" ; then
 
17735
 
 
17736
  # We can hardcode non-existant directories.
 
17737
  if test "$hardcode_direct_GCJ" != no &&
 
17738
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
17739
     # have to relink, otherwise we might link with an installed library
 
17740
     # when we should be linking with a yet-to-be-installed one
 
17741
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
 
17742
     test "$hardcode_minus_L_GCJ" != no; then
 
17743
    # Linking always hardcodes the temporary library directory.
 
17744
    hardcode_action_GCJ=relink
 
17745
  else
 
17746
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
17747
    hardcode_action_GCJ=immediate
 
17748
  fi
 
17749
else
 
17750
  # We cannot hardcode anything, or else we can only hardcode existing
 
17751
  # directories.
 
17752
  hardcode_action_GCJ=unsupported
 
17753
fi
 
17754
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
 
17755
echo "${ECHO_T}$hardcode_action_GCJ" >&6
 
17756
 
 
17757
if test "$hardcode_action_GCJ" = relink; then
 
17758
  # Fast installation is not supported
 
17759
  enable_fast_install=no
 
17760
elif test "$shlibpath_overrides_runpath" = yes ||
 
17761
     test "$enable_shared" = no; then
 
17762
  # Fast installation is not necessary
 
17763
  enable_fast_install=needless
 
17764
fi
 
17765
 
 
17766
striplib=
 
17767
old_striplib=
 
17768
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
17769
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
17770
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
17771
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
17772
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
17773
  echo "$as_me:$LINENO: result: yes" >&5
 
17774
echo "${ECHO_T}yes" >&6
 
17775
else
 
17776
# FIXME - insert some real tests, host_os isn't really good enough
 
17777
  case $host_os in
 
17778
   darwin*)
 
17779
       if test -n "$STRIP" ; then
 
17780
         striplib="$STRIP -x"
 
17781
         echo "$as_me:$LINENO: result: yes" >&5
 
17782
echo "${ECHO_T}yes" >&6
 
17783
       else
 
17784
  echo "$as_me:$LINENO: result: no" >&5
 
17785
echo "${ECHO_T}no" >&6
 
17786
fi
 
17787
       ;;
 
17788
   *)
 
17789
  echo "$as_me:$LINENO: result: no" >&5
 
17790
echo "${ECHO_T}no" >&6
 
17791
    ;;
 
17792
  esac
 
17793
fi
 
17794
 
 
17795
if test "x$enable_dlopen" != xyes; then
 
17796
  enable_dlopen=unknown
 
17797
  enable_dlopen_self=unknown
 
17798
  enable_dlopen_self_static=unknown
 
17799
else
 
17800
  lt_cv_dlopen=no
 
17801
  lt_cv_dlopen_libs=
 
17802
 
 
17803
  case $host_os in
 
17804
  beos*)
 
17805
    lt_cv_dlopen="load_add_on"
 
17806
    lt_cv_dlopen_libs=
 
17807
    lt_cv_dlopen_self=yes
 
17808
    ;;
 
17809
 
 
17810
  mingw* | pw32*)
 
17811
    lt_cv_dlopen="LoadLibrary"
 
17812
    lt_cv_dlopen_libs=
 
17813
   ;;
 
17814
 
 
17815
  cygwin*)
 
17816
    lt_cv_dlopen="dlopen"
 
17817
    lt_cv_dlopen_libs=
 
17818
   ;;
 
17819
 
 
17820
  darwin*)
 
17821
  # if libdl is installed we need to link against it
 
17822
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
17823
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
17824
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
17825
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17826
else
 
17827
  ac_check_lib_save_LIBS=$LIBS
 
17828
LIBS="-ldl  $LIBS"
 
17829
cat >conftest.$ac_ext <<_ACEOF
 
17830
/* confdefs.h.  */
 
17831
_ACEOF
 
17832
cat confdefs.h >>conftest.$ac_ext
 
17833
cat >>conftest.$ac_ext <<_ACEOF
 
17834
/* end confdefs.h.  */
 
17835
 
 
17836
/* Override any gcc2 internal prototype to avoid an error.  */
 
17837
#ifdef __cplusplus
 
17838
extern "C"
 
17839
#endif
 
17840
/* We use char because int might match the return type of a gcc2
 
17841
   builtin and then its argument prototype would still apply.  */
 
17842
char dlopen ();
 
17843
int
 
17844
main ()
 
17845
{
 
17846
dlopen ();
 
17847
  ;
 
17848
  return 0;
 
17849
}
 
17850
_ACEOF
 
17851
rm -f conftest.$ac_objext conftest$ac_exeext
 
17852
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17853
  (eval $ac_link) 2>conftest.er1
 
17854
  ac_status=$?
 
17855
  grep -v '^ *+' conftest.er1 >conftest.err
 
17856
  rm -f conftest.er1
 
17857
  cat conftest.err >&5
 
17858
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17859
  (exit $ac_status); } &&
 
17860
         { ac_try='test -z "$ac_c_werror_flag"
 
17861
                         || test ! -s conftest.err'
 
17862
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17863
  (eval $ac_try) 2>&5
 
17864
  ac_status=$?
 
17865
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17866
  (exit $ac_status); }; } &&
 
17867
         { ac_try='test -s conftest$ac_exeext'
 
17868
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17869
  (eval $ac_try) 2>&5
 
17870
  ac_status=$?
 
17871
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17872
  (exit $ac_status); }; }; then
 
17873
  ac_cv_lib_dl_dlopen=yes
 
17874
else
 
17875
  echo "$as_me: failed program was:" >&5
 
17876
sed 's/^/| /' conftest.$ac_ext >&5
 
17877
 
 
17878
ac_cv_lib_dl_dlopen=no
 
17879
fi
 
17880
rm -f conftest.err conftest.$ac_objext \
 
17881
      conftest$ac_exeext conftest.$ac_ext
 
17882
LIBS=$ac_check_lib_save_LIBS
 
17883
fi
 
17884
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
17885
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
17886
if test $ac_cv_lib_dl_dlopen = yes; then
 
17887
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
17888
else
 
17889
 
 
17890
    lt_cv_dlopen="dyld"
 
17891
    lt_cv_dlopen_libs=
 
17892
    lt_cv_dlopen_self=yes
 
17893
 
 
17894
fi
 
17895
 
 
17896
   ;;
 
17897
 
 
17898
  *)
 
17899
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
17900
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
17901
if test "${ac_cv_func_shl_load+set}" = set; then
 
17902
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17903
else
 
17904
  cat >conftest.$ac_ext <<_ACEOF
 
17905
/* confdefs.h.  */
 
17906
_ACEOF
 
17907
cat confdefs.h >>conftest.$ac_ext
 
17908
cat >>conftest.$ac_ext <<_ACEOF
 
17909
/* end confdefs.h.  */
 
17910
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
17911
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
17912
#define shl_load innocuous_shl_load
 
17913
 
 
17914
/* System header to define __stub macros and hopefully few prototypes,
 
17915
    which can conflict with char shl_load (); below.
 
17916
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
17917
    <limits.h> exists even on freestanding compilers.  */
 
17918
 
 
17919
#ifdef __STDC__
 
17920
# include <limits.h>
 
17921
#else
 
17922
# include <assert.h>
 
17923
#endif
 
17924
 
 
17925
#undef shl_load
 
17926
 
 
17927
/* Override any gcc2 internal prototype to avoid an error.  */
 
17928
#ifdef __cplusplus
 
17929
extern "C"
 
17930
{
 
17931
#endif
 
17932
/* We use char because int might match the return type of a gcc2
 
17933
   builtin and then its argument prototype would still apply.  */
 
17934
char shl_load ();
 
17935
/* The GNU C library defines this for functions which it implements
 
17936
    to always fail with ENOSYS.  Some functions are actually named
 
17937
    something starting with __ and the normal name is an alias.  */
 
17938
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
17939
choke me
 
17940
#else
 
17941
char (*f) () = shl_load;
 
17942
#endif
 
17943
#ifdef __cplusplus
 
17944
}
 
17945
#endif
 
17946
 
 
17947
int
 
17948
main ()
 
17949
{
 
17950
return f != shl_load;
 
17951
  ;
 
17952
  return 0;
 
17953
}
 
17954
_ACEOF
 
17955
rm -f conftest.$ac_objext conftest$ac_exeext
 
17956
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17957
  (eval $ac_link) 2>conftest.er1
 
17958
  ac_status=$?
 
17959
  grep -v '^ *+' conftest.er1 >conftest.err
 
17960
  rm -f conftest.er1
 
17961
  cat conftest.err >&5
 
17962
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17963
  (exit $ac_status); } &&
 
17964
         { ac_try='test -z "$ac_c_werror_flag"
 
17965
                         || test ! -s conftest.err'
 
17966
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17967
  (eval $ac_try) 2>&5
 
17968
  ac_status=$?
 
17969
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17970
  (exit $ac_status); }; } &&
 
17971
         { ac_try='test -s conftest$ac_exeext'
 
17972
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17973
  (eval $ac_try) 2>&5
 
17974
  ac_status=$?
 
17975
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17976
  (exit $ac_status); }; }; then
 
17977
  ac_cv_func_shl_load=yes
 
17978
else
 
17979
  echo "$as_me: failed program was:" >&5
 
17980
sed 's/^/| /' conftest.$ac_ext >&5
 
17981
 
 
17982
ac_cv_func_shl_load=no
 
17983
fi
 
17984
rm -f conftest.err conftest.$ac_objext \
 
17985
      conftest$ac_exeext conftest.$ac_ext
 
17986
fi
 
17987
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
17988
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
17989
if test $ac_cv_func_shl_load = yes; then
 
17990
  lt_cv_dlopen="shl_load"
 
17991
else
 
17992
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
17993
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
17994
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
17995
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17996
else
 
17997
  ac_check_lib_save_LIBS=$LIBS
 
17998
LIBS="-ldld  $LIBS"
 
17999
cat >conftest.$ac_ext <<_ACEOF
 
18000
/* confdefs.h.  */
 
18001
_ACEOF
 
18002
cat confdefs.h >>conftest.$ac_ext
 
18003
cat >>conftest.$ac_ext <<_ACEOF
 
18004
/* end confdefs.h.  */
 
18005
 
 
18006
/* Override any gcc2 internal prototype to avoid an error.  */
 
18007
#ifdef __cplusplus
 
18008
extern "C"
 
18009
#endif
 
18010
/* We use char because int might match the return type of a gcc2
 
18011
   builtin and then its argument prototype would still apply.  */
 
18012
char shl_load ();
 
18013
int
 
18014
main ()
 
18015
{
 
18016
shl_load ();
 
18017
  ;
 
18018
  return 0;
 
18019
}
 
18020
_ACEOF
 
18021
rm -f conftest.$ac_objext conftest$ac_exeext
 
18022
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18023
  (eval $ac_link) 2>conftest.er1
 
18024
  ac_status=$?
 
18025
  grep -v '^ *+' conftest.er1 >conftest.err
 
18026
  rm -f conftest.er1
 
18027
  cat conftest.err >&5
 
18028
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18029
  (exit $ac_status); } &&
 
18030
         { ac_try='test -z "$ac_c_werror_flag"
 
18031
                         || test ! -s conftest.err'
 
18032
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18033
  (eval $ac_try) 2>&5
 
18034
  ac_status=$?
 
18035
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18036
  (exit $ac_status); }; } &&
 
18037
         { ac_try='test -s conftest$ac_exeext'
 
18038
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18039
  (eval $ac_try) 2>&5
 
18040
  ac_status=$?
 
18041
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18042
  (exit $ac_status); }; }; then
 
18043
  ac_cv_lib_dld_shl_load=yes
 
18044
else
 
18045
  echo "$as_me: failed program was:" >&5
 
18046
sed 's/^/| /' conftest.$ac_ext >&5
 
18047
 
 
18048
ac_cv_lib_dld_shl_load=no
 
18049
fi
 
18050
rm -f conftest.err conftest.$ac_objext \
 
18051
      conftest$ac_exeext conftest.$ac_ext
 
18052
LIBS=$ac_check_lib_save_LIBS
 
18053
fi
 
18054
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
18055
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
18056
if test $ac_cv_lib_dld_shl_load = yes; then
 
18057
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
18058
else
 
18059
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
18060
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
18061
if test "${ac_cv_func_dlopen+set}" = set; then
 
18062
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18063
else
 
18064
  cat >conftest.$ac_ext <<_ACEOF
 
18065
/* confdefs.h.  */
 
18066
_ACEOF
 
18067
cat confdefs.h >>conftest.$ac_ext
 
18068
cat >>conftest.$ac_ext <<_ACEOF
 
18069
/* end confdefs.h.  */
 
18070
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
18071
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
18072
#define dlopen innocuous_dlopen
 
18073
 
 
18074
/* System header to define __stub macros and hopefully few prototypes,
 
18075
    which can conflict with char dlopen (); below.
 
18076
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
18077
    <limits.h> exists even on freestanding compilers.  */
 
18078
 
 
18079
#ifdef __STDC__
 
18080
# include <limits.h>
 
18081
#else
 
18082
# include <assert.h>
 
18083
#endif
 
18084
 
 
18085
#undef dlopen
 
18086
 
 
18087
/* Override any gcc2 internal prototype to avoid an error.  */
 
18088
#ifdef __cplusplus
 
18089
extern "C"
 
18090
{
 
18091
#endif
 
18092
/* We use char because int might match the return type of a gcc2
 
18093
   builtin and then its argument prototype would still apply.  */
 
18094
char dlopen ();
 
18095
/* The GNU C library defines this for functions which it implements
 
18096
    to always fail with ENOSYS.  Some functions are actually named
 
18097
    something starting with __ and the normal name is an alias.  */
 
18098
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
18099
choke me
 
18100
#else
 
18101
char (*f) () = dlopen;
 
18102
#endif
 
18103
#ifdef __cplusplus
 
18104
}
 
18105
#endif
 
18106
 
 
18107
int
 
18108
main ()
 
18109
{
 
18110
return f != dlopen;
 
18111
  ;
 
18112
  return 0;
 
18113
}
 
18114
_ACEOF
 
18115
rm -f conftest.$ac_objext conftest$ac_exeext
 
18116
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18117
  (eval $ac_link) 2>conftest.er1
 
18118
  ac_status=$?
 
18119
  grep -v '^ *+' conftest.er1 >conftest.err
 
18120
  rm -f conftest.er1
 
18121
  cat conftest.err >&5
 
18122
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18123
  (exit $ac_status); } &&
 
18124
         { ac_try='test -z "$ac_c_werror_flag"
 
18125
                         || test ! -s conftest.err'
 
18126
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18127
  (eval $ac_try) 2>&5
 
18128
  ac_status=$?
 
18129
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18130
  (exit $ac_status); }; } &&
 
18131
         { ac_try='test -s conftest$ac_exeext'
 
18132
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18133
  (eval $ac_try) 2>&5
 
18134
  ac_status=$?
 
18135
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18136
  (exit $ac_status); }; }; then
 
18137
  ac_cv_func_dlopen=yes
 
18138
else
 
18139
  echo "$as_me: failed program was:" >&5
 
18140
sed 's/^/| /' conftest.$ac_ext >&5
 
18141
 
 
18142
ac_cv_func_dlopen=no
 
18143
fi
 
18144
rm -f conftest.err conftest.$ac_objext \
 
18145
      conftest$ac_exeext conftest.$ac_ext
 
18146
fi
 
18147
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
18148
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
18149
if test $ac_cv_func_dlopen = yes; then
 
18150
  lt_cv_dlopen="dlopen"
 
18151
else
 
18152
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
18153
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
18154
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
18155
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18156
else
 
18157
  ac_check_lib_save_LIBS=$LIBS
 
18158
LIBS="-ldl  $LIBS"
 
18159
cat >conftest.$ac_ext <<_ACEOF
 
18160
/* confdefs.h.  */
 
18161
_ACEOF
 
18162
cat confdefs.h >>conftest.$ac_ext
 
18163
cat >>conftest.$ac_ext <<_ACEOF
 
18164
/* end confdefs.h.  */
 
18165
 
 
18166
/* Override any gcc2 internal prototype to avoid an error.  */
 
18167
#ifdef __cplusplus
 
18168
extern "C"
 
18169
#endif
 
18170
/* We use char because int might match the return type of a gcc2
 
18171
   builtin and then its argument prototype would still apply.  */
 
18172
char dlopen ();
 
18173
int
 
18174
main ()
 
18175
{
 
18176
dlopen ();
 
18177
  ;
 
18178
  return 0;
 
18179
}
 
18180
_ACEOF
 
18181
rm -f conftest.$ac_objext conftest$ac_exeext
 
18182
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18183
  (eval $ac_link) 2>conftest.er1
 
18184
  ac_status=$?
 
18185
  grep -v '^ *+' conftest.er1 >conftest.err
 
18186
  rm -f conftest.er1
 
18187
  cat conftest.err >&5
 
18188
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18189
  (exit $ac_status); } &&
 
18190
         { ac_try='test -z "$ac_c_werror_flag"
 
18191
                         || test ! -s conftest.err'
 
18192
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18193
  (eval $ac_try) 2>&5
 
18194
  ac_status=$?
 
18195
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18196
  (exit $ac_status); }; } &&
 
18197
         { ac_try='test -s conftest$ac_exeext'
 
18198
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18199
  (eval $ac_try) 2>&5
 
18200
  ac_status=$?
 
18201
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18202
  (exit $ac_status); }; }; then
 
18203
  ac_cv_lib_dl_dlopen=yes
 
18204
else
 
18205
  echo "$as_me: failed program was:" >&5
 
18206
sed 's/^/| /' conftest.$ac_ext >&5
 
18207
 
 
18208
ac_cv_lib_dl_dlopen=no
 
18209
fi
 
18210
rm -f conftest.err conftest.$ac_objext \
 
18211
      conftest$ac_exeext conftest.$ac_ext
 
18212
LIBS=$ac_check_lib_save_LIBS
 
18213
fi
 
18214
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
18215
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
18216
if test $ac_cv_lib_dl_dlopen = yes; then
 
18217
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
18218
else
 
18219
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
18220
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
18221
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
18222
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18223
else
 
18224
  ac_check_lib_save_LIBS=$LIBS
 
18225
LIBS="-lsvld  $LIBS"
 
18226
cat >conftest.$ac_ext <<_ACEOF
 
18227
/* confdefs.h.  */
 
18228
_ACEOF
 
18229
cat confdefs.h >>conftest.$ac_ext
 
18230
cat >>conftest.$ac_ext <<_ACEOF
 
18231
/* end confdefs.h.  */
 
18232
 
 
18233
/* Override any gcc2 internal prototype to avoid an error.  */
 
18234
#ifdef __cplusplus
 
18235
extern "C"
 
18236
#endif
 
18237
/* We use char because int might match the return type of a gcc2
 
18238
   builtin and then its argument prototype would still apply.  */
 
18239
char dlopen ();
 
18240
int
 
18241
main ()
 
18242
{
 
18243
dlopen ();
 
18244
  ;
 
18245
  return 0;
 
18246
}
 
18247
_ACEOF
 
18248
rm -f conftest.$ac_objext conftest$ac_exeext
 
18249
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18250
  (eval $ac_link) 2>conftest.er1
 
18251
  ac_status=$?
 
18252
  grep -v '^ *+' conftest.er1 >conftest.err
 
18253
  rm -f conftest.er1
 
18254
  cat conftest.err >&5
 
18255
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18256
  (exit $ac_status); } &&
 
18257
         { ac_try='test -z "$ac_c_werror_flag"
 
18258
                         || test ! -s conftest.err'
 
18259
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18260
  (eval $ac_try) 2>&5
 
18261
  ac_status=$?
 
18262
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18263
  (exit $ac_status); }; } &&
 
18264
         { ac_try='test -s conftest$ac_exeext'
 
18265
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18266
  (eval $ac_try) 2>&5
 
18267
  ac_status=$?
 
18268
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18269
  (exit $ac_status); }; }; then
 
18270
  ac_cv_lib_svld_dlopen=yes
 
18271
else
 
18272
  echo "$as_me: failed program was:" >&5
 
18273
sed 's/^/| /' conftest.$ac_ext >&5
 
18274
 
 
18275
ac_cv_lib_svld_dlopen=no
 
18276
fi
 
18277
rm -f conftest.err conftest.$ac_objext \
 
18278
      conftest$ac_exeext conftest.$ac_ext
 
18279
LIBS=$ac_check_lib_save_LIBS
 
18280
fi
 
18281
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
18282
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
18283
if test $ac_cv_lib_svld_dlopen = yes; then
 
18284
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
18285
else
 
18286
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
18287
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
18288
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
18289
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18290
else
 
18291
  ac_check_lib_save_LIBS=$LIBS
 
18292
LIBS="-ldld  $LIBS"
 
18293
cat >conftest.$ac_ext <<_ACEOF
 
18294
/* confdefs.h.  */
 
18295
_ACEOF
 
18296
cat confdefs.h >>conftest.$ac_ext
 
18297
cat >>conftest.$ac_ext <<_ACEOF
 
18298
/* end confdefs.h.  */
 
18299
 
 
18300
/* Override any gcc2 internal prototype to avoid an error.  */
 
18301
#ifdef __cplusplus
 
18302
extern "C"
 
18303
#endif
 
18304
/* We use char because int might match the return type of a gcc2
 
18305
   builtin and then its argument prototype would still apply.  */
 
18306
char dld_link ();
 
18307
int
 
18308
main ()
 
18309
{
 
18310
dld_link ();
 
18311
  ;
 
18312
  return 0;
 
18313
}
 
18314
_ACEOF
 
18315
rm -f conftest.$ac_objext conftest$ac_exeext
 
18316
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18317
  (eval $ac_link) 2>conftest.er1
 
18318
  ac_status=$?
 
18319
  grep -v '^ *+' conftest.er1 >conftest.err
 
18320
  rm -f conftest.er1
 
18321
  cat conftest.err >&5
 
18322
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18323
  (exit $ac_status); } &&
 
18324
         { ac_try='test -z "$ac_c_werror_flag"
 
18325
                         || test ! -s conftest.err'
 
18326
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18327
  (eval $ac_try) 2>&5
 
18328
  ac_status=$?
 
18329
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18330
  (exit $ac_status); }; } &&
 
18331
         { ac_try='test -s conftest$ac_exeext'
 
18332
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18333
  (eval $ac_try) 2>&5
 
18334
  ac_status=$?
 
18335
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18336
  (exit $ac_status); }; }; then
 
18337
  ac_cv_lib_dld_dld_link=yes
 
18338
else
 
18339
  echo "$as_me: failed program was:" >&5
 
18340
sed 's/^/| /' conftest.$ac_ext >&5
 
18341
 
 
18342
ac_cv_lib_dld_dld_link=no
 
18343
fi
 
18344
rm -f conftest.err conftest.$ac_objext \
 
18345
      conftest$ac_exeext conftest.$ac_ext
 
18346
LIBS=$ac_check_lib_save_LIBS
 
18347
fi
 
18348
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
18349
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
18350
if test $ac_cv_lib_dld_dld_link = yes; then
 
18351
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
18352
fi
 
18353
 
 
18354
 
 
18355
fi
 
18356
 
 
18357
 
 
18358
fi
 
18359
 
 
18360
 
 
18361
fi
 
18362
 
 
18363
 
 
18364
fi
 
18365
 
 
18366
 
 
18367
fi
 
18368
 
 
18369
    ;;
 
18370
  esac
 
18371
 
 
18372
  if test "x$lt_cv_dlopen" != xno; then
 
18373
    enable_dlopen=yes
 
18374
  else
 
18375
    enable_dlopen=no
 
18376
  fi
 
18377
 
 
18378
  case $lt_cv_dlopen in
 
18379
  dlopen)
 
18380
    save_CPPFLAGS="$CPPFLAGS"
 
18381
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
18382
 
 
18383
    save_LDFLAGS="$LDFLAGS"
 
18384
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
18385
 
 
18386
    save_LIBS="$LIBS"
 
18387
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
18388
 
 
18389
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
18390
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
18391
if test "${lt_cv_dlopen_self+set}" = set; then
 
18392
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18393
else
 
18394
          if test "$cross_compiling" = yes; then :
 
18395
  lt_cv_dlopen_self=cross
 
18396
else
 
18397
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
18398
  lt_status=$lt_dlunknown
 
18399
  cat > conftest.$ac_ext <<EOF
 
18400
#line 18400 "configure"
 
18401
#include "confdefs.h"
 
18402
 
 
18403
#if HAVE_DLFCN_H
 
18404
#include <dlfcn.h>
 
18405
#endif
 
18406
 
 
18407
#include <stdio.h>
 
18408
 
 
18409
#ifdef RTLD_GLOBAL
 
18410
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
18411
#else
 
18412
#  ifdef DL_GLOBAL
 
18413
#    define LT_DLGLOBAL         DL_GLOBAL
 
18414
#  else
 
18415
#    define LT_DLGLOBAL         0
 
18416
#  endif
 
18417
#endif
 
18418
 
 
18419
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
18420
   find out it does not work in some platform. */
 
18421
#ifndef LT_DLLAZY_OR_NOW
 
18422
#  ifdef RTLD_LAZY
 
18423
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
18424
#  else
 
18425
#    ifdef DL_LAZY
 
18426
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
18427
#    else
 
18428
#      ifdef RTLD_NOW
 
18429
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
18430
#      else
 
18431
#        ifdef DL_NOW
 
18432
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
18433
#        else
 
18434
#          define LT_DLLAZY_OR_NOW      0
 
18435
#        endif
 
18436
#      endif
 
18437
#    endif
 
18438
#  endif
 
18439
#endif
 
18440
 
 
18441
#ifdef __cplusplus
 
18442
extern "C" void exit (int);
 
18443
#endif
 
18444
 
 
18445
void fnord() { int i=42;}
 
18446
int main ()
 
18447
{
 
18448
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
18449
  int status = $lt_dlunknown;
 
18450
 
 
18451
  if (self)
 
18452
    {
 
18453
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
18454
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
18455
      /* dlclose (self); */
 
18456
    }
 
18457
 
 
18458
    exit (status);
 
18459
}
 
18460
EOF
 
18461
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18462
  (eval $ac_link) 2>&5
 
18463
  ac_status=$?
 
18464
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18465
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
18466
    (./conftest; exit; ) 2>/dev/null
 
18467
    lt_status=$?
 
18468
    case x$lt_status in
 
18469
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
18470
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
18471
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
18472
    esac
 
18473
  else :
 
18474
    # compilation failed
 
18475
    lt_cv_dlopen_self=no
 
18476
  fi
 
18477
fi
 
18478
rm -fr conftest*
 
18479
 
 
18480
 
 
18481
fi
 
18482
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
18483
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
18484
 
 
18485
    if test "x$lt_cv_dlopen_self" = xyes; then
 
18486
      LDFLAGS="$LDFLAGS $link_static_flag"
 
18487
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
18488
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
18489
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
18490
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18491
else
 
18492
          if test "$cross_compiling" = yes; then :
 
18493
  lt_cv_dlopen_self_static=cross
 
18494
else
 
18495
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
18496
  lt_status=$lt_dlunknown
 
18497
  cat > conftest.$ac_ext <<EOF
 
18498
#line 18498 "configure"
 
18499
#include "confdefs.h"
 
18500
 
 
18501
#if HAVE_DLFCN_H
 
18502
#include <dlfcn.h>
 
18503
#endif
 
18504
 
 
18505
#include <stdio.h>
 
18506
 
 
18507
#ifdef RTLD_GLOBAL
 
18508
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
18509
#else
 
18510
#  ifdef DL_GLOBAL
 
18511
#    define LT_DLGLOBAL         DL_GLOBAL
 
18512
#  else
 
18513
#    define LT_DLGLOBAL         0
 
18514
#  endif
 
18515
#endif
 
18516
 
 
18517
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
18518
   find out it does not work in some platform. */
 
18519
#ifndef LT_DLLAZY_OR_NOW
 
18520
#  ifdef RTLD_LAZY
 
18521
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
18522
#  else
 
18523
#    ifdef DL_LAZY
 
18524
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
18525
#    else
 
18526
#      ifdef RTLD_NOW
 
18527
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
18528
#      else
 
18529
#        ifdef DL_NOW
 
18530
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
18531
#        else
 
18532
#          define LT_DLLAZY_OR_NOW      0
 
18533
#        endif
 
18534
#      endif
 
18535
#    endif
 
18536
#  endif
 
18537
#endif
 
18538
 
 
18539
#ifdef __cplusplus
 
18540
extern "C" void exit (int);
 
18541
#endif
 
18542
 
 
18543
void fnord() { int i=42;}
 
18544
int main ()
 
18545
{
 
18546
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
18547
  int status = $lt_dlunknown;
 
18548
 
 
18549
  if (self)
 
18550
    {
 
18551
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
18552
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
18553
      /* dlclose (self); */
 
18554
    }
 
18555
 
 
18556
    exit (status);
 
18557
}
 
18558
EOF
 
18559
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18560
  (eval $ac_link) 2>&5
 
18561
  ac_status=$?
 
18562
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18563
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
18564
    (./conftest; exit; ) 2>/dev/null
 
18565
    lt_status=$?
 
18566
    case x$lt_status in
 
18567
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
18568
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
18569
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
18570
    esac
 
18571
  else :
 
18572
    # compilation failed
 
18573
    lt_cv_dlopen_self_static=no
 
18574
  fi
 
18575
fi
 
18576
rm -fr conftest*
 
18577
 
 
18578
 
 
18579
fi
 
18580
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
18581
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
18582
    fi
 
18583
 
 
18584
    CPPFLAGS="$save_CPPFLAGS"
 
18585
    LDFLAGS="$save_LDFLAGS"
 
18586
    LIBS="$save_LIBS"
 
18587
    ;;
 
18588
  esac
 
18589
 
 
18590
  case $lt_cv_dlopen_self in
 
18591
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
18592
  *) enable_dlopen_self=unknown ;;
 
18593
  esac
 
18594
 
 
18595
  case $lt_cv_dlopen_self_static in
 
18596
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
18597
  *) enable_dlopen_self_static=unknown ;;
 
18598
  esac
 
18599
fi
 
18600
 
 
18601
 
 
18602
# The else clause should only fire when bootstrapping the
 
18603
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
18604
# with your package, and you will get complaints that there are
 
18605
# no rules to generate ltmain.sh.
 
18606
if test -f "$ltmain"; then
 
18607
  # See if we are running on zsh, and set the options which allow our commands through
 
18608
  # without removal of \ escapes.
 
18609
  if test -n "${ZSH_VERSION+set}" ; then
 
18610
    setopt NO_GLOB_SUBST
 
18611
  fi
 
18612
  # Now quote all the things that may contain metacharacters while being
 
18613
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
18614
  # variables and quote the copies for generation of the libtool script.
 
18615
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
18616
    SED SHELL STRIP \
 
18617
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
18618
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
18619
    deplibs_check_method reload_flag reload_cmds need_locks \
 
18620
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
18621
    lt_cv_sys_global_symbol_to_c_name_address \
 
18622
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
18623
    old_postinstall_cmds old_postuninstall_cmds \
 
18624
    compiler_GCJ \
 
18625
    CC_GCJ \
 
18626
    LD_GCJ \
 
18627
    lt_prog_compiler_wl_GCJ \
 
18628
    lt_prog_compiler_pic_GCJ \
 
18629
    lt_prog_compiler_static_GCJ \
 
18630
    lt_prog_compiler_no_builtin_flag_GCJ \
 
18631
    export_dynamic_flag_spec_GCJ \
 
18632
    thread_safe_flag_spec_GCJ \
 
18633
    whole_archive_flag_spec_GCJ \
 
18634
    enable_shared_with_static_runtimes_GCJ \
 
18635
    old_archive_cmds_GCJ \
 
18636
    old_archive_from_new_cmds_GCJ \
 
18637
    predep_objects_GCJ \
 
18638
    postdep_objects_GCJ \
 
18639
    predeps_GCJ \
 
18640
    postdeps_GCJ \
 
18641
    compiler_lib_search_path_GCJ \
 
18642
    archive_cmds_GCJ \
 
18643
    archive_expsym_cmds_GCJ \
 
18644
    postinstall_cmds_GCJ \
 
18645
    postuninstall_cmds_GCJ \
 
18646
    old_archive_from_expsyms_cmds_GCJ \
 
18647
    allow_undefined_flag_GCJ \
 
18648
    no_undefined_flag_GCJ \
 
18649
    export_symbols_cmds_GCJ \
 
18650
    hardcode_libdir_flag_spec_GCJ \
 
18651
    hardcode_libdir_flag_spec_ld_GCJ \
 
18652
    hardcode_libdir_separator_GCJ \
 
18653
    hardcode_automatic_GCJ \
 
18654
    module_cmds_GCJ \
 
18655
    module_expsym_cmds_GCJ \
 
18656
    lt_cv_prog_compiler_c_o_GCJ \
 
18657
    exclude_expsyms_GCJ \
 
18658
    include_expsyms_GCJ; do
 
18659
 
 
18660
    case $var in
 
18661
    old_archive_cmds_GCJ | \
 
18662
    old_archive_from_new_cmds_GCJ | \
 
18663
    archive_cmds_GCJ | \
 
18664
    archive_expsym_cmds_GCJ | \
 
18665
    module_cmds_GCJ | \
 
18666
    module_expsym_cmds_GCJ | \
 
18667
    old_archive_from_expsyms_cmds_GCJ | \
 
18668
    export_symbols_cmds_GCJ | \
 
18669
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
18670
    postinstall_cmds | postuninstall_cmds | \
 
18671
    old_postinstall_cmds | old_postuninstall_cmds | \
 
18672
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
18673
      # Double-quote double-evaled strings.
 
18674
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
18675
      ;;
 
18676
    *)
 
18677
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
18678
      ;;
 
18679
    esac
 
18680
  done
 
18681
 
 
18682
  case $lt_echo in
 
18683
  *'\$0 --fallback-echo"')
 
18684
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
18685
    ;;
 
18686
  esac
 
18687
 
 
18688
cfgfile="$ofile"
 
18689
 
 
18690
  cat <<__EOF__ >> "$cfgfile"
 
18691
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
18692
 
 
18693
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
18694
 
 
18695
# Shell to use when invoking shell scripts.
 
18696
SHELL=$lt_SHELL
 
18697
 
 
18698
# Whether or not to build shared libraries.
 
18699
build_libtool_libs=$enable_shared
 
18700
 
 
18701
# Whether or not to build static libraries.
 
18702
build_old_libs=$enable_static
 
18703
 
 
18704
# Whether or not to add -lc for building shared libraries.
 
18705
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
 
18706
 
 
18707
# Whether or not to disallow shared libs when runtime libs are static
 
18708
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
 
18709
 
 
18710
# Whether or not to optimize for fast installation.
 
18711
fast_install=$enable_fast_install
 
18712
 
 
18713
# The host system.
 
18714
host_alias=$host_alias
 
18715
host=$host
 
18716
 
 
18717
# An echo program that does not interpret backslashes.
 
18718
echo=$lt_echo
 
18719
 
 
18720
# The archiver.
 
18721
AR=$lt_AR
 
18722
AR_FLAGS=$lt_AR_FLAGS
 
18723
 
 
18724
# A C compiler.
 
18725
LTCC=$lt_LTCC
 
18726
 
 
18727
# A language-specific compiler.
 
18728
CC=$lt_compiler_GCJ
 
18729
 
 
18730
# Is the compiler the GNU C compiler?
 
18731
with_gcc=$GCC_GCJ
 
18732
 
 
18733
# An ERE matcher.
 
18734
EGREP=$lt_EGREP
 
18735
 
 
18736
# The linker used to build libraries.
 
18737
LD=$lt_LD_GCJ
 
18738
 
 
18739
# Whether we need hard or soft links.
 
18740
LN_S=$lt_LN_S
 
18741
 
 
18742
# A BSD-compatible nm program.
 
18743
NM=$lt_NM
 
18744
 
 
18745
# A symbol stripping program
 
18746
STRIP=$lt_STRIP
 
18747
 
 
18748
# Used to examine libraries when file_magic_cmd begins "file"
 
18749
MAGIC_CMD=$MAGIC_CMD
 
18750
 
 
18751
# Used on cygwin: DLL creation program.
 
18752
DLLTOOL="$DLLTOOL"
 
18753
 
 
18754
# Used on cygwin: object dumper.
 
18755
OBJDUMP="$OBJDUMP"
 
18756
 
 
18757
# Used on cygwin: assembler.
 
18758
AS="$AS"
 
18759
 
 
18760
# The name of the directory that contains temporary libtool files.
 
18761
objdir=$objdir
 
18762
 
 
18763
# How to create reloadable object files.
 
18764
reload_flag=$lt_reload_flag
 
18765
reload_cmds=$lt_reload_cmds
 
18766
 
 
18767
# How to pass a linker flag through the compiler.
 
18768
wl=$lt_lt_prog_compiler_wl_GCJ
 
18769
 
 
18770
# Object file suffix (normally "o").
 
18771
objext="$ac_objext"
 
18772
 
 
18773
# Old archive suffix (normally "a").
 
18774
libext="$libext"
 
18775
 
 
18776
# Shared library suffix (normally ".so").
 
18777
shrext_cmds='$shrext_cmds'
 
18778
 
 
18779
# Executable file suffix (normally "").
 
18780
exeext="$exeext"
 
18781
 
 
18782
# Additional compiler flags for building library objects.
 
18783
pic_flag=$lt_lt_prog_compiler_pic_GCJ
 
18784
pic_mode=$pic_mode
 
18785
 
 
18786
# What is the maximum length of a command?
 
18787
max_cmd_len=$lt_cv_sys_max_cmd_len
 
18788
 
 
18789
# Does compiler simultaneously support -c and -o options?
 
18790
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
 
18791
 
 
18792
# Must we lock files when doing compilation ?
 
18793
need_locks=$lt_need_locks
 
18794
 
 
18795
# Do we need the lib prefix for modules?
 
18796
need_lib_prefix=$need_lib_prefix
 
18797
 
 
18798
# Do we need a version for libraries?
 
18799
need_version=$need_version
 
18800
 
 
18801
# Whether dlopen is supported.
 
18802
dlopen_support=$enable_dlopen
 
18803
 
 
18804
# Whether dlopen of programs is supported.
 
18805
dlopen_self=$enable_dlopen_self
 
18806
 
 
18807
# Whether dlopen of statically linked programs is supported.
 
18808
dlopen_self_static=$enable_dlopen_self_static
 
18809
 
 
18810
# Compiler flag to prevent dynamic linking.
 
18811
link_static_flag=$lt_lt_prog_compiler_static_GCJ
 
18812
 
 
18813
# Compiler flag to turn off builtin functions.
 
18814
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
 
18815
 
 
18816
# Compiler flag to allow reflexive dlopens.
 
18817
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
 
18818
 
 
18819
# Compiler flag to generate shared objects directly from archives.
 
18820
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
 
18821
 
 
18822
# Compiler flag to generate thread-safe objects.
 
18823
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
 
18824
 
 
18825
# Library versioning type.
 
18826
version_type=$version_type
 
18827
 
 
18828
# Format of library name prefix.
 
18829
libname_spec=$lt_libname_spec
 
18830
 
 
18831
# List of archive names.  First name is the real one, the rest are links.
 
18832
# The last name is the one that the linker finds with -lNAME.
 
18833
library_names_spec=$lt_library_names_spec
 
18834
 
 
18835
# The coded name of the library, if different from the real name.
 
18836
soname_spec=$lt_soname_spec
 
18837
 
 
18838
# Commands used to build and install an old-style archive.
 
18839
RANLIB=$lt_RANLIB
 
18840
old_archive_cmds=$lt_old_archive_cmds_GCJ
 
18841
old_postinstall_cmds=$lt_old_postinstall_cmds
 
18842
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
18843
 
 
18844
# Create an old-style archive from a shared archive.
 
18845
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
 
18846
 
 
18847
# Create a temporary old-style archive to link instead of a shared archive.
 
18848
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
 
18849
 
 
18850
# Commands used to build and install a shared archive.
 
18851
archive_cmds=$lt_archive_cmds_GCJ
 
18852
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
 
18853
postinstall_cmds=$lt_postinstall_cmds
 
18854
postuninstall_cmds=$lt_postuninstall_cmds
 
18855
 
 
18856
# Commands used to build a loadable module (assumed same as above if empty)
 
18857
module_cmds=$lt_module_cmds_GCJ
 
18858
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
 
18859
 
 
18860
# Commands to strip libraries.
 
18861
old_striplib=$lt_old_striplib
 
18862
striplib=$lt_striplib
 
18863
 
 
18864
# Dependencies to place before the objects being linked to create a
 
18865
# shared library.
 
18866
predep_objects=$lt_predep_objects_GCJ
 
18867
 
 
18868
# Dependencies to place after the objects being linked to create a
 
18869
# shared library.
 
18870
postdep_objects=$lt_postdep_objects_GCJ
 
18871
 
 
18872
# Dependencies to place before the objects being linked to create a
 
18873
# shared library.
 
18874
predeps=$lt_predeps_GCJ
 
18875
 
 
18876
# Dependencies to place after the objects being linked to create a
 
18877
# shared library.
 
18878
postdeps=$lt_postdeps_GCJ
 
18879
 
 
18880
# The library search path used internally by the compiler when linking
 
18881
# a shared library.
 
18882
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
 
18883
 
 
18884
# Method to check whether dependent libraries are shared objects.
 
18885
deplibs_check_method=$lt_deplibs_check_method
 
18886
 
 
18887
# Command to use when deplibs_check_method == file_magic.
 
18888
file_magic_cmd=$lt_file_magic_cmd
 
18889
 
 
18890
# Flag that allows shared libraries with undefined symbols to be built.
 
18891
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
 
18892
 
 
18893
# Flag that forces no undefined symbols.
 
18894
no_undefined_flag=$lt_no_undefined_flag_GCJ
 
18895
 
 
18896
# Commands used to finish a libtool library installation in a directory.
 
18897
finish_cmds=$lt_finish_cmds
 
18898
 
 
18899
# Same as above, but a single script fragment to be evaled but not shown.
 
18900
finish_eval=$lt_finish_eval
 
18901
 
 
18902
# Take the output of nm and produce a listing of raw symbols and C names.
 
18903
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
18904
 
 
18905
# Transform the output of nm in a proper C declaration
 
18906
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
18907
 
 
18908
# Transform the output of nm in a C name address pair
 
18909
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
18910
 
 
18911
# This is the shared library runtime path variable.
 
18912
runpath_var=$runpath_var
 
18913
 
 
18914
# This is the shared library path variable.
 
18915
shlibpath_var=$shlibpath_var
 
18916
 
 
18917
# Is shlibpath searched before the hard-coded library search path?
 
18918
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
18919
 
 
18920
# How to hardcode a shared library path into an executable.
 
18921
hardcode_action=$hardcode_action_GCJ
 
18922
 
 
18923
# Whether we should hardcode library paths into libraries.
 
18924
hardcode_into_libs=$hardcode_into_libs
 
18925
 
 
18926
# Flag to hardcode \$libdir into a binary during linking.
 
18927
# This must work even if \$libdir does not exist.
 
18928
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
 
18929
 
 
18930
# If ld is used when linking, flag to hardcode \$libdir into
 
18931
# a binary during linking. This must work even if \$libdir does
 
18932
# not exist.
 
18933
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
 
18934
 
 
18935
# Whether we need a single -rpath flag with a separated argument.
 
18936
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
 
18937
 
 
18938
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
18939
# resulting binary.
 
18940
hardcode_direct=$hardcode_direct_GCJ
 
18941
 
 
18942
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
18943
# resulting binary.
 
18944
hardcode_minus_L=$hardcode_minus_L_GCJ
 
18945
 
 
18946
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
18947
# the resulting binary.
 
18948
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
 
18949
 
 
18950
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
18951
# and all subsequent libraries and executables linked against it.
 
18952
hardcode_automatic=$hardcode_automatic_GCJ
 
18953
 
 
18954
# Variables whose values should be saved in libtool wrapper scripts and
 
18955
# restored at relink time.
 
18956
variables_saved_for_relink="$variables_saved_for_relink"
 
18957
 
 
18958
# Whether libtool must link a program against all its dependency libraries.
 
18959
link_all_deplibs=$link_all_deplibs_GCJ
 
18960
 
 
18961
# Compile-time system search path for libraries
 
18962
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
18963
 
 
18964
# Run-time system search path for libraries
 
18965
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
18966
 
 
18967
# Fix the shell variable \$srcfile for the compiler.
 
18968
fix_srcfile_path="$fix_srcfile_path_GCJ"
 
18969
 
 
18970
# Set to yes if exported symbols are required.
 
18971
always_export_symbols=$always_export_symbols_GCJ
 
18972
 
 
18973
# The commands to list exported symbols.
 
18974
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
 
18975
 
 
18976
# The commands to extract the exported symbol list from a shared archive.
 
18977
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
18978
 
 
18979
# Symbols that should not be listed in the preloaded symbols.
 
18980
exclude_expsyms=$lt_exclude_expsyms_GCJ
 
18981
 
 
18982
# Symbols that must always be exported.
 
18983
include_expsyms=$lt_include_expsyms_GCJ
 
18984
 
 
18985
# ### END LIBTOOL TAG CONFIG: $tagname
 
18986
 
 
18987
__EOF__
 
18988
 
 
18989
 
 
18990
else
 
18991
  # If there is no Makefile yet, we rely on a make rule to execute
 
18992
  # `config.status --recheck' to rerun these tests and create the
 
18993
  # libtool script then.
 
18994
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
18995
  if test -f "$ltmain_in"; then
 
18996
    test -f Makefile && make "$ltmain"
 
18997
  fi
 
18998
fi
 
18999
 
 
19000
 
 
19001
ac_ext=c
 
19002
ac_cpp='$CPP $CPPFLAGS'
 
19003
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
19004
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
19005
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
19006
 
 
19007
CC="$lt_save_CC"
 
19008
 
 
19009
        else
 
19010
          tagname=""
 
19011
        fi
 
19012
        ;;
 
19013
 
 
19014
      RC)
 
19015
 
 
19016
 
 
19017
 
 
19018
# Source file extension for RC test sources.
 
19019
ac_ext=rc
 
19020
 
 
19021
# Object file extension for compiled RC test sources.
 
19022
objext=o
 
19023
objext_RC=$objext
 
19024
 
 
19025
# Code to be used in simple compile tests
 
19026
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
 
19027
 
 
19028
# Code to be used in simple link tests
 
19029
lt_simple_link_test_code="$lt_simple_compile_test_code"
 
19030
 
 
19031
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
19032
 
 
19033
# If no C compiler was specified, use CC.
 
19034
LTCC=${LTCC-"$CC"}
 
19035
 
 
19036
# Allow CC to be a program name with arguments.
 
19037
compiler=$CC
 
19038
 
 
19039
 
 
19040
# Allow CC to be a program name with arguments.
 
19041
lt_save_CC="$CC"
 
19042
CC=${RC-"windres"}
 
19043
compiler=$CC
 
19044
compiler_RC=$CC
 
19045
lt_cv_prog_compiler_c_o_RC=yes
 
19046
 
 
19047
# The else clause should only fire when bootstrapping the
 
19048
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
19049
# with your package, and you will get complaints that there are
 
19050
# no rules to generate ltmain.sh.
 
19051
if test -f "$ltmain"; then
 
19052
  # See if we are running on zsh, and set the options which allow our commands through
 
19053
  # without removal of \ escapes.
 
19054
  if test -n "${ZSH_VERSION+set}" ; then
 
19055
    setopt NO_GLOB_SUBST
 
19056
  fi
 
19057
  # Now quote all the things that may contain metacharacters while being
 
19058
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
19059
  # variables and quote the copies for generation of the libtool script.
 
19060
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
19061
    SED SHELL STRIP \
 
19062
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
19063
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
19064
    deplibs_check_method reload_flag reload_cmds need_locks \
 
19065
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
19066
    lt_cv_sys_global_symbol_to_c_name_address \
 
19067
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
19068
    old_postinstall_cmds old_postuninstall_cmds \
 
19069
    compiler_RC \
 
19070
    CC_RC \
 
19071
    LD_RC \
 
19072
    lt_prog_compiler_wl_RC \
 
19073
    lt_prog_compiler_pic_RC \
 
19074
    lt_prog_compiler_static_RC \
 
19075
    lt_prog_compiler_no_builtin_flag_RC \
 
19076
    export_dynamic_flag_spec_RC \
 
19077
    thread_safe_flag_spec_RC \
 
19078
    whole_archive_flag_spec_RC \
 
19079
    enable_shared_with_static_runtimes_RC \
 
19080
    old_archive_cmds_RC \
 
19081
    old_archive_from_new_cmds_RC \
 
19082
    predep_objects_RC \
 
19083
    postdep_objects_RC \
 
19084
    predeps_RC \
 
19085
    postdeps_RC \
 
19086
    compiler_lib_search_path_RC \
 
19087
    archive_cmds_RC \
 
19088
    archive_expsym_cmds_RC \
 
19089
    postinstall_cmds_RC \
 
19090
    postuninstall_cmds_RC \
 
19091
    old_archive_from_expsyms_cmds_RC \
 
19092
    allow_undefined_flag_RC \
 
19093
    no_undefined_flag_RC \
 
19094
    export_symbols_cmds_RC \
 
19095
    hardcode_libdir_flag_spec_RC \
 
19096
    hardcode_libdir_flag_spec_ld_RC \
 
19097
    hardcode_libdir_separator_RC \
 
19098
    hardcode_automatic_RC \
 
19099
    module_cmds_RC \
 
19100
    module_expsym_cmds_RC \
 
19101
    lt_cv_prog_compiler_c_o_RC \
 
19102
    exclude_expsyms_RC \
 
19103
    include_expsyms_RC; do
 
19104
 
 
19105
    case $var in
 
19106
    old_archive_cmds_RC | \
 
19107
    old_archive_from_new_cmds_RC | \
 
19108
    archive_cmds_RC | \
 
19109
    archive_expsym_cmds_RC | \
 
19110
    module_cmds_RC | \
 
19111
    module_expsym_cmds_RC | \
 
19112
    old_archive_from_expsyms_cmds_RC | \
 
19113
    export_symbols_cmds_RC | \
 
19114
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
19115
    postinstall_cmds | postuninstall_cmds | \
 
19116
    old_postinstall_cmds | old_postuninstall_cmds | \
 
19117
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
19118
      # Double-quote double-evaled strings.
 
19119
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
19120
      ;;
 
19121
    *)
 
19122
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
19123
      ;;
 
19124
    esac
 
19125
  done
 
19126
 
 
19127
  case $lt_echo in
 
19128
  *'\$0 --fallback-echo"')
 
19129
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
19130
    ;;
 
19131
  esac
 
19132
 
 
19133
cfgfile="$ofile"
 
19134
 
 
19135
  cat <<__EOF__ >> "$cfgfile"
 
19136
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
19137
 
 
19138
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
19139
 
 
19140
# Shell to use when invoking shell scripts.
 
19141
SHELL=$lt_SHELL
 
19142
 
 
19143
# Whether or not to build shared libraries.
 
19144
build_libtool_libs=$enable_shared
 
19145
 
 
19146
# Whether or not to build static libraries.
 
19147
build_old_libs=$enable_static
 
19148
 
 
19149
# Whether or not to add -lc for building shared libraries.
 
19150
build_libtool_need_lc=$archive_cmds_need_lc_RC
 
19151
 
 
19152
# Whether or not to disallow shared libs when runtime libs are static
 
19153
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
 
19154
 
 
19155
# Whether or not to optimize for fast installation.
 
19156
fast_install=$enable_fast_install
 
19157
 
 
19158
# The host system.
 
19159
host_alias=$host_alias
 
19160
host=$host
 
19161
 
 
19162
# An echo program that does not interpret backslashes.
 
19163
echo=$lt_echo
 
19164
 
 
19165
# The archiver.
 
19166
AR=$lt_AR
 
19167
AR_FLAGS=$lt_AR_FLAGS
 
19168
 
 
19169
# A C compiler.
 
19170
LTCC=$lt_LTCC
 
19171
 
 
19172
# A language-specific compiler.
 
19173
CC=$lt_compiler_RC
 
19174
 
 
19175
# Is the compiler the GNU C compiler?
 
19176
with_gcc=$GCC_RC
 
19177
 
 
19178
# An ERE matcher.
 
19179
EGREP=$lt_EGREP
 
19180
 
 
19181
# The linker used to build libraries.
 
19182
LD=$lt_LD_RC
 
19183
 
 
19184
# Whether we need hard or soft links.
 
19185
LN_S=$lt_LN_S
 
19186
 
 
19187
# A BSD-compatible nm program.
 
19188
NM=$lt_NM
 
19189
 
 
19190
# A symbol stripping program
 
19191
STRIP=$lt_STRIP
 
19192
 
 
19193
# Used to examine libraries when file_magic_cmd begins "file"
 
19194
MAGIC_CMD=$MAGIC_CMD
 
19195
 
 
19196
# Used on cygwin: DLL creation program.
 
19197
DLLTOOL="$DLLTOOL"
 
19198
 
 
19199
# Used on cygwin: object dumper.
 
19200
OBJDUMP="$OBJDUMP"
 
19201
 
 
19202
# Used on cygwin: assembler.
 
19203
AS="$AS"
 
19204
 
 
19205
# The name of the directory that contains temporary libtool files.
 
19206
objdir=$objdir
 
19207
 
 
19208
# How to create reloadable object files.
 
19209
reload_flag=$lt_reload_flag
 
19210
reload_cmds=$lt_reload_cmds
 
19211
 
 
19212
# How to pass a linker flag through the compiler.
 
19213
wl=$lt_lt_prog_compiler_wl_RC
 
19214
 
 
19215
# Object file suffix (normally "o").
 
19216
objext="$ac_objext"
 
19217
 
 
19218
# Old archive suffix (normally "a").
 
19219
libext="$libext"
 
19220
 
 
19221
# Shared library suffix (normally ".so").
 
19222
shrext_cmds='$shrext_cmds'
 
19223
 
 
19224
# Executable file suffix (normally "").
 
19225
exeext="$exeext"
 
19226
 
 
19227
# Additional compiler flags for building library objects.
 
19228
pic_flag=$lt_lt_prog_compiler_pic_RC
 
19229
pic_mode=$pic_mode
 
19230
 
 
19231
# What is the maximum length of a command?
 
19232
max_cmd_len=$lt_cv_sys_max_cmd_len
 
19233
 
 
19234
# Does compiler simultaneously support -c and -o options?
 
19235
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
 
19236
 
 
19237
# Must we lock files when doing compilation ?
 
19238
need_locks=$lt_need_locks
 
19239
 
 
19240
# Do we need the lib prefix for modules?
 
19241
need_lib_prefix=$need_lib_prefix
 
19242
 
 
19243
# Do we need a version for libraries?
 
19244
need_version=$need_version
 
19245
 
 
19246
# Whether dlopen is supported.
 
19247
dlopen_support=$enable_dlopen
 
19248
 
 
19249
# Whether dlopen of programs is supported.
 
19250
dlopen_self=$enable_dlopen_self
 
19251
 
 
19252
# Whether dlopen of statically linked programs is supported.
 
19253
dlopen_self_static=$enable_dlopen_self_static
 
19254
 
 
19255
# Compiler flag to prevent dynamic linking.
 
19256
link_static_flag=$lt_lt_prog_compiler_static_RC
 
19257
 
 
19258
# Compiler flag to turn off builtin functions.
 
19259
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
 
19260
 
 
19261
# Compiler flag to allow reflexive dlopens.
 
19262
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
 
19263
 
 
19264
# Compiler flag to generate shared objects directly from archives.
 
19265
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
 
19266
 
 
19267
# Compiler flag to generate thread-safe objects.
 
19268
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
 
19269
 
 
19270
# Library versioning type.
 
19271
version_type=$version_type
 
19272
 
 
19273
# Format of library name prefix.
 
19274
libname_spec=$lt_libname_spec
 
19275
 
 
19276
# List of archive names.  First name is the real one, the rest are links.
 
19277
# The last name is the one that the linker finds with -lNAME.
 
19278
library_names_spec=$lt_library_names_spec
 
19279
 
 
19280
# The coded name of the library, if different from the real name.
 
19281
soname_spec=$lt_soname_spec
 
19282
 
 
19283
# Commands used to build and install an old-style archive.
 
19284
RANLIB=$lt_RANLIB
 
19285
old_archive_cmds=$lt_old_archive_cmds_RC
 
19286
old_postinstall_cmds=$lt_old_postinstall_cmds
 
19287
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
19288
 
 
19289
# Create an old-style archive from a shared archive.
 
19290
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
 
19291
 
 
19292
# Create a temporary old-style archive to link instead of a shared archive.
 
19293
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
 
19294
 
 
19295
# Commands used to build and install a shared archive.
 
19296
archive_cmds=$lt_archive_cmds_RC
 
19297
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
 
19298
postinstall_cmds=$lt_postinstall_cmds
 
19299
postuninstall_cmds=$lt_postuninstall_cmds
 
19300
 
 
19301
# Commands used to build a loadable module (assumed same as above if empty)
 
19302
module_cmds=$lt_module_cmds_RC
 
19303
module_expsym_cmds=$lt_module_expsym_cmds_RC
 
19304
 
 
19305
# Commands to strip libraries.
 
19306
old_striplib=$lt_old_striplib
 
19307
striplib=$lt_striplib
 
19308
 
 
19309
# Dependencies to place before the objects being linked to create a
 
19310
# shared library.
 
19311
predep_objects=$lt_predep_objects_RC
 
19312
 
 
19313
# Dependencies to place after the objects being linked to create a
 
19314
# shared library.
 
19315
postdep_objects=$lt_postdep_objects_RC
 
19316
 
 
19317
# Dependencies to place before the objects being linked to create a
 
19318
# shared library.
 
19319
predeps=$lt_predeps_RC
 
19320
 
 
19321
# Dependencies to place after the objects being linked to create a
 
19322
# shared library.
 
19323
postdeps=$lt_postdeps_RC
 
19324
 
 
19325
# The library search path used internally by the compiler when linking
 
19326
# a shared library.
 
19327
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
 
19328
 
 
19329
# Method to check whether dependent libraries are shared objects.
 
19330
deplibs_check_method=$lt_deplibs_check_method
 
19331
 
 
19332
# Command to use when deplibs_check_method == file_magic.
 
19333
file_magic_cmd=$lt_file_magic_cmd
 
19334
 
 
19335
# Flag that allows shared libraries with undefined symbols to be built.
 
19336
allow_undefined_flag=$lt_allow_undefined_flag_RC
 
19337
 
 
19338
# Flag that forces no undefined symbols.
 
19339
no_undefined_flag=$lt_no_undefined_flag_RC
 
19340
 
 
19341
# Commands used to finish a libtool library installation in a directory.
 
19342
finish_cmds=$lt_finish_cmds
 
19343
 
 
19344
# Same as above, but a single script fragment to be evaled but not shown.
 
19345
finish_eval=$lt_finish_eval
 
19346
 
 
19347
# Take the output of nm and produce a listing of raw symbols and C names.
 
19348
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
19349
 
 
19350
# Transform the output of nm in a proper C declaration
 
19351
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
19352
 
 
19353
# Transform the output of nm in a C name address pair
 
19354
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
19355
 
 
19356
# This is the shared library runtime path variable.
 
19357
runpath_var=$runpath_var
 
19358
 
 
19359
# This is the shared library path variable.
 
19360
shlibpath_var=$shlibpath_var
 
19361
 
 
19362
# Is shlibpath searched before the hard-coded library search path?
 
19363
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
19364
 
 
19365
# How to hardcode a shared library path into an executable.
 
19366
hardcode_action=$hardcode_action_RC
 
19367
 
 
19368
# Whether we should hardcode library paths into libraries.
 
19369
hardcode_into_libs=$hardcode_into_libs
 
19370
 
 
19371
# Flag to hardcode \$libdir into a binary during linking.
 
19372
# This must work even if \$libdir does not exist.
 
19373
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
 
19374
 
 
19375
# If ld is used when linking, flag to hardcode \$libdir into
 
19376
# a binary during linking. This must work even if \$libdir does
 
19377
# not exist.
 
19378
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
 
19379
 
 
19380
# Whether we need a single -rpath flag with a separated argument.
 
19381
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
 
19382
 
 
19383
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
19384
# resulting binary.
 
19385
hardcode_direct=$hardcode_direct_RC
 
19386
 
 
19387
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
19388
# resulting binary.
 
19389
hardcode_minus_L=$hardcode_minus_L_RC
 
19390
 
 
19391
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
19392
# the resulting binary.
 
19393
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
 
19394
 
 
19395
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
19396
# and all subsequent libraries and executables linked against it.
 
19397
hardcode_automatic=$hardcode_automatic_RC
 
19398
 
 
19399
# Variables whose values should be saved in libtool wrapper scripts and
 
19400
# restored at relink time.
 
19401
variables_saved_for_relink="$variables_saved_for_relink"
 
19402
 
 
19403
# Whether libtool must link a program against all its dependency libraries.
 
19404
link_all_deplibs=$link_all_deplibs_RC
 
19405
 
 
19406
# Compile-time system search path for libraries
 
19407
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
19408
 
 
19409
# Run-time system search path for libraries
 
19410
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
19411
 
 
19412
# Fix the shell variable \$srcfile for the compiler.
 
19413
fix_srcfile_path="$fix_srcfile_path_RC"
 
19414
 
 
19415
# Set to yes if exported symbols are required.
 
19416
always_export_symbols=$always_export_symbols_RC
 
19417
 
 
19418
# The commands to list exported symbols.
 
19419
export_symbols_cmds=$lt_export_symbols_cmds_RC
 
19420
 
 
19421
# The commands to extract the exported symbol list from a shared archive.
 
19422
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
19423
 
 
19424
# Symbols that should not be listed in the preloaded symbols.
 
19425
exclude_expsyms=$lt_exclude_expsyms_RC
 
19426
 
 
19427
# Symbols that must always be exported.
 
19428
include_expsyms=$lt_include_expsyms_RC
 
19429
 
 
19430
# ### END LIBTOOL TAG CONFIG: $tagname
 
19431
 
 
19432
__EOF__
 
19433
 
 
19434
 
 
19435
else
 
19436
  # If there is no Makefile yet, we rely on a make rule to execute
 
19437
  # `config.status --recheck' to rerun these tests and create the
 
19438
  # libtool script then.
 
19439
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
19440
  if test -f "$ltmain_in"; then
 
19441
    test -f Makefile && make "$ltmain"
 
19442
  fi
 
19443
fi
 
19444
 
 
19445
 
 
19446
ac_ext=c
 
19447
ac_cpp='$CPP $CPPFLAGS'
 
19448
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
19449
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
19450
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
19451
 
 
19452
CC="$lt_save_CC"
 
19453
 
 
19454
        ;;
 
19455
 
 
19456
      *)
 
19457
        { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
 
19458
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
 
19459
   { (exit 1); exit 1; }; }
 
19460
        ;;
 
19461
      esac
 
19462
 
 
19463
      # Append the new tag name to the list of available tags.
 
19464
      if test -n "$tagname" ; then
 
19465
      available_tags="$available_tags $tagname"
 
19466
    fi
 
19467
    fi
 
19468
  done
 
19469
  IFS="$lt_save_ifs"
 
19470
 
 
19471
  # Now substitute the updated list of available tags.
 
19472
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
 
19473
    mv "${ofile}T" "$ofile"
 
19474
    chmod +x "$ofile"
 
19475
  else
 
19476
    rm -f "${ofile}T"
 
19477
    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
 
19478
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
 
19479
   { (exit 1); exit 1; }; }
 
19480
  fi
 
19481
fi
7959
19482
 
7960
19483
 
7961
19484
 
7968
19491
# Prevent multiple expansion
7969
19492
 
7970
19493
 
 
19494
 
 
19495
 
 
19496
 
 
19497
 
 
19498
 
 
19499
 
 
19500
 
 
19501
 
 
19502
 
 
19503
 
 
19504
 
 
19505
 
 
19506
 
 
19507
 
 
19508
 
 
19509
 
 
19510
 
 
19511
 
7971
19512
# Find a good install program.  We prefer a C program (faster),
7972
19513
# so one script is as good as another.  But avoid the broken or
7973
19514
# incompatible versions:
7979
19520
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7980
19521
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7981
19522
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
19523
# OS/2's system install, which has a completely different semantic
7982
19524
# ./install, which can be erroneously created by make from ./install.sh.
7983
19525
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7984
19526
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
7995
19537
case $as_dir/ in
7996
19538
  ./ | .// | /cC/* | \
7997
19539
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
19540
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7998
19541
  /usr/ucb/* ) ;;
7999
19542
  *)
8000
19543
    # OSF1 and SCO ODT 3.0 have their own names for install.
8002
19545
    # by default.
8003
19546
    for ac_prog in ginstall scoinst install; do
8004
19547
      for ac_exec_ext in '' $ac_executable_extensions; do
8005
 
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
8006
 
          if test $ac_prog = install &&
8007
 
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8008
 
            # AIX install.  It has an incompatible calling convention.
8009
 
            :
8010
 
          elif test $ac_prog = install &&
8011
 
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8012
 
            # program-specific install script used by HP pwplus--don't use.
8013
 
            :
8014
 
          else
8015
 
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8016
 
            break 3
8017
 
          fi
8018
 
        fi
 
19548
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
19549
          if test $ac_prog = install &&
 
19550
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
19551
            # AIX install.  It has an incompatible calling convention.
 
19552
            :
 
19553
          elif test $ac_prog = install &&
 
19554
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
19555
            # program-specific install script used by HP pwplus--don't use.
 
19556
            :
 
19557
          else
 
19558
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
19559
            break 3
 
19560
          fi
 
19561
        fi
8019
19562
      done
8020
19563
    done
8021
19564
    ;;
8148
19691
  echo $ECHO_N "(cached) $ECHO_C" >&6
8149
19692
else
8150
19693
  cat >conftest.$ac_ext <<_ACEOF
8151
 
#line $LINENO "configure"
8152
19694
/* confdefs.h.  */
8153
19695
_ACEOF
8154
19696
cat confdefs.h >>conftest.$ac_ext
8168
19710
_ACEOF
8169
19711
rm -f conftest.$ac_objext
8170
19712
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8171
 
  (eval $ac_compile) 2>&5
 
19713
  (eval $ac_compile) 2>conftest.er1
8172
19714
  ac_status=$?
 
19715
  grep -v '^ *+' conftest.er1 >conftest.err
 
19716
  rm -f conftest.er1
 
19717
  cat conftest.err >&5
8173
19718
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8174
19719
  (exit $ac_status); } &&
8175
 
         { ac_try='test -s conftest.$ac_objext'
 
19720
         { ac_try='test -z "$ac_c_werror_flag"
 
19721
                         || test ! -s conftest.err'
 
19722
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19723
  (eval $ac_try) 2>&5
 
19724
  ac_status=$?
 
19725
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19726
  (exit $ac_status); }; } &&
 
19727
         { ac_try='test -s conftest.$ac_objext'
8176
19728
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8177
19729
  (eval $ac_try) 2>&5
8178
19730
  ac_status=$?
8185
19737
 
8186
19738
ac_cv_type_pid_t=no
8187
19739
fi
8188
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
19740
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8189
19741
fi
8190
19742
echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
8191
19743
echo "${ECHO_T}$ac_cv_type_pid_t" >&6
8217
19769
echo "$as_me:$LINENO: checking $ac_header usability" >&5
8218
19770
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8219
19771
cat >conftest.$ac_ext <<_ACEOF
8220
 
#line $LINENO "configure"
8221
19772
/* confdefs.h.  */
8222
19773
_ACEOF
8223
19774
cat confdefs.h >>conftest.$ac_ext
8228
19779
_ACEOF
8229
19780
rm -f conftest.$ac_objext
8230
19781
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8231
 
  (eval $ac_compile) 2>&5
 
19782
  (eval $ac_compile) 2>conftest.er1
8232
19783
  ac_status=$?
 
19784
  grep -v '^ *+' conftest.er1 >conftest.err
 
19785
  rm -f conftest.er1
 
19786
  cat conftest.err >&5
8233
19787
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8234
19788
  (exit $ac_status); } &&
8235
 
         { ac_try='test -s conftest.$ac_objext'
 
19789
         { ac_try='test -z "$ac_c_werror_flag"
 
19790
                         || test ! -s conftest.err'
 
19791
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19792
  (eval $ac_try) 2>&5
 
19793
  ac_status=$?
 
19794
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19795
  (exit $ac_status); }; } &&
 
19796
         { ac_try='test -s conftest.$ac_objext'
8236
19797
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8237
19798
  (eval $ac_try) 2>&5
8238
19799
  ac_status=$?
8245
19806
 
8246
19807
ac_header_compiler=no
8247
19808
fi
8248
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
19809
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8249
19810
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8250
19811
echo "${ECHO_T}$ac_header_compiler" >&6
8251
19812
 
8253
19814
echo "$as_me:$LINENO: checking $ac_header presence" >&5
8254
19815
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8255
19816
cat >conftest.$ac_ext <<_ACEOF
8256
 
#line $LINENO "configure"
8257
19817
/* confdefs.h.  */
8258
19818
_ACEOF
8259
19819
cat confdefs.h >>conftest.$ac_ext
8271
19831
  (exit $ac_status); } >/dev/null; then
8272
19832
  if test -s conftest.err; then
8273
19833
    ac_cpp_err=$ac_c_preproc_warn_flag
 
19834
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8274
19835
  else
8275
19836
    ac_cpp_err=
8276
19837
  fi
8290
19851
echo "${ECHO_T}$ac_header_preproc" >&6
8291
19852
 
8292
19853
# So?  What about this header?
8293
 
case $ac_header_compiler:$ac_header_preproc in
8294
 
  yes:no )
 
19854
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
19855
  yes:no: )
8295
19856
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8296
19857
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8297
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8298
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8299
 
    (
8300
 
      cat <<\_ASBOX
8301
 
## ------------------------------------ ##
8302
 
## Report this to bug-autoconf@gnu.org. ##
8303
 
## ------------------------------------ ##
8304
 
_ASBOX
8305
 
    ) |
8306
 
      sed "s/^/$as_me: WARNING:     /" >&2
 
19858
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
19859
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
19860
    ac_header_preproc=yes
8307
19861
    ;;
8308
 
  no:yes )
 
19862
  no:yes:* )
8309
19863
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8310
19864
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8311
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8312
 
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
 
19865
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
19866
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
19867
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
19868
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
19869
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
19870
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8313
19871
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8314
19872
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
19873
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
19874
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8315
19875
    (
8316
19876
      cat <<\_ASBOX
8317
 
## ------------------------------------ ##
8318
 
## Report this to bug-autoconf@gnu.org. ##
8319
 
## ------------------------------------ ##
 
19877
## ---------------------------------------------------------------------- ##
 
19878
## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
 
19879
## ---------------------------------------------------------------------- ##
8320
19880
_ASBOX
8321
19881
    ) |
8322
19882
      sed "s/^/$as_me: WARNING:     /" >&2
8327
19887
if eval "test \"\${$as_ac_Header+set}\" = set"; then
8328
19888
  echo $ECHO_N "(cached) $ECHO_C" >&6
8329
19889
else
8330
 
  eval "$as_ac_Header=$ac_header_preproc"
 
19890
  eval "$as_ac_Header=\$ac_header_preproc"
8331
19891
fi
8332
19892
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8333
19893
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8353
19913
  echo $ECHO_N "(cached) $ECHO_C" >&6
8354
19914
else
8355
19915
  cat >conftest.$ac_ext <<_ACEOF
8356
 
#line $LINENO "configure"
8357
19916
/* confdefs.h.  */
8358
19917
_ACEOF
8359
19918
cat confdefs.h >>conftest.$ac_ext
8360
19919
cat >>conftest.$ac_ext <<_ACEOF
8361
19920
/* end confdefs.h.  */
 
19921
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
19922
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
19923
#define $ac_func innocuous_$ac_func
 
19924
 
8362
19925
/* System header to define __stub macros and hopefully few prototypes,
8363
19926
    which can conflict with char $ac_func (); below.
8364
19927
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8365
19928
    <limits.h> exists even on freestanding compilers.  */
 
19929
 
8366
19930
#ifdef __STDC__
8367
19931
# include <limits.h>
8368
19932
#else
8369
19933
# include <assert.h>
8370
19934
#endif
 
19935
 
 
19936
#undef $ac_func
 
19937
 
8371
19938
/* Override any gcc2 internal prototype to avoid an error.  */
8372
19939
#ifdef __cplusplus
8373
19940
extern "C"
8398
19965
_ACEOF
8399
19966
rm -f conftest.$ac_objext conftest$ac_exeext
8400
19967
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8401
 
  (eval $ac_link) 2>&5
 
19968
  (eval $ac_link) 2>conftest.er1
8402
19969
  ac_status=$?
 
19970
  grep -v '^ *+' conftest.er1 >conftest.err
 
19971
  rm -f conftest.er1
 
19972
  cat conftest.err >&5
8403
19973
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8404
19974
  (exit $ac_status); } &&
8405
 
         { ac_try='test -s conftest$ac_exeext'
 
19975
         { ac_try='test -z "$ac_c_werror_flag"
 
19976
                         || test ! -s conftest.err'
 
19977
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19978
  (eval $ac_try) 2>&5
 
19979
  ac_status=$?
 
19980
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19981
  (exit $ac_status); }; } &&
 
19982
         { ac_try='test -s conftest$ac_exeext'
8406
19983
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8407
19984
  (eval $ac_try) 2>&5
8408
19985
  ac_status=$?
8415
19992
 
8416
19993
eval "$as_ac_var=no"
8417
19994
fi
8418
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
19995
rm -f conftest.err conftest.$ac_objext \
 
19996
      conftest$ac_exeext conftest.$ac_ext
8419
19997
fi
8420
19998
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8421
19999
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8445
20023
      /* Some systems only have a dummy stub for fork() */
8446
20024
      int main ()
8447
20025
      {
8448
 
        if (fork() < 0)
8449
 
          exit (1);
8450
 
        exit (0);
 
20026
        if (fork() < 0)
 
20027
          exit (1);
 
20028
        exit (0);
8451
20029
      }
8452
20030
_ACEOF
8453
20031
rm -f conftest$ac_exeext
8470
20048
( exit $ac_status )
8471
20049
ac_cv_func_fork_works=no
8472
20050
fi
8473
 
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
20051
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8474
20052
fi
8475
20053
fi
8476
20054
echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
8503
20081
  ac_cv_func_vfork_works=cross
8504
20082
else
8505
20083
  cat >conftest.$ac_ext <<_ACEOF
8506
 
#line $LINENO "configure"
8507
20084
/* confdefs.h.  */
8508
20085
_ACEOF
8509
20086
cat confdefs.h >>conftest.$ac_ext
8625
20202
( exit $ac_status )
8626
20203
ac_cv_func_vfork_works=no
8627
20204
fi
8628
 
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
20205
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8629
20206
fi
8630
20207
fi
8631
20208
echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
8633
20210
 
8634
20211
fi;
8635
20212
if test "x$ac_cv_func_fork_works" = xcross; then
8636
 
  ac_cv_func_vfork_works=ac_cv_func_vfork
 
20213
  ac_cv_func_vfork_works=$ac_cv_func_vfork
8637
20214
  { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
8638
20215
echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
8639
20216
fi
8666
20243
  echo $ECHO_N "(cached) $ECHO_C" >&6
8667
20244
else
8668
20245
  cat >conftest.$ac_ext <<_ACEOF
8669
 
#line $LINENO "configure"
8670
20246
/* confdefs.h.  */
8671
20247
_ACEOF
8672
20248
cat confdefs.h >>conftest.$ac_ext
8673
20249
cat >>conftest.$ac_ext <<_ACEOF
8674
20250
/* end confdefs.h.  */
 
20251
/* Define mkstemp to an innocuous variant, in case <limits.h> declares mkstemp.
 
20252
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
20253
#define mkstemp innocuous_mkstemp
 
20254
 
8675
20255
/* System header to define __stub macros and hopefully few prototypes,
8676
20256
    which can conflict with char mkstemp (); below.
8677
20257
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8678
20258
    <limits.h> exists even on freestanding compilers.  */
 
20259
 
8679
20260
#ifdef __STDC__
8680
20261
# include <limits.h>
8681
20262
#else
8682
20263
# include <assert.h>
8683
20264
#endif
 
20265
 
 
20266
#undef mkstemp
 
20267
 
8684
20268
/* Override any gcc2 internal prototype to avoid an error.  */
8685
20269
#ifdef __cplusplus
8686
20270
extern "C"
8711
20295
_ACEOF
8712
20296
rm -f conftest.$ac_objext conftest$ac_exeext
8713
20297
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8714
 
  (eval $ac_link) 2>&5
 
20298
  (eval $ac_link) 2>conftest.er1
8715
20299
  ac_status=$?
 
20300
  grep -v '^ *+' conftest.er1 >conftest.err
 
20301
  rm -f conftest.er1
 
20302
  cat conftest.err >&5
8716
20303
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8717
20304
  (exit $ac_status); } &&
8718
 
         { ac_try='test -s conftest$ac_exeext'
 
20305
         { ac_try='test -z "$ac_c_werror_flag"
 
20306
                         || test ! -s conftest.err'
 
20307
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20308
  (eval $ac_try) 2>&5
 
20309
  ac_status=$?
 
20310
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20311
  (exit $ac_status); }; } &&
 
20312
         { ac_try='test -s conftest$ac_exeext'
8719
20313
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8720
20314
  (eval $ac_try) 2>&5
8721
20315
  ac_status=$?
8728
20322
 
8729
20323
ac_cv_func_mkstemp=no
8730
20324
fi
8731
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
20325
rm -f conftest.err conftest.$ac_objext \
 
20326
      conftest$ac_exeext conftest.$ac_ext
8732
20327
fi
8733
20328
echo "$as_me:$LINENO: result: $ac_cv_func_mkstemp" >&5
8734
20329
echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
8746
20341
  echo $ECHO_N "(cached) $ECHO_C" >&6
8747
20342
else
8748
20343
  cat >conftest.$ac_ext <<_ACEOF
8749
 
#line $LINENO "configure"
8750
20344
/* confdefs.h.  */
8751
20345
_ACEOF
8752
20346
cat confdefs.h >>conftest.$ac_ext
8753
20347
cat >>conftest.$ac_ext <<_ACEOF
8754
20348
/* end confdefs.h.  */
 
20349
/* Define getifaddrs to an innocuous variant, in case <limits.h> declares getifaddrs.
 
20350
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
20351
#define getifaddrs innocuous_getifaddrs
 
20352
 
8755
20353
/* System header to define __stub macros and hopefully few prototypes,
8756
20354
    which can conflict with char getifaddrs (); below.
8757
20355
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8758
20356
    <limits.h> exists even on freestanding compilers.  */
 
20357
 
8759
20358
#ifdef __STDC__
8760
20359
# include <limits.h>
8761
20360
#else
8762
20361
# include <assert.h>
8763
20362
#endif
 
20363
 
 
20364
#undef getifaddrs
 
20365
 
8764
20366
/* Override any gcc2 internal prototype to avoid an error.  */
8765
20367
#ifdef __cplusplus
8766
20368
extern "C"
8791
20393
_ACEOF
8792
20394
rm -f conftest.$ac_objext conftest$ac_exeext
8793
20395
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8794
 
  (eval $ac_link) 2>&5
 
20396
  (eval $ac_link) 2>conftest.er1
8795
20397
  ac_status=$?
 
20398
  grep -v '^ *+' conftest.er1 >conftest.err
 
20399
  rm -f conftest.er1
 
20400
  cat conftest.err >&5
8796
20401
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8797
20402
  (exit $ac_status); } &&
8798
 
         { ac_try='test -s conftest$ac_exeext'
 
20403
         { ac_try='test -z "$ac_c_werror_flag"
 
20404
                         || test ! -s conftest.err'
 
20405
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20406
  (eval $ac_try) 2>&5
 
20407
  ac_status=$?
 
20408
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20409
  (exit $ac_status); }; } &&
 
20410
         { ac_try='test -s conftest$ac_exeext'
8799
20411
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8800
20412
  (eval $ac_try) 2>&5
8801
20413
  ac_status=$?
8808
20420
 
8809
20421
ac_cv_func_getifaddrs=no
8810
20422
fi
8811
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
20423
rm -f conftest.err conftest.$ac_objext \
 
20424
      conftest$ac_exeext conftest.$ac_ext
8812
20425
fi
8813
20426
echo "$as_me:$LINENO: result: $ac_cv_func_getifaddrs" >&5
8814
20427
echo "${ECHO_T}$ac_cv_func_getifaddrs" >&6
8826
20439
  echo $ECHO_N "(cached) $ECHO_C" >&6
8827
20440
else
8828
20441
  cat >conftest.$ac_ext <<_ACEOF
8829
 
#line $LINENO "configure"
8830
20442
/* confdefs.h.  */
8831
20443
_ACEOF
8832
20444
cat confdefs.h >>conftest.$ac_ext
8833
20445
cat >>conftest.$ac_ext <<_ACEOF
8834
20446
/* end confdefs.h.  */
 
20447
/* Define getspnam to an innocuous variant, in case <limits.h> declares getspnam.
 
20448
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
20449
#define getspnam innocuous_getspnam
 
20450
 
8835
20451
/* System header to define __stub macros and hopefully few prototypes,
8836
20452
    which can conflict with char getspnam (); below.
8837
20453
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8838
20454
    <limits.h> exists even on freestanding compilers.  */
 
20455
 
8839
20456
#ifdef __STDC__
8840
20457
# include <limits.h>
8841
20458
#else
8842
20459
# include <assert.h>
8843
20460
#endif
 
20461
 
 
20462
#undef getspnam
 
20463
 
8844
20464
/* Override any gcc2 internal prototype to avoid an error.  */
8845
20465
#ifdef __cplusplus
8846
20466
extern "C"
8871
20491
_ACEOF
8872
20492
rm -f conftest.$ac_objext conftest$ac_exeext
8873
20493
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8874
 
  (eval $ac_link) 2>&5
 
20494
  (eval $ac_link) 2>conftest.er1
8875
20495
  ac_status=$?
 
20496
  grep -v '^ *+' conftest.er1 >conftest.err
 
20497
  rm -f conftest.er1
 
20498
  cat conftest.err >&5
8876
20499
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8877
20500
  (exit $ac_status); } &&
8878
 
         { ac_try='test -s conftest$ac_exeext'
 
20501
         { ac_try='test -z "$ac_c_werror_flag"
 
20502
                         || test ! -s conftest.err'
 
20503
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20504
  (eval $ac_try) 2>&5
 
20505
  ac_status=$?
 
20506
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20507
  (exit $ac_status); }; } &&
 
20508
         { ac_try='test -s conftest$ac_exeext'
8879
20509
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8880
20510
  (eval $ac_try) 2>&5
8881
20511
  ac_status=$?
8888
20518
 
8889
20519
ac_cv_func_getspnam=no
8890
20520
fi
8891
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
20521
rm -f conftest.err conftest.$ac_objext \
 
20522
      conftest$ac_exeext conftest.$ac_ext
8892
20523
fi
8893
20524
echo "$as_me:$LINENO: result: $ac_cv_func_getspnam" >&5
8894
20525
echo "${ECHO_T}$ac_cv_func_getspnam" >&6
8909
20540
  echo $ECHO_N "(cached) $ECHO_C" >&6
8910
20541
else
8911
20542
  cat >conftest.$ac_ext <<_ACEOF
8912
 
#line $LINENO "configure"
8913
20543
/* confdefs.h.  */
8914
20544
_ACEOF
8915
20545
cat confdefs.h >>conftest.$ac_ext
8916
20546
cat >>conftest.$ac_ext <<_ACEOF
8917
20547
/* end confdefs.h.  */
 
20548
/* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
 
20549
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
20550
#define setproctitle innocuous_setproctitle
 
20551
 
8918
20552
/* System header to define __stub macros and hopefully few prototypes,
8919
20553
    which can conflict with char setproctitle (); below.
8920
20554
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8921
20555
    <limits.h> exists even on freestanding compilers.  */
 
20556
 
8922
20557
#ifdef __STDC__
8923
20558
# include <limits.h>
8924
20559
#else
8925
20560
# include <assert.h>
8926
20561
#endif
 
20562
 
 
20563
#undef setproctitle
 
20564
 
8927
20565
/* Override any gcc2 internal prototype to avoid an error.  */
8928
20566
#ifdef __cplusplus
8929
20567
extern "C"
8954
20592
_ACEOF
8955
20593
rm -f conftest.$ac_objext conftest$ac_exeext
8956
20594
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8957
 
  (eval $ac_link) 2>&5
 
20595
  (eval $ac_link) 2>conftest.er1
8958
20596
  ac_status=$?
 
20597
  grep -v '^ *+' conftest.er1 >conftest.err
 
20598
  rm -f conftest.er1
 
20599
  cat conftest.err >&5
8959
20600
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8960
20601
  (exit $ac_status); } &&
8961
 
         { ac_try='test -s conftest$ac_exeext'
 
20602
         { ac_try='test -z "$ac_c_werror_flag"
 
20603
                         || test ! -s conftest.err'
 
20604
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20605
  (eval $ac_try) 2>&5
 
20606
  ac_status=$?
 
20607
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20608
  (exit $ac_status); }; } &&
 
20609
         { ac_try='test -s conftest$ac_exeext'
8962
20610
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8963
20611
  (eval $ac_try) 2>&5
8964
20612
  ac_status=$?
8971
20619
 
8972
20620
ac_cv_func_setproctitle=no
8973
20621
fi
8974
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
20622
rm -f conftest.err conftest.$ac_objext \
 
20623
      conftest$ac_exeext conftest.$ac_ext
8975
20624
fi
8976
20625
echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
8977
20626
echo "${ECHO_T}$ac_cv_func_setproctitle" >&6
8986
20635
  ac_check_lib_save_LIBS=$LIBS
8987
20636
LIBS="-lutil  $LIBS"
8988
20637
cat >conftest.$ac_ext <<_ACEOF
8989
 
#line $LINENO "configure"
8990
20638
/* confdefs.h.  */
8991
20639
_ACEOF
8992
20640
cat confdefs.h >>conftest.$ac_ext
9010
20658
_ACEOF
9011
20659
rm -f conftest.$ac_objext conftest$ac_exeext
9012
20660
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9013
 
  (eval $ac_link) 2>&5
 
20661
  (eval $ac_link) 2>conftest.er1
9014
20662
  ac_status=$?
 
20663
  grep -v '^ *+' conftest.er1 >conftest.err
 
20664
  rm -f conftest.er1
 
20665
  cat conftest.err >&5
9015
20666
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9016
20667
  (exit $ac_status); } &&
9017
 
         { ac_try='test -s conftest$ac_exeext'
 
20668
         { ac_try='test -z "$ac_c_werror_flag"
 
20669
                         || test ! -s conftest.err'
 
20670
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20671
  (eval $ac_try) 2>&5
 
20672
  ac_status=$?
 
20673
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20674
  (exit $ac_status); }; } &&
 
20675
         { ac_try='test -s conftest$ac_exeext'
9018
20676
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9019
20677
  (eval $ac_try) 2>&5
9020
20678
  ac_status=$?
9027
20685
 
9028
20686
ac_cv_lib_util_setproctitle=no
9029
20687
fi
9030
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
20688
rm -f conftest.err conftest.$ac_objext \
 
20689
      conftest$ac_exeext conftest.$ac_ext
9031
20690
LIBS=$ac_check_lib_save_LIBS
9032
20691
fi
9033
20692
echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
9053
20712
  echo $ECHO_N "(cached) $ECHO_C" >&6
9054
20713
else
9055
20714
  cat >conftest.$ac_ext <<_ACEOF
9056
 
#line $LINENO "configure"
9057
20715
/* confdefs.h.  */
9058
20716
_ACEOF
9059
20717
cat confdefs.h >>conftest.$ac_ext
9060
20718
cat >>conftest.$ac_ext <<_ACEOF
9061
20719
/* end confdefs.h.  */
 
20720
/* Define setusercontext to an innocuous variant, in case <limits.h> declares setusercontext.
 
20721
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
20722
#define setusercontext innocuous_setusercontext
 
20723
 
9062
20724
/* System header to define __stub macros and hopefully few prototypes,
9063
20725
    which can conflict with char setusercontext (); below.
9064
20726
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9065
20727
    <limits.h> exists even on freestanding compilers.  */
 
20728
 
9066
20729
#ifdef __STDC__
9067
20730
# include <limits.h>
9068
20731
#else
9069
20732
# include <assert.h>
9070
20733
#endif
 
20734
 
 
20735
#undef setusercontext
 
20736
 
9071
20737
/* Override any gcc2 internal prototype to avoid an error.  */
9072
20738
#ifdef __cplusplus
9073
20739
extern "C"
9098
20764
_ACEOF
9099
20765
rm -f conftest.$ac_objext conftest$ac_exeext
9100
20766
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9101
 
  (eval $ac_link) 2>&5
 
20767
  (eval $ac_link) 2>conftest.er1
9102
20768
  ac_status=$?
 
20769
  grep -v '^ *+' conftest.er1 >conftest.err
 
20770
  rm -f conftest.er1
 
20771
  cat conftest.err >&5
9103
20772
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9104
20773
  (exit $ac_status); } &&
9105
 
         { ac_try='test -s conftest$ac_exeext'
 
20774
         { ac_try='test -z "$ac_c_werror_flag"
 
20775
                         || test ! -s conftest.err'
 
20776
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20777
  (eval $ac_try) 2>&5
 
20778
  ac_status=$?
 
20779
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20780
  (exit $ac_status); }; } &&
 
20781
         { ac_try='test -s conftest$ac_exeext'
9106
20782
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9107
20783
  (eval $ac_try) 2>&5
9108
20784
  ac_status=$?
9115
20791
 
9116
20792
ac_cv_func_setusercontext=no
9117
20793
fi
9118
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
20794
rm -f conftest.err conftest.$ac_objext \
 
20795
      conftest$ac_exeext conftest.$ac_ext
9119
20796
fi
9120
20797
echo "$as_me:$LINENO: result: $ac_cv_func_setusercontext" >&5
9121
20798
echo "${ECHO_T}$ac_cv_func_setusercontext" >&6
9130
20807
  ac_check_lib_save_LIBS=$LIBS
9131
20808
LIBS="-lutil  $LIBS"
9132
20809
cat >conftest.$ac_ext <<_ACEOF
9133
 
#line $LINENO "configure"
9134
20810
/* confdefs.h.  */
9135
20811
_ACEOF
9136
20812
cat confdefs.h >>conftest.$ac_ext
9154
20830
_ACEOF
9155
20831
rm -f conftest.$ac_objext conftest$ac_exeext
9156
20832
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9157
 
  (eval $ac_link) 2>&5
 
20833
  (eval $ac_link) 2>conftest.er1
9158
20834
  ac_status=$?
 
20835
  grep -v '^ *+' conftest.er1 >conftest.err
 
20836
  rm -f conftest.er1
 
20837
  cat conftest.err >&5
9159
20838
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9160
20839
  (exit $ac_status); } &&
9161
 
         { ac_try='test -s conftest$ac_exeext'
 
20840
         { ac_try='test -z "$ac_c_werror_flag"
 
20841
                         || test ! -s conftest.err'
 
20842
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20843
  (eval $ac_try) 2>&5
 
20844
  ac_status=$?
 
20845
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20846
  (exit $ac_status); }; } &&
 
20847
         { ac_try='test -s conftest$ac_exeext'
9162
20848
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9163
20849
  (eval $ac_try) 2>&5
9164
20850
  ac_status=$?
9171
20857
 
9172
20858
ac_cv_lib_util_setusercontext=no
9173
20859
fi
9174
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
20860
rm -f conftest.err conftest.$ac_objext \
 
20861
      conftest$ac_exeext conftest.$ac_ext
9175
20862
LIBS=$ac_check_lib_save_LIBS
9176
20863
fi
9177
20864
echo "$as_me:$LINENO: result: $ac_cv_lib_util_setusercontext" >&5
9196
20883
  echo $ECHO_N "(cached) $ECHO_C" >&6
9197
20884
else
9198
20885
  cat >conftest.$ac_ext <<_ACEOF
9199
 
#line $LINENO "configure"
9200
20886
/* confdefs.h.  */
9201
20887
_ACEOF
9202
20888
cat confdefs.h >>conftest.$ac_ext
9223
20909
_ACEOF
9224
20910
rm -f conftest.$ac_objext
9225
20911
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9226
 
  (eval $ac_compile) 2>&5
 
20912
  (eval $ac_compile) 2>conftest.er1
9227
20913
  ac_status=$?
 
20914
  grep -v '^ *+' conftest.er1 >conftest.err
 
20915
  rm -f conftest.er1
 
20916
  cat conftest.err >&5
9228
20917
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9229
20918
  (exit $ac_status); } &&
9230
 
         { ac_try='test -s conftest.$ac_objext'
 
20919
         { ac_try='test -z "$ac_c_werror_flag"
 
20920
                         || test ! -s conftest.err'
 
20921
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20922
  (eval $ac_try) 2>&5
 
20923
  ac_status=$?
 
20924
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20925
  (exit $ac_status); }; } &&
 
20926
         { ac_try='test -s conftest.$ac_objext'
9231
20927
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9232
20928
  (eval $ac_try) 2>&5
9233
20929
  ac_status=$?
9240
20936
 
9241
20937
ac_cv_type_signal=int
9242
20938
fi
9243
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
20939
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9244
20940
fi
9245
20941
echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
9246
20942
echo "${ECHO_T}$ac_cv_type_signal" >&6
9296
20992
  ac_func_search_save_LIBS=$LIBS
9297
20993
ac_cv_search_socket=no
9298
20994
cat >conftest.$ac_ext <<_ACEOF
9299
 
#line $LINENO "configure"
9300
20995
/* confdefs.h.  */
9301
20996
_ACEOF
9302
20997
cat confdefs.h >>conftest.$ac_ext
9320
21015
_ACEOF
9321
21016
rm -f conftest.$ac_objext conftest$ac_exeext
9322
21017
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9323
 
  (eval $ac_link) 2>&5
 
21018
  (eval $ac_link) 2>conftest.er1
9324
21019
  ac_status=$?
 
21020
  grep -v '^ *+' conftest.er1 >conftest.err
 
21021
  rm -f conftest.er1
 
21022
  cat conftest.err >&5
9325
21023
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9326
21024
  (exit $ac_status); } &&
9327
 
         { ac_try='test -s conftest$ac_exeext'
 
21025
         { ac_try='test -z "$ac_c_werror_flag"
 
21026
                         || test ! -s conftest.err'
 
21027
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21028
  (eval $ac_try) 2>&5
 
21029
  ac_status=$?
 
21030
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21031
  (exit $ac_status); }; } &&
 
21032
         { ac_try='test -s conftest$ac_exeext'
9328
21033
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9329
21034
  (eval $ac_try) 2>&5
9330
21035
  ac_status=$?
9336
21041
sed 's/^/| /' conftest.$ac_ext >&5
9337
21042
 
9338
21043
fi
9339
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
21044
rm -f conftest.err conftest.$ac_objext \
 
21045
      conftest$ac_exeext conftest.$ac_ext
9340
21046
if test "$ac_cv_search_socket" = no; then
9341
21047
  for ac_lib in socket; do
9342
21048
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9343
21049
    cat >conftest.$ac_ext <<_ACEOF
9344
 
#line $LINENO "configure"
9345
21050
/* confdefs.h.  */
9346
21051
_ACEOF
9347
21052
cat confdefs.h >>conftest.$ac_ext
9365
21070
_ACEOF
9366
21071
rm -f conftest.$ac_objext conftest$ac_exeext
9367
21072
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9368
 
  (eval $ac_link) 2>&5
 
21073
  (eval $ac_link) 2>conftest.er1
9369
21074
  ac_status=$?
 
21075
  grep -v '^ *+' conftest.er1 >conftest.err
 
21076
  rm -f conftest.er1
 
21077
  cat conftest.err >&5
9370
21078
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9371
21079
  (exit $ac_status); } &&
9372
 
         { ac_try='test -s conftest$ac_exeext'
 
21080
         { ac_try='test -z "$ac_c_werror_flag"
 
21081
                         || test ! -s conftest.err'
 
21082
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21083
  (eval $ac_try) 2>&5
 
21084
  ac_status=$?
 
21085
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21086
  (exit $ac_status); }; } &&
 
21087
         { ac_try='test -s conftest$ac_exeext'
9373
21088
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9374
21089
  (eval $ac_try) 2>&5
9375
21090
  ac_status=$?
9382
21097
sed 's/^/| /' conftest.$ac_ext >&5
9383
21098
 
9384
21099
fi
9385
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
21100
rm -f conftest.err conftest.$ac_objext \
 
21101
      conftest$ac_exeext conftest.$ac_ext
9386
21102
  done
9387
21103
fi
9388
21104
LIBS=$ac_func_search_save_LIBS
9402
21118
  ac_func_search_save_LIBS=$LIBS
9403
21119
ac_cv_search_gethostbyname=no
9404
21120
cat >conftest.$ac_ext <<_ACEOF
9405
 
#line $LINENO "configure"
9406
21121
/* confdefs.h.  */
9407
21122
_ACEOF
9408
21123
cat confdefs.h >>conftest.$ac_ext
9426
21141
_ACEOF
9427
21142
rm -f conftest.$ac_objext conftest$ac_exeext
9428
21143
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9429
 
  (eval $ac_link) 2>&5
 
21144
  (eval $ac_link) 2>conftest.er1
9430
21145
  ac_status=$?
 
21146
  grep -v '^ *+' conftest.er1 >conftest.err
 
21147
  rm -f conftest.er1
 
21148
  cat conftest.err >&5
9431
21149
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9432
21150
  (exit $ac_status); } &&
9433
 
         { ac_try='test -s conftest$ac_exeext'
 
21151
         { ac_try='test -z "$ac_c_werror_flag"
 
21152
                         || test ! -s conftest.err'
 
21153
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21154
  (eval $ac_try) 2>&5
 
21155
  ac_status=$?
 
21156
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21157
  (exit $ac_status); }; } &&
 
21158
         { ac_try='test -s conftest$ac_exeext'
9434
21159
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9435
21160
  (eval $ac_try) 2>&5
9436
21161
  ac_status=$?
9442
21167
sed 's/^/| /' conftest.$ac_ext >&5
9443
21168
 
9444
21169
fi
9445
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
21170
rm -f conftest.err conftest.$ac_objext \
 
21171
      conftest$ac_exeext conftest.$ac_ext
9446
21172
if test "$ac_cv_search_gethostbyname" = no; then
9447
21173
  for ac_lib in nsl; do
9448
21174
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9449
21175
    cat >conftest.$ac_ext <<_ACEOF
9450
 
#line $LINENO "configure"
9451
21176
/* confdefs.h.  */
9452
21177
_ACEOF
9453
21178
cat confdefs.h >>conftest.$ac_ext
9471
21196
_ACEOF
9472
21197
rm -f conftest.$ac_objext conftest$ac_exeext
9473
21198
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9474
 
  (eval $ac_link) 2>&5
 
21199
  (eval $ac_link) 2>conftest.er1
9475
21200
  ac_status=$?
 
21201
  grep -v '^ *+' conftest.er1 >conftest.err
 
21202
  rm -f conftest.er1
 
21203
  cat conftest.err >&5
9476
21204
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9477
21205
  (exit $ac_status); } &&
9478
 
         { ac_try='test -s conftest$ac_exeext'
 
21206
         { ac_try='test -z "$ac_c_werror_flag"
 
21207
                         || test ! -s conftest.err'
 
21208
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21209
  (eval $ac_try) 2>&5
 
21210
  ac_status=$?
 
21211
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21212
  (exit $ac_status); }; } &&
 
21213
         { ac_try='test -s conftest$ac_exeext'
9479
21214
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9480
21215
  (eval $ac_try) 2>&5
9481
21216
  ac_status=$?
9488
21223
sed 's/^/| /' conftest.$ac_ext >&5
9489
21224
 
9490
21225
fi
9491
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
21226
rm -f conftest.err conftest.$ac_objext \
 
21227
      conftest$ac_exeext conftest.$ac_ext
9492
21228
  done
9493
21229
fi
9494
21230
LIBS=$ac_func_search_save_LIBS
9513
21249
  echo $ECHO_N "(cached) $ECHO_C" >&6
9514
21250
else
9515
21251
  cat >conftest.$ac_ext <<_ACEOF
9516
 
#line $LINENO "configure"
9517
21252
/* confdefs.h.  */
9518
21253
_ACEOF
9519
21254
cat confdefs.h >>conftest.$ac_ext
9520
21255
cat >>conftest.$ac_ext <<_ACEOF
9521
21256
/* end confdefs.h.  */
 
21257
/* Define getaddrinfo to an innocuous variant, in case <limits.h> declares getaddrinfo.
 
21258
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
21259
#define getaddrinfo innocuous_getaddrinfo
 
21260
 
9522
21261
/* System header to define __stub macros and hopefully few prototypes,
9523
21262
    which can conflict with char getaddrinfo (); below.
9524
21263
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9525
21264
    <limits.h> exists even on freestanding compilers.  */
 
21265
 
9526
21266
#ifdef __STDC__
9527
21267
# include <limits.h>
9528
21268
#else
9529
21269
# include <assert.h>
9530
21270
#endif
 
21271
 
 
21272
#undef getaddrinfo
 
21273
 
9531
21274
/* Override any gcc2 internal prototype to avoid an error.  */
9532
21275
#ifdef __cplusplus
9533
21276
extern "C"
9558
21301
_ACEOF
9559
21302
rm -f conftest.$ac_objext conftest$ac_exeext
9560
21303
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9561
 
  (eval $ac_link) 2>&5
 
21304
  (eval $ac_link) 2>conftest.er1
9562
21305
  ac_status=$?
 
21306
  grep -v '^ *+' conftest.er1 >conftest.err
 
21307
  rm -f conftest.er1
 
21308
  cat conftest.err >&5
9563
21309
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9564
21310
  (exit $ac_status); } &&
9565
 
         { ac_try='test -s conftest$ac_exeext'
 
21311
         { ac_try='test -z "$ac_c_werror_flag"
 
21312
                         || test ! -s conftest.err'
 
21313
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21314
  (eval $ac_try) 2>&5
 
21315
  ac_status=$?
 
21316
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21317
  (exit $ac_status); }; } &&
 
21318
         { ac_try='test -s conftest$ac_exeext'
9566
21319
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9567
21320
  (eval $ac_try) 2>&5
9568
21321
  ac_status=$?
9575
21328
 
9576
21329
ac_cv_func_getaddrinfo=no
9577
21330
fi
9578
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
21331
rm -f conftest.err conftest.$ac_objext \
 
21332
      conftest$ac_exeext conftest.$ac_ext
9579
21333
fi
9580
21334
echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo" >&5
9581
21335
echo "${ECHO_T}$ac_cv_func_getaddrinfo" >&6
9605
21359
  echo $ECHO_N "(cached) $ECHO_C" >&6
9606
21360
else
9607
21361
  cat >conftest.$ac_ext <<_ACEOF
9608
 
#line $LINENO "configure"
9609
21362
/* confdefs.h.  */
9610
21363
_ACEOF
9611
21364
cat confdefs.h >>conftest.$ac_ext
9629
21382
_ACEOF
9630
21383
rm -f conftest.$ac_objext
9631
21384
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9632
 
  (eval $ac_compile) 2>&5
 
21385
  (eval $ac_compile) 2>conftest.er1
9633
21386
  ac_status=$?
 
21387
  grep -v '^ *+' conftest.er1 >conftest.err
 
21388
  rm -f conftest.er1
 
21389
  cat conftest.err >&5
9634
21390
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9635
21391
  (exit $ac_status); } &&
9636
 
         { ac_try='test -s conftest.$ac_objext'
 
21392
         { ac_try='test -z "$ac_c_werror_flag"
 
21393
                         || test ! -s conftest.err'
 
21394
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21395
  (eval $ac_try) 2>&5
 
21396
  ac_status=$?
 
21397
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21398
  (exit $ac_status); }; } &&
 
21399
         { ac_try='test -s conftest.$ac_objext'
9637
21400
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9638
21401
  (eval $ac_try) 2>&5
9639
21402
  ac_status=$?
9645
21408
sed 's/^/| /' conftest.$ac_ext >&5
9646
21409
 
9647
21410
cat >conftest.$ac_ext <<_ACEOF
9648
 
#line $LINENO "configure"
9649
21411
/* confdefs.h.  */
9650
21412
_ACEOF
9651
21413
cat confdefs.h >>conftest.$ac_ext
9669
21431
_ACEOF
9670
21432
rm -f conftest.$ac_objext
9671
21433
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9672
 
  (eval $ac_compile) 2>&5
 
21434
  (eval $ac_compile) 2>conftest.er1
9673
21435
  ac_status=$?
 
21436
  grep -v '^ *+' conftest.er1 >conftest.err
 
21437
  rm -f conftest.er1
 
21438
  cat conftest.err >&5
9674
21439
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675
21440
  (exit $ac_status); } &&
9676
 
         { ac_try='test -s conftest.$ac_objext'
 
21441
         { ac_try='test -z "$ac_c_werror_flag"
 
21442
                         || test ! -s conftest.err'
 
21443
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21444
  (eval $ac_try) 2>&5
 
21445
  ac_status=$?
 
21446
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21447
  (exit $ac_status); }; } &&
 
21448
         { ac_try='test -s conftest.$ac_objext'
9677
21449
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9678
21450
  (eval $ac_try) 2>&5
9679
21451
  ac_status=$?
9686
21458
 
9687
21459
ac_cv_member_struct_sockaddr_in_sin_len=no
9688
21460
fi
9689
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
21461
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9690
21462
fi
9691
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
21463
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9692
21464
fi
9693
21465
echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in_sin_len" >&5
9694
21466
echo "${ECHO_T}$ac_cv_member_struct_sockaddr_in_sin_len" >&6
9725
21497
  echo $ECHO_N "(cached) $ECHO_C" >&6
9726
21498
else
9727
21499
  cat >conftest.$ac_ext <<_ACEOF
9728
 
#line $LINENO "configure"
9729
21500
/* confdefs.h.  */
9730
21501
_ACEOF
9731
21502
cat confdefs.h >>conftest.$ac_ext
9732
21503
cat >>conftest.$ac_ext <<_ACEOF
9733
21504
/* end confdefs.h.  */
 
21505
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
21506
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
21507
#define $ac_func innocuous_$ac_func
 
21508
 
9734
21509
/* System header to define __stub macros and hopefully few prototypes,
9735
21510
    which can conflict with char $ac_func (); below.
9736
21511
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9737
21512
    <limits.h> exists even on freestanding compilers.  */
 
21513
 
9738
21514
#ifdef __STDC__
9739
21515
# include <limits.h>
9740
21516
#else
9741
21517
# include <assert.h>
9742
21518
#endif
 
21519
 
 
21520
#undef $ac_func
 
21521
 
9743
21522
/* Override any gcc2 internal prototype to avoid an error.  */
9744
21523
#ifdef __cplusplus
9745
21524
extern "C"
9770
21549
_ACEOF
9771
21550
rm -f conftest.$ac_objext conftest$ac_exeext
9772
21551
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9773
 
  (eval $ac_link) 2>&5
 
21552
  (eval $ac_link) 2>conftest.er1
9774
21553
  ac_status=$?
 
21554
  grep -v '^ *+' conftest.er1 >conftest.err
 
21555
  rm -f conftest.er1
 
21556
  cat conftest.err >&5
9775
21557
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9776
21558
  (exit $ac_status); } &&
9777
 
         { ac_try='test -s conftest$ac_exeext'
 
21559
         { ac_try='test -z "$ac_c_werror_flag"
 
21560
                         || test ! -s conftest.err'
 
21561
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21562
  (eval $ac_try) 2>&5
 
21563
  ac_status=$?
 
21564
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21565
  (exit $ac_status); }; } &&
 
21566
         { ac_try='test -s conftest$ac_exeext'
9778
21567
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9779
21568
  (eval $ac_try) 2>&5
9780
21569
  ac_status=$?
9787
21576
 
9788
21577
eval "$as_ac_var=no"
9789
21578
fi
9790
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
21579
rm -f conftest.err conftest.$ac_objext \
 
21580
      conftest$ac_exeext conftest.$ac_ext
9791
21581
fi
9792
21582
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9793
21583
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9815
21605
  ac_func_search_save_LIBS=$LIBS
9816
21606
ac_cv_search_getsecretkey=no
9817
21607
cat >conftest.$ac_ext <<_ACEOF
9818
 
#line $LINENO "configure"
9819
21608
/* confdefs.h.  */
9820
21609
_ACEOF
9821
21610
cat confdefs.h >>conftest.$ac_ext
9839
21628
_ACEOF
9840
21629
rm -f conftest.$ac_objext conftest$ac_exeext
9841
21630
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9842
 
  (eval $ac_link) 2>&5
 
21631
  (eval $ac_link) 2>conftest.er1
9843
21632
  ac_status=$?
 
21633
  grep -v '^ *+' conftest.er1 >conftest.err
 
21634
  rm -f conftest.er1
 
21635
  cat conftest.err >&5
9844
21636
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845
21637
  (exit $ac_status); } &&
9846
 
         { ac_try='test -s conftest$ac_exeext'
 
21638
         { ac_try='test -z "$ac_c_werror_flag"
 
21639
                         || test ! -s conftest.err'
 
21640
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21641
  (eval $ac_try) 2>&5
 
21642
  ac_status=$?
 
21643
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21644
  (exit $ac_status); }; } &&
 
21645
         { ac_try='test -s conftest$ac_exeext'
9847
21646
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9848
21647
  (eval $ac_try) 2>&5
9849
21648
  ac_status=$?
9855
21654
sed 's/^/| /' conftest.$ac_ext >&5
9856
21655
 
9857
21656
fi
9858
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
21657
rm -f conftest.err conftest.$ac_objext \
 
21658
      conftest$ac_exeext conftest.$ac_ext
9859
21659
if test "$ac_cv_search_getsecretkey" = no; then
9860
21660
  for ac_lib in rpcsvc; do
9861
21661
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9862
21662
    cat >conftest.$ac_ext <<_ACEOF
9863
 
#line $LINENO "configure"
9864
21663
/* confdefs.h.  */
9865
21664
_ACEOF
9866
21665
cat confdefs.h >>conftest.$ac_ext
9884
21683
_ACEOF
9885
21684
rm -f conftest.$ac_objext conftest$ac_exeext
9886
21685
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9887
 
  (eval $ac_link) 2>&5
 
21686
  (eval $ac_link) 2>conftest.er1
9888
21687
  ac_status=$?
 
21688
  grep -v '^ *+' conftest.er1 >conftest.err
 
21689
  rm -f conftest.er1
 
21690
  cat conftest.err >&5
9889
21691
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9890
21692
  (exit $ac_status); } &&
9891
 
         { ac_try='test -s conftest$ac_exeext'
 
21693
         { ac_try='test -z "$ac_c_werror_flag"
 
21694
                         || test ! -s conftest.err'
 
21695
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21696
  (eval $ac_try) 2>&5
 
21697
  ac_status=$?
 
21698
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21699
  (exit $ac_status); }; } &&
 
21700
         { ac_try='test -s conftest$ac_exeext'
9892
21701
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9893
21702
  (eval $ac_try) 2>&5
9894
21703
  ac_status=$?
9901
21710
sed 's/^/| /' conftest.$ac_ext >&5
9902
21711
 
9903
21712
fi
9904
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
21713
rm -f conftest.err conftest.$ac_objext \
 
21714
      conftest$ac_exeext conftest.$ac_ext
9905
21715
  done
9906
21716
fi
9907
21717
LIBS=$ac_func_search_save_LIBS
9967
21777
  ac_func_search_save_LIBS=$LIBS
9968
21778
ac_cv_search_pam_open_session=no
9969
21779
cat >conftest.$ac_ext <<_ACEOF
9970
 
#line $LINENO "configure"
9971
21780
/* confdefs.h.  */
9972
21781
_ACEOF
9973
21782
cat confdefs.h >>conftest.$ac_ext
9991
21800
_ACEOF
9992
21801
rm -f conftest.$ac_objext conftest$ac_exeext
9993
21802
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9994
 
  (eval $ac_link) 2>&5
 
21803
  (eval $ac_link) 2>conftest.er1
9995
21804
  ac_status=$?
 
21805
  grep -v '^ *+' conftest.er1 >conftest.err
 
21806
  rm -f conftest.er1
 
21807
  cat conftest.err >&5
9996
21808
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9997
21809
  (exit $ac_status); } &&
9998
 
         { ac_try='test -s conftest$ac_exeext'
 
21810
         { ac_try='test -z "$ac_c_werror_flag"
 
21811
                         || test ! -s conftest.err'
 
21812
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21813
  (eval $ac_try) 2>&5
 
21814
  ac_status=$?
 
21815
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21816
  (exit $ac_status); }; } &&
 
21817
         { ac_try='test -s conftest$ac_exeext'
9999
21818
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10000
21819
  (eval $ac_try) 2>&5
10001
21820
  ac_status=$?
10007
21826
sed 's/^/| /' conftest.$ac_ext >&5
10008
21827
 
10009
21828
fi
10010
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
21829
rm -f conftest.err conftest.$ac_objext \
 
21830
      conftest$ac_exeext conftest.$ac_ext
10011
21831
if test "$ac_cv_search_pam_open_session" = no; then
10012
21832
  for ac_lib in pam; do
10013
21833
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10014
21834
    cat >conftest.$ac_ext <<_ACEOF
10015
 
#line $LINENO "configure"
10016
21835
/* confdefs.h.  */
10017
21836
_ACEOF
10018
21837
cat confdefs.h >>conftest.$ac_ext
10036
21855
_ACEOF
10037
21856
rm -f conftest.$ac_objext conftest$ac_exeext
10038
21857
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10039
 
  (eval $ac_link) 2>&5
 
21858
  (eval $ac_link) 2>conftest.er1
10040
21859
  ac_status=$?
 
21860
  grep -v '^ *+' conftest.er1 >conftest.err
 
21861
  rm -f conftest.er1
 
21862
  cat conftest.err >&5
10041
21863
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10042
21864
  (exit $ac_status); } &&
10043
 
         { ac_try='test -s conftest$ac_exeext'
 
21865
         { ac_try='test -z "$ac_c_werror_flag"
 
21866
                         || test ! -s conftest.err'
 
21867
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21868
  (eval $ac_try) 2>&5
 
21869
  ac_status=$?
 
21870
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21871
  (exit $ac_status); }; } &&
 
21872
         { ac_try='test -s conftest$ac_exeext'
10044
21873
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10045
21874
  (eval $ac_try) 2>&5
10046
21875
  ac_status=$?
10053
21882
sed 's/^/| /' conftest.$ac_ext >&5
10054
21883
 
10055
21884
fi
10056
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
21885
rm -f conftest.err conftest.$ac_objext \
 
21886
      conftest$ac_exeext conftest.$ac_ext
10057
21887
  done
10058
21888
fi
10059
21889
LIBS=$ac_func_search_save_LIBS
10071
21901
  echo $ECHO_N "(cached) $ECHO_C" >&6
10072
21902
else
10073
21903
  cat >conftest.$ac_ext <<_ACEOF
10074
 
#line $LINENO "configure"
10075
21904
/* confdefs.h.  */
10076
21905
_ACEOF
10077
21906
cat confdefs.h >>conftest.$ac_ext
10078
21907
cat >>conftest.$ac_ext <<_ACEOF
10079
21908
/* end confdefs.h.  */
 
21909
/* Define pam_open_session to an innocuous variant, in case <limits.h> declares pam_open_session.
 
21910
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
21911
#define pam_open_session innocuous_pam_open_session
 
21912
 
10080
21913
/* System header to define __stub macros and hopefully few prototypes,
10081
21914
    which can conflict with char pam_open_session (); below.
10082
21915
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10083
21916
    <limits.h> exists even on freestanding compilers.  */
 
21917
 
10084
21918
#ifdef __STDC__
10085
21919
# include <limits.h>
10086
21920
#else
10087
21921
# include <assert.h>
10088
21922
#endif
 
21923
 
 
21924
#undef pam_open_session
 
21925
 
10089
21926
/* Override any gcc2 internal prototype to avoid an error.  */
10090
21927
#ifdef __cplusplus
10091
21928
extern "C"
10116
21953
_ACEOF
10117
21954
rm -f conftest.$ac_objext conftest$ac_exeext
10118
21955
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10119
 
  (eval $ac_link) 2>&5
 
21956
  (eval $ac_link) 2>conftest.er1
10120
21957
  ac_status=$?
 
21958
  grep -v '^ *+' conftest.er1 >conftest.err
 
21959
  rm -f conftest.er1
 
21960
  cat conftest.err >&5
10121
21961
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122
21962
  (exit $ac_status); } &&
10123
 
         { ac_try='test -s conftest$ac_exeext'
 
21963
         { ac_try='test -z "$ac_c_werror_flag"
 
21964
                         || test ! -s conftest.err'
 
21965
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21966
  (eval $ac_try) 2>&5
 
21967
  ac_status=$?
 
21968
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21969
  (exit $ac_status); }; } &&
 
21970
         { ac_try='test -s conftest$ac_exeext'
10124
21971
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10125
21972
  (eval $ac_try) 2>&5
10126
21973
  ac_status=$?
10133
21980
 
10134
21981
ac_cv_func_pam_open_session=no
10135
21982
fi
10136
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
21983
rm -f conftest.err conftest.$ac_objext \
 
21984
      conftest$ac_exeext conftest.$ac_ext
10137
21985
fi
10138
21986
echo "$as_me:$LINENO: result: $ac_cv_func_pam_open_session" >&5
10139
21987
echo "${ECHO_T}$ac_cv_func_pam_open_session" >&6
10263
22111
  echo $ECHO_N "(cached) $ECHO_C" >&6
10264
22112
else
10265
22113
  cat >conftest.$ac_ext <<_ACEOF
10266
 
#line $LINENO "configure"
10267
22114
/* confdefs.h.  */
10268
22115
_ACEOF
10269
22116
cat confdefs.h >>conftest.$ac_ext
10270
22117
cat >>conftest.$ac_ext <<_ACEOF
10271
22118
/* end confdefs.h.  */
 
22119
/* Define arc4random to an innocuous variant, in case <limits.h> declares arc4random.
 
22120
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
22121
#define arc4random innocuous_arc4random
 
22122
 
10272
22123
/* System header to define __stub macros and hopefully few prototypes,
10273
22124
    which can conflict with char arc4random (); below.
10274
22125
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10275
22126
    <limits.h> exists even on freestanding compilers.  */
 
22127
 
10276
22128
#ifdef __STDC__
10277
22129
# include <limits.h>
10278
22130
#else
10279
22131
# include <assert.h>
10280
22132
#endif
 
22133
 
 
22134
#undef arc4random
 
22135
 
10281
22136
/* Override any gcc2 internal prototype to avoid an error.  */
10282
22137
#ifdef __cplusplus
10283
22138
extern "C"
10308
22163
_ACEOF
10309
22164
rm -f conftest.$ac_objext conftest$ac_exeext
10310
22165
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10311
 
  (eval $ac_link) 2>&5
 
22166
  (eval $ac_link) 2>conftest.er1
10312
22167
  ac_status=$?
 
22168
  grep -v '^ *+' conftest.er1 >conftest.err
 
22169
  rm -f conftest.er1
 
22170
  cat conftest.err >&5
10313
22171
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10314
22172
  (exit $ac_status); } &&
10315
 
         { ac_try='test -s conftest$ac_exeext'
 
22173
         { ac_try='test -z "$ac_c_werror_flag"
 
22174
                         || test ! -s conftest.err'
 
22175
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22176
  (eval $ac_try) 2>&5
 
22177
  ac_status=$?
 
22178
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22179
  (exit $ac_status); }; } &&
 
22180
         { ac_try='test -s conftest$ac_exeext'
10316
22181
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10317
22182
  (eval $ac_try) 2>&5
10318
22183
  ac_status=$?
10325
22190
 
10326
22191
ac_cv_func_arc4random=no
10327
22192
fi
10328
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
22193
rm -f conftest.err conftest.$ac_objext \
 
22194
      conftest$ac_exeext conftest.$ac_ext
10329
22195
fi
10330
22196
echo "$as_me:$LINENO: result: $ac_cv_func_arc4random" >&5
10331
22197
echo "${ECHO_T}$ac_cv_func_arc4random" >&6
10393
22259
 
10394
22260
 
10395
22261
 
 
22262
# Check whether --with-xdmscriptdir or --without-xdmscriptdir was given.
 
22263
if test "${with_xdmscriptdir+set}" = set; then
 
22264
  withval="$with_xdmscriptdir"
 
22265
  XDMSCRIPTDIR="$withval"
 
22266
else
 
22267
  XDMSCRIPTDIR="${XDMLIBDIR}"
 
22268
fi;
 
22269
 
 
22270
 
 
22271
 
10396
22272
# Check whether --with-logdir or --without-logdir was given.
10397
22273
if test "${with_logdir+set}" = set; then
10398
22274
  withval="$with_logdir"
10551
22427
echo $ECHO_N "checking for XDM... $ECHO_C" >&6
10552
22428
 
10553
22429
if test -n "$PKG_CONFIG"; then
 
22430
    if test -n "$XDM_CFLAGS"; then
 
22431
        pkg_cv_XDM_CFLAGS="$XDM_CFLAGS"
 
22432
    else
10554
22433
        if test -n "$PKG_CONFIG" && \
10555
22434
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xmu x11 xau\"") >&5
10556
22435
  ($PKG_CONFIG --exists --print-errors "xmu x11 xau") 2>&5
10561
22440
else
10562
22441
  pkg_failed=yes
10563
22442
fi
 
22443
    fi
10564
22444
else
10565
22445
        pkg_failed=untried
10566
22446
fi
10567
22447
if test -n "$PKG_CONFIG"; then
 
22448
    if test -n "$XDM_LIBS"; then
 
22449
        pkg_cv_XDM_LIBS="$XDM_LIBS"
 
22450
    else
10568
22451
        if test -n "$PKG_CONFIG" && \
10569
22452
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xmu x11 xau\"") >&5
10570
22453
  ($PKG_CONFIG --exists --print-errors "xmu x11 xau") 2>&5
10575
22458
else
10576
22459
  pkg_failed=yes
10577
22460
fi
 
22461
    fi
10578
22462
else
10579
22463
        pkg_failed=untried
10580
22464
fi
10581
22465
 
 
22466
 
 
22467
 
10582
22468
if test $pkg_failed = yes; then
10583
 
        XDM_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xmu x11 xau"`
 
22469
 
 
22470
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
22471
        _pkg_short_errors_supported=yes
 
22472
else
 
22473
        _pkg_short_errors_supported=no
 
22474
fi
 
22475
        if test $_pkg_short_errors_supported = yes; then
 
22476
                XDM_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xmu x11 xau"`
 
22477
        else
 
22478
                XDM_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xmu x11 xau"`
 
22479
        fi
10584
22480
        # Put the nasty error message in config.log where it belongs
10585
 
        echo "$XDM_PKG_ERRORS" 1>&5
10586
 
 
10587
 
        { { echo "$as_me:$LINENO: error: Package requirements (xmu x11 xau) were not met.
10588
 
Consider adjusting the PKG_CONFIG_PATH environment variable if you
10589
 
installed software in a non-standard prefix.
10590
 
 
10591
 
Alternatively you may set the XDM_CFLAGS and XDM_LIBS environment variables
10592
 
to avoid the need to call pkg-config.  See the pkg-config man page for
10593
 
more details." >&5
10594
 
echo "$as_me: error: Package requirements (xmu x11 xau) were not met.
10595
 
Consider adjusting the PKG_CONFIG_PATH environment variable if you
10596
 
installed software in a non-standard prefix.
10597
 
 
10598
 
Alternatively you may set the XDM_CFLAGS and XDM_LIBS environment variables
10599
 
to avoid the need to call pkg-config.  See the pkg-config man page for
10600
 
more details." >&2;}
 
22481
        echo "$XDM_PKG_ERRORS" >&5
 
22482
 
 
22483
        { { echo "$as_me:$LINENO: error: Package requirements (xmu x11 xau) were not met:
 
22484
 
 
22485
$XDM_PKG_ERRORS
 
22486
 
 
22487
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
22488
installed software in a non-standard prefix.
 
22489
 
 
22490
Alternatively, you may set the environment variables XDM_CFLAGS
 
22491
and XDM_LIBS to avoid the need to call pkg-config.
 
22492
See the pkg-config man page for more details.
 
22493
" >&5
 
22494
echo "$as_me: error: Package requirements (xmu x11 xau) were not met:
 
22495
 
 
22496
$XDM_PKG_ERRORS
 
22497
 
 
22498
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
22499
installed software in a non-standard prefix.
 
22500
 
 
22501
Alternatively, you may set the environment variables XDM_CFLAGS
 
22502
and XDM_LIBS to avoid the need to call pkg-config.
 
22503
See the pkg-config man page for more details.
 
22504
" >&2;}
10601
22505
   { (exit 1); exit 1; }; }
10602
22506
elif test $pkg_failed = untried; then
10603
22507
        { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
10604
22508
is in your PATH or set the PKG_CONFIG environment variable to the full
10605
22509
path to pkg-config.
10606
22510
 
10607
 
Alternatively you may set the XDM_CFLAGS and XDM_LIBS environment variables
10608
 
to avoid the need to call pkg-config.  See the pkg-config man page for
10609
 
more details.
 
22511
Alternatively, you may set the environment variables XDM_CFLAGS
 
22512
and XDM_LIBS to avoid the need to call pkg-config.
 
22513
See the pkg-config man page for more details.
10610
22514
 
10611
22515
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
10612
22516
See \`config.log' for more details." >&5
10614
22518
is in your PATH or set the PKG_CONFIG environment variable to the full
10615
22519
path to pkg-config.
10616
22520
 
10617
 
Alternatively you may set the XDM_CFLAGS and XDM_LIBS environment variables
10618
 
to avoid the need to call pkg-config.  See the pkg-config man page for
10619
 
more details.
 
22521
Alternatively, you may set the environment variables XDM_CFLAGS
 
22522
and XDM_LIBS to avoid the need to call pkg-config.
 
22523
See the pkg-config man page for more details.
10620
22524
 
10621
22525
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
10622
22526
See \`config.log' for more details." >&2;}
10649
22553
echo $ECHO_N "checking for XINERAMA... $ECHO_C" >&6
10650
22554
 
10651
22555
if test -n "$PKG_CONFIG"; then
 
22556
    if test -n "$XINERAMA_CFLAGS"; then
 
22557
        pkg_cv_XINERAMA_CFLAGS="$XINERAMA_CFLAGS"
 
22558
    else
10652
22559
        if test -n "$PKG_CONFIG" && \
10653
22560
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xinerama\"") >&5
10654
22561
  ($PKG_CONFIG --exists --print-errors "xinerama") 2>&5
10659
22566
else
10660
22567
  pkg_failed=yes
10661
22568
fi
 
22569
    fi
10662
22570
else
10663
22571
        pkg_failed=untried
10664
22572
fi
10665
22573
if test -n "$PKG_CONFIG"; then
 
22574
    if test -n "$XINERAMA_LIBS"; then
 
22575
        pkg_cv_XINERAMA_LIBS="$XINERAMA_LIBS"
 
22576
    else
10666
22577
        if test -n "$PKG_CONFIG" && \
10667
22578
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xinerama\"") >&5
10668
22579
  ($PKG_CONFIG --exists --print-errors "xinerama") 2>&5
10673
22584
else
10674
22585
  pkg_failed=yes
10675
22586
fi
 
22587
    fi
10676
22588
else
10677
22589
        pkg_failed=untried
10678
22590
fi
10679
22591
 
 
22592
 
 
22593
 
10680
22594
if test $pkg_failed = yes; then
10681
 
        XINERAMA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xinerama"`
 
22595
 
 
22596
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
22597
        _pkg_short_errors_supported=yes
 
22598
else
 
22599
        _pkg_short_errors_supported=no
 
22600
fi
 
22601
        if test $_pkg_short_errors_supported = yes; then
 
22602
                XINERAMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xinerama"`
 
22603
        else
 
22604
                XINERAMA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xinerama"`
 
22605
        fi
10682
22606
        # Put the nasty error message in config.log where it belongs
10683
 
        echo "$XINERAMA_PKG_ERRORS" 1>&5
10684
 
 
10685
 
        { { echo "$as_me:$LINENO: error: Package requirements (xinerama) were not met.
10686
 
Consider adjusting the PKG_CONFIG_PATH environment variable if you
10687
 
installed software in a non-standard prefix.
10688
 
 
10689
 
Alternatively you may set the XINERAMA_CFLAGS and XINERAMA_LIBS environment variables
10690
 
to avoid the need to call pkg-config.  See the pkg-config man page for
10691
 
more details." >&5
10692
 
echo "$as_me: error: Package requirements (xinerama) were not met.
10693
 
Consider adjusting the PKG_CONFIG_PATH environment variable if you
10694
 
installed software in a non-standard prefix.
10695
 
 
10696
 
Alternatively you may set the XINERAMA_CFLAGS and XINERAMA_LIBS environment variables
10697
 
to avoid the need to call pkg-config.  See the pkg-config man page for
10698
 
more details." >&2;}
 
22607
        echo "$XINERAMA_PKG_ERRORS" >&5
 
22608
 
 
22609
        { { echo "$as_me:$LINENO: error: Package requirements (xinerama) were not met:
 
22610
 
 
22611
$XINERAMA_PKG_ERRORS
 
22612
 
 
22613
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
22614
installed software in a non-standard prefix.
 
22615
 
 
22616
Alternatively, you may set the environment variables XINERAMA_CFLAGS
 
22617
and XINERAMA_LIBS to avoid the need to call pkg-config.
 
22618
See the pkg-config man page for more details.
 
22619
" >&5
 
22620
echo "$as_me: error: Package requirements (xinerama) were not met:
 
22621
 
 
22622
$XINERAMA_PKG_ERRORS
 
22623
 
 
22624
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
22625
installed software in a non-standard prefix.
 
22626
 
 
22627
Alternatively, you may set the environment variables XINERAMA_CFLAGS
 
22628
and XINERAMA_LIBS to avoid the need to call pkg-config.
 
22629
See the pkg-config man page for more details.
 
22630
" >&2;}
10699
22631
   { (exit 1); exit 1; }; }
10700
22632
elif test $pkg_failed = untried; then
10701
22633
        { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
10702
22634
is in your PATH or set the PKG_CONFIG environment variable to the full
10703
22635
path to pkg-config.
10704
22636
 
10705
 
Alternatively you may set the XINERAMA_CFLAGS and XINERAMA_LIBS environment variables
10706
 
to avoid the need to call pkg-config.  See the pkg-config man page for
10707
 
more details.
 
22637
Alternatively, you may set the environment variables XINERAMA_CFLAGS
 
22638
and XINERAMA_LIBS to avoid the need to call pkg-config.
 
22639
See the pkg-config man page for more details.
10708
22640
 
10709
22641
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
10710
22642
See \`config.log' for more details." >&5
10712
22644
is in your PATH or set the PKG_CONFIG environment variable to the full
10713
22645
path to pkg-config.
10714
22646
 
10715
 
Alternatively you may set the XINERAMA_CFLAGS and XINERAMA_LIBS environment variables
10716
 
to avoid the need to call pkg-config.  See the pkg-config man page for
10717
 
more details.
 
22647
Alternatively, you may set the environment variables XINERAMA_CFLAGS
 
22648
and XINERAMA_LIBS to avoid the need to call pkg-config.
 
22649
See the pkg-config man page for more details.
10718
22650
 
10719
22651
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
10720
22652
See \`config.log' for more details." >&2;}
10759
22691
echo $ECHO_N "checking for XPM... $ECHO_C" >&6
10760
22692
 
10761
22693
if test -n "$PKG_CONFIG"; then
 
22694
    if test -n "$XPM_CFLAGS"; then
 
22695
        pkg_cv_XPM_CFLAGS="$XPM_CFLAGS"
 
22696
    else
10762
22697
        if test -n "$PKG_CONFIG" && \
10763
22698
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xpm\"") >&5
10764
22699
  ($PKG_CONFIG --exists --print-errors "xpm") 2>&5
10769
22704
else
10770
22705
  pkg_failed=yes
10771
22706
fi
 
22707
    fi
10772
22708
else
10773
22709
        pkg_failed=untried
10774
22710
fi
10775
22711
if test -n "$PKG_CONFIG"; then
 
22712
    if test -n "$XPM_LIBS"; then
 
22713
        pkg_cv_XPM_LIBS="$XPM_LIBS"
 
22714
    else
10776
22715
        if test -n "$PKG_CONFIG" && \
10777
22716
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xpm\"") >&5
10778
22717
  ($PKG_CONFIG --exists --print-errors "xpm") 2>&5
10783
22722
else
10784
22723
  pkg_failed=yes
10785
22724
fi
 
22725
    fi
10786
22726
else
10787
22727
        pkg_failed=untried
10788
22728
fi
10789
22729
 
 
22730
 
 
22731
 
10790
22732
if test $pkg_failed = yes; then
10791
 
        XPM_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xpm"`
 
22733
 
 
22734
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
22735
        _pkg_short_errors_supported=yes
 
22736
else
 
22737
        _pkg_short_errors_supported=no
 
22738
fi
 
22739
        if test $_pkg_short_errors_supported = yes; then
 
22740
                XPM_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xpm"`
 
22741
        else
 
22742
                XPM_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xpm"`
 
22743
        fi
10792
22744
        # Put the nasty error message in config.log where it belongs
10793
 
        echo "$XPM_PKG_ERRORS" 1>&5
10794
 
 
10795
 
        { { echo "$as_me:$LINENO: error: Package requirements (xpm) were not met.
10796
 
Consider adjusting the PKG_CONFIG_PATH environment variable if you
10797
 
installed software in a non-standard prefix.
10798
 
 
10799
 
Alternatively you may set the XPM_CFLAGS and XPM_LIBS environment variables
10800
 
to avoid the need to call pkg-config.  See the pkg-config man page for
10801
 
more details." >&5
10802
 
echo "$as_me: error: Package requirements (xpm) were not met.
10803
 
Consider adjusting the PKG_CONFIG_PATH environment variable if you
10804
 
installed software in a non-standard prefix.
10805
 
 
10806
 
Alternatively you may set the XPM_CFLAGS and XPM_LIBS environment variables
10807
 
to avoid the need to call pkg-config.  See the pkg-config man page for
10808
 
more details." >&2;}
 
22745
        echo "$XPM_PKG_ERRORS" >&5
 
22746
 
 
22747
        { { echo "$as_me:$LINENO: error: Package requirements (xpm) were not met:
 
22748
 
 
22749
$XPM_PKG_ERRORS
 
22750
 
 
22751
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
22752
installed software in a non-standard prefix.
 
22753
 
 
22754
Alternatively, you may set the environment variables XPM_CFLAGS
 
22755
and XPM_LIBS to avoid the need to call pkg-config.
 
22756
See the pkg-config man page for more details.
 
22757
" >&5
 
22758
echo "$as_me: error: Package requirements (xpm) were not met:
 
22759
 
 
22760
$XPM_PKG_ERRORS
 
22761
 
 
22762
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
22763
installed software in a non-standard prefix.
 
22764
 
 
22765
Alternatively, you may set the environment variables XPM_CFLAGS
 
22766
and XPM_LIBS to avoid the need to call pkg-config.
 
22767
See the pkg-config man page for more details.
 
22768
" >&2;}
10809
22769
   { (exit 1); exit 1; }; }
10810
22770
elif test $pkg_failed = untried; then
10811
22771
        { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
10812
22772
is in your PATH or set the PKG_CONFIG environment variable to the full
10813
22773
path to pkg-config.
10814
22774
 
10815
 
Alternatively you may set the XPM_CFLAGS and XPM_LIBS environment variables
10816
 
to avoid the need to call pkg-config.  See the pkg-config man page for
10817
 
more details.
 
22775
Alternatively, you may set the environment variables XPM_CFLAGS
 
22776
and XPM_LIBS to avoid the need to call pkg-config.
 
22777
See the pkg-config man page for more details.
10818
22778
 
10819
22779
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
10820
22780
See \`config.log' for more details." >&5
10822
22782
is in your PATH or set the PKG_CONFIG environment variable to the full
10823
22783
path to pkg-config.
10824
22784
 
10825
 
Alternatively you may set the XPM_CFLAGS and XPM_LIBS environment variables
10826
 
to avoid the need to call pkg-config.  See the pkg-config man page for
10827
 
more details.
 
22785
Alternatively, you may set the environment variables XPM_CFLAGS
 
22786
and XPM_LIBS to avoid the need to call pkg-config.
 
22787
See the pkg-config man page for more details.
10828
22788
 
10829
22789
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
10830
22790
See \`config.log' for more details." >&2;}
10916
22876
echo $ECHO_N "checking for TMP_XAW... $ECHO_C" >&6
10917
22877
 
10918
22878
if test -n "$PKG_CONFIG"; then
 
22879
    if test -n "$TMP_XAW_CFLAGS"; then
 
22880
        pkg_cv_TMP_XAW_CFLAGS="$TMP_XAW_CFLAGS"
 
22881
    else
10919
22882
        if test -n "$PKG_CONFIG" && \
10920
22883
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$TMP_CHECK1\"") >&5
10921
22884
  ($PKG_CONFIG --exists --print-errors "$TMP_CHECK1") 2>&5
10926
22889
else
10927
22890
  pkg_failed=yes
10928
22891
fi
 
22892
    fi
10929
22893
else
10930
22894
        pkg_failed=untried
10931
22895
fi
10932
22896
if test -n "$PKG_CONFIG"; then
 
22897
    if test -n "$TMP_XAW_LIBS"; then
 
22898
        pkg_cv_TMP_XAW_LIBS="$TMP_XAW_LIBS"
 
22899
    else
10933
22900
        if test -n "$PKG_CONFIG" && \
10934
22901
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$TMP_CHECK1\"") >&5
10935
22902
  ($PKG_CONFIG --exists --print-errors "$TMP_CHECK1") 2>&5
10940
22907
else
10941
22908
  pkg_failed=yes
10942
22909
fi
 
22910
    fi
10943
22911
else
10944
22912
        pkg_failed=untried
10945
22913
fi
10946
22914
 
 
22915
 
 
22916
 
10947
22917
if test $pkg_failed = yes; then
10948
 
        TMP_XAW_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$TMP_CHECK1"`
 
22918
 
 
22919
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
22920
        _pkg_short_errors_supported=yes
 
22921
else
 
22922
        _pkg_short_errors_supported=no
 
22923
fi
 
22924
        if test $_pkg_short_errors_supported = yes; then
 
22925
                TMP_XAW_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$TMP_CHECK1"`
 
22926
        else
 
22927
                TMP_XAW_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$TMP_CHECK1"`
 
22928
        fi
10949
22929
        # Put the nasty error message in config.log where it belongs
10950
 
        echo "$TMP_XAW_PKG_ERRORS" 1>&5
 
22930
        echo "$TMP_XAW_PKG_ERRORS" >&5
10951
22931
 
10952
22932
        success=no
10953
22933
elif test $pkg_failed = untried; then
10967
22947
echo $ECHO_N "checking for TMP_XAW... $ECHO_C" >&6
10968
22948
 
10969
22949
if test -n "$PKG_CONFIG"; then
 
22950
    if test -n "$TMP_XAW_CFLAGS"; then
 
22951
        pkg_cv_TMP_XAW_CFLAGS="$TMP_XAW_CFLAGS"
 
22952
    else
10970
22953
        if test -n "$PKG_CONFIG" && \
10971
22954
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$TMP_CHECK2\"") >&5
10972
22955
  ($PKG_CONFIG --exists --print-errors "$TMP_CHECK2") 2>&5
10977
22960
else
10978
22961
  pkg_failed=yes
10979
22962
fi
 
22963
    fi
10980
22964
else
10981
22965
        pkg_failed=untried
10982
22966
fi
10983
22967
if test -n "$PKG_CONFIG"; then
 
22968
    if test -n "$TMP_XAW_LIBS"; then
 
22969
        pkg_cv_TMP_XAW_LIBS="$TMP_XAW_LIBS"
 
22970
    else
10984
22971
        if test -n "$PKG_CONFIG" && \
10985
22972
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$TMP_CHECK2\"") >&5
10986
22973
  ($PKG_CONFIG --exists --print-errors "$TMP_CHECK2") 2>&5
10991
22978
else
10992
22979
  pkg_failed=yes
10993
22980
fi
 
22981
    fi
10994
22982
else
10995
22983
        pkg_failed=untried
10996
22984
fi
10997
22985
 
 
22986
 
 
22987
 
10998
22988
if test $pkg_failed = yes; then
10999
 
        TMP_XAW_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$TMP_CHECK2"`
 
22989
 
 
22990
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
22991
        _pkg_short_errors_supported=yes
 
22992
else
 
22993
        _pkg_short_errors_supported=no
 
22994
fi
 
22995
        if test $_pkg_short_errors_supported = yes; then
 
22996
                TMP_XAW_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$TMP_CHECK2"`
 
22997
        else
 
22998
                TMP_XAW_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$TMP_CHECK2"`
 
22999
        fi
11000
23000
        # Put the nasty error message in config.log where it belongs
11001
 
        echo "$TMP_XAW_PKG_ERRORS" 1>&5
 
23001
        echo "$TMP_XAW_PKG_ERRORS" >&5
11002
23002
 
11003
23003
        success=no
11004
23004
elif test $pkg_failed = untried; then
11040
23040
echo $ECHO_N "checking for DMCP... $ECHO_C" >&6
11041
23041
 
11042
23042
if test -n "$PKG_CONFIG"; then
 
23043
    if test -n "$DMCP_CFLAGS"; then
 
23044
        pkg_cv_DMCP_CFLAGS="$DMCP_CFLAGS"
 
23045
    else
11043
23046
        if test -n "$PKG_CONFIG" && \
11044
23047
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xdmcp\"") >&5
11045
23048
  ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5
11050
23053
else
11051
23054
  pkg_failed=yes
11052
23055
fi
 
23056
    fi
11053
23057
else
11054
23058
        pkg_failed=untried
11055
23059
fi
11056
23060
if test -n "$PKG_CONFIG"; then
 
23061
    if test -n "$DMCP_LIBS"; then
 
23062
        pkg_cv_DMCP_LIBS="$DMCP_LIBS"
 
23063
    else
11057
23064
        if test -n "$PKG_CONFIG" && \
11058
23065
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xdmcp\"") >&5
11059
23066
  ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5
11064
23071
else
11065
23072
  pkg_failed=yes
11066
23073
fi
 
23074
    fi
11067
23075
else
11068
23076
        pkg_failed=untried
11069
23077
fi
11070
23078
 
 
23079
 
 
23080
 
11071
23081
if test $pkg_failed = yes; then
11072
 
        DMCP_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xdmcp"`
 
23082
 
 
23083
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
23084
        _pkg_short_errors_supported=yes
 
23085
else
 
23086
        _pkg_short_errors_supported=no
 
23087
fi
 
23088
        if test $_pkg_short_errors_supported = yes; then
 
23089
                DMCP_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xdmcp"`
 
23090
        else
 
23091
                DMCP_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xdmcp"`
 
23092
        fi
11073
23093
        # Put the nasty error message in config.log where it belongs
11074
 
        echo "$DMCP_PKG_ERRORS" 1>&5
11075
 
 
11076
 
        { { echo "$as_me:$LINENO: error: Package requirements (xdmcp) were not met.
11077
 
Consider adjusting the PKG_CONFIG_PATH environment variable if you
11078
 
installed software in a non-standard prefix.
11079
 
 
11080
 
Alternatively you may set the DMCP_CFLAGS and DMCP_LIBS environment variables
11081
 
to avoid the need to call pkg-config.  See the pkg-config man page for
11082
 
more details." >&5
11083
 
echo "$as_me: error: Package requirements (xdmcp) were not met.
11084
 
Consider adjusting the PKG_CONFIG_PATH environment variable if you
11085
 
installed software in a non-standard prefix.
11086
 
 
11087
 
Alternatively you may set the DMCP_CFLAGS and DMCP_LIBS environment variables
11088
 
to avoid the need to call pkg-config.  See the pkg-config man page for
11089
 
more details." >&2;}
 
23094
        echo "$DMCP_PKG_ERRORS" >&5
 
23095
 
 
23096
        { { echo "$as_me:$LINENO: error: Package requirements (xdmcp) were not met:
 
23097
 
 
23098
$DMCP_PKG_ERRORS
 
23099
 
 
23100
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
23101
installed software in a non-standard prefix.
 
23102
 
 
23103
Alternatively, you may set the environment variables DMCP_CFLAGS
 
23104
and DMCP_LIBS to avoid the need to call pkg-config.
 
23105
See the pkg-config man page for more details.
 
23106
" >&5
 
23107
echo "$as_me: error: Package requirements (xdmcp) were not met:
 
23108
 
 
23109
$DMCP_PKG_ERRORS
 
23110
 
 
23111
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
23112
installed software in a non-standard prefix.
 
23113
 
 
23114
Alternatively, you may set the environment variables DMCP_CFLAGS
 
23115
and DMCP_LIBS to avoid the need to call pkg-config.
 
23116
See the pkg-config man page for more details.
 
23117
" >&2;}
11090
23118
   { (exit 1); exit 1; }; }
11091
23119
elif test $pkg_failed = untried; then
11092
23120
        { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
11093
23121
is in your PATH or set the PKG_CONFIG environment variable to the full
11094
23122
path to pkg-config.
11095
23123
 
11096
 
Alternatively you may set the DMCP_CFLAGS and DMCP_LIBS environment variables
11097
 
to avoid the need to call pkg-config.  See the pkg-config man page for
11098
 
more details.
 
23124
Alternatively, you may set the environment variables DMCP_CFLAGS
 
23125
and DMCP_LIBS to avoid the need to call pkg-config.
 
23126
See the pkg-config man page for more details.
11099
23127
 
11100
23128
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
11101
23129
See \`config.log' for more details." >&5
11103
23131
is in your PATH or set the PKG_CONFIG environment variable to the full
11104
23132
path to pkg-config.
11105
23133
 
11106
 
Alternatively you may set the DMCP_CFLAGS and DMCP_LIBS environment variables
11107
 
to avoid the need to call pkg-config.  See the pkg-config man page for
11108
 
more details.
 
23134
Alternatively, you may set the environment variables DMCP_CFLAGS
 
23135
and DMCP_LIBS to avoid the need to call pkg-config.
 
23136
See the pkg-config man page for more details.
11109
23137
 
11110
23138
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
11111
23139
See \`config.log' for more details." >&2;}
11123
23151
echo $ECHO_N "checking for XLIB... $ECHO_C" >&6
11124
23152
 
11125
23153
if test -n "$PKG_CONFIG"; then
 
23154
    if test -n "$XLIB_CFLAGS"; then
 
23155
        pkg_cv_XLIB_CFLAGS="$XLIB_CFLAGS"
 
23156
    else
11126
23157
        if test -n "$PKG_CONFIG" && \
11127
23158
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11\"") >&5
11128
23159
  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
11133
23164
else
11134
23165
  pkg_failed=yes
11135
23166
fi
 
23167
    fi
11136
23168
else
11137
23169
        pkg_failed=untried
11138
23170
fi
11139
23171
if test -n "$PKG_CONFIG"; then
 
23172
    if test -n "$XLIB_LIBS"; then
 
23173
        pkg_cv_XLIB_LIBS="$XLIB_LIBS"
 
23174
    else
11140
23175
        if test -n "$PKG_CONFIG" && \
11141
23176
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11\"") >&5
11142
23177
  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
11147
23182
else
11148
23183
  pkg_failed=yes
11149
23184
fi
 
23185
    fi
11150
23186
else
11151
23187
        pkg_failed=untried
11152
23188
fi
11153
23189
 
 
23190
 
 
23191
 
11154
23192
if test $pkg_failed = yes; then
11155
 
        XLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "x11"`
 
23193
 
 
23194
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
23195
        _pkg_short_errors_supported=yes
 
23196
else
 
23197
        _pkg_short_errors_supported=no
 
23198
fi
 
23199
        if test $_pkg_short_errors_supported = yes; then
 
23200
                XLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "x11"`
 
23201
        else
 
23202
                XLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "x11"`
 
23203
        fi
11156
23204
        # Put the nasty error message in config.log where it belongs
11157
 
        echo "$XLIB_PKG_ERRORS" 1>&5
11158
 
 
11159
 
        { { echo "$as_me:$LINENO: error: Package requirements (x11) were not met.
11160
 
Consider adjusting the PKG_CONFIG_PATH environment variable if you
11161
 
installed software in a non-standard prefix.
11162
 
 
11163
 
Alternatively you may set the XLIB_CFLAGS and XLIB_LIBS environment variables
11164
 
to avoid the need to call pkg-config.  See the pkg-config man page for
11165
 
more details." >&5
11166
 
echo "$as_me: error: Package requirements (x11) were not met.
11167
 
Consider adjusting the PKG_CONFIG_PATH environment variable if you
11168
 
installed software in a non-standard prefix.
11169
 
 
11170
 
Alternatively you may set the XLIB_CFLAGS and XLIB_LIBS environment variables
11171
 
to avoid the need to call pkg-config.  See the pkg-config man page for
11172
 
more details." >&2;}
 
23205
        echo "$XLIB_PKG_ERRORS" >&5
 
23206
 
 
23207
        { { echo "$as_me:$LINENO: error: Package requirements (x11) were not met:
 
23208
 
 
23209
$XLIB_PKG_ERRORS
 
23210
 
 
23211
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
23212
installed software in a non-standard prefix.
 
23213
 
 
23214
Alternatively, you may set the environment variables XLIB_CFLAGS
 
23215
and XLIB_LIBS to avoid the need to call pkg-config.
 
23216
See the pkg-config man page for more details.
 
23217
" >&5
 
23218
echo "$as_me: error: Package requirements (x11) were not met:
 
23219
 
 
23220
$XLIB_PKG_ERRORS
 
23221
 
 
23222
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
23223
installed software in a non-standard prefix.
 
23224
 
 
23225
Alternatively, you may set the environment variables XLIB_CFLAGS
 
23226
and XLIB_LIBS to avoid the need to call pkg-config.
 
23227
See the pkg-config man page for more details.
 
23228
" >&2;}
11173
23229
   { (exit 1); exit 1; }; }
11174
23230
elif test $pkg_failed = untried; then
11175
23231
        { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
11176
23232
is in your PATH or set the PKG_CONFIG environment variable to the full
11177
23233
path to pkg-config.
11178
23234
 
11179
 
Alternatively you may set the XLIB_CFLAGS and XLIB_LIBS environment variables
11180
 
to avoid the need to call pkg-config.  See the pkg-config man page for
11181
 
more details.
 
23235
Alternatively, you may set the environment variables XLIB_CFLAGS
 
23236
and XLIB_LIBS to avoid the need to call pkg-config.
 
23237
See the pkg-config man page for more details.
11182
23238
 
11183
23239
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
11184
23240
See \`config.log' for more details." >&5
11186
23242
is in your PATH or set the PKG_CONFIG environment variable to the full
11187
23243
path to pkg-config.
11188
23244
 
11189
 
Alternatively you may set the XLIB_CFLAGS and XLIB_LIBS environment variables
11190
 
to avoid the need to call pkg-config.  See the pkg-config man page for
11191
 
more details.
 
23245
Alternatively, you may set the environment variables XLIB_CFLAGS
 
23246
and XLIB_LIBS to avoid the need to call pkg-config.
 
23247
See the pkg-config man page for more details.
11192
23248
 
11193
23249
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
11194
23250
See \`config.log' for more details." >&2;}
11206
23262
echo $ECHO_N "checking for AUTH... $ECHO_C" >&6
11207
23263
 
11208
23264
if test -n "$PKG_CONFIG"; then
 
23265
    if test -n "$AUTH_CFLAGS"; then
 
23266
        pkg_cv_AUTH_CFLAGS="$AUTH_CFLAGS"
 
23267
    else
11209
23268
        if test -n "$PKG_CONFIG" && \
11210
23269
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xau\"") >&5
11211
23270
  ($PKG_CONFIG --exists --print-errors "xau") 2>&5
11216
23275
else
11217
23276
  pkg_failed=yes
11218
23277
fi
 
23278
    fi
11219
23279
else
11220
23280
        pkg_failed=untried
11221
23281
fi
11222
23282
if test -n "$PKG_CONFIG"; then
 
23283
    if test -n "$AUTH_LIBS"; then
 
23284
        pkg_cv_AUTH_LIBS="$AUTH_LIBS"
 
23285
    else
11223
23286
        if test -n "$PKG_CONFIG" && \
11224
23287
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xau\"") >&5
11225
23288
  ($PKG_CONFIG --exists --print-errors "xau") 2>&5
11230
23293
else
11231
23294
  pkg_failed=yes
11232
23295
fi
 
23296
    fi
11233
23297
else
11234
23298
        pkg_failed=untried
11235
23299
fi
11236
23300
 
 
23301
 
 
23302
 
11237
23303
if test $pkg_failed = yes; then
11238
 
        AUTH_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xau"`
 
23304
 
 
23305
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
23306
        _pkg_short_errors_supported=yes
 
23307
else
 
23308
        _pkg_short_errors_supported=no
 
23309
fi
 
23310
        if test $_pkg_short_errors_supported = yes; then
 
23311
                AUTH_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xau"`
 
23312
        else
 
23313
                AUTH_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xau"`
 
23314
        fi
11239
23315
        # Put the nasty error message in config.log where it belongs
11240
 
        echo "$AUTH_PKG_ERRORS" 1>&5
11241
 
 
11242
 
        { { echo "$as_me:$LINENO: error: Package requirements (xau) were not met.
11243
 
Consider adjusting the PKG_CONFIG_PATH environment variable if you
11244
 
installed software in a non-standard prefix.
11245
 
 
11246
 
Alternatively you may set the AUTH_CFLAGS and AUTH_LIBS environment variables
11247
 
to avoid the need to call pkg-config.  See the pkg-config man page for
11248
 
more details." >&5
11249
 
echo "$as_me: error: Package requirements (xau) were not met.
11250
 
Consider adjusting the PKG_CONFIG_PATH environment variable if you
11251
 
installed software in a non-standard prefix.
11252
 
 
11253
 
Alternatively you may set the AUTH_CFLAGS and AUTH_LIBS environment variables
11254
 
to avoid the need to call pkg-config.  See the pkg-config man page for
11255
 
more details." >&2;}
 
23316
        echo "$AUTH_PKG_ERRORS" >&5
 
23317
 
 
23318
        { { echo "$as_me:$LINENO: error: Package requirements (xau) were not met:
 
23319
 
 
23320
$AUTH_PKG_ERRORS
 
23321
 
 
23322
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
23323
installed software in a non-standard prefix.
 
23324
 
 
23325
Alternatively, you may set the environment variables AUTH_CFLAGS
 
23326
and AUTH_LIBS to avoid the need to call pkg-config.
 
23327
See the pkg-config man page for more details.
 
23328
" >&5
 
23329
echo "$as_me: error: Package requirements (xau) were not met:
 
23330
 
 
23331
$AUTH_PKG_ERRORS
 
23332
 
 
23333
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
23334
installed software in a non-standard prefix.
 
23335
 
 
23336
Alternatively, you may set the environment variables AUTH_CFLAGS
 
23337
and AUTH_LIBS to avoid the need to call pkg-config.
 
23338
See the pkg-config man page for more details.
 
23339
" >&2;}
11256
23340
   { (exit 1); exit 1; }; }
11257
23341
elif test $pkg_failed = untried; then
11258
23342
        { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
11259
23343
is in your PATH or set the PKG_CONFIG environment variable to the full
11260
23344
path to pkg-config.
11261
23345
 
11262
 
Alternatively you may set the AUTH_CFLAGS and AUTH_LIBS environment variables
11263
 
to avoid the need to call pkg-config.  See the pkg-config man page for
11264
 
more details.
 
23346
Alternatively, you may set the environment variables AUTH_CFLAGS
 
23347
and AUTH_LIBS to avoid the need to call pkg-config.
 
23348
See the pkg-config man page for more details.
11265
23349
 
11266
23350
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
11267
23351
See \`config.log' for more details." >&5
11269
23353
is in your PATH or set the PKG_CONFIG environment variable to the full
11270
23354
path to pkg-config.
11271
23355
 
11272
 
Alternatively you may set the AUTH_CFLAGS and AUTH_LIBS environment variables
11273
 
to avoid the need to call pkg-config.  See the pkg-config man page for
11274
 
more details.
 
23356
Alternatively, you may set the environment variables AUTH_CFLAGS
 
23357
and AUTH_LIBS to avoid the need to call pkg-config.
 
23358
See the pkg-config man page for more details.
11275
23359
 
11276
23360
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
11277
23361
See \`config.log' for more details." >&2;}
11329
23413
echo $ECHO_N "checking for XDMGREET... $ECHO_C" >&6
11330
23414
 
11331
23415
if test -n "$PKG_CONFIG"; then
 
23416
    if test -n "$XDMGREET_CFLAGS"; then
 
23417
        pkg_cv_XDMGREET_CFLAGS="$XDMGREET_CFLAGS"
 
23418
    else
11332
23419
        if test -n "$PKG_CONFIG" && \
11333
23420
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xt x11 xext\"") >&5
11334
23421
  ($PKG_CONFIG --exists --print-errors "xt x11 xext") 2>&5
11339
23426
else
11340
23427
  pkg_failed=yes
11341
23428
fi
 
23429
    fi
11342
23430
else
11343
23431
        pkg_failed=untried
11344
23432
fi
11345
23433
if test -n "$PKG_CONFIG"; then
 
23434
    if test -n "$XDMGREET_LIBS"; then
 
23435
        pkg_cv_XDMGREET_LIBS="$XDMGREET_LIBS"
 
23436
    else
11346
23437
        if test -n "$PKG_CONFIG" && \
11347
23438
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xt x11 xext\"") >&5
11348
23439
  ($PKG_CONFIG --exists --print-errors "xt x11 xext") 2>&5
11353
23444
else
11354
23445
  pkg_failed=yes
11355
23446
fi
 
23447
    fi
11356
23448
else
11357
23449
        pkg_failed=untried
11358
23450
fi
11359
23451
 
 
23452
 
 
23453
 
11360
23454
if test $pkg_failed = yes; then
11361
 
        XDMGREET_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xt x11 xext"`
 
23455
 
 
23456
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
23457
        _pkg_short_errors_supported=yes
 
23458
else
 
23459
        _pkg_short_errors_supported=no
 
23460
fi
 
23461
        if test $_pkg_short_errors_supported = yes; then
 
23462
                XDMGREET_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xt x11 xext"`
 
23463
        else
 
23464
                XDMGREET_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xt x11 xext"`
 
23465
        fi
11362
23466
        # Put the nasty error message in config.log where it belongs
11363
 
        echo "$XDMGREET_PKG_ERRORS" 1>&5
11364
 
 
11365
 
        { { echo "$as_me:$LINENO: error: Package requirements (xt x11 xext) were not met.
11366
 
Consider adjusting the PKG_CONFIG_PATH environment variable if you
11367
 
installed software in a non-standard prefix.
11368
 
 
11369
 
Alternatively you may set the XDMGREET_CFLAGS and XDMGREET_LIBS environment variables
11370
 
to avoid the need to call pkg-config.  See the pkg-config man page for
11371
 
more details." >&5
11372
 
echo "$as_me: error: Package requirements (xt x11 xext) were not met.
11373
 
Consider adjusting the PKG_CONFIG_PATH environment variable if you
11374
 
installed software in a non-standard prefix.
11375
 
 
11376
 
Alternatively you may set the XDMGREET_CFLAGS and XDMGREET_LIBS environment variables
11377
 
to avoid the need to call pkg-config.  See the pkg-config man page for
11378
 
more details." >&2;}
 
23467
        echo "$XDMGREET_PKG_ERRORS" >&5
 
23468
 
 
23469
        { { echo "$as_me:$LINENO: error: Package requirements (xt x11 xext) were not met:
 
23470
 
 
23471
$XDMGREET_PKG_ERRORS
 
23472
 
 
23473
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
23474
installed software in a non-standard prefix.
 
23475
 
 
23476
Alternatively, you may set the environment variables XDMGREET_CFLAGS
 
23477
and XDMGREET_LIBS to avoid the need to call pkg-config.
 
23478
See the pkg-config man page for more details.
 
23479
" >&5
 
23480
echo "$as_me: error: Package requirements (xt x11 xext) were not met:
 
23481
 
 
23482
$XDMGREET_PKG_ERRORS
 
23483
 
 
23484
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
23485
installed software in a non-standard prefix.
 
23486
 
 
23487
Alternatively, you may set the environment variables XDMGREET_CFLAGS
 
23488
and XDMGREET_LIBS to avoid the need to call pkg-config.
 
23489
See the pkg-config man page for more details.
 
23490
" >&2;}
11379
23491
   { (exit 1); exit 1; }; }
11380
23492
elif test $pkg_failed = untried; then
11381
23493
        { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
11382
23494
is in your PATH or set the PKG_CONFIG environment variable to the full
11383
23495
path to pkg-config.
11384
23496
 
11385
 
Alternatively you may set the XDMGREET_CFLAGS and XDMGREET_LIBS environment variables
11386
 
to avoid the need to call pkg-config.  See the pkg-config man page for
11387
 
more details.
 
23497
Alternatively, you may set the environment variables XDMGREET_CFLAGS
 
23498
and XDMGREET_LIBS to avoid the need to call pkg-config.
 
23499
See the pkg-config man page for more details.
11388
23500
 
11389
23501
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
11390
23502
See \`config.log' for more details." >&5
11392
23504
is in your PATH or set the PKG_CONFIG environment variable to the full
11393
23505
path to pkg-config.
11394
23506
 
11395
 
Alternatively you may set the XDMGREET_CFLAGS and XDMGREET_LIBS environment variables
11396
 
to avoid the need to call pkg-config.  See the pkg-config man page for
11397
 
more details.
 
23507
Alternatively, you may set the environment variables XDMGREET_CFLAGS
 
23508
and XDMGREET_LIBS to avoid the need to call pkg-config.
 
23509
See the pkg-config man page for more details.
11398
23510
 
11399
23511
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
11400
23512
See \`config.log' for more details." >&2;}
11461
23573
  ac_check_lib_save_LIBS=$LIBS
11462
23574
LIBS="-lXdmcp $DMCP_LIBS $LIBS"
11463
23575
cat >conftest.$ac_ext <<_ACEOF
11464
 
#line $LINENO "configure"
11465
23576
/* confdefs.h.  */
11466
23577
_ACEOF
11467
23578
cat confdefs.h >>conftest.$ac_ext
11485
23596
_ACEOF
11486
23597
rm -f conftest.$ac_objext conftest$ac_exeext
11487
23598
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11488
 
  (eval $ac_link) 2>&5
 
23599
  (eval $ac_link) 2>conftest.er1
11489
23600
  ac_status=$?
 
23601
  grep -v '^ *+' conftest.er1 >conftest.err
 
23602
  rm -f conftest.er1
 
23603
  cat conftest.err >&5
11490
23604
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11491
23605
  (exit $ac_status); } &&
11492
 
         { ac_try='test -s conftest$ac_exeext'
 
23606
         { ac_try='test -z "$ac_c_werror_flag"
 
23607
                         || test ! -s conftest.err'
 
23608
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23609
  (eval $ac_try) 2>&5
 
23610
  ac_status=$?
 
23611
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23612
  (exit $ac_status); }; } &&
 
23613
         { ac_try='test -s conftest$ac_exeext'
11493
23614
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11494
23615
  (eval $ac_try) 2>&5
11495
23616
  ac_status=$?
11502
23623
 
11503
23624
ac_cv_lib_Xdmcp_XdmcpWrap=no
11504
23625
fi
11505
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
23626
rm -f conftest.err conftest.$ac_objext \
 
23627
      conftest$ac_exeext conftest.$ac_ext
11506
23628
LIBS=$ac_check_lib_save_LIBS
11507
23629
fi
11508
23630
echo "$as_me:$LINENO: result: $ac_cv_lib_Xdmcp_XdmcpWrap" >&5
11521
23643
  ac_func_search_save_LIBS=$LIBS
11522
23644
ac_cv_search_crypt=no
11523
23645
cat >conftest.$ac_ext <<_ACEOF
11524
 
#line $LINENO "configure"
11525
23646
/* confdefs.h.  */
11526
23647
_ACEOF
11527
23648
cat confdefs.h >>conftest.$ac_ext
11545
23666
_ACEOF
11546
23667
rm -f conftest.$ac_objext conftest$ac_exeext
11547
23668
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11548
 
  (eval $ac_link) 2>&5
 
23669
  (eval $ac_link) 2>conftest.er1
11549
23670
  ac_status=$?
 
23671
  grep -v '^ *+' conftest.er1 >conftest.err
 
23672
  rm -f conftest.er1
 
23673
  cat conftest.err >&5
11550
23674
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11551
23675
  (exit $ac_status); } &&
11552
 
         { ac_try='test -s conftest$ac_exeext'
 
23676
         { ac_try='test -z "$ac_c_werror_flag"
 
23677
                         || test ! -s conftest.err'
 
23678
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23679
  (eval $ac_try) 2>&5
 
23680
  ac_status=$?
 
23681
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23682
  (exit $ac_status); }; } &&
 
23683
         { ac_try='test -s conftest$ac_exeext'
11553
23684
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11554
23685
  (eval $ac_try) 2>&5
11555
23686
  ac_status=$?
11561
23692
sed 's/^/| /' conftest.$ac_ext >&5
11562
23693
 
11563
23694
fi
11564
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
23695
rm -f conftest.err conftest.$ac_objext \
 
23696
      conftest$ac_exeext conftest.$ac_ext
11565
23697
if test "$ac_cv_search_crypt" = no; then
11566
23698
  for ac_lib in crypt; do
11567
23699
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11568
23700
    cat >conftest.$ac_ext <<_ACEOF
11569
 
#line $LINENO "configure"
11570
23701
/* confdefs.h.  */
11571
23702
_ACEOF
11572
23703
cat confdefs.h >>conftest.$ac_ext
11590
23721
_ACEOF
11591
23722
rm -f conftest.$ac_objext conftest$ac_exeext
11592
23723
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11593
 
  (eval $ac_link) 2>&5
 
23724
  (eval $ac_link) 2>conftest.er1
11594
23725
  ac_status=$?
 
23726
  grep -v '^ *+' conftest.er1 >conftest.err
 
23727
  rm -f conftest.er1
 
23728
  cat conftest.err >&5
11595
23729
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11596
23730
  (exit $ac_status); } &&
11597
 
         { ac_try='test -s conftest$ac_exeext'
 
23731
         { ac_try='test -z "$ac_c_werror_flag"
 
23732
                         || test ! -s conftest.err'
 
23733
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23734
  (eval $ac_try) 2>&5
 
23735
  ac_status=$?
 
23736
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23737
  (exit $ac_status); }; } &&
 
23738
         { ac_try='test -s conftest$ac_exeext'
11598
23739
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11599
23740
  (eval $ac_try) 2>&5
11600
23741
  ac_status=$?
11607
23748
sed 's/^/| /' conftest.$ac_ext >&5
11608
23749
 
11609
23750
fi
11610
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
23751
rm -f conftest.err conftest.$ac_objext \
 
23752
      conftest$ac_exeext conftest.$ac_ext
11611
23753
  done
11612
23754
fi
11613
23755
LIBS=$ac_func_search_save_LIBS
11645
23787
echo $ECHO_N "checking for XT... $ECHO_C" >&6
11646
23788
 
11647
23789
if test -n "$PKG_CONFIG"; then
 
23790
    if test -n "$XT_CFLAGS"; then
 
23791
        pkg_cv_XT_CFLAGS="$XT_CFLAGS"
 
23792
    else
11648
23793
        if test -n "$PKG_CONFIG" && \
11649
23794
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xt\"") >&5
11650
23795
  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
11655
23800
else
11656
23801
  pkg_failed=yes
11657
23802
fi
 
23803
    fi
11658
23804
else
11659
23805
        pkg_failed=untried
11660
23806
fi
11661
23807
if test -n "$PKG_CONFIG"; then
 
23808
    if test -n "$XT_LIBS"; then
 
23809
        pkg_cv_XT_LIBS="$XT_LIBS"
 
23810
    else
11662
23811
        if test -n "$PKG_CONFIG" && \
11663
23812
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xt\"") >&5
11664
23813
  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
11669
23818
else
11670
23819
  pkg_failed=yes
11671
23820
fi
 
23821
    fi
11672
23822
else
11673
23823
        pkg_failed=untried
11674
23824
fi
11675
23825
 
 
23826
 
 
23827
 
11676
23828
if test $pkg_failed = yes; then
11677
 
        XT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xt"`
 
23829
 
 
23830
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
23831
        _pkg_short_errors_supported=yes
 
23832
else
 
23833
        _pkg_short_errors_supported=no
 
23834
fi
 
23835
        if test $_pkg_short_errors_supported = yes; then
 
23836
                XT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xt"`
 
23837
        else
 
23838
                XT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xt"`
 
23839
        fi
11678
23840
        # Put the nasty error message in config.log where it belongs
11679
 
        echo "$XT_PKG_ERRORS" 1>&5
11680
 
 
11681
 
        { { echo "$as_me:$LINENO: error: Package requirements (xt) were not met.
11682
 
Consider adjusting the PKG_CONFIG_PATH environment variable if you
11683
 
installed software in a non-standard prefix.
11684
 
 
11685
 
Alternatively you may set the XT_CFLAGS and XT_LIBS environment variables
11686
 
to avoid the need to call pkg-config.  See the pkg-config man page for
11687
 
more details." >&5
11688
 
echo "$as_me: error: Package requirements (xt) were not met.
11689
 
Consider adjusting the PKG_CONFIG_PATH environment variable if you
11690
 
installed software in a non-standard prefix.
11691
 
 
11692
 
Alternatively you may set the XT_CFLAGS and XT_LIBS environment variables
11693
 
to avoid the need to call pkg-config.  See the pkg-config man page for
11694
 
more details." >&2;}
 
23841
        echo "$XT_PKG_ERRORS" >&5
 
23842
 
 
23843
        { { echo "$as_me:$LINENO: error: Package requirements (xt) were not met:
 
23844
 
 
23845
$XT_PKG_ERRORS
 
23846
 
 
23847
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
23848
installed software in a non-standard prefix.
 
23849
 
 
23850
Alternatively, you may set the environment variables XT_CFLAGS
 
23851
and XT_LIBS to avoid the need to call pkg-config.
 
23852
See the pkg-config man page for more details.
 
23853
" >&5
 
23854
echo "$as_me: error: Package requirements (xt) were not met:
 
23855
 
 
23856
$XT_PKG_ERRORS
 
23857
 
 
23858
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
23859
installed software in a non-standard prefix.
 
23860
 
 
23861
Alternatively, you may set the environment variables XT_CFLAGS
 
23862
and XT_LIBS to avoid the need to call pkg-config.
 
23863
See the pkg-config man page for more details.
 
23864
" >&2;}
11695
23865
   { (exit 1); exit 1; }; }
11696
23866
elif test $pkg_failed = untried; then
11697
23867
        { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
11698
23868
is in your PATH or set the PKG_CONFIG environment variable to the full
11699
23869
path to pkg-config.
11700
23870
 
11701
 
Alternatively you may set the XT_CFLAGS and XT_LIBS environment variables
11702
 
to avoid the need to call pkg-config.  See the pkg-config man page for
11703
 
more details.
 
23871
Alternatively, you may set the environment variables XT_CFLAGS
 
23872
and XT_LIBS to avoid the need to call pkg-config.
 
23873
See the pkg-config man page for more details.
11704
23874
 
11705
23875
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
11706
23876
See \`config.log' for more details." >&5
11708
23878
is in your PATH or set the PKG_CONFIG environment variable to the full
11709
23879
path to pkg-config.
11710
23880
 
11711
 
Alternatively you may set the XT_CFLAGS and XT_LIBS environment variables
11712
 
to avoid the need to call pkg-config.  See the pkg-config man page for
11713
 
more details.
 
23881
Alternatively, you may set the environment variables XT_CFLAGS
 
23882
and XT_LIBS to avoid the need to call pkg-config.
 
23883
See the pkg-config man page for more details.
11714
23884
 
11715
23885
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
11716
23886
See \`config.log' for more details." >&2;}
11996
24166
 
11997
24167
 
11998
24168
 
 
24169
pkg_failed=no
 
24170
echo "$as_me:$LINENO: checking for APPDEFS" >&5
 
24171
echo $ECHO_N "checking for APPDEFS... $ECHO_C" >&6
 
24172
 
 
24173
if test -n "$PKG_CONFIG"; then
 
24174
    if test -n "$APPDEFS_CFLAGS"; then
 
24175
        pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS"
 
24176
    else
 
24177
        if test -n "$PKG_CONFIG" && \
 
24178
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xt\"") >&5
 
24179
  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
 
24180
  ac_status=$?
 
24181
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24182
  (exit $ac_status); }; then
 
24183
  pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null`
 
24184
else
 
24185
  pkg_failed=yes
 
24186
fi
 
24187
    fi
 
24188
else
 
24189
        pkg_failed=untried
 
24190
fi
 
24191
if test -n "$PKG_CONFIG"; then
 
24192
    if test -n "$APPDEFS_LIBS"; then
 
24193
        pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS"
 
24194
    else
 
24195
        if test -n "$PKG_CONFIG" && \
 
24196
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xt\"") >&5
 
24197
  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
 
24198
  ac_status=$?
 
24199
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24200
  (exit $ac_status); }; then
 
24201
  pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null`
 
24202
else
 
24203
  pkg_failed=yes
 
24204
fi
 
24205
    fi
 
24206
else
 
24207
        pkg_failed=untried
 
24208
fi
 
24209
 
 
24210
 
 
24211
 
 
24212
if test $pkg_failed = yes; then
 
24213
 
 
24214
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
24215
        _pkg_short_errors_supported=yes
 
24216
else
 
24217
        _pkg_short_errors_supported=no
 
24218
fi
 
24219
        if test $_pkg_short_errors_supported = yes; then
 
24220
                APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xt"`
 
24221
        else
 
24222
                APPDEFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xt"`
 
24223
        fi
 
24224
        # Put the nasty error message in config.log where it belongs
 
24225
        echo "$APPDEFS_PKG_ERRORS" >&5
 
24226
 
 
24227
        { { echo "$as_me:$LINENO: error: Package requirements (xt) were not met:
 
24228
 
 
24229
$APPDEFS_PKG_ERRORS
 
24230
 
 
24231
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
24232
installed software in a non-standard prefix.
 
24233
 
 
24234
Alternatively, you may set the environment variables APPDEFS_CFLAGS
 
24235
and APPDEFS_LIBS to avoid the need to call pkg-config.
 
24236
See the pkg-config man page for more details.
 
24237
" >&5
 
24238
echo "$as_me: error: Package requirements (xt) were not met:
 
24239
 
 
24240
$APPDEFS_PKG_ERRORS
 
24241
 
 
24242
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
24243
installed software in a non-standard prefix.
 
24244
 
 
24245
Alternatively, you may set the environment variables APPDEFS_CFLAGS
 
24246
and APPDEFS_LIBS to avoid the need to call pkg-config.
 
24247
See the pkg-config man page for more details.
 
24248
" >&2;}
 
24249
   { (exit 1); exit 1; }; }
 
24250
elif test $pkg_failed = untried; then
 
24251
        { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
 
24252
is in your PATH or set the PKG_CONFIG environment variable to the full
 
24253
path to pkg-config.
 
24254
 
 
24255
Alternatively, you may set the environment variables APPDEFS_CFLAGS
 
24256
and APPDEFS_LIBS to avoid the need to call pkg-config.
 
24257
See the pkg-config man page for more details.
 
24258
 
 
24259
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
 
24260
See \`config.log' for more details." >&5
 
24261
echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
 
24262
is in your PATH or set the PKG_CONFIG environment variable to the full
 
24263
path to pkg-config.
 
24264
 
 
24265
Alternatively, you may set the environment variables APPDEFS_CFLAGS
 
24266
and APPDEFS_LIBS to avoid the need to call pkg-config.
 
24267
See the pkg-config man page for more details.
 
24268
 
 
24269
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
 
24270
See \`config.log' for more details." >&2;}
 
24271
   { (exit 1); exit 1; }; }
 
24272
else
 
24273
        APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS
 
24274
        APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS
 
24275
        echo "$as_me:$LINENO: result: yes" >&5
 
24276
echo "${ECHO_T}yes" >&6
 
24277
        :
 
24278
fi
 
24279
appdefaultdir=$(pkg-config --variable=appdefaultdir xt)
 
24280
 
 
24281
 
 
24282
 
11999
24283
 
12000
24284
 
12001
24285
if test x$APP_MAN_SUFFIX = x    ; then
12140
24424
      # `set' does not quote correctly, so add quotes (double-quote
12141
24425
      # substitution turns \\\\ into \\, and sed turns \\ into \).
12142
24426
      sed -n \
12143
 
        "s/'/'\\\\''/g;
12144
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
24427
        "s/'/'\\\\''/g;
 
24428
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12145
24429
      ;;
12146
24430
    *)
12147
24431
      # `set' quotes correctly as required by POSIX, so do not add quotes.
12148
24432
      sed -n \
12149
 
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
24433
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12150
24434
      ;;
12151
24435
    esac;
12152
24436
} |
12176
24460
# trailing colons and then remove the whole line if VPATH becomes empty
12177
24461
# (actually we leave an empty line to preserve line numbers).
12178
24462
if test "x$srcdir" = x.; then
12179
 
  ac_vpsub='/^[         ]*VPATH[        ]*=/{
 
24463
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
12180
24464
s/:*\$(srcdir):*/:/;
12181
24465
s/:*\${srcdir}:*/:/;
12182
24466
s/:*@srcdir@:*/:/;
12183
 
s/^\([^=]*=[    ]*\):*/\1/;
 
24467
s/^\([^=]*=[     ]*\):*/\1/;
12184
24468
s/:*$//;
12185
 
s/^[^=]*=[      ]*$//;
 
24469
s/^[^=]*=[       ]*$//;
12186
24470
}'
12187
24471
fi
12188
24472
 
12193
24477
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12194
24478
  # 1. Remove the extension, and $U if already installed.
12195
24479
  ac_i=`echo "$ac_i" |
12196
 
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
 
24480
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12197
24481
  # 2. Add them.
12198
24482
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12199
24483
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12224
24508
Usually this means the macro was only invoked conditionally." >&2;}
12225
24509
   { (exit 1); exit 1; }; }
12226
24510
fi
 
24511
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
 
24512
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
 
24513
Usually this means the macro was only invoked conditionally." >&5
 
24514
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
 
24515
Usually this means the macro was only invoked conditionally." >&2;}
 
24516
   { (exit 1); exit 1; }; }
 
24517
fi
12227
24518
if test -z "${HAS_SECURE_RPC_TRUE}" && test -z "${HAS_SECURE_RPC_FALSE}"; then
12228
24519
  { { echo "$as_me:$LINENO: error: conditional \"HAS_SECURE_RPC\" was never defined.
12229
24520
Usually this means the macro was only invoked conditionally." >&5
12307
24598
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12308
24599
  set -o posix
12309
24600
fi
 
24601
DUALCASE=1; export DUALCASE # for MKS sh
12310
24602
 
12311
24603
# Support unset when possible.
12312
 
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
 
24604
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12313
24605
  as_unset=unset
12314
24606
else
12315
24607
  as_unset=false
12328
24620
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12329
24621
  LC_TELEPHONE LC_TIME
12330
24622
do
12331
 
  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
24623
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12332
24624
    eval $as_var=C; export $as_var
12333
24625
  else
12334
24626
    $as_unset $as_var
12507
24799
if mkdir -p . 2>/dev/null; then
12508
24800
  as_mkdir_p=:
12509
24801
else
 
24802
  test -d ./-p && rmdir ./-p
12510
24803
  as_mkdir_p=false
12511
24804
fi
12512
24805
 
12513
24806
as_executable_p="test -f"
12514
24807
 
12515
24808
# Sed expression to map a string onto a valid CPP name.
12516
 
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
 
24809
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12517
24810
 
12518
24811
# Sed expression to map a string onto a valid variable name.
12519
 
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
 
24812
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12520
24813
 
12521
24814
 
12522
24815
# IFS
12542
24835
} >&5
12543
24836
cat >&5 <<_CSEOF
12544
24837
 
12545
 
This file was extended by xdm $as_me 0.99.4, which was
12546
 
generated by GNU Autoconf 2.57.  Invocation command line was
 
24838
This file was extended by xdm $as_me 1.0.1, which was
 
24839
generated by GNU Autoconf 2.59.  Invocation command line was
12547
24840
 
12548
24841
  CONFIG_FILES    = $CONFIG_FILES
12549
24842
  CONFIG_HEADERS  = $CONFIG_HEADERS
12587
24880
  -d, --debug      don't remove temporary files
12588
24881
      --recheck    update $as_me by reconfiguring in the same conditions
12589
24882
  --file=FILE[:TEMPLATE]
12590
 
                   instantiate the configuration file FILE
 
24883
                   instantiate the configuration file FILE
12591
24884
  --header=FILE[:TEMPLATE]
12592
 
                   instantiate the configuration header FILE
 
24885
                   instantiate the configuration header FILE
12593
24886
 
12594
24887
Configuration files:
12595
24888
$config_files
12605
24898
 
12606
24899
cat >>$CONFIG_STATUS <<_ACEOF
12607
24900
ac_cs_version="\\
12608
 
xdm config.status 0.99.4
12609
 
configured by $0, generated by GNU Autoconf 2.57,
 
24901
xdm config.status 1.0.1
 
24902
configured by $0, generated by GNU Autoconf 2.59,
12610
24903
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12611
24904
 
12612
 
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
12613
 
Free Software Foundation, Inc.
 
24905
Copyright (C) 2003 Free Software Foundation, Inc.
12614
24906
This config.status script is free software; the Free Software Foundation
12615
24907
gives unlimited permission to copy, distribute and modify it."
12616
24908
srcdir=$srcdir
12852
25144
s,@host_cpu@,$host_cpu,;t t
12853
25145
s,@host_vendor@,$host_vendor,;t t
12854
25146
s,@host_os@,$host_os,;t t
 
25147
s,@EGREP@,$EGREP,;t t
12855
25148
s,@LN_S@,$LN_S,;t t
12856
25149
s,@ECHO@,$ECHO,;t t
 
25150
s,@AR@,$AR,;t t
 
25151
s,@ac_ct_AR@,$ac_ct_AR,;t t
12857
25152
s,@RANLIB@,$RANLIB,;t t
12858
25153
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
 
25154
s,@DLLTOOL@,$DLLTOOL,;t t
 
25155
s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
 
25156
s,@AS@,$AS,;t t
 
25157
s,@ac_ct_AS@,$ac_ct_AS,;t t
 
25158
s,@OBJDUMP@,$OBJDUMP,;t t
 
25159
s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
12859
25160
s,@CPP@,$CPP,;t t
12860
 
s,@EGREP@,$EGREP,;t t
 
25161
s,@CXX@,$CXX,;t t
 
25162
s,@CXXFLAGS@,$CXXFLAGS,;t t
 
25163
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
 
25164
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
 
25165
s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
 
25166
s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
 
25167
s,@CXXCPP@,$CXXCPP,;t t
 
25168
s,@F77@,$F77,;t t
 
25169
s,@FFLAGS@,$FFLAGS,;t t
 
25170
s,@ac_ct_F77@,$ac_ct_F77,;t t
12861
25171
s,@LIBTOOL@,$LIBTOOL,;t t
12862
25172
s,@RAWCPP@,$RAWCPP,;t t
12863
25173
s,@RAWCPPFLAGS@,$RAWCPPFLAGS,;t t
12871
25181
s,@HAS_KERBEROS_FIVE_FALSE@,$HAS_KERBEROS_FIVE_FALSE,;t t
12872
25182
s,@XDMLIBDIR@,$XDMLIBDIR,;t t
12873
25183
s,@XDMCONFIGDIR@,$XDMCONFIGDIR,;t t
 
25184
s,@XDMSCRIPTDIR@,$XDMSCRIPTDIR,;t t
12874
25185
s,@XDMLOGDIR@,$XDMLOGDIR,;t t
12875
25186
s,@XDMPIDDIR@,$XDMPIDDIR,;t t
12876
25187
s,@DEFAULTVT@,$DEFAULTVT,;t t
12923
25234
s,@DEF_XDM_CONFIG@,$DEF_XDM_CONFIG,;t t
12924
25235
s,@DEF_CHOOSER@,$DEF_CHOOSER,;t t
12925
25236
s,@DEF_AUTH_DIR@,$DEF_AUTH_DIR,;t t
 
25237
s,@APPDEFS_CFLAGS@,$APPDEFS_CFLAGS,;t t
 
25238
s,@APPDEFS_LIBS@,$APPDEFS_LIBS,;t t
 
25239
s,@appdefaultdir@,$appdefaultdir,;t t
12926
25240
s,@APP_MAN_SUFFIX@,$APP_MAN_SUFFIX,;t t
12927
25241
s,@LIB_MAN_SUFFIX@,$LIB_MAN_SUFFIX,;t t
12928
25242
s,@FILE_MAN_SUFFIX@,$FILE_MAN_SUFFIX,;t t
12966
25280
      (echo ':t
12967
25281
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12968
25282
      if test -z "$ac_sed_cmds"; then
12969
 
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
 
25283
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12970
25284
      else
12971
 
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
 
25285
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12972
25286
      fi
12973
25287
      ac_sed_frag=`expr $ac_sed_frag + 1`
12974
25288
      ac_beg=$ac_end
12986
25300
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12987
25301
  case $ac_file in
12988
25302
  - | *:- | *:-:* ) # input from stdin
12989
 
        cat >$tmp/stdin
12990
 
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12991
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
25303
        cat >$tmp/stdin
 
25304
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
25305
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12992
25306
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12993
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
25307
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12994
25308
  * )   ac_file_in=$ac_file.in ;;
12995
25309
  esac
12996
25310
 
12997
25311
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12998
25312
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12999
25313
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13000
 
         X"$ac_file" : 'X\(//\)[^/]' \| \
13001
 
         X"$ac_file" : 'X\(//\)$' \| \
13002
 
         X"$ac_file" : 'X\(/\)' \| \
13003
 
         .     : '\(.\)' 2>/dev/null ||
 
25314
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
25315
         X"$ac_file" : 'X\(//\)$' \| \
 
25316
         X"$ac_file" : 'X\(/\)' \| \
 
25317
         .     : '\(.\)' 2>/dev/null ||
13004
25318
echo X"$ac_file" |
13005
25319
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13006
25320
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13016
25330
      as_dirs="$as_dir $as_dirs"
13017
25331
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
13018
25332
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13019
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
13020
 
         X"$as_dir" : 'X\(//\)$' \| \
13021
 
         X"$as_dir" : 'X\(/\)' \| \
13022
 
         .     : '\(.\)' 2>/dev/null ||
 
25333
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
25334
         X"$as_dir" : 'X\(//\)$' \| \
 
25335
         X"$as_dir" : 'X\(/\)' \| \
 
25336
         .     : '\(.\)' 2>/dev/null ||
13023
25337
echo X"$as_dir" |
13024
25338
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13025
25339
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13057
25371
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13058
25372
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
13059
25373
esac
13060
 
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
13061
 
# absolute.
13062
 
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
13063
 
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
13064
 
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
13065
 
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
 
25374
 
 
25375
# Do not use `cd foo && pwd` to compute absolute paths, because
 
25376
# the directories may not exist.
 
25377
case `pwd` in
 
25378
.) ac_abs_builddir="$ac_dir";;
 
25379
*)
 
25380
  case "$ac_dir" in
 
25381
  .) ac_abs_builddir=`pwd`;;
 
25382
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
25383
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
25384
  esac;;
 
25385
esac
 
25386
case $ac_abs_builddir in
 
25387
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
25388
*)
 
25389
  case ${ac_top_builddir}. in
 
25390
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
25391
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
25392
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
25393
  esac;;
 
25394
esac
 
25395
case $ac_abs_builddir in
 
25396
.) ac_abs_srcdir=$ac_srcdir;;
 
25397
*)
 
25398
  case $ac_srcdir in
 
25399
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
25400
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
25401
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
25402
  esac;;
 
25403
esac
 
25404
case $ac_abs_builddir in
 
25405
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
25406
*)
 
25407
  case $ac_top_srcdir in
 
25408
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
25409
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
25410
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
25411
  esac;;
 
25412
esac
13066
25413
 
13067
25414
 
13068
25415
  case $INSTALL in
13084
25431
    configure_input="$ac_file.  "
13085
25432
  fi
13086
25433
  configure_input=$configure_input"Generated from `echo $ac_file_in |
13087
 
                                     sed 's,.*/,,'` by configure."
 
25434
                                     sed 's,.*/,,'` by configure."
13088
25435
 
13089
25436
  # First look for the input files in the build tree, otherwise in the
13090
25437
  # src tree.
13093
25440
      case $f in
13094
25441
      -) echo $tmp/stdin ;;
13095
25442
      [\\/$]*)
13096
 
         # Absolute (can't be DOS-style, as IFS=:)
13097
 
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
25443
         # Absolute (can't be DOS-style, as IFS=:)
 
25444
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13098
25445
echo "$as_me: error: cannot find input file: $f" >&2;}
13099
25446
   { (exit 1); exit 1; }; }
13100
 
         echo $f;;
 
25447
         echo "$f";;
13101
25448
      *) # Relative
13102
 
         if test -f "$f"; then
13103
 
           # Build tree
13104
 
           echo $f
13105
 
         elif test -f "$srcdir/$f"; then
13106
 
           # Source tree
13107
 
           echo $srcdir/$f
13108
 
         else
13109
 
           # /dev/null tree
13110
 
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
25449
         if test -f "$f"; then
 
25450
           # Build tree
 
25451
           echo "$f"
 
25452
         elif test -f "$srcdir/$f"; then
 
25453
           # Source tree
 
25454
           echo "$srcdir/$f"
 
25455
         else
 
25456
           # /dev/null tree
 
25457
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13111
25458
echo "$as_me: error: cannot find input file: $f" >&2;}
13112
25459
   { (exit 1); exit 1; }; }
13113
 
         fi;;
 
25460
         fi;;
13114
25461
      esac
13115
25462
    done` || { (exit 1); exit 1; }
13116
25463
_ACEOF
13152
25499
# NAME is the cpp macro being defined and VALUE is the value it is being given.
13153
25500
#
13154
25501
# ac_d sets the value in "#define NAME VALUE" lines.
13155
 
ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
13156
 
ac_dB='[        ].*$,\1#\2'
 
25502
ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
 
25503
ac_dB='[         ].*$,\1#\2'
13157
25504
ac_dC=' '
13158
25505
ac_dD=',;t'
13159
25506
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13160
 
ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
 
25507
ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
13161
25508
ac_uB='$,\1#\2define\3'
13162
25509
ac_uC=' '
13163
25510
ac_uD=',;t'
13166
25513
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13167
25514
  case $ac_file in
13168
25515
  - | *:- | *:-:* ) # input from stdin
13169
 
        cat >$tmp/stdin
13170
 
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13171
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
25516
        cat >$tmp/stdin
 
25517
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
25518
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13172
25519
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13173
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
25520
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13174
25521
  * )   ac_file_in=$ac_file.in ;;
13175
25522
  esac
13176
25523
 
13184
25531
      case $f in
13185
25532
      -) echo $tmp/stdin ;;
13186
25533
      [\\/$]*)
13187
 
         # Absolute (can't be DOS-style, as IFS=:)
13188
 
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
25534
         # Absolute (can't be DOS-style, as IFS=:)
 
25535
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13189
25536
echo "$as_me: error: cannot find input file: $f" >&2;}
13190
25537
   { (exit 1); exit 1; }; }
13191
 
         echo $f;;
 
25538
         # Do quote $f, to prevent DOS paths from being IFS'd.
 
25539
         echo "$f";;
13192
25540
      *) # Relative
13193
 
         if test -f "$f"; then
13194
 
           # Build tree
13195
 
           echo $f
13196
 
         elif test -f "$srcdir/$f"; then
13197
 
           # Source tree
13198
 
           echo $srcdir/$f
13199
 
         else
13200
 
           # /dev/null tree
13201
 
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
25541
         if test -f "$f"; then
 
25542
           # Build tree
 
25543
           echo "$f"
 
25544
         elif test -f "$srcdir/$f"; then
 
25545
           # Source tree
 
25546
           echo "$srcdir/$f"
 
25547
         else
 
25548
           # /dev/null tree
 
25549
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13202
25550
echo "$as_me: error: cannot find input file: $f" >&2;}
13203
25551
   { (exit 1); exit 1; }; }
13204
 
         fi;;
 
25552
         fi;;
13205
25553
      esac
13206
25554
    done` || { (exit 1); exit 1; }
13207
25555
  # Remove the trailing spaces.
13208
 
  sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
 
25556
  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
13209
25557
 
13210
25558
_ACEOF
13211
25559
 
13228
25576
s,[\\$`],\\&,g
13229
25577
t clear
13230
25578
: clear
13231
 
s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
 
25579
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13232
25580
t end
13233
 
s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
 
25581
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13234
25582
: end
13235
25583
_ACEOF
13236
25584
# If some macros were called several times there might be several times
13244
25592
# example, in the case of _POSIX_SOURCE, which is predefined and required
13245
25593
# on some systems where configure will not decide to define it.
13246
25594
cat >>conftest.undefs <<\_ACEOF
13247
 
s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
 
25595
s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13248
25596
_ACEOF
13249
25597
 
13250
25598
# Break up conftest.defines because some shells have a limit on the size
13251
25599
# of here documents, and old seds have small limits too (100 cmds).
13252
25600
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13253
 
echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
 
25601
echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13254
25602
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13255
25603
echo '  :' >>$CONFIG_STATUS
13256
25604
rm -f conftest.tail
13259
25607
  # Write a limited-size here document to $tmp/defines.sed.
13260
25608
  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13261
25609
  # Speed up: don't consider the non `#define' lines.
13262
 
  echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
 
25610
  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
13263
25611
  # Work around the forget-to-reset-the-flag bug.
13264
25612
  echo 't clr' >>$CONFIG_STATUS
13265
25613
  echo ': clr' >>$CONFIG_STATUS
13286
25634
  # Write a limited-size here document to $tmp/undefs.sed.
13287
25635
  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13288
25636
  # Speed up: don't consider the non `#undef'
13289
 
  echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
 
25637
  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
13290
25638
  # Work around the forget-to-reset-the-flag bug.
13291
25639
  echo 't clr' >>$CONFIG_STATUS
13292
25640
  echo ': clr' >>$CONFIG_STATUS
13320
25668
    else
13321
25669
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13322
25670
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13323
 
         X"$ac_file" : 'X\(//\)[^/]' \| \
13324
 
         X"$ac_file" : 'X\(//\)$' \| \
13325
 
         X"$ac_file" : 'X\(/\)' \| \
13326
 
         .     : '\(.\)' 2>/dev/null ||
 
25671
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
25672
         X"$ac_file" : 'X\(//\)$' \| \
 
25673
         X"$ac_file" : 'X\(/\)' \| \
 
25674
         .     : '\(.\)' 2>/dev/null ||
13327
25675
echo X"$ac_file" |
13328
25676
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13329
25677
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13339
25687
      as_dirs="$as_dir $as_dirs"
13340
25688
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
13341
25689
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13342
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
13343
 
         X"$as_dir" : 'X\(//\)$' \| \
13344
 
         X"$as_dir" : 'X\(/\)' \| \
13345
 
         .     : '\(.\)' 2>/dev/null ||
 
25690
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
25691
         X"$as_dir" : 'X\(//\)$' \| \
 
25692
         X"$as_dir" : 'X\(/\)' \| \
 
25693
         .     : '\(.\)' 2>/dev/null ||
13346
25694
echo X"$as_dir" |
13347
25695
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13348
25696
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13374
25722
done
13375
25723
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
13376
25724
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13377
 
         X$ac_file : 'X\(//\)[^/]' \| \
13378
 
         X$ac_file : 'X\(//\)$' \| \
13379
 
         X$ac_file : 'X\(/\)' \| \
13380
 
         .     : '\(.\)' 2>/dev/null ||
 
25725
         X$ac_file : 'X\(//\)[^/]' \| \
 
25726
         X$ac_file : 'X\(//\)$' \| \
 
25727
         X$ac_file : 'X\(/\)' \| \
 
25728
         .     : '\(.\)' 2>/dev/null ||
13381
25729
echo X$ac_file |
13382
25730
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13383
25731
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13396
25744
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13397
25745
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
13398
25746
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13399
 
         X"$ac_dest" : 'X\(//\)[^/]' \| \
13400
 
         X"$ac_dest" : 'X\(//\)$' \| \
13401
 
         X"$ac_dest" : 'X\(/\)' \| \
13402
 
         .     : '\(.\)' 2>/dev/null ||
 
25747
         X"$ac_dest" : 'X\(//\)[^/]' \| \
 
25748
         X"$ac_dest" : 'X\(//\)$' \| \
 
25749
         X"$ac_dest" : 'X\(/\)' \| \
 
25750
         .     : '\(.\)' 2>/dev/null ||
13403
25751
echo X"$ac_dest" |
13404
25752
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13405
25753
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13406
25754
          /^X\(\/\/\)$/{ s//\1/; q; }
13407
25755
          /^X\(\/\).*/{ s//\1/; q; }
13408
25756
          s/.*/./; q'`
 
25757
  { if $as_mkdir_p; then
 
25758
    mkdir -p "$ac_dir"
 
25759
  else
 
25760
    as_dir="$ac_dir"
 
25761
    as_dirs=
 
25762
    while test ! -d "$as_dir"; do
 
25763
      as_dirs="$as_dir $as_dirs"
 
25764
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
25765
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
25766
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
25767
         X"$as_dir" : 'X\(//\)$' \| \
 
25768
         X"$as_dir" : 'X\(/\)' \| \
 
25769
         .     : '\(.\)' 2>/dev/null ||
 
25770
echo X"$as_dir" |
 
25771
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
25772
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
25773
          /^X\(\/\/\)$/{ s//\1/; q; }
 
25774
          /^X\(\/\).*/{ s//\1/; q; }
 
25775
          s/.*/./; q'`
 
25776
    done
 
25777
    test ! -n "$as_dirs" || mkdir $as_dirs
 
25778
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
25779
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
25780
   { (exit 1); exit 1; }; }; }
 
25781
 
13409
25782
  ac_builddir=.
13410
25783
 
13411
25784
if test "$ac_dir" != .; then
13431
25804
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13432
25805
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
13433
25806
esac
13434
 
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
13435
 
# absolute.
13436
 
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
13437
 
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
13438
 
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
13439
 
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
 
25807
 
 
25808
# Do not use `cd foo && pwd` to compute absolute paths, because
 
25809
# the directories may not exist.
 
25810
case `pwd` in
 
25811
.) ac_abs_builddir="$ac_dir";;
 
25812
*)
 
25813
  case "$ac_dir" in
 
25814
  .) ac_abs_builddir=`pwd`;;
 
25815
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
25816
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
25817
  esac;;
 
25818
esac
 
25819
case $ac_abs_builddir in
 
25820
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
25821
*)
 
25822
  case ${ac_top_builddir}. in
 
25823
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
25824
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
25825
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
25826
  esac;;
 
25827
esac
 
25828
case $ac_abs_builddir in
 
25829
.) ac_abs_srcdir=$ac_srcdir;;
 
25830
*)
 
25831
  case $ac_srcdir in
 
25832
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
25833
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
25834
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
25835
  esac;;
 
25836
esac
 
25837
case $ac_abs_builddir in
 
25838
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
25839
*)
 
25840
  case $ac_top_srcdir in
 
25841
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
25842
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
25843
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
25844
  esac;;
 
25845
esac
13440
25846
 
13441
25847
 
13442
25848
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13454
25860
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
13455
25861
    dirpart=`(dirname "$mf") 2>/dev/null ||
13456
25862
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13457
 
         X"$mf" : 'X\(//\)[^/]' \| \
13458
 
         X"$mf" : 'X\(//\)$' \| \
13459
 
         X"$mf" : 'X\(/\)' \| \
13460
 
         .     : '\(.\)' 2>/dev/null ||
 
25863
         X"$mf" : 'X\(//\)[^/]' \| \
 
25864
         X"$mf" : 'X\(//\)$' \| \
 
25865
         X"$mf" : 'X\(/\)' \| \
 
25866
         .     : '\(.\)' 2>/dev/null ||
13461
25867
echo X"$mf" |
13462
25868
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13463
25869
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13493
25899
    test -f "$dirpart/$file" && continue
13494
25900
    fdir=`(dirname "$file") 2>/dev/null ||
13495
25901
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13496
 
         X"$file" : 'X\(//\)[^/]' \| \
13497
 
         X"$file" : 'X\(//\)$' \| \
13498
 
         X"$file" : 'X\(/\)' \| \
13499
 
         .     : '\(.\)' 2>/dev/null ||
 
25902
         X"$file" : 'X\(//\)[^/]' \| \
 
25903
         X"$file" : 'X\(//\)$' \| \
 
25904
         X"$file" : 'X\(/\)' \| \
 
25905
         .     : '\(.\)' 2>/dev/null ||
13500
25906
echo X"$file" |
13501
25907
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13502
25908
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13512
25918
      as_dirs="$as_dir $as_dirs"
13513
25919
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
13514
25920
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13515
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
13516
 
         X"$as_dir" : 'X\(//\)$' \| \
13517
 
         X"$as_dir" : 'X\(/\)' \| \
13518
 
         .     : '\(.\)' 2>/dev/null ||
 
25921
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
25922
         X"$as_dir" : 'X\(//\)$' \| \
 
25923
         X"$as_dir" : 'X\(/\)' \| \
 
25924
         .     : '\(.\)' 2>/dev/null ||
13519
25925
echo X"$as_dir" |
13520
25926
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13521
25927
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }