~ubuntu-branches/ubuntu/edgy/rxtx/edgy-201105201527

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Mario Joussen
  • Date: 2006-03-01 18:56:52 UTC
  • mfrom: (1.1.2 upstream) (2.1.1 etch)
  • Revision ID: james.westby@ubuntu.com-20060301185652-ri9941gi01goklvz
Tags: 2.1.7-2
Fixed stupid bug in clean target.
(closes: Bug#354859)

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.
 
3
# Generated by GNU Autoconf 2.59.
4
4
#
5
 
# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6
 
# Free Software Foundation, Inc.
 
5
# Copyright (C) 2003 Free Software Foundation, Inc.
7
6
# This configure script is free software; the Free Software Foundation
8
7
# gives unlimited permission to copy, distribute and modify it.
9
8
## --------------------- ##
20
19
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21
20
  set -o posix
22
21
fi
 
22
DUALCASE=1; export DUALCASE # for MKS sh
23
23
 
24
24
# Support unset when possible.
25
 
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
 
25
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26
26
  as_unset=unset
27
27
else
28
28
  as_unset=false
41
41
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42
42
  LC_TELEPHONE LC_TIME
43
43
do
44
 
  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
44
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45
45
    eval $as_var=C; export $as_var
46
46
  else
47
47
    $as_unset $as_var
218
218
if mkdir -p . 2>/dev/null; then
219
219
  as_mkdir_p=:
220
220
else
 
221
  test -d ./-p && rmdir ./-p
221
222
  as_mkdir_p=false
222
223
fi
223
224
 
224
225
as_executable_p="test -f"
225
226
 
226
227
# Sed expression to map a string onto a valid CPP name.
227
 
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
 
228
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
228
229
 
229
230
# Sed expression to map a string onto a valid variable name.
230
 
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
 
231
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
231
232
 
232
233
 
233
234
# IFS
240
241
$as_unset CDPATH
241
242
 
242
243
 
243
 
# Find the correct PATH separator.  Usually this is `:', but
244
 
# DJGPP uses `;' like DOS.
245
 
if test "X${PATH_SEPARATOR+set}" != Xset; then
246
 
  UNAME=${UNAME-`uname 2>/dev/null`}
247
 
  case X$UNAME in
248
 
    *-DOS) lt_cv_sys_path_separator=';' ;;
249
 
    *)     lt_cv_sys_path_separator=':' ;;
250
 
  esac
251
 
  PATH_SEPARATOR=$lt_cv_sys_path_separator
252
 
fi
253
 
 
254
244
 
255
245
# Check that we are running under the correct shell.
256
246
SHELL=${CONFIG_SHELL-/bin/sh}
269
259
elif test "X$1" = X--fallback-echo; then
270
260
  # Avoid inline document here, it may be left over
271
261
  :
272
 
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
 
262
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
273
263
  # Yippee, $echo works!
274
264
  :
275
265
else
281
271
  # used as fallback echo
282
272
  shift
283
273
  cat <<EOF
284
 
 
 
274
$*
285
275
EOF
286
276
  exit 0
287
277
fi
288
278
 
289
279
# The HP-UX ksh and POSIX shell print the target directory to stdout
290
280
# if CDPATH is set.
291
 
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
281
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
292
282
 
293
283
if test -z "$ECHO"; then
294
284
if test "X${echo_test_string+set}" != Xset; then
315
305
  #
316
306
  # So, first we look for a working echo in the user's PATH.
317
307
 
318
 
  IFS="${IFS=   }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
308
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
319
309
  for dir in $PATH /usr/ucb; do
 
310
    IFS="$lt_save_ifs"
320
311
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
321
312
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
322
313
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
325
316
      break
326
317
    fi
327
318
  done
328
 
  IFS="$save_ifs"
 
319
  IFS="$lt_save_ifs"
329
320
 
330
321
  if test "X$echo" = Xecho; then
331
322
    # We didn't find a better echo, so look for alternatives.
399
390
 
400
391
 
401
392
 
 
393
 
 
394
tagnames=${tagnames+${tagnames},}CXX
 
395
 
 
396
tagnames=${tagnames+${tagnames},}F77
 
397
 
402
398
# Name of the host.
403
399
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
404
400
# so uname gets run too.
467
463
# include <unistd.h>
468
464
#endif"
469
465
 
470
 
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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LN_S ECHO RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CPP EGREP LIBTOOL INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh INSTALL_STRIP_PROGRAM AWK SET_MAKE DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE WINDOWS_JAVA_INCLUDE JAVAINCLUDEDIR JAVAINCLUDE JAVANATINC CLASSPATH TOP TARGETLIB LDFLAG THREAD_FLAG OS_NAME OS_ARCH OS_VERSION JAVA_VERSION JAVA_VENDOR JAVA_HOME JAVA_LIBRARY_PATH JAVA_CLASS_PATH JAVA_CLASS_VERSION JAVAH_FIX JPATH JHOME RXTX_PATH JAVAH JAVAC JAR JAVADOC EXTENSION LIBTOOL_FIX LINK COMPILE OBJECT_EXTENSION LIB_EXTENSION MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBOBJS LTLIBOBJS'
 
466
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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CPP CXX CXXFLAGS ac_ct_CXX CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE WINDOWS_JAVA_INCLUDE JAVAINCLUDEDIR JAVAINCLUDE JAVANATINC CLASSPATH TOP TARGETLIB LDFLAG THREAD_FLAG OS_NAME OS_ARCH OS_VERSION JAVA_VERSION JAVA_VENDOR JAVA_HOME JAVA_LIBRARY_PATH JAVA_CLASS_PATH JAVA_CLASS_VERSION JAVAH_FIX JPATH JHOME RXTX_PATH JAVAH JAVAC JAR JAVADOC EXTENSION LIBTOOL_FIX LINK COMPILE OBJECT_EXTENSION LIB_EXTENSION GLIBTOOL MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBOBJS LTLIBOBJS'
471
467
ac_subst_files=''
472
468
 
473
469
# Initialize some variables set by options.
826
822
 
827
823
# Be sure to have absolute paths.
828
824
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
829
 
              localstatedir libdir includedir oldincludedir infodir mandir
 
825
              localstatedir libdir includedir oldincludedir infodir mandir
830
826
do
831
827
  eval ac_val=$`echo $ac_var`
832
828
  case $ac_val in
866
862
  # Try the directory containing this script, then its parent.
867
863
  ac_confdir=`(dirname "$0") 2>/dev/null ||
868
864
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
869
 
         X"$0" : 'X\(//\)[^/]' \| \
870
 
         X"$0" : 'X\(//\)$' \| \
871
 
         X"$0" : 'X\(/\)' \| \
872
 
         .     : '\(.\)' 2>/dev/null ||
 
865
         X"$0" : 'X\(//\)[^/]' \| \
 
866
         X"$0" : 'X\(//\)$' \| \
 
867
         X"$0" : 'X\(/\)' \| \
 
868
         .     : '\(.\)' 2>/dev/null ||
873
869
echo X"$0" |
874
870
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
875
871
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
928
924
ac_env_CPP_value=$CPP
929
925
ac_cv_env_CPP_set=${CPP+set}
930
926
ac_cv_env_CPP_value=$CPP
 
927
ac_env_CXX_set=${CXX+set}
 
928
ac_env_CXX_value=$CXX
 
929
ac_cv_env_CXX_set=${CXX+set}
 
930
ac_cv_env_CXX_value=$CXX
 
931
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
 
932
ac_env_CXXFLAGS_value=$CXXFLAGS
 
933
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
 
934
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
 
935
ac_env_CXXCPP_set=${CXXCPP+set}
 
936
ac_env_CXXCPP_value=$CXXCPP
 
937
ac_cv_env_CXXCPP_set=${CXXCPP+set}
 
938
ac_cv_env_CXXCPP_value=$CXXCPP
 
939
ac_env_F77_set=${F77+set}
 
940
ac_env_F77_value=$F77
 
941
ac_cv_env_F77_set=${F77+set}
 
942
ac_cv_env_F77_value=$F77
 
943
ac_env_FFLAGS_set=${FFLAGS+set}
 
944
ac_env_FFLAGS_value=$FFLAGS
 
945
ac_cv_env_FFLAGS_set=${FFLAGS+set}
 
946
ac_cv_env_FFLAGS_value=$FFLAGS
931
947
 
932
948
#
933
949
# Report the --help message.
961
977
  cat <<_ACEOF
962
978
Installation directories:
963
979
  --prefix=PREFIX         install architecture-independent files in PREFIX
964
 
                          [$ac_default_prefix]
 
980
                          [$ac_default_prefix]
965
981
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
966
 
                          [PREFIX]
 
982
                          [PREFIX]
967
983
 
968
984
By default, \`make install' will install all the files in
969
985
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1008
1024
Optional Features:
1009
1025
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1010
1026
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1011
 
  --enable-static=PKGS  build static libraries default=no
1012
 
  --enable-shared=PKGS  build shared libraries default=yes
1013
 
  --enable-fast-install=PKGS  optimize for fast installation default=yes
 
1027
  --enable-static[=PKGS]
 
1028
                          build static libraries [default=no]
 
1029
  --enable-shared[=PKGS]
 
1030
                          build shared libraries [default=yes]
 
1031
  --enable-fast-install[=PKGS]
 
1032
                          optimize for fast installation [default=yes]
1014
1033
  --disable-libtool-lock  avoid locking (might break parallel builds)
1015
 
  --disable-dependency-tracking Speeds up one-time builds
1016
 
  --enable-dependency-tracking  Do not reject slow dependency extractors
1017
 
  --enable-maintainer-mode enable make rules and dependencies not useful
1018
 
                          (and sometimes confusing) to the casual installer
 
1034
  --disable-dependency-tracking  speeds up one-time build
 
1035
  --enable-dependency-tracking   do not reject slow dependency extractors
 
1036
  --enable-maintainer-mode  enable make rules and dependencies not useful
 
1037
                          (and sometimes confusing) to the casual installer
1019
1038
  --enable-PRINTER        PRINTER support (experimental) default=yes
1020
1039
  --disable-lockfiles     disable lock files (experimental) default=no
 
1040
  --enable-liblock=x     enable liblock default=no
1021
1041
  --enable-lockfile_server          Enable interaction with a lock file server default=no
1022
1042
  --enable-DEBUG          Print debugging info from SerialImp.c default=no
1023
1043
 
1024
1044
Optional Packages:
1025
1045
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1026
1046
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1027
 
  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1028
 
  --with-pic              try to use only PIC/non-PIC objects default=use both
 
1047
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
 
1048
  --with-pic              try to use only PIC/non-PIC objects [default=use
 
1049
                          both]
 
1050
  --with-tags[=TAGS]
 
1051
                          include additional configurations [automatic]
1029
1052
 
1030
1053
Some influential environment variables:
1031
1054
  CC          C compiler command
1035
1058
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1036
1059
              headers in a nonstandard directory <include dir>
1037
1060
  CPP         C preprocessor
 
1061
  CXX         C++ compiler command
 
1062
  CXXFLAGS    C++ compiler flags
 
1063
  CXXCPP      C++ preprocessor
 
1064
  F77         Fortran 77 compiler command
 
1065
  FFLAGS      Fortran 77 compiler flags
1038
1066
 
1039
1067
Use these variables to override the choices made by `configure' or to help
1040
1068
it to find libraries and programs with nonstandard names/locations.
1072
1100
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1073
1101
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1074
1102
esac
1075
 
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1076
 
# absolute.
1077
 
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1078
 
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1079
 
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1080
 
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
 
1103
 
 
1104
# Do not use `cd foo && pwd` to compute absolute paths, because
 
1105
# the directories may not exist.
 
1106
case `pwd` in
 
1107
.) ac_abs_builddir="$ac_dir";;
 
1108
*)
 
1109
  case "$ac_dir" in
 
1110
  .) ac_abs_builddir=`pwd`;;
 
1111
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
1112
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
1113
  esac;;
 
1114
esac
 
1115
case $ac_abs_builddir in
 
1116
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
1117
*)
 
1118
  case ${ac_top_builddir}. in
 
1119
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
1120
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
1121
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
1122
  esac;;
 
1123
esac
 
1124
case $ac_abs_builddir in
 
1125
.) ac_abs_srcdir=$ac_srcdir;;
 
1126
*)
 
1127
  case $ac_srcdir in
 
1128
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
1129
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
1130
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
1131
  esac;;
 
1132
esac
 
1133
case $ac_abs_builddir in
 
1134
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
1135
*)
 
1136
  case $ac_top_srcdir in
 
1137
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
1138
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
1139
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
1140
  esac;;
 
1141
esac
1081
1142
 
1082
1143
    cd $ac_dir
1083
1144
    # Check for guested configure; otherwise get Cygnus style configure.
1088
1149
      echo
1089
1150
      $SHELL $ac_srcdir/configure  --help=recursive
1090
1151
    elif test -f $ac_srcdir/configure.ac ||
1091
 
           test -f $ac_srcdir/configure.in; then
 
1152
           test -f $ac_srcdir/configure.in; then
1092
1153
      echo
1093
1154
      $ac_configure --help
1094
1155
    else
1095
1156
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1096
1157
    fi
1097
 
    cd "$ac_popdir"
 
1158
    cd $ac_popdir
1098
1159
  done
1099
1160
fi
1100
1161
 
1102
1163
if $ac_init_version; then
1103
1164
  cat <<\_ACEOF
1104
1165
 
1105
 
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1106
 
Free Software Foundation, Inc.
 
1166
Copyright (C) 2003 Free Software Foundation, Inc.
1107
1167
This configure script is free software; the Free Software Foundation
1108
1168
gives unlimited permission to copy, distribute and modify it.
1109
1169
_ACEOF
1115
1175
running configure, to aid debugging if configure makes a mistake.
1116
1176
 
1117
1177
It was created by $as_me, which was
1118
 
generated by GNU Autoconf 2.57.  Invocation command line was
 
1178
generated by GNU Autoconf 2.59.  Invocation command line was
1119
1179
 
1120
1180
  $ $0 $@
1121
1181
 
1192
1252
    2)
1193
1253
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1194
1254
      if test $ac_must_keep_next = true; then
1195
 
        ac_must_keep_next=false # Got value, back to normal.
 
1255
        ac_must_keep_next=false # Got value, back to normal.
1196
1256
      else
1197
 
        case $ac_arg in
1198
 
          *=* | --config-cache | -C | -disable-* | --disable-* \
1199
 
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1200
 
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1201
 
          | -with-* | --with-* | -without-* | --without-* | --x)
1202
 
            case "$ac_configure_args0 " in
1203
 
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1204
 
            esac
1205
 
            ;;
1206
 
          -* ) ac_must_keep_next=true ;;
1207
 
        esac
 
1257
        case $ac_arg in
 
1258
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1259
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1260
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1261
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1262
            case "$ac_configure_args0 " in
 
1263
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1264
            esac
 
1265
            ;;
 
1266
          -* ) ac_must_keep_next=true ;;
 
1267
        esac
1208
1268
      fi
1209
1269
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1210
1270
      # Get rid of the leading space.
1238
1298
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1239
1299
    *ac_space=\ *)
1240
1300
      sed -n \
1241
 
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1242
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
 
1301
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
 
1302
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1243
1303
      ;;
1244
1304
    *)
1245
1305
      sed -n \
1246
 
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
1306
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1247
1307
      ;;
1248
1308
    esac;
1249
1309
}
1272
1332
      for ac_var in $ac_subst_files
1273
1333
      do
1274
1334
        eval ac_val=$`echo $ac_var`
1275
 
        echo "$ac_var='"'"'$ac_val'"'"'"
 
1335
        echo "$ac_var='"'"'$ac_val'"'"'"
1276
1336
      done | sort
1277
1337
      echo
1278
1338
    fi
1371
1431
# value.
1372
1432
ac_cache_corrupted=false
1373
1433
for ac_var in `(set) 2>&1 |
1374
 
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
 
1434
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1375
1435
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1376
1436
  eval ac_new_set=\$ac_env_${ac_var}_set
1377
1437
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1388
1448
    ,);;
1389
1449
    *)
1390
1450
      if test "x$ac_old_val" != "x$ac_new_val"; then
1391
 
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
1451
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1392
1452
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1393
 
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
 
1453
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1394
1454
echo "$as_me:   former value:  $ac_old_val" >&2;}
1395
 
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
 
1455
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1396
1456
echo "$as_me:   current value: $ac_new_val" >&2;}
1397
 
        ac_cache_corrupted=:
 
1457
        ac_cache_corrupted=:
1398
1458
      fi;;
1399
1459
  esac
1400
1460
  # Pass precious variables to config.status.
1442
1502
 
1443
1503
 
1444
1504
 
1445
 
# Add the stamp file to the list of files AC keeps track of,
1446
 
# along with our hook.
1447
1505
          ac_config_headers="$ac_config_headers config.h"
1448
1506
 
1449
 
 
1450
 
 
1451
1507
ac_aux_dir=
1452
1508
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1453
1509
  if test -f $ac_dir/install-sh; then
1893
1949
  (exit $ac_status); }
1894
1950
 
1895
1951
cat >conftest.$ac_ext <<_ACEOF
1896
 
#line $LINENO "configure"
1897
1952
/* confdefs.h.  */
1898
1953
_ACEOF
1899
1954
cat confdefs.h >>conftest.$ac_ext
1913
1968
# Try to create an executable without -o first, disregard a.out.
1914
1969
# It will help us diagnose broken compilers, and finding out an intuition
1915
1970
# of exeext.
1916
 
echo "$as_me:$LINENO: checking for C compiler default output" >&5
1917
 
echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
 
1971
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
1972
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1918
1973
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1919
1974
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1920
1975
  (eval $ac_link_default) 2>&5
1934
1989
  test -f "$ac_file" || continue
1935
1990
  case $ac_file in
1936
1991
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1937
 
        ;;
 
1992
        ;;
1938
1993
    conftest.$ac_ext )
1939
 
        # This is the source file.
1940
 
        ;;
 
1994
        # This is the source file.
 
1995
        ;;
1941
1996
    [ab].out )
1942
 
        # We found the default executable, but exeext='' is most
1943
 
        # certainly right.
1944
 
        break;;
 
1997
        # We found the default executable, but exeext='' is most
 
1998
        # certainly right.
 
1999
        break;;
1945
2000
    *.* )
1946
 
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1947
 
        # FIXME: I believe we export ac_cv_exeext for Libtool,
1948
 
        # but it would be cool to find out if it's true.  Does anybody
1949
 
        # maintain Libtool? --akim.
1950
 
        export ac_cv_exeext
1951
 
        break;;
 
2001
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2002
        # FIXME: I believe we export ac_cv_exeext for Libtool,
 
2003
        # but it would be cool to find out if it's true.  Does anybody
 
2004
        # maintain Libtool? --akim.
 
2005
        export ac_cv_exeext
 
2006
        break;;
1952
2007
    * )
1953
 
        break;;
 
2008
        break;;
1954
2009
  esac
1955
2010
done
1956
2011
else
2024
2079
  case $ac_file in
2025
2080
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2026
2081
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2027
 
          export ac_cv_exeext
2028
 
          break;;
 
2082
          export ac_cv_exeext
 
2083
          break;;
2029
2084
    * ) break;;
2030
2085
  esac
2031
2086
done
2050
2105
  echo $ECHO_N "(cached) $ECHO_C" >&6
2051
2106
else
2052
2107
  cat >conftest.$ac_ext <<_ACEOF
2053
 
#line $LINENO "configure"
2054
2108
/* confdefs.h.  */
2055
2109
_ACEOF
2056
2110
cat confdefs.h >>conftest.$ac_ext
2101
2155
  echo $ECHO_N "(cached) $ECHO_C" >&6
2102
2156
else
2103
2157
  cat >conftest.$ac_ext <<_ACEOF
2104
 
#line $LINENO "configure"
2105
2158
/* confdefs.h.  */
2106
2159
_ACEOF
2107
2160
cat confdefs.h >>conftest.$ac_ext
2121
2174
_ACEOF
2122
2175
rm -f conftest.$ac_objext
2123
2176
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2124
 
  (eval $ac_compile) 2>&5
 
2177
  (eval $ac_compile) 2>conftest.er1
2125
2178
  ac_status=$?
 
2179
  grep -v '^ *+' conftest.er1 >conftest.err
 
2180
  rm -f conftest.er1
 
2181
  cat conftest.err >&5
2126
2182
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2127
2183
  (exit $ac_status); } &&
2128
 
         { ac_try='test -s conftest.$ac_objext'
 
2184
         { ac_try='test -z "$ac_c_werror_flag"
 
2185
                         || test ! -s conftest.err'
 
2186
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2187
  (eval $ac_try) 2>&5
 
2188
  ac_status=$?
 
2189
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2190
  (exit $ac_status); }; } &&
 
2191
         { ac_try='test -s conftest.$ac_objext'
2129
2192
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2130
2193
  (eval $ac_try) 2>&5
2131
2194
  ac_status=$?
2138
2201
 
2139
2202
ac_compiler_gnu=no
2140
2203
fi
2141
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
2204
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2142
2205
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2143
2206
 
2144
2207
fi
2154
2217
  echo $ECHO_N "(cached) $ECHO_C" >&6
2155
2218
else
2156
2219
  cat >conftest.$ac_ext <<_ACEOF
2157
 
#line $LINENO "configure"
2158
2220
/* confdefs.h.  */
2159
2221
_ACEOF
2160
2222
cat confdefs.h >>conftest.$ac_ext
2171
2233
_ACEOF
2172
2234
rm -f conftest.$ac_objext
2173
2235
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2174
 
  (eval $ac_compile) 2>&5
 
2236
  (eval $ac_compile) 2>conftest.er1
2175
2237
  ac_status=$?
 
2238
  grep -v '^ *+' conftest.er1 >conftest.err
 
2239
  rm -f conftest.er1
 
2240
  cat conftest.err >&5
2176
2241
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2177
2242
  (exit $ac_status); } &&
2178
 
         { ac_try='test -s conftest.$ac_objext'
 
2243
         { ac_try='test -z "$ac_c_werror_flag"
 
2244
                         || test ! -s conftest.err'
 
2245
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2246
  (eval $ac_try) 2>&5
 
2247
  ac_status=$?
 
2248
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2249
  (exit $ac_status); }; } &&
 
2250
         { ac_try='test -s conftest.$ac_objext'
2179
2251
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2180
2252
  (eval $ac_try) 2>&5
2181
2253
  ac_status=$?
2188
2260
 
2189
2261
ac_cv_prog_cc_g=no
2190
2262
fi
2191
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
2263
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2192
2264
fi
2193
2265
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2194
2266
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2215
2287
  ac_cv_prog_cc_stdc=no
2216
2288
ac_save_CC=$CC
2217
2289
cat >conftest.$ac_ext <<_ACEOF
2218
 
#line $LINENO "configure"
2219
2290
/* confdefs.h.  */
2220
2291
_ACEOF
2221
2292
cat confdefs.h >>conftest.$ac_ext
2243
2314
  va_end (v);
2244
2315
  return s;
2245
2316
}
 
2317
 
 
2318
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
2319
   function prototypes and stuff, but not '\xHH' hex character constants.
 
2320
   These don't provoke an error unfortunately, instead are silently treated
 
2321
   as 'x'.  The following induces an error, until -std1 is added to get
 
2322
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
2323
   array size at least.  It's necessary to write '\x00'==0 to get something
 
2324
   that's true only with -std1.  */
 
2325
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
2326
 
2246
2327
int test (int i, double x);
2247
2328
struct s1 {int (*f) (int a);};
2248
2329
struct s2 {int (*f) (double a);};
2269
2350
  CC="$ac_save_CC $ac_arg"
2270
2351
  rm -f conftest.$ac_objext
2271
2352
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2272
 
  (eval $ac_compile) 2>&5
 
2353
  (eval $ac_compile) 2>conftest.er1
2273
2354
  ac_status=$?
 
2355
  grep -v '^ *+' conftest.er1 >conftest.err
 
2356
  rm -f conftest.er1
 
2357
  cat conftest.err >&5
2274
2358
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2275
2359
  (exit $ac_status); } &&
2276
 
         { ac_try='test -s conftest.$ac_objext'
 
2360
         { ac_try='test -z "$ac_c_werror_flag"
 
2361
                         || test ! -s conftest.err'
 
2362
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2363
  (eval $ac_try) 2>&5
 
2364
  ac_status=$?
 
2365
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2366
  (exit $ac_status); }; } &&
 
2367
         { ac_try='test -s conftest.$ac_objext'
2277
2368
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2278
2369
  (eval $ac_try) 2>&5
2279
2370
  ac_status=$?
2286
2377
sed 's/^/| /' conftest.$ac_ext >&5
2287
2378
 
2288
2379
fi
2289
 
rm -f conftest.$ac_objext
 
2380
rm -f conftest.err conftest.$ac_objext
2290
2381
done
2291
2382
rm -f conftest.$ac_ext conftest.$ac_objext
2292
2383
CC=$ac_save_CC
2314
2405
_ACEOF
2315
2406
rm -f conftest.$ac_objext
2316
2407
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2317
 
  (eval $ac_compile) 2>&5
 
2408
  (eval $ac_compile) 2>conftest.er1
2318
2409
  ac_status=$?
 
2410
  grep -v '^ *+' conftest.er1 >conftest.err
 
2411
  rm -f conftest.er1
 
2412
  cat conftest.err >&5
2319
2413
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320
2414
  (exit $ac_status); } &&
2321
 
         { ac_try='test -s conftest.$ac_objext'
 
2415
         { ac_try='test -z "$ac_c_werror_flag"
 
2416
                         || test ! -s conftest.err'
 
2417
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2418
  (eval $ac_try) 2>&5
 
2419
  ac_status=$?
 
2420
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2421
  (exit $ac_status); }; } &&
 
2422
         { ac_try='test -s conftest.$ac_objext'
2322
2423
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2323
2424
  (eval $ac_try) 2>&5
2324
2425
  ac_status=$?
2333
2434
   'void exit (int);'
2334
2435
do
2335
2436
  cat >conftest.$ac_ext <<_ACEOF
2336
 
#line $LINENO "configure"
2337
2437
/* confdefs.h.  */
2338
2438
_ACEOF
2339
2439
cat confdefs.h >>conftest.$ac_ext
2351
2451
_ACEOF
2352
2452
rm -f conftest.$ac_objext
2353
2453
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2354
 
  (eval $ac_compile) 2>&5
 
2454
  (eval $ac_compile) 2>conftest.er1
2355
2455
  ac_status=$?
 
2456
  grep -v '^ *+' conftest.er1 >conftest.err
 
2457
  rm -f conftest.er1
 
2458
  cat conftest.err >&5
2356
2459
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357
2460
  (exit $ac_status); } &&
2358
 
         { ac_try='test -s conftest.$ac_objext'
 
2461
         { ac_try='test -z "$ac_c_werror_flag"
 
2462
                         || test ! -s conftest.err'
 
2463
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2464
  (eval $ac_try) 2>&5
 
2465
  ac_status=$?
 
2466
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2467
  (exit $ac_status); }; } &&
 
2468
         { ac_try='test -s conftest.$ac_objext'
2359
2469
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2360
2470
  (eval $ac_try) 2>&5
2361
2471
  ac_status=$?
2368
2478
 
2369
2479
continue
2370
2480
fi
2371
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
2481
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2372
2482
  cat >conftest.$ac_ext <<_ACEOF
2373
 
#line $LINENO "configure"
2374
2483
/* confdefs.h.  */
2375
2484
_ACEOF
2376
2485
cat confdefs.h >>conftest.$ac_ext
2387
2496
_ACEOF
2388
2497
rm -f conftest.$ac_objext
2389
2498
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2390
 
  (eval $ac_compile) 2>&5
 
2499
  (eval $ac_compile) 2>conftest.er1
2391
2500
  ac_status=$?
 
2501
  grep -v '^ *+' conftest.er1 >conftest.err
 
2502
  rm -f conftest.er1
 
2503
  cat conftest.err >&5
2392
2504
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2393
2505
  (exit $ac_status); } &&
2394
 
         { ac_try='test -s conftest.$ac_objext'
 
2506
         { ac_try='test -z "$ac_c_werror_flag"
 
2507
                         || test ! -s conftest.err'
 
2508
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2509
  (eval $ac_try) 2>&5
 
2510
  ac_status=$?
 
2511
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2512
  (exit $ac_status); }; } &&
 
2513
         { ac_try='test -s conftest.$ac_objext'
2395
2514
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2396
2515
  (eval $ac_try) 2>&5
2397
2516
  ac_status=$?
2403
2522
sed 's/^/| /' conftest.$ac_ext >&5
2404
2523
 
2405
2524
fi
2406
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
2525
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2407
2526
done
2408
2527
rm -f conftest*
2409
2528
if test -n "$ac_declaration"; then
2417
2536
sed 's/^/| /' conftest.$ac_ext >&5
2418
2537
 
2419
2538
fi
2420
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
2539
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2421
2540
ac_ext=c
2422
2541
ac_cpp='$CPP $CPPFLAGS'
2423
2542
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2429
2548
if test "${enable_static+set}" = set; then
2430
2549
  enableval="$enable_static"
2431
2550
  p=${PACKAGE-default}
2432
 
case $enableval in
2433
 
yes) enable_static=yes ;;
2434
 
no) enable_static=no ;;
2435
 
*)
2436
 
  enable_static=no
2437
 
  # Look at the argument we got.  We use all the common list separators.
2438
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2439
 
  for pkg in $enableval; do
2440
 
    if test "X$pkg" = "X$p"; then
2441
 
      enable_static=yes
2442
 
    fi
2443
 
  done
2444
 
  IFS="$ac_save_ifs"
2445
 
  ;;
2446
 
esac
 
2551
    case $enableval in
 
2552
    yes) enable_static=yes ;;
 
2553
    no) enable_static=no ;;
 
2554
    *)
 
2555
     enable_static=no
 
2556
      # Look at the argument we got.  We use all the common list separators.
 
2557
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
2558
      for pkg in $enableval; do
 
2559
        IFS="$lt_save_ifs"
 
2560
        if test "X$pkg" = "X$p"; then
 
2561
          enable_static=yes
 
2562
        fi
 
2563
      done
 
2564
      IFS="$lt_save_ifs"
 
2565
      ;;
 
2566
    esac
2447
2567
else
2448
2568
  enable_static=no
2449
2569
fi;
 
2570
 
 
2571
 
2450
2572
# Check whether --enable-shared or --disable-shared was given.
2451
2573
if test "${enable_shared+set}" = set; then
2452
2574
  enableval="$enable_shared"
2453
2575
  p=${PACKAGE-default}
2454
 
case $enableval in
2455
 
yes) enable_shared=yes ;;
2456
 
no) enable_shared=no ;;
2457
 
*)
2458
 
  enable_shared=no
2459
 
  # Look at the argument we got.  We use all the common list separators.
2460
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2461
 
  for pkg in $enableval; do
2462
 
    if test "X$pkg" = "X$p"; then
2463
 
      enable_shared=yes
2464
 
    fi
2465
 
  done
2466
 
  IFS="$ac_save_ifs"
2467
 
  ;;
2468
 
esac
 
2576
    case $enableval in
 
2577
    yes) enable_shared=yes ;;
 
2578
    no) enable_shared=no ;;
 
2579
    *)
 
2580
      enable_shared=no
 
2581
      # Look at the argument we got.  We use all the common list separators.
 
2582
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
2583
      for pkg in $enableval; do
 
2584
        IFS="$lt_save_ifs"
 
2585
        if test "X$pkg" = "X$p"; then
 
2586
          enable_shared=yes
 
2587
        fi
 
2588
      done
 
2589
      IFS="$lt_save_ifs"
 
2590
      ;;
 
2591
    esac
2469
2592
else
2470
2593
  enable_shared=yes
2471
2594
fi;
 
2595
 
2472
2596
# Check whether --enable-fast-install or --disable-fast-install was given.
2473
2597
if test "${enable_fast_install+set}" = set; then
2474
2598
  enableval="$enable_fast_install"
2475
2599
  p=${PACKAGE-default}
2476
 
case $enableval in
2477
 
yes) enable_fast_install=yes ;;
2478
 
no) enable_fast_install=no ;;
2479
 
*)
2480
 
  enable_fast_install=no
2481
 
  # Look at the argument we got.  We use all the common list separators.
2482
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2483
 
  for pkg in $enableval; do
2484
 
    if test "X$pkg" = "X$p"; then
2485
 
      enable_fast_install=yes
2486
 
    fi
2487
 
  done
2488
 
  IFS="$ac_save_ifs"
2489
 
  ;;
2490
 
esac
 
2600
    case $enableval in
 
2601
    yes) enable_fast_install=yes ;;
 
2602
    no) enable_fast_install=no ;;
 
2603
    *)
 
2604
      enable_fast_install=no
 
2605
      # Look at the argument we got.  We use all the common list separators.
 
2606
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
2607
      for pkg in $enableval; do
 
2608
        IFS="$lt_save_ifs"
 
2609
        if test "X$pkg" = "X$p"; then
 
2610
          enable_fast_install=yes
 
2611
        fi
 
2612
      done
 
2613
      IFS="$lt_save_ifs"
 
2614
      ;;
 
2615
    esac
2491
2616
else
2492
2617
  enable_fast_install=yes
2493
2618
fi;
2494
 
# Find the correct PATH separator.  Usually this is `:', but
2495
 
# DJGPP uses `;' like DOS.
2496
 
if test "X${PATH_SEPARATOR+set}" != Xset; then
2497
 
  UNAME=${UNAME-`uname 2>/dev/null`}
2498
 
  case X$UNAME in
2499
 
    *-DOS) lt_cv_sys_path_separator=';' ;;
2500
 
    *)     lt_cv_sys_path_separator=':' ;;
2501
 
  esac
2502
 
  PATH_SEPARATOR=$lt_cv_sys_path_separator
2503
 
fi
 
2619
 
 
2620
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
 
2621
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
 
2622
if test "${lt_cv_path_SED+set}" = set; then
 
2623
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2624
else
 
2625
  # Loop through the user's path and test for sed and gsed.
 
2626
# Then use that list of sed's as ones to test for truncation.
 
2627
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2628
for as_dir in $PATH
 
2629
do
 
2630
  IFS=$as_save_IFS
 
2631
  test -z "$as_dir" && as_dir=.
 
2632
  for lt_ac_prog in sed gsed; do
 
2633
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2634
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
 
2635
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
 
2636
      fi
 
2637
    done
 
2638
  done
 
2639
done
 
2640
lt_ac_max=0
 
2641
lt_ac_count=0
 
2642
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
 
2643
# along with /bin/sed that truncates output.
 
2644
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
 
2645
  test ! -f $lt_ac_sed && continue
 
2646
  cat /dev/null > conftest.in
 
2647
  lt_ac_count=0
 
2648
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
 
2649
  # Check for GNU sed and select it if it is found.
 
2650
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
 
2651
    lt_cv_path_SED=$lt_ac_sed
 
2652
    break
 
2653
  fi
 
2654
  while true; do
 
2655
    cat conftest.in conftest.in >conftest.tmp
 
2656
    mv conftest.tmp conftest.in
 
2657
    cp conftest.in conftest.nl
 
2658
    echo >>conftest.nl
 
2659
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
 
2660
    cmp -s conftest.out conftest.nl || break
 
2661
    # 10000 chars as input seems more than enough
 
2662
    test $lt_ac_count -gt 10 && break
 
2663
    lt_ac_count=`expr $lt_ac_count + 1`
 
2664
    if test $lt_ac_count -gt $lt_ac_max; then
 
2665
      lt_ac_max=$lt_ac_count
 
2666
      lt_cv_path_SED=$lt_ac_sed
 
2667
    fi
 
2668
  done
 
2669
done
 
2670
 
 
2671
fi
 
2672
 
 
2673
SED=$lt_cv_path_SED
 
2674
echo "$as_me:$LINENO: result: $SED" >&5
 
2675
echo "${ECHO_T}$SED" >&6
 
2676
 
 
2677
echo "$as_me:$LINENO: checking for egrep" >&5
 
2678
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
 
2679
if test "${ac_cv_prog_egrep+set}" = set; then
 
2680
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2681
else
 
2682
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
 
2683
    then ac_cv_prog_egrep='grep -E'
 
2684
    else ac_cv_prog_egrep='egrep'
 
2685
    fi
 
2686
fi
 
2687
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
 
2688
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
 
2689
 EGREP=$ac_cv_prog_egrep
 
2690
 
2504
2691
 
2505
2692
 
2506
2693
# Check whether --with-gnu-ld or --without-gnu-ld was given.
2513
2700
ac_prog=ld
2514
2701
if test "$GCC" = yes; then
2515
2702
  # Check if gcc -print-prog-name=ld gives a path.
2516
 
  echo "$as_me:$LINENO: checking for ld used by GCC" >&5
2517
 
echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
 
2703
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
2704
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
2518
2705
  case $host in
2519
2706
  *-*-mingw*)
2520
2707
    # gcc leaves a trailing carriage return which upsets mingw
2524
2711
  esac
2525
2712
  case $ac_prog in
2526
2713
    # Accept absolute paths.
2527
 
    [\\/]* | [A-Za-z]:[\\/]*)
 
2714
    [\\/]* | ?:[\\/]*)
2528
2715
      re_direlt='/[^/][^/]*/\.\./'
2529
 
      # Canonicalize the path of ld
2530
 
      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
 
2716
      # Canonicalize the pathname of ld
 
2717
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
2531
2718
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2532
 
        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
 
2719
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
2533
2720
      done
2534
2721
      test -z "$LD" && LD="$ac_prog"
2535
2722
      ;;
2553
2740
  echo $ECHO_N "(cached) $ECHO_C" >&6
2554
2741
else
2555
2742
  if test -z "$LD"; then
2556
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
2743
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2557
2744
  for ac_dir in $PATH; do
 
2745
    IFS="$lt_save_ifs"
2558
2746
    test -z "$ac_dir" && ac_dir=.
2559
2747
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2560
2748
      lt_cv_path_LD="$ac_dir/$ac_prog"
2561
2749
      # Check to see if the program is GNU ld.  I'd rather use --version,
2562
2750
      # but apparently some GNU ld's only accept -v.
2563
2751
      # Break only if it was the GNU/non-GNU ld that we prefer.
2564
 
      if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
 
2752
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
2753
      *GNU* | *'with BFD'*)
2565
2754
        test "$with_gnu_ld" != no && break
2566
 
      else
 
2755
        ;;
 
2756
      *)
2567
2757
        test "$with_gnu_ld" != yes && break
2568
 
      fi
 
2758
        ;;
 
2759
      esac
2569
2760
    fi
2570
2761
  done
2571
 
  IFS="$ac_save_ifs"
 
2762
  IFS="$lt_save_ifs"
2572
2763
else
2573
2764
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
2574
2765
fi
2591
2782
  echo $ECHO_N "(cached) $ECHO_C" >&6
2592
2783
else
2593
2784
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2594
 
if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
 
2785
case `$LD -v 2>&1 </dev/null` in
 
2786
*GNU* | *'with BFD'*)
2595
2787
  lt_cv_prog_gnu_ld=yes
2596
 
else
 
2788
  ;;
 
2789
*)
2597
2790
  lt_cv_prog_gnu_ld=no
2598
 
fi
 
2791
  ;;
 
2792
esac
2599
2793
fi
2600
2794
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
2601
2795
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
2612
2806
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
2613
2807
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
2614
2808
reload_flag=$lt_cv_ld_reload_flag
2615
 
test -n "$reload_flag" && reload_flag=" $reload_flag"
 
2809
case $reload_flag in
 
2810
"" | " "*) ;;
 
2811
*) reload_flag=" $reload_flag" ;;
 
2812
esac
 
2813
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
2814
case $host_os in
 
2815
  darwin*)
 
2816
    if test "$GCC" = yes; then
 
2817
      reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
 
2818
    else
 
2819
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
2820
    fi
 
2821
    ;;
 
2822
esac
2616
2823
 
2617
2824
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
2618
2825
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
2623
2830
  # Let the user override the test.
2624
2831
  lt_cv_path_NM="$NM"
2625
2832
else
2626
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
2833
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2627
2834
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
 
2835
    IFS="$lt_save_ifs"
2628
2836
    test -z "$ac_dir" && ac_dir=.
2629
 
    tmp_nm=$ac_dir/${ac_tool_prefix}nm
2630
 
    if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
 
2837
    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
 
2838
    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
2631
2839
      # Check to see if the nm accepts a BSD-compat flag.
2632
2840
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2633
2841
      #   nm: unknown option "B" ignored
2634
2842
      # Tru64's nm complains that /dev/null is an invalid object file
2635
 
      if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
 
2843
      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
2844
      */dev/null* | *'Invalid file or object type'*)
2636
2845
        lt_cv_path_NM="$tmp_nm -B"
2637
2846
        break
2638
 
      elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2639
 
        lt_cv_path_NM="$tmp_nm -p"
2640
 
        break
2641
 
      else
2642
 
        lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2643
 
        continue # so that we can try to find one that supports BSD flags
2644
 
      fi
 
2847
        ;;
 
2848
      *)
 
2849
        case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
2850
        */dev/null*)
 
2851
          lt_cv_path_NM="$tmp_nm -p"
 
2852
          break
 
2853
          ;;
 
2854
        *)
 
2855
          lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
2856
          continue # so that we can try to find one that supports BSD flags
 
2857
          ;;
 
2858
        esac
 
2859
      esac
2645
2860
    fi
2646
2861
  done
2647
 
  IFS="$ac_save_ifs"
 
2862
  IFS="$lt_save_ifs"
2648
2863
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2649
2864
fi
2650
2865
fi
2651
 
 
 
2866
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
 
2867
echo "${ECHO_T}$lt_cv_path_NM" >&6
2652
2868
NM="$lt_cv_path_NM"
2653
 
echo "$as_me:$LINENO: result: $NM" >&5
2654
 
echo "${ECHO_T}$NM" >&6
2655
2869
 
2656
2870
echo "$as_me:$LINENO: checking whether ln -s works" >&5
2657
2871
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2664
2878
echo "${ECHO_T}no, using $LN_S" >&6
2665
2879
fi
2666
2880
 
2667
 
echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
2668
 
echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
 
2881
echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
 
2882
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
2669
2883
if test "${lt_cv_deplibs_check_method+set}" = set; then
2670
2884
  echo $ECHO_N "(cached) $ECHO_C" >&6
2671
2885
else
2679
2893
# 'pass_all' -- all dependencies passed with no checks.
2680
2894
# 'test_compile' -- check by making test program.
2681
2895
# 'file_magic [[regex]]' -- check by looking for files in library path
2682
 
# which responds to the $file_magic_cmd with a given egrep regex.
 
2896
# which responds to the $file_magic_cmd with a given extended regex.
2683
2897
# If you have `file' or equivalent on your system and you're not sure
2684
2898
# whether `pass_all' will *always* work, you probably want this one.
2685
2899
 
2692
2906
  lt_cv_deplibs_check_method=pass_all
2693
2907
  ;;
2694
2908
 
2695
 
bsdi4*)
 
2909
bsdi[45]*)
2696
2910
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2697
2911
  lt_cv_file_magic_cmd='/usr/bin/file -L'
2698
2912
  lt_cv_file_magic_test_file=/shlib/libc.so
2699
2913
  ;;
2700
2914
 
2701
 
cygwin* | mingw* | pw32*)
 
2915
cygwin*)
 
2916
  # func_win32_libid is a shell function defined in ltmain.sh
 
2917
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
2918
  lt_cv_file_magic_cmd='func_win32_libid'
 
2919
  ;;
 
2920
 
 
2921
mingw* | pw32*)
 
2922
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
2923
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
2702
2924
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2703
2925
  lt_cv_file_magic_cmd='$OBJDUMP -f'
2704
2926
  ;;
2705
2927
 
2706
2928
darwin* | rhapsody*)
2707
 
  lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
2708
 
  lt_cv_file_magic_cmd='/usr/bin/file -L'
2709
 
  case "$host_os" in
2710
 
  rhapsody* | darwin1.[012])
2711
 
    lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
2712
 
    ;;
2713
 
  *) # Darwin 1.3 on
2714
 
    lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
2715
 
    ;;
2716
 
  esac
 
2929
  lt_cv_deplibs_check_method=pass_all
2717
2930
  ;;
2718
2931
 
2719
 
freebsd*)
 
2932
freebsd* | kfreebsd*-gnu | dragonfly*)
2720
2933
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2721
2934
    case $host_cpu in
2722
2935
    i*86 )
2723
2936
      # Not sure whether the presence of OpenBSD here was a mistake.
2724
2937
      # Let's accept both of them until this is cleared up.
2725
 
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
 
2938
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
2726
2939
      lt_cv_file_magic_cmd=/usr/bin/file
2727
2940
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2728
2941
      ;;
2736
2949
  lt_cv_deplibs_check_method=pass_all
2737
2950
  ;;
2738
2951
 
2739
 
hpux10.20*|hpux11*)
2740
 
  lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
 
2952
hpux10.20* | hpux11*)
2741
2953
  lt_cv_file_magic_cmd=/usr/bin/file
2742
 
  lt_cv_file_magic_test_file=/usr/lib/libc.sl
2743
 
  ;;
2744
 
 
2745
 
irix5* | irix6*)
2746
 
  case $host_os in
2747
 
  irix5*)
2748
 
    # this will be overridden with pass_all, but let us keep it just in case
2749
 
    lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
 
2954
  case "$host_cpu" in
 
2955
  ia64*)
 
2956
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 
2957
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
2958
    ;;
 
2959
  hppa*64*)
 
2960
    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]'
 
2961
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
2750
2962
    ;;
2751
2963
  *)
2752
 
    case $LD in
2753
 
    *-32|*"-32 ") libmagic=32-bit;;
2754
 
    *-n32|*"-n32 ") libmagic=N32;;
2755
 
    *-64|*"-64 ") libmagic=64-bit;;
2756
 
    *) libmagic=never-match;;
2757
 
    esac
2758
 
    # this will be overridden with pass_all, but let us keep it just in case
2759
 
    lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
 
2964
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
 
2965
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
2760
2966
    ;;
2761
2967
  esac
2762
 
  lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
 
2968
  ;;
 
2969
 
 
2970
irix5* | irix6* | nonstopux*)
 
2971
  case $LD in
 
2972
  *-32|*"-32 ") libmagic=32-bit;;
 
2973
  *-n32|*"-n32 ") libmagic=N32;;
 
2974
  *-64|*"-64 ") libmagic=64-bit;;
 
2975
  *) libmagic=never-match;;
 
2976
  esac
2763
2977
  lt_cv_deplibs_check_method=pass_all
2764
2978
  ;;
2765
2979
 
2766
2980
# This must be Linux ELF.
2767
 
linux-gnu*)
2768
 
  case $host_cpu in
2769
 
  alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* | s390* )
2770
 
    lt_cv_deplibs_check_method=pass_all ;;
2771
 
  *)
2772
 
    # glibc up to 2.1.1 does not perform some relocations on ARM
2773
 
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2774
 
  esac
2775
 
  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
 
2981
linux*)
 
2982
  lt_cv_deplibs_check_method=pass_all
2776
2983
  ;;
2777
2984
 
2778
2985
netbsd*)
2779
2986
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2780
 
    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
 
2987
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
2781
2988
  else
2782
 
    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
 
2989
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
2783
2990
  fi
2784
2991
  ;;
2785
2992
 
2789
2996
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
2790
2997
  ;;
2791
2998
 
 
2999
nto-qnx*)
 
3000
  lt_cv_deplibs_check_method=unknown
 
3001
  ;;
 
3002
 
2792
3003
openbsd*)
2793
 
  lt_cv_file_magic_cmd=/usr/bin/file
2794
 
  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2795
3004
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2796
 
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
 
3005
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
2797
3006
  else
2798
 
    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
 
3007
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
2799
3008
  fi
2800
3009
  ;;
2801
3010
 
2802
3011
osf3* | osf4* | osf5*)
2803
 
  # this will be overridden with pass_all, but let us keep it just in case
2804
 
  lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2805
 
  lt_cv_file_magic_test_file=/shlib/libc.so
2806
3012
  lt_cv_deplibs_check_method=pass_all
2807
3013
  ;;
2808
3014
 
2812
3018
 
2813
3019
solaris*)
2814
3020
  lt_cv_deplibs_check_method=pass_all
2815
 
  lt_cv_file_magic_test_file=/lib/libc.so
2816
 
  ;;
2817
 
 
2818
 
sysv5uw[78]* | sysv4*uw2*)
2819
 
  lt_cv_deplibs_check_method=pass_all
2820
3021
  ;;
2821
3022
 
2822
3023
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2837
3038
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
2838
3039
    lt_cv_file_magic_test_file=/lib/libc.so
2839
3040
    ;;
 
3041
  siemens)
 
3042
    lt_cv_deplibs_check_method=pass_all
 
3043
    ;;
2840
3044
  esac
2841
3045
  ;;
 
3046
 
 
3047
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
 
3048
  lt_cv_deplibs_check_method=pass_all
 
3049
  ;;
2842
3050
esac
2843
3051
 
2844
3052
fi
2846
3054
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
2847
3055
file_magic_cmd=$lt_cv_file_magic_cmd
2848
3056
deplibs_check_method=$lt_cv_deplibs_check_method
2849
 
 
2850
 
 
2851
 
 
2852
 
 
 
3057
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
3058
 
 
3059
 
 
3060
 
 
3061
 
 
3062
# If no C compiler was specified, use CC.
 
3063
LTCC=${LTCC-"$CC"}
 
3064
 
 
3065
# Allow CC to be a program name with arguments.
 
3066
compiler=$CC
 
3067
 
 
3068
 
 
3069
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
 
3070
if test "${enable_libtool_lock+set}" = set; then
 
3071
  enableval="$enable_libtool_lock"
 
3072
 
 
3073
fi;
 
3074
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
3075
 
 
3076
# Some flags need to be propagated to the compiler or linker for good
 
3077
# libtool support.
 
3078
case $host in
 
3079
ia64-*-hpux*)
 
3080
  # Find out which ABI we are using.
 
3081
  echo 'int i;' > conftest.$ac_ext
 
3082
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3083
  (eval $ac_compile) 2>&5
 
3084
  ac_status=$?
 
3085
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3086
  (exit $ac_status); }; then
 
3087
    case `/usr/bin/file conftest.$ac_objext` in
 
3088
    *ELF-32*)
 
3089
      HPUX_IA64_MODE="32"
 
3090
      ;;
 
3091
    *ELF-64*)
 
3092
      HPUX_IA64_MODE="64"
 
3093
      ;;
 
3094
    esac
 
3095
  fi
 
3096
  rm -rf conftest*
 
3097
  ;;
 
3098
*-*-irix6*)
 
3099
  # Find out which ABI we are using.
 
3100
  echo '#line 3100 "configure"' > conftest.$ac_ext
 
3101
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3102
  (eval $ac_compile) 2>&5
 
3103
  ac_status=$?
 
3104
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3105
  (exit $ac_status); }; then
 
3106
   if test "$lt_cv_prog_gnu_ld" = yes; then
 
3107
    case `/usr/bin/file conftest.$ac_objext` in
 
3108
    *32-bit*)
 
3109
      LD="${LD-ld} -melf32bsmip"
 
3110
      ;;
 
3111
    *N32*)
 
3112
      LD="${LD-ld} -melf32bmipn32"
 
3113
      ;;
 
3114
    *64-bit*)
 
3115
      LD="${LD-ld} -melf64bmip"
 
3116
      ;;
 
3117
    esac
 
3118
   else
 
3119
    case `/usr/bin/file conftest.$ac_objext` in
 
3120
    *32-bit*)
 
3121
      LD="${LD-ld} -32"
 
3122
      ;;
 
3123
    *N32*)
 
3124
      LD="${LD-ld} -n32"
 
3125
      ;;
 
3126
    *64-bit*)
 
3127
      LD="${LD-ld} -64"
 
3128
      ;;
 
3129
    esac
 
3130
   fi
 
3131
  fi
 
3132
  rm -rf conftest*
 
3133
  ;;
 
3134
 
 
3135
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
 
3136
  # Find out which ABI we are using.
 
3137
  echo 'int i;' > conftest.$ac_ext
 
3138
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3139
  (eval $ac_compile) 2>&5
 
3140
  ac_status=$?
 
3141
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3142
  (exit $ac_status); }; then
 
3143
    case "`/usr/bin/file conftest.o`" in
 
3144
    *32-bit*)
 
3145
      case $host in
 
3146
        x86_64-*linux*)
 
3147
          LD="${LD-ld} -m elf_i386"
 
3148
          ;;
 
3149
        ppc64-*linux*|powerpc64-*linux*)
 
3150
          LD="${LD-ld} -m elf32ppclinux"
 
3151
          ;;
 
3152
        s390x-*linux*)
 
3153
          LD="${LD-ld} -m elf_s390"
 
3154
          ;;
 
3155
        sparc64-*linux*)
 
3156
          LD="${LD-ld} -m elf32_sparc"
 
3157
          ;;
 
3158
      esac
 
3159
      ;;
 
3160
    *64-bit*)
 
3161
      case $host in
 
3162
        x86_64-*linux*)
 
3163
          LD="${LD-ld} -m elf_x86_64"
 
3164
          ;;
 
3165
        ppc*-*linux*|powerpc*-*linux*)
 
3166
          LD="${LD-ld} -m elf64ppc"
 
3167
          ;;
 
3168
        s390*-*linux*)
 
3169
          LD="${LD-ld} -m elf64_s390"
 
3170
          ;;
 
3171
        sparc*-*linux*)
 
3172
          LD="${LD-ld} -m elf64_sparc"
 
3173
          ;;
 
3174
      esac
 
3175
      ;;
 
3176
    esac
 
3177
  fi
 
3178
  rm -rf conftest*
 
3179
  ;;
 
3180
 
 
3181
*-*-sco3.2v5*)
 
3182
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
3183
  SAVE_CFLAGS="$CFLAGS"
 
3184
  CFLAGS="$CFLAGS -belf"
 
3185
  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
 
3186
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
 
3187
if test "${lt_cv_cc_needs_belf+set}" = set; then
 
3188
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3189
else
 
3190
  ac_ext=c
 
3191
ac_cpp='$CPP $CPPFLAGS'
 
3192
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3193
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3194
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3195
 
 
3196
     cat >conftest.$ac_ext <<_ACEOF
 
3197
/* confdefs.h.  */
 
3198
_ACEOF
 
3199
cat confdefs.h >>conftest.$ac_ext
 
3200
cat >>conftest.$ac_ext <<_ACEOF
 
3201
/* end confdefs.h.  */
 
3202
 
 
3203
int
 
3204
main ()
 
3205
{
 
3206
 
 
3207
  ;
 
3208
  return 0;
 
3209
}
 
3210
_ACEOF
 
3211
rm -f conftest.$ac_objext conftest$ac_exeext
 
3212
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3213
  (eval $ac_link) 2>conftest.er1
 
3214
  ac_status=$?
 
3215
  grep -v '^ *+' conftest.er1 >conftest.err
 
3216
  rm -f conftest.er1
 
3217
  cat conftest.err >&5
 
3218
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3219
  (exit $ac_status); } &&
 
3220
         { ac_try='test -z "$ac_c_werror_flag"
 
3221
                         || test ! -s conftest.err'
 
3222
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3223
  (eval $ac_try) 2>&5
 
3224
  ac_status=$?
 
3225
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3226
  (exit $ac_status); }; } &&
 
3227
         { ac_try='test -s conftest$ac_exeext'
 
3228
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3229
  (eval $ac_try) 2>&5
 
3230
  ac_status=$?
 
3231
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3232
  (exit $ac_status); }; }; then
 
3233
  lt_cv_cc_needs_belf=yes
 
3234
else
 
3235
  echo "$as_me: failed program was:" >&5
 
3236
sed 's/^/| /' conftest.$ac_ext >&5
 
3237
 
 
3238
lt_cv_cc_needs_belf=no
 
3239
fi
 
3240
rm -f conftest.err conftest.$ac_objext \
 
3241
      conftest$ac_exeext conftest.$ac_ext
 
3242
     ac_ext=c
 
3243
ac_cpp='$CPP $CPPFLAGS'
 
3244
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3245
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3246
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3247
 
 
3248
fi
 
3249
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
 
3250
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
 
3251
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
3252
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
3253
    CFLAGS="$SAVE_CFLAGS"
 
3254
  fi
 
3255
  ;;
 
3256
 
 
3257
esac
 
3258
 
 
3259
need_locks="$enable_libtool_lock"
 
3260
 
 
3261
 
 
3262
ac_ext=c
 
3263
ac_cpp='$CPP $CPPFLAGS'
 
3264
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3265
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3266
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3267
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
3268
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
 
3269
# On Suns, sometimes $CPP names a directory.
 
3270
if test -n "$CPP" && test -d "$CPP"; then
 
3271
  CPP=
 
3272
fi
 
3273
if test -z "$CPP"; then
 
3274
  if test "${ac_cv_prog_CPP+set}" = set; then
 
3275
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3276
else
 
3277
      # Double quotes because CPP needs to be expanded
 
3278
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
3279
    do
 
3280
      ac_preproc_ok=false
 
3281
for ac_c_preproc_warn_flag in '' yes
 
3282
do
 
3283
  # Use a header file that comes with gcc, so configuring glibc
 
3284
  # with a fresh cross-compiler works.
 
3285
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3286
  # <limits.h> exists even on freestanding compilers.
 
3287
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3288
  # not just through cpp. "Syntax error" is here to catch this case.
 
3289
  cat >conftest.$ac_ext <<_ACEOF
 
3290
/* confdefs.h.  */
 
3291
_ACEOF
 
3292
cat confdefs.h >>conftest.$ac_ext
 
3293
cat >>conftest.$ac_ext <<_ACEOF
 
3294
/* end confdefs.h.  */
 
3295
#ifdef __STDC__
 
3296
# include <limits.h>
 
3297
#else
 
3298
# include <assert.h>
 
3299
#endif
 
3300
                     Syntax error
 
3301
_ACEOF
 
3302
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3303
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3304
  ac_status=$?
 
3305
  grep -v '^ *+' conftest.er1 >conftest.err
 
3306
  rm -f conftest.er1
 
3307
  cat conftest.err >&5
 
3308
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3309
  (exit $ac_status); } >/dev/null; then
 
3310
  if test -s conftest.err; then
 
3311
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3312
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3313
  else
 
3314
    ac_cpp_err=
 
3315
  fi
 
3316
else
 
3317
  ac_cpp_err=yes
 
3318
fi
 
3319
if test -z "$ac_cpp_err"; then
 
3320
  :
 
3321
else
 
3322
  echo "$as_me: failed program was:" >&5
 
3323
sed 's/^/| /' conftest.$ac_ext >&5
 
3324
 
 
3325
  # Broken: fails on valid input.
 
3326
continue
 
3327
fi
 
3328
rm -f conftest.err conftest.$ac_ext
 
3329
 
 
3330
  # OK, works on sane cases.  Now check whether non-existent headers
 
3331
  # can be detected and how.
 
3332
  cat >conftest.$ac_ext <<_ACEOF
 
3333
/* confdefs.h.  */
 
3334
_ACEOF
 
3335
cat confdefs.h >>conftest.$ac_ext
 
3336
cat >>conftest.$ac_ext <<_ACEOF
 
3337
/* end confdefs.h.  */
 
3338
#include <ac_nonexistent.h>
 
3339
_ACEOF
 
3340
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3341
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3342
  ac_status=$?
 
3343
  grep -v '^ *+' conftest.er1 >conftest.err
 
3344
  rm -f conftest.er1
 
3345
  cat conftest.err >&5
 
3346
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3347
  (exit $ac_status); } >/dev/null; then
 
3348
  if test -s conftest.err; then
 
3349
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3350
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3351
  else
 
3352
    ac_cpp_err=
 
3353
  fi
 
3354
else
 
3355
  ac_cpp_err=yes
 
3356
fi
 
3357
if test -z "$ac_cpp_err"; then
 
3358
  # Broken: success on invalid input.
 
3359
continue
 
3360
else
 
3361
  echo "$as_me: failed program was:" >&5
 
3362
sed 's/^/| /' conftest.$ac_ext >&5
 
3363
 
 
3364
  # Passes both tests.
 
3365
ac_preproc_ok=:
 
3366
break
 
3367
fi
 
3368
rm -f conftest.err conftest.$ac_ext
 
3369
 
 
3370
done
 
3371
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
3372
rm -f conftest.err conftest.$ac_ext
 
3373
if $ac_preproc_ok; then
 
3374
  break
 
3375
fi
 
3376
 
 
3377
    done
 
3378
    ac_cv_prog_CPP=$CPP
 
3379
 
 
3380
fi
 
3381
  CPP=$ac_cv_prog_CPP
 
3382
else
 
3383
  ac_cv_prog_CPP=$CPP
 
3384
fi
 
3385
echo "$as_me:$LINENO: result: $CPP" >&5
 
3386
echo "${ECHO_T}$CPP" >&6
 
3387
ac_preproc_ok=false
 
3388
for ac_c_preproc_warn_flag in '' yes
 
3389
do
 
3390
  # Use a header file that comes with gcc, so configuring glibc
 
3391
  # with a fresh cross-compiler works.
 
3392
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3393
  # <limits.h> exists even on freestanding compilers.
 
3394
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3395
  # not just through cpp. "Syntax error" is here to catch this case.
 
3396
  cat >conftest.$ac_ext <<_ACEOF
 
3397
/* confdefs.h.  */
 
3398
_ACEOF
 
3399
cat confdefs.h >>conftest.$ac_ext
 
3400
cat >>conftest.$ac_ext <<_ACEOF
 
3401
/* end confdefs.h.  */
 
3402
#ifdef __STDC__
 
3403
# include <limits.h>
 
3404
#else
 
3405
# include <assert.h>
 
3406
#endif
 
3407
                     Syntax error
 
3408
_ACEOF
 
3409
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3410
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3411
  ac_status=$?
 
3412
  grep -v '^ *+' conftest.er1 >conftest.err
 
3413
  rm -f conftest.er1
 
3414
  cat conftest.err >&5
 
3415
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3416
  (exit $ac_status); } >/dev/null; then
 
3417
  if test -s conftest.err; then
 
3418
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3419
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3420
  else
 
3421
    ac_cpp_err=
 
3422
  fi
 
3423
else
 
3424
  ac_cpp_err=yes
 
3425
fi
 
3426
if test -z "$ac_cpp_err"; then
 
3427
  :
 
3428
else
 
3429
  echo "$as_me: failed program was:" >&5
 
3430
sed 's/^/| /' conftest.$ac_ext >&5
 
3431
 
 
3432
  # Broken: fails on valid input.
 
3433
continue
 
3434
fi
 
3435
rm -f conftest.err conftest.$ac_ext
 
3436
 
 
3437
  # OK, works on sane cases.  Now check whether non-existent headers
 
3438
  # can be detected and how.
 
3439
  cat >conftest.$ac_ext <<_ACEOF
 
3440
/* confdefs.h.  */
 
3441
_ACEOF
 
3442
cat confdefs.h >>conftest.$ac_ext
 
3443
cat >>conftest.$ac_ext <<_ACEOF
 
3444
/* end confdefs.h.  */
 
3445
#include <ac_nonexistent.h>
 
3446
_ACEOF
 
3447
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3448
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3449
  ac_status=$?
 
3450
  grep -v '^ *+' conftest.er1 >conftest.err
 
3451
  rm -f conftest.er1
 
3452
  cat conftest.err >&5
 
3453
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3454
  (exit $ac_status); } >/dev/null; then
 
3455
  if test -s conftest.err; then
 
3456
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3457
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3458
  else
 
3459
    ac_cpp_err=
 
3460
  fi
 
3461
else
 
3462
  ac_cpp_err=yes
 
3463
fi
 
3464
if test -z "$ac_cpp_err"; then
 
3465
  # Broken: success on invalid input.
 
3466
continue
 
3467
else
 
3468
  echo "$as_me: failed program was:" >&5
 
3469
sed 's/^/| /' conftest.$ac_ext >&5
 
3470
 
 
3471
  # Passes both tests.
 
3472
ac_preproc_ok=:
 
3473
break
 
3474
fi
 
3475
rm -f conftest.err conftest.$ac_ext
 
3476
 
 
3477
done
 
3478
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
3479
rm -f conftest.err conftest.$ac_ext
 
3480
if $ac_preproc_ok; then
 
3481
  :
 
3482
else
 
3483
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
3484
See \`config.log' for more details." >&5
 
3485
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
3486
See \`config.log' for more details." >&2;}
 
3487
   { (exit 1); exit 1; }; }
 
3488
fi
 
3489
 
 
3490
ac_ext=c
 
3491
ac_cpp='$CPP $CPPFLAGS'
 
3492
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3493
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3494
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3495
 
 
3496
 
 
3497
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
3498
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 
3499
if test "${ac_cv_header_stdc+set}" = set; then
 
3500
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3501
else
 
3502
  cat >conftest.$ac_ext <<_ACEOF
 
3503
/* confdefs.h.  */
 
3504
_ACEOF
 
3505
cat confdefs.h >>conftest.$ac_ext
 
3506
cat >>conftest.$ac_ext <<_ACEOF
 
3507
/* end confdefs.h.  */
 
3508
#include <stdlib.h>
 
3509
#include <stdarg.h>
 
3510
#include <string.h>
 
3511
#include <float.h>
 
3512
 
 
3513
int
 
3514
main ()
 
3515
{
 
3516
 
 
3517
  ;
 
3518
  return 0;
 
3519
}
 
3520
_ACEOF
 
3521
rm -f conftest.$ac_objext
 
3522
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3523
  (eval $ac_compile) 2>conftest.er1
 
3524
  ac_status=$?
 
3525
  grep -v '^ *+' conftest.er1 >conftest.err
 
3526
  rm -f conftest.er1
 
3527
  cat conftest.err >&5
 
3528
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3529
  (exit $ac_status); } &&
 
3530
         { ac_try='test -z "$ac_c_werror_flag"
 
3531
                         || test ! -s conftest.err'
 
3532
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3533
  (eval $ac_try) 2>&5
 
3534
  ac_status=$?
 
3535
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3536
  (exit $ac_status); }; } &&
 
3537
         { ac_try='test -s conftest.$ac_objext'
 
3538
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3539
  (eval $ac_try) 2>&5
 
3540
  ac_status=$?
 
3541
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3542
  (exit $ac_status); }; }; then
 
3543
  ac_cv_header_stdc=yes
 
3544
else
 
3545
  echo "$as_me: failed program was:" >&5
 
3546
sed 's/^/| /' conftest.$ac_ext >&5
 
3547
 
 
3548
ac_cv_header_stdc=no
 
3549
fi
 
3550
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3551
 
 
3552
if test $ac_cv_header_stdc = yes; then
 
3553
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
3554
  cat >conftest.$ac_ext <<_ACEOF
 
3555
/* confdefs.h.  */
 
3556
_ACEOF
 
3557
cat confdefs.h >>conftest.$ac_ext
 
3558
cat >>conftest.$ac_ext <<_ACEOF
 
3559
/* end confdefs.h.  */
 
3560
#include <string.h>
 
3561
 
 
3562
_ACEOF
 
3563
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3564
  $EGREP "memchr" >/dev/null 2>&1; then
 
3565
  :
 
3566
else
 
3567
  ac_cv_header_stdc=no
 
3568
fi
 
3569
rm -f conftest*
 
3570
 
 
3571
fi
 
3572
 
 
3573
if test $ac_cv_header_stdc = yes; then
 
3574
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
3575
  cat >conftest.$ac_ext <<_ACEOF
 
3576
/* confdefs.h.  */
 
3577
_ACEOF
 
3578
cat confdefs.h >>conftest.$ac_ext
 
3579
cat >>conftest.$ac_ext <<_ACEOF
 
3580
/* end confdefs.h.  */
 
3581
#include <stdlib.h>
 
3582
 
 
3583
_ACEOF
 
3584
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3585
  $EGREP "free" >/dev/null 2>&1; then
 
3586
  :
 
3587
else
 
3588
  ac_cv_header_stdc=no
 
3589
fi
 
3590
rm -f conftest*
 
3591
 
 
3592
fi
 
3593
 
 
3594
if test $ac_cv_header_stdc = yes; then
 
3595
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
3596
  if test "$cross_compiling" = yes; then
 
3597
  :
 
3598
else
 
3599
  cat >conftest.$ac_ext <<_ACEOF
 
3600
/* confdefs.h.  */
 
3601
_ACEOF
 
3602
cat confdefs.h >>conftest.$ac_ext
 
3603
cat >>conftest.$ac_ext <<_ACEOF
 
3604
/* end confdefs.h.  */
 
3605
#include <ctype.h>
 
3606
#if ((' ' & 0x0FF) == 0x020)
 
3607
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
3608
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
3609
#else
 
3610
# define ISLOWER(c) \
 
3611
                   (('a' <= (c) && (c) <= 'i') \
 
3612
                     || ('j' <= (c) && (c) <= 'r') \
 
3613
                     || ('s' <= (c) && (c) <= 'z'))
 
3614
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
3615
#endif
 
3616
 
 
3617
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
3618
int
 
3619
main ()
 
3620
{
 
3621
  int i;
 
3622
  for (i = 0; i < 256; i++)
 
3623
    if (XOR (islower (i), ISLOWER (i))
 
3624
        || toupper (i) != TOUPPER (i))
 
3625
      exit(2);
 
3626
  exit (0);
 
3627
}
 
3628
_ACEOF
 
3629
rm -f conftest$ac_exeext
 
3630
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3631
  (eval $ac_link) 2>&5
 
3632
  ac_status=$?
 
3633
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3634
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
3635
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3636
  (eval $ac_try) 2>&5
 
3637
  ac_status=$?
 
3638
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3639
  (exit $ac_status); }; }; then
 
3640
  :
 
3641
else
 
3642
  echo "$as_me: program exited with status $ac_status" >&5
 
3643
echo "$as_me: failed program was:" >&5
 
3644
sed 's/^/| /' conftest.$ac_ext >&5
 
3645
 
 
3646
( exit $ac_status )
 
3647
ac_cv_header_stdc=no
 
3648
fi
 
3649
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
3650
fi
 
3651
fi
 
3652
fi
 
3653
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
3654
echo "${ECHO_T}$ac_cv_header_stdc" >&6
 
3655
if test $ac_cv_header_stdc = yes; then
 
3656
 
 
3657
cat >>confdefs.h <<\_ACEOF
 
3658
#define STDC_HEADERS 1
 
3659
_ACEOF
 
3660
 
 
3661
fi
 
3662
 
 
3663
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
3664
 
 
3665
 
 
3666
 
 
3667
 
 
3668
 
 
3669
 
 
3670
 
 
3671
 
 
3672
 
 
3673
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
3674
                  inttypes.h stdint.h unistd.h
 
3675
do
 
3676
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
3677
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
3678
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
3679
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
3680
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3681
else
 
3682
  cat >conftest.$ac_ext <<_ACEOF
 
3683
/* confdefs.h.  */
 
3684
_ACEOF
 
3685
cat confdefs.h >>conftest.$ac_ext
 
3686
cat >>conftest.$ac_ext <<_ACEOF
 
3687
/* end confdefs.h.  */
 
3688
$ac_includes_default
 
3689
 
 
3690
#include <$ac_header>
 
3691
_ACEOF
 
3692
rm -f conftest.$ac_objext
 
3693
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3694
  (eval $ac_compile) 2>conftest.er1
 
3695
  ac_status=$?
 
3696
  grep -v '^ *+' conftest.er1 >conftest.err
 
3697
  rm -f conftest.er1
 
3698
  cat conftest.err >&5
 
3699
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3700
  (exit $ac_status); } &&
 
3701
         { ac_try='test -z "$ac_c_werror_flag"
 
3702
                         || test ! -s conftest.err'
 
3703
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3704
  (eval $ac_try) 2>&5
 
3705
  ac_status=$?
 
3706
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3707
  (exit $ac_status); }; } &&
 
3708
         { ac_try='test -s conftest.$ac_objext'
 
3709
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3710
  (eval $ac_try) 2>&5
 
3711
  ac_status=$?
 
3712
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3713
  (exit $ac_status); }; }; then
 
3714
  eval "$as_ac_Header=yes"
 
3715
else
 
3716
  echo "$as_me: failed program was:" >&5
 
3717
sed 's/^/| /' conftest.$ac_ext >&5
 
3718
 
 
3719
eval "$as_ac_Header=no"
 
3720
fi
 
3721
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3722
fi
 
3723
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
3724
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
3725
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
3726
  cat >>confdefs.h <<_ACEOF
 
3727
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
3728
_ACEOF
 
3729
 
 
3730
fi
 
3731
 
 
3732
done
 
3733
 
 
3734
 
 
3735
 
 
3736
for ac_header in dlfcn.h
 
3737
do
 
3738
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
3739
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
3740
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
3741
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
3742
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
3743
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3744
fi
 
3745
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
3746
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
3747
else
 
3748
  # Is the header compilable?
 
3749
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
3750
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
3751
cat >conftest.$ac_ext <<_ACEOF
 
3752
/* confdefs.h.  */
 
3753
_ACEOF
 
3754
cat confdefs.h >>conftest.$ac_ext
 
3755
cat >>conftest.$ac_ext <<_ACEOF
 
3756
/* end confdefs.h.  */
 
3757
$ac_includes_default
 
3758
#include <$ac_header>
 
3759
_ACEOF
 
3760
rm -f conftest.$ac_objext
 
3761
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3762
  (eval $ac_compile) 2>conftest.er1
 
3763
  ac_status=$?
 
3764
  grep -v '^ *+' conftest.er1 >conftest.err
 
3765
  rm -f conftest.er1
 
3766
  cat conftest.err >&5
 
3767
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3768
  (exit $ac_status); } &&
 
3769
         { ac_try='test -z "$ac_c_werror_flag"
 
3770
                         || test ! -s conftest.err'
 
3771
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3772
  (eval $ac_try) 2>&5
 
3773
  ac_status=$?
 
3774
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3775
  (exit $ac_status); }; } &&
 
3776
         { ac_try='test -s conftest.$ac_objext'
 
3777
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3778
  (eval $ac_try) 2>&5
 
3779
  ac_status=$?
 
3780
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3781
  (exit $ac_status); }; }; then
 
3782
  ac_header_compiler=yes
 
3783
else
 
3784
  echo "$as_me: failed program was:" >&5
 
3785
sed 's/^/| /' conftest.$ac_ext >&5
 
3786
 
 
3787
ac_header_compiler=no
 
3788
fi
 
3789
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3790
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
3791
echo "${ECHO_T}$ac_header_compiler" >&6
 
3792
 
 
3793
# Is the header present?
 
3794
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
3795
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
3796
cat >conftest.$ac_ext <<_ACEOF
 
3797
/* confdefs.h.  */
 
3798
_ACEOF
 
3799
cat confdefs.h >>conftest.$ac_ext
 
3800
cat >>conftest.$ac_ext <<_ACEOF
 
3801
/* end confdefs.h.  */
 
3802
#include <$ac_header>
 
3803
_ACEOF
 
3804
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3805
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3806
  ac_status=$?
 
3807
  grep -v '^ *+' conftest.er1 >conftest.err
 
3808
  rm -f conftest.er1
 
3809
  cat conftest.err >&5
 
3810
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3811
  (exit $ac_status); } >/dev/null; then
 
3812
  if test -s conftest.err; then
 
3813
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3814
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3815
  else
 
3816
    ac_cpp_err=
 
3817
  fi
 
3818
else
 
3819
  ac_cpp_err=yes
 
3820
fi
 
3821
if test -z "$ac_cpp_err"; then
 
3822
  ac_header_preproc=yes
 
3823
else
 
3824
  echo "$as_me: failed program was:" >&5
 
3825
sed 's/^/| /' conftest.$ac_ext >&5
 
3826
 
 
3827
  ac_header_preproc=no
 
3828
fi
 
3829
rm -f conftest.err conftest.$ac_ext
 
3830
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
3831
echo "${ECHO_T}$ac_header_preproc" >&6
 
3832
 
 
3833
# So?  What about this header?
 
3834
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
3835
  yes:no: )
 
3836
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
3837
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
3838
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
3839
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
3840
    ac_header_preproc=yes
 
3841
    ;;
 
3842
  no:yes:* )
 
3843
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
3844
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
3845
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
3846
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
3847
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
3848
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
3849
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
3850
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
3851
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
3852
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
3853
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
3854
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
3855
    (
 
3856
      cat <<\_ASBOX
 
3857
## ------------------------------------------ ##
 
3858
## Report this to the AC_PACKAGE_NAME lists.  ##
 
3859
## ------------------------------------------ ##
 
3860
_ASBOX
 
3861
    ) |
 
3862
      sed "s/^/$as_me: WARNING:     /" >&2
 
3863
    ;;
 
3864
esac
 
3865
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
3866
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
3867
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
3868
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3869
else
 
3870
  eval "$as_ac_Header=\$ac_header_preproc"
 
3871
fi
 
3872
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
3873
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
3874
 
 
3875
fi
 
3876
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
3877
  cat >>confdefs.h <<_ACEOF
 
3878
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
3879
_ACEOF
 
3880
 
 
3881
fi
 
3882
 
 
3883
done
 
3884
 
 
3885
ac_ext=cc
 
3886
ac_cpp='$CXXCPP $CPPFLAGS'
 
3887
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3888
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3889
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
3890
if test -n "$ac_tool_prefix"; then
 
3891
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
3892
  do
 
3893
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
3894
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
3895
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3896
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3897
if test "${ac_cv_prog_CXX+set}" = set; then
 
3898
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3899
else
 
3900
  if test -n "$CXX"; then
 
3901
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
3902
else
 
3903
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3904
for as_dir in $PATH
 
3905
do
 
3906
  IFS=$as_save_IFS
 
3907
  test -z "$as_dir" && as_dir=.
 
3908
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3909
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3910
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
3911
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3912
    break 2
 
3913
  fi
 
3914
done
 
3915
done
 
3916
 
 
3917
fi
 
3918
fi
 
3919
CXX=$ac_cv_prog_CXX
 
3920
if test -n "$CXX"; then
 
3921
  echo "$as_me:$LINENO: result: $CXX" >&5
 
3922
echo "${ECHO_T}$CXX" >&6
 
3923
else
 
3924
  echo "$as_me:$LINENO: result: no" >&5
 
3925
echo "${ECHO_T}no" >&6
 
3926
fi
 
3927
 
 
3928
    test -n "$CXX" && break
 
3929
  done
 
3930
fi
 
3931
if test -z "$CXX"; then
 
3932
  ac_ct_CXX=$CXX
 
3933
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
3934
do
 
3935
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
3936
set dummy $ac_prog; ac_word=$2
 
3937
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3938
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3939
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
 
3940
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3941
else
 
3942
  if test -n "$ac_ct_CXX"; then
 
3943
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
3944
else
 
3945
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3946
for as_dir in $PATH
 
3947
do
 
3948
  IFS=$as_save_IFS
 
3949
  test -z "$as_dir" && as_dir=.
 
3950
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3951
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3952
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
3953
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3954
    break 2
 
3955
  fi
 
3956
done
 
3957
done
 
3958
 
 
3959
fi
 
3960
fi
 
3961
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
3962
if test -n "$ac_ct_CXX"; then
 
3963
  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
 
3964
echo "${ECHO_T}$ac_ct_CXX" >&6
 
3965
else
 
3966
  echo "$as_me:$LINENO: result: no" >&5
 
3967
echo "${ECHO_T}no" >&6
 
3968
fi
 
3969
 
 
3970
  test -n "$ac_ct_CXX" && break
 
3971
done
 
3972
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
 
3973
 
 
3974
  CXX=$ac_ct_CXX
 
3975
fi
 
3976
 
 
3977
 
 
3978
# Provide some information about the compiler.
 
3979
echo "$as_me:$LINENO:" \
 
3980
     "checking for C++ compiler version" >&5
 
3981
ac_compiler=`set X $ac_compile; echo $2`
 
3982
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
3983
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
3984
  ac_status=$?
 
3985
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3986
  (exit $ac_status); }
 
3987
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
3988
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
3989
  ac_status=$?
 
3990
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3991
  (exit $ac_status); }
 
3992
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
3993
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
3994
  ac_status=$?
 
3995
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3996
  (exit $ac_status); }
 
3997
 
 
3998
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
 
3999
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
 
4000
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
 
4001
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4002
else
 
4003
  cat >conftest.$ac_ext <<_ACEOF
 
4004
/* confdefs.h.  */
 
4005
_ACEOF
 
4006
cat confdefs.h >>conftest.$ac_ext
 
4007
cat >>conftest.$ac_ext <<_ACEOF
 
4008
/* end confdefs.h.  */
 
4009
 
 
4010
int
 
4011
main ()
 
4012
{
 
4013
#ifndef __GNUC__
 
4014
       choke me
 
4015
#endif
 
4016
 
 
4017
  ;
 
4018
  return 0;
 
4019
}
 
4020
_ACEOF
 
4021
rm -f conftest.$ac_objext
 
4022
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4023
  (eval $ac_compile) 2>conftest.er1
 
4024
  ac_status=$?
 
4025
  grep -v '^ *+' conftest.er1 >conftest.err
 
4026
  rm -f conftest.er1
 
4027
  cat conftest.err >&5
 
4028
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4029
  (exit $ac_status); } &&
 
4030
         { ac_try='test -z "$ac_cxx_werror_flag"
 
4031
                         || test ! -s conftest.err'
 
4032
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4033
  (eval $ac_try) 2>&5
 
4034
  ac_status=$?
 
4035
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4036
  (exit $ac_status); }; } &&
 
4037
         { ac_try='test -s conftest.$ac_objext'
 
4038
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4039
  (eval $ac_try) 2>&5
 
4040
  ac_status=$?
 
4041
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4042
  (exit $ac_status); }; }; then
 
4043
  ac_compiler_gnu=yes
 
4044
else
 
4045
  echo "$as_me: failed program was:" >&5
 
4046
sed 's/^/| /' conftest.$ac_ext >&5
 
4047
 
 
4048
ac_compiler_gnu=no
 
4049
fi
 
4050
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4051
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
4052
 
 
4053
fi
 
4054
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
 
4055
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
 
4056
GXX=`test $ac_compiler_gnu = yes && echo yes`
 
4057
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
4058
ac_save_CXXFLAGS=$CXXFLAGS
 
4059
CXXFLAGS="-g"
 
4060
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
 
4061
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
 
4062
if test "${ac_cv_prog_cxx_g+set}" = set; then
 
4063
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4064
else
 
4065
  cat >conftest.$ac_ext <<_ACEOF
 
4066
/* confdefs.h.  */
 
4067
_ACEOF
 
4068
cat confdefs.h >>conftest.$ac_ext
 
4069
cat >>conftest.$ac_ext <<_ACEOF
 
4070
/* end confdefs.h.  */
 
4071
 
 
4072
int
 
4073
main ()
 
4074
{
 
4075
 
 
4076
  ;
 
4077
  return 0;
 
4078
}
 
4079
_ACEOF
 
4080
rm -f conftest.$ac_objext
 
4081
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4082
  (eval $ac_compile) 2>conftest.er1
 
4083
  ac_status=$?
 
4084
  grep -v '^ *+' conftest.er1 >conftest.err
 
4085
  rm -f conftest.er1
 
4086
  cat conftest.err >&5
 
4087
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4088
  (exit $ac_status); } &&
 
4089
         { ac_try='test -z "$ac_cxx_werror_flag"
 
4090
                         || test ! -s conftest.err'
 
4091
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4092
  (eval $ac_try) 2>&5
 
4093
  ac_status=$?
 
4094
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4095
  (exit $ac_status); }; } &&
 
4096
         { ac_try='test -s conftest.$ac_objext'
 
4097
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4098
  (eval $ac_try) 2>&5
 
4099
  ac_status=$?
 
4100
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4101
  (exit $ac_status); }; }; then
 
4102
  ac_cv_prog_cxx_g=yes
 
4103
else
 
4104
  echo "$as_me: failed program was:" >&5
 
4105
sed 's/^/| /' conftest.$ac_ext >&5
 
4106
 
 
4107
ac_cv_prog_cxx_g=no
 
4108
fi
 
4109
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4110
fi
 
4111
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
 
4112
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
 
4113
if test "$ac_test_CXXFLAGS" = set; then
 
4114
  CXXFLAGS=$ac_save_CXXFLAGS
 
4115
elif test $ac_cv_prog_cxx_g = yes; then
 
4116
  if test "$GXX" = yes; then
 
4117
    CXXFLAGS="-g -O2"
 
4118
  else
 
4119
    CXXFLAGS="-g"
 
4120
  fi
 
4121
else
 
4122
  if test "$GXX" = yes; then
 
4123
    CXXFLAGS="-O2"
 
4124
  else
 
4125
    CXXFLAGS=
 
4126
  fi
 
4127
fi
 
4128
for ac_declaration in \
 
4129
   '' \
 
4130
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
4131
   'extern "C" void std::exit (int); using std::exit;' \
 
4132
   'extern "C" void exit (int) throw ();' \
 
4133
   'extern "C" void exit (int);' \
 
4134
   'void exit (int);'
 
4135
do
 
4136
  cat >conftest.$ac_ext <<_ACEOF
 
4137
/* confdefs.h.  */
 
4138
_ACEOF
 
4139
cat confdefs.h >>conftest.$ac_ext
 
4140
cat >>conftest.$ac_ext <<_ACEOF
 
4141
/* end confdefs.h.  */
 
4142
$ac_declaration
 
4143
#include <stdlib.h>
 
4144
int
 
4145
main ()
 
4146
{
 
4147
exit (42);
 
4148
  ;
 
4149
  return 0;
 
4150
}
 
4151
_ACEOF
 
4152
rm -f conftest.$ac_objext
 
4153
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4154
  (eval $ac_compile) 2>conftest.er1
 
4155
  ac_status=$?
 
4156
  grep -v '^ *+' conftest.er1 >conftest.err
 
4157
  rm -f conftest.er1
 
4158
  cat conftest.err >&5
 
4159
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4160
  (exit $ac_status); } &&
 
4161
         { ac_try='test -z "$ac_cxx_werror_flag"
 
4162
                         || test ! -s conftest.err'
 
4163
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4164
  (eval $ac_try) 2>&5
 
4165
  ac_status=$?
 
4166
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4167
  (exit $ac_status); }; } &&
 
4168
         { ac_try='test -s conftest.$ac_objext'
 
4169
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4170
  (eval $ac_try) 2>&5
 
4171
  ac_status=$?
 
4172
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4173
  (exit $ac_status); }; }; then
 
4174
  :
 
4175
else
 
4176
  echo "$as_me: failed program was:" >&5
 
4177
sed 's/^/| /' conftest.$ac_ext >&5
 
4178
 
 
4179
continue
 
4180
fi
 
4181
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4182
  cat >conftest.$ac_ext <<_ACEOF
 
4183
/* confdefs.h.  */
 
4184
_ACEOF
 
4185
cat confdefs.h >>conftest.$ac_ext
 
4186
cat >>conftest.$ac_ext <<_ACEOF
 
4187
/* end confdefs.h.  */
 
4188
$ac_declaration
 
4189
int
 
4190
main ()
 
4191
{
 
4192
exit (42);
 
4193
  ;
 
4194
  return 0;
 
4195
}
 
4196
_ACEOF
 
4197
rm -f conftest.$ac_objext
 
4198
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4199
  (eval $ac_compile) 2>conftest.er1
 
4200
  ac_status=$?
 
4201
  grep -v '^ *+' conftest.er1 >conftest.err
 
4202
  rm -f conftest.er1
 
4203
  cat conftest.err >&5
 
4204
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4205
  (exit $ac_status); } &&
 
4206
         { ac_try='test -z "$ac_cxx_werror_flag"
 
4207
                         || test ! -s conftest.err'
 
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); }; } &&
 
4213
         { ac_try='test -s conftest.$ac_objext'
 
4214
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4215
  (eval $ac_try) 2>&5
 
4216
  ac_status=$?
 
4217
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4218
  (exit $ac_status); }; }; then
 
4219
  break
 
4220
else
 
4221
  echo "$as_me: failed program was:" >&5
 
4222
sed 's/^/| /' conftest.$ac_ext >&5
 
4223
 
 
4224
fi
 
4225
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4226
done
 
4227
rm -f conftest*
 
4228
if test -n "$ac_declaration"; then
 
4229
  echo '#ifdef __cplusplus' >>confdefs.h
 
4230
  echo $ac_declaration      >>confdefs.h
 
4231
  echo '#endif'             >>confdefs.h
 
4232
fi
 
4233
 
 
4234
ac_ext=cc
 
4235
ac_cpp='$CXXCPP $CPPFLAGS'
 
4236
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4237
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4238
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
4239
 
 
4240
 
 
4241
 
 
4242
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
4243
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
4244
    (test "X$CXX" != "Xg++"))) ; then
 
4245
  ac_ext=cc
 
4246
ac_cpp='$CXXCPP $CPPFLAGS'
 
4247
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4248
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4249
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
4250
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
 
4251
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
 
4252
if test -z "$CXXCPP"; then
 
4253
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
 
4254
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4255
else
 
4256
      # Double quotes because CXXCPP needs to be expanded
 
4257
    for CXXCPP in "$CXX -E" "/lib/cpp"
 
4258
    do
 
4259
      ac_preproc_ok=false
 
4260
for ac_cxx_preproc_warn_flag in '' yes
 
4261
do
 
4262
  # Use a header file that comes with gcc, so configuring glibc
 
4263
  # with a fresh cross-compiler works.
 
4264
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4265
  # <limits.h> exists even on freestanding compilers.
 
4266
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4267
  # not just through cpp. "Syntax error" is here to catch this case.
 
4268
  cat >conftest.$ac_ext <<_ACEOF
 
4269
/* confdefs.h.  */
 
4270
_ACEOF
 
4271
cat confdefs.h >>conftest.$ac_ext
 
4272
cat >>conftest.$ac_ext <<_ACEOF
 
4273
/* end confdefs.h.  */
 
4274
#ifdef __STDC__
 
4275
# include <limits.h>
 
4276
#else
 
4277
# include <assert.h>
 
4278
#endif
 
4279
                     Syntax error
 
4280
_ACEOF
 
4281
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4282
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4283
  ac_status=$?
 
4284
  grep -v '^ *+' conftest.er1 >conftest.err
 
4285
  rm -f conftest.er1
 
4286
  cat conftest.err >&5
 
4287
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4288
  (exit $ac_status); } >/dev/null; then
 
4289
  if test -s conftest.err; then
 
4290
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
4291
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
4292
  else
 
4293
    ac_cpp_err=
 
4294
  fi
 
4295
else
 
4296
  ac_cpp_err=yes
 
4297
fi
 
4298
if test -z "$ac_cpp_err"; then
 
4299
  :
 
4300
else
 
4301
  echo "$as_me: failed program was:" >&5
 
4302
sed 's/^/| /' conftest.$ac_ext >&5
 
4303
 
 
4304
  # Broken: fails on valid input.
 
4305
continue
 
4306
fi
 
4307
rm -f conftest.err conftest.$ac_ext
 
4308
 
 
4309
  # OK, works on sane cases.  Now check whether non-existent headers
 
4310
  # can be detected and how.
 
4311
  cat >conftest.$ac_ext <<_ACEOF
 
4312
/* confdefs.h.  */
 
4313
_ACEOF
 
4314
cat confdefs.h >>conftest.$ac_ext
 
4315
cat >>conftest.$ac_ext <<_ACEOF
 
4316
/* end confdefs.h.  */
 
4317
#include <ac_nonexistent.h>
 
4318
_ACEOF
 
4319
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4320
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4321
  ac_status=$?
 
4322
  grep -v '^ *+' conftest.er1 >conftest.err
 
4323
  rm -f conftest.er1
 
4324
  cat conftest.err >&5
 
4325
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4326
  (exit $ac_status); } >/dev/null; then
 
4327
  if test -s conftest.err; then
 
4328
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
4329
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
4330
  else
 
4331
    ac_cpp_err=
 
4332
  fi
 
4333
else
 
4334
  ac_cpp_err=yes
 
4335
fi
 
4336
if test -z "$ac_cpp_err"; then
 
4337
  # Broken: success on invalid input.
 
4338
continue
 
4339
else
 
4340
  echo "$as_me: failed program was:" >&5
 
4341
sed 's/^/| /' conftest.$ac_ext >&5
 
4342
 
 
4343
  # Passes both tests.
 
4344
ac_preproc_ok=:
 
4345
break
 
4346
fi
 
4347
rm -f conftest.err conftest.$ac_ext
 
4348
 
 
4349
done
 
4350
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4351
rm -f conftest.err conftest.$ac_ext
 
4352
if $ac_preproc_ok; then
 
4353
  break
 
4354
fi
 
4355
 
 
4356
    done
 
4357
    ac_cv_prog_CXXCPP=$CXXCPP
 
4358
 
 
4359
fi
 
4360
  CXXCPP=$ac_cv_prog_CXXCPP
 
4361
else
 
4362
  ac_cv_prog_CXXCPP=$CXXCPP
 
4363
fi
 
4364
echo "$as_me:$LINENO: result: $CXXCPP" >&5
 
4365
echo "${ECHO_T}$CXXCPP" >&6
 
4366
ac_preproc_ok=false
 
4367
for ac_cxx_preproc_warn_flag in '' yes
 
4368
do
 
4369
  # Use a header file that comes with gcc, so configuring glibc
 
4370
  # with a fresh cross-compiler works.
 
4371
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4372
  # <limits.h> exists even on freestanding compilers.
 
4373
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4374
  # not just through cpp. "Syntax error" is here to catch this case.
 
4375
  cat >conftest.$ac_ext <<_ACEOF
 
4376
/* confdefs.h.  */
 
4377
_ACEOF
 
4378
cat confdefs.h >>conftest.$ac_ext
 
4379
cat >>conftest.$ac_ext <<_ACEOF
 
4380
/* end confdefs.h.  */
 
4381
#ifdef __STDC__
 
4382
# include <limits.h>
 
4383
#else
 
4384
# include <assert.h>
 
4385
#endif
 
4386
                     Syntax error
 
4387
_ACEOF
 
4388
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4389
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4390
  ac_status=$?
 
4391
  grep -v '^ *+' conftest.er1 >conftest.err
 
4392
  rm -f conftest.er1
 
4393
  cat conftest.err >&5
 
4394
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4395
  (exit $ac_status); } >/dev/null; then
 
4396
  if test -s conftest.err; then
 
4397
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
4398
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
4399
  else
 
4400
    ac_cpp_err=
 
4401
  fi
 
4402
else
 
4403
  ac_cpp_err=yes
 
4404
fi
 
4405
if test -z "$ac_cpp_err"; then
 
4406
  :
 
4407
else
 
4408
  echo "$as_me: failed program was:" >&5
 
4409
sed 's/^/| /' conftest.$ac_ext >&5
 
4410
 
 
4411
  # Broken: fails on valid input.
 
4412
continue
 
4413
fi
 
4414
rm -f conftest.err conftest.$ac_ext
 
4415
 
 
4416
  # OK, works on sane cases.  Now check whether non-existent headers
 
4417
  # can be detected and how.
 
4418
  cat >conftest.$ac_ext <<_ACEOF
 
4419
/* confdefs.h.  */
 
4420
_ACEOF
 
4421
cat confdefs.h >>conftest.$ac_ext
 
4422
cat >>conftest.$ac_ext <<_ACEOF
 
4423
/* end confdefs.h.  */
 
4424
#include <ac_nonexistent.h>
 
4425
_ACEOF
 
4426
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4427
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4428
  ac_status=$?
 
4429
  grep -v '^ *+' conftest.er1 >conftest.err
 
4430
  rm -f conftest.er1
 
4431
  cat conftest.err >&5
 
4432
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4433
  (exit $ac_status); } >/dev/null; then
 
4434
  if test -s conftest.err; then
 
4435
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
4436
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
4437
  else
 
4438
    ac_cpp_err=
 
4439
  fi
 
4440
else
 
4441
  ac_cpp_err=yes
 
4442
fi
 
4443
if test -z "$ac_cpp_err"; then
 
4444
  # Broken: success on invalid input.
 
4445
continue
 
4446
else
 
4447
  echo "$as_me: failed program was:" >&5
 
4448
sed 's/^/| /' conftest.$ac_ext >&5
 
4449
 
 
4450
  # Passes both tests.
 
4451
ac_preproc_ok=:
 
4452
break
 
4453
fi
 
4454
rm -f conftest.err conftest.$ac_ext
 
4455
 
 
4456
done
 
4457
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4458
rm -f conftest.err conftest.$ac_ext
 
4459
if $ac_preproc_ok; then
 
4460
  :
 
4461
else
 
4462
  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
4463
See \`config.log' for more details." >&5
 
4464
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
4465
See \`config.log' for more details." >&2;}
 
4466
   { (exit 1); exit 1; }; }
 
4467
fi
 
4468
 
 
4469
ac_ext=cc
 
4470
ac_cpp='$CXXCPP $CPPFLAGS'
 
4471
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4472
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4473
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
4474
 
 
4475
fi
 
4476
 
 
4477
 
 
4478
ac_ext=f
 
4479
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
4480
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4481
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
4482
if test -n "$ac_tool_prefix"; then
 
4483
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
 
4484
  do
 
4485
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
4486
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
4487
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4488
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4489
if test "${ac_cv_prog_F77+set}" = set; then
 
4490
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4491
else
 
4492
  if test -n "$F77"; then
 
4493
  ac_cv_prog_F77="$F77" # Let the user override the test.
 
4494
else
 
4495
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4496
for as_dir in $PATH
 
4497
do
 
4498
  IFS=$as_save_IFS
 
4499
  test -z "$as_dir" && as_dir=.
 
4500
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4501
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4502
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
 
4503
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4504
    break 2
 
4505
  fi
 
4506
done
 
4507
done
 
4508
 
 
4509
fi
 
4510
fi
 
4511
F77=$ac_cv_prog_F77
 
4512
if test -n "$F77"; then
 
4513
  echo "$as_me:$LINENO: result: $F77" >&5
 
4514
echo "${ECHO_T}$F77" >&6
 
4515
else
 
4516
  echo "$as_me:$LINENO: result: no" >&5
 
4517
echo "${ECHO_T}no" >&6
 
4518
fi
 
4519
 
 
4520
    test -n "$F77" && break
 
4521
  done
 
4522
fi
 
4523
if test -z "$F77"; then
 
4524
  ac_ct_F77=$F77
 
4525
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
 
4526
do
 
4527
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
4528
set dummy $ac_prog; ac_word=$2
 
4529
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4530
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4531
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
 
4532
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4533
else
 
4534
  if test -n "$ac_ct_F77"; then
 
4535
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
 
4536
else
 
4537
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4538
for as_dir in $PATH
 
4539
do
 
4540
  IFS=$as_save_IFS
 
4541
  test -z "$as_dir" && as_dir=.
 
4542
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4543
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4544
    ac_cv_prog_ac_ct_F77="$ac_prog"
 
4545
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4546
    break 2
 
4547
  fi
 
4548
done
 
4549
done
 
4550
 
 
4551
fi
 
4552
fi
 
4553
ac_ct_F77=$ac_cv_prog_ac_ct_F77
 
4554
if test -n "$ac_ct_F77"; then
 
4555
  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
 
4556
echo "${ECHO_T}$ac_ct_F77" >&6
 
4557
else
 
4558
  echo "$as_me:$LINENO: result: no" >&5
 
4559
echo "${ECHO_T}no" >&6
 
4560
fi
 
4561
 
 
4562
  test -n "$ac_ct_F77" && break
 
4563
done
 
4564
 
 
4565
  F77=$ac_ct_F77
 
4566
fi
 
4567
 
 
4568
 
 
4569
# Provide some information about the compiler.
 
4570
echo "$as_me:4570:" \
 
4571
     "checking for Fortran 77 compiler version" >&5
 
4572
ac_compiler=`set X $ac_compile; echo $2`
 
4573
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
4574
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
4575
  ac_status=$?
 
4576
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4577
  (exit $ac_status); }
 
4578
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
4579
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
4580
  ac_status=$?
 
4581
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4582
  (exit $ac_status); }
 
4583
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
4584
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
4585
  ac_status=$?
 
4586
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4587
  (exit $ac_status); }
 
4588
rm -f a.out
 
4589
 
 
4590
# If we don't use `.F' as extension, the preprocessor is not run on the
 
4591
# input file.  (Note that this only needs to work for GNU compilers.)
 
4592
ac_save_ext=$ac_ext
 
4593
ac_ext=F
 
4594
echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
 
4595
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
 
4596
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
 
4597
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4598
else
 
4599
  cat >conftest.$ac_ext <<_ACEOF
 
4600
      program main
 
4601
#ifndef __GNUC__
 
4602
       choke me
 
4603
#endif
 
4604
 
 
4605
      end
 
4606
_ACEOF
 
4607
rm -f conftest.$ac_objext
 
4608
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4609
  (eval $ac_compile) 2>conftest.er1
 
4610
  ac_status=$?
 
4611
  grep -v '^ *+' conftest.er1 >conftest.err
 
4612
  rm -f conftest.er1
 
4613
  cat conftest.err >&5
 
4614
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4615
  (exit $ac_status); } &&
 
4616
         { ac_try='test -z "$ac_f77_werror_flag"
 
4617
                         || test ! -s conftest.err'
 
4618
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4619
  (eval $ac_try) 2>&5
 
4620
  ac_status=$?
 
4621
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4622
  (exit $ac_status); }; } &&
 
4623
         { ac_try='test -s conftest.$ac_objext'
 
4624
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4625
  (eval $ac_try) 2>&5
 
4626
  ac_status=$?
 
4627
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4628
  (exit $ac_status); }; }; then
 
4629
  ac_compiler_gnu=yes
 
4630
else
 
4631
  echo "$as_me: failed program was:" >&5
 
4632
sed 's/^/| /' conftest.$ac_ext >&5
 
4633
 
 
4634
ac_compiler_gnu=no
 
4635
fi
 
4636
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4637
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
 
4638
 
 
4639
fi
 
4640
echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
 
4641
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
 
4642
ac_ext=$ac_save_ext
 
4643
ac_test_FFLAGS=${FFLAGS+set}
 
4644
ac_save_FFLAGS=$FFLAGS
 
4645
FFLAGS=
 
4646
echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
 
4647
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
 
4648
if test "${ac_cv_prog_f77_g+set}" = set; then
 
4649
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4650
else
 
4651
  FFLAGS=-g
 
4652
cat >conftest.$ac_ext <<_ACEOF
 
4653
      program main
 
4654
 
 
4655
      end
 
4656
_ACEOF
 
4657
rm -f conftest.$ac_objext
 
4658
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4659
  (eval $ac_compile) 2>conftest.er1
 
4660
  ac_status=$?
 
4661
  grep -v '^ *+' conftest.er1 >conftest.err
 
4662
  rm -f conftest.er1
 
4663
  cat conftest.err >&5
 
4664
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4665
  (exit $ac_status); } &&
 
4666
         { ac_try='test -z "$ac_f77_werror_flag"
 
4667
                         || test ! -s conftest.err'
 
4668
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4669
  (eval $ac_try) 2>&5
 
4670
  ac_status=$?
 
4671
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4672
  (exit $ac_status); }; } &&
 
4673
         { ac_try='test -s conftest.$ac_objext'
 
4674
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4675
  (eval $ac_try) 2>&5
 
4676
  ac_status=$?
 
4677
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4678
  (exit $ac_status); }; }; then
 
4679
  ac_cv_prog_f77_g=yes
 
4680
else
 
4681
  echo "$as_me: failed program was:" >&5
 
4682
sed 's/^/| /' conftest.$ac_ext >&5
 
4683
 
 
4684
ac_cv_prog_f77_g=no
 
4685
fi
 
4686
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4687
 
 
4688
fi
 
4689
echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
 
4690
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
 
4691
if test "$ac_test_FFLAGS" = set; then
 
4692
  FFLAGS=$ac_save_FFLAGS
 
4693
elif test $ac_cv_prog_f77_g = yes; then
 
4694
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
4695
    FFLAGS="-g -O2"
 
4696
  else
 
4697
    FFLAGS="-g"
 
4698
  fi
 
4699
else
 
4700
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
4701
    FFLAGS="-O2"
 
4702
  else
 
4703
    FFLAGS=
 
4704
  fi
 
4705
fi
 
4706
 
 
4707
G77=`test $ac_compiler_gnu = yes && echo yes`
 
4708
ac_ext=c
 
4709
ac_cpp='$CPP $CPPFLAGS'
 
4710
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4711
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4712
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4713
 
 
4714
 
 
4715
 
 
4716
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
 
4717
 
 
4718
# find the maximum length of command line arguments
 
4719
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
 
4720
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
 
4721
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
 
4722
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4723
else
 
4724
    i=0
 
4725
  teststring="ABCD"
 
4726
 
 
4727
  case $build_os in
 
4728
  msdosdjgpp*)
 
4729
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
4730
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
4731
    # during glob expansion).  Even if it were fixed, the result of this
 
4732
    # check would be larger than it should be.
 
4733
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
4734
    ;;
 
4735
 
 
4736
  gnu*)
 
4737
    # Under GNU Hurd, this test is not required because there is
 
4738
    # no limit to the length of command line arguments.
 
4739
    # Libtool will interpret -1 as no limit whatsoever
 
4740
    lt_cv_sys_max_cmd_len=-1;
 
4741
    ;;
 
4742
 
 
4743
  cygwin* | mingw*)
 
4744
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
4745
    # about 5 minutes as the teststring grows exponentially.
 
4746
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
4747
    # you end up with a "frozen" computer, even though with patience
 
4748
    # the test eventually succeeds (with a max line length of 256k).
 
4749
    # Instead, let's just punt: use the minimum linelength reported by
 
4750
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
4751
    lt_cv_sys_max_cmd_len=8192;
 
4752
    ;;
 
4753
 
 
4754
  amigaos*)
 
4755
    # On AmigaOS with pdksh, this test takes hours, literally.
 
4756
    # So we just punt and use a minimum line length of 8192.
 
4757
    lt_cv_sys_max_cmd_len=8192;
 
4758
    ;;
 
4759
 
 
4760
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
4761
    # This has been around since 386BSD, at least.  Likely further.
 
4762
    if test -x /sbin/sysctl; then
 
4763
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
4764
    elif test -x /usr/sbin/sysctl; then
 
4765
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
4766
    else
 
4767
      lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
 
4768
    fi
 
4769
    # And add a safety zone
 
4770
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
4771
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
4772
    ;;
 
4773
  osf*)
 
4774
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
4775
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
4776
    # nice to cause kernel panics so lets avoid the loop below.
 
4777
    # First set a reasonable default.
 
4778
    lt_cv_sys_max_cmd_len=16384
 
4779
    #
 
4780
    if test -x /sbin/sysconfig; then
 
4781
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
4782
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
4783
      esac
 
4784
    fi
 
4785
    ;;
 
4786
  *)
 
4787
    # If test is not a shell built-in, we'll probably end up computing a
 
4788
    # maximum length that is only half of the actual maximum length, but
 
4789
    # we can't tell.
 
4790
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
4791
    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
 
4792
               = "XX$teststring") >/dev/null 2>&1 &&
 
4793
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
 
4794
            lt_cv_sys_max_cmd_len=$new_result &&
 
4795
            test $i != 17 # 1/2 MB should be enough
 
4796
    do
 
4797
      i=`expr $i + 1`
 
4798
      teststring=$teststring$teststring
 
4799
    done
 
4800
    teststring=
 
4801
    # Add a significant safety factor because C++ compilers can tack on massive
 
4802
    # amounts of additional arguments before passing them to the linker.
 
4803
    # It appears as though 1/2 is a usable value.
 
4804
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
4805
    ;;
 
4806
  esac
 
4807
 
 
4808
fi
 
4809
 
 
4810
if test -n $lt_cv_sys_max_cmd_len ; then
 
4811
  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
 
4812
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
 
4813
else
 
4814
  echo "$as_me:$LINENO: result: none" >&5
 
4815
echo "${ECHO_T}none" >&6
 
4816
fi
2853
4817
 
2854
4818
 
2855
4819
 
2856
4820
 
2857
4821
# Check for command to grab the raw symbol name followed by C symbol from nm.
2858
 
echo "$as_me:$LINENO: checking command to parse $NM output" >&5
2859
 
echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
 
4822
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
 
4823
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
2860
4824
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
2861
4825
  echo $ECHO_N "(cached) $ECHO_C" >&6
2862
4826
else
2870
4834
# Regexp to match symbols that can be accessed directly from C.
2871
4835
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
2872
4836
 
2873
 
# Transform the above into a raw symbol and a C symbol.
2874
 
symxfrm='\1 \2\3 \3'
2875
 
 
2876
4837
# Transform an extracted symbol line into a proper C declaration
2877
 
lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
 
4838
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
2878
4839
 
2879
4840
# Transform an extracted symbol line into symbol name and symbol address
2880
 
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'"
 
4841
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'"
2881
4842
 
2882
4843
# Define system-specific variables.
2883
4844
case $host_os in
2888
4849
  symcode='[ABCDGISTW]'
2889
4850
  ;;
2890
4851
hpux*) # Its linker distinguishes data from code symbols
2891
 
  lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
2892
 
  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'"
2893
 
  ;;
2894
 
irix*)
 
4852
  if test "$host_cpu" = ia64; then
 
4853
    symcode='[ABCDEGRST]'
 
4854
  fi
 
4855
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
4856
  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'"
 
4857
  ;;
 
4858
linux*)
 
4859
  if test "$host_cpu" = ia64; then
 
4860
    symcode='[ABCDGIRSTW]'
 
4861
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
4862
    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'"
 
4863
  fi
 
4864
  ;;
 
4865
irix* | nonstopux*)
2895
4866
  symcode='[BCDEGRST]'
2896
4867
  ;;
 
4868
osf*)
 
4869
  symcode='[BCDEGQRST]'
 
4870
  ;;
2897
4871
solaris* | sysv5*)
2898
 
  symcode='[BDT]'
 
4872
  symcode='[BDRT]'
2899
4873
  ;;
2900
4874
sysv4)
2901
4875
  symcode='[DFNSTU]'
2904
4878
 
2905
4879
# Handle CRLF in mingw tool chain
2906
4880
opt_cr=
2907
 
case $host_os in
 
4881
case $build_os in
2908
4882
mingw*)
2909
4883
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
2910
4884
  ;;
2911
4885
esac
2912
4886
 
2913
4887
# If we're using GNU nm, then use its standard symbol codes.
2914
 
if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
2915
 
  symcode='[ABCDGISTW]'
2916
 
fi
 
4888
case `$NM -V 2>&1` in
 
4889
*GNU* | *'with BFD'*)
 
4890
  symcode='[ABCDGIRSTW]' ;;
 
4891
esac
2917
4892
 
2918
4893
# Try without a prefix undercore, then with it.
2919
4894
for ac_symprfx in "" "_"; do
2920
4895
 
 
4896
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 
4897
  symxfrm="\\1 $ac_symprfx\\2 \\2"
 
4898
 
2921
4899
  # Write the raw and C identifiers.
2922
 
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[         ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
 
4900
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
2923
4901
 
2924
4902
  # Check to see that the pipe works correctly.
2925
4903
  pipe_works=no
 
4904
 
2926
4905
  rm -f conftest*
2927
4906
  cat > conftest.$ac_ext <<EOF
2928
4907
#ifdef __cplusplus
2956
4935
      fi
2957
4936
 
2958
4937
      # Make sure that we snagged all the symbols we need.
2959
 
      if egrep ' nm_test_var$' "$nlist" >/dev/null; then
2960
 
        if egrep ' nm_test_func$' "$nlist" >/dev/null; then
 
4938
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
 
4939
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
2961
4940
          cat <<EOF > conftest.$ac_ext
2962
4941
#ifdef __cplusplus
2963
4942
extern "C" {
2965
4944
 
2966
4945
EOF
2967
4946
          # Now generate the symbol file.
2968
 
          eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
 
4947
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
2969
4948
 
2970
4949
          cat <<EOF >> conftest.$ac_ext
2971
4950
#if defined (__STDC__) && __STDC__
2972
 
# define lt_ptr void *
 
4951
# define lt_ptr_t void *
2973
4952
#else
2974
 
# define lt_ptr char *
 
4953
# define lt_ptr_t char *
2975
4954
# define const
2976
4955
#endif
2977
4956
 
2978
4957
/* The mapping between symbol names and symbols. */
2979
4958
const struct {
2980
4959
  const char *name;
2981
 
  lt_ptr address;
 
4960
  lt_ptr_t address;
2982
4961
}
2983
4962
lt_preloaded_symbols[] =
2984
4963
{
2985
4964
EOF
2986
 
          sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
 
4965
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
2987
4966
          cat <<\EOF >> conftest.$ac_ext
2988
 
  {0, (lt_ptr) 0}
 
4967
  {0, (lt_ptr_t) 0}
2989
4968
};
2990
4969
 
2991
4970
#ifdef __cplusplus
2994
4973
EOF
2995
4974
          # Now try linking the two files.
2996
4975
          mv conftest.$ac_objext conftstm.$ac_objext
2997
 
          save_LIBS="$LIBS"
2998
 
          save_CFLAGS="$CFLAGS"
 
4976
          lt_save_LIBS="$LIBS"
 
4977
          lt_save_CFLAGS="$CFLAGS"
2999
4978
          LIBS="conftstm.$ac_objext"
3000
 
          CFLAGS="$CFLAGS$no_builtin_flag"
 
4979
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
3001
4980
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3002
4981
  (eval $ac_link) 2>&5
3003
4982
  ac_status=$?
3004
4983
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005
 
  (exit $ac_status); } && test -s conftest; then
 
4984
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
3006
4985
            pipe_works=yes
3007
4986
          fi
3008
 
          LIBS="$save_LIBS"
3009
 
          CFLAGS="$save_CFLAGS"
 
4987
          LIBS="$lt_save_LIBS"
 
4988
          CFLAGS="$lt_save_CFLAGS"
3010
4989
        else
3011
4990
          echo "cannot find nm_test_func in $nlist" >&5
3012
4991
        fi
3032
5011
 
3033
5012
fi
3034
5013
 
3035
 
global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
3036
5014
if test -z "$lt_cv_sys_global_symbol_pipe"; then
3037
 
  global_symbol_to_cdecl=
3038
 
  global_symbol_to_c_name_address=
3039
 
else
3040
 
  global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
3041
 
  global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
 
5015
  lt_cv_sys_global_symbol_to_cdecl=
3042
5016
fi
3043
 
if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
3044
 
then
 
5017
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
3045
5018
  echo "$as_me:$LINENO: result: failed" >&5
3046
5019
echo "${ECHO_T}failed" >&6
3047
5020
else
3049
5022
echo "${ECHO_T}ok" >&6
3050
5023
fi
3051
5024
 
3052
 
ac_ext=c
3053
 
ac_cpp='$CPP $CPPFLAGS'
3054
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3055
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3056
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3057
 
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3058
 
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3059
 
# On Suns, sometimes $CPP names a directory.
3060
 
if test -n "$CPP" && test -d "$CPP"; then
3061
 
  CPP=
3062
 
fi
3063
 
if test -z "$CPP"; then
3064
 
  if test "${ac_cv_prog_CPP+set}" = set; then
3065
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3066
 
else
3067
 
      # Double quotes because CPP needs to be expanded
3068
 
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3069
 
    do
3070
 
      ac_preproc_ok=false
3071
 
for ac_c_preproc_warn_flag in '' yes
3072
 
do
3073
 
  # Use a header file that comes with gcc, so configuring glibc
3074
 
  # with a fresh cross-compiler works.
3075
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3076
 
  # <limits.h> exists even on freestanding compilers.
3077
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
3078
 
  # not just through cpp. "Syntax error" is here to catch this case.
3079
 
  cat >conftest.$ac_ext <<_ACEOF
3080
 
#line $LINENO "configure"
3081
 
/* confdefs.h.  */
3082
 
_ACEOF
3083
 
cat confdefs.h >>conftest.$ac_ext
3084
 
cat >>conftest.$ac_ext <<_ACEOF
3085
 
/* end confdefs.h.  */
3086
 
#ifdef __STDC__
3087
 
# include <limits.h>
3088
 
#else
3089
 
# include <assert.h>
3090
 
#endif
3091
 
                     Syntax error
3092
 
_ACEOF
3093
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3094
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3095
 
  ac_status=$?
3096
 
  grep -v '^ *+' conftest.er1 >conftest.err
3097
 
  rm -f conftest.er1
3098
 
  cat conftest.err >&5
3099
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100
 
  (exit $ac_status); } >/dev/null; then
3101
 
  if test -s conftest.err; then
3102
 
    ac_cpp_err=$ac_c_preproc_warn_flag
3103
 
  else
3104
 
    ac_cpp_err=
3105
 
  fi
3106
 
else
3107
 
  ac_cpp_err=yes
3108
 
fi
3109
 
if test -z "$ac_cpp_err"; then
3110
 
  :
3111
 
else
3112
 
  echo "$as_me: failed program was:" >&5
3113
 
sed 's/^/| /' conftest.$ac_ext >&5
3114
 
 
3115
 
  # Broken: fails on valid input.
3116
 
continue
3117
 
fi
3118
 
rm -f conftest.err conftest.$ac_ext
3119
 
 
3120
 
  # OK, works on sane cases.  Now check whether non-existent headers
3121
 
  # can be detected and how.
3122
 
  cat >conftest.$ac_ext <<_ACEOF
3123
 
#line $LINENO "configure"
3124
 
/* confdefs.h.  */
3125
 
_ACEOF
3126
 
cat confdefs.h >>conftest.$ac_ext
3127
 
cat >>conftest.$ac_ext <<_ACEOF
3128
 
/* end confdefs.h.  */
3129
 
#include <ac_nonexistent.h>
3130
 
_ACEOF
3131
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3132
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3133
 
  ac_status=$?
3134
 
  grep -v '^ *+' conftest.er1 >conftest.err
3135
 
  rm -f conftest.er1
3136
 
  cat conftest.err >&5
3137
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138
 
  (exit $ac_status); } >/dev/null; then
3139
 
  if test -s conftest.err; then
3140
 
    ac_cpp_err=$ac_c_preproc_warn_flag
3141
 
  else
3142
 
    ac_cpp_err=
3143
 
  fi
3144
 
else
3145
 
  ac_cpp_err=yes
3146
 
fi
3147
 
if test -z "$ac_cpp_err"; then
3148
 
  # Broken: success on invalid input.
3149
 
continue
3150
 
else
3151
 
  echo "$as_me: failed program was:" >&5
3152
 
sed 's/^/| /' conftest.$ac_ext >&5
3153
 
 
3154
 
  # Passes both tests.
3155
 
ac_preproc_ok=:
3156
 
break
3157
 
fi
3158
 
rm -f conftest.err conftest.$ac_ext
3159
 
 
3160
 
done
3161
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3162
 
rm -f conftest.err conftest.$ac_ext
3163
 
if $ac_preproc_ok; then
3164
 
  break
3165
 
fi
3166
 
 
3167
 
    done
3168
 
    ac_cv_prog_CPP=$CPP
3169
 
 
3170
 
fi
3171
 
  CPP=$ac_cv_prog_CPP
3172
 
else
3173
 
  ac_cv_prog_CPP=$CPP
3174
 
fi
3175
 
echo "$as_me:$LINENO: result: $CPP" >&5
3176
 
echo "${ECHO_T}$CPP" >&6
3177
 
ac_preproc_ok=false
3178
 
for ac_c_preproc_warn_flag in '' yes
3179
 
do
3180
 
  # Use a header file that comes with gcc, so configuring glibc
3181
 
  # with a fresh cross-compiler works.
3182
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3183
 
  # <limits.h> exists even on freestanding compilers.
3184
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
3185
 
  # not just through cpp. "Syntax error" is here to catch this case.
3186
 
  cat >conftest.$ac_ext <<_ACEOF
3187
 
#line $LINENO "configure"
3188
 
/* confdefs.h.  */
3189
 
_ACEOF
3190
 
cat confdefs.h >>conftest.$ac_ext
3191
 
cat >>conftest.$ac_ext <<_ACEOF
3192
 
/* end confdefs.h.  */
3193
 
#ifdef __STDC__
3194
 
# include <limits.h>
3195
 
#else
3196
 
# include <assert.h>
3197
 
#endif
3198
 
                     Syntax error
3199
 
_ACEOF
3200
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3201
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3202
 
  ac_status=$?
3203
 
  grep -v '^ *+' conftest.er1 >conftest.err
3204
 
  rm -f conftest.er1
3205
 
  cat conftest.err >&5
3206
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207
 
  (exit $ac_status); } >/dev/null; then
3208
 
  if test -s conftest.err; then
3209
 
    ac_cpp_err=$ac_c_preproc_warn_flag
3210
 
  else
3211
 
    ac_cpp_err=
3212
 
  fi
3213
 
else
3214
 
  ac_cpp_err=yes
3215
 
fi
3216
 
if test -z "$ac_cpp_err"; then
3217
 
  :
3218
 
else
3219
 
  echo "$as_me: failed program was:" >&5
3220
 
sed 's/^/| /' conftest.$ac_ext >&5
3221
 
 
3222
 
  # Broken: fails on valid input.
3223
 
continue
3224
 
fi
3225
 
rm -f conftest.err conftest.$ac_ext
3226
 
 
3227
 
  # OK, works on sane cases.  Now check whether non-existent headers
3228
 
  # can be detected and how.
3229
 
  cat >conftest.$ac_ext <<_ACEOF
3230
 
#line $LINENO "configure"
3231
 
/* confdefs.h.  */
3232
 
_ACEOF
3233
 
cat confdefs.h >>conftest.$ac_ext
3234
 
cat >>conftest.$ac_ext <<_ACEOF
3235
 
/* end confdefs.h.  */
3236
 
#include <ac_nonexistent.h>
3237
 
_ACEOF
3238
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3239
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3240
 
  ac_status=$?
3241
 
  grep -v '^ *+' conftest.er1 >conftest.err
3242
 
  rm -f conftest.er1
3243
 
  cat conftest.err >&5
3244
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3245
 
  (exit $ac_status); } >/dev/null; then
3246
 
  if test -s conftest.err; then
3247
 
    ac_cpp_err=$ac_c_preproc_warn_flag
3248
 
  else
3249
 
    ac_cpp_err=
3250
 
  fi
3251
 
else
3252
 
  ac_cpp_err=yes
3253
 
fi
3254
 
if test -z "$ac_cpp_err"; then
3255
 
  # Broken: success on invalid input.
3256
 
continue
3257
 
else
3258
 
  echo "$as_me: failed program was:" >&5
3259
 
sed 's/^/| /' conftest.$ac_ext >&5
3260
 
 
3261
 
  # Passes both tests.
3262
 
ac_preproc_ok=:
3263
 
break
3264
 
fi
3265
 
rm -f conftest.err conftest.$ac_ext
3266
 
 
3267
 
done
3268
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3269
 
rm -f conftest.err conftest.$ac_ext
3270
 
if $ac_preproc_ok; then
3271
 
  :
3272
 
else
3273
 
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3274
 
See \`config.log' for more details." >&5
3275
 
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3276
 
See \`config.log' for more details." >&2;}
3277
 
   { (exit 1); exit 1; }; }
3278
 
fi
3279
 
 
3280
 
ac_ext=c
3281
 
ac_cpp='$CPP $CPPFLAGS'
3282
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3283
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3284
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3285
 
 
3286
 
 
3287
 
echo "$as_me:$LINENO: checking for egrep" >&5
3288
 
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3289
 
if test "${ac_cv_prog_egrep+set}" = set; then
3290
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3291
 
else
3292
 
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3293
 
    then ac_cv_prog_egrep='grep -E'
3294
 
    else ac_cv_prog_egrep='egrep'
3295
 
    fi
3296
 
fi
3297
 
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3298
 
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3299
 
 EGREP=$ac_cv_prog_egrep
3300
 
 
3301
 
 
3302
 
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3303
 
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3304
 
if test "${ac_cv_header_stdc+set}" = set; then
3305
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3306
 
else
3307
 
  cat >conftest.$ac_ext <<_ACEOF
3308
 
#line $LINENO "configure"
3309
 
/* confdefs.h.  */
3310
 
_ACEOF
3311
 
cat confdefs.h >>conftest.$ac_ext
3312
 
cat >>conftest.$ac_ext <<_ACEOF
3313
 
/* end confdefs.h.  */
3314
 
#include <stdlib.h>
3315
 
#include <stdarg.h>
3316
 
#include <string.h>
3317
 
#include <float.h>
3318
 
 
3319
 
int
3320
 
main ()
3321
 
{
3322
 
 
3323
 
  ;
3324
 
  return 0;
3325
 
}
3326
 
_ACEOF
3327
 
rm -f conftest.$ac_objext
3328
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3329
 
  (eval $ac_compile) 2>&5
3330
 
  ac_status=$?
3331
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3332
 
  (exit $ac_status); } &&
3333
 
         { ac_try='test -s conftest.$ac_objext'
3334
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3335
 
  (eval $ac_try) 2>&5
3336
 
  ac_status=$?
3337
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3338
 
  (exit $ac_status); }; }; then
3339
 
  ac_cv_header_stdc=yes
3340
 
else
3341
 
  echo "$as_me: failed program was:" >&5
3342
 
sed 's/^/| /' conftest.$ac_ext >&5
3343
 
 
3344
 
ac_cv_header_stdc=no
3345
 
fi
3346
 
rm -f conftest.$ac_objext conftest.$ac_ext
3347
 
 
3348
 
if test $ac_cv_header_stdc = yes; then
3349
 
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3350
 
  cat >conftest.$ac_ext <<_ACEOF
3351
 
#line $LINENO "configure"
3352
 
/* confdefs.h.  */
3353
 
_ACEOF
3354
 
cat confdefs.h >>conftest.$ac_ext
3355
 
cat >>conftest.$ac_ext <<_ACEOF
3356
 
/* end confdefs.h.  */
3357
 
#include <string.h>
3358
 
 
3359
 
_ACEOF
3360
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3361
 
  $EGREP "memchr" >/dev/null 2>&1; then
3362
 
  :
3363
 
else
3364
 
  ac_cv_header_stdc=no
3365
 
fi
3366
 
rm -f conftest*
3367
 
 
3368
 
fi
3369
 
 
3370
 
if test $ac_cv_header_stdc = yes; then
3371
 
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3372
 
  cat >conftest.$ac_ext <<_ACEOF
3373
 
#line $LINENO "configure"
3374
 
/* confdefs.h.  */
3375
 
_ACEOF
3376
 
cat confdefs.h >>conftest.$ac_ext
3377
 
cat >>conftest.$ac_ext <<_ACEOF
3378
 
/* end confdefs.h.  */
3379
 
#include <stdlib.h>
3380
 
 
3381
 
_ACEOF
3382
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3383
 
  $EGREP "free" >/dev/null 2>&1; then
3384
 
  :
3385
 
else
3386
 
  ac_cv_header_stdc=no
3387
 
fi
3388
 
rm -f conftest*
3389
 
 
3390
 
fi
3391
 
 
3392
 
if test $ac_cv_header_stdc = yes; then
3393
 
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3394
 
  if test "$cross_compiling" = yes; then
3395
 
  :
3396
 
else
3397
 
  cat >conftest.$ac_ext <<_ACEOF
3398
 
#line $LINENO "configure"
3399
 
/* confdefs.h.  */
3400
 
_ACEOF
3401
 
cat confdefs.h >>conftest.$ac_ext
3402
 
cat >>conftest.$ac_ext <<_ACEOF
3403
 
/* end confdefs.h.  */
3404
 
#include <ctype.h>
3405
 
#if ((' ' & 0x0FF) == 0x020)
3406
 
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3407
 
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3408
 
#else
3409
 
# define ISLOWER(c) \
3410
 
                   (('a' <= (c) && (c) <= 'i') \
3411
 
                     || ('j' <= (c) && (c) <= 'r') \
3412
 
                     || ('s' <= (c) && (c) <= 'z'))
3413
 
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3414
 
#endif
3415
 
 
3416
 
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3417
 
int
3418
 
main ()
3419
 
{
3420
 
  int i;
3421
 
  for (i = 0; i < 256; i++)
3422
 
    if (XOR (islower (i), ISLOWER (i))
3423
 
        || toupper (i) != TOUPPER (i))
3424
 
      exit(2);
3425
 
  exit (0);
3426
 
}
3427
 
_ACEOF
3428
 
rm -f conftest$ac_exeext
3429
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3430
 
  (eval $ac_link) 2>&5
3431
 
  ac_status=$?
3432
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3434
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3435
 
  (eval $ac_try) 2>&5
3436
 
  ac_status=$?
3437
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3438
 
  (exit $ac_status); }; }; then
3439
 
  :
3440
 
else
3441
 
  echo "$as_me: program exited with status $ac_status" >&5
3442
 
echo "$as_me: failed program was:" >&5
3443
 
sed 's/^/| /' conftest.$ac_ext >&5
3444
 
 
3445
 
( exit $ac_status )
3446
 
ac_cv_header_stdc=no
3447
 
fi
3448
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3449
 
fi
3450
 
fi
3451
 
fi
3452
 
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3453
 
echo "${ECHO_T}$ac_cv_header_stdc" >&6
3454
 
if test $ac_cv_header_stdc = yes; then
3455
 
 
3456
 
cat >>confdefs.h <<\_ACEOF
3457
 
#define STDC_HEADERS 1
3458
 
_ACEOF
3459
 
 
3460
 
fi
3461
 
 
3462
 
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3463
 
 
3464
 
 
3465
 
 
3466
 
 
3467
 
 
3468
 
 
3469
 
 
3470
 
 
3471
 
 
3472
 
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3473
 
                  inttypes.h stdint.h unistd.h
3474
 
do
3475
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3476
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
3477
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3478
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3479
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3480
 
else
3481
 
  cat >conftest.$ac_ext <<_ACEOF
3482
 
#line $LINENO "configure"
3483
 
/* confdefs.h.  */
3484
 
_ACEOF
3485
 
cat confdefs.h >>conftest.$ac_ext
3486
 
cat >>conftest.$ac_ext <<_ACEOF
3487
 
/* end confdefs.h.  */
3488
 
$ac_includes_default
3489
 
 
3490
 
#include <$ac_header>
3491
 
_ACEOF
3492
 
rm -f conftest.$ac_objext
3493
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3494
 
  (eval $ac_compile) 2>&5
3495
 
  ac_status=$?
3496
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3497
 
  (exit $ac_status); } &&
3498
 
         { ac_try='test -s conftest.$ac_objext'
3499
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3500
 
  (eval $ac_try) 2>&5
3501
 
  ac_status=$?
3502
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3503
 
  (exit $ac_status); }; }; then
3504
 
  eval "$as_ac_Header=yes"
3505
 
else
3506
 
  echo "$as_me: failed program was:" >&5
3507
 
sed 's/^/| /' conftest.$ac_ext >&5
3508
 
 
3509
 
eval "$as_ac_Header=no"
3510
 
fi
3511
 
rm -f conftest.$ac_objext conftest.$ac_ext
3512
 
fi
3513
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3514
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3515
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
3516
 
  cat >>confdefs.h <<_ACEOF
3517
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3518
 
_ACEOF
3519
 
 
3520
 
fi
3521
 
 
3522
 
done
3523
 
 
3524
 
 
3525
 
 
3526
 
for ac_header in dlfcn.h
3527
 
do
3528
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3529
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3530
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
3531
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3532
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3533
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3534
 
fi
3535
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3536
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3537
 
else
3538
 
  # Is the header compilable?
3539
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
3540
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3541
 
cat >conftest.$ac_ext <<_ACEOF
3542
 
#line $LINENO "configure"
3543
 
/* confdefs.h.  */
3544
 
_ACEOF
3545
 
cat confdefs.h >>conftest.$ac_ext
3546
 
cat >>conftest.$ac_ext <<_ACEOF
3547
 
/* end confdefs.h.  */
3548
 
$ac_includes_default
3549
 
#include <$ac_header>
3550
 
_ACEOF
3551
 
rm -f conftest.$ac_objext
3552
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3553
 
  (eval $ac_compile) 2>&5
3554
 
  ac_status=$?
3555
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556
 
  (exit $ac_status); } &&
3557
 
         { ac_try='test -s conftest.$ac_objext'
3558
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3559
 
  (eval $ac_try) 2>&5
3560
 
  ac_status=$?
3561
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562
 
  (exit $ac_status); }; }; then
3563
 
  ac_header_compiler=yes
3564
 
else
3565
 
  echo "$as_me: failed program was:" >&5
3566
 
sed 's/^/| /' conftest.$ac_ext >&5
3567
 
 
3568
 
ac_header_compiler=no
3569
 
fi
3570
 
rm -f conftest.$ac_objext conftest.$ac_ext
3571
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3572
 
echo "${ECHO_T}$ac_header_compiler" >&6
3573
 
 
3574
 
# Is the header present?
3575
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
3576
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3577
 
cat >conftest.$ac_ext <<_ACEOF
3578
 
#line $LINENO "configure"
3579
 
/* confdefs.h.  */
3580
 
_ACEOF
3581
 
cat confdefs.h >>conftest.$ac_ext
3582
 
cat >>conftest.$ac_ext <<_ACEOF
3583
 
/* end confdefs.h.  */
3584
 
#include <$ac_header>
3585
 
_ACEOF
3586
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3587
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3588
 
  ac_status=$?
3589
 
  grep -v '^ *+' conftest.er1 >conftest.err
3590
 
  rm -f conftest.er1
3591
 
  cat conftest.err >&5
3592
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3593
 
  (exit $ac_status); } >/dev/null; then
3594
 
  if test -s conftest.err; then
3595
 
    ac_cpp_err=$ac_c_preproc_warn_flag
3596
 
  else
3597
 
    ac_cpp_err=
3598
 
  fi
3599
 
else
3600
 
  ac_cpp_err=yes
3601
 
fi
3602
 
if test -z "$ac_cpp_err"; then
3603
 
  ac_header_preproc=yes
3604
 
else
3605
 
  echo "$as_me: failed program was:" >&5
3606
 
sed 's/^/| /' conftest.$ac_ext >&5
3607
 
 
3608
 
  ac_header_preproc=no
3609
 
fi
3610
 
rm -f conftest.err conftest.$ac_ext
3611
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3612
 
echo "${ECHO_T}$ac_header_preproc" >&6
3613
 
 
3614
 
# So?  What about this header?
3615
 
case $ac_header_compiler:$ac_header_preproc in
3616
 
  yes:no )
3617
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3618
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3619
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3620
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3621
 
    (
3622
 
      cat <<\_ASBOX
3623
 
## ------------------------------------ ##
3624
 
## Report this to bug-autoconf@gnu.org. ##
3625
 
## ------------------------------------ ##
3626
 
_ASBOX
3627
 
    ) |
3628
 
      sed "s/^/$as_me: WARNING:     /" >&2
3629
 
    ;;
3630
 
  no:yes )
3631
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3632
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3633
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3634
 
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3635
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3636
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3637
 
    (
3638
 
      cat <<\_ASBOX
3639
 
## ------------------------------------ ##
3640
 
## Report this to bug-autoconf@gnu.org. ##
3641
 
## ------------------------------------ ##
3642
 
_ASBOX
3643
 
    ) |
3644
 
      sed "s/^/$as_me: WARNING:     /" >&2
3645
 
    ;;
3646
 
esac
3647
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
3648
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3649
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3650
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3651
 
else
3652
 
  eval "$as_ac_Header=$ac_header_preproc"
3653
 
fi
3654
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3655
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3656
 
 
3657
 
fi
3658
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
3659
 
  cat >>confdefs.h <<_ACEOF
3660
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3661
 
_ACEOF
3662
 
 
3663
 
fi
3664
 
 
3665
 
done
3666
 
 
3667
 
 
3668
 
 
3669
 
 
3670
 
 
3671
 
# Only perform the check for file, if the check method requires it
3672
 
case $deplibs_check_method in
3673
 
file_magic*)
3674
 
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3675
 
    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3676
 
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3677
 
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3678
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3679
 
else
3680
 
  case $MAGIC_CMD in
3681
 
  /*)
3682
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3683
 
  ;;
3684
 
  ?:/*)
3685
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3686
 
  ;;
3687
 
  *)
3688
 
  ac_save_MAGIC_CMD="$MAGIC_CMD"
3689
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3690
 
  ac_dummy="/usr/bin:$PATH"
3691
 
  for ac_dir in $ac_dummy; do
3692
 
    test -z "$ac_dir" && ac_dir=.
3693
 
    if test -f $ac_dir/${ac_tool_prefix}file; then
3694
 
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3695
 
      if test -n "$file_magic_test_file"; then
3696
 
        case $deplibs_check_method in
3697
 
        "file_magic "*)
3698
 
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3699
 
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3700
 
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3701
 
            egrep "$file_magic_regex" > /dev/null; then
3702
 
            :
3703
 
          else
3704
 
            cat <<EOF 1>&2
3705
 
 
3706
 
*** Warning: the command libtool uses to detect shared libraries,
3707
 
*** $file_magic_cmd, produces output that libtool cannot recognize.
3708
 
*** The result is that libtool may fail to recognize shared libraries
3709
 
*** as such.  This will affect the creation of libtool libraries that
3710
 
*** depend on shared libraries, but programs linked with such libtool
3711
 
*** libraries will work regardless of this problem.  Nevertheless, you
3712
 
*** may want to report the problem to your system manager and/or to
3713
 
*** bug-libtool@gnu.org
3714
 
 
3715
 
EOF
3716
 
          fi ;;
3717
 
        esac
3718
 
      fi
3719
 
      break
3720
 
    fi
3721
 
  done
3722
 
  IFS="$ac_save_ifs"
3723
 
  MAGIC_CMD="$ac_save_MAGIC_CMD"
3724
 
  ;;
3725
 
esac
3726
 
fi
3727
 
 
3728
 
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3729
 
if test -n "$MAGIC_CMD"; then
3730
 
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3731
 
echo "${ECHO_T}$MAGIC_CMD" >&6
3732
 
else
3733
 
  echo "$as_me:$LINENO: result: no" >&5
3734
 
echo "${ECHO_T}no" >&6
3735
 
fi
3736
 
 
3737
 
if test -z "$lt_cv_path_MAGIC_CMD"; then
3738
 
  if test -n "$ac_tool_prefix"; then
3739
 
    echo "$as_me:$LINENO: checking for file" >&5
3740
 
echo $ECHO_N "checking for file... $ECHO_C" >&6
3741
 
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3742
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3743
 
else
3744
 
  case $MAGIC_CMD in
3745
 
  /*)
3746
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3747
 
  ;;
3748
 
  ?:/*)
3749
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3750
 
  ;;
3751
 
  *)
3752
 
  ac_save_MAGIC_CMD="$MAGIC_CMD"
3753
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3754
 
  ac_dummy="/usr/bin:$PATH"
3755
 
  for ac_dir in $ac_dummy; do
3756
 
    test -z "$ac_dir" && ac_dir=.
3757
 
    if test -f $ac_dir/file; then
3758
 
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
3759
 
      if test -n "$file_magic_test_file"; then
3760
 
        case $deplibs_check_method in
3761
 
        "file_magic "*)
3762
 
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3763
 
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3764
 
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3765
 
            egrep "$file_magic_regex" > /dev/null; then
3766
 
            :
3767
 
          else
3768
 
            cat <<EOF 1>&2
3769
 
 
3770
 
*** Warning: the command libtool uses to detect shared libraries,
3771
 
*** $file_magic_cmd, produces output that libtool cannot recognize.
3772
 
*** The result is that libtool may fail to recognize shared libraries
3773
 
*** as such.  This will affect the creation of libtool libraries that
3774
 
*** depend on shared libraries, but programs linked with such libtool
3775
 
*** libraries will work regardless of this problem.  Nevertheless, you
3776
 
*** may want to report the problem to your system manager and/or to
3777
 
*** bug-libtool@gnu.org
3778
 
 
3779
 
EOF
3780
 
          fi ;;
3781
 
        esac
3782
 
      fi
3783
 
      break
3784
 
    fi
3785
 
  done
3786
 
  IFS="$ac_save_ifs"
3787
 
  MAGIC_CMD="$ac_save_MAGIC_CMD"
3788
 
  ;;
3789
 
esac
3790
 
fi
3791
 
 
3792
 
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3793
 
if test -n "$MAGIC_CMD"; then
3794
 
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3795
 
echo "${ECHO_T}$MAGIC_CMD" >&6
3796
 
else
3797
 
  echo "$as_me:$LINENO: result: no" >&5
3798
 
echo "${ECHO_T}no" >&6
3799
 
fi
3800
 
 
3801
 
  else
3802
 
    MAGIC_CMD=:
3803
 
  fi
3804
 
fi
3805
 
 
3806
 
  fi
3807
 
  ;;
3808
 
esac
 
5025
echo "$as_me:$LINENO: checking for objdir" >&5
 
5026
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
 
5027
if test "${lt_cv_objdir+set}" = set; then
 
5028
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5029
else
 
5030
  rm -f .libs 2>/dev/null
 
5031
mkdir .libs 2>/dev/null
 
5032
if test -d .libs; then
 
5033
  lt_cv_objdir=.libs
 
5034
else
 
5035
  # MS-DOS does not allow filenames that begin with a dot.
 
5036
  lt_cv_objdir=_libs
 
5037
fi
 
5038
rmdir .libs 2>/dev/null
 
5039
fi
 
5040
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
 
5041
echo "${ECHO_T}$lt_cv_objdir" >&6
 
5042
objdir=$lt_cv_objdir
 
5043
 
 
5044
 
 
5045
 
 
5046
 
 
5047
 
 
5048
case $host_os in
 
5049
aix3*)
 
5050
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
5051
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
5052
  # vanish in a puff of smoke.
 
5053
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
5054
    COLLECT_NAMES=
 
5055
    export COLLECT_NAMES
 
5056
  fi
 
5057
  ;;
 
5058
esac
 
5059
 
 
5060
# Sed substitution that helps us do robust quoting.  It backslashifies
 
5061
# metacharacters that are still active within double-quoted strings.
 
5062
Xsed='sed -e 1s/^X//'
 
5063
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
 
5064
 
 
5065
# Same as above, but do not quote variable references.
 
5066
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
 
5067
 
 
5068
# Sed substitution to delay expansion of an escaped shell variable in a
 
5069
# double_quote_subst'ed string.
 
5070
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
5071
 
 
5072
# Sed substitution to avoid accidental globbing in evaled expressions
 
5073
no_glob_subst='s/\*/\\\*/g'
 
5074
 
 
5075
# Constants:
 
5076
rm="rm -f"
 
5077
 
 
5078
# Global variables:
 
5079
default_ofile=libtool
 
5080
can_build_shared=yes
 
5081
 
 
5082
# All known linkers require a `.a' archive for static linking (except M$VC,
 
5083
# which needs '.lib').
 
5084
libext=a
 
5085
ltmain="$ac_aux_dir/ltmain.sh"
 
5086
ofile="$default_ofile"
 
5087
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
5088
 
 
5089
if test -n "$ac_tool_prefix"; then
 
5090
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
5091
set dummy ${ac_tool_prefix}ar; ac_word=$2
 
5092
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5093
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5094
if test "${ac_cv_prog_AR+set}" = set; then
 
5095
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5096
else
 
5097
  if test -n "$AR"; then
 
5098
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
5099
else
 
5100
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5101
for as_dir in $PATH
 
5102
do
 
5103
  IFS=$as_save_IFS
 
5104
  test -z "$as_dir" && as_dir=.
 
5105
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5106
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5107
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
5108
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5109
    break 2
 
5110
  fi
 
5111
done
 
5112
done
 
5113
 
 
5114
fi
 
5115
fi
 
5116
AR=$ac_cv_prog_AR
 
5117
if test -n "$AR"; then
 
5118
  echo "$as_me:$LINENO: result: $AR" >&5
 
5119
echo "${ECHO_T}$AR" >&6
 
5120
else
 
5121
  echo "$as_me:$LINENO: result: no" >&5
 
5122
echo "${ECHO_T}no" >&6
 
5123
fi
 
5124
 
 
5125
fi
 
5126
if test -z "$ac_cv_prog_AR"; then
 
5127
  ac_ct_AR=$AR
 
5128
  # Extract the first word of "ar", so it can be a program name with args.
 
5129
set dummy ar; ac_word=$2
 
5130
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5131
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5132
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
 
5133
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5134
else
 
5135
  if test -n "$ac_ct_AR"; then
 
5136
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
5137
else
 
5138
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5139
for as_dir in $PATH
 
5140
do
 
5141
  IFS=$as_save_IFS
 
5142
  test -z "$as_dir" && as_dir=.
 
5143
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5144
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5145
    ac_cv_prog_ac_ct_AR="ar"
 
5146
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5147
    break 2
 
5148
  fi
 
5149
done
 
5150
done
 
5151
 
 
5152
  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
 
5153
fi
 
5154
fi
 
5155
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
5156
if test -n "$ac_ct_AR"; then
 
5157
  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
 
5158
echo "${ECHO_T}$ac_ct_AR" >&6
 
5159
else
 
5160
  echo "$as_me:$LINENO: result: no" >&5
 
5161
echo "${ECHO_T}no" >&6
 
5162
fi
 
5163
 
 
5164
  AR=$ac_ct_AR
 
5165
else
 
5166
  AR="$ac_cv_prog_AR"
 
5167
fi
3809
5168
 
3810
5169
if test -n "$ac_tool_prefix"; then
3811
5170
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3968
5327
fi
3969
5328
 
3970
5329
 
3971
 
enable_dlopen=no
3972
 
enable_win32_dll=no
3973
 
 
3974
 
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3975
 
if test "${enable_libtool_lock+set}" = set; then
3976
 
  enableval="$enable_libtool_lock"
3977
 
 
3978
 
fi;
3979
 
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3980
 
 
3981
 
# Some flags need to be propagated to the compiler or linker for good
3982
 
# libtool support.
3983
 
case $host in
3984
 
*-*-irix6*)
3985
 
  # Find out which ABI we are using.
3986
 
  echo '#line 3986 "configure"' > conftest.$ac_ext
3987
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3988
 
  (eval $ac_compile) 2>&5
3989
 
  ac_status=$?
3990
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3991
 
  (exit $ac_status); }; then
3992
 
    case `/usr/bin/file conftest.$ac_objext` in
3993
 
    *32-bit*)
3994
 
      LD="${LD-ld} -32"
3995
 
      ;;
3996
 
    *N32*)
3997
 
      LD="${LD-ld} -n32"
3998
 
      ;;
3999
 
    *64-bit*)
4000
 
      LD="${LD-ld} -64"
4001
 
      ;;
4002
 
    esac
4003
 
  fi
4004
 
  rm -rf conftest*
4005
 
  ;;
4006
 
 
4007
 
*-*-sco3.2v5*)
4008
 
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4009
 
  SAVE_CFLAGS="$CFLAGS"
4010
 
  CFLAGS="$CFLAGS -belf"
4011
 
  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4012
 
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4013
 
if test "${lt_cv_cc_needs_belf+set}" = set; then
4014
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4015
 
else
4016
 
 
4017
 
 
4018
 
     ac_ext=c
4019
 
ac_cpp='$CPP $CPPFLAGS'
4020
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4021
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4022
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4023
 
 
4024
 
     cat >conftest.$ac_ext <<_ACEOF
4025
 
#line $LINENO "configure"
4026
 
/* confdefs.h.  */
4027
 
_ACEOF
4028
 
cat confdefs.h >>conftest.$ac_ext
4029
 
cat >>conftest.$ac_ext <<_ACEOF
4030
 
/* end confdefs.h.  */
4031
 
 
4032
 
int
4033
 
main ()
4034
 
{
4035
 
 
4036
 
  ;
4037
 
  return 0;
4038
 
}
4039
 
_ACEOF
4040
 
rm -f conftest.$ac_objext conftest$ac_exeext
4041
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4042
 
  (eval $ac_link) 2>&5
4043
 
  ac_status=$?
4044
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4045
 
  (exit $ac_status); } &&
4046
 
         { ac_try='test -s conftest$ac_exeext'
4047
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4048
 
  (eval $ac_try) 2>&5
4049
 
  ac_status=$?
4050
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051
 
  (exit $ac_status); }; }; then
4052
 
  lt_cv_cc_needs_belf=yes
4053
 
else
4054
 
  echo "$as_me: failed program was:" >&5
4055
 
sed 's/^/| /' conftest.$ac_ext >&5
4056
 
 
4057
 
lt_cv_cc_needs_belf=no
4058
 
fi
4059
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4060
 
     ac_ext=c
4061
 
ac_cpp='$CPP $CPPFLAGS'
4062
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4063
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4064
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4065
 
 
4066
 
fi
4067
 
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4068
 
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4069
 
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4070
 
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4071
 
    CFLAGS="$SAVE_CFLAGS"
4072
 
  fi
4073
 
  ;;
4074
 
 
4075
 
 
4076
 
esac
4077
 
 
4078
 
# Sed substitution that helps us do robust quoting.  It backslashifies
4079
 
# metacharacters that are still active within double-quoted strings.
4080
 
Xsed='sed -e s/^X//'
4081
 
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4082
 
 
4083
 
# Same as above, but do not quote variable references.
4084
 
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4085
 
 
4086
 
# Sed substitution to delay expansion of an escaped shell variable in a
4087
 
# double_quote_subst'ed string.
4088
 
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4089
 
 
4090
 
# Constants:
4091
 
rm="rm -f"
4092
 
 
4093
 
# Global variables:
4094
 
default_ofile=libtool
4095
 
can_build_shared=yes
4096
 
 
4097
 
# All known linkers require a `.a' archive for static linking (except M$VC,
4098
 
# which needs '.lib').
4099
 
libext=a
4100
 
ltmain="$ac_aux_dir/ltmain.sh"
4101
 
ofile="$default_ofile"
4102
 
with_gnu_ld="$lt_cv_prog_gnu_ld"
4103
 
need_locks="$enable_libtool_lock"
4104
 
 
4105
5330
old_CC="$CC"
4106
5331
old_CFLAGS="$CFLAGS"
4107
5332
 
4110
5335
test -z "$AR_FLAGS" && AR_FLAGS=cru
4111
5336
test -z "$AS" && AS=as
4112
5337
test -z "$CC" && CC=cc
 
5338
test -z "$LTCC" && LTCC=$CC
4113
5339
test -z "$DLLTOOL" && DLLTOOL=dlltool
4114
5340
test -z "$LD" && LD=ld
4115
5341
test -z "$LN_S" && LN_S="ln -s"
4116
5342
test -z "$MAGIC_CMD" && MAGIC_CMD=file
4117
5343
test -z "$NM" && NM=nm
 
5344
test -z "$SED" && SED=sed
4118
5345
test -z "$OBJDUMP" && OBJDUMP=objdump
4119
5346
test -z "$RANLIB" && RANLIB=:
4120
5347
test -z "$STRIP" && STRIP=:
4121
5348
test -z "$ac_objext" && ac_objext=o
4122
5349
 
4123
 
if test x"$host" != x"$build"; then
4124
 
  ac_tool_prefix=${host_alias}-
4125
 
else
4126
 
  ac_tool_prefix=
4127
 
fi
4128
 
 
4129
 
# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4130
 
case $host_os in
4131
 
linux-gnu*) ;;
4132
 
linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4133
 
esac
4134
 
 
4135
 
case $host_os in
4136
 
aix3*)
4137
 
  # AIX sometimes has problems with the GCC collect2 program.  For some
4138
 
  # reason, if we set the COLLECT_NAMES environment variable, the problems
4139
 
  # vanish in a puff of smoke.
4140
 
  if test "X${COLLECT_NAMES+set}" != Xset; then
4141
 
    COLLECT_NAMES=
4142
 
    export COLLECT_NAMES
4143
 
  fi
4144
 
  ;;
4145
 
esac
4146
 
 
4147
5350
# Determine commands to create old-style static archives.
4148
5351
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4149
5352
old_postinstall_cmds='chmod 644 $oldlib'
4161
5364
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4162
5365
fi
4163
5366
 
4164
 
# Allow CC to be a program name with arguments.
4165
 
set dummy $CC
4166
 
compiler="$2"
4167
 
 
4168
 
echo "$as_me:$LINENO: checking for objdir" >&5
4169
 
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
4170
 
rm -f .libs 2>/dev/null
4171
 
mkdir .libs 2>/dev/null
4172
 
if test -d .libs; then
4173
 
  objdir=.libs
4174
 
else
4175
 
  # MS-DOS does not allow filenames that begin with a dot.
4176
 
  objdir=_libs
4177
 
fi
4178
 
rmdir .libs 2>/dev/null
4179
 
echo "$as_me:$LINENO: result: $objdir" >&5
4180
 
echo "${ECHO_T}$objdir" >&6
4181
 
 
 
5367
for cc_temp in $compiler""; do
 
5368
  case $cc_temp in
 
5369
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
5370
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
5371
    \-*) ;;
 
5372
    *) break;;
 
5373
  esac
 
5374
done
 
5375
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
5376
 
 
5377
 
 
5378
# Only perform the check for file, if the check method requires it
 
5379
case $deplibs_check_method in
 
5380
file_magic*)
 
5381
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
5382
    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
 
5383
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
 
5384
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
5385
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5386
else
 
5387
  case $MAGIC_CMD in
 
5388
[\\/*] |  ?:[\\/]*)
 
5389
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
5390
  ;;
 
5391
*)
 
5392
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
5393
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
5394
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
5395
  for ac_dir in $ac_dummy; do
 
5396
    IFS="$lt_save_ifs"
 
5397
    test -z "$ac_dir" && ac_dir=.
 
5398
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
5399
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
5400
      if test -n "$file_magic_test_file"; then
 
5401
        case $deplibs_check_method in
 
5402
        "file_magic "*)
 
5403
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
5404
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
5405
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
5406
            $EGREP "$file_magic_regex" > /dev/null; then
 
5407
            :
 
5408
          else
 
5409
            cat <<EOF 1>&2
 
5410
 
 
5411
*** Warning: the command libtool uses to detect shared libraries,
 
5412
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
5413
*** The result is that libtool may fail to recognize shared libraries
 
5414
*** as such.  This will affect the creation of libtool libraries that
 
5415
*** depend on shared libraries, but programs linked with such libtool
 
5416
*** libraries will work regardless of this problem.  Nevertheless, you
 
5417
*** may want to report the problem to your system manager and/or to
 
5418
*** bug-libtool@gnu.org
 
5419
 
 
5420
EOF
 
5421
          fi ;;
 
5422
        esac
 
5423
      fi
 
5424
      break
 
5425
    fi
 
5426
  done
 
5427
  IFS="$lt_save_ifs"
 
5428
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
5429
  ;;
 
5430
esac
 
5431
fi
 
5432
 
 
5433
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
5434
if test -n "$MAGIC_CMD"; then
 
5435
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
5436
echo "${ECHO_T}$MAGIC_CMD" >&6
 
5437
else
 
5438
  echo "$as_me:$LINENO: result: no" >&5
 
5439
echo "${ECHO_T}no" >&6
 
5440
fi
 
5441
 
 
5442
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
5443
  if test -n "$ac_tool_prefix"; then
 
5444
    echo "$as_me:$LINENO: checking for file" >&5
 
5445
echo $ECHO_N "checking for file... $ECHO_C" >&6
 
5446
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
5447
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5448
else
 
5449
  case $MAGIC_CMD in
 
5450
[\\/*] |  ?:[\\/]*)
 
5451
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
5452
  ;;
 
5453
*)
 
5454
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
5455
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
5456
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
5457
  for ac_dir in $ac_dummy; do
 
5458
    IFS="$lt_save_ifs"
 
5459
    test -z "$ac_dir" && ac_dir=.
 
5460
    if test -f $ac_dir/file; then
 
5461
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
5462
      if test -n "$file_magic_test_file"; then
 
5463
        case $deplibs_check_method in
 
5464
        "file_magic "*)
 
5465
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
5466
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
5467
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
5468
            $EGREP "$file_magic_regex" > /dev/null; then
 
5469
            :
 
5470
          else
 
5471
            cat <<EOF 1>&2
 
5472
 
 
5473
*** Warning: the command libtool uses to detect shared libraries,
 
5474
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
5475
*** The result is that libtool may fail to recognize shared libraries
 
5476
*** as such.  This will affect the creation of libtool libraries that
 
5477
*** depend on shared libraries, but programs linked with such libtool
 
5478
*** libraries will work regardless of this problem.  Nevertheless, you
 
5479
*** may want to report the problem to your system manager and/or to
 
5480
*** bug-libtool@gnu.org
 
5481
 
 
5482
EOF
 
5483
          fi ;;
 
5484
        esac
 
5485
      fi
 
5486
      break
 
5487
    fi
 
5488
  done
 
5489
  IFS="$lt_save_ifs"
 
5490
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
5491
  ;;
 
5492
esac
 
5493
fi
 
5494
 
 
5495
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
5496
if test -n "$MAGIC_CMD"; then
 
5497
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
5498
echo "${ECHO_T}$MAGIC_CMD" >&6
 
5499
else
 
5500
  echo "$as_me:$LINENO: result: no" >&5
 
5501
echo "${ECHO_T}no" >&6
 
5502
fi
 
5503
 
 
5504
  else
 
5505
    MAGIC_CMD=:
 
5506
  fi
 
5507
fi
 
5508
 
 
5509
  fi
 
5510
  ;;
 
5511
esac
 
5512
 
 
5513
enable_dlopen=no
 
5514
enable_win32_dll=no
 
5515
 
 
5516
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
 
5517
if test "${enable_libtool_lock+set}" = set; then
 
5518
  enableval="$enable_libtool_lock"
 
5519
 
 
5520
fi;
 
5521
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4182
5522
 
4183
5523
 
4184
5524
# Check whether --with-pic or --without-pic was given.
4190
5530
fi;
4191
5531
test -z "$pic_mode" && pic_mode=default
4192
5532
 
4193
 
# We assume here that the value for lt_cv_prog_cc_pic will not be cached
4194
 
# in isolation, and that seeing it set (from the cache) indicates that
4195
 
# the associated values are set (in the cache) correctly too.
4196
 
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
4197
 
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
4198
 
if test "${lt_cv_prog_cc_pic+set}" = set; then
4199
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4200
 
else
4201
 
   lt_cv_prog_cc_pic=
4202
 
  lt_cv_prog_cc_shlib=
4203
 
  lt_cv_prog_cc_wl=
4204
 
  lt_cv_prog_cc_static=
4205
 
  lt_cv_prog_cc_no_builtin=
4206
 
  lt_cv_prog_cc_can_build_shared=$can_build_shared
4207
 
 
4208
 
  if test "$GCC" = yes; then
4209
 
    lt_cv_prog_cc_wl='-Wl,'
4210
 
    lt_cv_prog_cc_static='-static'
4211
 
 
4212
 
    case $host_os in
4213
 
    aix*)
4214
 
      # Below there is a dirty hack to force normal static linking with -ldl
4215
 
      # The problem is because libdl dynamically linked with both libc and
4216
 
      # libC (AIX C++ library), which obviously doesn't included in libraries
4217
 
      # list by gcc. This cause undefined symbols with -static flags.
4218
 
      # This hack allows C programs to be linked with "-static -ldl", but
4219
 
      # not sure about C++ programs.
4220
 
      lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
4221
 
      ;;
4222
 
    amigaos*)
4223
 
      # FIXME: we need at least 68020 code to build shared libraries, but
4224
 
      # adding the `-m68020' flag to GCC prevents building anything better,
4225
 
      # like `-m68040'.
4226
 
      lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
4227
 
      ;;
4228
 
    beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
4229
 
      # PIC is the default for these OSes.
4230
 
      ;;
4231
 
    darwin* | rhapsody*)
4232
 
      # PIC is the default on this platform
4233
 
      # Common symbols not allowed in MH_DYLIB files
4234
 
      lt_cv_prog_cc_pic='-fno-common'
4235
 
      ;;
4236
 
    cygwin* | mingw* | pw32* | os2*)
4237
 
      # This hack is so that the source file can tell whether it is being
4238
 
      # built for inclusion in a dll (and should export symbols for example).
4239
 
      lt_cv_prog_cc_pic='-DDLL_EXPORT'
4240
 
      ;;
4241
 
    sysv4*MP*)
4242
 
      if test -d /usr/nec; then
4243
 
         lt_cv_prog_cc_pic=-Kconform_pic
4244
 
      fi
4245
 
      ;;
4246
 
    *)
4247
 
      lt_cv_prog_cc_pic='-fPIC'
4248
 
      ;;
4249
 
    esac
4250
 
  else
4251
 
    # PORTME Check for PIC flags for the system compiler.
4252
 
    case $host_os in
4253
 
    aix3* | aix4* | aix5*)
4254
 
      lt_cv_prog_cc_wl='-Wl,'
4255
 
      # All AIX code is PIC.
4256
 
      if test "$host_cpu" = ia64; then
4257
 
        # AIX 5 now supports IA64 processor
4258
 
        lt_cv_prog_cc_static='-Bstatic'
4259
 
      else
4260
 
        lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
4261
 
      fi
4262
 
      ;;
4263
 
 
4264
 
    hpux9* | hpux10* | hpux11*)
4265
 
      # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
4266
 
      lt_cv_prog_cc_wl='-Wl,'
4267
 
      lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
4268
 
      lt_cv_prog_cc_pic='+Z'
4269
 
      ;;
4270
 
 
4271
 
    irix5* | irix6*)
4272
 
      lt_cv_prog_cc_wl='-Wl,'
4273
 
      lt_cv_prog_cc_static='-non_shared'
4274
 
      # PIC (with -KPIC) is the default.
4275
 
      ;;
4276
 
 
4277
 
    cygwin* | mingw* | pw32* | os2*)
4278
 
      # This hack is so that the source file can tell whether it is being
4279
 
      # built for inclusion in a dll (and should export symbols for example).
4280
 
      lt_cv_prog_cc_pic='-DDLL_EXPORT'
4281
 
      ;;
4282
 
 
4283
 
    newsos6)
4284
 
      lt_cv_prog_cc_pic='-KPIC'
4285
 
      lt_cv_prog_cc_static='-Bstatic'
4286
 
      ;;
4287
 
 
4288
 
    osf3* | osf4* | osf5*)
4289
 
      # All OSF/1 code is PIC.
4290
 
      lt_cv_prog_cc_wl='-Wl,'
4291
 
      lt_cv_prog_cc_static='-non_shared'
4292
 
      ;;
4293
 
 
4294
 
    sco3.2v5*)
4295
 
      lt_cv_prog_cc_pic='-Kpic'
4296
 
      lt_cv_prog_cc_static='-dn'
4297
 
      lt_cv_prog_cc_shlib='-belf'
4298
 
      ;;
4299
 
 
4300
 
    solaris*)
4301
 
      lt_cv_prog_cc_pic='-KPIC'
4302
 
      lt_cv_prog_cc_static='-Bstatic'
4303
 
      lt_cv_prog_cc_wl='-Wl,'
4304
 
      ;;
4305
 
 
4306
 
    sunos4*)
4307
 
      lt_cv_prog_cc_pic='-PIC'
4308
 
      lt_cv_prog_cc_static='-Bstatic'
4309
 
      lt_cv_prog_cc_wl='-Qoption ld '
4310
 
      ;;
4311
 
 
4312
 
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4313
 
      lt_cv_prog_cc_pic='-KPIC'
4314
 
      lt_cv_prog_cc_static='-Bstatic'
4315
 
      if test "x$host_vendor" = xsni; then
4316
 
        lt_cv_prog_cc_wl='-LD'
4317
 
      else
4318
 
        lt_cv_prog_cc_wl='-Wl,'
4319
 
      fi
4320
 
      ;;
4321
 
 
4322
 
    uts4*)
4323
 
      lt_cv_prog_cc_pic='-pic'
4324
 
      lt_cv_prog_cc_static='-Bstatic'
4325
 
      ;;
4326
 
 
4327
 
    sysv4*MP*)
4328
 
      if test -d /usr/nec ;then
4329
 
        lt_cv_prog_cc_pic='-Kconform_pic'
4330
 
        lt_cv_prog_cc_static='-Bstatic'
4331
 
      fi
4332
 
      ;;
4333
 
 
4334
 
    *)
4335
 
      lt_cv_prog_cc_can_build_shared=no
4336
 
      ;;
4337
 
    esac
4338
 
  fi
4339
 
 
4340
 
fi
4341
 
 
4342
 
if test -z "$lt_cv_prog_cc_pic"; then
4343
 
  echo "$as_me:$LINENO: result: none" >&5
4344
 
echo "${ECHO_T}none" >&6
4345
 
else
4346
 
  echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
4347
 
echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
4348
 
 
4349
 
  # Check to make sure the pic_flag actually works.
4350
 
  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
4351
 
echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
4352
 
  if test "${lt_cv_prog_cc_pic_works+set}" = set; then
4353
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4354
 
else
4355
 
      save_CFLAGS="$CFLAGS"
4356
 
    CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
4357
 
    cat >conftest.$ac_ext <<_ACEOF
4358
 
#line $LINENO "configure"
4359
 
/* confdefs.h.  */
4360
 
_ACEOF
4361
 
cat confdefs.h >>conftest.$ac_ext
4362
 
cat >>conftest.$ac_ext <<_ACEOF
4363
 
/* end confdefs.h.  */
4364
 
 
4365
 
int
4366
 
main ()
4367
 
{
4368
 
 
4369
 
  ;
4370
 
  return 0;
4371
 
}
4372
 
_ACEOF
4373
 
rm -f conftest.$ac_objext
4374
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4375
 
  (eval $ac_compile) 2>&5
4376
 
  ac_status=$?
4377
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378
 
  (exit $ac_status); } &&
4379
 
         { ac_try='test -s conftest.$ac_objext'
4380
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4381
 
  (eval $ac_try) 2>&5
4382
 
  ac_status=$?
4383
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4384
 
  (exit $ac_status); }; }; then
4385
 
        case $host_os in
4386
 
      hpux9* | hpux10* | hpux11*)
4387
 
        # On HP-UX, both CC and GCC only warn that PIC is supported... then
4388
 
        # they create non-PIC objects.  So, if there were any warnings, we
4389
 
        # assume that PIC is not supported.
4390
 
        if test -s conftest.err; then
4391
 
          lt_cv_prog_cc_pic_works=no
4392
 
        else
4393
 
          lt_cv_prog_cc_pic_works=yes
4394
 
        fi
4395
 
        ;;
4396
 
      *)
4397
 
        lt_cv_prog_cc_pic_works=yes
4398
 
        ;;
4399
 
      esac
4400
 
 
4401
 
else
4402
 
  echo "$as_me: failed program was:" >&5
4403
 
sed 's/^/| /' conftest.$ac_ext >&5
4404
 
 
4405
 
      lt_cv_prog_cc_pic_works=no
4406
 
 
4407
 
fi
4408
 
rm -f conftest.$ac_objext conftest.$ac_ext
4409
 
    CFLAGS="$save_CFLAGS"
4410
 
 
4411
 
fi
4412
 
 
4413
 
 
4414
 
  if test "X$lt_cv_prog_cc_pic_works" = Xno; then
4415
 
    lt_cv_prog_cc_pic=
4416
 
    lt_cv_prog_cc_can_build_shared=no
4417
 
  else
4418
 
    lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
4419
 
  fi
4420
 
 
4421
 
  echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
4422
 
echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
4423
 
fi
4424
 
 
 
5533
# Use C for the default configuration in the libtool script
 
5534
tagname=
 
5535
lt_save_CC="$CC"
 
5536
ac_ext=c
 
5537
ac_cpp='$CPP $CPPFLAGS'
 
5538
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5539
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5540
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5541
 
 
5542
 
 
5543
# Source file extension for C test sources.
 
5544
ac_ext=c
 
5545
 
 
5546
# Object file extension for compiled C test sources.
 
5547
objext=o
 
5548
objext=$objext
 
5549
 
 
5550
# Code to be used in simple compile tests
 
5551
lt_simple_compile_test_code="int some_variable = 0;\n"
 
5552
 
 
5553
# Code to be used in simple link tests
 
5554
lt_simple_link_test_code='int main(){return(0);}\n'
 
5555
 
 
5556
 
 
5557
# If no C compiler was specified, use CC.
 
5558
LTCC=${LTCC-"$CC"}
 
5559
 
 
5560
# Allow CC to be a program name with arguments.
 
5561
compiler=$CC
 
5562
 
 
5563
 
 
5564
# save warnings/boilerplate of simple test code
 
5565
ac_outfile=conftest.$ac_objext
 
5566
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
5567
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
5568
_lt_compiler_boilerplate=`cat conftest.err`
 
5569
$rm conftest*
 
5570
 
 
5571
ac_outfile=conftest.$ac_objext
 
5572
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
5573
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
5574
_lt_linker_boilerplate=`cat conftest.err`
 
5575
$rm conftest*
 
5576
 
 
5577
 
 
5578
#
4425
5579
# Check for any special shared library compilation flags.
4426
 
if test -n "$lt_cv_prog_cc_shlib"; then
4427
 
  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
4428
 
echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
4429
 
  if echo "$old_CC $old_CFLAGS " | egrep -e "[  ]$lt_cv_prog_cc_shlib[  ]" >/dev/null; then :
 
5580
#
 
5581
lt_prog_cc_shlib=
 
5582
if test "$GCC" = no; then
 
5583
  case $host_os in
 
5584
  sco3.2v5*)
 
5585
    lt_prog_cc_shlib='-belf'
 
5586
    ;;
 
5587
  esac
 
5588
fi
 
5589
if test -n "$lt_prog_cc_shlib"; then
 
5590
  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
 
5591
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
 
5592
  if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
4430
5593
  else
4431
 
   { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
4432
 
echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
 
5594
    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
 
5595
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
4433
5596
    lt_cv_prog_cc_can_build_shared=no
4434
5597
  fi
4435
5598
fi
4436
5599
 
4437
 
echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
4438
 
echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
4439
 
if test "${lt_cv_prog_cc_static_works+set}" = set; then
4440
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4441
 
else
4442
 
    lt_cv_prog_cc_static_works=no
4443
 
  save_LDFLAGS="$LDFLAGS"
4444
 
  LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
4445
 
  cat >conftest.$ac_ext <<_ACEOF
4446
 
#line $LINENO "configure"
4447
 
/* confdefs.h.  */
4448
 
_ACEOF
4449
 
cat confdefs.h >>conftest.$ac_ext
4450
 
cat >>conftest.$ac_ext <<_ACEOF
4451
 
/* end confdefs.h.  */
4452
 
 
4453
 
int
4454
 
main ()
4455
 
{
4456
 
 
4457
 
  ;
4458
 
  return 0;
4459
 
}
4460
 
_ACEOF
4461
 
rm -f conftest.$ac_objext conftest$ac_exeext
4462
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4463
 
  (eval $ac_link) 2>&5
4464
 
  ac_status=$?
4465
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466
 
  (exit $ac_status); } &&
4467
 
         { ac_try='test -s conftest$ac_exeext'
4468
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4469
 
  (eval $ac_try) 2>&5
4470
 
  ac_status=$?
4471
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472
 
  (exit $ac_status); }; }; then
4473
 
  lt_cv_prog_cc_static_works=yes
4474
 
else
4475
 
  echo "$as_me: failed program was:" >&5
4476
 
sed 's/^/| /' conftest.$ac_ext >&5
4477
 
 
4478
 
fi
4479
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4480
 
  LDFLAGS="$save_LDFLAGS"
4481
 
 
4482
 
fi
4483
 
 
4484
 
 
4485
 
# Belt *and* braces to stop my trousers falling down:
4486
 
test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
4487
 
echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
4488
 
echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
4489
 
 
4490
 
pic_flag="$lt_cv_prog_cc_pic"
4491
 
special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
4492
 
wl="$lt_cv_prog_cc_wl"
4493
 
link_static_flag="$lt_cv_prog_cc_static"
4494
 
no_builtin_flag="$lt_cv_prog_cc_no_builtin"
4495
 
can_build_shared="$lt_cv_prog_cc_can_build_shared"
4496
 
 
4497
 
 
4498
 
# Check to see if options -o and -c are simultaneously supported by compiler
 
5600
 
 
5601
#
 
5602
# Check to make sure the static flag actually works.
 
5603
#
 
5604
echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
 
5605
echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
 
5606
if test "${lt_prog_compiler_static_works+set}" = set; then
 
5607
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5608
else
 
5609
  lt_prog_compiler_static_works=no
 
5610
   save_LDFLAGS="$LDFLAGS"
 
5611
   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
 
5612
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
5613
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
5614
     # The compiler can only warn and ignore the option if not recognized
 
5615
     # So say no if there are warnings
 
5616
     if test -s conftest.err; then
 
5617
       # Append any errors to the config.log.
 
5618
       cat conftest.err 1>&5
 
5619
       $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
 
5620
       $SED '/^$/d' conftest.err >conftest.er2
 
5621
       if diff conftest.exp conftest.er2 >/dev/null; then
 
5622
         lt_prog_compiler_static_works=yes
 
5623
       fi
 
5624
     else
 
5625
       lt_prog_compiler_static_works=yes
 
5626
     fi
 
5627
   fi
 
5628
   $rm conftest*
 
5629
   LDFLAGS="$save_LDFLAGS"
 
5630
 
 
5631
fi
 
5632
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
 
5633
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
 
5634
 
 
5635
if test x"$lt_prog_compiler_static_works" = xyes; then
 
5636
    :
 
5637
else
 
5638
    lt_prog_compiler_static=
 
5639
fi
 
5640
 
 
5641
 
 
5642
 
 
5643
## CAVEAT EMPTOR:
 
5644
## There is no encapsulation within the following macros, do not change
 
5645
## the running order or otherwise move them around unless you know exactly
 
5646
## what you are doing...
 
5647
 
 
5648
lt_prog_compiler_no_builtin_flag=
 
5649
 
 
5650
if test "$GCC" = yes; then
 
5651
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
 
5652
 
 
5653
 
 
5654
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
5655
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
 
5656
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
5657
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5658
else
 
5659
  lt_cv_prog_compiler_rtti_exceptions=no
 
5660
  ac_outfile=conftest.$ac_objext
 
5661
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
5662
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
5663
   # Insert the option either (1) after the last *FLAGS variable, or
 
5664
   # (2) before a word containing "conftest.", or (3) at the end.
 
5665
   # Note that $ac_compile itself does not contain backslashes and begins
 
5666
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
5667
   # The option is referenced via a variable to avoid confusing sed.
 
5668
   lt_compile=`echo "$ac_compile" | $SED \
 
5669
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
5670
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
5671
   -e 's:$: $lt_compiler_flag:'`
 
5672
   (eval echo "\"\$as_me:5672: $lt_compile\"" >&5)
 
5673
   (eval "$lt_compile" 2>conftest.err)
 
5674
   ac_status=$?
 
5675
   cat conftest.err >&5
 
5676
   echo "$as_me:5676: \$? = $ac_status" >&5
 
5677
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
5678
     # The compiler can only warn and ignore the option if not recognized
 
5679
     # So say no if there are warnings other than the usual output.
 
5680
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
 
5681
     $SED '/^$/d' conftest.err >conftest.er2
 
5682
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
 
5683
       lt_cv_prog_compiler_rtti_exceptions=yes
 
5684
     fi
 
5685
   fi
 
5686
   $rm conftest*
 
5687
 
 
5688
fi
 
5689
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
5690
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
 
5691
 
 
5692
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
5693
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
 
5694
else
 
5695
    :
 
5696
fi
 
5697
 
 
5698
fi
 
5699
 
 
5700
lt_prog_compiler_wl=
 
5701
lt_prog_compiler_pic=
 
5702
lt_prog_compiler_static=
 
5703
 
 
5704
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
5705
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
5706
 
 
5707
  if test "$GCC" = yes; then
 
5708
    lt_prog_compiler_wl='-Wl,'
 
5709
    lt_prog_compiler_static='-static'
 
5710
 
 
5711
    case $host_os in
 
5712
      aix*)
 
5713
      # All AIX code is PIC.
 
5714
      if test "$host_cpu" = ia64; then
 
5715
        # AIX 5 now supports IA64 processor
 
5716
        lt_prog_compiler_static='-Bstatic'
 
5717
      fi
 
5718
      ;;
 
5719
 
 
5720
    amigaos*)
 
5721
      # FIXME: we need at least 68020 code to build shared libraries, but
 
5722
      # adding the `-m68020' flag to GCC prevents building anything better,
 
5723
      # like `-m68040'.
 
5724
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
5725
      ;;
 
5726
 
 
5727
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
5728
      # PIC is the default for these OSes.
 
5729
      ;;
 
5730
 
 
5731
    mingw* | pw32* | os2*)
 
5732
      # This hack is so that the source file can tell whether it is being
 
5733
      # built for inclusion in a dll (and should export symbols for example).
 
5734
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
5735
      ;;
 
5736
 
 
5737
    darwin* | rhapsody*)
 
5738
      # PIC is the default on this platform
 
5739
      # Common symbols not allowed in MH_DYLIB files
 
5740
      lt_prog_compiler_pic='-fno-common'
 
5741
      ;;
 
5742
 
 
5743
    msdosdjgpp*)
 
5744
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
5745
      # on systems that don't support them.
 
5746
      lt_prog_compiler_can_build_shared=no
 
5747
      enable_shared=no
 
5748
      ;;
 
5749
 
 
5750
    sysv4*MP*)
 
5751
      if test -d /usr/nec; then
 
5752
        lt_prog_compiler_pic=-Kconform_pic
 
5753
      fi
 
5754
      ;;
 
5755
 
 
5756
    hpux*)
 
5757
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
5758
      # not for PA HP-UX.
 
5759
      case "$host_cpu" in
 
5760
      hppa*64*|ia64*)
 
5761
        # +Z the default
 
5762
        ;;
 
5763
      *)
 
5764
        lt_prog_compiler_pic='-fPIC'
 
5765
        ;;
 
5766
      esac
 
5767
      ;;
 
5768
 
 
5769
    *)
 
5770
      lt_prog_compiler_pic='-fPIC'
 
5771
      ;;
 
5772
    esac
 
5773
  else
 
5774
    # PORTME Check for flag to pass linker flags through the system compiler.
 
5775
    case $host_os in
 
5776
    aix*)
 
5777
      lt_prog_compiler_wl='-Wl,'
 
5778
      if test "$host_cpu" = ia64; then
 
5779
        # AIX 5 now supports IA64 processor
 
5780
        lt_prog_compiler_static='-Bstatic'
 
5781
      else
 
5782
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
 
5783
      fi
 
5784
      ;;
 
5785
      darwin*)
 
5786
        # PIC is the default on this platform
 
5787
        # Common symbols not allowed in MH_DYLIB files
 
5788
       case $cc_basename in
 
5789
         xlc*)
 
5790
         lt_prog_compiler_pic='-qnocommon'
 
5791
         lt_prog_compiler_wl='-Wl,'
 
5792
         ;;
 
5793
       esac
 
5794
       ;;
 
5795
 
 
5796
    mingw* | pw32* | os2*)
 
5797
      # This hack is so that the source file can tell whether it is being
 
5798
      # built for inclusion in a dll (and should export symbols for example).
 
5799
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
5800
      ;;
 
5801
 
 
5802
    hpux9* | hpux10* | hpux11*)
 
5803
      lt_prog_compiler_wl='-Wl,'
 
5804
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
5805
      # not for PA HP-UX.
 
5806
      case "$host_cpu" in
 
5807
      hppa*64*|ia64*)
 
5808
        # +Z the default
 
5809
        ;;
 
5810
      *)
 
5811
        lt_prog_compiler_pic='+Z'
 
5812
        ;;
 
5813
      esac
 
5814
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
5815
      lt_prog_compiler_static='${wl}-a ${wl}archive'
 
5816
      ;;
 
5817
 
 
5818
    irix5* | irix6* | nonstopux*)
 
5819
      lt_prog_compiler_wl='-Wl,'
 
5820
      # PIC (with -KPIC) is the default.
 
5821
      lt_prog_compiler_static='-non_shared'
 
5822
      ;;
 
5823
 
 
5824
    newsos6)
 
5825
      lt_prog_compiler_pic='-KPIC'
 
5826
      lt_prog_compiler_static='-Bstatic'
 
5827
      ;;
 
5828
 
 
5829
    linux*)
 
5830
      case $cc_basename in
 
5831
      icc* | ecc*)
 
5832
        lt_prog_compiler_wl='-Wl,'
 
5833
        lt_prog_compiler_pic='-KPIC'
 
5834
        lt_prog_compiler_static='-static'
 
5835
        ;;
 
5836
      pgcc* | pgf77* | pgf90*)
 
5837
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
5838
        # which looks to be a dead project)
 
5839
        lt_prog_compiler_wl='-Wl,'
 
5840
        lt_prog_compiler_pic='-fpic'
 
5841
        lt_prog_compiler_static='-static'
 
5842
        ;;
 
5843
      ccc*)
 
5844
        lt_prog_compiler_wl='-Wl,'
 
5845
        # All Alpha code is PIC.
 
5846
        lt_prog_compiler_static='-non_shared'
 
5847
        ;;
 
5848
      esac
 
5849
      ;;
 
5850
 
 
5851
    osf3* | osf4* | osf5*)
 
5852
      lt_prog_compiler_wl='-Wl,'
 
5853
      # All OSF/1 code is PIC.
 
5854
      lt_prog_compiler_static='-non_shared'
 
5855
      ;;
 
5856
 
 
5857
    sco3.2v5*)
 
5858
      lt_prog_compiler_pic='-Kpic'
 
5859
      lt_prog_compiler_static='-dn'
 
5860
      ;;
 
5861
 
 
5862
    solaris*)
 
5863
      lt_prog_compiler_pic='-KPIC'
 
5864
      lt_prog_compiler_static='-Bstatic'
 
5865
      case $cc_basename in
 
5866
      f77* | f90* | f95*)
 
5867
        lt_prog_compiler_wl='-Qoption ld ';;
 
5868
      *)
 
5869
        lt_prog_compiler_wl='-Wl,';;
 
5870
      esac
 
5871
      ;;
 
5872
 
 
5873
    sunos4*)
 
5874
      lt_prog_compiler_wl='-Qoption ld '
 
5875
      lt_prog_compiler_pic='-PIC'
 
5876
      lt_prog_compiler_static='-Bstatic'
 
5877
      ;;
 
5878
 
 
5879
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
5880
      lt_prog_compiler_wl='-Wl,'
 
5881
      lt_prog_compiler_pic='-KPIC'
 
5882
      lt_prog_compiler_static='-Bstatic'
 
5883
      ;;
 
5884
 
 
5885
    sysv4*MP*)
 
5886
      if test -d /usr/nec ;then
 
5887
        lt_prog_compiler_pic='-Kconform_pic'
 
5888
        lt_prog_compiler_static='-Bstatic'
 
5889
      fi
 
5890
      ;;
 
5891
 
 
5892
    unicos*)
 
5893
      lt_prog_compiler_wl='-Wl,'
 
5894
      lt_prog_compiler_can_build_shared=no
 
5895
      ;;
 
5896
 
 
5897
    uts4*)
 
5898
      lt_prog_compiler_pic='-pic'
 
5899
      lt_prog_compiler_static='-Bstatic'
 
5900
      ;;
 
5901
 
 
5902
    *)
 
5903
      lt_prog_compiler_can_build_shared=no
 
5904
      ;;
 
5905
    esac
 
5906
  fi
 
5907
 
 
5908
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
 
5909
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
 
5910
 
 
5911
#
 
5912
# Check to make sure the PIC flag actually works.
 
5913
#
 
5914
if test -n "$lt_prog_compiler_pic"; then
 
5915
 
 
5916
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
5917
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
 
5918
if test "${lt_prog_compiler_pic_works+set}" = set; then
 
5919
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5920
else
 
5921
  lt_prog_compiler_pic_works=no
 
5922
  ac_outfile=conftest.$ac_objext
 
5923
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
5924
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
 
5925
   # Insert the option either (1) after the last *FLAGS variable, or
 
5926
   # (2) before a word containing "conftest.", or (3) at the end.
 
5927
   # Note that $ac_compile itself does not contain backslashes and begins
 
5928
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
5929
   # The option is referenced via a variable to avoid confusing sed.
 
5930
   lt_compile=`echo "$ac_compile" | $SED \
 
5931
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
5932
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
5933
   -e 's:$: $lt_compiler_flag:'`
 
5934
   (eval echo "\"\$as_me:5934: $lt_compile\"" >&5)
 
5935
   (eval "$lt_compile" 2>conftest.err)
 
5936
   ac_status=$?
 
5937
   cat conftest.err >&5
 
5938
   echo "$as_me:5938: \$? = $ac_status" >&5
 
5939
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
5940
     # The compiler can only warn and ignore the option if not recognized
 
5941
     # So say no if there are warnings other than the usual output.
 
5942
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
 
5943
     $SED '/^$/d' conftest.err >conftest.er2
 
5944
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
 
5945
       lt_prog_compiler_pic_works=yes
 
5946
     fi
 
5947
   fi
 
5948
   $rm conftest*
 
5949
 
 
5950
fi
 
5951
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
 
5952
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
 
5953
 
 
5954
if test x"$lt_prog_compiler_pic_works" = xyes; then
 
5955
    case $lt_prog_compiler_pic in
 
5956
     "" | " "*) ;;
 
5957
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
 
5958
     esac
 
5959
else
 
5960
    lt_prog_compiler_pic=
 
5961
     lt_prog_compiler_can_build_shared=no
 
5962
fi
 
5963
 
 
5964
fi
 
5965
case "$host_os" in
 
5966
  # For platforms which do not support PIC, -DPIC is meaningless:
 
5967
  *djgpp*)
 
5968
    lt_prog_compiler_pic=
 
5969
    ;;
 
5970
  *)
 
5971
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
5972
    ;;
 
5973
esac
 
5974
 
4499
5975
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
4500
5976
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
4501
 
if test "${lt_cv_compiler_c_o+set}" = set; then
4502
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4503
 
else
4504
 
 
4505
 
$rm -r conftest 2>/dev/null
4506
 
mkdir conftest
4507
 
cd conftest
4508
 
echo "int some_variable = 0;" > conftest.$ac_ext
4509
 
mkdir out
4510
 
# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
4511
 
# that will create temporary files in the current directory regardless of
4512
 
# the output directory.  Thus, making CWD read-only will cause this test
4513
 
# to fail, enabling locking or at least warning the user not to do parallel
4514
 
# builds.
4515
 
chmod -w .
4516
 
save_CFLAGS="$CFLAGS"
4517
 
CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
4518
 
compiler_c_o=no
4519
 
if { (eval echo configure:4519: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
4520
 
  # The compiler can only warn and ignore the option if not recognized
4521
 
  # So say no if there are warnings
4522
 
  if test -s out/conftest.err; then
4523
 
    lt_cv_compiler_c_o=no
4524
 
  else
4525
 
    lt_cv_compiler_c_o=yes
4526
 
  fi
4527
 
else
4528
 
  # Append any errors to the config.log.
4529
 
  cat out/conftest.err 1>&5
4530
 
  lt_cv_compiler_c_o=no
4531
 
fi
4532
 
CFLAGS="$save_CFLAGS"
4533
 
chmod u+w .
4534
 
$rm conftest* out/*
4535
 
rmdir out
4536
 
cd ..
4537
 
rmdir conftest
4538
 
$rm -r conftest 2>/dev/null
4539
 
 
4540
 
fi
4541
 
 
4542
 
compiler_c_o=$lt_cv_compiler_c_o
4543
 
echo "$as_me:$LINENO: result: $compiler_c_o" >&5
4544
 
echo "${ECHO_T}$compiler_c_o" >&6
4545
 
 
4546
 
if test x"$compiler_c_o" = x"yes"; then
4547
 
  # Check to see if we can write to a .lo
4548
 
  echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
4549
 
echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
4550
 
  if test "${lt_cv_compiler_o_lo+set}" = set; then
4551
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4552
 
else
4553
 
 
4554
 
  lt_cv_compiler_o_lo=no
4555
 
  save_CFLAGS="$CFLAGS"
4556
 
  CFLAGS="$CFLAGS -c -o conftest.lo"
4557
 
  save_objext="$ac_objext"
4558
 
  ac_objext=lo
4559
 
  cat >conftest.$ac_ext <<_ACEOF
4560
 
#line $LINENO "configure"
4561
 
/* confdefs.h.  */
4562
 
_ACEOF
4563
 
cat confdefs.h >>conftest.$ac_ext
4564
 
cat >>conftest.$ac_ext <<_ACEOF
4565
 
/* end confdefs.h.  */
4566
 
 
4567
 
int
4568
 
main ()
4569
 
{
4570
 
int some_variable = 0;
4571
 
  ;
4572
 
  return 0;
4573
 
}
4574
 
_ACEOF
4575
 
rm -f conftest.$ac_objext
4576
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4577
 
  (eval $ac_compile) 2>&5
4578
 
  ac_status=$?
4579
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4580
 
  (exit $ac_status); } &&
4581
 
         { ac_try='test -s conftest.$ac_objext'
4582
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4583
 
  (eval $ac_try) 2>&5
4584
 
  ac_status=$?
4585
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586
 
  (exit $ac_status); }; }; then
4587
 
      # The compiler can only warn and ignore the option if not recognized
4588
 
    # So say no if there are warnings
4589
 
    if test -s conftest.err; then
4590
 
      lt_cv_compiler_o_lo=no
4591
 
    else
4592
 
      lt_cv_compiler_o_lo=yes
4593
 
    fi
4594
 
 
4595
 
else
4596
 
  echo "$as_me: failed program was:" >&5
4597
 
sed 's/^/| /' conftest.$ac_ext >&5
4598
 
 
4599
 
fi
4600
 
rm -f conftest.$ac_objext conftest.$ac_ext
4601
 
  ac_objext="$save_objext"
4602
 
  CFLAGS="$save_CFLAGS"
4603
 
 
4604
 
fi
4605
 
 
4606
 
  compiler_o_lo=$lt_cv_compiler_o_lo
4607
 
  echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
4608
 
echo "${ECHO_T}$compiler_o_lo" >&6
4609
 
else
4610
 
  compiler_o_lo=no
4611
 
fi
4612
 
 
4613
 
# Check to see if we can do hard links to lock some files if needed
 
5977
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
 
5978
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5979
else
 
5980
  lt_cv_prog_compiler_c_o=no
 
5981
   $rm -r conftest 2>/dev/null
 
5982
   mkdir conftest
 
5983
   cd conftest
 
5984
   mkdir out
 
5985
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
5986
 
 
5987
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
5988
   # Insert the option either (1) after the last *FLAGS variable, or
 
5989
   # (2) before a word containing "conftest.", or (3) at the end.
 
5990
   # Note that $ac_compile itself does not contain backslashes and begins
 
5991
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
5992
   lt_compile=`echo "$ac_compile" | $SED \
 
5993
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
5994
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
5995
   -e 's:$: $lt_compiler_flag:'`
 
5996
   (eval echo "\"\$as_me:5996: $lt_compile\"" >&5)
 
5997
   (eval "$lt_compile" 2>out/conftest.err)
 
5998
   ac_status=$?
 
5999
   cat out/conftest.err >&5
 
6000
   echo "$as_me:6000: \$? = $ac_status" >&5
 
6001
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
6002
   then
 
6003
     # The compiler can only warn and ignore the option if not recognized
 
6004
     # So say no if there are warnings
 
6005
     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
 
6006
     $SED '/^$/d' out/conftest.err >out/conftest.er2
 
6007
     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
6008
       lt_cv_prog_compiler_c_o=yes
 
6009
     fi
 
6010
   fi
 
6011
   chmod u+w .
 
6012
   $rm conftest*
 
6013
   # SGI C++ compiler will create directory out/ii_files/ for
 
6014
   # template instantiation
 
6015
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
6016
   $rm out/* && rmdir out
 
6017
   cd ..
 
6018
   rmdir conftest
 
6019
   $rm conftest*
 
6020
 
 
6021
fi
 
6022
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
6023
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
 
6024
 
 
6025
 
4614
6026
hard_links="nottested"
4615
 
if test "$compiler_c_o" = no && test "$need_locks" != no; then
 
6027
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
4616
6028
  # do not overwrite the value of need_locks provided by the user
4617
6029
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
4618
6030
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
4633
6045
  need_locks=no
4634
6046
fi
4635
6047
 
4636
 
if test "$GCC" = yes; then
4637
 
  # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
4638
 
  echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
4639
 
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
4640
 
  echo "int some_variable = 0;" > conftest.$ac_ext
4641
 
  save_CFLAGS="$CFLAGS"
4642
 
  CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
4643
 
  compiler_rtti_exceptions=no
4644
 
  cat >conftest.$ac_ext <<_ACEOF
4645
 
#line $LINENO "configure"
4646
 
/* confdefs.h.  */
4647
 
_ACEOF
4648
 
cat confdefs.h >>conftest.$ac_ext
4649
 
cat >>conftest.$ac_ext <<_ACEOF
4650
 
/* end confdefs.h.  */
4651
 
 
4652
 
int
4653
 
main ()
4654
 
{
4655
 
int some_variable = 0;
4656
 
  ;
4657
 
  return 0;
4658
 
}
4659
 
_ACEOF
4660
 
rm -f conftest.$ac_objext
4661
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4662
 
  (eval $ac_compile) 2>&5
4663
 
  ac_status=$?
4664
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4665
 
  (exit $ac_status); } &&
4666
 
         { ac_try='test -s conftest.$ac_objext'
4667
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4668
 
  (eval $ac_try) 2>&5
4669
 
  ac_status=$?
4670
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4671
 
  (exit $ac_status); }; }; then
4672
 
      # The compiler can only warn and ignore the option if not recognized
4673
 
    # So say no if there are warnings
4674
 
    if test -s conftest.err; then
4675
 
      compiler_rtti_exceptions=no
4676
 
    else
4677
 
      compiler_rtti_exceptions=yes
 
6048
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
6049
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
6050
 
 
6051
  runpath_var=
 
6052
  allow_undefined_flag=
 
6053
  enable_shared_with_static_runtimes=no
 
6054
  archive_cmds=
 
6055
  archive_expsym_cmds=
 
6056
  old_archive_From_new_cmds=
 
6057
  old_archive_from_expsyms_cmds=
 
6058
  export_dynamic_flag_spec=
 
6059
  whole_archive_flag_spec=
 
6060
  thread_safe_flag_spec=
 
6061
  hardcode_libdir_flag_spec=
 
6062
  hardcode_libdir_flag_spec_ld=
 
6063
  hardcode_libdir_separator=
 
6064
  hardcode_direct=no
 
6065
  hardcode_minus_L=no
 
6066
  hardcode_shlibpath_var=unsupported
 
6067
  link_all_deplibs=unknown
 
6068
  hardcode_automatic=no
 
6069
  module_cmds=
 
6070
  module_expsym_cmds=
 
6071
  always_export_symbols=no
 
6072
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
6073
  # include_expsyms should be a list of space-separated symbols to be *always*
 
6074
  # included in the symbol list
 
6075
  include_expsyms=
 
6076
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
6077
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
6078
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
6079
  # as well as any symbol that contains `d'.
 
6080
  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
 
6081
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
6082
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
6083
  # the symbol is explicitly referenced.  Since portable code cannot
 
6084
  # rely on this symbol name, it's probably fine to never include it in
 
6085
  # preloaded symbol tables.
 
6086
  extract_expsyms_cmds=
 
6087
  # Just being paranoid about ensuring that cc_basename is set.
 
6088
  for cc_temp in $compiler""; do
 
6089
  case $cc_temp in
 
6090
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
6091
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
6092
    \-*) ;;
 
6093
    *) break;;
 
6094
  esac
 
6095
done
 
6096
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
6097
 
 
6098
  case $host_os in
 
6099
  cygwin* | mingw* | pw32*)
 
6100
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
6101
    # When not using gcc, we currently assume that we are using
 
6102
    # Microsoft Visual C++.
 
6103
    if test "$GCC" != yes; then
 
6104
      with_gnu_ld=no
4678
6105
    fi
4679
 
 
4680
 
else
4681
 
  echo "$as_me: failed program was:" >&5
4682
 
sed 's/^/| /' conftest.$ac_ext >&5
4683
 
 
4684
 
fi
4685
 
rm -f conftest.$ac_objext conftest.$ac_ext
4686
 
  CFLAGS="$save_CFLAGS"
4687
 
  echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
4688
 
echo "${ECHO_T}$compiler_rtti_exceptions" >&6
4689
 
 
4690
 
  if test "$compiler_rtti_exceptions" = "yes"; then
4691
 
    no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
4692
 
  else
4693
 
    no_builtin_flag=' -fno-builtin'
4694
 
  fi
4695
 
fi
4696
 
 
4697
 
# See if the linker supports building shared libraries.
4698
 
echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
4699
 
echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
4700
 
 
4701
 
allow_undefined_flag=
4702
 
no_undefined_flag=
4703
 
need_lib_prefix=unknown
4704
 
need_version=unknown
4705
 
# when you set need_version to no, make sure it does not cause -set_version
4706
 
# flags to be left without arguments
4707
 
archive_cmds=
4708
 
archive_expsym_cmds=
4709
 
old_archive_from_new_cmds=
4710
 
old_archive_from_expsyms_cmds=
4711
 
export_dynamic_flag_spec=
4712
 
whole_archive_flag_spec=
4713
 
thread_safe_flag_spec=
4714
 
hardcode_into_libs=no
4715
 
hardcode_libdir_flag_spec=
4716
 
hardcode_libdir_separator=
4717
 
hardcode_direct=no
4718
 
hardcode_minus_L=no
4719
 
hardcode_shlibpath_var=unsupported
4720
 
runpath_var=
4721
 
link_all_deplibs=unknown
4722
 
always_export_symbols=no
4723
 
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
4724
 
# include_expsyms should be a list of space-separated symbols to be *always*
4725
 
# included in the symbol list
4726
 
include_expsyms=
4727
 
# exclude_expsyms can be an egrep regular expression of symbols to exclude
4728
 
# it will be wrapped by ` (' and `)$', so one must not match beginning or
4729
 
# end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
4730
 
# as well as any symbol that contains `d'.
4731
 
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
4732
 
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
4733
 
# platforms (ab)use it in PIC code, but their linkers get confused if
4734
 
# the symbol is explicitly referenced.  Since portable code cannot
4735
 
# rely on this symbol name, it's probably fine to never include it in
4736
 
# preloaded symbol tables.
4737
 
extract_expsyms_cmds=
4738
 
 
4739
 
case $host_os in
4740
 
cygwin* | mingw* | pw32*)
4741
 
  # FIXME: the MSVC++ port hasn't been tested in a loooong time
4742
 
  # When not using gcc, we currently assume that we are using
4743
 
  # Microsoft Visual C++.
4744
 
  if test "$GCC" != yes; then
 
6106
    ;;
 
6107
  openbsd*)
4745
6108
    with_gnu_ld=no
4746
 
  fi
4747
 
  ;;
4748
 
openbsd*)
4749
 
  with_gnu_ld=no
4750
 
  ;;
4751
 
esac
4752
 
 
4753
 
ld_shlibs=yes
4754
 
if test "$with_gnu_ld" = yes; then
4755
 
  # If archive_cmds runs LD, not CC, wlarc should be empty
4756
 
  wlarc='${wl}'
4757
 
 
4758
 
  # See if GNU ld supports shared libraries.
4759
 
  case $host_os in
4760
 
  aix3* | aix4* | aix5*)
4761
 
    # On AIX, the GNU linker is very broken
4762
 
    # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
4763
 
    ld_shlibs=no
4764
 
    cat <<EOF 1>&2
4765
 
 
4766
 
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
4767
 
*** to be unable to reliably create shared libraries on AIX.
4768
 
*** Therefore, libtool is disabling shared libraries support.  If you
4769
 
*** really care for shared libraries, you may want to modify your PATH
4770
 
*** so that a non-GNU linker is found, and then restart.
4771
 
 
4772
 
EOF
4773
 
    ;;
4774
 
 
4775
 
  amigaos*)
4776
 
    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)'
4777
 
    hardcode_libdir_flag_spec='-L$libdir'
4778
 
    hardcode_minus_L=yes
4779
 
 
4780
 
    # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
4781
 
    # that the semantics of dynamic libraries on AmigaOS, at least up
4782
 
    # to version 4, is to share data among multiple programs linked
4783
 
    # with the same dynamic library.  Since this doesn't match the
4784
 
    # behavior of shared libraries on other platforms, we can use
4785
 
    # them.
4786
 
    ld_shlibs=no
4787
 
    ;;
4788
 
 
4789
 
  beos*)
4790
 
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4791
 
      allow_undefined_flag=unsupported
4792
 
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
4793
 
      # support --undefined.  This deserves some investigation.  FIXME
4794
 
      archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4795
 
    else
4796
 
      ld_shlibs=no
4797
 
    fi
4798
 
    ;;
4799
 
 
4800
 
  cygwin* | mingw* | pw32*)
4801
 
    # hardcode_libdir_flag_spec is actually meaningless, as there is
4802
 
    # no search path for DLLs.
4803
 
    hardcode_libdir_flag_spec='-L$libdir'
4804
 
    allow_undefined_flag=unsupported
4805
 
    always_export_symbols=yes
4806
 
 
4807
 
    extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
4808
 
      sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
4809
 
      test -f $output_objdir/impgen.exe || (cd $output_objdir && \
4810
 
      if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
4811
 
      else $CC -o impgen impgen.c ; fi)~
4812
 
      $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
4813
 
 
4814
 
    old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
4815
 
 
4816
 
    # cygwin and mingw dlls have different entry points and sets of symbols
4817
 
    # to exclude.
4818
 
    # FIXME: what about values for MSVC?
4819
 
    dll_entry=__cygwin_dll_entry@12
4820
 
    dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
4821
 
    case $host_os in
4822
 
    mingw*)
4823
 
      # mingw values
4824
 
      dll_entry=_DllMainCRTStartup@12
4825
 
      dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
4826
 
      ;;
4827
 
    esac
4828
 
 
4829
 
    # mingw and cygwin differ, and it's simplest to just exclude the union
4830
 
    # of the two symbol sets.
4831
 
    dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
4832
 
 
4833
 
    # recent cygwin and mingw systems supply a stub DllMain which the user
4834
 
    # can override, but on older systems we have to supply one (in ltdll.c)
4835
 
    if test "x$lt_cv_need_dllmain" = "xyes"; then
4836
 
      ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
4837
 
      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~
4838
 
        test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
4839
 
    else
4840
 
      ltdll_obj=
4841
 
      ltdll_cmds=
4842
 
    fi
4843
 
 
4844
 
    # Extract the symbol export list from an `--export-all' def file,
4845
 
    # then regenerate the def file from the symbol export list, so that
4846
 
    # the compiled dll only exports the symbol export list.
4847
 
    # Be careful not to strip the DATA tag left be newer dlltools.
4848
 
    export_symbols_cmds="$ltdll_cmds"'
4849
 
      $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
4850
 
      sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
4851
 
 
4852
 
    # If the export-symbols file already is a .def file (1st line
4853
 
    # is EXPORTS), use it as is.
4854
 
    # If DATA tags from a recent dlltool are present, honour them!
4855
 
    archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
4856
 
        cp $export_symbols $output_objdir/$soname-def;
4857
 
      else
4858
 
        echo EXPORTS > $output_objdir/$soname-def;
4859
 
        _lt_hint=1;
4860
 
        cat $export_symbols | while read symbol; do
4861
 
         set dummy \$symbol;
4862
 
         case \$# in
4863
 
           2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
4864
 
           *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
4865
 
         esac;
4866
 
         _lt_hint=`expr 1 + \$_lt_hint`;
4867
 
        done;
4868
 
      fi~
4869
 
      '"$ltdll_cmds"'
4870
 
      $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~
4871
 
      $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~
4872
 
      $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~
4873
 
      $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~
4874
 
      $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
4875
 
    ;;
4876
 
 
4877
 
  netbsd*)
4878
 
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4879
 
      archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
4880
 
      wlarc=
4881
 
    else
4882
 
      archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4883
 
      archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4884
 
    fi
4885
 
    ;;
4886
 
 
4887
 
  solaris* | sysv5*)
4888
 
    if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
4889
 
      ld_shlibs=no
4890
 
      cat <<EOF 1>&2
4891
 
 
4892
 
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
4893
 
*** create shared libraries on Solaris systems.  Therefore, libtool
4894
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
4895
 
*** binutils to release 2.9.1 or newer.  Another option is to modify
4896
 
*** your PATH or compiler configuration so that the native linker is
4897
 
*** used, and then restart.
4898
 
 
4899
 
EOF
4900
 
    elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4901
 
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4902
 
      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4903
 
    else
4904
 
      ld_shlibs=no
4905
 
    fi
4906
 
    ;;
4907
 
 
4908
 
  sunos4*)
4909
 
    archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4910
 
    wlarc=
4911
 
    hardcode_direct=yes
4912
 
    hardcode_shlibpath_var=no
4913
 
    ;;
4914
 
 
4915
 
  *)
4916
 
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4917
 
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4918
 
      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4919
 
    else
4920
 
      ld_shlibs=no
4921
 
    fi
4922
6109
    ;;
4923
6110
  esac
4924
6111
 
4925
 
  if test "$ld_shlibs" = yes; then
 
6112
  ld_shlibs=yes
 
6113
  if test "$with_gnu_ld" = yes; then
 
6114
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
6115
    wlarc='${wl}'
 
6116
 
 
6117
    # Set some defaults for GNU ld with shared library support. These
 
6118
    # are reset later if shared libraries are not supported. Putting them
 
6119
    # here allows them to be overridden if necessary.
4926
6120
    runpath_var=LD_RUN_PATH
4927
6121
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
4928
6122
    export_dynamic_flag_spec='${wl}--export-dynamic'
 
6123
    # ancient GNU ld didn't support --whole-archive et. al.
 
6124
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
6125
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
6126
      else
 
6127
        whole_archive_flag_spec=
 
6128
    fi
 
6129
    supports_anon_versioning=no
 
6130
    case `$LD -v 2>/dev/null` in
 
6131
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
6132
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
6133
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
6134
      *\ 2.11.*) ;; # other 2.11 versions
 
6135
      *) supports_anon_versioning=yes ;;
 
6136
    esac
 
6137
 
 
6138
    # See if GNU ld supports shared libraries.
4929
6139
    case $host_os in
 
6140
    aix3* | aix4* | aix5*)
 
6141
      # On AIX/PPC, the GNU linker is very broken
 
6142
      if test "$host_cpu" != ia64; then
 
6143
        ld_shlibs=no
 
6144
        cat <<EOF 1>&2
 
6145
 
 
6146
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
6147
*** to be unable to reliably create shared libraries on AIX.
 
6148
*** Therefore, libtool is disabling shared libraries support.  If you
 
6149
*** really care for shared libraries, you may want to modify your PATH
 
6150
*** so that a non-GNU linker is found, and then restart.
 
6151
 
 
6152
EOF
 
6153
      fi
 
6154
      ;;
 
6155
 
 
6156
    amigaos*)
 
6157
      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)'
 
6158
      hardcode_libdir_flag_spec='-L$libdir'
 
6159
      hardcode_minus_L=yes
 
6160
 
 
6161
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
6162
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
6163
      # to version 4, is to share data among multiple programs linked
 
6164
      # with the same dynamic library.  Since this doesn't match the
 
6165
      # behavior of shared libraries on other platforms, we can't use
 
6166
      # them.
 
6167
      ld_shlibs=no
 
6168
      ;;
 
6169
 
 
6170
    beos*)
 
6171
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
6172
        allow_undefined_flag=unsupported
 
6173
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
6174
        # support --undefined.  This deserves some investigation.  FIXME
 
6175
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6176
      else
 
6177
        ld_shlibs=no
 
6178
      fi
 
6179
      ;;
 
6180
 
4930
6181
    cygwin* | mingw* | pw32*)
4931
 
      # dlltool doesn't understand --whole-archive et. al.
 
6182
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
6183
      # as there is no search path for DLLs.
 
6184
      hardcode_libdir_flag_spec='-L$libdir'
 
6185
      allow_undefined_flag=unsupported
 
6186
      always_export_symbols=no
 
6187
      enable_shared_with_static_runtimes=yes
 
6188
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
6189
 
 
6190
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
6191
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
6192
        # If the export-symbols file already is a .def file (1st line
 
6193
        # is EXPORTS), use it as is; otherwise, prepend...
 
6194
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
6195
          cp $export_symbols $output_objdir/$soname.def;
 
6196
        else
 
6197
          echo EXPORTS > $output_objdir/$soname.def;
 
6198
          cat $export_symbols >> $output_objdir/$soname.def;
 
6199
        fi~
 
6200
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
6201
      else
 
6202
        ld_shlibs=no
 
6203
      fi
 
6204
      ;;
 
6205
 
 
6206
    linux*)
 
6207
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
6208
        tmp_addflag=
 
6209
        case $cc_basename,$host_cpu in
 
6210
        pgcc*)                          # Portland Group C compiler
 
6211
          whole_archive_flag_spec='${wl}--whole-archive,`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
6212
          tmp_addflag=' $pic_flag'
 
6213
          ;;
 
6214
        pgf77* | pgf90* )                       # Portland Group f77 and f90 compilers
 
6215
          whole_archive_flag_spec='${wl}--whole-archive,`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
6216
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
6217
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
6218
          tmp_addflag=' -i_dynamic' ;;
 
6219
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
6220
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
6221
        ifc* | ifort*)                  # Intel Fortran compiler
 
6222
          tmp_addflag=' -nofor_main' ;;
 
6223
        esac
 
6224
        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6225
 
 
6226
        if test $supports_anon_versioning = yes; then
 
6227
          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
 
6228
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
6229
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
6230
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
6231
        fi
 
6232
      else
 
6233
        ld_shlibs=no
 
6234
      fi
 
6235
      ;;
 
6236
 
 
6237
    netbsd*)
 
6238
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
6239
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
6240
        wlarc=
 
6241
      else
 
6242
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6243
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
6244
      fi
 
6245
      ;;
 
6246
 
 
6247
    solaris* | sysv5*)
 
6248
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
6249
        ld_shlibs=no
 
6250
        cat <<EOF 1>&2
 
6251
 
 
6252
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
6253
*** create shared libraries on Solaris systems.  Therefore, libtool
 
6254
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
6255
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
6256
*** your PATH or compiler configuration so that the native linker is
 
6257
*** used, and then restart.
 
6258
 
 
6259
EOF
 
6260
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
6261
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6262
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
6263
      else
 
6264
        ld_shlibs=no
 
6265
      fi
 
6266
      ;;
 
6267
 
 
6268
    sunos4*)
 
6269
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
6270
      wlarc=
 
6271
      hardcode_direct=yes
 
6272
      hardcode_shlibpath_var=no
 
6273
      ;;
 
6274
 
 
6275
    *)
 
6276
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
6277
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6278
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
6279
      else
 
6280
        ld_shlibs=no
 
6281
      fi
 
6282
      ;;
 
6283
    esac
 
6284
 
 
6285
    if test "$ld_shlibs" = no; then
 
6286
      runpath_var=
 
6287
      hardcode_libdir_flag_spec=
 
6288
      export_dynamic_flag_spec=
4932
6289
      whole_archive_flag_spec=
4933
 
      ;;
4934
 
    *)
4935
 
      # ancient GNU ld didn't support --whole-archive et. al.
4936
 
      if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
4937
 
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4938
 
      else
4939
 
        whole_archive_flag_spec=
4940
 
      fi
4941
 
      ;;
4942
 
    esac
4943
 
  fi
4944
 
else
4945
 
  # PORTME fill in a description of your system's linker (not GNU ld)
4946
 
  case $host_os in
4947
 
  aix3*)
4948
 
    allow_undefined_flag=unsupported
4949
 
    always_export_symbols=yes
4950
 
    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'
4951
 
    # Note: this linker hardcodes the directories in LIBPATH if there
4952
 
    # are no directories specified by -L.
4953
 
    hardcode_minus_L=yes
4954
 
    if test "$GCC" = yes && test -z "$link_static_flag"; then
4955
 
      # Neither direct hardcoding nor static linking is supported with a
4956
 
      # broken collect2.
4957
 
      hardcode_direct=unsupported
4958
6290
    fi
4959
 
    ;;
4960
 
 
4961
 
  aix4* | aix5*)
4962
 
    if test "$host_cpu" = ia64; then
4963
 
      # On IA64, the linker does run time linking by default, so we don't
4964
 
      # have to do anything special.
4965
 
      aix_use_runtimelinking=no
4966
 
      exp_sym_flag='-Bexport'
4967
 
      no_entry_flag=""
 
6291
  else
 
6292
    # PORTME fill in a description of your system's linker (not GNU ld)
 
6293
    case $host_os in
 
6294
    aix3*)
 
6295
      allow_undefined_flag=unsupported
 
6296
      always_export_symbols=yes
 
6297
      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'
 
6298
      # Note: this linker hardcodes the directories in LIBPATH if there
 
6299
      # are no directories specified by -L.
 
6300
      hardcode_minus_L=yes
 
6301
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
6302
        # Neither direct hardcoding nor static linking is supported with a
 
6303
        # broken collect2.
 
6304
        hardcode_direct=unsupported
 
6305
      fi
 
6306
      ;;
 
6307
 
 
6308
    aix4* | aix5*)
 
6309
      if test "$host_cpu" = ia64; then
 
6310
        # On IA64, the linker does run time linking by default, so we don't
 
6311
        # have to do anything special.
 
6312
        aix_use_runtimelinking=no
 
6313
        exp_sym_flag='-Bexport'
 
6314
        no_entry_flag=""
 
6315
      else
 
6316
        # If we're using GNU nm, then we don't want the "-C" option.
 
6317
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
6318
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
6319
          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'
 
6320
        else
 
6321
          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'
 
6322
        fi
 
6323
        aix_use_runtimelinking=no
 
6324
 
 
6325
        # Test if we are trying to use run time linking or normal
 
6326
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
6327
        # need to do runtime linking.
 
6328
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
6329
          for ld_flag in $LDFLAGS; do
 
6330
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
6331
            aix_use_runtimelinking=yes
 
6332
            break
 
6333
          fi
 
6334
          done
 
6335
        esac
 
6336
 
 
6337
        exp_sym_flag='-bexport'
 
6338
        no_entry_flag='-bnoentry'
 
6339
      fi
 
6340
 
 
6341
      # When large executables or shared objects are built, AIX ld can
 
6342
      # have problems creating the table of contents.  If linking a library
 
6343
      # or program results in "error TOC overflow" add -mminimal-toc to
 
6344
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
6345
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
6346
 
 
6347
      archive_cmds=''
 
6348
      hardcode_direct=yes
 
6349
      hardcode_libdir_separator=':'
 
6350
      link_all_deplibs=yes
 
6351
 
 
6352
      if test "$GCC" = yes; then
 
6353
        case $host_os in aix4.[012]|aix4.[012].*)
 
6354
        # We only want to do this on AIX 4.2 and lower, the check
 
6355
        # below for broken collect2 doesn't work under 4.3+
 
6356
          collect2name=`${CC} -print-prog-name=collect2`
 
6357
          if test -f "$collect2name" && \
 
6358
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
6359
          then
 
6360
          # We have reworked collect2
 
6361
          hardcode_direct=yes
 
6362
          else
 
6363
          # We have old collect2
 
6364
          hardcode_direct=unsupported
 
6365
          # It fails to find uninstalled libraries when the uninstalled
 
6366
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
6367
          # to unsupported forces relinking
 
6368
          hardcode_minus_L=yes
 
6369
          hardcode_libdir_flag_spec='-L$libdir'
 
6370
          hardcode_libdir_separator=
 
6371
          fi
 
6372
        esac
 
6373
        shared_flag='-shared'
 
6374
        if test "$aix_use_runtimelinking" = yes; then
 
6375
          shared_flag="$shared_flag "'${wl}-G'
 
6376
        fi
 
6377
      else
 
6378
        # not using gcc
 
6379
        if test "$host_cpu" = ia64; then
 
6380
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
6381
        # chokes on -Wl,-G. The following line is correct:
 
6382
          shared_flag='-G'
 
6383
        else
 
6384
        if test "$aix_use_runtimelinking" = yes; then
 
6385
            shared_flag='${wl}-G'
 
6386
          else
 
6387
            shared_flag='${wl}-bM:SRE'
 
6388
        fi
 
6389
        fi
 
6390
      fi
 
6391
 
 
6392
      # It seems that -bexpall does not export symbols beginning with
 
6393
      # underscore (_), so it is better to generate a list of symbols to export.
 
6394
      always_export_symbols=yes
 
6395
      if test "$aix_use_runtimelinking" = yes; then
 
6396
        # Warning - without using the other runtime loading flags (-brtl),
 
6397
        # -berok will link without error, but may produce a broken library.
 
6398
        allow_undefined_flag='-berok'
 
6399
       # Determine the default libpath from the value encoded in an empty executable.
 
6400
       cat >conftest.$ac_ext <<_ACEOF
 
6401
/* confdefs.h.  */
 
6402
_ACEOF
 
6403
cat confdefs.h >>conftest.$ac_ext
 
6404
cat >>conftest.$ac_ext <<_ACEOF
 
6405
/* end confdefs.h.  */
 
6406
 
 
6407
int
 
6408
main ()
 
6409
{
 
6410
 
 
6411
  ;
 
6412
  return 0;
 
6413
}
 
6414
_ACEOF
 
6415
rm -f conftest.$ac_objext conftest$ac_exeext
 
6416
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6417
  (eval $ac_link) 2>conftest.er1
 
6418
  ac_status=$?
 
6419
  grep -v '^ *+' conftest.er1 >conftest.err
 
6420
  rm -f conftest.er1
 
6421
  cat conftest.err >&5
 
6422
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6423
  (exit $ac_status); } &&
 
6424
         { ac_try='test -z "$ac_c_werror_flag"
 
6425
                         || test ! -s conftest.err'
 
6426
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6427
  (eval $ac_try) 2>&5
 
6428
  ac_status=$?
 
6429
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6430
  (exit $ac_status); }; } &&
 
6431
         { ac_try='test -s conftest$ac_exeext'
 
6432
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6433
  (eval $ac_try) 2>&5
 
6434
  ac_status=$?
 
6435
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6436
  (exit $ac_status); }; }; then
 
6437
 
 
6438
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
6439
}'`
 
6440
# Check for a 64-bit object if we didn't find anything.
 
6441
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; }
 
6442
}'`; fi
 
6443
else
 
6444
  echo "$as_me: failed program was:" >&5
 
6445
sed 's/^/| /' conftest.$ac_ext >&5
 
6446
 
 
6447
fi
 
6448
rm -f conftest.err conftest.$ac_objext \
 
6449
      conftest$ac_exeext conftest.$ac_ext
 
6450
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
6451
 
 
6452
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
6453
        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"
 
6454
       else
 
6455
        if test "$host_cpu" = ia64; then
 
6456
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
6457
          allow_undefined_flag="-z nodefs"
 
6458
          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"
 
6459
        else
 
6460
         # Determine the default libpath from the value encoded in an empty executable.
 
6461
         cat >conftest.$ac_ext <<_ACEOF
 
6462
/* confdefs.h.  */
 
6463
_ACEOF
 
6464
cat confdefs.h >>conftest.$ac_ext
 
6465
cat >>conftest.$ac_ext <<_ACEOF
 
6466
/* end confdefs.h.  */
 
6467
 
 
6468
int
 
6469
main ()
 
6470
{
 
6471
 
 
6472
  ;
 
6473
  return 0;
 
6474
}
 
6475
_ACEOF
 
6476
rm -f conftest.$ac_objext conftest$ac_exeext
 
6477
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6478
  (eval $ac_link) 2>conftest.er1
 
6479
  ac_status=$?
 
6480
  grep -v '^ *+' conftest.er1 >conftest.err
 
6481
  rm -f conftest.er1
 
6482
  cat conftest.err >&5
 
6483
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6484
  (exit $ac_status); } &&
 
6485
         { ac_try='test -z "$ac_c_werror_flag"
 
6486
                         || test ! -s conftest.err'
 
6487
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6488
  (eval $ac_try) 2>&5
 
6489
  ac_status=$?
 
6490
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6491
  (exit $ac_status); }; } &&
 
6492
         { ac_try='test -s conftest$ac_exeext'
 
6493
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6494
  (eval $ac_try) 2>&5
 
6495
  ac_status=$?
 
6496
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6497
  (exit $ac_status); }; }; then
 
6498
 
 
6499
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
6500
}'`
 
6501
# Check for a 64-bit object if we didn't find anything.
 
6502
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; }
 
6503
}'`; fi
 
6504
else
 
6505
  echo "$as_me: failed program was:" >&5
 
6506
sed 's/^/| /' conftest.$ac_ext >&5
 
6507
 
 
6508
fi
 
6509
rm -f conftest.err conftest.$ac_objext \
 
6510
      conftest$ac_exeext conftest.$ac_ext
 
6511
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
6512
 
 
6513
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
6514
          # Warning - without using the other run time loading flags,
 
6515
          # -berok will link without error, but may produce a broken library.
 
6516
          no_undefined_flag=' ${wl}-bernotok'
 
6517
          allow_undefined_flag=' ${wl}-berok'
 
6518
          # -bexpall does not export symbols beginning with underscore (_)
 
6519
          always_export_symbols=yes
 
6520
          # Exported symbols can be pulled into shared objects from archives
 
6521
          whole_archive_flag_spec=' '
 
6522
          archive_cmds_need_lc=yes
 
6523
          # This is similar to how AIX traditionally builds it's shared libraries.
 
6524
          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'
 
6525
        fi
 
6526
      fi
 
6527
      ;;
 
6528
 
 
6529
    amigaos*)
 
6530
      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)'
 
6531
      hardcode_libdir_flag_spec='-L$libdir'
 
6532
      hardcode_minus_L=yes
 
6533
      # see comment about different semantics on the GNU ld section
 
6534
      ld_shlibs=no
 
6535
      ;;
 
6536
 
 
6537
    bsdi[45]*)
 
6538
      export_dynamic_flag_spec=-rdynamic
 
6539
      ;;
 
6540
 
 
6541
    cygwin* | mingw* | pw32*)
 
6542
      # When not using gcc, we currently assume that we are using
 
6543
      # Microsoft Visual C++.
 
6544
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
6545
      # no search path for DLLs.
 
6546
      hardcode_libdir_flag_spec=' '
 
6547
      allow_undefined_flag=unsupported
 
6548
      # Tell ltmain to make .lib files, not .a files.
 
6549
      libext=lib
 
6550
      # Tell ltmain to make .dll files, not .so files.
 
6551
      shrext_cmds=".dll"
 
6552
      # FIXME: Setting linknames here is a bad hack.
 
6553
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
6554
      # The linker will automatically build a .lib file if we build a DLL.
 
6555
      old_archive_From_new_cmds='true'
 
6556
      # FIXME: Should let the user specify the lib program.
 
6557
      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
6558
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
6559
      enable_shared_with_static_runtimes=yes
 
6560
      ;;
 
6561
 
 
6562
    darwin* | rhapsody*)
 
6563
      case "$host_os" in
 
6564
        rhapsody* | darwin1.[012])
 
6565
         allow_undefined_flag='${wl}-undefined ${wl}suppress'
 
6566
         ;;
 
6567
       *) # Darwin 1.3 on
 
6568
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
6569
           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
6570
         else
 
6571
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
6572
             10.[012])
 
6573
               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
6574
               ;;
 
6575
             10.*)
 
6576
               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
 
6577
               ;;
 
6578
           esac
 
6579
         fi
 
6580
         ;;
 
6581
      esac
 
6582
      archive_cmds_need_lc=no
 
6583
      hardcode_direct=no
 
6584
      hardcode_automatic=yes
 
6585
      hardcode_shlibpath_var=unsupported
 
6586
      whole_archive_flag_spec=''
 
6587
      link_all_deplibs=yes
 
6588
    if test "$GCC" = yes ; then
 
6589
        output_verbose_link_cmd='echo'
 
6590
        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
6591
      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
6592
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
6593
      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}'
 
6594
      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}'
4968
6595
    else
4969
 
      aix_use_runtimelinking=no
4970
 
 
4971
 
      # Test if we are trying to use run time linking or normal
4972
 
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
4973
 
      # need to do runtime linking.
4974
 
      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
4975
 
        for ld_flag in $LDFLAGS; do
4976
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
4977
 
            aix_use_runtimelinking=yes
4978
 
            break
4979
 
          fi
4980
 
        done
 
6596
      case $cc_basename in
 
6597
        xlc*)
 
6598
         output_verbose_link_cmd='echo'
 
6599
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
6600
         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
6601
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
6602
         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
6603
          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}'
 
6604
          ;;
 
6605
       *)
 
6606
         ld_shlibs=no
 
6607
          ;;
4981
6608
      esac
4982
 
 
4983
 
      exp_sym_flag='-bexport'
4984
 
      no_entry_flag='-bnoentry'
4985
6609
    fi
4986
 
 
4987
 
    # When large executables or shared objects are built, AIX ld can
4988
 
    # have problems creating the table of contents.  If linking a library
4989
 
    # or program results in "error TOC overflow" add -mminimal-toc to
4990
 
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
4991
 
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
4992
 
 
4993
 
    hardcode_direct=yes
4994
 
    archive_cmds=''
4995
 
    hardcode_libdir_separator=':'
4996
 
    if test "$GCC" = yes; then
4997
 
      case $host_os in aix4.[012]|aix4.[012].*)
4998
 
        collect2name=`${CC} -print-prog-name=collect2`
4999
 
        if test -f "$collect2name" && \
5000
 
          strings "$collect2name" | grep resolve_lib_name >/dev/null
5001
 
        then
5002
 
          # We have reworked collect2
 
6610
      ;;
 
6611
 
 
6612
    dgux*)
 
6613
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6614
      hardcode_libdir_flag_spec='-L$libdir'
 
6615
      hardcode_shlibpath_var=no
 
6616
      ;;
 
6617
 
 
6618
    freebsd1*)
 
6619
      ld_shlibs=no
 
6620
      ;;
 
6621
 
 
6622
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
6623
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
6624
    # does not break anything, and helps significantly (at the cost of a little
 
6625
    # extra space).
 
6626
    freebsd2.2*)
 
6627
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
6628
      hardcode_libdir_flag_spec='-R$libdir'
 
6629
      hardcode_direct=yes
 
6630
      hardcode_shlibpath_var=no
 
6631
      ;;
 
6632
 
 
6633
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
6634
    freebsd2*)
 
6635
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
6636
      hardcode_direct=yes
 
6637
      hardcode_minus_L=yes
 
6638
      hardcode_shlibpath_var=no
 
6639
      ;;
 
6640
 
 
6641
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
6642
    freebsd* | kfreebsd*-gnu | dragonfly*)
 
6643
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
6644
      hardcode_libdir_flag_spec='-R$libdir'
 
6645
      hardcode_direct=yes
 
6646
      hardcode_shlibpath_var=no
 
6647
      ;;
 
6648
 
 
6649
    hpux9*)
 
6650
      if test "$GCC" = yes; then
 
6651
        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'
 
6652
      else
 
6653
        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'
 
6654
      fi
 
6655
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
6656
      hardcode_libdir_separator=:
 
6657
      hardcode_direct=yes
 
6658
 
 
6659
      # hardcode_minus_L: Not really in the search PATH,
 
6660
      # but as the default location of the library.
 
6661
      hardcode_minus_L=yes
 
6662
      export_dynamic_flag_spec='${wl}-E'
 
6663
      ;;
 
6664
 
 
6665
    hpux10* | hpux11*)
 
6666
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
6667
        case "$host_cpu" in
 
6668
        hppa*64*|ia64*)
 
6669
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6670
          ;;
 
6671
        *)
 
6672
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
6673
          ;;
 
6674
        esac
 
6675
      else
 
6676
        case "$host_cpu" in
 
6677
        hppa*64*|ia64*)
 
6678
          archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6679
          ;;
 
6680
        *)
 
6681
          archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
6682
          ;;
 
6683
        esac
 
6684
      fi
 
6685
      if test "$with_gnu_ld" = no; then
 
6686
        case "$host_cpu" in
 
6687
        hppa*64*)
 
6688
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
6689
          hardcode_libdir_flag_spec_ld='+b $libdir'
 
6690
          hardcode_libdir_separator=:
 
6691
          hardcode_direct=no
 
6692
          hardcode_shlibpath_var=no
 
6693
          ;;
 
6694
        ia64*)
 
6695
          hardcode_libdir_flag_spec='-L$libdir'
 
6696
          hardcode_direct=no
 
6697
          hardcode_shlibpath_var=no
 
6698
 
 
6699
          # hardcode_minus_L: Not really in the search PATH,
 
6700
          # but as the default location of the library.
 
6701
          hardcode_minus_L=yes
 
6702
          ;;
 
6703
        *)
 
6704
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
6705
          hardcode_libdir_separator=:
5003
6706
          hardcode_direct=yes
5004
 
        else
5005
 
          # We have old collect2
5006
 
          hardcode_direct=unsupported
5007
 
          # It fails to find uninstalled libraries when the uninstalled
5008
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
5009
 
          # to unsupported forces relinking
 
6707
          export_dynamic_flag_spec='${wl}-E'
 
6708
 
 
6709
          # hardcode_minus_L: Not really in the search PATH,
 
6710
          # but as the default location of the library.
5010
6711
          hardcode_minus_L=yes
5011
 
          hardcode_libdir_flag_spec='-L$libdir'
5012
 
          hardcode_libdir_separator=
5013
 
        fi
5014
 
      esac
5015
 
 
5016
 
      shared_flag='-shared'
5017
 
    else
5018
 
      # not using gcc
5019
 
      if test "$host_cpu" = ia64; then
5020
 
        shared_flag='${wl}-G'
5021
 
      else
5022
 
        if test "$aix_use_runtimelinking" = yes; then
5023
 
          shared_flag='${wl}-G'
5024
 
        else
5025
 
          shared_flag='${wl}-bM:SRE'
5026
 
        fi
5027
 
      fi
5028
 
    fi
5029
 
 
5030
 
    # It seems that -bexpall can do strange things, so it is better to
5031
 
    # generate a list of symbols to export.
5032
 
    always_export_symbols=yes
5033
 
    if test "$aix_use_runtimelinking" = yes; then
5034
 
      # Warning - without using the other runtime loading flags (-brtl),
5035
 
      # -berok will link without error, but may produce a broken library.
5036
 
      allow_undefined_flag='-berok'
5037
 
      hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5038
 
      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"
5039
 
    else
5040
 
      if test "$host_cpu" = ia64; then
5041
 
        hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5042
 
        allow_undefined_flag="-z nodefs"
5043
 
        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"
5044
 
      else
5045
 
        hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5046
 
        # Warning - without using the other run time loading flags,
5047
 
        # -berok will link without error, but may produce a broken library.
5048
 
        allow_undefined_flag='${wl}-berok'
5049
 
        # This is a bit strange, but is similar to how AIX traditionally builds
5050
 
        # it's shared libraries.
5051
 
        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'
5052
 
      fi
5053
 
    fi
5054
 
    ;;
5055
 
 
5056
 
  amigaos*)
5057
 
    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)'
5058
 
    hardcode_libdir_flag_spec='-L$libdir'
5059
 
    hardcode_minus_L=yes
5060
 
    # see comment about different semantics on the GNU ld section
5061
 
    ld_shlibs=no
5062
 
    ;;
5063
 
 
5064
 
  cygwin* | mingw* | pw32*)
5065
 
    # When not using gcc, we currently assume that we are using
5066
 
    # Microsoft Visual C++.
5067
 
    # hardcode_libdir_flag_spec is actually meaningless, as there is
5068
 
    # no search path for DLLs.
5069
 
    hardcode_libdir_flag_spec=' '
5070
 
    allow_undefined_flag=unsupported
5071
 
    # Tell ltmain to make .lib files, not .a files.
5072
 
    libext=lib
5073
 
    # FIXME: Setting linknames here is a bad hack.
5074
 
    archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5075
 
    # The linker will automatically build a .lib file if we build a DLL.
5076
 
    old_archive_from_new_cmds='true'
5077
 
    # FIXME: Should let the user specify the lib program.
5078
 
    old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5079
 
    fix_srcfile_path='`cygpath -w "$srcfile"`'
5080
 
    ;;
5081
 
 
5082
 
  darwin* | rhapsody*)
5083
 
    case "$host_os" in
5084
 
    rhapsody* | darwin1.[012])
5085
 
      allow_undefined_flag='-undefined suppress'
5086
 
      ;;
5087
 
    *) # Darwin 1.3 on
5088
 
      allow_undefined_flag='-flat_namespace -undefined suppress'
5089
 
      ;;
5090
 
    esac
5091
 
    # FIXME: Relying on posixy $() will cause problems for
5092
 
    #        cross-compilation, but unfortunately the echo tests do not
5093
 
    #        yet detect zsh echo's removal of \ escapes.
5094
 
    archive_cmds='$nonopt $(test "x$module" = xyes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
5095
 
    # We need to add '_' to the symbols in $export_symbols first
5096
 
    #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5097
 
    hardcode_direct=yes
5098
 
    hardcode_shlibpath_var=no
5099
 
    whole_archive_flag_spec='-all_load $convenience'
5100
 
    ;;
5101
 
 
5102
 
  freebsd1*)
5103
 
    ld_shlibs=no
5104
 
    ;;
5105
 
 
5106
 
  # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5107
 
  # support.  Future versions do this automatically, but an explicit c++rt0.o
5108
 
  # does not break anything, and helps significantly (at the cost of a little
5109
 
  # extra space).
5110
 
  freebsd2.2*)
5111
 
    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5112
 
    hardcode_libdir_flag_spec='-R$libdir'
5113
 
    hardcode_direct=yes
5114
 
    hardcode_shlibpath_var=no
5115
 
    ;;
5116
 
 
5117
 
  # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5118
 
  freebsd2*)
5119
 
    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5120
 
    hardcode_direct=yes
5121
 
    hardcode_minus_L=yes
5122
 
    hardcode_shlibpath_var=no
5123
 
    ;;
5124
 
 
5125
 
  # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5126
 
  freebsd*)
5127
 
    archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5128
 
    hardcode_libdir_flag_spec='-R$libdir'
5129
 
    hardcode_direct=yes
5130
 
    hardcode_shlibpath_var=no
5131
 
    ;;
5132
 
 
5133
 
  hpux9* | hpux10* | hpux11*)
5134
 
    case $host_os in
5135
 
    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' ;;
5136
 
    *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5137
 
    esac
5138
 
    hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5139
 
    hardcode_libdir_separator=:
5140
 
    hardcode_direct=yes
5141
 
    hardcode_minus_L=yes # Not in the search PATH, but as the default
5142
 
                         # location of the library.
5143
 
    export_dynamic_flag_spec='${wl}-E'
5144
 
    ;;
5145
 
 
5146
 
  irix5* | irix6*)
5147
 
    if test "$GCC" = yes; then
5148
 
      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'
5149
 
    else
5150
 
      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'
5151
 
    fi
5152
 
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5153
 
    hardcode_libdir_separator=:
5154
 
    link_all_deplibs=yes
5155
 
    ;;
5156
 
 
5157
 
  netbsd*)
5158
 
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5159
 
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
5160
 
    else
5161
 
      archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
5162
 
    fi
5163
 
    hardcode_libdir_flag_spec='-R$libdir'
5164
 
    hardcode_direct=yes
5165
 
    hardcode_shlibpath_var=no
5166
 
    ;;
5167
 
 
5168
 
  newsos6)
5169
 
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5170
 
    hardcode_direct=yes
5171
 
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5172
 
    hardcode_libdir_separator=:
5173
 
    hardcode_shlibpath_var=no
5174
 
    ;;
5175
 
 
5176
 
  openbsd*)
5177
 
    hardcode_direct=yes
5178
 
    hardcode_shlibpath_var=no
5179
 
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5180
 
      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5181
 
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5182
 
      export_dynamic_flag_spec='${wl}-E'
5183
 
    else
5184
 
      case "$host_os" in
5185
 
      openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5186
 
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5187
 
        hardcode_libdir_flag_spec='-R$libdir'
5188
 
        ;;
 
6712
          ;;
 
6713
        esac
 
6714
      fi
 
6715
      ;;
 
6716
 
 
6717
    irix5* | irix6* | nonstopux*)
 
6718
      if test "$GCC" = yes; then
 
6719
        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'
 
6720
      else
 
6721
        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'
 
6722
        hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
6723
      fi
 
6724
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
6725
      hardcode_libdir_separator=:
 
6726
      link_all_deplibs=yes
 
6727
      ;;
 
6728
 
 
6729
    netbsd*)
 
6730
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
6731
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
6732
      else
 
6733
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
6734
      fi
 
6735
      hardcode_libdir_flag_spec='-R$libdir'
 
6736
      hardcode_direct=yes
 
6737
      hardcode_shlibpath_var=no
 
6738
      ;;
 
6739
 
 
6740
    newsos6)
 
6741
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6742
      hardcode_direct=yes
 
6743
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
6744
      hardcode_libdir_separator=:
 
6745
      hardcode_shlibpath_var=no
 
6746
      ;;
 
6747
 
 
6748
    openbsd*)
 
6749
      hardcode_direct=yes
 
6750
      hardcode_shlibpath_var=no
 
6751
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
6752
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
6753
        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
6754
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
6755
        export_dynamic_flag_spec='${wl}-E'
 
6756
      else
 
6757
       case $host_os in
 
6758
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
6759
           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
6760
           hardcode_libdir_flag_spec='-R$libdir'
 
6761
           ;;
 
6762
         *)
 
6763
           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
6764
           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
6765
           ;;
 
6766
       esac
 
6767
      fi
 
6768
      ;;
 
6769
 
 
6770
    os2*)
 
6771
      hardcode_libdir_flag_spec='-L$libdir'
 
6772
      hardcode_minus_L=yes
 
6773
      allow_undefined_flag=unsupported
 
6774
      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'
 
6775
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
6776
      ;;
 
6777
 
 
6778
    osf3*)
 
6779
      if test "$GCC" = yes; then
 
6780
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
6781
        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'
 
6782
      else
 
6783
        allow_undefined_flag=' -expect_unresolved \*'
 
6784
        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'
 
6785
      fi
 
6786
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
6787
      hardcode_libdir_separator=:
 
6788
      ;;
 
6789
 
 
6790
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
6791
      if test "$GCC" = yes; then
 
6792
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
6793
        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'
 
6794
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
6795
      else
 
6796
        allow_undefined_flag=' -expect_unresolved \*'
 
6797
        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'
 
6798
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
6799
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
 
6800
 
 
6801
        # Both c and cxx compiler support -rpath directly
 
6802
        hardcode_libdir_flag_spec='-rpath $libdir'
 
6803
      fi
 
6804
      hardcode_libdir_separator=:
 
6805
      ;;
 
6806
 
 
6807
    sco3.2v5*)
 
6808
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6809
      hardcode_shlibpath_var=no
 
6810
      export_dynamic_flag_spec='${wl}-Bexport'
 
6811
      runpath_var=LD_RUN_PATH
 
6812
      hardcode_runpath_var=yes
 
6813
      ;;
 
6814
 
 
6815
    solaris*)
 
6816
      no_undefined_flag=' -z text'
 
6817
      if test "$GCC" = yes; then
 
6818
        wlarc='${wl}'
 
6819
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6820
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
6821
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
6822
      else
 
6823
        wlarc=''
 
6824
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6825
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
6826
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
6827
      fi
 
6828
      hardcode_libdir_flag_spec='-R$libdir'
 
6829
      hardcode_shlibpath_var=no
 
6830
      case $host_os in
 
6831
      solaris2.[0-5] | solaris2.[0-5].*) ;;
5189
6832
      *)
5190
 
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5191
 
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
6833
        # The compiler driver will combine linker options so we
 
6834
        # cannot just pass the convience library names through
 
6835
        # without $wl, iff we do not link with $LD.
 
6836
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
6837
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
6838
        case $wlarc in
 
6839
        '')
 
6840
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
 
6841
        *)
 
6842
          whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
 
6843
        esac ;;
 
6844
      esac
 
6845
      link_all_deplibs=yes
 
6846
      ;;
 
6847
 
 
6848
    sunos4*)
 
6849
      if test "x$host_vendor" = xsequent; then
 
6850
        # Use $CC to link under sequent, because it throws in some extra .o
 
6851
        # files that make .init and .fini sections work.
 
6852
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
6853
      else
 
6854
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
6855
      fi
 
6856
      hardcode_libdir_flag_spec='-L$libdir'
 
6857
      hardcode_direct=yes
 
6858
      hardcode_minus_L=yes
 
6859
      hardcode_shlibpath_var=no
 
6860
      ;;
 
6861
 
 
6862
    sysv4)
 
6863
      case $host_vendor in
 
6864
        sni)
 
6865
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6866
          hardcode_direct=yes # is this really true???
 
6867
        ;;
 
6868
        siemens)
 
6869
          ## LD is ld it makes a PLAMLIB
 
6870
          ## CC just makes a GrossModule.
 
6871
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
6872
          reload_cmds='$CC -r -o $output$reload_objs'
 
6873
          hardcode_direct=no
5192
6874
        ;;
5193
 
      esac
5194
 
    fi
5195
 
    ;;
5196
 
 
5197
 
  os2*)
5198
 
    hardcode_libdir_flag_spec='-L$libdir'
5199
 
    hardcode_minus_L=yes
5200
 
    allow_undefined_flag=unsupported
5201
 
    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'
5202
 
    old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5203
 
    ;;
5204
 
 
5205
 
  osf3*)
5206
 
    if test "$GCC" = yes; then
5207
 
      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5208
 
      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'
5209
 
    else
5210
 
      allow_undefined_flag=' -expect_unresolved \*'
5211
 
      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'
5212
 
    fi
5213
 
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5214
 
    hardcode_libdir_separator=:
5215
 
    ;;
5216
 
 
5217
 
  osf4* | osf5*)        # as osf3* with the addition of -msym flag
5218
 
    if test "$GCC" = yes; then
5219
 
      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5220
 
      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'
5221
 
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5222
 
    else
5223
 
      allow_undefined_flag=' -expect_unresolved \*'
5224
 
      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'
5225
 
      archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5226
 
      $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'
5227
 
 
5228
 
      #Both c and cxx compiler support -rpath directly
5229
 
      hardcode_libdir_flag_spec='-rpath $libdir'
5230
 
    fi
5231
 
    hardcode_libdir_separator=:
5232
 
    ;;
5233
 
 
5234
 
  sco3.2v5*)
5235
 
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5236
 
    hardcode_shlibpath_var=no
5237
 
    runpath_var=LD_RUN_PATH
5238
 
    hardcode_runpath_var=yes
5239
 
    export_dynamic_flag_spec='${wl}-Bexport'
5240
 
    ;;
5241
 
 
5242
 
  solaris*)
5243
 
    # gcc --version < 3.0 without binutils cannot create self contained
5244
 
    # shared libraries reliably, requiring libgcc.a to resolve some of
5245
 
    # the object symbols generated in some cases.  Libraries that use
5246
 
    # assert need libgcc.a to resolve __eprintf, for example.  Linking
5247
 
    # a copy of libgcc.a into every shared library to guarantee resolving
5248
 
    # such symbols causes other problems:  According to Tim Van Holder
5249
 
    # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
5250
 
    # (to the application) exception stack for one thing.
5251
 
    no_undefined_flag=' -z defs'
5252
 
    if test "$GCC" = yes; then
5253
 
      case `$CC --version 2>/dev/null` in
5254
 
      [12].*)
5255
 
        cat <<EOF 1>&2
5256
 
 
5257
 
*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
5258
 
*** create self contained shared libraries on Solaris systems, without
5259
 
*** introducing a dependency on libgcc.a.  Therefore, libtool is disabling
5260
 
*** -no-undefined support, which will at least allow you to build shared
5261
 
*** libraries.  However, you may find that when you link such libraries
5262
 
*** into an application without using GCC, you have to manually add
5263
 
*** \`gcc --print-libgcc-file-name\` to the link command.  We urge you to
5264
 
*** upgrade to a newer version of GCC.  Another option is to rebuild your
5265
 
*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
5266
 
 
5267
 
EOF
5268
 
        no_undefined_flag=
 
6875
        motorola)
 
6876
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6877
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5269
6878
        ;;
5270
6879
      esac
5271
 
    fi
5272
 
    # $CC -shared without GNU ld will not create a library from C++
5273
 
    # object files and a static libstdc++, better avoid it by now
5274
 
    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5275
 
    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5276
 
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5277
 
    hardcode_libdir_flag_spec='-R$libdir'
5278
 
    hardcode_shlibpath_var=no
5279
 
    case $host_os in
5280
 
    solaris2.[0-5] | solaris2.[0-5].*) ;;
5281
 
    *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5282
 
      whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
 
6880
      runpath_var='LD_RUN_PATH'
 
6881
      hardcode_shlibpath_var=no
 
6882
      ;;
 
6883
 
 
6884
    sysv4.3*)
 
6885
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6886
      hardcode_shlibpath_var=no
 
6887
      export_dynamic_flag_spec='-Bexport'
 
6888
      ;;
 
6889
 
 
6890
    sysv4*MP*)
 
6891
      if test -d /usr/nec; then
 
6892
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6893
        hardcode_shlibpath_var=no
 
6894
        runpath_var=LD_RUN_PATH
 
6895
        hardcode_runpath_var=yes
 
6896
        ld_shlibs=yes
 
6897
      fi
 
6898
      ;;
 
6899
 
 
6900
    sysv4.2uw2*)
 
6901
      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
6902
      hardcode_direct=yes
 
6903
      hardcode_minus_L=no
 
6904
      hardcode_shlibpath_var=no
 
6905
      hardcode_runpath_var=yes
 
6906
      runpath_var=LD_RUN_PATH
 
6907
      ;;
 
6908
 
 
6909
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
6910
      no_undefined_flag='${wl}-z ${wl}text'
 
6911
      if test "$GCC" = yes; then
 
6912
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6913
      else
 
6914
        archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6915
      fi
 
6916
      runpath_var='LD_RUN_PATH'
 
6917
      hardcode_shlibpath_var=no
 
6918
      ;;
 
6919
 
 
6920
    sysv5*)
 
6921
      no_undefined_flag=' -z text'
 
6922
      # $CC -shared without GNU ld will not create a library from C++
 
6923
      # object files and a static libstdc++, better avoid it by now
 
6924
      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6925
      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
6926
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
6927
      hardcode_libdir_flag_spec=
 
6928
      hardcode_shlibpath_var=no
 
6929
      runpath_var='LD_RUN_PATH'
 
6930
      ;;
 
6931
 
 
6932
    uts4*)
 
6933
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6934
      hardcode_libdir_flag_spec='-L$libdir'
 
6935
      hardcode_shlibpath_var=no
 
6936
      ;;
 
6937
 
 
6938
    *)
 
6939
      ld_shlibs=no
 
6940
      ;;
5283
6941
    esac
5284
 
    link_all_deplibs=yes
5285
 
    ;;
5286
 
 
5287
 
  sunos4*)
5288
 
    if test "x$host_vendor" = xsequent; then
5289
 
      # Use $CC to link under sequent, because it throws in some extra .o
5290
 
      # files that make .init and .fini sections work.
5291
 
      archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5292
 
    else
5293
 
      archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5294
 
    fi
5295
 
    hardcode_libdir_flag_spec='-L$libdir'
5296
 
    hardcode_direct=yes
5297
 
    hardcode_minus_L=yes
5298
 
    hardcode_shlibpath_var=no
5299
 
    ;;
5300
 
 
5301
 
  sysv4)
5302
 
    if test "x$host_vendor" = xsno; then
5303
 
      archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
5304
 
      hardcode_direct=yes # is this really true???
5305
 
    else
5306
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5307
 
      hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5308
 
    fi
5309
 
    runpath_var='LD_RUN_PATH'
5310
 
    hardcode_shlibpath_var=no
5311
 
    ;;
5312
 
 
5313
 
  sysv4.3*)
5314
 
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5315
 
    hardcode_shlibpath_var=no
5316
 
    export_dynamic_flag_spec='-Bexport'
5317
 
    ;;
5318
 
 
5319
 
  sysv5*)
5320
 
    no_undefined_flag=' -z text'
5321
 
    # $CC -shared without GNU ld will not create a library from C++
5322
 
    # object files and a static libstdc++, better avoid it by now
5323
 
    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5324
 
    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5325
 
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5326
 
    hardcode_libdir_flag_spec=
5327
 
    hardcode_shlibpath_var=no
5328
 
    runpath_var='LD_RUN_PATH'
5329
 
    ;;
5330
 
 
5331
 
  uts4*)
5332
 
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5333
 
    hardcode_libdir_flag_spec='-L$libdir'
5334
 
    hardcode_shlibpath_var=no
5335
 
    ;;
5336
 
 
5337
 
  dgux*)
5338
 
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5339
 
    hardcode_libdir_flag_spec='-L$libdir'
5340
 
    hardcode_shlibpath_var=no
5341
 
    ;;
5342
 
 
5343
 
  sysv4*MP*)
5344
 
    if test -d /usr/nec; then
5345
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5346
 
      hardcode_shlibpath_var=no
5347
 
      runpath_var=LD_RUN_PATH
5348
 
      hardcode_runpath_var=yes
5349
 
      ld_shlibs=yes
5350
 
    fi
5351
 
    ;;
5352
 
 
5353
 
  sysv4.2uw2*)
5354
 
    archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5355
 
    hardcode_direct=yes
5356
 
    hardcode_minus_L=no
5357
 
    hardcode_shlibpath_var=no
5358
 
    hardcode_runpath_var=yes
5359
 
    runpath_var=LD_RUN_PATH
5360
 
    ;;
5361
 
 
5362
 
  sysv5uw7* | unixware7*)
5363
 
    no_undefined_flag='${wl}-z ${wl}text'
5364
 
    if test "$GCC" = yes; then
5365
 
      archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5366
 
    else
5367
 
      archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5368
 
    fi
5369
 
    runpath_var='LD_RUN_PATH'
5370
 
    hardcode_shlibpath_var=no
5371
 
    ;;
5372
 
 
5373
 
  *)
5374
 
    ld_shlibs=no
5375
 
    ;;
5376
 
  esac
5377
 
fi
 
6942
  fi
 
6943
 
5378
6944
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
5379
6945
echo "${ECHO_T}$ld_shlibs" >&6
5380
6946
test "$ld_shlibs" = no && can_build_shared=no
5381
6947
 
5382
 
# Check hardcoding attributes.
 
6948
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
6949
if test "$GCC" = yes; then
 
6950
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
6951
fi
 
6952
 
 
6953
#
 
6954
# Do we need to explicitly link libc?
 
6955
#
 
6956
case "x$archive_cmds_need_lc" in
 
6957
x|xyes)
 
6958
  # Assume -lc should be added
 
6959
  archive_cmds_need_lc=yes
 
6960
 
 
6961
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
6962
    case $archive_cmds in
 
6963
    *'~'*)
 
6964
      # FIXME: we may have to deal with multi-command sequences.
 
6965
      ;;
 
6966
    '$CC '*)
 
6967
      # Test whether the compiler implicitly links with -lc since on some
 
6968
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
6969
      # to ld, don't add -lc before -lgcc.
 
6970
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
6971
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
6972
      $rm conftest*
 
6973
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
6974
 
 
6975
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6976
  (eval $ac_compile) 2>&5
 
6977
  ac_status=$?
 
6978
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6979
  (exit $ac_status); } 2>conftest.err; then
 
6980
        soname=conftest
 
6981
        lib=conftest
 
6982
        libobjs=conftest.$ac_objext
 
6983
        deplibs=
 
6984
        wl=$lt_prog_compiler_wl
 
6985
        compiler_flags=-v
 
6986
        linker_flags=-v
 
6987
        verstring=
 
6988
        output_objdir=.
 
6989
        libname=conftest
 
6990
        lt_save_allow_undefined_flag=$allow_undefined_flag
 
6991
        allow_undefined_flag=
 
6992
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
6993
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
6994
  ac_status=$?
 
6995
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6996
  (exit $ac_status); }
 
6997
        then
 
6998
          archive_cmds_need_lc=no
 
6999
        else
 
7000
          archive_cmds_need_lc=yes
 
7001
        fi
 
7002
        allow_undefined_flag=$lt_save_allow_undefined_flag
 
7003
      else
 
7004
        cat conftest.err 1>&5
 
7005
      fi
 
7006
      $rm conftest*
 
7007
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
 
7008
echo "${ECHO_T}$archive_cmds_need_lc" >&6
 
7009
      ;;
 
7010
    esac
 
7011
  fi
 
7012
  ;;
 
7013
esac
 
7014
 
 
7015
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
7016
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
7017
library_names_spec=
 
7018
libname_spec='lib$name'
 
7019
soname_spec=
 
7020
shrext_cmds=".so"
 
7021
postinstall_cmds=
 
7022
postuninstall_cmds=
 
7023
finish_cmds=
 
7024
finish_eval=
 
7025
shlibpath_var=
 
7026
shlibpath_overrides_runpath=unknown
 
7027
version_type=none
 
7028
dynamic_linker="$host_os ld.so"
 
7029
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
7030
if test "$GCC" = yes; then
 
7031
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
7032
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
7033
    # if the path contains ";" then we assume it to be the separator
 
7034
    # otherwise default to the standard path separator (i.e. ":") - it is
 
7035
    # assumed that no part of a normal pathname contains ";" but that should
 
7036
    # okay in the real world where ";" in dirpaths is itself problematic.
 
7037
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
7038
  else
 
7039
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
7040
  fi
 
7041
else
 
7042
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
7043
fi
 
7044
need_lib_prefix=unknown
 
7045
hardcode_into_libs=no
 
7046
 
 
7047
# when you set need_version to no, make sure it does not cause -set_version
 
7048
# flags to be left without arguments
 
7049
need_version=unknown
 
7050
 
 
7051
case $host_os in
 
7052
aix3*)
 
7053
  version_type=linux
 
7054
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
7055
  shlibpath_var=LIBPATH
 
7056
 
 
7057
  # AIX 3 has no versioning support, so we append a major version to the name.
 
7058
  soname_spec='${libname}${release}${shared_ext}$major'
 
7059
  ;;
 
7060
 
 
7061
aix4* | aix5*)
 
7062
  version_type=linux
 
7063
  need_lib_prefix=no
 
7064
  need_version=no
 
7065
  hardcode_into_libs=yes
 
7066
  if test "$host_cpu" = ia64; then
 
7067
    # AIX 5 supports IA64
 
7068
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
7069
    shlibpath_var=LD_LIBRARY_PATH
 
7070
  else
 
7071
    # With GCC up to 2.95.x, collect2 would create an import file
 
7072
    # for dependence libraries.  The import file would start with
 
7073
    # the line `#! .'.  This would cause the generated library to
 
7074
    # depend on `.', always an invalid library.  This was fixed in
 
7075
    # development snapshots of GCC prior to 3.0.
 
7076
    case $host_os in
 
7077
      aix4 | aix4.[01] | aix4.[01].*)
 
7078
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
7079
           echo ' yes '
 
7080
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
7081
        :
 
7082
      else
 
7083
        can_build_shared=no
 
7084
      fi
 
7085
      ;;
 
7086
    esac
 
7087
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
7088
    # soname into executable. Probably we can add versioning support to
 
7089
    # collect2, so additional links can be useful in future.
 
7090
    if test "$aix_use_runtimelinking" = yes; then
 
7091
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
7092
      # instead of lib<name>.a to let people know that these are not
 
7093
      # typical AIX shared libraries.
 
7094
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7095
    else
 
7096
      # We preserve .a as extension for shared libraries through AIX4.2
 
7097
      # and later when we are not doing run time linking.
 
7098
      library_names_spec='${libname}${release}.a $libname.a'
 
7099
      soname_spec='${libname}${release}${shared_ext}$major'
 
7100
    fi
 
7101
    shlibpath_var=LIBPATH
 
7102
  fi
 
7103
  ;;
 
7104
 
 
7105
amigaos*)
 
7106
  library_names_spec='$libname.ixlibrary $libname.a'
 
7107
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
7108
  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'
 
7109
  ;;
 
7110
 
 
7111
beos*)
 
7112
  library_names_spec='${libname}${shared_ext}'
 
7113
  dynamic_linker="$host_os ld.so"
 
7114
  shlibpath_var=LIBRARY_PATH
 
7115
  ;;
 
7116
 
 
7117
bsdi[45]*)
 
7118
  version_type=linux
 
7119
  need_version=no
 
7120
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7121
  soname_spec='${libname}${release}${shared_ext}$major'
 
7122
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
7123
  shlibpath_var=LD_LIBRARY_PATH
 
7124
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
7125
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
7126
  # the default ld.so.conf also contains /usr/contrib/lib and
 
7127
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
7128
  # libtool to hard-code these into programs
 
7129
  ;;
 
7130
 
 
7131
cygwin* | mingw* | pw32*)
 
7132
  version_type=windows
 
7133
  shrext_cmds=".dll"
 
7134
  need_version=no
 
7135
  need_lib_prefix=no
 
7136
 
 
7137
  case $GCC,$host_os in
 
7138
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
7139
    library_names_spec='$libname.dll.a'
 
7140
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
7141
    postinstall_cmds='base_file=`basename \${file}`~
 
7142
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
7143
      dldir=$destdir/`dirname \$dlpath`~
 
7144
      test -d \$dldir || mkdir -p \$dldir~
 
7145
      $install_prog $dir/$dlname \$dldir/$dlname'
 
7146
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
7147
      dlpath=$dir/\$dldll~
 
7148
       $rm \$dlpath'
 
7149
    shlibpath_overrides_runpath=yes
 
7150
 
 
7151
    case $host_os in
 
7152
    cygwin*)
 
7153
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
7154
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
7155
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
7156
      ;;
 
7157
    mingw*)
 
7158
      # MinGW DLLs use traditional 'lib' prefix
 
7159
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
7160
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
7161
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
7162
        # It is most probably a Windows format PATH printed by
 
7163
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
7164
        # path with ; separators, and with drive letters. We can handle the
 
7165
        # drive letters (cygwin fileutils understands them), so leave them,
 
7166
        # especially as we might pass files found there to a mingw objdump,
 
7167
        # which wouldn't understand a cygwinified path. Ahh.
 
7168
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
7169
      else
 
7170
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
7171
      fi
 
7172
      ;;
 
7173
    pw32*)
 
7174
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
7175
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
7176
      ;;
 
7177
    esac
 
7178
    ;;
 
7179
 
 
7180
  *)
 
7181
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
7182
    ;;
 
7183
  esac
 
7184
  dynamic_linker='Win32 ld.exe'
 
7185
  # FIXME: first we should search . and the directory the executable is in
 
7186
  shlibpath_var=PATH
 
7187
  ;;
 
7188
 
 
7189
darwin* | rhapsody*)
 
7190
  dynamic_linker="$host_os dyld"
 
7191
  version_type=darwin
 
7192
  need_lib_prefix=no
 
7193
  need_version=no
 
7194
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
7195
  soname_spec='${libname}${release}${major}$shared_ext'
 
7196
  shlibpath_overrides_runpath=yes
 
7197
  shlibpath_var=DYLD_LIBRARY_PATH
 
7198
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
7199
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
7200
  if test "$GCC" = yes; then
 
7201
    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"`
 
7202
  else
 
7203
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
7204
  fi
 
7205
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
7206
  ;;
 
7207
 
 
7208
dgux*)
 
7209
  version_type=linux
 
7210
  need_lib_prefix=no
 
7211
  need_version=no
 
7212
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
7213
  soname_spec='${libname}${release}${shared_ext}$major'
 
7214
  shlibpath_var=LD_LIBRARY_PATH
 
7215
  ;;
 
7216
 
 
7217
freebsd1*)
 
7218
  dynamic_linker=no
 
7219
  ;;
 
7220
 
 
7221
kfreebsd*-gnu)
 
7222
  version_type=linux
 
7223
  need_lib_prefix=no
 
7224
  need_version=no
 
7225
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
7226
  soname_spec='${libname}${release}${shared_ext}$major'
 
7227
  shlibpath_var=LD_LIBRARY_PATH
 
7228
  shlibpath_overrides_runpath=no
 
7229
  hardcode_into_libs=yes
 
7230
  dynamic_linker='GNU ld.so'
 
7231
  ;;
 
7232
 
 
7233
freebsd* | dragonfly*)
 
7234
  # DragonFly does not have aout.  When/if they implement a new
 
7235
  # versioning mechanism, adjust this.
 
7236
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
7237
  version_type=freebsd-$objformat
 
7238
  case $version_type in
 
7239
    freebsd-elf*)
 
7240
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
7241
      need_version=no
 
7242
      need_lib_prefix=no
 
7243
      ;;
 
7244
    freebsd-*)
 
7245
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
7246
      need_version=yes
 
7247
      ;;
 
7248
  esac
 
7249
  shlibpath_var=LD_LIBRARY_PATH
 
7250
  case $host_os in
 
7251
  freebsd2*)
 
7252
    shlibpath_overrides_runpath=yes
 
7253
    ;;
 
7254
  freebsd3.[01]* | freebsdelf3.[01]*)
 
7255
    shlibpath_overrides_runpath=yes
 
7256
    hardcode_into_libs=yes
 
7257
    ;;
 
7258
  *) # from 3.2 on
 
7259
    shlibpath_overrides_runpath=no
 
7260
    hardcode_into_libs=yes
 
7261
    ;;
 
7262
  esac
 
7263
  ;;
 
7264
 
 
7265
gnu*)
 
7266
  version_type=linux
 
7267
  need_lib_prefix=no
 
7268
  need_version=no
 
7269
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
7270
  soname_spec='${libname}${release}${shared_ext}$major'
 
7271
  shlibpath_var=LD_LIBRARY_PATH
 
7272
  hardcode_into_libs=yes
 
7273
  ;;
 
7274
 
 
7275
hpux9* | hpux10* | hpux11*)
 
7276
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
7277
  # link against other versions.
 
7278
  version_type=sunos
 
7279
  need_lib_prefix=no
 
7280
  need_version=no
 
7281
  case "$host_cpu" in
 
7282
  ia64*)
 
7283
    shrext_cmds='.so'
 
7284
    hardcode_into_libs=yes
 
7285
    dynamic_linker="$host_os dld.so"
 
7286
    shlibpath_var=LD_LIBRARY_PATH
 
7287
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
7288
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7289
    soname_spec='${libname}${release}${shared_ext}$major'
 
7290
    if test "X$HPUX_IA64_MODE" = X32; then
 
7291
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
7292
    else
 
7293
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
7294
    fi
 
7295
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
7296
    ;;
 
7297
   hppa*64*)
 
7298
     shrext_cmds='.sl'
 
7299
     hardcode_into_libs=yes
 
7300
     dynamic_linker="$host_os dld.sl"
 
7301
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
7302
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
7303
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7304
     soname_spec='${libname}${release}${shared_ext}$major'
 
7305
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
7306
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
7307
     ;;
 
7308
   *)
 
7309
    shrext_cmds='.sl'
 
7310
    dynamic_linker="$host_os dld.sl"
 
7311
    shlibpath_var=SHLIB_PATH
 
7312
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
7313
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7314
    soname_spec='${libname}${release}${shared_ext}$major'
 
7315
    ;;
 
7316
  esac
 
7317
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
7318
  postinstall_cmds='chmod 555 $lib'
 
7319
  ;;
 
7320
 
 
7321
irix5* | irix6* | nonstopux*)
 
7322
  case $host_os in
 
7323
    nonstopux*) version_type=nonstopux ;;
 
7324
    *)
 
7325
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
7326
                version_type=linux
 
7327
        else
 
7328
                version_type=irix
 
7329
        fi ;;
 
7330
  esac
 
7331
  need_lib_prefix=no
 
7332
  need_version=no
 
7333
  soname_spec='${libname}${release}${shared_ext}$major'
 
7334
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
7335
  case $host_os in
 
7336
  irix5* | nonstopux*)
 
7337
    libsuff= shlibsuff=
 
7338
    ;;
 
7339
  *)
 
7340
    case $LD in # libtool.m4 will add one of these switches to LD
 
7341
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
7342
      libsuff= shlibsuff= libmagic=32-bit;;
 
7343
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
7344
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
7345
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
7346
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
7347
    *) libsuff= shlibsuff= libmagic=never-match;;
 
7348
    esac
 
7349
    ;;
 
7350
  esac
 
7351
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
7352
  shlibpath_overrides_runpath=no
 
7353
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
7354
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
7355
  hardcode_into_libs=yes
 
7356
  ;;
 
7357
 
 
7358
# No shared lib support for Linux oldld, aout, or coff.
 
7359
linux*oldld* | linux*aout* | linux*coff*)
 
7360
  dynamic_linker=no
 
7361
  ;;
 
7362
 
 
7363
# This must be Linux ELF.
 
7364
linux*)
 
7365
  version_type=linux
 
7366
  need_lib_prefix=no
 
7367
  need_version=no
 
7368
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7369
  soname_spec='${libname}${release}${shared_ext}$major'
 
7370
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
7371
  shlibpath_var=LD_LIBRARY_PATH
 
7372
  shlibpath_overrides_runpath=no
 
7373
  # This implies no fast_install, which is unacceptable.
 
7374
  # Some rework will be needed to allow for fast_install
 
7375
  # before this can be enabled.
 
7376
  hardcode_into_libs=yes
 
7377
 
 
7378
  # find out which ABI we are using
 
7379
  libsuff=
 
7380
  case "$host_cpu" in
 
7381
  x86_64*|s390x*|powerpc64*)
 
7382
    echo '#line 7382 "configure"' > conftest.$ac_ext
 
7383
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7384
  (eval $ac_compile) 2>&5
 
7385
  ac_status=$?
 
7386
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7387
  (exit $ac_status); }; then
 
7388
      case `/usr/bin/file conftest.$ac_objext` in
 
7389
      *64-bit*)
 
7390
        libsuff=64
 
7391
        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
 
7392
        ;;
 
7393
      esac
 
7394
    fi
 
7395
    rm -rf conftest*
 
7396
    ;;
 
7397
  esac
 
7398
 
 
7399
  # Append ld.so.conf contents to the search path
 
7400
  if test -f /etc/ld.so.conf; then
 
7401
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
7402
    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
 
7403
  fi
 
7404
 
 
7405
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
7406
  # powerpc, because MkLinux only supported shared libraries with the
 
7407
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
7408
  # most powerpc-linux boxes support dynamic linking these days and
 
7409
  # people can always --disable-shared, the test was removed, and we
 
7410
  # assume the GNU/Linux dynamic linker is in use.
 
7411
  dynamic_linker='GNU/Linux ld.so'
 
7412
  ;;
 
7413
 
 
7414
knetbsd*-gnu)
 
7415
  version_type=linux
 
7416
  need_lib_prefix=no
 
7417
  need_version=no
 
7418
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
7419
  soname_spec='${libname}${release}${shared_ext}$major'
 
7420
  shlibpath_var=LD_LIBRARY_PATH
 
7421
  shlibpath_overrides_runpath=no
 
7422
  hardcode_into_libs=yes
 
7423
  dynamic_linker='GNU ld.so'
 
7424
  ;;
 
7425
 
 
7426
netbsd*)
 
7427
  version_type=sunos
 
7428
  need_lib_prefix=no
 
7429
  need_version=no
 
7430
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
7431
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
7432
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
7433
    dynamic_linker='NetBSD (a.out) ld.so'
 
7434
  else
 
7435
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
7436
    soname_spec='${libname}${release}${shared_ext}$major'
 
7437
    dynamic_linker='NetBSD ld.elf_so'
 
7438
  fi
 
7439
  shlibpath_var=LD_LIBRARY_PATH
 
7440
  shlibpath_overrides_runpath=yes
 
7441
  hardcode_into_libs=yes
 
7442
  ;;
 
7443
 
 
7444
newsos6)
 
7445
  version_type=linux
 
7446
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7447
  shlibpath_var=LD_LIBRARY_PATH
 
7448
  shlibpath_overrides_runpath=yes
 
7449
  ;;
 
7450
 
 
7451
nto-qnx*)
 
7452
  version_type=linux
 
7453
  need_lib_prefix=no
 
7454
  need_version=no
 
7455
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7456
  soname_spec='${libname}${release}${shared_ext}$major'
 
7457
  shlibpath_var=LD_LIBRARY_PATH
 
7458
  shlibpath_overrides_runpath=yes
 
7459
  ;;
 
7460
 
 
7461
openbsd*)
 
7462
  version_type=sunos
 
7463
  need_lib_prefix=no
 
7464
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
7465
  case $host_os in
 
7466
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
7467
    *)                         need_version=no  ;;
 
7468
  esac
 
7469
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
7470
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
7471
  shlibpath_var=LD_LIBRARY_PATH
 
7472
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
7473
    case $host_os in
 
7474
      openbsd2.[89] | openbsd2.[89].*)
 
7475
        shlibpath_overrides_runpath=no
 
7476
        ;;
 
7477
      *)
 
7478
        shlibpath_overrides_runpath=yes
 
7479
        ;;
 
7480
      esac
 
7481
  else
 
7482
    shlibpath_overrides_runpath=yes
 
7483
  fi
 
7484
  ;;
 
7485
 
 
7486
os2*)
 
7487
  libname_spec='$name'
 
7488
  shrext_cmds=".dll"
 
7489
  need_lib_prefix=no
 
7490
  library_names_spec='$libname${shared_ext} $libname.a'
 
7491
  dynamic_linker='OS/2 ld.exe'
 
7492
  shlibpath_var=LIBPATH
 
7493
  ;;
 
7494
 
 
7495
osf3* | osf4* | osf5*)
 
7496
  version_type=osf
 
7497
  need_lib_prefix=no
 
7498
  need_version=no
 
7499
  soname_spec='${libname}${release}${shared_ext}$major'
 
7500
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7501
  shlibpath_var=LD_LIBRARY_PATH
 
7502
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
7503
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
7504
  ;;
 
7505
 
 
7506
sco3.2v5*)
 
7507
  version_type=osf
 
7508
  soname_spec='${libname}${release}${shared_ext}$major'
 
7509
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7510
  shlibpath_var=LD_LIBRARY_PATH
 
7511
  ;;
 
7512
 
 
7513
solaris*)
 
7514
  version_type=linux
 
7515
  need_lib_prefix=no
 
7516
  need_version=no
 
7517
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7518
  soname_spec='${libname}${release}${shared_ext}$major'
 
7519
  shlibpath_var=LD_LIBRARY_PATH
 
7520
  shlibpath_overrides_runpath=yes
 
7521
  hardcode_into_libs=yes
 
7522
  # ldd complains unless libraries are executable
 
7523
  postinstall_cmds='chmod +x $lib'
 
7524
  ;;
 
7525
 
 
7526
sunos4*)
 
7527
  version_type=sunos
 
7528
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
7529
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
7530
  shlibpath_var=LD_LIBRARY_PATH
 
7531
  shlibpath_overrides_runpath=yes
 
7532
  if test "$with_gnu_ld" = yes; then
 
7533
    need_lib_prefix=no
 
7534
  fi
 
7535
  need_version=yes
 
7536
  ;;
 
7537
 
 
7538
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
7539
  version_type=linux
 
7540
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7541
  soname_spec='${libname}${release}${shared_ext}$major'
 
7542
  shlibpath_var=LD_LIBRARY_PATH
 
7543
  case $host_vendor in
 
7544
    sni)
 
7545
      shlibpath_overrides_runpath=no
 
7546
      need_lib_prefix=no
 
7547
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
7548
      runpath_var=LD_RUN_PATH
 
7549
      ;;
 
7550
    siemens)
 
7551
      need_lib_prefix=no
 
7552
      ;;
 
7553
    motorola)
 
7554
      need_lib_prefix=no
 
7555
      need_version=no
 
7556
      shlibpath_overrides_runpath=no
 
7557
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
7558
      ;;
 
7559
  esac
 
7560
  ;;
 
7561
 
 
7562
sysv4*MP*)
 
7563
  if test -d /usr/nec ;then
 
7564
    version_type=linux
 
7565
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
7566
    soname_spec='$libname${shared_ext}.$major'
 
7567
    shlibpath_var=LD_LIBRARY_PATH
 
7568
  fi
 
7569
  ;;
 
7570
 
 
7571
uts4*)
 
7572
  version_type=linux
 
7573
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7574
  soname_spec='${libname}${release}${shared_ext}$major'
 
7575
  shlibpath_var=LD_LIBRARY_PATH
 
7576
  ;;
 
7577
 
 
7578
*)
 
7579
  dynamic_linker=no
 
7580
  ;;
 
7581
esac
 
7582
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
7583
echo "${ECHO_T}$dynamic_linker" >&6
 
7584
test "$dynamic_linker" = no && can_build_shared=no
 
7585
 
5383
7586
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
5384
7587
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
5385
7588
hardcode_action=
5386
7589
if test -n "$hardcode_libdir_flag_spec" || \
5387
 
   test -n "$runpath_var"; then
 
7590
   test -n "$runpath_var" || \
 
7591
   test "X$hardcode_automatic" = "Xyes" ; then
5388
7592
 
5389
7593
  # We can hardcode non-existant directories.
5390
7594
  if test "$hardcode_direct" != no &&
5391
7595
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
5392
7596
     # have to relink, otherwise we might link with an installed library
5393
7597
     # when we should be linking with a yet-to-be-installed one
5394
 
     ## test "$hardcode_shlibpath_var" != no &&
 
7598
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
5395
7599
     test "$hardcode_minus_L" != no; then
5396
7600
    # Linking always hardcodes the temporary library directory.
5397
7601
    hardcode_action=relink
5407
7611
echo "$as_me:$LINENO: result: $hardcode_action" >&5
5408
7612
echo "${ECHO_T}$hardcode_action" >&6
5409
7613
 
5410
 
striplib=
5411
 
old_striplib=
5412
 
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
5413
 
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
5414
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
5415
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
5416
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
5417
 
  echo "$as_me:$LINENO: result: yes" >&5
5418
 
echo "${ECHO_T}yes" >&6
5419
 
else
5420
 
  echo "$as_me:$LINENO: result: no" >&5
5421
 
echo "${ECHO_T}no" >&6
5422
 
fi
5423
 
 
5424
 
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5425
 
test -z "$deplibs_check_method" && deplibs_check_method=unknown
5426
 
 
5427
 
# PORTME Fill in your ld.so characteristics
5428
 
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
5429
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
5430
 
library_names_spec=
5431
 
libname_spec='lib$name'
5432
 
soname_spec=
5433
 
postinstall_cmds=
5434
 
postuninstall_cmds=
5435
 
finish_cmds=
5436
 
finish_eval=
5437
 
shlibpath_var=
5438
 
shlibpath_overrides_runpath=unknown
5439
 
version_type=none
5440
 
dynamic_linker="$host_os ld.so"
5441
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
5442
 
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
5443
 
 
5444
 
case $host_os in
5445
 
aix3*)
5446
 
  version_type=linux
5447
 
  library_names_spec='${libname}${release}.so$versuffix $libname.a'
5448
 
  shlibpath_var=LIBPATH
5449
 
 
5450
 
  # AIX has no versioning support, so we append a major version to the name.
5451
 
  soname_spec='${libname}${release}.so$major'
5452
 
  ;;
5453
 
 
5454
 
aix4* | aix5*)
5455
 
  version_type=linux
5456
 
  if test "$host_cpu" = ia64; then
5457
 
    # AIX 5 supports IA64
5458
 
    library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
5459
 
    shlibpath_var=LD_LIBRARY_PATH
5460
 
  else
5461
 
    # With GCC up to 2.95.x, collect2 would create an import file
5462
 
    # for dependence libraries.  The import file would start with
5463
 
    # the line `#! .'.  This would cause the generated library to
5464
 
    # depend on `.', always an invalid library.  This was fixed in
5465
 
    # development snapshots of GCC prior to 3.0.
5466
 
    case $host_os in
5467
 
      aix4 | aix4.[01] | aix4.[01].*)
5468
 
        if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
5469
 
             echo ' yes '
5470
 
             echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
5471
 
          :
5472
 
        else
5473
 
          can_build_shared=no
5474
 
        fi
5475
 
        ;;
5476
 
    esac
5477
 
    # AIX (on Power*) has no versioning support, so currently we can
5478
 
    # not hardcode correct soname into executable. Probably we can
5479
 
    # add versioning support to collect2, so additional links can
5480
 
    # be useful in future.
5481
 
    if test "$aix_use_runtimelinking" = yes; then
5482
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
5483
 
      # instead of lib<name>.a to let people know that these are not
5484
 
      # typical AIX shared libraries.
5485
 
      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5486
 
    else
5487
 
      # We preserve .a as extension for shared libraries through AIX4.2
5488
 
      # and later when we are not doing run time linking.
5489
 
      library_names_spec='${libname}${release}.a $libname.a'
5490
 
      soname_spec='${libname}${release}.so$major'
5491
 
    fi
5492
 
    shlibpath_var=LIBPATH
5493
 
  fi
5494
 
  ;;
5495
 
 
5496
 
amigaos*)
5497
 
  library_names_spec='$libname.ixlibrary $libname.a'
5498
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
5499
 
  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'
5500
 
  ;;
5501
 
 
5502
 
beos*)
5503
 
  library_names_spec='${libname}.so'
5504
 
  dynamic_linker="$host_os ld.so"
5505
 
  shlibpath_var=LIBRARY_PATH
5506
 
  ;;
5507
 
 
5508
 
bsdi4*)
5509
 
  version_type=linux
5510
 
  need_version=no
5511
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5512
 
  soname_spec='${libname}${release}.so$major'
5513
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
5514
 
  shlibpath_var=LD_LIBRARY_PATH
5515
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
5516
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
5517
 
  export_dynamic_flag_spec=-rdynamic
5518
 
  # the default ld.so.conf also contains /usr/contrib/lib and
5519
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
5520
 
  # libtool to hard-code these into programs
5521
 
  ;;
5522
 
 
5523
 
cygwin* | mingw* | pw32*)
5524
 
  version_type=windows
5525
 
  need_version=no
5526
 
  need_lib_prefix=no
5527
 
  case $GCC,$host_os in
5528
 
  yes,cygwin*)
5529
 
    library_names_spec='$libname.dll.a'
5530
 
    soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5531
 
    postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
5532
 
      dldir=$destdir/`dirname \$dlpath`~
5533
 
      test -d \$dldir || mkdir -p \$dldir~
5534
 
      $install_prog .libs/$dlname \$dldir/$dlname'
5535
 
    postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
5536
 
      dlpath=$dir/\$dldll~
5537
 
       $rm \$dlpath'
5538
 
    ;;
5539
 
  yes,mingw*)
5540
 
    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5541
 
    sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
5542
 
    ;;
5543
 
  yes,pw32*)
5544
 
    library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
5545
 
    ;;
5546
 
  *)
5547
 
    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
5548
 
    ;;
5549
 
  esac
5550
 
  dynamic_linker='Win32 ld.exe'
5551
 
  # FIXME: first we should search . and the directory the executable is in
5552
 
  shlibpath_var=PATH
5553
 
  ;;
5554
 
 
5555
 
darwin* | rhapsody*)
5556
 
  dynamic_linker="$host_os dyld"
5557
 
  version_type=darwin
5558
 
  need_lib_prefix=no
5559
 
  need_version=no
5560
 
  # FIXME: Relying on posixy $() will cause problems for
5561
 
  #        cross-compilation, but unfortunately the echo tests do not
5562
 
  #        yet detect zsh echo's removal of \ escapes.
5563
 
  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)'
5564
 
  soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
5565
 
  shlibpath_overrides_runpath=yes
5566
 
  shlibpath_var=DYLD_LIBRARY_PATH
5567
 
  ;;
5568
 
 
5569
 
freebsd1*)
5570
 
  dynamic_linker=no
5571
 
  ;;
5572
 
 
5573
 
freebsd*)
5574
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
5575
 
  version_type=freebsd-$objformat
5576
 
  case $version_type in
5577
 
    freebsd-elf*)
5578
 
      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5579
 
      need_version=no
5580
 
      need_lib_prefix=no
5581
 
      ;;
5582
 
    freebsd-*)
5583
 
      library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
5584
 
      need_version=yes
5585
 
      ;;
5586
 
  esac
5587
 
  shlibpath_var=LD_LIBRARY_PATH
5588
 
  case $host_os in
5589
 
  freebsd2*)
5590
 
    shlibpath_overrides_runpath=yes
5591
 
    ;;
5592
 
  *)
5593
 
    shlibpath_overrides_runpath=no
5594
 
    hardcode_into_libs=yes
5595
 
    ;;
5596
 
  esac
5597
 
  ;;
5598
 
 
5599
 
gnu*)
5600
 
  version_type=linux
5601
 
  need_lib_prefix=no
5602
 
  need_version=no
5603
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
5604
 
  soname_spec='${libname}${release}.so$major'
5605
 
  shlibpath_var=LD_LIBRARY_PATH
5606
 
  hardcode_into_libs=yes
5607
 
  ;;
5608
 
 
5609
 
hpux9* | hpux10* | hpux11*)
5610
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
5611
 
  # link against other versions.
5612
 
  dynamic_linker="$host_os dld.sl"
5613
 
  version_type=sunos
5614
 
  need_lib_prefix=no
5615
 
  need_version=no
5616
 
  shlibpath_var=SHLIB_PATH
5617
 
  shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
5618
 
  library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
5619
 
  soname_spec='${libname}${release}.sl$major'
5620
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
5621
 
  postinstall_cmds='chmod 555 $lib'
5622
 
  ;;
5623
 
 
5624
 
irix5* | irix6*)
5625
 
  version_type=irix
5626
 
  need_lib_prefix=no
5627
 
  need_version=no
5628
 
  soname_spec='${libname}${release}.so$major'
5629
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
5630
 
  case $host_os in
5631
 
  irix5*)
5632
 
    libsuff= shlibsuff=
5633
 
    ;;
5634
 
  *)
5635
 
    case $LD in # libtool.m4 will add one of these switches to LD
5636
 
    *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
5637
 
    *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
5638
 
    *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
5639
 
    *) libsuff= shlibsuff= libmagic=never-match;;
5640
 
    esac
5641
 
    ;;
5642
 
  esac
5643
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
5644
 
  shlibpath_overrides_runpath=no
5645
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
5646
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
5647
 
  ;;
5648
 
 
5649
 
# No shared lib support for Linux oldld, aout, or coff.
5650
 
linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
5651
 
  dynamic_linker=no
5652
 
  ;;
5653
 
 
5654
 
# This must be Linux ELF.
5655
 
linux-gnu*)
5656
 
  version_type=linux
5657
 
  need_lib_prefix=no
5658
 
  need_version=no
5659
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5660
 
  soname_spec='${libname}${release}.so$major'
5661
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
5662
 
  shlibpath_var=LD_LIBRARY_PATH
5663
 
  shlibpath_overrides_runpath=no
5664
 
  # This implies no fast_install, which is unacceptable.
5665
 
  # Some rework will be needed to allow for fast_install
5666
 
  # before this can be enabled.
5667
 
  hardcode_into_libs=yes
5668
 
 
5669
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
5670
 
  # powerpc, because MkLinux only supported shared libraries with the
5671
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
5672
 
  # most powerpc-linux boxes support dynamic linking these days and
5673
 
  # people can always --disable-shared, the test was removed, and we
5674
 
  # assume the GNU/Linux dynamic linker is in use.
5675
 
  dynamic_linker='GNU/Linux ld.so'
5676
 
  ;;
5677
 
 
5678
 
netbsd*)
5679
 
  version_type=sunos
5680
 
  need_lib_prefix=no
5681
 
  need_version=no
5682
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5683
 
    library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5684
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5685
 
    dynamic_linker='NetBSD (a.out) ld.so'
5686
 
  else
5687
 
    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
5688
 
    soname_spec='${libname}${release}.so$major'
5689
 
    dynamic_linker='NetBSD ld.elf_so'
5690
 
  fi
5691
 
  shlibpath_var=LD_LIBRARY_PATH
5692
 
  shlibpath_overrides_runpath=yes
5693
 
  hardcode_into_libs=yes
5694
 
  ;;
5695
 
 
5696
 
newsos6)
5697
 
  version_type=linux
5698
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5699
 
  shlibpath_var=LD_LIBRARY_PATH
5700
 
  shlibpath_overrides_runpath=yes
5701
 
  ;;
5702
 
 
5703
 
openbsd*)
5704
 
  version_type=sunos
5705
 
  need_lib_prefix=no
5706
 
  need_version=no
5707
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5708
 
    case "$host_os" in
5709
 
    openbsd2.[89] | openbsd2.[89].*)
5710
 
      shlibpath_overrides_runpath=no
5711
 
      ;;
5712
 
    *)
5713
 
      shlibpath_overrides_runpath=yes
5714
 
      ;;
5715
 
    esac
5716
 
  else
5717
 
    shlibpath_overrides_runpath=yes
5718
 
  fi
5719
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5720
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5721
 
  shlibpath_var=LD_LIBRARY_PATH
5722
 
  ;;
5723
 
 
5724
 
os2*)
5725
 
  libname_spec='$name'
5726
 
  need_lib_prefix=no
5727
 
  library_names_spec='$libname.dll $libname.a'
5728
 
  dynamic_linker='OS/2 ld.exe'
5729
 
  shlibpath_var=LIBPATH
5730
 
  ;;
5731
 
 
5732
 
osf3* | osf4* | osf5*)
5733
 
  version_type=osf
5734
 
  need_version=no
5735
 
  soname_spec='${libname}${release}.so'
5736
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5737
 
  shlibpath_var=LD_LIBRARY_PATH
5738
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
5739
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
5740
 
  ;;
5741
 
 
5742
 
sco3.2v5*)
5743
 
  version_type=osf
5744
 
  soname_spec='${libname}${release}.so$major'
5745
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5746
 
  shlibpath_var=LD_LIBRARY_PATH
5747
 
  ;;
5748
 
 
5749
 
solaris*)
5750
 
  version_type=linux
5751
 
  need_lib_prefix=no
5752
 
  need_version=no
5753
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5754
 
  soname_spec='${libname}${release}.so$major'
5755
 
  shlibpath_var=LD_LIBRARY_PATH
5756
 
  shlibpath_overrides_runpath=yes
5757
 
  hardcode_into_libs=yes
5758
 
  # ldd complains unless libraries are executable
5759
 
  postinstall_cmds='chmod +x $lib'
5760
 
  ;;
5761
 
 
5762
 
sunos4*)
5763
 
  version_type=sunos
5764
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5765
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
5766
 
  shlibpath_var=LD_LIBRARY_PATH
5767
 
  shlibpath_overrides_runpath=yes
5768
 
  if test "$with_gnu_ld" = yes; then
5769
 
    need_lib_prefix=no
5770
 
  fi
5771
 
  need_version=yes
5772
 
  ;;
5773
 
 
5774
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5775
 
  version_type=linux
5776
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5777
 
  soname_spec='${libname}${release}.so$major'
5778
 
  shlibpath_var=LD_LIBRARY_PATH
5779
 
  case $host_vendor in
5780
 
    sni)
5781
 
      shlibpath_overrides_runpath=no
5782
 
      ;;
5783
 
    motorola)
5784
 
      need_lib_prefix=no
5785
 
      need_version=no
5786
 
      shlibpath_overrides_runpath=no
5787
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
5788
 
      ;;
5789
 
  esac
5790
 
  ;;
5791
 
 
5792
 
uts4*)
5793
 
  version_type=linux
5794
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5795
 
  soname_spec='${libname}${release}.so$major'
5796
 
  shlibpath_var=LD_LIBRARY_PATH
5797
 
  ;;
5798
 
 
5799
 
dgux*)
5800
 
  version_type=linux
5801
 
  need_lib_prefix=no
5802
 
  need_version=no
5803
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5804
 
  soname_spec='${libname}${release}.so$major'
5805
 
  shlibpath_var=LD_LIBRARY_PATH
5806
 
  ;;
5807
 
 
5808
 
sysv4*MP*)
5809
 
  if test -d /usr/nec ;then
5810
 
    version_type=linux
5811
 
    library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
5812
 
    soname_spec='$libname.so.$major'
5813
 
    shlibpath_var=LD_LIBRARY_PATH
5814
 
  fi
5815
 
  ;;
5816
 
 
5817
 
*)
5818
 
  dynamic_linker=no
5819
 
  ;;
5820
 
esac
5821
 
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
5822
 
echo "${ECHO_T}$dynamic_linker" >&6
5823
 
test "$dynamic_linker" = no && can_build_shared=no
5824
 
 
5825
 
# Report the final consequences.
5826
 
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
5827
 
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
5828
 
echo "$as_me:$LINENO: result: $can_build_shared" >&5
5829
 
echo "${ECHO_T}$can_build_shared" >&6
5830
 
 
5831
 
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
5832
 
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
5833
 
test "$can_build_shared" = "no" && enable_shared=no
5834
 
 
5835
 
# On AIX, shared libraries and static libraries use the same namespace, and
5836
 
# are all built from PIC.
5837
 
case "$host_os" in
5838
 
aix3*)
5839
 
  test "$enable_shared" = yes && enable_static=no
5840
 
  if test -n "$RANLIB"; then
5841
 
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
5842
 
    postinstall_cmds='$RANLIB $lib'
5843
 
  fi
5844
 
  ;;
5845
 
 
5846
 
aix4*)
5847
 
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5848
 
    test "$enable_shared" = yes && enable_static=no
5849
 
  fi
5850
 
  ;;
5851
 
esac
5852
 
echo "$as_me:$LINENO: result: $enable_shared" >&5
5853
 
echo "${ECHO_T}$enable_shared" >&6
5854
 
 
5855
 
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
5856
 
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
5857
 
# Make sure either enable_shared or enable_static is yes.
5858
 
test "$enable_shared" = yes || enable_static=yes
5859
 
echo "$as_me:$LINENO: result: $enable_static" >&5
5860
 
echo "${ECHO_T}$enable_static" >&6
5861
 
 
5862
7614
if test "$hardcode_action" = relink; then
5863
7615
  # Fast installation is not supported
5864
7616
  enable_fast_install=no
5868
7620
  enable_fast_install=needless
5869
7621
fi
5870
7622
 
5871
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
5872
 
if test "$GCC" = yes; then
5873
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
7623
striplib=
 
7624
old_striplib=
 
7625
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
7626
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
7627
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
7628
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
7629
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
7630
  echo "$as_me:$LINENO: result: yes" >&5
 
7631
echo "${ECHO_T}yes" >&6
 
7632
else
 
7633
# FIXME - insert some real tests, host_os isn't really good enough
 
7634
  case $host_os in
 
7635
   darwin*)
 
7636
       if test -n "$STRIP" ; then
 
7637
         striplib="$STRIP -x"
 
7638
         echo "$as_me:$LINENO: result: yes" >&5
 
7639
echo "${ECHO_T}yes" >&6
 
7640
       else
 
7641
  echo "$as_me:$LINENO: result: no" >&5
 
7642
echo "${ECHO_T}no" >&6
 
7643
fi
 
7644
       ;;
 
7645
   *)
 
7646
  echo "$as_me:$LINENO: result: no" >&5
 
7647
echo "${ECHO_T}no" >&6
 
7648
    ;;
 
7649
  esac
5874
7650
fi
5875
7651
 
5876
7652
if test "x$enable_dlopen" != xyes; then
5888
7664
    lt_cv_dlopen_self=yes
5889
7665
    ;;
5890
7666
 
5891
 
  cygwin* | mingw* | pw32*)
 
7667
  mingw* | pw32*)
5892
7668
    lt_cv_dlopen="LoadLibrary"
5893
7669
    lt_cv_dlopen_libs=
5894
7670
   ;;
5895
7671
 
 
7672
  cygwin*)
 
7673
    lt_cv_dlopen="dlopen"
 
7674
    lt_cv_dlopen_libs=
 
7675
   ;;
 
7676
 
 
7677
  darwin*)
 
7678
  # if libdl is installed we need to link against it
 
7679
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
7680
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
7681
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
7682
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7683
else
 
7684
  ac_check_lib_save_LIBS=$LIBS
 
7685
LIBS="-ldl  $LIBS"
 
7686
cat >conftest.$ac_ext <<_ACEOF
 
7687
/* confdefs.h.  */
 
7688
_ACEOF
 
7689
cat confdefs.h >>conftest.$ac_ext
 
7690
cat >>conftest.$ac_ext <<_ACEOF
 
7691
/* end confdefs.h.  */
 
7692
 
 
7693
/* Override any gcc2 internal prototype to avoid an error.  */
 
7694
#ifdef __cplusplus
 
7695
extern "C"
 
7696
#endif
 
7697
/* We use char because int might match the return type of a gcc2
 
7698
   builtin and then its argument prototype would still apply.  */
 
7699
char dlopen ();
 
7700
int
 
7701
main ()
 
7702
{
 
7703
dlopen ();
 
7704
  ;
 
7705
  return 0;
 
7706
}
 
7707
_ACEOF
 
7708
rm -f conftest.$ac_objext conftest$ac_exeext
 
7709
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7710
  (eval $ac_link) 2>conftest.er1
 
7711
  ac_status=$?
 
7712
  grep -v '^ *+' conftest.er1 >conftest.err
 
7713
  rm -f conftest.er1
 
7714
  cat conftest.err >&5
 
7715
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7716
  (exit $ac_status); } &&
 
7717
         { ac_try='test -z "$ac_c_werror_flag"
 
7718
                         || test ! -s conftest.err'
 
7719
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7720
  (eval $ac_try) 2>&5
 
7721
  ac_status=$?
 
7722
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7723
  (exit $ac_status); }; } &&
 
7724
         { ac_try='test -s conftest$ac_exeext'
 
7725
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7726
  (eval $ac_try) 2>&5
 
7727
  ac_status=$?
 
7728
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7729
  (exit $ac_status); }; }; then
 
7730
  ac_cv_lib_dl_dlopen=yes
 
7731
else
 
7732
  echo "$as_me: failed program was:" >&5
 
7733
sed 's/^/| /' conftest.$ac_ext >&5
 
7734
 
 
7735
ac_cv_lib_dl_dlopen=no
 
7736
fi
 
7737
rm -f conftest.err conftest.$ac_objext \
 
7738
      conftest$ac_exeext conftest.$ac_ext
 
7739
LIBS=$ac_check_lib_save_LIBS
 
7740
fi
 
7741
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
7742
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
7743
if test $ac_cv_lib_dl_dlopen = yes; then
 
7744
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
7745
else
 
7746
 
 
7747
    lt_cv_dlopen="dyld"
 
7748
    lt_cv_dlopen_libs=
 
7749
    lt_cv_dlopen_self=yes
 
7750
 
 
7751
fi
 
7752
 
 
7753
   ;;
 
7754
 
5896
7755
  *)
5897
7756
    echo "$as_me:$LINENO: checking for shl_load" >&5
5898
7757
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
5900
7759
  echo $ECHO_N "(cached) $ECHO_C" >&6
5901
7760
else
5902
7761
  cat >conftest.$ac_ext <<_ACEOF
5903
 
#line $LINENO "configure"
5904
7762
/* confdefs.h.  */
5905
7763
_ACEOF
5906
7764
cat confdefs.h >>conftest.$ac_ext
5907
7765
cat >>conftest.$ac_ext <<_ACEOF
5908
7766
/* end confdefs.h.  */
 
7767
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
7768
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
7769
#define shl_load innocuous_shl_load
 
7770
 
5909
7771
/* System header to define __stub macros and hopefully few prototypes,
5910
7772
    which can conflict with char shl_load (); below.
5911
7773
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5912
7774
    <limits.h> exists even on freestanding compilers.  */
 
7775
 
5913
7776
#ifdef __STDC__
5914
7777
# include <limits.h>
5915
7778
#else
5916
7779
# include <assert.h>
5917
7780
#endif
 
7781
 
 
7782
#undef shl_load
 
7783
 
5918
7784
/* Override any gcc2 internal prototype to avoid an error.  */
5919
7785
#ifdef __cplusplus
5920
7786
extern "C"
5945
7811
_ACEOF
5946
7812
rm -f conftest.$ac_objext conftest$ac_exeext
5947
7813
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5948
 
  (eval $ac_link) 2>&5
 
7814
  (eval $ac_link) 2>conftest.er1
5949
7815
  ac_status=$?
 
7816
  grep -v '^ *+' conftest.er1 >conftest.err
 
7817
  rm -f conftest.er1
 
7818
  cat conftest.err >&5
5950
7819
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951
7820
  (exit $ac_status); } &&
5952
 
         { ac_try='test -s conftest$ac_exeext'
 
7821
         { ac_try='test -z "$ac_c_werror_flag"
 
7822
                         || test ! -s conftest.err'
 
7823
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7824
  (eval $ac_try) 2>&5
 
7825
  ac_status=$?
 
7826
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7827
  (exit $ac_status); }; } &&
 
7828
         { ac_try='test -s conftest$ac_exeext'
5953
7829
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5954
7830
  (eval $ac_try) 2>&5
5955
7831
  ac_status=$?
5962
7838
 
5963
7839
ac_cv_func_shl_load=no
5964
7840
fi
5965
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
7841
rm -f conftest.err conftest.$ac_objext \
 
7842
      conftest$ac_exeext conftest.$ac_ext
5966
7843
fi
5967
7844
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
5968
7845
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
5977
7854
  ac_check_lib_save_LIBS=$LIBS
5978
7855
LIBS="-ldld  $LIBS"
5979
7856
cat >conftest.$ac_ext <<_ACEOF
5980
 
#line $LINENO "configure"
5981
7857
/* confdefs.h.  */
5982
7858
_ACEOF
5983
7859
cat confdefs.h >>conftest.$ac_ext
6001
7877
_ACEOF
6002
7878
rm -f conftest.$ac_objext conftest$ac_exeext
6003
7879
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6004
 
  (eval $ac_link) 2>&5
 
7880
  (eval $ac_link) 2>conftest.er1
6005
7881
  ac_status=$?
 
7882
  grep -v '^ *+' conftest.er1 >conftest.err
 
7883
  rm -f conftest.er1
 
7884
  cat conftest.err >&5
6006
7885
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007
7886
  (exit $ac_status); } &&
6008
 
         { ac_try='test -s conftest$ac_exeext'
 
7887
         { ac_try='test -z "$ac_c_werror_flag"
 
7888
                         || test ! -s conftest.err'
 
7889
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7890
  (eval $ac_try) 2>&5
 
7891
  ac_status=$?
 
7892
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7893
  (exit $ac_status); }; } &&
 
7894
         { ac_try='test -s conftest$ac_exeext'
6009
7895
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6010
7896
  (eval $ac_try) 2>&5
6011
7897
  ac_status=$?
6018
7904
 
6019
7905
ac_cv_lib_dld_shl_load=no
6020
7906
fi
6021
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
7907
rm -f conftest.err conftest.$ac_objext \
 
7908
      conftest$ac_exeext conftest.$ac_ext
6022
7909
LIBS=$ac_check_lib_save_LIBS
6023
7910
fi
6024
7911
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
6032
7919
  echo $ECHO_N "(cached) $ECHO_C" >&6
6033
7920
else
6034
7921
  cat >conftest.$ac_ext <<_ACEOF
6035
 
#line $LINENO "configure"
6036
7922
/* confdefs.h.  */
6037
7923
_ACEOF
6038
7924
cat confdefs.h >>conftest.$ac_ext
6039
7925
cat >>conftest.$ac_ext <<_ACEOF
6040
7926
/* end confdefs.h.  */
 
7927
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
7928
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
7929
#define dlopen innocuous_dlopen
 
7930
 
6041
7931
/* System header to define __stub macros and hopefully few prototypes,
6042
7932
    which can conflict with char dlopen (); below.
6043
7933
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6044
7934
    <limits.h> exists even on freestanding compilers.  */
 
7935
 
6045
7936
#ifdef __STDC__
6046
7937
# include <limits.h>
6047
7938
#else
6048
7939
# include <assert.h>
6049
7940
#endif
 
7941
 
 
7942
#undef dlopen
 
7943
 
6050
7944
/* Override any gcc2 internal prototype to avoid an error.  */
6051
7945
#ifdef __cplusplus
6052
7946
extern "C"
6077
7971
_ACEOF
6078
7972
rm -f conftest.$ac_objext conftest$ac_exeext
6079
7973
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6080
 
  (eval $ac_link) 2>&5
 
7974
  (eval $ac_link) 2>conftest.er1
6081
7975
  ac_status=$?
 
7976
  grep -v '^ *+' conftest.er1 >conftest.err
 
7977
  rm -f conftest.er1
 
7978
  cat conftest.err >&5
6082
7979
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6083
7980
  (exit $ac_status); } &&
6084
 
         { ac_try='test -s conftest$ac_exeext'
 
7981
         { ac_try='test -z "$ac_c_werror_flag"
 
7982
                         || test ! -s conftest.err'
 
7983
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7984
  (eval $ac_try) 2>&5
 
7985
  ac_status=$?
 
7986
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7987
  (exit $ac_status); }; } &&
 
7988
         { ac_try='test -s conftest$ac_exeext'
6085
7989
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6086
7990
  (eval $ac_try) 2>&5
6087
7991
  ac_status=$?
6094
7998
 
6095
7999
ac_cv_func_dlopen=no
6096
8000
fi
6097
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
8001
rm -f conftest.err conftest.$ac_objext \
 
8002
      conftest$ac_exeext conftest.$ac_ext
6098
8003
fi
6099
8004
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
6100
8005
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
6109
8014
  ac_check_lib_save_LIBS=$LIBS
6110
8015
LIBS="-ldl  $LIBS"
6111
8016
cat >conftest.$ac_ext <<_ACEOF
6112
 
#line $LINENO "configure"
6113
8017
/* confdefs.h.  */
6114
8018
_ACEOF
6115
8019
cat confdefs.h >>conftest.$ac_ext
6133
8037
_ACEOF
6134
8038
rm -f conftest.$ac_objext conftest$ac_exeext
6135
8039
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6136
 
  (eval $ac_link) 2>&5
 
8040
  (eval $ac_link) 2>conftest.er1
6137
8041
  ac_status=$?
 
8042
  grep -v '^ *+' conftest.er1 >conftest.err
 
8043
  rm -f conftest.er1
 
8044
  cat conftest.err >&5
6138
8045
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6139
8046
  (exit $ac_status); } &&
6140
 
         { ac_try='test -s conftest$ac_exeext'
 
8047
         { ac_try='test -z "$ac_c_werror_flag"
 
8048
                         || test ! -s conftest.err'
 
8049
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8050
  (eval $ac_try) 2>&5
 
8051
  ac_status=$?
 
8052
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8053
  (exit $ac_status); }; } &&
 
8054
         { ac_try='test -s conftest$ac_exeext'
6141
8055
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6142
8056
  (eval $ac_try) 2>&5
6143
8057
  ac_status=$?
6150
8064
 
6151
8065
ac_cv_lib_dl_dlopen=no
6152
8066
fi
6153
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
8067
rm -f conftest.err conftest.$ac_objext \
 
8068
      conftest$ac_exeext conftest.$ac_ext
6154
8069
LIBS=$ac_check_lib_save_LIBS
6155
8070
fi
6156
8071
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
6166
8081
  ac_check_lib_save_LIBS=$LIBS
6167
8082
LIBS="-lsvld  $LIBS"
6168
8083
cat >conftest.$ac_ext <<_ACEOF
6169
 
#line $LINENO "configure"
6170
8084
/* confdefs.h.  */
6171
8085
_ACEOF
6172
8086
cat confdefs.h >>conftest.$ac_ext
6190
8104
_ACEOF
6191
8105
rm -f conftest.$ac_objext conftest$ac_exeext
6192
8106
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6193
 
  (eval $ac_link) 2>&5
 
8107
  (eval $ac_link) 2>conftest.er1
6194
8108
  ac_status=$?
 
8109
  grep -v '^ *+' conftest.er1 >conftest.err
 
8110
  rm -f conftest.er1
 
8111
  cat conftest.err >&5
6195
8112
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6196
8113
  (exit $ac_status); } &&
6197
 
         { ac_try='test -s conftest$ac_exeext'
 
8114
         { ac_try='test -z "$ac_c_werror_flag"
 
8115
                         || test ! -s conftest.err'
 
8116
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8117
  (eval $ac_try) 2>&5
 
8118
  ac_status=$?
 
8119
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8120
  (exit $ac_status); }; } &&
 
8121
         { ac_try='test -s conftest$ac_exeext'
6198
8122
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6199
8123
  (eval $ac_try) 2>&5
6200
8124
  ac_status=$?
6207
8131
 
6208
8132
ac_cv_lib_svld_dlopen=no
6209
8133
fi
6210
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
8134
rm -f conftest.err conftest.$ac_objext \
 
8135
      conftest$ac_exeext conftest.$ac_ext
6211
8136
LIBS=$ac_check_lib_save_LIBS
6212
8137
fi
6213
8138
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
6223
8148
  ac_check_lib_save_LIBS=$LIBS
6224
8149
LIBS="-ldld  $LIBS"
6225
8150
cat >conftest.$ac_ext <<_ACEOF
6226
 
#line $LINENO "configure"
6227
8151
/* confdefs.h.  */
6228
8152
_ACEOF
6229
8153
cat confdefs.h >>conftest.$ac_ext
6247
8171
_ACEOF
6248
8172
rm -f conftest.$ac_objext conftest$ac_exeext
6249
8173
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6250
 
  (eval $ac_link) 2>&5
 
8174
  (eval $ac_link) 2>conftest.er1
6251
8175
  ac_status=$?
 
8176
  grep -v '^ *+' conftest.er1 >conftest.err
 
8177
  rm -f conftest.er1
 
8178
  cat conftest.err >&5
6252
8179
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253
8180
  (exit $ac_status); } &&
6254
 
         { ac_try='test -s conftest$ac_exeext'
 
8181
         { ac_try='test -z "$ac_c_werror_flag"
 
8182
                         || test ! -s conftest.err'
 
8183
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8184
  (eval $ac_try) 2>&5
 
8185
  ac_status=$?
 
8186
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8187
  (exit $ac_status); }; } &&
 
8188
         { ac_try='test -s conftest$ac_exeext'
6255
8189
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6256
8190
  (eval $ac_try) 2>&5
6257
8191
  ac_status=$?
6264
8198
 
6265
8199
ac_cv_lib_dld_dld_link=no
6266
8200
fi
6267
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
8201
rm -f conftest.err conftest.$ac_objext \
 
8202
      conftest$ac_exeext conftest.$ac_ext
6268
8203
LIBS=$ac_check_lib_save_LIBS
6269
8204
fi
6270
8205
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
6300
8235
  case $lt_cv_dlopen in
6301
8236
  dlopen)
6302
8237
    save_CPPFLAGS="$CPPFLAGS"
6303
 
        test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
8238
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6304
8239
 
6305
8240
    save_LDFLAGS="$LDFLAGS"
6306
8241
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6316
8251
          if test "$cross_compiling" = yes; then :
6317
8252
  lt_cv_dlopen_self=cross
6318
8253
else
6319
 
    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
8254
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6320
8255
  lt_status=$lt_dlunknown
6321
8256
  cat > conftest.$ac_ext <<EOF
6322
 
#line 6322 "configure"
 
8257
#line 8257 "configure"
6323
8258
#include "confdefs.h"
6324
8259
 
6325
8260
#if HAVE_DLFCN_H
6414
8349
          if test "$cross_compiling" = yes; then :
6415
8350
  lt_cv_dlopen_self_static=cross
6416
8351
else
6417
 
    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
8352
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6418
8353
  lt_status=$lt_dlunknown
6419
8354
  cat > conftest.$ac_ext <<EOF
6420
 
#line 6420 "configure"
 
8355
#line 8355 "configure"
6421
8356
#include "confdefs.h"
6422
8357
 
6423
8358
#if HAVE_DLFCN_H
6521
8456
fi
6522
8457
 
6523
8458
 
6524
 
if test "$enable_shared" = yes && test "$GCC" = yes; then
6525
 
  case $archive_cmds in
6526
 
  *'~'*)
6527
 
    # FIXME: we may have to deal with multi-command sequences.
6528
 
    ;;
6529
 
  '$CC '*)
6530
 
    # Test whether the compiler implicitly links with -lc since on some
6531
 
    # systems, -lgcc has to come before -lc. If gcc already passes -lc
6532
 
    # to ld, don't add -lc before -lgcc.
6533
 
    echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
6534
 
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6535
 
    if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
6536
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6537
 
else
6538
 
  $rm conftest*
6539
 
    echo 'static int dummy;' > conftest.$ac_ext
6540
 
 
6541
 
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6542
 
  (eval $ac_compile) 2>&5
6543
 
  ac_status=$?
6544
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6545
 
  (exit $ac_status); }; then
6546
 
      soname=conftest
6547
 
      lib=conftest
6548
 
      libobjs=conftest.$ac_objext
6549
 
      deplibs=
6550
 
      wl=$lt_cv_prog_cc_wl
6551
 
      compiler_flags=-v
6552
 
      linker_flags=-v
6553
 
      verstring=
6554
 
      output_objdir=.
6555
 
      libname=conftest
6556
 
      save_allow_undefined_flag=$allow_undefined_flag
6557
 
      allow_undefined_flag=
6558
 
      if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6559
 
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6560
 
  ac_status=$?
6561
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6562
 
  (exit $ac_status); }
6563
 
      then
6564
 
        lt_cv_archive_cmds_need_lc=no
6565
 
      else
6566
 
        lt_cv_archive_cmds_need_lc=yes
6567
 
      fi
6568
 
      allow_undefined_flag=$save_allow_undefined_flag
6569
 
    else
6570
 
      cat conftest.err 1>&5
6571
 
    fi
6572
 
fi
6573
 
 
6574
 
    echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
6575
 
echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
6576
 
    ;;
6577
 
  esac
6578
 
fi
6579
 
need_lc=${lt_cv_archive_cmds_need_lc-yes}
6580
 
 
6581
 
# The second clause should only fire when bootstrapping the
 
8459
# Report which librarie types wil actually be built
 
8460
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
8461
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
 
8462
echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
8463
echo "${ECHO_T}$can_build_shared" >&6
 
8464
 
 
8465
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
8466
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
 
8467
test "$can_build_shared" = "no" && enable_shared=no
 
8468
 
 
8469
# On AIX, shared libraries and static libraries use the same namespace, and
 
8470
# are all built from PIC.
 
8471
case "$host_os" in
 
8472
aix3*)
 
8473
  test "$enable_shared" = yes && enable_static=no
 
8474
  if test -n "$RANLIB"; then
 
8475
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
8476
    postinstall_cmds='$RANLIB $lib'
 
8477
  fi
 
8478
  ;;
 
8479
 
 
8480
aix4* | aix5*)
 
8481
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
8482
    test "$enable_shared" = yes && enable_static=no
 
8483
  fi
 
8484
    ;;
 
8485
esac
 
8486
echo "$as_me:$LINENO: result: $enable_shared" >&5
 
8487
echo "${ECHO_T}$enable_shared" >&6
 
8488
 
 
8489
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
8490
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
 
8491
# Make sure either enable_shared or enable_static is yes.
 
8492
test "$enable_shared" = yes || enable_static=yes
 
8493
echo "$as_me:$LINENO: result: $enable_static" >&5
 
8494
echo "${ECHO_T}$enable_static" >&6
 
8495
 
 
8496
# The else clause should only fire when bootstrapping the
6582
8497
# libtool distribution, otherwise you forgot to ship ltmain.sh
6583
8498
# with your package, and you will get complaints that there are
6584
8499
# no rules to generate ltmain.sh.
6585
8500
if test -f "$ltmain"; then
6586
 
  :
6587
 
else
6588
 
  # If there is no Makefile yet, we rely on a make rule to execute
6589
 
  # `config.status --recheck' to rerun these tests and create the
6590
 
  # libtool script then.
6591
 
  test -f Makefile && make "$ltmain"
6592
 
fi
6593
 
 
6594
 
if test -f "$ltmain"; then
6595
 
  trap "$rm \"${ofile}T\"; exit 1" 1 2 15
6596
 
  $rm -f "${ofile}T"
6597
 
 
6598
 
  echo creating $ofile
6599
 
 
 
8501
  # See if we are running on zsh, and set the options which allow our commands through
 
8502
  # without removal of \ escapes.
 
8503
  if test -n "${ZSH_VERSION+set}" ; then
 
8504
    setopt NO_GLOB_SUBST
 
8505
  fi
6600
8506
  # Now quote all the things that may contain metacharacters while being
6601
8507
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
6602
8508
  # variables and quote the copies for generation of the libtool script.
6603
 
  for var in echo old_CC old_CFLAGS \
6604
 
    AR AR_FLAGS CC LD LN_S NM SHELL \
6605
 
    reload_flag reload_cmds wl \
6606
 
    pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
6607
 
    thread_safe_flag_spec whole_archive_flag_spec libname_spec \
6608
 
    library_names_spec soname_spec \
6609
 
    RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
6610
 
    old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
6611
 
    postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
6612
 
    old_striplib striplib file_magic_cmd export_symbols_cmds \
6613
 
    deplibs_check_method allow_undefined_flag no_undefined_flag \
6614
 
    finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
6615
 
    global_symbol_to_c_name_address \
6616
 
    hardcode_libdir_flag_spec hardcode_libdir_separator  \
 
8509
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
8510
    SED SHELL STRIP \
 
8511
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
8512
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
8513
    deplibs_check_method reload_flag reload_cmds need_locks \
 
8514
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
8515
    lt_cv_sys_global_symbol_to_c_name_address \
6617
8516
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
6618
 
    compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
 
8517
    old_postinstall_cmds old_postuninstall_cmds \
 
8518
    compiler \
 
8519
    CC \
 
8520
    LD \
 
8521
    lt_prog_compiler_wl \
 
8522
    lt_prog_compiler_pic \
 
8523
    lt_prog_compiler_static \
 
8524
    lt_prog_compiler_no_builtin_flag \
 
8525
    export_dynamic_flag_spec \
 
8526
    thread_safe_flag_spec \
 
8527
    whole_archive_flag_spec \
 
8528
    enable_shared_with_static_runtimes \
 
8529
    old_archive_cmds \
 
8530
    old_archive_from_new_cmds \
 
8531
    predep_objects \
 
8532
    postdep_objects \
 
8533
    predeps \
 
8534
    postdeps \
 
8535
    compiler_lib_search_path \
 
8536
    archive_cmds \
 
8537
    archive_expsym_cmds \
 
8538
    postinstall_cmds \
 
8539
    postuninstall_cmds \
 
8540
    old_archive_from_expsyms_cmds \
 
8541
    allow_undefined_flag \
 
8542
    no_undefined_flag \
 
8543
    export_symbols_cmds \
 
8544
    hardcode_libdir_flag_spec \
 
8545
    hardcode_libdir_flag_spec_ld \
 
8546
    hardcode_libdir_separator \
 
8547
    hardcode_automatic \
 
8548
    module_cmds \
 
8549
    module_expsym_cmds \
 
8550
    lt_cv_prog_compiler_c_o \
 
8551
    exclude_expsyms \
 
8552
    include_expsyms; do
6619
8553
 
6620
8554
    case $var in
6621
 
    reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
 
8555
    old_archive_cmds | \
 
8556
    old_archive_from_new_cmds | \
 
8557
    archive_cmds | \
 
8558
    archive_expsym_cmds | \
 
8559
    module_cmds | \
 
8560
    module_expsym_cmds | \
 
8561
    old_archive_from_expsyms_cmds | \
 
8562
    export_symbols_cmds | \
 
8563
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
8564
    postinstall_cmds | postuninstall_cmds | \
6622
8565
    old_postinstall_cmds | old_postuninstall_cmds | \
6623
 
    export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
6624
 
    extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
6625
 
    postinstall_cmds | postuninstall_cmds | \
6626
 
    finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
8566
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
6627
8567
      # Double-quote double-evaled strings.
6628
8568
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
6629
8569
      ;;
6633
8573
    esac
6634
8574
  done
6635
8575
 
6636
 
  cat <<__EOF__ > "${ofile}T"
 
8576
  case $lt_echo in
 
8577
  *'\$0 --fallback-echo"')
 
8578
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
8579
    ;;
 
8580
  esac
 
8581
 
 
8582
cfgfile="${ofile}T"
 
8583
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
 
8584
  $rm -f "$cfgfile"
 
8585
  { echo "$as_me:$LINENO: creating $ofile" >&5
 
8586
echo "$as_me: creating $ofile" >&6;}
 
8587
 
 
8588
  cat <<__EOF__ >> "$cfgfile"
6637
8589
#! $SHELL
6638
8590
 
6639
 
# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
8591
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
6640
8592
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
6641
8593
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
6642
8594
#
6643
 
# Copyright (C) 1996-2000 Free Software Foundation, Inc.
 
8595
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
 
8596
# Free Software Foundation, Inc.
 
8597
#
 
8598
# This file is part of GNU Libtool:
6644
8599
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
6645
8600
#
6646
8601
# This program is free software; you can redistribute it and/or modify
6655
8610
#
6656
8611
# You should have received a copy of the GNU General Public License
6657
8612
# along with this program; if not, write to the Free Software
6658
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
8613
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
6659
8614
#
6660
8615
# As a special exception to the GNU General Public License, if you
6661
8616
# distribute this file as part of a program that contains a
6662
8617
# configuration script generated by Autoconf, you may include it under
6663
8618
# the same distribution terms that you use for the rest of that program.
6664
8619
 
 
8620
# A sed program that does not truncate output.
 
8621
SED=$lt_SED
 
8622
 
6665
8623
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
6666
 
Xsed="sed -e s/^X//"
 
8624
Xsed="$SED -e 1s/^X//"
6667
8625
 
6668
8626
# The HP-UX ksh and POSIX shell print the target directory to stdout
6669
8627
# if CDPATH is set.
6670
 
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
8628
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
8629
 
 
8630
# The names of the tagged configurations supported by this script.
 
8631
available_tags=
6671
8632
 
6672
8633
# ### BEGIN LIBTOOL CONFIG
6673
8634
 
6683
8644
build_old_libs=$enable_static
6684
8645
 
6685
8646
# Whether or not to add -lc for building shared libraries.
6686
 
build_libtool_need_lc=$need_lc
 
8647
build_libtool_need_lc=$archive_cmds_need_lc
 
8648
 
 
8649
# Whether or not to disallow shared libs when runtime libs are static
 
8650
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
6687
8651
 
6688
8652
# Whether or not to optimize for fast installation.
6689
8653
fast_install=$enable_fast_install
6691
8655
# The host system.
6692
8656
host_alias=$host_alias
6693
8657
host=$host
 
8658
host_os=$host_os
 
8659
 
 
8660
# The build system.
 
8661
build_alias=$build_alias
 
8662
build=$build
 
8663
build_os=$build_os
6694
8664
 
6695
8665
# An echo program that does not interpret backslashes.
6696
8666
echo=$lt_echo
6699
8669
AR=$lt_AR
6700
8670
AR_FLAGS=$lt_AR_FLAGS
6701
8671
 
6702
 
# The default C compiler.
6703
 
CC=$lt_CC
 
8672
# A C compiler.
 
8673
LTCC=$lt_LTCC
 
8674
 
 
8675
# A language-specific compiler.
 
8676
CC=$lt_compiler
6704
8677
 
6705
8678
# Is the compiler the GNU C compiler?
6706
8679
with_gcc=$GCC
6707
8680
 
 
8681
# An ERE matcher.
 
8682
EGREP=$lt_EGREP
 
8683
 
6708
8684
# The linker used to build libraries.
6709
8685
LD=$lt_LD
6710
8686
 
6715
8691
NM=$lt_NM
6716
8692
 
6717
8693
# A symbol stripping program
6718
 
STRIP=$STRIP
 
8694
STRIP=$lt_STRIP
6719
8695
 
6720
8696
# Used to examine libraries when file_magic_cmd begins "file"
6721
8697
MAGIC_CMD=$MAGIC_CMD
6737
8713
reload_cmds=$lt_reload_cmds
6738
8714
 
6739
8715
# How to pass a linker flag through the compiler.
6740
 
wl=$lt_wl
 
8716
wl=$lt_lt_prog_compiler_wl
6741
8717
 
6742
8718
# Object file suffix (normally "o").
6743
8719
objext="$ac_objext"
6745
8721
# Old archive suffix (normally "a").
6746
8722
libext="$libext"
6747
8723
 
 
8724
# Shared library suffix (normally ".so").
 
8725
shrext_cmds='$shrext_cmds'
 
8726
 
6748
8727
# Executable file suffix (normally "").
6749
8728
exeext="$exeext"
6750
8729
 
6751
8730
# Additional compiler flags for building library objects.
6752
 
pic_flag=$lt_pic_flag
 
8731
pic_flag=$lt_lt_prog_compiler_pic
6753
8732
pic_mode=$pic_mode
6754
8733
 
 
8734
# What is the maximum length of a command?
 
8735
max_cmd_len=$lt_cv_sys_max_cmd_len
 
8736
 
6755
8737
# Does compiler simultaneously support -c and -o options?
6756
 
compiler_c_o=$lt_compiler_c_o
6757
 
 
6758
 
# Can we write directly to a .lo ?
6759
 
compiler_o_lo=$lt_compiler_o_lo
6760
 
 
6761
 
# Must we lock files when doing compilation ?
 
8738
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
8739
 
 
8740
# Must we lock files when doing compilation?
6762
8741
need_locks=$lt_need_locks
6763
8742
 
6764
8743
# Do we need the lib prefix for modules?
6777
8756
dlopen_self_static=$enable_dlopen_self_static
6778
8757
 
6779
8758
# Compiler flag to prevent dynamic linking.
6780
 
link_static_flag=$lt_link_static_flag
 
8759
link_static_flag=$lt_lt_prog_compiler_static
6781
8760
 
6782
8761
# Compiler flag to turn off builtin functions.
6783
 
no_builtin_flag=$lt_no_builtin_flag
 
8762
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
6784
8763
 
6785
8764
# Compiler flag to allow reflexive dlopens.
6786
8765
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
6822
8801
postinstall_cmds=$lt_postinstall_cmds
6823
8802
postuninstall_cmds=$lt_postuninstall_cmds
6824
8803
 
 
8804
# Commands used to build a loadable module (assumed same as above if empty)
 
8805
module_cmds=$lt_module_cmds
 
8806
module_expsym_cmds=$lt_module_expsym_cmds
 
8807
 
6825
8808
# Commands to strip libraries.
6826
8809
old_striplib=$lt_old_striplib
6827
8810
striplib=$lt_striplib
6828
8811
 
 
8812
# Dependencies to place before the objects being linked to create a
 
8813
# shared library.
 
8814
predep_objects=$lt_predep_objects
 
8815
 
 
8816
# Dependencies to place after the objects being linked to create a
 
8817
# shared library.
 
8818
postdep_objects=$lt_postdep_objects
 
8819
 
 
8820
# Dependencies to place before the objects being linked to create a
 
8821
# shared library.
 
8822
predeps=$lt_predeps
 
8823
 
 
8824
# Dependencies to place after the objects being linked to create a
 
8825
# shared library.
 
8826
postdeps=$lt_postdeps
 
8827
 
 
8828
# The library search path used internally by the compiler when linking
 
8829
# a shared library.
 
8830
compiler_lib_search_path=$lt_compiler_lib_search_path
 
8831
 
6829
8832
# Method to check whether dependent libraries are shared objects.
6830
8833
deplibs_check_method=$lt_deplibs_check_method
6831
8834
 
6845
8848
finish_eval=$lt_finish_eval
6846
8849
 
6847
8850
# Take the output of nm and produce a listing of raw symbols and C names.
6848
 
global_symbol_pipe=$lt_global_symbol_pipe
 
8851
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
6849
8852
 
6850
8853
# Transform the output of nm in a proper C declaration
6851
 
global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
 
8854
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
6852
8855
 
6853
8856
# Transform the output of nm in a C name address pair
6854
 
global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
 
8857
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
6855
8858
 
6856
8859
# This is the shared library runtime path variable.
6857
8860
runpath_var=$runpath_var
6872
8875
# This must work even if \$libdir does not exist.
6873
8876
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
6874
8877
 
 
8878
# If ld is used when linking, flag to hardcode \$libdir into
 
8879
# a binary during linking. This must work even if \$libdir does
 
8880
# not exist.
 
8881
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
 
8882
 
6875
8883
# Whether we need a single -rpath flag with a separated argument.
6876
8884
hardcode_libdir_separator=$lt_hardcode_libdir_separator
6877
8885
 
6878
 
# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
 
8886
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
6879
8887
# resulting binary.
6880
8888
hardcode_direct=$hardcode_direct
6881
8889
 
6887
8895
# the resulting binary.
6888
8896
hardcode_shlibpath_var=$hardcode_shlibpath_var
6889
8897
 
 
8898
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
8899
# and all subsequent libraries and executables linked against it.
 
8900
hardcode_automatic=$hardcode_automatic
 
8901
 
6890
8902
# Variables whose values should be saved in libtool wrapper scripts and
6891
8903
# restored at relink time.
6892
8904
variables_saved_for_relink="$variables_saved_for_relink"
6922
8934
 
6923
8935
__EOF__
6924
8936
 
 
8937
 
6925
8938
  case $host_os in
6926
8939
  aix3*)
6927
 
    cat <<\EOF >> "${ofile}T"
 
8940
    cat <<\EOF >> "$cfgfile"
6928
8941
 
6929
8942
# AIX sometimes has problems with the GCC collect2 program.  For some
6930
8943
# reason, if we set the COLLECT_NAMES environment variable, the problems
6937
8950
    ;;
6938
8951
  esac
6939
8952
 
6940
 
  case $host_os in
6941
 
  cygwin* | mingw* | pw32* | os2*)
6942
 
    cat <<'EOF' >> "${ofile}T"
6943
 
      # This is a source program that is used to create dlls on Windows
6944
 
      # Don't remove nor modify the starting and closing comments
6945
 
# /* ltdll.c starts here */
6946
 
# #define WIN32_LEAN_AND_MEAN
6947
 
# #include <windows.h>
6948
 
# #undef WIN32_LEAN_AND_MEAN
6949
 
# #include <stdio.h>
6950
 
#
6951
 
# #ifndef __CYGWIN__
6952
 
# #  ifdef __CYGWIN32__
6953
 
# #    define __CYGWIN__ __CYGWIN32__
6954
 
# #  endif
6955
 
# #endif
6956
 
#
6957
 
# #ifdef __cplusplus
6958
 
# extern "C" {
6959
 
# #endif
6960
 
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
6961
 
# #ifdef __cplusplus
6962
 
# }
6963
 
# #endif
6964
 
#
6965
 
# #ifdef __CYGWIN__
6966
 
# #include <cygwin/cygwin_dll.h>
6967
 
# DECLARE_CYGWIN_DLL( DllMain );
6968
 
# #endif
6969
 
# HINSTANCE __hDllInstance_base;
6970
 
#
6971
 
# BOOL APIENTRY
6972
 
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
6973
 
# {
6974
 
#   __hDllInstance_base = hInst;
6975
 
#   return TRUE;
6976
 
# }
6977
 
# /* ltdll.c ends here */
6978
 
        # This is a source program that is used to create import libraries
6979
 
        # on Windows for dlls which lack them. Don't remove nor modify the
6980
 
        # starting and closing comments
6981
 
# /* impgen.c starts here */
6982
 
# /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
6983
 
#
6984
 
#  This file is part of GNU libtool.
6985
 
#
6986
 
#  This program is free software; you can redistribute it and/or modify
6987
 
#  it under the terms of the GNU General Public License as published by
6988
 
#  the Free Software Foundation; either version 2 of the License, or
6989
 
#  (at your option) any later version.
6990
 
#
6991
 
#  This program is distributed in the hope that it will be useful,
6992
 
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
6993
 
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
6994
 
#  GNU General Public License for more details.
6995
 
#
6996
 
#  You should have received a copy of the GNU General Public License
6997
 
#  along with this program; if not, write to the Free Software
6998
 
#  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
6999
 
#  */
7000
 
#
7001
 
# #include <stdio.h>            /* for printf() */
7002
 
# #include <unistd.h>           /* for open(), lseek(), read() */
7003
 
# #include <fcntl.h>            /* for O_RDONLY, O_BINARY */
7004
 
# #include <string.h>           /* for strdup() */
7005
 
#
7006
 
# /* O_BINARY isn't required (or even defined sometimes) under Unix */
7007
 
# #ifndef O_BINARY
7008
 
# #define O_BINARY 0
7009
 
# #endif
7010
 
#
7011
 
# static unsigned int
7012
 
# pe_get16 (fd, offset)
7013
 
#      int fd;
7014
 
#      int offset;
7015
 
# {
7016
 
#   unsigned char b[2];
7017
 
#   lseek (fd, offset, SEEK_SET);
7018
 
#   read (fd, b, 2);
7019
 
#   return b[0] + (b[1]<<8);
7020
 
# }
7021
 
#
7022
 
# static unsigned int
7023
 
# pe_get32 (fd, offset)
7024
 
#     int fd;
7025
 
#     int offset;
7026
 
# {
7027
 
#   unsigned char b[4];
7028
 
#   lseek (fd, offset, SEEK_SET);
7029
 
#   read (fd, b, 4);
7030
 
#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7031
 
# }
7032
 
#
7033
 
# static unsigned int
7034
 
# pe_as32 (ptr)
7035
 
#      void *ptr;
7036
 
# {
7037
 
#   unsigned char *b = ptr;
7038
 
#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7039
 
# }
7040
 
#
7041
 
# int
7042
 
# main (argc, argv)
7043
 
#     int argc;
7044
 
#     char *argv[];
7045
 
# {
7046
 
#     int dll;
7047
 
#     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7048
 
#     unsigned long export_rva, export_size, nsections, secptr, expptr;
7049
 
#     unsigned long name_rvas, nexp;
7050
 
#     unsigned char *expdata, *erva;
7051
 
#     char *filename, *dll_name;
7052
 
#
7053
 
#     filename = argv[1];
7054
 
#
7055
 
#     dll = open(filename, O_RDONLY|O_BINARY);
7056
 
#     if (dll < 1)
7057
 
#       return 1;
7058
 
#
7059
 
#     dll_name = filename;
7060
 
#
7061
 
#     for (i=0; filename[i]; i++)
7062
 
#       if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
7063
 
#           dll_name = filename + i +1;
7064
 
#
7065
 
#     pe_header_offset = pe_get32 (dll, 0x3c);
7066
 
#     opthdr_ofs = pe_header_offset + 4 + 20;
7067
 
#     num_entries = pe_get32 (dll, opthdr_ofs + 92);
7068
 
#
7069
 
#     if (num_entries < 1) /* no exports */
7070
 
#       return 1;
7071
 
#
7072
 
#     export_rva = pe_get32 (dll, opthdr_ofs + 96);
7073
 
#     export_size = pe_get32 (dll, opthdr_ofs + 100);
7074
 
#     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7075
 
#     secptr = (pe_header_offset + 4 + 20 +
7076
 
#             pe_get16 (dll, pe_header_offset + 4 + 16));
7077
 
#
7078
 
#     expptr = 0;
7079
 
#     for (i = 0; i < nsections; i++)
7080
 
#     {
7081
 
#       char sname[8];
7082
 
#       unsigned long secptr1 = secptr + 40 * i;
7083
 
#       unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7084
 
#       unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7085
 
#       unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7086
 
#       lseek(dll, secptr1, SEEK_SET);
7087
 
#       read(dll, sname, 8);
7088
 
#       if (vaddr <= export_rva && vaddr+vsize > export_rva)
7089
 
#       {
7090
 
#           expptr = fptr + (export_rva - vaddr);
7091
 
#           if (export_rva + export_size > vaddr + vsize)
7092
 
#               export_size = vsize - (export_rva - vaddr);
7093
 
#           break;
7094
 
#       }
7095
 
#     }
7096
 
#
7097
 
#     expdata = (unsigned char*)malloc(export_size);
7098
 
#     lseek (dll, expptr, SEEK_SET);
7099
 
#     read (dll, expdata, export_size);
7100
 
#     erva = expdata - export_rva;
7101
 
#
7102
 
#     nexp = pe_as32 (expdata+24);
7103
 
#     name_rvas = pe_as32 (expdata+32);
7104
 
#
7105
 
#     printf ("EXPORTS\n");
7106
 
#     for (i = 0; i<nexp; i++)
7107
 
#     {
7108
 
#       unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7109
 
#       printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7110
 
#     }
7111
 
#
7112
 
#     return 0;
7113
 
# }
7114
 
# /* impgen.c ends here */
7115
 
 
7116
 
EOF
7117
 
    ;;
7118
 
  esac
7119
 
 
7120
8953
  # We use sed instead of cat because bash on DJGPP gets confused if
7121
8954
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
7122
8955
  # text mode, it properly converts lines to CR/LF.  This bash problem
7123
8956
  # is reportedly fixed, but why not run on old versions too?
7124
 
  sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
 
8957
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
7125
8958
 
7126
 
  mv -f "${ofile}T" "$ofile" || \
7127
 
    (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
 
8959
  mv -f "$cfgfile" "$ofile" || \
 
8960
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
7128
8961
  chmod +x "$ofile"
7129
 
fi
7130
 
 
7131
 
 
 
8962
 
 
8963
else
 
8964
  # If there is no Makefile yet, we rely on a make rule to execute
 
8965
  # `config.status --recheck' to rerun these tests and create the
 
8966
  # libtool script then.
 
8967
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
8968
  if test -f "$ltmain_in"; then
 
8969
    test -f Makefile && make "$ltmain"
 
8970
  fi
 
8971
fi
 
8972
 
 
8973
 
 
8974
ac_ext=c
 
8975
ac_cpp='$CPP $CPPFLAGS'
 
8976
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
8977
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
8978
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
8979
 
 
8980
CC="$lt_save_CC"
 
8981
 
 
8982
 
 
8983
# Check whether --with-tags or --without-tags was given.
 
8984
if test "${with_tags+set}" = set; then
 
8985
  withval="$with_tags"
 
8986
  tagnames="$withval"
 
8987
fi;
 
8988
 
 
8989
if test -f "$ltmain" && test -n "$tagnames"; then
 
8990
  if test ! -f "${ofile}"; then
 
8991
    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
 
8992
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
 
8993
  fi
 
8994
 
 
8995
  if test -z "$LTCC"; then
 
8996
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
 
8997
    if test -z "$LTCC"; then
 
8998
      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
 
8999
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
 
9000
    else
 
9001
      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
 
9002
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
 
9003
    fi
 
9004
  fi
 
9005
 
 
9006
  # Extract list of available tagged configurations in $ofile.
 
9007
  # Note that this assumes the entire list is on one line.
 
9008
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
 
9009
 
 
9010
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
9011
  for tagname in $tagnames; do
 
9012
    IFS="$lt_save_ifs"
 
9013
    # Check whether tagname contains only valid characters
 
9014
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
 
9015
    "") ;;
 
9016
    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
 
9017
echo "$as_me: error: invalid tag name: $tagname" >&2;}
 
9018
   { (exit 1); exit 1; }; }
 
9019
        ;;
 
9020
    esac
 
9021
 
 
9022
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
 
9023
    then
 
9024
      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
 
9025
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
 
9026
   { (exit 1); exit 1; }; }
 
9027
    fi
 
9028
 
 
9029
    # Update the list of available tags.
 
9030
    if test -n "$tagname"; then
 
9031
      echo appending configuration tag \"$tagname\" to $ofile
 
9032
 
 
9033
      case $tagname in
 
9034
      CXX)
 
9035
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
9036
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
9037
            (test "X$CXX" != "Xg++"))) ; then
 
9038
          ac_ext=cc
 
9039
ac_cpp='$CXXCPP $CPPFLAGS'
 
9040
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
9041
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
9042
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
9043
 
 
9044
 
 
9045
 
 
9046
 
 
9047
archive_cmds_need_lc_CXX=no
 
9048
allow_undefined_flag_CXX=
 
9049
always_export_symbols_CXX=no
 
9050
archive_expsym_cmds_CXX=
 
9051
export_dynamic_flag_spec_CXX=
 
9052
hardcode_direct_CXX=no
 
9053
hardcode_libdir_flag_spec_CXX=
 
9054
hardcode_libdir_flag_spec_ld_CXX=
 
9055
hardcode_libdir_separator_CXX=
 
9056
hardcode_minus_L_CXX=no
 
9057
hardcode_automatic_CXX=no
 
9058
module_cmds_CXX=
 
9059
module_expsym_cmds_CXX=
 
9060
link_all_deplibs_CXX=unknown
 
9061
old_archive_cmds_CXX=$old_archive_cmds
 
9062
no_undefined_flag_CXX=
 
9063
whole_archive_flag_spec_CXX=
 
9064
enable_shared_with_static_runtimes_CXX=no
 
9065
 
 
9066
# Dependencies to place before and after the object being linked:
 
9067
predep_objects_CXX=
 
9068
postdep_objects_CXX=
 
9069
predeps_CXX=
 
9070
postdeps_CXX=
 
9071
compiler_lib_search_path_CXX=
 
9072
 
 
9073
# Source file extension for C++ test sources.
 
9074
ac_ext=cc
 
9075
 
 
9076
# Object file extension for compiled C++ test sources.
 
9077
objext=o
 
9078
objext_CXX=$objext
 
9079
 
 
9080
# Code to be used in simple compile tests
 
9081
lt_simple_compile_test_code="int some_variable = 0;\n"
 
9082
 
 
9083
# Code to be used in simple link tests
 
9084
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
 
9085
 
 
9086
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
9087
 
 
9088
# If no C compiler was specified, use CC.
 
9089
LTCC=${LTCC-"$CC"}
 
9090
 
 
9091
# Allow CC to be a program name with arguments.
 
9092
compiler=$CC
 
9093
 
 
9094
 
 
9095
# save warnings/boilerplate of simple test code
 
9096
ac_outfile=conftest.$ac_objext
 
9097
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
9098
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
9099
_lt_compiler_boilerplate=`cat conftest.err`
 
9100
$rm conftest*
 
9101
 
 
9102
ac_outfile=conftest.$ac_objext
 
9103
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
9104
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
9105
_lt_linker_boilerplate=`cat conftest.err`
 
9106
$rm conftest*
 
9107
 
 
9108
 
 
9109
# Allow CC to be a program name with arguments.
 
9110
lt_save_CC=$CC
 
9111
lt_save_LD=$LD
 
9112
lt_save_GCC=$GCC
 
9113
GCC=$GXX
 
9114
lt_save_with_gnu_ld=$with_gnu_ld
 
9115
lt_save_path_LD=$lt_cv_path_LD
 
9116
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
9117
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
9118
else
 
9119
  unset lt_cv_prog_gnu_ld
 
9120
fi
 
9121
if test -n "${lt_cv_path_LDCXX+set}"; then
 
9122
  lt_cv_path_LD=$lt_cv_path_LDCXX
 
9123
else
 
9124
  unset lt_cv_path_LD
 
9125
fi
 
9126
test -z "${LDCXX+set}" || LD=$LDCXX
 
9127
CC=${CXX-"c++"}
 
9128
compiler=$CC
 
9129
compiler_CXX=$CC
 
9130
for cc_temp in $compiler""; do
 
9131
  case $cc_temp in
 
9132
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
9133
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
9134
    \-*) ;;
 
9135
    *) break;;
 
9136
  esac
 
9137
done
 
9138
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
9139
 
 
9140
 
 
9141
# We don't want -fno-exception wen compiling C++ code, so set the
 
9142
# no_builtin_flag separately
 
9143
if test "$GXX" = yes; then
 
9144
  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
 
9145
else
 
9146
  lt_prog_compiler_no_builtin_flag_CXX=
 
9147
fi
 
9148
 
 
9149
if test "$GXX" = yes; then
 
9150
  # Set up default GNU C++ configuration
 
9151
 
 
9152
 
 
9153
# Check whether --with-gnu-ld or --without-gnu-ld was given.
 
9154
if test "${with_gnu_ld+set}" = set; then
 
9155
  withval="$with_gnu_ld"
 
9156
  test "$withval" = no || with_gnu_ld=yes
 
9157
else
 
9158
  with_gnu_ld=no
 
9159
fi;
 
9160
ac_prog=ld
 
9161
if test "$GCC" = yes; then
 
9162
  # Check if gcc -print-prog-name=ld gives a path.
 
9163
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
9164
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
 
9165
  case $host in
 
9166
  *-*-mingw*)
 
9167
    # gcc leaves a trailing carriage return which upsets mingw
 
9168
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
9169
  *)
 
9170
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
9171
  esac
 
9172
  case $ac_prog in
 
9173
    # Accept absolute paths.
 
9174
    [\\/]* | ?:[\\/]*)
 
9175
      re_direlt='/[^/][^/]*/\.\./'
 
9176
      # Canonicalize the pathname of ld
 
9177
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
9178
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
9179
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
9180
      done
 
9181
      test -z "$LD" && LD="$ac_prog"
 
9182
      ;;
 
9183
  "")
 
9184
    # If it fails, then pretend we aren't using GCC.
 
9185
    ac_prog=ld
 
9186
    ;;
 
9187
  *)
 
9188
    # If it is relative, then search for the first ld in PATH.
 
9189
    with_gnu_ld=unknown
 
9190
    ;;
 
9191
  esac
 
9192
elif test "$with_gnu_ld" = yes; then
 
9193
  echo "$as_me:$LINENO: checking for GNU ld" >&5
 
9194
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
9195
else
 
9196
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
9197
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
9198
fi
 
9199
if test "${lt_cv_path_LD+set}" = set; then
 
9200
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9201
else
 
9202
  if test -z "$LD"; then
 
9203
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
9204
  for ac_dir in $PATH; do
 
9205
    IFS="$lt_save_ifs"
 
9206
    test -z "$ac_dir" && ac_dir=.
 
9207
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
9208
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
9209
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
9210
      # but apparently some GNU ld's only accept -v.
 
9211
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
9212
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
9213
      *GNU* | *'with BFD'*)
 
9214
        test "$with_gnu_ld" != no && break
 
9215
        ;;
 
9216
      *)
 
9217
        test "$with_gnu_ld" != yes && break
 
9218
        ;;
 
9219
      esac
 
9220
    fi
 
9221
  done
 
9222
  IFS="$lt_save_ifs"
 
9223
else
 
9224
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
9225
fi
 
9226
fi
 
9227
 
 
9228
LD="$lt_cv_path_LD"
 
9229
if test -n "$LD"; then
 
9230
  echo "$as_me:$LINENO: result: $LD" >&5
 
9231
echo "${ECHO_T}$LD" >&6
 
9232
else
 
9233
  echo "$as_me:$LINENO: result: no" >&5
 
9234
echo "${ECHO_T}no" >&6
 
9235
fi
 
9236
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
9237
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
9238
   { (exit 1); exit 1; }; }
 
9239
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
9240
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
9241
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
9242
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9243
else
 
9244
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
9245
case `$LD -v 2>&1 </dev/null` in
 
9246
*GNU* | *'with BFD'*)
 
9247
  lt_cv_prog_gnu_ld=yes
 
9248
  ;;
 
9249
*)
 
9250
  lt_cv_prog_gnu_ld=no
 
9251
  ;;
 
9252
esac
 
9253
fi
 
9254
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
9255
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
 
9256
with_gnu_ld=$lt_cv_prog_gnu_ld
 
9257
 
 
9258
 
 
9259
 
 
9260
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
9261
  # archiving commands below assume that GNU ld is being used.
 
9262
  if test "$with_gnu_ld" = yes; then
 
9263
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9264
    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'
 
9265
 
 
9266
    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
9267
    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
9268
 
 
9269
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
9270
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
9271
    #     investigate it a little bit more. (MM)
 
9272
    wlarc='${wl}'
 
9273
 
 
9274
    # ancient GNU ld didn't support --whole-archive et. al.
 
9275
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
 
9276
        grep 'no-whole-archive' > /dev/null; then
 
9277
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
9278
    else
 
9279
      whole_archive_flag_spec_CXX=
 
9280
    fi
 
9281
  else
 
9282
    with_gnu_ld=no
 
9283
    wlarc=
 
9284
 
 
9285
    # A generic and very simple default shared library creation
 
9286
    # command for GNU C++ for the case where it uses the native
 
9287
    # linker, instead of GNU ld.  If possible, this setting should
 
9288
    # overridden to take advantage of the native linker features on
 
9289
    # the platform it is being used on.
 
9290
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
9291
  fi
 
9292
 
 
9293
  # Commands to make compiler produce verbose output that lists
 
9294
  # what "hidden" libraries, object files and flags are used when
 
9295
  # linking a shared library.
 
9296
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
9297
 
 
9298
else
 
9299
  GXX=no
 
9300
  with_gnu_ld=no
 
9301
  wlarc=
 
9302
fi
 
9303
 
 
9304
# PORTME: fill in a description of your system's C++ link characteristics
 
9305
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
9306
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
9307
ld_shlibs_CXX=yes
 
9308
case $host_os in
 
9309
  aix3*)
 
9310
    # FIXME: insert proper C++ library support
 
9311
    ld_shlibs_CXX=no
 
9312
    ;;
 
9313
  aix4* | aix5*)
 
9314
    if test "$host_cpu" = ia64; then
 
9315
      # On IA64, the linker does run time linking by default, so we don't
 
9316
      # have to do anything special.
 
9317
      aix_use_runtimelinking=no
 
9318
      exp_sym_flag='-Bexport'
 
9319
      no_entry_flag=""
 
9320
    else
 
9321
      aix_use_runtimelinking=no
 
9322
 
 
9323
      # Test if we are trying to use run time linking or normal
 
9324
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
9325
      # need to do runtime linking.
 
9326
      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
9327
        for ld_flag in $LDFLAGS; do
 
9328
          case $ld_flag in
 
9329
          *-brtl*)
 
9330
            aix_use_runtimelinking=yes
 
9331
            break
 
9332
            ;;
 
9333
          esac
 
9334
        done
 
9335
      esac
 
9336
 
 
9337
      exp_sym_flag='-bexport'
 
9338
      no_entry_flag='-bnoentry'
 
9339
    fi
 
9340
 
 
9341
    # When large executables or shared objects are built, AIX ld can
 
9342
    # have problems creating the table of contents.  If linking a library
 
9343
    # or program results in "error TOC overflow" add -mminimal-toc to
 
9344
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
9345
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
9346
 
 
9347
    archive_cmds_CXX=''
 
9348
    hardcode_direct_CXX=yes
 
9349
    hardcode_libdir_separator_CXX=':'
 
9350
    link_all_deplibs_CXX=yes
 
9351
 
 
9352
    if test "$GXX" = yes; then
 
9353
      case $host_os in aix4.[012]|aix4.[012].*)
 
9354
      # We only want to do this on AIX 4.2 and lower, the check
 
9355
      # below for broken collect2 doesn't work under 4.3+
 
9356
        collect2name=`${CC} -print-prog-name=collect2`
 
9357
        if test -f "$collect2name" && \
 
9358
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
9359
        then
 
9360
          # We have reworked collect2
 
9361
          hardcode_direct_CXX=yes
 
9362
        else
 
9363
          # We have old collect2
 
9364
          hardcode_direct_CXX=unsupported
 
9365
          # It fails to find uninstalled libraries when the uninstalled
 
9366
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
9367
          # to unsupported forces relinking
 
9368
          hardcode_minus_L_CXX=yes
 
9369
          hardcode_libdir_flag_spec_CXX='-L$libdir'
 
9370
          hardcode_libdir_separator_CXX=
 
9371
        fi
 
9372
      esac
 
9373
      shared_flag='-shared'
 
9374
      if test "$aix_use_runtimelinking" = yes; then
 
9375
        shared_flag="$shared_flag "'${wl}-G'
 
9376
      fi
 
9377
    else
 
9378
      # not using gcc
 
9379
      if test "$host_cpu" = ia64; then
 
9380
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
9381
        # chokes on -Wl,-G. The following line is correct:
 
9382
        shared_flag='-G'
 
9383
      else
 
9384
        if test "$aix_use_runtimelinking" = yes; then
 
9385
          shared_flag='${wl}-G'
 
9386
        else
 
9387
          shared_flag='${wl}-bM:SRE'
 
9388
        fi
 
9389
      fi
 
9390
    fi
 
9391
 
 
9392
    # It seems that -bexpall does not export symbols beginning with
 
9393
    # underscore (_), so it is better to generate a list of symbols to export.
 
9394
    always_export_symbols_CXX=yes
 
9395
    if test "$aix_use_runtimelinking" = yes; then
 
9396
      # Warning - without using the other runtime loading flags (-brtl),
 
9397
      # -berok will link without error, but may produce a broken library.
 
9398
      allow_undefined_flag_CXX='-berok'
 
9399
      # Determine the default libpath from the value encoded in an empty executable.
 
9400
      cat >conftest.$ac_ext <<_ACEOF
 
9401
/* confdefs.h.  */
 
9402
_ACEOF
 
9403
cat confdefs.h >>conftest.$ac_ext
 
9404
cat >>conftest.$ac_ext <<_ACEOF
 
9405
/* end confdefs.h.  */
 
9406
 
 
9407
int
 
9408
main ()
 
9409
{
 
9410
 
 
9411
  ;
 
9412
  return 0;
 
9413
}
 
9414
_ACEOF
 
9415
rm -f conftest.$ac_objext conftest$ac_exeext
 
9416
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9417
  (eval $ac_link) 2>conftest.er1
 
9418
  ac_status=$?
 
9419
  grep -v '^ *+' conftest.er1 >conftest.err
 
9420
  rm -f conftest.er1
 
9421
  cat conftest.err >&5
 
9422
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9423
  (exit $ac_status); } &&
 
9424
         { ac_try='test -z "$ac_cxx_werror_flag"
 
9425
                         || test ! -s conftest.err'
 
9426
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9427
  (eval $ac_try) 2>&5
 
9428
  ac_status=$?
 
9429
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9430
  (exit $ac_status); }; } &&
 
9431
         { ac_try='test -s conftest$ac_exeext'
 
9432
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9433
  (eval $ac_try) 2>&5
 
9434
  ac_status=$?
 
9435
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9436
  (exit $ac_status); }; }; then
 
9437
 
 
9438
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
9439
}'`
 
9440
# Check for a 64-bit object if we didn't find anything.
 
9441
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; }
 
9442
}'`; fi
 
9443
else
 
9444
  echo "$as_me: failed program was:" >&5
 
9445
sed 's/^/| /' conftest.$ac_ext >&5
 
9446
 
 
9447
fi
 
9448
rm -f conftest.err conftest.$ac_objext \
 
9449
      conftest$ac_exeext conftest.$ac_ext
 
9450
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
9451
 
 
9452
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
9453
 
 
9454
      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"
 
9455
     else
 
9456
      if test "$host_cpu" = ia64; then
 
9457
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
 
9458
        allow_undefined_flag_CXX="-z nodefs"
 
9459
        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"
 
9460
      else
 
9461
        # Determine the default libpath from the value encoded in an empty executable.
 
9462
        cat >conftest.$ac_ext <<_ACEOF
 
9463
/* confdefs.h.  */
 
9464
_ACEOF
 
9465
cat confdefs.h >>conftest.$ac_ext
 
9466
cat >>conftest.$ac_ext <<_ACEOF
 
9467
/* end confdefs.h.  */
 
9468
 
 
9469
int
 
9470
main ()
 
9471
{
 
9472
 
 
9473
  ;
 
9474
  return 0;
 
9475
}
 
9476
_ACEOF
 
9477
rm -f conftest.$ac_objext conftest$ac_exeext
 
9478
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9479
  (eval $ac_link) 2>conftest.er1
 
9480
  ac_status=$?
 
9481
  grep -v '^ *+' conftest.er1 >conftest.err
 
9482
  rm -f conftest.er1
 
9483
  cat conftest.err >&5
 
9484
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9485
  (exit $ac_status); } &&
 
9486
         { ac_try='test -z "$ac_cxx_werror_flag"
 
9487
                         || test ! -s conftest.err'
 
9488
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9489
  (eval $ac_try) 2>&5
 
9490
  ac_status=$?
 
9491
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9492
  (exit $ac_status); }; } &&
 
9493
         { ac_try='test -s conftest$ac_exeext'
 
9494
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9495
  (eval $ac_try) 2>&5
 
9496
  ac_status=$?
 
9497
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9498
  (exit $ac_status); }; }; then
 
9499
 
 
9500
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
9501
}'`
 
9502
# Check for a 64-bit object if we didn't find anything.
 
9503
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; }
 
9504
}'`; fi
 
9505
else
 
9506
  echo "$as_me: failed program was:" >&5
 
9507
sed 's/^/| /' conftest.$ac_ext >&5
 
9508
 
 
9509
fi
 
9510
rm -f conftest.err conftest.$ac_objext \
 
9511
      conftest$ac_exeext conftest.$ac_ext
 
9512
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
9513
 
 
9514
        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
9515
        # Warning - without using the other run time loading flags,
 
9516
        # -berok will link without error, but may produce a broken library.
 
9517
        no_undefined_flag_CXX=' ${wl}-bernotok'
 
9518
        allow_undefined_flag_CXX=' ${wl}-berok'
 
9519
        # -bexpall does not export symbols beginning with underscore (_)
 
9520
        always_export_symbols_CXX=yes
 
9521
        # Exported symbols can be pulled into shared objects from archives
 
9522
        whole_archive_flag_spec_CXX=' '
 
9523
        archive_cmds_need_lc_CXX=yes
 
9524
        # This is similar to how AIX traditionally builds it's shared libraries.
 
9525
        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'
 
9526
      fi
 
9527
    fi
 
9528
    ;;
 
9529
  chorus*)
 
9530
    case $cc_basename in
 
9531
      *)
 
9532
        # FIXME: insert proper C++ library support
 
9533
        ld_shlibs_CXX=no
 
9534
        ;;
 
9535
    esac
 
9536
    ;;
 
9537
 
 
9538
 
 
9539
  cygwin* | mingw* | pw32*)
 
9540
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
 
9541
    # as there is no search path for DLLs.
 
9542
    hardcode_libdir_flag_spec_CXX='-L$libdir'
 
9543
    allow_undefined_flag_CXX=unsupported
 
9544
    always_export_symbols_CXX=no
 
9545
    enable_shared_with_static_runtimes_CXX=yes
 
9546
 
 
9547
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
9548
      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'
 
9549
      # If the export-symbols file already is a .def file (1st line
 
9550
      # is EXPORTS), use it as is; otherwise, prepend...
 
9551
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
9552
        cp $export_symbols $output_objdir/$soname.def;
 
9553
      else
 
9554
        echo EXPORTS > $output_objdir/$soname.def;
 
9555
        cat $export_symbols >> $output_objdir/$soname.def;
 
9556
      fi~
 
9557
      $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'
 
9558
    else
 
9559
      ld_shlibs_CXX=no
 
9560
    fi
 
9561
  ;;
 
9562
      darwin* | rhapsody*)
 
9563
        case "$host_os" in
 
9564
        rhapsody* | darwin1.[012])
 
9565
         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
 
9566
         ;;
 
9567
       *) # Darwin 1.3 on
 
9568
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
9569
           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
9570
         else
 
9571
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
9572
             10.[012])
 
9573
               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
9574
               ;;
 
9575
             10.*)
 
9576
               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
 
9577
               ;;
 
9578
           esac
 
9579
         fi
 
9580
         ;;
 
9581
        esac
 
9582
      archive_cmds_need_lc_CXX=no
 
9583
      hardcode_direct_CXX=no
 
9584
      hardcode_automatic_CXX=yes
 
9585
      hardcode_shlibpath_var_CXX=unsupported
 
9586
      whole_archive_flag_spec_CXX=''
 
9587
      link_all_deplibs_CXX=yes
 
9588
 
 
9589
    if test "$GXX" = yes ; then
 
9590
      lt_int_apple_cc_single_mod=no
 
9591
      output_verbose_link_cmd='echo'
 
9592
      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
 
9593
       lt_int_apple_cc_single_mod=yes
 
9594
      fi
 
9595
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
9596
       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
9597
      else
 
9598
          archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
9599
        fi
 
9600
        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
9601
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
9602
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
9603
            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}'
 
9604
          else
 
9605
            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
9606
          fi
 
9607
            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}'
 
9608
      else
 
9609
      case $cc_basename in
 
9610
        xlc*)
 
9611
         output_verbose_link_cmd='echo'
 
9612
          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
9613
          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
9614
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
9615
          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
9616
          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}'
 
9617
          ;;
 
9618
       *)
 
9619
         ld_shlibs_CXX=no
 
9620
          ;;
 
9621
      esac
 
9622
      fi
 
9623
        ;;
 
9624
 
 
9625
  dgux*)
 
9626
    case $cc_basename in
 
9627
      ec++*)
 
9628
        # FIXME: insert proper C++ library support
 
9629
        ld_shlibs_CXX=no
 
9630
        ;;
 
9631
      ghcx*)
 
9632
        # Green Hills C++ Compiler
 
9633
        # FIXME: insert proper C++ library support
 
9634
        ld_shlibs_CXX=no
 
9635
        ;;
 
9636
      *)
 
9637
        # FIXME: insert proper C++ library support
 
9638
        ld_shlibs_CXX=no
 
9639
        ;;
 
9640
    esac
 
9641
    ;;
 
9642
  freebsd[12]*)
 
9643
    # C++ shared libraries reported to be fairly broken before switch to ELF
 
9644
    ld_shlibs_CXX=no
 
9645
    ;;
 
9646
  freebsd-elf*)
 
9647
    archive_cmds_need_lc_CXX=no
 
9648
    ;;
 
9649
  freebsd* | kfreebsd*-gnu | dragonfly*)
 
9650
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
9651
    # conventions
 
9652
    ld_shlibs_CXX=yes
 
9653
    ;;
 
9654
  gnu*)
 
9655
    ;;
 
9656
  hpux9*)
 
9657
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
9658
    hardcode_libdir_separator_CXX=:
 
9659
    export_dynamic_flag_spec_CXX='${wl}-E'
 
9660
    hardcode_direct_CXX=yes
 
9661
    hardcode_minus_L_CXX=yes # Not in the search PATH,
 
9662
                                # but as the default
 
9663
                                # location of the library.
 
9664
 
 
9665
    case $cc_basename in
 
9666
    CC*)
 
9667
      # FIXME: insert proper C++ library support
 
9668
      ld_shlibs_CXX=no
 
9669
      ;;
 
9670
    aCC*)
 
9671
      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'
 
9672
      # Commands to make compiler produce verbose output that lists
 
9673
      # what "hidden" libraries, object files and flags are used when
 
9674
      # linking a shared library.
 
9675
      #
 
9676
      # There doesn't appear to be a way to prevent this compiler from
 
9677
      # explicitly linking system object files so we need to strip them
 
9678
      # from the output so that they don't get included in the library
 
9679
      # dependencies.
 
9680
      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'
 
9681
      ;;
 
9682
    *)
 
9683
      if test "$GXX" = yes; then
 
9684
        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'
 
9685
      else
 
9686
        # FIXME: insert proper C++ library support
 
9687
        ld_shlibs_CXX=no
 
9688
      fi
 
9689
      ;;
 
9690
    esac
 
9691
    ;;
 
9692
  hpux10*|hpux11*)
 
9693
    if test $with_gnu_ld = no; then
 
9694
      case "$host_cpu" in
 
9695
      hppa*64*)
 
9696
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
9697
        hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
 
9698
        hardcode_libdir_separator_CXX=:
 
9699
        ;;
 
9700
      ia64*)
 
9701
        hardcode_libdir_flag_spec_CXX='-L$libdir'
 
9702
        ;;
 
9703
      *)
 
9704
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
9705
        hardcode_libdir_separator_CXX=:
 
9706
        export_dynamic_flag_spec_CXX='${wl}-E'
 
9707
        ;;
 
9708
      esac
 
9709
    fi
 
9710
    case "$host_cpu" in
 
9711
    hppa*64*)
 
9712
      hardcode_direct_CXX=no
 
9713
      hardcode_shlibpath_var_CXX=no
 
9714
      ;;
 
9715
    ia64*)
 
9716
      hardcode_direct_CXX=no
 
9717
      hardcode_shlibpath_var_CXX=no
 
9718
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
9719
                                              # but as the default
 
9720
                                              # location of the library.
 
9721
      ;;
 
9722
    *)
 
9723
      hardcode_direct_CXX=yes
 
9724
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
9725
                                              # but as the default
 
9726
                                              # location of the library.
 
9727
      ;;
 
9728
    esac
 
9729
 
 
9730
    case $cc_basename in
 
9731
      CC*)
 
9732
        # FIXME: insert proper C++ library support
 
9733
        ld_shlibs_CXX=no
 
9734
        ;;
 
9735
      aCC*)
 
9736
        case "$host_cpu" in
 
9737
        hppa*64*|ia64*)
 
9738
          archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
9739
          ;;
 
9740
        *)
 
9741
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
9742
          ;;
 
9743
        esac
 
9744
        # Commands to make compiler produce verbose output that lists
 
9745
        # what "hidden" libraries, object files and flags are used when
 
9746
        # linking a shared library.
 
9747
        #
 
9748
        # There doesn't appear to be a way to prevent this compiler from
 
9749
        # explicitly linking system object files so we need to strip them
 
9750
        # from the output so that they don't get included in the library
 
9751
        # dependencies.
 
9752
        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'
 
9753
        ;;
 
9754
      *)
 
9755
        if test "$GXX" = yes; then
 
9756
          if test $with_gnu_ld = no; then
 
9757
            case "$host_cpu" in
 
9758
            ia64*|hppa*64*)
 
9759
              archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
9760
              ;;
 
9761
            *)
 
9762
              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'
 
9763
              ;;
 
9764
            esac
 
9765
          fi
 
9766
        else
 
9767
          # FIXME: insert proper C++ library support
 
9768
          ld_shlibs_CXX=no
 
9769
        fi
 
9770
        ;;
 
9771
    esac
 
9772
    ;;
 
9773
  irix5* | irix6*)
 
9774
    case $cc_basename in
 
9775
      CC*)
 
9776
        # SGI C++
 
9777
        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 ${output_objdir}/so_locations -o $lib'
 
9778
 
 
9779
        # Archives containing C++ object files must be created using
 
9780
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
9781
        # necessary to make sure instantiated templates are included
 
9782
        # in the archive.
 
9783
        old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
9784
        ;;
 
9785
      *)
 
9786
        if test "$GXX" = yes; then
 
9787
          if test "$with_gnu_ld" = no; then
 
9788
            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}${output_objdir}/so_locations -o $lib'
 
9789
          else
 
9790
            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'
 
9791
          fi
 
9792
        fi
 
9793
        link_all_deplibs_CXX=yes
 
9794
        ;;
 
9795
    esac
 
9796
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
9797
    hardcode_libdir_separator_CXX=:
 
9798
    ;;
 
9799
  linux*)
 
9800
    case $cc_basename in
 
9801
      KCC*)
 
9802
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
9803
 
 
9804
        # KCC will only create a shared library if the output file
 
9805
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
9806
        # to its proper name (with version) after linking.
 
9807
        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'
 
9808
        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'
 
9809
        # Commands to make compiler produce verbose output that lists
 
9810
        # what "hidden" libraries, object files and flags are used when
 
9811
        # linking a shared library.
 
9812
        #
 
9813
        # There doesn't appear to be a way to prevent this compiler from
 
9814
        # explicitly linking system object files so we need to strip them
 
9815
        # from the output so that they don't get included in the library
 
9816
        # dependencies.
 
9817
        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'
 
9818
 
 
9819
        hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
 
9820
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
9821
 
 
9822
        # Archives containing C++ object files must be created using
 
9823
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
9824
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
9825
        ;;
 
9826
      icpc*)
 
9827
        # Intel C++
 
9828
        with_gnu_ld=yes
 
9829
        # version 8.0 and above of icpc choke on multiply defined symbols
 
9830
        # if we add $predep_objects and $postdep_objects, however 7.1 and
 
9831
        # earlier do not add the objects themselves.
 
9832
        case `$CC -V 2>&1` in
 
9833
        *"Version 7."*)
 
9834
          archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9835
          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'
 
9836
          ;;
 
9837
        *)  # Version 8.0 or newer
 
9838
          tmp_idyn=
 
9839
          case $host_cpu in
 
9840
            ia64*) tmp_idyn=' -i_dynamic';;
 
9841
          esac
 
9842
          archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9843
          archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
9844
          ;;
 
9845
        esac
 
9846
        archive_cmds_need_lc_CXX=no
 
9847
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
9848
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
9849
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
9850
        ;;
 
9851
      pgCC*)
 
9852
        # Portland Group C++ compiler
 
9853
        archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
9854
        archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
 
9855
 
 
9856
        hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
9857
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
9858
        whole_archive_flag_spec_CXX='${wl}--whole-archive,`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
9859
        ;;
 
9860
      cxx*)
 
9861
        # Compaq C++
 
9862
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9863
        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'
 
9864
 
 
9865
        runpath_var=LD_RUN_PATH
 
9866
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
9867
        hardcode_libdir_separator_CXX=:
 
9868
 
 
9869
        # Commands to make compiler produce verbose output that lists
 
9870
        # what "hidden" libraries, object files and flags are used when
 
9871
        # linking a shared library.
 
9872
        #
 
9873
        # There doesn't appear to be a way to prevent this compiler from
 
9874
        # explicitly linking system object files so we need to strip them
 
9875
        # from the output so that they don't get included in the library
 
9876
        # dependencies.
 
9877
        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'
 
9878
        ;;
 
9879
    esac
 
9880
    ;;
 
9881
  lynxos*)
 
9882
    # FIXME: insert proper C++ library support
 
9883
    ld_shlibs_CXX=no
 
9884
    ;;
 
9885
  m88k*)
 
9886
    # FIXME: insert proper C++ library support
 
9887
    ld_shlibs_CXX=no
 
9888
    ;;
 
9889
  mvs*)
 
9890
    case $cc_basename in
 
9891
      cxx*)
 
9892
        # FIXME: insert proper C++ library support
 
9893
        ld_shlibs_CXX=no
 
9894
        ;;
 
9895
      *)
 
9896
        # FIXME: insert proper C++ library support
 
9897
        ld_shlibs_CXX=no
 
9898
        ;;
 
9899
    esac
 
9900
    ;;
 
9901
  netbsd*)
 
9902
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
9903
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
9904
      wlarc=
 
9905
      hardcode_libdir_flag_spec_CXX='-R$libdir'
 
9906
      hardcode_direct_CXX=yes
 
9907
      hardcode_shlibpath_var_CXX=no
 
9908
    fi
 
9909
    # Workaround some broken pre-1.5 toolchains
 
9910
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
9911
    ;;
 
9912
  openbsd2*)
 
9913
    # C++ shared libraries are fairly broken
 
9914
    ld_shlibs_CXX=no
 
9915
    ;;
 
9916
  openbsd*)
 
9917
    hardcode_direct_CXX=yes
 
9918
    hardcode_shlibpath_var_CXX=no
 
9919
    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
9920
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
9921
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
9922
      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 
9923
      export_dynamic_flag_spec_CXX='${wl}-E'
 
9924
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
9925
    fi
 
9926
    output_verbose_link_cmd='echo'
 
9927
    ;;
 
9928
  osf3*)
 
9929
    case $cc_basename in
 
9930
      KCC*)
 
9931
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
9932
 
 
9933
        # KCC will only create a shared library if the output file
 
9934
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
9935
        # to its proper name (with version) after linking.
 
9936
        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'
 
9937
 
 
9938
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
9939
        hardcode_libdir_separator_CXX=:
 
9940
 
 
9941
        # Archives containing C++ object files must be created using
 
9942
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
9943
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
9944
 
 
9945
        ;;
 
9946
      RCC*)
 
9947
        # Rational C++ 2.4.1
 
9948
        # FIXME: insert proper C++ library support
 
9949
        ld_shlibs_CXX=no
 
9950
        ;;
 
9951
      cxx*)
 
9952
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
9953
        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 ${output_objdir}/so_locations -o $lib'
 
9954
 
 
9955
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
9956
        hardcode_libdir_separator_CXX=:
 
9957
 
 
9958
        # Commands to make compiler produce verbose output that lists
 
9959
        # what "hidden" libraries, object files and flags are used when
 
9960
        # linking a shared library.
 
9961
        #
 
9962
        # There doesn't appear to be a way to prevent this compiler from
 
9963
        # explicitly linking system object files so we need to strip them
 
9964
        # from the output so that they don't get included in the library
 
9965
        # dependencies.
 
9966
        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'
 
9967
        ;;
 
9968
      *)
 
9969
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
9970
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
9971
          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}${output_objdir}/so_locations -o $lib'
 
9972
 
 
9973
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
9974
          hardcode_libdir_separator_CXX=:
 
9975
 
 
9976
          # Commands to make compiler produce verbose output that lists
 
9977
          # what "hidden" libraries, object files and flags are used when
 
9978
          # linking a shared library.
 
9979
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
9980
 
 
9981
        else
 
9982
          # FIXME: insert proper C++ library support
 
9983
          ld_shlibs_CXX=no
 
9984
        fi
 
9985
        ;;
 
9986
    esac
 
9987
    ;;
 
9988
  osf4* | osf5*)
 
9989
    case $cc_basename in
 
9990
      KCC*)
 
9991
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
9992
 
 
9993
        # KCC will only create a shared library if the output file
 
9994
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
9995
        # to its proper name (with version) after linking.
 
9996
        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'
 
9997
 
 
9998
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
9999
        hardcode_libdir_separator_CXX=:
 
10000
 
 
10001
        # Archives containing C++ object files must be created using
 
10002
        # the KAI C++ compiler.
 
10003
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
 
10004
        ;;
 
10005
      RCC*)
 
10006
        # Rational C++ 2.4.1
 
10007
        # FIXME: insert proper C++ library support
 
10008
        ld_shlibs_CXX=no
 
10009
        ;;
 
10010
      cxx*)
 
10011
        allow_undefined_flag_CXX=' -expect_unresolved \*'
 
10012
        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 ${output_objdir}/so_locations -o $lib'
 
10013
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
10014
          echo "-hidden">> $lib.exp~
 
10015
          $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 ${output_objdir}/so_locations -o $lib~
 
10016
          $rm $lib.exp'
 
10017
 
 
10018
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
10019
        hardcode_libdir_separator_CXX=:
 
10020
 
 
10021
        # Commands to make compiler produce verbose output that lists
 
10022
        # what "hidden" libraries, object files and flags are used when
 
10023
        # linking a shared library.
 
10024
        #
 
10025
        # There doesn't appear to be a way to prevent this compiler from
 
10026
        # explicitly linking system object files so we need to strip them
 
10027
        # from the output so that they don't get included in the library
 
10028
        # dependencies.
 
10029
        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'
 
10030
        ;;
 
10031
      *)
 
10032
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
10033
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
10034
         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}${output_objdir}/so_locations -o $lib'
 
10035
 
 
10036
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
10037
          hardcode_libdir_separator_CXX=:
 
10038
 
 
10039
          # Commands to make compiler produce verbose output that lists
 
10040
          # what "hidden" libraries, object files and flags are used when
 
10041
          # linking a shared library.
 
10042
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
10043
 
 
10044
        else
 
10045
          # FIXME: insert proper C++ library support
 
10046
          ld_shlibs_CXX=no
 
10047
        fi
 
10048
        ;;
 
10049
    esac
 
10050
    ;;
 
10051
  psos*)
 
10052
    # FIXME: insert proper C++ library support
 
10053
    ld_shlibs_CXX=no
 
10054
    ;;
 
10055
  sco*)
 
10056
    archive_cmds_need_lc_CXX=no
 
10057
    case $cc_basename in
 
10058
      CC*)
 
10059
        # FIXME: insert proper C++ library support
 
10060
        ld_shlibs_CXX=no
 
10061
        ;;
 
10062
      *)
 
10063
        # FIXME: insert proper C++ library support
 
10064
        ld_shlibs_CXX=no
 
10065
        ;;
 
10066
    esac
 
10067
    ;;
 
10068
  sunos4*)
 
10069
    case $cc_basename in
 
10070
      CC*)
 
10071
        # Sun C++ 4.x
 
10072
        # FIXME: insert proper C++ library support
 
10073
        ld_shlibs_CXX=no
 
10074
        ;;
 
10075
      lcc*)
 
10076
        # Lucid
 
10077
        # FIXME: insert proper C++ library support
 
10078
        ld_shlibs_CXX=no
 
10079
        ;;
 
10080
      *)
 
10081
        # FIXME: insert proper C++ library support
 
10082
        ld_shlibs_CXX=no
 
10083
        ;;
 
10084
    esac
 
10085
    ;;
 
10086
  solaris*)
 
10087
    case $cc_basename in
 
10088
      CC*)
 
10089
        # Sun C++ 4.2, 5.x and Centerline C++
 
10090
        no_undefined_flag_CXX=' -zdefs'
 
10091
        archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
10092
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
10093
        $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'
 
10094
 
 
10095
        hardcode_libdir_flag_spec_CXX='-R$libdir'
 
10096
        hardcode_shlibpath_var_CXX=no
 
10097
        case $host_os in
 
10098
          solaris2.[0-5] | solaris2.[0-5].*) ;;
 
10099
          *)
 
10100
            # The C++ compiler is used as linker so we must use $wl
 
10101
            # flag to pass the commands to the underlying system
 
10102
            # linker. We must also pass each convience library through
 
10103
            # to the system linker between allextract/defaultextract.
 
10104
            # The C++ compiler will combine linker options so we
 
10105
            # cannot just pass the convience library names through
 
10106
            # without $wl.
 
10107
            # Supported since Solaris 2.6 (maybe 2.5.1?)
 
10108
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
 
10109
            ;;
 
10110
        esac
 
10111
        link_all_deplibs_CXX=yes
 
10112
 
 
10113
        # Commands to make compiler produce verbose output that lists
 
10114
        # what "hidden" libraries, object files and flags are used when
 
10115
        # linking a shared library.
 
10116
        #
 
10117
        # There doesn't appear to be a way to prevent this compiler from
 
10118
        # explicitly linking system object files so we need to strip them
 
10119
        # from the output so that they don't get included in the library
 
10120
        # dependencies.
 
10121
        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'
 
10122
 
 
10123
        # Archives containing C++ object files must be created using
 
10124
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
10125
        # necessary to make sure instantiated templates are included
 
10126
        # in the archive.
 
10127
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
10128
        ;;
 
10129
      gcx*)
 
10130
        # Green Hills C++ Compiler
 
10131
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
10132
 
 
10133
        # The C++ compiler must be used to create the archive.
 
10134
        old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
10135
        ;;
 
10136
      *)
 
10137
        # GNU C++ compiler with Solaris linker
 
10138
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
10139
          no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
 
10140
          if $CC --version | grep -v '^2\.7' > /dev/null; then
 
10141
            archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
10142
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
10143
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
10144
 
 
10145
            # Commands to make compiler produce verbose output that lists
 
10146
            # what "hidden" libraries, object files and flags are used when
 
10147
            # linking a shared library.
 
10148
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
10149
          else
 
10150
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
10151
            # platform.
 
10152
            archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
10153
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
10154
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
10155
 
 
10156
            # Commands to make compiler produce verbose output that lists
 
10157
            # what "hidden" libraries, object files and flags are used when
 
10158
            # linking a shared library.
 
10159
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
10160
          fi
 
10161
 
 
10162
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
 
10163
        fi
 
10164
        ;;
 
10165
    esac
 
10166
    ;;
 
10167
  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
 
10168
    archive_cmds_need_lc_CXX=no
 
10169
    ;;
 
10170
  tandem*)
 
10171
    case $cc_basename in
 
10172
      NCC*)
 
10173
        # NonStop-UX NCC 3.20
 
10174
        # FIXME: insert proper C++ library support
 
10175
        ld_shlibs_CXX=no
 
10176
        ;;
 
10177
      *)
 
10178
        # FIXME: insert proper C++ library support
 
10179
        ld_shlibs_CXX=no
 
10180
        ;;
 
10181
    esac
 
10182
    ;;
 
10183
  vxworks*)
 
10184
    # FIXME: insert proper C++ library support
 
10185
    ld_shlibs_CXX=no
 
10186
    ;;
 
10187
  *)
 
10188
    # FIXME: insert proper C++ library support
 
10189
    ld_shlibs_CXX=no
 
10190
    ;;
 
10191
esac
 
10192
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
10193
echo "${ECHO_T}$ld_shlibs_CXX" >&6
 
10194
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
10195
 
 
10196
GCC_CXX="$GXX"
 
10197
LD_CXX="$LD"
 
10198
 
 
10199
## CAVEAT EMPTOR:
 
10200
## There is no encapsulation within the following macros, do not change
 
10201
## the running order or otherwise move them around unless you know exactly
 
10202
## what you are doing...
 
10203
 
 
10204
cat > conftest.$ac_ext <<EOF
 
10205
class Foo
 
10206
{
 
10207
public:
 
10208
  Foo (void) { a = 0; }
 
10209
private:
 
10210
  int a;
 
10211
};
 
10212
EOF
 
10213
 
 
10214
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
10215
  (eval $ac_compile) 2>&5
 
10216
  ac_status=$?
 
10217
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10218
  (exit $ac_status); }; then
 
10219
  # Parse the compiler output and extract the necessary
 
10220
  # objects, libraries and library flags.
 
10221
 
 
10222
  # Sentinel used to keep track of whether or not we are before
 
10223
  # the conftest object file.
 
10224
  pre_test_object_deps_done=no
 
10225
 
 
10226
  # The `*' in the case matches for architectures that use `case' in
 
10227
  # $output_verbose_cmd can trigger glob expansion during the loop
 
10228
  # eval without this substitution.
 
10229
  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
 
10230
 
 
10231
  for p in `eval $output_verbose_link_cmd`; do
 
10232
    case $p in
 
10233
 
 
10234
    -L* | -R* | -l*)
 
10235
       # Some compilers place space between "-{L,R}" and the path.
 
10236
       # Remove the space.
 
10237
       if test $p = "-L" \
 
10238
          || test $p = "-R"; then
 
10239
         prev=$p
 
10240
         continue
 
10241
       else
 
10242
         prev=
 
10243
       fi
 
10244
 
 
10245
       if test "$pre_test_object_deps_done" = no; then
 
10246
         case $p in
 
10247
         -L* | -R*)
 
10248
           # Internal compiler library paths should come after those
 
10249
           # provided the user.  The postdeps already come after the
 
10250
           # user supplied libs so there is no need to process them.
 
10251
           if test -z "$compiler_lib_search_path_CXX"; then
 
10252
             compiler_lib_search_path_CXX="${prev}${p}"
 
10253
           else
 
10254
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
 
10255
           fi
 
10256
           ;;
 
10257
         # The "-l" case would never come before the object being
 
10258
         # linked, so don't bother handling this case.
 
10259
         esac
 
10260
       else
 
10261
         if test -z "$postdeps_CXX"; then
 
10262
           postdeps_CXX="${prev}${p}"
 
10263
         else
 
10264
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
 
10265
         fi
 
10266
       fi
 
10267
       ;;
 
10268
 
 
10269
    *.$objext)
 
10270
       # This assumes that the test object file only shows up
 
10271
       # once in the compiler output.
 
10272
       if test "$p" = "conftest.$objext"; then
 
10273
         pre_test_object_deps_done=yes
 
10274
         continue
 
10275
       fi
 
10276
 
 
10277
       if test "$pre_test_object_deps_done" = no; then
 
10278
         if test -z "$predep_objects_CXX"; then
 
10279
           predep_objects_CXX="$p"
 
10280
         else
 
10281
           predep_objects_CXX="$predep_objects_CXX $p"
 
10282
         fi
 
10283
       else
 
10284
         if test -z "$postdep_objects_CXX"; then
 
10285
           postdep_objects_CXX="$p"
 
10286
         else
 
10287
           postdep_objects_CXX="$postdep_objects_CXX $p"
 
10288
         fi
 
10289
       fi
 
10290
       ;;
 
10291
 
 
10292
    *) ;; # Ignore the rest.
 
10293
 
 
10294
    esac
 
10295
  done
 
10296
 
 
10297
  # Clean up.
 
10298
  rm -f a.out a.exe
 
10299
else
 
10300
  echo "libtool.m4: error: problem compiling CXX test program"
 
10301
fi
 
10302
 
 
10303
$rm -f confest.$objext
 
10304
 
 
10305
case " $postdeps_CXX " in
 
10306
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
 
10307
esac
 
10308
 
 
10309
lt_prog_compiler_wl_CXX=
 
10310
lt_prog_compiler_pic_CXX=
 
10311
lt_prog_compiler_static_CXX=
 
10312
 
 
10313
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
10314
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
10315
 
 
10316
  # C++ specific cases for pic, static, wl, etc.
 
10317
  if test "$GXX" = yes; then
 
10318
    lt_prog_compiler_wl_CXX='-Wl,'
 
10319
    lt_prog_compiler_static_CXX='-static'
 
10320
 
 
10321
    case $host_os in
 
10322
    aix*)
 
10323
      # All AIX code is PIC.
 
10324
      if test "$host_cpu" = ia64; then
 
10325
        # AIX 5 now supports IA64 processor
 
10326
        lt_prog_compiler_static_CXX='-Bstatic'
 
10327
      fi
 
10328
      ;;
 
10329
    amigaos*)
 
10330
      # FIXME: we need at least 68020 code to build shared libraries, but
 
10331
      # adding the `-m68020' flag to GCC prevents building anything better,
 
10332
      # like `-m68040'.
 
10333
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
 
10334
      ;;
 
10335
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
10336
      # PIC is the default for these OSes.
 
10337
      ;;
 
10338
    mingw* | os2* | pw32*)
 
10339
      # This hack is so that the source file can tell whether it is being
 
10340
      # built for inclusion in a dll (and should export symbols for example).
 
10341
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
 
10342
      ;;
 
10343
    darwin* | rhapsody*)
 
10344
      # PIC is the default on this platform
 
10345
      # Common symbols not allowed in MH_DYLIB files
 
10346
      lt_prog_compiler_pic_CXX='-fno-common'
 
10347
      ;;
 
10348
    *djgpp*)
 
10349
      # DJGPP does not support shared libraries at all
 
10350
      lt_prog_compiler_pic_CXX=
 
10351
      ;;
 
10352
    sysv4*MP*)
 
10353
      if test -d /usr/nec; then
 
10354
        lt_prog_compiler_pic_CXX=-Kconform_pic
 
10355
      fi
 
10356
      ;;
 
10357
    hpux*)
 
10358
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
10359
      # not for PA HP-UX.
 
10360
      case "$host_cpu" in
 
10361
      hppa*64*|ia64*)
 
10362
        ;;
 
10363
      *)
 
10364
        lt_prog_compiler_pic_CXX='-fPIC'
 
10365
        ;;
 
10366
      esac
 
10367
      ;;
 
10368
    *)
 
10369
      lt_prog_compiler_pic_CXX='-fPIC'
 
10370
      ;;
 
10371
    esac
 
10372
  else
 
10373
    case $host_os in
 
10374
      aix4* | aix5*)
 
10375
        # All AIX code is PIC.
 
10376
        if test "$host_cpu" = ia64; then
 
10377
          # AIX 5 now supports IA64 processor
 
10378
          lt_prog_compiler_static_CXX='-Bstatic'
 
10379
        else
 
10380
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
 
10381
        fi
 
10382
        ;;
 
10383
      chorus*)
 
10384
        case $cc_basename in
 
10385
        cxch68*)
 
10386
          # Green Hills C++ Compiler
 
10387
          # _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"
 
10388
          ;;
 
10389
        esac
 
10390
        ;;
 
10391
       darwin*)
 
10392
         # PIC is the default on this platform
 
10393
         # Common symbols not allowed in MH_DYLIB files
 
10394
         case $cc_basename in
 
10395
           xlc*)
 
10396
           lt_prog_compiler_pic_CXX='-qnocommon'
 
10397
           lt_prog_compiler_wl_CXX='-Wl,'
 
10398
           ;;
 
10399
         esac
 
10400
       ;;
 
10401
      dgux*)
 
10402
        case $cc_basename in
 
10403
          ec++*)
 
10404
            lt_prog_compiler_pic_CXX='-KPIC'
 
10405
            ;;
 
10406
          ghcx*)
 
10407
            # Green Hills C++ Compiler
 
10408
            lt_prog_compiler_pic_CXX='-pic'
 
10409
            ;;
 
10410
          *)
 
10411
            ;;
 
10412
        esac
 
10413
        ;;
 
10414
      freebsd* | kfreebsd*-gnu | dragonfly*)
 
10415
        # FreeBSD uses GNU C++
 
10416
        ;;
 
10417
      hpux9* | hpux10* | hpux11*)
 
10418
        case $cc_basename in
 
10419
          CC*)
 
10420
            lt_prog_compiler_wl_CXX='-Wl,'
 
10421
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
10422
            if test "$host_cpu" != ia64; then
 
10423
              lt_prog_compiler_pic_CXX='+Z'
 
10424
            fi
 
10425
            ;;
 
10426
          aCC*)
 
10427
            lt_prog_compiler_wl_CXX='-Wl,'
 
10428
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
10429
            case "$host_cpu" in
 
10430
            hppa*64*|ia64*)
 
10431
              # +Z the default
 
10432
              ;;
 
10433
            *)
 
10434
              lt_prog_compiler_pic_CXX='+Z'
 
10435
              ;;
 
10436
            esac
 
10437
            ;;
 
10438
          *)
 
10439
            ;;
 
10440
        esac
 
10441
        ;;
 
10442
      irix5* | irix6* | nonstopux*)
 
10443
        case $cc_basename in
 
10444
          CC*)
 
10445
            lt_prog_compiler_wl_CXX='-Wl,'
 
10446
            lt_prog_compiler_static_CXX='-non_shared'
 
10447
            # CC pic flag -KPIC is the default.
 
10448
            ;;
 
10449
          *)
 
10450
            ;;
 
10451
        esac
 
10452
        ;;
 
10453
      linux*)
 
10454
        case $cc_basename in
 
10455
          KCC*)
 
10456
            # KAI C++ Compiler
 
10457
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
10458
            lt_prog_compiler_pic_CXX='-fPIC'
 
10459
            ;;
 
10460
          icpc* | ecpc*)
 
10461
            # Intel C++
 
10462
            lt_prog_compiler_wl_CXX='-Wl,'
 
10463
            lt_prog_compiler_pic_CXX='-KPIC'
 
10464
            lt_prog_compiler_static_CXX='-static'
 
10465
            ;;
 
10466
          pgCC*)
 
10467
            # Portland Group C++ compiler.
 
10468
            lt_prog_compiler_wl_CXX='-Wl,'
 
10469
            lt_prog_compiler_pic_CXX='-fpic'
 
10470
            lt_prog_compiler_static_CXX='-static'
 
10471
            ;;
 
10472
          cxx*)
 
10473
            # Compaq C++
 
10474
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
10475
            # Linux and Compaq Tru64 Unix objects are PIC.
 
10476
            lt_prog_compiler_pic_CXX=
 
10477
            lt_prog_compiler_static_CXX='-non_shared'
 
10478
            ;;
 
10479
          *)
 
10480
            ;;
 
10481
        esac
 
10482
        ;;
 
10483
      lynxos*)
 
10484
        ;;
 
10485
      m88k*)
 
10486
        ;;
 
10487
      mvs*)
 
10488
        case $cc_basename in
 
10489
          cxx*)
 
10490
            lt_prog_compiler_pic_CXX='-W c,exportall'
 
10491
            ;;
 
10492
          *)
 
10493
            ;;
 
10494
        esac
 
10495
        ;;
 
10496
      netbsd*)
 
10497
        ;;
 
10498
      osf3* | osf4* | osf5*)
 
10499
        case $cc_basename in
 
10500
          KCC*)
 
10501
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
10502
            ;;
 
10503
          RCC*)
 
10504
            # Rational C++ 2.4.1
 
10505
            lt_prog_compiler_pic_CXX='-pic'
 
10506
            ;;
 
10507
          cxx*)
 
10508
            # Digital/Compaq C++
 
10509
            lt_prog_compiler_wl_CXX='-Wl,'
 
10510
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
10511
            # Linux and Compaq Tru64 Unix objects are PIC.
 
10512
            lt_prog_compiler_pic_CXX=
 
10513
            lt_prog_compiler_static_CXX='-non_shared'
 
10514
            ;;
 
10515
          *)
 
10516
            ;;
 
10517
        esac
 
10518
        ;;
 
10519
      psos*)
 
10520
        ;;
 
10521
      sco*)
 
10522
        case $cc_basename in
 
10523
          CC*)
 
10524
            lt_prog_compiler_pic_CXX='-fPIC'
 
10525
            ;;
 
10526
          *)
 
10527
            ;;
 
10528
        esac
 
10529
        ;;
 
10530
      solaris*)
 
10531
        case $cc_basename in
 
10532
          CC*)
 
10533
            # Sun C++ 4.2, 5.x and Centerline C++
 
10534
            lt_prog_compiler_pic_CXX='-KPIC'
 
10535
            lt_prog_compiler_static_CXX='-Bstatic'
 
10536
            lt_prog_compiler_wl_CXX='-Qoption ld '
 
10537
            ;;
 
10538
          gcx*)
 
10539
            # Green Hills C++ Compiler
 
10540
            lt_prog_compiler_pic_CXX='-PIC'
 
10541
            ;;
 
10542
          *)
 
10543
            ;;
 
10544
        esac
 
10545
        ;;
 
10546
      sunos4*)
 
10547
        case $cc_basename in
 
10548
          CC*)
 
10549
            # Sun C++ 4.x
 
10550
            lt_prog_compiler_pic_CXX='-pic'
 
10551
            lt_prog_compiler_static_CXX='-Bstatic'
 
10552
            ;;
 
10553
          lcc*)
 
10554
            # Lucid
 
10555
            lt_prog_compiler_pic_CXX='-pic'
 
10556
            ;;
 
10557
          *)
 
10558
            ;;
 
10559
        esac
 
10560
        ;;
 
10561
      tandem*)
 
10562
        case $cc_basename in
 
10563
          NCC*)
 
10564
            # NonStop-UX NCC 3.20
 
10565
            lt_prog_compiler_pic_CXX='-KPIC'
 
10566
            ;;
 
10567
          *)
 
10568
            ;;
 
10569
        esac
 
10570
        ;;
 
10571
      unixware*)
 
10572
        ;;
 
10573
      vxworks*)
 
10574
        ;;
 
10575
      *)
 
10576
        lt_prog_compiler_can_build_shared_CXX=no
 
10577
        ;;
 
10578
    esac
 
10579
  fi
 
10580
 
 
10581
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
 
10582
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
 
10583
 
 
10584
#
 
10585
# Check to make sure the PIC flag actually works.
 
10586
#
 
10587
if test -n "$lt_prog_compiler_pic_CXX"; then
 
10588
 
 
10589
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
 
10590
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
 
10591
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
 
10592
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10593
else
 
10594
  lt_prog_compiler_pic_works_CXX=no
 
10595
  ac_outfile=conftest.$ac_objext
 
10596
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
10597
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
 
10598
   # Insert the option either (1) after the last *FLAGS variable, or
 
10599
   # (2) before a word containing "conftest.", or (3) at the end.
 
10600
   # Note that $ac_compile itself does not contain backslashes and begins
 
10601
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
10602
   # The option is referenced via a variable to avoid confusing sed.
 
10603
   lt_compile=`echo "$ac_compile" | $SED \
 
10604
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
10605
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
10606
   -e 's:$: $lt_compiler_flag:'`
 
10607
   (eval echo "\"\$as_me:10607: $lt_compile\"" >&5)
 
10608
   (eval "$lt_compile" 2>conftest.err)
 
10609
   ac_status=$?
 
10610
   cat conftest.err >&5
 
10611
   echo "$as_me:10611: \$? = $ac_status" >&5
 
10612
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
10613
     # The compiler can only warn and ignore the option if not recognized
 
10614
     # So say no if there are warnings other than the usual output.
 
10615
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
 
10616
     $SED '/^$/d' conftest.err >conftest.er2
 
10617
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
 
10618
       lt_prog_compiler_pic_works_CXX=yes
 
10619
     fi
 
10620
   fi
 
10621
   $rm conftest*
 
10622
 
 
10623
fi
 
10624
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
 
10625
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
 
10626
 
 
10627
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
 
10628
    case $lt_prog_compiler_pic_CXX in
 
10629
     "" | " "*) ;;
 
10630
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
 
10631
     esac
 
10632
else
 
10633
    lt_prog_compiler_pic_CXX=
 
10634
     lt_prog_compiler_can_build_shared_CXX=no
 
10635
fi
 
10636
 
 
10637
fi
 
10638
case "$host_os" in
 
10639
  # For platforms which do not support PIC, -DPIC is meaningless:
 
10640
  *djgpp*)
 
10641
    lt_prog_compiler_pic_CXX=
 
10642
    ;;
 
10643
  *)
 
10644
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
 
10645
    ;;
 
10646
esac
 
10647
 
 
10648
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
10649
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
10650
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
 
10651
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10652
else
 
10653
  lt_cv_prog_compiler_c_o_CXX=no
 
10654
   $rm -r conftest 2>/dev/null
 
10655
   mkdir conftest
 
10656
   cd conftest
 
10657
   mkdir out
 
10658
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
10659
 
 
10660
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
10661
   # Insert the option either (1) after the last *FLAGS variable, or
 
10662
   # (2) before a word containing "conftest.", or (3) at the end.
 
10663
   # Note that $ac_compile itself does not contain backslashes and begins
 
10664
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
10665
   lt_compile=`echo "$ac_compile" | $SED \
 
10666
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
10667
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
10668
   -e 's:$: $lt_compiler_flag:'`
 
10669
   (eval echo "\"\$as_me:10669: $lt_compile\"" >&5)
 
10670
   (eval "$lt_compile" 2>out/conftest.err)
 
10671
   ac_status=$?
 
10672
   cat out/conftest.err >&5
 
10673
   echo "$as_me:10673: \$? = $ac_status" >&5
 
10674
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
10675
   then
 
10676
     # The compiler can only warn and ignore the option if not recognized
 
10677
     # So say no if there are warnings
 
10678
     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
 
10679
     $SED '/^$/d' out/conftest.err >out/conftest.er2
 
10680
     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
10681
       lt_cv_prog_compiler_c_o_CXX=yes
 
10682
     fi
 
10683
   fi
 
10684
   chmod u+w .
 
10685
   $rm conftest*
 
10686
   # SGI C++ compiler will create directory out/ii_files/ for
 
10687
   # template instantiation
 
10688
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
10689
   $rm out/* && rmdir out
 
10690
   cd ..
 
10691
   rmdir conftest
 
10692
   $rm conftest*
 
10693
 
 
10694
fi
 
10695
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
10696
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
 
10697
 
 
10698
 
 
10699
hard_links="nottested"
 
10700
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
 
10701
  # do not overwrite the value of need_locks provided by the user
 
10702
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
10703
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
10704
  hard_links=yes
 
10705
  $rm conftest*
 
10706
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
10707
  touch conftest.a
 
10708
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
10709
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
10710
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
10711
echo "${ECHO_T}$hard_links" >&6
 
10712
  if test "$hard_links" = no; then
 
10713
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
10714
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
10715
    need_locks=warn
 
10716
  fi
 
10717
else
 
10718
  need_locks=no
 
10719
fi
 
10720
 
 
10721
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
10722
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
10723
 
 
10724
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
10725
  case $host_os in
 
10726
  aix4* | aix5*)
 
10727
    # If we're using GNU nm, then we don't want the "-C" option.
 
10728
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
10729
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
10730
      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'
 
10731
    else
 
10732
      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'
 
10733
    fi
 
10734
    ;;
 
10735
  pw32*)
 
10736
    export_symbols_cmds_CXX="$ltdll_cmds"
 
10737
  ;;
 
10738
  cygwin* | mingw*)
 
10739
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
10740
  ;;
 
10741
  *)
 
10742
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
10743
  ;;
 
10744
  esac
 
10745
 
 
10746
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
10747
echo "${ECHO_T}$ld_shlibs_CXX" >&6
 
10748
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
10749
 
 
10750
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
10751
if test "$GCC" = yes; then
 
10752
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
10753
fi
 
10754
 
 
10755
#
 
10756
# Do we need to explicitly link libc?
 
10757
#
 
10758
case "x$archive_cmds_need_lc_CXX" in
 
10759
x|xyes)
 
10760
  # Assume -lc should be added
 
10761
  archive_cmds_need_lc_CXX=yes
 
10762
 
 
10763
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
10764
    case $archive_cmds_CXX in
 
10765
    *'~'*)
 
10766
      # FIXME: we may have to deal with multi-command sequences.
 
10767
      ;;
 
10768
    '$CC '*)
 
10769
      # Test whether the compiler implicitly links with -lc since on some
 
10770
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
10771
      # to ld, don't add -lc before -lgcc.
 
10772
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
10773
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
10774
      $rm conftest*
 
10775
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
10776
 
 
10777
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
10778
  (eval $ac_compile) 2>&5
 
10779
  ac_status=$?
 
10780
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10781
  (exit $ac_status); } 2>conftest.err; then
 
10782
        soname=conftest
 
10783
        lib=conftest
 
10784
        libobjs=conftest.$ac_objext
 
10785
        deplibs=
 
10786
        wl=$lt_prog_compiler_wl_CXX
 
10787
        compiler_flags=-v
 
10788
        linker_flags=-v
 
10789
        verstring=
 
10790
        output_objdir=.
 
10791
        libname=conftest
 
10792
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
 
10793
        allow_undefined_flag_CXX=
 
10794
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
10795
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
10796
  ac_status=$?
 
10797
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10798
  (exit $ac_status); }
 
10799
        then
 
10800
          archive_cmds_need_lc_CXX=no
 
10801
        else
 
10802
          archive_cmds_need_lc_CXX=yes
 
10803
        fi
 
10804
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
 
10805
      else
 
10806
        cat conftest.err 1>&5
 
10807
      fi
 
10808
      $rm conftest*
 
10809
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
 
10810
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
 
10811
      ;;
 
10812
    esac
 
10813
  fi
 
10814
  ;;
 
10815
esac
 
10816
 
 
10817
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
10818
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
10819
library_names_spec=
 
10820
libname_spec='lib$name'
 
10821
soname_spec=
 
10822
shrext_cmds=".so"
 
10823
postinstall_cmds=
 
10824
postuninstall_cmds=
 
10825
finish_cmds=
 
10826
finish_eval=
 
10827
shlibpath_var=
 
10828
shlibpath_overrides_runpath=unknown
 
10829
version_type=none
 
10830
dynamic_linker="$host_os ld.so"
 
10831
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
10832
if test "$GCC" = yes; then
 
10833
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
10834
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
10835
    # if the path contains ";" then we assume it to be the separator
 
10836
    # otherwise default to the standard path separator (i.e. ":") - it is
 
10837
    # assumed that no part of a normal pathname contains ";" but that should
 
10838
    # okay in the real world where ";" in dirpaths is itself problematic.
 
10839
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
10840
  else
 
10841
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
10842
  fi
 
10843
else
 
10844
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
10845
fi
 
10846
need_lib_prefix=unknown
 
10847
hardcode_into_libs=no
 
10848
 
 
10849
# when you set need_version to no, make sure it does not cause -set_version
 
10850
# flags to be left without arguments
 
10851
need_version=unknown
 
10852
 
 
10853
case $host_os in
 
10854
aix3*)
 
10855
  version_type=linux
 
10856
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
10857
  shlibpath_var=LIBPATH
 
10858
 
 
10859
  # AIX 3 has no versioning support, so we append a major version to the name.
 
10860
  soname_spec='${libname}${release}${shared_ext}$major'
 
10861
  ;;
 
10862
 
 
10863
aix4* | aix5*)
 
10864
  version_type=linux
 
10865
  need_lib_prefix=no
 
10866
  need_version=no
 
10867
  hardcode_into_libs=yes
 
10868
  if test "$host_cpu" = ia64; then
 
10869
    # AIX 5 supports IA64
 
10870
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
10871
    shlibpath_var=LD_LIBRARY_PATH
 
10872
  else
 
10873
    # With GCC up to 2.95.x, collect2 would create an import file
 
10874
    # for dependence libraries.  The import file would start with
 
10875
    # the line `#! .'.  This would cause the generated library to
 
10876
    # depend on `.', always an invalid library.  This was fixed in
 
10877
    # development snapshots of GCC prior to 3.0.
 
10878
    case $host_os in
 
10879
      aix4 | aix4.[01] | aix4.[01].*)
 
10880
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
10881
           echo ' yes '
 
10882
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
10883
        :
 
10884
      else
 
10885
        can_build_shared=no
 
10886
      fi
 
10887
      ;;
 
10888
    esac
 
10889
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
10890
    # soname into executable. Probably we can add versioning support to
 
10891
    # collect2, so additional links can be useful in future.
 
10892
    if test "$aix_use_runtimelinking" = yes; then
 
10893
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
10894
      # instead of lib<name>.a to let people know that these are not
 
10895
      # typical AIX shared libraries.
 
10896
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10897
    else
 
10898
      # We preserve .a as extension for shared libraries through AIX4.2
 
10899
      # and later when we are not doing run time linking.
 
10900
      library_names_spec='${libname}${release}.a $libname.a'
 
10901
      soname_spec='${libname}${release}${shared_ext}$major'
 
10902
    fi
 
10903
    shlibpath_var=LIBPATH
 
10904
  fi
 
10905
  ;;
 
10906
 
 
10907
amigaos*)
 
10908
  library_names_spec='$libname.ixlibrary $libname.a'
 
10909
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
10910
  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'
 
10911
  ;;
 
10912
 
 
10913
beos*)
 
10914
  library_names_spec='${libname}${shared_ext}'
 
10915
  dynamic_linker="$host_os ld.so"
 
10916
  shlibpath_var=LIBRARY_PATH
 
10917
  ;;
 
10918
 
 
10919
bsdi[45]*)
 
10920
  version_type=linux
 
10921
  need_version=no
 
10922
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10923
  soname_spec='${libname}${release}${shared_ext}$major'
 
10924
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
10925
  shlibpath_var=LD_LIBRARY_PATH
 
10926
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
10927
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
10928
  # the default ld.so.conf also contains /usr/contrib/lib and
 
10929
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
10930
  # libtool to hard-code these into programs
 
10931
  ;;
 
10932
 
 
10933
cygwin* | mingw* | pw32*)
 
10934
  version_type=windows
 
10935
  shrext_cmds=".dll"
 
10936
  need_version=no
 
10937
  need_lib_prefix=no
 
10938
 
 
10939
  case $GCC,$host_os in
 
10940
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
10941
    library_names_spec='$libname.dll.a'
 
10942
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
10943
    postinstall_cmds='base_file=`basename \${file}`~
 
10944
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
10945
      dldir=$destdir/`dirname \$dlpath`~
 
10946
      test -d \$dldir || mkdir -p \$dldir~
 
10947
      $install_prog $dir/$dlname \$dldir/$dlname'
 
10948
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
10949
      dlpath=$dir/\$dldll~
 
10950
       $rm \$dlpath'
 
10951
    shlibpath_overrides_runpath=yes
 
10952
 
 
10953
    case $host_os in
 
10954
    cygwin*)
 
10955
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
10956
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
10957
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
10958
      ;;
 
10959
    mingw*)
 
10960
      # MinGW DLLs use traditional 'lib' prefix
 
10961
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
10962
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
10963
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
10964
        # It is most probably a Windows format PATH printed by
 
10965
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
10966
        # path with ; separators, and with drive letters. We can handle the
 
10967
        # drive letters (cygwin fileutils understands them), so leave them,
 
10968
        # especially as we might pass files found there to a mingw objdump,
 
10969
        # which wouldn't understand a cygwinified path. Ahh.
 
10970
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
10971
      else
 
10972
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
10973
      fi
 
10974
      ;;
 
10975
    pw32*)
 
10976
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
10977
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
10978
      ;;
 
10979
    esac
 
10980
    ;;
 
10981
 
 
10982
  *)
 
10983
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
10984
    ;;
 
10985
  esac
 
10986
  dynamic_linker='Win32 ld.exe'
 
10987
  # FIXME: first we should search . and the directory the executable is in
 
10988
  shlibpath_var=PATH
 
10989
  ;;
 
10990
 
 
10991
darwin* | rhapsody*)
 
10992
  dynamic_linker="$host_os dyld"
 
10993
  version_type=darwin
 
10994
  need_lib_prefix=no
 
10995
  need_version=no
 
10996
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
10997
  soname_spec='${libname}${release}${major}$shared_ext'
 
10998
  shlibpath_overrides_runpath=yes
 
10999
  shlibpath_var=DYLD_LIBRARY_PATH
 
11000
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
11001
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
11002
  if test "$GCC" = yes; then
 
11003
    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"`
 
11004
  else
 
11005
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
11006
  fi
 
11007
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
11008
  ;;
 
11009
 
 
11010
dgux*)
 
11011
  version_type=linux
 
11012
  need_lib_prefix=no
 
11013
  need_version=no
 
11014
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
11015
  soname_spec='${libname}${release}${shared_ext}$major'
 
11016
  shlibpath_var=LD_LIBRARY_PATH
 
11017
  ;;
 
11018
 
 
11019
freebsd1*)
 
11020
  dynamic_linker=no
 
11021
  ;;
 
11022
 
 
11023
kfreebsd*-gnu)
 
11024
  version_type=linux
 
11025
  need_lib_prefix=no
 
11026
  need_version=no
 
11027
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
11028
  soname_spec='${libname}${release}${shared_ext}$major'
 
11029
  shlibpath_var=LD_LIBRARY_PATH
 
11030
  shlibpath_overrides_runpath=no
 
11031
  hardcode_into_libs=yes
 
11032
  dynamic_linker='GNU ld.so'
 
11033
  ;;
 
11034
 
 
11035
freebsd* | dragonfly*)
 
11036
  # DragonFly does not have aout.  When/if they implement a new
 
11037
  # versioning mechanism, adjust this.
 
11038
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
11039
  version_type=freebsd-$objformat
 
11040
  case $version_type in
 
11041
    freebsd-elf*)
 
11042
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
11043
      need_version=no
 
11044
      need_lib_prefix=no
 
11045
      ;;
 
11046
    freebsd-*)
 
11047
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
11048
      need_version=yes
 
11049
      ;;
 
11050
  esac
 
11051
  shlibpath_var=LD_LIBRARY_PATH
 
11052
  case $host_os in
 
11053
  freebsd2*)
 
11054
    shlibpath_overrides_runpath=yes
 
11055
    ;;
 
11056
  freebsd3.[01]* | freebsdelf3.[01]*)
 
11057
    shlibpath_overrides_runpath=yes
 
11058
    hardcode_into_libs=yes
 
11059
    ;;
 
11060
  *) # from 3.2 on
 
11061
    shlibpath_overrides_runpath=no
 
11062
    hardcode_into_libs=yes
 
11063
    ;;
 
11064
  esac
 
11065
  ;;
 
11066
 
 
11067
gnu*)
 
11068
  version_type=linux
 
11069
  need_lib_prefix=no
 
11070
  need_version=no
 
11071
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
11072
  soname_spec='${libname}${release}${shared_ext}$major'
 
11073
  shlibpath_var=LD_LIBRARY_PATH
 
11074
  hardcode_into_libs=yes
 
11075
  ;;
 
11076
 
 
11077
hpux9* | hpux10* | hpux11*)
 
11078
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
11079
  # link against other versions.
 
11080
  version_type=sunos
 
11081
  need_lib_prefix=no
 
11082
  need_version=no
 
11083
  case "$host_cpu" in
 
11084
  ia64*)
 
11085
    shrext_cmds='.so'
 
11086
    hardcode_into_libs=yes
 
11087
    dynamic_linker="$host_os dld.so"
 
11088
    shlibpath_var=LD_LIBRARY_PATH
 
11089
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
11090
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11091
    soname_spec='${libname}${release}${shared_ext}$major'
 
11092
    if test "X$HPUX_IA64_MODE" = X32; then
 
11093
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
11094
    else
 
11095
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
11096
    fi
 
11097
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
11098
    ;;
 
11099
   hppa*64*)
 
11100
     shrext_cmds='.sl'
 
11101
     hardcode_into_libs=yes
 
11102
     dynamic_linker="$host_os dld.sl"
 
11103
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
11104
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
11105
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11106
     soname_spec='${libname}${release}${shared_ext}$major'
 
11107
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
11108
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
11109
     ;;
 
11110
   *)
 
11111
    shrext_cmds='.sl'
 
11112
    dynamic_linker="$host_os dld.sl"
 
11113
    shlibpath_var=SHLIB_PATH
 
11114
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
11115
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11116
    soname_spec='${libname}${release}${shared_ext}$major'
 
11117
    ;;
 
11118
  esac
 
11119
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
11120
  postinstall_cmds='chmod 555 $lib'
 
11121
  ;;
 
11122
 
 
11123
irix5* | irix6* | nonstopux*)
 
11124
  case $host_os in
 
11125
    nonstopux*) version_type=nonstopux ;;
 
11126
    *)
 
11127
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
11128
                version_type=linux
 
11129
        else
 
11130
                version_type=irix
 
11131
        fi ;;
 
11132
  esac
 
11133
  need_lib_prefix=no
 
11134
  need_version=no
 
11135
  soname_spec='${libname}${release}${shared_ext}$major'
 
11136
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
11137
  case $host_os in
 
11138
  irix5* | nonstopux*)
 
11139
    libsuff= shlibsuff=
 
11140
    ;;
 
11141
  *)
 
11142
    case $LD in # libtool.m4 will add one of these switches to LD
 
11143
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
11144
      libsuff= shlibsuff= libmagic=32-bit;;
 
11145
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
11146
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
11147
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
11148
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
11149
    *) libsuff= shlibsuff= libmagic=never-match;;
 
11150
    esac
 
11151
    ;;
 
11152
  esac
 
11153
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
11154
  shlibpath_overrides_runpath=no
 
11155
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
11156
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
11157
  hardcode_into_libs=yes
 
11158
  ;;
 
11159
 
 
11160
# No shared lib support for Linux oldld, aout, or coff.
 
11161
linux*oldld* | linux*aout* | linux*coff*)
 
11162
  dynamic_linker=no
 
11163
  ;;
 
11164
 
 
11165
# This must be Linux ELF.
 
11166
linux*)
 
11167
  version_type=linux
 
11168
  need_lib_prefix=no
 
11169
  need_version=no
 
11170
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11171
  soname_spec='${libname}${release}${shared_ext}$major'
 
11172
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
11173
  shlibpath_var=LD_LIBRARY_PATH
 
11174
  shlibpath_overrides_runpath=no
 
11175
  # This implies no fast_install, which is unacceptable.
 
11176
  # Some rework will be needed to allow for fast_install
 
11177
  # before this can be enabled.
 
11178
  hardcode_into_libs=yes
 
11179
 
 
11180
  # find out which ABI we are using
 
11181
  libsuff=
 
11182
  case "$host_cpu" in
 
11183
  x86_64*|s390x*|powerpc64*)
 
11184
    echo '#line 11184 "configure"' > conftest.$ac_ext
 
11185
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11186
  (eval $ac_compile) 2>&5
 
11187
  ac_status=$?
 
11188
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11189
  (exit $ac_status); }; then
 
11190
      case `/usr/bin/file conftest.$ac_objext` in
 
11191
      *64-bit*)
 
11192
        libsuff=64
 
11193
        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
 
11194
        ;;
 
11195
      esac
 
11196
    fi
 
11197
    rm -rf conftest*
 
11198
    ;;
 
11199
  esac
 
11200
 
 
11201
  # Append ld.so.conf contents to the search path
 
11202
  if test -f /etc/ld.so.conf; then
 
11203
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
11204
    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
 
11205
  fi
 
11206
 
 
11207
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
11208
  # powerpc, because MkLinux only supported shared libraries with the
 
11209
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
11210
  # most powerpc-linux boxes support dynamic linking these days and
 
11211
  # people can always --disable-shared, the test was removed, and we
 
11212
  # assume the GNU/Linux dynamic linker is in use.
 
11213
  dynamic_linker='GNU/Linux ld.so'
 
11214
  ;;
 
11215
 
 
11216
knetbsd*-gnu)
 
11217
  version_type=linux
 
11218
  need_lib_prefix=no
 
11219
  need_version=no
 
11220
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
11221
  soname_spec='${libname}${release}${shared_ext}$major'
 
11222
  shlibpath_var=LD_LIBRARY_PATH
 
11223
  shlibpath_overrides_runpath=no
 
11224
  hardcode_into_libs=yes
 
11225
  dynamic_linker='GNU ld.so'
 
11226
  ;;
 
11227
 
 
11228
netbsd*)
 
11229
  version_type=sunos
 
11230
  need_lib_prefix=no
 
11231
  need_version=no
 
11232
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
11233
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
11234
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
11235
    dynamic_linker='NetBSD (a.out) ld.so'
 
11236
  else
 
11237
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
11238
    soname_spec='${libname}${release}${shared_ext}$major'
 
11239
    dynamic_linker='NetBSD ld.elf_so'
 
11240
  fi
 
11241
  shlibpath_var=LD_LIBRARY_PATH
 
11242
  shlibpath_overrides_runpath=yes
 
11243
  hardcode_into_libs=yes
 
11244
  ;;
 
11245
 
 
11246
newsos6)
 
11247
  version_type=linux
 
11248
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11249
  shlibpath_var=LD_LIBRARY_PATH
 
11250
  shlibpath_overrides_runpath=yes
 
11251
  ;;
 
11252
 
 
11253
nto-qnx*)
 
11254
  version_type=linux
 
11255
  need_lib_prefix=no
 
11256
  need_version=no
 
11257
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11258
  soname_spec='${libname}${release}${shared_ext}$major'
 
11259
  shlibpath_var=LD_LIBRARY_PATH
 
11260
  shlibpath_overrides_runpath=yes
 
11261
  ;;
 
11262
 
 
11263
openbsd*)
 
11264
  version_type=sunos
 
11265
  need_lib_prefix=no
 
11266
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
11267
  case $host_os in
 
11268
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
11269
    *)                         need_version=no  ;;
 
11270
  esac
 
11271
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
11272
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
11273
  shlibpath_var=LD_LIBRARY_PATH
 
11274
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
11275
    case $host_os in
 
11276
      openbsd2.[89] | openbsd2.[89].*)
 
11277
        shlibpath_overrides_runpath=no
 
11278
        ;;
 
11279
      *)
 
11280
        shlibpath_overrides_runpath=yes
 
11281
        ;;
 
11282
      esac
 
11283
  else
 
11284
    shlibpath_overrides_runpath=yes
 
11285
  fi
 
11286
  ;;
 
11287
 
 
11288
os2*)
 
11289
  libname_spec='$name'
 
11290
  shrext_cmds=".dll"
 
11291
  need_lib_prefix=no
 
11292
  library_names_spec='$libname${shared_ext} $libname.a'
 
11293
  dynamic_linker='OS/2 ld.exe'
 
11294
  shlibpath_var=LIBPATH
 
11295
  ;;
 
11296
 
 
11297
osf3* | osf4* | osf5*)
 
11298
  version_type=osf
 
11299
  need_lib_prefix=no
 
11300
  need_version=no
 
11301
  soname_spec='${libname}${release}${shared_ext}$major'
 
11302
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11303
  shlibpath_var=LD_LIBRARY_PATH
 
11304
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
11305
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
11306
  ;;
 
11307
 
 
11308
sco3.2v5*)
 
11309
  version_type=osf
 
11310
  soname_spec='${libname}${release}${shared_ext}$major'
 
11311
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11312
  shlibpath_var=LD_LIBRARY_PATH
 
11313
  ;;
 
11314
 
 
11315
solaris*)
 
11316
  version_type=linux
 
11317
  need_lib_prefix=no
 
11318
  need_version=no
 
11319
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11320
  soname_spec='${libname}${release}${shared_ext}$major'
 
11321
  shlibpath_var=LD_LIBRARY_PATH
 
11322
  shlibpath_overrides_runpath=yes
 
11323
  hardcode_into_libs=yes
 
11324
  # ldd complains unless libraries are executable
 
11325
  postinstall_cmds='chmod +x $lib'
 
11326
  ;;
 
11327
 
 
11328
sunos4*)
 
11329
  version_type=sunos
 
11330
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
11331
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
11332
  shlibpath_var=LD_LIBRARY_PATH
 
11333
  shlibpath_overrides_runpath=yes
 
11334
  if test "$with_gnu_ld" = yes; then
 
11335
    need_lib_prefix=no
 
11336
  fi
 
11337
  need_version=yes
 
11338
  ;;
 
11339
 
 
11340
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
11341
  version_type=linux
 
11342
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11343
  soname_spec='${libname}${release}${shared_ext}$major'
 
11344
  shlibpath_var=LD_LIBRARY_PATH
 
11345
  case $host_vendor in
 
11346
    sni)
 
11347
      shlibpath_overrides_runpath=no
 
11348
      need_lib_prefix=no
 
11349
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
11350
      runpath_var=LD_RUN_PATH
 
11351
      ;;
 
11352
    siemens)
 
11353
      need_lib_prefix=no
 
11354
      ;;
 
11355
    motorola)
 
11356
      need_lib_prefix=no
 
11357
      need_version=no
 
11358
      shlibpath_overrides_runpath=no
 
11359
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
11360
      ;;
 
11361
  esac
 
11362
  ;;
 
11363
 
 
11364
sysv4*MP*)
 
11365
  if test -d /usr/nec ;then
 
11366
    version_type=linux
 
11367
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
11368
    soname_spec='$libname${shared_ext}.$major'
 
11369
    shlibpath_var=LD_LIBRARY_PATH
 
11370
  fi
 
11371
  ;;
 
11372
 
 
11373
uts4*)
 
11374
  version_type=linux
 
11375
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11376
  soname_spec='${libname}${release}${shared_ext}$major'
 
11377
  shlibpath_var=LD_LIBRARY_PATH
 
11378
  ;;
 
11379
 
 
11380
*)
 
11381
  dynamic_linker=no
 
11382
  ;;
 
11383
esac
 
11384
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
11385
echo "${ECHO_T}$dynamic_linker" >&6
 
11386
test "$dynamic_linker" = no && can_build_shared=no
 
11387
 
 
11388
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
11389
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
11390
hardcode_action_CXX=
 
11391
if test -n "$hardcode_libdir_flag_spec_CXX" || \
 
11392
   test -n "$runpath_var_CXX" || \
 
11393
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
 
11394
 
 
11395
  # We can hardcode non-existant directories.
 
11396
  if test "$hardcode_direct_CXX" != no &&
 
11397
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
11398
     # have to relink, otherwise we might link with an installed library
 
11399
     # when we should be linking with a yet-to-be-installed one
 
11400
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
 
11401
     test "$hardcode_minus_L_CXX" != no; then
 
11402
    # Linking always hardcodes the temporary library directory.
 
11403
    hardcode_action_CXX=relink
 
11404
  else
 
11405
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
11406
    hardcode_action_CXX=immediate
 
11407
  fi
 
11408
else
 
11409
  # We cannot hardcode anything, or else we can only hardcode existing
 
11410
  # directories.
 
11411
  hardcode_action_CXX=unsupported
 
11412
fi
 
11413
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
 
11414
echo "${ECHO_T}$hardcode_action_CXX" >&6
 
11415
 
 
11416
if test "$hardcode_action_CXX" = relink; then
 
11417
  # Fast installation is not supported
 
11418
  enable_fast_install=no
 
11419
elif test "$shlibpath_overrides_runpath" = yes ||
 
11420
     test "$enable_shared" = no; then
 
11421
  # Fast installation is not necessary
 
11422
  enable_fast_install=needless
 
11423
fi
 
11424
 
 
11425
striplib=
 
11426
old_striplib=
 
11427
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
11428
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
11429
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
11430
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
11431
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
11432
  echo "$as_me:$LINENO: result: yes" >&5
 
11433
echo "${ECHO_T}yes" >&6
 
11434
else
 
11435
# FIXME - insert some real tests, host_os isn't really good enough
 
11436
  case $host_os in
 
11437
   darwin*)
 
11438
       if test -n "$STRIP" ; then
 
11439
         striplib="$STRIP -x"
 
11440
         echo "$as_me:$LINENO: result: yes" >&5
 
11441
echo "${ECHO_T}yes" >&6
 
11442
       else
 
11443
  echo "$as_me:$LINENO: result: no" >&5
 
11444
echo "${ECHO_T}no" >&6
 
11445
fi
 
11446
       ;;
 
11447
   *)
 
11448
  echo "$as_me:$LINENO: result: no" >&5
 
11449
echo "${ECHO_T}no" >&6
 
11450
    ;;
 
11451
  esac
 
11452
fi
 
11453
 
 
11454
if test "x$enable_dlopen" != xyes; then
 
11455
  enable_dlopen=unknown
 
11456
  enable_dlopen_self=unknown
 
11457
  enable_dlopen_self_static=unknown
 
11458
else
 
11459
  lt_cv_dlopen=no
 
11460
  lt_cv_dlopen_libs=
 
11461
 
 
11462
  case $host_os in
 
11463
  beos*)
 
11464
    lt_cv_dlopen="load_add_on"
 
11465
    lt_cv_dlopen_libs=
 
11466
    lt_cv_dlopen_self=yes
 
11467
    ;;
 
11468
 
 
11469
  mingw* | pw32*)
 
11470
    lt_cv_dlopen="LoadLibrary"
 
11471
    lt_cv_dlopen_libs=
 
11472
   ;;
 
11473
 
 
11474
  cygwin*)
 
11475
    lt_cv_dlopen="dlopen"
 
11476
    lt_cv_dlopen_libs=
 
11477
   ;;
 
11478
 
 
11479
  darwin*)
 
11480
  # if libdl is installed we need to link against it
 
11481
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
11482
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
11483
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
11484
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11485
else
 
11486
  ac_check_lib_save_LIBS=$LIBS
 
11487
LIBS="-ldl  $LIBS"
 
11488
cat >conftest.$ac_ext <<_ACEOF
 
11489
/* confdefs.h.  */
 
11490
_ACEOF
 
11491
cat confdefs.h >>conftest.$ac_ext
 
11492
cat >>conftest.$ac_ext <<_ACEOF
 
11493
/* end confdefs.h.  */
 
11494
 
 
11495
/* Override any gcc2 internal prototype to avoid an error.  */
 
11496
#ifdef __cplusplus
 
11497
extern "C"
 
11498
#endif
 
11499
/* We use char because int might match the return type of a gcc2
 
11500
   builtin and then its argument prototype would still apply.  */
 
11501
char dlopen ();
 
11502
int
 
11503
main ()
 
11504
{
 
11505
dlopen ();
 
11506
  ;
 
11507
  return 0;
 
11508
}
 
11509
_ACEOF
 
11510
rm -f conftest.$ac_objext conftest$ac_exeext
 
11511
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11512
  (eval $ac_link) 2>conftest.er1
 
11513
  ac_status=$?
 
11514
  grep -v '^ *+' conftest.er1 >conftest.err
 
11515
  rm -f conftest.er1
 
11516
  cat conftest.err >&5
 
11517
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11518
  (exit $ac_status); } &&
 
11519
         { ac_try='test -z "$ac_cxx_werror_flag"
 
11520
                         || test ! -s conftest.err'
 
11521
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11522
  (eval $ac_try) 2>&5
 
11523
  ac_status=$?
 
11524
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11525
  (exit $ac_status); }; } &&
 
11526
         { ac_try='test -s conftest$ac_exeext'
 
11527
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11528
  (eval $ac_try) 2>&5
 
11529
  ac_status=$?
 
11530
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11531
  (exit $ac_status); }; }; then
 
11532
  ac_cv_lib_dl_dlopen=yes
 
11533
else
 
11534
  echo "$as_me: failed program was:" >&5
 
11535
sed 's/^/| /' conftest.$ac_ext >&5
 
11536
 
 
11537
ac_cv_lib_dl_dlopen=no
 
11538
fi
 
11539
rm -f conftest.err conftest.$ac_objext \
 
11540
      conftest$ac_exeext conftest.$ac_ext
 
11541
LIBS=$ac_check_lib_save_LIBS
 
11542
fi
 
11543
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
11544
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
11545
if test $ac_cv_lib_dl_dlopen = yes; then
 
11546
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
11547
else
 
11548
 
 
11549
    lt_cv_dlopen="dyld"
 
11550
    lt_cv_dlopen_libs=
 
11551
    lt_cv_dlopen_self=yes
 
11552
 
 
11553
fi
 
11554
 
 
11555
   ;;
 
11556
 
 
11557
  *)
 
11558
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
11559
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
11560
if test "${ac_cv_func_shl_load+set}" = set; then
 
11561
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11562
else
 
11563
  cat >conftest.$ac_ext <<_ACEOF
 
11564
/* confdefs.h.  */
 
11565
_ACEOF
 
11566
cat confdefs.h >>conftest.$ac_ext
 
11567
cat >>conftest.$ac_ext <<_ACEOF
 
11568
/* end confdefs.h.  */
 
11569
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
11570
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
11571
#define shl_load innocuous_shl_load
 
11572
 
 
11573
/* System header to define __stub macros and hopefully few prototypes,
 
11574
    which can conflict with char shl_load (); below.
 
11575
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
11576
    <limits.h> exists even on freestanding compilers.  */
 
11577
 
 
11578
#ifdef __STDC__
 
11579
# include <limits.h>
 
11580
#else
 
11581
# include <assert.h>
 
11582
#endif
 
11583
 
 
11584
#undef shl_load
 
11585
 
 
11586
/* Override any gcc2 internal prototype to avoid an error.  */
 
11587
#ifdef __cplusplus
 
11588
extern "C"
 
11589
{
 
11590
#endif
 
11591
/* We use char because int might match the return type of a gcc2
 
11592
   builtin and then its argument prototype would still apply.  */
 
11593
char shl_load ();
 
11594
/* The GNU C library defines this for functions which it implements
 
11595
    to always fail with ENOSYS.  Some functions are actually named
 
11596
    something starting with __ and the normal name is an alias.  */
 
11597
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
11598
choke me
 
11599
#else
 
11600
char (*f) () = shl_load;
 
11601
#endif
 
11602
#ifdef __cplusplus
 
11603
}
 
11604
#endif
 
11605
 
 
11606
int
 
11607
main ()
 
11608
{
 
11609
return f != shl_load;
 
11610
  ;
 
11611
  return 0;
 
11612
}
 
11613
_ACEOF
 
11614
rm -f conftest.$ac_objext conftest$ac_exeext
 
11615
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11616
  (eval $ac_link) 2>conftest.er1
 
11617
  ac_status=$?
 
11618
  grep -v '^ *+' conftest.er1 >conftest.err
 
11619
  rm -f conftest.er1
 
11620
  cat conftest.err >&5
 
11621
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11622
  (exit $ac_status); } &&
 
11623
         { ac_try='test -z "$ac_cxx_werror_flag"
 
11624
                         || test ! -s conftest.err'
 
11625
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11626
  (eval $ac_try) 2>&5
 
11627
  ac_status=$?
 
11628
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11629
  (exit $ac_status); }; } &&
 
11630
         { ac_try='test -s conftest$ac_exeext'
 
11631
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11632
  (eval $ac_try) 2>&5
 
11633
  ac_status=$?
 
11634
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11635
  (exit $ac_status); }; }; then
 
11636
  ac_cv_func_shl_load=yes
 
11637
else
 
11638
  echo "$as_me: failed program was:" >&5
 
11639
sed 's/^/| /' conftest.$ac_ext >&5
 
11640
 
 
11641
ac_cv_func_shl_load=no
 
11642
fi
 
11643
rm -f conftest.err conftest.$ac_objext \
 
11644
      conftest$ac_exeext conftest.$ac_ext
 
11645
fi
 
11646
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
11647
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
11648
if test $ac_cv_func_shl_load = yes; then
 
11649
  lt_cv_dlopen="shl_load"
 
11650
else
 
11651
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
11652
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
11653
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
11654
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11655
else
 
11656
  ac_check_lib_save_LIBS=$LIBS
 
11657
LIBS="-ldld  $LIBS"
 
11658
cat >conftest.$ac_ext <<_ACEOF
 
11659
/* confdefs.h.  */
 
11660
_ACEOF
 
11661
cat confdefs.h >>conftest.$ac_ext
 
11662
cat >>conftest.$ac_ext <<_ACEOF
 
11663
/* end confdefs.h.  */
 
11664
 
 
11665
/* Override any gcc2 internal prototype to avoid an error.  */
 
11666
#ifdef __cplusplus
 
11667
extern "C"
 
11668
#endif
 
11669
/* We use char because int might match the return type of a gcc2
 
11670
   builtin and then its argument prototype would still apply.  */
 
11671
char shl_load ();
 
11672
int
 
11673
main ()
 
11674
{
 
11675
shl_load ();
 
11676
  ;
 
11677
  return 0;
 
11678
}
 
11679
_ACEOF
 
11680
rm -f conftest.$ac_objext conftest$ac_exeext
 
11681
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11682
  (eval $ac_link) 2>conftest.er1
 
11683
  ac_status=$?
 
11684
  grep -v '^ *+' conftest.er1 >conftest.err
 
11685
  rm -f conftest.er1
 
11686
  cat conftest.err >&5
 
11687
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11688
  (exit $ac_status); } &&
 
11689
         { ac_try='test -z "$ac_cxx_werror_flag"
 
11690
                         || test ! -s conftest.err'
 
11691
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11692
  (eval $ac_try) 2>&5
 
11693
  ac_status=$?
 
11694
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11695
  (exit $ac_status); }; } &&
 
11696
         { ac_try='test -s conftest$ac_exeext'
 
11697
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11698
  (eval $ac_try) 2>&5
 
11699
  ac_status=$?
 
11700
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11701
  (exit $ac_status); }; }; then
 
11702
  ac_cv_lib_dld_shl_load=yes
 
11703
else
 
11704
  echo "$as_me: failed program was:" >&5
 
11705
sed 's/^/| /' conftest.$ac_ext >&5
 
11706
 
 
11707
ac_cv_lib_dld_shl_load=no
 
11708
fi
 
11709
rm -f conftest.err conftest.$ac_objext \
 
11710
      conftest$ac_exeext conftest.$ac_ext
 
11711
LIBS=$ac_check_lib_save_LIBS
 
11712
fi
 
11713
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
11714
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
11715
if test $ac_cv_lib_dld_shl_load = yes; then
 
11716
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
11717
else
 
11718
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
11719
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
11720
if test "${ac_cv_func_dlopen+set}" = set; then
 
11721
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11722
else
 
11723
  cat >conftest.$ac_ext <<_ACEOF
 
11724
/* confdefs.h.  */
 
11725
_ACEOF
 
11726
cat confdefs.h >>conftest.$ac_ext
 
11727
cat >>conftest.$ac_ext <<_ACEOF
 
11728
/* end confdefs.h.  */
 
11729
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
11730
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
11731
#define dlopen innocuous_dlopen
 
11732
 
 
11733
/* System header to define __stub macros and hopefully few prototypes,
 
11734
    which can conflict with char dlopen (); below.
 
11735
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
11736
    <limits.h> exists even on freestanding compilers.  */
 
11737
 
 
11738
#ifdef __STDC__
 
11739
# include <limits.h>
 
11740
#else
 
11741
# include <assert.h>
 
11742
#endif
 
11743
 
 
11744
#undef dlopen
 
11745
 
 
11746
/* Override any gcc2 internal prototype to avoid an error.  */
 
11747
#ifdef __cplusplus
 
11748
extern "C"
 
11749
{
 
11750
#endif
 
11751
/* We use char because int might match the return type of a gcc2
 
11752
   builtin and then its argument prototype would still apply.  */
 
11753
char dlopen ();
 
11754
/* The GNU C library defines this for functions which it implements
 
11755
    to always fail with ENOSYS.  Some functions are actually named
 
11756
    something starting with __ and the normal name is an alias.  */
 
11757
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
11758
choke me
 
11759
#else
 
11760
char (*f) () = dlopen;
 
11761
#endif
 
11762
#ifdef __cplusplus
 
11763
}
 
11764
#endif
 
11765
 
 
11766
int
 
11767
main ()
 
11768
{
 
11769
return f != dlopen;
 
11770
  ;
 
11771
  return 0;
 
11772
}
 
11773
_ACEOF
 
11774
rm -f conftest.$ac_objext conftest$ac_exeext
 
11775
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11776
  (eval $ac_link) 2>conftest.er1
 
11777
  ac_status=$?
 
11778
  grep -v '^ *+' conftest.er1 >conftest.err
 
11779
  rm -f conftest.er1
 
11780
  cat conftest.err >&5
 
11781
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11782
  (exit $ac_status); } &&
 
11783
         { ac_try='test -z "$ac_cxx_werror_flag"
 
11784
                         || test ! -s conftest.err'
 
11785
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11786
  (eval $ac_try) 2>&5
 
11787
  ac_status=$?
 
11788
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11789
  (exit $ac_status); }; } &&
 
11790
         { ac_try='test -s conftest$ac_exeext'
 
11791
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11792
  (eval $ac_try) 2>&5
 
11793
  ac_status=$?
 
11794
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11795
  (exit $ac_status); }; }; then
 
11796
  ac_cv_func_dlopen=yes
 
11797
else
 
11798
  echo "$as_me: failed program was:" >&5
 
11799
sed 's/^/| /' conftest.$ac_ext >&5
 
11800
 
 
11801
ac_cv_func_dlopen=no
 
11802
fi
 
11803
rm -f conftest.err conftest.$ac_objext \
 
11804
      conftest$ac_exeext conftest.$ac_ext
 
11805
fi
 
11806
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
11807
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
11808
if test $ac_cv_func_dlopen = yes; then
 
11809
  lt_cv_dlopen="dlopen"
 
11810
else
 
11811
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
11812
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
11813
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
11814
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11815
else
 
11816
  ac_check_lib_save_LIBS=$LIBS
 
11817
LIBS="-ldl  $LIBS"
 
11818
cat >conftest.$ac_ext <<_ACEOF
 
11819
/* confdefs.h.  */
 
11820
_ACEOF
 
11821
cat confdefs.h >>conftest.$ac_ext
 
11822
cat >>conftest.$ac_ext <<_ACEOF
 
11823
/* end confdefs.h.  */
 
11824
 
 
11825
/* Override any gcc2 internal prototype to avoid an error.  */
 
11826
#ifdef __cplusplus
 
11827
extern "C"
 
11828
#endif
 
11829
/* We use char because int might match the return type of a gcc2
 
11830
   builtin and then its argument prototype would still apply.  */
 
11831
char dlopen ();
 
11832
int
 
11833
main ()
 
11834
{
 
11835
dlopen ();
 
11836
  ;
 
11837
  return 0;
 
11838
}
 
11839
_ACEOF
 
11840
rm -f conftest.$ac_objext conftest$ac_exeext
 
11841
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11842
  (eval $ac_link) 2>conftest.er1
 
11843
  ac_status=$?
 
11844
  grep -v '^ *+' conftest.er1 >conftest.err
 
11845
  rm -f conftest.er1
 
11846
  cat conftest.err >&5
 
11847
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11848
  (exit $ac_status); } &&
 
11849
         { ac_try='test -z "$ac_cxx_werror_flag"
 
11850
                         || test ! -s conftest.err'
 
11851
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11852
  (eval $ac_try) 2>&5
 
11853
  ac_status=$?
 
11854
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11855
  (exit $ac_status); }; } &&
 
11856
         { ac_try='test -s conftest$ac_exeext'
 
11857
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11858
  (eval $ac_try) 2>&5
 
11859
  ac_status=$?
 
11860
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11861
  (exit $ac_status); }; }; then
 
11862
  ac_cv_lib_dl_dlopen=yes
 
11863
else
 
11864
  echo "$as_me: failed program was:" >&5
 
11865
sed 's/^/| /' conftest.$ac_ext >&5
 
11866
 
 
11867
ac_cv_lib_dl_dlopen=no
 
11868
fi
 
11869
rm -f conftest.err conftest.$ac_objext \
 
11870
      conftest$ac_exeext conftest.$ac_ext
 
11871
LIBS=$ac_check_lib_save_LIBS
 
11872
fi
 
11873
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
11874
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
11875
if test $ac_cv_lib_dl_dlopen = yes; then
 
11876
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
11877
else
 
11878
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
11879
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
11880
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
11881
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11882
else
 
11883
  ac_check_lib_save_LIBS=$LIBS
 
11884
LIBS="-lsvld  $LIBS"
 
11885
cat >conftest.$ac_ext <<_ACEOF
 
11886
/* confdefs.h.  */
 
11887
_ACEOF
 
11888
cat confdefs.h >>conftest.$ac_ext
 
11889
cat >>conftest.$ac_ext <<_ACEOF
 
11890
/* end confdefs.h.  */
 
11891
 
 
11892
/* Override any gcc2 internal prototype to avoid an error.  */
 
11893
#ifdef __cplusplus
 
11894
extern "C"
 
11895
#endif
 
11896
/* We use char because int might match the return type of a gcc2
 
11897
   builtin and then its argument prototype would still apply.  */
 
11898
char dlopen ();
 
11899
int
 
11900
main ()
 
11901
{
 
11902
dlopen ();
 
11903
  ;
 
11904
  return 0;
 
11905
}
 
11906
_ACEOF
 
11907
rm -f conftest.$ac_objext conftest$ac_exeext
 
11908
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11909
  (eval $ac_link) 2>conftest.er1
 
11910
  ac_status=$?
 
11911
  grep -v '^ *+' conftest.er1 >conftest.err
 
11912
  rm -f conftest.er1
 
11913
  cat conftest.err >&5
 
11914
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11915
  (exit $ac_status); } &&
 
11916
         { ac_try='test -z "$ac_cxx_werror_flag"
 
11917
                         || test ! -s conftest.err'
 
11918
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11919
  (eval $ac_try) 2>&5
 
11920
  ac_status=$?
 
11921
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11922
  (exit $ac_status); }; } &&
 
11923
         { ac_try='test -s conftest$ac_exeext'
 
11924
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11925
  (eval $ac_try) 2>&5
 
11926
  ac_status=$?
 
11927
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11928
  (exit $ac_status); }; }; then
 
11929
  ac_cv_lib_svld_dlopen=yes
 
11930
else
 
11931
  echo "$as_me: failed program was:" >&5
 
11932
sed 's/^/| /' conftest.$ac_ext >&5
 
11933
 
 
11934
ac_cv_lib_svld_dlopen=no
 
11935
fi
 
11936
rm -f conftest.err conftest.$ac_objext \
 
11937
      conftest$ac_exeext conftest.$ac_ext
 
11938
LIBS=$ac_check_lib_save_LIBS
 
11939
fi
 
11940
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
11941
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
11942
if test $ac_cv_lib_svld_dlopen = yes; then
 
11943
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
11944
else
 
11945
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
11946
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
11947
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
11948
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11949
else
 
11950
  ac_check_lib_save_LIBS=$LIBS
 
11951
LIBS="-ldld  $LIBS"
 
11952
cat >conftest.$ac_ext <<_ACEOF
 
11953
/* confdefs.h.  */
 
11954
_ACEOF
 
11955
cat confdefs.h >>conftest.$ac_ext
 
11956
cat >>conftest.$ac_ext <<_ACEOF
 
11957
/* end confdefs.h.  */
 
11958
 
 
11959
/* Override any gcc2 internal prototype to avoid an error.  */
 
11960
#ifdef __cplusplus
 
11961
extern "C"
 
11962
#endif
 
11963
/* We use char because int might match the return type of a gcc2
 
11964
   builtin and then its argument prototype would still apply.  */
 
11965
char dld_link ();
 
11966
int
 
11967
main ()
 
11968
{
 
11969
dld_link ();
 
11970
  ;
 
11971
  return 0;
 
11972
}
 
11973
_ACEOF
 
11974
rm -f conftest.$ac_objext conftest$ac_exeext
 
11975
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11976
  (eval $ac_link) 2>conftest.er1
 
11977
  ac_status=$?
 
11978
  grep -v '^ *+' conftest.er1 >conftest.err
 
11979
  rm -f conftest.er1
 
11980
  cat conftest.err >&5
 
11981
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11982
  (exit $ac_status); } &&
 
11983
         { ac_try='test -z "$ac_cxx_werror_flag"
 
11984
                         || test ! -s conftest.err'
 
11985
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11986
  (eval $ac_try) 2>&5
 
11987
  ac_status=$?
 
11988
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11989
  (exit $ac_status); }; } &&
 
11990
         { ac_try='test -s conftest$ac_exeext'
 
11991
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11992
  (eval $ac_try) 2>&5
 
11993
  ac_status=$?
 
11994
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11995
  (exit $ac_status); }; }; then
 
11996
  ac_cv_lib_dld_dld_link=yes
 
11997
else
 
11998
  echo "$as_me: failed program was:" >&5
 
11999
sed 's/^/| /' conftest.$ac_ext >&5
 
12000
 
 
12001
ac_cv_lib_dld_dld_link=no
 
12002
fi
 
12003
rm -f conftest.err conftest.$ac_objext \
 
12004
      conftest$ac_exeext conftest.$ac_ext
 
12005
LIBS=$ac_check_lib_save_LIBS
 
12006
fi
 
12007
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
12008
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
12009
if test $ac_cv_lib_dld_dld_link = yes; then
 
12010
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
12011
fi
 
12012
 
 
12013
 
 
12014
fi
 
12015
 
 
12016
 
 
12017
fi
 
12018
 
 
12019
 
 
12020
fi
 
12021
 
 
12022
 
 
12023
fi
 
12024
 
 
12025
 
 
12026
fi
 
12027
 
 
12028
    ;;
 
12029
  esac
 
12030
 
 
12031
  if test "x$lt_cv_dlopen" != xno; then
 
12032
    enable_dlopen=yes
 
12033
  else
 
12034
    enable_dlopen=no
 
12035
  fi
 
12036
 
 
12037
  case $lt_cv_dlopen in
 
12038
  dlopen)
 
12039
    save_CPPFLAGS="$CPPFLAGS"
 
12040
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
12041
 
 
12042
    save_LDFLAGS="$LDFLAGS"
 
12043
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
12044
 
 
12045
    save_LIBS="$LIBS"
 
12046
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
12047
 
 
12048
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
12049
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
12050
if test "${lt_cv_dlopen_self+set}" = set; then
 
12051
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12052
else
 
12053
          if test "$cross_compiling" = yes; then :
 
12054
  lt_cv_dlopen_self=cross
 
12055
else
 
12056
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
12057
  lt_status=$lt_dlunknown
 
12058
  cat > conftest.$ac_ext <<EOF
 
12059
#line 12059 "configure"
 
12060
#include "confdefs.h"
 
12061
 
 
12062
#if HAVE_DLFCN_H
 
12063
#include <dlfcn.h>
 
12064
#endif
 
12065
 
 
12066
#include <stdio.h>
 
12067
 
 
12068
#ifdef RTLD_GLOBAL
 
12069
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
12070
#else
 
12071
#  ifdef DL_GLOBAL
 
12072
#    define LT_DLGLOBAL         DL_GLOBAL
 
12073
#  else
 
12074
#    define LT_DLGLOBAL         0
 
12075
#  endif
 
12076
#endif
 
12077
 
 
12078
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
12079
   find out it does not work in some platform. */
 
12080
#ifndef LT_DLLAZY_OR_NOW
 
12081
#  ifdef RTLD_LAZY
 
12082
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
12083
#  else
 
12084
#    ifdef DL_LAZY
 
12085
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
12086
#    else
 
12087
#      ifdef RTLD_NOW
 
12088
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
12089
#      else
 
12090
#        ifdef DL_NOW
 
12091
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
12092
#        else
 
12093
#          define LT_DLLAZY_OR_NOW      0
 
12094
#        endif
 
12095
#      endif
 
12096
#    endif
 
12097
#  endif
 
12098
#endif
 
12099
 
 
12100
#ifdef __cplusplus
 
12101
extern "C" void exit (int);
 
12102
#endif
 
12103
 
 
12104
void fnord() { int i=42;}
 
12105
int main ()
 
12106
{
 
12107
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
12108
  int status = $lt_dlunknown;
 
12109
 
 
12110
  if (self)
 
12111
    {
 
12112
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
12113
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
12114
      /* dlclose (self); */
 
12115
    }
 
12116
 
 
12117
    exit (status);
 
12118
}
 
12119
EOF
 
12120
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12121
  (eval $ac_link) 2>&5
 
12122
  ac_status=$?
 
12123
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12124
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
12125
    (./conftest; exit; ) 2>/dev/null
 
12126
    lt_status=$?
 
12127
    case x$lt_status in
 
12128
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
12129
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
12130
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
12131
    esac
 
12132
  else :
 
12133
    # compilation failed
 
12134
    lt_cv_dlopen_self=no
 
12135
  fi
 
12136
fi
 
12137
rm -fr conftest*
 
12138
 
 
12139
 
 
12140
fi
 
12141
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
12142
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
12143
 
 
12144
    if test "x$lt_cv_dlopen_self" = xyes; then
 
12145
      LDFLAGS="$LDFLAGS $link_static_flag"
 
12146
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
12147
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
12148
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
12149
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12150
else
 
12151
          if test "$cross_compiling" = yes; then :
 
12152
  lt_cv_dlopen_self_static=cross
 
12153
else
 
12154
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
12155
  lt_status=$lt_dlunknown
 
12156
  cat > conftest.$ac_ext <<EOF
 
12157
#line 12157 "configure"
 
12158
#include "confdefs.h"
 
12159
 
 
12160
#if HAVE_DLFCN_H
 
12161
#include <dlfcn.h>
 
12162
#endif
 
12163
 
 
12164
#include <stdio.h>
 
12165
 
 
12166
#ifdef RTLD_GLOBAL
 
12167
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
12168
#else
 
12169
#  ifdef DL_GLOBAL
 
12170
#    define LT_DLGLOBAL         DL_GLOBAL
 
12171
#  else
 
12172
#    define LT_DLGLOBAL         0
 
12173
#  endif
 
12174
#endif
 
12175
 
 
12176
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
12177
   find out it does not work in some platform. */
 
12178
#ifndef LT_DLLAZY_OR_NOW
 
12179
#  ifdef RTLD_LAZY
 
12180
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
12181
#  else
 
12182
#    ifdef DL_LAZY
 
12183
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
12184
#    else
 
12185
#      ifdef RTLD_NOW
 
12186
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
12187
#      else
 
12188
#        ifdef DL_NOW
 
12189
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
12190
#        else
 
12191
#          define LT_DLLAZY_OR_NOW      0
 
12192
#        endif
 
12193
#      endif
 
12194
#    endif
 
12195
#  endif
 
12196
#endif
 
12197
 
 
12198
#ifdef __cplusplus
 
12199
extern "C" void exit (int);
 
12200
#endif
 
12201
 
 
12202
void fnord() { int i=42;}
 
12203
int main ()
 
12204
{
 
12205
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
12206
  int status = $lt_dlunknown;
 
12207
 
 
12208
  if (self)
 
12209
    {
 
12210
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
12211
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
12212
      /* dlclose (self); */
 
12213
    }
 
12214
 
 
12215
    exit (status);
 
12216
}
 
12217
EOF
 
12218
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12219
  (eval $ac_link) 2>&5
 
12220
  ac_status=$?
 
12221
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12222
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
12223
    (./conftest; exit; ) 2>/dev/null
 
12224
    lt_status=$?
 
12225
    case x$lt_status in
 
12226
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
12227
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
12228
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
12229
    esac
 
12230
  else :
 
12231
    # compilation failed
 
12232
    lt_cv_dlopen_self_static=no
 
12233
  fi
 
12234
fi
 
12235
rm -fr conftest*
 
12236
 
 
12237
 
 
12238
fi
 
12239
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
12240
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
12241
    fi
 
12242
 
 
12243
    CPPFLAGS="$save_CPPFLAGS"
 
12244
    LDFLAGS="$save_LDFLAGS"
 
12245
    LIBS="$save_LIBS"
 
12246
    ;;
 
12247
  esac
 
12248
 
 
12249
  case $lt_cv_dlopen_self in
 
12250
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
12251
  *) enable_dlopen_self=unknown ;;
 
12252
  esac
 
12253
 
 
12254
  case $lt_cv_dlopen_self_static in
 
12255
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
12256
  *) enable_dlopen_self_static=unknown ;;
 
12257
  esac
 
12258
fi
 
12259
 
 
12260
 
 
12261
# The else clause should only fire when bootstrapping the
 
12262
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
12263
# with your package, and you will get complaints that there are
 
12264
# no rules to generate ltmain.sh.
 
12265
if test -f "$ltmain"; then
 
12266
  # See if we are running on zsh, and set the options which allow our commands through
 
12267
  # without removal of \ escapes.
 
12268
  if test -n "${ZSH_VERSION+set}" ; then
 
12269
    setopt NO_GLOB_SUBST
 
12270
  fi
 
12271
  # Now quote all the things that may contain metacharacters while being
 
12272
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
12273
  # variables and quote the copies for generation of the libtool script.
 
12274
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
12275
    SED SHELL STRIP \
 
12276
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
12277
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
12278
    deplibs_check_method reload_flag reload_cmds need_locks \
 
12279
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
12280
    lt_cv_sys_global_symbol_to_c_name_address \
 
12281
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
12282
    old_postinstall_cmds old_postuninstall_cmds \
 
12283
    compiler_CXX \
 
12284
    CC_CXX \
 
12285
    LD_CXX \
 
12286
    lt_prog_compiler_wl_CXX \
 
12287
    lt_prog_compiler_pic_CXX \
 
12288
    lt_prog_compiler_static_CXX \
 
12289
    lt_prog_compiler_no_builtin_flag_CXX \
 
12290
    export_dynamic_flag_spec_CXX \
 
12291
    thread_safe_flag_spec_CXX \
 
12292
    whole_archive_flag_spec_CXX \
 
12293
    enable_shared_with_static_runtimes_CXX \
 
12294
    old_archive_cmds_CXX \
 
12295
    old_archive_from_new_cmds_CXX \
 
12296
    predep_objects_CXX \
 
12297
    postdep_objects_CXX \
 
12298
    predeps_CXX \
 
12299
    postdeps_CXX \
 
12300
    compiler_lib_search_path_CXX \
 
12301
    archive_cmds_CXX \
 
12302
    archive_expsym_cmds_CXX \
 
12303
    postinstall_cmds_CXX \
 
12304
    postuninstall_cmds_CXX \
 
12305
    old_archive_from_expsyms_cmds_CXX \
 
12306
    allow_undefined_flag_CXX \
 
12307
    no_undefined_flag_CXX \
 
12308
    export_symbols_cmds_CXX \
 
12309
    hardcode_libdir_flag_spec_CXX \
 
12310
    hardcode_libdir_flag_spec_ld_CXX \
 
12311
    hardcode_libdir_separator_CXX \
 
12312
    hardcode_automatic_CXX \
 
12313
    module_cmds_CXX \
 
12314
    module_expsym_cmds_CXX \
 
12315
    lt_cv_prog_compiler_c_o_CXX \
 
12316
    exclude_expsyms_CXX \
 
12317
    include_expsyms_CXX; do
 
12318
 
 
12319
    case $var in
 
12320
    old_archive_cmds_CXX | \
 
12321
    old_archive_from_new_cmds_CXX | \
 
12322
    archive_cmds_CXX | \
 
12323
    archive_expsym_cmds_CXX | \
 
12324
    module_cmds_CXX | \
 
12325
    module_expsym_cmds_CXX | \
 
12326
    old_archive_from_expsyms_cmds_CXX | \
 
12327
    export_symbols_cmds_CXX | \
 
12328
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
12329
    postinstall_cmds | postuninstall_cmds | \
 
12330
    old_postinstall_cmds | old_postuninstall_cmds | \
 
12331
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
12332
      # Double-quote double-evaled strings.
 
12333
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
12334
      ;;
 
12335
    *)
 
12336
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
12337
      ;;
 
12338
    esac
 
12339
  done
 
12340
 
 
12341
  case $lt_echo in
 
12342
  *'\$0 --fallback-echo"')
 
12343
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
12344
    ;;
 
12345
  esac
 
12346
 
 
12347
cfgfile="$ofile"
 
12348
 
 
12349
  cat <<__EOF__ >> "$cfgfile"
 
12350
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
12351
 
 
12352
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
12353
 
 
12354
# Shell to use when invoking shell scripts.
 
12355
SHELL=$lt_SHELL
 
12356
 
 
12357
# Whether or not to build shared libraries.
 
12358
build_libtool_libs=$enable_shared
 
12359
 
 
12360
# Whether or not to build static libraries.
 
12361
build_old_libs=$enable_static
 
12362
 
 
12363
# Whether or not to add -lc for building shared libraries.
 
12364
build_libtool_need_lc=$archive_cmds_need_lc_CXX
 
12365
 
 
12366
# Whether or not to disallow shared libs when runtime libs are static
 
12367
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
 
12368
 
 
12369
# Whether or not to optimize for fast installation.
 
12370
fast_install=$enable_fast_install
 
12371
 
 
12372
# The host system.
 
12373
host_alias=$host_alias
 
12374
host=$host
 
12375
host_os=$host_os
 
12376
 
 
12377
# The build system.
 
12378
build_alias=$build_alias
 
12379
build=$build
 
12380
build_os=$build_os
 
12381
 
 
12382
# An echo program that does not interpret backslashes.
 
12383
echo=$lt_echo
 
12384
 
 
12385
# The archiver.
 
12386
AR=$lt_AR
 
12387
AR_FLAGS=$lt_AR_FLAGS
 
12388
 
 
12389
# A C compiler.
 
12390
LTCC=$lt_LTCC
 
12391
 
 
12392
# A language-specific compiler.
 
12393
CC=$lt_compiler_CXX
 
12394
 
 
12395
# Is the compiler the GNU C compiler?
 
12396
with_gcc=$GCC_CXX
 
12397
 
 
12398
# An ERE matcher.
 
12399
EGREP=$lt_EGREP
 
12400
 
 
12401
# The linker used to build libraries.
 
12402
LD=$lt_LD_CXX
 
12403
 
 
12404
# Whether we need hard or soft links.
 
12405
LN_S=$lt_LN_S
 
12406
 
 
12407
# A BSD-compatible nm program.
 
12408
NM=$lt_NM
 
12409
 
 
12410
# A symbol stripping program
 
12411
STRIP=$lt_STRIP
 
12412
 
 
12413
# Used to examine libraries when file_magic_cmd begins "file"
 
12414
MAGIC_CMD=$MAGIC_CMD
 
12415
 
 
12416
# Used on cygwin: DLL creation program.
 
12417
DLLTOOL="$DLLTOOL"
 
12418
 
 
12419
# Used on cygwin: object dumper.
 
12420
OBJDUMP="$OBJDUMP"
 
12421
 
 
12422
# Used on cygwin: assembler.
 
12423
AS="$AS"
 
12424
 
 
12425
# The name of the directory that contains temporary libtool files.
 
12426
objdir=$objdir
 
12427
 
 
12428
# How to create reloadable object files.
 
12429
reload_flag=$lt_reload_flag
 
12430
reload_cmds=$lt_reload_cmds
 
12431
 
 
12432
# How to pass a linker flag through the compiler.
 
12433
wl=$lt_lt_prog_compiler_wl_CXX
 
12434
 
 
12435
# Object file suffix (normally "o").
 
12436
objext="$ac_objext"
 
12437
 
 
12438
# Old archive suffix (normally "a").
 
12439
libext="$libext"
 
12440
 
 
12441
# Shared library suffix (normally ".so").
 
12442
shrext_cmds='$shrext_cmds'
 
12443
 
 
12444
# Executable file suffix (normally "").
 
12445
exeext="$exeext"
 
12446
 
 
12447
# Additional compiler flags for building library objects.
 
12448
pic_flag=$lt_lt_prog_compiler_pic_CXX
 
12449
pic_mode=$pic_mode
 
12450
 
 
12451
# What is the maximum length of a command?
 
12452
max_cmd_len=$lt_cv_sys_max_cmd_len
 
12453
 
 
12454
# Does compiler simultaneously support -c and -o options?
 
12455
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
 
12456
 
 
12457
# Must we lock files when doing compilation?
 
12458
need_locks=$lt_need_locks
 
12459
 
 
12460
# Do we need the lib prefix for modules?
 
12461
need_lib_prefix=$need_lib_prefix
 
12462
 
 
12463
# Do we need a version for libraries?
 
12464
need_version=$need_version
 
12465
 
 
12466
# Whether dlopen is supported.
 
12467
dlopen_support=$enable_dlopen
 
12468
 
 
12469
# Whether dlopen of programs is supported.
 
12470
dlopen_self=$enable_dlopen_self
 
12471
 
 
12472
# Whether dlopen of statically linked programs is supported.
 
12473
dlopen_self_static=$enable_dlopen_self_static
 
12474
 
 
12475
# Compiler flag to prevent dynamic linking.
 
12476
link_static_flag=$lt_lt_prog_compiler_static_CXX
 
12477
 
 
12478
# Compiler flag to turn off builtin functions.
 
12479
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
 
12480
 
 
12481
# Compiler flag to allow reflexive dlopens.
 
12482
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
 
12483
 
 
12484
# Compiler flag to generate shared objects directly from archives.
 
12485
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
 
12486
 
 
12487
# Compiler flag to generate thread-safe objects.
 
12488
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
 
12489
 
 
12490
# Library versioning type.
 
12491
version_type=$version_type
 
12492
 
 
12493
# Format of library name prefix.
 
12494
libname_spec=$lt_libname_spec
 
12495
 
 
12496
# List of archive names.  First name is the real one, the rest are links.
 
12497
# The last name is the one that the linker finds with -lNAME.
 
12498
library_names_spec=$lt_library_names_spec
 
12499
 
 
12500
# The coded name of the library, if different from the real name.
 
12501
soname_spec=$lt_soname_spec
 
12502
 
 
12503
# Commands used to build and install an old-style archive.
 
12504
RANLIB=$lt_RANLIB
 
12505
old_archive_cmds=$lt_old_archive_cmds_CXX
 
12506
old_postinstall_cmds=$lt_old_postinstall_cmds
 
12507
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
12508
 
 
12509
# Create an old-style archive from a shared archive.
 
12510
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
 
12511
 
 
12512
# Create a temporary old-style archive to link instead of a shared archive.
 
12513
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
 
12514
 
 
12515
# Commands used to build and install a shared archive.
 
12516
archive_cmds=$lt_archive_cmds_CXX
 
12517
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
 
12518
postinstall_cmds=$lt_postinstall_cmds
 
12519
postuninstall_cmds=$lt_postuninstall_cmds
 
12520
 
 
12521
# Commands used to build a loadable module (assumed same as above if empty)
 
12522
module_cmds=$lt_module_cmds_CXX
 
12523
module_expsym_cmds=$lt_module_expsym_cmds_CXX
 
12524
 
 
12525
# Commands to strip libraries.
 
12526
old_striplib=$lt_old_striplib
 
12527
striplib=$lt_striplib
 
12528
 
 
12529
# Dependencies to place before the objects being linked to create a
 
12530
# shared library.
 
12531
predep_objects=$lt_predep_objects_CXX
 
12532
 
 
12533
# Dependencies to place after the objects being linked to create a
 
12534
# shared library.
 
12535
postdep_objects=$lt_postdep_objects_CXX
 
12536
 
 
12537
# Dependencies to place before the objects being linked to create a
 
12538
# shared library.
 
12539
predeps=$lt_predeps_CXX
 
12540
 
 
12541
# Dependencies to place after the objects being linked to create a
 
12542
# shared library.
 
12543
postdeps=$lt_postdeps_CXX
 
12544
 
 
12545
# The library search path used internally by the compiler when linking
 
12546
# a shared library.
 
12547
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
 
12548
 
 
12549
# Method to check whether dependent libraries are shared objects.
 
12550
deplibs_check_method=$lt_deplibs_check_method
 
12551
 
 
12552
# Command to use when deplibs_check_method == file_magic.
 
12553
file_magic_cmd=$lt_file_magic_cmd
 
12554
 
 
12555
# Flag that allows shared libraries with undefined symbols to be built.
 
12556
allow_undefined_flag=$lt_allow_undefined_flag_CXX
 
12557
 
 
12558
# Flag that forces no undefined symbols.
 
12559
no_undefined_flag=$lt_no_undefined_flag_CXX
 
12560
 
 
12561
# Commands used to finish a libtool library installation in a directory.
 
12562
finish_cmds=$lt_finish_cmds
 
12563
 
 
12564
# Same as above, but a single script fragment to be evaled but not shown.
 
12565
finish_eval=$lt_finish_eval
 
12566
 
 
12567
# Take the output of nm and produce a listing of raw symbols and C names.
 
12568
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
12569
 
 
12570
# Transform the output of nm in a proper C declaration
 
12571
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
12572
 
 
12573
# Transform the output of nm in a C name address pair
 
12574
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
12575
 
 
12576
# This is the shared library runtime path variable.
 
12577
runpath_var=$runpath_var
 
12578
 
 
12579
# This is the shared library path variable.
 
12580
shlibpath_var=$shlibpath_var
 
12581
 
 
12582
# Is shlibpath searched before the hard-coded library search path?
 
12583
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
12584
 
 
12585
# How to hardcode a shared library path into an executable.
 
12586
hardcode_action=$hardcode_action_CXX
 
12587
 
 
12588
# Whether we should hardcode library paths into libraries.
 
12589
hardcode_into_libs=$hardcode_into_libs
 
12590
 
 
12591
# Flag to hardcode \$libdir into a binary during linking.
 
12592
# This must work even if \$libdir does not exist.
 
12593
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
 
12594
 
 
12595
# If ld is used when linking, flag to hardcode \$libdir into
 
12596
# a binary during linking. This must work even if \$libdir does
 
12597
# not exist.
 
12598
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
 
12599
 
 
12600
# Whether we need a single -rpath flag with a separated argument.
 
12601
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
 
12602
 
 
12603
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
12604
# resulting binary.
 
12605
hardcode_direct=$hardcode_direct_CXX
 
12606
 
 
12607
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
12608
# resulting binary.
 
12609
hardcode_minus_L=$hardcode_minus_L_CXX
 
12610
 
 
12611
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
12612
# the resulting binary.
 
12613
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
 
12614
 
 
12615
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
12616
# and all subsequent libraries and executables linked against it.
 
12617
hardcode_automatic=$hardcode_automatic_CXX
 
12618
 
 
12619
# Variables whose values should be saved in libtool wrapper scripts and
 
12620
# restored at relink time.
 
12621
variables_saved_for_relink="$variables_saved_for_relink"
 
12622
 
 
12623
# Whether libtool must link a program against all its dependency libraries.
 
12624
link_all_deplibs=$link_all_deplibs_CXX
 
12625
 
 
12626
# Compile-time system search path for libraries
 
12627
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
12628
 
 
12629
# Run-time system search path for libraries
 
12630
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
12631
 
 
12632
# Fix the shell variable \$srcfile for the compiler.
 
12633
fix_srcfile_path="$fix_srcfile_path_CXX"
 
12634
 
 
12635
# Set to yes if exported symbols are required.
 
12636
always_export_symbols=$always_export_symbols_CXX
 
12637
 
 
12638
# The commands to list exported symbols.
 
12639
export_symbols_cmds=$lt_export_symbols_cmds_CXX
 
12640
 
 
12641
# The commands to extract the exported symbol list from a shared archive.
 
12642
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
12643
 
 
12644
# Symbols that should not be listed in the preloaded symbols.
 
12645
exclude_expsyms=$lt_exclude_expsyms_CXX
 
12646
 
 
12647
# Symbols that must always be exported.
 
12648
include_expsyms=$lt_include_expsyms_CXX
 
12649
 
 
12650
# ### END LIBTOOL TAG CONFIG: $tagname
 
12651
 
 
12652
__EOF__
 
12653
 
 
12654
 
 
12655
else
 
12656
  # If there is no Makefile yet, we rely on a make rule to execute
 
12657
  # `config.status --recheck' to rerun these tests and create the
 
12658
  # libtool script then.
 
12659
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
12660
  if test -f "$ltmain_in"; then
 
12661
    test -f Makefile && make "$ltmain"
 
12662
  fi
 
12663
fi
 
12664
 
 
12665
 
 
12666
ac_ext=c
 
12667
ac_cpp='$CPP $CPPFLAGS'
 
12668
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
12669
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
12670
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
12671
 
 
12672
CC=$lt_save_CC
 
12673
LDCXX=$LD
 
12674
LD=$lt_save_LD
 
12675
GCC=$lt_save_GCC
 
12676
with_gnu_ldcxx=$with_gnu_ld
 
12677
with_gnu_ld=$lt_save_with_gnu_ld
 
12678
lt_cv_path_LDCXX=$lt_cv_path_LD
 
12679
lt_cv_path_LD=$lt_save_path_LD
 
12680
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
12681
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
12682
 
 
12683
        else
 
12684
          tagname=""
 
12685
        fi
 
12686
        ;;
 
12687
 
 
12688
      F77)
 
12689
        if test -n "$F77" && test "X$F77" != "Xno"; then
 
12690
 
 
12691
ac_ext=f
 
12692
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
12693
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
12694
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
12695
 
 
12696
 
 
12697
archive_cmds_need_lc_F77=no
 
12698
allow_undefined_flag_F77=
 
12699
always_export_symbols_F77=no
 
12700
archive_expsym_cmds_F77=
 
12701
export_dynamic_flag_spec_F77=
 
12702
hardcode_direct_F77=no
 
12703
hardcode_libdir_flag_spec_F77=
 
12704
hardcode_libdir_flag_spec_ld_F77=
 
12705
hardcode_libdir_separator_F77=
 
12706
hardcode_minus_L_F77=no
 
12707
hardcode_automatic_F77=no
 
12708
module_cmds_F77=
 
12709
module_expsym_cmds_F77=
 
12710
link_all_deplibs_F77=unknown
 
12711
old_archive_cmds_F77=$old_archive_cmds
 
12712
no_undefined_flag_F77=
 
12713
whole_archive_flag_spec_F77=
 
12714
enable_shared_with_static_runtimes_F77=no
 
12715
 
 
12716
# Source file extension for f77 test sources.
 
12717
ac_ext=f
 
12718
 
 
12719
# Object file extension for compiled f77 test sources.
 
12720
objext=o
 
12721
objext_F77=$objext
 
12722
 
 
12723
# Code to be used in simple compile tests
 
12724
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
 
12725
 
 
12726
# Code to be used in simple link tests
 
12727
lt_simple_link_test_code="      program t\n      end\n"
 
12728
 
 
12729
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
12730
 
 
12731
# If no C compiler was specified, use CC.
 
12732
LTCC=${LTCC-"$CC"}
 
12733
 
 
12734
# Allow CC to be a program name with arguments.
 
12735
compiler=$CC
 
12736
 
 
12737
 
 
12738
# save warnings/boilerplate of simple test code
 
12739
ac_outfile=conftest.$ac_objext
 
12740
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
12741
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
12742
_lt_compiler_boilerplate=`cat conftest.err`
 
12743
$rm conftest*
 
12744
 
 
12745
ac_outfile=conftest.$ac_objext
 
12746
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
12747
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
12748
_lt_linker_boilerplate=`cat conftest.err`
 
12749
$rm conftest*
 
12750
 
 
12751
 
 
12752
# Allow CC to be a program name with arguments.
 
12753
lt_save_CC="$CC"
 
12754
CC=${F77-"f77"}
 
12755
compiler=$CC
 
12756
compiler_F77=$CC
 
12757
for cc_temp in $compiler""; do
 
12758
  case $cc_temp in
 
12759
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
12760
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
12761
    \-*) ;;
 
12762
    *) break;;
 
12763
  esac
 
12764
done
 
12765
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
12766
 
 
12767
 
 
12768
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
12769
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
 
12770
echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
12771
echo "${ECHO_T}$can_build_shared" >&6
 
12772
 
 
12773
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
12774
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
 
12775
test "$can_build_shared" = "no" && enable_shared=no
 
12776
 
 
12777
# On AIX, shared libraries and static libraries use the same namespace, and
 
12778
# are all built from PIC.
 
12779
case "$host_os" in
 
12780
aix3*)
 
12781
  test "$enable_shared" = yes && enable_static=no
 
12782
  if test -n "$RANLIB"; then
 
12783
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
12784
    postinstall_cmds='$RANLIB $lib'
 
12785
  fi
 
12786
  ;;
 
12787
aix4* | aix5*)
 
12788
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
12789
    test "$enable_shared" = yes && enable_static=no
 
12790
  fi
 
12791
  ;;
 
12792
esac
 
12793
echo "$as_me:$LINENO: result: $enable_shared" >&5
 
12794
echo "${ECHO_T}$enable_shared" >&6
 
12795
 
 
12796
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
12797
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
 
12798
# Make sure either enable_shared or enable_static is yes.
 
12799
test "$enable_shared" = yes || enable_static=yes
 
12800
echo "$as_me:$LINENO: result: $enable_static" >&5
 
12801
echo "${ECHO_T}$enable_static" >&6
 
12802
 
 
12803
test "$ld_shlibs_F77" = no && can_build_shared=no
 
12804
 
 
12805
GCC_F77="$G77"
 
12806
LD_F77="$LD"
 
12807
 
 
12808
lt_prog_compiler_wl_F77=
 
12809
lt_prog_compiler_pic_F77=
 
12810
lt_prog_compiler_static_F77=
 
12811
 
 
12812
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
12813
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
12814
 
 
12815
  if test "$GCC" = yes; then
 
12816
    lt_prog_compiler_wl_F77='-Wl,'
 
12817
    lt_prog_compiler_static_F77='-static'
 
12818
 
 
12819
    case $host_os in
 
12820
      aix*)
 
12821
      # All AIX code is PIC.
 
12822
      if test "$host_cpu" = ia64; then
 
12823
        # AIX 5 now supports IA64 processor
 
12824
        lt_prog_compiler_static_F77='-Bstatic'
 
12825
      fi
 
12826
      ;;
 
12827
 
 
12828
    amigaos*)
 
12829
      # FIXME: we need at least 68020 code to build shared libraries, but
 
12830
      # adding the `-m68020' flag to GCC prevents building anything better,
 
12831
      # like `-m68040'.
 
12832
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
 
12833
      ;;
 
12834
 
 
12835
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
12836
      # PIC is the default for these OSes.
 
12837
      ;;
 
12838
 
 
12839
    mingw* | pw32* | os2*)
 
12840
      # This hack is so that the source file can tell whether it is being
 
12841
      # built for inclusion in a dll (and should export symbols for example).
 
12842
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
12843
      ;;
 
12844
 
 
12845
    darwin* | rhapsody*)
 
12846
      # PIC is the default on this platform
 
12847
      # Common symbols not allowed in MH_DYLIB files
 
12848
      lt_prog_compiler_pic_F77='-fno-common'
 
12849
      ;;
 
12850
 
 
12851
    msdosdjgpp*)
 
12852
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
12853
      # on systems that don't support them.
 
12854
      lt_prog_compiler_can_build_shared_F77=no
 
12855
      enable_shared=no
 
12856
      ;;
 
12857
 
 
12858
    sysv4*MP*)
 
12859
      if test -d /usr/nec; then
 
12860
        lt_prog_compiler_pic_F77=-Kconform_pic
 
12861
      fi
 
12862
      ;;
 
12863
 
 
12864
    hpux*)
 
12865
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
12866
      # not for PA HP-UX.
 
12867
      case "$host_cpu" in
 
12868
      hppa*64*|ia64*)
 
12869
        # +Z the default
 
12870
        ;;
 
12871
      *)
 
12872
        lt_prog_compiler_pic_F77='-fPIC'
 
12873
        ;;
 
12874
      esac
 
12875
      ;;
 
12876
 
 
12877
    *)
 
12878
      lt_prog_compiler_pic_F77='-fPIC'
 
12879
      ;;
 
12880
    esac
 
12881
  else
 
12882
    # PORTME Check for flag to pass linker flags through the system compiler.
 
12883
    case $host_os in
 
12884
    aix*)
 
12885
      lt_prog_compiler_wl_F77='-Wl,'
 
12886
      if test "$host_cpu" = ia64; then
 
12887
        # AIX 5 now supports IA64 processor
 
12888
        lt_prog_compiler_static_F77='-Bstatic'
 
12889
      else
 
12890
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
 
12891
      fi
 
12892
      ;;
 
12893
      darwin*)
 
12894
        # PIC is the default on this platform
 
12895
        # Common symbols not allowed in MH_DYLIB files
 
12896
       case $cc_basename in
 
12897
         xlc*)
 
12898
         lt_prog_compiler_pic_F77='-qnocommon'
 
12899
         lt_prog_compiler_wl_F77='-Wl,'
 
12900
         ;;
 
12901
       esac
 
12902
       ;;
 
12903
 
 
12904
    mingw* | pw32* | os2*)
 
12905
      # This hack is so that the source file can tell whether it is being
 
12906
      # built for inclusion in a dll (and should export symbols for example).
 
12907
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
12908
      ;;
 
12909
 
 
12910
    hpux9* | hpux10* | hpux11*)
 
12911
      lt_prog_compiler_wl_F77='-Wl,'
 
12912
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
12913
      # not for PA HP-UX.
 
12914
      case "$host_cpu" in
 
12915
      hppa*64*|ia64*)
 
12916
        # +Z the default
 
12917
        ;;
 
12918
      *)
 
12919
        lt_prog_compiler_pic_F77='+Z'
 
12920
        ;;
 
12921
      esac
 
12922
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
12923
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
 
12924
      ;;
 
12925
 
 
12926
    irix5* | irix6* | nonstopux*)
 
12927
      lt_prog_compiler_wl_F77='-Wl,'
 
12928
      # PIC (with -KPIC) is the default.
 
12929
      lt_prog_compiler_static_F77='-non_shared'
 
12930
      ;;
 
12931
 
 
12932
    newsos6)
 
12933
      lt_prog_compiler_pic_F77='-KPIC'
 
12934
      lt_prog_compiler_static_F77='-Bstatic'
 
12935
      ;;
 
12936
 
 
12937
    linux*)
 
12938
      case $cc_basename in
 
12939
      icc* | ecc*)
 
12940
        lt_prog_compiler_wl_F77='-Wl,'
 
12941
        lt_prog_compiler_pic_F77='-KPIC'
 
12942
        lt_prog_compiler_static_F77='-static'
 
12943
        ;;
 
12944
      pgcc* | pgf77* | pgf90*)
 
12945
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
12946
        # which looks to be a dead project)
 
12947
        lt_prog_compiler_wl_F77='-Wl,'
 
12948
        lt_prog_compiler_pic_F77='-fpic'
 
12949
        lt_prog_compiler_static_F77='-static'
 
12950
        ;;
 
12951
      ccc*)
 
12952
        lt_prog_compiler_wl_F77='-Wl,'
 
12953
        # All Alpha code is PIC.
 
12954
        lt_prog_compiler_static_F77='-non_shared'
 
12955
        ;;
 
12956
      esac
 
12957
      ;;
 
12958
 
 
12959
    osf3* | osf4* | osf5*)
 
12960
      lt_prog_compiler_wl_F77='-Wl,'
 
12961
      # All OSF/1 code is PIC.
 
12962
      lt_prog_compiler_static_F77='-non_shared'
 
12963
      ;;
 
12964
 
 
12965
    sco3.2v5*)
 
12966
      lt_prog_compiler_pic_F77='-Kpic'
 
12967
      lt_prog_compiler_static_F77='-dn'
 
12968
      ;;
 
12969
 
 
12970
    solaris*)
 
12971
      lt_prog_compiler_pic_F77='-KPIC'
 
12972
      lt_prog_compiler_static_F77='-Bstatic'
 
12973
      case $cc_basename in
 
12974
      f77* | f90* | f95*)
 
12975
        lt_prog_compiler_wl_F77='-Qoption ld ';;
 
12976
      *)
 
12977
        lt_prog_compiler_wl_F77='-Wl,';;
 
12978
      esac
 
12979
      ;;
 
12980
 
 
12981
    sunos4*)
 
12982
      lt_prog_compiler_wl_F77='-Qoption ld '
 
12983
      lt_prog_compiler_pic_F77='-PIC'
 
12984
      lt_prog_compiler_static_F77='-Bstatic'
 
12985
      ;;
 
12986
 
 
12987
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
12988
      lt_prog_compiler_wl_F77='-Wl,'
 
12989
      lt_prog_compiler_pic_F77='-KPIC'
 
12990
      lt_prog_compiler_static_F77='-Bstatic'
 
12991
      ;;
 
12992
 
 
12993
    sysv4*MP*)
 
12994
      if test -d /usr/nec ;then
 
12995
        lt_prog_compiler_pic_F77='-Kconform_pic'
 
12996
        lt_prog_compiler_static_F77='-Bstatic'
 
12997
      fi
 
12998
      ;;
 
12999
 
 
13000
    unicos*)
 
13001
      lt_prog_compiler_wl_F77='-Wl,'
 
13002
      lt_prog_compiler_can_build_shared_F77=no
 
13003
      ;;
 
13004
 
 
13005
    uts4*)
 
13006
      lt_prog_compiler_pic_F77='-pic'
 
13007
      lt_prog_compiler_static_F77='-Bstatic'
 
13008
      ;;
 
13009
 
 
13010
    *)
 
13011
      lt_prog_compiler_can_build_shared_F77=no
 
13012
      ;;
 
13013
    esac
 
13014
  fi
 
13015
 
 
13016
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
 
13017
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
 
13018
 
 
13019
#
 
13020
# Check to make sure the PIC flag actually works.
 
13021
#
 
13022
if test -n "$lt_prog_compiler_pic_F77"; then
 
13023
 
 
13024
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
 
13025
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
 
13026
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
 
13027
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13028
else
 
13029
  lt_prog_compiler_pic_works_F77=no
 
13030
  ac_outfile=conftest.$ac_objext
 
13031
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13032
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
 
13033
   # Insert the option either (1) after the last *FLAGS variable, or
 
13034
   # (2) before a word containing "conftest.", or (3) at the end.
 
13035
   # Note that $ac_compile itself does not contain backslashes and begins
 
13036
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
13037
   # The option is referenced via a variable to avoid confusing sed.
 
13038
   lt_compile=`echo "$ac_compile" | $SED \
 
13039
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
13040
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
13041
   -e 's:$: $lt_compiler_flag:'`
 
13042
   (eval echo "\"\$as_me:13042: $lt_compile\"" >&5)
 
13043
   (eval "$lt_compile" 2>conftest.err)
 
13044
   ac_status=$?
 
13045
   cat conftest.err >&5
 
13046
   echo "$as_me:13046: \$? = $ac_status" >&5
 
13047
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
13048
     # The compiler can only warn and ignore the option if not recognized
 
13049
     # So say no if there are warnings other than the usual output.
 
13050
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
 
13051
     $SED '/^$/d' conftest.err >conftest.er2
 
13052
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
 
13053
       lt_prog_compiler_pic_works_F77=yes
 
13054
     fi
 
13055
   fi
 
13056
   $rm conftest*
 
13057
 
 
13058
fi
 
13059
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
 
13060
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
 
13061
 
 
13062
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
 
13063
    case $lt_prog_compiler_pic_F77 in
 
13064
     "" | " "*) ;;
 
13065
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
 
13066
     esac
 
13067
else
 
13068
    lt_prog_compiler_pic_F77=
 
13069
     lt_prog_compiler_can_build_shared_F77=no
 
13070
fi
 
13071
 
 
13072
fi
 
13073
case "$host_os" in
 
13074
  # For platforms which do not support PIC, -DPIC is meaningless:
 
13075
  *djgpp*)
 
13076
    lt_prog_compiler_pic_F77=
 
13077
    ;;
 
13078
  *)
 
13079
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
 
13080
    ;;
 
13081
esac
 
13082
 
 
13083
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
13084
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
13085
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
 
13086
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13087
else
 
13088
  lt_cv_prog_compiler_c_o_F77=no
 
13089
   $rm -r conftest 2>/dev/null
 
13090
   mkdir conftest
 
13091
   cd conftest
 
13092
   mkdir out
 
13093
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13094
 
 
13095
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
13096
   # Insert the option either (1) after the last *FLAGS variable, or
 
13097
   # (2) before a word containing "conftest.", or (3) at the end.
 
13098
   # Note that $ac_compile itself does not contain backslashes and begins
 
13099
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
13100
   lt_compile=`echo "$ac_compile" | $SED \
 
13101
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
13102
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
13103
   -e 's:$: $lt_compiler_flag:'`
 
13104
   (eval echo "\"\$as_me:13104: $lt_compile\"" >&5)
 
13105
   (eval "$lt_compile" 2>out/conftest.err)
 
13106
   ac_status=$?
 
13107
   cat out/conftest.err >&5
 
13108
   echo "$as_me:13108: \$? = $ac_status" >&5
 
13109
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
13110
   then
 
13111
     # The compiler can only warn and ignore the option if not recognized
 
13112
     # So say no if there are warnings
 
13113
     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
 
13114
     $SED '/^$/d' out/conftest.err >out/conftest.er2
 
13115
     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
13116
       lt_cv_prog_compiler_c_o_F77=yes
 
13117
     fi
 
13118
   fi
 
13119
   chmod u+w .
 
13120
   $rm conftest*
 
13121
   # SGI C++ compiler will create directory out/ii_files/ for
 
13122
   # template instantiation
 
13123
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
13124
   $rm out/* && rmdir out
 
13125
   cd ..
 
13126
   rmdir conftest
 
13127
   $rm conftest*
 
13128
 
 
13129
fi
 
13130
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
 
13131
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
 
13132
 
 
13133
 
 
13134
hard_links="nottested"
 
13135
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
 
13136
  # do not overwrite the value of need_locks provided by the user
 
13137
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
13138
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
13139
  hard_links=yes
 
13140
  $rm conftest*
 
13141
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
13142
  touch conftest.a
 
13143
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
13144
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
13145
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
13146
echo "${ECHO_T}$hard_links" >&6
 
13147
  if test "$hard_links" = no; then
 
13148
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
13149
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
13150
    need_locks=warn
 
13151
  fi
 
13152
else
 
13153
  need_locks=no
 
13154
fi
 
13155
 
 
13156
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
13157
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
13158
 
 
13159
  runpath_var=
 
13160
  allow_undefined_flag_F77=
 
13161
  enable_shared_with_static_runtimes_F77=no
 
13162
  archive_cmds_F77=
 
13163
  archive_expsym_cmds_F77=
 
13164
  old_archive_From_new_cmds_F77=
 
13165
  old_archive_from_expsyms_cmds_F77=
 
13166
  export_dynamic_flag_spec_F77=
 
13167
  whole_archive_flag_spec_F77=
 
13168
  thread_safe_flag_spec_F77=
 
13169
  hardcode_libdir_flag_spec_F77=
 
13170
  hardcode_libdir_flag_spec_ld_F77=
 
13171
  hardcode_libdir_separator_F77=
 
13172
  hardcode_direct_F77=no
 
13173
  hardcode_minus_L_F77=no
 
13174
  hardcode_shlibpath_var_F77=unsupported
 
13175
  link_all_deplibs_F77=unknown
 
13176
  hardcode_automatic_F77=no
 
13177
  module_cmds_F77=
 
13178
  module_expsym_cmds_F77=
 
13179
  always_export_symbols_F77=no
 
13180
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
13181
  # include_expsyms should be a list of space-separated symbols to be *always*
 
13182
  # included in the symbol list
 
13183
  include_expsyms_F77=
 
13184
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
13185
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
13186
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
13187
  # as well as any symbol that contains `d'.
 
13188
  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
 
13189
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
13190
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
13191
  # the symbol is explicitly referenced.  Since portable code cannot
 
13192
  # rely on this symbol name, it's probably fine to never include it in
 
13193
  # preloaded symbol tables.
 
13194
  extract_expsyms_cmds=
 
13195
  # Just being paranoid about ensuring that cc_basename is set.
 
13196
  for cc_temp in $compiler""; do
 
13197
  case $cc_temp in
 
13198
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
13199
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
13200
    \-*) ;;
 
13201
    *) break;;
 
13202
  esac
 
13203
done
 
13204
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
13205
 
 
13206
  case $host_os in
 
13207
  cygwin* | mingw* | pw32*)
 
13208
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
13209
    # When not using gcc, we currently assume that we are using
 
13210
    # Microsoft Visual C++.
 
13211
    if test "$GCC" != yes; then
 
13212
      with_gnu_ld=no
 
13213
    fi
 
13214
    ;;
 
13215
  openbsd*)
 
13216
    with_gnu_ld=no
 
13217
    ;;
 
13218
  esac
 
13219
 
 
13220
  ld_shlibs_F77=yes
 
13221
  if test "$with_gnu_ld" = yes; then
 
13222
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
13223
    wlarc='${wl}'
 
13224
 
 
13225
    # Set some defaults for GNU ld with shared library support. These
 
13226
    # are reset later if shared libraries are not supported. Putting them
 
13227
    # here allows them to be overridden if necessary.
 
13228
    runpath_var=LD_RUN_PATH
 
13229
    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
 
13230
    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
 
13231
    # ancient GNU ld didn't support --whole-archive et. al.
 
13232
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
13233
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
13234
      else
 
13235
        whole_archive_flag_spec_F77=
 
13236
    fi
 
13237
    supports_anon_versioning=no
 
13238
    case `$LD -v 2>/dev/null` in
 
13239
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
13240
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
13241
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
13242
      *\ 2.11.*) ;; # other 2.11 versions
 
13243
      *) supports_anon_versioning=yes ;;
 
13244
    esac
 
13245
 
 
13246
    # See if GNU ld supports shared libraries.
 
13247
    case $host_os in
 
13248
    aix3* | aix4* | aix5*)
 
13249
      # On AIX/PPC, the GNU linker is very broken
 
13250
      if test "$host_cpu" != ia64; then
 
13251
        ld_shlibs_F77=no
 
13252
        cat <<EOF 1>&2
 
13253
 
 
13254
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
13255
*** to be unable to reliably create shared libraries on AIX.
 
13256
*** Therefore, libtool is disabling shared libraries support.  If you
 
13257
*** really care for shared libraries, you may want to modify your PATH
 
13258
*** so that a non-GNU linker is found, and then restart.
 
13259
 
 
13260
EOF
 
13261
      fi
 
13262
      ;;
 
13263
 
 
13264
    amigaos*)
 
13265
      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)'
 
13266
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
13267
      hardcode_minus_L_F77=yes
 
13268
 
 
13269
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
13270
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
13271
      # to version 4, is to share data among multiple programs linked
 
13272
      # with the same dynamic library.  Since this doesn't match the
 
13273
      # behavior of shared libraries on other platforms, we can't use
 
13274
      # them.
 
13275
      ld_shlibs_F77=no
 
13276
      ;;
 
13277
 
 
13278
    beos*)
 
13279
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
13280
        allow_undefined_flag_F77=unsupported
 
13281
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
13282
        # support --undefined.  This deserves some investigation.  FIXME
 
13283
        archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13284
      else
 
13285
        ld_shlibs_F77=no
 
13286
      fi
 
13287
      ;;
 
13288
 
 
13289
    cygwin* | mingw* | pw32*)
 
13290
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
 
13291
      # as there is no search path for DLLs.
 
13292
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
13293
      allow_undefined_flag_F77=unsupported
 
13294
      always_export_symbols_F77=no
 
13295
      enable_shared_with_static_runtimes_F77=yes
 
13296
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
13297
 
 
13298
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
13299
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
13300
        # If the export-symbols file already is a .def file (1st line
 
13301
        # is EXPORTS), use it as is; otherwise, prepend...
 
13302
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
13303
          cp $export_symbols $output_objdir/$soname.def;
 
13304
        else
 
13305
          echo EXPORTS > $output_objdir/$soname.def;
 
13306
          cat $export_symbols >> $output_objdir/$soname.def;
 
13307
        fi~
 
13308
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
13309
      else
 
13310
        ld_shlibs_F77=no
 
13311
      fi
 
13312
      ;;
 
13313
 
 
13314
    linux*)
 
13315
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
13316
        tmp_addflag=
 
13317
        case $cc_basename,$host_cpu in
 
13318
        pgcc*)                          # Portland Group C compiler
 
13319
          whole_archive_flag_spec_F77='${wl}--whole-archive,`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
13320
          tmp_addflag=' $pic_flag'
 
13321
          ;;
 
13322
        pgf77* | pgf90* )                       # Portland Group f77 and f90 compilers
 
13323
          whole_archive_flag_spec_F77='${wl}--whole-archive,`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
13324
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
13325
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
13326
          tmp_addflag=' -i_dynamic' ;;
 
13327
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
13328
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
13329
        ifc* | ifort*)                  # Intel Fortran compiler
 
13330
          tmp_addflag=' -nofor_main' ;;
 
13331
        esac
 
13332
        archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13333
 
 
13334
        if test $supports_anon_versioning = yes; then
 
13335
          archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
 
13336
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
13337
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
13338
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
13339
        fi
 
13340
      else
 
13341
        ld_shlibs_F77=no
 
13342
      fi
 
13343
      ;;
 
13344
 
 
13345
    netbsd*)
 
13346
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
13347
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
13348
        wlarc=
 
13349
      else
 
13350
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13351
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
13352
      fi
 
13353
      ;;
 
13354
 
 
13355
    solaris* | sysv5*)
 
13356
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
13357
        ld_shlibs_F77=no
 
13358
        cat <<EOF 1>&2
 
13359
 
 
13360
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
13361
*** create shared libraries on Solaris systems.  Therefore, libtool
 
13362
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
13363
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
13364
*** your PATH or compiler configuration so that the native linker is
 
13365
*** used, and then restart.
 
13366
 
 
13367
EOF
 
13368
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
13369
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13370
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
13371
      else
 
13372
        ld_shlibs_F77=no
 
13373
      fi
 
13374
      ;;
 
13375
 
 
13376
    sunos4*)
 
13377
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
13378
      wlarc=
 
13379
      hardcode_direct_F77=yes
 
13380
      hardcode_shlibpath_var_F77=no
 
13381
      ;;
 
13382
 
 
13383
    *)
 
13384
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
13385
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13386
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
13387
      else
 
13388
        ld_shlibs_F77=no
 
13389
      fi
 
13390
      ;;
 
13391
    esac
 
13392
 
 
13393
    if test "$ld_shlibs_F77" = no; then
 
13394
      runpath_var=
 
13395
      hardcode_libdir_flag_spec_F77=
 
13396
      export_dynamic_flag_spec_F77=
 
13397
      whole_archive_flag_spec_F77=
 
13398
    fi
 
13399
  else
 
13400
    # PORTME fill in a description of your system's linker (not GNU ld)
 
13401
    case $host_os in
 
13402
    aix3*)
 
13403
      allow_undefined_flag_F77=unsupported
 
13404
      always_export_symbols_F77=yes
 
13405
      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'
 
13406
      # Note: this linker hardcodes the directories in LIBPATH if there
 
13407
      # are no directories specified by -L.
 
13408
      hardcode_minus_L_F77=yes
 
13409
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
13410
        # Neither direct hardcoding nor static linking is supported with a
 
13411
        # broken collect2.
 
13412
        hardcode_direct_F77=unsupported
 
13413
      fi
 
13414
      ;;
 
13415
 
 
13416
    aix4* | aix5*)
 
13417
      if test "$host_cpu" = ia64; then
 
13418
        # On IA64, the linker does run time linking by default, so we don't
 
13419
        # have to do anything special.
 
13420
        aix_use_runtimelinking=no
 
13421
        exp_sym_flag='-Bexport'
 
13422
        no_entry_flag=""
 
13423
      else
 
13424
        # If we're using GNU nm, then we don't want the "-C" option.
 
13425
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
13426
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
13427
          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'
 
13428
        else
 
13429
          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'
 
13430
        fi
 
13431
        aix_use_runtimelinking=no
 
13432
 
 
13433
        # Test if we are trying to use run time linking or normal
 
13434
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
13435
        # need to do runtime linking.
 
13436
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
13437
          for ld_flag in $LDFLAGS; do
 
13438
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
13439
            aix_use_runtimelinking=yes
 
13440
            break
 
13441
          fi
 
13442
          done
 
13443
        esac
 
13444
 
 
13445
        exp_sym_flag='-bexport'
 
13446
        no_entry_flag='-bnoentry'
 
13447
      fi
 
13448
 
 
13449
      # When large executables or shared objects are built, AIX ld can
 
13450
      # have problems creating the table of contents.  If linking a library
 
13451
      # or program results in "error TOC overflow" add -mminimal-toc to
 
13452
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
13453
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
13454
 
 
13455
      archive_cmds_F77=''
 
13456
      hardcode_direct_F77=yes
 
13457
      hardcode_libdir_separator_F77=':'
 
13458
      link_all_deplibs_F77=yes
 
13459
 
 
13460
      if test "$GCC" = yes; then
 
13461
        case $host_os in aix4.[012]|aix4.[012].*)
 
13462
        # We only want to do this on AIX 4.2 and lower, the check
 
13463
        # below for broken collect2 doesn't work under 4.3+
 
13464
          collect2name=`${CC} -print-prog-name=collect2`
 
13465
          if test -f "$collect2name" && \
 
13466
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
13467
          then
 
13468
          # We have reworked collect2
 
13469
          hardcode_direct_F77=yes
 
13470
          else
 
13471
          # We have old collect2
 
13472
          hardcode_direct_F77=unsupported
 
13473
          # It fails to find uninstalled libraries when the uninstalled
 
13474
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
13475
          # to unsupported forces relinking
 
13476
          hardcode_minus_L_F77=yes
 
13477
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
13478
          hardcode_libdir_separator_F77=
 
13479
          fi
 
13480
        esac
 
13481
        shared_flag='-shared'
 
13482
        if test "$aix_use_runtimelinking" = yes; then
 
13483
          shared_flag="$shared_flag "'${wl}-G'
 
13484
        fi
 
13485
      else
 
13486
        # not using gcc
 
13487
        if test "$host_cpu" = ia64; then
 
13488
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
13489
        # chokes on -Wl,-G. The following line is correct:
 
13490
          shared_flag='-G'
 
13491
        else
 
13492
        if test "$aix_use_runtimelinking" = yes; then
 
13493
            shared_flag='${wl}-G'
 
13494
          else
 
13495
            shared_flag='${wl}-bM:SRE'
 
13496
        fi
 
13497
        fi
 
13498
      fi
 
13499
 
 
13500
      # It seems that -bexpall does not export symbols beginning with
 
13501
      # underscore (_), so it is better to generate a list of symbols to export.
 
13502
      always_export_symbols_F77=yes
 
13503
      if test "$aix_use_runtimelinking" = yes; then
 
13504
        # Warning - without using the other runtime loading flags (-brtl),
 
13505
        # -berok will link without error, but may produce a broken library.
 
13506
        allow_undefined_flag_F77='-berok'
 
13507
       # Determine the default libpath from the value encoded in an empty executable.
 
13508
       cat >conftest.$ac_ext <<_ACEOF
 
13509
      program main
 
13510
 
 
13511
      end
 
13512
_ACEOF
 
13513
rm -f conftest.$ac_objext conftest$ac_exeext
 
13514
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13515
  (eval $ac_link) 2>conftest.er1
 
13516
  ac_status=$?
 
13517
  grep -v '^ *+' conftest.er1 >conftest.err
 
13518
  rm -f conftest.er1
 
13519
  cat conftest.err >&5
 
13520
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13521
  (exit $ac_status); } &&
 
13522
         { ac_try='test -z "$ac_f77_werror_flag"
 
13523
                         || test ! -s conftest.err'
 
13524
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13525
  (eval $ac_try) 2>&5
 
13526
  ac_status=$?
 
13527
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13528
  (exit $ac_status); }; } &&
 
13529
         { ac_try='test -s conftest$ac_exeext'
 
13530
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13531
  (eval $ac_try) 2>&5
 
13532
  ac_status=$?
 
13533
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13534
  (exit $ac_status); }; }; then
 
13535
 
 
13536
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
13537
}'`
 
13538
# Check for a 64-bit object if we didn't find anything.
 
13539
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; }
 
13540
}'`; fi
 
13541
else
 
13542
  echo "$as_me: failed program was:" >&5
 
13543
sed 's/^/| /' conftest.$ac_ext >&5
 
13544
 
 
13545
fi
 
13546
rm -f conftest.err conftest.$ac_objext \
 
13547
      conftest$ac_exeext conftest.$ac_ext
 
13548
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
13549
 
 
13550
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
13551
        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"
 
13552
       else
 
13553
        if test "$host_cpu" = ia64; then
 
13554
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
 
13555
          allow_undefined_flag_F77="-z nodefs"
 
13556
          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"
 
13557
        else
 
13558
         # Determine the default libpath from the value encoded in an empty executable.
 
13559
         cat >conftest.$ac_ext <<_ACEOF
 
13560
      program main
 
13561
 
 
13562
      end
 
13563
_ACEOF
 
13564
rm -f conftest.$ac_objext conftest$ac_exeext
 
13565
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13566
  (eval $ac_link) 2>conftest.er1
 
13567
  ac_status=$?
 
13568
  grep -v '^ *+' conftest.er1 >conftest.err
 
13569
  rm -f conftest.er1
 
13570
  cat conftest.err >&5
 
13571
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13572
  (exit $ac_status); } &&
 
13573
         { ac_try='test -z "$ac_f77_werror_flag"
 
13574
                         || test ! -s conftest.err'
 
13575
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13576
  (eval $ac_try) 2>&5
 
13577
  ac_status=$?
 
13578
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13579
  (exit $ac_status); }; } &&
 
13580
         { ac_try='test -s conftest$ac_exeext'
 
13581
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13582
  (eval $ac_try) 2>&5
 
13583
  ac_status=$?
 
13584
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13585
  (exit $ac_status); }; }; then
 
13586
 
 
13587
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
13588
}'`
 
13589
# Check for a 64-bit object if we didn't find anything.
 
13590
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; }
 
13591
}'`; fi
 
13592
else
 
13593
  echo "$as_me: failed program was:" >&5
 
13594
sed 's/^/| /' conftest.$ac_ext >&5
 
13595
 
 
13596
fi
 
13597
rm -f conftest.err conftest.$ac_objext \
 
13598
      conftest$ac_exeext conftest.$ac_ext
 
13599
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
13600
 
 
13601
         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
13602
          # Warning - without using the other run time loading flags,
 
13603
          # -berok will link without error, but may produce a broken library.
 
13604
          no_undefined_flag_F77=' ${wl}-bernotok'
 
13605
          allow_undefined_flag_F77=' ${wl}-berok'
 
13606
          # -bexpall does not export symbols beginning with underscore (_)
 
13607
          always_export_symbols_F77=yes
 
13608
          # Exported symbols can be pulled into shared objects from archives
 
13609
          whole_archive_flag_spec_F77=' '
 
13610
          archive_cmds_need_lc_F77=yes
 
13611
          # This is similar to how AIX traditionally builds it's shared libraries.
 
13612
          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'
 
13613
        fi
 
13614
      fi
 
13615
      ;;
 
13616
 
 
13617
    amigaos*)
 
13618
      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)'
 
13619
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
13620
      hardcode_minus_L_F77=yes
 
13621
      # see comment about different semantics on the GNU ld section
 
13622
      ld_shlibs_F77=no
 
13623
      ;;
 
13624
 
 
13625
    bsdi[45]*)
 
13626
      export_dynamic_flag_spec_F77=-rdynamic
 
13627
      ;;
 
13628
 
 
13629
    cygwin* | mingw* | pw32*)
 
13630
      # When not using gcc, we currently assume that we are using
 
13631
      # Microsoft Visual C++.
 
13632
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
13633
      # no search path for DLLs.
 
13634
      hardcode_libdir_flag_spec_F77=' '
 
13635
      allow_undefined_flag_F77=unsupported
 
13636
      # Tell ltmain to make .lib files, not .a files.
 
13637
      libext=lib
 
13638
      # Tell ltmain to make .dll files, not .so files.
 
13639
      shrext_cmds=".dll"
 
13640
      # FIXME: Setting linknames here is a bad hack.
 
13641
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
13642
      # The linker will automatically build a .lib file if we build a DLL.
 
13643
      old_archive_From_new_cmds_F77='true'
 
13644
      # FIXME: Should let the user specify the lib program.
 
13645
      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
13646
      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
 
13647
      enable_shared_with_static_runtimes_F77=yes
 
13648
      ;;
 
13649
 
 
13650
    darwin* | rhapsody*)
 
13651
      case "$host_os" in
 
13652
        rhapsody* | darwin1.[012])
 
13653
         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
 
13654
         ;;
 
13655
       *) # Darwin 1.3 on
 
13656
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
13657
           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
13658
         else
 
13659
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
13660
             10.[012])
 
13661
               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
13662
               ;;
 
13663
             10.*)
 
13664
               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
 
13665
               ;;
 
13666
           esac
 
13667
         fi
 
13668
         ;;
 
13669
      esac
 
13670
      archive_cmds_need_lc_F77=no
 
13671
      hardcode_direct_F77=no
 
13672
      hardcode_automatic_F77=yes
 
13673
      hardcode_shlibpath_var_F77=unsupported
 
13674
      whole_archive_flag_spec_F77=''
 
13675
      link_all_deplibs_F77=yes
 
13676
    if test "$GCC" = yes ; then
 
13677
        output_verbose_link_cmd='echo'
 
13678
        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
13679
      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
13680
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
13681
      archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
13682
      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}'
 
13683
    else
 
13684
      case $cc_basename in
 
13685
        xlc*)
 
13686
         output_verbose_link_cmd='echo'
 
13687
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
13688
         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
13689
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
13690
         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
13691
          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}'
 
13692
          ;;
 
13693
       *)
 
13694
         ld_shlibs_F77=no
 
13695
          ;;
 
13696
      esac
 
13697
    fi
 
13698
      ;;
 
13699
 
 
13700
    dgux*)
 
13701
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
13702
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
13703
      hardcode_shlibpath_var_F77=no
 
13704
      ;;
 
13705
 
 
13706
    freebsd1*)
 
13707
      ld_shlibs_F77=no
 
13708
      ;;
 
13709
 
 
13710
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
13711
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
13712
    # does not break anything, and helps significantly (at the cost of a little
 
13713
    # extra space).
 
13714
    freebsd2.2*)
 
13715
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
13716
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
13717
      hardcode_direct_F77=yes
 
13718
      hardcode_shlibpath_var_F77=no
 
13719
      ;;
 
13720
 
 
13721
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
13722
    freebsd2*)
 
13723
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
13724
      hardcode_direct_F77=yes
 
13725
      hardcode_minus_L_F77=yes
 
13726
      hardcode_shlibpath_var_F77=no
 
13727
      ;;
 
13728
 
 
13729
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
13730
    freebsd* | kfreebsd*-gnu | dragonfly*)
 
13731
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
13732
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
13733
      hardcode_direct_F77=yes
 
13734
      hardcode_shlibpath_var_F77=no
 
13735
      ;;
 
13736
 
 
13737
    hpux9*)
 
13738
      if test "$GCC" = yes; then
 
13739
        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'
 
13740
      else
 
13741
        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'
 
13742
      fi
 
13743
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
13744
      hardcode_libdir_separator_F77=:
 
13745
      hardcode_direct_F77=yes
 
13746
 
 
13747
      # hardcode_minus_L: Not really in the search PATH,
 
13748
      # but as the default location of the library.
 
13749
      hardcode_minus_L_F77=yes
 
13750
      export_dynamic_flag_spec_F77='${wl}-E'
 
13751
      ;;
 
13752
 
 
13753
    hpux10* | hpux11*)
 
13754
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
13755
        case "$host_cpu" in
 
13756
        hppa*64*|ia64*)
 
13757
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13758
          ;;
 
13759
        *)
 
13760
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
13761
          ;;
 
13762
        esac
 
13763
      else
 
13764
        case "$host_cpu" in
 
13765
        hppa*64*|ia64*)
 
13766
          archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
13767
          ;;
 
13768
        *)
 
13769
          archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
13770
          ;;
 
13771
        esac
 
13772
      fi
 
13773
      if test "$with_gnu_ld" = no; then
 
13774
        case "$host_cpu" in
 
13775
        hppa*64*)
 
13776
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
13777
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
 
13778
          hardcode_libdir_separator_F77=:
 
13779
          hardcode_direct_F77=no
 
13780
          hardcode_shlibpath_var_F77=no
 
13781
          ;;
 
13782
        ia64*)
 
13783
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
13784
          hardcode_direct_F77=no
 
13785
          hardcode_shlibpath_var_F77=no
 
13786
 
 
13787
          # hardcode_minus_L: Not really in the search PATH,
 
13788
          # but as the default location of the library.
 
13789
          hardcode_minus_L_F77=yes
 
13790
          ;;
 
13791
        *)
 
13792
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
13793
          hardcode_libdir_separator_F77=:
 
13794
          hardcode_direct_F77=yes
 
13795
          export_dynamic_flag_spec_F77='${wl}-E'
 
13796
 
 
13797
          # hardcode_minus_L: Not really in the search PATH,
 
13798
          # but as the default location of the library.
 
13799
          hardcode_minus_L_F77=yes
 
13800
          ;;
 
13801
        esac
 
13802
      fi
 
13803
      ;;
 
13804
 
 
13805
    irix5* | irix6* | nonstopux*)
 
13806
      if test "$GCC" = yes; then
 
13807
        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'
 
13808
      else
 
13809
        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'
 
13810
        hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
 
13811
      fi
 
13812
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
13813
      hardcode_libdir_separator_F77=:
 
13814
      link_all_deplibs_F77=yes
 
13815
      ;;
 
13816
 
 
13817
    netbsd*)
 
13818
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
13819
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
13820
      else
 
13821
        archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
13822
      fi
 
13823
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
13824
      hardcode_direct_F77=yes
 
13825
      hardcode_shlibpath_var_F77=no
 
13826
      ;;
 
13827
 
 
13828
    newsos6)
 
13829
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
13830
      hardcode_direct_F77=yes
 
13831
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
13832
      hardcode_libdir_separator_F77=:
 
13833
      hardcode_shlibpath_var_F77=no
 
13834
      ;;
 
13835
 
 
13836
    openbsd*)
 
13837
      hardcode_direct_F77=yes
 
13838
      hardcode_shlibpath_var_F77=no
 
13839
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
13840
        archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
13841
        archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
13842
        hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
13843
        export_dynamic_flag_spec_F77='${wl}-E'
 
13844
      else
 
13845
       case $host_os in
 
13846
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
13847
           archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
13848
           hardcode_libdir_flag_spec_F77='-R$libdir'
 
13849
           ;;
 
13850
         *)
 
13851
           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
13852
           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
13853
           ;;
 
13854
       esac
 
13855
      fi
 
13856
      ;;
 
13857
 
 
13858
    os2*)
 
13859
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
13860
      hardcode_minus_L_F77=yes
 
13861
      allow_undefined_flag_F77=unsupported
 
13862
      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'
 
13863
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
13864
      ;;
 
13865
 
 
13866
    osf3*)
 
13867
      if test "$GCC" = yes; then
 
13868
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
13869
        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'
 
13870
      else
 
13871
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
13872
        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'
 
13873
      fi
 
13874
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
13875
      hardcode_libdir_separator_F77=:
 
13876
      ;;
 
13877
 
 
13878
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
13879
      if test "$GCC" = yes; then
 
13880
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
13881
        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'
 
13882
        hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
13883
      else
 
13884
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
13885
        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'
 
13886
        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~
 
13887
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
 
13888
 
 
13889
        # Both c and cxx compiler support -rpath directly
 
13890
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
 
13891
      fi
 
13892
      hardcode_libdir_separator_F77=:
 
13893
      ;;
 
13894
 
 
13895
    sco3.2v5*)
 
13896
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
13897
      hardcode_shlibpath_var_F77=no
 
13898
      export_dynamic_flag_spec_F77='${wl}-Bexport'
 
13899
      runpath_var=LD_RUN_PATH
 
13900
      hardcode_runpath_var=yes
 
13901
      ;;
 
13902
 
 
13903
    solaris*)
 
13904
      no_undefined_flag_F77=' -z text'
 
13905
      if test "$GCC" = yes; then
 
13906
        wlarc='${wl}'
 
13907
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13908
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
13909
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
13910
      else
 
13911
        wlarc=''
 
13912
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
13913
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
13914
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
13915
      fi
 
13916
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
13917
      hardcode_shlibpath_var_F77=no
 
13918
      case $host_os in
 
13919
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
13920
      *)
 
13921
        # The compiler driver will combine linker options so we
 
13922
        # cannot just pass the convience library names through
 
13923
        # without $wl, iff we do not link with $LD.
 
13924
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
13925
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
13926
        case $wlarc in
 
13927
        '')
 
13928
          whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
 
13929
        *)
 
13930
          whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
 
13931
        esac ;;
 
13932
      esac
 
13933
      link_all_deplibs_F77=yes
 
13934
      ;;
 
13935
 
 
13936
    sunos4*)
 
13937
      if test "x$host_vendor" = xsequent; then
 
13938
        # Use $CC to link under sequent, because it throws in some extra .o
 
13939
        # files that make .init and .fini sections work.
 
13940
        archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
13941
      else
 
13942
        archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
13943
      fi
 
13944
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
13945
      hardcode_direct_F77=yes
 
13946
      hardcode_minus_L_F77=yes
 
13947
      hardcode_shlibpath_var_F77=no
 
13948
      ;;
 
13949
 
 
13950
    sysv4)
 
13951
      case $host_vendor in
 
13952
        sni)
 
13953
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
13954
          hardcode_direct_F77=yes # is this really true???
 
13955
        ;;
 
13956
        siemens)
 
13957
          ## LD is ld it makes a PLAMLIB
 
13958
          ## CC just makes a GrossModule.
 
13959
          archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
13960
          reload_cmds_F77='$CC -r -o $output$reload_objs'
 
13961
          hardcode_direct_F77=no
 
13962
        ;;
 
13963
        motorola)
 
13964
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
13965
          hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
 
13966
        ;;
 
13967
      esac
 
13968
      runpath_var='LD_RUN_PATH'
 
13969
      hardcode_shlibpath_var_F77=no
 
13970
      ;;
 
13971
 
 
13972
    sysv4.3*)
 
13973
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
13974
      hardcode_shlibpath_var_F77=no
 
13975
      export_dynamic_flag_spec_F77='-Bexport'
 
13976
      ;;
 
13977
 
 
13978
    sysv4*MP*)
 
13979
      if test -d /usr/nec; then
 
13980
        archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
13981
        hardcode_shlibpath_var_F77=no
 
13982
        runpath_var=LD_RUN_PATH
 
13983
        hardcode_runpath_var=yes
 
13984
        ld_shlibs_F77=yes
 
13985
      fi
 
13986
      ;;
 
13987
 
 
13988
    sysv4.2uw2*)
 
13989
      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
13990
      hardcode_direct_F77=yes
 
13991
      hardcode_minus_L_F77=no
 
13992
      hardcode_shlibpath_var_F77=no
 
13993
      hardcode_runpath_var=yes
 
13994
      runpath_var=LD_RUN_PATH
 
13995
      ;;
 
13996
 
 
13997
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
13998
      no_undefined_flag_F77='${wl}-z ${wl}text'
 
13999
      if test "$GCC" = yes; then
 
14000
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14001
      else
 
14002
        archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14003
      fi
 
14004
      runpath_var='LD_RUN_PATH'
 
14005
      hardcode_shlibpath_var_F77=no
 
14006
      ;;
 
14007
 
 
14008
    sysv5*)
 
14009
      no_undefined_flag_F77=' -z text'
 
14010
      # $CC -shared without GNU ld will not create a library from C++
 
14011
      # object files and a static libstdc++, better avoid it by now
 
14012
      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14013
      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
14014
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
14015
      hardcode_libdir_flag_spec_F77=
 
14016
      hardcode_shlibpath_var_F77=no
 
14017
      runpath_var='LD_RUN_PATH'
 
14018
      ;;
 
14019
 
 
14020
    uts4*)
 
14021
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14022
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14023
      hardcode_shlibpath_var_F77=no
 
14024
      ;;
 
14025
 
 
14026
    *)
 
14027
      ld_shlibs_F77=no
 
14028
      ;;
 
14029
    esac
 
14030
  fi
 
14031
 
 
14032
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
 
14033
echo "${ECHO_T}$ld_shlibs_F77" >&6
 
14034
test "$ld_shlibs_F77" = no && can_build_shared=no
 
14035
 
 
14036
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
14037
if test "$GCC" = yes; then
 
14038
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
14039
fi
 
14040
 
 
14041
#
 
14042
# Do we need to explicitly link libc?
 
14043
#
 
14044
case "x$archive_cmds_need_lc_F77" in
 
14045
x|xyes)
 
14046
  # Assume -lc should be added
 
14047
  archive_cmds_need_lc_F77=yes
 
14048
 
 
14049
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
14050
    case $archive_cmds_F77 in
 
14051
    *'~'*)
 
14052
      # FIXME: we may have to deal with multi-command sequences.
 
14053
      ;;
 
14054
    '$CC '*)
 
14055
      # Test whether the compiler implicitly links with -lc since on some
 
14056
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
14057
      # to ld, don't add -lc before -lgcc.
 
14058
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
14059
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
14060
      $rm conftest*
 
14061
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14062
 
 
14063
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
14064
  (eval $ac_compile) 2>&5
 
14065
  ac_status=$?
 
14066
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14067
  (exit $ac_status); } 2>conftest.err; then
 
14068
        soname=conftest
 
14069
        lib=conftest
 
14070
        libobjs=conftest.$ac_objext
 
14071
        deplibs=
 
14072
        wl=$lt_prog_compiler_wl_F77
 
14073
        compiler_flags=-v
 
14074
        linker_flags=-v
 
14075
        verstring=
 
14076
        output_objdir=.
 
14077
        libname=conftest
 
14078
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
 
14079
        allow_undefined_flag_F77=
 
14080
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
14081
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
14082
  ac_status=$?
 
14083
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14084
  (exit $ac_status); }
 
14085
        then
 
14086
          archive_cmds_need_lc_F77=no
 
14087
        else
 
14088
          archive_cmds_need_lc_F77=yes
 
14089
        fi
 
14090
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
 
14091
      else
 
14092
        cat conftest.err 1>&5
 
14093
      fi
 
14094
      $rm conftest*
 
14095
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
 
14096
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
 
14097
      ;;
 
14098
    esac
 
14099
  fi
 
14100
  ;;
 
14101
esac
 
14102
 
 
14103
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
14104
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
14105
library_names_spec=
 
14106
libname_spec='lib$name'
 
14107
soname_spec=
 
14108
shrext_cmds=".so"
 
14109
postinstall_cmds=
 
14110
postuninstall_cmds=
 
14111
finish_cmds=
 
14112
finish_eval=
 
14113
shlibpath_var=
 
14114
shlibpath_overrides_runpath=unknown
 
14115
version_type=none
 
14116
dynamic_linker="$host_os ld.so"
 
14117
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
14118
if test "$GCC" = yes; then
 
14119
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
14120
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
14121
    # if the path contains ";" then we assume it to be the separator
 
14122
    # otherwise default to the standard path separator (i.e. ":") - it is
 
14123
    # assumed that no part of a normal pathname contains ";" but that should
 
14124
    # okay in the real world where ";" in dirpaths is itself problematic.
 
14125
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
14126
  else
 
14127
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
14128
  fi
 
14129
else
 
14130
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
14131
fi
 
14132
need_lib_prefix=unknown
 
14133
hardcode_into_libs=no
 
14134
 
 
14135
# when you set need_version to no, make sure it does not cause -set_version
 
14136
# flags to be left without arguments
 
14137
need_version=unknown
 
14138
 
 
14139
case $host_os in
 
14140
aix3*)
 
14141
  version_type=linux
 
14142
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
14143
  shlibpath_var=LIBPATH
 
14144
 
 
14145
  # AIX 3 has no versioning support, so we append a major version to the name.
 
14146
  soname_spec='${libname}${release}${shared_ext}$major'
 
14147
  ;;
 
14148
 
 
14149
aix4* | aix5*)
 
14150
  version_type=linux
 
14151
  need_lib_prefix=no
 
14152
  need_version=no
 
14153
  hardcode_into_libs=yes
 
14154
  if test "$host_cpu" = ia64; then
 
14155
    # AIX 5 supports IA64
 
14156
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
14157
    shlibpath_var=LD_LIBRARY_PATH
 
14158
  else
 
14159
    # With GCC up to 2.95.x, collect2 would create an import file
 
14160
    # for dependence libraries.  The import file would start with
 
14161
    # the line `#! .'.  This would cause the generated library to
 
14162
    # depend on `.', always an invalid library.  This was fixed in
 
14163
    # development snapshots of GCC prior to 3.0.
 
14164
    case $host_os in
 
14165
      aix4 | aix4.[01] | aix4.[01].*)
 
14166
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
14167
           echo ' yes '
 
14168
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
14169
        :
 
14170
      else
 
14171
        can_build_shared=no
 
14172
      fi
 
14173
      ;;
 
14174
    esac
 
14175
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
14176
    # soname into executable. Probably we can add versioning support to
 
14177
    # collect2, so additional links can be useful in future.
 
14178
    if test "$aix_use_runtimelinking" = yes; then
 
14179
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
14180
      # instead of lib<name>.a to let people know that these are not
 
14181
      # typical AIX shared libraries.
 
14182
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14183
    else
 
14184
      # We preserve .a as extension for shared libraries through AIX4.2
 
14185
      # and later when we are not doing run time linking.
 
14186
      library_names_spec='${libname}${release}.a $libname.a'
 
14187
      soname_spec='${libname}${release}${shared_ext}$major'
 
14188
    fi
 
14189
    shlibpath_var=LIBPATH
 
14190
  fi
 
14191
  ;;
 
14192
 
 
14193
amigaos*)
 
14194
  library_names_spec='$libname.ixlibrary $libname.a'
 
14195
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
14196
  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'
 
14197
  ;;
 
14198
 
 
14199
beos*)
 
14200
  library_names_spec='${libname}${shared_ext}'
 
14201
  dynamic_linker="$host_os ld.so"
 
14202
  shlibpath_var=LIBRARY_PATH
 
14203
  ;;
 
14204
 
 
14205
bsdi[45]*)
 
14206
  version_type=linux
 
14207
  need_version=no
 
14208
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14209
  soname_spec='${libname}${release}${shared_ext}$major'
 
14210
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
14211
  shlibpath_var=LD_LIBRARY_PATH
 
14212
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
14213
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
14214
  # the default ld.so.conf also contains /usr/contrib/lib and
 
14215
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
14216
  # libtool to hard-code these into programs
 
14217
  ;;
 
14218
 
 
14219
cygwin* | mingw* | pw32*)
 
14220
  version_type=windows
 
14221
  shrext_cmds=".dll"
 
14222
  need_version=no
 
14223
  need_lib_prefix=no
 
14224
 
 
14225
  case $GCC,$host_os in
 
14226
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
14227
    library_names_spec='$libname.dll.a'
 
14228
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
14229
    postinstall_cmds='base_file=`basename \${file}`~
 
14230
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
14231
      dldir=$destdir/`dirname \$dlpath`~
 
14232
      test -d \$dldir || mkdir -p \$dldir~
 
14233
      $install_prog $dir/$dlname \$dldir/$dlname'
 
14234
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
14235
      dlpath=$dir/\$dldll~
 
14236
       $rm \$dlpath'
 
14237
    shlibpath_overrides_runpath=yes
 
14238
 
 
14239
    case $host_os in
 
14240
    cygwin*)
 
14241
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
14242
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
14243
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
14244
      ;;
 
14245
    mingw*)
 
14246
      # MinGW DLLs use traditional 'lib' prefix
 
14247
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
14248
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
14249
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
14250
        # It is most probably a Windows format PATH printed by
 
14251
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
14252
        # path with ; separators, and with drive letters. We can handle the
 
14253
        # drive letters (cygwin fileutils understands them), so leave them,
 
14254
        # especially as we might pass files found there to a mingw objdump,
 
14255
        # which wouldn't understand a cygwinified path. Ahh.
 
14256
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
14257
      else
 
14258
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
14259
      fi
 
14260
      ;;
 
14261
    pw32*)
 
14262
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
14263
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
14264
      ;;
 
14265
    esac
 
14266
    ;;
 
14267
 
 
14268
  *)
 
14269
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
14270
    ;;
 
14271
  esac
 
14272
  dynamic_linker='Win32 ld.exe'
 
14273
  # FIXME: first we should search . and the directory the executable is in
 
14274
  shlibpath_var=PATH
 
14275
  ;;
 
14276
 
 
14277
darwin* | rhapsody*)
 
14278
  dynamic_linker="$host_os dyld"
 
14279
  version_type=darwin
 
14280
  need_lib_prefix=no
 
14281
  need_version=no
 
14282
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
14283
  soname_spec='${libname}${release}${major}$shared_ext'
 
14284
  shlibpath_overrides_runpath=yes
 
14285
  shlibpath_var=DYLD_LIBRARY_PATH
 
14286
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
14287
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
14288
  if test "$GCC" = yes; then
 
14289
    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"`
 
14290
  else
 
14291
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
14292
  fi
 
14293
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
14294
  ;;
 
14295
 
 
14296
dgux*)
 
14297
  version_type=linux
 
14298
  need_lib_prefix=no
 
14299
  need_version=no
 
14300
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
14301
  soname_spec='${libname}${release}${shared_ext}$major'
 
14302
  shlibpath_var=LD_LIBRARY_PATH
 
14303
  ;;
 
14304
 
 
14305
freebsd1*)
 
14306
  dynamic_linker=no
 
14307
  ;;
 
14308
 
 
14309
kfreebsd*-gnu)
 
14310
  version_type=linux
 
14311
  need_lib_prefix=no
 
14312
  need_version=no
 
14313
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
14314
  soname_spec='${libname}${release}${shared_ext}$major'
 
14315
  shlibpath_var=LD_LIBRARY_PATH
 
14316
  shlibpath_overrides_runpath=no
 
14317
  hardcode_into_libs=yes
 
14318
  dynamic_linker='GNU ld.so'
 
14319
  ;;
 
14320
 
 
14321
freebsd* | dragonfly*)
 
14322
  # DragonFly does not have aout.  When/if they implement a new
 
14323
  # versioning mechanism, adjust this.
 
14324
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
14325
  version_type=freebsd-$objformat
 
14326
  case $version_type in
 
14327
    freebsd-elf*)
 
14328
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
14329
      need_version=no
 
14330
      need_lib_prefix=no
 
14331
      ;;
 
14332
    freebsd-*)
 
14333
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
14334
      need_version=yes
 
14335
      ;;
 
14336
  esac
 
14337
  shlibpath_var=LD_LIBRARY_PATH
 
14338
  case $host_os in
 
14339
  freebsd2*)
 
14340
    shlibpath_overrides_runpath=yes
 
14341
    ;;
 
14342
  freebsd3.[01]* | freebsdelf3.[01]*)
 
14343
    shlibpath_overrides_runpath=yes
 
14344
    hardcode_into_libs=yes
 
14345
    ;;
 
14346
  *) # from 3.2 on
 
14347
    shlibpath_overrides_runpath=no
 
14348
    hardcode_into_libs=yes
 
14349
    ;;
 
14350
  esac
 
14351
  ;;
 
14352
 
 
14353
gnu*)
 
14354
  version_type=linux
 
14355
  need_lib_prefix=no
 
14356
  need_version=no
 
14357
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
14358
  soname_spec='${libname}${release}${shared_ext}$major'
 
14359
  shlibpath_var=LD_LIBRARY_PATH
 
14360
  hardcode_into_libs=yes
 
14361
  ;;
 
14362
 
 
14363
hpux9* | hpux10* | hpux11*)
 
14364
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
14365
  # link against other versions.
 
14366
  version_type=sunos
 
14367
  need_lib_prefix=no
 
14368
  need_version=no
 
14369
  case "$host_cpu" in
 
14370
  ia64*)
 
14371
    shrext_cmds='.so'
 
14372
    hardcode_into_libs=yes
 
14373
    dynamic_linker="$host_os dld.so"
 
14374
    shlibpath_var=LD_LIBRARY_PATH
 
14375
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
14376
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14377
    soname_spec='${libname}${release}${shared_ext}$major'
 
14378
    if test "X$HPUX_IA64_MODE" = X32; then
 
14379
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
14380
    else
 
14381
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
14382
    fi
 
14383
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
14384
    ;;
 
14385
   hppa*64*)
 
14386
     shrext_cmds='.sl'
 
14387
     hardcode_into_libs=yes
 
14388
     dynamic_linker="$host_os dld.sl"
 
14389
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
14390
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
14391
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14392
     soname_spec='${libname}${release}${shared_ext}$major'
 
14393
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
14394
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
14395
     ;;
 
14396
   *)
 
14397
    shrext_cmds='.sl'
 
14398
    dynamic_linker="$host_os dld.sl"
 
14399
    shlibpath_var=SHLIB_PATH
 
14400
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
14401
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14402
    soname_spec='${libname}${release}${shared_ext}$major'
 
14403
    ;;
 
14404
  esac
 
14405
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
14406
  postinstall_cmds='chmod 555 $lib'
 
14407
  ;;
 
14408
 
 
14409
irix5* | irix6* | nonstopux*)
 
14410
  case $host_os in
 
14411
    nonstopux*) version_type=nonstopux ;;
 
14412
    *)
 
14413
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
14414
                version_type=linux
 
14415
        else
 
14416
                version_type=irix
 
14417
        fi ;;
 
14418
  esac
 
14419
  need_lib_prefix=no
 
14420
  need_version=no
 
14421
  soname_spec='${libname}${release}${shared_ext}$major'
 
14422
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
14423
  case $host_os in
 
14424
  irix5* | nonstopux*)
 
14425
    libsuff= shlibsuff=
 
14426
    ;;
 
14427
  *)
 
14428
    case $LD in # libtool.m4 will add one of these switches to LD
 
14429
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
14430
      libsuff= shlibsuff= libmagic=32-bit;;
 
14431
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
14432
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
14433
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
14434
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
14435
    *) libsuff= shlibsuff= libmagic=never-match;;
 
14436
    esac
 
14437
    ;;
 
14438
  esac
 
14439
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
14440
  shlibpath_overrides_runpath=no
 
14441
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
14442
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
14443
  hardcode_into_libs=yes
 
14444
  ;;
 
14445
 
 
14446
# No shared lib support for Linux oldld, aout, or coff.
 
14447
linux*oldld* | linux*aout* | linux*coff*)
 
14448
  dynamic_linker=no
 
14449
  ;;
 
14450
 
 
14451
# This must be Linux ELF.
 
14452
linux*)
 
14453
  version_type=linux
 
14454
  need_lib_prefix=no
 
14455
  need_version=no
 
14456
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14457
  soname_spec='${libname}${release}${shared_ext}$major'
 
14458
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
14459
  shlibpath_var=LD_LIBRARY_PATH
 
14460
  shlibpath_overrides_runpath=no
 
14461
  # This implies no fast_install, which is unacceptable.
 
14462
  # Some rework will be needed to allow for fast_install
 
14463
  # before this can be enabled.
 
14464
  hardcode_into_libs=yes
 
14465
 
 
14466
  # find out which ABI we are using
 
14467
  libsuff=
 
14468
  case "$host_cpu" in
 
14469
  x86_64*|s390x*|powerpc64*)
 
14470
    echo '#line 14470 "configure"' > conftest.$ac_ext
 
14471
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
14472
  (eval $ac_compile) 2>&5
 
14473
  ac_status=$?
 
14474
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14475
  (exit $ac_status); }; then
 
14476
      case `/usr/bin/file conftest.$ac_objext` in
 
14477
      *64-bit*)
 
14478
        libsuff=64
 
14479
        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
 
14480
        ;;
 
14481
      esac
 
14482
    fi
 
14483
    rm -rf conftest*
 
14484
    ;;
 
14485
  esac
 
14486
 
 
14487
  # Append ld.so.conf contents to the search path
 
14488
  if test -f /etc/ld.so.conf; then
 
14489
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
14490
    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
 
14491
  fi
 
14492
 
 
14493
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
14494
  # powerpc, because MkLinux only supported shared libraries with the
 
14495
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
14496
  # most powerpc-linux boxes support dynamic linking these days and
 
14497
  # people can always --disable-shared, the test was removed, and we
 
14498
  # assume the GNU/Linux dynamic linker is in use.
 
14499
  dynamic_linker='GNU/Linux ld.so'
 
14500
  ;;
 
14501
 
 
14502
knetbsd*-gnu)
 
14503
  version_type=linux
 
14504
  need_lib_prefix=no
 
14505
  need_version=no
 
14506
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
14507
  soname_spec='${libname}${release}${shared_ext}$major'
 
14508
  shlibpath_var=LD_LIBRARY_PATH
 
14509
  shlibpath_overrides_runpath=no
 
14510
  hardcode_into_libs=yes
 
14511
  dynamic_linker='GNU ld.so'
 
14512
  ;;
 
14513
 
 
14514
netbsd*)
 
14515
  version_type=sunos
 
14516
  need_lib_prefix=no
 
14517
  need_version=no
 
14518
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
14519
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
14520
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
14521
    dynamic_linker='NetBSD (a.out) ld.so'
 
14522
  else
 
14523
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
14524
    soname_spec='${libname}${release}${shared_ext}$major'
 
14525
    dynamic_linker='NetBSD ld.elf_so'
 
14526
  fi
 
14527
  shlibpath_var=LD_LIBRARY_PATH
 
14528
  shlibpath_overrides_runpath=yes
 
14529
  hardcode_into_libs=yes
 
14530
  ;;
 
14531
 
 
14532
newsos6)
 
14533
  version_type=linux
 
14534
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14535
  shlibpath_var=LD_LIBRARY_PATH
 
14536
  shlibpath_overrides_runpath=yes
 
14537
  ;;
 
14538
 
 
14539
nto-qnx*)
 
14540
  version_type=linux
 
14541
  need_lib_prefix=no
 
14542
  need_version=no
 
14543
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14544
  soname_spec='${libname}${release}${shared_ext}$major'
 
14545
  shlibpath_var=LD_LIBRARY_PATH
 
14546
  shlibpath_overrides_runpath=yes
 
14547
  ;;
 
14548
 
 
14549
openbsd*)
 
14550
  version_type=sunos
 
14551
  need_lib_prefix=no
 
14552
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
14553
  case $host_os in
 
14554
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
14555
    *)                         need_version=no  ;;
 
14556
  esac
 
14557
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
14558
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
14559
  shlibpath_var=LD_LIBRARY_PATH
 
14560
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
14561
    case $host_os in
 
14562
      openbsd2.[89] | openbsd2.[89].*)
 
14563
        shlibpath_overrides_runpath=no
 
14564
        ;;
 
14565
      *)
 
14566
        shlibpath_overrides_runpath=yes
 
14567
        ;;
 
14568
      esac
 
14569
  else
 
14570
    shlibpath_overrides_runpath=yes
 
14571
  fi
 
14572
  ;;
 
14573
 
 
14574
os2*)
 
14575
  libname_spec='$name'
 
14576
  shrext_cmds=".dll"
 
14577
  need_lib_prefix=no
 
14578
  library_names_spec='$libname${shared_ext} $libname.a'
 
14579
  dynamic_linker='OS/2 ld.exe'
 
14580
  shlibpath_var=LIBPATH
 
14581
  ;;
 
14582
 
 
14583
osf3* | osf4* | osf5*)
 
14584
  version_type=osf
 
14585
  need_lib_prefix=no
 
14586
  need_version=no
 
14587
  soname_spec='${libname}${release}${shared_ext}$major'
 
14588
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14589
  shlibpath_var=LD_LIBRARY_PATH
 
14590
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
14591
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
14592
  ;;
 
14593
 
 
14594
sco3.2v5*)
 
14595
  version_type=osf
 
14596
  soname_spec='${libname}${release}${shared_ext}$major'
 
14597
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14598
  shlibpath_var=LD_LIBRARY_PATH
 
14599
  ;;
 
14600
 
 
14601
solaris*)
 
14602
  version_type=linux
 
14603
  need_lib_prefix=no
 
14604
  need_version=no
 
14605
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14606
  soname_spec='${libname}${release}${shared_ext}$major'
 
14607
  shlibpath_var=LD_LIBRARY_PATH
 
14608
  shlibpath_overrides_runpath=yes
 
14609
  hardcode_into_libs=yes
 
14610
  # ldd complains unless libraries are executable
 
14611
  postinstall_cmds='chmod +x $lib'
 
14612
  ;;
 
14613
 
 
14614
sunos4*)
 
14615
  version_type=sunos
 
14616
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
14617
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
14618
  shlibpath_var=LD_LIBRARY_PATH
 
14619
  shlibpath_overrides_runpath=yes
 
14620
  if test "$with_gnu_ld" = yes; then
 
14621
    need_lib_prefix=no
 
14622
  fi
 
14623
  need_version=yes
 
14624
  ;;
 
14625
 
 
14626
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
14627
  version_type=linux
 
14628
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14629
  soname_spec='${libname}${release}${shared_ext}$major'
 
14630
  shlibpath_var=LD_LIBRARY_PATH
 
14631
  case $host_vendor in
 
14632
    sni)
 
14633
      shlibpath_overrides_runpath=no
 
14634
      need_lib_prefix=no
 
14635
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
14636
      runpath_var=LD_RUN_PATH
 
14637
      ;;
 
14638
    siemens)
 
14639
      need_lib_prefix=no
 
14640
      ;;
 
14641
    motorola)
 
14642
      need_lib_prefix=no
 
14643
      need_version=no
 
14644
      shlibpath_overrides_runpath=no
 
14645
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
14646
      ;;
 
14647
  esac
 
14648
  ;;
 
14649
 
 
14650
sysv4*MP*)
 
14651
  if test -d /usr/nec ;then
 
14652
    version_type=linux
 
14653
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
14654
    soname_spec='$libname${shared_ext}.$major'
 
14655
    shlibpath_var=LD_LIBRARY_PATH
 
14656
  fi
 
14657
  ;;
 
14658
 
 
14659
uts4*)
 
14660
  version_type=linux
 
14661
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14662
  soname_spec='${libname}${release}${shared_ext}$major'
 
14663
  shlibpath_var=LD_LIBRARY_PATH
 
14664
  ;;
 
14665
 
 
14666
*)
 
14667
  dynamic_linker=no
 
14668
  ;;
 
14669
esac
 
14670
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
14671
echo "${ECHO_T}$dynamic_linker" >&6
 
14672
test "$dynamic_linker" = no && can_build_shared=no
 
14673
 
 
14674
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
14675
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
14676
hardcode_action_F77=
 
14677
if test -n "$hardcode_libdir_flag_spec_F77" || \
 
14678
   test -n "$runpath_var_F77" || \
 
14679
   test "X$hardcode_automatic_F77" = "Xyes" ; then
 
14680
 
 
14681
  # We can hardcode non-existant directories.
 
14682
  if test "$hardcode_direct_F77" != no &&
 
14683
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
14684
     # have to relink, otherwise we might link with an installed library
 
14685
     # when we should be linking with a yet-to-be-installed one
 
14686
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
 
14687
     test "$hardcode_minus_L_F77" != no; then
 
14688
    # Linking always hardcodes the temporary library directory.
 
14689
    hardcode_action_F77=relink
 
14690
  else
 
14691
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
14692
    hardcode_action_F77=immediate
 
14693
  fi
 
14694
else
 
14695
  # We cannot hardcode anything, or else we can only hardcode existing
 
14696
  # directories.
 
14697
  hardcode_action_F77=unsupported
 
14698
fi
 
14699
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
 
14700
echo "${ECHO_T}$hardcode_action_F77" >&6
 
14701
 
 
14702
if test "$hardcode_action_F77" = relink; then
 
14703
  # Fast installation is not supported
 
14704
  enable_fast_install=no
 
14705
elif test "$shlibpath_overrides_runpath" = yes ||
 
14706
     test "$enable_shared" = no; then
 
14707
  # Fast installation is not necessary
 
14708
  enable_fast_install=needless
 
14709
fi
 
14710
 
 
14711
striplib=
 
14712
old_striplib=
 
14713
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
14714
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
14715
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
14716
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
14717
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
14718
  echo "$as_me:$LINENO: result: yes" >&5
 
14719
echo "${ECHO_T}yes" >&6
 
14720
else
 
14721
# FIXME - insert some real tests, host_os isn't really good enough
 
14722
  case $host_os in
 
14723
   darwin*)
 
14724
       if test -n "$STRIP" ; then
 
14725
         striplib="$STRIP -x"
 
14726
         echo "$as_me:$LINENO: result: yes" >&5
 
14727
echo "${ECHO_T}yes" >&6
 
14728
       else
 
14729
  echo "$as_me:$LINENO: result: no" >&5
 
14730
echo "${ECHO_T}no" >&6
 
14731
fi
 
14732
       ;;
 
14733
   *)
 
14734
  echo "$as_me:$LINENO: result: no" >&5
 
14735
echo "${ECHO_T}no" >&6
 
14736
    ;;
 
14737
  esac
 
14738
fi
 
14739
 
 
14740
 
 
14741
 
 
14742
# The else clause should only fire when bootstrapping the
 
14743
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
14744
# with your package, and you will get complaints that there are
 
14745
# no rules to generate ltmain.sh.
 
14746
if test -f "$ltmain"; then
 
14747
  # See if we are running on zsh, and set the options which allow our commands through
 
14748
  # without removal of \ escapes.
 
14749
  if test -n "${ZSH_VERSION+set}" ; then
 
14750
    setopt NO_GLOB_SUBST
 
14751
  fi
 
14752
  # Now quote all the things that may contain metacharacters while being
 
14753
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
14754
  # variables and quote the copies for generation of the libtool script.
 
14755
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
14756
    SED SHELL STRIP \
 
14757
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
14758
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
14759
    deplibs_check_method reload_flag reload_cmds need_locks \
 
14760
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
14761
    lt_cv_sys_global_symbol_to_c_name_address \
 
14762
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
14763
    old_postinstall_cmds old_postuninstall_cmds \
 
14764
    compiler_F77 \
 
14765
    CC_F77 \
 
14766
    LD_F77 \
 
14767
    lt_prog_compiler_wl_F77 \
 
14768
    lt_prog_compiler_pic_F77 \
 
14769
    lt_prog_compiler_static_F77 \
 
14770
    lt_prog_compiler_no_builtin_flag_F77 \
 
14771
    export_dynamic_flag_spec_F77 \
 
14772
    thread_safe_flag_spec_F77 \
 
14773
    whole_archive_flag_spec_F77 \
 
14774
    enable_shared_with_static_runtimes_F77 \
 
14775
    old_archive_cmds_F77 \
 
14776
    old_archive_from_new_cmds_F77 \
 
14777
    predep_objects_F77 \
 
14778
    postdep_objects_F77 \
 
14779
    predeps_F77 \
 
14780
    postdeps_F77 \
 
14781
    compiler_lib_search_path_F77 \
 
14782
    archive_cmds_F77 \
 
14783
    archive_expsym_cmds_F77 \
 
14784
    postinstall_cmds_F77 \
 
14785
    postuninstall_cmds_F77 \
 
14786
    old_archive_from_expsyms_cmds_F77 \
 
14787
    allow_undefined_flag_F77 \
 
14788
    no_undefined_flag_F77 \
 
14789
    export_symbols_cmds_F77 \
 
14790
    hardcode_libdir_flag_spec_F77 \
 
14791
    hardcode_libdir_flag_spec_ld_F77 \
 
14792
    hardcode_libdir_separator_F77 \
 
14793
    hardcode_automatic_F77 \
 
14794
    module_cmds_F77 \
 
14795
    module_expsym_cmds_F77 \
 
14796
    lt_cv_prog_compiler_c_o_F77 \
 
14797
    exclude_expsyms_F77 \
 
14798
    include_expsyms_F77; do
 
14799
 
 
14800
    case $var in
 
14801
    old_archive_cmds_F77 | \
 
14802
    old_archive_from_new_cmds_F77 | \
 
14803
    archive_cmds_F77 | \
 
14804
    archive_expsym_cmds_F77 | \
 
14805
    module_cmds_F77 | \
 
14806
    module_expsym_cmds_F77 | \
 
14807
    old_archive_from_expsyms_cmds_F77 | \
 
14808
    export_symbols_cmds_F77 | \
 
14809
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
14810
    postinstall_cmds | postuninstall_cmds | \
 
14811
    old_postinstall_cmds | old_postuninstall_cmds | \
 
14812
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
14813
      # Double-quote double-evaled strings.
 
14814
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
14815
      ;;
 
14816
    *)
 
14817
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
14818
      ;;
 
14819
    esac
 
14820
  done
 
14821
 
 
14822
  case $lt_echo in
 
14823
  *'\$0 --fallback-echo"')
 
14824
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
14825
    ;;
 
14826
  esac
 
14827
 
 
14828
cfgfile="$ofile"
 
14829
 
 
14830
  cat <<__EOF__ >> "$cfgfile"
 
14831
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
14832
 
 
14833
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
14834
 
 
14835
# Shell to use when invoking shell scripts.
 
14836
SHELL=$lt_SHELL
 
14837
 
 
14838
# Whether or not to build shared libraries.
 
14839
build_libtool_libs=$enable_shared
 
14840
 
 
14841
# Whether or not to build static libraries.
 
14842
build_old_libs=$enable_static
 
14843
 
 
14844
# Whether or not to add -lc for building shared libraries.
 
14845
build_libtool_need_lc=$archive_cmds_need_lc_F77
 
14846
 
 
14847
# Whether or not to disallow shared libs when runtime libs are static
 
14848
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
 
14849
 
 
14850
# Whether or not to optimize for fast installation.
 
14851
fast_install=$enable_fast_install
 
14852
 
 
14853
# The host system.
 
14854
host_alias=$host_alias
 
14855
host=$host
 
14856
host_os=$host_os
 
14857
 
 
14858
# The build system.
 
14859
build_alias=$build_alias
 
14860
build=$build
 
14861
build_os=$build_os
 
14862
 
 
14863
# An echo program that does not interpret backslashes.
 
14864
echo=$lt_echo
 
14865
 
 
14866
# The archiver.
 
14867
AR=$lt_AR
 
14868
AR_FLAGS=$lt_AR_FLAGS
 
14869
 
 
14870
# A C compiler.
 
14871
LTCC=$lt_LTCC
 
14872
 
 
14873
# A language-specific compiler.
 
14874
CC=$lt_compiler_F77
 
14875
 
 
14876
# Is the compiler the GNU C compiler?
 
14877
with_gcc=$GCC_F77
 
14878
 
 
14879
# An ERE matcher.
 
14880
EGREP=$lt_EGREP
 
14881
 
 
14882
# The linker used to build libraries.
 
14883
LD=$lt_LD_F77
 
14884
 
 
14885
# Whether we need hard or soft links.
 
14886
LN_S=$lt_LN_S
 
14887
 
 
14888
# A BSD-compatible nm program.
 
14889
NM=$lt_NM
 
14890
 
 
14891
# A symbol stripping program
 
14892
STRIP=$lt_STRIP
 
14893
 
 
14894
# Used to examine libraries when file_magic_cmd begins "file"
 
14895
MAGIC_CMD=$MAGIC_CMD
 
14896
 
 
14897
# Used on cygwin: DLL creation program.
 
14898
DLLTOOL="$DLLTOOL"
 
14899
 
 
14900
# Used on cygwin: object dumper.
 
14901
OBJDUMP="$OBJDUMP"
 
14902
 
 
14903
# Used on cygwin: assembler.
 
14904
AS="$AS"
 
14905
 
 
14906
# The name of the directory that contains temporary libtool files.
 
14907
objdir=$objdir
 
14908
 
 
14909
# How to create reloadable object files.
 
14910
reload_flag=$lt_reload_flag
 
14911
reload_cmds=$lt_reload_cmds
 
14912
 
 
14913
# How to pass a linker flag through the compiler.
 
14914
wl=$lt_lt_prog_compiler_wl_F77
 
14915
 
 
14916
# Object file suffix (normally "o").
 
14917
objext="$ac_objext"
 
14918
 
 
14919
# Old archive suffix (normally "a").
 
14920
libext="$libext"
 
14921
 
 
14922
# Shared library suffix (normally ".so").
 
14923
shrext_cmds='$shrext_cmds'
 
14924
 
 
14925
# Executable file suffix (normally "").
 
14926
exeext="$exeext"
 
14927
 
 
14928
# Additional compiler flags for building library objects.
 
14929
pic_flag=$lt_lt_prog_compiler_pic_F77
 
14930
pic_mode=$pic_mode
 
14931
 
 
14932
# What is the maximum length of a command?
 
14933
max_cmd_len=$lt_cv_sys_max_cmd_len
 
14934
 
 
14935
# Does compiler simultaneously support -c and -o options?
 
14936
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
 
14937
 
 
14938
# Must we lock files when doing compilation?
 
14939
need_locks=$lt_need_locks
 
14940
 
 
14941
# Do we need the lib prefix for modules?
 
14942
need_lib_prefix=$need_lib_prefix
 
14943
 
 
14944
# Do we need a version for libraries?
 
14945
need_version=$need_version
 
14946
 
 
14947
# Whether dlopen is supported.
 
14948
dlopen_support=$enable_dlopen
 
14949
 
 
14950
# Whether dlopen of programs is supported.
 
14951
dlopen_self=$enable_dlopen_self
 
14952
 
 
14953
# Whether dlopen of statically linked programs is supported.
 
14954
dlopen_self_static=$enable_dlopen_self_static
 
14955
 
 
14956
# Compiler flag to prevent dynamic linking.
 
14957
link_static_flag=$lt_lt_prog_compiler_static_F77
 
14958
 
 
14959
# Compiler flag to turn off builtin functions.
 
14960
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
 
14961
 
 
14962
# Compiler flag to allow reflexive dlopens.
 
14963
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
 
14964
 
 
14965
# Compiler flag to generate shared objects directly from archives.
 
14966
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
 
14967
 
 
14968
# Compiler flag to generate thread-safe objects.
 
14969
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
 
14970
 
 
14971
# Library versioning type.
 
14972
version_type=$version_type
 
14973
 
 
14974
# Format of library name prefix.
 
14975
libname_spec=$lt_libname_spec
 
14976
 
 
14977
# List of archive names.  First name is the real one, the rest are links.
 
14978
# The last name is the one that the linker finds with -lNAME.
 
14979
library_names_spec=$lt_library_names_spec
 
14980
 
 
14981
# The coded name of the library, if different from the real name.
 
14982
soname_spec=$lt_soname_spec
 
14983
 
 
14984
# Commands used to build and install an old-style archive.
 
14985
RANLIB=$lt_RANLIB
 
14986
old_archive_cmds=$lt_old_archive_cmds_F77
 
14987
old_postinstall_cmds=$lt_old_postinstall_cmds
 
14988
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
14989
 
 
14990
# Create an old-style archive from a shared archive.
 
14991
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
 
14992
 
 
14993
# Create a temporary old-style archive to link instead of a shared archive.
 
14994
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
 
14995
 
 
14996
# Commands used to build and install a shared archive.
 
14997
archive_cmds=$lt_archive_cmds_F77
 
14998
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
 
14999
postinstall_cmds=$lt_postinstall_cmds
 
15000
postuninstall_cmds=$lt_postuninstall_cmds
 
15001
 
 
15002
# Commands used to build a loadable module (assumed same as above if empty)
 
15003
module_cmds=$lt_module_cmds_F77
 
15004
module_expsym_cmds=$lt_module_expsym_cmds_F77
 
15005
 
 
15006
# Commands to strip libraries.
 
15007
old_striplib=$lt_old_striplib
 
15008
striplib=$lt_striplib
 
15009
 
 
15010
# Dependencies to place before the objects being linked to create a
 
15011
# shared library.
 
15012
predep_objects=$lt_predep_objects_F77
 
15013
 
 
15014
# Dependencies to place after the objects being linked to create a
 
15015
# shared library.
 
15016
postdep_objects=$lt_postdep_objects_F77
 
15017
 
 
15018
# Dependencies to place before the objects being linked to create a
 
15019
# shared library.
 
15020
predeps=$lt_predeps_F77
 
15021
 
 
15022
# Dependencies to place after the objects being linked to create a
 
15023
# shared library.
 
15024
postdeps=$lt_postdeps_F77
 
15025
 
 
15026
# The library search path used internally by the compiler when linking
 
15027
# a shared library.
 
15028
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
 
15029
 
 
15030
# Method to check whether dependent libraries are shared objects.
 
15031
deplibs_check_method=$lt_deplibs_check_method
 
15032
 
 
15033
# Command to use when deplibs_check_method == file_magic.
 
15034
file_magic_cmd=$lt_file_magic_cmd
 
15035
 
 
15036
# Flag that allows shared libraries with undefined symbols to be built.
 
15037
allow_undefined_flag=$lt_allow_undefined_flag_F77
 
15038
 
 
15039
# Flag that forces no undefined symbols.
 
15040
no_undefined_flag=$lt_no_undefined_flag_F77
 
15041
 
 
15042
# Commands used to finish a libtool library installation in a directory.
 
15043
finish_cmds=$lt_finish_cmds
 
15044
 
 
15045
# Same as above, but a single script fragment to be evaled but not shown.
 
15046
finish_eval=$lt_finish_eval
 
15047
 
 
15048
# Take the output of nm and produce a listing of raw symbols and C names.
 
15049
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
15050
 
 
15051
# Transform the output of nm in a proper C declaration
 
15052
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
15053
 
 
15054
# Transform the output of nm in a C name address pair
 
15055
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
15056
 
 
15057
# This is the shared library runtime path variable.
 
15058
runpath_var=$runpath_var
 
15059
 
 
15060
# This is the shared library path variable.
 
15061
shlibpath_var=$shlibpath_var
 
15062
 
 
15063
# Is shlibpath searched before the hard-coded library search path?
 
15064
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
15065
 
 
15066
# How to hardcode a shared library path into an executable.
 
15067
hardcode_action=$hardcode_action_F77
 
15068
 
 
15069
# Whether we should hardcode library paths into libraries.
 
15070
hardcode_into_libs=$hardcode_into_libs
 
15071
 
 
15072
# Flag to hardcode \$libdir into a binary during linking.
 
15073
# This must work even if \$libdir does not exist.
 
15074
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
 
15075
 
 
15076
# If ld is used when linking, flag to hardcode \$libdir into
 
15077
# a binary during linking. This must work even if \$libdir does
 
15078
# not exist.
 
15079
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
 
15080
 
 
15081
# Whether we need a single -rpath flag with a separated argument.
 
15082
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
 
15083
 
 
15084
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
15085
# resulting binary.
 
15086
hardcode_direct=$hardcode_direct_F77
 
15087
 
 
15088
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
15089
# resulting binary.
 
15090
hardcode_minus_L=$hardcode_minus_L_F77
 
15091
 
 
15092
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
15093
# the resulting binary.
 
15094
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
 
15095
 
 
15096
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
15097
# and all subsequent libraries and executables linked against it.
 
15098
hardcode_automatic=$hardcode_automatic_F77
 
15099
 
 
15100
# Variables whose values should be saved in libtool wrapper scripts and
 
15101
# restored at relink time.
 
15102
variables_saved_for_relink="$variables_saved_for_relink"
 
15103
 
 
15104
# Whether libtool must link a program against all its dependency libraries.
 
15105
link_all_deplibs=$link_all_deplibs_F77
 
15106
 
 
15107
# Compile-time system search path for libraries
 
15108
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
15109
 
 
15110
# Run-time system search path for libraries
 
15111
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
15112
 
 
15113
# Fix the shell variable \$srcfile for the compiler.
 
15114
fix_srcfile_path="$fix_srcfile_path_F77"
 
15115
 
 
15116
# Set to yes if exported symbols are required.
 
15117
always_export_symbols=$always_export_symbols_F77
 
15118
 
 
15119
# The commands to list exported symbols.
 
15120
export_symbols_cmds=$lt_export_symbols_cmds_F77
 
15121
 
 
15122
# The commands to extract the exported symbol list from a shared archive.
 
15123
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
15124
 
 
15125
# Symbols that should not be listed in the preloaded symbols.
 
15126
exclude_expsyms=$lt_exclude_expsyms_F77
 
15127
 
 
15128
# Symbols that must always be exported.
 
15129
include_expsyms=$lt_include_expsyms_F77
 
15130
 
 
15131
# ### END LIBTOOL TAG CONFIG: $tagname
 
15132
 
 
15133
__EOF__
 
15134
 
 
15135
 
 
15136
else
 
15137
  # If there is no Makefile yet, we rely on a make rule to execute
 
15138
  # `config.status --recheck' to rerun these tests and create the
 
15139
  # libtool script then.
 
15140
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
15141
  if test -f "$ltmain_in"; then
 
15142
    test -f Makefile && make "$ltmain"
 
15143
  fi
 
15144
fi
 
15145
 
 
15146
 
 
15147
ac_ext=c
 
15148
ac_cpp='$CPP $CPPFLAGS'
 
15149
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
15150
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
15151
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
15152
 
 
15153
CC="$lt_save_CC"
 
15154
 
 
15155
        else
 
15156
          tagname=""
 
15157
        fi
 
15158
        ;;
 
15159
 
 
15160
      GCJ)
 
15161
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
 
15162
 
 
15163
 
 
15164
 
 
15165
# Source file extension for Java test sources.
 
15166
ac_ext=java
 
15167
 
 
15168
# Object file extension for compiled Java test sources.
 
15169
objext=o
 
15170
objext_GCJ=$objext
 
15171
 
 
15172
# Code to be used in simple compile tests
 
15173
lt_simple_compile_test_code="class foo {}\n"
 
15174
 
 
15175
# Code to be used in simple link tests
 
15176
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
 
15177
 
 
15178
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
15179
 
 
15180
# If no C compiler was specified, use CC.
 
15181
LTCC=${LTCC-"$CC"}
 
15182
 
 
15183
# Allow CC to be a program name with arguments.
 
15184
compiler=$CC
 
15185
 
 
15186
 
 
15187
# save warnings/boilerplate of simple test code
 
15188
ac_outfile=conftest.$ac_objext
 
15189
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
15190
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
15191
_lt_compiler_boilerplate=`cat conftest.err`
 
15192
$rm conftest*
 
15193
 
 
15194
ac_outfile=conftest.$ac_objext
 
15195
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
15196
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
15197
_lt_linker_boilerplate=`cat conftest.err`
 
15198
$rm conftest*
 
15199
 
 
15200
 
 
15201
# Allow CC to be a program name with arguments.
 
15202
lt_save_CC="$CC"
 
15203
CC=${GCJ-"gcj"}
 
15204
compiler=$CC
 
15205
compiler_GCJ=$CC
 
15206
for cc_temp in $compiler""; do
 
15207
  case $cc_temp in
 
15208
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
15209
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
15210
    \-*) ;;
 
15211
    *) break;;
 
15212
  esac
 
15213
done
 
15214
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
15215
 
 
15216
 
 
15217
# GCJ did not exist at the time GCC didn't implicitly link libc in.
 
15218
archive_cmds_need_lc_GCJ=no
 
15219
 
 
15220
old_archive_cmds_GCJ=$old_archive_cmds
 
15221
 
 
15222
## CAVEAT EMPTOR:
 
15223
## There is no encapsulation within the following macros, do not change
 
15224
## the running order or otherwise move them around unless you know exactly
 
15225
## what you are doing...
 
15226
 
 
15227
lt_prog_compiler_no_builtin_flag_GCJ=
 
15228
 
 
15229
if test "$GCC" = yes; then
 
15230
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
 
15231
 
 
15232
 
 
15233
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
15234
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
 
15235
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
15236
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15237
else
 
15238
  lt_cv_prog_compiler_rtti_exceptions=no
 
15239
  ac_outfile=conftest.$ac_objext
 
15240
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15241
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
15242
   # Insert the option either (1) after the last *FLAGS variable, or
 
15243
   # (2) before a word containing "conftest.", or (3) at the end.
 
15244
   # Note that $ac_compile itself does not contain backslashes and begins
 
15245
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
15246
   # The option is referenced via a variable to avoid confusing sed.
 
15247
   lt_compile=`echo "$ac_compile" | $SED \
 
15248
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
15249
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
15250
   -e 's:$: $lt_compiler_flag:'`
 
15251
   (eval echo "\"\$as_me:15251: $lt_compile\"" >&5)
 
15252
   (eval "$lt_compile" 2>conftest.err)
 
15253
   ac_status=$?
 
15254
   cat conftest.err >&5
 
15255
   echo "$as_me:15255: \$? = $ac_status" >&5
 
15256
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
15257
     # The compiler can only warn and ignore the option if not recognized
 
15258
     # So say no if there are warnings other than the usual output.
 
15259
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
 
15260
     $SED '/^$/d' conftest.err >conftest.er2
 
15261
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
 
15262
       lt_cv_prog_compiler_rtti_exceptions=yes
 
15263
     fi
 
15264
   fi
 
15265
   $rm conftest*
 
15266
 
 
15267
fi
 
15268
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
15269
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
 
15270
 
 
15271
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
15272
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
 
15273
else
 
15274
    :
 
15275
fi
 
15276
 
 
15277
fi
 
15278
 
 
15279
lt_prog_compiler_wl_GCJ=
 
15280
lt_prog_compiler_pic_GCJ=
 
15281
lt_prog_compiler_static_GCJ=
 
15282
 
 
15283
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
15284
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
15285
 
 
15286
  if test "$GCC" = yes; then
 
15287
    lt_prog_compiler_wl_GCJ='-Wl,'
 
15288
    lt_prog_compiler_static_GCJ='-static'
 
15289
 
 
15290
    case $host_os in
 
15291
      aix*)
 
15292
      # All AIX code is PIC.
 
15293
      if test "$host_cpu" = ia64; then
 
15294
        # AIX 5 now supports IA64 processor
 
15295
        lt_prog_compiler_static_GCJ='-Bstatic'
 
15296
      fi
 
15297
      ;;
 
15298
 
 
15299
    amigaos*)
 
15300
      # FIXME: we need at least 68020 code to build shared libraries, but
 
15301
      # adding the `-m68020' flag to GCC prevents building anything better,
 
15302
      # like `-m68040'.
 
15303
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
 
15304
      ;;
 
15305
 
 
15306
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
15307
      # PIC is the default for these OSes.
 
15308
      ;;
 
15309
 
 
15310
    mingw* | pw32* | os2*)
 
15311
      # This hack is so that the source file can tell whether it is being
 
15312
      # built for inclusion in a dll (and should export symbols for example).
 
15313
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
15314
      ;;
 
15315
 
 
15316
    darwin* | rhapsody*)
 
15317
      # PIC is the default on this platform
 
15318
      # Common symbols not allowed in MH_DYLIB files
 
15319
      lt_prog_compiler_pic_GCJ='-fno-common'
 
15320
      ;;
 
15321
 
 
15322
    msdosdjgpp*)
 
15323
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
15324
      # on systems that don't support them.
 
15325
      lt_prog_compiler_can_build_shared_GCJ=no
 
15326
      enable_shared=no
 
15327
      ;;
 
15328
 
 
15329
    sysv4*MP*)
 
15330
      if test -d /usr/nec; then
 
15331
        lt_prog_compiler_pic_GCJ=-Kconform_pic
 
15332
      fi
 
15333
      ;;
 
15334
 
 
15335
    hpux*)
 
15336
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
15337
      # not for PA HP-UX.
 
15338
      case "$host_cpu" in
 
15339
      hppa*64*|ia64*)
 
15340
        # +Z the default
 
15341
        ;;
 
15342
      *)
 
15343
        lt_prog_compiler_pic_GCJ='-fPIC'
 
15344
        ;;
 
15345
      esac
 
15346
      ;;
 
15347
 
 
15348
    *)
 
15349
      lt_prog_compiler_pic_GCJ='-fPIC'
 
15350
      ;;
 
15351
    esac
 
15352
  else
 
15353
    # PORTME Check for flag to pass linker flags through the system compiler.
 
15354
    case $host_os in
 
15355
    aix*)
 
15356
      lt_prog_compiler_wl_GCJ='-Wl,'
 
15357
      if test "$host_cpu" = ia64; then
 
15358
        # AIX 5 now supports IA64 processor
 
15359
        lt_prog_compiler_static_GCJ='-Bstatic'
 
15360
      else
 
15361
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
 
15362
      fi
 
15363
      ;;
 
15364
      darwin*)
 
15365
        # PIC is the default on this platform
 
15366
        # Common symbols not allowed in MH_DYLIB files
 
15367
       case $cc_basename in
 
15368
         xlc*)
 
15369
         lt_prog_compiler_pic_GCJ='-qnocommon'
 
15370
         lt_prog_compiler_wl_GCJ='-Wl,'
 
15371
         ;;
 
15372
       esac
 
15373
       ;;
 
15374
 
 
15375
    mingw* | pw32* | os2*)
 
15376
      # This hack is so that the source file can tell whether it is being
 
15377
      # built for inclusion in a dll (and should export symbols for example).
 
15378
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
15379
      ;;
 
15380
 
 
15381
    hpux9* | hpux10* | hpux11*)
 
15382
      lt_prog_compiler_wl_GCJ='-Wl,'
 
15383
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
15384
      # not for PA HP-UX.
 
15385
      case "$host_cpu" in
 
15386
      hppa*64*|ia64*)
 
15387
        # +Z the default
 
15388
        ;;
 
15389
      *)
 
15390
        lt_prog_compiler_pic_GCJ='+Z'
 
15391
        ;;
 
15392
      esac
 
15393
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
15394
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
 
15395
      ;;
 
15396
 
 
15397
    irix5* | irix6* | nonstopux*)
 
15398
      lt_prog_compiler_wl_GCJ='-Wl,'
 
15399
      # PIC (with -KPIC) is the default.
 
15400
      lt_prog_compiler_static_GCJ='-non_shared'
 
15401
      ;;
 
15402
 
 
15403
    newsos6)
 
15404
      lt_prog_compiler_pic_GCJ='-KPIC'
 
15405
      lt_prog_compiler_static_GCJ='-Bstatic'
 
15406
      ;;
 
15407
 
 
15408
    linux*)
 
15409
      case $cc_basename in
 
15410
      icc* | ecc*)
 
15411
        lt_prog_compiler_wl_GCJ='-Wl,'
 
15412
        lt_prog_compiler_pic_GCJ='-KPIC'
 
15413
        lt_prog_compiler_static_GCJ='-static'
 
15414
        ;;
 
15415
      pgcc* | pgf77* | pgf90*)
 
15416
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
15417
        # which looks to be a dead project)
 
15418
        lt_prog_compiler_wl_GCJ='-Wl,'
 
15419
        lt_prog_compiler_pic_GCJ='-fpic'
 
15420
        lt_prog_compiler_static_GCJ='-static'
 
15421
        ;;
 
15422
      ccc*)
 
15423
        lt_prog_compiler_wl_GCJ='-Wl,'
 
15424
        # All Alpha code is PIC.
 
15425
        lt_prog_compiler_static_GCJ='-non_shared'
 
15426
        ;;
 
15427
      esac
 
15428
      ;;
 
15429
 
 
15430
    osf3* | osf4* | osf5*)
 
15431
      lt_prog_compiler_wl_GCJ='-Wl,'
 
15432
      # All OSF/1 code is PIC.
 
15433
      lt_prog_compiler_static_GCJ='-non_shared'
 
15434
      ;;
 
15435
 
 
15436
    sco3.2v5*)
 
15437
      lt_prog_compiler_pic_GCJ='-Kpic'
 
15438
      lt_prog_compiler_static_GCJ='-dn'
 
15439
      ;;
 
15440
 
 
15441
    solaris*)
 
15442
      lt_prog_compiler_pic_GCJ='-KPIC'
 
15443
      lt_prog_compiler_static_GCJ='-Bstatic'
 
15444
      case $cc_basename in
 
15445
      f77* | f90* | f95*)
 
15446
        lt_prog_compiler_wl_GCJ='-Qoption ld ';;
 
15447
      *)
 
15448
        lt_prog_compiler_wl_GCJ='-Wl,';;
 
15449
      esac
 
15450
      ;;
 
15451
 
 
15452
    sunos4*)
 
15453
      lt_prog_compiler_wl_GCJ='-Qoption ld '
 
15454
      lt_prog_compiler_pic_GCJ='-PIC'
 
15455
      lt_prog_compiler_static_GCJ='-Bstatic'
 
15456
      ;;
 
15457
 
 
15458
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
15459
      lt_prog_compiler_wl_GCJ='-Wl,'
 
15460
      lt_prog_compiler_pic_GCJ='-KPIC'
 
15461
      lt_prog_compiler_static_GCJ='-Bstatic'
 
15462
      ;;
 
15463
 
 
15464
    sysv4*MP*)
 
15465
      if test -d /usr/nec ;then
 
15466
        lt_prog_compiler_pic_GCJ='-Kconform_pic'
 
15467
        lt_prog_compiler_static_GCJ='-Bstatic'
 
15468
      fi
 
15469
      ;;
 
15470
 
 
15471
    unicos*)
 
15472
      lt_prog_compiler_wl_GCJ='-Wl,'
 
15473
      lt_prog_compiler_can_build_shared_GCJ=no
 
15474
      ;;
 
15475
 
 
15476
    uts4*)
 
15477
      lt_prog_compiler_pic_GCJ='-pic'
 
15478
      lt_prog_compiler_static_GCJ='-Bstatic'
 
15479
      ;;
 
15480
 
 
15481
    *)
 
15482
      lt_prog_compiler_can_build_shared_GCJ=no
 
15483
      ;;
 
15484
    esac
 
15485
  fi
 
15486
 
 
15487
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
 
15488
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
 
15489
 
 
15490
#
 
15491
# Check to make sure the PIC flag actually works.
 
15492
#
 
15493
if test -n "$lt_prog_compiler_pic_GCJ"; then
 
15494
 
 
15495
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
 
15496
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
 
15497
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
 
15498
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15499
else
 
15500
  lt_prog_compiler_pic_works_GCJ=no
 
15501
  ac_outfile=conftest.$ac_objext
 
15502
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15503
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
 
15504
   # Insert the option either (1) after the last *FLAGS variable, or
 
15505
   # (2) before a word containing "conftest.", or (3) at the end.
 
15506
   # Note that $ac_compile itself does not contain backslashes and begins
 
15507
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
15508
   # The option is referenced via a variable to avoid confusing sed.
 
15509
   lt_compile=`echo "$ac_compile" | $SED \
 
15510
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
15511
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
15512
   -e 's:$: $lt_compiler_flag:'`
 
15513
   (eval echo "\"\$as_me:15513: $lt_compile\"" >&5)
 
15514
   (eval "$lt_compile" 2>conftest.err)
 
15515
   ac_status=$?
 
15516
   cat conftest.err >&5
 
15517
   echo "$as_me:15517: \$? = $ac_status" >&5
 
15518
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
15519
     # The compiler can only warn and ignore the option if not recognized
 
15520
     # So say no if there are warnings other than the usual output.
 
15521
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
 
15522
     $SED '/^$/d' conftest.err >conftest.er2
 
15523
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
 
15524
       lt_prog_compiler_pic_works_GCJ=yes
 
15525
     fi
 
15526
   fi
 
15527
   $rm conftest*
 
15528
 
 
15529
fi
 
15530
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
 
15531
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
 
15532
 
 
15533
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
 
15534
    case $lt_prog_compiler_pic_GCJ in
 
15535
     "" | " "*) ;;
 
15536
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
 
15537
     esac
 
15538
else
 
15539
    lt_prog_compiler_pic_GCJ=
 
15540
     lt_prog_compiler_can_build_shared_GCJ=no
 
15541
fi
 
15542
 
 
15543
fi
 
15544
case "$host_os" in
 
15545
  # For platforms which do not support PIC, -DPIC is meaningless:
 
15546
  *djgpp*)
 
15547
    lt_prog_compiler_pic_GCJ=
 
15548
    ;;
 
15549
  *)
 
15550
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
 
15551
    ;;
 
15552
esac
 
15553
 
 
15554
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
15555
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
15556
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
 
15557
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15558
else
 
15559
  lt_cv_prog_compiler_c_o_GCJ=no
 
15560
   $rm -r conftest 2>/dev/null
 
15561
   mkdir conftest
 
15562
   cd conftest
 
15563
   mkdir out
 
15564
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15565
 
 
15566
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
15567
   # Insert the option either (1) after the last *FLAGS variable, or
 
15568
   # (2) before a word containing "conftest.", or (3) at the end.
 
15569
   # Note that $ac_compile itself does not contain backslashes and begins
 
15570
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
15571
   lt_compile=`echo "$ac_compile" | $SED \
 
15572
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
15573
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
15574
   -e 's:$: $lt_compiler_flag:'`
 
15575
   (eval echo "\"\$as_me:15575: $lt_compile\"" >&5)
 
15576
   (eval "$lt_compile" 2>out/conftest.err)
 
15577
   ac_status=$?
 
15578
   cat out/conftest.err >&5
 
15579
   echo "$as_me:15579: \$? = $ac_status" >&5
 
15580
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
15581
   then
 
15582
     # The compiler can only warn and ignore the option if not recognized
 
15583
     # So say no if there are warnings
 
15584
     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
 
15585
     $SED '/^$/d' out/conftest.err >out/conftest.er2
 
15586
     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
15587
       lt_cv_prog_compiler_c_o_GCJ=yes
 
15588
     fi
 
15589
   fi
 
15590
   chmod u+w .
 
15591
   $rm conftest*
 
15592
   # SGI C++ compiler will create directory out/ii_files/ for
 
15593
   # template instantiation
 
15594
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
15595
   $rm out/* && rmdir out
 
15596
   cd ..
 
15597
   rmdir conftest
 
15598
   $rm conftest*
 
15599
 
 
15600
fi
 
15601
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
 
15602
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
 
15603
 
 
15604
 
 
15605
hard_links="nottested"
 
15606
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
 
15607
  # do not overwrite the value of need_locks provided by the user
 
15608
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
15609
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
15610
  hard_links=yes
 
15611
  $rm conftest*
 
15612
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
15613
  touch conftest.a
 
15614
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
15615
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
15616
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
15617
echo "${ECHO_T}$hard_links" >&6
 
15618
  if test "$hard_links" = no; then
 
15619
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
15620
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
15621
    need_locks=warn
 
15622
  fi
 
15623
else
 
15624
  need_locks=no
 
15625
fi
 
15626
 
 
15627
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
15628
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
15629
 
 
15630
  runpath_var=
 
15631
  allow_undefined_flag_GCJ=
 
15632
  enable_shared_with_static_runtimes_GCJ=no
 
15633
  archive_cmds_GCJ=
 
15634
  archive_expsym_cmds_GCJ=
 
15635
  old_archive_From_new_cmds_GCJ=
 
15636
  old_archive_from_expsyms_cmds_GCJ=
 
15637
  export_dynamic_flag_spec_GCJ=
 
15638
  whole_archive_flag_spec_GCJ=
 
15639
  thread_safe_flag_spec_GCJ=
 
15640
  hardcode_libdir_flag_spec_GCJ=
 
15641
  hardcode_libdir_flag_spec_ld_GCJ=
 
15642
  hardcode_libdir_separator_GCJ=
 
15643
  hardcode_direct_GCJ=no
 
15644
  hardcode_minus_L_GCJ=no
 
15645
  hardcode_shlibpath_var_GCJ=unsupported
 
15646
  link_all_deplibs_GCJ=unknown
 
15647
  hardcode_automatic_GCJ=no
 
15648
  module_cmds_GCJ=
 
15649
  module_expsym_cmds_GCJ=
 
15650
  always_export_symbols_GCJ=no
 
15651
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
15652
  # include_expsyms should be a list of space-separated symbols to be *always*
 
15653
  # included in the symbol list
 
15654
  include_expsyms_GCJ=
 
15655
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
15656
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
15657
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
15658
  # as well as any symbol that contains `d'.
 
15659
  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
 
15660
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
15661
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
15662
  # the symbol is explicitly referenced.  Since portable code cannot
 
15663
  # rely on this symbol name, it's probably fine to never include it in
 
15664
  # preloaded symbol tables.
 
15665
  extract_expsyms_cmds=
 
15666
  # Just being paranoid about ensuring that cc_basename is set.
 
15667
  for cc_temp in $compiler""; do
 
15668
  case $cc_temp in
 
15669
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
15670
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
15671
    \-*) ;;
 
15672
    *) break;;
 
15673
  esac
 
15674
done
 
15675
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
15676
 
 
15677
  case $host_os in
 
15678
  cygwin* | mingw* | pw32*)
 
15679
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
15680
    # When not using gcc, we currently assume that we are using
 
15681
    # Microsoft Visual C++.
 
15682
    if test "$GCC" != yes; then
 
15683
      with_gnu_ld=no
 
15684
    fi
 
15685
    ;;
 
15686
  openbsd*)
 
15687
    with_gnu_ld=no
 
15688
    ;;
 
15689
  esac
 
15690
 
 
15691
  ld_shlibs_GCJ=yes
 
15692
  if test "$with_gnu_ld" = yes; then
 
15693
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
15694
    wlarc='${wl}'
 
15695
 
 
15696
    # Set some defaults for GNU ld with shared library support. These
 
15697
    # are reset later if shared libraries are not supported. Putting them
 
15698
    # here allows them to be overridden if necessary.
 
15699
    runpath_var=LD_RUN_PATH
 
15700
    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
 
15701
    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
 
15702
    # ancient GNU ld didn't support --whole-archive et. al.
 
15703
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
15704
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
15705
      else
 
15706
        whole_archive_flag_spec_GCJ=
 
15707
    fi
 
15708
    supports_anon_versioning=no
 
15709
    case `$LD -v 2>/dev/null` in
 
15710
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
15711
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
15712
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
15713
      *\ 2.11.*) ;; # other 2.11 versions
 
15714
      *) supports_anon_versioning=yes ;;
 
15715
    esac
 
15716
 
 
15717
    # See if GNU ld supports shared libraries.
 
15718
    case $host_os in
 
15719
    aix3* | aix4* | aix5*)
 
15720
      # On AIX/PPC, the GNU linker is very broken
 
15721
      if test "$host_cpu" != ia64; then
 
15722
        ld_shlibs_GCJ=no
 
15723
        cat <<EOF 1>&2
 
15724
 
 
15725
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
15726
*** to be unable to reliably create shared libraries on AIX.
 
15727
*** Therefore, libtool is disabling shared libraries support.  If you
 
15728
*** really care for shared libraries, you may want to modify your PATH
 
15729
*** so that a non-GNU linker is found, and then restart.
 
15730
 
 
15731
EOF
 
15732
      fi
 
15733
      ;;
 
15734
 
 
15735
    amigaos*)
 
15736
      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)'
 
15737
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
15738
      hardcode_minus_L_GCJ=yes
 
15739
 
 
15740
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
15741
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
15742
      # to version 4, is to share data among multiple programs linked
 
15743
      # with the same dynamic library.  Since this doesn't match the
 
15744
      # behavior of shared libraries on other platforms, we can't use
 
15745
      # them.
 
15746
      ld_shlibs_GCJ=no
 
15747
      ;;
 
15748
 
 
15749
    beos*)
 
15750
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
15751
        allow_undefined_flag_GCJ=unsupported
 
15752
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
15753
        # support --undefined.  This deserves some investigation.  FIXME
 
15754
        archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15755
      else
 
15756
        ld_shlibs_GCJ=no
 
15757
      fi
 
15758
      ;;
 
15759
 
 
15760
    cygwin* | mingw* | pw32*)
 
15761
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
 
15762
      # as there is no search path for DLLs.
 
15763
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
15764
      allow_undefined_flag_GCJ=unsupported
 
15765
      always_export_symbols_GCJ=no
 
15766
      enable_shared_with_static_runtimes_GCJ=yes
 
15767
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
15768
 
 
15769
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
15770
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
15771
        # If the export-symbols file already is a .def file (1st line
 
15772
        # is EXPORTS), use it as is; otherwise, prepend...
 
15773
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
15774
          cp $export_symbols $output_objdir/$soname.def;
 
15775
        else
 
15776
          echo EXPORTS > $output_objdir/$soname.def;
 
15777
          cat $export_symbols >> $output_objdir/$soname.def;
 
15778
        fi~
 
15779
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
15780
      else
 
15781
        ld_shlibs_GCJ=no
 
15782
      fi
 
15783
      ;;
 
15784
 
 
15785
    linux*)
 
15786
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
15787
        tmp_addflag=
 
15788
        case $cc_basename,$host_cpu in
 
15789
        pgcc*)                          # Portland Group C compiler
 
15790
          whole_archive_flag_spec_GCJ='${wl}--whole-archive,`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
15791
          tmp_addflag=' $pic_flag'
 
15792
          ;;
 
15793
        pgf77* | pgf90* )                       # Portland Group f77 and f90 compilers
 
15794
          whole_archive_flag_spec_GCJ='${wl}--whole-archive,`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
15795
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
15796
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
15797
          tmp_addflag=' -i_dynamic' ;;
 
15798
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
15799
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
15800
        ifc* | ifort*)                  # Intel Fortran compiler
 
15801
          tmp_addflag=' -nofor_main' ;;
 
15802
        esac
 
15803
        archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15804
 
 
15805
        if test $supports_anon_versioning = yes; then
 
15806
          archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
 
15807
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
15808
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
15809
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
15810
        fi
 
15811
      else
 
15812
        ld_shlibs_GCJ=no
 
15813
      fi
 
15814
      ;;
 
15815
 
 
15816
    netbsd*)
 
15817
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
15818
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
15819
        wlarc=
 
15820
      else
 
15821
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15822
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
15823
      fi
 
15824
      ;;
 
15825
 
 
15826
    solaris* | sysv5*)
 
15827
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
15828
        ld_shlibs_GCJ=no
 
15829
        cat <<EOF 1>&2
 
15830
 
 
15831
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
15832
*** create shared libraries on Solaris systems.  Therefore, libtool
 
15833
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
15834
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
15835
*** your PATH or compiler configuration so that the native linker is
 
15836
*** used, and then restart.
 
15837
 
 
15838
EOF
 
15839
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
15840
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15841
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
15842
      else
 
15843
        ld_shlibs_GCJ=no
 
15844
      fi
 
15845
      ;;
 
15846
 
 
15847
    sunos4*)
 
15848
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
15849
      wlarc=
 
15850
      hardcode_direct_GCJ=yes
 
15851
      hardcode_shlibpath_var_GCJ=no
 
15852
      ;;
 
15853
 
 
15854
    *)
 
15855
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
15856
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15857
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
15858
      else
 
15859
        ld_shlibs_GCJ=no
 
15860
      fi
 
15861
      ;;
 
15862
    esac
 
15863
 
 
15864
    if test "$ld_shlibs_GCJ" = no; then
 
15865
      runpath_var=
 
15866
      hardcode_libdir_flag_spec_GCJ=
 
15867
      export_dynamic_flag_spec_GCJ=
 
15868
      whole_archive_flag_spec_GCJ=
 
15869
    fi
 
15870
  else
 
15871
    # PORTME fill in a description of your system's linker (not GNU ld)
 
15872
    case $host_os in
 
15873
    aix3*)
 
15874
      allow_undefined_flag_GCJ=unsupported
 
15875
      always_export_symbols_GCJ=yes
 
15876
      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'
 
15877
      # Note: this linker hardcodes the directories in LIBPATH if there
 
15878
      # are no directories specified by -L.
 
15879
      hardcode_minus_L_GCJ=yes
 
15880
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
15881
        # Neither direct hardcoding nor static linking is supported with a
 
15882
        # broken collect2.
 
15883
        hardcode_direct_GCJ=unsupported
 
15884
      fi
 
15885
      ;;
 
15886
 
 
15887
    aix4* | aix5*)
 
15888
      if test "$host_cpu" = ia64; then
 
15889
        # On IA64, the linker does run time linking by default, so we don't
 
15890
        # have to do anything special.
 
15891
        aix_use_runtimelinking=no
 
15892
        exp_sym_flag='-Bexport'
 
15893
        no_entry_flag=""
 
15894
      else
 
15895
        # If we're using GNU nm, then we don't want the "-C" option.
 
15896
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
15897
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
15898
          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'
 
15899
        else
 
15900
          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'
 
15901
        fi
 
15902
        aix_use_runtimelinking=no
 
15903
 
 
15904
        # Test if we are trying to use run time linking or normal
 
15905
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
15906
        # need to do runtime linking.
 
15907
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
15908
          for ld_flag in $LDFLAGS; do
 
15909
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
15910
            aix_use_runtimelinking=yes
 
15911
            break
 
15912
          fi
 
15913
          done
 
15914
        esac
 
15915
 
 
15916
        exp_sym_flag='-bexport'
 
15917
        no_entry_flag='-bnoentry'
 
15918
      fi
 
15919
 
 
15920
      # When large executables or shared objects are built, AIX ld can
 
15921
      # have problems creating the table of contents.  If linking a library
 
15922
      # or program results in "error TOC overflow" add -mminimal-toc to
 
15923
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
15924
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
15925
 
 
15926
      archive_cmds_GCJ=''
 
15927
      hardcode_direct_GCJ=yes
 
15928
      hardcode_libdir_separator_GCJ=':'
 
15929
      link_all_deplibs_GCJ=yes
 
15930
 
 
15931
      if test "$GCC" = yes; then
 
15932
        case $host_os in aix4.[012]|aix4.[012].*)
 
15933
        # We only want to do this on AIX 4.2 and lower, the check
 
15934
        # below for broken collect2 doesn't work under 4.3+
 
15935
          collect2name=`${CC} -print-prog-name=collect2`
 
15936
          if test -f "$collect2name" && \
 
15937
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
15938
          then
 
15939
          # We have reworked collect2
 
15940
          hardcode_direct_GCJ=yes
 
15941
          else
 
15942
          # We have old collect2
 
15943
          hardcode_direct_GCJ=unsupported
 
15944
          # It fails to find uninstalled libraries when the uninstalled
 
15945
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
15946
          # to unsupported forces relinking
 
15947
          hardcode_minus_L_GCJ=yes
 
15948
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
15949
          hardcode_libdir_separator_GCJ=
 
15950
          fi
 
15951
        esac
 
15952
        shared_flag='-shared'
 
15953
        if test "$aix_use_runtimelinking" = yes; then
 
15954
          shared_flag="$shared_flag "'${wl}-G'
 
15955
        fi
 
15956
      else
 
15957
        # not using gcc
 
15958
        if test "$host_cpu" = ia64; then
 
15959
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
15960
        # chokes on -Wl,-G. The following line is correct:
 
15961
          shared_flag='-G'
 
15962
        else
 
15963
        if test "$aix_use_runtimelinking" = yes; then
 
15964
            shared_flag='${wl}-G'
 
15965
          else
 
15966
            shared_flag='${wl}-bM:SRE'
 
15967
        fi
 
15968
        fi
 
15969
      fi
 
15970
 
 
15971
      # It seems that -bexpall does not export symbols beginning with
 
15972
      # underscore (_), so it is better to generate a list of symbols to export.
 
15973
      always_export_symbols_GCJ=yes
 
15974
      if test "$aix_use_runtimelinking" = yes; then
 
15975
        # Warning - without using the other runtime loading flags (-brtl),
 
15976
        # -berok will link without error, but may produce a broken library.
 
15977
        allow_undefined_flag_GCJ='-berok'
 
15978
       # Determine the default libpath from the value encoded in an empty executable.
 
15979
       cat >conftest.$ac_ext <<_ACEOF
 
15980
/* confdefs.h.  */
 
15981
_ACEOF
 
15982
cat confdefs.h >>conftest.$ac_ext
 
15983
cat >>conftest.$ac_ext <<_ACEOF
 
15984
/* end confdefs.h.  */
 
15985
 
 
15986
int
 
15987
main ()
 
15988
{
 
15989
 
 
15990
  ;
 
15991
  return 0;
 
15992
}
 
15993
_ACEOF
 
15994
rm -f conftest.$ac_objext conftest$ac_exeext
 
15995
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
15996
  (eval $ac_link) 2>conftest.er1
 
15997
  ac_status=$?
 
15998
  grep -v '^ *+' conftest.er1 >conftest.err
 
15999
  rm -f conftest.er1
 
16000
  cat conftest.err >&5
 
16001
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16002
  (exit $ac_status); } &&
 
16003
         { ac_try='test -z "$ac_c_werror_flag"
 
16004
                         || test ! -s conftest.err'
 
16005
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16006
  (eval $ac_try) 2>&5
 
16007
  ac_status=$?
 
16008
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16009
  (exit $ac_status); }; } &&
 
16010
         { ac_try='test -s conftest$ac_exeext'
 
16011
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16012
  (eval $ac_try) 2>&5
 
16013
  ac_status=$?
 
16014
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16015
  (exit $ac_status); }; }; then
 
16016
 
 
16017
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
16018
}'`
 
16019
# Check for a 64-bit object if we didn't find anything.
 
16020
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; }
 
16021
}'`; fi
 
16022
else
 
16023
  echo "$as_me: failed program was:" >&5
 
16024
sed 's/^/| /' conftest.$ac_ext >&5
 
16025
 
 
16026
fi
 
16027
rm -f conftest.err conftest.$ac_objext \
 
16028
      conftest$ac_exeext conftest.$ac_ext
 
16029
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
16030
 
 
16031
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
16032
        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"
 
16033
       else
 
16034
        if test "$host_cpu" = ia64; then
 
16035
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
 
16036
          allow_undefined_flag_GCJ="-z nodefs"
 
16037
          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"
 
16038
        else
 
16039
         # Determine the default libpath from the value encoded in an empty executable.
 
16040
         cat >conftest.$ac_ext <<_ACEOF
 
16041
/* confdefs.h.  */
 
16042
_ACEOF
 
16043
cat confdefs.h >>conftest.$ac_ext
 
16044
cat >>conftest.$ac_ext <<_ACEOF
 
16045
/* end confdefs.h.  */
 
16046
 
 
16047
int
 
16048
main ()
 
16049
{
 
16050
 
 
16051
  ;
 
16052
  return 0;
 
16053
}
 
16054
_ACEOF
 
16055
rm -f conftest.$ac_objext conftest$ac_exeext
 
16056
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
16057
  (eval $ac_link) 2>conftest.er1
 
16058
  ac_status=$?
 
16059
  grep -v '^ *+' conftest.er1 >conftest.err
 
16060
  rm -f conftest.er1
 
16061
  cat conftest.err >&5
 
16062
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16063
  (exit $ac_status); } &&
 
16064
         { ac_try='test -z "$ac_c_werror_flag"
 
16065
                         || test ! -s conftest.err'
 
16066
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16067
  (eval $ac_try) 2>&5
 
16068
  ac_status=$?
 
16069
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16070
  (exit $ac_status); }; } &&
 
16071
         { ac_try='test -s conftest$ac_exeext'
 
16072
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16073
  (eval $ac_try) 2>&5
 
16074
  ac_status=$?
 
16075
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16076
  (exit $ac_status); }; }; then
 
16077
 
 
16078
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
16079
}'`
 
16080
# Check for a 64-bit object if we didn't find anything.
 
16081
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; }
 
16082
}'`; fi
 
16083
else
 
16084
  echo "$as_me: failed program was:" >&5
 
16085
sed 's/^/| /' conftest.$ac_ext >&5
 
16086
 
 
16087
fi
 
16088
rm -f conftest.err conftest.$ac_objext \
 
16089
      conftest$ac_exeext conftest.$ac_ext
 
16090
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
16091
 
 
16092
         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
16093
          # Warning - without using the other run time loading flags,
 
16094
          # -berok will link without error, but may produce a broken library.
 
16095
          no_undefined_flag_GCJ=' ${wl}-bernotok'
 
16096
          allow_undefined_flag_GCJ=' ${wl}-berok'
 
16097
          # -bexpall does not export symbols beginning with underscore (_)
 
16098
          always_export_symbols_GCJ=yes
 
16099
          # Exported symbols can be pulled into shared objects from archives
 
16100
          whole_archive_flag_spec_GCJ=' '
 
16101
          archive_cmds_need_lc_GCJ=yes
 
16102
          # This is similar to how AIX traditionally builds it's shared libraries.
 
16103
          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'
 
16104
        fi
 
16105
      fi
 
16106
      ;;
 
16107
 
 
16108
    amigaos*)
 
16109
      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)'
 
16110
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16111
      hardcode_minus_L_GCJ=yes
 
16112
      # see comment about different semantics on the GNU ld section
 
16113
      ld_shlibs_GCJ=no
 
16114
      ;;
 
16115
 
 
16116
    bsdi[45]*)
 
16117
      export_dynamic_flag_spec_GCJ=-rdynamic
 
16118
      ;;
 
16119
 
 
16120
    cygwin* | mingw* | pw32*)
 
16121
      # When not using gcc, we currently assume that we are using
 
16122
      # Microsoft Visual C++.
 
16123
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
16124
      # no search path for DLLs.
 
16125
      hardcode_libdir_flag_spec_GCJ=' '
 
16126
      allow_undefined_flag_GCJ=unsupported
 
16127
      # Tell ltmain to make .lib files, not .a files.
 
16128
      libext=lib
 
16129
      # Tell ltmain to make .dll files, not .so files.
 
16130
      shrext_cmds=".dll"
 
16131
      # FIXME: Setting linknames here is a bad hack.
 
16132
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
16133
      # The linker will automatically build a .lib file if we build a DLL.
 
16134
      old_archive_From_new_cmds_GCJ='true'
 
16135
      # FIXME: Should let the user specify the lib program.
 
16136
      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
16137
      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
 
16138
      enable_shared_with_static_runtimes_GCJ=yes
 
16139
      ;;
 
16140
 
 
16141
    darwin* | rhapsody*)
 
16142
      case "$host_os" in
 
16143
        rhapsody* | darwin1.[012])
 
16144
         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
 
16145
         ;;
 
16146
       *) # Darwin 1.3 on
 
16147
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
16148
           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
16149
         else
 
16150
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
16151
             10.[012])
 
16152
               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
16153
               ;;
 
16154
             10.*)
 
16155
               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
 
16156
               ;;
 
16157
           esac
 
16158
         fi
 
16159
         ;;
 
16160
      esac
 
16161
      archive_cmds_need_lc_GCJ=no
 
16162
      hardcode_direct_GCJ=no
 
16163
      hardcode_automatic_GCJ=yes
 
16164
      hardcode_shlibpath_var_GCJ=unsupported
 
16165
      whole_archive_flag_spec_GCJ=''
 
16166
      link_all_deplibs_GCJ=yes
 
16167
    if test "$GCC" = yes ; then
 
16168
        output_verbose_link_cmd='echo'
 
16169
        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
16170
      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
16171
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
16172
      archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
16173
      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}'
 
16174
    else
 
16175
      case $cc_basename in
 
16176
        xlc*)
 
16177
         output_verbose_link_cmd='echo'
 
16178
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
16179
         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
16180
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
16181
         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
16182
          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}'
 
16183
          ;;
 
16184
       *)
 
16185
         ld_shlibs_GCJ=no
 
16186
          ;;
 
16187
      esac
 
16188
    fi
 
16189
      ;;
 
16190
 
 
16191
    dgux*)
 
16192
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16193
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16194
      hardcode_shlibpath_var_GCJ=no
 
16195
      ;;
 
16196
 
 
16197
    freebsd1*)
 
16198
      ld_shlibs_GCJ=no
 
16199
      ;;
 
16200
 
 
16201
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
16202
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
16203
    # does not break anything, and helps significantly (at the cost of a little
 
16204
    # extra space).
 
16205
    freebsd2.2*)
 
16206
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
16207
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
16208
      hardcode_direct_GCJ=yes
 
16209
      hardcode_shlibpath_var_GCJ=no
 
16210
      ;;
 
16211
 
 
16212
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
16213
    freebsd2*)
 
16214
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
16215
      hardcode_direct_GCJ=yes
 
16216
      hardcode_minus_L_GCJ=yes
 
16217
      hardcode_shlibpath_var_GCJ=no
 
16218
      ;;
 
16219
 
 
16220
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
16221
    freebsd* | kfreebsd*-gnu | dragonfly*)
 
16222
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
16223
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
16224
      hardcode_direct_GCJ=yes
 
16225
      hardcode_shlibpath_var_GCJ=no
 
16226
      ;;
 
16227
 
 
16228
    hpux9*)
 
16229
      if test "$GCC" = yes; then
 
16230
        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'
 
16231
      else
 
16232
        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'
 
16233
      fi
 
16234
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
16235
      hardcode_libdir_separator_GCJ=:
 
16236
      hardcode_direct_GCJ=yes
 
16237
 
 
16238
      # hardcode_minus_L: Not really in the search PATH,
 
16239
      # but as the default location of the library.
 
16240
      hardcode_minus_L_GCJ=yes
 
16241
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
16242
      ;;
 
16243
 
 
16244
    hpux10* | hpux11*)
 
16245
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
16246
        case "$host_cpu" in
 
16247
        hppa*64*|ia64*)
 
16248
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16249
          ;;
 
16250
        *)
 
16251
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
16252
          ;;
 
16253
        esac
 
16254
      else
 
16255
        case "$host_cpu" in
 
16256
        hppa*64*|ia64*)
 
16257
          archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16258
          ;;
 
16259
        *)
 
16260
          archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
16261
          ;;
 
16262
        esac
 
16263
      fi
 
16264
      if test "$with_gnu_ld" = no; then
 
16265
        case "$host_cpu" in
 
16266
        hppa*64*)
 
16267
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
16268
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
 
16269
          hardcode_libdir_separator_GCJ=:
 
16270
          hardcode_direct_GCJ=no
 
16271
          hardcode_shlibpath_var_GCJ=no
 
16272
          ;;
 
16273
        ia64*)
 
16274
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16275
          hardcode_direct_GCJ=no
 
16276
          hardcode_shlibpath_var_GCJ=no
 
16277
 
 
16278
          # hardcode_minus_L: Not really in the search PATH,
 
16279
          # but as the default location of the library.
 
16280
          hardcode_minus_L_GCJ=yes
 
16281
          ;;
 
16282
        *)
 
16283
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
16284
          hardcode_libdir_separator_GCJ=:
 
16285
          hardcode_direct_GCJ=yes
 
16286
          export_dynamic_flag_spec_GCJ='${wl}-E'
 
16287
 
 
16288
          # hardcode_minus_L: Not really in the search PATH,
 
16289
          # but as the default location of the library.
 
16290
          hardcode_minus_L_GCJ=yes
 
16291
          ;;
 
16292
        esac
 
16293
      fi
 
16294
      ;;
 
16295
 
 
16296
    irix5* | irix6* | nonstopux*)
 
16297
      if test "$GCC" = yes; then
 
16298
        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'
 
16299
      else
 
16300
        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'
 
16301
        hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
 
16302
      fi
 
16303
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
16304
      hardcode_libdir_separator_GCJ=:
 
16305
      link_all_deplibs_GCJ=yes
 
16306
      ;;
 
16307
 
 
16308
    netbsd*)
 
16309
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
16310
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
16311
      else
 
16312
        archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
16313
      fi
 
16314
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
16315
      hardcode_direct_GCJ=yes
 
16316
      hardcode_shlibpath_var_GCJ=no
 
16317
      ;;
 
16318
 
 
16319
    newsos6)
 
16320
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16321
      hardcode_direct_GCJ=yes
 
16322
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
16323
      hardcode_libdir_separator_GCJ=:
 
16324
      hardcode_shlibpath_var_GCJ=no
 
16325
      ;;
 
16326
 
 
16327
    openbsd*)
 
16328
      hardcode_direct_GCJ=yes
 
16329
      hardcode_shlibpath_var_GCJ=no
 
16330
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
16331
        archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
16332
        archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
16333
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
16334
        export_dynamic_flag_spec_GCJ='${wl}-E'
 
16335
      else
 
16336
       case $host_os in
 
16337
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
16338
           archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
16339
           hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
16340
           ;;
 
16341
         *)
 
16342
           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
16343
           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
16344
           ;;
 
16345
       esac
 
16346
      fi
 
16347
      ;;
 
16348
 
 
16349
    os2*)
 
16350
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16351
      hardcode_minus_L_GCJ=yes
 
16352
      allow_undefined_flag_GCJ=unsupported
 
16353
      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'
 
16354
      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
16355
      ;;
 
16356
 
 
16357
    osf3*)
 
16358
      if test "$GCC" = yes; then
 
16359
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
16360
        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'
 
16361
      else
 
16362
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
16363
        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'
 
16364
      fi
 
16365
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
16366
      hardcode_libdir_separator_GCJ=:
 
16367
      ;;
 
16368
 
 
16369
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
16370
      if test "$GCC" = yes; then
 
16371
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
16372
        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'
 
16373
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
16374
      else
 
16375
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
16376
        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'
 
16377
        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~
 
16378
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
 
16379
 
 
16380
        # Both c and cxx compiler support -rpath directly
 
16381
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
 
16382
      fi
 
16383
      hardcode_libdir_separator_GCJ=:
 
16384
      ;;
 
16385
 
 
16386
    sco3.2v5*)
 
16387
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16388
      hardcode_shlibpath_var_GCJ=no
 
16389
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
 
16390
      runpath_var=LD_RUN_PATH
 
16391
      hardcode_runpath_var=yes
 
16392
      ;;
 
16393
 
 
16394
    solaris*)
 
16395
      no_undefined_flag_GCJ=' -z text'
 
16396
      if test "$GCC" = yes; then
 
16397
        wlarc='${wl}'
 
16398
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16399
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
16400
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
16401
      else
 
16402
        wlarc=''
 
16403
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16404
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
16405
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
16406
      fi
 
16407
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
16408
      hardcode_shlibpath_var_GCJ=no
 
16409
      case $host_os in
 
16410
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
16411
      *)
 
16412
        # The compiler driver will combine linker options so we
 
16413
        # cannot just pass the convience library names through
 
16414
        # without $wl, iff we do not link with $LD.
 
16415
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
16416
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
16417
        case $wlarc in
 
16418
        '')
 
16419
          whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
 
16420
        *)
 
16421
          whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
 
16422
        esac ;;
 
16423
      esac
 
16424
      link_all_deplibs_GCJ=yes
 
16425
      ;;
 
16426
 
 
16427
    sunos4*)
 
16428
      if test "x$host_vendor" = xsequent; then
 
16429
        # Use $CC to link under sequent, because it throws in some extra .o
 
16430
        # files that make .init and .fini sections work.
 
16431
        archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
16432
      else
 
16433
        archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
16434
      fi
 
16435
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16436
      hardcode_direct_GCJ=yes
 
16437
      hardcode_minus_L_GCJ=yes
 
16438
      hardcode_shlibpath_var_GCJ=no
 
16439
      ;;
 
16440
 
 
16441
    sysv4)
 
16442
      case $host_vendor in
 
16443
        sni)
 
16444
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16445
          hardcode_direct_GCJ=yes # is this really true???
 
16446
        ;;
 
16447
        siemens)
 
16448
          ## LD is ld it makes a PLAMLIB
 
16449
          ## CC just makes a GrossModule.
 
16450
          archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
16451
          reload_cmds_GCJ='$CC -r -o $output$reload_objs'
 
16452
          hardcode_direct_GCJ=no
 
16453
        ;;
 
16454
        motorola)
 
16455
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16456
          hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
 
16457
        ;;
 
16458
      esac
 
16459
      runpath_var='LD_RUN_PATH'
 
16460
      hardcode_shlibpath_var_GCJ=no
 
16461
      ;;
 
16462
 
 
16463
    sysv4.3*)
 
16464
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16465
      hardcode_shlibpath_var_GCJ=no
 
16466
      export_dynamic_flag_spec_GCJ='-Bexport'
 
16467
      ;;
 
16468
 
 
16469
    sysv4*MP*)
 
16470
      if test -d /usr/nec; then
 
16471
        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16472
        hardcode_shlibpath_var_GCJ=no
 
16473
        runpath_var=LD_RUN_PATH
 
16474
        hardcode_runpath_var=yes
 
16475
        ld_shlibs_GCJ=yes
 
16476
      fi
 
16477
      ;;
 
16478
 
 
16479
    sysv4.2uw2*)
 
16480
      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
16481
      hardcode_direct_GCJ=yes
 
16482
      hardcode_minus_L_GCJ=no
 
16483
      hardcode_shlibpath_var_GCJ=no
 
16484
      hardcode_runpath_var=yes
 
16485
      runpath_var=LD_RUN_PATH
 
16486
      ;;
 
16487
 
 
16488
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
16489
      no_undefined_flag_GCJ='${wl}-z ${wl}text'
 
16490
      if test "$GCC" = yes; then
 
16491
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16492
      else
 
16493
        archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16494
      fi
 
16495
      runpath_var='LD_RUN_PATH'
 
16496
      hardcode_shlibpath_var_GCJ=no
 
16497
      ;;
 
16498
 
 
16499
    sysv5*)
 
16500
      no_undefined_flag_GCJ=' -z text'
 
16501
      # $CC -shared without GNU ld will not create a library from C++
 
16502
      # object files and a static libstdc++, better avoid it by now
 
16503
      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16504
      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
16505
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
16506
      hardcode_libdir_flag_spec_GCJ=
 
16507
      hardcode_shlibpath_var_GCJ=no
 
16508
      runpath_var='LD_RUN_PATH'
 
16509
      ;;
 
16510
 
 
16511
    uts4*)
 
16512
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16513
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16514
      hardcode_shlibpath_var_GCJ=no
 
16515
      ;;
 
16516
 
 
16517
    *)
 
16518
      ld_shlibs_GCJ=no
 
16519
      ;;
 
16520
    esac
 
16521
  fi
 
16522
 
 
16523
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
 
16524
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
 
16525
test "$ld_shlibs_GCJ" = no && can_build_shared=no
 
16526
 
 
16527
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
16528
if test "$GCC" = yes; then
 
16529
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
16530
fi
 
16531
 
 
16532
#
 
16533
# Do we need to explicitly link libc?
 
16534
#
 
16535
case "x$archive_cmds_need_lc_GCJ" in
 
16536
x|xyes)
 
16537
  # Assume -lc should be added
 
16538
  archive_cmds_need_lc_GCJ=yes
 
16539
 
 
16540
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
16541
    case $archive_cmds_GCJ in
 
16542
    *'~'*)
 
16543
      # FIXME: we may have to deal with multi-command sequences.
 
16544
      ;;
 
16545
    '$CC '*)
 
16546
      # Test whether the compiler implicitly links with -lc since on some
 
16547
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
16548
      # to ld, don't add -lc before -lgcc.
 
16549
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
16550
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
16551
      $rm conftest*
 
16552
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16553
 
 
16554
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
16555
  (eval $ac_compile) 2>&5
 
16556
  ac_status=$?
 
16557
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16558
  (exit $ac_status); } 2>conftest.err; then
 
16559
        soname=conftest
 
16560
        lib=conftest
 
16561
        libobjs=conftest.$ac_objext
 
16562
        deplibs=
 
16563
        wl=$lt_prog_compiler_wl_GCJ
 
16564
        compiler_flags=-v
 
16565
        linker_flags=-v
 
16566
        verstring=
 
16567
        output_objdir=.
 
16568
        libname=conftest
 
16569
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
 
16570
        allow_undefined_flag_GCJ=
 
16571
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
16572
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
16573
  ac_status=$?
 
16574
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16575
  (exit $ac_status); }
 
16576
        then
 
16577
          archive_cmds_need_lc_GCJ=no
 
16578
        else
 
16579
          archive_cmds_need_lc_GCJ=yes
 
16580
        fi
 
16581
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
 
16582
      else
 
16583
        cat conftest.err 1>&5
 
16584
      fi
 
16585
      $rm conftest*
 
16586
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
 
16587
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
 
16588
      ;;
 
16589
    esac
 
16590
  fi
 
16591
  ;;
 
16592
esac
 
16593
 
 
16594
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
16595
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
16596
library_names_spec=
 
16597
libname_spec='lib$name'
 
16598
soname_spec=
 
16599
shrext_cmds=".so"
 
16600
postinstall_cmds=
 
16601
postuninstall_cmds=
 
16602
finish_cmds=
 
16603
finish_eval=
 
16604
shlibpath_var=
 
16605
shlibpath_overrides_runpath=unknown
 
16606
version_type=none
 
16607
dynamic_linker="$host_os ld.so"
 
16608
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
16609
if test "$GCC" = yes; then
 
16610
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
16611
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
16612
    # if the path contains ";" then we assume it to be the separator
 
16613
    # otherwise default to the standard path separator (i.e. ":") - it is
 
16614
    # assumed that no part of a normal pathname contains ";" but that should
 
16615
    # okay in the real world where ";" in dirpaths is itself problematic.
 
16616
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
16617
  else
 
16618
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
16619
  fi
 
16620
else
 
16621
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
16622
fi
 
16623
need_lib_prefix=unknown
 
16624
hardcode_into_libs=no
 
16625
 
 
16626
# when you set need_version to no, make sure it does not cause -set_version
 
16627
# flags to be left without arguments
 
16628
need_version=unknown
 
16629
 
 
16630
case $host_os in
 
16631
aix3*)
 
16632
  version_type=linux
 
16633
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
16634
  shlibpath_var=LIBPATH
 
16635
 
 
16636
  # AIX 3 has no versioning support, so we append a major version to the name.
 
16637
  soname_spec='${libname}${release}${shared_ext}$major'
 
16638
  ;;
 
16639
 
 
16640
aix4* | aix5*)
 
16641
  version_type=linux
 
16642
  need_lib_prefix=no
 
16643
  need_version=no
 
16644
  hardcode_into_libs=yes
 
16645
  if test "$host_cpu" = ia64; then
 
16646
    # AIX 5 supports IA64
 
16647
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
16648
    shlibpath_var=LD_LIBRARY_PATH
 
16649
  else
 
16650
    # With GCC up to 2.95.x, collect2 would create an import file
 
16651
    # for dependence libraries.  The import file would start with
 
16652
    # the line `#! .'.  This would cause the generated library to
 
16653
    # depend on `.', always an invalid library.  This was fixed in
 
16654
    # development snapshots of GCC prior to 3.0.
 
16655
    case $host_os in
 
16656
      aix4 | aix4.[01] | aix4.[01].*)
 
16657
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
16658
           echo ' yes '
 
16659
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
16660
        :
 
16661
      else
 
16662
        can_build_shared=no
 
16663
      fi
 
16664
      ;;
 
16665
    esac
 
16666
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
16667
    # soname into executable. Probably we can add versioning support to
 
16668
    # collect2, so additional links can be useful in future.
 
16669
    if test "$aix_use_runtimelinking" = yes; then
 
16670
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
16671
      # instead of lib<name>.a to let people know that these are not
 
16672
      # typical AIX shared libraries.
 
16673
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16674
    else
 
16675
      # We preserve .a as extension for shared libraries through AIX4.2
 
16676
      # and later when we are not doing run time linking.
 
16677
      library_names_spec='${libname}${release}.a $libname.a'
 
16678
      soname_spec='${libname}${release}${shared_ext}$major'
 
16679
    fi
 
16680
    shlibpath_var=LIBPATH
 
16681
  fi
 
16682
  ;;
 
16683
 
 
16684
amigaos*)
 
16685
  library_names_spec='$libname.ixlibrary $libname.a'
 
16686
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
16687
  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'
 
16688
  ;;
 
16689
 
 
16690
beos*)
 
16691
  library_names_spec='${libname}${shared_ext}'
 
16692
  dynamic_linker="$host_os ld.so"
 
16693
  shlibpath_var=LIBRARY_PATH
 
16694
  ;;
 
16695
 
 
16696
bsdi[45]*)
 
16697
  version_type=linux
 
16698
  need_version=no
 
16699
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16700
  soname_spec='${libname}${release}${shared_ext}$major'
 
16701
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
16702
  shlibpath_var=LD_LIBRARY_PATH
 
16703
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
16704
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
16705
  # the default ld.so.conf also contains /usr/contrib/lib and
 
16706
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
16707
  # libtool to hard-code these into programs
 
16708
  ;;
 
16709
 
 
16710
cygwin* | mingw* | pw32*)
 
16711
  version_type=windows
 
16712
  shrext_cmds=".dll"
 
16713
  need_version=no
 
16714
  need_lib_prefix=no
 
16715
 
 
16716
  case $GCC,$host_os in
 
16717
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
16718
    library_names_spec='$libname.dll.a'
 
16719
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
16720
    postinstall_cmds='base_file=`basename \${file}`~
 
16721
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
16722
      dldir=$destdir/`dirname \$dlpath`~
 
16723
      test -d \$dldir || mkdir -p \$dldir~
 
16724
      $install_prog $dir/$dlname \$dldir/$dlname'
 
16725
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
16726
      dlpath=$dir/\$dldll~
 
16727
       $rm \$dlpath'
 
16728
    shlibpath_overrides_runpath=yes
 
16729
 
 
16730
    case $host_os in
 
16731
    cygwin*)
 
16732
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
16733
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
16734
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
16735
      ;;
 
16736
    mingw*)
 
16737
      # MinGW DLLs use traditional 'lib' prefix
 
16738
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
16739
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
16740
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
16741
        # It is most probably a Windows format PATH printed by
 
16742
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
16743
        # path with ; separators, and with drive letters. We can handle the
 
16744
        # drive letters (cygwin fileutils understands them), so leave them,
 
16745
        # especially as we might pass files found there to a mingw objdump,
 
16746
        # which wouldn't understand a cygwinified path. Ahh.
 
16747
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
16748
      else
 
16749
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
16750
      fi
 
16751
      ;;
 
16752
    pw32*)
 
16753
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
16754
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
16755
      ;;
 
16756
    esac
 
16757
    ;;
 
16758
 
 
16759
  *)
 
16760
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
16761
    ;;
 
16762
  esac
 
16763
  dynamic_linker='Win32 ld.exe'
 
16764
  # FIXME: first we should search . and the directory the executable is in
 
16765
  shlibpath_var=PATH
 
16766
  ;;
 
16767
 
 
16768
darwin* | rhapsody*)
 
16769
  dynamic_linker="$host_os dyld"
 
16770
  version_type=darwin
 
16771
  need_lib_prefix=no
 
16772
  need_version=no
 
16773
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
16774
  soname_spec='${libname}${release}${major}$shared_ext'
 
16775
  shlibpath_overrides_runpath=yes
 
16776
  shlibpath_var=DYLD_LIBRARY_PATH
 
16777
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
16778
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
16779
  if test "$GCC" = yes; then
 
16780
    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"`
 
16781
  else
 
16782
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
16783
  fi
 
16784
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
16785
  ;;
 
16786
 
 
16787
dgux*)
 
16788
  version_type=linux
 
16789
  need_lib_prefix=no
 
16790
  need_version=no
 
16791
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
16792
  soname_spec='${libname}${release}${shared_ext}$major'
 
16793
  shlibpath_var=LD_LIBRARY_PATH
 
16794
  ;;
 
16795
 
 
16796
freebsd1*)
 
16797
  dynamic_linker=no
 
16798
  ;;
 
16799
 
 
16800
kfreebsd*-gnu)
 
16801
  version_type=linux
 
16802
  need_lib_prefix=no
 
16803
  need_version=no
 
16804
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
16805
  soname_spec='${libname}${release}${shared_ext}$major'
 
16806
  shlibpath_var=LD_LIBRARY_PATH
 
16807
  shlibpath_overrides_runpath=no
 
16808
  hardcode_into_libs=yes
 
16809
  dynamic_linker='GNU ld.so'
 
16810
  ;;
 
16811
 
 
16812
freebsd* | dragonfly*)
 
16813
  # DragonFly does not have aout.  When/if they implement a new
 
16814
  # versioning mechanism, adjust this.
 
16815
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
16816
  version_type=freebsd-$objformat
 
16817
  case $version_type in
 
16818
    freebsd-elf*)
 
16819
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
16820
      need_version=no
 
16821
      need_lib_prefix=no
 
16822
      ;;
 
16823
    freebsd-*)
 
16824
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
16825
      need_version=yes
 
16826
      ;;
 
16827
  esac
 
16828
  shlibpath_var=LD_LIBRARY_PATH
 
16829
  case $host_os in
 
16830
  freebsd2*)
 
16831
    shlibpath_overrides_runpath=yes
 
16832
    ;;
 
16833
  freebsd3.[01]* | freebsdelf3.[01]*)
 
16834
    shlibpath_overrides_runpath=yes
 
16835
    hardcode_into_libs=yes
 
16836
    ;;
 
16837
  *) # from 3.2 on
 
16838
    shlibpath_overrides_runpath=no
 
16839
    hardcode_into_libs=yes
 
16840
    ;;
 
16841
  esac
 
16842
  ;;
 
16843
 
 
16844
gnu*)
 
16845
  version_type=linux
 
16846
  need_lib_prefix=no
 
16847
  need_version=no
 
16848
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
16849
  soname_spec='${libname}${release}${shared_ext}$major'
 
16850
  shlibpath_var=LD_LIBRARY_PATH
 
16851
  hardcode_into_libs=yes
 
16852
  ;;
 
16853
 
 
16854
hpux9* | hpux10* | hpux11*)
 
16855
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
16856
  # link against other versions.
 
16857
  version_type=sunos
 
16858
  need_lib_prefix=no
 
16859
  need_version=no
 
16860
  case "$host_cpu" in
 
16861
  ia64*)
 
16862
    shrext_cmds='.so'
 
16863
    hardcode_into_libs=yes
 
16864
    dynamic_linker="$host_os dld.so"
 
16865
    shlibpath_var=LD_LIBRARY_PATH
 
16866
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
16867
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16868
    soname_spec='${libname}${release}${shared_ext}$major'
 
16869
    if test "X$HPUX_IA64_MODE" = X32; then
 
16870
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
16871
    else
 
16872
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
16873
    fi
 
16874
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
16875
    ;;
 
16876
   hppa*64*)
 
16877
     shrext_cmds='.sl'
 
16878
     hardcode_into_libs=yes
 
16879
     dynamic_linker="$host_os dld.sl"
 
16880
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
16881
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
16882
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16883
     soname_spec='${libname}${release}${shared_ext}$major'
 
16884
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
16885
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
16886
     ;;
 
16887
   *)
 
16888
    shrext_cmds='.sl'
 
16889
    dynamic_linker="$host_os dld.sl"
 
16890
    shlibpath_var=SHLIB_PATH
 
16891
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
16892
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16893
    soname_spec='${libname}${release}${shared_ext}$major'
 
16894
    ;;
 
16895
  esac
 
16896
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
16897
  postinstall_cmds='chmod 555 $lib'
 
16898
  ;;
 
16899
 
 
16900
irix5* | irix6* | nonstopux*)
 
16901
  case $host_os in
 
16902
    nonstopux*) version_type=nonstopux ;;
 
16903
    *)
 
16904
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
16905
                version_type=linux
 
16906
        else
 
16907
                version_type=irix
 
16908
        fi ;;
 
16909
  esac
 
16910
  need_lib_prefix=no
 
16911
  need_version=no
 
16912
  soname_spec='${libname}${release}${shared_ext}$major'
 
16913
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
16914
  case $host_os in
 
16915
  irix5* | nonstopux*)
 
16916
    libsuff= shlibsuff=
 
16917
    ;;
 
16918
  *)
 
16919
    case $LD in # libtool.m4 will add one of these switches to LD
 
16920
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
16921
      libsuff= shlibsuff= libmagic=32-bit;;
 
16922
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
16923
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
16924
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
16925
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
16926
    *) libsuff= shlibsuff= libmagic=never-match;;
 
16927
    esac
 
16928
    ;;
 
16929
  esac
 
16930
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
16931
  shlibpath_overrides_runpath=no
 
16932
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
16933
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
16934
  hardcode_into_libs=yes
 
16935
  ;;
 
16936
 
 
16937
# No shared lib support for Linux oldld, aout, or coff.
 
16938
linux*oldld* | linux*aout* | linux*coff*)
 
16939
  dynamic_linker=no
 
16940
  ;;
 
16941
 
 
16942
# This must be Linux ELF.
 
16943
linux*)
 
16944
  version_type=linux
 
16945
  need_lib_prefix=no
 
16946
  need_version=no
 
16947
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16948
  soname_spec='${libname}${release}${shared_ext}$major'
 
16949
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
16950
  shlibpath_var=LD_LIBRARY_PATH
 
16951
  shlibpath_overrides_runpath=no
 
16952
  # This implies no fast_install, which is unacceptable.
 
16953
  # Some rework will be needed to allow for fast_install
 
16954
  # before this can be enabled.
 
16955
  hardcode_into_libs=yes
 
16956
 
 
16957
  # find out which ABI we are using
 
16958
  libsuff=
 
16959
  case "$host_cpu" in
 
16960
  x86_64*|s390x*|powerpc64*)
 
16961
    echo '#line 16961 "configure"' > conftest.$ac_ext
 
16962
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
16963
  (eval $ac_compile) 2>&5
 
16964
  ac_status=$?
 
16965
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16966
  (exit $ac_status); }; then
 
16967
      case `/usr/bin/file conftest.$ac_objext` in
 
16968
      *64-bit*)
 
16969
        libsuff=64
 
16970
        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
 
16971
        ;;
 
16972
      esac
 
16973
    fi
 
16974
    rm -rf conftest*
 
16975
    ;;
 
16976
  esac
 
16977
 
 
16978
  # Append ld.so.conf contents to the search path
 
16979
  if test -f /etc/ld.so.conf; then
 
16980
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
16981
    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
 
16982
  fi
 
16983
 
 
16984
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
16985
  # powerpc, because MkLinux only supported shared libraries with the
 
16986
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
16987
  # most powerpc-linux boxes support dynamic linking these days and
 
16988
  # people can always --disable-shared, the test was removed, and we
 
16989
  # assume the GNU/Linux dynamic linker is in use.
 
16990
  dynamic_linker='GNU/Linux ld.so'
 
16991
  ;;
 
16992
 
 
16993
knetbsd*-gnu)
 
16994
  version_type=linux
 
16995
  need_lib_prefix=no
 
16996
  need_version=no
 
16997
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
16998
  soname_spec='${libname}${release}${shared_ext}$major'
 
16999
  shlibpath_var=LD_LIBRARY_PATH
 
17000
  shlibpath_overrides_runpath=no
 
17001
  hardcode_into_libs=yes
 
17002
  dynamic_linker='GNU ld.so'
 
17003
  ;;
 
17004
 
 
17005
netbsd*)
 
17006
  version_type=sunos
 
17007
  need_lib_prefix=no
 
17008
  need_version=no
 
17009
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
17010
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
17011
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
17012
    dynamic_linker='NetBSD (a.out) ld.so'
 
17013
  else
 
17014
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
17015
    soname_spec='${libname}${release}${shared_ext}$major'
 
17016
    dynamic_linker='NetBSD ld.elf_so'
 
17017
  fi
 
17018
  shlibpath_var=LD_LIBRARY_PATH
 
17019
  shlibpath_overrides_runpath=yes
 
17020
  hardcode_into_libs=yes
 
17021
  ;;
 
17022
 
 
17023
newsos6)
 
17024
  version_type=linux
 
17025
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17026
  shlibpath_var=LD_LIBRARY_PATH
 
17027
  shlibpath_overrides_runpath=yes
 
17028
  ;;
 
17029
 
 
17030
nto-qnx*)
 
17031
  version_type=linux
 
17032
  need_lib_prefix=no
 
17033
  need_version=no
 
17034
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17035
  soname_spec='${libname}${release}${shared_ext}$major'
 
17036
  shlibpath_var=LD_LIBRARY_PATH
 
17037
  shlibpath_overrides_runpath=yes
 
17038
  ;;
 
17039
 
 
17040
openbsd*)
 
17041
  version_type=sunos
 
17042
  need_lib_prefix=no
 
17043
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
17044
  case $host_os in
 
17045
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
17046
    *)                         need_version=no  ;;
 
17047
  esac
 
17048
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
17049
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
17050
  shlibpath_var=LD_LIBRARY_PATH
 
17051
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
17052
    case $host_os in
 
17053
      openbsd2.[89] | openbsd2.[89].*)
 
17054
        shlibpath_overrides_runpath=no
 
17055
        ;;
 
17056
      *)
 
17057
        shlibpath_overrides_runpath=yes
 
17058
        ;;
 
17059
      esac
 
17060
  else
 
17061
    shlibpath_overrides_runpath=yes
 
17062
  fi
 
17063
  ;;
 
17064
 
 
17065
os2*)
 
17066
  libname_spec='$name'
 
17067
  shrext_cmds=".dll"
 
17068
  need_lib_prefix=no
 
17069
  library_names_spec='$libname${shared_ext} $libname.a'
 
17070
  dynamic_linker='OS/2 ld.exe'
 
17071
  shlibpath_var=LIBPATH
 
17072
  ;;
 
17073
 
 
17074
osf3* | osf4* | osf5*)
 
17075
  version_type=osf
 
17076
  need_lib_prefix=no
 
17077
  need_version=no
 
17078
  soname_spec='${libname}${release}${shared_ext}$major'
 
17079
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17080
  shlibpath_var=LD_LIBRARY_PATH
 
17081
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
17082
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
17083
  ;;
 
17084
 
 
17085
sco3.2v5*)
 
17086
  version_type=osf
 
17087
  soname_spec='${libname}${release}${shared_ext}$major'
 
17088
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17089
  shlibpath_var=LD_LIBRARY_PATH
 
17090
  ;;
 
17091
 
 
17092
solaris*)
 
17093
  version_type=linux
 
17094
  need_lib_prefix=no
 
17095
  need_version=no
 
17096
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17097
  soname_spec='${libname}${release}${shared_ext}$major'
 
17098
  shlibpath_var=LD_LIBRARY_PATH
 
17099
  shlibpath_overrides_runpath=yes
 
17100
  hardcode_into_libs=yes
 
17101
  # ldd complains unless libraries are executable
 
17102
  postinstall_cmds='chmod +x $lib'
 
17103
  ;;
 
17104
 
 
17105
sunos4*)
 
17106
  version_type=sunos
 
17107
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
17108
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
17109
  shlibpath_var=LD_LIBRARY_PATH
 
17110
  shlibpath_overrides_runpath=yes
 
17111
  if test "$with_gnu_ld" = yes; then
 
17112
    need_lib_prefix=no
 
17113
  fi
 
17114
  need_version=yes
 
17115
  ;;
 
17116
 
 
17117
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
17118
  version_type=linux
 
17119
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17120
  soname_spec='${libname}${release}${shared_ext}$major'
 
17121
  shlibpath_var=LD_LIBRARY_PATH
 
17122
  case $host_vendor in
 
17123
    sni)
 
17124
      shlibpath_overrides_runpath=no
 
17125
      need_lib_prefix=no
 
17126
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
17127
      runpath_var=LD_RUN_PATH
 
17128
      ;;
 
17129
    siemens)
 
17130
      need_lib_prefix=no
 
17131
      ;;
 
17132
    motorola)
 
17133
      need_lib_prefix=no
 
17134
      need_version=no
 
17135
      shlibpath_overrides_runpath=no
 
17136
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
17137
      ;;
 
17138
  esac
 
17139
  ;;
 
17140
 
 
17141
sysv4*MP*)
 
17142
  if test -d /usr/nec ;then
 
17143
    version_type=linux
 
17144
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
17145
    soname_spec='$libname${shared_ext}.$major'
 
17146
    shlibpath_var=LD_LIBRARY_PATH
 
17147
  fi
 
17148
  ;;
 
17149
 
 
17150
uts4*)
 
17151
  version_type=linux
 
17152
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17153
  soname_spec='${libname}${release}${shared_ext}$major'
 
17154
  shlibpath_var=LD_LIBRARY_PATH
 
17155
  ;;
 
17156
 
 
17157
*)
 
17158
  dynamic_linker=no
 
17159
  ;;
 
17160
esac
 
17161
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
17162
echo "${ECHO_T}$dynamic_linker" >&6
 
17163
test "$dynamic_linker" = no && can_build_shared=no
 
17164
 
 
17165
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
17166
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
17167
hardcode_action_GCJ=
 
17168
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
 
17169
   test -n "$runpath_var_GCJ" || \
 
17170
   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
 
17171
 
 
17172
  # We can hardcode non-existant directories.
 
17173
  if test "$hardcode_direct_GCJ" != no &&
 
17174
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
17175
     # have to relink, otherwise we might link with an installed library
 
17176
     # when we should be linking with a yet-to-be-installed one
 
17177
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
 
17178
     test "$hardcode_minus_L_GCJ" != no; then
 
17179
    # Linking always hardcodes the temporary library directory.
 
17180
    hardcode_action_GCJ=relink
 
17181
  else
 
17182
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
17183
    hardcode_action_GCJ=immediate
 
17184
  fi
 
17185
else
 
17186
  # We cannot hardcode anything, or else we can only hardcode existing
 
17187
  # directories.
 
17188
  hardcode_action_GCJ=unsupported
 
17189
fi
 
17190
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
 
17191
echo "${ECHO_T}$hardcode_action_GCJ" >&6
 
17192
 
 
17193
if test "$hardcode_action_GCJ" = relink; then
 
17194
  # Fast installation is not supported
 
17195
  enable_fast_install=no
 
17196
elif test "$shlibpath_overrides_runpath" = yes ||
 
17197
     test "$enable_shared" = no; then
 
17198
  # Fast installation is not necessary
 
17199
  enable_fast_install=needless
 
17200
fi
 
17201
 
 
17202
striplib=
 
17203
old_striplib=
 
17204
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
17205
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
17206
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
17207
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
17208
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
17209
  echo "$as_me:$LINENO: result: yes" >&5
 
17210
echo "${ECHO_T}yes" >&6
 
17211
else
 
17212
# FIXME - insert some real tests, host_os isn't really good enough
 
17213
  case $host_os in
 
17214
   darwin*)
 
17215
       if test -n "$STRIP" ; then
 
17216
         striplib="$STRIP -x"
 
17217
         echo "$as_me:$LINENO: result: yes" >&5
 
17218
echo "${ECHO_T}yes" >&6
 
17219
       else
 
17220
  echo "$as_me:$LINENO: result: no" >&5
 
17221
echo "${ECHO_T}no" >&6
 
17222
fi
 
17223
       ;;
 
17224
   *)
 
17225
  echo "$as_me:$LINENO: result: no" >&5
 
17226
echo "${ECHO_T}no" >&6
 
17227
    ;;
 
17228
  esac
 
17229
fi
 
17230
 
 
17231
if test "x$enable_dlopen" != xyes; then
 
17232
  enable_dlopen=unknown
 
17233
  enable_dlopen_self=unknown
 
17234
  enable_dlopen_self_static=unknown
 
17235
else
 
17236
  lt_cv_dlopen=no
 
17237
  lt_cv_dlopen_libs=
 
17238
 
 
17239
  case $host_os in
 
17240
  beos*)
 
17241
    lt_cv_dlopen="load_add_on"
 
17242
    lt_cv_dlopen_libs=
 
17243
    lt_cv_dlopen_self=yes
 
17244
    ;;
 
17245
 
 
17246
  mingw* | pw32*)
 
17247
    lt_cv_dlopen="LoadLibrary"
 
17248
    lt_cv_dlopen_libs=
 
17249
   ;;
 
17250
 
 
17251
  cygwin*)
 
17252
    lt_cv_dlopen="dlopen"
 
17253
    lt_cv_dlopen_libs=
 
17254
   ;;
 
17255
 
 
17256
  darwin*)
 
17257
  # if libdl is installed we need to link against it
 
17258
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
17259
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
17260
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
17261
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17262
else
 
17263
  ac_check_lib_save_LIBS=$LIBS
 
17264
LIBS="-ldl  $LIBS"
 
17265
cat >conftest.$ac_ext <<_ACEOF
 
17266
/* confdefs.h.  */
 
17267
_ACEOF
 
17268
cat confdefs.h >>conftest.$ac_ext
 
17269
cat >>conftest.$ac_ext <<_ACEOF
 
17270
/* end confdefs.h.  */
 
17271
 
 
17272
/* Override any gcc2 internal prototype to avoid an error.  */
 
17273
#ifdef __cplusplus
 
17274
extern "C"
 
17275
#endif
 
17276
/* We use char because int might match the return type of a gcc2
 
17277
   builtin and then its argument prototype would still apply.  */
 
17278
char dlopen ();
 
17279
int
 
17280
main ()
 
17281
{
 
17282
dlopen ();
 
17283
  ;
 
17284
  return 0;
 
17285
}
 
17286
_ACEOF
 
17287
rm -f conftest.$ac_objext conftest$ac_exeext
 
17288
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17289
  (eval $ac_link) 2>conftest.er1
 
17290
  ac_status=$?
 
17291
  grep -v '^ *+' conftest.er1 >conftest.err
 
17292
  rm -f conftest.er1
 
17293
  cat conftest.err >&5
 
17294
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17295
  (exit $ac_status); } &&
 
17296
         { ac_try='test -z "$ac_c_werror_flag"
 
17297
                         || test ! -s conftest.err'
 
17298
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17299
  (eval $ac_try) 2>&5
 
17300
  ac_status=$?
 
17301
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17302
  (exit $ac_status); }; } &&
 
17303
         { ac_try='test -s conftest$ac_exeext'
 
17304
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17305
  (eval $ac_try) 2>&5
 
17306
  ac_status=$?
 
17307
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17308
  (exit $ac_status); }; }; then
 
17309
  ac_cv_lib_dl_dlopen=yes
 
17310
else
 
17311
  echo "$as_me: failed program was:" >&5
 
17312
sed 's/^/| /' conftest.$ac_ext >&5
 
17313
 
 
17314
ac_cv_lib_dl_dlopen=no
 
17315
fi
 
17316
rm -f conftest.err conftest.$ac_objext \
 
17317
      conftest$ac_exeext conftest.$ac_ext
 
17318
LIBS=$ac_check_lib_save_LIBS
 
17319
fi
 
17320
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
17321
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
17322
if test $ac_cv_lib_dl_dlopen = yes; then
 
17323
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
17324
else
 
17325
 
 
17326
    lt_cv_dlopen="dyld"
 
17327
    lt_cv_dlopen_libs=
 
17328
    lt_cv_dlopen_self=yes
 
17329
 
 
17330
fi
 
17331
 
 
17332
   ;;
 
17333
 
 
17334
  *)
 
17335
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
17336
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
17337
if test "${ac_cv_func_shl_load+set}" = set; then
 
17338
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17339
else
 
17340
  cat >conftest.$ac_ext <<_ACEOF
 
17341
/* confdefs.h.  */
 
17342
_ACEOF
 
17343
cat confdefs.h >>conftest.$ac_ext
 
17344
cat >>conftest.$ac_ext <<_ACEOF
 
17345
/* end confdefs.h.  */
 
17346
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
17347
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
17348
#define shl_load innocuous_shl_load
 
17349
 
 
17350
/* System header to define __stub macros and hopefully few prototypes,
 
17351
    which can conflict with char shl_load (); below.
 
17352
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
17353
    <limits.h> exists even on freestanding compilers.  */
 
17354
 
 
17355
#ifdef __STDC__
 
17356
# include <limits.h>
 
17357
#else
 
17358
# include <assert.h>
 
17359
#endif
 
17360
 
 
17361
#undef shl_load
 
17362
 
 
17363
/* Override any gcc2 internal prototype to avoid an error.  */
 
17364
#ifdef __cplusplus
 
17365
extern "C"
 
17366
{
 
17367
#endif
 
17368
/* We use char because int might match the return type of a gcc2
 
17369
   builtin and then its argument prototype would still apply.  */
 
17370
char shl_load ();
 
17371
/* The GNU C library defines this for functions which it implements
 
17372
    to always fail with ENOSYS.  Some functions are actually named
 
17373
    something starting with __ and the normal name is an alias.  */
 
17374
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
17375
choke me
 
17376
#else
 
17377
char (*f) () = shl_load;
 
17378
#endif
 
17379
#ifdef __cplusplus
 
17380
}
 
17381
#endif
 
17382
 
 
17383
int
 
17384
main ()
 
17385
{
 
17386
return f != shl_load;
 
17387
  ;
 
17388
  return 0;
 
17389
}
 
17390
_ACEOF
 
17391
rm -f conftest.$ac_objext conftest$ac_exeext
 
17392
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17393
  (eval $ac_link) 2>conftest.er1
 
17394
  ac_status=$?
 
17395
  grep -v '^ *+' conftest.er1 >conftest.err
 
17396
  rm -f conftest.er1
 
17397
  cat conftest.err >&5
 
17398
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17399
  (exit $ac_status); } &&
 
17400
         { ac_try='test -z "$ac_c_werror_flag"
 
17401
                         || test ! -s conftest.err'
 
17402
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17403
  (eval $ac_try) 2>&5
 
17404
  ac_status=$?
 
17405
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17406
  (exit $ac_status); }; } &&
 
17407
         { ac_try='test -s conftest$ac_exeext'
 
17408
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17409
  (eval $ac_try) 2>&5
 
17410
  ac_status=$?
 
17411
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17412
  (exit $ac_status); }; }; then
 
17413
  ac_cv_func_shl_load=yes
 
17414
else
 
17415
  echo "$as_me: failed program was:" >&5
 
17416
sed 's/^/| /' conftest.$ac_ext >&5
 
17417
 
 
17418
ac_cv_func_shl_load=no
 
17419
fi
 
17420
rm -f conftest.err conftest.$ac_objext \
 
17421
      conftest$ac_exeext conftest.$ac_ext
 
17422
fi
 
17423
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
17424
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
17425
if test $ac_cv_func_shl_load = yes; then
 
17426
  lt_cv_dlopen="shl_load"
 
17427
else
 
17428
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
17429
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
17430
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
17431
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17432
else
 
17433
  ac_check_lib_save_LIBS=$LIBS
 
17434
LIBS="-ldld  $LIBS"
 
17435
cat >conftest.$ac_ext <<_ACEOF
 
17436
/* confdefs.h.  */
 
17437
_ACEOF
 
17438
cat confdefs.h >>conftest.$ac_ext
 
17439
cat >>conftest.$ac_ext <<_ACEOF
 
17440
/* end confdefs.h.  */
 
17441
 
 
17442
/* Override any gcc2 internal prototype to avoid an error.  */
 
17443
#ifdef __cplusplus
 
17444
extern "C"
 
17445
#endif
 
17446
/* We use char because int might match the return type of a gcc2
 
17447
   builtin and then its argument prototype would still apply.  */
 
17448
char shl_load ();
 
17449
int
 
17450
main ()
 
17451
{
 
17452
shl_load ();
 
17453
  ;
 
17454
  return 0;
 
17455
}
 
17456
_ACEOF
 
17457
rm -f conftest.$ac_objext conftest$ac_exeext
 
17458
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17459
  (eval $ac_link) 2>conftest.er1
 
17460
  ac_status=$?
 
17461
  grep -v '^ *+' conftest.er1 >conftest.err
 
17462
  rm -f conftest.er1
 
17463
  cat conftest.err >&5
 
17464
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17465
  (exit $ac_status); } &&
 
17466
         { ac_try='test -z "$ac_c_werror_flag"
 
17467
                         || test ! -s conftest.err'
 
17468
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17469
  (eval $ac_try) 2>&5
 
17470
  ac_status=$?
 
17471
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17472
  (exit $ac_status); }; } &&
 
17473
         { ac_try='test -s conftest$ac_exeext'
 
17474
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17475
  (eval $ac_try) 2>&5
 
17476
  ac_status=$?
 
17477
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17478
  (exit $ac_status); }; }; then
 
17479
  ac_cv_lib_dld_shl_load=yes
 
17480
else
 
17481
  echo "$as_me: failed program was:" >&5
 
17482
sed 's/^/| /' conftest.$ac_ext >&5
 
17483
 
 
17484
ac_cv_lib_dld_shl_load=no
 
17485
fi
 
17486
rm -f conftest.err conftest.$ac_objext \
 
17487
      conftest$ac_exeext conftest.$ac_ext
 
17488
LIBS=$ac_check_lib_save_LIBS
 
17489
fi
 
17490
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
17491
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
17492
if test $ac_cv_lib_dld_shl_load = yes; then
 
17493
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
17494
else
 
17495
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
17496
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
17497
if test "${ac_cv_func_dlopen+set}" = set; then
 
17498
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17499
else
 
17500
  cat >conftest.$ac_ext <<_ACEOF
 
17501
/* confdefs.h.  */
 
17502
_ACEOF
 
17503
cat confdefs.h >>conftest.$ac_ext
 
17504
cat >>conftest.$ac_ext <<_ACEOF
 
17505
/* end confdefs.h.  */
 
17506
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
17507
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
17508
#define dlopen innocuous_dlopen
 
17509
 
 
17510
/* System header to define __stub macros and hopefully few prototypes,
 
17511
    which can conflict with char dlopen (); below.
 
17512
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
17513
    <limits.h> exists even on freestanding compilers.  */
 
17514
 
 
17515
#ifdef __STDC__
 
17516
# include <limits.h>
 
17517
#else
 
17518
# include <assert.h>
 
17519
#endif
 
17520
 
 
17521
#undef dlopen
 
17522
 
 
17523
/* Override any gcc2 internal prototype to avoid an error.  */
 
17524
#ifdef __cplusplus
 
17525
extern "C"
 
17526
{
 
17527
#endif
 
17528
/* We use char because int might match the return type of a gcc2
 
17529
   builtin and then its argument prototype would still apply.  */
 
17530
char dlopen ();
 
17531
/* The GNU C library defines this for functions which it implements
 
17532
    to always fail with ENOSYS.  Some functions are actually named
 
17533
    something starting with __ and the normal name is an alias.  */
 
17534
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
17535
choke me
 
17536
#else
 
17537
char (*f) () = dlopen;
 
17538
#endif
 
17539
#ifdef __cplusplus
 
17540
}
 
17541
#endif
 
17542
 
 
17543
int
 
17544
main ()
 
17545
{
 
17546
return f != dlopen;
 
17547
  ;
 
17548
  return 0;
 
17549
}
 
17550
_ACEOF
 
17551
rm -f conftest.$ac_objext conftest$ac_exeext
 
17552
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17553
  (eval $ac_link) 2>conftest.er1
 
17554
  ac_status=$?
 
17555
  grep -v '^ *+' conftest.er1 >conftest.err
 
17556
  rm -f conftest.er1
 
17557
  cat conftest.err >&5
 
17558
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17559
  (exit $ac_status); } &&
 
17560
         { ac_try='test -z "$ac_c_werror_flag"
 
17561
                         || test ! -s conftest.err'
 
17562
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17563
  (eval $ac_try) 2>&5
 
17564
  ac_status=$?
 
17565
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17566
  (exit $ac_status); }; } &&
 
17567
         { ac_try='test -s conftest$ac_exeext'
 
17568
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17569
  (eval $ac_try) 2>&5
 
17570
  ac_status=$?
 
17571
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17572
  (exit $ac_status); }; }; then
 
17573
  ac_cv_func_dlopen=yes
 
17574
else
 
17575
  echo "$as_me: failed program was:" >&5
 
17576
sed 's/^/| /' conftest.$ac_ext >&5
 
17577
 
 
17578
ac_cv_func_dlopen=no
 
17579
fi
 
17580
rm -f conftest.err conftest.$ac_objext \
 
17581
      conftest$ac_exeext conftest.$ac_ext
 
17582
fi
 
17583
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
17584
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
17585
if test $ac_cv_func_dlopen = yes; then
 
17586
  lt_cv_dlopen="dlopen"
 
17587
else
 
17588
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
17589
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
17590
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
17591
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17592
else
 
17593
  ac_check_lib_save_LIBS=$LIBS
 
17594
LIBS="-ldl  $LIBS"
 
17595
cat >conftest.$ac_ext <<_ACEOF
 
17596
/* confdefs.h.  */
 
17597
_ACEOF
 
17598
cat confdefs.h >>conftest.$ac_ext
 
17599
cat >>conftest.$ac_ext <<_ACEOF
 
17600
/* end confdefs.h.  */
 
17601
 
 
17602
/* Override any gcc2 internal prototype to avoid an error.  */
 
17603
#ifdef __cplusplus
 
17604
extern "C"
 
17605
#endif
 
17606
/* We use char because int might match the return type of a gcc2
 
17607
   builtin and then its argument prototype would still apply.  */
 
17608
char dlopen ();
 
17609
int
 
17610
main ()
 
17611
{
 
17612
dlopen ();
 
17613
  ;
 
17614
  return 0;
 
17615
}
 
17616
_ACEOF
 
17617
rm -f conftest.$ac_objext conftest$ac_exeext
 
17618
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17619
  (eval $ac_link) 2>conftest.er1
 
17620
  ac_status=$?
 
17621
  grep -v '^ *+' conftest.er1 >conftest.err
 
17622
  rm -f conftest.er1
 
17623
  cat conftest.err >&5
 
17624
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17625
  (exit $ac_status); } &&
 
17626
         { ac_try='test -z "$ac_c_werror_flag"
 
17627
                         || test ! -s conftest.err'
 
17628
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17629
  (eval $ac_try) 2>&5
 
17630
  ac_status=$?
 
17631
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17632
  (exit $ac_status); }; } &&
 
17633
         { ac_try='test -s conftest$ac_exeext'
 
17634
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17635
  (eval $ac_try) 2>&5
 
17636
  ac_status=$?
 
17637
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17638
  (exit $ac_status); }; }; then
 
17639
  ac_cv_lib_dl_dlopen=yes
 
17640
else
 
17641
  echo "$as_me: failed program was:" >&5
 
17642
sed 's/^/| /' conftest.$ac_ext >&5
 
17643
 
 
17644
ac_cv_lib_dl_dlopen=no
 
17645
fi
 
17646
rm -f conftest.err conftest.$ac_objext \
 
17647
      conftest$ac_exeext conftest.$ac_ext
 
17648
LIBS=$ac_check_lib_save_LIBS
 
17649
fi
 
17650
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
17651
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
17652
if test $ac_cv_lib_dl_dlopen = yes; then
 
17653
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
17654
else
 
17655
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
17656
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
17657
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
17658
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17659
else
 
17660
  ac_check_lib_save_LIBS=$LIBS
 
17661
LIBS="-lsvld  $LIBS"
 
17662
cat >conftest.$ac_ext <<_ACEOF
 
17663
/* confdefs.h.  */
 
17664
_ACEOF
 
17665
cat confdefs.h >>conftest.$ac_ext
 
17666
cat >>conftest.$ac_ext <<_ACEOF
 
17667
/* end confdefs.h.  */
 
17668
 
 
17669
/* Override any gcc2 internal prototype to avoid an error.  */
 
17670
#ifdef __cplusplus
 
17671
extern "C"
 
17672
#endif
 
17673
/* We use char because int might match the return type of a gcc2
 
17674
   builtin and then its argument prototype would still apply.  */
 
17675
char dlopen ();
 
17676
int
 
17677
main ()
 
17678
{
 
17679
dlopen ();
 
17680
  ;
 
17681
  return 0;
 
17682
}
 
17683
_ACEOF
 
17684
rm -f conftest.$ac_objext conftest$ac_exeext
 
17685
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17686
  (eval $ac_link) 2>conftest.er1
 
17687
  ac_status=$?
 
17688
  grep -v '^ *+' conftest.er1 >conftest.err
 
17689
  rm -f conftest.er1
 
17690
  cat conftest.err >&5
 
17691
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17692
  (exit $ac_status); } &&
 
17693
         { ac_try='test -z "$ac_c_werror_flag"
 
17694
                         || test ! -s conftest.err'
 
17695
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17696
  (eval $ac_try) 2>&5
 
17697
  ac_status=$?
 
17698
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17699
  (exit $ac_status); }; } &&
 
17700
         { ac_try='test -s conftest$ac_exeext'
 
17701
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17702
  (eval $ac_try) 2>&5
 
17703
  ac_status=$?
 
17704
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17705
  (exit $ac_status); }; }; then
 
17706
  ac_cv_lib_svld_dlopen=yes
 
17707
else
 
17708
  echo "$as_me: failed program was:" >&5
 
17709
sed 's/^/| /' conftest.$ac_ext >&5
 
17710
 
 
17711
ac_cv_lib_svld_dlopen=no
 
17712
fi
 
17713
rm -f conftest.err conftest.$ac_objext \
 
17714
      conftest$ac_exeext conftest.$ac_ext
 
17715
LIBS=$ac_check_lib_save_LIBS
 
17716
fi
 
17717
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
17718
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
17719
if test $ac_cv_lib_svld_dlopen = yes; then
 
17720
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
17721
else
 
17722
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
17723
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
17724
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
17725
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17726
else
 
17727
  ac_check_lib_save_LIBS=$LIBS
 
17728
LIBS="-ldld  $LIBS"
 
17729
cat >conftest.$ac_ext <<_ACEOF
 
17730
/* confdefs.h.  */
 
17731
_ACEOF
 
17732
cat confdefs.h >>conftest.$ac_ext
 
17733
cat >>conftest.$ac_ext <<_ACEOF
 
17734
/* end confdefs.h.  */
 
17735
 
 
17736
/* Override any gcc2 internal prototype to avoid an error.  */
 
17737
#ifdef __cplusplus
 
17738
extern "C"
 
17739
#endif
 
17740
/* We use char because int might match the return type of a gcc2
 
17741
   builtin and then its argument prototype would still apply.  */
 
17742
char dld_link ();
 
17743
int
 
17744
main ()
 
17745
{
 
17746
dld_link ();
 
17747
  ;
 
17748
  return 0;
 
17749
}
 
17750
_ACEOF
 
17751
rm -f conftest.$ac_objext conftest$ac_exeext
 
17752
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17753
  (eval $ac_link) 2>conftest.er1
 
17754
  ac_status=$?
 
17755
  grep -v '^ *+' conftest.er1 >conftest.err
 
17756
  rm -f conftest.er1
 
17757
  cat conftest.err >&5
 
17758
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17759
  (exit $ac_status); } &&
 
17760
         { ac_try='test -z "$ac_c_werror_flag"
 
17761
                         || test ! -s conftest.err'
 
17762
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17763
  (eval $ac_try) 2>&5
 
17764
  ac_status=$?
 
17765
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17766
  (exit $ac_status); }; } &&
 
17767
         { ac_try='test -s conftest$ac_exeext'
 
17768
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17769
  (eval $ac_try) 2>&5
 
17770
  ac_status=$?
 
17771
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17772
  (exit $ac_status); }; }; then
 
17773
  ac_cv_lib_dld_dld_link=yes
 
17774
else
 
17775
  echo "$as_me: failed program was:" >&5
 
17776
sed 's/^/| /' conftest.$ac_ext >&5
 
17777
 
 
17778
ac_cv_lib_dld_dld_link=no
 
17779
fi
 
17780
rm -f conftest.err conftest.$ac_objext \
 
17781
      conftest$ac_exeext conftest.$ac_ext
 
17782
LIBS=$ac_check_lib_save_LIBS
 
17783
fi
 
17784
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
17785
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
17786
if test $ac_cv_lib_dld_dld_link = yes; then
 
17787
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
17788
fi
 
17789
 
 
17790
 
 
17791
fi
 
17792
 
 
17793
 
 
17794
fi
 
17795
 
 
17796
 
 
17797
fi
 
17798
 
 
17799
 
 
17800
fi
 
17801
 
 
17802
 
 
17803
fi
 
17804
 
 
17805
    ;;
 
17806
  esac
 
17807
 
 
17808
  if test "x$lt_cv_dlopen" != xno; then
 
17809
    enable_dlopen=yes
 
17810
  else
 
17811
    enable_dlopen=no
 
17812
  fi
 
17813
 
 
17814
  case $lt_cv_dlopen in
 
17815
  dlopen)
 
17816
    save_CPPFLAGS="$CPPFLAGS"
 
17817
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
17818
 
 
17819
    save_LDFLAGS="$LDFLAGS"
 
17820
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
17821
 
 
17822
    save_LIBS="$LIBS"
 
17823
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
17824
 
 
17825
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
17826
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
17827
if test "${lt_cv_dlopen_self+set}" = set; then
 
17828
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17829
else
 
17830
          if test "$cross_compiling" = yes; then :
 
17831
  lt_cv_dlopen_self=cross
 
17832
else
 
17833
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
17834
  lt_status=$lt_dlunknown
 
17835
  cat > conftest.$ac_ext <<EOF
 
17836
#line 17836 "configure"
 
17837
#include "confdefs.h"
 
17838
 
 
17839
#if HAVE_DLFCN_H
 
17840
#include <dlfcn.h>
 
17841
#endif
 
17842
 
 
17843
#include <stdio.h>
 
17844
 
 
17845
#ifdef RTLD_GLOBAL
 
17846
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
17847
#else
 
17848
#  ifdef DL_GLOBAL
 
17849
#    define LT_DLGLOBAL         DL_GLOBAL
 
17850
#  else
 
17851
#    define LT_DLGLOBAL         0
 
17852
#  endif
 
17853
#endif
 
17854
 
 
17855
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
17856
   find out it does not work in some platform. */
 
17857
#ifndef LT_DLLAZY_OR_NOW
 
17858
#  ifdef RTLD_LAZY
 
17859
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
17860
#  else
 
17861
#    ifdef DL_LAZY
 
17862
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
17863
#    else
 
17864
#      ifdef RTLD_NOW
 
17865
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
17866
#      else
 
17867
#        ifdef DL_NOW
 
17868
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
17869
#        else
 
17870
#          define LT_DLLAZY_OR_NOW      0
 
17871
#        endif
 
17872
#      endif
 
17873
#    endif
 
17874
#  endif
 
17875
#endif
 
17876
 
 
17877
#ifdef __cplusplus
 
17878
extern "C" void exit (int);
 
17879
#endif
 
17880
 
 
17881
void fnord() { int i=42;}
 
17882
int main ()
 
17883
{
 
17884
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
17885
  int status = $lt_dlunknown;
 
17886
 
 
17887
  if (self)
 
17888
    {
 
17889
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
17890
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
17891
      /* dlclose (self); */
 
17892
    }
 
17893
 
 
17894
    exit (status);
 
17895
}
 
17896
EOF
 
17897
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17898
  (eval $ac_link) 2>&5
 
17899
  ac_status=$?
 
17900
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17901
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
17902
    (./conftest; exit; ) 2>/dev/null
 
17903
    lt_status=$?
 
17904
    case x$lt_status in
 
17905
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
17906
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
17907
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
17908
    esac
 
17909
  else :
 
17910
    # compilation failed
 
17911
    lt_cv_dlopen_self=no
 
17912
  fi
 
17913
fi
 
17914
rm -fr conftest*
 
17915
 
 
17916
 
 
17917
fi
 
17918
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
17919
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
17920
 
 
17921
    if test "x$lt_cv_dlopen_self" = xyes; then
 
17922
      LDFLAGS="$LDFLAGS $link_static_flag"
 
17923
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
17924
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
17925
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
17926
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17927
else
 
17928
          if test "$cross_compiling" = yes; then :
 
17929
  lt_cv_dlopen_self_static=cross
 
17930
else
 
17931
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
17932
  lt_status=$lt_dlunknown
 
17933
  cat > conftest.$ac_ext <<EOF
 
17934
#line 17934 "configure"
 
17935
#include "confdefs.h"
 
17936
 
 
17937
#if HAVE_DLFCN_H
 
17938
#include <dlfcn.h>
 
17939
#endif
 
17940
 
 
17941
#include <stdio.h>
 
17942
 
 
17943
#ifdef RTLD_GLOBAL
 
17944
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
17945
#else
 
17946
#  ifdef DL_GLOBAL
 
17947
#    define LT_DLGLOBAL         DL_GLOBAL
 
17948
#  else
 
17949
#    define LT_DLGLOBAL         0
 
17950
#  endif
 
17951
#endif
 
17952
 
 
17953
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
17954
   find out it does not work in some platform. */
 
17955
#ifndef LT_DLLAZY_OR_NOW
 
17956
#  ifdef RTLD_LAZY
 
17957
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
17958
#  else
 
17959
#    ifdef DL_LAZY
 
17960
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
17961
#    else
 
17962
#      ifdef RTLD_NOW
 
17963
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
17964
#      else
 
17965
#        ifdef DL_NOW
 
17966
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
17967
#        else
 
17968
#          define LT_DLLAZY_OR_NOW      0
 
17969
#        endif
 
17970
#      endif
 
17971
#    endif
 
17972
#  endif
 
17973
#endif
 
17974
 
 
17975
#ifdef __cplusplus
 
17976
extern "C" void exit (int);
 
17977
#endif
 
17978
 
 
17979
void fnord() { int i=42;}
 
17980
int main ()
 
17981
{
 
17982
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
17983
  int status = $lt_dlunknown;
 
17984
 
 
17985
  if (self)
 
17986
    {
 
17987
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
17988
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
17989
      /* dlclose (self); */
 
17990
    }
 
17991
 
 
17992
    exit (status);
 
17993
}
 
17994
EOF
 
17995
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17996
  (eval $ac_link) 2>&5
 
17997
  ac_status=$?
 
17998
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17999
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
18000
    (./conftest; exit; ) 2>/dev/null
 
18001
    lt_status=$?
 
18002
    case x$lt_status in
 
18003
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
18004
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
18005
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
18006
    esac
 
18007
  else :
 
18008
    # compilation failed
 
18009
    lt_cv_dlopen_self_static=no
 
18010
  fi
 
18011
fi
 
18012
rm -fr conftest*
 
18013
 
 
18014
 
 
18015
fi
 
18016
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
18017
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
18018
    fi
 
18019
 
 
18020
    CPPFLAGS="$save_CPPFLAGS"
 
18021
    LDFLAGS="$save_LDFLAGS"
 
18022
    LIBS="$save_LIBS"
 
18023
    ;;
 
18024
  esac
 
18025
 
 
18026
  case $lt_cv_dlopen_self in
 
18027
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
18028
  *) enable_dlopen_self=unknown ;;
 
18029
  esac
 
18030
 
 
18031
  case $lt_cv_dlopen_self_static in
 
18032
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
18033
  *) enable_dlopen_self_static=unknown ;;
 
18034
  esac
 
18035
fi
 
18036
 
 
18037
 
 
18038
# The else clause should only fire when bootstrapping the
 
18039
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
18040
# with your package, and you will get complaints that there are
 
18041
# no rules to generate ltmain.sh.
 
18042
if test -f "$ltmain"; then
 
18043
  # See if we are running on zsh, and set the options which allow our commands through
 
18044
  # without removal of \ escapes.
 
18045
  if test -n "${ZSH_VERSION+set}" ; then
 
18046
    setopt NO_GLOB_SUBST
 
18047
  fi
 
18048
  # Now quote all the things that may contain metacharacters while being
 
18049
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
18050
  # variables and quote the copies for generation of the libtool script.
 
18051
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
18052
    SED SHELL STRIP \
 
18053
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
18054
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
18055
    deplibs_check_method reload_flag reload_cmds need_locks \
 
18056
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
18057
    lt_cv_sys_global_symbol_to_c_name_address \
 
18058
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
18059
    old_postinstall_cmds old_postuninstall_cmds \
 
18060
    compiler_GCJ \
 
18061
    CC_GCJ \
 
18062
    LD_GCJ \
 
18063
    lt_prog_compiler_wl_GCJ \
 
18064
    lt_prog_compiler_pic_GCJ \
 
18065
    lt_prog_compiler_static_GCJ \
 
18066
    lt_prog_compiler_no_builtin_flag_GCJ \
 
18067
    export_dynamic_flag_spec_GCJ \
 
18068
    thread_safe_flag_spec_GCJ \
 
18069
    whole_archive_flag_spec_GCJ \
 
18070
    enable_shared_with_static_runtimes_GCJ \
 
18071
    old_archive_cmds_GCJ \
 
18072
    old_archive_from_new_cmds_GCJ \
 
18073
    predep_objects_GCJ \
 
18074
    postdep_objects_GCJ \
 
18075
    predeps_GCJ \
 
18076
    postdeps_GCJ \
 
18077
    compiler_lib_search_path_GCJ \
 
18078
    archive_cmds_GCJ \
 
18079
    archive_expsym_cmds_GCJ \
 
18080
    postinstall_cmds_GCJ \
 
18081
    postuninstall_cmds_GCJ \
 
18082
    old_archive_from_expsyms_cmds_GCJ \
 
18083
    allow_undefined_flag_GCJ \
 
18084
    no_undefined_flag_GCJ \
 
18085
    export_symbols_cmds_GCJ \
 
18086
    hardcode_libdir_flag_spec_GCJ \
 
18087
    hardcode_libdir_flag_spec_ld_GCJ \
 
18088
    hardcode_libdir_separator_GCJ \
 
18089
    hardcode_automatic_GCJ \
 
18090
    module_cmds_GCJ \
 
18091
    module_expsym_cmds_GCJ \
 
18092
    lt_cv_prog_compiler_c_o_GCJ \
 
18093
    exclude_expsyms_GCJ \
 
18094
    include_expsyms_GCJ; do
 
18095
 
 
18096
    case $var in
 
18097
    old_archive_cmds_GCJ | \
 
18098
    old_archive_from_new_cmds_GCJ | \
 
18099
    archive_cmds_GCJ | \
 
18100
    archive_expsym_cmds_GCJ | \
 
18101
    module_cmds_GCJ | \
 
18102
    module_expsym_cmds_GCJ | \
 
18103
    old_archive_from_expsyms_cmds_GCJ | \
 
18104
    export_symbols_cmds_GCJ | \
 
18105
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
18106
    postinstall_cmds | postuninstall_cmds | \
 
18107
    old_postinstall_cmds | old_postuninstall_cmds | \
 
18108
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
18109
      # Double-quote double-evaled strings.
 
18110
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
18111
      ;;
 
18112
    *)
 
18113
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
18114
      ;;
 
18115
    esac
 
18116
  done
 
18117
 
 
18118
  case $lt_echo in
 
18119
  *'\$0 --fallback-echo"')
 
18120
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
18121
    ;;
 
18122
  esac
 
18123
 
 
18124
cfgfile="$ofile"
 
18125
 
 
18126
  cat <<__EOF__ >> "$cfgfile"
 
18127
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
18128
 
 
18129
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
18130
 
 
18131
# Shell to use when invoking shell scripts.
 
18132
SHELL=$lt_SHELL
 
18133
 
 
18134
# Whether or not to build shared libraries.
 
18135
build_libtool_libs=$enable_shared
 
18136
 
 
18137
# Whether or not to build static libraries.
 
18138
build_old_libs=$enable_static
 
18139
 
 
18140
# Whether or not to add -lc for building shared libraries.
 
18141
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
 
18142
 
 
18143
# Whether or not to disallow shared libs when runtime libs are static
 
18144
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
 
18145
 
 
18146
# Whether or not to optimize for fast installation.
 
18147
fast_install=$enable_fast_install
 
18148
 
 
18149
# The host system.
 
18150
host_alias=$host_alias
 
18151
host=$host
 
18152
host_os=$host_os
 
18153
 
 
18154
# The build system.
 
18155
build_alias=$build_alias
 
18156
build=$build
 
18157
build_os=$build_os
 
18158
 
 
18159
# An echo program that does not interpret backslashes.
 
18160
echo=$lt_echo
 
18161
 
 
18162
# The archiver.
 
18163
AR=$lt_AR
 
18164
AR_FLAGS=$lt_AR_FLAGS
 
18165
 
 
18166
# A C compiler.
 
18167
LTCC=$lt_LTCC
 
18168
 
 
18169
# A language-specific compiler.
 
18170
CC=$lt_compiler_GCJ
 
18171
 
 
18172
# Is the compiler the GNU C compiler?
 
18173
with_gcc=$GCC_GCJ
 
18174
 
 
18175
# An ERE matcher.
 
18176
EGREP=$lt_EGREP
 
18177
 
 
18178
# The linker used to build libraries.
 
18179
LD=$lt_LD_GCJ
 
18180
 
 
18181
# Whether we need hard or soft links.
 
18182
LN_S=$lt_LN_S
 
18183
 
 
18184
# A BSD-compatible nm program.
 
18185
NM=$lt_NM
 
18186
 
 
18187
# A symbol stripping program
 
18188
STRIP=$lt_STRIP
 
18189
 
 
18190
# Used to examine libraries when file_magic_cmd begins "file"
 
18191
MAGIC_CMD=$MAGIC_CMD
 
18192
 
 
18193
# Used on cygwin: DLL creation program.
 
18194
DLLTOOL="$DLLTOOL"
 
18195
 
 
18196
# Used on cygwin: object dumper.
 
18197
OBJDUMP="$OBJDUMP"
 
18198
 
 
18199
# Used on cygwin: assembler.
 
18200
AS="$AS"
 
18201
 
 
18202
# The name of the directory that contains temporary libtool files.
 
18203
objdir=$objdir
 
18204
 
 
18205
# How to create reloadable object files.
 
18206
reload_flag=$lt_reload_flag
 
18207
reload_cmds=$lt_reload_cmds
 
18208
 
 
18209
# How to pass a linker flag through the compiler.
 
18210
wl=$lt_lt_prog_compiler_wl_GCJ
 
18211
 
 
18212
# Object file suffix (normally "o").
 
18213
objext="$ac_objext"
 
18214
 
 
18215
# Old archive suffix (normally "a").
 
18216
libext="$libext"
 
18217
 
 
18218
# Shared library suffix (normally ".so").
 
18219
shrext_cmds='$shrext_cmds'
 
18220
 
 
18221
# Executable file suffix (normally "").
 
18222
exeext="$exeext"
 
18223
 
 
18224
# Additional compiler flags for building library objects.
 
18225
pic_flag=$lt_lt_prog_compiler_pic_GCJ
 
18226
pic_mode=$pic_mode
 
18227
 
 
18228
# What is the maximum length of a command?
 
18229
max_cmd_len=$lt_cv_sys_max_cmd_len
 
18230
 
 
18231
# Does compiler simultaneously support -c and -o options?
 
18232
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
 
18233
 
 
18234
# Must we lock files when doing compilation?
 
18235
need_locks=$lt_need_locks
 
18236
 
 
18237
# Do we need the lib prefix for modules?
 
18238
need_lib_prefix=$need_lib_prefix
 
18239
 
 
18240
# Do we need a version for libraries?
 
18241
need_version=$need_version
 
18242
 
 
18243
# Whether dlopen is supported.
 
18244
dlopen_support=$enable_dlopen
 
18245
 
 
18246
# Whether dlopen of programs is supported.
 
18247
dlopen_self=$enable_dlopen_self
 
18248
 
 
18249
# Whether dlopen of statically linked programs is supported.
 
18250
dlopen_self_static=$enable_dlopen_self_static
 
18251
 
 
18252
# Compiler flag to prevent dynamic linking.
 
18253
link_static_flag=$lt_lt_prog_compiler_static_GCJ
 
18254
 
 
18255
# Compiler flag to turn off builtin functions.
 
18256
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
 
18257
 
 
18258
# Compiler flag to allow reflexive dlopens.
 
18259
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
 
18260
 
 
18261
# Compiler flag to generate shared objects directly from archives.
 
18262
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
 
18263
 
 
18264
# Compiler flag to generate thread-safe objects.
 
18265
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
 
18266
 
 
18267
# Library versioning type.
 
18268
version_type=$version_type
 
18269
 
 
18270
# Format of library name prefix.
 
18271
libname_spec=$lt_libname_spec
 
18272
 
 
18273
# List of archive names.  First name is the real one, the rest are links.
 
18274
# The last name is the one that the linker finds with -lNAME.
 
18275
library_names_spec=$lt_library_names_spec
 
18276
 
 
18277
# The coded name of the library, if different from the real name.
 
18278
soname_spec=$lt_soname_spec
 
18279
 
 
18280
# Commands used to build and install an old-style archive.
 
18281
RANLIB=$lt_RANLIB
 
18282
old_archive_cmds=$lt_old_archive_cmds_GCJ
 
18283
old_postinstall_cmds=$lt_old_postinstall_cmds
 
18284
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
18285
 
 
18286
# Create an old-style archive from a shared archive.
 
18287
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
 
18288
 
 
18289
# Create a temporary old-style archive to link instead of a shared archive.
 
18290
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
 
18291
 
 
18292
# Commands used to build and install a shared archive.
 
18293
archive_cmds=$lt_archive_cmds_GCJ
 
18294
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
 
18295
postinstall_cmds=$lt_postinstall_cmds
 
18296
postuninstall_cmds=$lt_postuninstall_cmds
 
18297
 
 
18298
# Commands used to build a loadable module (assumed same as above if empty)
 
18299
module_cmds=$lt_module_cmds_GCJ
 
18300
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
 
18301
 
 
18302
# Commands to strip libraries.
 
18303
old_striplib=$lt_old_striplib
 
18304
striplib=$lt_striplib
 
18305
 
 
18306
# Dependencies to place before the objects being linked to create a
 
18307
# shared library.
 
18308
predep_objects=$lt_predep_objects_GCJ
 
18309
 
 
18310
# Dependencies to place after the objects being linked to create a
 
18311
# shared library.
 
18312
postdep_objects=$lt_postdep_objects_GCJ
 
18313
 
 
18314
# Dependencies to place before the objects being linked to create a
 
18315
# shared library.
 
18316
predeps=$lt_predeps_GCJ
 
18317
 
 
18318
# Dependencies to place after the objects being linked to create a
 
18319
# shared library.
 
18320
postdeps=$lt_postdeps_GCJ
 
18321
 
 
18322
# The library search path used internally by the compiler when linking
 
18323
# a shared library.
 
18324
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
 
18325
 
 
18326
# Method to check whether dependent libraries are shared objects.
 
18327
deplibs_check_method=$lt_deplibs_check_method
 
18328
 
 
18329
# Command to use when deplibs_check_method == file_magic.
 
18330
file_magic_cmd=$lt_file_magic_cmd
 
18331
 
 
18332
# Flag that allows shared libraries with undefined symbols to be built.
 
18333
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
 
18334
 
 
18335
# Flag that forces no undefined symbols.
 
18336
no_undefined_flag=$lt_no_undefined_flag_GCJ
 
18337
 
 
18338
# Commands used to finish a libtool library installation in a directory.
 
18339
finish_cmds=$lt_finish_cmds
 
18340
 
 
18341
# Same as above, but a single script fragment to be evaled but not shown.
 
18342
finish_eval=$lt_finish_eval
 
18343
 
 
18344
# Take the output of nm and produce a listing of raw symbols and C names.
 
18345
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
18346
 
 
18347
# Transform the output of nm in a proper C declaration
 
18348
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
18349
 
 
18350
# Transform the output of nm in a C name address pair
 
18351
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
18352
 
 
18353
# This is the shared library runtime path variable.
 
18354
runpath_var=$runpath_var
 
18355
 
 
18356
# This is the shared library path variable.
 
18357
shlibpath_var=$shlibpath_var
 
18358
 
 
18359
# Is shlibpath searched before the hard-coded library search path?
 
18360
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
18361
 
 
18362
# How to hardcode a shared library path into an executable.
 
18363
hardcode_action=$hardcode_action_GCJ
 
18364
 
 
18365
# Whether we should hardcode library paths into libraries.
 
18366
hardcode_into_libs=$hardcode_into_libs
 
18367
 
 
18368
# Flag to hardcode \$libdir into a binary during linking.
 
18369
# This must work even if \$libdir does not exist.
 
18370
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
 
18371
 
 
18372
# If ld is used when linking, flag to hardcode \$libdir into
 
18373
# a binary during linking. This must work even if \$libdir does
 
18374
# not exist.
 
18375
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
 
18376
 
 
18377
# Whether we need a single -rpath flag with a separated argument.
 
18378
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
 
18379
 
 
18380
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
18381
# resulting binary.
 
18382
hardcode_direct=$hardcode_direct_GCJ
 
18383
 
 
18384
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
18385
# resulting binary.
 
18386
hardcode_minus_L=$hardcode_minus_L_GCJ
 
18387
 
 
18388
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
18389
# the resulting binary.
 
18390
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
 
18391
 
 
18392
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
18393
# and all subsequent libraries and executables linked against it.
 
18394
hardcode_automatic=$hardcode_automatic_GCJ
 
18395
 
 
18396
# Variables whose values should be saved in libtool wrapper scripts and
 
18397
# restored at relink time.
 
18398
variables_saved_for_relink="$variables_saved_for_relink"
 
18399
 
 
18400
# Whether libtool must link a program against all its dependency libraries.
 
18401
link_all_deplibs=$link_all_deplibs_GCJ
 
18402
 
 
18403
# Compile-time system search path for libraries
 
18404
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
18405
 
 
18406
# Run-time system search path for libraries
 
18407
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
18408
 
 
18409
# Fix the shell variable \$srcfile for the compiler.
 
18410
fix_srcfile_path="$fix_srcfile_path_GCJ"
 
18411
 
 
18412
# Set to yes if exported symbols are required.
 
18413
always_export_symbols=$always_export_symbols_GCJ
 
18414
 
 
18415
# The commands to list exported symbols.
 
18416
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
 
18417
 
 
18418
# The commands to extract the exported symbol list from a shared archive.
 
18419
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
18420
 
 
18421
# Symbols that should not be listed in the preloaded symbols.
 
18422
exclude_expsyms=$lt_exclude_expsyms_GCJ
 
18423
 
 
18424
# Symbols that must always be exported.
 
18425
include_expsyms=$lt_include_expsyms_GCJ
 
18426
 
 
18427
# ### END LIBTOOL TAG CONFIG: $tagname
 
18428
 
 
18429
__EOF__
 
18430
 
 
18431
 
 
18432
else
 
18433
  # If there is no Makefile yet, we rely on a make rule to execute
 
18434
  # `config.status --recheck' to rerun these tests and create the
 
18435
  # libtool script then.
 
18436
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
18437
  if test -f "$ltmain_in"; then
 
18438
    test -f Makefile && make "$ltmain"
 
18439
  fi
 
18440
fi
 
18441
 
 
18442
 
 
18443
ac_ext=c
 
18444
ac_cpp='$CPP $CPPFLAGS'
 
18445
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
18446
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
18447
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
18448
 
 
18449
CC="$lt_save_CC"
 
18450
 
 
18451
        else
 
18452
          tagname=""
 
18453
        fi
 
18454
        ;;
 
18455
 
 
18456
      RC)
 
18457
 
 
18458
 
 
18459
 
 
18460
# Source file extension for RC test sources.
 
18461
ac_ext=rc
 
18462
 
 
18463
# Object file extension for compiled RC test sources.
 
18464
objext=o
 
18465
objext_RC=$objext
 
18466
 
 
18467
# Code to be used in simple compile tests
 
18468
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
 
18469
 
 
18470
# Code to be used in simple link tests
 
18471
lt_simple_link_test_code="$lt_simple_compile_test_code"
 
18472
 
 
18473
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
18474
 
 
18475
# If no C compiler was specified, use CC.
 
18476
LTCC=${LTCC-"$CC"}
 
18477
 
 
18478
# Allow CC to be a program name with arguments.
 
18479
compiler=$CC
 
18480
 
 
18481
 
 
18482
# save warnings/boilerplate of simple test code
 
18483
ac_outfile=conftest.$ac_objext
 
18484
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
18485
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
18486
_lt_compiler_boilerplate=`cat conftest.err`
 
18487
$rm conftest*
 
18488
 
 
18489
ac_outfile=conftest.$ac_objext
 
18490
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
18491
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
18492
_lt_linker_boilerplate=`cat conftest.err`
 
18493
$rm conftest*
 
18494
 
 
18495
 
 
18496
# Allow CC to be a program name with arguments.
 
18497
lt_save_CC="$CC"
 
18498
CC=${RC-"windres"}
 
18499
compiler=$CC
 
18500
compiler_RC=$CC
 
18501
for cc_temp in $compiler""; do
 
18502
  case $cc_temp in
 
18503
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
18504
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
18505
    \-*) ;;
 
18506
    *) break;;
 
18507
  esac
 
18508
done
 
18509
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
18510
 
 
18511
lt_cv_prog_compiler_c_o_RC=yes
 
18512
 
 
18513
# The else clause should only fire when bootstrapping the
 
18514
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
18515
# with your package, and you will get complaints that there are
 
18516
# no rules to generate ltmain.sh.
 
18517
if test -f "$ltmain"; then
 
18518
  # See if we are running on zsh, and set the options which allow our commands through
 
18519
  # without removal of \ escapes.
 
18520
  if test -n "${ZSH_VERSION+set}" ; then
 
18521
    setopt NO_GLOB_SUBST
 
18522
  fi
 
18523
  # Now quote all the things that may contain metacharacters while being
 
18524
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
18525
  # variables and quote the copies for generation of the libtool script.
 
18526
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
18527
    SED SHELL STRIP \
 
18528
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
18529
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
18530
    deplibs_check_method reload_flag reload_cmds need_locks \
 
18531
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
18532
    lt_cv_sys_global_symbol_to_c_name_address \
 
18533
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
18534
    old_postinstall_cmds old_postuninstall_cmds \
 
18535
    compiler_RC \
 
18536
    CC_RC \
 
18537
    LD_RC \
 
18538
    lt_prog_compiler_wl_RC \
 
18539
    lt_prog_compiler_pic_RC \
 
18540
    lt_prog_compiler_static_RC \
 
18541
    lt_prog_compiler_no_builtin_flag_RC \
 
18542
    export_dynamic_flag_spec_RC \
 
18543
    thread_safe_flag_spec_RC \
 
18544
    whole_archive_flag_spec_RC \
 
18545
    enable_shared_with_static_runtimes_RC \
 
18546
    old_archive_cmds_RC \
 
18547
    old_archive_from_new_cmds_RC \
 
18548
    predep_objects_RC \
 
18549
    postdep_objects_RC \
 
18550
    predeps_RC \
 
18551
    postdeps_RC \
 
18552
    compiler_lib_search_path_RC \
 
18553
    archive_cmds_RC \
 
18554
    archive_expsym_cmds_RC \
 
18555
    postinstall_cmds_RC \
 
18556
    postuninstall_cmds_RC \
 
18557
    old_archive_from_expsyms_cmds_RC \
 
18558
    allow_undefined_flag_RC \
 
18559
    no_undefined_flag_RC \
 
18560
    export_symbols_cmds_RC \
 
18561
    hardcode_libdir_flag_spec_RC \
 
18562
    hardcode_libdir_flag_spec_ld_RC \
 
18563
    hardcode_libdir_separator_RC \
 
18564
    hardcode_automatic_RC \
 
18565
    module_cmds_RC \
 
18566
    module_expsym_cmds_RC \
 
18567
    lt_cv_prog_compiler_c_o_RC \
 
18568
    exclude_expsyms_RC \
 
18569
    include_expsyms_RC; do
 
18570
 
 
18571
    case $var in
 
18572
    old_archive_cmds_RC | \
 
18573
    old_archive_from_new_cmds_RC | \
 
18574
    archive_cmds_RC | \
 
18575
    archive_expsym_cmds_RC | \
 
18576
    module_cmds_RC | \
 
18577
    module_expsym_cmds_RC | \
 
18578
    old_archive_from_expsyms_cmds_RC | \
 
18579
    export_symbols_cmds_RC | \
 
18580
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
18581
    postinstall_cmds | postuninstall_cmds | \
 
18582
    old_postinstall_cmds | old_postuninstall_cmds | \
 
18583
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
18584
      # Double-quote double-evaled strings.
 
18585
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
18586
      ;;
 
18587
    *)
 
18588
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
18589
      ;;
 
18590
    esac
 
18591
  done
 
18592
 
 
18593
  case $lt_echo in
 
18594
  *'\$0 --fallback-echo"')
 
18595
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
18596
    ;;
 
18597
  esac
 
18598
 
 
18599
cfgfile="$ofile"
 
18600
 
 
18601
  cat <<__EOF__ >> "$cfgfile"
 
18602
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
18603
 
 
18604
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
18605
 
 
18606
# Shell to use when invoking shell scripts.
 
18607
SHELL=$lt_SHELL
 
18608
 
 
18609
# Whether or not to build shared libraries.
 
18610
build_libtool_libs=$enable_shared
 
18611
 
 
18612
# Whether or not to build static libraries.
 
18613
build_old_libs=$enable_static
 
18614
 
 
18615
# Whether or not to add -lc for building shared libraries.
 
18616
build_libtool_need_lc=$archive_cmds_need_lc_RC
 
18617
 
 
18618
# Whether or not to disallow shared libs when runtime libs are static
 
18619
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
 
18620
 
 
18621
# Whether or not to optimize for fast installation.
 
18622
fast_install=$enable_fast_install
 
18623
 
 
18624
# The host system.
 
18625
host_alias=$host_alias
 
18626
host=$host
 
18627
host_os=$host_os
 
18628
 
 
18629
# The build system.
 
18630
build_alias=$build_alias
 
18631
build=$build
 
18632
build_os=$build_os
 
18633
 
 
18634
# An echo program that does not interpret backslashes.
 
18635
echo=$lt_echo
 
18636
 
 
18637
# The archiver.
 
18638
AR=$lt_AR
 
18639
AR_FLAGS=$lt_AR_FLAGS
 
18640
 
 
18641
# A C compiler.
 
18642
LTCC=$lt_LTCC
 
18643
 
 
18644
# A language-specific compiler.
 
18645
CC=$lt_compiler_RC
 
18646
 
 
18647
# Is the compiler the GNU C compiler?
 
18648
with_gcc=$GCC_RC
 
18649
 
 
18650
# An ERE matcher.
 
18651
EGREP=$lt_EGREP
 
18652
 
 
18653
# The linker used to build libraries.
 
18654
LD=$lt_LD_RC
 
18655
 
 
18656
# Whether we need hard or soft links.
 
18657
LN_S=$lt_LN_S
 
18658
 
 
18659
# A BSD-compatible nm program.
 
18660
NM=$lt_NM
 
18661
 
 
18662
# A symbol stripping program
 
18663
STRIP=$lt_STRIP
 
18664
 
 
18665
# Used to examine libraries when file_magic_cmd begins "file"
 
18666
MAGIC_CMD=$MAGIC_CMD
 
18667
 
 
18668
# Used on cygwin: DLL creation program.
 
18669
DLLTOOL="$DLLTOOL"
 
18670
 
 
18671
# Used on cygwin: object dumper.
 
18672
OBJDUMP="$OBJDUMP"
 
18673
 
 
18674
# Used on cygwin: assembler.
 
18675
AS="$AS"
 
18676
 
 
18677
# The name of the directory that contains temporary libtool files.
 
18678
objdir=$objdir
 
18679
 
 
18680
# How to create reloadable object files.
 
18681
reload_flag=$lt_reload_flag
 
18682
reload_cmds=$lt_reload_cmds
 
18683
 
 
18684
# How to pass a linker flag through the compiler.
 
18685
wl=$lt_lt_prog_compiler_wl_RC
 
18686
 
 
18687
# Object file suffix (normally "o").
 
18688
objext="$ac_objext"
 
18689
 
 
18690
# Old archive suffix (normally "a").
 
18691
libext="$libext"
 
18692
 
 
18693
# Shared library suffix (normally ".so").
 
18694
shrext_cmds='$shrext_cmds'
 
18695
 
 
18696
# Executable file suffix (normally "").
 
18697
exeext="$exeext"
 
18698
 
 
18699
# Additional compiler flags for building library objects.
 
18700
pic_flag=$lt_lt_prog_compiler_pic_RC
 
18701
pic_mode=$pic_mode
 
18702
 
 
18703
# What is the maximum length of a command?
 
18704
max_cmd_len=$lt_cv_sys_max_cmd_len
 
18705
 
 
18706
# Does compiler simultaneously support -c and -o options?
 
18707
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
 
18708
 
 
18709
# Must we lock files when doing compilation?
 
18710
need_locks=$lt_need_locks
 
18711
 
 
18712
# Do we need the lib prefix for modules?
 
18713
need_lib_prefix=$need_lib_prefix
 
18714
 
 
18715
# Do we need a version for libraries?
 
18716
need_version=$need_version
 
18717
 
 
18718
# Whether dlopen is supported.
 
18719
dlopen_support=$enable_dlopen
 
18720
 
 
18721
# Whether dlopen of programs is supported.
 
18722
dlopen_self=$enable_dlopen_self
 
18723
 
 
18724
# Whether dlopen of statically linked programs is supported.
 
18725
dlopen_self_static=$enable_dlopen_self_static
 
18726
 
 
18727
# Compiler flag to prevent dynamic linking.
 
18728
link_static_flag=$lt_lt_prog_compiler_static_RC
 
18729
 
 
18730
# Compiler flag to turn off builtin functions.
 
18731
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
 
18732
 
 
18733
# Compiler flag to allow reflexive dlopens.
 
18734
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
 
18735
 
 
18736
# Compiler flag to generate shared objects directly from archives.
 
18737
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
 
18738
 
 
18739
# Compiler flag to generate thread-safe objects.
 
18740
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
 
18741
 
 
18742
# Library versioning type.
 
18743
version_type=$version_type
 
18744
 
 
18745
# Format of library name prefix.
 
18746
libname_spec=$lt_libname_spec
 
18747
 
 
18748
# List of archive names.  First name is the real one, the rest are links.
 
18749
# The last name is the one that the linker finds with -lNAME.
 
18750
library_names_spec=$lt_library_names_spec
 
18751
 
 
18752
# The coded name of the library, if different from the real name.
 
18753
soname_spec=$lt_soname_spec
 
18754
 
 
18755
# Commands used to build and install an old-style archive.
 
18756
RANLIB=$lt_RANLIB
 
18757
old_archive_cmds=$lt_old_archive_cmds_RC
 
18758
old_postinstall_cmds=$lt_old_postinstall_cmds
 
18759
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
18760
 
 
18761
# Create an old-style archive from a shared archive.
 
18762
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
 
18763
 
 
18764
# Create a temporary old-style archive to link instead of a shared archive.
 
18765
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
 
18766
 
 
18767
# Commands used to build and install a shared archive.
 
18768
archive_cmds=$lt_archive_cmds_RC
 
18769
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
 
18770
postinstall_cmds=$lt_postinstall_cmds
 
18771
postuninstall_cmds=$lt_postuninstall_cmds
 
18772
 
 
18773
# Commands used to build a loadable module (assumed same as above if empty)
 
18774
module_cmds=$lt_module_cmds_RC
 
18775
module_expsym_cmds=$lt_module_expsym_cmds_RC
 
18776
 
 
18777
# Commands to strip libraries.
 
18778
old_striplib=$lt_old_striplib
 
18779
striplib=$lt_striplib
 
18780
 
 
18781
# Dependencies to place before the objects being linked to create a
 
18782
# shared library.
 
18783
predep_objects=$lt_predep_objects_RC
 
18784
 
 
18785
# Dependencies to place after the objects being linked to create a
 
18786
# shared library.
 
18787
postdep_objects=$lt_postdep_objects_RC
 
18788
 
 
18789
# Dependencies to place before the objects being linked to create a
 
18790
# shared library.
 
18791
predeps=$lt_predeps_RC
 
18792
 
 
18793
# Dependencies to place after the objects being linked to create a
 
18794
# shared library.
 
18795
postdeps=$lt_postdeps_RC
 
18796
 
 
18797
# The library search path used internally by the compiler when linking
 
18798
# a shared library.
 
18799
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
 
18800
 
 
18801
# Method to check whether dependent libraries are shared objects.
 
18802
deplibs_check_method=$lt_deplibs_check_method
 
18803
 
 
18804
# Command to use when deplibs_check_method == file_magic.
 
18805
file_magic_cmd=$lt_file_magic_cmd
 
18806
 
 
18807
# Flag that allows shared libraries with undefined symbols to be built.
 
18808
allow_undefined_flag=$lt_allow_undefined_flag_RC
 
18809
 
 
18810
# Flag that forces no undefined symbols.
 
18811
no_undefined_flag=$lt_no_undefined_flag_RC
 
18812
 
 
18813
# Commands used to finish a libtool library installation in a directory.
 
18814
finish_cmds=$lt_finish_cmds
 
18815
 
 
18816
# Same as above, but a single script fragment to be evaled but not shown.
 
18817
finish_eval=$lt_finish_eval
 
18818
 
 
18819
# Take the output of nm and produce a listing of raw symbols and C names.
 
18820
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
18821
 
 
18822
# Transform the output of nm in a proper C declaration
 
18823
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
18824
 
 
18825
# Transform the output of nm in a C name address pair
 
18826
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
18827
 
 
18828
# This is the shared library runtime path variable.
 
18829
runpath_var=$runpath_var
 
18830
 
 
18831
# This is the shared library path variable.
 
18832
shlibpath_var=$shlibpath_var
 
18833
 
 
18834
# Is shlibpath searched before the hard-coded library search path?
 
18835
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
18836
 
 
18837
# How to hardcode a shared library path into an executable.
 
18838
hardcode_action=$hardcode_action_RC
 
18839
 
 
18840
# Whether we should hardcode library paths into libraries.
 
18841
hardcode_into_libs=$hardcode_into_libs
 
18842
 
 
18843
# Flag to hardcode \$libdir into a binary during linking.
 
18844
# This must work even if \$libdir does not exist.
 
18845
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
 
18846
 
 
18847
# If ld is used when linking, flag to hardcode \$libdir into
 
18848
# a binary during linking. This must work even if \$libdir does
 
18849
# not exist.
 
18850
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
 
18851
 
 
18852
# Whether we need a single -rpath flag with a separated argument.
 
18853
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
 
18854
 
 
18855
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
18856
# resulting binary.
 
18857
hardcode_direct=$hardcode_direct_RC
 
18858
 
 
18859
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
18860
# resulting binary.
 
18861
hardcode_minus_L=$hardcode_minus_L_RC
 
18862
 
 
18863
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
18864
# the resulting binary.
 
18865
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
 
18866
 
 
18867
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
18868
# and all subsequent libraries and executables linked against it.
 
18869
hardcode_automatic=$hardcode_automatic_RC
 
18870
 
 
18871
# Variables whose values should be saved in libtool wrapper scripts and
 
18872
# restored at relink time.
 
18873
variables_saved_for_relink="$variables_saved_for_relink"
 
18874
 
 
18875
# Whether libtool must link a program against all its dependency libraries.
 
18876
link_all_deplibs=$link_all_deplibs_RC
 
18877
 
 
18878
# Compile-time system search path for libraries
 
18879
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
18880
 
 
18881
# Run-time system search path for libraries
 
18882
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
18883
 
 
18884
# Fix the shell variable \$srcfile for the compiler.
 
18885
fix_srcfile_path="$fix_srcfile_path_RC"
 
18886
 
 
18887
# Set to yes if exported symbols are required.
 
18888
always_export_symbols=$always_export_symbols_RC
 
18889
 
 
18890
# The commands to list exported symbols.
 
18891
export_symbols_cmds=$lt_export_symbols_cmds_RC
 
18892
 
 
18893
# The commands to extract the exported symbol list from a shared archive.
 
18894
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
18895
 
 
18896
# Symbols that should not be listed in the preloaded symbols.
 
18897
exclude_expsyms=$lt_exclude_expsyms_RC
 
18898
 
 
18899
# Symbols that must always be exported.
 
18900
include_expsyms=$lt_include_expsyms_RC
 
18901
 
 
18902
# ### END LIBTOOL TAG CONFIG: $tagname
 
18903
 
 
18904
__EOF__
 
18905
 
 
18906
 
 
18907
else
 
18908
  # If there is no Makefile yet, we rely on a make rule to execute
 
18909
  # `config.status --recheck' to rerun these tests and create the
 
18910
  # libtool script then.
 
18911
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
18912
  if test -f "$ltmain_in"; then
 
18913
    test -f Makefile && make "$ltmain"
 
18914
  fi
 
18915
fi
 
18916
 
 
18917
 
 
18918
ac_ext=c
 
18919
ac_cpp='$CPP $CPPFLAGS'
 
18920
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
18921
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
18922
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
18923
 
 
18924
CC="$lt_save_CC"
 
18925
 
 
18926
        ;;
 
18927
 
 
18928
      *)
 
18929
        { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
 
18930
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
 
18931
   { (exit 1); exit 1; }; }
 
18932
        ;;
 
18933
      esac
 
18934
 
 
18935
      # Append the new tag name to the list of available tags.
 
18936
      if test -n "$tagname" ; then
 
18937
      available_tags="$available_tags $tagname"
 
18938
    fi
 
18939
    fi
 
18940
  done
 
18941
  IFS="$lt_save_ifs"
 
18942
 
 
18943
  # Now substitute the updated list of available tags.
 
18944
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
 
18945
    mv "${ofile}T" "$ofile"
 
18946
    chmod +x "$ofile"
 
18947
  else
 
18948
    rm -f "${ofile}T"
 
18949
    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
 
18950
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
 
18951
   { (exit 1); exit 1; }; }
 
18952
  fi
 
18953
fi
7132
18954
 
7133
18955
 
7134
18956
 
7141
18963
# Prevent multiple expansion
7142
18964
 
7143
18965
 
 
18966
 
 
18967
 
 
18968
 
 
18969
 
 
18970
 
 
18971
 
 
18972
 
 
18973
 
 
18974
 
 
18975
 
 
18976
 
 
18977
 
 
18978
 
 
18979
 
 
18980
 
 
18981
 
 
18982
 
 
18983
 
7144
18984
# end of SCO fixes
7145
 
am__api_version="1.6"
 
18985
am__api_version="1.9"
7146
18986
# Find a good install program.  We prefer a C program (faster),
7147
18987
# so one script is as good as another.  But avoid the broken or
7148
18988
# incompatible versions:
7154
18994
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7155
18995
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7156
18996
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
18997
# OS/2's system install, which has a completely different semantic
7157
18998
# ./install, which can be erroneously created by make from ./install.sh.
7158
18999
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7159
19000
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
7170
19011
case $as_dir/ in
7171
19012
  ./ | .// | /cC/* | \
7172
19013
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
19014
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7173
19015
  /usr/ucb/* ) ;;
7174
19016
  *)
7175
19017
    # OSF1 and SCO ODT 3.0 have their own names for install.
7177
19019
    # by default.
7178
19020
    for ac_prog in ginstall scoinst install; do
7179
19021
      for ac_exec_ext in '' $ac_executable_extensions; do
7180
 
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
7181
 
          if test $ac_prog = install &&
7182
 
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7183
 
            # AIX install.  It has an incompatible calling convention.
7184
 
            :
7185
 
          elif test $ac_prog = install &&
7186
 
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7187
 
            # program-specific install script used by HP pwplus--don't use.
7188
 
            :
7189
 
          else
7190
 
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7191
 
            break 3
7192
 
          fi
7193
 
        fi
 
19022
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
19023
          if test $ac_prog = install &&
 
19024
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
19025
            # AIX install.  It has an incompatible calling convention.
 
19026
            :
 
19027
          elif test $ac_prog = install &&
 
19028
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
19029
            # program-specific install script used by HP pwplus--don't use.
 
19030
            :
 
19031
          else
 
19032
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
19033
            break 3
 
19034
          fi
 
19035
        fi
7194
19036
      done
7195
19037
    done
7196
19038
    ;;
7278
19120
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
7279
19121
rm conftest.sed
7280
19122
 
7281
 
 
7282
19123
# expand $ac_aux_dir to an absolute path
7283
19124
am_aux_dir=`cd $ac_aux_dir && pwd`
7284
19125
 
7292
19133
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
7293
19134
fi
7294
19135
 
 
19136
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
 
19137
  # We used to keeping the `.' as first argument, in order to
 
19138
  # allow $(mkdir_p) to be used without argument.  As in
 
19139
  #   $(mkdir_p) $(somedir)
 
19140
  # where $(somedir) is conditionally defined.  However this is wrong
 
19141
  # for two reasons:
 
19142
  #  1. if the package is installed by a user who cannot write `.'
 
19143
  #     make install will fail,
 
19144
  #  2. the above comment should most certainly read
 
19145
  #     $(mkdir_p) $(DESTDIR)$(somedir)
 
19146
  #     so it does not work when $(somedir) is undefined and
 
19147
  #     $(DESTDIR) is not.
 
19148
  #  To support the latter case, we have to write
 
19149
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
 
19150
  #  so the `.' trick is pointless.
 
19151
  mkdir_p='mkdir -p --'
 
19152
else
 
19153
  # On NextStep and OpenStep, the `mkdir' command does not
 
19154
  # recognize any option.  It will interpret all options as
 
19155
  # directories to create, and then abort because `.' already
 
19156
  # exists.
 
19157
  for d in ./-p ./--version;
 
19158
  do
 
19159
    test -d $d && rmdir $d
 
19160
  done
 
19161
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
 
19162
  if test -f "$ac_aux_dir/mkinstalldirs"; then
 
19163
    mkdir_p='$(mkinstalldirs)'
 
19164
  else
 
19165
    mkdir_p='$(install_sh) -d'
 
19166
  fi
 
19167
fi
 
19168
 
7295
19169
for ac_prog in gawk mawk nawk awk
7296
19170
do
7297
19171
  # Extract the first word of "$ac_prog", so it can be a program name with args.
7334
19208
 
7335
19209
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7336
19210
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7337
 
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
 
19211
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
7338
19212
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7339
19213
  echo $ECHO_N "(cached) $ECHO_C" >&6
7340
19214
else
7361
19235
  SET_MAKE="MAKE=${MAKE-make}"
7362
19236
fi
7363
19237
 
7364
 
rm -f .deps 2>/dev/null
7365
 
mkdir .deps 2>/dev/null
7366
 
if test -d .deps; then
7367
 
  DEPDIR=.deps
 
19238
rm -rf .tst 2>/dev/null
 
19239
mkdir .tst 2>/dev/null
 
19240
if test -d .tst; then
 
19241
  am__leading_dot=.
7368
19242
else
7369
 
  # MS-DOS does not allow filenames that begin with a dot.
7370
 
  DEPDIR=_deps
 
19243
  am__leading_dot=_
7371
19244
fi
7372
 
rmdir .deps 2>/dev/null
 
19245
rmdir .tst 2>/dev/null
7373
19246
 
 
19247
DEPDIR="${am__leading_dot}deps"
7374
19248
 
7375
19249
          ac_config_commands="$ac_config_commands depfiles"
7376
19250
 
7377
19251
 
7378
19252
am_make=${MAKE-make}
7379
19253
cat > confinc << 'END'
7380
 
doit:
 
19254
am__doit:
7381
19255
        @echo done
 
19256
.PHONY: am__doit
7382
19257
END
7383
19258
# If we don't find an include directive, just comment out the code.
7384
19259
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
7393
19268
# In particular we don't look at `^make:' because GNU make might
7394
19269
# be invoked under some other name (usually "gmake"), in which
7395
19270
# case it prints its new name instead of `make'.
7396
 
if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
 
19271
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
7397
19272
   am__include=include
7398
19273
   am__quote=
7399
19274
   _am_result=GNU
7434
19309
 
7435
19310
 
7436
19311
 
7437
 
 # test to see if srcdir already configured
 
19312
# test to see if srcdir already configured
7438
19313
if test "`cd $srcdir && pwd`" != "`pwd`" &&
7439
19314
   test -f $srcdir/config.status; then
7440
19315
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
7442
19317
   { (exit 1); exit 1; }; }
7443
19318
fi
7444
19319
 
 
19320
# test whether we have cygpath
 
19321
if test -z "$CYGPATH_W"; then
 
19322
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
19323
    CYGPATH_W='cygpath -w'
 
19324
  else
 
19325
    CYGPATH_W=echo
 
19326
  fi
 
19327
fi
 
19328
 
 
19329
 
7445
19330
# Define the identity of the package.
7446
19331
 PACKAGE=Serial
7447
 
 VERSION=2.1-6
 
19332
 VERSION=2.1-7
7448
19333
 
7449
19334
 
7450
19335
cat >>confdefs.h <<_ACEOF
7472
19357
 
7473
19358
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
7474
19359
 
7475
 
 
7476
 
AMTAR=${AMTAR-"${am_missing_run}tar"}
7477
 
 
7478
19360
install_sh=${install_sh-"$am_aux_dir/install-sh"}
7479
19361
 
7480
19362
# Installed binaries are usually stripped using `strip' when the user
7567
19449
 
7568
19450
# We need awk for the "check" target.  The system "awk" is bad on
7569
19451
# some platforms.
 
19452
# Always define AMTAR for backward compatibility.
 
19453
 
 
19454
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
19455
 
 
19456
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
 
19457
 
 
19458
 
7570
19459
 
7571
19460
 
7572
19461
depcc="$CC"   am_compiler_list=
7587
19476
  # using a relative directory.
7588
19477
  cp "$am_depcomp" conftest.dir
7589
19478
  cd conftest.dir
 
19479
  # We will build objects and dependencies in a subdirectory because
 
19480
  # it helps to detect inapplicable dependency modes.  For instance
 
19481
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
19482
  # side effect of compilation, but ICC will put the dependencies in
 
19483
  # the current directory while Tru64 will put them in the object
 
19484
  # directory.
 
19485
  mkdir sub
7590
19486
 
7591
19487
  am_cv_CC_dependencies_compiler_type=none
7592
19488
  if test "$am_compiler_list" = ""; then
7593
19489
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7594
19490
  fi
7595
19491
  for depmode in $am_compiler_list; do
 
19492
    # Setup a source with many dependencies, because some compilers
 
19493
    # like to wrap large dependency lists on column 80 (with \), and
 
19494
    # we should not choose a depcomp mode which is confused by this.
 
19495
    #
7596
19496
    # We need to recreate these files for each test, as the compiler may
7597
19497
    # overwrite some of them when testing with obscure command lines.
7598
19498
    # This happens at least with the AIX C compiler.
7599
 
    echo '#include "conftest.h"' > conftest.c
7600
 
    echo 'int i;' > conftest.h
7601
 
    echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
 
19499
    : > sub/conftest.c
 
19500
    for i in 1 2 3 4 5 6; do
 
19501
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
19502
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
19503
      # Solaris 8's {/usr,}/bin/sh.
 
19504
      touch sub/conftst$i.h
 
19505
    done
 
19506
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7602
19507
 
7603
19508
    case $depmode in
7604
19509
    nosideeffect)
7616
19521
    # mode.  It turns out that the SunPro C++ compiler does not properly
7617
19522
    # handle `-M -o', and we need to detect this.
7618
19523
    if depmode=$depmode \
7619
 
       source=conftest.c object=conftest.o \
7620
 
       depfile=conftest.Po tmpdepfile=conftest.TPo \
7621
 
       $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
7622
 
       grep conftest.h conftest.Po > /dev/null 2>&1 &&
 
19524
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
19525
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
19526
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
19527
         >/dev/null 2>conftest.err &&
 
19528
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
19529
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7623
19530
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7624
 
      am_cv_CC_dependencies_compiler_type=$depmode
7625
 
      break
 
19531
      # icc doesn't choke on unknown options, it will just issue warnings
 
19532
      # or remarks (even with -Werror).  So we grep stderr for any message
 
19533
      # that says an option was ignored or not supported.
 
19534
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
19535
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
19536
      # The diagnosis changed in icc 8.0:
 
19537
      #   icc: Command line remark: option '-MP' not supported
 
19538
      if (grep 'ignoring option' conftest.err ||
 
19539
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
19540
        am_cv_CC_dependencies_compiler_type=$depmode
 
19541
        break
 
19542
      fi
7626
19543
    fi
7627
19544
  done
7628
19545
 
7639
19556
 
7640
19557
 
7641
19558
 
 
19559
if
 
19560
  test "x$enable_dependency_tracking" != xno \
 
19561
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
19562
  am__fastdepCC_TRUE=
 
19563
  am__fastdepCC_FALSE='#'
 
19564
else
 
19565
  am__fastdepCC_TRUE='#'
 
19566
  am__fastdepCC_FALSE=
 
19567
fi
 
19568
 
 
19569
 
 
19570
depcc="$CXX"  am_compiler_list=
 
19571
 
 
19572
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
19573
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
19574
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
 
19575
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19576
else
 
19577
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
19578
  # We make a subdir and do the tests there.  Otherwise we can end up
 
19579
  # making bogus files that we don't know about and never remove.  For
 
19580
  # instance it was reported that on HP-UX the gcc test will end up
 
19581
  # making a dummy file named `D' -- because `-MD' means `put the output
 
19582
  # in D'.
 
19583
  mkdir conftest.dir
 
19584
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
19585
  # using a relative directory.
 
19586
  cp "$am_depcomp" conftest.dir
 
19587
  cd conftest.dir
 
19588
  # We will build objects and dependencies in a subdirectory because
 
19589
  # it helps to detect inapplicable dependency modes.  For instance
 
19590
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
19591
  # side effect of compilation, but ICC will put the dependencies in
 
19592
  # the current directory while Tru64 will put them in the object
 
19593
  # directory.
 
19594
  mkdir sub
 
19595
 
 
19596
  am_cv_CXX_dependencies_compiler_type=none
 
19597
  if test "$am_compiler_list" = ""; then
 
19598
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
19599
  fi
 
19600
  for depmode in $am_compiler_list; do
 
19601
    # Setup a source with many dependencies, because some compilers
 
19602
    # like to wrap large dependency lists on column 80 (with \), and
 
19603
    # we should not choose a depcomp mode which is confused by this.
 
19604
    #
 
19605
    # We need to recreate these files for each test, as the compiler may
 
19606
    # overwrite some of them when testing with obscure command lines.
 
19607
    # This happens at least with the AIX C compiler.
 
19608
    : > sub/conftest.c
 
19609
    for i in 1 2 3 4 5 6; do
 
19610
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
19611
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
19612
      # Solaris 8's {/usr,}/bin/sh.
 
19613
      touch sub/conftst$i.h
 
19614
    done
 
19615
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
19616
 
 
19617
    case $depmode in
 
19618
    nosideeffect)
 
19619
      # after this tag, mechanisms are not by side-effect, so they'll
 
19620
      # only be used when explicitly requested
 
19621
      if test "x$enable_dependency_tracking" = xyes; then
 
19622
        continue
 
19623
      else
 
19624
        break
 
19625
      fi
 
19626
      ;;
 
19627
    none) break ;;
 
19628
    esac
 
19629
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
19630
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
19631
    # handle `-M -o', and we need to detect this.
 
19632
    if depmode=$depmode \
 
19633
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
19634
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
19635
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
19636
         >/dev/null 2>conftest.err &&
 
19637
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
19638
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
19639
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
19640
      # icc doesn't choke on unknown options, it will just issue warnings
 
19641
      # or remarks (even with -Werror).  So we grep stderr for any message
 
19642
      # that says an option was ignored or not supported.
 
19643
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
19644
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
19645
      # The diagnosis changed in icc 8.0:
 
19646
      #   icc: Command line remark: option '-MP' not supported
 
19647
      if (grep 'ignoring option' conftest.err ||
 
19648
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
19649
        am_cv_CXX_dependencies_compiler_type=$depmode
 
19650
        break
 
19651
      fi
 
19652
    fi
 
19653
  done
 
19654
 
 
19655
  cd ..
 
19656
  rm -rf conftest.dir
 
19657
else
 
19658
  am_cv_CXX_dependencies_compiler_type=none
 
19659
fi
 
19660
 
 
19661
fi
 
19662
echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
19663
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
 
19664
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
 
19665
 
 
19666
 
 
19667
 
 
19668
if
 
19669
  test "x$enable_dependency_tracking" != xno \
 
19670
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
 
19671
  am__fastdepCXX_TRUE=
 
19672
  am__fastdepCXX_FALSE='#'
 
19673
else
 
19674
  am__fastdepCXX_TRUE='#'
 
19675
  am__fastdepCXX_FALSE=
 
19676
fi
 
19677
 
 
19678
 
 
19679
 
7642
19680
 
7643
19681
for ac_header in fcntl.h
7644
19682
do
7656
19694
echo "$as_me:$LINENO: checking $ac_header usability" >&5
7657
19695
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7658
19696
cat >conftest.$ac_ext <<_ACEOF
7659
 
#line $LINENO "configure"
7660
19697
/* confdefs.h.  */
7661
19698
_ACEOF
7662
19699
cat confdefs.h >>conftest.$ac_ext
7667
19704
_ACEOF
7668
19705
rm -f conftest.$ac_objext
7669
19706
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7670
 
  (eval $ac_compile) 2>&5
 
19707
  (eval $ac_compile) 2>conftest.er1
7671
19708
  ac_status=$?
 
19709
  grep -v '^ *+' conftest.er1 >conftest.err
 
19710
  rm -f conftest.er1
 
19711
  cat conftest.err >&5
7672
19712
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7673
19713
  (exit $ac_status); } &&
7674
 
         { ac_try='test -s conftest.$ac_objext'
 
19714
         { ac_try='test -z "$ac_c_werror_flag"
 
19715
                         || test ! -s conftest.err'
 
19716
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19717
  (eval $ac_try) 2>&5
 
19718
  ac_status=$?
 
19719
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19720
  (exit $ac_status); }; } &&
 
19721
         { ac_try='test -s conftest.$ac_objext'
7675
19722
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7676
19723
  (eval $ac_try) 2>&5
7677
19724
  ac_status=$?
7684
19731
 
7685
19732
ac_header_compiler=no
7686
19733
fi
7687
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
19734
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7688
19735
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7689
19736
echo "${ECHO_T}$ac_header_compiler" >&6
7690
19737
 
7692
19739
echo "$as_me:$LINENO: checking $ac_header presence" >&5
7693
19740
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7694
19741
cat >conftest.$ac_ext <<_ACEOF
7695
 
#line $LINENO "configure"
7696
19742
/* confdefs.h.  */
7697
19743
_ACEOF
7698
19744
cat confdefs.h >>conftest.$ac_ext
7710
19756
  (exit $ac_status); } >/dev/null; then
7711
19757
  if test -s conftest.err; then
7712
19758
    ac_cpp_err=$ac_c_preproc_warn_flag
 
19759
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7713
19760
  else
7714
19761
    ac_cpp_err=
7715
19762
  fi
7729
19776
echo "${ECHO_T}$ac_header_preproc" >&6
7730
19777
 
7731
19778
# So?  What about this header?
7732
 
case $ac_header_compiler:$ac_header_preproc in
7733
 
  yes:no )
 
19779
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
19780
  yes:no: )
7734
19781
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7735
19782
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7736
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7737
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7738
 
    (
7739
 
      cat <<\_ASBOX
7740
 
## ------------------------------------ ##
7741
 
## Report this to bug-autoconf@gnu.org. ##
7742
 
## ------------------------------------ ##
7743
 
_ASBOX
7744
 
    ) |
7745
 
      sed "s/^/$as_me: WARNING:     /" >&2
 
19783
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
19784
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
19785
    ac_header_preproc=yes
7746
19786
    ;;
7747
 
  no:yes )
 
19787
  no:yes:* )
7748
19788
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7749
19789
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7750
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7751
 
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
 
19790
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
19791
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
19792
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
19793
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
19794
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
19795
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7752
19796
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7753
19797
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
19798
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
19799
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7754
19800
    (
7755
19801
      cat <<\_ASBOX
7756
 
## ------------------------------------ ##
7757
 
## Report this to bug-autoconf@gnu.org. ##
7758
 
## ------------------------------------ ##
 
19802
## ------------------------------------------ ##
 
19803
## Report this to the AC_PACKAGE_NAME lists.  ##
 
19804
## ------------------------------------------ ##
7759
19805
_ASBOX
7760
19806
    ) |
7761
19807
      sed "s/^/$as_me: WARNING:     /" >&2
7766
19812
if eval "test \"\${$as_ac_Header+set}\" = set"; then
7767
19813
  echo $ECHO_N "(cached) $ECHO_C" >&6
7768
19814
else
7769
 
  eval "$as_ac_Header=$ac_header_preproc"
 
19815
  eval "$as_ac_Header=\$ac_header_preproc"
7770
19816
fi
7771
19817
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7772
19818
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7798
19844
echo "$as_me:$LINENO: checking $ac_header usability" >&5
7799
19845
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7800
19846
cat >conftest.$ac_ext <<_ACEOF
7801
 
#line $LINENO "configure"
7802
19847
/* confdefs.h.  */
7803
19848
_ACEOF
7804
19849
cat confdefs.h >>conftest.$ac_ext
7809
19854
_ACEOF
7810
19855
rm -f conftest.$ac_objext
7811
19856
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7812
 
  (eval $ac_compile) 2>&5
 
19857
  (eval $ac_compile) 2>conftest.er1
7813
19858
  ac_status=$?
 
19859
  grep -v '^ *+' conftest.er1 >conftest.err
 
19860
  rm -f conftest.er1
 
19861
  cat conftest.err >&5
7814
19862
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7815
19863
  (exit $ac_status); } &&
7816
 
         { ac_try='test -s conftest.$ac_objext'
 
19864
         { ac_try='test -z "$ac_c_werror_flag"
 
19865
                         || test ! -s conftest.err'
 
19866
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19867
  (eval $ac_try) 2>&5
 
19868
  ac_status=$?
 
19869
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19870
  (exit $ac_status); }; } &&
 
19871
         { ac_try='test -s conftest.$ac_objext'
7817
19872
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7818
19873
  (eval $ac_try) 2>&5
7819
19874
  ac_status=$?
7826
19881
 
7827
19882
ac_header_compiler=no
7828
19883
fi
7829
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
19884
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7830
19885
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7831
19886
echo "${ECHO_T}$ac_header_compiler" >&6
7832
19887
 
7834
19889
echo "$as_me:$LINENO: checking $ac_header presence" >&5
7835
19890
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7836
19891
cat >conftest.$ac_ext <<_ACEOF
7837
 
#line $LINENO "configure"
7838
19892
/* confdefs.h.  */
7839
19893
_ACEOF
7840
19894
cat confdefs.h >>conftest.$ac_ext
7852
19906
  (exit $ac_status); } >/dev/null; then
7853
19907
  if test -s conftest.err; then
7854
19908
    ac_cpp_err=$ac_c_preproc_warn_flag
 
19909
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7855
19910
  else
7856
19911
    ac_cpp_err=
7857
19912
  fi
7871
19926
echo "${ECHO_T}$ac_header_preproc" >&6
7872
19927
 
7873
19928
# So?  What about this header?
7874
 
case $ac_header_compiler:$ac_header_preproc in
7875
 
  yes:no )
 
19929
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
19930
  yes:no: )
7876
19931
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7877
19932
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7878
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7879
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7880
 
    (
7881
 
      cat <<\_ASBOX
7882
 
## ------------------------------------ ##
7883
 
## Report this to bug-autoconf@gnu.org. ##
7884
 
## ------------------------------------ ##
7885
 
_ASBOX
7886
 
    ) |
7887
 
      sed "s/^/$as_me: WARNING:     /" >&2
 
19933
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
19934
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
19935
    ac_header_preproc=yes
7888
19936
    ;;
7889
 
  no:yes )
 
19937
  no:yes:* )
7890
19938
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7891
19939
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7892
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7893
 
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
 
19940
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
19941
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
19942
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
19943
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
19944
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
19945
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7894
19946
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7895
19947
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
19948
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
19949
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7896
19950
    (
7897
19951
      cat <<\_ASBOX
7898
 
## ------------------------------------ ##
7899
 
## Report this to bug-autoconf@gnu.org. ##
7900
 
## ------------------------------------ ##
 
19952
## ------------------------------------------ ##
 
19953
## Report this to the AC_PACKAGE_NAME lists.  ##
 
19954
## ------------------------------------------ ##
7901
19955
_ASBOX
7902
19956
    ) |
7903
19957
      sed "s/^/$as_me: WARNING:     /" >&2
7908
19962
if eval "test \"\${$as_ac_Header+set}\" = set"; then
7909
19963
  echo $ECHO_N "(cached) $ECHO_C" >&6
7910
19964
else
7911
 
  eval "$as_ac_Header=$ac_header_preproc"
 
19965
  eval "$as_ac_Header=\$ac_header_preproc"
7912
19966
fi
7913
19967
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7914
19968
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7940
19994
echo "$as_me:$LINENO: checking $ac_header usability" >&5
7941
19995
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7942
19996
cat >conftest.$ac_ext <<_ACEOF
7943
 
#line $LINENO "configure"
7944
19997
/* confdefs.h.  */
7945
19998
_ACEOF
7946
19999
cat confdefs.h >>conftest.$ac_ext
7951
20004
_ACEOF
7952
20005
rm -f conftest.$ac_objext
7953
20006
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7954
 
  (eval $ac_compile) 2>&5
 
20007
  (eval $ac_compile) 2>conftest.er1
7955
20008
  ac_status=$?
 
20009
  grep -v '^ *+' conftest.er1 >conftest.err
 
20010
  rm -f conftest.er1
 
20011
  cat conftest.err >&5
7956
20012
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7957
20013
  (exit $ac_status); } &&
7958
 
         { ac_try='test -s conftest.$ac_objext'
 
20014
         { ac_try='test -z "$ac_c_werror_flag"
 
20015
                         || test ! -s conftest.err'
 
20016
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20017
  (eval $ac_try) 2>&5
 
20018
  ac_status=$?
 
20019
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20020
  (exit $ac_status); }; } &&
 
20021
         { ac_try='test -s conftest.$ac_objext'
7959
20022
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7960
20023
  (eval $ac_try) 2>&5
7961
20024
  ac_status=$?
7968
20031
 
7969
20032
ac_header_compiler=no
7970
20033
fi
7971
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
20034
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7972
20035
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7973
20036
echo "${ECHO_T}$ac_header_compiler" >&6
7974
20037
 
7976
20039
echo "$as_me:$LINENO: checking $ac_header presence" >&5
7977
20040
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7978
20041
cat >conftest.$ac_ext <<_ACEOF
7979
 
#line $LINENO "configure"
7980
20042
/* confdefs.h.  */
7981
20043
_ACEOF
7982
20044
cat confdefs.h >>conftest.$ac_ext
7994
20056
  (exit $ac_status); } >/dev/null; then
7995
20057
  if test -s conftest.err; then
7996
20058
    ac_cpp_err=$ac_c_preproc_warn_flag
 
20059
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7997
20060
  else
7998
20061
    ac_cpp_err=
7999
20062
  fi
8013
20076
echo "${ECHO_T}$ac_header_preproc" >&6
8014
20077
 
8015
20078
# So?  What about this header?
8016
 
case $ac_header_compiler:$ac_header_preproc in
8017
 
  yes:no )
 
20079
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
20080
  yes:no: )
8018
20081
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8019
20082
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8020
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8021
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8022
 
    (
8023
 
      cat <<\_ASBOX
8024
 
## ------------------------------------ ##
8025
 
## Report this to bug-autoconf@gnu.org. ##
8026
 
## ------------------------------------ ##
8027
 
_ASBOX
8028
 
    ) |
8029
 
      sed "s/^/$as_me: WARNING:     /" >&2
 
20083
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
20084
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
20085
    ac_header_preproc=yes
8030
20086
    ;;
8031
 
  no:yes )
 
20087
  no:yes:* )
8032
20088
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8033
20089
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8034
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8035
 
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
 
20090
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
20091
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
20092
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
20093
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
20094
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
20095
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8036
20096
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8037
20097
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
20098
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
20099
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8038
20100
    (
8039
20101
      cat <<\_ASBOX
8040
 
## ------------------------------------ ##
8041
 
## Report this to bug-autoconf@gnu.org. ##
8042
 
## ------------------------------------ ##
 
20102
## ------------------------------------------ ##
 
20103
## Report this to the AC_PACKAGE_NAME lists.  ##
 
20104
## ------------------------------------------ ##
8043
20105
_ASBOX
8044
20106
    ) |
8045
20107
      sed "s/^/$as_me: WARNING:     /" >&2
8050
20112
if eval "test \"\${$as_ac_Header+set}\" = set"; then
8051
20113
  echo $ECHO_N "(cached) $ECHO_C" >&6
8052
20114
else
8053
 
  eval "$as_ac_Header=$ac_header_preproc"
 
20115
  eval "$as_ac_Header=\$ac_header_preproc"
8054
20116
fi
8055
20117
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8056
20118
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8082
20144
echo "$as_me:$LINENO: checking $ac_header usability" >&5
8083
20145
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8084
20146
cat >conftest.$ac_ext <<_ACEOF
8085
 
#line $LINENO "configure"
8086
20147
/* confdefs.h.  */
8087
20148
_ACEOF
8088
20149
cat confdefs.h >>conftest.$ac_ext
8093
20154
_ACEOF
8094
20155
rm -f conftest.$ac_objext
8095
20156
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8096
 
  (eval $ac_compile) 2>&5
 
20157
  (eval $ac_compile) 2>conftest.er1
8097
20158
  ac_status=$?
 
20159
  grep -v '^ *+' conftest.er1 >conftest.err
 
20160
  rm -f conftest.er1
 
20161
  cat conftest.err >&5
8098
20162
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8099
20163
  (exit $ac_status); } &&
8100
 
         { ac_try='test -s conftest.$ac_objext'
 
20164
         { ac_try='test -z "$ac_c_werror_flag"
 
20165
                         || test ! -s conftest.err'
 
20166
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20167
  (eval $ac_try) 2>&5
 
20168
  ac_status=$?
 
20169
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20170
  (exit $ac_status); }; } &&
 
20171
         { ac_try='test -s conftest.$ac_objext'
8101
20172
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8102
20173
  (eval $ac_try) 2>&5
8103
20174
  ac_status=$?
8110
20181
 
8111
20182
ac_header_compiler=no
8112
20183
fi
8113
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
20184
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8114
20185
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8115
20186
echo "${ECHO_T}$ac_header_compiler" >&6
8116
20187
 
8118
20189
echo "$as_me:$LINENO: checking $ac_header presence" >&5
8119
20190
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8120
20191
cat >conftest.$ac_ext <<_ACEOF
8121
 
#line $LINENO "configure"
8122
20192
/* confdefs.h.  */
8123
20193
_ACEOF
8124
20194
cat confdefs.h >>conftest.$ac_ext
8136
20206
  (exit $ac_status); } >/dev/null; then
8137
20207
  if test -s conftest.err; then
8138
20208
    ac_cpp_err=$ac_c_preproc_warn_flag
 
20209
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8139
20210
  else
8140
20211
    ac_cpp_err=
8141
20212
  fi
8155
20226
echo "${ECHO_T}$ac_header_preproc" >&6
8156
20227
 
8157
20228
# So?  What about this header?
8158
 
case $ac_header_compiler:$ac_header_preproc in
8159
 
  yes:no )
 
20229
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
20230
  yes:no: )
8160
20231
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8161
20232
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8162
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8163
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8164
 
    (
8165
 
      cat <<\_ASBOX
8166
 
## ------------------------------------ ##
8167
 
## Report this to bug-autoconf@gnu.org. ##
8168
 
## ------------------------------------ ##
8169
 
_ASBOX
8170
 
    ) |
8171
 
      sed "s/^/$as_me: WARNING:     /" >&2
 
20233
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
20234
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
20235
    ac_header_preproc=yes
8172
20236
    ;;
8173
 
  no:yes )
 
20237
  no:yes:* )
8174
20238
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8175
20239
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8176
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8177
 
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
 
20240
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
20241
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
20242
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
20243
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
20244
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
20245
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8178
20246
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8179
20247
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
20248
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
20249
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8180
20250
    (
8181
20251
      cat <<\_ASBOX
8182
 
## ------------------------------------ ##
8183
 
## Report this to bug-autoconf@gnu.org. ##
8184
 
## ------------------------------------ ##
 
20252
## ------------------------------------------ ##
 
20253
## Report this to the AC_PACKAGE_NAME lists.  ##
 
20254
## ------------------------------------------ ##
8185
20255
_ASBOX
8186
20256
    ) |
8187
20257
      sed "s/^/$as_me: WARNING:     /" >&2
8192
20262
if eval "test \"\${$as_ac_Header+set}\" = set"; then
8193
20263
  echo $ECHO_N "(cached) $ECHO_C" >&6
8194
20264
else
8195
 
  eval "$as_ac_Header=$ac_header_preproc"
 
20265
  eval "$as_ac_Header=\$ac_header_preproc"
8196
20266
fi
8197
20267
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8198
20268
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8224
20294
echo "$as_me:$LINENO: checking $ac_header usability" >&5
8225
20295
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8226
20296
cat >conftest.$ac_ext <<_ACEOF
8227
 
#line $LINENO "configure"
8228
20297
/* confdefs.h.  */
8229
20298
_ACEOF
8230
20299
cat confdefs.h >>conftest.$ac_ext
8235
20304
_ACEOF
8236
20305
rm -f conftest.$ac_objext
8237
20306
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8238
 
  (eval $ac_compile) 2>&5
 
20307
  (eval $ac_compile) 2>conftest.er1
8239
20308
  ac_status=$?
 
20309
  grep -v '^ *+' conftest.er1 >conftest.err
 
20310
  rm -f conftest.er1
 
20311
  cat conftest.err >&5
8240
20312
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8241
20313
  (exit $ac_status); } &&
8242
 
         { ac_try='test -s conftest.$ac_objext'
 
20314
         { ac_try='test -z "$ac_c_werror_flag"
 
20315
                         || test ! -s conftest.err'
 
20316
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20317
  (eval $ac_try) 2>&5
 
20318
  ac_status=$?
 
20319
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20320
  (exit $ac_status); }; } &&
 
20321
         { ac_try='test -s conftest.$ac_objext'
8243
20322
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8244
20323
  (eval $ac_try) 2>&5
8245
20324
  ac_status=$?
8252
20331
 
8253
20332
ac_header_compiler=no
8254
20333
fi
8255
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
20334
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8256
20335
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8257
20336
echo "${ECHO_T}$ac_header_compiler" >&6
8258
20337
 
8260
20339
echo "$as_me:$LINENO: checking $ac_header presence" >&5
8261
20340
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8262
20341
cat >conftest.$ac_ext <<_ACEOF
8263
 
#line $LINENO "configure"
8264
20342
/* confdefs.h.  */
8265
20343
_ACEOF
8266
20344
cat confdefs.h >>conftest.$ac_ext
8278
20356
  (exit $ac_status); } >/dev/null; then
8279
20357
  if test -s conftest.err; then
8280
20358
    ac_cpp_err=$ac_c_preproc_warn_flag
 
20359
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8281
20360
  else
8282
20361
    ac_cpp_err=
8283
20362
  fi
8297
20376
echo "${ECHO_T}$ac_header_preproc" >&6
8298
20377
 
8299
20378
# So?  What about this header?
8300
 
case $ac_header_compiler:$ac_header_preproc in
8301
 
  yes:no )
 
20379
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
20380
  yes:no: )
8302
20381
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8303
20382
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8304
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8305
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8306
 
    (
8307
 
      cat <<\_ASBOX
8308
 
## ------------------------------------ ##
8309
 
## Report this to bug-autoconf@gnu.org. ##
8310
 
## ------------------------------------ ##
8311
 
_ASBOX
8312
 
    ) |
8313
 
      sed "s/^/$as_me: WARNING:     /" >&2
 
20383
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
20384
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
20385
    ac_header_preproc=yes
8314
20386
    ;;
8315
 
  no:yes )
 
20387
  no:yes:* )
8316
20388
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8317
20389
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8318
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8319
 
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
 
20390
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
20391
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
20392
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
20393
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
20394
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
20395
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8320
20396
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8321
20397
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
20398
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
20399
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8322
20400
    (
8323
20401
      cat <<\_ASBOX
8324
 
## ------------------------------------ ##
8325
 
## Report this to bug-autoconf@gnu.org. ##
8326
 
## ------------------------------------ ##
 
20402
## ------------------------------------------ ##
 
20403
## Report this to the AC_PACKAGE_NAME lists.  ##
 
20404
## ------------------------------------------ ##
8327
20405
_ASBOX
8328
20406
    ) |
8329
20407
      sed "s/^/$as_me: WARNING:     /" >&2
8334
20412
if eval "test \"\${$as_ac_Header+set}\" = set"; then
8335
20413
  echo $ECHO_N "(cached) $ECHO_C" >&6
8336
20414
else
8337
 
  eval "$as_ac_Header=$ac_header_preproc"
 
20415
  eval "$as_ac_Header=\$ac_header_preproc"
8338
20416
fi
8339
20417
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8340
20418
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8366
20444
echo "$as_me:$LINENO: checking $ac_header usability" >&5
8367
20445
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8368
20446
cat >conftest.$ac_ext <<_ACEOF
8369
 
#line $LINENO "configure"
8370
20447
/* confdefs.h.  */
8371
20448
_ACEOF
8372
20449
cat confdefs.h >>conftest.$ac_ext
8377
20454
_ACEOF
8378
20455
rm -f conftest.$ac_objext
8379
20456
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8380
 
  (eval $ac_compile) 2>&5
 
20457
  (eval $ac_compile) 2>conftest.er1
8381
20458
  ac_status=$?
 
20459
  grep -v '^ *+' conftest.er1 >conftest.err
 
20460
  rm -f conftest.er1
 
20461
  cat conftest.err >&5
8382
20462
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8383
20463
  (exit $ac_status); } &&
8384
 
         { ac_try='test -s conftest.$ac_objext'
 
20464
         { ac_try='test -z "$ac_c_werror_flag"
 
20465
                         || test ! -s conftest.err'
 
20466
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20467
  (eval $ac_try) 2>&5
 
20468
  ac_status=$?
 
20469
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20470
  (exit $ac_status); }; } &&
 
20471
         { ac_try='test -s conftest.$ac_objext'
8385
20472
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8386
20473
  (eval $ac_try) 2>&5
8387
20474
  ac_status=$?
8394
20481
 
8395
20482
ac_header_compiler=no
8396
20483
fi
8397
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
20484
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8398
20485
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8399
20486
echo "${ECHO_T}$ac_header_compiler" >&6
8400
20487
 
8402
20489
echo "$as_me:$LINENO: checking $ac_header presence" >&5
8403
20490
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8404
20491
cat >conftest.$ac_ext <<_ACEOF
8405
 
#line $LINENO "configure"
8406
20492
/* confdefs.h.  */
8407
20493
_ACEOF
8408
20494
cat confdefs.h >>conftest.$ac_ext
8420
20506
  (exit $ac_status); } >/dev/null; then
8421
20507
  if test -s conftest.err; then
8422
20508
    ac_cpp_err=$ac_c_preproc_warn_flag
 
20509
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8423
20510
  else
8424
20511
    ac_cpp_err=
8425
20512
  fi
8439
20526
echo "${ECHO_T}$ac_header_preproc" >&6
8440
20527
 
8441
20528
# So?  What about this header?
8442
 
case $ac_header_compiler:$ac_header_preproc in
8443
 
  yes:no )
 
20529
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
20530
  yes:no: )
8444
20531
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8445
20532
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8446
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8447
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8448
 
    (
8449
 
      cat <<\_ASBOX
8450
 
## ------------------------------------ ##
8451
 
## Report this to bug-autoconf@gnu.org. ##
8452
 
## ------------------------------------ ##
8453
 
_ASBOX
8454
 
    ) |
8455
 
      sed "s/^/$as_me: WARNING:     /" >&2
 
20533
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
20534
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
20535
    ac_header_preproc=yes
8456
20536
    ;;
8457
 
  no:yes )
 
20537
  no:yes:* )
8458
20538
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8459
20539
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8460
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8461
 
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
 
20540
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
20541
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
20542
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
20543
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
20544
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
20545
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8462
20546
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8463
20547
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
20548
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
20549
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8464
20550
    (
8465
20551
      cat <<\_ASBOX
8466
 
## ------------------------------------ ##
8467
 
## Report this to bug-autoconf@gnu.org. ##
8468
 
## ------------------------------------ ##
 
20552
## ------------------------------------------ ##
 
20553
## Report this to the AC_PACKAGE_NAME lists.  ##
 
20554
## ------------------------------------------ ##
8469
20555
_ASBOX
8470
20556
    ) |
8471
20557
      sed "s/^/$as_me: WARNING:     /" >&2
8476
20562
if eval "test \"\${$as_ac_Header+set}\" = set"; then
8477
20563
  echo $ECHO_N "(cached) $ECHO_C" >&6
8478
20564
else
8479
 
  eval "$as_ac_Header=$ac_header_preproc"
 
20565
  eval "$as_ac_Header=\$ac_header_preproc"
8480
20566
fi
8481
20567
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8482
20568
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8508
20594
echo "$as_me:$LINENO: checking $ac_header usability" >&5
8509
20595
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8510
20596
cat >conftest.$ac_ext <<_ACEOF
8511
 
#line $LINENO "configure"
8512
20597
/* confdefs.h.  */
8513
20598
_ACEOF
8514
20599
cat confdefs.h >>conftest.$ac_ext
8519
20604
_ACEOF
8520
20605
rm -f conftest.$ac_objext
8521
20606
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8522
 
  (eval $ac_compile) 2>&5
 
20607
  (eval $ac_compile) 2>conftest.er1
8523
20608
  ac_status=$?
 
20609
  grep -v '^ *+' conftest.er1 >conftest.err
 
20610
  rm -f conftest.er1
 
20611
  cat conftest.err >&5
8524
20612
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525
20613
  (exit $ac_status); } &&
8526
 
         { ac_try='test -s conftest.$ac_objext'
 
20614
         { ac_try='test -z "$ac_c_werror_flag"
 
20615
                         || test ! -s conftest.err'
 
20616
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20617
  (eval $ac_try) 2>&5
 
20618
  ac_status=$?
 
20619
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20620
  (exit $ac_status); }; } &&
 
20621
         { ac_try='test -s conftest.$ac_objext'
8527
20622
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8528
20623
  (eval $ac_try) 2>&5
8529
20624
  ac_status=$?
8536
20631
 
8537
20632
ac_header_compiler=no
8538
20633
fi
8539
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
20634
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8540
20635
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8541
20636
echo "${ECHO_T}$ac_header_compiler" >&6
8542
20637
 
8544
20639
echo "$as_me:$LINENO: checking $ac_header presence" >&5
8545
20640
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8546
20641
cat >conftest.$ac_ext <<_ACEOF
8547
 
#line $LINENO "configure"
8548
20642
/* confdefs.h.  */
8549
20643
_ACEOF
8550
20644
cat confdefs.h >>conftest.$ac_ext
8562
20656
  (exit $ac_status); } >/dev/null; then
8563
20657
  if test -s conftest.err; then
8564
20658
    ac_cpp_err=$ac_c_preproc_warn_flag
 
20659
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8565
20660
  else
8566
20661
    ac_cpp_err=
8567
20662
  fi
8581
20676
echo "${ECHO_T}$ac_header_preproc" >&6
8582
20677
 
8583
20678
# So?  What about this header?
8584
 
case $ac_header_compiler:$ac_header_preproc in
8585
 
  yes:no )
 
20679
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
20680
  yes:no: )
8586
20681
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8587
20682
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8588
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8589
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8590
 
    (
8591
 
      cat <<\_ASBOX
8592
 
## ------------------------------------ ##
8593
 
## Report this to bug-autoconf@gnu.org. ##
8594
 
## ------------------------------------ ##
8595
 
_ASBOX
8596
 
    ) |
8597
 
      sed "s/^/$as_me: WARNING:     /" >&2
 
20683
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
20684
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
20685
    ac_header_preproc=yes
8598
20686
    ;;
8599
 
  no:yes )
 
20687
  no:yes:* )
8600
20688
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8601
20689
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8602
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8603
 
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
 
20690
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
20691
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
20692
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
20693
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
20694
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
20695
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8604
20696
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8605
20697
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
20698
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
20699
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8606
20700
    (
8607
20701
      cat <<\_ASBOX
8608
 
## ------------------------------------ ##
8609
 
## Report this to bug-autoconf@gnu.org. ##
8610
 
## ------------------------------------ ##
 
20702
## ------------------------------------------ ##
 
20703
## Report this to the AC_PACKAGE_NAME lists.  ##
 
20704
## ------------------------------------------ ##
8611
20705
_ASBOX
8612
20706
    ) |
8613
20707
      sed "s/^/$as_me: WARNING:     /" >&2
8618
20712
if eval "test \"\${$as_ac_Header+set}\" = set"; then
8619
20713
  echo $ECHO_N "(cached) $ECHO_C" >&6
8620
20714
else
8621
 
  eval "$as_ac_Header=$ac_header_preproc"
 
20715
  eval "$as_ac_Header=\$ac_header_preproc"
8622
20716
fi
8623
20717
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8624
20718
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8650
20744
echo "$as_me:$LINENO: checking $ac_header usability" >&5
8651
20745
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8652
20746
cat >conftest.$ac_ext <<_ACEOF
8653
 
#line $LINENO "configure"
8654
20747
/* confdefs.h.  */
8655
20748
_ACEOF
8656
20749
cat confdefs.h >>conftest.$ac_ext
8661
20754
_ACEOF
8662
20755
rm -f conftest.$ac_objext
8663
20756
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8664
 
  (eval $ac_compile) 2>&5
 
20757
  (eval $ac_compile) 2>conftest.er1
8665
20758
  ac_status=$?
 
20759
  grep -v '^ *+' conftest.er1 >conftest.err
 
20760
  rm -f conftest.er1
 
20761
  cat conftest.err >&5
8666
20762
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8667
20763
  (exit $ac_status); } &&
8668
 
         { ac_try='test -s conftest.$ac_objext'
 
20764
         { ac_try='test -z "$ac_c_werror_flag"
 
20765
                         || test ! -s conftest.err'
 
20766
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20767
  (eval $ac_try) 2>&5
 
20768
  ac_status=$?
 
20769
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20770
  (exit $ac_status); }; } &&
 
20771
         { ac_try='test -s conftest.$ac_objext'
8669
20772
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8670
20773
  (eval $ac_try) 2>&5
8671
20774
  ac_status=$?
8678
20781
 
8679
20782
ac_header_compiler=no
8680
20783
fi
8681
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
20784
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8682
20785
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8683
20786
echo "${ECHO_T}$ac_header_compiler" >&6
8684
20787
 
8686
20789
echo "$as_me:$LINENO: checking $ac_header presence" >&5
8687
20790
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8688
20791
cat >conftest.$ac_ext <<_ACEOF
8689
 
#line $LINENO "configure"
8690
20792
/* confdefs.h.  */
8691
20793
_ACEOF
8692
20794
cat confdefs.h >>conftest.$ac_ext
8704
20806
  (exit $ac_status); } >/dev/null; then
8705
20807
  if test -s conftest.err; then
8706
20808
    ac_cpp_err=$ac_c_preproc_warn_flag
 
20809
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8707
20810
  else
8708
20811
    ac_cpp_err=
8709
20812
  fi
8723
20826
echo "${ECHO_T}$ac_header_preproc" >&6
8724
20827
 
8725
20828
# So?  What about this header?
8726
 
case $ac_header_compiler:$ac_header_preproc in
8727
 
  yes:no )
 
20829
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
20830
  yes:no: )
8728
20831
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8729
20832
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8730
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8731
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8732
 
    (
8733
 
      cat <<\_ASBOX
8734
 
## ------------------------------------ ##
8735
 
## Report this to bug-autoconf@gnu.org. ##
8736
 
## ------------------------------------ ##
8737
 
_ASBOX
8738
 
    ) |
8739
 
      sed "s/^/$as_me: WARNING:     /" >&2
 
20833
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
20834
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
20835
    ac_header_preproc=yes
8740
20836
    ;;
8741
 
  no:yes )
 
20837
  no:yes:* )
8742
20838
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8743
20839
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8744
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8745
 
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
 
20840
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
20841
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
20842
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
20843
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
20844
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
20845
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8746
20846
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8747
20847
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
20848
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
20849
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8748
20850
    (
8749
20851
      cat <<\_ASBOX
8750
 
## ------------------------------------ ##
8751
 
## Report this to bug-autoconf@gnu.org. ##
8752
 
## ------------------------------------ ##
 
20852
## ------------------------------------------ ##
 
20853
## Report this to the AC_PACKAGE_NAME lists.  ##
 
20854
## ------------------------------------------ ##
8753
20855
_ASBOX
8754
20856
    ) |
8755
20857
      sed "s/^/$as_me: WARNING:     /" >&2
8760
20862
if eval "test \"\${$as_ac_Header+set}\" = set"; then
8761
20863
  echo $ECHO_N "(cached) $ECHO_C" >&6
8762
20864
else
8763
 
  eval "$as_ac_Header=$ac_header_preproc"
 
20865
  eval "$as_ac_Header=\$ac_header_preproc"
8764
20866
fi
8765
20867
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8766
20868
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8792
20894
echo "$as_me:$LINENO: checking $ac_header usability" >&5
8793
20895
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8794
20896
cat >conftest.$ac_ext <<_ACEOF
8795
 
#line $LINENO "configure"
8796
20897
/* confdefs.h.  */
8797
20898
_ACEOF
8798
20899
cat confdefs.h >>conftest.$ac_ext
8803
20904
_ACEOF
8804
20905
rm -f conftest.$ac_objext
8805
20906
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8806
 
  (eval $ac_compile) 2>&5
 
20907
  (eval $ac_compile) 2>conftest.er1
8807
20908
  ac_status=$?
 
20909
  grep -v '^ *+' conftest.er1 >conftest.err
 
20910
  rm -f conftest.er1
 
20911
  cat conftest.err >&5
8808
20912
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8809
20913
  (exit $ac_status); } &&
8810
 
         { ac_try='test -s conftest.$ac_objext'
 
20914
         { ac_try='test -z "$ac_c_werror_flag"
 
20915
                         || test ! -s conftest.err'
 
20916
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20917
  (eval $ac_try) 2>&5
 
20918
  ac_status=$?
 
20919
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20920
  (exit $ac_status); }; } &&
 
20921
         { ac_try='test -s conftest.$ac_objext'
8811
20922
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8812
20923
  (eval $ac_try) 2>&5
8813
20924
  ac_status=$?
8820
20931
 
8821
20932
ac_header_compiler=no
8822
20933
fi
8823
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
20934
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8824
20935
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8825
20936
echo "${ECHO_T}$ac_header_compiler" >&6
8826
20937
 
8828
20939
echo "$as_me:$LINENO: checking $ac_header presence" >&5
8829
20940
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8830
20941
cat >conftest.$ac_ext <<_ACEOF
8831
 
#line $LINENO "configure"
8832
20942
/* confdefs.h.  */
8833
20943
_ACEOF
8834
20944
cat confdefs.h >>conftest.$ac_ext
8846
20956
  (exit $ac_status); } >/dev/null; then
8847
20957
  if test -s conftest.err; then
8848
20958
    ac_cpp_err=$ac_c_preproc_warn_flag
 
20959
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8849
20960
  else
8850
20961
    ac_cpp_err=
8851
20962
  fi
8865
20976
echo "${ECHO_T}$ac_header_preproc" >&6
8866
20977
 
8867
20978
# So?  What about this header?
8868
 
case $ac_header_compiler:$ac_header_preproc in
8869
 
  yes:no )
 
20979
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
20980
  yes:no: )
8870
20981
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8871
20982
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8872
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8873
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8874
 
    (
8875
 
      cat <<\_ASBOX
8876
 
## ------------------------------------ ##
8877
 
## Report this to bug-autoconf@gnu.org. ##
8878
 
## ------------------------------------ ##
8879
 
_ASBOX
8880
 
    ) |
8881
 
      sed "s/^/$as_me: WARNING:     /" >&2
 
20983
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
20984
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
20985
    ac_header_preproc=yes
8882
20986
    ;;
8883
 
  no:yes )
 
20987
  no:yes:* )
8884
20988
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8885
20989
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8886
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8887
 
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
 
20990
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
20991
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
20992
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
20993
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
20994
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
20995
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8888
20996
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8889
20997
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
20998
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
20999
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8890
21000
    (
8891
21001
      cat <<\_ASBOX
8892
 
## ------------------------------------ ##
8893
 
## Report this to bug-autoconf@gnu.org. ##
8894
 
## ------------------------------------ ##
 
21002
## ------------------------------------------ ##
 
21003
## Report this to the AC_PACKAGE_NAME lists.  ##
 
21004
## ------------------------------------------ ##
8895
21005
_ASBOX
8896
21006
    ) |
8897
21007
      sed "s/^/$as_me: WARNING:     /" >&2
8902
21012
if eval "test \"\${$as_ac_Header+set}\" = set"; then
8903
21013
  echo $ECHO_N "(cached) $ECHO_C" >&6
8904
21014
else
8905
 
  eval "$as_ac_Header=$ac_header_preproc"
 
21015
  eval "$as_ac_Header=\$ac_header_preproc"
8906
21016
fi
8907
21017
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8908
21018
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8925
21035
else
8926
21036
    ac_pattern="Autoconf.*'x'"
8927
21037
  cat >conftest.$ac_ext <<_ACEOF
8928
 
#line $LINENO "configure"
8929
21038
/* confdefs.h.  */
8930
21039
_ACEOF
8931
21040
cat confdefs.h >>conftest.$ac_ext
8945
21054
 
8946
21055
  if test $ac_cv_prog_gcc_traditional = no; then
8947
21056
    cat >conftest.$ac_ext <<_ACEOF
8948
 
#line $LINENO "configure"
8949
21057
/* confdefs.h.  */
8950
21058
_ACEOF
8951
21059
cat confdefs.h >>conftest.$ac_ext
9003
21111
 
9004
21112
 
9005
21113
 
 
21114
 
9006
21115
# ftsoy
9007
21116
echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
9008
21117
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
9036
21145
LIB_EXTENSION="la"
9037
21146
COMPILE="cc "
9038
21147
TOP="`pwd`"
9039
 
LINK="\$(TOP)/libtool --mode=link \$(CC) \$(CFLAGS) \$(LDFLAGS) -release \$(VERSION) -o librxtx\$*.la -rpath \$(RXTX_PATH)"
 
21148
GLIBTOOL="\$(SHELL) \$(TOP)/libtool"
 
21149
LINK="\$(GLIBTOOL) --mode=link \$(CC) \$(CFLAGS) \$(LDFLAGS) -release \$(VERSION) -o librxtx\$*.la -rpath \$(RXTX_PATH)"
9040
21150
 
9041
21151
case "$host_os" in
9042
21152
        *-gnu)
9072
21182
        fi
9073
21183
 
9074
21184
fi;
 
21185
# Check whether --enable-liblock or --disable-liblock was given.
 
21186
if test "${enable_liblock+set}" = set; then
 
21187
  enableval="$enable_liblock"
 
21188
  if test "x$liblock" != "xno"; then
 
21189
                echo "Using liblock"
 
21190
                CFLAGS=$CFLAGS" -DLIBLOCKDEV"
 
21191
                LDFLAGS=$LDFLAGS" -llockdev"
 
21192
        else
 
21193
                echo $liblock
 
21194
                echo "Disabling liblock"
 
21195
        fi
 
21196
 
 
21197
fi;
9075
21198
 
9076
21199
# Check whether --enable-lockfile_server or --disable-lockfile_server was given.
9077
21200
if test "${enable_lockfile_server+set}" = set; then
9119
21242
EOF
9120
21243
CLASSPATH=.:$CLASSPATH
9121
21244
if test x$JAVA_HOME = x; then
9122
 
        javac -classpath .:$CLASSPATH:`which java`../lib/RXTXcomm.jar conftest.java
 
21245
        javac -classpath .:$CLASSPATH: conftest.java
9123
21246
else
9124
 
        $JAVA_HOME/bin/javac -classpath .:$CLASSPATH:`which java`../lib/RXTXcomm.jar conftest.java
 
21247
        $JAVA_HOME/bin/javac -classpath .:$CLASSPATH: conftest.java
9125
21248
fi
9126
21249
}
9127
21250
 
9129
21252
{
9130
21253
        echo $ECHO_N checking $1   " " 1>&6
9131
21254
        if test x$JPATH = x; then
9132
 
                VAR=`java -classpath .:$CLASSPATH:\`which java\`../lib/RXTXcomm.jar conftest $1`
 
21255
                VAR=`java -classpath .:$CLASSPATH: conftest $1`
9133
21256
        else
9134
 
                VAR=`$JPATH/bin/java -classpath .:$CLASSPATH:\`which java\`../lib/RXTXcomm.jar conftest $1`
 
21257
                VAR=`$JPATH/bin/java -classpath .:$CLASSPATH: conftest $1`
9135
21258
        fi
9136
21259
        echo $VAR  1>&6
9137
21260
        echo $VAR
9186
21309
 
9187
21310
cat > conftest.c << EOF
9188
21311
#include <features.h>
 
21312
#include <stdio.h>
 
21313
#include <stdlib.h>
9189
21314
int main(int argc, char *argv)
9190
21315
{
9191
21316
#if defined (__GLIBC__)
9324
21449
        cat > conftest.c << EOF
9325
21450
 
9326
21451
#include <linux/version.h>
 
21452
#include <stdio.h>
 
21453
#include <stdlib.h>
9327
21454
 
9328
21455
int main(int argc, char *argv)
9329
21456
{
9340
21467
        rm -f conftest.c
9341
21468
        rm -f conftest
9342
21469
}
 
21470
#fix_mac_groups()
 
21471
#{
 
21472
#this is what the Mac OS X installer does... untested
 
21473
#       sudo mkdir /var/spool/uucp
 
21474
#       sudo chmod 775 /var/spool/uucp
 
21475
#       sudo niutil -destroyval / /groups/uucp users `sudo id -p | grep 'login' | sed 's/login.//'`
 
21476
#       sudo niutil -appendprop / /groups/uucp users `sudo id -p | grep 'login' | sed 's/login.//'`
 
21477
#}
9343
21478
fix_comm_jar()
9344
21479
{
9345
21480
        if  test -f $1 ;then
9366
21501
        case $JAVA_VENDOR in
9367
21502
        Tran*)
9368
21503
                find_java_native_include jni.h
9369
 
                JAVAH="\$(JPATH)/bin/kaffeh -classpath \$(CLASSPATH) -d \$(DEST) -jni"
9370
 
                JAVAC="\$(JPATH)/bin/javac -classpath \$(CLASSPATH) -d \$(TOP)/ -O"
 
21504
                JAVAH="\$(JPATH)/bin/kaffeh -classpath \$(JPATH)/jre/lib/rt.jar:\$(CLASSPATH) -d \$(DEST) -jni"
 
21505
                JAVAC="\$(JPATH)/bin/javac -classpath \$(CLASSPATH) -d \$(TOP)/ -O -source 1.3 -target 1.3"
9371
21506
                JAR="\$(JPATH)/bin/jar"
9372
21507
                JAVADOC="\$(JPATH)/bin/javadoc -classpath \$(CLASSPATH)"
9373
21508
                CFLAGS=$CFLAGS" -D_BSD_SOURCE"
9376
21511
                JHOME=$JPATH"/share/kaffe/"
9377
21512
                RXTX_PATH=$JPATH"/lib/kaffe/"
9378
21513
                ;;
9379
 
        Kaffe*)
9380
 
                find_java_native_include jni_md.h
9381
 
                JAVAH="\$(JPATH)/bin/javah -classpath \$(CLASSPATH) -d \$(DEST) -jni"
9382
 
                JAVAC="\$(JPATH)/bin/javac -classpath \$(CLASSPATH) -d \$(TOP)/ -O"
9383
 
                JAR="\$(JPATH)/bin/jar"
9384
 
                JAVADOC="\$(JPATH)/bin/javadoc -classpath \$(CLASSPATH)"
9385
 
                CFLAGS=$CFLAGS" -D_BSD_SOURCE"
9386
 
                JAVAH_FIX="if test ! -d \$(target_triplet);then  mkdir \$(target_triplet);fi;"
9387
 
                JHOME=$JPATH"/share/kaffe/"
9388
 
                RXTX_PATH=$JPATH"/lib/kaffe/"
9389
 
                ;;
9390
21514
        *)
9391
21515
                find_java_native_include jni_md.h
9392
 
                JAVAH="\$(JPATH)/bin/javah -classpath \$(CLASSPATH) -d \$(DEST) -jni"
9393
 
                JAVAC="\$(JPATH)/bin/javac -classpath \$(CLASSPATH) -d \$(TOP)/ -O"
 
21516
                JAVAH="\$(JPATH)/bin/javah -classpath \$(JPATH)/jre/lib/rt.jar:\$(CLASSPATH) -d \$(DEST) -jni"
 
21517
                JAVAC="\$(JPATH)/bin/javac -classpath \$(CLASSPATH) -d \$(TOP)/ -O -source 1.3 -target 1.3"
9394
21518
                JAR="\$(JPATH)/bin/jar"
9395
21519
                JAVADOC="\$(JPATH)/bin/javadoc"
9396
21520
                CFLAGS=$CFLAGS" -D_BSD_SOURCE"
9411
21535
 
9412
21536
 case $OS_NAME in
9413
21537
Linux)
9414
 
        LDFLAGS=-lpthread
 
21538
        LDFLAGS=$LDFLAGS" -lpthread"
9415
21539
        check_kernel_headers
9416
21540
        check_java_headers
9417
21541
        CFLAGS=$CFLAGS" -D__need_timespec"
9418
21542
        case $JAVA_VERSION in
9419
21543
 
9420
 
        1.4*)
 
21544
        1.2*|1.3*|1.4*|1.5*)
9421
21545
                #fix_parameters $JPATH/jre/lib/javax.comm.properties
9422
21546
                CLASSPATH=".:\$(TOP):\$(TOP)/src:"`find $JPATH/ -name RXTXcomm.jar |head -n1`
9423
21547
                JHOME=$JPATH"/jre/lib/ext"
9424
21548
                RXTX_PATH="\$(JPATH)/jre/lib/\$(OS_ARCH)"
9425
21549
        ;;
9426
 
        1.1*|1.2*|1.3*)
 
21550
        1.1*)
9427
21551
                CLASSPATH=".:\$(TOP):\$(TOP)/src:"` \
9428
21552
                        if [ -d $JPATH/share/kaffe/ ]; then
9429
21553
                                find $JPATH/share/kaffe/ -name [cK]lasses.[jz][ai][rp]
9430
 
                        elif [ -d $JPATH/jre/lib ]; then
9431
 
                                find $JPATH/jre/lib/ -name rt.jar
9432
21554
                        elif [ -d $JPATH/lib/ ]; then
9433
21555
                                find $JPATH/lib/ -name [cK]lasses.[jz][ai][rp]
9434
21556
                        fi`":"`
9466
21588
        beos*)
9467
21589
                TARGETLIB="\$(target_triplet)/librxtxSerial.la"
9468
21590
                EXTENSION="cpp"
9469
 
                LDFLAGS="-ldevice"
 
21591
                LDFLAGS=$LDFLAGS" -ldevice"
9470
21592
                #echo ----------------------------
9471
21593
                #echo $target_os
9472
21594
                #echo ----------------------------
9483
21605
;;
9484
21606
 
9485
21607
*BSD)
9486
 
        LDFLAGS=-lc_r
 
21608
        LDFLAGS=$LDFLAGS" -lc_r"
9487
21609
        JHOME=$JPATH/"lib"
9488
21610
        CFLAGS=$CFLAGS" -D_NO_POSIX=1 -D_NO_XOPEN4=1"
9489
21611
        TARGETLIB="\$(target_triplet)/librxtxSerial.la \
9490
21612
                        \$(target_triplet)/librxtxParallel.la"
9491
21613
        case $JAVA_VERSION in
9492
 
        1.2*|1.3*|1.4*)
 
21614
        1.2*|1.3*|1.4*|1.5*)
9493
21615
                #fix_parameters $JPATH/jre/lib/javax.comm.properties
9494
21616
                CLASSPATH=".:\$(TOP):\$(TOP)/src:"`find $JPATH/ -name RXTXcomm.jar |head -n1`
9495
21617
                RXTX_PATH="\$(JPATH)/jre/lib/\$(OS_ARCH)"
9544
21666
#  FIXME
9545
21667
 
9546
21668
UnixWare|OpenUNIX)
9547
 
        LDFLAGS=-lpthread_this_may_be_wrong__trent
 
21669
        LDFLAGS=$LDFLAGS" -lpthread_this_may_be_wrong__trent"
9548
21670
        JHOME=$JPATH/"jre/lib"
9549
21671
        CFLAGS=$CFLAGS" -D_NO_POSIX=1 -D_NO_XOPEN4=1 -D__unixware__"
9550
21672
        CLASSPATH="-classpath .:\$(TOP):\$(TOP)/src:\$(JPATH)/jre/lib/rt.jar:\$(JPATH)/jre/lib/ext/comm.jar"
9556
21678
;;
9557
21679
 
9558
21680
HP-UX)
9559
 
        LDFLAGS=-lpthread_this_may_be_wrong__trent
 
21681
        LDFLAGS=$LDFLAGS" -lpthread_this_may_be_wrong__trent"
9560
21682
        CFLAGS=$CFLAGS" -g -Aa +e -D__hpux__ -D_HPUX_SOURCE -D_NO_POSIX=1 -D_NO_XOPEN4=1"
9561
21683
        RXTX_PATH="\$(JPATH)/jre/lib/\$(OS_ARCH)"
9562
21684
        TARGETLIB="\$(target_triplet)/librxtxSerial.la"
9610
21732
        CLASSPATH=".:\$(TOP):\$(TOP)/../src:\$(JPATH)/share/kaffe/Klasses.jar:\$(JPATH)/lib/RXTXcomm.jar:$CLASSPATH"
9611
21733
        TARGETLIB="\$(target_triplet)/librxtxSerial.la"
9612
21734
        EXTENSION="cpp"
9613
 
        LDFLAGS="-ldevice"
 
21735
        LDFLAGS=$LDFLAGS" -ldevice"
9614
21736
#  sigh, from ltconfig
9615
21737
#  beos*)
9616
21738
#     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
9625
21747
 
9626
21748
WIN32)
9627
21749
        case $JAVA_VERSION in
9628
 
        1.2*|1.3*|1.4*)
 
21750
        1.2*|1.3*|1.4*|1.5*)
9629
21751
                CLASSPATH=".:\$(TOP):\$(TOP)/src:`find $JPATH/ -name RXTXcomm.jar |head -n1`:$CLASSPATH"
9630
21752
                JHOME=$JPATH"/jre/lib/ext"
9631
21753
        ;;
9646
21768
        else
9647
21769
        WINDOWS_JAVA_INCLUDE="-I$WIN32INCLUDE -I$WIN32INCLUDE/win32"
9648
21770
        fi
9649
 
        TARGETLIB="\$(target_triplet)/rxtxSerial.dll"
 
21771
        TARGETLIB="\$(target_triplet)/rxtxSerial.dll \$(target_triplet)/rxtxParallel.dll"
9650
21772
        echo  "$WINDOWS_JAVA_INCLUDE"
9651
21773
;;
9652
21774
 
9653
21775
Mac\ OS\ X)
 
21776
        #fix_mac_groups
9654
21777
        #fix_parameters $JPATH/lib/javax.comm.properties
9655
 
        LINK="cc -bundle -framework CoreFoundation -framework IOKit -o lib\$*.jnilib "
 
21778
        GLIBTOOL="\$(SHELL) glibtool"
 
21779
        LINK="cc -bundle -framework CoreFoundation -framework IOKit -o librxtx\$*.jnilib "
9656
21780
        OBJECT_EXTENSION="o"
9657
21781
        LIB_EXTENSION="jnilib"
9658
21782
        TARGETLIB="\$(target_triplet)/librxtxSerial.jnilib"
9659
21783
        RXTX_PATH="/usr/lib/java"
9660
21784
        JHOME=$JPATH"/lib/ext"
9661
21785
        CFLAGS=$CFLAGS" -bundle"
9662
 
        LDFLAGS="$LDFLAGS -module -framework JavaVM -framework IOKit -framework CoreFoundation"
 
21786
        LDFLAGS=$LDFLAGS" -module -framework JavaVM -framework IOKit -framework CoreFoundation"
9663
21787
        CLASSPATH=".:\$(TOP):\$(TOP)/src:\$(JPATH)/lib/ext/RXTXcomm.jar:$CLASSPATH"
9664
21788
        #  email taj@www.linux.org.uk if you know a nicer fix.  Needed anymore?
9665
 
        LIBTOOL_FIX="sed s/echo\ so/echo\ jnilib/g libtool > tmp; mv tmp libtool; chmod +x libtool;"
 
21789
        #  this fix was really old taj 6/05
 
21790
        # LIBTOOL_FIX="sed s/echo\ so/echo\ jnilib/g libtool > tmp; mv tmp libtool; chmod +x libtool;"
9666
21791
;;
9667
21792
 
9668
21793
Solaris*)
9669
 
        LDFLAGS=-lpthread
 
21794
+       LDFLAGS=$LDFLAGS" -lpthread"
9670
21795
        TARGETLIB="\$(target_triplet)/librxtxSerial.la \
9671
21796
                \$(target_triplet)/librxtxParallel.la"
9672
21797
        JHOME=$JPATH/"lib"
9674
21799
        CLASSPATH=".:\$(TOP):\$(TOP)/src:\$(JPATH)/lib/classes.zip:\$(JPATH)/lib/RXTXcomm.jar:$CLASSPATH"
9675
21800
 
9676
21801
        case $JAVA_VERSION in
9677
 
        1.2*|1.3*|1.4*)
 
21802
        1.2*|1.3*|1.4*|1.5*)
9678
21803
                RXTX_PATH="\$(JPATH)/jre/lib/\$(OS_ARCH)"
9679
21804
        ;;
9680
21805
        1.1*)
9703
21828
;;
9704
21829
 
9705
21830
Compaq\'s\ Digital\ Unix | OSF1 )
9706
 
        LDFLAGS=-lpthread
 
21831
        LDFLAGS=$LDFLAGS" -lpthread"
9707
21832
        TARGETLIB="\$(target_triplet)/librxtxSerial.la"
9708
21833
        RXTX_PATH="\$(JPATH)/jre/lib/\$(OS_ARCH)"
9709
21834
        JHOME=$JPATH/"lib"
9798
21923
      # `set' does not quote correctly, so add quotes (double-quote
9799
21924
      # substitution turns \\\\ into \\, and sed turns \\ into \).
9800
21925
      sed -n \
9801
 
        "s/'/'\\\\''/g;
9802
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
21926
        "s/'/'\\\\''/g;
 
21927
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9803
21928
      ;;
9804
21929
    *)
9805
21930
      # `set' quotes correctly as required by POSIX, so do not add quotes.
9806
21931
      sed -n \
9807
 
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
21932
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9808
21933
      ;;
9809
21934
    esac;
9810
21935
} |
9834
21959
# trailing colons and then remove the whole line if VPATH becomes empty
9835
21960
# (actually we leave an empty line to preserve line numbers).
9836
21961
if test "x$srcdir" = x.; then
9837
 
  ac_vpsub='/^[         ]*VPATH[        ]*=/{
 
21962
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
9838
21963
s/:*\$(srcdir):*/:/;
9839
21964
s/:*\${srcdir}:*/:/;
9840
21965
s/:*@srcdir@:*/:/;
9841
 
s/^\([^=]*=[    ]*\):*/\1/;
 
21966
s/^\([^=]*=[     ]*\):*/\1/;
9842
21967
s/:*$//;
9843
 
s/^[^=]*=[      ]*$//;
 
21968
s/^[^=]*=[       ]*$//;
9844
21969
}'
9845
21970
fi
9846
21971
 
9851
21976
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9852
21977
  # 1. Remove the extension, and $U if already installed.
9853
21978
  ac_i=`echo "$ac_i" |
9854
 
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
 
21979
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9855
21980
  # 2. Add them.
9856
21981
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9857
21982
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9868
21993
Usually this means the macro was only invoked conditionally." >&2;}
9869
21994
   { (exit 1); exit 1; }; }
9870
21995
fi
 
21996
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
21997
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 
21998
Usually this means the macro was only invoked conditionally." >&5
 
21999
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 
22000
Usually this means the macro was only invoked conditionally." >&2;}
 
22001
   { (exit 1); exit 1; }; }
 
22002
fi
 
22003
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
 
22004
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
 
22005
Usually this means the macro was only invoked conditionally." >&5
 
22006
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
 
22007
Usually this means the macro was only invoked conditionally." >&2;}
 
22008
   { (exit 1); exit 1; }; }
 
22009
fi
9871
22010
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
9872
22011
  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
9873
22012
Usually this means the macro was only invoked conditionally." >&5
9909
22048
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9910
22049
  set -o posix
9911
22050
fi
 
22051
DUALCASE=1; export DUALCASE # for MKS sh
9912
22052
 
9913
22053
# Support unset when possible.
9914
 
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
 
22054
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9915
22055
  as_unset=unset
9916
22056
else
9917
22057
  as_unset=false
9930
22070
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9931
22071
  LC_TELEPHONE LC_TIME
9932
22072
do
9933
 
  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
22073
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9934
22074
    eval $as_var=C; export $as_var
9935
22075
  else
9936
22076
    $as_unset $as_var
10109
22249
if mkdir -p . 2>/dev/null; then
10110
22250
  as_mkdir_p=:
10111
22251
else
 
22252
  test -d ./-p && rmdir ./-p
10112
22253
  as_mkdir_p=false
10113
22254
fi
10114
22255
 
10115
22256
as_executable_p="test -f"
10116
22257
 
10117
22258
# Sed expression to map a string onto a valid CPP name.
10118
 
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
 
22259
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10119
22260
 
10120
22261
# Sed expression to map a string onto a valid variable name.
10121
 
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
 
22262
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10122
22263
 
10123
22264
 
10124
22265
# IFS
10145
22286
cat >&5 <<_CSEOF
10146
22287
 
10147
22288
This file was extended by $as_me, which was
10148
 
generated by GNU Autoconf 2.57.  Invocation command line was
 
22289
generated by GNU Autoconf 2.59.  Invocation command line was
10149
22290
 
10150
22291
  CONFIG_FILES    = $CONFIG_FILES
10151
22292
  CONFIG_HEADERS  = $CONFIG_HEADERS
10189
22330
  -d, --debug      don't remove temporary files
10190
22331
      --recheck    update $as_me by reconfiguring in the same conditions
10191
22332
  --file=FILE[:TEMPLATE]
10192
 
                   instantiate the configuration file FILE
 
22333
                   instantiate the configuration file FILE
10193
22334
  --header=FILE[:TEMPLATE]
10194
 
                   instantiate the configuration header FILE
 
22335
                   instantiate the configuration header FILE
10195
22336
 
10196
22337
Configuration files:
10197
22338
$config_files
10208
22349
cat >>$CONFIG_STATUS <<_ACEOF
10209
22350
ac_cs_version="\\
10210
22351
config.status
10211
 
configured by $0, generated by GNU Autoconf 2.57,
 
22352
configured by $0, generated by GNU Autoconf 2.59,
10212
22353
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10213
22354
 
10214
 
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
10215
 
Free Software Foundation, Inc.
 
22355
Copyright (C) 2003 Free Software Foundation, Inc.
10216
22356
This config.status script is free software; the Free Software Foundation
10217
22357
gives unlimited permission to copy, distribute and modify it."
10218
22358
srcdir=$srcdir
10425
22565
s,@ac_ct_CC@,$ac_ct_CC,;t t
10426
22566
s,@EXEEXT@,$EXEEXT,;t t
10427
22567
s,@OBJEXT@,$OBJEXT,;t t
 
22568
s,@EGREP@,$EGREP,;t t
10428
22569
s,@LN_S@,$LN_S,;t t
10429
22570
s,@ECHO@,$ECHO,;t t
 
22571
s,@AR@,$AR,;t t
 
22572
s,@ac_ct_AR@,$ac_ct_AR,;t t
10430
22573
s,@RANLIB@,$RANLIB,;t t
10431
22574
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
10432
22575
s,@STRIP@,$STRIP,;t t
10433
22576
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
10434
22577
s,@CPP@,$CPP,;t t
10435
 
s,@EGREP@,$EGREP,;t t
 
22578
s,@CXX@,$CXX,;t t
 
22579
s,@CXXFLAGS@,$CXXFLAGS,;t t
 
22580
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
 
22581
s,@CXXCPP@,$CXXCPP,;t t
 
22582
s,@F77@,$F77,;t t
 
22583
s,@FFLAGS@,$FFLAGS,;t t
 
22584
s,@ac_ct_F77@,$ac_ct_F77,;t t
10436
22585
s,@LIBTOOL@,$LIBTOOL,;t t
10437
22586
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10438
22587
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10439
22588
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
 
22589
s,@CYGPATH_W@,$CYGPATH_W,;t t
10440
22590
s,@PACKAGE@,$PACKAGE,;t t
10441
22591
s,@VERSION@,$VERSION,;t t
10442
22592
s,@ACLOCAL@,$ACLOCAL,;t t
10444
22594
s,@AUTOMAKE@,$AUTOMAKE,;t t
10445
22595
s,@AUTOHEADER@,$AUTOHEADER,;t t
10446
22596
s,@MAKEINFO@,$MAKEINFO,;t t
10447
 
s,@AMTAR@,$AMTAR,;t t
10448
22597
s,@install_sh@,$install_sh,;t t
10449
22598
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
 
22599
s,@mkdir_p@,$mkdir_p,;t t
10450
22600
s,@AWK@,$AWK,;t t
10451
22601
s,@SET_MAKE@,$SET_MAKE,;t t
 
22602
s,@am__leading_dot@,$am__leading_dot,;t t
 
22603
s,@AMTAR@,$AMTAR,;t t
 
22604
s,@am__tar@,$am__tar,;t t
 
22605
s,@am__untar@,$am__untar,;t t
10452
22606
s,@DEPDIR@,$DEPDIR,;t t
10453
22607
s,@am__include@,$am__include,;t t
10454
22608
s,@am__quote@,$am__quote,;t t
10456
22610
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
10457
22611
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
10458
22612
s,@CCDEPMODE@,$CCDEPMODE,;t t
 
22613
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
 
22614
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
 
22615
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
 
22616
s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
 
22617
s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
10459
22618
s,@WINDOWS_JAVA_INCLUDE@,$WINDOWS_JAVA_INCLUDE,;t t
10460
22619
s,@JAVAINCLUDEDIR@,$JAVAINCLUDEDIR,;t t
10461
22620
s,@JAVAINCLUDE@,$JAVAINCLUDE,;t t
10488
22647
s,@COMPILE@,$COMPILE,;t t
10489
22648
s,@OBJECT_EXTENSION@,$OBJECT_EXTENSION,;t t
10490
22649
s,@LIB_EXTENSION@,$LIB_EXTENSION,;t t
 
22650
s,@GLIBTOOL@,$GLIBTOOL,;t t
10491
22651
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
10492
22652
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
10493
22653
s,@MAINT@,$MAINT,;t t
10522
22682
      (echo ':t
10523
22683
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10524
22684
      if test -z "$ac_sed_cmds"; then
10525
 
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
 
22685
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10526
22686
      else
10527
 
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
 
22687
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10528
22688
      fi
10529
22689
      ac_sed_frag=`expr $ac_sed_frag + 1`
10530
22690
      ac_beg=$ac_end
10542
22702
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10543
22703
  case $ac_file in
10544
22704
  - | *:- | *:-:* ) # input from stdin
10545
 
        cat >$tmp/stdin
10546
 
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10547
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
22705
        cat >$tmp/stdin
 
22706
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
22707
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10548
22708
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10549
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
22709
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10550
22710
  * )   ac_file_in=$ac_file.in ;;
10551
22711
  esac
10552
22712
 
10553
22713
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10554
22714
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10555
22715
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10556
 
         X"$ac_file" : 'X\(//\)[^/]' \| \
10557
 
         X"$ac_file" : 'X\(//\)$' \| \
10558
 
         X"$ac_file" : 'X\(/\)' \| \
10559
 
         .     : '\(.\)' 2>/dev/null ||
 
22716
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
22717
         X"$ac_file" : 'X\(//\)$' \| \
 
22718
         X"$ac_file" : 'X\(/\)' \| \
 
22719
         .     : '\(.\)' 2>/dev/null ||
10560
22720
echo X"$ac_file" |
10561
22721
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10562
22722
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10572
22732
      as_dirs="$as_dir $as_dirs"
10573
22733
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
10574
22734
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10575
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
10576
 
         X"$as_dir" : 'X\(//\)$' \| \
10577
 
         X"$as_dir" : 'X\(/\)' \| \
10578
 
         .     : '\(.\)' 2>/dev/null ||
 
22735
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
22736
         X"$as_dir" : 'X\(//\)$' \| \
 
22737
         X"$as_dir" : 'X\(/\)' \| \
 
22738
         .     : '\(.\)' 2>/dev/null ||
10579
22739
echo X"$as_dir" |
10580
22740
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10581
22741
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10613
22773
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10614
22774
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
10615
22775
esac
10616
 
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10617
 
# absolute.
10618
 
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
10619
 
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
10620
 
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10621
 
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
 
22776
 
 
22777
# Do not use `cd foo && pwd` to compute absolute paths, because
 
22778
# the directories may not exist.
 
22779
case `pwd` in
 
22780
.) ac_abs_builddir="$ac_dir";;
 
22781
*)
 
22782
  case "$ac_dir" in
 
22783
  .) ac_abs_builddir=`pwd`;;
 
22784
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
22785
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
22786
  esac;;
 
22787
esac
 
22788
case $ac_abs_builddir in
 
22789
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
22790
*)
 
22791
  case ${ac_top_builddir}. in
 
22792
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
22793
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
22794
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
22795
  esac;;
 
22796
esac
 
22797
case $ac_abs_builddir in
 
22798
.) ac_abs_srcdir=$ac_srcdir;;
 
22799
*)
 
22800
  case $ac_srcdir in
 
22801
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
22802
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
22803
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
22804
  esac;;
 
22805
esac
 
22806
case $ac_abs_builddir in
 
22807
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
22808
*)
 
22809
  case $ac_top_srcdir in
 
22810
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
22811
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
22812
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
22813
  esac;;
 
22814
esac
10622
22815
 
10623
22816
 
10624
22817
  case $INSTALL in
10640
22833
    configure_input="$ac_file.  "
10641
22834
  fi
10642
22835
  configure_input=$configure_input"Generated from `echo $ac_file_in |
10643
 
                                     sed 's,.*/,,'` by configure."
 
22836
                                     sed 's,.*/,,'` by configure."
10644
22837
 
10645
22838
  # First look for the input files in the build tree, otherwise in the
10646
22839
  # src tree.
10649
22842
      case $f in
10650
22843
      -) echo $tmp/stdin ;;
10651
22844
      [\\/$]*)
10652
 
         # Absolute (can't be DOS-style, as IFS=:)
10653
 
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
22845
         # Absolute (can't be DOS-style, as IFS=:)
 
22846
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10654
22847
echo "$as_me: error: cannot find input file: $f" >&2;}
10655
22848
   { (exit 1); exit 1; }; }
10656
 
         echo $f;;
 
22849
         echo "$f";;
10657
22850
      *) # Relative
10658
 
         if test -f "$f"; then
10659
 
           # Build tree
10660
 
           echo $f
10661
 
         elif test -f "$srcdir/$f"; then
10662
 
           # Source tree
10663
 
           echo $srcdir/$f
10664
 
         else
10665
 
           # /dev/null tree
10666
 
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
22851
         if test -f "$f"; then
 
22852
           # Build tree
 
22853
           echo "$f"
 
22854
         elif test -f "$srcdir/$f"; then
 
22855
           # Source tree
 
22856
           echo "$srcdir/$f"
 
22857
         else
 
22858
           # /dev/null tree
 
22859
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10667
22860
echo "$as_me: error: cannot find input file: $f" >&2;}
10668
22861
   { (exit 1); exit 1; }; }
10669
 
         fi;;
 
22862
         fi;;
10670
22863
      esac
10671
22864
    done` || { (exit 1); exit 1; }
10672
22865
_ACEOF
10708
22901
# NAME is the cpp macro being defined and VALUE is the value it is being given.
10709
22902
#
10710
22903
# ac_d sets the value in "#define NAME VALUE" lines.
10711
 
ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
10712
 
ac_dB='[        ].*$,\1#\2'
 
22904
ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
 
22905
ac_dB='[         ].*$,\1#\2'
10713
22906
ac_dC=' '
10714
22907
ac_dD=',;t'
10715
22908
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10716
 
ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
 
22909
ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
10717
22910
ac_uB='$,\1#\2define\3'
10718
22911
ac_uC=' '
10719
22912
ac_uD=',;t'
10722
22915
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10723
22916
  case $ac_file in
10724
22917
  - | *:- | *:-:* ) # input from stdin
10725
 
        cat >$tmp/stdin
10726
 
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10727
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
22918
        cat >$tmp/stdin
 
22919
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
22920
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10728
22921
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10729
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
22922
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10730
22923
  * )   ac_file_in=$ac_file.in ;;
10731
22924
  esac
10732
22925
 
10740
22933
      case $f in
10741
22934
      -) echo $tmp/stdin ;;
10742
22935
      [\\/$]*)
10743
 
         # Absolute (can't be DOS-style, as IFS=:)
10744
 
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
22936
         # Absolute (can't be DOS-style, as IFS=:)
 
22937
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10745
22938
echo "$as_me: error: cannot find input file: $f" >&2;}
10746
22939
   { (exit 1); exit 1; }; }
10747
 
         echo $f;;
 
22940
         # Do quote $f, to prevent DOS paths from being IFS'd.
 
22941
         echo "$f";;
10748
22942
      *) # Relative
10749
 
         if test -f "$f"; then
10750
 
           # Build tree
10751
 
           echo $f
10752
 
         elif test -f "$srcdir/$f"; then
10753
 
           # Source tree
10754
 
           echo $srcdir/$f
10755
 
         else
10756
 
           # /dev/null tree
10757
 
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
22943
         if test -f "$f"; then
 
22944
           # Build tree
 
22945
           echo "$f"
 
22946
         elif test -f "$srcdir/$f"; then
 
22947
           # Source tree
 
22948
           echo "$srcdir/$f"
 
22949
         else
 
22950
           # /dev/null tree
 
22951
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10758
22952
echo "$as_me: error: cannot find input file: $f" >&2;}
10759
22953
   { (exit 1); exit 1; }; }
10760
 
         fi;;
 
22954
         fi;;
10761
22955
      esac
10762
22956
    done` || { (exit 1); exit 1; }
10763
22957
  # Remove the trailing spaces.
10764
 
  sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
 
22958
  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
10765
22959
 
10766
22960
_ACEOF
10767
22961
 
10784
22978
s,[\\$`],\\&,g
10785
22979
t clear
10786
22980
: clear
10787
 
s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
 
22981
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10788
22982
t end
10789
 
s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
 
22983
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10790
22984
: end
10791
22985
_ACEOF
10792
22986
# If some macros were called several times there might be several times
10800
22994
# example, in the case of _POSIX_SOURCE, which is predefined and required
10801
22995
# on some systems where configure will not decide to define it.
10802
22996
cat >>conftest.undefs <<\_ACEOF
10803
 
s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
 
22997
s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10804
22998
_ACEOF
10805
22999
 
10806
23000
# Break up conftest.defines because some shells have a limit on the size
10807
23001
# of here documents, and old seds have small limits too (100 cmds).
10808
23002
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10809
 
echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
 
23003
echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10810
23004
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10811
23005
echo '  :' >>$CONFIG_STATUS
10812
23006
rm -f conftest.tail
10815
23009
  # Write a limited-size here document to $tmp/defines.sed.
10816
23010
  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10817
23011
  # Speed up: don't consider the non `#define' lines.
10818
 
  echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
 
23012
  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
10819
23013
  # Work around the forget-to-reset-the-flag bug.
10820
23014
  echo 't clr' >>$CONFIG_STATUS
10821
23015
  echo ': clr' >>$CONFIG_STATUS
10842
23036
  # Write a limited-size here document to $tmp/undefs.sed.
10843
23037
  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10844
23038
  # Speed up: don't consider the non `#undef'
10845
 
  echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
 
23039
  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
10846
23040
  # Work around the forget-to-reset-the-flag bug.
10847
23041
  echo 't clr' >>$CONFIG_STATUS
10848
23042
  echo ': clr' >>$CONFIG_STATUS
10876
23070
    else
10877
23071
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10878
23072
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10879
 
         X"$ac_file" : 'X\(//\)[^/]' \| \
10880
 
         X"$ac_file" : 'X\(//\)$' \| \
10881
 
         X"$ac_file" : 'X\(/\)' \| \
10882
 
         .     : '\(.\)' 2>/dev/null ||
 
23073
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
23074
         X"$ac_file" : 'X\(//\)$' \| \
 
23075
         X"$ac_file" : 'X\(/\)' \| \
 
23076
         .     : '\(.\)' 2>/dev/null ||
10883
23077
echo X"$ac_file" |
10884
23078
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10885
23079
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10895
23089
      as_dirs="$as_dir $as_dirs"
10896
23090
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
10897
23091
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10898
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
10899
 
         X"$as_dir" : 'X\(//\)$' \| \
10900
 
         X"$as_dir" : 'X\(/\)' \| \
10901
 
         .     : '\(.\)' 2>/dev/null ||
 
23092
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
23093
         X"$as_dir" : 'X\(//\)$' \| \
 
23094
         X"$as_dir" : 'X\(/\)' \| \
 
23095
         .     : '\(.\)' 2>/dev/null ||
10902
23096
echo X"$as_dir" |
10903
23097
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10904
23098
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10918
23112
    cat $tmp/config.h
10919
23113
    rm -f $tmp/config.h
10920
23114
  fi
10921
 
  # Run the commands associated with the file.
10922
 
  case $ac_file in
10923
 
    config.h ) # update the timestamp
10924
 
echo 'timestamp for config.h' >"./stamp-h1"
10925
 
 ;;
 
23115
# Compute $ac_file's index in $config_headers.
 
23116
_am_stamp_count=1
 
23117
for _am_header in $config_headers :; do
 
23118
  case $_am_header in
 
23119
    $ac_file | $ac_file:* )
 
23120
      break ;;
 
23121
    * )
 
23122
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10926
23123
  esac
10927
23124
done
 
23125
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
 
23126
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
23127
         X$ac_file : 'X\(//\)[^/]' \| \
 
23128
         X$ac_file : 'X\(//\)$' \| \
 
23129
         X$ac_file : 'X\(/\)' \| \
 
23130
         .     : '\(.\)' 2>/dev/null ||
 
23131
echo X$ac_file |
 
23132
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
23133
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
23134
          /^X\(\/\/\)$/{ s//\1/; q; }
 
23135
          /^X\(\/\).*/{ s//\1/; q; }
 
23136
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
23137
done
10928
23138
_ACEOF
10929
23139
cat >>$CONFIG_STATUS <<\_ACEOF
10930
23140
 
10936
23146
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10937
23147
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10938
23148
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10939
 
         X"$ac_dest" : 'X\(//\)[^/]' \| \
10940
 
         X"$ac_dest" : 'X\(//\)$' \| \
10941
 
         X"$ac_dest" : 'X\(/\)' \| \
10942
 
         .     : '\(.\)' 2>/dev/null ||
 
23149
         X"$ac_dest" : 'X\(//\)[^/]' \| \
 
23150
         X"$ac_dest" : 'X\(//\)$' \| \
 
23151
         X"$ac_dest" : 'X\(/\)' \| \
 
23152
         .     : '\(.\)' 2>/dev/null ||
10943
23153
echo X"$ac_dest" |
10944
23154
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10945
23155
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10946
23156
          /^X\(\/\/\)$/{ s//\1/; q; }
10947
23157
          /^X\(\/\).*/{ s//\1/; q; }
10948
23158
          s/.*/./; q'`
 
23159
  { if $as_mkdir_p; then
 
23160
    mkdir -p "$ac_dir"
 
23161
  else
 
23162
    as_dir="$ac_dir"
 
23163
    as_dirs=
 
23164
    while test ! -d "$as_dir"; do
 
23165
      as_dirs="$as_dir $as_dirs"
 
23166
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
23167
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
23168
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
23169
         X"$as_dir" : 'X\(//\)$' \| \
 
23170
         X"$as_dir" : 'X\(/\)' \| \
 
23171
         .     : '\(.\)' 2>/dev/null ||
 
23172
echo X"$as_dir" |
 
23173
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
23174
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
23175
          /^X\(\/\/\)$/{ s//\1/; q; }
 
23176
          /^X\(\/\).*/{ s//\1/; q; }
 
23177
          s/.*/./; q'`
 
23178
    done
 
23179
    test ! -n "$as_dirs" || mkdir $as_dirs
 
23180
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
23181
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
23182
   { (exit 1); exit 1; }; }; }
 
23183
 
10949
23184
  ac_builddir=.
10950
23185
 
10951
23186
if test "$ac_dir" != .; then
10971
23206
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10972
23207
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
10973
23208
esac
10974
 
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10975
 
# absolute.
10976
 
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
10977
 
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
10978
 
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10979
 
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
 
23209
 
 
23210
# Do not use `cd foo && pwd` to compute absolute paths, because
 
23211
# the directories may not exist.
 
23212
case `pwd` in
 
23213
.) ac_abs_builddir="$ac_dir";;
 
23214
*)
 
23215
  case "$ac_dir" in
 
23216
  .) ac_abs_builddir=`pwd`;;
 
23217
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
23218
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
23219
  esac;;
 
23220
esac
 
23221
case $ac_abs_builddir in
 
23222
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
23223
*)
 
23224
  case ${ac_top_builddir}. in
 
23225
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
23226
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
23227
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
23228
  esac;;
 
23229
esac
 
23230
case $ac_abs_builddir in
 
23231
.) ac_abs_srcdir=$ac_srcdir;;
 
23232
*)
 
23233
  case $ac_srcdir in
 
23234
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
23235
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
23236
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
23237
  esac;;
 
23238
esac
 
23239
case $ac_abs_builddir in
 
23240
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
23241
*)
 
23242
  case $ac_top_srcdir in
 
23243
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
23244
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
23245
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
23246
  esac;;
 
23247
esac
10980
23248
 
10981
23249
 
10982
23250
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10994
23262
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
10995
23263
    dirpart=`(dirname "$mf") 2>/dev/null ||
10996
23264
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10997
 
         X"$mf" : 'X\(//\)[^/]' \| \
10998
 
         X"$mf" : 'X\(//\)$' \| \
10999
 
         X"$mf" : 'X\(/\)' \| \
11000
 
         .     : '\(.\)' 2>/dev/null ||
 
23265
         X"$mf" : 'X\(//\)[^/]' \| \
 
23266
         X"$mf" : 'X\(//\)$' \| \
 
23267
         X"$mf" : 'X\(/\)' \| \
 
23268
         .     : '\(.\)' 2>/dev/null ||
11001
23269
echo X"$mf" |
11002
23270
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11003
23271
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11007
23275
  else
11008
23276
    continue
11009
23277
  fi
11010
 
  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
11011
 
  # Extract the definition of DEP_FILES from the Makefile without
11012
 
  # running `make'.
11013
 
  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
 
23278
  # Extract the definition of DEPDIR, am__include, and am__quote
 
23279
  # from the Makefile without running `make'.
 
23280
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11014
23281
  test -z "$DEPDIR" && continue
 
23282
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
23283
  test -z "am__include" && continue
 
23284
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
11015
23285
  # When using ansi2knr, U may be empty or an underscore; expand it
11016
 
  U=`sed -n -e '/^U = / s///p' < "$mf"`
11017
 
  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
11018
 
  # We invoke sed twice because it is the simplest approach to
11019
 
  # changing $(DEPDIR) to its actual value in the expansion.
11020
 
  for file in `sed -n -e '
11021
 
    /^DEP_FILES = .*\\\\$/ {
11022
 
      s/^DEP_FILES = //
11023
 
      :loop
11024
 
        s/\\\\$//
11025
 
        p
11026
 
        n
11027
 
        /\\\\$/ b loop
11028
 
      p
11029
 
    }
11030
 
    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
 
23286
  U=`sed -n 's/^U = //p' < "$mf"`
 
23287
  # Find all dependency output files, they are included files with
 
23288
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
23289
  # simplest approach to changing $(DEPDIR) to its actual value in the
 
23290
  # expansion.
 
23291
  for file in `sed -n "
 
23292
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11031
23293
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11032
23294
    # Make sure the directory exists.
11033
23295
    test -f "$dirpart/$file" && continue
11034
23296
    fdir=`(dirname "$file") 2>/dev/null ||
11035
23297
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11036
 
         X"$file" : 'X\(//\)[^/]' \| \
11037
 
         X"$file" : 'X\(//\)$' \| \
11038
 
         X"$file" : 'X\(/\)' \| \
11039
 
         .     : '\(.\)' 2>/dev/null ||
 
23298
         X"$file" : 'X\(//\)[^/]' \| \
 
23299
         X"$file" : 'X\(//\)$' \| \
 
23300
         X"$file" : 'X\(/\)' \| \
 
23301
         .     : '\(.\)' 2>/dev/null ||
11040
23302
echo X"$file" |
11041
23303
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11042
23304
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11052
23314
      as_dirs="$as_dir $as_dirs"
11053
23315
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
11054
23316
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11055
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
11056
 
         X"$as_dir" : 'X\(//\)$' \| \
11057
 
         X"$as_dir" : 'X\(/\)' \| \
11058
 
         .     : '\(.\)' 2>/dev/null ||
 
23317
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
23318
         X"$as_dir" : 'X\(//\)$' \| \
 
23319
         X"$as_dir" : 'X\(/\)' \| \
 
23320
         .     : '\(.\)' 2>/dev/null ||
11059
23321
echo X"$as_dir" |
11060
23322
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11061
23323
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }